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

 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 DuX,tVR,eRk,VVX,bKk,qDD,eV,aVR,hRA,b8,a$,GVu,E3K,OD,UD,KDV,N6D,kVX,Pk,j$8,$uX,mD,OKK,C8V,SDD,fVR,g3V,JT8,lVD,du8,xuu,uXV,ef,Q$3,F6,yT3,aB,B6X,wo,Em,DwV,tfu,nQ,CQ,enT,afK,w9A,go,hnV,G4D,la,Ev$,KnK,No$,v9,ZQK,pQ,ToT,$wA,ovK,sF,Pa8,nv3,w4,r3k,qH,OQ$,UwV,A3A,J3T,Ym$,r4,p98,vvT,dwK,xw3,RnT,WnD,IfV,BoK,znK,HeV,VbX,qFu,sv3,GHK,hgD,AF,EQR,cFk,JF,$HK,oQ3,rFK,PYV,Oeu,YQ,u6D,lY,vt,pe,nQD,Rv,MbV,CYT,mHV,Bt,SFV,XtV,fO3,LiV,gQD,AFk,JFk,YFV,lOR,Iv,pt3,xHR,uF3,IOD,qN,yFk,DNV,aE,eUV,qYD,zg3,Fdk,wUR,ZMA,kFD,GF$,
cAV,$NA,iM8,OMA,UNX,CM8,mN6,XUD,AAD,JAD,YY6,vhV,xNK,yAV,CM,zUX,t2X,H26,AA,gw,Yh,WU,Ql,BU,Z2D,G7V,EpR,k76,c6k,jxD,sk,$d3,G7,Ek,K2,Nd,r6D,O2K,Ud$,opV,PFX,CFk,mdD,M2D,SkK,f78,j2,cv,LuV,A6A,gpD,YkD,J66,l76,vpA,pvu,C2,mu,Md,S2,f2,xdX,L2,uqK,BNV,gN,zDk,D3V,tr$,Yp,HWK,e5$,VrD,lF,FJD,p2,ZWD,st8,xp,Gtu,h5A,EzT,KJ8,NMV,ktV,Wv,TM$,c$K,Ix,jtu,$38,Qf,yf,Bv,Di,iWD,OWK,r$8,t$,ozR,PRV,nzV,er,bR,q3,Fw,at,wM,CRT,m3D,S53,X_D,LJR,A$u,gzR,J$V,Y5k,lik,Gt,vz8,p_6,d3A,x3V,R5A,uwR,WJD,IiV,kz,QtV,c_,jr,y$A,DcV,tTD,HNk,VT$,
bNV,qHV,ZNV,sKT,htT,GxK,EOX,Kg8,NVV,jKV,rM,$c8,iN8,reD,ONV,UcT,oO8,nOR,ll6,vO3,p1u,RtX,usD,fW,Wg3,yeT,DpV,tjV,HR6,ee$,VjK,bRD,qPu,FG8,wIV,ZR8,BVV,sZ8,he$,GpV,EMR,KGK,N_X,kpu,T_$,cLu,rLD,$p8,oMX,ORV,Upk,CD6,mpA,Mjk,PDu,XIk,nMD,LGV,B_,AL$,zt,te,gM8,YPR,l_k,dpA,D2k,ReX,xpD,WGT,QZX,u2k,q46,ehu,FIV,avk,wn3,ZY$,sDT,G5X,hhV,EC8,KIV,N1V,k5k,cZD,$2T,iYk,rZX,U2u,OYA,gCT,bz,JZ6,lvD,vCD,pn8,d2X,x2D,uHR,WIR,IvX,he,Gx,QDD,HZX,Nc,kO,qaV,aUR,Ti3,iz,$S$,iZ8,oxX,OZA,USX,P1,Py$,nxu,mSu,Mc$,SaR,XYX,fUV,LhK,AWX,JWu,YaV,
vx8,lU6,xSV,Ae,YO,uc$,Whk,hXD,GrV,EVV,KY8,krk,cyk,TkD,zx,tL,CgK,bD,LY3,Ayk,qp,Jyu,gVX,WYX,I4D,QPD,BkD,H7A,V4u,b7u,qp$,FEk,w$V,sRV,hHD,Z_,EwV,k0A,TT6,cpK,jRk,i7$,NTK,G0A,$z3,hL,Uz8,Cmu,PmV,M4D,X$3,fxX,LE6,ApA,Tp,gwV,YpD,JpV,lxA,p$V,$M,Ix3,tpV,Vp$,eKR,FFu,UP,Znu,nR,mG,CR,Eou,wFk,KF6,X2,cn3,AL,g_,inD,U1u,PvR,no6,Cv8,JL,m1V,YM,Mp$,XFK,fYX,LFu,AnA,JnD,pR,Yhu,lYX,uD,Qt,d13,x1V,RKD,u9V,QCu,yn6,zKV,DlV,FHD,ask,V7D,ZGk,szD,h68,aD,Zv,s4,NZT,kA6,G5,TZA,cKR,jzk,$lA,rK6,OG8,Ul$,oRK,iGA,PoX,N2,CoT,fsD,T5,X3D,LH6,
nRK,AK6,jG,JKA,YW$,lsK,vRD,dlk,p3R,xlR,WHD,R68,QzV,Hl$,VPV,qTD,whV,ak6,F$8,ZlT,hLk,E0X,GfV,NE6,mI,TE3,cE6,j4k,$JT,OlR,o0T,UJu,P18,n08,fY,C1k,mJV,ST6,fkD,g0X,YTV,JEV,ec,lk3,XhD,W$A,Q46,yE3,BEV,wi,zLk,tRV,VRA,F1D,qOu,sf3,hGD,Guk,EeT,NO3,$Q8,ku8,cV6,jfD,iC6,rVD,UQu,OCR,PG8,oeK,iy,neD,mQD,MRK,L1V,mh,MS,AVV,geX,Sc,veu,JW,Yx,ly,RGV,vY,I8A,xx,QfV,yVK,BO6,zGk,WY,DF8,tok,H_V,VoD,qLD,w76,shk,Vp,hdV,GKK,EgV,KPD,NnT,kK8,Tnu,cGR,FU,i_V,rG3,O_6,UFX,og3,P_T,ngX,C_V,mF6,MoR,SLA,X7D,f2A,NO,uO3,WP$,kV,Tr,ce,I2k,QhD,
yG$,Bn3,zdV,DyT,tZR,qsV,FxV,a96,wT8,ZgR,rk,Uq,oP,Pe,mY,MO,SE,hlT,fX,ELX,LX,KxV,Nx8,Ay,k1T,TxK,chT,nLT,myR,Lxu,YsR,Jh6,CKV,l9u,dyu,Va8,Q56,wc$,BxV,atK,Zzu,pX,hNK,xV,EP$,KVA,kL$,Tj$,cj8,$TV,We,rjA,OzT,UTD,oPA,Pf3,nPV,CfV,izD,S_k,XcR,ftk,Qp,ltV,vPA,Y_6,dT8,xT6,uQX,WV6,RNV,tQT,eM6,bbk,FMD,qz,EXX,hMu,G3$,cBu,$XV,ibV,rB6,ObV,UXk,oXX,Nz,LMD,gXV,XZ8,S7A,ABV,nX$,Y7u,yBA,pZD,dXR,xX$,FtX,w5D,qID,Kt8,bf8,PiV,Eik,vXA,QHX,ag3,JBK,mXV,CiV,MQD,fPR,VdK,X0,COA,MdA,SIk,X5X,fgk,dxu,QnX,y5K,dT,zoV,HPV,qE8,bPD,aT3,wm6,
ss$,GXV,h73,EG$,V9,KcX,NgD,TgT,kXk,bv,OP3,rl3,iPD,nGD,UIk,CeV,PeR,mIV,MNu,LcK,XmK,fTK,gG6,lTA,vGV,xIk,R7V,uJ6,ITK,ZY,ylT,DPV,Bg6,twR,bsK,qGV,wXR,s63,Kn,N1,KTu,NLK,ko,Tc,kkD,cF,jp,TLD,$o,c8D,iv,j68,$P6,Oh,isk,r8K,OsT,UPk,oKu,nKu,PI$,mP3,XXX,SGV,fm8,LTV,CIk,A8V,YG3,J8A,MwX,lmV,vKV,Cn,pX6,xP3,dP8,R8$,uCD,Imu,WTX,Q6D,M1,BLk,z83,y8D,tkV,Ha8,emD,FN8,Za6,KNK,cMV,Sp,ia6,rMV,fn,OaK,Jn,Yo,mGk,An,xo,MkR,StR,fjX,LN$,gfk,Yt6,ljX,vfK,pg$,RmA,yMD,IjT,xGA,BU6,zm6,IC,QkV,DAV,BF,tB6,HJk,eFV,VBA,ayk,bJA,FbV,hFA,GNX,
Tqk,kNA,$AK,PtD,nB$,mAD,SB3,Xr$,LbD,A_6,gB6,YBu,ly3,vB3,xAT,IyD,QS8,RFR,Bq6,Dkk,zFT,y_6,txA,e0$,VxV,brR,Ff$,aED,Zs,sW,EW,Nl,su$,h0k,E1A,kTV,kR,TA,T8X,c3,$kV,irV,r28,$R,n1k,S2V,fED,Lf8,A26,g1V,J2D,v1D,rZ,plu,R0u,OW,uvR,QuA,y2V,B8u,IER,VeD,FWk,bxD,aDV,sIR,GaV,KWV,cRV,ThT,rRT,CG,OxV,Uou,mH,oYR,Ml,Pu$,nY$,CuD,MeV,mo$,SrD,XyV,fDD,LW3,pyK,xoD,uL3,Rf$,Yr6,gYk,IDX,yRV,HvV,ewK,qyA,hwD,EID,LG,KLk,kBX,TKD,jJk,OvA,P58,mMT,MgR,Sy6,XNT,JCX,fhk,pNK,dMK,xMV,ubT,JK,WL6,QJD,yCX,BK$,zwR,DLV,tYT,HUT,VY8,bUV,pG,qi8,FK$,
wbD,xR,aX$,scA,KKK,W3,NIA,kdV,TIX,$L$,iUK,cq8,OUX,nZX,CAV,mL3,Dk,MYR,LKV,AqV,V$,YiA,gZ6,Jqk,pbR,dLT,xLK,IXV,BIA,yqV,QcV,zjV,tn6,HLD,FjA,eTX,auV,ZL6,wOk,NJT,c76,$4u,r7X,P9V,fu3,Y0,A78,luV,pOu,gE,Wh,Iu$,zTA,BJK,tzK,HS$,VzD,e_D,bSD,qnT,I4,AhA,Q0D,Da6,y7T,R4,wu8,ZSV,sWV,GzX,EqX,Kv8,NrX,kzT,qQ,TrD,cz8,jWD,$a6,iST,Z8,rzD,oqV,nqR,CqX,AzD,Jz$,YnR,lLX,puA,daK,$e,R_R,u_K,Wv6,ILu,QWR,yzV,z_K,ttD,ePu,Vtu,Zi8,aBD,sjD,ESA,Ke$,nC,N3$,k6D,T3X,$BT,r16,ii8,UBV,P2K,SR,C2V,mBV,nS6,MtV,SzR,fBV,A1V,LeV,gSD,XK3,J1k,Yzu,
lB6,vSK,pK6,dBX,xBX,RPT,u5K,Qjk,IBu,y1X,zPV,B38,XK,DCX,eWD,FOK,tiD,ZpK,sm8,hWV,GiR,NfT,rU8,Opu,o$V,PS3,uG,Miu,LOV,JUR,WH,pM8,YKA,lwk,v$X,dC$,Iw8,BH,QmR,yUV,Bf3,DKA,t8X,HEA,eIK,bEV,qgD,KXk,sTV,GqR,WXX,NWX,IQV,QTX,BWA,DDk,HcK,VX3,bcD,F2k,kGX,jyV,ic6,rf8,OcV,UD3,oTA,nTD,CPD,Sd6,XwV,fMV,L2R,AfD,gT$,JfV,YdD,pw$,uhX,Z2,sL,hG,W2D,IM3,K_,yfK,qxX,hAu,ZoX,nnV,Ck8,mgX,zv3,boX,HoD,Sxu,XJT,fGD,LyT,aGV,AkR,Jk$,lGD,dgD,xgk,P7,mP,MF,zA3,Btu,ezD,VC3,GsV,KZD,ksu,T7V,$YA,rrk,i8V,oDV,nDA,LZV,XpX,mYD,fZV,MCV,ArV,lZT,
yk,Qwu,uD8,B7V,zzT,t_X,H0T,zK,eiK,qv$,F8V,a6D,Z0D,wVk,HT,NdD,a5,TdA,c9R,Z9,jgX,$i8,i0V,r9D,O0T,UiD,osT,P4R,nsV,C4D,miV,M_D,Svk,XVV,f6X,ss,L83,A9D,gsD,J9V,YvK,l6$,vsA,pVR,diV,xiR,RiV,uok,G1,I6k,y9K,zi$,H3$,b3R,qR6,FRu,wz6,si6,h93,G_6,$L,TAV,NA3,cDD,jiV,$56,O3R,U5k,or6,nr$,Xd,m5A,My,SRK,XzX,fg,fr$,LR3,AD$,gr$,Ah,vrD,d5D,IrV,WR8,yDK,BAV,R5,z9X,DnR,HFk,V9T,bFA,FaR,aJD,e1$,wWA,EEk,T9D,ciV,uK,j9$,$nV,oET,iFV,OF$,UnX,SoD,nED,XWA,La8,gED,Jik,Yo$,lJ3,vEX,pWR,xnA,R1k,u$6,WaD,IJV,yiK,z1K,HBD,qjX,wsT,s_3,EWk,
Dt,K5V,NGD,kwD,TGX,ctk,$$3,iBD,rtV,OBR,U$V,oW3,Pw8,nW3,CwV,m$D,Mu$,Xsu,SjV,AtR,JtA,ea,Yjk,ps6,vWV,RYD,uGV,W5V,Q_V,zYT,HmD,tUX,BGR,bmX,VUD,ZmX,q3k,aQ,anu,kjR,GjV,Ejk,KU$,NsV,TsK,jd8,cck,wj,Zt,P6D,im6,ojD,UWX,rc3,Om3,mWA,S3V,fnA,XRD,LU6,Y3$,JcV,vjD,dWR,xWu,pRK,RaD,WUk,uSK,QdD,zaT,NT,Dj3,tF8,VFD,wDu,K4T,TL,k$V,$jk,UjD,OkV,ikk,rPX,O_,CpR,olD,PpV,mjK,SJk,MF8,L4k,AP3,JPR,YJV,lqK,vl6,pDA,xjA,RcT,gj,W4V,IqA,zcR,DsA,pz,t0D,eSA,hSV,Wc,Fz6,sr3,abD,w8$,NyV,Kz$,jr3,kMR,$s$,iqK,y_,Oq8,UsD,oaK,raV,DP,PXD,Bc,M0V,
JaT,YVD,lbD,va3,p8D,dsA,WzV,RS$,ut3,xsX,QrX,zS3,HO6,ekK,bO$,aIk,qXD,Fo8,w6K,sYV,hk3,GC3,E9V,KoV,NY3,TYT,aH,jYV,rgV,iOV,U7D,OOK,o9A,Pdk,CdA,m7$,lIV,JgD,d78,x7K,ygD,BYu,zkV,Dq$,thR,HDX,bD$,q$3,F7u,wER,ZDR,saT,ii,K7u,EUD,GR$,hpD,kRD,jaV,T$V,iDD,rN8,OD8,UqT,oUA,PWV,nUD,CWT,fWR,mq3,Mh$,S$X,L7T,AN$,gU6,XEV,oH,lWK,pE$,vUV,nb,xqT,RpV,ue$,dqK,W7V,IWV,Qa8,yNV,B$8,DbA,tsR,HID,e$8,qQA,bIV,sqV,Vs$,Cb,h$D,FQV,ZIk,KQ3,Ne3,kP6,TeV,cmV,jqk,$bk,iIK,rmR,OIA,UbD,ocV,ncA,Cs$,mbR,SQR,fHV,AmK,Jm8,dbD,vcD,p4T,lHX,YQA,xbA,
R$$,xX,IHT,ymu,BeD,z$D,Dh8,t6$,HyV,FCu,V66,eu3,byk,Tbu,NbV,qU8,KCV,UhA,omR,PNV,nmX,CN8,SU$,fSV,AJT,JJV,YUA,lST,xhV,dhk,RuK,WCV,sI,yJD,BbX,zu8,D83,Gm,EI,erV,VlV,q68,w23,KAu,c4V,jb3,$88,i5X,r43,O5K,oAK,nA8,PT8,CTD,MlX,S6V,X26,f58,LAk,A48,jd,gAu,x8A,RrT,vAA,l5V,d8T,p2A,y43,Bau,zrX,Dt$,t1V,HV8,bVu,V1V,eJX,Ghu,E8V,KpT,T5A,cok,N5$,khD,PJR,CJT,M1V,XAR,LpA,g8V,v8k,pAK,dtV,uZV,RJ$,xtR,Wp8,IK3,yoK,B5D,zJV,D9D,tIK,H4K,VIA,b4K,qSD,F_V,aRD,wLV,hOK,GDV,K_3,kDu,Nu$,TuV,XA,cu8,jGk,$9A,i4V,o_X,U9D,Pc6,n_A,CcX,m98,
XLD,L_u,AuD,g_X,Ju8,YSV,lR$,v_V,pLA,d9K,x9A,uV6,ROV,W_$,IRV,QGk,yuT,BuA,zOD,D68,tmR,v5,e28,VmK,qeu,F3V,aeX,wxk,ZjX,sNk,GoR,EHX,NRV,TRK,jNA,OjT,ij$,$6X,rQV,U6$,oHk,P0K,m6D,Mm$,SeV,XxK,L38,AQT,gHK,YeT,JQV,leD,vHV,pxu,R2D,ufR,W3k,IeD,QN$,yQV,D_D,tJD,tl,Fl8,a0D,Z$T,GZ8,hqX,EN8,KlT,Hm,Vm,kZA,TpV,FJ,as,i$D,cvX,jX$,U_8,oNu,PL6,nN3,SMD,f0R,Ll3,AvA,gN6,Jvk,l0X,vNK,pjk,d_R,x_$,Rq3,ukX,sE,WlK,I0V,GX,QXD,yvD,BpK,zqD,DE8,tA$,NI,kG,HuV,eyA,TX,VAD,buA,q8$,FrR,wSV,ZuK,hyT,ke8,NQT,KrV,TQR,cHA,UED,iuV,rHT,$EK,Ou6,
jN,nyD,C36,mED,MAR,S8u,foT,AHD,Y83,dE3,vyR,$G,loA,IoV,yH6,ie,BQD,zyV,DUT,H6K,esA,VW8,b6k,FwV,a3D,wf3,soV,hsD,E6T,KwD,joT,c0V,i6X,r03,O68,mUD,MWD,Su8,XfD,A0A,YuX,mc,MI,l33,v6D,pf$,dU6,xUA,umK,WwV,I36,QoR,BHX,zsV,Dm$,SN,tqK,HAK,bA$,qcV,XJ,fP,wB8,FqR,ZAX,GYV,s16,E4V,NcR,Jl,kYA,TcT,$mV,rd6,YG,Um8,o4D,P$$,n4K,C$D,mmV,MqR,ScK,AdV,g4A,lN8,JdV,YcV,v48,RZX,pB8,xm3,u16,Wq8,IND,BcV,zZA,DVu,HwV,e36,wi3,adV,KSV,T0V,Qm,cbk,Y4$,jOT,$VR,rbu,ob8,PbV,fdV,LSV,AbD,gbV,Jb8,YNk,vbT,pik,xVT,u38,dVD,R3V,Id3,WS$,ybD,D06,
B0A,tDR,H1$,eBK,VDR,b1V,qwK,aAD,F9V,hBD,K96,GnD,NP3,kn6,TPV,bI,cS3,j83,FC,i1T,$0V,rSX,O1T,ou3,PQ6,CQ$,m0R,MDA,SwX,L98,gu$,lAK,Ywu,vuR,pCV,RBV,H9$,Q88,V$A,b93,FmD,aCA,h4A,GbT,E5V,KmV,NSR,kbK,cs6,j36,$rR,rsD,i98,o5D,PxD,n5A,CxR,mrA,M$k,SfA,fCD,g5X,JsA,YfT,lCV,v5u,paR,R4u,xrK,Q3V,ys8,BSV,z4D,DfD,HTk,tHX,VH8,wo6,G9D,hxD,EdT,K6X,NlX,TlT,PX,jlK,MP,iT8,OTV,Ufk,mfD,S0D,L6R,gdK,JYV,lp3,vdV,pou,xfD,uaV,W6K,QlD,zxD,BlV,yYV,J8,tvT,DRk,HHV,eVV,VvK,bHT,q9V,F0R,aa8,ZHV,seV,hV$,GyK,EJR,K06,NXX,kyV,TXR,je8,$RT,Cnu,
mR6,MvD,XQ8,faT,L0T,JxV,I6,xRD,RVD,uED,W0V,Ia3,Qd,yd,D_,BX,Dj,eQA,VO6,FsX,wGV,az$,Hg,Zd6,sUD,hQ8;DuX=function(){var D,t;return typeof CSS!=="undefined"&&((t=(D=CSS).supports)==null?void 0:t.call(D,"selector(:has(*))"))};
tVR=function(D){return D.visibility!=="hidden"&&D.display!=="none"};
eRk=function(D){if(DuX()||D.tagName!=="DETAILS"?!D.matches(HKT):D.querySelector("summary")!==null)return-1;D=D.getAttribute("tabindex")||"0";return Number(D)};
VVX=function(D){return D.some(function(t){return eRk(t)>0})};
bKk=function(D){if(D.textContent||D.ariaLabel)return!0;if(D instanceof HTMLInputElement){if(!D.labels)return!1;D=_.F(D.labels);for(var t=D.next();!t.done;t=D.next())if(t.value.textContent)return!0}return!1};
qDD=function(D){return D.sort(function(t,H){return eRk(H)-eRk(t)})};
_.FDV=function(D){D=Array.from(D.querySelectorAll(HKT)).filter(function(t){return(tVR(t.style)?tVR(window.getComputedStyle(t)):!1)&&bKk(t)});
return VVX(D)?qDD(D):D};
_.Hk=function(D,t){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Hk);else{var H=Error().stack;H&&(this.stack=H)}D&&(this.message=String(D));t!==void 0&&(this.cause=t)};
eV=function(){throw Error("E");};
aVR=function(D,t){t=String.fromCharCode.apply(null,t);return D==null?t:D+t};
hRA=function(D){var t=!1;t=t===void 0?!1:t;if(wkK){if(t&&(ZKk?!D.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(D)))throw Error("F");D=(s$3||(s$3=new TextEncoder)).encode(D)}else{for(var H=0,e=new Uint8Array(3*D.length),V=0;V<D.length;V++){var b=D.charCodeAt(V);if(b<128)e[H++]=b;else{if(b<2048)e[H++]=b>>6|192;else{if(b>=55296&&b<=57343){if(b<=56319&&V<D.length){var a=D.charCodeAt(++V);if(a>=56320&&a<=57343){b=(b-55296)*1024+a-56320+65536;e[H++]=b>>18|
240;e[H++]=b>>12&63|128;e[H++]=b>>6&63|128;e[H++]=b&63|128;continue}else V--}if(t)throw Error("F");b=65533}e[H++]=b>>12|224;e[H++]=b>>6&63|128}e[H++]=b&63|128}}D=H===e.length?e:e.subarray(0,H)}return D};
b8=function(D){_.VA.setTimeout(function(){throw D;},0)};
_.qu=function(D,t){return D.lastIndexOf(t,0)==0};
a$=function(D,t){var H=D.length-t.length;return H>=0&&D.indexOf(t,H)==H};
_.sD=function(D){return/^[\s\xa0]*$/.test(D)};
_.hT=function(D,t){return D.indexOf(t)!=-1};
_.GV=function(D,t){return _.hT(D.toLowerCase(),t.toLowerCase())};
_.Nu=function(D,t){var H=0;D=KK(String(D)).split(".");t=KK(String(t)).split(".");for(var e=Math.max(D.length,t.length),V=0;H==0&&V<e;V++){var b=D[V]||"",a=t[V]||"";do{b=/(\d*)(\D*)(.*)/.exec(b)||["","","",""];a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""];if(b[0].length==0&&a[0].length==0)break;H=GVu(b[1].length==0?0:parseInt(b[1],10),a[1].length==0?0:parseInt(a[1],10))||GVu(b[2].length==0,a[2].length==0)||GVu(b[2],a[2]);b=b[3];a=a[3]}while(H==0)}return H};
GVu=function(D,t){return D<t?-1:D>t?1:0};
_.TV=function(){var D=_.VA.navigator;return D&&(D=D.userAgent)?D:""};
E3K=function(D){if(!ck||!$3)return!1;for(var t=0;t<$3.brands.length;t++){var H=$3.brands[t].brand;if(H&&_.hT(H,D))return!0}return!1};
OD=function(D){return _.hT(_.TV(),D)};
UD=function(){return ck?!!$3&&$3.brands.length>0:!1};
KDV=function(){return UD()?!1:OD("Opera")};
N6D=function(){return UD()?!1:OD("Trident")||OD("MSIE")};
kVX=function(){return UD()?E3K("Microsoft Edge"):OD("Edg/")};
Pk=function(){return OD("Firefox")||OD("FxiOS")};
_.T6V=function(){return OD("Safari")&&!(_.CK()||(UD()?0:OD("Coast"))||KDV()||(UD()?0:OD("Edge"))||kVX()||(UD()?E3K("Opera"):OD("OPR"))||Pk()||OD("Silk")||OD("Android"))};
_.CK=function(){return UD()?E3K("Chromium"):(OD("Chrome")||OD("CriOS"))&&!(UD()?0:OD("Edge"))||OD("Silk")};
_.cT3=function(){return OD("Android")&&!(_.CK()||Pk()||KDV()||OD("Silk"))};
j$8=function(D){var t={};D.forEach(function(H){t[H[0]]=H[1]});
return function(H){return t[H.find(function(e){return e in t})]||""}};
$uX=function(D){var t=_.TV();if(D==="Internet Explorer"){if(N6D())if((D=/rv: *([\d\.]*)/.exec(t))&&D[1])t=D[1];else{D="";var H=/MSIE +([\d\.]+)/.exec(t);if(H&&H[1])if(t=/Trident\/(\d.\d)/.exec(t),H[1]=="7.0")if(t&&t[1])switch(t[1]){case "4.0":D="8.0";break;case "5.0":D="9.0";break;case "6.0":D="10.0";break;case "7.0":D="11.0"}else D="7.0";else D=H[1];t=D}else t="";return t}var e=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");H=[];for(var V;V=e.exec(t);)H.push([V[1],V[2],V[3]||void 0]);
t=j$8(H);switch(D){case "Opera":if(KDV())return t(["Version","Opera"]);if(UD()?E3K("Opera"):OD("OPR"))return t(["OPR"]);break;case "Microsoft Edge":if(UD()?0:OD("Edge"))return t(["Edge"]);if(kVX())return t(["Edg"]);break;case "Chromium":if(_.CK())return t(["Chrome","CriOS","HeadlessChrome"])}return D==="Firefox"&&Pk()||D==="Safari"&&_.T6V()||D==="Android Browser"&&_.cT3()||D==="Silk"&&OD("Silk")?(t=H[2])&&t[1]||"":""};
_.iKV=function(D){if(UD()&&D!=="Silk"){var t=$3.brands.find(function(H){return H.brand===D});
if(!t||!t.version)return NaN;t=t.version.split(".")}else{t=$uX(D);if(t==="")return NaN;t=t.split(".")}return t.length===0?NaN:Number(t[0])};
mD=function(){return ck?!!$3&&!!$3.platform:!1};
_.rTA=function(){return mD()?$3.platform==="Android":OD("Android")};
OKK=function(){return OD("iPhone")&&!OD("iPod")&&!OD("iPad")};
_.SV=function(){return OKK()||OD("iPad")||OD("iPod")};
_.UuX=function(){return mD()?$3.platform==="macOS":OD("Macintosh")};
_.o3V=function(){return mD()?$3.platform==="Windows":OD("Windows")};
_.P8D=function(){return mD()?$3.platform==="Chrome OS":OD("CrOS")};
_.fK=function(D){return D[D.length-1]};
_.LK=function(D,t,H){t=_.n33(D,t,H);return t<0?null:typeof D==="string"?D.charAt(t):D[t]};
_.n33=function(D,t,H){for(var e=D.length,V=typeof D==="string"?D.split(""):D,b=0;b<e;b++)if(b in V&&t.call(H,V[b],b,D))return b;return-1};
C8V=function(D){for(var t=_.AT,H=typeof D==="string"?D.split(""):D,e=D.length-1;e>=0;e--)if(e in H&&t.call(void 0,H[e],e,D))return e;return-1};
_.l8=function(D,t){return _.JT(D,t)>=0};
_.mu$=function(D,t){_.l8(D,t)||D.push(t)};
_.vk=function(D,t){t=_.JT(D,t);var H;(H=t>=0)&&_.MVX(D,t);return H};
_.MVX=function(D,t){Array.prototype.splice.call(D,t,1)};
_.pK=function(D){var t=D.length;if(t>0){for(var H=Array(t),e=0;e<t;e++)H[e]=D[e];return H}return[]};
_.x3=function(D,t){for(var H=1;H<arguments.length;H++){var e=arguments[H];if(_.d6(e)){var V=D.length||0,b=e.length||0;D.length=V+b;for(var a=0;a<b;a++)D[V+a]=e[a]}else D.push(e)}};
_.XkV=function(D,t,H,e){Array.prototype.splice.apply(D,SDD(arguments,1))};
SDD=function(D,t,H){return arguments.length<=2?Array.prototype.slice.call(D,t):Array.prototype.slice.call(D,t,H)};
fVR=function(D,t){t=t||D;for(var H=0,e=0,V={};e<D.length;){var b=D[e++],a=_.Wk(b)?"o"+_.I$(b):(typeof b).charAt(0)+b;Object.prototype.hasOwnProperty.call(V,a)||(V[a]=!0,t[H++]=b)}t.length=H};
_.ATk=function(D,t,H){H=H||_.LDk;for(var e=0,V=D.length,b;e<V;){var a=e+(V-e>>>1);var w=H(t,D[a]);w>0?e=a+1:(V=a,b=!w)}return b?e:-e-1};
_.QA=function(D,t,H){if(!_.d6(D)||!_.d6(t)||D.length!=t.length)return!1;var e=D.length;H=H||g3V;for(var V=0;V<e;V++)if(!H(D[V],t[V]))return!1;return!0};
_.LDk=function(D,t){return D>t?1:D<t?-1:0};
g3V=function(D,t){return D===t};
JT8=function(D,t,H){t=Array.prototype.splice.call(D,t,1);Array.prototype.splice.call(D,H,0,t[0])};
lVD=function(D){return YDk[D]||""};
du8=function(D){if(!v3T)return _.zV(D);D=pkX.test(D)?D.replace(pkX,lVD):D;D=atob(D);for(var t=new Uint8Array(D.length),H=0;H<D.length;H++)t[H]=D.charCodeAt(H);return t};
xuu=function(D,t){D.__closure__error__context__984382||(D.__closure__error__context__984382={});D.__closure__error__context__984382.severity=t};
_.Df=function(D){D=Error(D);xuu(D,"warning");return D};
uXV=function(D,t){if(D!=null){var H;var e=(H=RR6)!=null?H:RR6={};H=e[D]||0;H>=t||(e[D]=H+1,D=Error(),xuu(D,"incident"),b8(D))}};
ef=function(D,t,H){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(H===void 0?0:H)&&Symbol.for&&D?Symbol.for(D):D!=null?Symbol(D):Symbol():t};
Q$3=function(D,t){VV||_.ba in D||WD$(D,IVD);D[_.ba]|=t};
F6=function(D,t){VV||_.ba in D||WD$(D,IVD);D[_.ba]=t};
yT3=function(D){if(4&D)return 512&D?512:1024&D?1024:0};
aB=function(D){Q$3(D,34);return D};
B6X=function(D){Q$3(D,32);return D};
wo=function(){return typeof BigInt==="function"};
Em=function(D,t){return t===void 0?D.copyOnWrite!==sm&&!!(2&(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.ba]|0)):!!(2&t)&&D.copyOnWrite!==sm};
_.Um=function(D,t){if(D!=null)if(typeof D==="string")D=D?new $v(D,ro):_.Om();else if(D.constructor!==$v)if(zR3&&D!=null&&D instanceof Uint8Array)D=D.length?new $v(new Uint8Array(D),ro):_.Om();else{if(!t)throw Error();D=void 0}return D};
DwV=function(D,t){if(typeof t!=="number"||t<0||t>=D.length)throw Error();};
tfu=function(D,t,H){var e=t&128?0:-1,V=D.length,b;if(b=!!V)b=D[V-1],b=b!=null&&typeof b==="object"&&b.constructor===Object;var a=V+(b?-1:0);for(t=t&128?1:0;t<a;t++)H(t-e,D[t]);if(b){D=D[V-1];for(var w in D)!isNaN(w)&&H(+w,D[w])}};
nQ=function(D){return D&128?P9:void 0};
CQ=function(D){D.isGuard_doNotManuallySetPrettyPlease=!0;return D};
enT=function(){var D=HQD;return CQ(function(t){for(var H in D)if(t===D[H]&&!/^[0-9]+$/.test(H))return!0;return!1})};
_.mn=function(D){var t=D;if(VfT(t)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(t))throw Error(String(t));}else if(bQu(t)&&!Number.isSafeInteger(t))throw Error(String(t));return qmA?BigInt(D):D=Fnk(D)?D?"1":"0":VfT(D)?D.trim()||"0":String(D)};
afK=function(D,t){if(D.length>t.length)return!1;if(D.length<t.length||D===t)return!0;for(var H=0;H<D.length;H++){var e=D[H],V=t[H];if(e>V)return!1;if(e<V)return!0}};
w9A=function(D){var t=D>>>0;Sf=t;A3=(D-t)/4294967296>>>0};
go=function(D){if(D<0){w9A(-D);var t=_.F(ZQK(Sf,A3));D=t.next().value;t=t.next().value;Sf=D>>>0;A3=t>>>0}else w9A(D)};
hnV=function(D){var t=sB8||(sB8=new DataView(new ArrayBuffer(8)));t.setFloat32(0,+D,!0);A3=0;Sf=t.getUint32(0,!0)};
G4D=function(D,t){var H=t*4294967296+(D>>>0);return Number.isSafeInteger(H)?H:_.J3(D,t)};
la=function(D,t){var H=t&2147483648;H&&(D=~D+1>>>0,t=~t>>>0,D==0&&(t=t+1>>>0));D=G4D(D,t);return typeof D==="number"?H?-D:D:H?"-"+D:D};
Ev$=function(D){var t=Sf,H=A3,e=H>>31;H=(H<<1|t>>>31)^e;D(t<<1^e,H)};
KnK=function(D,t){var H=-(D&1);D=(D>>>1|t<<31)^H;return la(D,t>>>1^H)};
_.J3=function(D,t){t>>>=0;D>>>=0;if(t<=2097151)var H=""+(4294967296*t+D);else wo()?H=""+(BigInt(t)<<BigInt(32)|BigInt(D)):(H=(D>>>24|t<<8)&16777215,t=t>>16&65535,D=(D&16777215)+H*6777216+t*6710656,H+=t*8147497,t*=2,D>=1E7&&(H+=D/1E7>>>0,D%=1E7),H>=1E7&&(t+=H/1E7>>>0,H%=1E7),H=t+No$(H)+No$(D));return H};
No$=function(D){D=String(D);return"0000000".slice(D.length)+D};
_.k43=function(D,t){t&2147483648?wo()?D=""+(BigInt(t|0)<<BigInt(32)|BigInt(D>>>0)):(t=_.F(ZQK(D,t)),D=t.next().value,t=t.next().value,D="-"+_.J3(D,t)):D=_.J3(D,t);return D};
v9=function(D){if(D.length<16)go(Number(D));else if(wo())D=BigInt(D),Sf=Number(D&BigInt(4294967295))>>>0,A3=Number(D>>BigInt(32)&BigInt(4294967295));else{var t=+(D[0]==="-");A3=Sf=0;for(var H=D.length,e=t,V=(H-t)%6+t;V<=H;e=V,V+=6)e=Number(D.slice(e,V)),A3*=1E6,Sf=Sf*1E6+e,Sf>=4294967296&&(A3+=Math.trunc(Sf/4294967296),A3>>>=0,Sf>>>=0);t&&(t=_.F(ZQK(Sf,A3)),D=t.next().value,t=t.next().value,Sf=D,A3=t)}};
ZQK=function(D,t){t=~t;D?D=~D+1:t+=1;return[D,t]};
pQ=function(D){return Array.prototype.slice.call(D)};
_.xv=function(D,t){throw Error(t===void 0?"unexpected value "+D+"!":t);};
_.RB=function(D){if(D!=null&&typeof D!=="number")throw Error("L`"+typeof D+"`"+D);return D};
_.W9=function(D){if(D==null||typeof D==="number")return D;if(D==="NaN"||D==="Infinity"||D==="-Infinity")return Number(D)};
ToT=function(D){if(D!=null&&typeof D!=="boolean")throw Error("M`"+_.yV(D)+"`"+D);return D};
_.c3X=function(D){if(D==null||typeof D==="boolean")return D;if(typeof D==="number")return!!D};
_.z4=function(D){switch(typeof D){case "bigint":return!0;case "number":return B9(D);case "string":return jBT.test(D);default:return!1}};
_.tF=function(D){if(!B9(D))throw _.Df("enum");return D|0};
_.Ht=function(D){return D==null?D:B9(D)?D|0:void 0};
$wA=function(D){if(typeof D!=="number")throw _.Df("int32");if(!B9(D))throw _.Df("int32");return D|0};
_.eb=function(D){return D==null?D:$wA(D)};
_.VZ=function(D){if(D==null)return D;if(typeof D==="string"&&D)D=+D;else if(typeof D!=="number")return;return B9(D)?D|0:void 0};
_.iQ3=function(D){if(D==null)return D;if(typeof D==="string"&&D)D=+D;else if(typeof D!=="number")return;return B9(D)?D>>>0:void 0};
ovK=function(D){var t=0;t=t===void 0?0:t;if(!_.z4(D))throw _.Df("int64");var H=typeof D;switch(t){case 512:switch(H){case "string":return qH(D);case "bigint":return String(av(64,D));default:return r3k(D)}case 1024:switch(H){case "string":return OQ$(D);case "bigint":return _.mn(av(64,D));default:return UwV(D)}case 0:switch(H){case "string":return qH(D);case "bigint":return _.mn(av(64,D));default:return w4(D)}default:return _.xv(t,"Unknown format requested type for int64")}};
sF=function(D){return D==null?D:ovK(D)};
Pa8=function(D){var t=D.length;if(D[0]==="-"?t<20||t===20&&D<="-9223372036854775808":t<19||t===19&&D<="9223372036854775807")return D;v9(D);return _.k43(Sf,A3)};
nv3=function(D){if(D[0]==="-")var t=!1;else t=D.length,t=t<20?!0:t===20&&D<="18446744073709551615";if(t)return D;v9(D);return _.J3(Sf,A3)};
w4=function(D){D=hF(D);GH(D)||(go(D),D=la(Sf,A3));return D};
_.CaV=function(D){D=hF(D);D>=0&&GH(D)||(go(D),D=G4D(Sf,A3));return D};
r3k=function(D){D=hF(D);GH(D)?D=String(D):(go(D),D=_.k43(Sf,A3));return D};
_.mw6=function(D){D=hF(D);D>=0&&GH(D)?D=String(D):(go(D),D=_.J3(Sf,A3));return D};
qH=function(D){var t=hF(Number(D));if(GH(t))return String(t);t=D.indexOf(".");t!==-1&&(D=D.substring(0,t));return Pa8(D)};
OQ$=function(D){var t=hF(Number(D));if(GH(t))return _.mn(t);t=D.indexOf(".");t!==-1&&(D=D.substring(0,t));return wo()?_.mn(av(64,BigInt(D))):_.mn(Pa8(D))};
UwV=function(D){return GH(D)?_.mn(w4(D)):_.mn(r3k(D))};
_.Mfu=function(D){return GH(D)?_.mn(_.CaV(D)):_.mn(_.mw6(D))};
_.SmR=function(D){var t=hF(Number(D));if(GH(t)&&t>=0)return String(t);t=D.indexOf(".");t!==-1&&(D=D.substring(0,t));return nv3(D)};
_.X9V=function(D){var t=hF(Number(D));if(GH(t)&&t>=0)return _.mn(t);t=D.indexOf(".");t!==-1&&(D=D.substring(0,t));return wo()?_.mn((0,_.Ke)(64,BigInt(D))):_.mn(nv3(D))};
_.Lnu=function(D){if(D==null)return D;if(typeof D==="bigint")return ffV(D)?D=Number(D):(D=av(64,D),D=ffV(D)?Number(D):String(D)),D;if(_.z4(D))return typeof D==="number"?w4(D):qH(D)};
A3A=function(D,t){t=t===void 0?!1:t;var H=typeof D;if(D==null)return D;if(H==="bigint")return String(av(64,D));if(_.z4(D))return H==="string"?qH(D):t?r3k(D):w4(D)};
_.gvD=function(D){var t=typeof D;if(D==null)return D;if(t==="bigint")return _.mn(av(64,D));if(_.z4(D))return t==="string"?OQ$(D):UwV(D)};
J3T=function(D){if(D==null)return D;var t=typeof D;if(t==="bigint")return String(av(64,D));if(_.z4(D)){if(t==="string")return qH(D);if(t==="number")return w4(D)}};
Ym$=function(D){if(D==null)return D;var t=typeof D;if(t==="bigint")return String((0,_.Ke)(64,D));if(_.z4(D)){if(t==="string")return _.SmR(D);if(t==="number")return _.CaV(D)}};
_.jb=function(D){if(typeof D!=="string")throw Error();return D};
r4=function(D){if(D!=null&&typeof D!=="string")throw Error();return D};
_.OF=function(D){return D==null||typeof D==="string"?D:void 0};
p98=function(D,t,H,e){if(D!=null&&D[UF]===Pt)return D;if(!Array.isArray(D))return H?e&2?t[lf3]||(t[lf3]=vvT(t)):new t:void 0;H=D[_.ba]|0;e=H|e&32|e&2;e!==H&&F6(D,e);return new t(D)};
vvT=function(D){D=new D;aB(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return D};
dwK=function(D,t,H){D=t?$wA(D):_.VZ(D);return D==null?H?0:void 0:D|0};
xw3=function(D){return D};
RnT=function(D){return D};
WnD=function(D,t,H,e,V,b){D=p98(D,e,H,b);V&&(D=u6D(D));return D};
IfV=function(D){return[D,this.get(D)]};
BoK=function(){return QB6||(QB6=new Ce(aB([]),void 0,void 0,void 0,y36))};
znK=function(D){var t=mi(MH);return t?D[t]:void 0};
HeV=function(D,t){var H=H===void 0?!1:H;if(mi(DHK)&&mi(MH)&&void 0===DHK){var e=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=e[MH];if(!V)return;if(V=V.reviveUnknownFields)try{V(e,t,tbk);return}catch(b){b8(b)}}H&&(D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(H=mi(MH))&&H in D&&(D=D[H])&&delete D[t])};
VbX=function(D,t){var H=mi(MH),e;VV&&H&&((e=D[H])==null?void 0:e[t])!=null&&uXV(egV,3)};
qFu=function(D,t){t<100||uXV(be6,1)};
sv3=function(D,t,H,e){var V=e!==void 0;e=!!e;var b=mi(MH),a;!V&&VV&&b&&(a=D[b])&&FiA(a,qFu);b=[];var w=D.length;a=4294967295;var h=!1,K=!!(t&64),N=K?t&128?0:-1:void 0;if(!(t&1)){var k=w&&D[w-1];k!=null&&typeof k==="object"&&k.constructor===Object?(w--,a=w):k=void 0;if(K&&!(t&128)&&!V){h=!0;var T;a=((T=aOV)!=null?T:xw3)(a-N,N,D,k,void 0)+N}}t=void 0;for(T=0;T<w;T++){var c=D[T];if(c!=null&&(c=H(c,e))!=null)if(K&&T>=a){var U=T-N,S=void 0;((S=t)!=null?S:t={})[U]=c}else b[T]=c}if(k)for(var L in k)w=k[L],
w!=null&&(w=H(w,e))!=null&&(T=+L,c=void 0,K&&!Number.isNaN(T)&&(c=T+N)<a?b[c]=w:(T=void 0,((T=t)!=null?T:t={})[L]=w));t&&(h?b.push(t):b[a]=t);V&&mi(MH)&&(D=znK(D))&&D instanceof wtV&&(b[MH]=ZeD(D));return b};
GHK=function(D){D[0]=hgD(D[0]);D[1]=hgD(D[1]);return D};
hgD=function(D){switch(typeof D){case "number":return Number.isFinite(D)?D:""+D;case "bigint":return ffV(D)?Number(D):""+D;case "boolean":return D?1:0;case "object":if(Array.isArray(D)){var t=D[_.ba]|0;return D.length===0&&t&1?void 0:sv3(D,t,hgD)}if(D!=null&&D[UF]===Pt)return EQR(D);if(D instanceof $v){t=D.JSC$8825_value_;if(t==null)D="";else if(typeof t==="string")D=t;else{if(v3T){for(var H="",e=0,V=t.length-10240;e<V;)H+=String.fromCharCode.apply(null,t.subarray(e,e+=10240));H+=String.fromCharCode.apply(null,
e?t.subarray(e):t);t=btoa(H)}else t=_.XF(t);D=D.JSC$8825_value_=t}return D}if(D instanceof Ce)return D=D.size!==0?Array.from(Le.prototype.entries.call(D),GHK):void 0,D;return}return D};
AF=function(D,t){if(t){aOV=t==null||t===xw3||t[KiA]!==N4X?xw3:t;try{return EQR(D)}finally{aOV=void 0}}return EQR(D)};
EQR=function(D){D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return sv3(D,D[_.ba]|0,hgD)};
cFk=function(D){switch(typeof D){case "boolean":return kH6||(kH6=[0,void 0,!0]);case "number":return D>0?void 0:D===0?T43||(T43=[0,void 0]):[-D,void 0];case "string":return[0,D];case "object":return D}};
JF=function(D,t,H){return D=_.g4(D,t[0],t[1],H?1:2)};
_.g4=function(D,t,H,e){e=e===void 0?0:e;if(D==null){var V=32;H?(D=[H],V|=128):D=[];t&&(V=V&-8380417|(t&1023)<<13)}else{if(!Array.isArray(D))throw Error("O");V=D[_.ba]|0;if(jvR&&1&V)throw Error("P");2048&V&&!(2&V)&&$HK();if(V&256)throw Error("Q");if(V&64)return e!==0||V&2048||F6(D,V|2048),D;if(H&&(V|=128,H!==D[0]))throw Error("R");a:{H=D;V|=64;var b=H.length;if(b){var a=b-1,w=H[a];if(w!=null&&typeof w==="object"&&w.constructor===Object){t=V&128?0:-1;a-=t;if(a>=1024)throw Error("T");for(var h in w)b=
+h,b<a&&(H[b+t]=w[h],delete w[h]);V=V&-8380417|(a&1023)<<13;break a}}if(t){h=Math.max(t,b-(V&128?0:-1));if(h>1024)throw Error("U");V=V&-8380417|(h&1023)<<13}}}V|=64;e===0&&(V|=2048);F6(D,V);return D};
$HK=function(){if(jvR)throw Error("S");uXV(ieu,5)};
oQ3=function(D,t){if(typeof D!=="object")return D;if(Array.isArray(D)){var H=D[_.ba]|0;return D.length===0&&H&1?void 0:rFK(D,H,t)}if(D!=null&&D[UF]===Pt)return Oeu(D);if(D instanceof Ce){t=D.arrayState;if(t&2)return D;if(!D.size)return;H=aB(UHR(D));if(D.valueCtor)for(D=0;D<H.length;D++){var e=H[D],V=e[1];V==null||typeof V!=="object"?V=void 0:V!=null&&V[UF]===Pt?V=Oeu(V):Array.isArray(V)?V=rFK(V,V[_.ba]|0,!!(t&32)):V=void 0;e[1]=V}return H}if(D instanceof $v)return D};
rFK=function(D,t,H){if(t&2)return D;!H||4096&t||16&t?D=YQ(D,t,!1,H&&!(t&16)):(Q$3(D,34),t&4&&Object.freeze(D));return D};
PYV=function(D,t,H){D=new D.constructor(t);H&&(D.copyOnWrite=sm);D.noLegacyNull=sm;return D};
Oeu=function(D){var t=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=t[_.ba]|0;return Em(D,H)?D:nQD(D,t,H)?PYV(D,t):YQ(t,H)};
YQ=function(D,t,H,e){e!=null||(e=!!(34&t));D=sv3(D,t,oQ3,e);e=32;H&&(e|=2);t=t&8380609|e;F6(D,t);return D};
u6D=function(D){var t=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=t[_.ba]|0;return Em(D,H)?nQD(D,t,H)?PYV(D,t,!0):new D.constructor(YQ(t,H,!1)):D};
lY=function(D){if(D.copyOnWrite!==sm)return!1;var t=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;t=YQ(t,t[_.ba]|0);Q$3(t,2048);D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=t;D.copyOnWrite=void 0;D.noLegacyNull=void 0;return!0};
vt=function(D){if(!lY(D)&&Em(D,D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.ba]|0))throw Error();};
pe=function(D,t){t===void 0&&(t=D[_.ba]|0);t&32&&!(t&4096)&&F6(D,t|4096)};
nQD=function(D,t,H){return H&2?!0:H&32&&!(H&4096)?(F6(t,H|2),D.copyOnWrite=sm,!0):!1};
Rv=function(D,t,H,e,V){var b=H+(V?0:-1),a=D.length-1;if(a>=1+(V?0:-1)&&b>=a){var w=D[a];if(w!=null&&typeof w==="object"&&w.constructor===Object)return w[H]=e,t}if(b<=a)return D[b]=e,t;if(e!==void 0){var h;a=((h=t)!=null?h:t=D[_.ba]|0)>>13&1023||536870912;H>=a?e!=null&&(b={},D[a+(V?0:-1)]=(b[H]=e,b)):D[b]=e}return t};
_.QZ=function(D,t,H,e,V){var b=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=b[_.ba]|0;e=Em(D,a)?1:e;V=!!V||e===3;e===2&&lY(D)&&(b=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=b[_.ba]|0);D=CYT(b,t);var w=D===uY?7:D[_.ba]|0,h=mHV(w,a);var K=4&h?!1:!0;if(K){4&h&&(D=pQ(D),w=0,h=Iv(h,a),a=Rv(b,a,t,D));for(var N=0,k=0;N<D.length;N++){var T=H(D[N]);T!=null&&(D[k++]=T)}k<N&&(D.length=k);H=(h|4)&-513;h=H&=-1025;h&=-4097}h!==w&&(F6(D,h),2&h&&Object.freeze(D));return D=MbV(D,h,b,
a,t,e,K,V)};
MbV=function(D,t,H,e,V,b,a,w){var h=t;b===1||(b!==4?0:2&t||!(16&t)&&32&e)?Bt(t)||(t|=!D.length||a&&!(4096&t)||32&e&&!(4096&t||16&t)?2:256,t!==h&&F6(D,t),Object.freeze(D)):(b===2&&Bt(t)&&(D=pQ(D),h=0,t=Iv(t,e),e=Rv(H,e,V,D)),Bt(t)||(w||(t|=16),t!==h&&F6(D,t)));2&t||!(4096&t||16&t)||pe(H,e);return D};
CYT=function(D,t,H){D=zH(D,t,H);return Array.isArray(D)?D:uY};
mHV=function(D,t){2&t&&(D|=2);return D|1};
Bt=function(D){return!!(2&D)&&!!(4&D)||!!(256&D)};
SFV=function(D){return _.Um(D,!0)};
XtV=function(D){D=pQ(D);for(var t=0;t<D.length;t++){var H=D[t]=pQ(D[t]);Array.isArray(H[1])&&(H[1]=aB(H[1]))}return D};
fO3=function(D,t){var H=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,e=H[_.ba]|0;a:{var V=e;e=Em(D,e);!e&&lY(D)&&(H=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=H[_.ba]|0);var b=zH(H,t);D=!1;if(b==null){if(e){t=BoK();break a}b=[]}else if(b.constructor===Ce)if(b.arrayState&2&&!e)b=UHR(b);else{t=b;break a}else Array.isArray(b)?D=!!((b[_.ba]|0)&2):b=[];if(e){if(!b.length){t=BoK();break a}D||(D=!0,aB(b))}else D&&(D=!1,b=XtV(b));!D&&V&32&&B6X(b);e=new Ce(b,void 0,dwK,dwK);V=Rv(H,
V,t,e);D||pe(H,V);t=e}return t};
_.D1=function(D,t,H,e){vt(D);var V=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=V[_.ba]|0;if(H==null)return Rv(V,b,t),D;var a=H===uY?7:H[_.ba]|0,w=a,h=Bt(a),K=h||Object.isFrozen(H);h||(a=0);K||(H=pQ(H),w=0,a=Iv(a,b),K=!1);a|=5;var N;h=(N=yT3(a))!=null?N:0;for(N=0;N<H.length;N++){var k=H[N],T=e(k,h);Object.is(k,T)||(K&&(H=pQ(H),w=0,a=Iv(a,b),K=!1),H[N]=T)}a!==w&&(K&&(H=pQ(H),a=Iv(a,b)),F6(H,a));Rv(V,b,t,H);return D};
_.tA=function(D,t,H,e,V){vt(D);var b=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Rv(b,b[_.ba]|0,t,(e==="0"?Number(H)===0:H===e)?void 0:H,V);return D};
_.HU=function(D,t,H){if(t&2)throw Error();var e=nQ(t),V=CYT(D,H,e),b=V===uY?7:V[_.ba]|0,a=mHV(b,t);if(2&a||Bt(a)||16&a)V=pQ(V),b=0,a=Iv(a,t),Rv(D,t,H,V,e);a&=-13;a!==b&&F6(V,a);return V};
LiV=function(D){if(VV){var t;return(t=D[eM])!=null?t:D[eM]=new Map}if(eM in D)return D[eM];t=new Map;Object.defineProperty(D,eM,{value:t});return t};
gQD=function(D,t,H,e,V){var b=LiV(D),a=AFk(b,D,t,H,V);a!==e&&(a&&(t=Rv(D,t,a,void 0,V)),b.set(H,e));return t};
AFk=function(D,t,H,e,V){var b=D.get(e);if(b!=null)return b;for(var a=b=0;a<e.length;a++){var w=e[a];zH(t,w,V)!=null&&(b!==0&&(H=Rv(t,H,b,void 0,V)),b=w)}D.set(e,b);return b};
JFk=function(D,t,H,e,V){var b=!1;e=zH(D,e,V,function(a){var w=p98(a,H,!1,t);b=w!==a&&w!=null;return w});
if(e!=null)return b&&!Em(e)&&pe(D,t),e};
YFV=function(D,t,H,e,V,b,a,w){var h=Em(D,H);b=h?1:b;a=!!a||b===3;h=w&&!h;(b===2||h)&&lY(D)&&(t=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H=t[_.ba]|0);D=CYT(t,V);var K=D===uY?7:D[_.ba]|0,N=mHV(K,H);if(w=!(4&N)){var k=D,T=H,c=!!(2&N);c&&(T|=2);for(var U=!c,S=!0,L=0,J=0;L<k.length;L++){var g=p98(k[L],e,!1,T);if(g instanceof e){if(!c){var Q=Em(g);U&&(U=!Q);S&&(S=Q)}k[J++]=g}}J<L&&(k.length=J);N|=4;N=S?N&-4097:N|4096;N=U?N|8:N&-9}N!==K&&(F6(D,N),2&N&&Object.freeze(D));if(h&&!(8&N||!D.length&&
(b===1||(b!==4?0:2&N||!(16&N)&&32&H)))){Bt(N)&&(D=pQ(D),N=Iv(N,H),H=Rv(t,H,V,D));e=D;h=N;for(K=0;K<e.length;K++)k=e[K],N=u6D(k),k!==N&&(e[K]=N);h|=8;N=h=e.length?h|4096:h&-4097;F6(D,N)}return D=MbV(D,N,t,H,V,b,w,a)};
lOR=function(D){D==null&&(D=void 0);return D};
Iv=function(D,t){return D=(2&t?D|2:D&-3)&-273};
_.vQ$=function(D,t,H,e,V){vt(D);t=_.QZ(D,t,V,2,!0);var b;V=(b=yT3(t===uY?7:t[_.ba]|0))!=null?b:0;t.push(H(e,V));return D};
pt3=function(D,t,H,e,V,b,a){vt(D);var w=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;D=YFV(D,w,w[_.ba]|0,H,t,2,!0);if(b&&a)V!=null||(V=D.length-1),DwV(D,V),D.splice(V,b),D.length||(D[_.ba]&=-4097);else{if(b){if(typeof V!=="number"||V<0||V>D.length)throw Error();}else e=e!=null?e:new H;V!=void 0?D.splice(V,b,e):D.push(e);V=H=D===uY?7:D[_.ba]|0;(e=Em(e))?(H&=-9,D.length===1&&(H&=-4097)):H|=4096;H!==V&&F6(D,H);e||pe(w)}};
xHR=function(D,t){if(typeof D==="string")return new Vl(du8(D),t);if(Array.isArray(D))return new Vl(new Uint8Array(D),t);if(D.constructor===Uint8Array)return new Vl(D,!1);if(D.constructor===ArrayBuffer)return D=new Uint8Array(D),new Vl(D,!1);if(D.constructor===$v)return t=dHA(D)||new Uint8Array(0),new Vl(t,!0,D);if(D instanceof Uint8Array)return D=D.constructor===Uint8Array?D:new Uint8Array(D.buffer,D.byteOffset,D.byteLength),new Vl(D,!1);throw Error();};
uF3=function(D){switch(typeof D){case "string":RgV(D)}};
IOD=function(D){switch(typeof D){case "string":Wik(D)}};
qN=function(){var D=function(){throw Error();};
Object.setPrototypeOf(D,D.prototype);return D};
yFk=function(D,t){var H=H===void 0?QvT:H;return new F7(D,t,H)};
DNV=function(D,t,H,e,V){B4V(D,H,zg3(t,e),V)};
aE=function(D,t,H,e){var V=e[D];if(V)return V;V={};V.binaryFields=e;V.messageMetadata=cFk(e[0]);var b=e[1],a=1;b&&b.constructor===Object&&(V.extensions=b,b=e[++a],typeof b==="function"&&(V.isMessageSet=!0,tMX!=null||(tMX=b),HMK!=null||(HMK=e[a+1]),b=e[a+=2]));for(var w={};b&&eUV(b);){for(var h=0;h<b.length;h++)w[b[h]]=b;b=e[++a]}for(h=1;b!==void 0;){typeof b==="number"&&(h+=b,b=e[++a]);var K=void 0;if(b instanceof F7)var N=b;else N=VM8,a--;b=void 0;if((b=N)==null?0:b.$$isMsg){b=e[++a];K=e;var k=a;
typeof b==="function"&&(b=b(),K[k]=b);K=b}b=e[++a];k=h+1;typeof b==="number"&&b<0&&(k-=b,b=e[++a]);for(;h<k;h++){var T=w[h];K?H(V,h,N,K,T):t(V,h,N,T)}}return e[D]=V};
eUV=function(D){return Array.isArray(D)&&!!D.length&&typeof D[0]==="number"&&D[0]>0};
qYD=function(D){return Array.isArray(D)?D[0]instanceof F7?D:[bM6,D]:[D,void 0]};
zg3=function(D,t){if(D instanceof _.ww)return D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(D))return JF(D,t,!1)};
Fdk=function(D,t,H,e){var V=H.$$binaryReaderFn;D[t]=e?function(b,a,w){return V(b,a,w,e)}:V};
wUR=function(D,t,H,e,V){var b=H.$$binaryReaderFn,a,w;D[t]=function(h,K,N){return b(h,K,N,w||(w=aE(a1V,Fdk,wUR,e).messageMetadata),a||(a=ZMA(e)),V)}};
ZMA=function(D){var t=D[sEk];if(t!=null)return t;var H=aE(a1V,Fdk,wUR,D);t=H.isMessageSet?function(e,V){return tMX(e,V,H)}:function(e,V){for(;hUu(V)&&V.nextWireType_!=4;){var b=V.nextField_,a=H[b];
if(a==null){var w=H.extensions;w&&(w=w[b])&&(w=GF$(w),w!=null&&(a=H[b]=w))}if(a==null||!a(V,e,b)){w=V;a=w.fieldCursor_;EhR(w);if(w.discardUnknownFields)var h=void 0;else{var K=w.decoder_.cursor_-a;w.decoder_.cursor_=a;h=Kd3(w.decoder_,K)}K=w=a=void 0;var N=e;h&&((a=(w=(K=N[MH])!=null?K:N[MH]=new wtV)[b])!=null?a:w[b]=[]).push(h)}}if(e=znK(e))e.reviveUnknownFields=H.binaryFields[NwA];return!0};
D[sEk]=t;D[NwA]=kFD.bind(D);return t};
kFD=function(D,t,H,e){var V=this[a1V],b=this[sEk],a=JF(void 0,V.messageMetadata,!1),w=znK(D);if(w){var h=!1,K=V.extensions;if(K){V=function(U,S,L){if(L.length!==0)if(K[S])for(U=_.F(L),S=U.next();!S.done;S=U.next()){S=Twu(S.value);try{h=!0,b(a,S)}finally{S.free()}}else e==null||e(D,S,L)};
if(t==null)FiA(w,V);else if(w!=null){var N=w[t];N&&V(w,t,N)}if(h){var k=D[_.ba]|0;if(k&2&&k&2048&&(H==null||!H.reviveIntoImmutable))throw Error();var T=nQ(k),c=function(U,S){if(zH(D,U,T)!=null)switch(H==null?void 0:H.resolutionBehavior){case 1:return;default:throw Error();}S!=null&&(k=Rv(D,k,U,S,T));delete w[U]};
t==null?tfu(a,a[_.ba]|0,function(U,S){c(U,S)}):c(t,zH(a,t,T))}}}};
GF$=function(D){D=qYD(D);var t=D[0].$$binaryReaderFn;if(D=D[1]){var H=ZMA(D),e=aE(a1V,Fdk,wUR,D).messageMetadata;return function(V,b,a){return t(V,b,a,e,H)}}return t};
cAV=function(D,t,H){D[t]=H.$$binaryWriterFn};
$NA=function(D,t,H,e){var V,b,a=H.$$binaryWriterFn;D[t]=function(w,h,K){return a(w,h,K,b||(b=aE(jEK,cAV,$NA,e).messageMetadata),V||(V=iM8(e)))}};
iM8=function(D){var t=D[rAV];if(!t){var H=aE(jEK,cAV,$NA,D);t=function(e,V){return OMA(e,V,H)};
D[rAV]=t}return t};
OMA=function(D,t,H){tfu(D,D[_.ba]|0,function(e,V){if(V!=null){var b=UNX(H,e);b?b(t,V,e):e<500||uXV(ohV,3)}});
(D=znK(D))&&FiA(D,function(e,V,b){Z1(t,t.encoder_.end());for(e=0;e<b.length;e++)Z1(t,dHA(b[e])||new Uint8Array(0))})};
UNX=function(D,t){var H=D[t];if(H)return H;if(H=D.extensions)if(H=H[t]){H=qYD(H);var e=H[0].$$binaryWriterFn;if(H=H[1]){var V=iM8(H),b=aE(jEK,cAV,$NA,H).messageMetadata;H=D.isMessageSet?HMK(b,V):function(a,w,h){return e(a,w,h,b,V)}}else H=e;
return D[t]=H}};
_.PMA=function(D,t,H){if(Array.isArray(t)){var e=t[_.ba]|0;if(e&4)return t;for(var V=0,b=0;V<t.length;V++){var a=D(t[V]);a!=null&&(t[b++]=a)}b<V&&(t.length=b);H&&(F6(t,(e|5)&-1537),e&2&&Object.freeze(t));return t}};
_.hA=function(D,t,H){return new F7(D,t,H)};
_.nhV=function(D,t,H){return new F7(D,t,H)};
_.GF=function(D,t,H){Rv(D,D[_.ba]|0,t,H,nQ(D[_.ba]|0))};
CM8=function(D,t,H){t=_.W9(t);t!=null&&(_.EY(D,H,1),D=D.encoder_,H=sB8||(sB8=new DataView(new ArrayBuffer(8))),H.setFloat64(0,+t,!0),Sf=H.getUint32(0,!0),A3=H.getUint32(4,!0),_.KM(D,Sf),_.KM(D,A3))};
mN6=function(D,t,H){t=_.W9(t);t!=null&&(_.EY(D,H,5),D=D.encoder_,hnV(t),_.KM(D,Sf))};
_.kh=function(D,t,H){t=J3T(t);if(t!=null&&(uF3(t),t!=null))switch(_.EY(D,H,0),typeof t){case "number":D=D.encoder_;go(t);NN(D,Sf,A3);break;case "bigint":H=BigInt.asUintN(64,t);H=new MM6(Number(H&BigInt(4294967295)),Number(H>>BigInt(32)));NN(D.encoder_,H.JSC$8868_lo,H.JSC$8868_hi);break;default:H=RgV(t),NN(D.encoder_,H.JSC$8868_lo,H.JSC$8868_hi)}};
XUD=function(D,t,H){t=_.VZ(t);t!=null&&t!=null&&(_.EY(D,H,0),_.SYD(D.encoder_,t))};
_.Ld8=function(D,t,H){f1D(D,H,Ym$(t))};
AAD=function(D,t,H){t=_.c3X(t);t!=null&&(_.EY(D,H,0),D.encoder_.JSC$8870_buffer_.push(t?1:0))};
JAD=function(D,t,H){t=_.OF(t);t!=null&&ghk(D,H,hRA(t))};
YY6=function(D,t,H,e,V){B4V(D,H,zg3(t,e),V)};
_.l13=function(D,t,H){t=t==null||typeof t=="string"||t instanceof $v?t:void 0;t!=null&&ghk(D,H,xHR(t,!0).buffer)};
vhV=function(D,t,H){t=_.iQ3(t);t!=null&&t!=null&&(_.EY(D,H,0),TF(D.encoder_,t))};
_.pUA=function(D,t,H){t=_.VZ(t);t!=null&&(t=parseInt(t,10),_.EY(D,H,0),_.SYD(D.encoder_,t))};
_.cU=function(D,t){return function(H,e){var V={treatNewDataAsImmutable:!0};e&&Object.assign(V,e);H=Twu(H,void 0,void 0,V);try{var b=new D,a=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;ZMA(t)(a,H);var w=b}finally{H.free()}return w}};
_.jM=function(D){return function(t){return dNX(t,D)}};
xNK=function(D){return function(){return dNX(this,D)}};
_.RUT=function(D){return CQ(function(t){return t instanceof D&&!Em(t)})};
_.iM=function(D){return function(t){return u7K(D,t)}};
yAV=function(D,t){return WdT({child:D,origin:t||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:I1T,getPayloadCase:function(H){return H.getPayloadCase()},
createInitMessage:function(H){var e=new UY,V=new QED;H=_.oE(V,1,H);return _.PU(e,5,nM,H)}})};
CM=function(D){return{valueOf:D}.valueOf()};
zUX=function(){var D=null;if(!Bw$)return D;try{var t=function(H){return H};
D=Bw$.createPolicy("goog#html",{createHTML:t,createScript:t,createScriptURL:t})}catch(H){}return D};
t2X=function(){DdD===void 0&&(DdD=zUX());return DdD};
_.MN=function(D){var t=t2X();D=t?t.createScriptURL(D):D;return new md(D)};
_.X7=function(D){if(D instanceof md)return D.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.fM=function(D){return Object.isFrozen(D)&&Object.isFrozen(D.raw)};
H26=function(D){return D.toString().indexOf("`")===-1};
AA=function(D){return new _.LM(eDV,D)};
gw=function(D){return D instanceof _.LM};
_.JA=function(D){if(gw(D))return D.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
Yh=function(D){return new V28(function(t){return t.substr(0,D.length+1).toLowerCase()===D+":"})};
_.lM=function(D,t){t=t===void 0?b2T:t;if(gw(D))return D;for(var H=0;H<t.length;++H){var e=t[H];if(e instanceof V28&&e.isValid(D))return AA(D)}};
_.dw=function(D,t){t=t===void 0?b2T:t;return _.lM(D,t)||pM};
_.xh=function(D){var t=window;if(typeof MediaSource!=="undefined"&&D instanceof MediaSource||typeof t.ManagedMediaSource!=="undefined"&&D instanceof t.ManagedMediaSource)return AA(URL.createObjectURL(D));t=D.type;t.toLowerCase()==="application/octet-stream"?t=!0:(t=t.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),t=(t==null?void 0:t.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(t[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(t[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(t[1])||/^font\/[\w-]+$/i.test(t[1])));if(!t)throw Error("Z");return AA(URL.createObjectURL(D))};
_.qk6=function(D){for(var t=_.RE.apply(1,arguments),H=[D[0]],e=0;e<t.length;e++)H.push(String(t[e])),H.push(D[e+1]);return AA(H.join(""))};
_.a7K=function(D){if(!FuR){a:{var t=document.createElement("a");try{t.href=D}catch(H){D=void 0;break a}D=t.protocol;D=D===":"||D===""?"https:":D}return D}try{t=new URL(D)}catch(H){return"https:"}return t.protocol};
_.uM=function(D){D instanceof _.LM?D=_.JA(D):D=wvX.test(D)?D:void 0;return D};
WU=function(D,t){t=_.uM(t);t!==void 0&&(D.href=t)};
Ql=function(D){var t=t2X();D=t?t.createHTML(D):D;return new IE(D)};
BU=function(D){if(D instanceof IE)return D.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.zF=function(D,t){D.src=_.X7(t).toString()};
Z2D=function(D,t){D.setAttribute("sandbox","");for(var H=0;H<t.length;H++)D.sandbox.supports&&!D.sandbox.supports(t[H])||D.sandbox.add(t[H])};
_.hDV=function(D,t,H){D.removeAttribute("srcdoc");switch(t){case 0:if(H instanceof md)throw new sx6("TrustedResourceUrl",0);Z2D(D,[]);t=_.uM(H);t!==void 0&&(D.src=t);break;case 1:if(!(H instanceof md))throw new sx6(typeof H,1);Z2D(D,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.zF(D,H);break;case 2:if(H instanceof md)throw new sx6("TrustedResourceUrl",2);Z2D(D,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
t=_.uM(H);t!==void 0&&(D.src=t);break;default:_.xv(t)}};
_.D7=function(D,t,H,e){t=_.uM(t);return t!==void 0?D.open(t,H,e):null};
_.t6=function(D){D=D===void 0?document:D;var t,H;D=(H=(t=D).querySelector)==null?void 0:H.call(t,"script[nonce]");return D==null?"":D.nonce||D.getAttribute("nonce")||""};
_.Vf=function(D){var t=t2X();D=t?t.createScript(D):D;return new _.e2(D)};
G7V=function(D){if(D instanceof _.e2)return D.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
EpR=function(D){var t=_.t6(D.ownerDocument);t&&D.setAttribute("nonce",t)};
_.bF=function(D,t){D.textContent=G7V(t);EpR(D)};
_.qd=function(D,t){D.src=_.X7(t);EpR(D)};
_.Fq=function(D,t){if(D.nodeType===1&&/^(script|style)$/i.test(D.tagName))throw Error("Z");D.innerHTML=BU(t)};
_.ax=function(D,t,H,e){if(D.length===0)throw Error("Z");D=D.map(function(b){if(b instanceof KuA)b=b.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return b});
var V=H.toLowerCase();if(D.every(function(b){return V.indexOf(b)!==0}))throw Error("aa`"+H);
t.setAttribute(H,e)};
_.wN=function(D,t,H){if(t instanceof md)D.href=_.X7(t).toString(),D.rel=H;else{if(NND.indexOf(H)===-1)throw Error("ba`"+H);t=_.uM(t);t!==void 0&&(D.href=t,D.rel=H)}};
k76=function(D){if(D instanceof Z7)return D.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.TN$=function(D,t){t=_.uM(t);t!==void 0&&(D.href=t)};
c6k=function(D){return _.MN(D)};
jxD=function(D,t){D&&(t=D.indexOf(t),0<=t&&D.splice(t,1))};
sk=function(D){return typeof D==="function"};
$d3=function(D){return D instanceof h6||D&&"closed"in D&&sk(D.remove)&&sk(D.add)&&sk(D.unsubscribe)};
G7=function(){};
Ek=function(D){i2X(function(){throw D;})};
K2=function(D){return D};
Nd=function(){return r6D(_.RE.apply(0,arguments))};
r6D=function(D){return D.length===0?K2:D.length===1?D[0]:function(t){return D.reduce(function(H,e){return e(H)},t)}};
O2K=function(D){var t;return(t=D!=null?D:void 0)!=null?t:Promise};
Ud$=function(D,t){return new kp(function(H){var e=0;return t.schedule(function(){e===D.length?H.complete():(H.next(D[e++]),H.closed||this.schedule())})})};
opV=function(D,t){if(!D)throw Error("ca");return new kp(function(H){var e=new h6;e.add(t.schedule(function(){var V=D[Symbol.asyncIterator]();e.add(t.schedule(function(){var b=this;V.next().then(function(a){a.done?H.complete():(H.next(a.value),b.schedule())})}))}));
return e})};
PFX=function(D,t,H){t=t.schedule(function(){try{H.call(this)}catch(e){D.error(e)}},0);
D.add(t)};
CFk=function(D,t){return new kp(function(H){var e;H.add(t.schedule(function(){e=D[np3]();PFX(H,t,function(){var V=e.next(),b=V.value;V.done?H.complete():(H.next(b),this.schedule())})}));
return function(){var V;return sk((V=e)==null?void 0:V.return)&&e.return()}})};
mdD=function(D,t){return new kp(function(H){var e=new h6;e.add(t.schedule(function(){var V=D[T7]();e.add(V.subscribe({next:function(b){e.add(t.schedule(function(){return H.next(b)}))},
error:function(b){e.add(t.schedule(function(){return H.error(b)}))},
complete:function(){e.add(t.schedule(function(){return H.complete()}))}}))}));
return e})};
M2D=function(D,t){return new kp(function(H){return t.schedule(function(){return D.then(function(e){H.add(t.schedule(function(){H.next(e);H.add(t.schedule(function(){return H.complete()}))}))},function(e){H.add(t.schedule(function(){return H.error(e)}))})})})};
SkK=function(D){return new TypeError("da`"+(D!==null&&typeof D==="object"?"an invalid object":"'"+D+"'"))};
f78=function(D,t){if(D!=null){if(sk(D[T7]))return mdD(D,t);if(XvR(D))return Ud$(D,t);if(sk(D==null?void 0:D.then))return M2D(D,t);if(Symbol.asyncIterator&&sk(D==null?void 0:D[Symbol.asyncIterator]))return opV(D,t);if(sk(D==null?void 0:D[np3]))return CFk(D,t)}throw SkK(D);};
j2=function(D,t){return t?f78(D,t):cv(D)};
cv=function(D){if(D instanceof kp)return D;if(D!=null){if(sk(D[T7]))return LuV(D);if(XvR(D))return A6A(D);if(sk(D==null?void 0:D.then))return gpD(D);if(Symbol.asyncIterator&&sk(D==null?void 0:D[Symbol.asyncIterator]))return J66(D);if(sk(D==null?void 0:D[np3]))return YkD(D)}throw SkK(D);};
LuV=function(D){return new kp(function(t){var H=D[T7]();if(sk(H.subscribe))return H.subscribe(t);throw new TypeError("ea");})};
A6A=function(D){return new kp(function(t){for(var H=0;H<D.length&&!t.closed;H++)t.next(D[H]);t.complete()})};
gpD=function(D){return new kp(function(t){D.then(function(H){t.closed||(t.next(H),t.complete())},function(H){return t.error(H)}).then(null,Ek)})};
YkD=function(D){return new kp(function(t){for(var H=D[np3]();!t.closed;){var e=H.next(),V=e.value;e.done?t.complete():t.next(V)}return function(){return sk(H==null?void 0:H.return)&&H.return()}})};
J66=function(D){return new kp(function(t){l76(D,t).catch(function(H){return t.error(H)})})};
l76=function(D,t){var H,e,V,b,a,w;return _.Z(function(h){switch(h.nextAddress){case 1:_.$p(h,2,3),b=_.iF(D);case 5:return h.yield(b.next(),8);case 8:e=h.yieldResult;if(e.done){h.jumpTo(3);break}a=e.value;t.next(a);h.jumpTo(5);break;case 3:_.rN(h);_.Ok(h,9);if(!e||e.done||!(V=b.return)){h.jumpTo(9);break}return h.yield(V.call(b),9);case 9:_.rN(h,0,0,1);if(H)throw H.error;_.ox(h,10,1);break;case 10:_.ox(h,4);break;case 2:w=_.Pv(h);H={error:w};h.jumpTo(3);break;case 4:t.complete(),_.n2(h)}})};
vpA=function(D,t){return t?Ud$(D,t):A6A(D)};
pvu=function(D){return sk(D[D.length-1])?D.pop():void 0};
C2=function(D){var t=D[D.length-1];return t&&sk(t.schedule)?D.pop():void 0};
mu=function(){var D=_.RE.apply(0,arguments),t=C2(D);return t?Ud$(D,t):vpA(D)};
Md=function(D){var t=sk(D)?D:function(){return D};
return new kp(function(H){return H.error(t())})};
S2=function(D){return function(t){if(sk(t==null?void 0:t.lift))return t.lift(function(H){try{return D(H,this)}catch(e){this.error(e)}});
throw new TypeError("fa");}};
f2=function(){return S2(function(D,t){var H=null;D._refCount++;var e=new Xq(t,void 0,void 0,void 0,function(){if(!D||D._refCount<=0||0<--D._refCount)H=null;else{var V=D._connection,b=H;H=null;!V||b&&V!==b||V.unsubscribe();t.unsubscribe()}});
D.subscribe(e);e.closed||(H=D.connect())})};
xdX=function(){var D=ddD;var t=t===void 0?0:t;return S2(function(H,e){e.add(D.schedule(function(){return H.subscribe(e)},t))})};
L2=function(D){return S2(function(t,H){var e=0;t.subscribe(new Xq(H,function(V){H.next(D.call(void 0,V,e++))}))})};
uqK=function(D){return L2(function(t){return RDA(t)?D.apply(null,_.A6(t)):D(t)})};
BNV=function(D){if(D.length===1){var t=D[0];if(Wuk(t))return{args:t,keys:null};if(t&&typeof t==="object"&&I73(t)===QxR)return D=y6k(t),{args:D.map(function(H){return t[H]}),
keys:D}}return{args:D,keys:null}};
gN=function(){var D=_.RE.apply(0,arguments),t=C2(D),H=pvu(D);D=BNV(D);var e=D.args,V=D.keys;if(e.length===0)return j2([],t);t=new kp(zDk(e,t,V?function(b){for(var a={},w=0;w<b.length;w++)a[V[w]]=b[w];return a}:K2));
return H?t.pipe(uqK(H)):t};
zDk=function(D,t,H){H=H===void 0?K2:H;return function(e){D3V(t,function(){for(var V=D.length,b=Array(V),a=V,w=D.map(function(){return!1}),h=!0,K={i$jscomp$217:0};K.i$jscomp$217<V;K={i$jscomp$217:K.i$jscomp$217},K.i$jscomp$217++)D3V(t,function(N){return function(){j2(D[N.i$jscomp$217],t).subscribe(new J6(e,function(k){b[N.i$jscomp$217]=k;
h&&(w[N.i$jscomp$217]=!0,h=!w.every(K2));h||e.next(H(b.slice()))},function(){return--a===0}))}}(K),e)},e)}};
D3V=function(D,t,H){D?H.add(D.schedule(t)):t()};
tr$=function(D,t,H,e){var V=[],b=0,a=0,w=!1,h=function(K){b++;cv(H(K,a++)).subscribe(new Xq(t,function(N){t.next(N)},void 0,function(){b--;
for(var N={};V.length&&b<e;N={bufferedValue:void 0})N.bufferedValue=V.shift(),h(N.bufferedValue);!w||V.length||b||t.complete()}))};
D.subscribe(new Xq(t,function(K){return b<e?h(K):V.push(K)},void 0,function(){w=!0;
!w||V.length||b||t.complete()}));
return function(){V=null}};
Yp=function(D,t){var H=H===void 0?Infinity:H;if(sk(t))return Yp(function(e,V){return L2(function(b,a){return t(e,b,V,a)})(cv(D(e,V)))},H);
typeof t==="number"&&(H=t);return S2(function(e,V){return tr$(e,V,D,H)})};
HWK=function(D){D=D===void 0?Infinity:D;return Yp(K2,D)};
e5$=function(){var D=_.RE.apply(0,arguments);return HWK(1)(vpA(D,C2(D)))};
VrD=function(D){return new kp(function(t){cv(D()).subscribe(t)})};
lF=function(D,t,H){if(sk(H)){var e=H;H=void 0}if(e)return lF(D,t,H).pipe(uqK(e));e=_.F(sk(D.addEventListener)&&sk(D.removeEventListener)?bWk.map(function(a){return function(w){return D[a](t,w,H)}}):sk(D.addListener)&&sk(D.removeListener)?q5V.map(FJD(D,t)):sk(D.on)&&sk(D.off)?aiR.map(FJD(D,t)):[]);
var V=e.next().value,b=e.next().value;return!V&&XvR(D)?Yp(function(a){return lF(a,t,H)})(vpA(D)):new kp(function(a){if(!V)throw new TypeError("ga");
var w=function(){var h=_.RE.apply(0,arguments);return a.next(1<h.length?h:h[0])};
V(w);return function(){return b(w)}})};
FJD=function(D,t){return function(H){return function(e){return D[H](t,e)}}};
p2=function(){var D=_.RE.apply(0,arguments),t=C2(D);var H=typeof D[D.length-1]==="number"?D.pop():Infinity;return D.length?D.length===1?cv(D[0]):HWK(H)(vpA(D,t)):vv};
ZWD=function(D){return D.length===1&&w_R(D[0])?D[0]:D};
st8=function(){var D=ZWD(_.RE.apply(0,arguments));return S2(function(t,H){var e=[t].concat(_.A6(D)),V=function(){if(!H.closed)if(e.length>0){try{var b=cv(e.shift())}catch(w){V();return}var a=new Xq(H,void 0,G7,G7);H.add(b.subscribe(a));a.add(V)}else H.complete()};
V()})};
xp=function(D){return S2(function(t,H){var e=0;t.subscribe(new Xq(H,function(V){return D.call(void 0,V,e++)&&H.next(V)}))})};
Gtu=function(){var D=_.RE.apply(0,arguments);D=ZWD(D);return D.length===1?cv(D[0]):new kp(h5A(D))};
h5A=function(D){return function(t){for(var H=[],e={i$jscomp$220:0};H&&!t.closed&&e.i$jscomp$220<D.length;e={i$jscomp$220:e.i$jscomp$220},e.i$jscomp$220++)H.push(cv(D[e.i$jscomp$220]).subscribe(new Xq(t,function(V){return function(b){if(H){for(var a=0;a<H.length;a++)a!==V.i$jscomp$220&&H[a].unsubscribe();H=null}t.next(b)}}(e))))}};
EzT=function(){var D=_.RE.apply(0,arguments),t=pvu(D),H=ZWD(D);return H.length?new kp(function(e){var V=H.map(function(){return[]}),b=H.map(function(){return!1});
e.add(function(){V=b=null});
for(var a={sourceIndex$jscomp$1:0};!e.closed&&a.sourceIndex$jscomp$1<H.length;a={sourceIndex$jscomp$1:a.sourceIndex$jscomp$1},a.sourceIndex$jscomp$1++)cv(H[a.sourceIndex$jscomp$1]).subscribe(new Xq(e,function(w){return function(h){V[w.sourceIndex$jscomp$1].push(h);V.every(function(K){return K.length})&&(h=V.map(function(K){return K.shift()}),e.next(t?t.apply(null,_.A6(h)):h),V.some(function(K,N){return!K.length&&b[N]})&&e.complete())}}(a),void 0,function(w){return function(){b[w.sourceIndex$jscomp$1]=
!0;
!V[w.sourceIndex$jscomp$1].length&&e.complete()}}(a)));
return function(){V=b=null}}):vv};
KJ8=function(D){var t,H,e;return!!D&&typeof D.active==="boolean"&&typeof((t=D.clock)==null?void 0:t.now)==="function"&&((H=D.clock)==null?void 0:H.timeline)!==void 0&&!((e=D.lastMeasurement)==null||!e.timestamp)&&typeof D.equivalentTo==="function"&&typeof D.extrapolateToNow==="function"&&typeof D.extrapolateToTime==="function"&&typeof D.map==="function"&&typeof D.joinWith==="function"};
NMV=function(D){function t(H){return typeof H==="boolean"||typeof H==="string"||typeof H==="number"||H===void 0||H===null}
return t(D)?!0:Array.isArray(D)?D.every(t):typeof D==="object"?Object.keys(D).every(function(H){return typeof H==="string"})&&Object.values(D).every(function(H){return Array.isArray(H)?H.every(t):t(H)}):!1};
ktV=function(D){if(NMV(D))return D;if(KJ8(D))return{lastMeasurement:{value:ktV(D.lastMeasurement.value),timestamp:Rx(D.lastMeasurement.timestamp,new uF(0,D.lastMeasurement.timestamp.timeline))},active:D.active};try{return JSON.parse(JSON.stringify(D))}catch(t){}return String(D)};
Wv=function(D,t){return function(H){return new kp(function(e){return H.subscribe(function(V){D.timeExecution(t,function(){e.next(V)})()},function(V){D.timeExecution(t,function(){e.error(V)})()},function(){D.timeExecution(t,function(){e.complete()})()})})}};
TM$=function(D,t){var H=!1;return new kp(function(e){var V=D.setTimeout(function(){H=!0;e.next(!0);e.complete()},t);
return function(){H||D.clearTimeout(V)}})};
c$K=function(D){D=D.global;if(D.fetchLater)return D.fetchLater.bind(D)};
Ix=function(D){return S2(function(t,H){var e=null,V=!1,b;e=t.subscribe(new Xq(H,void 0,function(a){b=cv(D(a,Ix(D)(t)));e?(e.unsubscribe(),e=null,b.subscribe(H)):V=!0}));
V&&(e.unsubscribe(),e=null,b.subscribe(H))})};
jtu=function(D,t,H){return function(e,V){var b=H,a=t,w=0;e.subscribe(new Xq(V,function(h){var K=w++;a=b?D(a,h,K):(b=!0,h);V.next(a)},void 0,void 0))}};
$38=function(D){D=D===void 0?null:D;return S2(function(t,H){var e=!1;t.subscribe(new Xq(H,function(V){e=!0;H.next(V)},void 0,function(){e||H.next(D);
H.complete()}))})};
Qf=function(){return S2(function(D,t){D.subscribe(new Xq(t,G7))})};
yf=function(D){return S2(function(t,H){t.subscribe(new Xq(H,function(){return H.next(D)}))})};
Bv=function(D){return D<=0?function(){return vv}:S2(function(t,H){var e=0;
t.subscribe(new Xq(H,function(V){++e<=D&&(H.next(V),D<=e&&H.complete())}))})};
Di=function(D){var t=t===void 0?K2:t;var H;D=(H=D)!=null?H:iWD;return S2(function(e,V){var b,a=!0;e.subscribe(new Xq(V,function(w){var h=t(w);if(a||!D(b,h))a=!1,b=h,V.next(w)}))})};
iWD=function(D,t){return D===t};
OWK=function(D){D=D===void 0?r$8:D;return S2(function(t,H){var e=!1;t.subscribe(new Xq(H,function(V){e=!0;H.next(V)},void 0,function(){return e?H.complete():H.error(D())}))})};
r$8=function(){return new U3K};
t$=function(){var D=_.RE.apply(0,arguments);return function(t){return e5$(t,mu.apply(null,_.A6(D)))}};
ozR=function(D){return S2(function(t,H){var e=0;t.subscribe(new Xq(H,function(V){D.call(void 0,V,e++,t)||(H.next(!1),H.complete())},void 0,function(){H.next(!0);
H.complete()}))})};
PRV=function(){return S2(function(D,t){var H=[];D.subscribe(new Xq(t,function(e){H.push(e);1<H.length&&H.shift()},void 0,function(){for(var e=_.F(H),V=e.next();!V.done;V=e.next())t.next(V.value);
t.complete()},function(){H=null}))})};
nzV=function(D,t){var H=arguments.length>=2;return function(e){return e.pipe(D?xp(function(V,b){return D(V,b,e)}):K2,PRV(),H?$38(t):OWK(function(){return new U3K}))}};
er=function(D){var t=sk(D)?D:function(){return D};
return sk()?S2(function(H,e){var V=t();(void 0)(V).subscribe(e).add(H.subscribe(V))}):function(H){var e=new H_(H,t);
sk(H==null?void 0:H.lift)&&(e.lift=H.lift);e.source=H;e.subjectFactory=t;return e}};
bR=function(D){var t=new Vo(D,void 0,void 0);return function(H){return er(function(){return t})(H)}};
q3=function(D,t){return S2(jtu(D,t,arguments.length>=2))};
Fw=function(){var D=_.RE.apply(0,arguments),t=C2(D);return S2(function(H,e){(t?e5$(D,H,t):e5$(D,H)).subscribe(e)})};
at=function(D){return S2(function(t,H){var e=null,V=0,b=!1;t.subscribe(new Xq(H,function(a){var w;(w=e)==null||w.unsubscribe();w=V++;cv(D(a,w)).subscribe(e=new Xq(H,function(h){return H.next(h)},void 0,function(){e=null;
b&&!e&&H.complete()}))},void 0,function(){(b=!0,!e)&&H.complete()}))})};
wM=function(D,t){t=t===void 0?!1:t;return S2(function(H,e){var V=0;H.subscribe(new Xq(e,function(b){var a=D(b,V++);(a||t)&&e.next(b);!a&&e.complete()}))})};
CRT=function(D,t,H){var e=sk(D)||t||H?{next:D,error:t,complete:H}:D;return e?S2(function(V,b){V.subscribe(new Xq(b,function(a){var w;(w=e.next)==null||w.call(e,a);b.next(a)},function(a){var w;
(w=e.error)==null||w.call(e,a);b.error(a)},function(){var a;
(a=e.complete)==null||a.call(e);b.complete()}))}):K2};
m3D=function(){var D=_.RE.apply(0,arguments),t=pvu(D);return S2(function(H,e){for(var V=D.length,b=Array(V),a=D.map(function(){return!1}),w=!1,h={i$jscomp$230:0};h.i$jscomp$230<V;h={i$jscomp$230:h.i$jscomp$230},h.i$jscomp$230++)cv(D[h.i$jscomp$230]).subscribe(new Xq(e,function(K){return function(N){b[K.i$jscomp$230]=N;
w||a[K.i$jscomp$230]||(a[K.i$jscomp$230]=!0,(w=a.every(K2))&&(a=null))}}(h),void 0,G7));
H.subscribe(new Xq(e,function(K){w&&(K=[K].concat(_.A6(b)),e.next(t?t.apply(null,_.A6(K)):K))}))})};
S53=function(D){var t=Mru;if(t)for(var H in t)Object.prototype.hasOwnProperty.call(t,H)&&D(t[H],H,t)};
X_D=function(){var D=[];S53(function(t){D.push(t)});
return D};
LJR=function(D){try{return!!D&&D.location.href!=null&&fi8(D,"foo")}catch(t){return!1}};
_.Zi=function(D){return new KuA(D[0].toLowerCase())};
A$u=function(D){for(var t=_.RE.apply(1,arguments),H=D[0],e=0;e<D.length-1;e++)H+=String(t[e]),H+=D[e+1];t=document.implementation.createHTMLDocument("");e=t.createElement("style");t.head.appendChild(e);t=e.sheet;t.insertRule(H,0);if(t.cssRules.length===1&&(H=t.cssRules[0],H instanceof CSSStyleRule))return new Z7(H.cssText.replace(/</g,"\\3C "))};
gzR=function(D){try{return new URL(D,window.document.baseURI)}catch(t){return new URL("about:invalid")}};
J$V=function(D,t){var H=t.createRange();H.selectNode(t.body);D=Ql(D);return H.createContextualFragment(BU(D))};
Y5k=function(D){D=D.nodeName;return typeof D==="string"?D:"FORM"};
lik=function(D){D=D.nodeType;return D===1||typeof D!=="number"};
Gt=function(D,t,H){D.setAttribute(t,H)};
vz8=function(D){return D.parts.map(function(t){var H=t.descriptor;return""+t.url+(H?" "+H:"")}).join(" , ")};
_.E5=function(D){var t=_.RE.apply(1,arguments);if(t.length===0)return _.MN(D[0]);for(var H=D[0],e=0;e<t.length;e++)H+=encodeURIComponent(t[e])+D[e+1];return _.MN(H)};
_.N3=function(D,t){D=_.X7(D).toString();var H=D.split(/[?#]/),e=/[?]/.test(D)?"?"+H[1]:"";return p_6(H[0],e,/[#]/.test(D)?"#"+(e?H[2]:H[1]):"",t)};
p_6=function(D,t,H,e){function V(a,w){a!=null&&(Array.isArray(a)?a.forEach(function(h){return V(h,w)}):(t+=b+encodeURIComponent(w)+"="+encodeURIComponent(a),b="&"))}
var b=t.length?"&":"?";e.constructor===Object&&(e=Object.entries(e));Array.isArray(e)?e.forEach(function(a){return V(a[1],a[0])}):e.forEach(V);
return _.MN(D+t+H)};
d3A=function(D){var t=[],H=0,e;for(e in D)t[H++]=e;return t};
x3V=function(D,t){for(var H in D)if(D[H]==t)return!0;return!1};
R5A=function(D,t,H){for(var e in D)if(t.call(H,D[e],e,D))return e};
uwR=function(D){if(!D||typeof D!=="object")return D;if(typeof D.clone==="function")return D.clone();if(typeof Map!=="undefined"&&D instanceof Map)return new Map(D);if(typeof Set!=="undefined"&&D instanceof Set)return new Set(D);if(D instanceof Date)return new Date(D.getTime());var t=Array.isArray(D)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(D)||D instanceof DataView?{}:new D.constructor(D.length),H;for(H in D)t[H]=uwR(D[H]);return t};
WJD=function(D){var t=arguments.length;if(t==1&&Array.isArray(arguments[0]))return WJD.apply(null,arguments[0]);if(t%2)throw Error("ma");for(var H={},e=0;e<t;e+=2)H[arguments[e]]=arguments[e+1];return H};
IiV=function(D){var t=arguments.length;if(t==1&&Array.isArray(arguments[0]))return IiV.apply(null,arguments[0]);for(var H={},e=0;e<t;e++)H[arguments[e]]=!0;return H};
kz=function(D,t,H,e){this.top=D;this.right=t;this.bottom=H;this.left=e};
QtV=function(D){D=D.global;if(D.PendingGetBeacon)return D.PendingGetBeacon};
c_=function(D){return function(t){return t.pipe(y$A(D,er(new Tt)))}};
jr=function(D){return function(t){return t.pipe(y$A(D,bR(1)))}};
y$A=function(D,t){function H(e){return new kp(function(V){return e.subscribe(function(b){$z(D,function(){return void V.next(b)},3)},function(b){$z(D,function(){return void V.error(b)},3)},function(){$z(D,function(){return void V.complete()},3)})})}
return Nd(H,xdX(),t,f2(),H)};
DcV=function(D){var t=BMk(D);return t===null?new iR(null):t.pipe(L2(function(H){H=H.serialize();if(z53)H=_.VA.btoa(H);else{for(var e=[],V=0,b=0;b<H.length;b++){var a=H.charCodeAt(b);a>255&&(e[V++]=a&255,a>>=8);e[V++]=a}H=_.XF(e)}return H}),Bv(1),jr(D.queue))};
tTD=function(D){var t=t===void 0?{}:t;if(typeof Event==="function")return new Event(D,t);if(typeof document!=="undefined"){var H=document.createEvent("CustomEvent");H.initCustomEvent(D,t.bubbles||!1,t.cancelable||!1,t.detail);return H}throw Error();};
HNk=function(D){return typeof D==="string"?document.getElementById(D):D};
VT$=function(D){var t=!1;t=t===void 0?!1:t;if(D.tagName==="IMG"){if(D.complete&&(!D.naturalWidth||!D.naturalHeight))return!0;var H;if(t&&((H=D.style)==null?void 0:H.display)==="none")return!0}var e,V;return et3.test((e=D.getAttribute("width"))!=null?e:"")&&et3.test((V=D.getAttribute("height"))!=null?V:"")};
bNV=function(D,t){if(D.tagName==="IMG")return D.naturalWidth&&D.naturalHeight?!0:!1;try{if(D.readyState)var H=D.readyState;else{var e,V;H=(e=D.contentWindow)==null?void 0:(V=e.document)==null?void 0:V.readyState}return H==="complete"}catch(b){return t===void 0?!1:t}};
qHV=function(D){D||(D=function(t,H,e){t.addEventListener(H,e)});
return D};
ZNV=function(D,t){var H=FgV();H=H===void 0?new al8:H;if(D=HNk(D)){var e=qHV(e);for(var V=!1,b=function(L){V||(V=!0,t(L))},a,w=2,h=0;h<w1D.length;++h)if(w1D[h]===D.tagName){w=3;
a=[D];break}a||(a=D.querySelectorAll(w1D.join(",")));var K=0,N=0,k=!0,T=D=!1;h={};for(var c=0;c<a.length;h={isImg:void 0},c++){var U=a[c];if(!VT$(U))if(h.isImg=U.tagName==="IMG",bNV(U,H.crossDomainLoadedDefault))D=!0,h.isImg&&(k=!0);else{K++;var S=function(L){return function(J){K--;!K&&k&&b(w);L.isImg&&(J=J&&J.type==="error",N--,J||(k=!0),!N&&T&&k&&b(w))}}(h);
e(U,"load",S);h.isImg&&(N++,e(U,"error",S))}}N===0&&(k=!0);a=null;a=_.VA.document.readyState==="complete";if(K===0&&!D&&a)w=5;else if(K||!D){e(_.VA,"load",function(){!H.pendingImagesBlockLoad||!N&&k?b(4):T=!0});
return}b(w)}};
sKT=function(D,t,H){if(D)for(var e=0;D!=null&&e<500&&!H(D);++e)D=t(D)};
htT=function(D,t){sKT(D,function(H){try{return H===H.parent?null:H.parent}catch(e){}return null},t)};
GxK=function(D,t){if(D.tagName=="IFRAME")t(D);else{D=D.querySelectorAll("IFRAME");for(var H=0;H<D.length&&!t(D[H]);++H);}};
EOX=function(D){return(D=D.ownerDocument)&&(D.parentWindow||D.defaultView)||null};
Kg8=function(D,t,H){try{var e=JSON.parse(H.data)}catch(a){}if(typeof e==="object"&&e&&e.type==="creativeLoad"){var V=EOX(D);if(H.source&&V){var b;htT(H.source,function(a){try{if(a.parent===V)return b=a,!0}catch(w){}});
b&&GxK(D,function(a){if(a.contentWindow===b)return t(e),!0})}}};
NVV=function(D){return typeof D==="string"?document.getElementById(D):D};
jKV=function(){var D={};return D[0]=_.E5(kxX,"current"),D[1]=_.E5(TVX),D[2]=_.E5(ceV),D};
rM=function(D,t){return D.left===t.left&&D.top===t.top&&D.width===t.width&&D.height===t.height};
$c8=function(D,t){return{left:Math.max(D.left,t.left),top:Math.max(D.top,t.top),width:Math.max(0,Math.min(D.left+D.width,t.left+t.width)-Math.max(D.left,t.left)),height:Math.max(0,Math.min(D.top+D.height,t.top+t.height)-Math.max(D.top,t.top))}};
iN8=function(D,t){return{left:Math.round(D.left+t.x),top:Math.round(D.top+t.y),width:D.width,height:D.height}};
reD=function(D,t,H){if(D&&t!==null&&t!=t.top){if(!t.top)return new _.O5(-12245933,-12245933);t=t.top}try{return(H===void 0?0:H)?(new _.O5(t.innerWidth,t.innerHeight)).round():_.U5(t).round()}catch(e){return new _.O5(-12245933,-12245933)}};
ONV=function(D,t,H){try{if(D){if(!t.top)return new kz(-12245933,-12245933,-12245933,-12245933);t=t.top}var e=reD(D,t,H),V=e.height,b=e.width;if(b===-12245933)return new kz(b,b,b,b);var a=ot(mJ(t.document)),w=a.x,h=a.y;return new kz(h,w+b,h+V,w)}catch(K){return new kz(-12245933,-12245933,-12245933,-12245933)}};
UcT=function(D){var t;return(t=D.google_tag_data)!=null?t:D.google_tag_data={}};
oO8=function(D){var t,H;return typeof((t=D.navigator)==null?void 0:(H=t.userAgentData)==null?void 0:H.getHighEntropyValues)==="function"};
nOR=function(D){if(!oO8(D))return null;var t=UcT(D);if(t.uach_promise)return t.uach_promise;D=D.navigator.userAgentData.getHighEntropyValues(PzD).then(function(H){t.uach!=null||(t.uach=H);return H});
return t.uach_promise=D};
ll6=function(D){var t;return Czk(mc6(MT8(SHu(X1u(flA(LgD(AeK(gO$(new JeV,D.architecture||""),D.bitness||""),D.mobile||!1),D.model||""),D.platform||""),D.platformVersion||""),D.uaFullVersion||""),((t=D.fullVersionList)==null?void 0:t.map(function(H){var e=new YHu;e=_.M3(e,1,H.brand);return _.M3(e,2,H.version)}))||[]),D.wow64||!1)};
vO3=function(D){var t,H;return(H=(t=nOR(D))==null?void 0:t.then(function(e){return ll6(e)}))!=null?H:null};
p1u=function(D,t){return new kp(function(H){var e=!1,V=Array(t.length);V.fill(void 0);var b=new Set,a=new Set,w=function(k,T){D.running?(V[T]=k,b.add(T),e||(e=!0,$z(D,function(){e=!1;H.next(_.pK(V))},1))):H.error(new Xw(T))},h=function(k,T){a.add(T);
b.add(T);$z(D,function(){H.error(k)},1)},K=function(k){a.add(k);
$z(D,function(){a.size===t.length&&H.complete()},1)},N=t.map(function(k,T){return k.subscribe(function(c){return void w(c,T)},function(c){return void h(c,T)},function(){return void K(T)})});
return function(){N.forEach(function(k){return void k.unsubscribe()})}})};
RtX=function(D,t,H){function e(){if(t.debugChannel){var L=t.debugChannel,J=L.next;var g={creativeId:t.debugNames.getName(H),requiredSignals:V,signals:Object.assign({},b),hasPrematurelyCompleted:a,errorMessage:w,erroredSignalKey:h};g={specMajor:2,specMinor:0,specPatch:0,timestamp:Rx(t.timeProvider.now(),new uF(0,t.timeProvider.timeline)),instanceId:t.debugNames.getName(t.symbol),creativeState:g};J.call(L,g)}}
for(var V=Object.keys(D),b={},a=!1,w=null,h=null,K={},N=new Set,k=[],T=[],c=_.F(V),U=c.next(),S={};!U.done;S={key$jscomp$394:void 0},U=c.next())S.key$jscomp$394=U.value,U=D[S.key$jscomp$394],U instanceof iR?(K[S.key$jscomp$394]=U.value,N.add(S.key$jscomp$394),t.debugChannel&&(b[String(S.key$jscomp$394)]=ktV(U.value))):(U=U.pipe(Di(function(L,J){return KJ8(L)||KJ8(J)?!1:L===J}),L2(function(L){return function(J){t.debugChannel&&(b[String(L.key$jscomp$394)]=ktV(J),e());
var g={};return g[L.key$jscomp$394]=J,g}}(S)),Ix(function(L){return function(J){if(J instanceof Xw)throw new dcK(String(L.key$jscomp$394));
throw J;}}(S)),CRT(function(L){return function(){N.add(L.key$jscomp$394)}}(S),function(L){return function(J){h=String(L.key$jscomp$394);
w=String(J);e()}}(S),function(L){return function(){N.has(L.key$jscomp$394)||(a=!0,e())}}(S))),T.push(S.key$jscomp$394),k.push(U));
(D=Object.keys(b).length>0)&&e();c=p1u(t.queue,k).pipe(Ix(function(L){if(L instanceof Xw)throw new xcV(String(T[L.inputObservableIndex]));throw L;}),L2(function(L){return Object.freeze(Object.assign.apply(Object,[{},
K].concat(_.A6(L))))}));
return(k=k.length>0)&&D?p2(mu(Object.freeze(K)),c):k?c:mu(Object.freeze(K))};
usD=function(D,t,H,e,V){return D.performanceMonitor.timeExecution.bind(D.performanceMonitor)(733,function(){var b={};try{return t.pipe(Ix(function(a){e(Object.assign({},b,{error:a}));return vv}),Yp(function(a){try{var w=H(D,a)}catch(K){return e(Object.assign({},b,{error:K instanceof Error?K:String(K)})),vv}var h={};
return RtX(w,D,a.symbol).pipe(CRT(function(K){h=K}),bR(1),f2()).pipe(V,Ix(function(K){e(Object.assign({},h,{error:K}));
return vv}),t$(void 0),L2(function(){return!0}))})).pipe(q3(function(a){return a+1},0),Ix(function(a){e(Object.assign({},b,{error:a}));
return vv}))}catch(a){return e(Object.assign({},b,{error:a})),vv}})()};
fW=function(D){var t=new Map;if(typeof D!=="object"||D===null)return t;Object.values(D).forEach(function(H){H&&typeof H.extrapolateToNow==="function"&&(t.has(H.clock.timeline)||t.set(H.clock.timeline,H.clock.now()))});
return t};
Wg3=function(D,t){return typeof D==="string"?encodeURIComponent(D):typeof D==="number"?String(D):Array.isArray(D)?D.map(function(H){return Wg3(H,t)}).join(","):D instanceof uF?D.toString():D&&typeof D.extrapolateToNow==="function"?Wg3(D.extrapolateUsingTimestampMap(t).value,t):D===!0?"1":D===!1?"0":D===void 0||D===null?null:D instanceof IlA?QK8(D):[D.top,
D.left,D.top+D.height,D.left+D.width].join()};
yeT=function(D,t){D=Object.entries(D).map(function(H){var e=_.F(H);H=e.next().value;e=e.next().value;e=Wg3(e,t);return e===null?"":H+"="+e}).filter(function(H){return H!==""});
return D.length?D.join("&"):""};
DpV=function(D,t){var H=BVV,e=zt8;t=t===void 0?.01:t;return function(V){t>0&&Math.random()<=t&&(D.global.HTMLFencedFrameElement&&D.global.fence&&typeof D.global.fence.reportEvent==="function"&&D.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),V=Object.assign({},V,{errorMessage:V.error instanceof Error&&V.error.message?V.error.message:String(V.error),errorStack:V.error instanceof Error&&V.error.stack?String(V.error.stack):null,errorName:V.error instanceof
Error&&V.error.name?String(V.error.name):null,errorContext:String(D.performanceMonitor.timedFunctionContext),errorEscapedQueryId:V.escapedQueryId}),H(Object.assign({},V,{payloadMapper:function(){return function(b){try{return e(Object.assign({},b))}catch(a){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),fW(V)).forEach(function(b){D.beaconFactory.makeBeacon(b).sendNow()}))}};
tjV=function(){var D=_.RE.apply(0,arguments);return function(t){var H=t.pipe(bR(1),f2());t=D.map(function(e){return H.pipe(e,t$(!0))});
return gN(t).pipe(Bv(1),Qf())}};
HR6=function(){var D=_.RE.apply(0,arguments);return function(t){var H=t.pipe(bR(1),f2());t=D.map(function(e){return H.pipe(e,t$(!0))});
return p2.apply(null,_.A6(t)).pipe(Bv(1),Qf())}};
ee$=function(D,t){return function(H){var e=H.pipe(bR(1),f2());H=e.pipe(D,t$(!0));e=e.pipe(Nd(t,bR(),f2()),t$(!0));H=gN([H,e]);return Gtu(H,e).pipe(Bv(1),Qf())}};
VjK=function(D,t,H){H(!0)};
bRD=function(D,t){return Nd(at(function(H){var e=D(H),V=t(H),b={};return e&&V&&b?new kp(function(a){V(e,b,function(w){a.next(Object.assign({},H,{canEmit:w}));a.complete()});
return function(){}}):LW}),xp(function(H){return H.canEmit}))};
qPu=function(D){var t={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(H){return H.pipe(at(function(e){return new kp(function(V){function b(){w.disconnect();h.unsubscribe()}
var a=D.MutationObserver;if(a&&e.ref!==void 0){var w=new a(function(K){V.next(K)});
w.observe(e.ref,t);var h=e.JSC$9364_released.subscribe(b);return b}})}))}};
FG8=function(D){if(D.measurementDeferralState===3)return null;if(D.timeOnScreenReason!==void 0){var t=D.creativeFound===!1?"n":null;if(t!==null)return t}return D.geometricMeasurementErrors instanceof A$?"msf":D.contextValidationErrors instanceof gM?"c":D.contextVisibilityKnown===!1?"pv":D.geometricMeasurementErrors||D.contextValidationErrors?"x":null};
wIV=function(D,t){return D.replace(a_A,function(H,e){try{var V=_.J$.get(t,e);if(V==null||V.toString()==null)return H;V=V.toString();if(V==""||!_.sD(V==null?"":String(V)))return encodeURIComponent(V).replace(/%2C/g,",")}catch(b){}return H})};
ZR8=function(D,t){var H=Object.assign({},D),e=D.userAgentClientHints;H=(delete H.userAgentClientHints,H);H=D.payloadMapper(H);var V=yeT(H,t);return _.Yz(D.urlPrefixes,function(b){var a="";typeof e==="string"&&(a="&"+yeT({uach:e},t));var w={};return wIV(b,(w.VIEWABILITY=V,w))+a})};
BVV=function(D,t){var H=D.payloadMapper(D),e=yeT(H,t);return e?_.Yz(D.urlPrefixes,function(V){V=V.indexOf("?")>=0?V:V+"?";V="?&".indexOf(V.slice(-1))>=0?V:V+"&";return V+e}):D.urlPrefixes};
sZ8=function(){return Nd(xp(function(D){return D!==void 0}),L2(function(D){return D}))};
he$=function(D){return Nd(L2(function(){return!0}),Fw(!1),jr(D))};
GpV=function(D){return D.length<=0?vv:gN(D.map(function(t){var H=0;return t.pipe(L2(function(e){return{index:H++,value:e}}))})).pipe(xp(function(t){return t.every(function(H){return H.index===t[0].index})}),L2(function(t){return t.map(function(H){return H.value})}))};
EMR=function(D,t){D.currentState&&(D.previousState=D.currentState);D.currentState=t;D.previousState&&D.previousState.value?(t=Math.max(0,Rx(t.timestamp,D.previousState.timestamp)),D.totalTime+=t,D.consecutiveTime+=t):D.consecutiveTime=0;return D};
KGK=function(){return Nd(q3(EMR,{totalTime:0,consecutiveTime:0}),L2(function(D){return D.totalTime}))};
N_X=function(){return Nd(q3(EMR,{totalTime:0,consecutiveTime:0}),L2(function(D){return D.consecutiveTime}))};
kpu=function(D,t){return function(H){return GpV(t.map(function(e){return H.pipe(D(e))}))}};
T_$=function(){var D;return Nd(CRT(function(t){return void(D=t.timestamp)}),N_X(),L2(function(t){return{timestamp:D,
value:Math.round(t)}}))};
cLu=function(D,t){return rM(D.topWindowViewportExternalGeometry,t.topWindowViewportExternalGeometry)&&rM(D.elementGeometry,t.elementGeometry)&&rM(D.exposedViewportLocalGeometry,t.exposedViewportLocalGeometry)&&rM(D.intersectionGeometry,t.intersectionGeometry)&&D.elementGeometrySourceName===t.elementGeometrySourceName&&D.measurementRequests===t.measurementRequests&&D.viewportGeometrySourceName===t.viewportGeometrySourceName&&D.viewportLocalAppOffset.x===t.viewportLocalAppOffset.x&&D.viewportLocalAppOffset.y===
t.viewportLocalAppOffset.y};
rLD=function(D,t){return function(H){return function(e){var V=e.pipe(er(new Tt),f2());e=H.element.pipe(Di());V=V.pipe(L2(function(b){return b.value}));
return gN([e,V,t]).pipe(L2(function(b){var a=_.F(b);b=a.next().value;var w=a.next().value;a=a.next().value;if(b.ref===void 0)var h={top:0,left:0,width:0,height:0};else{h=b.ref.getBoundingClientRect();var K=b.ref,N=D.global,k=new _.lR(0,0),T=v_(_.pW(K));if(fi8(T,"parent")){do{if(T==N)var c=_.dM(K);else c=jZA(K),c=new _.lR(c.left,c.top);k.x+=c.x;k.y+=c.y}while(T&&T!=N&&T!=T.parent&&(K=T.frameElement)&&(T=T.parent))}h={top:k.y,left:k.x,width:h.width,height:h.height}}h=iN8(h,w.viewportLocalAppOffset);
N=$c8(h,w.exposedViewportLocalGeometry);k=D.timeProvider.now();T=Object;K=T.assign;if(a!==2||D.inCrossDomainIframe||N.width<=0||N.height<=0)var U=!1;else try{var S=D.document.elementFromPoint(N.left+N.width/2,N.top+N.height/2);U=S?!$p8(S,b):!1}catch(L){U=!1}return{timestamp:k,value:K.call(T,{},w,{elementGeometrySourceName:"geo",intersectionGeometry:U?iRk.intersectionGeometry:N,elementGeometry:h})}}),c_(D.queue))}}};
$p8=function(D,t,H){H=H===void 0?0:H;return D.ref===void 0||t.ref===void 0?!1:D.ref===t.ref||_.xz(t.ref,function(e){return e===D.ref})?!0:t.ref.ownerDocument&&t.ref.ownerDocument.defaultView&&t.ref.ownerDocument.defaultView===t.ref.ownerDocument.defaultView.top?!1:H<10&&t.ref.ownerDocument&&t.ref.ownerDocument.defaultView&&t.ref.ownerDocument.defaultView.frameElement?$p8(D,new Rt(t.ref.ownerDocument.defaultView.frameElement),H+1):!0};
oMX=function(D){return function(t){return t.pipe(D.ResizeObserver?ORV(D):Upk(D),bR(1),f2())}};
ORV=function(D){return function(t){return t.pipe(at(function(H){var e=D.ResizeObserver;if(!e||H.ref===void 0)return mu(iRk.elementGeometry);var V=(new kp(function(b){function a(){H.ref!==void 0&&w.unobserve(H.ref);w.disconnect();h.unsubscribe()}
if(H.ref===void 0)return b.complete(),function(){};
var w=new e(function(K){K.forEach(function(N){b.next(N)})});
w.observe(H.ref);var h=H.JSC$9364_released.subscribe(a);return a})).pipe(Wv(D.performanceMonitor,736),L2(function(b){return b.contentRect}));
return p2(mu(H.ref.getBoundingClientRect()),V)}),Di(rM))}};
Upk=function(D){return function(t){var H=t.pipe(qPu(D)),e=D.onResize;H=p2(t.pipe(L2(function(){return tTD("resize")})),H,e);
return gN(t,H).pipe(Wv(D.performanceMonitor,737),L2(function(V){V=_.F(V).next().value;return V.ref===void 0?void 0:V.ref.getBoundingClientRect()}),sZ8(),Di(rM))}};
CD6=function(D,t){var H=PDu(D,t).pipe(bR(1),f2());return function(e){return function(V){V=V.pipe(at(function(b){return b.element}),Di());
return gN([H,V]).pipe(at(function(b){var a=_.F(b);b=a.next().value;a=a.next().value;return nMD(D,b.intersectionObserver,oMX(D),b.observations,e,b.flushRecords,a)}),c_(D.queue))}}};
mpA=function(D){return L2(function(t){return t.value.viewportGeometrySourceName!=="nio"?t:Object.assign({},t,{value:Object.assign({},t.value,{exposedViewportLocalGeometry:uR(D,!0),topWindowViewportExternalGeometry:uR(D,!0)})})})};
Mjk=function(D,t){return mu(t).pipe(D,L2(function(){return t}))};
PDu=function(D,t){return D.timeProvider.timeline!==SPR?Md(new A$(2)):D.MutationObserver?typeof IntersectionObserver==="undefined"?Md(new A$(0)):(new kp(function(H){var e=new Tt,V=new W_(e.next.bind(e),{threshold:[].concat(_.A6(t))});H.next({observations:e.pipe(Wv(D.performanceMonitor,735)),intersectionObserver:V,flushRecords:function(b){b=V.takeRecords(b);b.length>0&&e.next(b)}})})).pipe(Bv(1),bR(1),f2()):Md(new A$(1))};
XIk=function(D){return f78(D.sort(function(t,H){return t.time-H.time}),ddD)};
nMD=function(D,t,H,e,V,b,a){return new kp(function(w){function h(){U||(U=!0,a.ref!==void 0&&t.unobserve(V,a.ref),N.unsubscribe(),c.unsubscribe(),T.unsubscribe(),S.unsubscribe())}
if(a.ref!==void 0){f_8(t,V);t.observe(V,a.ref);var K=new It({timestamp:D.timeProvider.now(),value:Object.assign({},iRk,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),N=e.pipe(Yp(function(L){return XIk(L)}),xp(function(L){return L.target===a.ref}),L2(function(L){return{timestamp:new uF(L.time,SPR),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:L.rootBounds||yo,topWindowViewportExternalGeometry:L.rootBounds||uR(D,!0),measurementRequests:k,elementGeometrySourceName:"nio",intersectionGeometry:L.intersectionRect,elementGeometry:L.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:L.isIntersecting,isV2Visible:L.isVisible}}}),er(K),f2()).subscribe(w),k=new Tt,T=k.subscribe(function(){b(V);
w.next({timestamp:D.timeProvider.now(),value:K.value.value});a.ref!==void 0&&(t.unobserve(V,a.ref),t.observe(V,a.ref))}),c=Mjk(H,a).subscribe(function(){k.next()}),U=!1,S=a.JSC$9364_released.subscribe(function(){return h()});
return h}})};
LGV=function(D,t){var H=D.getOnBackgrounded().pipe(L2(function(){return"b"}));
return Gtu(t,H).pipe(Bv(1),jr(D.queue))};
B_=function(D){return function(t){var H;return t.pipe(CRT(function(e){return void(H=e.timestamp)}),L2(function(e){return e.value}),D,L2(function(e){return{timestamp:H,
value:e}}))}};
AL$=function(D){return D.intersectionGeometry.width*D.intersectionGeometry.height/(D.elementGeometry.width*D.elementGeometry.height)};
zt=function(D,t,H){H=H===void 0?function(e,V){return e===V}:H;
return D.timestamp.equals(t.timestamp)&&H(D.value,t.value)};
te=function(D,t){return t.pipe(L2(function(H){return new Dl(D.timeProvider,{timestamp:D.timeProvider.now(),value:H})}))};
gM8=function(D){return function(t){return t.pipe(m3D(D),L2(function(H){var e=_.F(H);H=e.next().value;e=e.next().value;var V=H.value;return{timestamp:H.timestamp,value:V>=1?!0:V<=0?!1:V>=e}}))}};
YPR=function(){return Nd(xp(function(D,t){return t>0}),JLD,Fw(-1),Di())};
l_k=function(D,t,H){return D?gN([t,H]).pipe(xp(function(e){var V=_.F(e);e=V.next().value;V=V.next().value;return e.timestamp.equals(V.timestamp)}),L2(function(e){var V=_.F(e);
e=V.next().value;V=V.next().value;return e.value>V.value?e:V})):t};
dpA=function(D){return function(t){var H=t.pipe(vMD),e=t.pipe(pI3);return D instanceof kp?D.pipe(at(function(V){return l_k(V,H,e)})):l_k(D.value,H,e)}};
D2k=function(D,t,H,e){var V=e.geometryIsOccluded,b=e.exposureThreshold,a=e.wasLargeAdAtRender,w=e.allowLargeAdThreshold,h=e.largeAdExposureThreshold,K=e.mayUseViewportShareExposure,N=e.hasMeasurementStarted;e=e.useIntersectionObserverV2;t=xpD(D,H,t);H=ReX(D,H);e=u2k(t,e);var k=WGT(D,V,K,t),T=k.pipe(L2(function(R){return R.value}),Di(),jr(D),q3(function(R,I){return Math.max(R,I)},0)),c=k.pipe(L2(function(R){return R.value}),YPR(),jr(D)),U=t.pipe(I_D,L2(function(R){return R.value}),Bv(2),Di(),jr(D));
a=QZX(D,t,a,w);var S=a.pipe(Fw(!1),Di(),L2(function(R){return R?h:b}));
w=k.pipe(gM8(S),Di(),jr(D));var L=gN([w,t]).pipe(xp(function(R){var I=_.F(R);R=I.next().value;I=I.next().value;return R.timestamp.equals(I.timestamp)}),L2(function(R){var I=_.F(R);
R=I.next().value;I=I.next().value;return{visible:R.value,geometry:I.value.elementGeometry}}),q3(function(R,I){return!I.visible&&R.visible?R:I},{visible:!1,
geometry:yo}),L2(function(R){return R.geometry}),Fw(yo),jr(D),Di(rM));
K=K instanceof kp?K.pipe(Di(),yf()):LW;S=gN([K,S]).pipe(yf());var J=t.pipe(xp(function(R){return R.value.viewportGeometrySourceName!=="ns"&&R.value.elementGeometrySourceName!=="ns"}),q3(function(R){return R+1},0),Fw(0),jr(D)),g=H.pipe(yf(!0),Fw(!1),jr(D));
g=gN([N,g]).pipe(L2(function(R){var I=_.F(R);R=I.next().value;I=I.next().value;return R&&!I}),jr(D));
var Q=t.pipe(yLV,Di()),u=Q.pipe(L2(function(R){return R.value}),q3(function(R,I){return Math.max(R,I)},0),Di(),jr(D));
D=Q.pipe(L2(function(R){return R.value}),YPR(),jr(D));
return{shouldResetExposureSignals:K,shouldResetViewabilitySignals:S,geometrySignals:{readyGeometryWithDefault:t,measurementStrategy:t.pipe(B_$),creativePosition:L.pipe(Di(rM)),visible:w.pipe(Di(zt)),timestampedExposure:k.pipe(Di(zt)),maximumExposure:T,minimumExposure:c,browserSize:t.pipe(ze8,Di(_.QA)),timestampedScreenShare:Q,maxScreenShare:u,minScreenShare:D,geometricMeasurementErrors:H,measurementRequests:t.pipe(L2(function(R){return R.value.measurementRequests})),
isLargeAd:a,geometryIsOccluded:V,hasMeasurementStarted:N,geometryMeasurable:g,validMeasurementCount:J,loadTimeExposure:U,v2VisibilityBitVector:e}}};
ReX=function(D,t){return t.pipe(xp(function(){return!1}),L2(function(H){return H}),Ix(function(H){return H1(new iR(H),D)}))};
xpD=function(D,t,H){return t.pipe(st8(LW),jr(D)).pipe(Di(function(e,V){return zt(e,V,cLu)}),Fw({timestamp:H.now(),
value:iRk}),jr(D))};
WGT=function(D,t,H,e){H=e.pipe(dpA(H),B_(L2(function(V){return Math.round(V*100)/100})),jr(D));
return t instanceof iR?H:gN([H,t]).pipe(L2(function(V){var b=_.F(V);V=b.next().value;b=b.next().value;return{timestamp:b.timestamp.maximum(V.timestamp),value:b.value?0:V.value}}),Di(zt),jr(D))};
QZX=function(D,t,H,e){t=[t.pipe(L2(function(V){return V.value.elementGeometry.width*V.value.elementGeometry.height>=242500}))];
H instanceof kp&&t.push(H.pipe(L2(function(V){return!!V})));
H=gN(t);return e?H.pipe(L2(function(V){return V.some(function(b){return b})}),Fw(!1),Di(),jr(D)):H1(new iR(!1),D)};
u2k=function(D,t){D=gN([D,t]).pipe(L2(function(V){var b=_.F(V);V=b.next().value;if(b.next().value&&V.value.isIntersecting)return V.value.isV2Visible}),Di());
var H=D.pipe(L2(function(V){return V===void 0?!0:V}),q3(function(V,b){return V||!b},!1)),e=D.pipe(q3(function(V,b){return b===void 0?V:b?!1:V!=null?V:!0},void 0),L2(function(V){return!!V}));
return gN([t,EzT(D,H,e)]).pipe(L2(function(V){var b=_.F(V);V=b.next().value;var a=_.F(b.next().value);b=a.next().value;var w=a.next().value;a=a.next().value;var h=0;if(!V)return 0;if(b===void 0)return 16;b&&(h|=1);b||(h|=2);w&&(h|=4);a&&(h|=8);return h}))};
q46=function(D,t,H,e,V){var b=tGK.timeThresholdMs;var a=a===void 0?new HY8(t,e):a;return(new kp(function(w){var h=H.pipe(Fw(void 0),at(function(){return ehu(V)})).pipe(L2(function(K){var N=K.value;
K=K.timestamp;var k=N.visible;N=N.consecutiveViewTime;var T=N>=b;T||!k?VGX(a):(K=Math.max(0,Rx(t.now(),K)),bY6(a,Math.max(0,b-N-K)));return T}),q3(function(K,N){return N||K},!1),Di()).subscribe(w);
return function(){a.dispose();h.unsubscribe()}})).pipe(wM(function(w){return!w},!0),jr(D))};
ehu=function(D){return GpV([D,D.pipe(T_$())]).pipe(L2(function(t){var H=_.F(t);t=H.next().value;H=H.next().value;return{timestamp:t.timestamp,value:{visible:t.value,consecutiveViewTime:H.value}}}),Di(function(t,H){return zt(t,H,function(e,V){return e.consecutiveViewTime===V.consecutiveViewTime&&e.visible===V.visible})}))};
FIV=function(){return Nd(N_X(),q3(function(D,t){return Math.max(D,t)},0),L2(function(D){return Math.round(D)}))};
avk=function(D){return Nd(gM8(mu(D)),FIV())};
wn3=function(D,t){return t instanceof kp?t.pipe(at(function(H){return(H=H?15:null)?Md(new A$(H)):D})):(t=t.value?15:null)?Md(new A$(t)):D};
ZY$=function(D){var t=new A$(13);if(D.length<1)return{chain:vv,capturedErrors:vv};var H=new Tt,e=D[0];return{chain:D.slice(1).reduce(function(V,b){return V.pipe(Ix(function(a){H.next(a);return b}))},e).pipe(Ix(function(V){H.next(V);
return Md(t)}),er(new Tt),f2()),
capturedErrors:H}};
sDT=function(D,t){var H=D.pipe(er(new Tt),f2());return at(function(e){return H.pipe(t(e))})};
G5X=function(D,t){if(D.inCrossDomainIframe)return Md(new A$(6));var H=new Tt;return p2(mu({}),t,H).pipe(L2(function(){return{timestamp:D.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:hhV(D),topWindowViewportExternalGeometry:uR(D,!0),measurementRequests:H,viewportLocalAppOffset:{x:0,y:0}}}}),c_(D.queue))};
hhV=function(D){var t=uR(D,!1);if(!D.inIframe||!LJR(D.global.parent)||D.global.parent===D.global)return t;var H=new eT(D.global.parent,D.debugChannel);H.beaconFactory=D.beaconFactory;H=hhV(H);D=D.global.frameElement.getBoundingClientRect();return $c8(iN8($c8(H,D),{x:t.left-D.left,y:t.top-D.top}),t)};
EC8=function(D){if(D.prerendering)return 3;var t;return(t={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[D.visibilityState||D.webkitVisibilityState||D.mozVisibilityState||""])!=null?t:0};
KIV=function(D){return D.document.JSC$9375_onVisibilityChange.pipe(L2(function(t){return t==="visible"}),Di(),jr(D.queue))};
N1V=function(D,t,H){var e;return t.pipe(Di(),at(function(V){return H.pipe(L2(function(){if(!e){e=!0;try{V.next()}finally{e=!1}}return!0}))}),Fw(!1),jr(D.queue))};
k5k=function(D){return Nd(B_(L2(function(t){return t>=1?!0:t<=0?!1:t>=D})),KGK(),L2(function(t){return Math.round(t)}))};
cZD=function(D,t,H,e,V){var b=T1k;if(b.length>1)for(var a=0;a<b.length-1;a++)if(b[a]<b[a+1])throw Error();a=V.pipe(Fw(void 0),at(function(){return H.pipe(T_$())}),Di(),jr(D));
V=V.pipe(Fw(void 0),at(function(){return H.pipe(FIV())}),Di(),jr(D));
return{totalMeasurementTime:e.pipe(Fw(void 0),at(function(){return t.pipe(L2(function(w){return{timestamp:w.timestamp,value:!0}}),KGK())}),Di(),jr(D)),
totalUnviewedTime:e.pipe(Fw(void 0),at(function(){return t.pipe(L2(function(w){return{timestamp:w.timestamp,value:w.value===0}}),KGK())}),Di(),jr(D)),
maxTimeOnScreen:e.pipe(Fw(void 0),at(function(){return t.pipe(kpu(avk,b))}),Di(_.QA),jr(D)),
timeOnScreen:e.pipe(Fw(void 0),at(function(){return t.pipe(kpu(k5k,b),L2(function(w){return w.map(function(h,K){return K>0?h-w[K-1]:h})}))}),Di(_.QA),jr(D)),
maxConsecutiveViewTime:V,consecutiveViewTime:a.pipe(Di(zt),jr(D))}};
$2T=function(D){var t=!0;t=t===void 0?!1:t;return Nd(at(function(H){return jD3(D.document,H,t)}),jr(D.queue))};
iYk=function(D,t,H){var e=H.pipe(L2(function(V){return{value:V,timestamp:D.timeProvider.now()}}),Di(zt));
return t instanceof kp?t.pipe(Di(),at(function(V){return V?H1(new iR({value:!1,timestamp:D.timeProvider.now()}),D.queue):e})):t.value===!1?e:new iR(!1)};
rZX=function(D,t,H,e,V,b,a){var w=tGK;t=t instanceof kp?t.pipe(Fw(!1),Di()):t;var h=!D.isMobile();H=iYk(D,H,e);D=a.measurableCreative.pipe(he$(D.queue));return Object.assign({},w,{geometryIsOccluded:H,wasLargeAdAtRender:V,allowLargeAdThreshold:h,mayUseViewportShareExposure:t,hasMeasurementStarted:D,useIntersectionObserverV2:b})};
U2u=function(D,t,H,e,V,b){var a=1;b=b===void 0?!0:b;a=a===void 0?.01:a;var w=w===void 0?D.timeProvider.intervalObservable(100).pipe(jr(D.queue)):w;return D.performanceMonitor.timeExecution(916,function(){return OYA(D,t.pipe(c_(D.queue)),H.pipe(c_(D.queue)),e,V,b,a,w)})()};
OYA=function(D,t,H,e,V,b,a,w){var h=KIV(D).pipe(L2(function(N){return!N})),K=new oC3(D,[new PhA(D,T1k),
new nCD(D,w)]);w=tjV(ChV,m2u);return usD(D,t,function(N,k){var T=H1(new iR(k.element),N.queue).pipe($2T(N),jr(N.queue)),c={loadedElement:T,shouldMeasure:T.pipe(yf(!0)),measurableCreative:T.pipe(L2(function(R){var I=I===void 0?Symbol():I;return Object.freeze({symbol:I,element:H1(new iR(R),N.queue)})})),
creativeSearchResult:H1(new iR("mue"),N.queue)},U=new iR(!1),S=new iR(!1),L=new iR(17),J=new iR(!1),g=new iR(!1),Q=H1(Vh,N.queue);U=K.buildGeometrySource(c,{inApp:U,useV2:!1,requestSource:H1(L,N.queue)}).geometrySource;c=rZX(N,J,S,h,g,Q,c);S=D2k(N.queue,N.timeProvider,U,c);c=S.geometrySignals;J=S.shouldResetViewabilitySignals;S=cZD(N.queue,c.timestampedExposure,c.visible,S.shouldResetExposureSignals,J);J=q46(N.queue,N.timeProvider,J,c.measurementRequests,c.visible);g=H.pipe(xp(function(R){return R===
k.element.ref}),L2(function(){return"ur"}));
Q=TM$(N.timeProvider,V).pipe(yf("t"));g=LGV(N,p2(g,Q));Q=N1V(N,c.measurementRequests,g.pipe(xp(function(R){return R!==null})));
U=g.pipe(xp(function(R){return R!==null}),L2(function(){return EC8(N.global.document)===1}));
var u=MGD(N.document);return Object.assign({},{beaconFactory:new iR(N.beaconFactory),context:new iR(N),inferredPingId:new iR("lidar2"),timeOnScreenPingId:new iR("lidartos"),binaryContext:new iR(17),binaryVersion:new iR(e),requestSource:L,contextValidationErrors:new iR(N.validate()?null:new gM),contextVisibilityKnown:new iR(u),payloadMapper:new iR(zt8),endOfSessionReason:g,timeOnScreenReason:g,requestMeasurementOnEndOfSession:Q,hasImpressionFired:S4$,crossDomainIframeState:new iR(N.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:Vh,inFetchLaterBeaconExperiment:Vh,isTurtlex:Vh,turtlexReportEventData:new iR(""),reportFencedFrameEvent:LW,isViewableAttributionEnabled:Vh,inViewableAttributionExperiment:new iR(0),fetchBeaconFactory:LW,supportsPendingBeacon:Vh,supportsFetchLater:Vh,emit:new iR(VjK),beginToRenderEvent:new iR(Symbol()),activeViewUnmeasurableEvent:new iR(Symbol()),activeViewViewableEvent:new iR(Symbol()),creativeFound:S4$,immediateUrlPrefixes:new iR(k.immediateUrls),timeOnScreenUrlPrefixes:new iR(k.timeOnScreenUrls),
cpmavUrls:LW,viewableRelayUrls:LW,measurementDeferralState:new iR(2),urlSerializer:new iR(ZR8),viewUrlSerializer:new iR(Xn$),isCreativeLoaded:T.pipe(he$(N.queue)),pageVisible:h.pipe(L2(function(R){return!R})),
eosPageVisible:U,timestampedExposureHistory:c.timestampedExposure.pipe(q3(function(R,I){R.push(I);return R},[]))},c,{viewable:te(N,J),
maxTimeOnScreen:te(N,S.maxTimeOnScreen),timeOnScreen:te(N,S.timeOnScreen),maxConsecutiveViewTime:te(N,S.maxConsecutiveViewTime),consecutiveViewTime:S.consecutiveViewTime.pipe(L2(function(R){return new Dl(N.timeProvider,R)})),
totalMeasurementTime:te(N,S.totalMeasurementTime),totalUnviewedTime:te(N,S.totalUnviewedTime),userAgentClientHints:DcV(N),clientOrderPingCounter:new iR(new IlA)})},DpV(D,a),HR6(b?ee$(w,fvT):ee$(w,LI$),AZk))};
gCT=function(D){var t=_.RE.apply(1,arguments).filter(Boolean).join("&");if(!t)return D;var H=D.match(/[?&]adurl=/);return H?D.slice(0,H.index+1)+t+"&"+D.slice(H.index+1):D+(D.indexOf("?")<0?"?":"&")+t};
bz=function(D,t){return t?"&"+D+"="+encodeURIComponent(t):""};
JZ6=function(){try{var D,t;return!!((D=window)==null?0:(t=D.top)==null?0:t.location.href)&&!1}catch(H){return!0}};
_.qc=function(D){D&&typeof D.dispose=="function"&&D.dispose()};
_.Fs=function(D){for(var t=0,H=arguments.length;t<H;++t){var e=arguments[t];_.d6(e)?_.Fs.apply(null,e):_.qc(e)}};
lvD=function(){var D=Y4$();D=D===void 0?"bevasrsg":D;return new Promise(function(t){var H=window===window.top?window:JZ6()?window:window.top,e=H[D],V;((V=e)==null?0:V.bevasrs)?t(new aK(e.bevasrs)):(e||(e={},e=(e.nqfbel=[],e),H[D]=e),e.nqfbel.push(function(b){t(new aK(b))}))})};
vCD=function(D){var t={c:D.hU,e:D.pn5,mc:D.eiJ,me:D.uJT};D.qe&&(t.co={c:D.qe.x2v,a:D.qe.xj5,s:D.qe.yr7});return t};
pn8=function(D){var t,H,e={hU:D.c,pn5:D.e,eiJ:(t=D.mc)!=null?t:!1,uJT:(H=D.me)!=null?H:!1};D.co&&(e.qe={x2v:D.co.c,xj5:D.co.a,yr7:D.co.s});return e};
d2X=function(D){return function(){var t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(D(),2);t=H.yieldResult;return H.return({f:function(){return t.u7J()},
c:function(e){return t.rH4(e)},
m:function(e){return t.mI(pn8(e))},
mws:function(e){return t.grD(pn8(e))}})})}};
x2D=function(D,t){var H=Y4$();H=H===void 0?"bevasrsg":H;t={s:function(b){var a;return D.snapshot(Object.assign({},b.c&&{hU:b.c},b.s&&{hxv:b.s},{qYL:(a=b.p)!=null?a:!0}))},
e:function(b){var a;return void((a=D.hnt)==null?void 0:a.call(D,b))},
c:function(b,a){return D.vmi(b,a)},
p:D.jk6,l:function(){return D.uh6()},
wpc:t?d2X(t):void 0};var e=window===window.top?window:JZ6()?window:window.top,V=e[H];if(V){V.bevasrs=t;if(V.nqfbel!==void 0)for(H=_.F(V.nqfbel),e=H.next();!e.done;e=H.next())e=e.value,e(t);V.nqfbel=void 0}else V={},V=(V.bevasrs=t,V.nqfbel=void 0,V),e[H]=V};
uHR=function(D){var t=t===void 0?51:t;var H=[];_.wV(D,RhR,6,_.Zl()).forEach(function(e){_.sH(e,2)<=t&&H.push(_.sH(e,1))});
return H};
WIR=function(D){var t=t===void 0?51:t;var H=[];_.wV(D,RhR,6,_.Zl()).forEach(function(e){_.sH(e,2)>t&&H.push(_.sH(e,1))});
return H};
IvX=function(D){D.then(function(){},function(){})};
he=function(D){return{fieldType:1,fieldName:D}};
Gx=function(D){return{fieldType:2,fieldName:D}};
_.EH=function(D){return{fieldType:3,fieldName:D}};
QDD=function(){function D(){V[0]=1732584193;V[1]=4023233417;V[2]=2562383102;V[3]=271733878;V[4]=3285377520;N=K=0}
function t(k){for(var T=a,c=0;c<64;c+=4)T[c/4]=k[c]<<24|k[c+1]<<16|k[c+2]<<8|k[c+3];for(c=16;c<80;c++)k=T[c-3]^T[c-8]^T[c-14]^T[c-16],T[c]=(k<<1|k>>>31)&4294967295;k=V[0];var U=V[1],S=V[2],L=V[3],J=V[4];for(c=0;c<80;c++){if(c<40)if(c<20){var g=L^U&(S^L);var Q=1518500249}else g=U^S^L,Q=1859775393;else c<60?(g=U&S|L&(U|S),Q=2400959708):(g=U^S^L,Q=3395469782);g=((k<<5|k>>>27)&4294967295)+g+J+Q+T[c]&4294967295;J=L;L=S;S=(U<<30|U>>>2)&4294967295;U=k;k=g}V[0]=V[0]+k&4294967295;V[1]=V[1]+U&4294967295;V[2]=
V[2]+S&4294967295;V[3]=V[3]+L&4294967295;V[4]=V[4]+J&4294967295}
function H(k,T){if(typeof k==="string"){k=unescape(encodeURIComponent(k));for(var c=[],U=0,S=k.length;U<S;++U)c.push(k.charCodeAt(U));k=c}T||(T=k.length);c=0;if(K==0)for(;c+64<T;)t(k.slice(c,c+64)),c+=64,N+=64;for(;c<T;)if(b[K++]=k[c++],N++,K==64)for(K=0,t(b);c+64<T;)t(k.slice(c,c+64)),c+=64,N+=64}
function e(){var k=[],T=N*8;K<56?H(w,56-K):H(w,64-(K-56));for(var c=63;c>=56;c--)b[c]=T&255,T>>>=8;t(b);for(c=T=0;c<5;c++)for(var U=24;U>=0;U-=8)k[T++]=V[c]>>U&255;return k}
for(var V=[],b=[],a=[],w=[128],h=1;h<64;++h)w[h]=0;var K,N;D();return{reset:D,update:H,digest:e,digestString:function(){for(var k=e(),T="",c=0;c<k.length;c++)T+="0123456789ABCDEF".charAt(Math.floor(k[c]/16))+"0123456789ABCDEF".charAt(k[c]%16);return T}}};
HZX=function(D,t){t=t===void 0?yZX:t;if(!B13){var H;D=(H=D.navigator)==null?void 0:H.userAgentData;if(!D||typeof D.getHighEntropyValues!=="function"||D.brands&&typeof D.brands.map!=="function")return Promise.reject(Error("ua"));zhT((D.brands||[]).map(function(V){var b=new DSu;b=_.M3(b,1,V.brand);return _.M3(b,2,V.version)}));
typeof D.mobile==="boolean"&&_.KN(tcT,2,D.mobile);B13=D.getHighEntropyValues(t)}var e=new Set(t);return B13.then(function(V){var b=tcT.clone();e.has("platform")&&_.M3(b,3,V.platform);e.has("platformVersion")&&_.M3(b,4,V.platformVersion);e.has("architecture")&&_.M3(b,5,V.architecture);e.has("model")&&_.M3(b,6,V.model);e.has("uaFullVersion")&&_.M3(b,7,V.uaFullVersion);return b.serialize()}).catch(function(){return tcT.serialize()})};
Nc=function(D,t,H,e){this.initialValue_=D;this.maxValue_=t;this.currBaseValue_=this.currValue_=D;this.randomFactor_=H||0;this.backoffFactor_=e||2};
kO=function(D){this.src=D;this.listeners={};this.typeCount_=0};
qaV=function(){for(var D;D=eEu.remove();){try{D.fn.call(D.scope)}catch(t){b8(t)}VcV.put(D)}bZD=!1};
_.Fhu=function(D){switch(D){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}};
aUR=function(D){switch(D){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""}};
_.wYk=function(){};
Ti3=function(D,t,H,e){D=ZZ6(sAV(hED(new _.Tx(1828,"0"),D),new GWV)).disableWithCredentials();t.length&&ExT(D,Kh3(new NiD,t));e!==void 0&&(D.destinationUrl=e);var V=new kWV(1828,"","",!1,"",D.build());_.c1(V,D);var b=new $O({flush:function(a){try{V.flush(a)}catch(w){H(w)}}});
b.addOnDisposeCallback(function(){setTimeout(function(){try{b.snapshotAndFlush()}finally{V.dispose()}})});
b.invocationLimit=1E5;b.flushInterval=3E4;b.JSC$9791_flushTimer.setInterval(3E4);return b};
iz=function(){var D,t,H;return(H=(D=globalThis.performance)==null?void 0:(t=D.now)==null?void 0:t.call(D))!=null?H:Date.now()};
$S$=function(D,t){if(D.disable)return new cWA;t=t?uHR(t):[];D={rH:D.rH,rN5:D.tVR,z7U:D.p2c,destinationUrl:D.destinationUrl,y06:D.y06,xmr:D.xmr};t=t===void 0?[]:t;return new jAD(D,t)};
iZ8=function(D){if(!D)return null;D=_.rV(D,2);return D===null||D===void 0?null:Ql(D)};
_.rWD=function(D){if(!D)return null;D=_.rV(D,4);return D===null||D===void 0?null:_.MN(D)};
oxX=function(D,t){return t?OZA(t):D?USX(D):Promise.resolve()};
OZA=function(D){return new Promise(function(t,H){var e=_.OH("SCRIPT"),V=_.rWD(D);_.qd(e,V);e.onload=function(){_.UH(e);t()};
e.onerror=function(){_.UH(e);H(Error("Fa"))};
(oK("HEAD")[0]||document.documentElement).appendChild(e)})};
USX=function(D){return new Promise(function(t){var H=_.OH("SCRIPT");if(D){var e=_.rV(D,6);e=e===null||e===void 0?null:_.Vf(e)}else e=null;_.bF(H,e);(oK("HEAD")[0]||document.documentElement).appendChild(H);_.UH(H);t()})};
P1=function(D,t,H){var e,V=new Promise(function(b){e=setTimeout(b,t)});
return Promise.race([D.finally(function(){return void clearTimeout(e)}),
V.then(H)])};
Py$=function(D,t){try{return globalThis.sessionStorage.setItem(D,t),!0}catch(H){return!1}};
nxu=function(D,t,H,e){t=t===void 0?0:t;H=H===void 0?D.length:H;var V=0;for(e&&(V=nxu(e));t<H;t++)e=typeof D==="string"?D.charCodeAt(t):D[t],V=Cyk(31,V)+e|0;return V};
mSu=function(D,t){return[nxu(D,0,D.length>>1,t),nxu(D,D.length>>1)]};
Mc$=function(D){var t=_.F(mSu(D,nN));D=t.next().value;t=t.next().value;return D.toString(16)+t.toString(16)};
SaR=function(D,t){var H=mSu(t);D=new Uint32Array(D.buffer);t=D[0];var e=_.F(H);H=e.next().value;e=e.next().value;for(var V=1;V<D.length;V+=2){for(var b=t,a=V,w=H,h=e,K=0;K<22;K++)a=a>>>8|a<<24,a+=b|0,a^=w+38293,b=b<<3|b>>>29,b^=a,h=h>>>8|h<<24,h+=w|0,h^=K+38293,w=w<<3|w>>>29,w^=h;b=[b,a];D[V]^=b[0];V+1<D.length&&(D[V+1]^=b[1])}};
XYX=function(D,t,H,e,V){var b=(4-(nN.length+H.length)%4)%4,a=new Uint8Array(4+b+nN.length+4+H.length),w=new DataView(a.buffer),h=0;w.setUint32(h,Math.random()*4294967295);h=h+4+b;a.set(nN,h);h+=nN.length;w.setUint32(h,V);a.set(H,h+4);SaR(a,e);return D.insert(t,function(K){return void globalThis.sessionStorage.removeItem(K)})?Py$(t,_.XF(a))?"s":"t":"i"};
fUV=function(D,t){var H=globalThis.sessionStorage.getItem(D);if(!H)return["m"];try{var e=_.zV(H);SaR(e,t)}catch(V){return globalThis.sessionStorage.removeItem(D),["c"]}for(t=4;t<7&&e[t]===0;)t++;for(H=0;H<nN.length;H++)if(e[t++]!==nN[H])return globalThis.sessionStorage.removeItem(D),["d"];H=(new DataView(e.buffer)).getUint32(t);return Math.floor(Date.now()/1E3)>=H?(globalThis.sessionStorage.removeItem(D),["e"]):["a",new Uint8Array(e.buffer,t+4)]};
LhK=function(D){return globalThis.TextEncoder?(new TextEncoder).encode(D):_.CN(D)};
AWX=function(D){var t=D,H;return function(){if(t){var e=t;t=void 0;H=e.apply(this,arguments)}return H}};
JWu=function(D){return CQ(function(t){if(t instanceof D)return!0;var H,e,V=t==null?void 0:(H=t.ownerDocument)==null?void 0:(e=H.defaultView)==null?void 0:e[D.name];return gxK(V)&&t instanceof V})};
_.ST=function(D,t,H){_.mg.call(this);this.JSC$10005_listener_=D;this.JSC$10005_interval_=t||0;this.handler_=H;this.callback_=(0,_.Mc)(this.JSC$10007_doAction_,this)};
_.Xs=function(D){D=YaV(D);return _.MN(D)};
YaV=function(D){return D===null?"null":D===void 0?"undefined":D};
vx8=function(D){if(D&&D.focus)if(D!==document.activeElement)D.focus();else return lU6(function(){return _.Z(function(t){document.activeElement&&document.activeElement.blur();return t.return(lU6(function(){D.focus()}))})})};
_.pYk=function(D){var t=t===void 0?5:t;setTimeout(function(){var H;return _.Z(function(e){e.nextAddress==1&&(H=document.activeElement);if(e.nextAddress!=5)return(document.activeElement===H||document.activeElement===document.body)&&t>=0&&D?e.yield(vx8(D),5):e.jumpTo(0);if(document.activeElement===D)return e.return();D=D.parentElement;--t;return e.jumpTo(2)})},15)};
lU6=function(D){return new Promise(function(t){requestAnimationFrame(function(){t(D())})})};
xSV=function(D){if(_.fN)D(_.fN);else{var t;((t=dSK)!=null?t:dSK=[]).push(D)}};
Ae=function(){!_.fN&&_.LN&&_.RET(_.LN());return _.fN};
_.RET=function(D){_.fN=D;var t;(t=dSK)==null||t.forEach(xSV);dSK=void 0};
_.gV=function(D){_.fN&&_.fN.beforeLoadModuleCode(D)};
_.Je=function(){_.fN&&_.fN.JSC$11061_setLoaded()};
YO=function(D){return ffV(D)?Number(D):String(D)};
uc$=function(D){this.action=D;this.wfv=!1};
Whk=function(D,t){uc$.call(this,"set-drive-options");this.appId=D;this.appOrigin=t};
hXD=function(D){uc$.call(this,"visibility");this.visible=D};
GrV=function(D,t,H){lz.call(this,D,t,H)};
EVV=function(D){pN.call(this,D)};
KY8=function(D){D=D&&D.getWindow()||window;return D.gadgets&&D.gadgets.rpc};
krk=function(D,t){var H=t&&t.getWindow()||window;if(KY8(t))D();else if(NkD)NkD.push(D);else var e=NkD=[D],V=H.setInterval(function(){if(KY8(t)){H.clearInterval(V);for(var b=0;b<e.length;b++)e[b]();NkD=null}},100)};
cyk=function(D,t){var H=new dV(D);_.c1(t,H);var e={passive:!1};t.listen(H,"mousewheel",function(V){return void TkD(D,V)},e).listen(D,"scroll",function(V){return void TkD(D,V)},e)};
TkD=function(D,t){var H;a:{for(H=t.target;H;){if(H.nodeType==1){var e=_.xO(H,"overflowY");if(e=="auto"||e=="scroll")break a}H=H.parentNode}H=null}if(!H||!_.RK(D,H)||H.scrollHeight==H.clientHeight||t.deltaY>0&&Math.abs(H.scrollTop-(H.scrollHeight-H.clientHeight))<=1||t.deltaY<0&&H.scrollTop==0)t.preventDefault(),t.stopPropagation()};
zx=function(D,t,H,e,V,b,a,w,h){w=w===void 0?!1:w;h=h===void 0?!1:h;lz.call(this,void 0,void 0,void 0);lz.call(this,b?b+" picker modal-dialog":"picker modal-dialog",!0,H);_.uz(D,"protocol");this.iframeManager_=new jP$;this.targetId_=W1();this.rpcToken_=W1();D=_.IK(D);_.Qh(D,"hostId");H=_.Qh(D,"parent");this.useGapi_=!h&&!0||(H==null?void 0:H.includes("onepick.corp.google.com"));w&&_.yh(D,"fv2","true");this.setUrl(D.toString());this.preferredDialogWidth_=e;this.preferredDialogHeight_=V;e!==void 0||
V!==void 0?e=!0:(e=_.Qh(_.IK(D.toString()),"hostId"),$Ok||($Ok=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),e=!$Ok.has(e));this.autoSizeDialog_=e;this.JSC$10195_gadgetsDomHelper_=a||this.JSC$10146_dom_;t&&(a=this.JSC$10195_gadgetsDomHelper_,t=_.Qh(_.IK(this.JSC$10197_url_),"grugl")=="true"?iXD:ry$,KY8(a)||(a=a||mJ(document),e=a.createElement("SCRIPT"),_.qd(e,t),e.type="text/javascript",a.JSC$9330_document_.body.appendChild(e)));
D=D.toString();t=null;a=D.indexOf("/picker?");a>-1?t=D.substring(0,a+8-1):a$(D,"/picker")&&(t=D);t&&this.setRelayUrl(t+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(D=this.buttons_,D.JSC$10180_element_=this.buttonEl_,D.render()):_.Fq(this.buttonEl_,OX3),_.B1(this.buttonEl_,!!this.buttons_))};
_.nV6=function(D){var t=t===void 0?UOT:t;var H=_.I$(D),e=function(b){b=_.F(b);b.next();b=D_(b);return t(H,b)},V=function(b){var a=_.F(b);
b=a.next().value;a=D_(a);return D.apply(b,a)};
return function(){var b=_.RE.apply(0,arguments),a=this||_.VA,w=oV3.get(a);w||(w={},oV3.set(a,w));return Pg8(w,[this].concat(_.A6(b)),V,e)}};
tL=function(D){var t={};D=D.replace(/\r/g,"").split("\n");for(var H=0;H<D.length;H++){var e=D[H],V=e.indexOf(":");V<0||(t[e.substring(0,V)]=e.substring(V+2,e.length))}return t};
CgK=function(D,t,H){H=H===void 0?function(){}:H;
return D?t():H()};
_.MED=function(D){var t;return((t=mOK.documentOverride)!=null?t:D).__wizdispatcher};
_.ej=function(D){var t=HI;HI=D;return t};
_.XeA=function(D){return D===SqR||(D==null?void 0:D.name)==="\u0275NotFound"};
_.Vt=function(D,t){var H;if((H=D)==null?0:H.isDisposed)throw Error("jb`"+String(D.debugName));for(;D!==void 0;){H=D;if(H.retrieve)return H.retrieve(t,{optional:!0});D=D.parent}return SqR};
bD=function(D){return{"\u0275prov":{providedIn:"root",token:Symbol(D),factory:void 0,value:void 0}}};
_.f43=function(D){var t=HI;if(!t){switch(D===void 0?3:D){case 0:D=Error("ib");break;case 1:D=Error("kb");break;case 2:D=Error("lb");break;default:D=Error("mb")}throw D;}return t};
LY3=function(D){var t=_.ej(D);D={};return D[Symbol.dispose]=function(){_.ej(t)},D};
Ayk=function(D,t){D.disposables||(D.disposables=[]);D.disposables.push(t)};
qp=function(D){var t=HI;t&&!t.isDisposed&&(Ayk(t,D),D.parent=t)};
Jyu=function(D){if(D.disposables){for(var t=_.F(D.disposables),H=t.next();!H.done;H=t.next())H=H.value,typeof H==="function"?H():gVX(H);D.disposables.length=0}};
gVX=function(D){if(!D.isDisposed){D.isDisposed=!0;var t;(t=D[Symbol.dispose])==null||t.call(D);delete D.parent;Jyu(D)}};
WYX=function(D){var t={retrieve:function(H){switch(H.\u0275prov.token){case YqA.\u0275prov.token:var e=D.asyncDeps;break;case _.l4A.\u0275prov.token:e=D.rootElement;break;case vV3.\u0275prov.token:e=D.modelRootElement;break;case peV.\u0275prov.token:e=D.appContext;break;case dOA.\u0275prov.token:e=D.rendererData;break;case xOT.\u0275prov.token:e=D.injectingConstructor;break;case RX6.\u0275prov.token:e=D.dispatcher}if(e)H=e;else a:{for(e=t.parent;e;){var V=e;if(V.retrieve){H=V.retrieve(H);break a}e=
e.parent}e=H.\u0275prov.token;V=uUu[e];V!==void 0?H=V:(V=H.\u0275prov.providedIn,H.\u0275prov.factory?(H=H.\u0275prov.factory(),e&&V==="root"&&(uUu[e]=H)):H=SqR)}return H}};
qp(t);return t};
I4D=function(){var D=_.f43(1),t=_.Vt(D,peV);if(!_.XeA(t))return t;D=_.Vt(D,RX6);if(!_.XeA(D))return D.getOptionalAppContext()};
QPD=function(D){if(typeof document!=="undefined"&&document&&document.getElementById&&(D=document.getElementById(D))){var t=D.tagName.toUpperCase();if(t=="SCRIPT"||t=="LINK")return D}return null};
BkD=function(D,t){if((D=D===void 0?"":D)&&t)throw Error("sb");var H="";var e=_.VA._F_jsUrl;(D=t||QPD(D))&&(H=D.src?D.src:D.getAttribute("href"));if(e&&H){if(e!=H)throw Error("tb`"+e+"`"+H);H=e}else H=e||H;if(!yy8(H))throw Error("ub");return H};
H7A=function(){if(!zXX){zXX=!0;try{var D=BkD(_.VA._F_jsUrl?"":"base-js")}catch(e){return}var t=DzV(t4R(D)),H=Object.keys(t);H.length!==0&&xSV(function(e){for(var V=_.F(H),b=V.next();!b.done;b=V.next()){b=b.value;for(var a=_.F(Object.keys(t[b])),w=a.next();!w.done;w=a.next())e.addExtraEdge(b,w.value)}})}};
V4u=function(){var D=Object.assign({},eHX);Object.getOwnPropertyNames(eHX).forEach(function(t){F2[t]!==void 0&&(D[t]=F2[t])});
return D};
b7u=function(D,t){if(F2.enablePerformanceTiming){var H,e;(e=(H=performance).mark)==null||e.call(H,D+"Start__"+t)}};
qp$=function(D,t){if(F2.enablePerformanceTiming){var H,e;(e=(H=performance).measure)==null||e.call(H,D+"__"+t,D+"Start__"+t)}};
FEk=function(D,t,H){var e;return D&&t?D+"__"+t:(e=D!=null?D:t)!=null?e:H};
w$V=function(D,t){var H=Object.create(axA);H.debugName=t;!HI||qp(H);t=_.ej(H);try{D(H)}finally{_.ej(t)}return function(){return void gVX(H)}};
sRV=function(D){return aZ(D)&&Z7V in D};
hHD=function(D,t){return Object.is(D,t)};
Z_=function(D){var t=w_;w_=D;return t};
EwV=function(D){if(sP)throw Error("Z");if(w_!==null){var t=w_.producersTail;if(t===void 0||t.producer!==D){var H=void 0,e=w_.recomputing;if(e&&(H=t!==void 0?t.nextProducer:w_.producers,H!==void 0&&H.producer===D)){w_.producersTail=H;H.lastReadVersion=D.version;return}var V=D.consumersTail,b;if(!(b=V===void 0||V.consumer!==w_)){if(e){a:{b=w_;e=b.producersTail;if(e!==void 0){b=b.producers;do{if(b===V){e=!0;break a}if(b===e)break;b=b.nextProducer}while(b!==void 0)}e=!1}e=!e}b=e}b&&(e=hL(w_),H={producer:D,
consumer:w_,nextProducer:H,prevConsumer:V,lastReadVersion:D.version,nextConsumer:void 0},w_.producersTail=H,t!==void 0?t.nextProducer=H:w_.producers=H,e&&G0A(D,H))}}};
k0A=function(D){if(!hL(D)||D.dirty)if(D.dirty||D.lastCleanEpoch!==KEX)(D.producerMustRecompute(D)||NTK(D))&&D.producerRecomputeValue(D),D.dirty=!1,D.lastCleanEpoch=KEX};
TT6=function(D){if(D.consumers!==void 0){var t=sP;sP=!0;try{for(var H=D.consumers;H!==void 0;H=H.nextConsumer){var e=H.consumer;e.dirty||(D=void 0,e.dirty=!0,TT6(e),(D=e.consumerMarkedDirty)==null||D.call(e,e))}}finally{sP=t}}};
cpK=function(){var D;return((D=w_)==null?void 0:D.consumerAllowSignalWrites)!==!1};
jRk=function(D){D&&(D.producersTail=void 0,D.recomputing=!0);return Z_(D)};
i7$=function(D){D.recomputing=!1;var t=D.producersTail,H=t!==void 0?t.nextProducer:D.producers;if(H!==void 0){if(hL(D)){do H=$z3(H);while(H!==void 0)}t!==void 0?t.nextProducer=void 0:D.producers=void 0}};
NTK=function(D){for(D=D.producers;D!==void 0;D=D.nextProducer){var t=D.producer,H=D.lastReadVersion;if(H!==t.version)return!0;k0A(t);if(H!==t.version)return!0}return!1};
G0A=function(D,t){var H=D.consumersTail,e=hL(D);H!==void 0?(t.nextConsumer=H.nextConsumer,H.nextConsumer=t):(t.nextConsumer=void 0,D.consumers=t);t.prevConsumer=H;D.consumersTail=t;if(!e)for(D=D.producers;D!==void 0;D=D.nextProducer)G0A(D.producer,D)};
$z3=function(D){var t=D.producer,H=D.nextProducer,e=D.nextConsumer,V=D.prevConsumer;D.nextConsumer=void 0;D.prevConsumer=void 0;e!==void 0?e.prevConsumer=V:t.consumersTail=V;if(V!==void 0)V.nextConsumer=e;else if(t.consumers=e,!hL(t))for(D=t.producers;D!==void 0;)D=$z3(D);return H};
hL=function(D){return D.consumerIsAlwaysLive||D.consumers!==void 0};
Uz8=function(D){var t=Object.create(rpK);t.computation=D;D=function(){k0A(t);EwV(t);if(t.value===Gp)throw t.error;return t.value};
D[O7V]=t;return D};
Cmu=function(D,t){var H=Object.create(owA);H.value=D;t!==void 0&&(H.equal=t);D=function(){EwV(H);return H.value};
D[O7V]=H;return[D,function(e){return PmV(H,e)},
function(e){cpK()||nw6(H);PmV(H,e(H.value))}]};
PmV=function(D,t){cpK()||nw6(D);if(!D.equal(D.value,t)){D.value=t;D.version++;KEX++;TT6(D);var H;(H=mzV)==null||H(D)}};
_.EP=function(D){var t=Z_(null);try{return D()}finally{Z_(t)}};
_.KR=function(D,t,H){H=H===void 0?"":H;D=Cmu(D,t==null?void 0:t.equals);var e=D[0],V=e[O7V];V.debugName=FEk(t==null?void 0:t.debugName,H,"[signal]");if(!F2.enablePerformanceTiming)return D;var b=D[1],a=D[2];return[e,function(w){M4D(function(){return void b(w)},V)},
function(w){M4D(function(){return void a(w)},V)}]};
M4D=function(D,t){b7u("signalSet",t.debugName);try{D()}finally{qp$("signalSet",t.debugName)}};
X$3=function(D,t){var H=_.F(_.KR(D,void 0,"cPpJzc"));D=H.next().value;H=H.next().value;D[SpA]=H;D[Np]=t;return D};
fxX=function(D){return!!D&&typeof D==="object"&&Object.getPrototypeOf(D)===Object.prototype};
LE6=function(D){return typeof D==="function"&&SpA in D&&typeof D[SpA]==="function"};
ApA=function(D,t){Object.defineProperty(D,Np,{get:function(){return t}})};
Tp=function(D,t){if(kM(D)){var H=D.map(function(b){return Tp(b,t)});
ApA(H,t);return H}if(fxX(D)){H={};D=_.F(Object.entries(D));for(var e=D.next();!e.done;e=D.next()){var V=_.F(e.value);e=V.next().value;V=V.next().value;H[e]=Tp(V,t)}ApA(H,t);return H}return X$3(D,t)};
gwV=function(D){if(kM(D))return D.map(function(V){return gwV(V)});
if(fxX(D)){var t={};D=_.F(Object.entries(D));for(var H=D.next();!H.done;H=D.next()){var e=_.F(H.value);H=e.next().value;e=e.next().value;t[H]=gwV(e)}return t}return LE6(D)?D():D};
YpD=function(){var D={height:0,width:0};if(!fxX(D))throw Error("Jb");var t=Symbol("Kb");return[Tp(D,t),function(H,e){if(H[Np]===t)if(typeof e==="function"){var V=[].concat(_.A6(gwV(H)));e=e(V)||V;JpV(H,[].concat(_.A6(e)))}else JpV(H,e);else throw Error("Lb");}]};
JpV=function(D,t){if(LE6(D))D[SpA](t);else if(kM(D)&&kM(t))t=Tp(t,D[Np]),D.length=0,D.push.apply(D,_.A6(t));else if((fxX(D)||kM(D))&&(kM(t)||typeof t==="object"&&t!==null)){t=_.F(Object.entries(t));for(var H=t.next();!H.done;H=t.next()){var e=_.F(H.value);H=e.next().value;e=e.next().value;var V=D,b=V[H];Object.hasOwn(D,H)?JpV(b,e):V[H]=Tp(e,D[Np])}}else throw Error("Mb");};
lxA=function(D){return Object.create(Object.assign({},cI,D))};
p$V=function(){var D;return(D=vwR)!=null?D:vwR=lxA({consumerAllowSignalWrites:!0})};
_.jj=function(D,t,H){H=H===void 0?"":H;var e=Uz8(function(){return D()}),V=e[O7V];
V.debugName=FEk(t==null?void 0:t.debugName,H,"[computed]");(t==null?void 0:t.equals)!=null&&(V.equal=t.equals);return e};
$M=function(D){var t=Z_(dzT);try{D()}finally{Z_(t)}};
Ix3=function(D){switch(D.onInitType){case xz6:RHT.schedule(D);break;case u0K:WEu.schedule(D);break;default:_.xv(D.onInitType)}};
tpV=function(D){if(!D.isDisposed)switch(D.effectType){case iD:QRR.schedule(D);break;case ypV:BTK.schedule(D);break;case zHT:D1K.schedule(D);break;default:_.xv(D.effectType)}};
Vp$=function(){if(r_>0)F2.flushRenderEffectsDuringRender&&QRR.flush();else{for(var D=_.F(Hn6),t=D.next();!t.done;t=D.next())t.value.flush();eKR()}};
eKR=function(){_.Z(function(D){if(D.nextAddress==1)return D.yield(Promise.resolve(),2);for(var t=_.F(bn3),H=t.next();!H.done;H=t.next())H.value.flush();_.n2(D)})};
FFu=function(D){OP=!0;try{for(var t=_.F(D),H=t.next();!H.done;H=t.next()){for(var e=H.value,V=[e],b=e;b.parent!==void 0;)b=b.parent,qhD(b)&&D.has(b)&&V.push(b);for(;V.length>0;){var a=V.pop();D.delete(a);a.run()}}}finally{OP=!1}};
UP=function(D){r_--;if(D){D=_.F(aY8);for(var t=D.next();!t.done;t=D.next())t.value.clear()}else r_>0||OP&&!F2.flushRenderEffectsDuringRender||Vp$()};
Znu=function(D,t,H){var e=wFk(D);oZ={name:H?e+" ("+H+")":e,isReactive:D.componentType!==PI,parent:oZ};D=t();oZ=oZ.parent;return D};
nR=function(){var D=oZ;return D?D.isReactive:!1};
mG=function(D,t,H){var e=oZ;t&&(oZ=t);try{return H==null?D():D.call(H)}catch(b){D=b;CR(D,oZ);if(D!==sCX){hK6=oZ;t=[];for(H=HI;H;){var V=void 0;t.push((V=H.debugName)!=null?V:"[context]");V=void 0;H=(V=H.parent)!=null?V:null}Gc$=t.reverse()}sCX=D;throw D;}finally{oZ=e}};
CR=function(D,t){try{var H=Eou(t);if(H&&!D.componentStack&&(D.componentStack=H,F2.enableComponentStacksInErrorMessages)){var e=D.message+"\n\nComponent stack: "+H;D.stack&&(D.stack=D.stack.replace(D.message,e));D.message=e}}catch(V){}};
Eou=function(D){if(aZ(D)&&D.name!==void 0&&D.isReactive!==void 0&&D.parent!==void 0||D===null){for(var t=0,H="";t<20&&D;)H+=D.name+" > ",D=D.parent,t++;D=H.slice(0,-3)}else if(F2.enableContextBasedComponentStacks){a:{for(D=D===void 0?HI:D;D;){if(sRV(D))break a;t=void 0;D=(t=D.parent)!=null?t:null}D=null}D=D.getComponentStack().slice(0,20).join(" > ")}else D="";return D};
wFk=function(D){return D.debugName||D.name||"[component]"};
KF6=function(D,t,H){t=Object.create(t);D&&(t.effectFn=D);H&&(t.debugName=H);qp(t);t.componentStack=oZ;return t};
_.Mp=function(D,t){D=KF6(D,NvV,t);tpV(D)};
_.Sj=function(D){var t=HI;if(t){var H=oZ;Ayk(t,function(){var e=Z_(p$V());try{mG(function(){return void D()},H)}catch(V){throw F2.enableContextBasedComponentStacks&&CR(V),V;
}finally{Z_(e)}})}};
X2=function(D,t){var H={};(t===void 0||t)&&qp(H);t=_.ej(H);try{D(H)}finally{_.ej(t)}return function(){return void gVX(H)}};
_.fR=function(D){return typeof D==="function"?D():(D==null?0:D[kcX])?D.get():D};
_.LR=function(D,t){D=KF6(D,Tv8,t);tpV(D)};
cn3=function(D){if(HI)throw Error("nb");X2(D,!1)};
AL=function(D,t){D=_.ej(D);try{return _.EP(t)}finally{_.ej(D)}};
g_=function(D,t){var H=Eou(hK6),e,V;var b=(V=(e=Gc$)==null?void 0:e.slice())!=null?V:[];t={componentStack:H,contextTrace:b,errorSeverity:3,featureFlags:V4u(),tagName:t};return[D,t]};
inD=function(D,t,H){if(Object.hasOwnProperty.call(jCX,D)&&(D=jCX[D],Object.hasOwnProperty.call(D,t)&&(D=D[t],D instanceof Array))){for(var e=null,V=!1,b=0,a=D.length;b<a;++b){var w=D[b],h=w.contingentAttribute;if(!h)return w.contract;e===null&&(e={});h=Object.hasOwnProperty.call(e,h)?e[h]:e[h]=H(h);if(h===w.requiredValue)return w.contract;h==null&&(V=!0)}if(V)return null}t=$1$[t];return typeof t==="number"?t:null};
U1u=function(D,t,H){var e=null;(D=rnD[D])&&(e=D[t]);return typeof e!=="number"&&((D=rnD["*"])&&(e=D[t]),typeof e!=="number")?!1:!0===OnK[e][String(H).toLowerCase()]};
PvR=function(D,t){t=inD(D.toLowerCase(),t,function(){var e;(e=F2.handleError)==null||e.call.apply(e,[F2].concat(_.A6(g_(Error("Wb"),D.toLowerCase()))))});
if(t===null)return null;var H;return(H=oo8[t])!=null?H:null};
no6=function(D,t,H){if(H===null||H===void 0)return H;t=t.toLowerCase();D=PvR(D,t);return D===null?H:D(t,H)};
Cv8=function(){};
JL=function(D,t){for(;D.length>t;)D.pop()};
m1V=function(D){D=Array(D);JL(D,0);return D};
YM=function(D,t,H){if(H==null)D.removeAttribute(t);else{var e;(e=t.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":t.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?D.setAttributeNS(e,t,H):D.setAttribute(t,H)}};
Mp$=function(D,t,H){D[t]=H};
XFK=function(D,t,H){D=D.style;if(typeof H==="string")D.cssText=H;else{D.cssText="";for(var e in H)if(ShV.call(H,e)){t=D;var V=e,b=H[e];V.indexOf("-")>=0?t.setProperty(V,b):t[V]=b}}};
fYX=function(D,t,H){var e=typeof H;e==="object"||e==="function"?D[t]=H:YM(D,t,H)};
LFu=function(){var D=new Cv8;D[lD.default]=fYX;D.style=XFK;return D};
AnA=function(D,t,H,e){(e[t]||e[lD.default])(D,t,H)};
JnD=function(D,t,H){t=new goX(t,H);return D.__incrementalDOMData=t};
pR=function(D,t){if(D.__incrementalDOMData)return D.__incrementalDOMData;var H=D.nodeType===1?D.localName:D.nodeName,e=D.nodeType===1?D.getAttribute("key"):null;t=JnD(D,H,D.nodeType===1?e||t:null);if(D.nodeType===1&&(D=D.attributes,H=D.length)){e=t._attrsArr||(t._attrsArr=m1V(H*2));for(var V=0,b=0;V<H;V+=1,b+=2){var a=D[V],w=a.value;e[b]=a.name;e[b+1]=w}}return t};
Yhu=function(D,t,H,e,V){return t==H&&e==V};
lYX=function(D){for(var t=d_,H=uD();H!==D;){var e=H.nextSibling;t.removeChild(H);WI.deleted.push(H);H=e}};
uD=function(){return IZ?IZ.nextSibling:d_.firstChild};
Qt=function(){IZ=uD()};
d13=function(D,t,H){Qt();var e;a:{if(e=IZ){do{var V=e,b=D,a=t,w=pR(V,a);if(voA(V,b,w.nameOrCtor,a,w.key))break a}while(t&&(e=e.nextSibling))}e=null}e||(D==="#text"?(H=BI.createTextNode(""),JnD(H,"#text",null),D=H):(e=BI,V=d_,typeof D==="function"?e=new D:e=(V=D==="svg"?"http://www.w3.org/2000/svg":D==="math"?"http://www.w3.org/1998/Math/MathML":V==null||pR(V).nameOrCtor==="foreignObject"?null:V.namespaceURI)?e.createElementNS(V,D):e.createElement(D),JnD(e,D,t),D=e,H&&D.setAttribute("nonce",H)),WI.created.push(D),
e=D);H=e;if(H!==IZ){if(pFT.indexOf(H)>=0)for(D=d_,t=H.nextSibling,e=IZ;e!==null&&e!==H;)V=e.nextSibling,D.insertBefore(e,t),e=V;else d_.insertBefore(H,IZ);IZ=H}};
x1V=function(D,t,H){d13(D,t,H);d_=IZ;IZ=null;return d_};
RKD=function(){lYX(null);IZ=d_;d_=d_.parentNode};
u9V=function(){IZ=d_.lastChild};
QCu=function(D,t){t=t===void 0?{}:t;var H=t.matches===void 0?Yhu:t.matches;return function(e,V,b){var a=WI,w=BI,h=pFT,K=zp,N=Dv,k=IZ,T=d_,c=voA;BI=e.ownerDocument;WI=new WFD(e);voA=H;zp=[];Dv=[];IZ=null;var U=d_=e.parentNode,S,L=IYT.call(e);if((S=L.nodeType===11||L.nodeType===9?L.activeElement:null)&&e.contains(S)){for(L=[];S!==U;)L.push(S),S=S.parentNode||(U?S.host:null);U=L}else U=[];pFT=U;try{return D(e,V,b)}finally{e=WI,tZ&&e.deleted.length>0&&tZ(e.deleted),BI=w,WI=a,voA=c,zp=K,Dv=N,IZ=k,d_=T,
pFT=h}}};
yn6=function(D,t,H,e){Hn.push(AnA);Hn.push(D);Hn.push(t);Hn.push(H);Hn.push(e)};
zKV=function(D,t,H){var e=Dv;t=t._attrsArr||(t._attrsArr=m1V(e.length));for(var V=!t.length||!1,b=0;b<e.length;b+=2){var a=e[b];if(V)t[b]=a;else if(t[b]!==a)break;var w=e[b+1];if(V||t[b+1]!==w)t[b+1]=w,yn6(D,a,w,H)}if(b<e.length||b<t.length){for(b=V=b;b<t.length;b+=2)eG[t[b]]=t[b+1];for(b=V;b<e.length;b+=2)V=e[b],a=e[b+1],eG[V]!==a&&yn6(D,V,a,H),t[b]=V,t[b+1]=a,delete eG[V];JL(t,e.length);for(var h in eG)yn6(D,h,void 0,H),delete eG[h]}D=BvK;BvK=H=Hn.length;for(h=D;h<H;h+=5)(0,Hn[h])(Hn[h+1],Hn[h+
2],Hn[h+3],Hn[h+4]);BvK=D;JL(Hn,D);JL(e,0)};
DlV=function(D){d13("#text",null);var t=IZ;var H=pR(t);if(H.text!==D){H=H.text=D;for(var e=1;e<arguments.length;e+=1)H=(0,arguments[e])(H);t.data!==H&&(t.data=H)}};
FHD=function(D,t,H){if(H===!1&&t7D.has(t))YM(D,t,null);else if(t!=="idomKey"&&t!=="skip"&&t!=="skipchildren"&&t!=="children"&&t!=="el")if(t.startsWith("on")){if(t[2]!==":")throw Error("Sb`"+t);if(H===void 0||H===null){var e;(e=F2.handleError)==null||e.call.apply(e,[F2].concat(_.A6(g_(Error("$b`"+t),D.tagName))));D[t]=void 0}else{var V=t.slice(3);e=nR();if(V==="jsaction"){H=Array.isArray(H)?H:[H];H=_.F(H);for(var b=H.next();!b.done;b=H.next()){b=b.value;if(typeof b!=="object"||b===null||typeof b.selfReg!==
"function")throw Error("Tb`"+t);b.selfReg(0,D,e?_.Sj:function(){})}}else{if(typeof H!=="object"||H===null)throw Error("Vb`"+t+"`"+typeof H);
if(typeof H.getFn!=="function")throw Error("Ub`"+t+"`"+Object.keys(H));if(H.selfReg)H.selfReg(0,D,V,e?_.Sj:function(){});
else if(e&&D["on"+V]===void 0){var a=H.getFn(0);D.addEventListener(V,a);_.Sj(function(){return void D.removeEventListener(V,a)})}else if(e||!HGK.includes(V))D["on"+V]=H.getFn(0)}}}else{if(t.startsWith("data-")&&typeof H==="string")try{H=e6u(H)}catch(w){H="zSoyz"}typeof H!=="function"||D._disposeEffects!=null?((e=t.startsWith("prop:"))&&(t=t.slice(5)),F2.enableAttributeSanitization&&(e&&V7D(D.tagName)||(H=no6(D.tagName,t,H))),t==="style"?("function"==typeof _.Vc&&H instanceof _.Vc&&(H=H.toString()),
bG$(D,t,H)):e?D[t]=H:qWV(D,t,H)):(D._signalProps||(D._signalProps=[]),D._signalValues||(D._signalValues=[]),D._signalProps.push(t))}};
ask=function(D,t,H){H=(H===void 0?{}:H).isReactive;if(t==null?0:t.el){var e=t.el,V;(V=e.onRender)==null||V.call(e,D);D._disposeRef||(D._disposeRef=function(){var b;(b=e.onUnmount)==null||b.call(e);delete D._disposeRef},H&&_.Sj(function(){var b;
(b=D._disposeRef)==null||b.call(D)}))}};
V7D=function(D){return D.length>0&&D.includes("-")&&!w3u.includes(D.toLowerCase())};
ZGk=function(D){return aZ(D)&&bh in D};
szD=function(D){return ZGk(D)?D[bh].flattened:D};
h68=function(D,t){var H=_.RE.apply(2,arguments),e;t=(e=t)!=null?e:{};e={};return e.type=D,e.props=t,e.children=H,e[q2]=!0,e};
_.FH=function(D){return D.children};
aD=function(D){var t=GAD!==h68;GAD=D?ERD:h68;return t};
_.w1=function(D){return _.Wk(D)?"nodeType"in D:!1};
Zv=function(){return document.createTextNode("")};
s4=function(D){D=document.createTextNode(String(D));D._isSignalTextNode=!0;return D};
NZT=function(D){return D!=null&&D.contentKind===hZ||D instanceof IE||KHD(D)};
kA6=function(D){var t=document.createElement("div");if(KHD(D)&&iZ8(D))_.Fq(t,iZ8(D));else if(D instanceof IE)_.Fq(t,D);else if(D!=null&&D.contentKind===hZ){if(D.contentKind!==hZ)throw Error("Zb");D=Ql(D.toString());_.Fq(t,D)}D=_.F(t.childNodes);for(var H=D.next();!H.done;H=D.next())H.value._isSafeOrSanitizedHtmlNode=!0;return t};
G5=function(D){D=typeof D;return D==="string"||D==="number"||D==="boolean"};
TZA=function(D){return D instanceof md||gw(D)||D instanceof Z7||"function"==typeof _.Vc&&D instanceof _.Vc};
cKR=function(D,t){var H=D.parentElement;if(!H)return t;H.replaceChild(t,D);return t};
jzk=function(D,t){var H=D[0].parentElement;if(H)if(D[0].previousSibling||D[D.length-1].nextSibling){H.insertBefore(t,D[0]);for(var e=D.length-1;e>=0;e--)H.removeChild(D[e])}else H.textContent="",H.appendChild(t);return t};
$lA=function(D,t){if(D[0].parentElement)for(var H=D[0].parentElement,e=t.length,V=D.length,b=e,a=0,w=0,h=D[V-1].nextSibling,K=null;a<V||w<b;)if(D[a]===t[w])a++,w++;else{for(;D[V-1]===t[b-1];)V--,b--;if(V===a)for(var N=b<e?w?t[w-1].nextSibling:t[b-w]:h;w<b;){var k=t[w++];H.insertBefore(k,N)}else if(b===w)for(;a<V;)N=D[a],K&&K.has(N)||H.removeChild(N),a++;else if(D[a]===t[b-1]&&t[w]===D[V-1])N=D[--V].nextSibling,H.insertBefore(t[w++],D[a++].nextSibling),H.insertBefore(t[--b],N),D[V]=t[b];else{if(!K)for(K=
new Map,N=w;N<b;)K.set(t[N],N++);N=K.get(D[a]);if(N==null)H.removeChild(D[a]),a++;else if(w<N&&N<b){k=a;for(var T=1,c=void 0;++k<V&&k<b&&(c=K.get(D[k]))!=null&&c===N+T;)T++;if(T>N-w)for(k=D[a];w<N;)H.insertBefore(t[w++],k);else H.replaceChild(t[w++],D[a++])}else a++}}return t};
rK6=function(D){if(Array.isArray(D)){if(D.length>1)throw Error("jc`"+D.length+"`"+D.map(iGA).join(", "));D=D[0]}if(D==null)return null;if(!(D instanceof _.e2)){var t,H;if((t=window)==null?0:(H=t.trustedTypes)==null?0:H.isScript(D))throw Error("ic");if(String(D).trim().length===0)return null;throw Error("kc`"+iGA(D));}return D};
OG8=function(D,t){t=rK6(t);t!==null&&_.bF(D,t)};
Ul$=function(D){if(Array.isArray(D)){if(D.length>1)throw Error("lc`"+D.length+"`"+D.map(iGA).join(", "));D=D[0]}if(D==null)return null;if(!(D instanceof Z7)){if(String(D).trim().length===0)return null;throw Error("mc`"+iGA(D));}return D};
oRK=function(D,t){t=Ul$(t);t!==null&&(D.textContent=k76(t))};
iGA=function(D){return"("+typeof D+") "+(D!=null&&typeof D==="object"?D.constructor.name:typeof D)+" "+D};
PoX=function(){};
N2=function(D,t){t=t===void 0?{}:t;var H=nRK(),e=!0,V,b=!!F2.legacyTriggerSoyRendererEvents;b&&(V=I4D());_.LR(function(){var a=!e&&t.isControlFlowComponent&&b,w=a?H[bh].flattened[0].parentElement:void 0;e=!1;_.E4.setUp();t.isControlFlowComponent&&r_++;var h=H[0],K=H[bh].flattened,N=aD(!0);try{var k=D(),T=CoT(h,k,H);Array.isArray(T)||(H[bh].flattened=[T]);var c=H[bh].flattened;if(K&&(!Array.isArray(K)||K.length!==0)){var U=Array.isArray(K)?K[0]:K,S=U[KY],L=U._disposeEffects;U._disposeEffects=void 0;
U=Array.isArray(c)?c[0]:c;U[KY]=S;U[KY]&&(U[KY].numNodes=U===c?1:c.length);U._disposeEffects=L}H[0]=T;t.isControlFlowComponent&&UP(!1)}catch(J){throw t.isControlFlowComponent&&UP(!0),J;}finally{aD(N),_.E4.tearDown()}a&&(a=V,a!=null||(a=_.MED(document).getAppContext()),a.get(mlu).JSC$29055_getEventTarget().dispatchEvent(new M7K(SWX,w,hZ)))},t.debugName);
return H};
CoT=function(D,t,H){for(;typeof t==="function";)t=t();if(t!=null&&t[q2]){var e,V,b;(b=F2.handleError)==null||b.call.apply(b,[F2].concat(_.A6(g_(Error("nc`"+((e=t.type)==null?void 0:e.TAG_NAME)),(V=t.type)==null?void 0:V.TAG_NAME))))}if(D==null)return t==null?Zv():G5(t)?s4(t):TZA(t)?s4(t.toString()):_.w1(t)?t:t.length===0?Zv():X3D(t,H);if(_.w1(D)){if(t==null)return cKR(D,Zv());if(G5(t))return fsD(D,t);if(TZA(t))return fsD(D,t.toString());if(_.w1(t))return cKR(D,t);if(t.length===0)return cKR(D,Zv());
t=X3D(t,H);$lA([D],H[bh].flattened);return t}D=T5(D);if(t==null)return jzk(D,Zv());if(G5(t))return jzk(D,s4(t));if(TZA(t))return jzk(D,s4(t.toString()));if(_.w1(t))return $lA(D,[t])[0];if(t.length===0)return jzk(D,Zv());t=X3D(t,H);$lA(D,H[bh].flattened);return t};
fsD=function(D,t){D.nodeType===Node.TEXT_NODE?D.textContent!==String(t)&&(D.textContent=String(t)):D=cKR(D,s4(t));return D};
T5=function(D,t,H){return LH6(D,t!=null?t:[],H===void 0?!1:H)};
X3D=function(D,t){var H=T5(D,void 0,!0);if(H.length===0)return Zv();t[bh].flattened=H;return D};
LH6=function(D,t,H,e,V){t=t===void 0?[]:t;H=H===void 0?!1:H;V=V===void 0?-1:V;if(D==null)return t;if(D instanceof cn){var b=D.render();return LH6(b,t,H,e,V)}if(_.w1(t)&&t.nodeType===Node.ELEMENT_NODE)switch(t.tagName){case "SCRIPT":OG8(t,D);return;case "STYLE":oRK(t,D);return}G5(D)&&(D=s4(D),e&&H&&(e[V]=D));if(NZT(D)){H=kA6(D);H=Array.from(H.childNodes);H=_.F(H);for(b=H.next();!b.done;b=H.next())AK6(t,b.value);return t}TZA(D)&&(D=s4(D.toString()),e&&H&&(e[V]=D));if(_.w1(D))return AK6(t,D);if(Array.isArray(D)){for(b=
0;b<D.length;b++)LH6(D[b],t,H,D,b);return t}if(typeof D==="function"){b=N2(function(){var w=D();return w!=null&&!G5(w)&&NZT(w)?(w=kA6(w),Array.from(w.childNodes)):w},{debugName:"qmF2ne",
debugFn:D})[0];if(Array.isArray(b)){H=_.F(b);for(b=H.next();!b.done;b=H.next())AK6(t,b.value);return t}e&&H&&(e[V]=b);return AK6(t,b)}if(D!=null&&D[q2]){e=D;V=aD(!0);var a=GAD;try{b=a.apply(null,[e.type,e.props].concat(_.A6(e.children)))}finally{aD(V)}return LH6(b,t,H)}(a=F2.handleError)==null||a.call.apply(a,[F2].concat(_.A6(g_(Error("oc")))));return t};
nRK=function(D){var t={};t=Object.assign([],(t[bh]={flattened:[]},t));if(!D)return t;t[0]=X3D(D,t);return t};
AK6=function(D,t){Array.isArray(D)?D.push(t):D.appendChild(t);return D};
jG=function(D){if(!F2.enableLazyTsx)return D;if(Array.isArray(D)){for(var t=0;t<D.length;t++)D[t]=jG(D[t]);return D}return D instanceof cn?(D=D.render(),jG(D)):D};
JKA=function(D,t){var H,e,V=wFk(D),b=function(c){e=c;c=aD(!0);var U=Z_($C);b7u("render",V);try{H=jG(D(t))}finally{qp$("render",V),Z_(U),aD(c)}};
b=F2.enableContextPerComponent?w$V(b,V):X2(b,F2.alwaysTrackContexts||!!HI);sRV(e);if(!t.renderedFromIdom){var a=_.ej(e);try{return gRV(D,t,H),H}finally{_.ej(a)}}!ZGk(H)&&Array.isArray(H)&&(H=nRK(H));var w=szD(H);a=Array.isArray(w)?w[0]:w;var h=!1;if(a){var K,N=(K=t==null?void 0:t.idomKey)!=null?K:D;K=w!==a;a._disposeEffects=b;var k=a[KY]||{},T=ZGk(H)?H:k.sourceDynamicRange;Object.assign(k,{key:N,numNodes:K?w.length:1,context:e,higherOrder:!!a[KY],sourceDynamicRange:T});a[KY]=k}else h=!0;(function(){var c=
_.ej(e);try{gRV(D,t,w)}finally{_.ej(c)}})();
h&&b();return H};
YW$=function(D){var t={},H;for(H in D)t={prev$jscomp$24:void 0,next$jscomp$33:void 0},t.prev$jscomp$24=ih[H],t.next$jscomp$33=D[H],ih[H]=function(e){return function(){var V=_.RE.apply(0,arguments);e.prev$jscomp$24.apply(null,_.A6(V));e.next$jscomp$33.apply(null,_.A6(V))}}(t)};
lsK=function(){if(nR())throw Error("pc");return r1};
vRD=function(D,t){if(!D.__unmounted&&t){D.__unmounted=!0;try{D.didUnmount()}catch(V){var H,e;(e=F2.handleError)==null||e.call.apply(e,[F2].concat(_.A6(g_(V,(H=D.__type)==null?void 0:H.TAG_NAME))))}ih.didUnmount(D);D.el=null;t.__instance&&delete t.__instance}};
dlk=function(D,t,H){D._signalProps!=null&&D._disposeEffects==null&&((H===void 0?0:H)?D._disposeEffects=X2(function(){return void p3R(D,t)},F2.alwaysTrackContexts||!!HI):p3R(D,t))};
p3R=function(D,t){_.LR(function(){for(var H=D._signalProps,e=D._signalValues,V=0;V<H.length;V++){var b=H[V],a=t[b]();e[V]!==a&&(e[V]=a,FHD(D,b,a))}},"e3YVbb")};
xlR=function(D,t,H){var e,V=[];D._disposeEffects=X2(function(){_.LR(function(){var b=H();if(b===null||b===void 0)b="";if(G5(b)||b===null)e!=null||(e=document.createTextNode("")),e.parentNode!==D&&(e._isSignalTextNode=!0,D.insertBefore(e,t)),e.textContent=String(b);else if(NZT(b)){for(var a=V.length>0?V[V.length-1].nextSibling:t,w=_.F(V),h=w.next();!h.done;h=w.next())D.removeChild(h.value);b=kA6(b);V=Array.from(b.childNodes);b=_.F(V);for(w=b.next();!w.done;w=b.next())D.insertBefore(w.value,a)}else throw h=
(w=(a=oZ)==null?void 0:a.name)!=null?w:"unknown",Error("ec`"+h+"`"+typeof b);},"VvDgC")},F2.alwaysTrackContexts||!!HI)};
WHD=function(D,t){var H=_.RE.apply(2,arguments);t!=null||(t={});return!F2.enableLazyTsx||oZ!=null&&!nR()?R68(D,t,H):new uuV(D,t,H)};
R68=function(D,t,H){if(D===_.FH)return H;if(typeof D==="function")return oZ&&!nR()&&(t.renderedFromIdom=!0),Znu(D,function(){var b=Is6(D,t,H);if(b)return b;H.length>0&&(t.children=H.length===1?H[0]:H);if(D.componentType===PI){var a;w$V(function(){var w=t;if(D.componentType!==PI)a=!1;else{w||(w={});var h=new O4(w,D),K=Z_($C);try{var N=h.render(w)}finally{Z_(K)}N instanceof HTMLElement?(N.__instance=h,h.el=N,h.__type=D,D.TAG_NAME=N.tagName.toLowerCase(),ih.didPatch(h),a=N):a=N}},D.name);
if(a)return a}return JKA(D,t)},t.debugInstance);
var e=QzV(D,t),V;for(V in t)FHD(e,V,t[V]);dlk(e,t);T5(H,e);ask(e,t,{isReactive:!0});yK$(e,t);return e};
QzV=function(D,t){D=(BZX.has(D.toLowerCase())?0:z6D.has(D.startsWith("svg:")?D.replace("svg:",""):D))?document.createElementNS("http://www.w3.org/2000/svg",D.startsWith("svg:")?D.replace("svg:",""):D):DJD(D,t)||document.createElement(D);D[tPV]=!0;return D};
Hl$=function(D){if(D){var t;(t=D._disposeRef)==null||t.call(D);var H;(H=D._disposeEffects)==null||H.call(D);D.__instance&&D.__instance instanceof U4&&(t=D.__instance,vRD(t,D),t instanceof O4&&t.disposeEffects());for(t=0;t<D.childNodes.length;t++)Hl$(D.childNodes[t])}};
VPV=function(D){eLX.push(D)===1&&requestAnimationFrame(function(){setTimeout(function(){var t=[].concat(_.A6(eLX));eLX=[];t=_.F(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;try{for(var e=0;e<H.length;e++)Hl$(H[e])}catch(V){e=H=void 0,(e=(H=F2).handleError)==null||e.call.apply(e,[H].concat(_.A6(g_(V))))}}})})};
_.G=function(D,t){return GAD.apply(null,[D,t].concat(_.A6(_.RE.apply(2,arguments))))};
_.oD=function(D){return D};
_.Pn=function(D){return{isDefault:!0,children:D.children}};
_.E=function(D){var t=D.cond;if(t===void 0)return D.else&&D.else();var H=_.jj(function(){return!!t()},void 0,"JHVi8"),e=function(){var V=t();
if(!V){var b;(b=F2.handleError)==null||b.call.apply(b,[F2].concat(_.A6(g_(blk.nonNullableCondIsNull()))))}return V};
return N2(function(){var V=H(),b;X2(function(){var a=Z_($C);try{b=jG(V?D.then(e):D.else&&D.else())}finally{Z_(a)}},!0);
return b},{debugName:D.debugInstance,
debugFn:D.then,isControlFlowComponent:!0})};
qTD=function(D){return _.E(D)};
_.nY=function(D){return D.keyBy==="INDEX"?F$8(D):ak6(D)};
whV=function(D){D=_.F(D);for(var t=D.next();!t.done;t=D.next()){var H=void 0;(H=t.value)==null||H()}};
ak6=function(D){var t=D.keyBy===void 0||D.keyBy==="REFERENCE",H=t?function(N){return N}:D.keyBy,e=[],V=[],b=[],a=[],w=[],h=[],K=!0;
_.Sj(function(){whV(a)});
return N2(function(){var N=D.each(),k=N.length;if(k===0){if(e.length===0&&!K)return b;whV(a);e=N;V=[];for(N=0;N<e.length;N++)V.push(H(e[N]));b=[];a=[];w=[];h=[];D.fallback&&(a[0]=ZlT(function(){b[0]=jG(D.fallback())}));
K=!1;return b}for(var T=new s4K,c=e.length-1;c>=0;c--)T.push(V[c],c);c=Array(k);for(var U=Array(k),S=Array(k),L=Array(k),J=Array(t?0:k),g={i$jscomp$450:0};g.i$jscomp$450<k;g={i$jscomp$450:g.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$562:void 0},g.i$jscomp$450++){g.item$jscomp$104=N[g.i$jscomp$450];g.key$jscomp$562=H(g.item$jscomp$104);var Q=T.pop(g.key$jscomp$562);Q!=null?(S[g.i$jscomp$450]=b[Q],U[g.i$jscomp$450]=V[Q],c[g.i$jscomp$450]=a[Q],L[g.i$jscomp$450]=w[Q],t||(J[g.i$jscomp$450]=h[Q]),$M(function(u){return function(){L[u.i$jscomp$450](u.i$jscomp$450);
if(!t)J[u.i$jscomp$450](u.item$jscomp$104)}}(g)),delete a[Q]):c[g.i$jscomp$450]=ZlT(function(u){return function(){var R=_.F(_.KR(u.i$jscomp$450,void 0,"Fqk1zd")),I=R.next().value;
R=R.next().value;L[u.i$jscomp$450]=R;U[u.i$jscomp$450]=u.key$jscomp$562;if(t)S[u.i$jscomp$450]=jG(D.children(u.item$jscomp$104,I));else{var tT=_.F(_.KR(u.item$jscomp$104,void 0,"GBj5de"));R=tT.next().value;tT=tT.next().value;J[u.i$jscomp$450]=tT;S[u.i$jscomp$450]=jG(D.children(R,I))}}}(g))}whV(a);
e=N;V=U;b=S;a=c;w=L;h=J;K=!1;return S},{debugName:D.debugInstance,
debugFn:D.each,isControlFlowComponent:!0})};
F$8=function(D){var t=[],H=[],e=[],V=[],b=!1;_.Sj(function(){for(var a=_.F(V),w=a.next();!w.done;w=a.next())w=w.value,w()});
return N2(function(){var a=D.each();b&&a.length>0&&(V.pop()(),t.pop(),b=!1);for(var w=Array(a.length),h={i$jscomp$451:0};h.i$jscomp$451<a.length;h={i$jscomp$451:h.i$jscomp$451},h.i$jscomp$451++)if(h.i$jscomp$451<t.length)t[h.i$jscomp$451]!==a[h.i$jscomp$451]&&($M(function(N){return function(){return void H[N.i$jscomp$451](a[N.i$jscomp$451])}}(h)),t[h.i$jscomp$451]=a[h.i$jscomp$451]),w[h.i$jscomp$451]=e[h.i$jscomp$451];
else{var K=ZlT(function(N){return function(){t[N.i$jscomp$451]=a[N.i$jscomp$451];var k=_.F(_.KR(a[N.i$jscomp$451],void 0,"JMMLmd")),T=k.next().value;k=k.next().value;H[N.i$jscomp$451]=k;w[N.i$jscomp$451]=jG(D.children(T,N.i$jscomp$451))}}(h));
V[h.i$jscomp$451]=K}for(;t.length>a.length;)t.pop(),V.pop()(),H.pop();a.length===0&&!b&&D.fallback&&(h=ZlT(function(){w[0]=jG(D.fallback())}),V[0]=h,b=!0);
return e=w},{debugName:D.debugInstance,
isControlFlowComponent:!0})};
ZlT=function(D){var t=HI;return X2(function(H){var e=Z_($C);try{H.parent=t,D(H)}finally{Z_(e)}},!1)};
_.CY=function(D){var t=hLk(D),H=_.jj(function(){return GfV(t)},void 0,"F1PF4");
return N2(function(){var e=H(),V;X2(function(){var b=Z_($C);try{V=jG(e())}finally{Z_(b)}});
return V},{debugName:D.debugInstance,
isControlFlowComponent:!0})};
hLk=function(D){D=D.children;return Array.isArray(D)?D:[D]};
E0X=function(D){var t=D.props;D=D.getChildren()[0];return t.when?{when:t.when,children:D}:{isDefault:!0,children:D}};
GfV=function(D){var t=function(){return null};
D=_.F(D);for(var H=D.next();!H.done;H=D.next())if(H=H.value,H!=null&&H[q2]&&(H=H.type===_.Pn?{isDefault:!0,children:H.children[0]}:{when:H.props.when,children:H.children[0]}),H instanceof cn&&(H=E0X(H)),H.isDefault)t=H.children;else if(H.when())return H.children;return t};
NE6=function(D){var t=null,H,e={get value(){var b,a;(a=(b=V).validateGetValue)==null||a.call(b);return V.__value},set value(b){var a,w;(w=(a=V).validateSetValue)==null||w.call(a,b);V.__value=b;V.__hasBeenSet=!0}},V=(e.__value=null,e.__hasBeenSet=!1,e.__hasErrored=!1,e.onRender=function(b){if(H&&b!==H){H._disposeRef=void 0;var a;(a=t)==null||a()}H=b;t=D(b)||null},e.onUnmount=function(){var b;
(b=t)==null||b();t=V.value=null},e[_.K$A]=!0,e);
return V};
mI=function(D){return typeof D==="symbol"};
TE3=function(D){var t=lsK();if(t==null)throw _.kfD.PRIMITIVE_INVALID_HOOK_CALL();var H=t.hookCounter++;t.hooks||(t.hooks=[]);var e=t.hooks;e[H]||(e[H]={key:D,host:t});if(D!==e[H].key){if(t.__type){var V;D=(V=t.__type)==null?void 0:V.name}else D=t instanceof O4?wFk(t.functionComponent):"<"+t.el.tagName.toLowerCase()+">";throw _.kfD.OUT_OF_ORDER_HOOK_CALL(D);}return e[H]};
cE6=function(D,t){return!D||D.length!==(t==null?void 0:t.length)||D.some(function(H,e){return H!==t[e]})};
j4k=function(D,t){var H=TE3("onChange"),e=lsK();cE6(H.deps,t)&&(H.deps=t,H.pendingEffect=D,e.__syncEffects||(e.__syncEffects=[]),e.__syncEffects.push(H))};
_.M2=function(D,t,H){H!=null||(H={});H=H.appContext;var e=!!F2.legacyTriggerSoyRendererEvents;_.E4.setUp();try{var V=$JT(D,t,H);e&&(t=H,t!=null||(t=_.MED(document).getAppContext()),t.get(mlu).JSC$29055_getEventTarget().dispatchEvent(new M7K(ilT,D,hZ)));_.E4.log(D);return V}finally{_.E4.tearDown()}};
$JT=function(D,t,H){var e=function(){var b=Z_($C);try{return X2(function(){var a=_.MED(_.pW(D)),w;var h=WYX({rootElement:{value:D},appContext:H||(a==null?void 0:(w=a.getOptionalAppContext)==null?void 0:w.call(a)),dispatcher:a});a=_.ej(h);h=aD(!0);r_++;try{T5(t(),D),UP(!1)}catch(K){throw UP(!0),K;}finally{aD(h),_.ej(a)}},!1)}catch(a){throw F2.enableContextBasedComponentStacks&&CR(a),a;
}finally{Z_(b)}},V=mG(function(){return e()});
D[rED]=!0;return function(){D.textContent="";V();D[rED]=!1}};
_.SG=function(D){if(qhD(w_)){var t;(t=F2.handleError)==null||t.call.apply(t,[F2].concat(_.A6(g_(Error("dc")))))}var H=HI,e=oZ;Ix3({onInitType:u0K,run:function(){if(H&&!H.isDisposed){var V=_.ej(H);try{mG(function(){return void D()},e)}catch(b){throw F2.enableContextBasedComponentStacks&&CR(b),b;
}finally{_.ej(V)}}}})};
OlR=function(D,t){j4k(function(){return _.EP(D)},t)};
_.XH=function(D){nR()?_.SG(function(){_.EP(D)}):j4k(function(){return _.EP(D)},[])};
o0T=function(D){var t=[].concat(_.A6(D));D.length=0;D=_.F(t);for(t=D.next();!t.done;t=D.next()){t=t.value;UJu(t);var H=t.pendingEffect;t.pendingEffect=null;if(H=H==null?void 0:H())t.pendingCleanup=H}};
UJu=function(D){var t=D.pendingCleanup;D.pendingCleanup=null;t==null||t()};
P18=function(D,t){if(nR())return D();var H=TE3("useMemoInternal");cE6(H.deps,t)&&(H.deps=t,H.value=D());return H.value};
n08=function(D,t){return P18(D,t)};
fY=function(D){return P18(D,[])};
C1k=function(D){return fY(function(){return{value:D}})};
_.LY=function(D,t){if(!D)return null;D=Object.keys(D);D=_.F(D);for(var H=D.next();!H.done;H=D.next()){H=H.value;var e=H.toLowerCase();if(e.indexOf(t,e.length-t.length)>-1)return H}return null};
_.JZ=function(){var D=arguments,t=_.g1;D.length>1?t[D[0]]=D[1]:D.length===1&&Object.assign(t,D[0])};
_.YC=function(D,t){return D in _.g1?_.g1[D]:t};
_.lh=function(D,t){return!!_.YC(D,t)};
mJV=function(D){var t=_.g1.EXPERIMENT_FLAGS;return t?t[D]:void 0};
ST6=function(D){MPD.forEach(function(t){return t(D)})};
_.pY=function(D){return D&&window.yterr?function(){try{return D.apply(this,arguments)}catch(t){_.vn(t)}}:D};
_.vn=function(D){var t=_.RD("yt.logging.errors.log");t?t(D,"ERROR",void 0,void 0,void 0,void 0,void 0):(t=_.YC("ERRORS",[]),t.push([D,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.JZ("ERRORS",t));ST6(D)};
_.uh=function(D,t,H,e,V){var b=_.RD("yt.logging.errors.log");b?b(D,"WARNING",t,H,e,void 0,V):(b=_.YC("ERRORS",[]),b.push([D,"WARNING",t,H,e,void 0,V]),_.JZ("ERRORS",b))};
fkD=function(D,t){t=D.split(t);for(var H={},e=0,V=t.length;e<V;e++){var b=t[e].split("=");if(b.length===1&&b[0]||b.length===2)try{var a=XhD(b[0]||""),w=XhD(b[1]||"");if(a in H){var h=H[a];Array.isArray(h)?_.x3(h,w):H[a]=[h,w]}else H[a]=w}catch(T){var K=T,N=b[0],k=String(fkD);K.args=[{key:N,value:b[1],query:D,method:L$3===k?"unchanged":k}];AEu.hasOwnProperty(N)||_.uh(K)}}return H};
g0X=function(D){var t=[];_.J$.forEach(D,function(H,e){var V=_.Wn(e);H=Array.isArray(H)?H:[H];_.ID(H,function(b){b==""?t.push(V):t.push(V+"="+_.Wn(b))})});
return t.join("&")};
_.Qc=function(D){D.charAt(0)==="?"&&(D=D.substring(1));return fkD(D,"&")};
_.yc=function(D){return D.indexOf("?")!==-1?(D=(D||"").split("#")[0],D=D.split("?",2),_.Qc(D.length>1?D[1]:D[0])):{}};
_.Bn=function(D,t){return JEV(D,t||{},!0)};
YTV=function(D,t){return JEV(D,t||{},!1)};
JEV=function(D,t,H){var e=D.split("#",2);D=e[0];e=e.length>1?"#"+e[1]:"";var V=D.split("?",2);D=V[0];V=_.Qc(V[1]||"");for(var b in t)if(H||!_.J$.containsKey(V,b))V[b]=t[b];return _.z5(D,V)+e};
ec=function(D){if(!t)var t=window.location.href;var H=_.DU(D)[1]||null,e=_.tW(D);return H&&e?HY(D,t):e?_.tW(t)===e&&(Number(_.DU(t)[4]||null)||null)===(Number(_.DU(D)[4]||null)||null):!0};
_.v0V=function(D){D=lk3(D);return D===null?!1:D[0]==="com"&&D[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
lk3=function(D){D=_.tW(D);return D!==null?D.split(".").reverse():null};
XhD=function(D){return D&&D.match(phK)?D:VM(D)};
_.by=function(D){return new dJV(D)};
_.qS=function(){xJV||(xJV=new RLK);return xJV};
W$A=function(){var D=uyu;return function(){var t=_.qS();if(!t.resolve(_.by(D))){var H={};t.addProvider((H.provide=D,H.useClass=D,H[Fc]=void 0,H))}return t.resolve(D)}};
Q46=function(D){var t=_.aA,H,e;_.Z(function(V){H=_.qS();return(e=H.resolve(_.by(t)))?(D(e),V.return(Promise.resolve(e))):V.return(H.resolve(new Ik3(t)).then(function(b){D(b);return b}))})};
_.r=function(D){D=wi(D);return typeof D==="string"&&D==="false"?!1:!!D};
_.ZU=function(D,t){D=wi(D);return D===void 0&&t!==void 0?t:Number(D||0)};
yE3=function(D){D=wi(D);return Array.isArray(D)?_.Yz(D,function(t){return Number(t||0)}):[Number(D||0)]};
_.sa=function(D){D=wi(D);return D!==void 0?String(D):""};
_.hW=function(D){D=wi(D);return Array.isArray(D)?_.Yz(D,function(t){return String(t||"")}):[String(D||"")]};
BEV=function(){return _.YC("EXPERIMENTS_TOKEN","")};
wi=function(D){return _.YC("EXPERIMENT_FLAGS",{})[D]};
zLk=function(){for(var D=[],t=_.YC("EXPERIMENTS_FORCED_FLAGS",{}),H=_.F(Object.keys(t)),e=H.next();!e.done;e=H.next())e=e.value,D.push({key:e,value:String(t[e])});H=_.YC("EXPERIMENT_FLAGS",{});e=_.F(Object.keys(H));for(var V=e.next();!V.done;V=e.next())V=V.value,V.startsWith("force_")&&t[V]===void 0&&D.push({key:V,value:String(H[V])});return D};
tRV=function(){if(!DQR)return null;var D=DQR();return"open"in D?D:null};
_.HC3=function(D){switch(_.Ea(D)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.Ea=function(D){return D&&"status"in D?D.status:-1};
_.KZ=function(D,t){typeof D==="function"&&(D=_.pY(D));return window.setTimeout(D,t)};
_.NS=function(D,t){typeof D==="function"&&(D=_.pY(D));return window.setInterval(D,t)};
_.kx=function(D){window.clearTimeout(D)};
VRA=function(D){D=_.yc(D);for(var t=_.F(eG8),H=t.next();!H.done;H=t.next())if(D[H.value]!==void 0)return!0;return!1};
F1D=function(D,t,H,e,V,b,a,w,h){H=H===void 0?"GET":H;e=e===void 0?"":e;w=w===void 0?!1:w;var K=tRV();if(!K)return null;var N=function(){(K&&"readyState"in K?K.readyState:0)===4&&t&&_.pY(t)(K)};
"onloadend"in K?K.addEventListener("loadend",N,!1):K.onreadystatechange=N;_.r("debug_forward_web_query_parameters")&&(D=bCu(D,window.location.search));K.open(H,D,!0);b&&(K.responseType=b);a&&(K.withCredentials=!0);H=H==="POST"&&(window.FormData===void 0||!(e instanceof FormData));if(V=qOu(D,V))for(var k in V)K.setRequestHeader(k,V[k]),"content-type"===k.toLowerCase()&&(H=!1);H&&K.setRequestHeader("Content-Type","application/x-www-form-urlencoded");h&&"onprogress"in K&&(K.onprogress=function(){h(K.responseText)});
if(w&&"setAttributionReporting"in XMLHttpRequest.prototype){D={eventSourceEligible:!0,triggerEligible:!1};try{K.setAttributionReporting(D)}catch(T){_.uh(T)}}K.send(e);return K};
qOu=function(D,t){t=t===void 0?{}:t;var H=ec(D),e=_.YC("INNERTUBE_CLIENT_NAME"),V=_.r("web_ajax_ignore_global_headers_if_set"),b;for(b in a83){var a=_.YC(a83[b]),w=b==="X-Goog-AuthUser"||b==="X-Goog-PageId";b!=="X-Goog-Visitor-Id"||a||(a=_.YC("VISITOR_DATA"));var h;if(!(h=!a)){if(!(h=H||(_.tW(D)?!1:!0))){h=D;var K;if(K=_.r("add_auth_headers_to_remarketing_google_dot_com_ping")&&b==="Authorization"&&(e==="TVHTML5"||e==="TVHTML5_UNPLUGGED"||e==="TVHTML5_SIMPLY"))K=lk3(h),K=K===null?!1:K[1]==="google"?
!0:K[2]==="google"?K[0]==="au"&&K[1]==="com"?!0:K[0]==="uk"&&K[1]==="co"?!0:!1:!1;K&&(h=_.TW(h)||"",h=h.split("/"),h="/"+(h.length>1?h[1]:""),K=h==="/pagead");h=K?!0:!1}h=!h}h||V&&t[b]!==void 0||e==="TVHTML5_UNPLUGGED"&&w||(t[b]=a)}"X-Goog-EOM-Visitor-Id"in t&&"X-Goog-Visitor-Id"in t&&delete t["X-Goog-Visitor-Id"];if(H||!_.tW(D))t["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(H||!_.tW(D)){try{var N=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(k){}N&&(t["X-YouTube-Time-Zone"]=
N)}document.location.hostname.endsWith("youtubeeducation.com")||!H&&_.tW(D)||(t["X-YouTube-Ad-Signals"]=g0X(wH$()));return t};
_.ZCD=function(D,t){var H=_.tW(D);_.r("debug_handle_relative_url_for_query_forward_killswitch")||!H&&ec(D)&&(H=document.location.hostname);var e=_.TW(D);e=(H=H&&(H.endsWith("youtube.com")||H.endsWith("youtube-nocookie.com")))&&e&&e.startsWith("/api/");if(!H||e)return D;var V=_.Qc(t),b={};_.ID(eG8,function(a){V[a]&&(b[a]=V[a])});
return YTV(D,b)};
sf3=function(D,t){t.method="POST";t.postParams||(t.postParams={});return _.cY(D,t)};
hGD=function(D,t){var H=_.YC("XSRF_FIELD_NAME"),e;t.headers&&(e=t.headers["Content-Type"]);return!t.excludeXsrf&&(!_.tW(D)||t.withCredentials||_.tW(D)===document.location.hostname)&&t.method==="POST"&&(!e||e==="application/x-www-form-urlencoded")&&!(t.postParams&&t.postParams[H])};
_.cY=function(D,t){var H=t.format||"JSON";D=Guk(D,t);var e=EeT(D,t),V=!1,b=K1V(D,function(h){if(!V){V=!0;w&&_.kx(w);var K=_.HC3(h),N=null,k=400<=h.status&&h.status<500,T=500<=h.status&&h.status<600;if(K||k||T)N=NO3(D,H,h,t.convertToSafeHtml);K&&(K=ku8(H,h,N));N=N||{};k=t.context||_.VA;K?t.onSuccess&&t.onSuccess.call(k,h,N):t.onError&&t.onError.call(k,h,N);t.onFinish&&t.onFinish.call(k,h,N)}},t.method,e,t.headers,t.responseType,t.withCredentials,!1,t.onProgress);
e=t.timeout||0;if(t.onTimeout&&e>0){var a=t.onTimeout;var w=_.KZ(function(){V||(V=!0,b.abort(),_.kx(w),a.call(t.context||_.VA,b))},e)}return b};
Guk=function(D,t){t.includeDomain&&(D=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+D);var H=_.YC("XSRF_FIELD_NAME");if(t=t.urlParams)t[H]&&delete t[H],D=_.Bn(D,t);return D};
EeT=function(D,t){var H=_.YC("XSRF_FIELD_NAME"),e=_.YC("XSRF_TOKEN"),V=t.postBody||"",b=t.postParams;hGD(D,t)&&(b||(b={}),b[H]=e);(_.r("ajax_parse_query_data_only_when_filled")&&b&&Object.keys(b).length>0||b)&&typeof V==="string"&&(V=_.Qc(V),_.J$.extend(V,b),V=t.postBodyFormat&&t.postBodyFormat==="JSON"?JSON.stringify(V):_.jc(V));b=V||b&&!_.J$.isEmpty(b);!TOD&&b&&t.method!=="POST"&&(TOD=!0,_.vn(Error("Jc")));return V};
NO3=function(D,t,H,e){var V=null;switch(t){case "JSON":try{var b=H.responseText}catch(a){throw e=Error("Kc"),e.params=D,_.uh(e),a;}D=H.getResponseHeader("Content-Type")||"";b&&D.indexOf("json")>=0&&(b.substring(0,5)===")]}'\n"&&(b=b.substring(5)),V=JSON.parse(b));break;case "XML":if(D=(D=H.responseXML)?cV6(D):null)V={},_.ID(D.getElementsByTagName("*"),function(a){V[a.tagName]=jfD(a)})}e&&$Q8(V);
return V};
$Q8=function(D){if(_.Wk(D))for(var t in D)t==="html_content"||a$(t,"_html")?D[t]=Ql(D[t]):$Q8(D[t])};
ku8=function(D,t,H){if(t&&t.status===204)return!0;switch(D){case "JSON":return!!H;case "XML":return Number(H&&H.return_code)===0;case "RAW":return!0;default:return!!H}};
cV6=function(D){return D?(D=("responseXML"in D?D.responseXML:D).getElementsByTagName("root"))&&D.length>0?D[0]:null:null};
jfD=function(D){var t="";_.ID(D.childNodes,function(H){t+=H.nodeValue});
return t};
iC6=function(D){if(D.name==="JavaException")return!0;D=D.stack;return D.includes("chrome://")||D.includes("-extension://")||D.includes("webkit-masked-url://")};
rVD=function(D){if(!D.stack)return!0;var t=!D.stack.includes("\n");return t&&D.stack.includes("ErrorType: ")||t&&D.stack.includes("Anonymous function (Unknown script")||D.stack.toLowerCase()==="not available"||D.fileName==="user-script"||D.fileName.startsWith("user-script:")?!0:!1};
_.$x=function(D){_.mg.call(this);this.JSC$10526_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!D};
UQu=function(D,t){var H=D.length,e=0,V=function(){return D.charCodeAt(e++)};
do{var b=OCR(V);if(b===Infinity)break;var a=b>>3;switch(b&7){case 0:b=OCR(V);if(a===t)return b;break;case 1:if(a===t)return;e+=8;break;case 2:b=OCR(V);if(a===t)return D.substr(e,b);e+=b;break;case 5:if(a===t)return;e+=4;break;default:return}}while(e<H)};
OCR=function(D){var t=D(),H=t&127;if(t<128)return H;t=D();H|=(t&127)<<7;if(t<128)return H;t=D();H|=(t&127)<<14;if(t<128)return H;t=D();return t<128?H|(t&127)<<21:Infinity};
PG8=function(D,t,H,e){if(D)if(Array.isArray(D)){var V=e;for(e=0;e<D.length&&!(D[e]&&(V+=oeK(e,D[e],t,H),V>500));e++);e=V}else if(typeof D==="object")for(V in D){if(D[V]){var b=V;var a=D[V],w=t,h=H;b=typeof a!=="string"||b!=="clickTrackingParams"&&b!=="trackingParams"?0:(a=UQu(atob(a.replace(/-/g,"+").replace(/_/g,"/")),2))?oeK(b+".ve",a,w,h):0;e+=b;e+=oeK(V,D[V],t,H);if(e>500)break}}else H[t]=iy(D),e+=H[t].length;else H[t]=iy(D),e+=H[t].length;return e};
oeK=function(D,t,H,e){H+="."+D;D=iy(t);e[H]=D;return H.length+D.length};
iy=function(D){try{return(typeof D==="string"?D:String(JSON.stringify(D))).substr(0,500)}catch(t){return"unable to serialize "+typeof D+" ("+t.message+")"}};
neD=function(D){switch(D){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}};
_.Oa=function(D,t,H,e,V){_.ri.set(D,t,{maxAge:H,path:"/",domain:e===void 0?"youtube.com":e,secure:V===void 0?!1:V})};
_.CGV=function(D,t,H){_.ri.remove(D,t===void 0?"/":t,H===void 0?"youtube.com":H)};
_.Ua=function(){if(_.r("embeds_web_enable_cookie_detection_fix")){if(!_.VA.navigator.cookieEnabled)return!1}else if(!_.ri.isEnabled())return!1;if(!_.ri.isEmpty())return!0;_.r("embeds_web_enable_cookie_detection_fix")?_.ri.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.ri.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.ri.get("TESTCOOKIESENABLED")!=="1")return!1;_.ri.remove("TESTCOOKIESENABLED");return!0};
mQD=function(){var D=_.VA.navigator;return D?D.connection:void 0};
MRK=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(D){}};
_.XHD=function(){var D=mQD();if(D){var t=SO3[D.type||"unknown"]||"CONN_UNKNOWN";D=SO3[D.effectiveType||"unknown"]||"CONN_UNKNOWN";t==="CONN_CELLULAR_UNKNOWN"&&D!=="CONN_UNKNOWN"&&(t=D);if(t!=="CONN_UNKNOWN")return t;if(D!=="CONN_UNKNOWN")return D}};
L1V=function(){var D=mQD();if(D!=null&&D.effectiveType)return f8$.hasOwnProperty(D.effectiveType)?f8$[D.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.PY=function(){try{return _.oA(),!0}catch(D){return!1}};
_.oA=function(D){if(_.YC("DATASYNC_ID")!==void 0)return _.YC("DATASYNC_ID");throw new _.nZ("Datasync ID not set",D===void 0?"unknown":D);};
_.CZ=function(D){this.mechanism=D};
mh=function(D){this.mechanism=D};
MS=function(D){this.storage_=D;this.cachedIsStorageAvailable_=null};
AVV=function(){var D=null;try{D=_.VA.localStorage||null}catch(t){}MS.call(this,D)};
geX=function(){var D=null;try{D=_.VA.sessionStorage||null}catch(t){}MS.call(this,D)};
Sc=function(D,t){this.mechanism_=D;this.JSC$10628_prefix_=t+"::"};
_.JVD=function(D){var t=new AVV;return t.isAvailable()?D?new Sc(t,D):t:null};
_.YO8=function(D){var t=new geX;return t.isAvailable()?D?new Sc(t,D):t:null};
veu=function(){var D;return(D=l8K())==null?void 0:D.get("LAST_RESULT_ENTRY_KEY",!0)};
_.LZ=function(D){pH6||(_.Xc?_.Xc.logError(D):(_.fZ.push({type:"ERROR",payload:D}),_.fZ.length>10&&_.fZ.shift()))};
JW=function(D,t){pH6||(_.Xc?_.Xc.logEvent(D,t):(_.fZ.push({type:"EVENT",eventType:D,payload:t}),_.fZ.length>10&&_.fZ.shift()))};
Yx=function(D){if(D.indexOf(":")>=0)throw Error("Rc");};
ly=function(D){return D.substr(0,D.indexOf(":"))||D};
RGV=function(){return(dQk||xQD)&&vY("applewebkit")&&!vY("version")&&(!vY("safari")||vY("gsa/"))};
vY=function(D){var t=_.TV();return t?t.toLowerCase().indexOf(D)>=0:!1};
I8A=function(D,t,H,e){t=ly(t);var V=D instanceof Error?D:Error("Sc`"+D);if(V instanceof pZ)return V;D={objectStoreNames:H,dbName:t,dbVersion:e};if(V.name==="QuotaExceededError")return new pZ("QUOTA_EXCEEDED",D);if(_.di&&V.name==="UnknownError")return new pZ("QUOTA_MAYBE_EXCEEDED",D);if(V instanceof uKT)return new pZ("MISSING_INDEX",Object.assign({},D,{objectStore:V.objectStore,index:V.index}));if(V.name==="InvalidStateError"&&W1T.some(function(b){return V.message.includes(b)}))return new pZ("EXECUTE_TRANSACTION_ON_CLOSED_DB",
D);
if(V.name==="AbortError")return new pZ("UNKNOWN_ABORT",D,V.message);V.args=[Object.assign({},D,{name:"IdbError",originalName:V.name})];V.level="WARNING";return V};
xx=function(D,t,H){var e=veu();return new pZ("IDB_NOT_SUPPORTED",{context:{caller:D,publicName:t,version:H,hasSucceededOnce:e==null?void 0:e.hasSucceededOnce}})};
QfV=function(D){if(!D)throw Error();throw D;};
yVK=function(D){return D};
BO6=function(D,t,H){var e=function(){try{D.removeEventListener("success",V),D.removeEventListener("error",b)}catch(a){}},V=function(){t(D.result);
e()},b=function(){H(D.error);
e()};
D.addEventListener("success",V);D.addEventListener("error",b)};
zGk=function(D){return new Promise(function(t,H){BO6(D,t,H)})};
WY=function(D){return new RA(new uy(function(t,H){BO6(D,t,H)}))};
DF8=function(D,t){return new RA(new uy(function(H,e){var V=function(){var b=D?t(D):null;b?b.then(function(a){D=a;V()},e):H()};
V()}))};
tok=function(D,t,H){return new Promise(function(e,V){var b=t!==void 0?self.indexedDB.open(D,t):self.indexedDB.open(D);var a=H.blocked,w=H.blocking,h=H.terminated,K=H.upgrade,N=H.closed,k,T=function(){k||(k=new IA(b.result,{closed:N}));return k};
b.addEventListener("upgradeneeded",function(c){try{if(c.newVersion===null)throw Error("Xc");if(b.transaction===null)throw Error("Yc");c.dataLoss&&c.dataLoss!=="none"&&JW("IDB_DATA_CORRUPTED",{reason:c.dataLossMessage||"unknown reason",dbName:ly(D)});var U=T(),S=new QM(b.transaction);K&&K(U,function(L){return c.oldVersion<L&&c.newVersion>=L},S);
S.done.catch(function(L){V(L)})}catch(L){V(L)}});
b.addEventListener("success",function(){var c=b.result;w&&c.addEventListener("versionchange",function(){w(T())});
c.addEventListener("close",function(){JW("IDB_UNEXPECTEDLY_CLOSED",{dbName:ly(D),dbVersion:c.version});h&&h()});
e(T())});
b.addEventListener("error",function(){V(b.error)});
a&&b.addEventListener("blocked",function(){a()})})};
H_V=function(D,t,H){H=H===void 0?{}:H;return tok(D,t,H)};
_.BY=function(D,t){t=t===void 0?{}:t;var H,e,V,b;return _.Z(function(a){if(a.nextAddress==1)return _.$p(a,2),H=self.indexedDB.deleteDatabase(D),e=t,(V=e.blocked)&&H.addEventListener("blocked",function(){V()}),a.yield(zGk(H),4);
if(a.nextAddress!=2)return _.yM(a,0);b=_.Pv(a);throw I8A(b,D,"",-1);})};
VoD=function(D,t){var H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(_.zW(edD,t),2);H=e.yieldResult;return e.return(_.D4(H,["databases"],{enableRetries:!0,mode:"readwrite"},function(V){var b=V.objectStore("databases");return b.get(D.actualName).then(function(a){if(a?D.actualName!==a.actualName||D.publicName!==a.publicName||D.userIdentifier!==a.userIdentifier:1)return b.put(D).then(function(){})})}))})};
_.ty=function(D,t){var H;return _.Z(function(e){if(e.nextAddress==1)return D?e.yield(_.zW(edD,t),2):e.return();H=e.yieldResult;return e.return(H.delete("databases",D))})};
_.b_$=function(D,t){var H,e;return _.Z(function(V){return V.nextAddress==1?(H=[],V.yield(_.zW(edD,t),2)):V.nextAddress!=3?(e=V.yieldResult,V.yield(_.D4(e,["databases"],{enableRetries:!0,mode:"readonly"},function(b){H.length=0;return He(b.objectStore("databases"),{},function(a){D(a.getValue())&&H.push(a.getValue());return a.continue()})}),3)):V.return(H)})};
qLD=function(D,t){return _.b_$(function(H){return H.publicName===D&&H.userIdentifier!==void 0},t)};
w76=function(){var D,t,H,e;return _.Z(function(V){switch(V.nextAddress){case 1:D=veu();if((t=D)==null?0:t.hasSucceededOnce)return V.return(!0);var b;if(b=FPk)b=/WebKit\/([0-9]+)/.exec(_.TV()),b=!!(b&&parseInt(b[1],10)>=600);b&&(b=/WebKit\/([0-9]+)/.exec(_.TV()),b=!(b&&parseInt(b[1],10)>=602));if(b||eE)return V.return(!1);try{if(H=self,!(H.indexedDB&&H.IDBIndex&&H.IDBKeyRange&&H.IDBObjectStore))return V.return(!1)}catch(a){return V.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return V.return(!1);
_.$p(V,2);e={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return V.yield(VoD(e,a23),4);case 4:return V.yield(_.ty("yt-idb-test-do-not-use",a23),5);case 5:return V.return(!0);case 2:return _.Pv(V),V.return(!1)}})};
shk=function(){if(Z_$!==void 0)return Z_$;pH6=!0;return Z_$=w76().then(function(D){pH6=!1;var t;if((t=l8K())!=null&&t.expiringStorage_){var H;t={hasSucceededOnce:((H=veu())==null?void 0:H.hasSucceededOnce)||D};var e;(e=l8K())==null||e.set("LAST_RESULT_ENTRY_KEY",t,2592E3,!0)}return D})};
Vp=function(){return _.RD("ytglobal.idbToken_")||void 0};
_.qO=function(){var D=Vp();return D?Promise.resolve(D):shk().then(function(t){(t=t?a23:void 0)&&_.bg("ytglobal.idbToken_",t);return t})};
hdV=function(D){if(!_.PY())throw D=new pZ("AUTH_INVALID",{dbName:D}),_.LZ(D),D;var t=_.oA();return{actualName:D+":"+t,publicName:D,userIdentifier:t}};
GKK=function(D,t,H,e){var V,b,a,w,h,K;return _.Z(function(N){switch(N.nextAddress){case 1:return b=(V=Error().stack)!=null?V:"",N.yield(_.qO(),2);case 2:a=N.yieldResult;if(!a)throw w=xx("openDbImpl",D,t),_.r("ytidb_async_stack_killswitch")||(w.stack=w.stack+"\n"+b.substring(b.indexOf("\n")+1)),_.LZ(w),w;Yx(D);h=H?{actualName:D,publicName:D,userIdentifier:void 0}:hdV(D);_.$p(N,3);return N.yield(VoD(h,a),5);case 5:return N.yield(H_V(h.actualName,t,e),6);case 6:return N.return(N.yieldResult);case 3:return K=
_.Pv(N),_.$p(N,7),N.yield(_.ty(h.actualName,a),9);case 9:_.yM(N,8);break;case 7:_.Pv(N);case 8:throw K;}})};
EgV=function(D,t,H){H=H===void 0?{}:H;return GKK(D,t,!1,H)};
KPD=function(D,t,H){H=H===void 0?{}:H;return GKK(D,t,!0,H)};
NnT=function(D,t){t=t===void 0?{}:t;var H,e;return _.Z(function(V){if(V.nextAddress==1)return V.yield(_.qO(),2);if(V.nextAddress!=3){H=V.yieldResult;if(!H)return V.return();Yx(D);e=hdV(D);return V.yield(_.BY(e.actualName,t),3)}return V.yield(_.ty(e.actualName,H),0)})};
kK8=function(D,t,H){D=D.map(function(e){return _.Z(function(V){return V.nextAddress==1?V.yield(_.BY(e.actualName,t),2):V.yield(_.ty(e.actualName,H),0)})});
return Promise.all(D).then(function(){})};
Tnu=function(D){var t=t===void 0?{}:t;var H,e;return _.Z(function(V){if(V.nextAddress==1)return V.yield(_.qO(),2);if(V.nextAddress!=3){H=V.yieldResult;if(!H)return V.return();Yx(D);return V.yield(qLD(D,H),3)}e=V.yieldResult;return V.yield(kK8(e,t,H),0)})};
cGR=function(D,t){t=t===void 0?{}:t;var H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(_.qO(),2);if(e.nextAddress!=3){H=e.yieldResult;if(!H)return e.return();Yx(D);return e.yield(_.BY(D,t),3)}return e.yield(_.ty(D,H),0)})};
FU=function(D,t){return jhR(D,t)};
i_V=function(D){return _.zW($F3(),D)};
rG3=function(D,t,H,e){var V,b,a;return _.Z(function(w){switch(w.nextAddress){case 1:return V={config:D,hashData:t,timestamp:e!==void 0?e:(0,_.aP)()},w.yield(i_V(H),2);case 2:return b=w.yieldResult,w.yield(b.clear("hotConfigStore"),3);case 3:return w.yield(b.put("hotConfigStore",V),4);case 4:return a=w.yieldResult,w.return(a)}})};
O_6=function(D,t,H,e,V){var b,a,w;return _.Z(function(h){switch(h.nextAddress){case 1:return b={config:D,hashData:t,configData:H,timestamp:V!==void 0?V:(0,_.aP)()},h.yield(i_V(e),2);case 2:return a=h.yieldResult,h.yield(a.clear("coldConfigStore"),3);case 3:return h.yield(a.put("coldConfigStore",b),4);case 4:return w=h.yieldResult,h.return(w)}})};
UFX=function(D){var t,H;return _.Z(function(e){return e.nextAddress==1?e.yield(i_V(D),2):e.nextAddress!=3?(t=e.yieldResult,H=void 0,e.yield(_.D4(t,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(V){return _.wk(V.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(b){H=b.getValue()})}),3)):e.return(H)})};
og3=function(D){var t,H;return _.Z(function(e){return e.nextAddress==1?e.yield(i_V(D),2):e.nextAddress!=3?(t=e.yieldResult,H=void 0,e.yield(_.D4(t,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(V){return _.wk(V.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(b){H=b.getValue()})}),3)):e.return(H)})};
P_T=function(){return _.Z(function(D){return D.yield(Tnu("ytGcfConfig"),0)})};
ngX=function(){return"INNERTUBE_API_KEY"in _.g1&&"INNERTUBE_API_VERSION"in _.g1};
_.Z4=function(){return{innertubeApiKey:_.YC("INNERTUBE_API_KEY"),innertubeApiVersion:_.YC("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.YC("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.YC("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.YC("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.YC("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.YC("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.YC("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.YC("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.lh("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.lh("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.YC("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.LPk=function(D){var t={client:{hl:D.innertubeContextHostLanguage,gl:D.innertubeContextGeoLocation,clientName:D.innertubeContextClientName,clientVersion:D.innertubeContextClientVersion,configInfo:D.innertubeContextClientConfigInfo}};navigator.userAgent&&(t.client.userAgent=String(navigator.userAgent));var H=_.VA.devicePixelRatio;H&&H!=1&&(t.client.screenDensityFloat=String(H));H=BEV();H!==""&&(t.client.experimentsToken=H);H=zLk();H.length>0&&(t.request={internalExperimentFlags:H});C_V(D,void 0,t);
mF6(void 0,t);MoR(void 0,t);SLA(D,void 0,t);X7D(void 0,t);_.r("start_client_gcf")&&f2A(void 0,t);_.YC("DELEGATED_SESSION_ID")&&!_.r("pageid_as_header_web")&&(t.user={onBehalfOfUser:_.YC("DELEGATED_SESSION_ID")});!_.r("fill_delegate_context_in_gel_killswitch")&&(D=_.YC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(t.user=Object.assign({},t.user,{serializedDelegationContext:D}));D=_.YC("INNERTUBE_CONTEXT");var e;if(_.r("enable_persistent_device_token")&&(D==null?0:(e=D.client)==null?0:e.rolloutToken)){var V;
t.client.rolloutToken=D==null?void 0:(V=D.client)==null?void 0:V.rolloutToken}e=Object;V=e.assign;D=t.client;H={};for(var b=_.F(Object.entries(_.Qc(_.YC("DEVICE","")))),a=b.next();!a.done;a=b.next()){var w=_.F(a.value);a=w.next().value;w=w.next().value;a==="cbrand"?H.deviceMake=w:a==="cmodel"?H.deviceModel=w:a==="cbr"?H.browserName=w:a==="cbrver"?H.browserVersion=w:a==="cos"?H.osName=w:a==="cosver"?H.osVersion=w:a==="cplatform"&&(H.platform=w)}t.client=V.call(e,D,H);return t};
C_V=function(D,t,H){D=D.innertubeContextClientName;if(D==="WEB"||D==="MWEB"||D===1||D===2)if(t){H=_.sq(t,AGX,96)||new AGX;var e=ggV();e=Object.keys(JG8).indexOf(e);e=e===-1?null:e;e!==null&&_.Gr(H,3,e);_.oE(t,96,H)}else H&&(H.client.mainAppWebInfo=(e=H.client.mainAppWebInfo)!=null?e:{},H.client.mainAppWebInfo.webDisplayMode=ggV())};
mF6=function(D,t){var H=_.RD("yt.embedded_player.embed_url");H&&(D?(t=_.sq(D,YLA,7)||new YLA,_.M3(t,4,H),_.oE(D,7,t)):t&&(t.thirdParty={embedUrl:H}))};
MoR=function(D,t){var H;if(_.r("web_log_memory_total_kbytes")&&((H=_.VA.navigator)==null?0:H.deviceMemory)){var e;H=(e=_.VA.navigator)==null?void 0:e.deviceMemory;D?_.Eq(D,95,sF(H*1E6)):t&&(t.client.memoryTotalKbytes=""+H*1E6)}};
SLA=function(D,t,H){if(D.appInstallData)if(t){var e;H=(e=_.sq(t,KX,62))!=null?e:new KX;_.M3(H,6,D.appInstallData);_.oE(t,62,H)}else H&&(H.client.configInfo=H.client.configInfo||{},H.client.configInfo.appInstallData=D.appInstallData)};
X7D=function(D,t){var H=_.XHD();H&&(D?_.Gr(D,61,l2A[H]):t&&(t.client.connectionType=H));_.r("web_log_effective_connection_type")&&(H=L1V())&&(D?_.Gr(D,94,vgD[H]):t&&(t.client.effectiveConnectionType=H))};
_.xF8=function(D,t,H){H=H===void 0?{}:H;var e={};_.YC("EOM_VISITOR_DATA")?e={"X-Goog-EOM-Visitor-Id":_.YC("EOM_VISITOR_DATA")}:e={"X-Goog-Visitor-Id":H.visitorData||_.YC("VISITOR_DATA","")};if(t&&t.includes("www.youtube-nocookie.com"))return e;t=H.authorization||_.YC("AUTHORIZATION");t||(D?t="Bearer "+_.RD("gapi.auth.getToken")().access_token:(p73.instance||(p73.instance=new p73),D=dFA(),_.r("pageid_as_header_web")||delete D["X-Goog-PageId"],e=Object.assign({},e,D)));t&&(e.Authorization=t);return e};
f2A=function(D,t){var H=RdV();if(H){var e=H.coldConfigData,V=H.coldHashData;H=H.hotHashData;if(D){var b;t=(b=_.sq(D,KX,62))!=null?b:new KX;e=_.M3(t,1,e);_.M3(e,3,V).setHotHashData(H);_.oE(D,62,t)}else t&&(t.client.configInfo=t.client.configInfo||{},e&&(t.client.configInfo.coldConfigData=e),V&&(t.client.configInfo.coldHashData=V),H&&(t.client.configInfo.hotHashData=H))}};
NO=function(D){for(var t=D.length;--t>=0;)D[t]=0};
uO3=function(D,t,H,e,V){this.static_tree=D;this.extra_bits=t;this.extra_base=H;this.elems=e;this.max_length=V;this.has_stree=D&&D.length};
WP$=function(D,t){this.dyn_tree=D;this.max_code=0;this.stat_desc=t};
kV=function(D,t){D.pending_buf[D.pending++]=t&255;D.pending_buf[D.pending++]=t>>>8&255};
Tr=function(D,t,H){D.bi_valid>16-H?(D.bi_buf|=t<<D.bi_valid&65535,kV(D,D.bi_buf),D.bi_buf=t>>16-D.bi_valid,D.bi_valid+=H-16):(D.bi_buf|=t<<D.bi_valid&65535,D.bi_valid+=H)};
ce=function(D,t,H){Tr(D,H[t*2],H[t*2+1])};
I2k=function(D,t){var H=0;do H|=D&1,D>>>=1,H<<=1;while(--t>0);return H>>>1};
QhD=function(D,t,H){var e=Array(16),V=0,b;for(b=1;b<=15;b++)e[b]=V=V+H[b-1]<<1;for(H=0;H<=t;H++)V=D[H*2+1],V!==0&&(D[H*2]=I2k(e[V]++,V))};
yG$=function(D){var t;for(t=0;t<286;t++)D.dyn_ltree[t*2]=0;for(t=0;t<30;t++)D.dyn_dtree[t*2]=0;for(t=0;t<19;t++)D.bl_tree[t*2]=0;D.dyn_ltree[512]=1;D.opt_len=D.static_len=0;D.last_lit=D.matches=0};
Bn3=function(D){D.bi_valid>8?kV(D,D.bi_buf):D.bi_valid>0&&(D.pending_buf[D.pending++]=D.bi_buf);D.bi_buf=0;D.bi_valid=0};
zdV=function(D,t,H){Bn3(D);kV(D,H);kV(D,~H);jE.arraySet(D.pending_buf,D.window,t,H,D.pending);D.pending+=H};
DyT=function(D,t,H,e){var V=t*2,b=H*2;return D[V]<D[b]||D[V]===D[b]&&e[t]<=e[H]};
tZR=function(D,t,H){for(var e=D.heap[H],V=H<<1;V<=D.heap_len;){V<D.heap_len&&DyT(t,D.heap[V+1],D.heap[V],D.depth)&&V++;if(DyT(t,e,D.heap[V],D.depth))break;D.heap[H]=D.heap[V];H=V;V<<=1}D.heap[H]=e};
qsV=function(D,t,H){var e=0;if(D.last_lit!==0){do{var V=D.pending_buf[D.d_buf+e*2]<<8|D.pending_buf[D.d_buf+e*2+1];var b=D.pending_buf[D.l_buf+e];e++;if(V===0)ce(D,b,t);else{var a=$V[b];ce(D,a+256+1,t);var w=Hgk[a];w!==0&&(b-=elA[a],Tr(D,b,w));V--;a=V<256?ig[V]:ig[256+(V>>>7)];ce(D,a,H);w=VZT[a];w!==0&&(V-=bgu[a],Tr(D,V,w))}}while(e<D.last_lit)}ce(D,256,t)};
FxV=function(D,t){var H=t.dyn_tree,e=t.stat_desc.static_tree,V=t.stat_desc.has_stree,b=t.stat_desc.elems,a,w=-1;D.heap_len=0;D.heap_max=573;for(a=0;a<b;a++)H[a*2]!==0?(D.heap[++D.heap_len]=w=a,D.depth[a]=0):H[a*2+1]=0;for(;D.heap_len<2;){var h=D.heap[++D.heap_len]=w<2?++w:0;H[h*2]=1;D.depth[h]=0;D.opt_len--;V&&(D.static_len-=e[h*2+1])}t.max_code=w;for(a=D.heap_len>>1;a>=1;a--)tZR(D,H,a);h=b;do a=D.heap[1],D.heap[1]=D.heap[D.heap_len--],tZR(D,H,1),e=D.heap[1],D.heap[--D.heap_max]=a,D.heap[--D.heap_max]=
e,H[h*2]=H[a*2]+H[e*2],D.depth[h]=(D.depth[a]>=D.depth[e]?D.depth[a]:D.depth[e])+1,H[a*2+1]=H[e*2+1]=h,D.heap[1]=h++,tZR(D,H,1);while(D.heap_len>=2);D.heap[--D.heap_max]=D.heap[1];a=t.dyn_tree;h=t.max_code;e=t.stat_desc.static_tree;V=t.stat_desc.has_stree;b=t.stat_desc.extra_bits;var K=t.stat_desc.extra_base,N=t.stat_desc.max_length,k,T=0;for(k=0;k<=15;k++)D.bl_count[k]=0;a[D.heap[D.heap_max]*2+1]=0;for(t=D.heap_max+1;t<573;t++){var c=D.heap[t];k=a[a[c*2+1]*2+1]+1;k>N&&(k=N,T++);a[c*2+1]=k;if(!(c>
h)){D.bl_count[k]++;var U=0;c>=K&&(U=b[c-K]);var S=a[c*2];D.opt_len+=S*(k+U);V&&(D.static_len+=S*(e[c*2+1]+U))}}if(T!==0){do{for(k=N-1;D.bl_count[k]===0;)k--;D.bl_count[k]--;D.bl_count[k+1]+=2;D.bl_count[N]--;T-=2}while(T>0);for(k=N;k!==0;k--)for(c=D.bl_count[k];c!==0;)e=D.heap[--t],e>h||(a[e*2+1]!==k&&(D.opt_len+=(k-a[e*2+1])*a[e*2],a[e*2+1]=k),c--)}QhD(H,w,D.bl_count)};
a96=function(D,t,H){var e,V=-1,b=t[1],a=0,w=7,h=4;b===0&&(w=138,h=3);t[(H+1)*2+1]=65535;for(e=0;e<=H;e++){var K=b;b=t[(e+1)*2+1];++a<w&&K===b||(a<h?D.bl_tree[K*2]+=a:K!==0?(K!==V&&D.bl_tree[K*2]++,D.bl_tree[32]++):a<=10?D.bl_tree[34]++:D.bl_tree[36]++,a=0,V=K,b===0?(w=138,h=3):K===b?(w=6,h=3):(w=7,h=4))}};
wT8=function(D,t,H){var e,V=-1,b=t[1],a=0,w=7,h=4;b===0&&(w=138,h=3);for(e=0;e<=H;e++){var K=b;b=t[(e+1)*2+1];if(!(++a<w&&K===b)){if(a<h){do ce(D,K,D.bl_tree);while(--a!==0)}else K!==0?(K!==V&&(ce(D,K,D.bl_tree),a--),ce(D,16,D.bl_tree),Tr(D,a-3,2)):a<=10?(ce(D,17,D.bl_tree),Tr(D,a-3,3)):(ce(D,18,D.bl_tree),Tr(D,a-11,7));a=0;V=K;b===0?(w=138,h=3):K===b?(w=6,h=3):(w=7,h=4)}}};
ZgR=function(D){var t=4093624447,H;for(H=0;H<=31;H++,t>>>=1)if(t&1&&D.dyn_ltree[H*2]!==0)return 0;if(D.dyn_ltree[18]!==0||D.dyn_ltree[20]!==0||D.dyn_ltree[26]!==0)return 1;for(H=32;H<256;H++)if(D.dyn_ltree[H*2]!==0)return 1;return 0};
rk=function(D,t,H){D.pending_buf[D.d_buf+D.last_lit*2]=t>>>8&255;D.pending_buf[D.d_buf+D.last_lit*2+1]=t&255;D.pending_buf[D.l_buf+D.last_lit]=H&255;D.last_lit++;t===0?D.dyn_ltree[H*2]++:(D.matches++,t--,D.dyn_ltree[($V[H]+256+1)*2]++,D.dyn_dtree[(t<256?ig[t]:ig[256+(t>>>7)])*2]++);return D.last_lit===D.lit_bufsize-1};
Uq=function(D,t){D.msg=Oq[t];return t};
oP=function(D){for(var t=D.length;--t>=0;)D[t]=0};
Pe=function(D){var t=D.state,H=t.pending;H>D.avail_out&&(H=D.avail_out);H!==0&&(jE.arraySet(D.output,t.pending_buf,t.pending_out,H,D.next_out),D.next_out+=H,t.pending_out+=H,D.total_out+=H,D.avail_out-=H,t.pending-=H,t.pending===0&&(t.pending_out=0))};
mY=function(D,t){var H=D.block_start>=0?D.block_start:-1,e=D.strstart-D.block_start,V=0;if(D.level>0){D.strm.data_type===2&&(D.strm.data_type=ZgR(D));FxV(D,D.l_desc);FxV(D,D.d_desc);a96(D,D.dyn_ltree,D.l_desc.max_code);a96(D,D.dyn_dtree,D.d_desc.max_code);FxV(D,D.bl_desc);for(V=18;V>=3&&D.bl_tree[s5V[V]*2+1]===0;V--);D.opt_len+=3*(V+1)+5+5+4;var b=D.opt_len+3+7>>>3;var a=D.static_len+3+7>>>3;a<=b&&(b=a)}else b=a=e+5;if(e+4<=b&&H!==-1)Tr(D,t?1:0,3),zdV(D,H,e);else if(D.strategy===4||a===b)Tr(D,2+(t?
1:0),3),qsV(D,nX,CX);else{Tr(D,4+(t?1:0),3);H=D.l_desc.max_code+1;e=D.d_desc.max_code+1;V+=1;Tr(D,H-257,5);Tr(D,e-1,5);Tr(D,V-4,4);for(b=0;b<V;b++)Tr(D,D.bl_tree[s5V[b]*2+1],3);wT8(D,D.dyn_ltree,H-1);wT8(D,D.dyn_dtree,e-1);qsV(D,D.dyn_ltree,D.dyn_dtree)}yG$(D);t&&Bn3(D);D.block_start=D.strstart;Pe(D.strm)};
MO=function(D,t){D.pending_buf[D.pending++]=t};
SE=function(D,t){D.pending_buf[D.pending++]=t>>>8&255;D.pending_buf[D.pending++]=t&255};
hlT=function(D,t){var H=D.max_chain_length,e=D.strstart,V=D.prev_length,b=D.nice_match,a=D.strstart>D.w_size-262?D.strstart-(D.w_size-262):0,w=D.window,h=D.w_mask,K=D.prev,N=D.strstart+258,k=w[e+V-1],T=w[e+V];D.prev_length>=D.good_match&&(H>>=2);b>D.lookahead&&(b=D.lookahead);do{var c=t;if(w[c+V]===T&&w[c+V-1]===k&&w[c]===w[e]&&w[++c]===w[e+1]){e+=2;for(c++;w[++e]===w[++c]&&w[++e]===w[++c]&&w[++e]===w[++c]&&w[++e]===w[++c]&&w[++e]===w[++c]&&w[++e]===w[++c]&&w[++e]===w[++c]&&w[++e]===w[++c]&&e<N;);
c=258-(N-e);e=N-258;if(c>V){D.match_start=t;V=c;if(c>=b)break;k=w[e+V-1];T=w[e+V]}}}while((t=K[t&h])>a&&--H!==0);return V<=D.lookahead?V:D.lookahead};
fX=function(D){var t=D.w_size,H;do{var e=D.window_size-D.lookahead-D.strstart;if(D.strstart>=t+(t-262)){jE.arraySet(D.window,D.window,t,t,0);D.match_start-=t;D.strstart-=t;D.block_start-=t;var V=H=D.hash_size;do{var b=D.head[--V];D.head[V]=b>=t?b-t:0}while(--H);V=H=t;do b=D.prev[--V],D.prev[V]=b>=t?b-t:0;while(--H);e+=t}if(D.strm.avail_in===0)break;V=D.strm;H=D.window;b=D.strstart+D.lookahead;var a=V.avail_in;a>e&&(a=e);a===0?H=0:(V.avail_in-=a,jE.arraySet(H,V.input,V.next_in,a,b),V.state.wrap===
1?V.adler=G1D(V.adler,H,a,b):V.state.wrap===2&&(V.adler=XU(V.adler,H,a,b)),V.next_in+=a,V.total_in+=a,H=a);D.lookahead+=H;if(D.lookahead+D.insert>=3)for(e=D.strstart-D.insert,D.ins_h=D.window[e],D.ins_h=(D.ins_h<<D.hash_shift^D.window[e+1])&D.hash_mask;D.insert&&!(D.ins_h=(D.ins_h<<D.hash_shift^D.window[e+3-1])&D.hash_mask,D.prev[e&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=e,e++,D.insert--,D.lookahead+D.insert<3););}while(D.lookahead<262&&D.strm.avail_in!==0)};
ELX=function(D,t){for(var H;;){if(D.lookahead<262){fX(D);if(D.lookahead<262&&t===0)return 1;if(D.lookahead===0)break}H=0;D.lookahead>=3&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,H=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart);H!==0&&D.strstart-H<=D.w_size-262&&(D.match_length=hlT(D,H));if(D.match_length>=3)if(H=rk(D,D.strstart-D.match_start,D.match_length-3),D.lookahead-=D.match_length,D.match_length<=D.max_lazy_match&&D.lookahead>=3){D.match_length--;
do D.strstart++,D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart;while(--D.match_length!==0);D.strstart++}else D.strstart+=D.match_length,D.match_length=0,D.ins_h=D.window[D.strstart],D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+1])&D.hash_mask;else H=rk(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++;if(H&&(mY(D,!1),D.strm.avail_out===0))return 1}D.insert=D.strstart<2?D.strstart:2;return t===4?(mY(D,
!0),D.strm.avail_out===0?3:4):D.last_lit&&(mY(D,!1),D.strm.avail_out===0)?1:2};
LX=function(D,t){for(var H,e;;){if(D.lookahead<262){fX(D);if(D.lookahead<262&&t===0)return 1;if(D.lookahead===0)break}H=0;D.lookahead>=3&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,H=D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart);D.prev_length=D.match_length;D.prev_match=D.match_start;D.match_length=2;H!==0&&D.prev_length<D.max_lazy_match&&D.strstart-H<=D.w_size-262&&(D.match_length=hlT(D,H),D.match_length<=5&&(D.strategy===1||D.match_length===3&&
D.strstart-D.match_start>4096)&&(D.match_length=2));if(D.prev_length>=3&&D.match_length<=D.prev_length){e=D.strstart+D.lookahead-3;H=rk(D,D.strstart-1-D.prev_match,D.prev_length-3);D.lookahead-=D.prev_length-1;D.prev_length-=2;do++D.strstart<=e&&(D.ins_h=(D.ins_h<<D.hash_shift^D.window[D.strstart+3-1])&D.hash_mask,D.prev[D.strstart&D.w_mask]=D.head[D.ins_h],D.head[D.ins_h]=D.strstart);while(--D.prev_length!==0);D.match_available=0;D.match_length=2;D.strstart++;if(H&&(mY(D,!1),D.strm.avail_out===0))return 1}else if(D.match_available){if((H=
rk(D,0,D.window[D.strstart-1]))&&mY(D,!1),D.strstart++,D.lookahead--,D.strm.avail_out===0)return 1}else D.match_available=1,D.strstart++,D.lookahead--}D.match_available&&(rk(D,0,D.window[D.strstart-1]),D.match_available=0);D.insert=D.strstart<2?D.strstart:2;return t===4?(mY(D,!0),D.strm.avail_out===0?3:4):D.last_lit&&(mY(D,!1),D.strm.avail_out===0)?1:2};
KxV=function(D,t){for(var H,e,V,b=D.window;;){if(D.lookahead<=258){fX(D);if(D.lookahead<=258&&t===0)return 1;if(D.lookahead===0)break}D.match_length=0;if(D.lookahead>=3&&D.strstart>0&&(e=D.strstart-1,H=b[e],H===b[++e]&&H===b[++e]&&H===b[++e])){for(V=D.strstart+258;H===b[++e]&&H===b[++e]&&H===b[++e]&&H===b[++e]&&H===b[++e]&&H===b[++e]&&H===b[++e]&&H===b[++e]&&e<V;);D.match_length=258-(V-e);D.match_length>D.lookahead&&(D.match_length=D.lookahead)}D.match_length>=3?(H=rk(D,1,D.match_length-3),D.lookahead-=
D.match_length,D.strstart+=D.match_length,D.match_length=0):(H=rk(D,0,D.window[D.strstart]),D.lookahead--,D.strstart++);if(H&&(mY(D,!1),D.strm.avail_out===0))return 1}D.insert=0;return t===4?(mY(D,!0),D.strm.avail_out===0?3:4):D.last_lit&&(mY(D,!1),D.strm.avail_out===0)?1:2};
Nx8=function(D,t){for(var H;;){if(D.lookahead===0&&(fX(D),D.lookahead===0)){if(t===0)return 1;break}D.match_length=0;H=rk(D,0,D.window[D.strstart]);D.lookahead--;D.strstart++;if(H&&(mY(D,!1),D.strm.avail_out===0))return 1}D.insert=0;return t===4?(mY(D,!0),D.strm.avail_out===0?3:4):D.last_lit&&(mY(D,!1),D.strm.avail_out===0)?1:2};
Ay=function(D,t,H,e,V){this.good_length=D;this.max_lazy=t;this.nice_length=H;this.max_chain=e;this.func=V};
k1T=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 jE.Buf16(1146);this.dyn_dtree=new jE.Buf16(122);this.bl_tree=new jE.Buf16(78);oP(this.dyn_ltree);oP(this.dyn_dtree);oP(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new jE.Buf16(16);this.heap=new jE.Buf16(573);oP(this.heap);this.heap_max=this.heap_len=0;this.depth=new jE.Buf16(573);oP(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};
TxK=function(D,t){if(!D||!D.state||t>5||t<0)return D?Uq(D,-2):-2;var H=D.state;if(!D.output||!D.input&&D.avail_in!==0||H.status===666&&t!==4)return Uq(D,D.avail_out===0?-5:-2);H.strm=D;var e=H.last_flush;H.last_flush=t;if(H.status===42)if(H.wrap===2)D.adler=0,MO(H,31),MO(H,139),MO(H,8),H.gzhead?(MO(H,(H.gzhead.text?1:0)+(H.gzhead.hcrc?2:0)+(H.gzhead.extra?4:0)+(H.gzhead.name?8:0)+(H.gzhead.comment?16:0)),MO(H,H.gzhead.time&255),MO(H,H.gzhead.time>>8&255),MO(H,H.gzhead.time>>16&255),MO(H,H.gzhead.time>>
24&255),MO(H,H.level===9?2:H.strategy>=2||H.level<2?4:0),MO(H,H.gzhead.os&255),H.gzhead.extra&&H.gzhead.extra.length&&(MO(H,H.gzhead.extra.length&255),MO(H,H.gzhead.extra.length>>8&255)),H.gzhead.hcrc&&(D.adler=XU(D.adler,H.pending_buf,H.pending,0)),H.gzindex=0,H.status=69):(MO(H,0),MO(H,0),MO(H,0),MO(H,0),MO(H,0),MO(H,H.level===9?2:H.strategy>=2||H.level<2?4:0),MO(H,3),H.status=113);else{var V=8+(H.w_bits-8<<4)<<8;V|=(H.strategy>=2||H.level<2?0:H.level<6?1:H.level===6?2:3)<<6;H.strstart!==0&&(V|=
32);H.status=113;SE(H,V+(31-V%31));H.strstart!==0&&(SE(H,D.adler>>>16),SE(H,D.adler&65535));D.adler=1}if(H.status===69)if(H.gzhead.extra){for(V=H.pending;H.gzindex<(H.gzhead.extra.length&65535)&&(H.pending!==H.pending_buf_size||(H.gzhead.hcrc&&H.pending>V&&(D.adler=XU(D.adler,H.pending_buf,H.pending-V,V)),Pe(D),V=H.pending,H.pending!==H.pending_buf_size));)MO(H,H.gzhead.extra[H.gzindex]&255),H.gzindex++;H.gzhead.hcrc&&H.pending>V&&(D.adler=XU(D.adler,H.pending_buf,H.pending-V,V));H.gzindex===H.gzhead.extra.length&&
(H.gzindex=0,H.status=73)}else H.status=73;if(H.status===73)if(H.gzhead.name){V=H.pending;do{if(H.pending===H.pending_buf_size&&(H.gzhead.hcrc&&H.pending>V&&(D.adler=XU(D.adler,H.pending_buf,H.pending-V,V)),Pe(D),V=H.pending,H.pending===H.pending_buf_size)){var b=1;break}b=H.gzindex<H.gzhead.name.length?H.gzhead.name.charCodeAt(H.gzindex++)&255:0;MO(H,b)}while(b!==0);H.gzhead.hcrc&&H.pending>V&&(D.adler=XU(D.adler,H.pending_buf,H.pending-V,V));b===0&&(H.gzindex=0,H.status=91)}else H.status=91;if(H.status===
91)if(H.gzhead.comment){V=H.pending;do{if(H.pending===H.pending_buf_size&&(H.gzhead.hcrc&&H.pending>V&&(D.adler=XU(D.adler,H.pending_buf,H.pending-V,V)),Pe(D),V=H.pending,H.pending===H.pending_buf_size)){b=1;break}b=H.gzindex<H.gzhead.comment.length?H.gzhead.comment.charCodeAt(H.gzindex++)&255:0;MO(H,b)}while(b!==0);H.gzhead.hcrc&&H.pending>V&&(D.adler=XU(D.adler,H.pending_buf,H.pending-V,V));b===0&&(H.status=103)}else H.status=103;H.status===103&&(H.gzhead.hcrc?(H.pending+2>H.pending_buf_size&&Pe(D),
H.pending+2<=H.pending_buf_size&&(MO(H,D.adler&255),MO(H,D.adler>>8&255),D.adler=0,H.status=113)):H.status=113);if(H.pending!==0){if(Pe(D),D.avail_out===0)return H.last_flush=-1,0}else if(D.avail_in===0&&(t<<1)-(t>4?9:0)<=(e<<1)-(e>4?9:0)&&t!==4)return Uq(D,-5);if(H.status===666&&D.avail_in!==0)return Uq(D,-5);if(D.avail_in!==0||H.lookahead!==0||t!==0&&H.status!==666){e=H.strategy===2?Nx8(H,t):H.strategy===3?KxV(H,t):gk[H.level].func(H,t);if(e===3||e===4)H.status=666;if(e===1||e===3)return D.avail_out===
0&&(H.last_flush=-1),0;if(e===2&&(t===1?(Tr(H,2,3),ce(H,256,nX),H.bi_valid===16?(kV(H,H.bi_buf),H.bi_buf=0,H.bi_valid=0):H.bi_valid>=8&&(H.pending_buf[H.pending++]=H.bi_buf&255,H.bi_buf>>=8,H.bi_valid-=8)):t!==5&&(Tr(H,0,3),zdV(H,0,0),t===3&&(oP(H.head),H.lookahead===0&&(H.strstart=0,H.block_start=0,H.insert=0))),Pe(D),D.avail_out===0))return H.last_flush=-1,0}if(t!==4)return 0;if(H.wrap<=0)return 1;H.wrap===2?(MO(H,D.adler&255),MO(H,D.adler>>8&255),MO(H,D.adler>>16&255),MO(H,D.adler>>24&255),MO(H,
D.total_in&255),MO(H,D.total_in>>8&255),MO(H,D.total_in>>16&255),MO(H,D.total_in>>24&255)):(SE(H,D.adler>>>16),SE(H,D.adler&65535));Pe(D);H.wrap>0&&(H.wrap=-H.wrap);return H.pending!==0?0:1};
chT=function(D){if(!(this instanceof chT))return new chT(D);D=this.options=jE.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},D||{});D.raw&&D.windowBits>0?D.windowBits=-D.windowBits:D.gzip&&D.windowBits>0&&D.windowBits<16&&(D.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new j5u;this.strm.avail_out=0;var t=this.strm;var H=D.level,e=D.method,V=D.windowBits,b=D.memLevel,a=D.strategy;if(t){var w=1;H===-1&&(H=6);V<0?(w=0,V=-V):V>15&&
(w=2,V-=16);if(b<1||b>9||e!==8||V<8||V>15||H<0||H>9||a<0||a>4)t=Uq(t,-2);else{V===8&&(V=9);var h=new k1T;t.state=h;h.strm=t;h.wrap=w;h.gzhead=null;h.w_bits=V;h.w_size=1<<h.w_bits;h.w_mask=h.w_size-1;h.hash_bits=b+7;h.hash_size=1<<h.hash_bits;h.hash_mask=h.hash_size-1;h.hash_shift=~~((h.hash_bits+3-1)/3);h.window=new jE.Buf8(h.w_size*2);h.head=new jE.Buf16(h.hash_size);h.prev=new jE.Buf16(h.w_size);h.lit_bufsize=1<<b+6;h.pending_buf_size=h.lit_bufsize*4;h.pending_buf=new jE.Buf8(h.pending_buf_size);
h.d_buf=h.lit_bufsize;h.l_buf=3*h.lit_bufsize;h.level=H;h.strategy=a;h.method=e;if(t&&t.state){t.total_in=t.total_out=0;t.data_type=2;H=t.state;H.pending=0;H.pending_out=0;H.wrap<0&&(H.wrap=-H.wrap);H.status=H.wrap?42:113;t.adler=H.wrap===2?0:1;H.last_flush=0;if(!$yD){e=Array(16);for(b=a=0;b<28;b++)for(elA[b]=a,V=0;V<1<<Hgk[b];V++)$V[a++]=b;$V[a-1]=b;for(b=a=0;b<16;b++)for(bgu[b]=a,V=0;V<1<<VZT[b];V++)ig[a++]=b;for(a>>=7;b<30;b++)for(bgu[b]=a<<7,V=0;V<1<<VZT[b]-7;V++)ig[256+a++]=b;for(V=0;V<=15;V++)e[V]=
0;for(V=0;V<=143;)nX[V*2+1]=8,V++,e[8]++;for(;V<=255;)nX[V*2+1]=9,V++,e[9]++;for(;V<=279;)nX[V*2+1]=7,V++,e[7]++;for(;V<=287;)nX[V*2+1]=8,V++,e[8]++;QhD(nX,287,e);for(V=0;V<30;V++)CX[V*2+1]=5,CX[V*2]=I2k(V,5);igK=new uO3(nX,Hgk,257,286,15);rhR=new uO3(CX,VZT,0,30,15);Og3=new uO3([],UyV,0,19,7);$yD=!0}H.l_desc=new WP$(H.dyn_ltree,igK);H.d_desc=new WP$(H.dyn_dtree,rhR);H.bl_desc=new WP$(H.bl_tree,Og3);H.bi_buf=0;H.bi_valid=0;yG$(H);H=0}else H=Uq(t,-2);H===0&&(t=t.state,t.window_size=2*t.w_size,oP(t.head),
t.max_lazy_match=gk[t.level].max_lazy,t.good_match=gk[t.level].good_length,t.nice_match=gk[t.level].nice_length,t.max_chain_length=gk[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0);t=H}}else t=-2;if(t!==0)throw Error(Oq[t]);D.header&&(t=this.strm)&&t.state&&t.state.wrap===2&&(t.state.gzhead=D.header);if(D.dictionary){var K;typeof D.dictionary==="string"?K=oL$(D.dictionary):PK3.call(D.dictionary)==="[object ArrayBuffer]"?
K=new Uint8Array(D.dictionary):K=D.dictionary;D=this.strm;b=K;a=b.length;if(D&&D.state)if(K=D.state,t=K.wrap,t===2||t===1&&K.status!==42||K.lookahead)t=-2;else{t===1&&(D.adler=G1D(D.adler,b,a,0));K.wrap=0;a>=K.w_size&&(t===0&&(oP(K.head),K.strstart=0,K.block_start=0,K.insert=0),H=new jE.Buf8(K.w_size),jE.arraySet(H,b,a-K.w_size,K.w_size,0),b=H,a=K.w_size);H=D.avail_in;e=D.next_in;V=D.input;D.avail_in=a;D.next_in=0;D.input=b;for(fX(K);K.lookahead>=3;){b=K.strstart;a=K.lookahead-2;do K.ins_h=(K.ins_h<<
K.hash_shift^K.window[b+3-1])&K.hash_mask,K.prev[b&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=b,b++;while(--a);K.strstart=b;K.lookahead=2;fX(K)}K.strstart+=K.lookahead;K.block_start=K.strstart;K.insert=K.lookahead;K.lookahead=0;K.match_length=K.prev_length=2;K.match_available=0;D.next_in=e;D.input=V;D.avail_in=H;K.wrap=t;t=0}else t=-2;if(t!==0)throw Error(Oq[t]);this._dict_set=!0}};
nLT=function(D,t){t=t||{};t.gzip=!0;t=new chT(t);t.push(D,!0);if(t.err)throw t.msg||Oq[t.err];return t.result};
myR=function(D,t){var H=CKV();H&&H.publish.call(H,D.toString(),D,t)};
Lxu=function(D,t,H){var e=CKV();if(!e)return 0;var V=e.subscribe(D.toString(),function(b,a){var w=_.RD("ytPubsub2Pubsub2SkipSubKey");w&&w==V||(w=function(){if(MZV[V])try{if(a&&D instanceof Ssk&&D!=b)try{var h=D.dataClass,K=a;if(!K.args||!K.version)throw Error("$c");try{if(!h.version_){var N=new h;h.version_=N.version}var k=h.version_}catch(T){}if(!k||K.version!=k)throw Error("ad");try{a=Reflect.construct(h,_.pK(K.args))}catch(T){throw T.message="yt.pubsub2.Data.deserialize(): "+T.message,T;}}catch(T){throw T.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+D.toString()+": "+T.message,T;}t.call(H||window,a)}catch(T){_.vn(T)}},XT3[D.toString()]?_.RD("yt.scheduler.instance")?_.Jy.addLowPriorityJob(w):_.KZ(w,0):w())});
MZV[V]=!0;f9T[D.toString()]||(f9T[D.toString()]=[]);f9T[D.toString()].push(V);return V};
YsR=function(){var D=AhA,t=Lxu(gLk,function(H){D.apply(void 0,arguments);Jh6(t)});
return t};
Jh6=function(D){var t=CKV();t&&(typeof D==="number"&&(D=[D]),_.ID(D,function(H){t.unsubscribeByKey(H);delete MZV[H]}))};
CKV=function(){return _.RD("ytPubsub2Pubsub2Instance")};
l9u=function(D,t,H){H=H===void 0?{sampleRate:.1}:H;Math.random()<Math.min(.02,H.sampleRate/100)&&myR("meta_logging_csi_event",{timerName:D,timelineData:t})};
_.vLD=function(D){return D?(D=D.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Vf(D):null:null};
_.YV=function(D){return D?(D=D.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.MN(D):null:null};
dyu=function(){pTX||(pTX=_.YV(_.YC("WORKER_SERIALIZATION_URL")));return pTX||void 0};
_.RlT=function(){var D=dyu();xy$||D===void 0||(xy$=new Worker(_.X7(D),void 0));return xy$};
_.udk=function(){return typeof Worker==="function"&&dyu()?!0:!1};
_.yhT=function(){if(_.udk()&&!WxX){var D=function(H){H=H.data;if(H.op==="gzippedGelBatch"){var e=I93.get(H.key);e&&(Q56(H.gzippedBatch,e.latencyPayload,e.url,e.options,e.sendFn),I93.delete(H.key))}},t=_.RlT();
t&&(t.addEventListener("message",D),t.onerror=function(){I93.clear()},WxX=!0)}};
Va8=function(D,t,H,e,V){V=V===void 0?!1:V;var b={startTime:(0,_.aP)(),ticks:{},infos:{}};if(lg)try{var a=BxV(t);if(a!=null&&(a>zl6||a<DT3))e(D,H);else{if(_.r("gzip_gel_with_worker")&&(_.r("initial_gzip_use_main_thread")&&!ta$||!_.r("initial_gzip_use_main_thread"))){WxX||_.yhT();var w=_.RlT();if(w&&!V){I93.set(HzT,{latencyPayload:b,url:D,options:H,sendFn:e});w.postMessage({op:"gelBatchToGzip",serializedBatch:t,key:HzT});HzT++;return}}var h=nLT(eNK(t));Q56(h,b,D,H,e)}}catch(K){_.uh(K),e(D,H)}else e(D,
H)};
Q56=function(D,t,H,e,V){ta$=!1;var b=(0,_.aP)();t.ticks.gelc=b;ve++;_.r("disable_compression_due_to_performance_degredation")&&b-t.startTime>=bzK&&(q_3++,_.r("abandon_compression_after_N_slow_zips")?ve===_.ZU("compression_disable_point")&&q_3>FVV&&(lg=!1):lg=!1);atK(t);e.headers||(e.headers={});e.headers["Content-Encoding"]="gzip";e.postBody=D;e.postParams=void 0;V(H,e)};
wc$=function(D){var t=t===void 0?!1:t;var H=H===void 0?!1:H;var e=(0,_.aP)(),V={startTime:e,ticks:{},infos:{}},b=t?_.RD("yt.logging.gzipForFetch",!1):!0;if(lg&&b){if(!D.body)return D;try{var a=H?D.body:typeof D.body==="string"?D.body:JSON.stringify(D.body);b=a;if(!H&&typeof a==="string"){var w=BxV(a);if(w!=null&&(w>zl6||w<DT3))return D;H=t?{level:1}:void 0;b=nLT(eNK(a),H);var h=(0,_.aP)();V.ticks.gelc=h;if(t){ve++;if((_.r("disable_compression_due_to_performance_degredation")||_.r("disable_compression_due_to_performance_degradation_lr"))&&
h-e>=bzK)if(q_3++,_.r("abandon_compression_after_N_slow_zips")||_.r("abandon_compression_after_N_slow_zips_lr")){t=q_3/ve;var K=FVV/_.ZU("compression_disable_point");ve>0&&ve%_.ZU("compression_disable_point")===0&&t>=K&&(lg=!1)}else lg=!1;atK(V)}}D.headers=Object.assign({},{"Content-Encoding":"gzip"},D.headers||{});D.body=b;return D}catch(N){return _.uh(N),D}}else return D};
BxV=function(D){try{return(new Blob(D.split(""))).size}catch(t){return _.uh(t),null}};
atK=function(D){_.r("gel_compression_csi_killswitch")||!_.r("log_gel_compression_latency")&&!_.r("log_gel_compression_latency_lr")||l9u("gel_compression",D,{sampleRate:.1})};
Zzu=function(){this.blockSize=-1};
pX=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var D=1;D<this.blockSize;++D)this.pad_[D]=0;this.total_=this.inbuf_=0;this.reset()};
hNK=function(D){D=Object.assign({},D);delete D.Authorization;var t=_.sQR();if(t){var H=new pX;H.update(_.YC("INNERTUBE_API_KEY"));H.update(t);D.hash=_.XF(H.digest(),3)}return D};
xV=function(){GLK||(GLK=new _.dk("yt.innertube"));return GLK};
EP$=function(D,t,H,e){if(e)return null;e=xV().get("nextId",!0)||1;var V=xV().get("requests",!0)||{};V[e]={method:D,request:t,authState:hNK(H),requestTime:Math.round((0,_.aP)())};xV().set("nextId",e+1,86400,!0);xV().set("requests",V,86400,!0);return e};
KVA=function(D){var t=xV().get("requests",!0)||{};delete t[D];xV().set("requests",t,86400,!0)};
kL$=function(D){var t=xV().get("requests",!0);if(t){for(var H in t){var e=t[H];if(!(Math.round((0,_.aP)())-e.requestTime<6E4)){var V=e.authState,b=hNK(_.xF8(!1));_.J$.equals(V,b)&&(V=e.request,"requestTimeMs"in V&&(V.requestTimeMs=Math.round((0,_.aP)())),NjK(D,e.method,V,{}));delete t[H]}}xV().set("requests",t,86400,!0)}};
Tj$=function(D){var t;return(D=D==null?void 0:(t=D.error)==null?void 0:t.code)&&D>=400&&D<=599?!1:!0};
cj8=function(D){var t;D=D==null?void 0:(t=D.error)==null?void 0:t.code;return!(D!==400&&D!==415)};
$TV=function(){if(jQV)return jQV();var D={};jQV=FU("LogsDatabaseV2",{objectStores:(D.LogsRequestsStore={addedAtVersion:2},D),shared:!1,upgrade:function(t,H,e){H(2)&&RP(t,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});H(3);H(5)&&(e=e.objectStore("LogsRequestsStore"),e.JSC$10687_wrapped.indexNames.contains("newRequest")&&e.JSC$10687_wrapped.deleteIndex("newRequest"),ug(e,"newRequestV2",["status","interface","timestamp"]));H(7)&&t.JSC$10672_wrapped.objectStoreNames.contains("sapisid")&&t.JSC$10672_wrapped.deleteObjectStore("sapisid");
H(9)&&t.JSC$10672_wrapped.objectStoreNames.contains("SWHealthLog")&&t.JSC$10672_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return jQV()};
We=function(D){return _.zW($TV(),D)};
rjA=function(D,t){var H,e,V,b;return _.Z(function(a){if(a.nextAddress==1)return H={startTime:(0,_.aP)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},a.yield(We(t),2);if(a.nextAddress!=3)return e=a.yieldResult,V=Object.assign({},D,{options:JSON.parse(JSON.stringify(D.options)),interface:_.YC("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),a.yield(e.put("LogsRequestsStore",V),3);b=a.yieldResult;H.ticks.tc=(0,_.aP)();izD(H);return a.return(b)})};
OzT=function(D,t){var H,e,V,b,a,w,h,K,N;return _.Z(function(k){if(k.nextAddress==1)return H={startTime:(0,_.aP)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},k.yield(We(t),2);if(k.nextAddress!=3)return e=k.yieldResult,V=_.YC("INNERTUBE_CONTEXT_CLIENT_NAME",0),b=[D,V,0],a=[D,V,(0,_.aP)()],w=IDBKeyRange.bound(b,a),h="prev",_.r("use_fifo_for_networkless")&&(h="next"),K=void 0,N=D==="NEW"?"readwrite":"readonly",_.r("use_readonly_for_get_most_recent_by_status_killswitch")&&(N="readwrite"),
k.yield(_.D4(e,["LogsRequestsStore"],{mode:N,enableRetries:!0},function(T){return _.wk(T.objectStore("LogsRequestsStore").index("newRequestV2"),{query:w,direction:h},function(c){c.getValue()&&(K=c.getValue(),D==="NEW"&&(K.status="QUEUED",c.update(K)))})}),3);
H.ticks.tc=(0,_.aP)();izD(H);return k.return(K)})};
UTD=function(D,t){var H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(We(t),2);H=e.yieldResult;return e.return(_.D4(H,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(V){var b=V.objectStore("LogsRequestsStore");return b.get(D).then(function(a){if(a)return a.status="QUEUED",b.put(a).then(function(){return a})})}))})};
oPA=function(D,t,H,e){H=H===void 0?!0:H;var V;return _.Z(function(b){if(b.nextAddress==1)return b.yield(We(t),2);V=b.yieldResult;return b.return(_.D4(V,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(a){var w=a.objectStore("LogsRequestsStore");return w.get(D).then(function(h){return h?(h.status="NEW",H&&(h.sendCount+=1),e!==void 0&&(h.options.compress=e),w.put(h).then(function(){return h})):RA.resolve(void 0)})}))})};
Pf3=function(D,t){var H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(We(t),2);H=e.yieldResult;return e.return(H.delete("LogsRequestsStore",D))})};
nPV=function(D){var t,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(We(D),2);t=e.yieldResult;H=(0,_.aP)()-2592E6;return e.yield(_.D4(t,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(V){return He(V.objectStore("LogsRequestsStore"),{},function(b){if(b.getValue().timestamp<=H)return b.delete().then(function(){return b.continue()})})}),0)})};
CfV=function(){_.Z(function(D){return D.yield(Tnu("LogsDatabaseV2"),0)})};
izD=function(D){_.r("nwl_csi_killswitch")||l9u("networkless_performance",D,{sampleRate:1})};
_.MaD=function(D){return _.zW(mT$(),D)};
S_k=function(D){var t,H;_.Z(function(e){if(e.nextAddress==1)return e.yield(_.MaD(D),2);t=e.yieldResult;H=(0,_.aP)()-2592E6;return e.yield(_.D4(t,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(V){return He(V.objectStore("SWHealthLog"),{},function(b){if(b.getValue().timestamp<=H)return b.delete().then(function(){return b.continue()})})}),0)})};
XcR=function(D){var t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(_.MaD(D),2);t=H.yieldResult;return H.yield(t.clear("SWHealthLog"),0)})};
_.IP=function(D,t,H,e,V,b,a){V=V===void 0?"":V;b=b===void 0?!1:b;a=a===void 0?!1:a;if(D)if(H&&!vY("cobalt"))_.uh(new _.nZ("Legacy referrer-scrubbed ping detected")),D&&ftk(D,void 0,{scrubReferrer:!0});else if(V)F1D(D,t,"POST",V,e);else if(_.YC("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||e||a)F1D(D,t,"GET","",e,void 0,b,a);else{b:{try{c:{var w=new LVX({url:D});if(w.urlParamValues_.dsh==="1")var h=null;else{var K=w.urlParamValues_.ae;if(K==="1"){var N=w.urlParamValues_.adurl;if(N)try{h={version:3,directUrl:decodeURIComponent(N),
asyncUrl:gCT(w.JSC$9480_url_,"act=1","ri=1",AjR(w))};break c}catch(U){}}h=K==="2"?{version:4,directUrl:gCT(w.JSC$9480_url_,"dct=1","suid="+w.suid_,""),asyncUrl:gCT(w.JSC$9480_url_,"act=1","ri=1","suid="+w.suid_)}:null}}if(h){var k=_.TW(D);var T=!(!k||!k.endsWith("/aclk")||_.uz(D,"ri")!=="1");break b}}catch(U){}T=!1}if(T){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(D,"")){var c=!0;break b}}catch(U){}c=!1}c?(t&&t(),H=!0):H=!1}else H=!1;H||ftk(D,t)}};
ftk=function(D,t,H){H=H===void 0?{}:H;var e=new Image,V=""+gP8++;Jj3[V]=e;e.onload=e.onerror=function(){t&&Jj3[V]&&t();delete Jj3[V]};
H.scrubReferrer&&(e.referrerPolicy="no-referrer");e.src=D};
Qp=function(D,t){Y_6(D,t==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
ltV=function(D){var t;return((t=document.featurePolicy)==null?0:t.allowedFeatures().includes("attribution-reporting"))?D+"&nis=6":D+"&nis=5"};
vPA=function(D){if(!D)return!1;try{var t;if(((t=_.Qc(D))==null?void 0:t.asm)==="4")return!0}catch(H){_.vn(H)}return!1};
Y_6=function(D,t){t?(D=ltV(D),_.IP(D,void 0,void 0,void 0,"",!0,!0)):_.IP(D)};
dT8=function(){pc6||(pc6=new _.dk("yt.offline"));return pc6};
xT6=function(D){if(_.r("offline_error_handling")){var t=dT8().get("errors",!0)||{};t[D.message]={name:D.name,stack:D.stack};D.level&&(t[D.message].level=D.level);dT8().set("errors",t,2592E3,!0)}};
uQX=function(D,t,H,e){e=e===void 0?!1:e;t=_.r("web_fp_via_jspb")?Object.assign({},t):t;_.r("use_cfr_monitor")&&RNV(D,t);if(_.r("use_request_time_ms_header"))t.headers&&ec(D)&&(t.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.aP)())));else{var V;if((V=t.postParams)==null?0:V.requestTimeMs)t.postParams.requestTimeMs=Math.round((0,_.aP)())}H&&Object.keys(t).length===0?_.IP(D):t.compress?t.postBody?(typeof t.postBody!=="string"&&(t.postBody=JSON.stringify(t.postBody)),Va8(D,t.postBody,
t,_.cY,e)):Va8(D,JSON.stringify(t.postParams),t,sf3,e):_.cY(D,t)};
WV6=function(D,t){_.r("use_event_time_ms_header")&&ec(D)&&(t.headers||(t.headers={}),t.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.aP)())));return t};
_.QQT=function(){Itu||(Itu=new _.yp({logOfflineErrors:!0,enablePolling:!0}));return Itu};
RNV=function(D,t){var H=t.onError?t.onError:function(){};
t.onError=function(V,b){Be().requestComplete(D,!1);H(V,b)};
var e=t.onSuccess?t.onSuccess:function(){};
t.onSuccess=function(V,b){Be().requestComplete(D,!0);e(V,b)}};
_.yjA=function(){return _.tW(document.location.toString())!=="www.youtube-nocookie.com"};
_.DX3=function(){return _.RD("ytNetworklessLoggingInitializationOptions")?_.BjV.isNwlInitialized:_.zNV};
tQT=function(D,t){if(_.r("polymer_on_demand_shady_dom")){var H;var e=(H=D.__shady_native_firstElementChild)!=null?H:D.firstElementChild}else e=D.firstElementChild;for(;e;){if(D=t(e)?e:tQT(e,t))return D;e=e.nextElementSibling}return null};
eM6=function(){var D=document;if("visibilityState"in D)return D.visibilityState;var t=HbD+"VisibilityState";if(t in D)return D[t]};
_.VQk=function(D,t){var H;zr(D,function(e){H=t[e];return!!H});
return H};
_.tp=function(D){var t=bbk(D);t?t.focus(void 0):_.Dx(D)};
bbk=function(D){return(D=tQT(D,function(t){return _.H$(t)?q7V(t)&&!!t.offsetParent:!1}))?D:null};
_.Dx=function(D,t){D.hasAttribute("tabindex")||D.setAttribute("tabindex","-1");D.focus(t)};
FMD=function(D,t,H,e){e=e===void 0?{}:e;D.addEventListener&&(t!="mouseenter"||"onmouseenter"in document?t!="mouseleave"||"onmouseenter"in document?t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"):t="mouseout":t="mouseover");return _.J$.findKey(e4,function(V){var b=typeof V[4]==="boolean"&&V[4]==!!e,a=_.Wk(V[4])&&_.Wk(e)&&_.J$.equals(V[4],e);return!!V.length&&V[0]==D&&V[1]==t&&V[2]==H&&(b||a)})};
_.bm=function(D,t,H,e){e=e===void 0?{}:e;if(!D||!D.addEventListener&&!D.attachEvent)return"";var V=FMD(D,t,H,e);if(V)return V;V=++aPT.count+"";var b=!(t!="mouseenter"&&t!="mouseleave"||!D.addEventListener||"onmouseenter"in document);var a=b?function(w){w=new Va(w);if(!_.xz(w.relatedTarget,function(h){return h==D},!0))return w.currentTarget=D,w.type=t,H.call(D,w)}:function(w){w=new Va(w);
w.currentTarget=D;return H.call(D,w)};
a=_.pY(a);D.addEventListener?(t=="mouseenter"&&b?t="mouseover":t=="mouseleave"&&b?t="mouseout":t=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(t="MozMousePixelScroll"),wZ$()||typeof e==="boolean"?D.addEventListener(t,a,e):D.addEventListener(t,a,!!e.capture)):D.attachEvent("on"+t,a);e4[V]=[D,t,H,a,e];return V};
_.sHX=function(D,t,H){var e=e===void 0?{}:e;var V=_.bm(D,t,function(){_.ZbX(V);H.apply(D,arguments)},e)};
_.ZbX=function(D){D&&(typeof D=="string"&&(D=[D]),_.ID(D,function(t){if(t in e4){var H=e4[t],e=H[0],V=H[1],b=H[3];H=H[4];e.removeEventListener?wZ$()||typeof H==="boolean"?e.removeEventListener(V,b,H):e.removeEventListener(V,b,!!H.capture):e.detachEvent&&e.detachEvent("on"+V,b);delete e4[t]}}))};
qz=function(D){this.callback_=D;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(D=0;D<4;D++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.bm(window,"mousemove",(0,_.Mc)(this.onMouseMove_,this));this.timerId_=_.NS((0,_.Mc)(this.checkPosition_,this),25)};
EXX=function(){var D={};var t=D.preferMobileEvents===void 0?!1:D.preferMobileEvents;D=D.enableScrollEventListener===void 0?!0:D.enableScrollEventListener;if(_.RD("_lact",window)==null){var H=parseInt(_.YC("LACT"),10);H=isFinite(H)?Date.now()-Math.max(H,0):-1;_.bg("_lact",H,window);_.bg("_fact",H,window);H==-1&&_.F0();hMu(window,t,D);new qz(function(){G3$("mouse",100)})}};
hMu=function(D,t,H){t=t===void 0?!1:t;H=H===void 0?!0:H;_.bm(D.document,"keydown",_.F0);_.bm(D.document,"keyup",_.F0);_.bm(D.document,"mousedown",_.F0);_.bm(D.document,"mouseup",_.F0);t?_.bm(D,"touchmove",function(){G3$("touchmove",200)},{passive:!0}):(_.bm(D,"resize",function(){G3$("resize",200)}),H&&_.bm(D,"scroll",function(){G3$("scroll",200)}));
_.bm(D.document,"touchstart",_.F0,{passive:!0});_.bm(D.document,"touchend",_.F0,{passive:!0})};
G3$=function(D,t){KMD[D]||(KMD[D]=!0,_.Jy.addLowPriorityJob(function(){_.F0();KMD[D]=!1},t))};
_.F0=function(){_.RD("_lact",window)==null&&EXX();var D=Date.now();_.bg("_lact",D,window);_.RD("_fact",window)==-1&&_.bg("_fact",D,window);(D=_.RD("ytglobal.ytUtilActivityCallback_"))&&D()};
_.aR=function(){var D=_.RD("_lact",window);return D==null?-1:Math.max(Date.now()-D,0)};
_.G0=function(D,t,H){var e=_.wT();if(e&&t){var V=e.subscribe(D,function(){var b=arguments,a=function(){Zx[V]&&t.apply&&typeof t.apply=="function"&&t.apply(H||window,b)};
try{_.NmK[D]?a():_.KZ(a,0)}catch(w){_.vn(w)}},H);
Zx[V]=!0;sp[D]||(sp[D]=[]);sp[D].push(V);return V}return 0};
_.k36=function(D){var t=_.wT();t&&(typeof D==="number"?D=[D]:typeof D==="string"&&(D=[parseInt(D,10)]),_.ID(D,function(H){t.unsubscribeByKey(H);delete Zx[H]}))};
_.Tm6=function(D,t){var H=_.wT();H&&H.publish.apply(H,arguments)};
_.jHT=function(D){var t=_.wT();if(t)if(t.clear(D),D)cBu(D);else for(var H in sp)cBu(H)};
_.wT=function(){return _.VA.ytPubsubPubsubInstance};
cBu=function(D){sp[D]&&(D=sp[D],_.ID(D,function(t){Zx[t]&&delete Zx[t]}),D.length=0)};
$XV=function(){var D,t;return"h5vcc"in Ep&&((D=Ep.h5vcc.traceEvent)==null?0:D.traceBegin)&&((t=Ep.h5vcc.traceEvent)==null?0:t.traceEnd)?1:"performance"in Ep&&Ep.performance.mark&&Ep.performance.measure?2:0};
ibV=function(D){var t=$XV();switch(t){case 1:Ep.h5vcc.traceEvent.traceBegin("YTLR",D);break;case 2:Ep.performance.mark(D+"-start");break;case 0:break;default:_.xv(t,"unknown trace type")}};
rB6=function(D){var t=$XV();switch(t){case 1:Ep.h5vcc.traceEvent.traceEnd("YTLR",D);break;case 2:t=D+"-start";var H=D+"-end";Ep.performance.mark(H);Ep.performance.measure(D,t,H);break;case 0:break;default:_.xv(t,"unknown trace type")}};
ObV=function(D){var t,H;(H=(t=window).onerror)==null||H.call(t,D.message,"",0,0,D)};
UXk=function(D){if(_.r("web_lifecycle_error_handling_killswitch"))return D();try{return D()}catch(t){ObV(t)}};
oXX=function(D){return[D.auth===void 0?"undefined":D.auth,D.isJspb===void 0?"undefined":D.isJspb,D.cttAuthInfo===void 0?"undefined":D.cttAuthInfo,D.tier===void 0?"undefined":D.tier].join("/")};
_.O=function(D,t){if(D)return D[t.name]};
Nz=function(){var D=_.RD("yt.logging.ims");D||(D=new K7,_.bg("yt.logging.ims",D));return D};
LMD=function(D,t){if(D.endpoint==="log_event"){PiV(D);var H=nX$(D),e=CiV(D.payload)||"",V=mXV(e),b=200;if(V){if(V.enabled===!1&&!_.r("web_payload_policy_disabled_killswitch"))return;b=MQD(V.tier);if(b===400){S7A(D,t);return}}kw[H]=!0;H={cttAuthInfo:H,isJspb:!1,tier:b};Nz().storePayload(H,D.payload);XZ8(t,!1,H,fPR(e))}};
gXV=function(D,t,H){if(t.endpoint==="log_event"){PiV(void 0,t);var e=nX$(t,!0),V=mXV(D),b=200;if(V){if(V.enabled===!1&&!_.r("web_payload_policy_disabled_killswitch"))return;b=MQD(V.tier);if(b===400){ABV(D,t,H);return}}kw[e]=!0;e={cttAuthInfo:e,isJspb:!0,tier:b};Nz().storePayload(e,AF(t.payload));XZ8(H,!0,e,fPR(D))}};
XZ8=function(D,t,H,e){t=t===void 0?!1:t;e=e===void 0?!1:e;D&&(T0=new D);D=_.ZU("tvhtml5_logging_max_batch_ads_fork")||_.ZU("tvhtml5_logging_max_batch")||_.ZU("web_logging_max_batch")||100;var V=(0,_.aP)(),b=JBK(t,H.tier),a=b.lastDebounceQueueFromLogTimeMs;e&&(b.useVideoStatsEndPoint=!0);e=0;H&&(e=Nz().getSequenceCount(H));var w=function(){Y7u({writeThenSend:!0},t,H.tier)};
e>=1E3?w():e>=D?lP$||(lP$=vXA(function(){w();lP$=void 0},0)):V-a>=10&&(pZD(t,H.tier),b.lastDebounceQueueFromLogTimeMs=V)};
S7A=function(D,t){if(D.endpoint==="log_event"){_.r("more_accurate_gel_parser")&&Nz().storePayload({isJspb:!1},D.payload);PiV(D);var H=nX$(D),e=new Map;e.set(H,[D.payload]);var V=CiV(D.payload)||"";t&&(T0=new t);return new _.c$(function(b,a){T0&&T0.isReady()?dXR(e,T0,b,a,{bypassNetworkless:!0},!0,fPR(V)):b()})}};
ABV=function(D,t,H){if(t.endpoint==="log_event"){PiV(void 0,t);var e=nX$(t,!0),V=new Map;V.set(e,[AF(t.payload)]);H&&(T0=new H);return new _.c$(function(b){T0&&T0.isReady()?xX$(V,T0,b,{bypassNetworkless:!0},!0,fPR(D)):b()})}};
nX$=function(D,t){var H="";if(D.dangerousLogToVisitorSession)H="visitorOnlyApprovedKey";else if(D.cttAuthInfo){if(t===void 0?0:t){t=D.cttAuthInfo.token;H=D.cttAuthInfo;var e=new RMV;H.videoId?e.setVideoId(H.videoId):H.playlistId&&j4(e,2,uIX,r4(H.playlistId));WMk[t]=e}else t=D.cttAuthInfo,H={},t.videoId?H.videoId=t.videoId:t.playlistId&&(H.playlistId=t.playlistId),IP3[D.cttAuthInfo.token]=H;H=D.cttAuthInfo.token}return H};
Y7u=function(D,t,H){D=D===void 0?{}:D;t=t===void 0?!1:t;new _.c$(function(e,V){var b=JBK(t,H),a=b.useVideoStatsEndPoint;b.useVideoStatsEndPoint=!1;QHX(b.queueTimer);QHX(b.queueMaxTimer);b.queueMaxTimer=0;T0&&T0.isReady()?H===void 0&&_.r("enable_web_tiered_gel")?yBA(e,V,D,t,300,a):yBA(e,V,D,t,H,a):(pZD(t,H),e())})};
yBA=function(D,t,H,e,V,b){var a=T0;H=H===void 0?{}:H;e=e===void 0?!1:e;V=V===void 0?200:V;b=b===void 0?!1:b;var w=new Map,h=new Map,K={isJspb:e,cttAuthInfo:void 0,tier:V},N={isJspb:e,cttAuthInfo:void 0};if(e){t=_.F(Object.keys(kw));for(V=t.next();!V.done;V=t.next())V=V.value,h=_.r("enable_web_tiered_gel")?Nz().smartExtractMatchingEntries({keys:[K,N],sizeLimit:1E3}):Nz().extractMatchingEntries({isJspb:!0,cttAuthInfo:V}),h.length>0&&w.set(V,h),(_.r("web_fp_via_jspb_and_json")&&H.writeThenSend||!_.r("web_fp_via_jspb_and_json"))&&
delete kw[V];xX$(w,a,D,H,!1,b)}else{w=_.F(Object.keys(kw));for(K=w.next();!K.done;K=w.next())K=K.value,N=_.r("enable_web_tiered_gel")?Nz().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:K,tier:V},{isJspb:!1,cttAuthInfo:K}],sizeLimit:1E3}):Nz().extractMatchingEntries({isJspb:!1,cttAuthInfo:K}),N.length>0&&h.set(K,N),(_.r("web_fp_via_jspb_and_json")&&H.writeThenSend||!_.r("web_fp_via_jspb_and_json"))&&delete kw[K];dXR(h,a,D,t,H,!1,b)}};
pZD=function(D,t){D=D===void 0?!1:D;t=t===void 0?200:t;var H=function(){Y7u({writeThenSend:!0},D,t)},e=JBK(D,t),V=e===BmA||e===zM3?5E3:DxD;
_.r("web_gel_timeout_cap")&&!e.queueMaxTimer&&(V=vXA(function(){H()},V),e.queueMaxTimer=V);
QHX(e.queueTimer);V=_.YC("LOGGING_BATCH_TIMEOUT",_.ZU("web_gel_debounce_ms",1E4));_.r("shorten_initial_gel_batch_timeout")&&tdA&&(V=Hf8);V=vXA(function(){_.ZU("gel_min_batch_size")>0?Nz().getSequenceCount({cttAuthInfo:void 0,isJspb:D,tier:t})>=eoV&&H():H()},V);
e.queueTimer=V};
dXR=function(D,t,H,e,V,b,a){V=V===void 0?{}:V;var w=Math.round((0,_.aP)()),h=D.size,K=VdK(a);D=_.F(D);var N=D.next();for(a={};!N.done;a={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},N=D.next()){var k=_.F(N.value);N=k.next().value;k=k.next().value;a.batchRequest=_.J$.unsafeClone({context:_.LPk(t.config_||_.Z4())});if(!_.d6(k)&&!_.r("throw_err_when_logevent_malformed_killswitch")){e();break}a.batchRequest.events=k;
(k=IP3[N])&&bf8(a.batchRequest,N,k);delete IP3[N];a.dangerousLogToVisitorSession=N==="visitorOnlyApprovedKey";qID(a.batchRequest,w,a.dangerousLogToVisitorSession);FtX(V);a.onSuccess$jscomp$3=function(T){_.r("start_client_gcf")&&_.Jy.addLowPriorityJob(function(){return _.Z(function(c){return c.yield(ag3(T),0)})});
h--;h||H()};
a.networkFailures=0;a.onError$jscomp$5=function(T){return function(){T.networkFailures++;if(V.bypassNetworkless&&T.networkFailures===1)try{NjK(t,K,T.batchRequest,w5D({writeThenSend:!0},T.dangerousLogToVisitorSession,T.onSuccess$jscomp$3,T.onError$jscomp$5,b)),tdA=!1}catch(c){_.vn(c),e()}h--;h||H()}}(a);
try{NjK(t,K,a.batchRequest,w5D(V,a.dangerousLogToVisitorSession,a.onSuccess$jscomp$3,a.onError$jscomp$5,b)),tdA=!1}catch(T){_.vn(T),e()}}};
xX$=function(D,t,H,e,V,b){e=e===void 0?{}:e;var a=Math.round((0,_.aP)()),w={value:D.size},h=new Map([].concat(_.A6(D)));h=_.F(h);for(var K=h.next();!K.done;K=h.next()){var N=_.F(K.value).next().value,k=D.get(N);K=new ZfD;var T=t.config_||_.Z4(),c=new $w,U=new sn$;_.M3(U,1,T.innertubeContextHostLanguage);_.M3(U,2,T.innertubeContextGeoLocation);_.Gr(U,16,T.innertubeContextClientNameFieldNumber);_.M3(U,17,T.innertubeContextClientVersion);if(T.innertubeContextClientConfigInfo){var S=T.innertubeContextClientConfigInfo,
L=new KX;S.coldConfigData&&_.M3(L,1,S.coldConfigData);S.appInstallData&&_.M3(L,6,S.appInstallData);S.coldHashData&&_.M3(L,3,S.coldHashData);S.hotHashData&&L.setHotHashData(S.hotHashData);_.oE(U,62,L)}(S=_.VA.devicePixelRatio)&&S!=1&&_.Eq(U,65,_.RB(S));S=BEV();S!==""&&_.M3(U,54,S);S=zLk();if(S.length>0){L=new hoV;for(var J=0;J<S.length;J++){var g=new im;g.setKey(S[J].key);j4(g,2,GmA,r4(S[J].value));rT(L,15,im,g)}_.oE(c,5,L)}C_V(T,U);mF6(c);MoR(U);SLA(T,U);X7D(U);_.r("start_client_gcf")&&f2A(U);_.YC("DELEGATED_SESSION_ID")&&
!_.r("pageid_as_header_web")&&(T=new Op,_.M3(T,3,_.YC("DELEGATED_SESSION_ID")));!_.r("fill_delegate_context_in_gel_killswitch")&&(S=_.YC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(L=_.sq(c,Op,3)||new Op,T=c,S=_.M3(L,18,S),_.oE(T,3,S));T=U;S=_.F(Object.entries(_.Qc(_.YC("DEVICE",""))));for(L=S.next();!L.done;L=S.next())J=_.F(L.value),L=J.next().value,J=J.next().value,L==="cbrand"?_.M3(T,12,J):L==="cmodel"?_.M3(T,13,J):L==="cbr"?_.M3(T,87,J):L==="cbrver"?_.M3(T,88,J):L==="cos"?_.M3(T,18,
J):L==="cosver"?_.M3(T,19,J):L==="cplatform"&&_.Gr(T,42,neD(J));c.setClient(U);_.oE(K,1,c);if(U=WMk[N])a:{if(_.rV(U,Up(U,uIX,1)))c=1;else if(U.getPlaylistId())c=2;else break a;_.oE(K,4,U);U=K.getContext()||new $w;T=_.sq(U,Op,3)||new Op;S=new oR;S.setToken(N);_.Gr(S,1,c);rT(T,12,oR,S);_.oE(U,3,T)}delete WMk[N];N=N==="visitorOnlyApprovedKey";Eik()||_.P$(K,2,a);!N&&(c=_.YC("EVENT_ID"))&&(U=Kt8(),T=new NFV,_.M3(T,1,c),_.P$(T,2,U),_.oE(K,5,T));FtX(e);if(_.r("jspb_serialize_with_worker")&&(c=_.RlT())&&
e.writeThenSend){_.kmA.set(TF6,{client:t,resolve:H,networklessOptions:e,isIsolated:V,useVSSEndpoint:b,dangerousLogToVisitorSession:N,requestsOutstanding:w});c.postMessage({op:"gelBatchToSerialize",batchRequest:AF(K),clientEvents:k,key:TF6});TF6++;break}if(k){c=[];for(U=0;U<k.length;U++)try{c.push(new n7(k[U]))}catch(Q){_.vn(new _.nZ("Transport failed to deserialize "+String(k[U])))}k=c}else k=[];k=_.F(k);for(c=k.next();!c.done;c=k.next())rT(K,3,n7,c.value);k={startTime:(0,_.aP)(),ticks:{},infos:{}};
K=K.serialize();k.ticks.geljspc=(0,_.aP)();_.r("log_jspb_serialize_latency")&&l9u("gel_jspb_serialize",k,{sampleRate:.1});_.c5k(K,t,H,e,V,b,N,w)}};
_.c5k=function(D,t,H,e,V,b,a,w){e=e===void 0?{}:e;w=w===void 0?{value:0}:w;b=VdK(b);e=w5D(e,a,function(h){_.r("start_client_gcf")&&_.Jy.addLowPriorityJob(function(){return _.Z(function(K){return K.yield(ag3(h),0)})});
w.value--;w.value||H()},function(){w.value--;
w.value||H()},V);
e.headers["Content-Type"]="application/json+protobuf";e.postBodyFormat="JSPB";e.postBody=D;NjK(t,b,"",e);tdA=!1};
FtX=function(D){_.r("always_send_and_write")&&(D.writeThenSend=!1)};
w5D=function(D,t,H,e,V){D={retry:!0,onSuccess:H,onError:e,networklessOptions:D,dangerousLogToVisitorSession:t,bypassMonitoring:!!V,headers:{},postBodyFormat:"",postBody:"",compress:_.r("compress_gel")||_.r("compress_gel_lr")};Eik()&&(D.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.aP)())));return D};
qID=function(D,t,H){Eik()||(D.requestTimeMs=String(t));_.r("unsplit_gel_payloads_in_logs")&&(D.unsplitGelPayloadsInLogs=!0);!H&&(t=_.YC("EVENT_ID"))&&(H=Kt8(),D.serializedClientEventId={serializedEventId:t,clientCounter:String(H)})};
Kt8=function(){var D=_.YC("BATCH_CLIENT_COUNTER")||0;D||(D=Math.floor(Math.random()*65535/2));D++;D>65535&&(D=1);_.JZ("BATCH_CLIENT_COUNTER",D);return D};
bf8=function(D,t,H){if(H.videoId)var e="VIDEO";else if(H.playlistId)e="PLAYLIST";else return;D.credentialTransferTokenTargetId=H;D.context=D.context||{};D.context.user=D.context.user||{};D.context.user.credentialTransferTokens=[{token:t,scope:e}]};
PiV=function(D,t){var H=_.sa("il_payload_scraping")==="enable_il_payload_scraping";if(!_.RD("yt.logging.transport.enableScrapingForTest"))if(H)jn6=[],_.bg("yt.logging.transport.enableScrapingForTest",!0),_.bg("yt.logging.transport.scrapedPayloadsForTesting",jn6),_.bg("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.bg("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.bg("yt.logging.transport.scrapeClientEvent",!0);else return;H=_.RD("yt.logging.transport.scrapedPayloadsForTesting");var e=_.RD("yt.logging.transport.payloadToScrape");t&&(t=_.RD("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(t.payload)())&&H.push(t);t=_.RD("yt.logging.transport.scrapeClientEvent");if(e&&e.length>=1)for(var V=0;V<e.length;V++)if(D&&D.payload[e[V]])if(t)H.push(D.payload);else{var b=void 0;H.push(((b=D)==null?void 0:b.payload)[e[V]])}_.bg("yt.logging.transport.scrapedPayloadsForTesting",
H)};
Eik=function(){return _.r("use_request_time_ms_header")||_.r("lr_use_request_time_ms_header")};
vXA=function(D,t){return _.r("transport_use_scheduler")===!1?_.KZ(D,t):_.r("logging_avoid_blocking_during_navigation")||_.r("lr_logging_avoid_blocking_during_navigation")?_.C7(_.Jy,function(){if(_.$xX().currentState==="none")D();else{var H={};_.$xX().install((H.none={callback:D},H))}},t):_.C7(_.Jy,D,t)};
QHX=function(D){_.r("transport_use_scheduler")?_.Jy.cancelJob(D):_.kx(D)};
ag3=function(D){var t,H,e,V,b,a,w,h,K,N;return _.Z(function(k){return k.nextAddress==1?(e=(t=D)==null?void 0:(H=t.responseContext)==null?void 0:H.globalConfigGroup,V=_.O(e,if$),a=(b=e)==null?void 0:b.hotHashData,w=_.O(e,r58),K=(h=e)==null?void 0:h.coldHashData,(N=_.qS().resolve(_.by(mE)))?a?V?k.yield(OfK(N,a,V),2):k.yield(OfK(N,a),2):k.jumpTo(2):k.return()):K?w?k.yield(UxA(N,K,w),0):k.yield(UxA(N,K),0):k.jumpTo(0)})};
JBK=function(D,t){t=t===void 0?200:t;return D?t===300?BmA:oi8:t===300?zM3:POK};
mXV=function(D){if(_.r("enable_web_tiered_gel")){D=niK[D||""];var t,H,e,V=_.qS().resolve(_.by(mE))==null?void 0:(t=Mz())==null?void 0:(H=t.loggingHotConfig)==null?void 0:(e=H.eventLoggingConfig)==null?void 0:e.payloadPolicies;if(V)for(t=0;t<V.length;t++)if(V[t].payloadNumber===D)return V[t]}};
CiV=function(D){D=Object.keys(D);D=_.F(D);for(var t=D.next();!t.done;t=D.next())if(t=t.value,niK[t])return t};
MQD=function(D){switch(D){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}};
fPR=function(D){return D==="gelDebuggingEvent"};
VdK=function(D){return(D===void 0?0:D)&&_.r("vss_through_gel_video_stats")?"video_stats":"log_event"};
X0=function(D,t,H,e){e=e===void 0?{}:e;var V={},b=Math.round(e.timestamp||(0,_.aP)());V.eventTimeMs=b<Number.MAX_SAFE_INTEGER?b:0;V[D]=t;D=_.aR();V.context={lastActivityMs:String(e.timestamp||!isFinite(D)?-1:D)};e.sequenceGroup&&!_.r("web_gel_sequence_info_killswitch")&&(D=V.context,t=e.sequenceGroup,t={index:COA(t),groupKey:t},D.sequence=t,e.endOfSequence&&delete S4[e.sequenceGroup]);_.r("web_tag_automated_log_events")&&(V.context.automatedLogEventSource=e.automatedLogEventSource);(e.sendIsolatedPayload?
S7A:LMD)({endpoint:"log_event",payload:V,cttAuthInfo:e.cttAuthInfo,dangerousLogToVisitorSession:e.dangerousLogToVisitorSession},H)};
COA=function(D){S4[D]=D in S4?S4[D]+1:0;return S4[D]};
_.L7=function(D,t,H){H=H===void 0?{}:H;var e=f7;_.lh("ytLoggingEventsDefaultDisabled",!1)&&f7===f7&&(e=null);X0(D,t,e,H)};
_.Ap=function(){if(_.r("web_fp_via_jspb")){var D=!0;D=D===void 0?!1:D;var t=mxA;mxA=[];if(t){t=_.F(t);for(var H=t.next();!H.done;H=t.next())H=H.value,D?X0(H.payloadName,H.payload,f7,H.options):_.L7(H.payloadName,H.payload,H.options)}Y7u(void 0,!0);if(!_.r("web_fp_via_jspb_and_json"))return}Y7u(void 0,!1)};
MdA=function(D,t){var H;if((H=t)==null?0:H.componentStack)return t;if(D=D.componentStack)t||(t={}),t.componentStack=D;return t};
SIk=function(){_.ID(_.YC("ERRORS")||[],function(D){_.gT.apply(null,D)});
_.JZ("ERRORS",[])};
_.Jp=function(D){_.gT(D)};
_.Yw=function(D){_.gT(D,"WARNING")};
X5X=function(D){D instanceof Error?_.gT(D):(D=_.Wk(D)?JSON.stringify(D):String(D),D=new _.nZ(D),D.name="RejectedPromiseError",_.Yw(D))};
fgk=function(D,t,H,e,V,b){t=t===void 0?"Unknown file":t;H=H===void 0?0:H;var a=!1,w=mJV("log_window_onerror_fraction");if(w&&Math.random()<w)a=!0;else{w=document.getElementsByTagName("script");for(var h=0,K=w.length;h<K;h++)if(w[h].src.indexOf("/debug-")>0){a=!0;break}}a&&(a=!1,V?a=!0:(typeof D==="string"?w=D:ErrorEvent&&D instanceof ErrorEvent?(a=!0,w=D.message,t=D.filename,H=D.lineno,e=D.colno):(w="Unknown error",t="Unknown file",H=0),V=new _.nZ(w),V.name="UnhandledWindowError",V.message=w,V.fileName=
t,V.lineNumber=H,isNaN(e)?delete V.columnNumber:V.columnNumber=e),_.r("wiz_enable_component_stack_propagation_killswitch")||(b=MdA(V,b)),b&&_.lm(V,b),a?_.gT(V):_.Yw(V))};
_.gT=function(D,t,H,e,V,b,a,w){b=b===void 0?{}:b;b.name=H||_.YC("INNERTUBE_CONTEXT_CLIENT_NAME",1);b.version=e||_.YC("INNERTUBE_CONTEXT_CLIENT_VERSION");H=b;t=t===void 0?"ERROR":t;a=a===void 0?!1:a;t=t===void 0?"ERROR":t;a=a===void 0?!1:a;if(D&&(D.hasOwnProperty("level")&&D.level&&(t=D.level),_.r("console_log_js_exceptions")&&(e=[],e.push("Name: "+D.name),e.push("Message: "+D.message),D.hasOwnProperty("params")&&e.push("Error Params: "+JSON.stringify(D.params)),D.hasOwnProperty("args")&&e.push("Error args: "+
JSON.stringify(D.args)),e.push("File name: "+D.fileName),e.push("Stacktrace: "+D.stack),e=e.join("\n"),window.console.log(e,D)),!(LtD>=5))){e=[];V=_.F(A58);for(b=V.next();!b.done;b=V.next()){b=b.value;try{b()&&e.push(b())}catch(L){}}e=[].concat(_.A6(giK),_.A6(e));var h=J5V(D);V=h.message||"Unknown Error";b=h.name||"UnknownError";var K=h.stack||D.stacktrace||"Not available";if(K.startsWith(b+": "+V)){var N=K.split("\n");N.shift();K=N.join("\n")}N=h.lineNumber||"Not available";h=h.fileName||"Not available";
var k=0;if(D.hasOwnProperty("args")&&D.args&&D.args.length)for(var T=0;T<D.args.length&&!(k=PG8(D.args[T],"params."+T,H,k),k>=500);T++);else if(D.hasOwnProperty("params")&&D.params){var c=D.params;if(typeof D.params==="object")for(T in c){if(c[T]){var U="params."+T,S=iy(c[T]);H[U]=S;k+=U.length+S.length;if(k>500)break}}else H.params=iy(c)}if(e.length)for(T=0;T<e.length&&!(k=PG8(e[T],"params.context."+T,H,k),k>=500);T++);navigator.vendor&&!H.hasOwnProperty("vendor")&&(H["device.vendor"]=navigator.vendor);
T={message:V,name:b,lineNumber:N,fileName:h,stack:K,params:H,sampleWeight:1};H=Number(D.columnNumber);isNaN(H)||(T.lineNumber=T.lineNumber+":"+H);if(D.level==="IGNORED")D=0;else a:{D=YIV();H=_.F(D.messageWeights);for(e=H.next();!e.done;e=H.next())if(e=e.value,T.message&&T.message.match(e.messageRegExp)){D=e.weight;break a}D=_.F(D.callbackWeights);for(H=D.next();!H.done;H=D.next())if(H=H.value,H.callback(T)){D=H.weight;break a}D=1}T.sampleWeight=D;D=_.F(lgV);for(H=D.next();!H.done;H=D.next())if(H=
H.value,H.patternsForType[T.name])for(V=_.F(H.patternsForType[T.name]),e=V.next();!e.done;e=V.next())if(b=e.value,e=T.message.match(b.regexp)){T.params["params.error.original"]=e[0];V=b.groups;b={};for(N=0;N<V.length;N++)b[V[N]]=e[N+1],T.params["params.error."+V[N]]=e[N+1];T.message=H.messageFn(b);break}T.params||(T.params={});D=YIV();T.params["params.errorServiceSignature"]="msg="+D.messageWeights.length+"&cb="+D.callbackWeights.length;T.params["params.serviceWorker"]="false";_.VA.document&&_.VA.document.querySelectorAll&&
(T.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new v$(vi6,"sample")).constructor!==v$&&(T.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(T);if(T.sampleWeight!==0&&!p5D.has(T.message)){if(a&&_.r("web_enable_error_204"))dxu(t===void 0?"ERROR":t,T);else{t=t===void 0?"ERROR":t;t==="ERROR"?(xxA.publish("handleError",T),_.r("record_app_crashed_web")&&RoD===0&&T.sampleWeight===1&&(RoD++,a={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.r("report_client_error_with_app_crash_ks")||(a.systemHealth={crashData:{clientError:{logMessage:{message:T.message}}}}),_.L7("appCrashed",a)),uAK++):t==="WARNING"&&xxA.publish("handleWarning",T);if(_.r("kevlar_gel_error_routing")){a=t;w=w===void 0?{}:w;b:{D=_.F(Wt6);for(H=D.next();!H.done;H=D.next())if(vY(H.value.toLowerCase())){D=!0;break b}D=!1}if(D)w=void 0;else{H={stackTrace:T.stack};T.fileName&&(H.filename=T.fileName);D=T.lineNumber&&T.lineNumber.split?T.lineNumber.split(":"):[];D.length!==
0&&(D.length!==1||isNaN(Number(D[0]))?D.length!==2||isNaN(Number(D[0]))||isNaN(Number(D[1]))||(H.lineNumber=Number(D[0]),H.columnNumber=Number(D[1])):H.lineNumber=Number(D[0]));D={level:"ERROR_LEVEL_UNKNOWN",message:T.message,errorClassName:T.name,sampleWeight:T.sampleWeight};a==="ERROR"?D.level="ERROR_LEVEL_ERROR":a==="WARNING"&&(D.level="ERROR_LEVEL_WARNNING");H={isObfuscated:!0,browserStackInfo:H};w.pageUrl=window.location.href;w.kvPairs=[];_.YC("FEXP_EXPERIMENTS")&&(w.experimentIds=_.YC("FEXP_EXPERIMENTS"));
e=_.YC("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!mJV("web_disable_gel_stp_ecatcher_killswitch")&&e)for(V=_.F(Object.keys(e)),b=V.next();!b.done;b=V.next())b=b.value,w.kvPairs.push({key:b,value:String(e[b])});if(e=T.params)for(V=_.F(Object.keys(e)),b=V.next();!b.done;b=V.next())b=b.value,w.kvPairs.push({key:"client."+b,value:String(e[b])});e=_.YC("SERVER_NAME");V=_.YC("SERVER_VERSION");e&&V&&(w.kvPairs.push({key:"server.name",value:e}),w.kvPairs.push({key:"server.version",value:V}));w={errorMetadata:w,
stackTrace:H,logMessage:D}}w&&(_.L7("clientError",w),(a==="ERROR"||_.r("errors_flush_gel_always_killswitch"))&&_.Ap())}_.r("suppress_error_204_logging")||dxu(t,T)}try{p5D.add(T.message)}catch(L){}LtD++}}};
dxu=function(D,t){var H=t.params||{};D={urlParams:{a:"logerror",t:"jserror",type:t.name,msg:t.message.substr(0,250),line:t.lineNumber,level:D,"client.name":H.name},postParams:{url:_.YC("PAGE_NAME",window.location.href),file:t.fileName},method:"POST"};H.version&&(D["client.version"]=H.version);if(D.postParams){t.stack&&(D.postParams.stack=t.stack);t=_.F(Object.keys(H));for(var e=t.next();!e.done;e=t.next())e=e.value,D.postParams["client."+e]=H[e];if(H=_.YC("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(t=
_.F(Object.keys(H)),e=t.next();!e.done;e=t.next())e=e.value,D.postParams[e]=H[e];(H=_.YC("LAVA_VERSION"))&&(D.postParams["lava.version"]=H);H=_.YC("SERVER_NAME");t=_.YC("SERVER_VERSION");H&&t&&(D.postParams["server.name"]=H,D.postParams["server.version"]=t)}_.cY(_.YC("ECATCHER_REPORT_HOST","")+"/error_204",D)};
_.IgV=function(D,t){t=t===void 0?"ERROR":t;var H=H===void 0?{}:H;var e=_.RD("ytbin.polymer.shared.lib.tampering.info");e&&(e=e())&&(H["params.tamperingInfo"]=e.sort().join(","));_.gT(D,t,void 0,void 0,!0,H)};
_.lm=function(D){var t=_.RE.apply(1,arguments);D.args||(D.args=[]);Array.isArray(D.args)&&D.args.push.apply(D.args,_.A6(t))};
QnX=function(D){D.level="IGNORED"};
y5K=function(D,t){giK.push(D);t();giK.pop()};
dT=function(D,t){for(var H in t)t.hasOwnProperty(H)&&(D=_.p7(D,H,t[H]));return D};
_.BFK=function(D,t,H){H=H===void 0?!1:H;if(!D)return null;if(D.adInfoDialogEndpoint||D.backstageImageUploadEndpoint||D.confirmDialogEndpoint||D.clientActionEndpoint||D.createBackstagePostDialogEndpoint||D.createCommentReplyDialogEndpoint||D.flowEndpoint||D.guideBuilderEndpoint||D.liveChatDialogEndpoint||D.modalEndpoint||D.openPopupAction||D.shareEndpoint||D.shareEntityEndpoint||D.showLiveChatItemEndpoint||D.subscriptionManagerEndpoint||D.unlimitedCreateFamilyEndpoint||D.unlimitedFamilyFlowEndpoint||
D.updateCommentDialogEndpoint||D.updateCommentReplyDialogEndpoint||D.userFeedbackEndpoint||D.videoEditorEndpoint||D.ypcCancelSurveyEndpoint)return t=_.ZU("polymer_report_client_url_requested_rate"),!H&&Math.random()<t&&_.Yw(new _.nZ("urlForEndpoint used on client endpoint",D)),null;var e=_.ZU("polymer_report_missing_web_navigation_endpoint_rate");if(D.liveChatEndpoint||D.liveChatReplayEndpoint)e=0;if(!D.commandMetadata&&!D.clickTrackingParams&&Math.random()<e){var V={},b;for(b in D)V[b]="1";_.Yw(new _.nZ("Missing navigation data",
V))}V="";if(D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.url)V=D.commandMetadata.webCommandMetadata.url;else if(D.searchEndpoint)Math.random()<e&&_.Yw(new _.nZ("Should not manually handle search",D)),V="/results?search_query="+encodeURIComponent(D.searchEndpoint.query).replace(/%20/g,"+"),D.searchEndpoint.params&&(V+="&sp="+D.searchEndpoint.params);else if(D.watchEndpoint)Math.random()<e&&_.Yw(new _.nZ("Should not manually handle watch",D)),V="/watch?v="+
D.watchEndpoint.videoId,D.watchEndpoint.playlistId&&(V+="&list="+D.watchEndpoint.playlistId),D.watchEndpoint.index&&(V+="&index="+D.watchEndpoint.index),D.watchEndpoint.startTimeSeconds&&(V+="&t="+D.watchEndpoint.startTimeSeconds);else if(D.browseEndpoint)e=D.browseEndpoint.browseId,(b=D.browseEndpoint.canonicalBaseUrl)?V=b:e&&(V=e.substr(0,2),V=V==="FE"?e==="FEwhat_to_watch"?"/":e==="FEmy_videos"?"/my_videos":"/feed/"+e.substr(2):V==="VL"?"/playlist?list="+e.substr(2):"/channel/"+e),V&&D.browseEndpoint.query&&
(V=dT(V+"/search",{query:D.browseEndpoint.query})),V&&D.browseEndpoint.params&&(V=dT(V,{params:D.browseEndpoint.params}));else{if(D.urlEndpoint)return D.urlEndpoint.url;D.signInEndpoint?(V="https://accounts.google.com/ServiceLogin",e={},_.J$.extend(e,t||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),t=e):D.uploadEndpoint?V="//www.youtube.com/upload":D.liveChatEndpoint?(V=D.liveChatEndpoint,e=_.J$.clone(V),_.Wk(V.continuation)&&(b=Object.keys(V.continuation)[0],
e.continuation=V.continuation[b].continuation),V=dT("/youtubei/v1/live_chat/get_live_chat",e)):D.liveChatReplayEndpoint?(V=_.J$.clone(D.liveChatReplayEndpoint),V.currentPlayerState&&(_.J$.extend(V,V.currentPlayerState),delete V.currentPlayerState),V=dT("/youtubei/v1/live_chat/get_live_chat_replay",V)):D.liveChatItemContextMenuEndpoint?V=dT("/youtubei/v1/live_chat/get_item_context_menu",D.liveChatItemContextMenuEndpoint):D.liveChatPurchaseMessageEndpoint?V=dT("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
D.liveChatPurchaseMessageEndpoint):D.openSuperStickerBuyFlowCommand?V=dT("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",D.openSuperStickerBuyFlowCommand):D.videoEditEndpoint?V=dT("/edit",{video_id:D.videoEditEndpoint.videoId}):D.liveDashboardEndpoint?V=D.liveDashboardEndpoint.videoId?dT("/live_dashboard",{v:D.liveDashboardEndpoint.videoId}):"/live_dashboard":D.signalNavigationEndpoint&&D.signalNavigationEndpoint.signal&&D.signalNavigationEndpoint.signal==="WEBCAM"?V="/webcam":D.getPdgBuyFlowCommand&&
(V=dT(D.getPdgBuyFlowCommand.buyflowApiPath,{params:D.getPdgBuyFlowCommand.params}))}return V||H?dT(V,t||{}):(_.Yw(new _.nZ("Error: Can't construct url for endpoint","keys:"+Object.keys(D).sort().join(","),D)),null)};
zoV=function(D){if(D){if(D.browseEndpoint)return!!D.browseEndpoint.nofollow;if(D.watchEndpoint)return!!D.watchEndpoint.nofollow;if(D.urlEndpoint)return!!D.urlEndpoint.nofollow}return!1};
_.tNA=function(D,t){var H=t+D,e=DIV.get(H);if(e)return e;D=t+"-"+D.replace(/([A-Z])/g,"-$1").toLowerCase();DIV.set(H,D);return D};
HPV=function(D){var t=_.LY(D,"action")||_.LY(D,"command")||_.LY(D,"endpoint");if(!t)return null;t=_.tNA(t,"yt");_.O(D,_.xw)&&(t+="-"+_.O(D,_.xw).signal.toLowerCase().replace(/_/g,"-"));return t};
qE8=function(D){try{var t=Object.keys(D)}catch(V){return[]}for(var H=0;H<t.length;H++){var e=t[H];if(e7V.test(e)||VNk.test(e))return bPD(D[e])}return[]};
bPD=function(D){return D.command?[D.command]:D.onExecutionAction?[D.onExecutionAction]:D.onResponseReceivedCommand?[D.onResponseReceivedCommand]:D.updateFlowCommand?[D.updateFlowCommand]:D.clientActions?D.clientActions:D.action?[D.action]:D.actions||D.commands||D.onResponseReceivedActions||D.onResponseReceivedCommands||D.onResponseReceivedEndpoints||[]};
aT3=function(D,t){t=t===void 0?!1:t;var H=_.qS().resolve(_.by(RR));H||(H=new FcV,_.qS().addProvider({provide:RR,useValue:H}));return H&&D&&!_.J$.isEmpty(D)?H.getUrl(D,t):""};
wm6=function(D,t,H){H=H===void 0?"":H;if(t){D.data=t;var e=aT3(t);e?(WU(D,e),zoV(t)||!ec(e)?D.rel="nofollow":D.removeAttribute("rel"),_.O(t,_.um)&&_.O(t,_.um).target==="TARGET_NEW_WINDOW"?D.target="_blank":H?D.target=H:D.removeAttribute("target")):(D.removeAttribute("href"),D.removeAttribute("rel"),D.removeAttribute("target"))}};
_.z0=function(D,t){var H=HI;if(nR())ZPA(D,function(){var b=_.RE.apply(0,arguments);AL(H,function(){t.apply(null,_.A6(b))})});
else{var e=_.Qa.getInstance(),V=C1k(t);j4k(function(){V.value=t});
_.XH(function(){var b={},a=_.ya(e,(b[D]=function(){var w=_.RE.apply(0,arguments);AL(H,function(){V.value.apply(V,_.A6(w))})},b));
return function(){var w={};_.B$(e,(w[D]="",w),a)}})}};
_.DY=function(D,t){return ss$(D,!1,t)};
_.ep=function(D,t){return ss$(D,!0,t)};
ss$=function(D,t,H){return nR()?h73(D,t,H):GXV(D,t,H)};
GXV=function(D,t,H){return fY(function(){return h73(D,t,H)})};
h73=function(D,t,H){var e=NE6(function(V){e.value=V;var b=function(){var a=Z_(null);try{return H==null?void 0:H(V)}finally{Z_(a)}}();
return function(){b==null||b()}});
e.__expectedTagName=D;e.__optional=t;e.isIdom=!nR();return e};
EG$=function(D){var t=HI,H=oZ;return{getFn:function(){return function(e){t.isDisposed||mG(function(){return _.EP(function(){return D(e)})},H)!==!0&&e.stopPropagation()}}}};
V9=function(D){if(typeof D.children==="function")return D.children(),null;D=_.F(D.children);for(var t=D.next();!t.done;t=D.next())t=t.value,t();return null};
KcX=function(D){var t;return((t=D.prototype)==null?void 0:t.render)===void 0};
NgD=function(D){return D.items.map(D.children)};
TgT=function(D,t,H){H=H===void 0?!1:H;mG(function(){return kXk(D,t,H)})};
kXk=function(D,t,H){var e=null;r_++;H=(H===void 0?0:H)?clA:jsk;try{e=H(D,function(){bv(t)}),UP(!1)}catch(V){throw UP(!0),V;
}return e===null?D:e};
bv=function(D){if(D!==void 0&&D!==null)if(D instanceof cn)for(var t=d_;uD()!=null&&tPV in uD()&&t.contains(uD());)Qt();else if(Array.isArray(D))for(t=_.F(D),D=t.next();!D.done;D=t.next())bv(D.value);else if(D instanceof md||D instanceof Z7||"function"==typeof _.Vc&&D instanceof _.Vc)DlV(D.toString());else if(_.w1(D)){if(uD()!==D){var H,e;t=(e=(H=oZ)==null?void 0:H.name)!=null?e:"unknown";throw Error("hc`"+D.tagName+"`"+t);}Qt()}else if(D!=null&&D.contentKind===hZ||D instanceof IE||KHD(D))for(t=kA6(D),
t=Array.from(t.childNodes),t=_.F(t),D=t.next();!D.done;D=t.next())d_.appendChild(D.value),Qt();else if(gw(D)&&(D=D.toString()),H=typeof D,H==="boolean"||H==="number"||H==="string")DlV(D);else if(typeof D==="function"){t=d_;var V=uD();V&&(V._isSignalTextNode||V._isSafeOrSanitizedHtmlNode)||xlR(t,V,D);Qt()}else if(D.type===NgD)bv(D.type(Object.assign({},D.props,{children:D.children[0]})));else{ih.beforeVisit(D);if(typeof D.type==="string"){a:{D.__open||x1V(D.type,D.props.idomKey);V=d_;for(t in D.props)if(D.props[t]!==
$IR){var b=D.props[t];H=Dv;H.push(t);H.push(b)}t=F2.attributes;t=t===void 0?q1:t;b=d_;H=pR(b);zKV(b,H,t);dlk(V,D.props,!0);if((D.props.skip||D.props.skipchildren)&&d_.hasChildNodes())u9V();else{if(D.type==="style"&&Ul$(D.children)===null){u9V();t=void 0;break a}bv(D.children)}RKD();D.__open&&(D.__open=!1);ask(V,D.props);t=V}return t}if(D.type===_.FH)bv(D.children);else if(!iPD(D)){t=D;try{rl3(t)}catch(a){D=a,(b=F2.handleError)==null||b.call.apply(b,[F2].concat(_.A6(g_(D,(V=t.type)==null?void 0:V.TAG_NAME))))}t.__open&&
(RKD(),t.__open=!1)}}};
OP3=function(D,t){var H;KcX(D)?H=new O4(t,D):H=new D(t);H.__type=D;H.__updateContext={nextState:H.state,isForced:!1};return H};
rl3=function(D){var t=D.type,H=t.TAG_NAME;if(t===V9)D.props.children=D.children,t(D.props);else{D.children.length>0&&(D.props.children=D.children);var e;(e=D.props).idomKey||(e.idomKey=t);if(H){var V=x1V(H,D.props.idomKey);D.__open=!0;var b=V.__instance}b||(b=OP3(t,D.props),b.props=null,V&&(V.__instance=b,b.el=V));var a;H=((a=b.__updateContext)!=null?a:{nextState:b.state,isForced:!1}).nextState;b.__updateContext=void 0;t.getDerivedStateFromProps&&(H=t.getDerivedStateFromProps(D.props,H));b.props=
D.props;b.state=H;a=function(){var w=b;ih.beforeRender(w);var h=w.render(w.props);ih.afterRender(w,h);h?(w.props.idomKey&&(h.props.idomKey=w.props.idomKey),w=h):w=void 0;if(h=w)if(h.__open=D.__open,w=bv(h),D.__open=h.__open,!t.TAG_NAME)if(w)t.TAG_NAME=w.tagName.toLowerCase(),w.__instance=b,b.el=w;else{var K;if((K=b.hooks)==null?0:K.length){var N;(N=F2.handleError)==null||N.call.apply(N,[F2].concat(_.A6(g_(Error("nd")))))}}b.didPatch();ih.didPatch(b)};
(H=b.functionComponent)?Znu(H,a,b.props.debugInstance):a()}};
iPD=function(D){var t=D.type;if(!KcX(t)||t===V9||t.componentType===PI)return!1;D.props.children=D.children.length>1?D.children:D.children[0];var H,e=(H=D.props.idomKey)!=null?H:D.type,V;if(uD()&&((V=uD()[KY])==null?void 0:V.key)===e){var b=uD(),a=b[KY];if(!a)throw Error("gc`"+b.tagName);var w;(w=a.updateSignalsFromIdomProps)==null||w.call(a,D.props);UIk(a);return!0}if(oGD.has(t.name))throw w=t.name,t=(a=(b=oZ)==null?void 0:b.name)!=null?a:"unknown",Error("fc`"+w+"`"+t);Is6(D.type,D.props,D.children);
D.props.renderedFromIdom=!0;(w=Znu(D.type,function(){return JKA(D.type,D.props)},D.props.debugInstance))&&PeR(w);
return!0};
nGD=function(D){for(var t=0;t<T5(D).length;t++)Qt()};
UIk=function(D){var t=CeV();if(t)nGD(t);else for(var H=0;H<D.numNodes;H++)(t=CeV())?nGD(t):Qt()};
CeV=function(){var D;return(D=uD()[KY])==null?void 0:D.sourceDynamicRange};
PeR=function(D){D=szD(D);D=Array.isArray(D)?D:[D];D=_.F(D);for(var t=D.next();!t.done;t=D.next())d_.insertBefore(t.value,uD()),Qt()};
mIV=function(){var D=lsK(),t=fY(function(){return{value:0}});
return[t.value,function(H){if(r1!==null){var e;(e=F2.handleError)==null||e.call.apply(e,[F2].concat(_.A6(g_(Error("od")))))}t.value=typeof H==="function"?H(t.value):H;D.__updateContext={nextState:D.state,isForced:!0};H=_.ej(D.effectContext);e=aD(!1);try{if(D.el){var V,b={},a=(b.props=D.props,b.type=D.__type,b.children=(V=D.props.children)!=null?V:[],b[q2]=!0,b);try{TgT(D.el,a,!0)}catch(K){var w,h;(h=F2.handleError)==null||h.call.apply(h,[F2].concat(_.A6(g_(K,(w=D.__type)==null?void 0:w.TAG_NAME))))}}}finally{aD(e),
_.ej(H)}}]};
_.F9=function(D,t){var H=HI,e=function(V){AL(H,function(){t(V)})};
window.addEventListener(D,e,void 0);_.Sj(function(){window.removeEventListener(D,e,void 0)})};
_.wv=function(D){var t=HI;return function(H){var e,V=(e=D.observer)!=null?e:_.qS().resolve(aC);e=MNu(H);var b=[];D.showOption&&b.push(V.observe(H,function(){AL(t,function(){D.visibilityCallback(!0,H)})},D.showOption));
D.hideOption&&b.push(V.observe(H,function(){AL(t,function(){D.visibilityCallback(!1,H)})},D.hideOption));
D.prescanOption&&D.prescanCallback&&b.push(V.observe(H,function(){AL(t,function(){D.prescanCallback()})},D.prescanOption));
var a;e.visibilityMonitorKeys=((a=e.visibilityMonitorKeys)!=null?a:[]).concat(b)}};
MNu=function(D){var t;return(t=D.polymerController)!=null?t:D};
LcK=function(D,t){var H=SED;return _.G(_.FH,null,CgK(F2.enableLazyTsx,function(){return _.G(XmK,{id:H,value:D,children:t})},function(){var e=fTK(H,D);
qp(e);e=_.ej(e);try{return t()}finally{_.ej(e)}}))};
XmK=function(D){var t=D.children;D=fTK(D.id,D.value);qp(D);D=_.ej(D);try{return _.G(_.FH,null,jG(t()))}finally{_.ej(D)}};
fTK=function(D,t){return Object.assign(Object.create(Alk),{id:D,contextValue:t})};
gG6=function(D){var t,H=HI;_.LR(function(){var e=_.ej(H),V=aD(!t);try{if(t)TgT(t,D.children(),!0);else if(t=jG(D.children()),!(t instanceof Element))throw Error("pd");}finally{aD(V),_.ej(e)}},"e");
return t};
_.Jl$=function(D,t){var H;t=X2(function(){var e=aD(!0);r_++;try{H=T5(D()),UP(!1)}catch(V){throw UP(!0),V;}finally{aD(e)}},t===void 0?!1:t);
return[H,t]};
lTA=function(D){var t=new YEA;t.abort(D);return t.signal};
vGV=function(){if(this.aborted){var D;throw(D=this.reason)!=null?D:new DOMException("signal is aborted without reason","AbortError");}};
xIk=function(D){var t=new YEA;D=_.F(D);for(var H=D.next();!H.done;H=D.next())if(H=H.value,H.aborted){t.abort(H.reason);break}else pmX.set(t.signal,t),dI8.add(H,t.signal);return t.signal};
R7V=function(){for(var D=_.F(dI8.get(this)),t=D.next();!t.done;t=D.next())pmX.get(t.value).abort(this.reason)};
uJ6=function(D){var t=new YEA;setTimeout(function(){t.abort(new DOMException("signal timed out","TimeoutError"))},D);
return t.signal};
ITK=function(D){D=D.buf.charCodeAt(D.pos++);return Wc6[D]};
ZY=function(D){var t=0,H=0;do{var e=ITK(D);t|=(e&31)<<H;H+=5}while(e&32);return t<0?t+4294967296:t};
ylT=function(){var D=!0;D=D===void 0?!1:D;var t=t===void 0?!1:t;var H=H===void 0?{}:H;var e=H.cssRowKey||"",V=H.combinedSignature||"";!e&&window&&window._F_cssRowKey&&(e=window._F_cssRowKey,!V&&window._F_combinedSignature&&(V=window._F_combinedSignature));if(e&&typeof window._F_installCss!=="function")throw Error("zd");var b=H.loaderClass||_.sh,a=QPD("base-js");D=new b(c6k(BkD("",a)),e,V,D,t);t=H.useCors||a&&a.hasAttribute("crossorigin");a=H.corsMode||a&&a.getAttribute("crossorigin");t&&(D.useCors_=
t);a&&(D.corsMode_=a);H.urlMaxLength&&(D.urlMaxLength=H.urlMaxLength);H.fetchPriority&&(D.fetchPriority=H.fetchPriority);var w=Ae();w.JSC$10058_loader_=D;w.setBatchModeEnabled(!0);_.QsD=function(h){return Promise.resolve(w.load(h))}};
DPV=function(D,t,H){Bg6(D,t);D[t][z7V].unshift(H)};
Bg6=function(D,t){if(!D[t]||!D[t][z7V]){var H=D[t],e=H?[H]:[];D[t]=function(){for(var V=_.F(e),b=V.next();!b.done;b=V.next())b.value.apply(this,arguments)};
D[t][z7V]=e}};
twR=function(D){if(!D)return[];var t=[];D=_.F(D);for(var H=D.next();!H.done;H=D.next())H=H.value,Array.isArray(H)?t.push.apply(t,_.A6(twR(H))):t.push(H);return t};
_.Gc=function(D,t){if(D&&HsX.test(D)||D==="//")return D;if(e8D===void 0){e8D=!1;try{var H=new URL("b","http://a");H.pathname="c%20d";e8D=H.href==="http://a/c%20d"}catch(e){}}t||(t=document.baseURI||window.location.href);if(e8D)try{return(new URL(D,t)).href}catch(e){return D}hn||(hn=document.implementation.createHTMLDocument("temp"),hn.base=hn.createElement("base"),hn.head.appendChild(hn.base),hn.anchor=hn.createElement("a"),hn.body.appendChild(hn.anchor));hn.base.href=t;hn.anchor.href=D;return hn.anchor.href||
D};
bsK=function(D,t){return D.replace(VwR,function(H,e,V,b){return e+"'"+_.Gc(V.replace(/["']/g,""),t)+"'"+b})};
qGV=function(D){return D.substring(0,D.lastIndexOf("/")+1)};
wXR=function(){FTK=!1;for(var D=Eh.length,t=0;t<D;t++){var H=Eh[t];if(H)try{H()}catch(e){setTimeout(function(){throw e;})}}Eh.splice(0,D);
am6+=D};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(D){console.log("["+D.is+"]: registered")};
s63=function(D){Zs6.push(D)};
Kn=function(D){return h8R[D]||(h8R[D]=D.indexOf("-")<0?D:D.replace(Gku,function(t){return t[1].toUpperCase()}))};
N1=function(D){return h8R[D]||(h8R[D]=D.replace(EK$,"-$1").toLowerCase())};
KTu=function(D,t){var H=t.parentInfo&&KTu(D,t.parentInfo);if(H)for(D=H.firstChild,H=0;D;D=D.nextSibling){if(t.parentIndex===H++)return D}else return D};
NLK=function(D,t){D=D._methodHost||D;return function(H){if(D[t])D[t](H,H.detail);else console.warn("listener method `"+t+"` not defined")}};
ko=function(D){return D.indexOf(".")>=0};
Tc=function(D){var t=D.indexOf(".");return t===-1?D:D.slice(0,t)};
kkD=function(D,t){return D.indexOf(t+".")===0};
cF=function(D,t){return t.indexOf(D+".")===0};
jp=function(D,t,H){return t+H.slice(D.length)};
TLD=function(D,t){return D===t||kkD(D,t)||cF(D,t)};
$o=function(D){if(Array.isArray(D)){for(var t=[],H=0;H<D.length;H++)for(var e=D[H].toString().split("."),V=0;V<e.length;V++)t.push(e[V]);return t.join(".")}return D};
c8D=function(D){return Array.isArray(D)?$o(D).split("."):D.toString().split(".")};
iv=function(D,t,H){t=c8D(t);for(var e=0;e<t.length;e++){if(!D)return;D=D[t[e]]}H&&(H.path=t.join("."));return D};
j68=function(D,t,H){var e=c8D(t),V=e[e.length-1];if(e.length>1){for(t=0;t<e.length-1;t++)if(D=D[e[t]],!D)return;D[V]=H}else D[t]=H;return e.join(".")};
$P6=function(D,t,H){var e=D[t];if(!e)e=D[t]={};else if(!D.hasOwnProperty(t)&&(e=D[t]=Object.create(D[t]),H))for(var V in e)for(D=e[V],t=e[V]=Array(D.length),H=0;H<D.length;H++)t[H]=D[H];return e};
Oh=function(D,t,H,e,V,b){if(t){var a=!1,w=rv++,h;for(h in H){var K=V?Tc(h):h;if(K=t[K])for(var N=0,k=K.length,T=void 0;N<k&&(T=K[N]);N++)T.info&&T.info.lastRun===w||V&&!isk(h,T.trigger)||(T.info&&(T.info.lastRun=w),T.fn(D,h,H,e,T.info,V,b),a=!0)}return a}return!1};
isk=function(D,t){if(t){var H=t.name;return H==D||!(!t.structured||!kkD(H,D))||!(!t.wildcard||!cF(H,D))}return!0};
r8K=function(D,t,H,e,V){t=typeof V.method==="string"?D[V.method]:V.method;H=V.property;t?t.call(D,D.__data[H],e[H]):V.dynamicFn||console.warn("observer method `"+V.method+"` not defined")};
OsT=function(D,t,H,e){H={value:H,queueProperty:!0};e&&(H.path=e);(0,_.Uh)(D).dispatchEvent(new CustomEvent(t,{detail:H}))};
UPk=function(D,t,H,e,V,b){b=(e=(b?Tc(t):t)!=t?t:null)?iv(D,e):D.__data[t];e&&b===void 0&&(b=H[t]);OsT(D,V.eventName,b,e)};
oKu=function(D,t,H,e,V){H=D.__data[t];oC&&(H=oC(H,V.attrName,"attribute",D));D._propertyToAttribute(t,V.attrName,H)};
nKu=function(D){var t=D.constructor.__orderedComputedDeps;if(!t){t=new Map;for(var H=D.__computeEffects,e=PI$(D),V=e.counts,b=e.ready,a=e.total;e=b.shift();)t.set(e,t.size),(e=H[e])&&e.forEach(function(w){w=w.info.methodInfo;--a;--V[w]===0&&b.push(w)});
a!==0&&console.warn("Computed graph for "+D.localName+" incomplete; circular?");D.constructor.__orderedComputedDeps=t}return t};
PI$=function(D){var t=D.__computeInfo,H={};D=D.__computeEffects;var e=[],V=0,b;for(b in t){var a=t[b];V+=H[b]=a.args.filter(function(h){return!h.literal}).length+(a.dynamicFn?1:0)}for(var w in D)t[w]||e.push(w);
return{counts:H,ready:e,total:V}};
mP3=function(D,t,H,e,V){t=CIk(D,t,H,e,V);if(t===PF)return!1;V=V.methodInfo;if(D.__dataHasAccessor&&D.__dataHasAccessor[V])return D._setPendingProperty(V,t,!0);D[V]=t;return!1};
XXX=function(D,t,H,e,V,b,a){H.bindings=H.bindings||[];e={kind:e,target:V,parts:b,literal:a,isCompound:b.length!==1};H.bindings.push(e);e.target&&e.kind!="attribute"&&e.kind!="text"&&!e.isCompound&&e.parts[0].mode==="{"&&(H=e.parts[0],b=H.negate,e.listenerEvent=H.event||N1(V)+"-changed",e.listenerNegate=b);V=t.nodeInfoList.length;for(H=0;H<e.parts.length;H++){var w=e.parts[H];w.compoundIndex=H;b=D;a=t;var h=e,K=w,N=V;if(!K.literal)if(h.kind==="attribute"&&h.target[0]==="-")console.warn("Cannot set attribute "+
h.target+' because "-" is not a valid attribute starting character');else for(w=K.dependencies,h={index:N,binding:h,part:K,evaluator:b},K=0;K<w.length;K++)N=w[K],typeof N=="string"&&(N=MwX(N),N.wildcard=!0),b._addTemplatePropertyEffect(a,N.rootProperty,{fn:SGV,info:h,trigger:N})}};
SGV=function(D,t,H,e,V,b,a){a=a[V.index];var w=V.binding,h=V.part;b&&h.source&&t.length>h.source.length&&w.kind=="property"&&!w.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[w.target]?(H=H[t],t=jp(h.source,w.target,t),a._setPendingPropertyOrPath(t,H,!1,!0)&&D._enqueueClient(a)):(t=V.evaluator._evaluateBinding(D,h,t,H,e,b),t!==PF&&(w.isCompound&&(H=a.__dataCompoundStorage[w.target],H[h.compoundIndex]=t,t=H.join("")),w.kind==="attribute"||w.target!=="textContent"&&
(w.target!=="value"||a.localName!=="input"&&a.localName!=="textarea")||(t=t==void 0?"":t),h=t,oC&&(h=oC(h,w.target,w.kind,a)),w.kind=="attribute"?D._valueToNodeAttribute(a,h,w.target):(w=w.target,a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[w]?a.__readOnly&&a.__readOnly[w]||a._setPendingProperty(w,h)&&D._enqueueClient(a):D._setUnmanagedPropertyToNode(a,w,h))))};
fm8=function(D,t,H){if(H.listenerEvent){var e=H.parts[0];D.addEventListener(H.listenerEvent,function(V){var b=H.target,a=e.source,w=e.negate,h=V.detail,K=h&&h.path;K?(a=jp(b,a,K),V=h&&h.value):V=V.currentTarget[b];t.__readOnly&&t.__readOnly[a]||!t._setPendingPropertyOrPath(a,w?!V:V,!0,!!K)||h&&h.queueProperty||t._invalidateProperties()})}};
LTV=function(D,t,H,e,V,b){b=t.static||b&&(typeof b!=="object"||b[t.methodName]);V={methodName:t.methodName,args:t.args,methodInfo:V,dynamicFn:b};for(var a=0,w=void 0;a<t.args.length&&(w=t.args[a]);a++)w.literal||D._addPropertyEffect(w.rootProperty,H,{fn:e,info:V,trigger:w});b&&D._addPropertyEffect(t.methodName,H,{fn:e,info:V});return V};
CIk=function(D,t,H,e,V){e=D._methodHost||D;var b=e[V.methodName];if(b)return D=D._marshalArgs(V.args,t,H),D===PF?PF:b.apply(e,D);V.dynamicFn||console.warn("method `"+V.methodName+"` not defined")};
A8V=function(D){for(var t="",H=0;H<D.length;H++)t+=D[H].literal||"";return t};
YG3=function(D){if(D=D.match(/([^\s]+?)\(([\s\S]*)\)/)){var t={methodName:D[1],static:!0,args:gKK};return D[2].trim()?J8A(D[2].replace(/\\,/g,"&comma;").split(","),t):t}return null};
J8A=function(D,t){t.args=D.map(function(H){H=MwX(H);H.literal||(t.static=!1);return H},this);
return t};
MwX=function(D){D=D.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var t={name:D,value:"",literal:!1},H=D[0];H==="-"&&(H=D[1]);H>="0"&&H<="9"&&(H="#");switch(H){case "'":case '"':t.value=D.slice(1,-1);t.literal=!0;break;case "#":t.value=Number(D),t.literal=!0}t.literal||(t.rootProperty=Tc(D),t.structured=ko(D),t.structured&&(t.wildcard=D.slice(-2)==".*",t.wildcard&&(t.name=D.slice(0,-2))));return t};
lmV=function(D,t,H){D=iv(D,H);D===void 0&&(D=t[H]);return D};
vKV=function(D,t,H,e){e={indexSplices:e};nn&&!D._overrideLegacyUndefined&&(t.splices=e);D.notifyPath(H+".splices",e);D.notifyPath(H+".length",t.length);nn&&!D._overrideLegacyUndefined&&(e.indexSplices=[])};
Cn=function(D,t,H,e,V,b){vKV(D,t,H,[{index:e,addedCount:V,removed:b,object:t,type:"splice"}])};
pX6=function(D){D=bsK((D.body?D.body:D).textContent,D.baseURI);var t=document.createElement("style");t.textContent=D;return t};
xP3=function(D){D=D.trim().split(/\s+/);for(var t=[],H=0;H<D.length;H++)t.push.apply(t,_.A6(dP8(D[H])));return t};
dP8=function(D){var t=mF.import(D);if(!t)return console.warn("Could not find style data in module named",D),[];if(t._styles===void 0){D=[];D.push.apply(D,_.A6(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t)));var H=t.querySelector("template");H&&D.push.apply(D,_.A6(R8$(H,t.assetpath)));t._styles=D}return t._styles};
R8$=function(D,t){if(!D._styles){for(var H=[],e=D.content.querySelectorAll("style"),V=0;V<e.length;V++){var b=e[V],a=b.getAttribute("include");a&&H.push.apply(H,_.A6(xP3(a).filter(function(w,h,K){return K.indexOf(w)===h})));
t&&(b.textContent=bsK(b.textContent,t));H.push(b)}D._styles=H}return D._styles};
uCD=function(D){return(D=mF.import(D))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(D){var t=[];D=D.querySelectorAll("link[rel=import][type~=css]");for(var H=0;H<D.length;H++){var e=D[H];if(e.import){var V=e.import;if((e=e.hasAttribute("shady-unscoped"))&&!V._unscopedStyle){var b=pX6(V);b.setAttribute("shady-unscoped","");V._unscopedStyle=b}else V._style||(V._style=pX6(V));t.push(e?V._unscopedStyle:V._style)}}return t};
Imu=function(D){D=D.trim().split(/\s+/);for(var t="",H=0;H<D.length;H++)t+=WTX(D[H]);return t};
WTX=function(D){var t=mF.import(D);if(t&&t._cssText===void 0){var H=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(t),e=t.querySelector("template");e&&(H+=Q6D(e,t.assetpath));t._cssText=H||null}t||console.warn("Could not find style data in module named",D);return t&&t._cssText||""};
Q6D=function(D,t){var H="";D=R8$(D,t);for(t=0;t<D.length;t++){var e=D[t];e.parentNode&&e.parentNode.removeChild(e);H+=e.textContent}return H};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(D){var t="";D=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D);for(var H=0;H<D.length;H++)t+=D[H].textContent;return t};
M1=function(D,t){return{index:D,removed:[],addedCount:t}};
BLk=function(D,t,H,e){var V=0,b=0,a=0,w=0,h=Math.min(t-V,e-b);if(V==0&&b==0)a:{for(a=0;a<h;a++)if(D[a]!==H[a])break a;a=h}if(t==D.length&&e==H.length){w=D.length;for(var K=H.length,N=0;N<h-a&&y8D(D[--w],H[--K]);)N++;w=N}V+=a;b+=a;t-=w;e-=w;if(t-V==0&&e-b==0)return[];if(V==t){for(t=M1(V,0);b<e;)t.removed.push(H[b++]);return[t]}if(b==e)return[M1(V,t-V)];h=V;a=b;e=e-a+1;w=t-h+1;t=Array(e);for(K=0;K<e;K++)t[K]=Array(w),t[K][0]=K;for(K=0;K<w;K++)t[0][K]=K;for(K=1;K<e;K++)for(N=1;N<w;N++)if(D[h+N-1]===
H[a+K-1])t[K][N]=t[K-1][N-1];else{var k=t[K-1][N]+1,T=t[K][N-1]+1;t[K][N]=k<T?k:T}h=t.length-1;a=t[0].length-1;e=t[h][a];for(D=[];h>0||a>0;)h==0?(D.push(2),a--):a==0?(D.push(3),h--):(w=t[h-1][a-1],K=t[h-1][a],N=t[h][a-1],k=K<N?K<w?K:w:N<w?N:w,k==w?(w==e?D.push(0):(D.push(1),e=w),h--,a--):k==K?(D.push(3),h--,e=K):(D.push(2),a--,e=N));D.reverse();t=void 0;h=[];for(a=0;a<D.length;a++)switch(D[a]){case 0:t&&(h.push(t),t=void 0);V++;b++;break;case 1:t||(t=M1(V,0));t.addedCount++;V++;t.removed.push(H[b]);
b++;break;case 2:t||(t=M1(V,0));t.addedCount++;V++;break;case 3:t||(t=M1(V,0)),t.removed.push(H[b]),b++}t&&h.push(t);return h};
z83=function(D,t){return BLk(D,D.length,t,t.length)};
y8D=function(D,t){return D===t};
tkV=function(D){if(D instanceof DGD)return D.value;throw Error("Hd`"+D);};
Ha8=function(D,t){for(var H in t)H===null?D.style.removeProperty(H):D.style.setProperty(H,t[H])};
emD=function(D,t){return(D=window.getComputedStyle(D).getPropertyValue(t))?D.trim():""};
FN8=function(D){requestAnimationFrame(function(){VkD?VkD(D):(baD||(baD=new Promise(function(t){qtV=t}),document.readyState==="complete"?qtV():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&qtV()})),baD.then(function(){D&&D()}))})};
Za6=function(D){ajR=D&&D.shimcssproperties?!1:wgR||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
KNK=function(D){if(!(skD.indexOf(D)>-1)&&D!=="touchend"&&hmD&&GE3&&EfD)return{passive:!0}};
cMV=function(D){for(var t=NUV?["click"]:skD,H=0,e;H<t.length;H++)e=t[H],D?(kET.length=0,document.addEventListener(e,TUV,!0)):document.removeEventListener(e,TUV,!0)};
Sp=function(D){var t=D.type;return skD.indexOf(t)>-1?t==="mousemove"?(t=D.buttons===void 0?1:D.buttons,D instanceof window.MouseEvent&&!jkX&&(t=$GV[D.which]||0),!!(t&1)):(D.button===void 0?0:D.button)===0:!1};
ia6=function(D){if(D.type==="click"){if(D.detail===0)return!0;var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;t=t.getBoundingClientRect();var H=D.pageX;D=D.pageY;return!(H>=t.left&&H<=t.right&&D>=t.top&&D<=t.bottom)}return!1};
rMV=function(D,t,H){D.movefn=t;D.upfn=H;document.addEventListener("mousemove",t);document.addEventListener("mouseup",H)};
fn=function(D){document.removeEventListener("mousemove",D.movefn);document.removeEventListener("mouseup",D.upfn);D.movefn=null;D.upfn=null};
OaK=function(D,t){for(var H=document.elementFromPoint(D,t),e=H;e&&e.shadowRoot&&!window.ShadyDOM;){var V=e;e=e.shadowRoot.elementFromPoint(D,t);if(V===e)break;e&&(H=e)}return H};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){var t=UG$(D);return t.length>0?t[0]:D.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){var t=D.type,H=D.currentTarget.__polymerGestures;if(H&&(H=H[t])){if(!D.__polymerGesturesHandled&&(D.__polymerGesturesHandled={},t.slice(0,5)==="touch")){var e=D.changedTouches[0];t==="touchstart"&&D.touches.length===1&&(ofD=e.identifier);if(ofD!==e.identifier)return;hmD||(t==="touchstart"||t==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D)}e=
D.__polymerGesturesHandled;if(!e.skip){for(var V=0,b;V<Ln.length;V++)b=Ln[V],H[b.name]&&!e[b.name]&&b.flow&&b.flow.start.indexOf(D.type)>-1&&b.reset&&b.reset();for(V=0;V<Ln.length;V++)b=Ln[V],H[b.name]&&!e[b.name]&&(e[b.name]=!0,b[t](D))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){var t=D.changedTouches[0],H=D.type;if(H==="touchstart")PZX=t.clientX,nf8=t.clientY,CZX=!1;else if(H==="touchmove"&&!CZX){CZX=!0;H="auto";for(var e=UG$(D),V=0,b;V<e.length;V++)if(b=e[V],b.__polymerGesturesTouchAction){H=b.__polymerGesturesTouchAction;break}e=!1;V=Math.abs(PZX-t.clientX);t=Math.abs(nf8-t.clientY);D.cancelable&&(H==="none"?e=!0:H==="pan-x"?e=t>V:H==="pan-y"&&(e=V>t));e?D.preventDefault():
An("track")}};
Jn=function(D,t,H){return gv[t]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D,t,H),!0):!1};
Yo=function(D,t,H){return gv[t]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D,t,H),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D,t,H){var e=gv[t],V=e.deps,b=e.name,a=D.__polymerGestures;a||(D.__polymerGestures=a={});for(var w=0,h,K;w<V.length;w++)h=V[w],NUV&&skD.indexOf(h)>-1&&h!=="click"||((K=a[h])||(a[h]=K={_count:0}),K._count===0&&D.addEventListener(h,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,KNK(h)),K[b]=(K[b]||0)+1,K._count=(K._count||0)+1);D.addEventListener(t,H);e.touchAction&&_.pn(D,e.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D,t,H){var e=gv[t],V=e.deps;e=e.name;var b=D.__polymerGestures;if(b)for(var a=0,w,h;a<V.length;a++)w=V[a],(h=b[w])&&h[e]&&(h[e]=(h[e]||1)-1,h._count=(h._count||1)-1,h._count===0&&D.removeEventListener(w,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,KNK(w)));D.removeEventListener(t,H)};
mGk=function(D){Ln.push(D);for(var t=0;t<D.emits.length;t++)gv[D.emits[t]]=D};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D){for(var t=0,H;t<Ln.length;t++){H=Ln[t];for(var e=0,V;e<H.emits.length;e++)if(V=H.emits[e],V===D)return H}return null};
_.pn=function(D,t){hmD&&D instanceof HTMLElement&&dv.run(function(){D.style.touchAction=t});
D.__polymerGesturesTouchAction=t};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(D,t,H){t=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});t.detail=H;(0,_.Uh)(D).dispatchEvent(t);t.defaultPrevented&&(D=H.preventer||H.sourceEvent)&&D.preventDefault&&D.preventDefault()};
An=function(D){D=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);D.info&&(D.info.prevent=!0)};
xo=function(D,t,H,e){t&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,D,{x:H.clientX,y:H.clientY,sourceEvent:H,preventer:e,prevent:function(V){return An(V)}})};
MkR=function(D,t,H){if(D.prevent)return!1;if(D.started)return!0;H=Math.abs(D.y-H);return Math.abs(D.x-t)>=5||H>=5};
StR=function(D,t,H){if(t){var e=D.moves[D.moves.length-2],V=D.moves[D.moves.length-1],b=V.x-D.x,a=V.y-D.y,w=0;if(e){var h=V.x-e.x;w=V.y-e.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(t,"track",{state:D.state,x:H.clientX,y:H.clientY,dx:b,dy:a,ddx:h,ddy:w,sourceEvent:H,hover:function(){return OaK(H.clientX,H.clientY)}})}};
fjX=function(D,t,H){var e=Math.abs(t.clientX-D.x),V=Math.abs(t.clientY-D.y),b=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(H||t);!b||XgX[b.localName]&&b.hasAttribute("disabled")||!(isNaN(e)||isNaN(V)||e<=25&&V<=25||ia6(t))||D.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(b,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:H})};
LN$=function(D,t,H,e,V){var b;V&&(b=typeof H==="object"&&H!==null)&&(e=D.__dataTemp[t]);e=e!==H&&(e===e||H===H);b&&e&&(D.__dataTemp[t]=H);return e};
gfk=function(){if(RC&&!uv){if(!AM8){AM8=!0;var D=document.createElement("style");D.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(D)}return!0}return!1};
Yt6=function(){return JM3};
ljX=function(D,t){JM3=D;Object.setPrototypeOf(D,t.prototype);new t;JM3=null};
vfK=function(D,t){for(var H=0;H<t.length;H++){var e=t[H];if(!!D!=!!e.__hideTemplateChildren__)if(e.nodeType===Node.TEXT_NODE)D?(e.__polymerTextContent__=e.textContent,e.textContent=""):e.textContent=e.__polymerTextContent__;else if(e.localName==="slot")if(D)e.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Uh)((0,_.Uh)(e).parentNode).replaceChild(e.__polymerReplaced__,e);else{var V=e.__polymerReplaced__;V&&(0,_.Uh)((0,_.Uh)(V).parentNode).replaceChild(e,V)}else e.style&&(D?(e.__polymerDisplay__=
e.style.display,e.style.display="none"):e.style.display=e.__polymerDisplay__);e.__hideTemplateChildren__=D;e._showHideChildren&&e._showHideChildren(D)}};
pg$=function(D){return(D=D.__dataHost)&&D._methodHost||D};
RmA=function(D,t,H){var e=H.mutableData?dGK:WF;IC.mixin&&(e=IC.mixin(e));var V=function(){return e.apply(this,arguments)||this};
_.P(V,e);V.prototype.__templatizeOptions=H;V.prototype._bindTemplate(D);xGA(V,D,t,H);return V};
yMD=function(D,t,H,e){var V=H.forwardHostProp;if(V&&t.hasHostProps){var b=D.localName=="template",a=t.templatizeTemplateClass;if(!a){if(b){var w=H.mutableData?uz8:WNV;a=function(){return w.apply(this,arguments)||this};
_.P(a,w);a=t.templatizeTemplateClass=a}else{var h=D.constructor;a=function(){return h.apply(this,arguments)||this};
_.P(a,h);a=t.templatizeTemplateClass=a}var K=t.hostProps,N;for(N in K)a.prototype._addPropertyEffect("_host_"+N,a.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:IjT(V)}),a.prototype._createNotifyingProperty("_host_"+N);Q9&&e&&QkV(t,H,e)}D.__dataProto&&Object.assign(D.__data,D.__dataProto);if(b)ljX(D,a),D.__dataTemp={},D.__dataPending=null,D.__dataOld=null,D._enableProperties();else{Object.setPrototypeOf(D,a.prototype);t=t.hostProps;for(var k in t)k="_host_"+k,k in D&&(t=D[k],delete D[k],D.__data[k]=
t)}}};
IjT=function(D){return function(t,H,e){D.call(t.__templatizeOwner,H.substring(6),e[H])}};
xGA=function(D,t,H,e){var V=H.hostProps||{},b;for(b in e.instanceProps){delete V[b];var a=e.notifyInstanceProp;a&&D.prototype._addPropertyEffect(b,D.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:BU6(a)})}if(e.forwardHostProp&&t.__dataHost)for(var w in V)H.hasHostProps||(H.hasHostProps=!0),D.prototype._addPropertyEffect(w,D.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:zm6()})};
BU6=function(D){return function(t,H,e){D.call(t.__templatizeOwner,t,H,e[H])}};
zm6=function(){return function(D,t,H){D.__dataHost._setPendingPropertyOrPath("_host_"+t,H[t],!0,!0)}};
IC=function(D,t,H){if(y9&&!pg$(D))throw Error("Nd");H=H||{};if(D.__templatizeOwner)throw Error("Od");D.__templatizeOwner=t;var e=(t?t.constructor:WF)._parseTemplate(D),V=e.templatizeInstanceClass;V||(V=RmA(D,e,H),e.templatizeInstanceClass=V);var b=pg$(D);yMD(D,e,H,b);H=function(){return V.apply(this,arguments)||this};
_.P(H,V);H.prototype._methodHost=b;H.prototype.__dataHost=D;H.prototype.__templatizeOwner=t;H.prototype.__hostProps=e.hostProps;return H};
QkV=function(D,t,H){H=H.constructor._properties;D=D.propertyEffects;t=t.instanceProps;for(var e in D)if(!(H[e]||t&&t[e]))for(var V=D[e],b=0;b<V.length;b++){var a=V[b].info.part;if(!a.signature||!a.signature.static){console.warn("Property '"+e+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
DAV=function(D,t){for(var H;t;)if(H=t.__dataHost?t:t.__templatizeInstance)if(H.__dataHost!=D)t=H.__dataHost;else return H;else t=(0,_.Uh)(t).parentNode;return null};
BF=function(D){return D.localName==="slot"};
tB6=function(){for(var D=zc.prototype,t="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),H={},e=0;e<t.length;H={method$jscomp$33:void 0},e++)H.method$jscomp$33=t[e],D[H.method$jscomp$33]=function(V){return function(){return this.node[V.method$jscomp$33].apply(this.node,arguments)}}(H)};
HJk=function(D,t){for(var H={},e=0;e<t.length;H={name$jscomp$448:void 0},e++)H.name$jscomp$448=t[e],Object.defineProperty(D,H.name$jscomp$448,{get:function(V){return function(){return this.node[V.name$jscomp$448]}}(H),
configurable:!0})};
eFV=function(){for(var D=zc.prototype,t=["textContent","innerHTML","className"],H={},e=0;e<t.length;H={name$jscomp$449:void 0},e++)H.name$jscomp$449=t[e],Object.defineProperty(D,H.name$jscomp$449,{get:function(V){return function(){return this.node[V.name$jscomp$449]}}(H),
set:function(V){return function(b){this.node[V.name$jscomp$449]=b}}(H),
configurable:!0})};
VBA=function(){Ds=document.documentElement.getAttribute("dir");Ds=document.documentElement.getAttribute("dir");for(var D=0;D<tK.length;D++){var t=tK[D];t.__autoDirOptOut||t.setAttribute("dir",Ds)}};
ayk=function(){H3=!0;requestAnimationFrame(function(){H3=!1;bJA(qBT);setTimeout(function(){for(var D=0,t=e7.length;D<t;D++)FbV(e7.shift())})})};
bJA=function(D){for(;D.length;)FbV(D.shift())};
FbV=function(D){var t=D[0],H=D[1];D=D[2];try{H.apply(t,D)}catch(e){setTimeout(function(){throw e;})}};
_.wrD=function(D,t,H){H3||ayk();qBT.push([D,t,H])};
_.Vi=function(D,t,H){H3||ayk();e7.push([D,t,H])};
hFA=function(D,t){t=t===void 0?!1:t;if(!ZJu||!sSD||!ZJu.handlesDynamicScoping)return null;var H=sSD.ScopingShim;if(!H)return null;var e=H.scopeForNode(D),V=(0,_.Uh)(D).getRootNode(),b=function(a){if((0,_.Uh)(a).getRootNode()===V){var w=Array.from(ZJu.nativeMethods.querySelectorAll.call(a,"*"));w.push(a);for(a=0;a<w.length;a++){var h=w[a];if((0,_.Uh)(h).getRootNode()===V){var K=H.currentScopeForNode(h);K!==e&&(K!==""&&H.unscopeNode(h,K),H.scopeNode(h,e))}}}};
b(D);return t?(t=new MutationObserver(function(a){for(var w=0;w<a.length;w++)for(var h=a[w],K=0;K<h.addedNodes.length;K++){var N=h.addedNodes[K];N.nodeType===Node.ELEMENT_NODE&&b(N)}}),t.observe(D,{childList:!0,
subtree:!0}),t):null};
GNX=function(){document.body.removeAttribute("unresolved")};
Tqk=function(D){var t=D=D.replace(EB$,"").replace(KbD,""),H=new Nq$;H.start=0;H.end=t.length;for(var e=H,V=0,b=t.length;V<b;V++)if(t[V]==="{"){e.rules||(e.rules=[]);var a=e,w=a.rules[a.rules.length-1]||null;e=new Nq$;e.start=V+1;e.parent=a;e.previous=w;a.rules.push(e)}else t[V]==="}"&&(e.end=V+1,e=e.parent||H);return kNA(H,D)};
kNA=function(D,t){var H=t.substring(D.start,D.end-1);D.parsedCssText=D.cssText=H.trim();D.parent&&(H=t.substring(D.previous?D.previous.end:D.parent.start,D.start-1),H=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(H),H=H.replace(c_k," "),H=H.substring(H.lastIndexOf(";")+1),H=D.parsedSelector=D.selector=H.trim(),D.atRule=H.indexOf("@")===0,D.atRule?H.indexOf("@media")===0?D.type=4:H.match(jSk)&&(D.type=7,D.keyframesName=D.selector.split(c_k).pop()):H.indexOf("--")===
0?D.type=1E3:D.type=1);if(H=D.rules)for(var e=0,V=H.length,b=void 0;e<V&&(b=H[e]);e++)kNA(b,t);return D};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(D){return D.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var t=arguments[1],H=6-t.length;H--;)t="0"+t;return"\\"+t})};
$AK=function(D,t,H){H=H===void 0?"":H;var e="";if(D.cssText||D.rules){var V=D.rules;if(V&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(V))for(var b=0,a=V.length,w=void 0;b<a&&(w=V[b]);b++)e=$AK(w,t,e);else t?t=D.cssText:(t=D.cssText,t=t.replace(iJ$,"").replace(r_A,""),t=t.replace(OJ3,"").replace(UAX,"")),(e=t.trim())&&(e="  "+e+"\n")}e&&(D.selector&&(H+=D.selector+" {\n"),H+=e,D.selector&&(H+="}\n\n"));return H};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(D){D=D[0];return!!D&&!!D.selector&&D.selector.indexOf("--")===0};
PtD=function(D){if(D=oB6[D])D._applyShimCurrentVersion=D._applyShimCurrentVersion||0,D._applyShimValidatingVersion=D._applyShimValidatingVersion||0,D._applyShimNextVersion=(D._applyShimNextVersion||0)+1};
nB$=function(D){return D._applyShimCurrentVersion===D._applyShimNextVersion};
mAD=function(D){D._applyShimValidatingVersion=D._applyShimNextVersion;D._validating||(D._validating=!0,CtA.then(function(){D._applyShimCurrentVersion=D._applyShimNextVersion;D._validating=!1}))};
SB3=function(D){if(!D)return"";typeof D==="string"&&(D=Tqk(D));return $AK(D,MBD)};
Xr$=function(D){!D.__cssRules&&D.textContent&&(D.__cssRules=Tqk(D.textContent));return D.__cssRules||null};
LbD=function(D,t,H,e){if(D){var V=!1,b=D.type;if(e&&b===4){var a=D.selector.match(fyV);a&&(window.matchMedia(a[1]).matches||(V=!0))}b===1?t(D):H&&b===7?H(D):b===1E3&&(V=!0);if((D=D.rules)&&!V)for(V=0,b=D.length,a=void 0;V<b&&(a=D[V]);V++)LbD(a,t,H,e)}};
A_6=function(D,t){var H=D.indexOf("var(");if(H===-1)return t(D,"","","");a:{var e=0;var V=H+3;for(var b=D.length;V<b;V++)if(D[V]==="(")e++;else if(D[V]===")"&&--e===0)break a;V=-1}e=D.substring(H+4,V);H=D.substring(0,H);D=A_6(D.substring(V+1),t);b=e.indexOf(",");if(b===-1)return t(H,e.trim(),"",D);V=e.substring(0,b).trim();e=e.substring(b+1).trim();return t(H,V,e,D)};
gB6=function(D){if(bo!==void 0)return bo;if(D.__cssBuild===void 0){var t=D.getAttribute("css-build");if(t)D.__cssBuild=t;else{a:{t=D.localName==="template"?D.content.firstChild:D.firstChild;if(t instanceof Comment&&(t=t.textContent.trim().split(":"),t[0]==="css-build")){t=t[1];break a}t=""}if(t!==""){var H=D.localName==="template"?D.content.firstChild:D.firstChild;H.parentNode.removeChild(H)}D.__cssBuild=t}}return D.__cssBuild||""};
YBu=function(D,t,H,e){for(var V=t._noAccessors,b=Object.getOwnPropertyNames(t),a=0;a<b.length;a++){var w=b[a];if(!(w in e))if(V)D[w]=t[w];else{var h=Object.getOwnPropertyDescriptor(t,w);h&&(h.configurable=!0,Object.defineProperty(D,w,h))}}for(var K in J_3)t[K]&&(H[K]=H[K]||[],H[K].push(t[K]))};
ly3=function(D,t,H){t=t||[];for(var e=D.length-1;e>=0;e--){var V=D[e];V?Array.isArray(V)?ly3(V,t):t.indexOf(V)<0&&(!H||H.indexOf(V)<0)&&t.unshift(V):console.warn("behavior is null, check for missing or 404 import")}return t};
vB3=function(D,t){for(var H in t){var e=D[H],V=t[H];D[H]=!("value"in V)&&e&&"value"in e?Object.assign({value:e.value},V):V}};
xAT=function(D,t,H){var e={},V=function(){return t.apply(this,arguments)||this};
_.P(V,t);V._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(a)for(var h=0,K;h<a.length;h++)K=a[h],K.properties&&this.createProperties(K.properties),K.observers&&this.createObservers(K.observers,K.properties);D.properties&&this.createProperties(D.properties);D.observers&&this.createObservers(D.observers,D.properties);this._prepareTemplate()}else t._finalizeClass.call(this)};
V.prototype.created=function(){t.prototype.created.call(this);var h=e.created;if(h)for(var K=0;K<h.length;K++)h[K].call(this)};
V.prototype._registered=function(){var h=V.prototype;if(!h.hasOwnProperty("__hasRegisterFinished")){h.__hasRegisterFinished=!0;t.prototype._registered.call(this);RC&&w(h);h=Object.getPrototypeOf(this);var K=e.beforeRegister;if(K)for(var N=0;N<K.length;N++)K[N].call(h);if(K=e.registered)for(N=0;N<K.length;N++)K[N].call(h)}};
V.prototype._applyListeners=function(){t.prototype._applyListeners.call(this);var h=e.listeners;if(h)for(var K=0;K<h.length;K++){var N=h[K];if(N)for(var k in N)this._addMethodEventListenerToNode(this,k,N[k])}};
V.prototype._ensureAttributes=function(){var h=e.hostAttributes;if(h)for(var K=h.length-1;K>=0;K--){var N=h[K],k;for(k in N)this._ensureAttribute(k,N[k])}t.prototype._ensureAttributes.call(this)};
V.prototype.ready=function(){t.prototype.ready.call(this);var h=e.ready;if(h)for(var K=0;K<h.length;K++)h[K].call(this)};
V.prototype.attached=function(){t.prototype.attached.call(this);var h=e.attached;if(h)for(var K=0;K<h.length;K++)h[K].call(this)};
V.prototype.detached=function(){t.prototype.detached.call(this);var h=e.detached;if(h)for(var K=0;K<h.length;K++)h[K].call(this)};
V.prototype.attributeChanged=function(h,K,N){t.prototype.attributeChanged.call(this);var k=e.attributeChanged;if(k)for(var T=0;T<k.length;T++)k[T].call(this,h,K,N)};
_.ql.Object.defineProperties(V,{properties:{configurable:!0,enumerable:!0,get:function(){var h={};if(a)for(var K=0;K<a.length;K++)vB3(h,a[K].properties);vB3(h,D.properties);return h}},
observers:{configurable:!0,enumerable:!0,get:function(){var h=[];if(a)for(var K=0,N;K<a.length;K++)N=a[K],N.observers&&(h=h.concat(N.observers));D.observers&&(h=h.concat(D.observers));return h}}});
if(H){Array.isArray(H)||(H=[H]);var b=t.prototype.behaviors;var a=ly3(H,null,b);V.prototype.behaviors=b?b.concat(H):a}var w=function(h){if(a)for(var K=a,N=0;N<K.length;N++)YBu(h,K[N],e,prV);YBu(h,D,e,dAX)};
RC||w(V.prototype);V.generatedFrom=D;return V};
IyD=function(D){var t=typeof D!=="string"?D:{is:D,notifyObserversOnUndefined:!0};t.fastInit===void 0&&(t.fastInit=!0);return function(H){if(!t.disableInheritanceCheck&&Object.getPrototypeOf(H.prototype).constructor!==_.Fu)throw Error("Sd");var e=H.prototype;e.is=t.is;DPV(e,"created",function(){this.hostElement=this;this.polymerController=this});
RFR(e,H,t.fastInit);t.notifyObserversOnUndefined&&(e._overrideLegacyUndefined=!0);if(ux$)for(var V=_.F(Object.getOwnPropertyNames(e)),b=V.next();!b.done;b=V.next()){b=b.value;var a=Object.getOwnPropertyDescriptor(e,b);a.enumerable===!1&&(a.enumerable=!0,Object.defineProperty(e,b,a))}if("template"in H)var w=function(){return H.template};
else t.template!==void 0&&(w=t.template);if(w!==void 0){var h;Object.defineProperty(e,"_template",{get:function(){h===void 0&&(h=w());return h},
set:function(K){h=K},
configurable:!0,enumerable:!0})}Polymer(e);H[WbR]=e}};
QS8=function(D){D=D===void 0?{}:D;D.fastInit===void 0&&(D.fastInit=!0);return function(t){if(!D.disableInheritanceCheck&&Object.getPrototypeOf(t.prototype).constructor!==az)throw Error("Td");RFR(t.prototype,t,D.fastInit)}};
RFR=function(D,t,H){H=H===void 0?!1:H;y_6(t);H?DPV(D,"created",function(){this.disableEnforceFastDefaultValuesCheck||Bq6(t,this)}):DPV(D,"ready",function(){for(var e={},V=_.F(twR(this.behaviors)),b=V.next();!b.done;b=V.next())b=b.value,b.properties&&Object.assign(e,zFT(this,b.properties));
Object.assign(e,zFT(this,this.properties));Bq6(t,this);V=_.F(Object.keys(e));for(b=V.next();!b.done;b=V.next())b=b.value,this[b]=e[b]})};
Bq6=function(D,t){if(ux$){D=new D;for(var H=_.F(Object.getOwnPropertyNames(D)),e=H.next();!e.done;e=H.next())e=e.value,t[e]=D[e];for(H=t;H&&H!==Object.prototype;H=Object.getPrototypeOf(H)){e=_.F(Object.getOwnPropertyNames(H));for(var V=e.next();!V.done;V=e.next())V=V.value,D.hasOwnProperty(V)||Object.defineProperty(D,V,Dkk(t,V))}}else D.apply(t)};
Dkk=function(D,t){return{get:function(){var H=D[t];return H instanceof Function?H.bind(D):H},
set:function(H){D[t]=H}}};
zFT=function(D,t){if(!t)return{};for(var H={},e=_.F(Object.keys(t)),V=e.next();!V.done;V=e.next())if(V=V.value,!t[V].readOnly){var b=D[V];b!==void 0&&(H[V]=b)}return H};
y_6=function(D){var t=new D;D=D.prototype.properties||{};for(var H=_.F(Object.keys(D)),e=H.next();!e.done;e=H.next())if(e=e.value,t.hasOwnProperty(e)){var V=D[e];typeof V==="function"&&(D[e]=V={type:V});t[e]!=null&&V.type===Object&&(V.type=txA(t[e].constructor))}};
txA=function(D){for(var t=_.F(HrA),H=t.next();!H.done;H=t.next())if(H=H.value,D===H)return H;return Object};
e0$=function(D){return function(t,H){t.behaviors=t.behaviors||[];t.behaviors.push(D||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",t,H).prototype:void 0));Object.defineProperty(t,H,{get:function(){return this},
enumerable:!0,configurable:!0})}};
VxV=function(D){D=D===void 0?{}:D;return function(t,H){t.properties=t.properties||{};D.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?D.type=txA(Reflect.getMetadata("design:type",t,H)):D.type=String);var e=D,V=t.properties[H];t.properties[H]=V?Object.assign({},V,e):e}};
brR=function(D){return function(t,H){t.listeners=t.listeners||{};t.listeners[D]=H}};
Ff$=function(){var D=_.RE.apply(0,arguments);if(D.length===0)throw Error("Ud");return function(t,H){t.observers=t.observers||[];t.observers.push(H+"("+D.join(",")+")")}};
aED=function(){var D=_.RE.apply(0,arguments);return function(t,H,e){var V=Object.getOwnPropertyDescriptor(t,H).get,b="__compute__"+H;Object.defineProperty(t,b,{value:V,enumerable:!0});t.properties=t.properties||{};V=t.properties[H];V||(V={},t.properties[H]=V);V.computed=b+"("+D.join(",")+")";e.get=void 0}};
_.wZ=function(D,t,H){_.mg.call(this);this.JSC$11318_id_=null;this.usingListeners_=!1;this.JSC$11318_listener_=D;this.handler_=H;this.JSC$11318_win_=t||window;this.callback_=(0,_.Mc)(this.JSC$11320_doAction_,this)};
Zs=function(D){this.range_=D};
sW=function(D){this.range_=D};
EW=function(D,t,H){_.mg.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=D;this.scrollTimer_=new _.hK(50);this.JSC$11397_eventHandler_=new _.GA(this);this.scrollDelta_=new _.lR;this.containerIsActuallyContent_=D.tagName==="BODY"||D.tagName==="HTML";this.containerBounds_=wlR(D);this.containerIsActuallyContent_&&(D=_.U5(),this.containerBounds_.height=D.height,this.containerBounds_.width=D.width);this.margin_=t||0;if(t){if(t=this.containerBounds_.clone(),D=this.margin_){var e=
Math.min(D,t.height*.25);t.top+=e;t.height-=2*e;D=Math.min(D,t.width*.25);t.left+=D;t.width-=2*D}}else t=this.containerBounds_;this.scrollBounds_=t;H||this.JSC$11397_eventHandler_.listen(_.pW(this.containerNode_),"mousemove",this.JSC$11399_onMouseMove);this.JSC$11397_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11399_onTick_)};
_.KG=function(D){this.mechanism=D};
Nl=function(D,t){this.JSC$11495_key_=D;this.JSC$11495_value_=t};
su$=function(D){if(D>=55296&&D<=57343||D>1114111)return"\ufffd";D in ZrD&&(D=ZrD[D]);var t="";D>65535&&(D-=65536,t+=String.fromCharCode(D>>>10&1023|55296),D=56320|D&1023);return t+=String.fromCharCode(D)};
h0k=function(D,t){return D<t?1:-1};
E1A=function(){return function(D){return D.charAt(1)==="#"?D.charAt(2)==="X"||D.charAt(2)==="x"?su$(parseInt(D.substr(3),16)):su$(parseInt(D.substr(2),10)):GTD[D.slice(1,-1)]}};
kTV=function(D){return D.slice(1,D.length-1).trim().replace(KfR,function(t){return N8k[t]||" "})};
kR=function(D){return D===32||D===9};
TA=function(D,t){return t<D.length?D.charCodeAt(t):-1};
T8X=function(D){for(;D;){if(D._lastLineBlank)return!0;var t=D.type;if(t==="list"||t==="item")D=D._lastChild;else break}return!1};
c3=function(D){if(c2V.test(D)){var t=1,H=0,e=0;for(D[H]=="|"&&H++;H<D.length;){switch(D[H]){case "|":e=1;break;case " ":break;case "\t":break;default:e&&(e=0,t++)}H++}return juD.test(D)?-t:t}return 0};
$kV=function(D){return D=="table"||D=="row"||D=="cell"};
irV=function(){return new j7("document",[[1,1],[0,0]])};
r28=function(){};
$R=function(){var D={safe:!1};D=D||{};D.softbreak=D.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=D};
n1k=function(D,t){var H="";if(D)if(D=D.toLowerCase(),D===" "||Or8.test(D))H="space";else if(Uk6.test(D))H="esc";else if(D.length==1){if(!t||o1A.test(D))H=D}else H=PVD.test(D)?D.replace("arrow",""):D=="multiply"?"*":D;return H};
S2V=function(D,t){var H=D.hasModifiers;if(t.key)H=n1k(t.key,H);else if(t.detail&&t.detail.key)H=n1k(t.detail.key,H);else{H=t.keyIdentifier;var e="";H&&(H in CVk?e=CVk[H]:mkX.test(H)?(H=parseInt(H.replace("U+","0x"),16),e=String.fromCharCode(H).toLowerCase()):e=H.toLowerCase());(H=e)||(H=t.keyCode,e="",Number(H)&&(H>=65&&H<=90?e=String.fromCharCode(32+H):H>=112&&H<=123?e="f"+(H-112+1):H>=48&&H<=57?e=String(H-48):H>=96&&H<=105?e=String(H-96):e=MxD[H]),H=e);H=H||""}return H===D.key&&(!D.hasModifiers||
!!t.shiftKey===!!D.shiftKey&&!!t.ctrlKey===!!D.ctrlKey&&!!t.altKey===!!D.altKey&&!!t.metaKey===!!D.metaKey)};
fED=function(D){return D.length===1?{combo:D,key:D,event:"keydown"}:D.split("+").reduce(function(t,H){var e=H.split(":");H=e[0];e=e[1];H in XlD?(t[XlD[H]]=!0,t.hasModifiers=!0):(t.key=H,t.event=e||"keydown");return t},{combo:D.split(":").shift()})};
Lf8=function(D){return D.trim().split(" ").map(function(t){return fED(t)})};
A26=function(D,t){if(D&&D.fn){var H=D.fn;D.fn=function(){try{H.apply(this,arguments)}catch(e){if(e instanceof io)console.warn("Argument '"+e.arg+"'"+(t?" for method '"+t+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw e;}}}return D};
g1V=function(){var D=_.RE.apply(0,arguments);return D.length===0?function(t){return t}:D.length===1?D[0]:D.reduce(function(t,H){return function(){return t(H.apply(null,_.A6(_.RE.apply(0,arguments))))}})};
J2D=function(){var D=_.RE.apply(0,arguments);return function(t){return function(H,e){H=t(H,e);var V=function(){throw Error("Ee");},b={getState:H.getState,
dispatch:function(a){return V.apply(null,[a].concat(_.A6(_.RE.apply(1,arguments))))}};
e=D.map(function(a){return a(b)});
V=g1V.apply(null,_.A6(e))(H.dispatch);return Object.assign({},H,{dispatch:V})}}};
v1D=function(D){Object.keys(D).forEach(function(t){var H=D[t];if(typeof H(void 0,{type:Y2D})==="undefined")throw Error("Fe`"+t);if(typeof H(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+lEV()})==="undefined")throw Error("Ge`"+t+"`"+Y2D);})};
rZ=function(D){for(var t=Object.keys(D),H={},e=0;e<t.length;e++){var V=t[e];typeof D[V]==="function"&&(H[V]=D[V])}var b=Object.keys(H);try{v1D(H)}catch(w){var a=w}return function(w,h){w=w===void 0?{}:w;if(a)throw a;for(var K=!1,N={},k=0;k<b.length;k++){var T=b[k],c=w[T],U=(0,H[T])(c,h);if(typeof U==="undefined")throw w=h&&h.type,Error("He`"+(w?'"'+String(w)+'"':"(unknown type)")+"`"+T);N[T]=U;K=K||U!==c}return(K=K||b.length!==Object.keys(w).length)?N:w}};
plu=function(D,t,H){function e(){if(N)throw Error("Ie");return w}
function V(c){if(typeof c!=="function")throw Error("Je`"+typeof c);if(N)throw Error("Ke");var U=!0;K===h&&(K=h.slice());K.push(c);return function(){if(U){if(N)throw Error("Le");U=!1;K===h&&(K=h.slice());var S=K.indexOf(c);K.splice(S,1);h=null}}}
function b(c){if(typeof c!=="object"||c===null)var U=!1;else{for(U=c;Object.getPrototypeOf(U)!==null;)U=Object.getPrototypeOf(U);U=Object.getPrototypeOf(c)===U}if(!U)throw Error("Me`"+typeof c);if(typeof c.type==="undefined")throw Error("Ne");if(N)throw Error("Oe");try{N=!0,w=a(w,c)}finally{N=!1}U=h=K;for(var S=0;S<U.length;S++)(0,U[S])();return c}
if(typeof t==="function"&&typeof H==="function"||typeof H==="function"&&typeof arguments[3]==="function")throw Error("Pe");typeof t==="function"&&typeof H==="undefined"&&(H=t,t=void 0);if(typeof H!=="undefined"){if(typeof H!=="function")throw Error("Qe`"+typeof H);return H(plu)(D,t)}if(typeof D!=="function")throw Error("Re`"+typeof D);var a=D,w=t,h=[],K=h,N=!1;b({type:Y2D});var k={},T=(k.dispatch=b,k.subscribe=V,k.getState=e,k.replaceReducer=function(c){if(typeof c!=="function")throw Error("Se`"+
typeof c);a=c;b({type:dkK});return T},k[xkK]=function(){var c={};
return c.subscribe=function(U){function S(){U.next&&U.next(e())}
if(typeof U!=="object"||U===null)throw new TypeError("Te`"+typeof U);S();return{unsubscribe:V(S)}},c[xkK]=function(){return this},c},k);
return T};
R0u=function(D){function t(){V&&(V=!1,D());b&&e()}
function H(){requestAnimationFrame(t)}
function e(){var w=Date.now();if(V){if(w-a<2)return;b=!0}else V=!0,b=!1,setTimeout(H,20);a=w}
var V=!1,b=!1,a=0;return e};
OW=function(D){return typeof D==="number"?D:parseFloat(D)||0};
uvR=function(D){return _.RE.apply(1,arguments).reduce(function(t,H){return t+OW(D["border-"+H+"-width"])},0)};
_.n=function(D,t){t=BU(Ql(t));D.innerHTML=t};
QuA=function(D){var t=WfD;t||(t=IER(),t=WfD=_.J$.transpose(t));t=t[D];return typeof t==="string"?t:_.UW(D)};
y2V=function(D){D=String(D).toLowerCase();var t=IER()[D];return typeof t==="string"?t:_.oz(D)};
B8u=function(D){D=D.toLowerCase();D=IER()[D];return typeof D==="string"?D:null};
IER=function(){if(!z0u){for(var D=Object.assign({},Do3),t=_.F(tek),H=t.next();!H.done;H=t.next())H=H.value,D[H.toLowerCase()]=H;z0u=D}return z0u};
VeD=function(D,t){var H=window.customElements;return H&&H.get(D)||Hx6[D]===!0?2:t.name==="HTMLUnknownElement"?1:t.name==="HTMLElement"&&efT.test(D)?3:0};
FWk=function(D,t){switch(t){case "innerHTML":return bxD(D)===1?2:null;case "textContent":return D=bxD(D),D===1||D===6?1:null;default:var H,e;return(e=(H=qrD[D.localName])==null?void 0:H[t])!=null?e:null}};
bxD=function(D){var t=D.localName,H=VeD(t,D.constructor);switch(H){case 0:case 1:return aDV(t,D);case 3:case 2:return 1;default:_.xv(H,"got an unknown element classification")}};
aDV=function(D,t){var H=Object.hasOwnProperty.call(wyX,D)?wyX[D]:null;return H!==null?H:Object.hasOwnProperty.call(ZxA,D)&&t instanceof SVGElement?ZxA[D]:null};
sIR=function(D,t){return t};
GaV=function(D){return(D=D.split(hf$,2))?{url:D[0],metadata:D[1]}:null};
KWV=function(D){var t=String(D.url).replace(EYV,encodeURIComponent);if(D=D.metadata){EYV.lastIndex=0;if(EYV.test(D))return null;t+=" "+D}return t};
cRV=function(D){function t(K){var N=K.localName;if(!K.getAttribute("is")&&VeD(N,K.constructor)===2){var k;return(k=h)!=null?k:h=document.createElement("polyresinuncustomized")}(K=w[N])||(K=w[N]=document.createElement(N));return K}
var H=D.reportHandler||void 0,e=D.safeTypesBridge||NhV,V=/^$/;if(D=D.allowedIdentifierPrefixes){D=_.F(D);for(var b=D.next();!b.done;b=D.next())V=new RegExp(V.source+"|^"+_.kaT(b.value))}H&&H(!1,"initResin",null);var a=ThT(V,e,H),w={},h=null;return function(K,N,k){var T=K.nodeType;if(T!==Node.ELEMENT_NODE){if(T===Node.TEXT_NODE){N=K.parentElement;k=!N;if(N&&N.nodeType===Node.ELEMENT_NODE){T=N.localName;var c=VeD(T,N.constructor);switch(c){case 0:case 1:N=aDV(T,N);k=N===1||N===6;break;case 3:case 2:k=
!0;break;default:_.xv(c,"got an unknown element classification")}}if(k)return function(J){return""+e(J,"STRING",J)}}return function(J){if(!J&&J!==document.all)return J;
H&&H(!0,"Failed to sanitize "+(K.parentElement&&K.parentElement.nodeName)+" #text node to value "+J,K.parentElement);return P3}}var U=K.localName;
T=t(K);var S=null;switch(k){case "attribute":if(y2V(N)in T)break;return function(J){return J};
case "property":if(N in T){S=FWk(T,N);break}if((c=B8u(N))&&c in T)break;return function(J){return J};
default:_.xv(k,"got an unknown resin type, expected either 'property' or 'attribute'")}var L=k==="attribute"?N.toLowerCase():QuA(N);S||(S=inD(U,L,function(J){var g=K.getAttribute(J);return!g||/[\[\{]/.test(J)?null:g}));
return function(J){var g=nG,Q=null;if(!J&&J!==document.all)return J;if(S!=null){var u=a[S],R=u.safeType;Q=u.safeReplacement;R&&(g=e(J,R,nG));g===nG&&(u.filterString?(g=String(e(J,"STRING",J)),g=u.filterString(U,L,g)):u.filterRaw&&(g=u.filterRaw(U,L,J,K)),g===Q&&(g=nG))}g===nG&&(g=Q||P3,H&&H(!0,"Failed to sanitize attribute of <"+U+">: <"+U+" "+L+'="'+J+'">',K));return g}}};
ThT=function(D,t,H){return[,{filterRaw:function(e,V,b){return b},
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:jIA,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:jIA,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:P3,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:$oK,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(e,V,b){b=
String(b).toLowerCase();return U1u(e,V,b)?b:P3},
safeReplacement:P3,safeType:void 0},,{filterRaw:void 0,filterString:function(e,V,b){return D.test(b)?b:P3},
safeReplacement:P3,safeType:"CONSTANT"},{filterRaw:function(e,V,b,a){if(typeof b==="string")var w=(w=b.match(ix6))?w.map(GaV).filter(Boolean):[];else if(Array.isArray(b))w=b;else return jIA;var h=w;w=[];var K=[],N={};if(Array.isArray(h))for(var k=0,T=h.length;k<T;++k){var c=h[k],U=c&&c.url;if(U){var S=t(U,"URL",N);if(S){var L=S!==N;(L?w:K).push({url:L?S:U,metadata:c.metadata})}}}else K.push(h);h=K.length?JSON.stringify(K):null;K=nG;if(w.length){if(!Array.isArray(w))throw Error();K=w.map(KWV).filter(Boolean).join(" , ")||
nG}h&&H&&H(!0,"Failed to sanitize attribute value of <"+e+">: <"+e+" "+V+'="'+b+'">: '+h,a);return K===nG?jIA:K},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
rRT=function(D){var t=cRV(D);return function(H,e,V,b){return b||b===document.all?t(H,e,V)(b):b}};
CG=function(D,t){function H(){function V(w,h,K){for(h=Reflect.getMetadata("parameters",w)||[];h.length<=K;)h.push(null);h[K]=h[K]||[];h[K].push(a);Reflect.defineMetadata(h,w);return w}
var b=_.RE.apply(0,arguments);if(this instanceof H)return e.apply(this,b),this;var a=new (Function.prototype.bind.apply(H,[null].concat(_.A6(b))));V.annotation=a;return V}
var e=OxV(t);H.prototype.toString=function(){return"@"+D};
return H.annotationCls=H};
OxV=function(D){return function(){var t=_.RE.apply(0,arguments),H=this;D.forEach(function(e,V){V=t[V];if(Array.isArray(e))H[e[0]]=V&&V!==void 0?V:e[1];else for(var b in e)H[b]=V&&V[b]!==void 0?V[b]:e[b]})}};
Uou=function(D){return D!==void 0&&D!==null};
mH=function(D){if(typeof D==="string")return D;if(D===void 0||D===null)return""+D;if(D.overriddenName)return D.overriddenName;if(D.name)return D.name;D=D.toString();var t=D.indexOf("\n");return t===-1?D:D.substring(0,t)};
oYR=function(D){D.__forward_ref__=oYR;D.toString=function(){return mH(this())};
return D};
Ml=function(D){return typeof D==="function"&&D.hasOwnProperty("__forward_ref__")&&D.__forward_ref__===oYR?D():D};
Pu$=function(D){return D?D.map(function(t){return new (Function.prototype.bind.apply(t.type.annotationCls,[null].concat(_.A6(t.args?t.args:[]))))}):[]};
nY$=function(D){for(var t=[],H=0;H<D.length;++H){if(t.indexOf(D[H])>-1){t.push(D[H]);break}t.push(D[H])}return t};
CuD=function(D){return D.length>1?" ("+nY$(D.slice().reverse()).map(function(t){return mH(t.token)}).join(" -> ")+")":""};
MeV=function(D,t,H,e){if(e){var V=Error("$e``"+(e instanceof Error?e.message:e));V.ngOriginalError=e}else V=Error();V.addKey=mo$;V.keys=[t];V.injectors=[D];V.constructResolvingMessage=H;V.message=V.constructResolvingMessage();V.ngOriginalError=e;return V};
mo$=function(D,t){this.injectors.push(D);this.keys.push(t);this.message=this.constructResolvingMessage()};
SrD=function(D,t){return MeV(D,t,function(){return"No provider for "+mH(this.keys[0].token)+"!"+CuD(this.keys)})};
XyV=function(D,t){return MeV(D,t,function(){return"Cannot instantiate cyclic dependency!"+CuD(this.keys)})};
fDD=function(D,t,H){return MeV(D,H,function(){var e=mH(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+e+"!"+CuD(this.keys)+"."},t)};
LW3=function(D,t){for(var H=[],e=0,V=t.length;e<V;e++){var b=t[e];b&&b.length!=0?H.push(b.map(mH).join(" ")):H.push("?")}return Error("df`"+mH(D)+"`"+H.join(", ")+"`"+mH(D))};
pyK=function(D){var t=void 0,H=void 0;if(D&&D.useClass!==void 0){t=D.useClass;var e=Ml(D.useClass);var V=ARR.factory(e);e=gYk(e)}else D&&D.useExisting!==void 0?(V=function(b){return b},e=[JRV(S7.get(Ml(D.useExisting)))]):D&&D.useFactory!==void 0?(V=D.useFactory,e=Yr6(D.useFactory,D.deps)):(H=D.useValue,V=function(){return D.useValue},e=lD8);
return new vYA(V,e,t,H)};
xoD=function(D){return new doV(S7.get(Ml(D.provide)),[pyK(D)],D.multi)};
uL3=function(D){D=Rf$(D,[]).map(xoD);for(var t=new Map,H=0;H<D.length;H++){var e=D[H],V=t.get(e.key.id);if(V){if(e.multiProvider!==V.multiProvider)throw Error("ff`"+V+"`"+e);if(e.multiProvider)for(var b=0;b<e.resolvedFactories.length;b++)V.resolvedFactories.push(e.resolvedFactories[b]);else t.set(e.key.id,e)}else V=void 0,e.multiProvider?V=new doV(e.key,e.resolvedFactories.slice(),e.multiProvider):V=e,t.set(e.key.id,V)}return Array.from(t.values())};
Rf$=function(D,t){D.forEach(function(H){if(H instanceof WW6)t.push({provide:H,useClass:H});else if(H&&typeof H=="object"&&H.provide!==void 0)t.push(H);else if(H instanceof Array)Rf$(H,t);else throw Error("cf`"+H);});
return t};
Yr6=function(D,t){if(t){var H=t.map(function(e){return[e]});
return t.map(function(e){return IDX(D,e,H)})}return gYk(D)};
gYk=function(D){var t=ARR.parameters(D);if(!t)return[];if(t.some(function(H){return H==null}))throw LW3(D,t);
return t.map(function(H){return IDX(D,H,t)})};
IDX=function(D,t,H){var e=null,V=!1;if(!Array.isArray(t))return t instanceof QID?yRV(t.token,V,null):yRV(t,V,null);for(var b=null,a=0;a<t.length;++a){var w=t[a];if(w instanceof WW6)e=w;else if(w instanceof QID)e=w.token;else if(w instanceof BhX)V=!0;else if(w instanceof zfT||w instanceof DM6)b=w}e=Ml(e);if(e!=null)return yRV(e,V,b);throw LW3(D,H);};
yRV=function(D,t,H){return new tgX(S7.get(Ml(D)),t,H)};
HvV=function(D,t){for(var H=Array(D.providers.length),e=0;e<D.providers.length;++e){var V=e;if(e<0||e>=D.providers.length)throw Error("ef`"+e);H[V]=t(D.providers[e])}return H};
ewK=function(D){return typeof D==="function"&&ARR.parameters(D).every(function(t){return!!t})};
qyA=function(D){var t=Vgu;bvA.get(D)||bvA.set(D,new t);return bvA.get(D)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(D)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(D)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D,t){var H,e;if(D.contains(t))return!0;D=_.Xu(D).querySelectorAll("content,slot");for(H=0;H<D.length;++H){var V=_.Xu(D[H]).getDistributedNodes();for(e=0;e<V.length;++e)if(V[e].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(V[e],t))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){D.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(D)&&D.preventDefault();D.targetTouches&&(D=D.targetTouches[0],FLV=D.pageX,ah3=D.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 D=0,t=fG.length;D<t;D++)document.addEventListener(fG[D],_._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 D=0,t=fG.length;D<t;D++)document.removeEventListener(fG[D],_._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(D){var t=_.Xu(D).rootTarget;D.type!=="touchmove"&&wN3!==t&&(wN3=t,ZvX=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.Xu(D).path));if(!ZvX.length)return!0;if(D.type==="touchstart")return!1;D=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(D);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(ZvX,D.deltaX,D.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){for(var t=[],H=D.indexOf(sJX),e=0;e<=H;e++)if(D[e].nodeType===Node.ELEMENT_NODE){var V=D[e],b=V.style;b.overflow!=="scroll"&&b.overflow!=="auto"&&(b=window.getComputedStyle(V));b.overflow!=="scroll"&&b.overflow!=="auto"||t.push(V)}return t};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D,t,H){if(t||H)for(var e=Math.abs(H)>=Math.abs(t),V=0;V<D.length;V++){var b=D[V];if(e?H<0?b.scrollTop>0:b.scrollTop<b.scrollHeight-b.clientHeight:t<0?b.scrollLeft>0:b.scrollLeft<b.scrollWidth-b.clientWidth)return b}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(D){var t={deltaX:D.deltaX,deltaY:D.deltaY};"deltaX"in D||("wheelDeltaX"in D&&"wheelDeltaY"in D?(t.deltaX=-D.wheelDeltaX,t.deltaY=-D.wheelDeltaY):"wheelDelta"in D?(t.deltaX=0,t.deltaY=-D.wheelDelta):"axis"in D?(t.deltaX=D.axis===1?D.detail:0,t.deltaY=D.axis===2?D.detail:0):D.targetTouches&&(D=D.targetTouches[0],t.deltaX=FLV-D.pageX,t.deltaY=ah3-D.pageY));return t};
hwD=function(D){this.element=D;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
EID=function(D){this.element=D;this.color=window.getComputedStyle(D).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");_.Xu(this.waveContainer).appendChild(this.wave);GBV(this)};
LG=function(D,t){for(var H in D)if(H.toLowerCase()===t.toLowerCase())return D[H]};
KLk=function(D,t){for(var H in D)if(H.toLowerCase()===t.toLowerCase()){delete D[H];break}};
kBX=function(D){D=_.J$.clone(D);for(var t=0;t<NK8.length;++t){var H=NK8[t],e=LG(D,H);e&&(D["X-Goog-Upload-Header-"+H]=e,KLk(D,H))}return D};
TKD=function(D){D=_.J$.clone(D);KLk(D,"X-Goog-Upload-Status")};
jJk=function(D){return cCD.some(function(t){return t.test(D)})};
OvA=function(D,t){var H;var e=(H=D.formContent)==null?void 0:H.locale;H=e==null?void 0:e.split("-")[0];e=e&&$MV.includes(e)?e:H&&$MV.includes(H)?H:void 0;e=(e!=null?e:"en").replaceAll("-","_").toLowerCase();var V;D=((V=D.initializationData)==null?0:V.useNightlyRelease)?"nightly":"live";var b;return(t==null?0:(b=t.getEnableAlohaBinarySplit)==null?0:b.call(t))?_.E5(ivV,D):_.E5(rCD,D,e)};
P58=function(D,t,H,e){if(UMD&&oI8===t)return UMD;oI8=t;var V=OvA(D,e);return UMD=t.feedbackV2GlobalObject?Promise.resolve(t.feedbackV2GlobalObject):new Promise(function(b,a){var w=_.OH("SCRIPT");_.qd(w,V);w.onload=function(){t.feedbackV2GlobalObject?b(t.feedbackV2GlobalObject):a(Error("jf"))};
w.onerror=function(){a(Error("kf`"+V.toString()))};
H.body.appendChild(w)})};
mMT=function(D,t,H,e){if(nIV&&C56===t)return nIV;C56=t;var V=OvA(D,e);return nIV=t.feedbackV2GlobalObject?Promise.resolve(t.feedbackV2GlobalObject):new Promise(function(b,a){var w=_.OH("SCRIPT");_.qd(w,V);w.onload=function(){t.feedbackV2GlobalObject?b(t.feedbackV2GlobalObject):a(Error("jf"))};
w.onerror=function(){a(Error("kf`"+V.toString()))};
H.body.appendChild(w)})};
MgR=function(D,t,H,e,V){V=V===void 0?!0:V;var b,a,w,h,K;return _.Z(function(N){switch(N.nextAddress){case 1:return b=Date.now(),N.yield(P58(D,H,e,t),2);case 2:a=N.yieldResult;if(!(V||((h=D.initializationData)==null?0:h.useNightlyRelease)||((K=D.initializationData)==null?0:K.isLocalServer))){w=a.initializeFeedbackClient(D,b,t);N.jumpTo(3);break}return N.yield(a.initializeFeedbackClientAsync(D,b,t),4);case 4:w=N.yieldResult;case 3:return w.initiateAloha(),N.return(w)}})};
Sy6=function(D,t,H,e){var V,b,a;return _.Z(function(w){if(w.nextAddress==1)return V=Date.now(),w.yield(mMT(D,H,e.document,t),2);if(w.nextAddress!=3)return b=w.yieldResult,w.yield(b.initializeFeedbackClientAsync(D,V,t,e),3);a=w.yieldResult;a.initiateAloha();return w.return(a)})};
XNT=function(D,t,H){var e=!0;e=e===void 0?!0:e;var V,b,a,w,h,K,N,k,T,c;return _.Z(function(U){V=H||_.VA;if((b=t)==null?0:(w=(a=b).getEnableAlohaBinarySplit)==null?0:w.call(a)){h=V;if(h.isFormOpened)throw K=Error("lf"),K.name="DuplicateFormError",K;h.isFormOpened=!0;D.callbacks=D.callbacks||{};N=D.callbacks.onClose||function(){};
D.callbacks.onClose=function(S){h.isFormOpened=!1;N(S)};
try{return U.return(Sy6(D,t,h,V))}catch(S){throw h.isFormOpened=!1,S;}}else{k=V;if(k.isFormOpened)throw T=Error("lf"),T.name="DuplicateFormError",T;k.isFormOpened=!0;D.callbacks=D.callbacks||{};c=D.callbacks.onClose||function(){};
D.callbacks.onClose=function(S){k.isFormOpened=!1;c(S)};
try{return U.return(MgR(D,t,k,V.document,e))}catch(S){throw k.isFormOpened=!1,S;}}_.n2(U)})};
JCX=function(D,t){return _.Z(function(H){return H.return(new Promise(function(e,V){Number.isInteger(Number(D))&&Number(D)>0?(V=fhk(t!=null?t:"")+"/aloha_form_properties?productId="+D,LL3(V,function(b){b=b.target;var a=null;try{var w=JSON,h=w.stringify;if(b.JSC$9800_xhr_){var K=b.JSC$9800_xhr_.responseText;K.indexOf(")]}'\n")==0&&(K=K.substring(5));var N=(0,_.AK)(K)}else N=void 0;a=u7K(ACV,h.call(w,N))}catch(k){h=new ACV,N=gI3(),N=_.gZ(N,13,!1),N=_.gZ(N,14,!0),N=_.gZ(N,15,!0),N=_.gZ(N,20,!1),a=_.oE(h,
1,N)}e(a)},"GET","",{},2E3,!0)):V(Error("mf`"+D))}))})};
fhk=function(D){return jJk(D)?D:"https://www.google.com/tools/feedback"};
pNK=function(D){D=D.match(new RegExp(Yyu,"gi"))||[];D=_.F(D);for(var t=D.next();!t.done;t=D.next()){t=t.value;a:{var H=_.F(lh6);for(var e=H.next();!e.done;e=H.next())if(e.value.test(t)){H=!1;break a}H=!0}if(!H)a:{H=_.F(vIV);for(e=H.next();!e.done;e=H.next())if(e.value.test(t)){H=!0;break a}H=!1}if(H)return!0}return!1};
dMK=function(D,t){var H={},e=Object.keys(D);e=_.F(e);for(var V=e.next();!V.done;V=e.next())V=V.value,H[V]=t(V,D[V]);return H};
xMV=function(D){switch(D){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"}};
ubT=function(D){if(window.crypto&&window.crypto.getRandomValues)try{var t=Array(D),H=new Uint8Array(D);window.crypto.getRandomValues(H);for(var e=0;e<t.length;e++)t[e]=H[e];return t}catch(b){}t=Array(D);for(H=0;H<D;H++){e=Date.now();for(var V=0;V<e%23;V++)t[H]=Math.random();t[H]=Math.floor(Math.random()*256)}if(Rwu)for(H=1,e=0;e<Rwu.length;e++)t[H%D]^=t[(H-1)%D]/4^Rwu.charCodeAt(e),H++;return t};
JK=function(D){D=ubT(D);for(var t=[],H=0;H<D.length;H++)t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(D[H]&63));return t.join("")};
WL6=function(){var D=_.VA.ytLoggingDocDocumentNonce_;D||(D=JK(16),_.bg("ytLoggingDocDocumentNonce_",D));return D};
QJD=function(D){D&&_.L7("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:IhD,clientScreenNonce:D})};
yCX=function(D){return _.YC("client-screen-nonce-store",{})[D===void 0?0:D]};
BK$=function(D,t){t=t===void 0?0:t;var H=_.YC("client-screen-nonce-store");H||(H={},_.JZ("client-screen-nonce-store",H));H[t]=D};
zwR=function(D){D=D===void 0?0:D;return D===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+D};
DLV=function(D){return _.YC(zwR(D===void 0?0:D))};
_.lo=function(D){return(D=DLV(D===void 0?0:D))?new YR({veType:D,youtubeData:void 0,jspbYoutubeData:void 0}):null};
tYT=function(){var D=_.YC("csn-to-ctt-auth-info");D||(D={},_.JZ("csn-to-ctt-auth-info",D));return D};
HUT=function(){return Object.values(_.YC("client-screen-nonce-store",{})).filter(function(D){return D!==void 0})};
_.v3=function(D){D=yCX(D===void 0?0:D);if(!D&&!_.lh("USE_CSN_FALLBACK",!0))return null;D||(D="UNDEFINED_CSN");return D?D:null};
VY8=function(D){for(var t=_.F(Object.values(ejD)),H=t.next();!H.done;H=t.next())if(_.v3(H.value)===D)return!0;return!1};
bUV=function(D,t,H){var e=tYT();(H=_.v3(H))&&delete e[H];t&&(e[D]=t)};
pG=function(D){return tYT()[D]};
_.dZ=function(D,t,H,e){H=H===void 0?0:H;if(D!==yCX(H)||t!==_.YC(zwR(H)))if(bUV(D,e,H),BK$(D,H),_.JZ(zwR(H),t),t=function(){setTimeout(function(){QJD(D)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(t)}catch(V){t()}else t()};
qi8=function(D,t){t=t===void 0?"":t;var H=[],e;for(e in D)if(D.hasOwnProperty(e)){var V=t!==""?t+"."+e:e;typeof D[e]==="object"?H.push.apply(H,_.A6(qi8(D[e],V))):H.push([V,D[e]])}H.sort();return H};
_.Rz=function(D){var t=_.RE.apply(1,arguments);if(!xR(D)||t.some(function(e){return!xR(e)}))throw Error("nf");
t=_.F(t);for(var H=t.next();!H.done;H=t.next())FK$(D,H.value)};
FK$=function(D,t){for(var H in t)if(xR(t[H])){if(H in D&&!xR(D[H]))throw Error("of");H in D||(D[H]={});FK$(D[H],t[H])}else if(aX$(t[H])){if(H in D&&!aX$(D[H]))throw Error("pf");H in D||(D[H]=[]);wbD(D[H],t[H])}else D[H]=t[H];return D};
wbD=function(D,t){t=_.F(t);for(var H=t.next();!H.done;H=t.next())H=H.value,xR(H)?D.push(FK$({},H)):aX$(H)?D.push(wbD([],H)):D.push(H);return D};
xR=function(D){return typeof D==="object"&&!Array.isArray(D)};
aX$=function(D){return typeof D==="object"&&Array.isArray(D)};
scA=function(D){for(var t=_.F(Object.entries(ZU6)),H=t.next();!H.done;H=t.next())if(H=_.F(H.value),H.next(),H=H.next().value,H==="SLI_STATUS_"+D)return H;return"SLI_STATUS_UNKNOWN"};
_.uo=function(D,t,H,e){return hjK(D,t,function(){return new _.Gdk(D,t,H,e)})};
_.EZA=function(){return _.uo("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
KKK=function(){return _.uo("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
W3=function(){return _.uo("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
NIA=function(){return _.uo("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
kdV=function(){return _.uo("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
TIX=function(){return _.uo("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
$L$=function(D){D&&(D.dataset?D.dataset[cq8()]="true":_.ax([_.Zi(jcT)],D,"data-loaded","true".toString()))};
iUK=function(D){return D?D.dataset?D.dataset[cq8()]:D.getAttribute("data-loaded"):null};
cq8=function(){return rqk.loaded||(rqk.loaded="loaded".replace(/\-([a-z])/g,function(D,t){return t.toUpperCase()}))};
_.Iz=function(D,t,H){OUX(D,t,H===void 0?null:H)};
_.oZX=function(D,t){D&&t&&(D=""+_.I$(t),(D=UL3[D])&&_.k36(D))};
OUX=function(D,t,H){H=H===void 0?null:H;var e=_.PAR(typeof D==="string"?D:D.toString()),V=document.getElementById(e),b=V&&iUK(V),a=V&&!b;b?t&&t():(t&&(b=_.G0(e,t),t=""+_.I$(t),UL3[t]=b),a||(V=nZX(D,e,function(){iUK(V)||($L$(V),_.Tm6(e),_.KZ(function(){_.jHT(e)},0))},H)))};
nZX=function(D,t,H,e){e=e===void 0?null:e;var V=_.OH("SCRIPT");V.id=t;V.onload=function(){H&&setTimeout(H,0)};
V.onreadystatechange=function(){switch(V.readyState){case "loaded":case "complete":V.onload()}};
e&&V.setAttribute("nonce",e);_.qd(V,typeof D==="string"?_.Xs(D):D);D=document.getElementsByTagName("head")[0]||document.body;D.insertBefore(V,D.firstChild);return V};
_.PAR=function(D){var t=document.createElement("a");WU(t,D);return"js-"+Qi(t.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
CAV=function(D){var t=_.YC("INNERTUBE_HOST_OVERRIDE");t&&(D=String(t)+String(_.yi(D)));return D};
mL3=function(D){var t={};_.r("json_condensed_response")&&(t.prettyPrint="false");return D=YTV(D,t)};
_.B3=function(D){return ec(D)?"same-origin":"include"};
_.zA=function(D){return ec(D)?"same-origin":"cors"};
Dk=function(D,t,H){H=H===void 0?{}:H;D={method:t===void 0?"POST":t,mode:_.zA(D),credentials:_.B3(D)};t={};for(var e=_.F(Object.keys(H)),V=e.next();!V.done;V=e.next())V=V.value,H[V]&&(t[V]=H[V]);Object.keys(t).length>0&&(D.headers=t);return D};
_.tE=function(D,t){t=t===void 0?{}:t;return"service:"+D+"/"+Object.keys(t).sort().map(function(H){return H+":"+t[H]}).join("/")};
MYR=function(D){var t,H,e,V;D=(t=_.O(D,_.Hh))==null?void 0:(H=t.watchEndpointSupportedOnesieConfig)==null?void 0:(e=H.html5PlaybackOnesieConfig)==null?void 0:(V=e.commonConfig)==null?void 0:V.url;if(!D)return[];t=new _.eP(D);return t.JSC$10036_domain_?["https://"+t.JSC$10036_domain_+"/generate_204"]:[]};
_.fX3=function(){return SiX()||RGV()||XbX&&vY("version/")?!0:_.YC("EOM_VISITOR_DATA")?!1:!0};
LKV=function(D){var t=D.docid||D.video_id||D.videoId||D.id;if(t)return t;t=D.raw_player_response;t||(D=D.player_response)&&(t=JSON.parse(D));return t&&t.videoDetails&&t.videoDetails.videoId||null};
AqV=function(D){return D.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
V$=function(D){return!isNaN(Number(D))&&!_.sD(D)};
_.qJ=function(D,t,H,e){e=e===void 0?!0:e;var V=_.YC("VALID_SESSION_TEMPDATA_DOMAINS",[]),b=_.tW(window.location.href);b&&V.push(b);b=_.tW(D);if(_.l8(V,b)||!b&&_.qu(D,"/"))if(V=document.createElement("a"),WU(V,D),D=V.href)if(D=_.yi(D),D=_.b1(D))e&&!t.csn&&(t.itct||t.ved)&&(t=Object.assign({csn:_.v3()},t)),H?(H=parseInt(H,10),isFinite(H)&&H>0&&gZ6(D,t,H)):gZ6(D,t)};
YiA=function(D){var t=_.YC("VALID_SESSION_TEMPDATA_DOMAINS",[]),H=_.tW(window.location.href);H&&t.push(H);H=_.tW(D);if(!(_.l8(t,H)||!H&&_.qu(D,"/")))return null;D=_.yi(D);(D=_.b1(D))?(D=Jqk(D),D=(D=_.ri.get(D,void 0)||null)?_.Qc(D):{}):D=null;return D};
gZ6=function(D,t,H){D=Jqk(D);t=t?_.jc(t):"";H=H||5;_.fX3()&&_.Oa(D,t,H)};
Jqk=function(D){for(var t=_.F(lX6),H=t.next();!H.done;H=t.next())D=_.Fy(D,H.value);return"ST-"+Qi(D).toString(36)};
_.vZR=function(D){if(D.requestFullscreen)D=D.requestFullscreen(void 0);else if(D.webkitRequestFullscreen)D=D.webkitRequestFullscreen();else if(D.mozRequestFullScreen)D=D.mozRequestFullScreen();else if(D.msRequestFullscreen)D=D.msRequestFullscreen();else if(D.webkitEnterFullscreen)D=D.webkitEnterFullscreen();else return Promise.reject(Error("yf"));return D instanceof Promise?D:Promise.resolve()};
_.wE=function(D){var t;_.VQk(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.a4()==D&&(t=document):t=D;if(t&&(D=_.VQk(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],t))){D.call(t)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.a4=function(){var D=D===void 0?!1:D;var t=_.VQk(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(D)for(;t&&t.shadowRoot;)t=t.shadowRoot.fullscreenElement;return t?t:null};
_.Zk=function(D,t){t=t===void 0?!0:t;D.addEventListener("wheel",pbR);D.overscrollConfig={cooldown:t}};
_.sT=function(D){D.overscrollConfig=void 0;D.removeEventListener("wheel",pbR)};
pbR=function(D){var t=D.deltaY,H=D.target,e=null;if(window.Polymer&&window.Polymer.Element){if(H=D.path||D.composedPath&&D.composedPath()){H=_.F(H);for(var V=H.next();!V.done&&(V=V.value,!dLT(V,t));V=H.next())if(V.overscrollConfig){e=V;break}}}else for(;H&&!dLT(H,t);){if(H.overscrollConfig){e=H;break}H=H.parentElement}e&&(t=e.overscrollConfig,t.cooldown?(e=D.deltaY,H=t.lastDeltaY||0,t.lastDeltaY=e,V=t.lastStopped||0,H&&V&&H>0==e>0?Math.abs(H)>=Math.abs(e)?(e=V+1200,H=!1):(e=V+600,H=!0):(e=Date.now()+
600,H=!0),e>Date.now()&&(D.preventDefault(),H&&(t.lastStopped=Date.now()))):D.preventDefault())};
dLT=function(D,t){return t<0&&D.scrollTop>0||t>0&&D.scrollTop<D.scrollHeight-D.clientHeight-1?(D=getComputedStyle(D).overflowY,D=="auto"||D=="scroll"):!1};
_.Gf=function(D,t,H,e){e||(e={bubbles:!0,cancelable:!1,composed:!0});H!==null&&H!==void 0&&(e.detail=H);var V=new CustomEvent(t,e);_.r("untrack_fire_custom_event_killswitch")?D.dispatchEvent(V):_.EP(function(){return void D.dispatchEvent(V)});
return V};
xLK=function(D){var t=window,H=function(e){t.removeEventListener("yt-navigate-start",H);return D.call(t,e)};
t.addEventListener("yt-navigate-start",H,void 0)};
_.ET=function(D,t,H,e){t=new RjV(t,!(e===void 0||!e),H);_.Gf(D,"yt-action",t);return t.returnValue};
_.Kl=function(D,t,H){return _.ET(D,t,H,!0)};
_.k0=function(D,t,H,e){t&&t.length&&t.forEach(function(V){var b=HPV(V);b&&(_.r("handle_service_request_actions")&&V.commandMetadata&&V.commandMetadata.webCommandMetadata&&V.commandMetadata.webCommandMetadata.sendPost?_.NJ(H?H:D,[V]):_.Kl(D,b,[V,H,e]))})};
_.NJ=function(D,t){var H=[D];t&&H.push.apply(H,t);t=_.ET(D,"yt-service-request",H);return t.length>0&&(t=t[0],_.Gf(D,"yt-service-request-sent",t),t&&t.ajaxPromise)?(t.ajaxPromise.then(function(e){_.Gf(D,"yt-service-request-completed",e)},function(e){_.Gf(D,"yt-service-request-error",{error:e,
params:H})},D),t.ajaxPromise):_.Tf()};
_.jP=function(D,t){if(_.r("handle_service_request_actions"))_.k0(t,D,t);else{D=_.F(D);for(var H=D.next();!H.done;H=D.next()){H=H.value;var e=void 0;((e=_.O(H,_.ch))==null?0:e.commands)?_.jP(_.O(H,_.ch).commands,t):(e=void 0,((e=_.O(H,_.$0))==null?0:e.actions)?_.jP(_.O(H,_.$0).actions,t):(e=void 0,((e=_.O(H.commandMetadata,_.i1))==null?0:e.sendPost)?_.NJ(t,[H]):_.k0(t,[H],t)))}}};
_.WKD=function(D,t,H){t=t===void 0?{}:t;typeof t==="function"&&(t={callback:t});H||t._c&&t._c.jsl&&t._c.jsl.h||_.J$.extend(t,{_c:{jsl:{h:_.YC("GAPI_HINT_PARAMS")}}});(t.gapiHintOverride||_.YC("GAPI_HINT_OVERRIDE"))&&(H=_.yc(document.location.href).gapi_jsh)&&_.J$.extend(t,{_c:{jsl:{h:H}}});ul$(D,t)};
_.OT=function(D,t,H){t=t===void 0?{}:t;D=(D=D in rE?rE[D]:H)||"";H={};for(var e in t){H={key$jscomp$836:H.key$jscomp$836};H.key$jscomp$836=e;var V=function(b){return function(){return String(t[b.key$jscomp$836])}}(H);
D=D.replace(new RegExp("\\$\\{"+H.key$jscomp$836+"\\}","gi"),V);D=D.replace(new RegExp("\\$"+H.key$jscomp$836,"gi"),V)}return D};
_.UT=function(D,t){return IXV(D in rE?rE[D]:{},t)};
IXV=function(D,t){var H=_.YC("I18N_PLURAL_RULES");H||(H=function(e){return e==1?"one":"other"});
return(D=D["case"+t]||D[H(t)])?D.replace("#",t.toString()):t+""};
BIA=function(D){var t=QcV(D),H=document.getElementById(t),e=H&&iUK(H);e||H&&!e||(H=yqV(D,t,function(){if(!iUK(H)){$L$(H);_.Tm6(t);var V=_.o4(_.jHT,t);_.KZ(V,0)}}))};
yqV=function(D,t,H){var e=document.createElement("link");e.id=t;e.onload=function(){H&&setTimeout(H,0)};
D=_.Xs(D);_.wN(e,D,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(e);return e};
QcV=function(D){var t=_.OH("A");WU(t,AA(D));return"css-"+Qi(t.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.D4T=function(D){var t=zjV();D!==t&&(t=_.Ph(),!_.r("web_autonav_allow_off_by_default")&&D||_.nl(0,141,!0),_.nl(0,140,!D),t.save())};
zjV=function(){var D=_.Ph();return _.r("web_autonav_allow_off_by_default")&&!D.getFlag(141)&&_.YC("AUTONAV_OFF_BY_DEFAULT")?!1:!D.getFlag(140)};
tn6=function(D,t){var H,e;D=((H=D.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(e=H.videoAuthorizationToken)==null?void 0:e.credentialTransferTokens)||[];for(H=0;H<D.length;++H)if(D[H].scope===t)return D[H].token||void 0};
HLD=function(D){for(var t=0,H=0;H<D.length;H++)t=t*31+D.charCodeAt(H),H<D.length-1&&(t%=0x800000000000);return t%1E5};
_.Cl=function(D){return _.RD("ytcsi."+(D||"")+"data_")||eTX(D)};
_.Vnu=function(D){D=_.Cl(D);D.metadata||(D.metadata={});return D.metadata};
_.bLD=function(D){D=_.Cl(D);D.tick||(D.tick={});return D.tick};
_.m$=function(D){D=_.Cl(D);if(D.gel){var t=D.gel;t.gelInfos||(t.gelInfos={});t.gelTicks||(t.gelTicks={})}else D.gel={gelTicks:{},gelInfos:{}};return D.gel};
_.qAK=function(D){D=_.m$(D);D.gelInfos||(D.gelInfos={});return D.gelInfos};
FjA=function(D){var t=_.Cl(D).nonce;t||(t=JK(16),_.Cl(D).nonce=t);return t};
eTX=function(D){var t={tick:{},info:{}};_.bg("ytcsi."+(D||"")+"data_",t);return t};
auV=function(){var D=_.RD("ytcsi.debug");D||(D=[],_.bg("ytcsi.debug",D),_.bg("ytcsi.reference",{}));return D};
_.MJ=function(D){D=D||"";var t=wOk();if(t[D])return t[D];var H=auV(),e={timerName:D,info:{},tick:{},span:{},jspbInfo:[]};H.push(e);return t[D]=e};
ZL6=function(D){D=D||"";var t=wOk();t[D]&&delete t[D];var H=auV(),e={timerName:D,info:{},tick:{},span:{},jspbInfo:[]};H.push(e);t[D]=e};
wOk=function(){var D=_.RD("ytcsi.reference");if(D)return D;auV();return _.RD("ytcsi.reference")};
_.hTD=function(D){return s06[D]||"LATENCY_ACTION_UNKNOWN"};
NJT=function(D,t,H){H=H===void 0?{}:H;var e=!1;_.lh("ytLoggingEventsDefaultDisabled",!1)&&(e=!0);e=e?null:f7;H=H===void 0?{}:H;var V=Math.round(H.timestamp||(0,_.aP)());_.P$(t,1,V<Number.MAX_SAFE_INTEGER?V:0);V=new GOV;if(H.lact)_.P$(V,1,isFinite(H.lact)?H.lact:-1);else if(H.timestamp)_.P$(V,1,-1);else{var b=_.aR();_.P$(V,1,isFinite(b)?b:-1)}if(H.sequenceGroup&&!_.r("web_gel_sequence_info_killswitch")){b=H.sequenceGroup;var a=COA(b),w=new EkK;_.P$(w,2,a);_.M3(w,1,b);_.oE(V,3,w);H.endOfSequence&&delete Kju[H.sequenceGroup]}_.oE(t,
33,V);(H.sendIsolatedPayload?ABV:gXV)(D,{endpoint:"log_event",payload:t,cttAuthInfo:H.cttAuthInfo,dangerousLogToVisitorSession:H.dangerousLogToVisitorSession},e)};
_.Xy=function(){return(_.r("csi_use_time_origin")||_.r("csi_use_time_origin_tvhtml5"))&&_.SP.timeOrigin?Math.floor(_.SP.timeOrigin):_.SP.timing.navigationStart};
_.kOu=function(D,t){_.fl("_start",D,t)};
_.Ll=function(D,t){if(!_.r("web_csi_action_sampling_enabled")||!_.Cl(t).actionDisabled){var H=_.MJ(t||"");_.Rz(H.info,D);D.loadType&&(H=D.loadType,_.Vnu(t).loadType=H);_.Rz(_.qAK(t),D);H=FjA(t);t=_.Cl(t).cttAuthInfo;TJV().info(D,H,t)}};
c76=function(){var D,t,H,e;return((e=_.qS().resolve(_.by(mE))==null?void 0:(D=Mz())==null?void 0:(t=D.loggingHotConfig)==null?void 0:(H=t.csiConfig)==null?void 0:H.debugTicks)!=null?e:[]).map(function(V){return Object.values(V)[0]})};
_.fl=function(D,t,H){if(!_.r("web_csi_action_sampling_enabled")||!_.Cl(H).actionDisabled){var e=FjA(H),V;if(V=_.r("web_csi_debug_sample_enabled")&&e){(_.qS().resolve(_.by(mE))==null?0:Mz())&&!j08&&(j08=!0,_.fl("gcfl",(0,_.aP)(),H));var b,a,w;V=(_.qS().resolve(_.by(mE))==null?void 0:(b=Mz())==null?void 0:(a=b.loggingHotConfig)==null?void 0:(w=a.csiConfig)==null?void 0:w.debugSampleWeight)||0;if(b=V!==0)b:{b=c76();if(b.length>0)for(a=0;a<b.length;a++)if(D===b[a]){b=!0;break b}b=!1}b?(V=HLD(e)%V!==0,
_.Cl(H).debugTicksExcludedLogged||(b={},b.debugTicksExcluded=V,_.Ll(b,H)),_.Cl(H).debugTicksExcludedLogged=!0):V=!1}if(!V){D[0]!=="_"&&$4u(D,H,t);V=_.MJ(H||"");V.tick[D]=t||(0,_.aP)();if(V.callback&&V.callback[D])for(V=_.F(V.callback[D]),b=V.next();!b.done;b=V.next())b=b.value,b();V=_.m$(H);V.gelTicks&&(V.gelTicks[D]=!0);b=_.bLD(H);V=t||(0,_.aP)();_.r("log_repeated_ytcsi_ticks")?D in b||(b[D]=V):b[D]=V;b=_.Cl(H).cttAuthInfo;D==="_start"?TJV().baseline(e,t,b):TJV().tick(D,e,t,b);_.iL8(H);return V}}};
$4u=function(D,t,H){if(_.SP.mark)if(D.startsWith("mark_")||(D="mark_"+D),t&&(D+=" ("+t+")"),H===void 0||_.r("web_csi_disable_alt_time_performance_mark"))_.SP.mark(D);else{H=_.r("csi_use_performance_navigation_timing")?H-_.SP.timeOrigin:H-(_.SP.timeOrigin||_.SP.timing.navigationStart);try{_.SP.mark(D,{startTime:H})}catch(e){}}};
r7X=function(){var D,t=(D=_.SP.getEntriesByType)==null?void 0:D.call(_.SP,"mark");t&&t.forEach(function(H){if(H.name.startsWith("mark_")){var e;(e=_.SP.clearMarks)==null||e.call(_.SP,H.name)}})};
_.OLK=function(){switch(eM6()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.U48=function(D){var t={},H=function(b,a,w){a=a.match("_rid")?a.split("_rid")[0]:a;typeof w==="number"&&(w=JSON.stringify(w));b.requestIds?b.requestIds.push({endpoint:a,id:w}):b.requestIds=[{endpoint:a,id:w}]};
D=_.F(Object.entries(D));for(var e=D.next();!e.done;e=D.next()){var V=_.F(e.value);e=V.next().value;V=V.next().value;switch(e){case "GetBrowse_rid":H(t,e,V);break;case "GetGuide_rid":H(t,e,V);break;case "GetHome_rid":H(t,e,V);break;case "GetPlayer_rid":H(t,e,V);break;case "GetSearch_rid":H(t,e,V);break;case "GetSettings_rid":H(t,e,V);break;case "GetTrending_rid":H(t,e,V);break;case "GetWatchNext_rid":H(t,e,V);break;case "yt_red":t.isRedSubscriber=!!V;break;case "yt_ad":t.isMonetized=!!V}}return t};
P9V=function(D,t,H,e,V,b){if(!_.r("web_csi_action_sampling_enabled")||!_.Cl(b).actionDisabled){var a=_.m$(b);if(a.gelSpans)a.gelSpans[D]=!0;else{var w={};a.gelSpans=(w[D]=!0,w)}ok3++;D={spanName:D,spanLengthUsec:String(Math.round(t*1E3)),spanNonce:ok3};e&&(D.spanInfo=e);V&&(D.parentSpanNonce=V);H&&(D.spanStartTimeUsec=String(Math.round(H*1E3)));_.MJ(b||"").span[String(D.spanName)]=D;H=_.m$(b);H.gelSpans||(H.gelSpans={});_.Rz(H.gelSpans,D);H=FjA(b);b=_.Cl(b).cttAuthInfo;TJV().span(D,H,b);return D.spanNonce}};
_.nk6=function(D){var t=_.AE("aft",D);if(t)return t;t=_.YC((D||"")+"TIMING_AFT_KEYS",["ol"]);for(var H=t.length,e=0;e<H;e++){var V=_.AE(t[e],D);if(V)return V}return NaN};
_.C98=function(D,t){_.bg("ytglobal.timing"+(t||"")+"ready_",D)};
_.AE=function(D,t){if(D=_.bLD(t)[D])return typeof D==="number"?D:D[D.length-1]};
_.iL8=function(D){var t=_.AE("_start",D),H=_.nk6(D),e=!m4k;t&&H&&e&&(myR(MnX,new SAV(Math.round(H-t),D)),m4k=!0)};
fu3=function(D){eTX(D);XOV();r7X();D||(_.YC("TIMING_ACTION")&&_.JZ("PREVIOUS_ACTION",_.YC("TIMING_ACTION")),_.JZ("TIMING_ACTION",""))};
_.LjV=function(D){D=D===void 0?{}:D;_.pY(function(){gE();ZL6();fu3();_.C98(!1);D.cttAuthInfo&&(_.Cl().cttAuthInfo=D.cttAuthInfo);_.JZ("TIMING_AFT_KEYS",[]);D.isHot?_.JE({loadType:"hot"}):_.JE({loadType:"warm"});_.JZ("TIMING_ACTION","");delete _.YC("TIMING_INFO",{}).yt_lt;_.pY(_.kOu)(D.startTime,void 0)})()};
_.l1=function(D,t,H,e){t=t===void 0?{}:t;_.pY(function(){var V=H?H:D;Y0(V);var b=t.sampleRate;if(!_.r("web_csi_action_sampling_enabled")||b===void 0||b<=1)b=!1;else{var a=FjA(V);b=HLD(a)%b!==0}b&&(_.Cl(V).actionDisabled=!0);_.MJ(V||"").info.actionType=D;t.cttAuthInfo&&(_.Cl(V).cttAuthInfo=t.cttAuthInfo);_.JZ(V+"TIMING_ACTION",D);_.pY(_.kOu)(t.startTime,V);b={actionType:e||_.hTD(D)};t.logPreviousAction&&(b.previousAction=_.hTD(_.YC("TIMING_ACTION")));(a=_.v3())&&a!=="UNDEFINED_CSN"&&(b.clientScreenNonce=
a);_.JE(b,V);_.C98(!0,V)})()};
Y0=function(D){_.pY(function(){gE(D);ZL6(D);fu3(D)})()};
A78=function(){_.pY(function(){var D=[],t;for(t in _.RD("ytcsi.".slice(0,-1)))t.endsWith("data_")&&D.push(t.slice(0,-5));D=_.F(D);for(t=D.next();!t.done;t=D.next())Y0(t.value);gE()})()};
_.J7u=function(D){return _.pY(function(){return _.gkR("_start",D)})()};
_.JE=function(D,t,H){_.pY(_.Ll)(D,t,H===void 0?!1:H)};
_.vh=function(D,t,H){return _.pY(_.fl)(D,t,H)};
_.gkR=function(D,t){return _.pY(function(){var H=_.bLD(t);return D in H})()};
luV=function(D){if(!_.r("universal_csi_network_ticks"))return"";D=_.TW(D)||"";for(var t=Object.keys(YAV),H=0;H<t.length;H++){var e=t[H];if(D.includes(e))return e}return""};
pOu=function(D){if(!_.r("universal_csi_network_ticks"))return function(){};
var t=YAV[D];return t?(_.pl(t),function(){var H=_.r("universal_csi_network_ticks")?(H=vkD[D])?_.pl(H):!1:!1;return H}):function(){}};
_.pl=function(D,t,H){return _.pY(function(){if(_.gkR(D,H))return!1;_.vh(D,t,H);return!0})()};
_.dE=function(D,t,H){_.pY(function(){if(!_.J7u(H)||_.gkR(D,H))return!1;_.vh(D,t,H);return!0})()};
_.x0=function(D){return _.pY(_.AE)(D,void 0)};
gE=function(D){_.J7u(D)&&_.vh("aa",void 0,D)};
_.Wjk=function(D,t,H,e,V,b,a,w,h){var K=d4X();w=new YR({veType:t,youtubeData:b,jspbYoutubeData:w});b=R4({},K);V&&(b.cttAuthInfo=V);V={csn:K,pageVe:w.getAsJson()};_.r("expectation_logging")&&h&&h.screenCreatedLoggingExpectations&&(V.screenCreatedLoggingExpectations=h.screenCreatedLoggingExpectations);H&&H.visualElement?(V.implicitGesture={parentCsn:H.clientScreenNonce,gesturedVe:H.visualElement.getAsJson()},a&&(V.implicitGesture.gestureType=a)):H&&_.Yw(new _.nZ("newScreen() parent element does not have a VE - rootVe",
t));e&&(V.cloneCsn=e);D?X0("screenCreated",V,D,b):_.L7("screenCreated",V,b);myR(gLk,new x4A(K));u1.clear();RTX.clear();ugR.clear();return K};
Wh=function(D,t,H,e,V,b){b=b===void 0?{}:b;Iu$(D,t,H,[e],V===void 0?!1:V,b)};
Iu$=function(D,t,H,e,V,b){V=V===void 0?!1:V;b=b===void 0?{}:b;Object.assign(b,R4({cttAuthInfo:pG(t)||void 0},t));for(var a=_.F(e),w=a.next();!w.done;w=a.next()){w=w.value;var h=w.getAsJson();(_.J$.isEmpty(h)||!h.trackingParams&&!h.veType)&&_.Yw(Error("zf"));if(_.r("no_client_ve_attach_unless_shown")){var K=Q0D(w,t);if(h.veType&&!RTX.has(K)&&!ugR.has(K)&&!V){if(!_.r("il_attach_cache_limit")||u1.size<1E3){u1.set(K,[D,t,H,w]);return}_.r("il_attach_cache_limit")&&u1.size>1E3&&_.Yw(new _.nZ("IL Attach cache exceeded limit"))}w=
Q0D(H,t);u1.has(w)?y7T(H,t):ugR.set(w,!0)}}e=e.filter(function(N){N.csn!==t?(N.csn=t,N=!0):N=!1;return N});
H={csn:t,parentVe:H.getAsJson(),childVes:_.Yz(e,function(N){return N.getAsJson()})};
t==="UNDEFINED_CSN"?I4("visualElementAttached",b,H):D?X0("visualElementAttached",H,D,b):_.L7("visualElementAttached",H,b)};
zTA=function(D,t,H,e,V){BJK(D,t,H,V)};
BJK=function(D,t,H,e){Da6(H,t);var V=R4({cttAuthInfo:pG(t)||void 0},t);H={csn:t,ve:H.getAsJson(),eventType:1};e&&(H.clientData=e);t==="UNDEFINED_CSN"?I4("visualElementShown",V,H):D?X0("visualElementShown",H,D,V):_.L7("visualElementShown",H,V)};
tzK=function(D,t,H,e){Da6(H,t);var V=R4({cttAuthInfo:pG(t)||void 0},t);H={csn:t,ve:H.getAsJson(),eventType:4};e&&(H.clientData=e);t==="UNDEFINED_CSN"?I4("visualElementShown",V,H):D?X0("visualElementShown",H,D,V):_.L7("visualElementShown",H,V)};
HS$=function(D,t,H,e,V){var b=(e=e===void 0?!1:e)?16:8;e=R4({cttAuthInfo:pG(t)||void 0,endOfSequence:e},t);H={csn:t,ve:H.getAsJson(),eventType:b};V&&(H.clientData=V);t==="UNDEFINED_CSN"?I4("visualElementHidden",e,H):D?X0("visualElementHidden",H,D,e):_.L7("visualElementHidden",H,e)};
VzD=function(D,t,H,e,V){e_D(D,t,H,void 0,e,V)};
e_D=function(D,t,H,e,V){Da6(H,t);e=e||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var b=R4({cttAuthInfo:pG(t)||void 0},t);H={csn:t,ve:H.getAsJson(),gestureType:e};V&&(H.clientData=V);t==="UNDEFINED_CSN"?I4("visualElementGestured",b,H):D?X0("visualElementGestured",H,D,b):_.L7("visualElementGestured",H,b)};
bSD=function(D,t,H,e){var V=R4({cttAuthInfo:pG(t)||void 0},t);H={csn:t,ve:H.getAsJson(),clientData:e};t==="UNDEFINED_CSN"?I4("visualElementStateChanged",V,H):D?X0("visualElementStateChanged",H,D,V):_.L7("visualElementStateChanged",H,V)};
qnT=function(){var D=ubT(16);for(var t=[],H=0;H<D.length;H++)t.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(D[H]&63));return t.join("")};
I4=function(D,t,H){Fv8.push({payloadName:D,payload:H,jspbPayload:void 0,options:t});aLD||(aLD=YsR())};
AhA=function(D){if(Fv8){for(var t=_.F(Fv8),H=t.next();!H.done;H=t.next())H=H.value,H.payload&&(H.payload.csn=D.csn,_.L7(H.payloadName,H.payload,H.options));Fv8.length=0}aLD=0};
Q0D=function(D,t){return""+D.getAsJson().veType+D.getAsJson().veCounter+t};
Da6=function(D,t){if(_.r("no_client_ve_attach_unless_shown")){var H=Q0D(D,t);RTX.set(H,!0);y7T(D,t)}};
y7T=function(D,t){D=Q0D(D,t);u1.has(D)&&(t=u1.get(D)||[],Wh(t[0],t[1],t[2],t[3],!0),u1.delete(D))};
R4=function(D,t){_.r("log_sequence_info_on_gel_web")&&(D.sequenceGroup=t);return D};
_.Q$=function(D,t,H){_.pY(Wh)(void 0,D,t,H)};
_.y$=function(D,t,H){_.pY(Iu$)(void 0,D,t,H)};
_.Bh=function(D,t){_.pY(zTA)(void 0,D,t,void 0,void 0,void 0)};
_.zf=function(D,t,H){_.pY(function(){_.ID(t,function(e){tzK(void 0,D,e,H)})})()};
_.D8=function(D,t,H,e){_.pY(function(){_.ID(t,function(V){HS$(void 0,D,V,H,e)})})()};
_.tV=function(D,t,H){_.pY(VzD)(void 0,D,t,H,void 0)};
_.HH=function(D,t,H,e){_.pY(e_D)(void 0,D,t,H,e,void 0)};
_.eR=function(D,t,H){_.pY(bSD)(void 0,D,t,H,void 0)};
wu8=function(D,t){V6.set(D,t)};
ZSV=function(D){return bG.initialized?bG.enabledSpans?bG.enabledSpans[D]:!0:!1};
sWV=function(D,t){if(D){t=t===void 0?1:t;if(D){D.endTime=(0,_.aP)();t&&(D.status=t);t=_.F(bG.processors);for(var H=t.next();!H.done;H=t.next()){var e=void 0,V=void 0;(V=(e=H.value).onSpanEnd)==null||V.call(e,D)}}D!==bG.stack[bG.stack.length-1]&&_.Yw(Error("Cf`"+D.name));bG.stack.pop()}};
GzX=function(D,t,H){if(ZSV(D)&&bG.shouldSampleFn(D,t,h_8)){var e=bG.nextSpanId++,V=bG.stack[bG.stack.length-1];D={id:e,parentId:V==null?void 0:V.id,name:D,attributes:t,traceId:V?V.traceId:e,sessionId:bG.sessionId,startTime:(0,_.aP)(),status:0};V&&(V.children||(V.children=[]),V.children.push(D));V=_.F(bG.processors);for(t=V.next();!t.done;t=V.next()){var b=e=void 0;(b=(e=t.value).onSpanStart)==null||b.call(e,D)}}else D=void 0;D?bG.stack.push(D):D=void 0;if(!D)return H();try{var a=H(D);sWV(D);return a}catch(w){throw sWV(D,
2),w;}};
EqX=function(){};
Kv8=function(D,t){var H=Object.keys(D);D=new _.nZ("[Command Handler] "+t,{filteredCommandNames:H,originalCommand:D});_.gT(D)};
NrX=function(D,t){Kv8(D,t+" was called but not set")};
kzT=function(D){return function(){return new D}};
qQ=function(D){return function(){return _.qS().resolve(D)}};
TrD=function(D,t){var H=_.O(D,_.xw);if(H&&(H=t[H.signal]))return H();D=_.F(Object.keys(D));for(H=D.next();!H.done;H=D.next())if(H=H.value,t[H]&&(H=t[H]))return H()};
_.FK=function(D,t,H,e){return{browseEndpoint:{browseId:D},commandMetadata:{webCommandMetadata:{url:t,rootVe:H,webPageType:e===void 0?"WEB_PAGE_TYPE_BROWSE":e}}}};
cz8=function(D,t,H){var e=t=t===void 0?0:t;H=H===void 0?0:H;var V=H-e;return _.af(D,"PPSV",void 0,void 0,(V>600?0:V<60||H<=0||e/H>.9)?0:t)};
_.af=function(D,t,H,e,V){var b="/watch?v="+D;D={videoId:D};t&&(D.playlistId=t,b+="&list="+t);e&&(b+="&pp="+e);V&&(D.startTimeSeconds=V,b+="&t="+V+"s");t={watchEndpoint:D,commandMetadata:{webCommandMetadata:{url:b,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};H&&(t.clickTrackingParams=H);e&&(_.O(t,_.Hh).playerParams=e);return t};
jWD=function(D){return{browseEndpoint:{browseId:"VL"+D},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+D,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
$a6=function(D){if(D){var t;if(D){var H=(t=_.O(D.commandMetadata,_.i1))==null?void 0:t.url;t=!(!H||H==="/service_ajax")}else t=!1;if(t)return D;var e;if(D=(e=_.O(D,_.ch))==null?void 0:e.commands)for(e=_.F(D),D=e.next();!D.done;D=e.next())if(D=$a6(D.value))return D}};
_.wO=function(D){return{runs:[{text:D}]}};
iST=function(D,t){return D&&t?{runs:[{text:D,navigationEndpoint:t}]}:void 0};
Z8=function(D){return D?_.wO(D):void 0};
_.sO=function(D){return D?{simpleText:D}:void 0};
_.hV=function(D){var t=D.type;D=D.payload;t={type:t};D!==void 0&&(t.payload=D);return t};
rzD=function(D,t,H){for(var e=Object.assign({},D),V=_.F(Object.keys(t)),b=V.next();!b.done;b=V.next()){b=b.value;var a=D[b],w=t[b];if(w===void 0)delete e[b];else if(a===void 0)e[b]=w;else if(Array.isArray(w)&&Array.isArray(a))e[b]=H?[].concat(_.A6(a),_.A6(w)):w;else if(!Array.isArray(w)&&_.Wk(w)&&!Array.isArray(a)&&_.Wk(a))e[b]=rzD(a,w,H);else if(typeof w===typeof a)e[b]=w;else return t=new _.nZ("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:b,originalValue:a,updateValue:w}),
_.gT(t),D}return e};
oqV=function(D){if(!D.length)return"";try{if(OSD)return OSD.decode(D);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(D)}catch(a){}for(var t=0,H=[],e=D.length;t<e;){for(var V=0;V<1024&&t<e;){var b=D[t++];if(b<128)UaX[V++]=b;else{if(b<224)b=(b&31)<<6|D[t++]&63;else if(b<240)b=(b&15)<<12|(D[t++]&63)<<6|D[t++]&63;else{if(V+1===1024){--t;break}b=(b&7)<<18|(D[t++]&63)<<12|(D[t++]&63)<<6|D[t++]&63;b-=65536;UaX[V++]=55296|b>>10;b=56320|b&1023}UaX[V++]=b}}b=String.fromCharCode.apply(String,
UaX);V<1024&&(b=b.substring(0,V));H.push(b)}return H.join("")};
nqR=function(D,t){var H;if((H=PqX)==null?0:H.encodeInto)return t=PqX.encodeInto(D,t),t.read<D.length?D.length*4:t.written;for(var e=H=0;e<D.length;e++){var V=D.charCodeAt(e);V<128?t[H++]=V:(V<2048?t[H++]=V>>6|192:((V&64512)===55296&&e+1<D.length&&(D.charCodeAt(e+1)&64512)===56320?(V=65536+((V&1023)<<10)+(D.charCodeAt(++e)&1023),t[H++]=V>>18|240,t[H++]=V>>12&63|128):t[H++]=V>>12|224,t[H++]=V>>6&63|128),t[H++]=V&63|128)}return H};
CqX=function(D,t,H){if(t&&H&&H.buffer===t.exports.memory.buffer){var e=t.realloc(H.byteOffset,D);if(e)return new Uint8Array(t.exports.memory.buffer,e,D)}D=t?new Uint8Array(t.exports.memory.buffer,t.malloc(D),D):new Uint8Array(D);H&&D.set(H);return D};
_.NQ=function(D){D=new maV(new MzT([_.zV(decodeURIComponent(D))]));if(SnA(D,2)){var t=Gu(D);var H=D.pos;var e=D.arrayView;H=H===void 0?0:H;var V=t===void 0?-1:t;H=H===void 0?0:H;V=V===void 0?-1:V;if(e.totalLength&&V){V<0&&(V=e.totalLength-H);e.focus(H);if(!(H-e.arrayPos+V<=e.arrays[e.arrayIdx].length)){var b=e.arrayIdx,a=e.arrayPos;e.focus(H+V-1);a=new Uint8Array(e.arrayPos+e.arrays[e.arrayIdx].length-a);for(var w=0,h=b;h<=e.arrayIdx;h++)a.set(e.arrays[h],w),w+=e.arrays[h].length;e.arrays.splice(b,
e.arrayIdx-b+1,a);e.arrayIdx=0;e.arrayPos=0;e.focus(H)}b=e.arrays[e.arrayIdx];e=new DataView(b.buffer,b.byteOffset+H-e.arrayPos,V)}else e=new DataView(new ArrayBuffer(0));e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);D.pos+=t;t=e}else t=void 0;t=t?oqV(t):void 0;D=SnA(D,4)?Gu(D):void 0;e=XuA[D];if(typeof e==="undefined")throw D=new _.nZ("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:D}),_.gT(D),D;return{entityTypeFieldNumber:D,entityType:e,entityId:t}};
_.cH=function(D,t,H){H=H===void 0?0:H;var e=new fLR;if(PqX)D=PqX.encode(D);else{var V=new Uint8Array(Math.ceil(D.length*1.2)),b=nqR(D,V);V.length<b&&(V=new Uint8Array(b),b=nqR(D,V));V.length>b&&(V=V.subarray(0,b));D=V}D!==void 0&&(ke(e,18),V=D.length,ke(e,V),Tu(e,V),e.buf.set(D,e.pos),e.pos+=V);D=LvR[t];if(typeof D==="undefined")throw H=new _.nZ("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:t}),_.gT(H),H;D!==void 0&&(ke(e,32),ke(e,D));ke(e,40);ke(e,1);t=new Uint8Array(e.buf.buffer,
e.buf.byteOffset,e.pos);return encodeURIComponent(_.XF(t,H))};
AzD=function(D){D=D.key||D.id;if(!D)throw Error("Ef");return D};
Jz$=function(D,t){D=D===void 0?{}:D;return gqk(D,t)};
YnR=function(D,t,H,e){if(e===void 0)return e=Object.assign({},D[t]||{}),H=(delete e[H],e),e={},Object.assign({},D,(e[t]=H,e));var V={},b={};return Object.assign({},D,(b[t]=Object.assign({},D[t],(V[H]=e,V)),b))};
lLX=function(D,t,H,e,V){var b=D[t];if(b==null||!b[H])return D;e=rzD(b[H],e,V==="REPEATED_FIELDS_MERGE_OPTION_APPEND");V={};b={};return Object.assign({},D,(b[t]=Object.assign({},D[t],(V[H]=e,V)),b))};
_.jR=function(D,t,H){return D[t]?D[t][H]||null:null};
puA=function(){if(vqK)return vqK();var D={};vqK=FU("PersistentEntityStoreDb",{objectStores:(D.EntityStore={addedAtVersion:1},D.EntityAssociationStore={addedAtVersion:2},D),shared:!1,upgrade:function(t,H){H(1)&&ug(RP(t,"EntityStore",{keyPath:"key"}),"entityType","entityType");H(2)&&(t=RP(t,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),ug(t,"byParentEntityKey","parentEntityKey"),ug(t,"byChildEntityKey","childEntityKey"))},
version:3});return vqK()};
daK=function(D){return _.zW(puA(),D)};
$e=function(D){return window.Int32Array?new Int32Array(D):Array(D)};
R_R=function(D){return _.zW(xaT(),D)};
u_K=function(D){return new iG("WRONG_DATA_TYPE",{encoderVersion:D})};
Wv6=function(D){return D instanceof Error?new iG("UNKNOWN_ENCODE_ERROR",{originalMessage:D.message}):new iG("UNKNOWN_ENCODE_ERROR")};
ILu=function(D){return D instanceof Error?new iG("UNKNOWN_DECODE_ERROR",{originalMessage:D.message}):new iG("UNKNOWN_DECODE_ERROR")};
QWR=function(D,t){D=D instanceof iG?D:t(D);_.gT(D);throw D;};
yzV=function(D){D=(new TextEncoder).encode(D).subarray(0,16);var t=new Uint8Array(16);t.set(D);return t};
z_K=function(D){var t=BrX[D];if(t)return t;_.Yw(new _.nZ("Entity model not found.",{entityType:D}))};
_.rO=function(){DBu||(DBu=ttD());return DBu};
ttD=function(){var D,t,H;return _.Z(function(e){if(e.nextAddress==1)return _.$p(e,2),e.yield(_.qO(),4);if(e.nextAddress!=2){D=e.yieldResult;if(!D||!_.PY()||typeof _.VA.BroadcastChannel==="undefined")return e.return();t=new HiD;return e.return(new OO(D,t))}H=_.Pv(e);H instanceof Error&&_.gT(H);return e.return()})};
_.UO=function(D,t){var H;return _.Z(function(e){if(e.nextAddress==1){H=D.mutations;if(!H||H.length<=0)return e.return();t&&t.dispatch(_.hV({type:"ENTITY_LOADED",payload:H}));return e.yield(ePu(H),2)}H.length=0;_.n2(e)})};
ePu=function(D){var t;return _.Z(function(H){return H.nextAddress==1?H.yield(_.rO(),2):(t=H.yieldResult)?H.yield(_.of(t,"readwrite",function(e){for(var V={},b=_.F(D),a=b.next(),w={};!a.done;w={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},a=b.next())w.mutation$jscomp$4=a.value,w.mutation$jscomp$4.entityKey&&Vtu(w.mutation$jscomp$4)&&(w.mutationEntityType$jscomp$3=(0,_.J$.getAnyKey)(w.mutation$jscomp$4.payload),a=void 0,w.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(a=function(h){return function(){return _.biV(e,
h.mutation$jscomp$4.payload[h.mutationEntityType$jscomp$3],h.mutationEntityType$jscomp$3)}}(w)),w.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(a=function(h){return function(){return qzX(e,h.mutation$jscomp$4.entityKey)}}(w)),w.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(a=function(h){return function(){return Fe8(e,h.mutation$jscomp$4.entityKey,h.mutation$jscomp$4.payload[h.mutationEntityType$jscomp$3],h.mutationEntityType$jscomp$3)}}(w)),a&&(V[w.mutation$jscomp$4.entityKey]=
V[w.mutation$jscomp$4.entityKey]?V[w.mutation$jscomp$4.entityKey].then(a):a()));
return RA.all(Object.values(V))}),0):H.return()})};
Vtu=function(D){var t;D=(t=D.options)==null?void 0:t.persistenceOption;return D==="ENTITY_PERSISTENCE_OPTION_PERSIST"||D==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
Zi8=function(D,t){var H,e;_.Z(function(V){if(V.nextAddress==1)return V.yield(_.rO(),2);if(V.nextAddress!=3)return(H=V.yieldResult)?V.yield(_.of(H,"readonly",function(b){var a={},w=Object.keys(t).map(function(h){var K=t[h]?[].concat(_.A6(t[h])):[];return aBD(b,h,K,a)});
return RA.all(w).then(function(){return a})}),3):V.return();
e=V.yieldResult;Object.keys(e).length>0&&D.dispatch(wKA(e));_.n2(V)})};
aBD=function(D,t,H,e){return PH(D,t,H).then(function(V){e[t]=sjD(H,V)})};
sjD=function(D,t){if(t.length!==D.length)throw Error("Hf");return t.reduce(function(H,e,V){H[D[V]]=e;return H},{})};
ESA=function(D){var t=D.filter(function(V){var b;return(V==null?void 0:(b=V.transferEntity)==null?void 0:b.transferState)==="TRANSFER_STATE_COMPLETE"}).length,H=D.filter(function(V){var b;
return(V==null?void 0:(b=V.transferEntity)==null?void 0:b.transferState)==="TRANSFER_STATE_FAILED"}).length,e=D.filter(function(V){var b;
return(V==null?void 0:(b=V.transferEntity)==null?void 0:b.transferState)&&hPA.includes(V.transferEntity.transferState)});
if(!(t||e!=null&&e.length))return 0;t=_.G63(e)+t;D=D.length-H;return D===0?0:Math.round(t*100/D)/100};
_.G63=function(D){var t=[];t=t.concat.apply(t,_.A6(D.filter(function(b){return b.streamEntity}).map(function(b){var a=Object.assign({},b.streamEntity),w,h=(w=b.transferEntity)==null?void 0:w.transferState;
a.streamsProgress=a.streamsProgress||[];a.streamsProgress=a.streamsProgress.map(function(K){var N=Object.assign({},K);N.numBytesDownloaded=h==="TRANSFER_STATE_COMPLETE"?K.numTotalBytes:K.numBytesDownloaded;return N});
return a}).map(function(b){return b.streamsProgress})));
var H=D=0;t=_.F(t);for(var e=t.next();!e.done;e=t.next()){var V=e.value;e=Number(V.numBytesDownloaded);V=Number(V.numTotalBytes);H+=isNaN(e)?0:e;D+=isNaN(V)?0:V}return D===0?0:Math.round(H*100/D)/100};
Ke$=function(D){if(!D||!D.expirationTimestamp||!D.action)return!1;var t=(0,_.aP)()/1E3;return Number(D.expirationTimestamp)>=t};
nC=function(D){return D&&D.expirationTimestamp&&D.action?Ke$(D)&&D.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.CC=function(D){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(D||"TRANSFER_STATE_UNKNOWN")};
N3$=function(D){var t=new fLR;if(D!==void 0){var H=Math.ceil(Math.log2(D.length*4+2)/7);H=H===void 0?2:H;ke(t,10);t.submessagePosStack.push(t.pos);t.submessagePosStack.push(H);t.pos+=H;Tu(t,D.length*1.2);H=nqR(D,t.buf.subarray(t.pos));t.pos+H>t.buf.length&&(Tu(t,H),H=nqR(D,t.buf.subarray(t.pos)));t.pos+=H;D=t.submessagePosStack.pop();H=t.submessagePosStack.pop();for(var e=t.pos-H-D;D--;){var V=D?128:0;t.view.setUint8(H++,e&127|V);e>>=7}}t=new Uint8Array(t.buf.buffer,t.buf.byteOffset,t.pos);return(new TextDecoder("utf-8")).decode(t)};
_.m1=function(D){var t=0;D=_.F(D);for(var H=D.next(),e={};!H.done;e={transferState$jscomp$3:void 0},H=D.next()){var V=H.value,b=void 0;H=(b=V.streamEntity)!=null?b:{};b=void 0;e.transferState$jscomp$3=(b=V.transferEntity)==null?void 0:b.transferState;b=V=void 0;((V=H)==null?0:(b=V.streamsProgress)==null?0:b.length)&&H.streamsProgress.forEach(function(a){return function(w){w=Number(a.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?w.numTotalBytes:w.numBytesDownloaded);isFinite(w)&&(t+=w)}}(e))}return t};
k6D=function(D){return D.some(function(t){var H;if(!(t==null?0:(H=t.transferEntity)==null?0:H.transferState)){var e;return!(t==null?0:(e=t.policyEntity)==null?0:e.action)||t.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return hPA.includes(t.transferEntity.transferState)})};
T3X=function(D,t){if(!t)return!1;if(_.r("of_pb_en_po_ks"))return!0;var H;D=(H=_.jR(D,"offlineVideoPolicy",_.cH(t,"offlineVideoPolicy")))!=null?H:void 0;return!!D&&nC(D)};
_.jj8=function(D){var t=["TRANSFER_STATE_COMPLETE"];t=t===void 0?c1$:t;return D.filter(function(H){var e,V;return t.includes((V=(e=H.transferEntity)==null?void 0:e.transferState)!=null?V:"TRANSFER_STATE_UNKNOWN")})};
$BT=function(D,t){if(t){var H,e=(H=_.jR(D,"playbackData",_.cH(t,"playbackData")))!=null?H:null,V;H=(V=_.jR(D,"transfer",_.cH(t,"transfer")))!=null?V:null;var b;V=(b=_.jR(D,"offlineVideoStreams",_.cH(t,"offlineVideoStreams")))!=null?b:null;var a;D=(a=_.jR(D,"offlineVideoPolicy",_.cH(t,"offlineVideoPolicy")))!=null?a:null;if(e||H||V||D)return{playbackDataEntity:e,transferEntity:H,streamEntity:V,policyEntity:D}}};
_.MQ=function(D){var t=D.playbackData;if(!t)return[];var H=[];t=_.F(Object.keys(t));for(var e=t.next();!e.done;e=t.next()){var V=e.value;if(!ii8(D,_.NQ(V).entityId)&&(e=$BT(D,_.NQ(V).entityId))){var b=void 0,a=void 0;V=(a=Number((b=_.jR(D,"playbackData",V))==null?void 0:b.streamDownloadTimestampSeconds))!=null?a:(0,_.aP)();H.push({entity:e,streamDownloadTimestamp:V})}}return H.sort(function(w,h){var K=w.streamDownloadTimestamp,N=h.streamDownloadTimestamp;return N===K?w.entity.streamEntity&&!h.entity.streamEntity?
1:-1:N-K}).map(function(w){return w.entity})};
r16=function(D){return _.jj8(_.MQ(D))};
_.Oi8=function(D){return _.MQ(D).filter(function(t){var H;if(((H=t.policyEntity)==null?0:H.action)&&t.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var e;if((e=t.transferEntity)==null?0:e.transferState){var V;return hPA.includes((V=t.transferEntity)==null?void 0:V.transferState)}return!0})};
ii8=function(D,t){var H;return((H=_.jR(D,"downloadStatusEntity",_.cH(t,"downloadStatusEntity")))==null?void 0:H.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
UBV=function(D){var t;if(D==null?0:(t=D.playbackDataEntity)==null?0:t.key)return _.NQ(D.playbackDataEntity.key).entityId;var H;if(D==null?0:(H=D.transferEntity)==null?0:H.key)return _.NQ(D.transferEntity.key).entityId;var e;if(D==null?0:(e=D.streamEntity)==null?0:e.key)return _.NQ(D.streamEntity.key).entityId;var V;if(D==null?0:(V=D.policyEntity)==null?0:V.key)return _.NQ(D.policyEntity.key).entityId};
P2K=function(D){var t=new Set,H;D=(H=D.mainDownloadsListEntity)==null?void 0:H[oSX];var e;if(!(D==null?0:(e=D.downloads)==null?0:e.length))return t;var V;D==null||(V=D.downloads)==null||V.forEach(function(b){(b==null?0:b.videoItem)&&t.add(b.videoItem)});
return t};
SR=function(D,t){if(t){var H=_.jR(D,"mainVideoEntity",_.cH(t,"mainVideoEntity")),e=_.jR(D,"downloadStatusEntity",_.cH(t,"downloadStatusEntity")),V=_.jR(D,"ytMainChannelEntity",_.cH(t,"ytMainChannelEntity")),b={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};D=$BT(D,t);e=(e==null?void 0:e.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.r("woffle_render_failed_download_state_ks")&&(e==null?void 0:e.downloadState)==="DOWNLOAD_STATE_FAILED";!D&&e&&(D=b);if(D&&H&&
V)return Object.assign({},{videoEntity:H,channelEntity:V},D)}};
C2V=function(D,t){return nS6(D,t)==="TRANSFER_STATE_COMPLETE"&&T3X(D,t)};
mBV=function(D,t){if(!t)return!1;var H;D=(H=_.jR(D,"playbackData",_.cH(t,"playbackData")))!=null?H:void 0;return!!D&&!!D.playerResponseJson};
nS6=function(D,t){if(!t)return"TRANSFER_STATE_UNKNOWN";var H=_.jR(D,"transfer",_.cH(t,"transfer"));if(H){var e;return(e=H.transferState)!=null?e:"TRANSFER_STATE_UNKNOWN"}H=_.jR(D,"offlineOrchestrationActionWrapperEntity",_.cH(t,"offlineOrchestrationActionWrapperEntity"));D=_.jR(D,"mainVideoEntity",_.cH(t,"mainVideoEntity"));return H||D?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
MtV=function(D,t){if(!t)return"TRANSFER_STATE_UNKNOWN";if(D=_.jR(D,"transfer",_.cH(t,"transfer"))){var H;return(H=D.transferState)!=null?H:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
SzR=function(D,t){return t&&(D=_.jR(D,"videoPlaybackPositionEntity",_.cH(t,"videoPlaybackPositionEntity")),D==null?0:D.lastPlaybackPositionSeconds)?Number(D.lastPlaybackPositionSeconds):0};
fBV=function(D,t){return XK3(D).some(function(H){var e;return(H==null?void 0:(e=H.mainPlaylistEntity)==null?void 0:e.playlistId)===t})};
A1V=function(D,t,H){var e=LeV(D,t);if(!e.length)return[];t=[];e=_.F(e);for(var V=e.next();!V.done;V=e.next()){V=V.value;var b=SR(D,V);H&&nS6(D,V)!=="TRANSFER_STATE_COMPLETE"||b&&t.push(b)}return t};
LeV=function(D,t){if(!t)return[];var H=_.cH(t,"mainPlaylistEntity"),e;t=(e=D.mainPlaylistEntity)==null?void 0:e[H];e=[];if(t==null||!t.videos)return e;t=_.F(t.videos);for(H=t.next();!H.done;H=t.next()){H=H.value;var V=void 0,b=void 0,a=void 0,w=(V=D)==null?void 0:(b=V.mainPlaylistVideoEntity)==null?void 0:(a=b[H])==null?void 0:a.video;w&&(H=_.NQ(w).entityId)&&e.push(H)}return e};
gSD=function(D,t){if(t){var H=_.jR(D,"mainPlaylistEntity",_.cH(t,"mainPlaylistEntity")),e=_.jR(D,"mainPlaylistDownloadStateEntity",_.cH(t,"mainPlaylistDownloadStateEntity"));D=_.jR(D,"ytMainChannelEntity",_.cH(t,"ytMainChannelEntity"));if(e&&H)return Object.assign({},{mainPlaylistEntity:H,mainPlaylistDownloadStateEntity:e},!!D&&{channelEntity:D})}};
XK3=function(D){return J1k(D).sort(function(t,H){return H.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return t.downloadedPlaylistEntities})};
J1k=function(D){var t=D.mainPlaylistDownloadStateEntity,H=[];if(!t)return H;for(var e=_.F(Object.keys(t)),V=e.next();!V.done;V=e.next()){var b=V.value;V=gSD(D,_.NQ(b).entityId);var a=void 0;b=Number((a=t[b])==null?void 0:a.addedTimestampMillis);a=isNaN(b)?(0,_.aP)():b;V!==void 0&&H.push({downloadedPlaylistEntities:V,addedTimestampMillis:a})}return H};
Yzu=function(D){var t,H=(t=D.mainPlaylistVideoEntity)!=null?t:{};return new Set(XK3(D).reduce(function(e,V){e=e===void 0?[]:e;var b,a;V==null||(b=V.mainPlaylistEntity)==null||(a=b.videos)==null||a.forEach(function(w){var h;(w=(h=H[w])==null?void 0:h.video)&&e.push(w)});
return e},[]))};
lB6=function(D){return"downloadedMusicPlaylistEntities"in D};
vSK=function(D){return"mainPlaylistEntity"in D&&"mainPlaylistDownloadStateEntity"in D};
pK6=function(D){return"videoEntity"in D&&"channelEntity"in D};
dBX=function(D){var t=D.musicPlaylistDownloadMetadataEntity,H=[];if(!t)return H;for(var e=_.F(Object.keys(t)),V=e.next();!V.done;V=e.next()){V=V.value;a:{var b=D,a=_.NQ(V).entityId;if(a){var w=_.jR(b,"musicPlaylist",_.cH(a,"musicPlaylist"));b=_.jR(b,"musicPlaylistDownloadMetadataEntity",_.cH(a,"musicPlaylistDownloadMetadataEntity"));if(w&&b){w={musicPlaylistEntity:w,musicPlaylistDownloadStateEntity:b};break a}}w=void 0}b=void 0;V=Number((b=t[V])==null?void 0:b.addedTimestampMillis);V=isNaN(V)?(0,_.aP)():
V;w!==void 0&&H.push({downloadedMusicPlaylistEntities:w,addedTimestampMillis:V})}return H};
xBX=function(D){var t=new Set;D=_.F(D);for(var H=D.next();!H.done;H=D.next())if(H=H.value,"musicPlaylistEntity"in H&&"musicPlaylistDownloadStateEntity"in H){H=_.F(H.musicPlaylistEntity.tracks);for(var e=H.next();!e.done;e=H.next())t.add(e.value)}return t};
RPT=function(D,t){if(t){var H=_.jR(D,"musicTrack",_.cH(t,"musicTrack")),e=_.jR(D,"musicArtist",_.cH(t,"musicArtist"))||{};if((D=$BT(D,t))&&H&&e)return Object.assign({},{musicTrackEntity:H,musicArtistEntity:e},D)}};
u5K=function(D){var t=D.musicTrackDownloadMetadataEntity,H=[];if(!t)return[];t=_.F(Object.keys(t));for(var e=t.next();!e.done;e=t.next()){var V=e.value;e=RPT(D,_.NQ(V).entityId);var b=void 0;V=Number((b=_.jR(D,"musicTrackDownloadMetadataEntity",V))==null?void 0:b.addedTimestampMillis);b=isNaN(V)?(0,_.aP)():V;e!==void 0&&H.push({downloadedMusicEntities:e,addedTimestampMillis:b})}return H};
Qjk=function(D,t){if(!t)return[];if(Object.values(WeV).includes(t))return IBu(D,t);t=_.cH(t,"musicPlaylist");var H;D=(H=D.musicPlaylist)==null?void 0:H[t];H=[];if(D==null||!D.tracks)return H;D=_.F(D.tracks);for(t=D.next();!t.done;t=D.next())(t=_.NQ(t.value).entityId)&&H.push(t);return H};
IBu=function(D,t){var H=new Set,e=dBX(D).map(function(b){return b.downloadedMusicPlaylistEntities});
e=xBX(e);e=_.F(e);for(var V=e.next();!V.done;V=e.next())(V=_.NQ(V.value).entityId)&&H.add(V);return y1X(D).downloadedMusicEntities.filter(function(b){var a;if((a=b.musicTrackEntity)!=null&&a.videoId){b=b.musicTrackEntity;if(a=t==="PPOM"?!0:!H.has(b.videoId))b:switch(b=b.musicVideoType,t){case "PPSE":a=b==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:a=b!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}b=a}else b=!1;return b}).map(function(b){var a;
return(a=b.musicTrackEntity)==null?void 0:a.videoId})};
y1X=function(D){var t=u5K(D).sort(function(H,e){return e.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return"downloadedMusicEntities"in H?H.downloadedMusicEntities:lB6(H)?H.downloadedMusicPlaylistEntities:{}});
D=dBX(D).sort(function(H,e){return e.addedTimestampMillis-H.addedTimestampMillis}).map(function(H){return"downloadedMusicEntities"in H?H.downloadedMusicEntities:lB6(H)?H.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:t,downloadedMusicPlaylistEntities:D}};
zPV=function(D,t){t=_.YC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Qjk(D,t):LeV(D,t);if(!t.length)return"TRANSFER_STATE_UNKNOWN";t=t.map(function(H){return MtV(D,H)});
return B38(t)};
B38=function(D){var t=new Set(D);if(t.has("TRANSFER_STATE_FAILED")&&t.size===1)return"TRANSFER_STATE_FAILED";t.delete("TRANSFER_STATE_FAILED");if(t.has("TRANSFER_STATE_UNKNOWN")&&t.size===1)return"TRANSFER_STATE_PRE_TRANSFER";t.delete("TRANSFER_STATE_UNKNOWN");if(t.has("TRANSFER_STATE_PRE_TRANSFER")&&t.size===1||t.size===0)return"TRANSFER_STATE_PRE_TRANSFER";D=t.has("TRANSFER_STATE_TRANSFERRING");t=t.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return D||t?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
XK=function(D){var t=D.mainVideoDownloadStateEntity,H=[];if(!t)return[];t=_.F(Object.keys(t));for(var e=t.next();!e.done;e=t.next()){var V=e.value;if(!ii8(D,_.NQ(V).entityId)){e=SR(D,_.NQ(V).entityId);var b=void 0,a=void 0;V=(a=Number((b=_.jR(D,"mainVideoDownloadStateEntity",V))==null?void 0:b.addedTimestampMillis))!=null?a:(0,_.aP)();e!==void 0&&H.push({downloadedVideoEntities:e,addedTimestampMillis:V})}}return H};
DCX=function(D){return XK(D).sort(function(t,H){return H.addedTimestampMillis-t.addedTimestampMillis}).map(function(t){return t.downloadedVideoEntities})};
_.HpT=function(D){var t=Yzu(D),H=_.fC(D),e=P2K(D),V=XK(D).filter(function(a){var w,h;if((a==null?void 0:(w=a.downloadedVideoEntities)==null?void 0:(h=w.transferEntity)==null?void 0:h.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var K,N;a=a==null?void 0:(K=a.downloadedVideoEntities)==null?void 0:(N=K.videoEntity)==null?void 0:N.key;return _.r("kevlar_use_library_entity")?a&&(e.has(a)||H[a]):a&&!t.has(a)}),b=J1k(D).filter(function(a){return zPV(D,a.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.A6(V),_.A6(b)).sort(function(a,w){return w.addedTimestampMillis-a.addedTimestampMillis}).map(function(a){return tiD(a)})};
eWD=function(D,t){if(t&&T3X(D,t)){var H,e,V=(e=(H=_.jR(D,"playbackData",_.cH(t,"playbackData")))!=null?H:void 0)==null?void 0:e.playerResponseJson;if(V){try{var b=JSON.parse(V);var a=_.jR(D,"transfer",_.cH(t,"transfer")),w=SzR(D,t);w&&(b=Object.assign({},b,{playerConfig:Object.assign({},b.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+w*1E3}}})}));b.cotn=a==null?void 0:a.cotn}catch(h){}return b}}};
_.bpR=function(D){var t,H,e;D=(e=(H=((t=D.downloadsPageViewConfigurationEntity)!=null?t:{})[_.LC])==null?void 0:H.smartDownloadsOptInBannerVisibility)!=null?e:{};var V;return(V=_.O(D,ViV))!=null?V:{}};
_.fC=function(D){var t,H,e;D=(e=(H=((t=D.mainDownloadsListEntity)!=null?t:{})[_.qKD])==null?void 0:H.downloads)!=null?e:[];t={};H=_.F(D);for(e=H.next();!e.done;e=H.next())D=void 0,t[(D=e.value.videoItem)!=null?D:""]=!0;return t};
FOK=function(D){var t=_.fC(D);if(Object.keys(t).length===0)return!1;var H=D.mainVideoEntity;if(!H)return!0;H=_.F(Object.keys(H));for(var e=H.next();!e.done;e=H.next()){e=e.value;var V=_.NQ(e).entityId;if(t[e]&&!ii8(D,V))return!1}return!0};
_.AV=function(D){var t=_.fC(D);return XK(D).sort(function(H,e){return H.addedTimestampMillis-e.addedTimestampMillis}).map(function(H){return H.downloadedVideoEntities}).filter(function(H){var e;
return(H=H==null?void 0:(e=H.videoEntity)==null?void 0:e.key)&&!!t[H]})};
_.wMD=function(D){var t,H,e;D=(e=(H=((t=D.downloadsPageViewConfigurationEntity)!=null?t:{})[_.LC])==null?void 0:H.downloadsUpsellBannerVisibility)!=null?e:{};var V;return(V=_.O(D,awD))!=null?V:{}};
tiD=function(D){return"downloadedVideoEntities"in D?D.downloadedVideoEntities:"downloadedPlaylistEntities"in D?D.downloadedPlaylistEntities:{}};
ZpK=function(D){var t=_.fC(D),H=Yzu(D),e=XK(D).filter(function(V){var b,a;return(V=V==null?void 0:(b=V.downloadedVideoEntities)==null?void 0:(a=b.videoEntity)==null?void 0:a.key)&&!t[V]&&!H.has(V)});
D=J1k(D);return[].concat(_.A6(e),_.A6(D)).sort(function(V,b){return b.addedTimestampMillis-V.addedTimestampMillis}).map(function(V){return tiD(V)})};
_.gO=function(D){if(!_.r("kevlar_use_library_entity"))return ZpK(D);var t=XK(D).filter(function(e){var V,b;if(V=e=e==null?void 0:(V=e.downloadedVideoEntities)==null?void 0:(b=V.videoEntity)==null?void 0:b.key){var a,w,h;V=((w=(a=D.mainDownloadsListEntity)==null?void 0:a[oSX])==null?0:(h=w.downloads)==null?0:h.length)?P2K(D).has(e):!1}return V}),H=J1k(D);
return[].concat(_.A6(t),_.A6(H)).sort(function(e,V){return V.addedTimestampMillis-e.addedTimestampMillis}).map(function(e){return tiD(e)})};
sm8=function(D){var t=_.fC(D),H=Yzu(D);return DCX(D).filter(function(e){var V;return(e=e==null?void 0:(V=e.videoEntity)==null?void 0:V.key)&&!t[e]&&!H.has(e)})};
hWV=function(D){if(!_.r("kevlar_use_library_entity"))return sm8(D);var t=_.fC(D),H=P2K(D);return DCX(D).filter(function(e){var V;return(e=e==null?void 0:(V=e.videoEntity)==null?void 0:V.key)&&!t[e]&&H.has(e)})};
GiR=function(D,t){t=_.cH(t,"settingEntity");var H,e,V;return!!((V=(e=((H=D.settingEntity)!=null?H:{})[t])==null?void 0:e.settingOptionValue)!=null?V:{}).boolValue};
_.JV=function(D){var t=_.AV(D);if(k6D(t))return 0;var H=[];t=_.F(t);for(var e=t.next();!e.done;e=t.next()){e=e.value;var V=void 0,b=void 0;if((V=e)==null?0:(b=V.videoEntity)==null?0:b.key)V=_.NQ(e.videoEntity.key).entityId,e=D,V=_.cH(V,"mainVideoDownloadStateEntity"),e=_.jR(e,"mainVideoDownloadStateEntity",V),(e=Number(e==null?void 0:e.addedTimestampMillis))&&H.push(e)}return Math.max.apply(Math,_.A6(H))};
_.Ye=function(D){return D.ui.richGridMiniMode};
_.lG=function(D){return D.ui.richGridItemsPerRow};
_.E$R=function(D){return D.ui.richGridSlimItemsPerRow};
_.KOk=function(D){return D.ui.guideIsExpanded};
_.vH=function(D){return D.ui.miniplayerIsActive};
NfT=function(D){return D.ui.singleOptionSurveyIsActive};
_.pC=function(D){var t;return((t=D.ui)==null?void 0:t.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.kiD=function(D){return _.pC(D)==="WEB_PAGE_TYPE_WATCH"};
_.Tf$=function(D){return _.pC(D)==="WEB_PAGE_TYPE_SHORTS"};
_.cUV=function(D){return D.ui.inlinePreviewIsActive};
_.jmX=function(D){return D.ui.inlinePreviewIsEnabled};
_.$CT=function(D){return D.ui.miniplayerPlaybackState};
_.dO=function(D){return D.ui.isOnline};
_.ip6=function(D){return D.ui.frostedGlassMode};
_.xe=function(D,t){return nS6(D.entities,t)};
_.Rf=function(D,t){return zPV(D.entities,t)};
rU8=function(D,t){var H;if(t){var e;D=(e=_.jR(D.entities,"offlineVideoPolicy",_.cH(t,"offlineVideoPolicy")))==null?void 0:e.action}else D=void 0;return(H=D)!=null?H:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
Opu=function(D,t){var H;t?(D=_.jR(D.entities,"offlineVideoPolicy",_.cH(t,"offlineVideoPolicy")),D=Number(D==null?void 0:D.expirationTimestamp)):D=void 0;return(H=D)!=null?H:0};
_.UCK=function(D){return _.MQ(D.entities).length};
o$V=function(D,t){return SR(D.entities,t)};
PS3=function(D,t){return gSD(D.entities,t)};
uG=function(D,t){return(D=SR(D.entities,t))?_.G63([D]):0};
_.n$R=function(D,t){var H=_.YC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(H){var e=D.entities;var V=Qjk(e,t);if(V.length){var b=[];V=_.F(V);for(var a=V.next();!a.done;a=V.next())(a=RPT(e,a.value))&&b.push(a);e=b}else e=[]}else e=A1V(D.entities,t);var w;if(H){var h=D.entities;t?(t=_.cH(t,"musicPlaylist"),h=(w=h.musicPlaylist)==null?void 0:w[t],w=h!=null&&h.tracks?h.tracks.length:0):w=0}else w=D.entities,t?(t=_.cH(t,"mainPlaylistEntity"),w=(h=w.mainPlaylistEntity)==null?void 0:h[t],w=w!=null&&w.videos?
w.videos.length:0):w=0;return e.length!==w?0:e?ESA(e):0};
_.CSA=function(D){return D.download.isLeaderTab};
_.mCu=function(D,t,H){if(!t&&H){var e=D.entities;if(H){var V=N3$(H),b,a;t=(a=(b=_.jR(e,"offlineabilityEntity",_.cH(V,"offlineabilityEntity")))==null?void 0:b.addToOfflineButtonState)!=null?a:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else t="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else b=D.entities,t?(a=N3$(t),t=(V=(e=_.jR(b,"offlineabilityEntity",_.cH(a,"offlineabilityEntity")))==null?void 0:e.addToOfflineButtonState)!=null?V:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):t="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return t};
Miu=function(D,t){D=D.entities;if(t){t=N3$(t);var H,e;t=(e=(H=_.jR(D,"offlineabilityEntity",_.cH(t,"offlineabilityEntity")))==null?void 0:H.addToOfflineButtonState)!=null?e:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else t="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return t};
_.SK$=function(D){var t=D.entities;D=_.dO(D);var H=GiR(t,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.r("kevlar_modern_downloads_page")&&H)var e=!1;else{var V,b;t=(b=(V=((e=t.downloadsPageViewConfigurationEntity)!=null?e:{})[_.LC])==null?void 0:V.smartDownloadsOptInBannerVisibility)!=null?b:{};e=D?!!t.visibleWithConnection:!!t.visibleWithoutConnection}return e};
_.XMT=function(D){return GiR(D.entities,"SMART_DOWNLOADS_ENABLED")};
_.fwA=function(D){return FOK(D.entities)};
LOV=function(D){return _.AV(D.entities).every(function(t){var H;return(t==null?void 0:(H=t.transferEntity)==null?void 0:H.transferState)&&!hPA.includes(t.transferEntity.transferState)})};
_.AU3=function(D){var t,H,e,V=(e=(H=((t=D.entities.downloadsPageViewConfigurationEntity)!=null?t:{})[_.LC])==null?void 0:H.downloadsUpsellBannerVisibility)!=null?e:{};return _.dO(D)?!!V.visibleWithConnection:!!V.visibleWithoutConnection};
_.g$D=function(D,t){return ii8(D.entities,t)};
JUR=function(D,t){if(t){var H,e;D=(e=(H=_.jR(D.entities,"downloadStatusEntity",_.cH(t,"downloadStatusEntity")))==null?void 0:H.downloadState)!=null?e:"DOWNLOAD_STATE_UNKNOWN"}else D="DOWNLOAD_STATE_UNKNOWN";return D};
WH=function(D,t){return SzR(D.entities,t)};
pM8=function(D){D=YKA(D);var t=D.hours===void 0?0:D.hours,H=D.minutes===void 0?0:D.minutes,e=D.seconds===void 0?0:D.seconds,V=t>0;D=[];V&&(t=lwk(t),D.push(t));t=V;t=t===void 0?!1:t;H=(["af","be","lt"].includes(If)||t)&&H<10?v$X().format(H):(new Intl.NumberFormat("en-u-nu-latn")).format(H);D.push(H);H=v$X().format(e);D.push(H);H=":";"da fi id si sr sr-Latn".split(" ").includes(If)&&(H=".");return D.join(H)};
_.xC8=function(D){D=YKA(D);var t=D.hours===void 0?0:D.hours,H=D.minutes===void 0?0:D.minutes,e=D.seconds===void 0?0:D.seconds;D=[];if(t>0){var V=dC$().format({hours:t});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(If)||t>9999)V=V.replace(t.toString(),lwk(t)),If==="km"&&(V=V.replace(".",","));D.push(V)}H>0&&D.push(dC$().format({minutes:H}));e>0&&D.push(dC$().format({seconds:e}));t="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");H=If=="am"?"{0}\u1363 ":If=="fa"?"{0}\u060c\u200f ":
If=="my"?"{0} - ":If=="ne"?"{0},":If=="th"?"{0} ":If=="ur"?"{0}\u060c ":If=="ar"||If=="ar-XB"?"{0} \u0648":If=="ja"||If=="zh-CN"||If=="zh-HK"||If=="zh-TW"?"{0}\u3001":"{0}, ";e=If=="am"?"\u1363 ":If=="fa"?"\u060c\u200f ":If=="my"?" - ":If=="th"?" ":If=="ur"?"\u060c ":If=="ar"||If=="ar-XB"?" \u0648":If=="ja"||If=="zh-CN"||If=="zh-HK"||If=="zh-TW"?"\u3001":", ";V=If=="am"?" \u12a5\u1293 {0}":If=="as"?" \u0986\u09f0\u09c1 {0}":If=="az"?" v\u0259 {0}":If=="bn"?" \u098f\u09ac\u0982 {0}":If=="cs"?" a\u00a0{0}":
If=="de"?" und {0}":If=="el"?" \u03ba\u03b1\u03b9 {0}":If=="eu"?" eta {0}":If=="fa"?"\u060c \u0648 {0}":If=="fil"?", at {0}":If=="gu"?" \u0a85\u0aa8\u0ac7 {0}":If=="hi"?", \u0914\u0930 {0}":If=="hu"?" \u00e9s {0}":If=="hy"?" \u0587 {0}":If=="id"?", dan {0}":If=="iw"?" \u05d5-{0}":If=="ja"?"\u3001{0}":If=="ka"?" \u10d3\u10d0 {0}":If=="km"?" \u1793\u17b7\u1784 {0}":If=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":If=="ko"?" \ubc0f {0}":If=="ky"?" \u0436\u0430\u043d\u0430 {0}":If=="lt"?" ir {0}":If==
"lv"?" un {0}":If=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":If=="mr"?" \u0906\u0923\u093f {0}":If=="ms"?" dan {0}":If=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":If=="ne"?" \u0930 {0}":If=="or"?", \u0b13 {0}":If=="pa"?" \u0a05\u0a24\u0a47 {0}":If=="ro"?" \u0219i {0}":If=="si"?", \u0dc3\u0dc4 {0}":If=="sk"?" a {0}":If=="sl"?" in {0}":If=="sq"?" dhe {0}":If=="sv"?" och {0}":If=="sw"?" na {0}":If=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":If=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
If=="th"?" \u0e41\u0e25\u0e30{0}":If=="tr"?" ve {0}":If=="ur"?"\u060c \u0627\u0648\u0631 {0}":If=="uz"?" va {0}":If=="vi"?" v\u00e0 {0}":If=="zh-HK"?"\u53ca{0}":If=="zu"?", ne-{0}":If=="af"||If=="nl"?" en {0}":If=="ar"||If=="ar-XB"?" \u0648{0}":If=="be"||If=="uk"?" \u0456 {0}":If=="en-GB"||If=="en-IN"?" and {0}":If=="en"||If=="en-XA"?", and {0}":If=="et"||If=="fi"?" ja {0}":If=="fr"||If=="fr-CA"?" et {0}":If=="zh-CN"||If=="zh-TW"?"\u548c{0}":If=="da"||If=="is"||If=="no"?" og {0}":If=="es"||If=="es-419"||
If=="es-US"?" y {0}":If=="kk"||If=="lo"||If=="mn"?", {0}":If=="bg"||If=="mk"||If=="ru"||If=="sr"?" \u0438 {0}":If=="gl"||If=="it"||If=="pt-BR"||If=="pt-PT"?" e {0}":" i {0}";var b=If=="am"?"{0} \u12a5\u1293 {1}":If=="as"?"{0} \u0986\u09f0\u09c1 {1}":If=="az"?"{0} v\u0259 {1}":If=="bn"?"{0} \u098f\u09ac\u0982 {1}":If=="de"?"{0} und {1}":If=="el"?"{0} \u03ba\u03b1\u03b9 {1}":If=="eu"?"{0} eta {1}":If=="fa"?"{0} \u0648 {1}":If=="fil"?"{0} at {1}":If=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":If=="hi"?"{0} \u0914\u0930 {1}":
If=="hu"?"{0} \u00e9s {1}":If=="hy"?"{0} \u0587 {1}":If=="iw"?"{0} \u05d5-{1}":If=="ja"?"{0}\u3001{1}":If=="ka"?"{0} \u10d3\u10d0 {1}":If=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":If=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":If=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":If=="ko"?"{0} \ubc0f {1}":If=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":If=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":If=="lt"?"{0} ir {1}":If=="lv"?"{0} un {1}":If=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":If=="mn"?"{0}, {1}":If==
"mr"?"{0} \u0906\u0923\u093f {1}":If=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":If=="ne"?"{0} \u0930 {1}":If=="or"?"{0} \u0b13 {1}":If=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":If=="ro"?"{0} \u0219i {1}":If=="si"?"{0} \u0dc3\u0dc4 {1}":If=="sl"?"{0} in {1}":If=="sq"?"{0} dhe {1}":If=="sv"?"{0} och {1}":If=="sw"?"{0} na {1}":If=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":If=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":If=="th"?"{0}\u0e41\u0e25\u0e30{1}":If=="tr"?"{0} ve {1}":If=="ur"?
"{0} \u0627\u0648\u0631 {1}":If=="uz"?"{0} va {1}":If=="vi"?"{0} v\u00e0 {1}":If=="zh-HK"?"{0}\u53ca{1}":If=="zu"?"{0} ne-{1}":If=="af"||If=="nl"?"{0} en {1}":If=="ar"||If=="ar-XB"?"{0} \u0648{1}":If=="be"||If=="uk"?"{0} \u0456 {1}":If=="cs"||If=="sk"?"{0} a\u00a0{1}":If=="et"||If=="fi"?"{0} ja {1}":If=="fr"||If=="fr-CA"?"{0} et {1}":If=="id"||If=="ms"?"{0} dan {1}":If=="zh-CN"||If=="zh-TW"?"{0}\u548c{1}":If=="da"||If=="is"||If=="no"?"{0} og {1}":If=="es"||If=="es-419"||If=="es-US"?"{0} y {1}":If==
"bg"||If=="mk"||If=="ru"||If=="sr"?"{0} \u0438 {1}":If=="en"||If=="en-GB"||If=="en-IN"||If=="en-XA"?"{0} and {1}":If=="gl"||If=="it"||If=="pt-BR"||If=="pt-PT"?"{0} e {1}":"{0} i {1}";If==="sq"?(V=V.replace("dhe","e"),b=b.replace("dhe","e")):If==="th"?(e=e.replace("{0}"," {0}"),b=b.replace("{0}","{0} "),b=b.replace("{1}"," {1}")):If==="ne"?e=",":If==="zh-CN"?e="":t.includes(If)&&(e=" ");return D.length<2?D.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(If)?
D.length===2?b.replace("{0}",D[0]).replace("{1}",D[1]):H.replace("{0}",D[0])+D.slice(1,-1).join(e)+V.replace("{0}",D[D.length-1]):D.join(e)};
YKA=function(D){var t=D.hours||0,H=D.minutes||0,e=D.seconds||0;t=e+H*60+t*3600+(D.days||0)*86400+(D.weeks||0)*604800+(D.months||0)*2629800+(D.years||0)*31557600;if(t<=0)return{hours:0,minutes:0,seconds:0};D=t;t=Math.floor(D/3600);D%=3600;H=Math.floor(D/60);e=Math.floor(D%60);return{hours:t,minutes:H,seconds:e}};
lwk=function(D){D=(new Intl.NumberFormat("en-u-nu-latn")).format(D);var t=["fr"],H="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(If)?D.replace(",","\u00a0"):t.includes(If)?D.replace(",","\u202f"):H.includes(If)?D.replace(",","."):D};
v$X=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
dC$=function(){RW6||(Q6=urA,RW6=new WOR);return RW6};
Iw8=function(D){try{return(new _.y6(5)).format(D)}catch(t){}};
BH=function(D){return{thumbnailOverlayDownloadingRenderer:{state:D}}};
QmR=function(D){if(D=Iw8(D))return{thumbnailOverlaySidePanelRenderer:{text:_.wO(D),icon:{iconType:"PLAYLISTS"}}}};
yUV=function(){var D=_.OT("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.wO(D),icon:{iconType:"PLAY_ALL"}}}};
Bf3=function(D){D=_.zu(D,2);return If!=="ru"&&If!=="es_419"&&If!=="es-419"&&If!=="es"&&If!=="es_US"&&If!=="es-US"&&If!=="fr"&&If!=="pl"&&If!=="it"&&If!=="nl"&&If!=="uk"&&If!=="fr_CA"&&If!=="fr-CA"||D===""?D:D[0].toLocaleUpperCase()+D.substring(1)};
DKA=function(D){return function(t){var H=D(),e=_.zu(t,H.dateFormat);t=_.zu(t,H.timeFormat);var V=zWV.DATETIMEFORMATS[H.joinerStyle];V=V.replace(/'(?!')/g,"");V=V.replace("{0}",t);V=V.replace("{1}",e);return H.capitalize(V)}};
t8X=function(D){return D?typeof D.seconds==="string"&&(D.nanos===void 0||typeof D.nanos==="number"):!1};
HEA=function(D){return new Date(Number(D.seconds)*1E3+(D.nanos||0)*1E-6)};
_.zu=function(D,t){if(typeof D.getTime==="function")D={date:D};else if(t8X(D))D={date:HEA(D)};else if(typeof t8X(D.timestamp)&&typeof D.i18nInternalSecondsEastOfUtc==="number")D={date:HEA(D.timestamp),timeZone:D2(-D.i18nInternalSecondsEastOfUtc/60)};else throw Error("If`"+JSON.stringify(D));var H=D;D=H.date;H=H.timeZone;t=eIK(t).format(D,H);If==="zh-TW"&&(D=H?Number(eIK("H").format(D,H)):D.getHours(),t=D<5?t.replace("\u4e0a\u5348","\u51cc\u6668"):D<8?t.replace("\u4e0a\u5348","\u65e9\u4e0a"):D<12?
t.replace("\u4e0a\u5348","\u4e0a\u5348"):D<13?t.replace("\u4e0b\u5348","\u4e2d\u5348"):D<19?t.replace("\u4e0b\u5348","\u4e0b\u5348"):t.replace("\u4e0b\u5348","\u665a\u4e0a"));return t};
eIK=function(D){if(V8D.has(D))return V8D.get(D);var t=bEV(D);t=qgD(t);FX3!==!0&&(FX3=!0);aQD=!0;aQD=!1;t=new tG(t,zWV);V8D.set(D,t);return t};
bEV=function(D){return(new tG(D,zWV)).patternParts_.map(function(t){return t.type===0?"'"+t.text+"'":t.text}).join("")};
qgD=function(D){return If==="en"||If==="es_US"||If==="es-US"?D:D.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(t,H,e){return"H".repeat(H.length)+e})};
KXk=function(D,t){wPV||(Q6=urA,wPV=new ZEV);var H=wPV;a:if(D=sTV(D),t=sTV(t||new Date),D>t)H=D.getTime()-t.getTime()>6048E5?_.zu(D,1):hI8(D);else{for(var e=0;GqR(D,12*(e+1))<t;)++e;if(e>0)H=H.format(-e,0);else{for(e=0;GqR(D,e+1)<t;)++e;if(e>0)H=H.format(-e,2);else{D=t.getTime()-D.getTime();t=_.F(E7$);for(e=t.next();!e.done;e=t.next()){e=e.value;var V=e.unit,b=Math.floor(D/e.unitDuration);if(b>=(e.threshold===void 0?1:e.threshold)){H=H.format(-b,V);break a}}H=H.format(-0,7)}}}return H};
sTV=function(D){if(typeof D.getTime==="function")return D;if(t8X(D))return HEA(D);throw Error("Jf`"+JSON.stringify(D));};
GqR=function(D,t){for(var H=0,e;;++H)if(e=new Date(D.getFullYear(),D.getMonth()+t,D.getDate()-H,D.getHours(),D.getMinutes(),D.getSeconds()),e.getMonth()===(D.getMonth()+t)%12)return e};
_.H7=function(D){return{runs:[{text:D}]}};
_.eo=function(D){if(D&&D.simpleText)return D.simpleText;var t="";if(D&&D.runs)for(var H=0;H<D.runs.length;H++)D.runs[H].text&&(t+=D.runs[H].text);return t};
WXX=function(D,t,H,e){return D.videoEntity&&!D.policyEntity&&H!=="DOWNLOAD_STATE_FAILED"?[BH("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:nC(D.policyEntity)&&t!=="TRANSFER_STATE_FAILED"&&t!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?t==="TRANSFER_STATE_PAUSED_BY_USER"?[BH("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.CC(t)?[BH("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:D.videoEntity.lengthSeconds?NWX(D.videoEntity.lengthSeconds,e):[]:
[BH("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
NWX=function(D,t){var H=[{thumbnailOverlayTimeStatusRenderer:{text:_.wO(pM8({seconds:D})),style:"DEFAULT"}}];t&&(D=t<=0||D<=0?0:t>=D?100:Math.ceil(t*100/D),D>0&&H.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:D}}));return H};
IQV=function(D,t,H,e,V){if(t==="TRANSFER_STATE_UNKNOWN"||!D)return{};if(_.CC(t)||t==="TRANSFER_STATE_PRE_TRANSFER")var b=[BH("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var a,w;if(t==="TRANSFER_STATE_COMPLETE"&&((a=D.mainPlaylistEntity)==null?0:(w=a.videos)==null?0:w.length)){if(_.r("web_modern_collections_v2")){var h;var K=(b=D.mainPlaylistEntity)==null?void 0:(h=b.videos)==null?void 0:h.length;b=(b=Iw8(K))?{thumbnailOverlayBottomPanelRenderer:{text:_.wO(b),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var N;b=QmR((K=D.mainPlaylistEntity)==null?void 0:(N=K.videos)==null?void 0:N.length)}var k;b=[yUV(),Object.assign({},(k=b)!=null?k:{})]}else b=[]}k=b;a:if(t==="TRANSFER_STATE_PRE_TRANSFER")H=Z8(_.OT("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(t==="TRANSFER_STATE_TRANSFER_IN_QUEUE")H=Z8(_.OT("WAITING_TO_DOWNLOAD"));else if(_.CC(t))H=Math.floor(H*100).toString(),H=Z8(_.OT("DOWNLOADING_PERCENT",{percent:H},"Downloading... "+H+"%"));else{if(e&&(_.r("playlist_is_offline_selector_killswitch")&&
(V=_.qS().resolve(_.yp).isNetworkAvailable()),V)){H=iST(_.OT("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),jWD(e));break a}H=void 0}t=t==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.OT("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},k.length?{thumbnailOverlays:k}:{},H?{viewPlaylistText:H}:{viewPlaylistText:_.H7("")},t.length?{badges:t}:{})};
QTX=function(D,t,H,e,V,b){if(t==="TRANSFER_STATE_UNKNOWN"||!D)return{};if(e==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var a=WXX(D,t,e);if(D.videoEntity&&!D.policyEntity&&e!=="DOWNLOAD_STATE_FAILED"){var w=_.OT("WAITING_TO_DOWNLOAD");if(w)return{shortViewCountText:_.H7(w),publishedTimeText:void 0,thumbnailOverlays:a}}if(!nC(D.policyEntity)){b=D.policyEntity&&!Ke$(D.policyEntity)?_.OT("DOWNLOAD_EXPIRED",{},"Download expired"):
_.OT("TRANSFER_FAILED",{},"Download failed");var h;if((h=D.policyEntity)==null?0:h.shortMessageForDisabledAction)b=D.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Z8(b),publishedTimeText:void 0,thumbnailOverlays:a}}if(t==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.H7(_.OT("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:a};if(t==="TRANSFER_STATE_FAILED"||t==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.H7(_.OT("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:a};if(t==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(h=_.OT("WAITING_TO_DOWNLOAD"),e==="DOWNLOAD_STATE_PAUSED"&&(h=_.OT("DOWNLOAD_PAUSED",{},"Download paused")),h))return{shortViewCountText:_.H7(h),publishedTimeText:void 0,thumbnailOverlays:a};if(_.CC(t))return D=Math.floor(H*100).toString(),{shortViewCountText:_.H7(_.OT("DOWNLOADING_PERCENT",{percent:D},"Downloading... "+D+"%")),publishedTimeText:void 0,thumbnailOverlays:a};t=void 0;D.videoEntity.publishedTimestampMillis&&
(t=new Date,V&&(t=new Date(V)),t=Z8(KXk(new Date(Number(D.videoEntity.publishedTimestampMillis)),t)));V=[];_.r("kevlar_woffle_badge_killswitch")||(V=[{metadataBadgeRenderer:{label:_.OT("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var K;D=Z8((K=D.videoEntity.localizedStrings)==null?void 0:K.viewCount);return Object.assign({},b?{shortViewCountText:void 0}:{shortViewCountText:D},b?{}:{publishedTimeText:t},{badges:V,thumbnailOverlays:a})};
BWA=function(D,t){D=D===void 0?_.yXR:D;switch(t.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:t.payload.playlistId,inviteLinkURL:t.payload.inviteLinkUrl};default:return D}};
DDk=function(D,t){D=D===void 0?_.zIu:D;switch(t.type){case "SET_CURRENT_FORM_ID":return t=t.payload.formId,D.currentFormId===t?D:{currentFormId:t,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var H=t.payload;t=H.groupId;H=H.command;if(D.currentFormId){var e=Object.assign({},D.commandsMap);e[t]=H;D=Object.assign({},D,{commandsMap:e})}return D;case "RESET_COMMAND_MAP":return Object.assign({},D,{commandsMap:{}});default:return D}};
HcK=function(D,t){D=D===void 0?_.tXV:D;switch(t.type){case "UPDATE_CANVAS_MODE":return Object.assign({},D,{currentMode:t.payload.currentMode});default:return D}};
VX3=function(D,t){D=D===void 0?_.evK:D;switch(t.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},D,{guideIsExpanded:t.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},D,{scrollAtTop:t.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},D,{guideIsVisibleButNotPersistent:t.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},D,{miniplayerIsActive:t.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},D,{singleOptionSurveyIsActive:t.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},D,{slimlineSurveyRatingSelectedIndex:t.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},D,{richGridMiniMode:t.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},D,{richGridItemsPerRow:t.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},D,{richGridSlimItemsPerRow:t.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},D,{richGridContainerWidth:t.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},D,{richGridStyle:t.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},D,{currentPageType:t.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},D,{inlinePreviewIsActive:t.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},D,{inlinePreviewIsEnabled:t.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},D,{darkModeIsEnabled:t.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
D,{miniplayerPlaybackState:t.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},D,{tabGesturesIsActive:t.payload});case "SET_ONLINE_STATUS":return Object.assign({},D,{isOnline:t.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},D,{chipBarIsSticky:t.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},D,{frostedGlassMode:t.payload});default:return D}};
bcD=function(){return _.r("kevlar_disable_theater_mode_persistence")?!1:_.lh("START_IN_THEATER_MODE")};
F2k=function(D,t){D=D===void 0?_.qd$:D;switch(t.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},D,{transcription:t.payload});case "SET_OVERLAY_STATE":return Object.assign({},D,{overlay:t.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return D}};
kGX=function(){return rZ(Object.assign({},{continuation:aMV,download:wwD,canvas:HcK,reportChannelAbuse:Zc6,share:sy6,talkToRecs:hv6,ui:VX3,voiceSearch:F2k,watch:GG8,ypc:ETA,shorts:K2V,radioButtonGroup:DDk,collabInviteLink:BWA},NBX))};
jyV=function(){return _.r("web_player_entities_middleware")?new Vk(kGX(),[TB8,cf$]):new Vk(kGX(),[TB8])};
_.b_=function(){$DV||($DV=jyV());return $DV};
ic6=function(D,t,H){if(D.length)return{titleText:_.wO(t!=null?t:_.OT("DOWNLOADS",void 0,"Downloads")),contents:D.map(function(e){var V=e.videoEntity;e={videoId:V.videoId,title:Z8(V.title),shortBylineText:Z8(e.channelEntity.title),thumbnail:V.thumbnail};var b=V.videoId?WH(_.b_().getState(),V.videoId):0;V.videoId&&H?e.navigationEndpoint=_.af(V.videoId,H,void 0,void 0,b):V.videoId&&(e.navigationEndpoint=cz8(V.videoId,b,V.lengthSeconds));V.lengthSeconds&&(e.thumbnailOverlays=NWX(V.lengthSeconds,b));return{playlistPanelVideoRenderer:e}}),
totalVideos:D.length}};
rf8=function(D){return(D=(0,_.J$.getValueByKeys)(D,"playlistId"))?{playlistId:D}:null};
OcV=function(){return{}};
UD3=function(D,t){return new _.c$(function(H,e){D.then(function(V){if(V){if(V=t(V))return H(V);e()}},e)})};
oTA=function(D){var t,H,e,V=(t=D.contents)==null?void 0:(H=t.twoColumnWatchNextResults)==null?void 0:(e=H.autoplay)==null?void 0:e.autoplay,b,a,w;t=(b=D.contents)==null?void 0:(a=b.twoColumnWatchNextResults)==null?void 0:(w=a.playlist)==null?void 0:w.playlist;return V&&t&&t.playlistId?{rawResponse:D,autoplayRenderer:V,playlistPanelRenderer:t,playlistId:t.playlistId}:null};
nTD=function(D){var t=t===void 0?"UNKNOWN_INTERFACE":t;if(D.length===1)return D[0];var H=PPV[t];if(H){H=new RegExp(H);for(var e=_.F(D),V=e.next();!V.done;V=e.next())if(V=V.value,H.exec(V))return V}var b=[];Object.entries(PPV).forEach(function(a){var w=_.F(a);a=w.next().value;w=w.next().value;t!==a&&b.push(w)});
H=new RegExp(b.join("|"));D.sort(function(a,w){return a.length-w.length});
e=_.F(D);for(V=e.next();!V.done;V=e.next())if(V=V.value,!H.exec(V))return V;return D[0]};
_.qF=function(D){return"/youtubei/v1/"+nTD(D)};
_.FO=function(D){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:D}}}}};
_.ah=function(D){return _.FO(_.H7(D))};
CPD=function(D,t){var H={mode:"NORMAL"};D&&(H.autoplayVideo=D.navigationEndpoint,H.nextButtonVideo=D.navigationEndpoint);t&&(H.previousButtonVideo=t.navigationEndpoint);return H};
Sd6=function(D,t,H){if(!H||!H.sets)return{sets:[CPD(D,t)]};var e=H.sets.find(function(a){return a.mode==="NORMAL"}),V=(0,_.J$.unsafeClone)(H);
if(!e)return V.sets.push(CPD(D,t)),V;if(!D)return H;e=_.J$.getValueByKeys.apply(null,[e].concat(_.A6(mDX)));var b=_.J$.getValueByKeys.apply(null,[D].concat(_.A6(MXD)));if(e===b)return H;V.sets=V.sets.filter(function(a){return a.mode!=="NORMAL"});
V.sets.push(CPD(D,t));return V};
XwV=function(D){return!!D.playlistPanelVideoRenderer&&!D.playlistPanelVideoRenderer.unplayableText};
fMV=function(D){return!!D.playlistPanelVideoRenderer&&!!D.playlistPanelVideoRenderer.title};
L2R=function(D,t){if(t.contents&&!(D>=t.contents.length)&&(D=t.contents.slice(D).find(XwV)))return D.playlistPanelVideoRenderer};
AfD=function(D,t){if(t.contents)return(t=t.contents.find(function(H){return!!H.playlistPanelVideoRenderer&&H.playlistPanelVideoRenderer.videoId===D}))?t.playlistPanelVideoRenderer:void 0};
gT$=function(D,t){return t.contents?t.contents.findIndex(function(H){return!!H.playlistPanelVideoRenderer&&H.playlistPanelVideoRenderer.videoId===D}):-1};
JfV=function(D,t){return t.contents?t.contents.findIndex(function(H){return!!H.playlistPanelVideoRenderer&&H.playlistPanelVideoRenderer.playlistSetVideoId===D}):-1};
YdD=function(D,t){D.contents&&t!==-1&&D.contents.splice(t,1).length===1&&D.totalVideos!==void 0&&(--D.totalVideos,delete D.videoCountText)};
_.lMV=function(D){var t=[];if(!D||!D.contents)return t;D=_.F(D.contents);for(var H=D.next();!H.done;H=D.next())H=H.value,H.playlistPanelVideoRenderer&&H.playlistPanelVideoRenderer.videoId&&t.push(H.playlistPanelVideoRenderer.videoId);return t};
_.vTk=function(D){if(D&&D.contents)return(D=D.contents.find(function(t){return!!t.playlistPanelVideoRenderer&&!!t.playlistPanelVideoRenderer.selected})||D.contents[D.currentIndex])?D.playlistPanelVideoRenderer:void 0};
pw$=function(D,t,H,e,V,b,a){V=V===void 0?!1:V;b=b===void 0?!1:b;a=a===void 0?!1:a;if(D.contents&&D.contents.length!==0){e&&(D.contents=D.contents.filter(e));e=D.contents.length;for(var w=0;w<e;w++){var h=D.contents[w].playlistPanelVideoRenderer;h&&(w===t?(b&&delete h.menu,h.indexText=_.H7("\u25b6")):V||D.isInfinite||h.indexText===void 0?delete h.indexText:h.indexText=_.H7((w+1+H).toString()))}D.currentIndex=t+H;a&&(delete D.videoCountText,D.totalVideos=e)}};
_.wn=function(D){D=dDV(D);if(D){var t=D.length;var H=-18%t;H<0&&(H=t+H);D=D.slice(t-H)+D.slice(0,t-H)}else D="";H="";for(t=0;t<D.length&&D[t]!==xDk;t++)H+=D[t];return H};
_.Rvk=function(D,t){var H=document.body;t=t===void 0?function(w){return w}:t;
var e,V=null;D=_.F(D);for(e=D.next();!e.done;e=D.next()){var b=e.value;e="div";b[2]&&(e=t(b[2]));e=document.createElement(e);V||(V=e);var a=b[0];b=b[1];a&&(e.id=t(a));if(b)for(b=_.F(b),a=b.next();!a.done;a=b.next())e.classList.add(t(a.value));H.appendChild(e);H=e}return[V,H]};
uhX=function(D,t){for(var H="",e=0;e<t;e++)H+=D.charAt(Math.floor(Math.random()*D.length));return H};
Z2=function(D){return uhX("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",D)};
sL=function(D){return uhX("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",D)};
hG=function(D){return uhX("0123456789",D)};
W2D=function(){var D=performance.now(),t=new Date;var H="2."+t.getFullYear()+String(t.getMonth()+1).padStart(2,"0")+String(t.getDate()).padStart(2,"0");for(var e,V=Math.floor(Math.random()*11)+15,b=[],a=0;a<V;a++)b.push(Math.floor(Math.random()*26476865)+24547720);e=b.join(",");var w=Z2(10),h=Z2(100),K=Z2(102),N=Z2(106),k=Z2(108),T=Z2(11),c=Z2(1140),U=Z2(123),S=Z2(14),L=Z2(16),J=Z2(1900),g=Z2(23),Q=Z2(26),u=Z2(34),R=Z2(397),I=Z2(44),tT=Z2(5),ZV=Z2(72),ED=Z2(74),o$=Z2(75),jV=Z2(88),i8=Z2(91),g6="rr2---sn-4g5lznez rr3---sn-q4fl6n66 rr4---sn-5hnekn7k rr3---sn-q4fl6nd6 rr1---sn-q4fl6nsl rr5---sn-q4fl6nsd rr4---sn-q4fl6nds rr2---sn-q4fl6nz6 rr1---sn-aigzrnld rr3---sn-q4fzene7 rr1---sn-q4flrnez rr2---sn-ntqe6n76 rr2---sn-5hnekn7z rr3---sn-q4fl6n6s rr1---sn-aigl6nzl rr2---sn-q4flrn7k rr4---sn-hgn7rnls rr3---sn-t0a7ln7d rr1---sn-q4fzen7s rr2---sn-aigl6ney".split(" ");
var Mu=g6[Math.floor(Math.random()*g6.length)];var LQ=(new Date("2010-01-01")).getTime();var DO=(new Date(LQ+Math.random()*((new Date).getTime()-LQ))).toISOString().split("T")[0];for(var fQ,yA=[],T4=0;T4<4;T4++)yA.push(Math.floor(Math.random()*100));fQ=yA.join(".");var Mw=Number(hG(5)),X6=Number(hG(6)),yZ=Number(hG(7)),kQ=Number(hG(9)),FX=hG(1),qw=hG(10),oB=hG(16),ZO=hG(19),Nw=hG(2),bY=hG(20),P_=hG(21),QV=hG(3),Zf=hG(4),ua=hG(5),$Q=hG(6),ia=hG(7),jf=hG(8),TH=hG(9);var Hv=uhX("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var EF=[sL(5),sL(5),sL(5)].join("%2C"),Sr=[hG(3),hG(5),hG(5)].join("%2C"),X9=sL(0),Yv=sL(1),d4=sL(10),Wt=sL(108),bM=sL(11),AZ=sL(12),z7=sL(13),AW=sL(14),hy=sL(15),s5=sL(16),W$=sL(17),nK=sL(18),Y3=sL(19),R$=sL(2),KQ=sL(20),NH=sL(22),SM=sL(23),ov=sL(24),c9=sL(266),kv=sL(3),fe=sL(30),$h=sL(34),G4=sL(35),nW=sL(36),gi=sL(4),vU=sL(40),vI=sL(43),IR=sL(47),wq=sL(5),CW=sL(6),Zy=sL(7),OX=sL(75),u8=sL(8),iY=sL(80),ct=sL(9),FF="https://www."+sL(12)+".com",h$={},Qo={},v1={},Q_={},on={},mw={},MU={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:e}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:H},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+sL(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:H},{key:"client.name",value:"WEB"},{key:"client.fexp",value:e}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:P_+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+sL(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:vU,ypcGetOfflineUpsellEndpoint:{params:iY}},trackingParams:G4+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&cnr="+Nw+"&ratebypass=yes&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&c=WEB&txp="+ia+"&n="+L+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:X6,width:640,height:360,lastModified:oB,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ia,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Sr+"&mn="+
EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&cnr="+Nw+"&ratebypass=yes&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&c=WEB&txp="+ia+"&n="+L+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Wt+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:X6,width:1280,
height:720,lastModified:oB,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ia,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+Sr+"&mn="+EF+"&ms="+
EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&gir="+kv+"&clen="+TH+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:yZ,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:TH,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:yZ,approxDurationMs:ia},{itag:248,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+Sr+"&mn="+EF+"&ms="+EF+"&mv="+
Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fwebm&ns="+ov+"&gir="+kv+"&clen="+TH+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:yZ,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:TH,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:yZ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ia},{itag:399,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+
Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&gir="+kv+"&clen="+TH+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:yZ,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:TH,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:yZ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ia},{itag:136,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+
Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&gir="+kv+"&clen="+TH+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:yZ,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:TH,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:X6,approxDurationMs:ia},{itag:247,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+Sr+"&mn="+
EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fwebm&ns="+ov+"&gir="+kv+"&clen="+TH+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:yZ,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:TH,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:X6,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ia},{itag:398,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+
Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&gir="+kv+"&clen="+TH+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:yZ,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:TH,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:X6,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ia},{itag:135,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+
Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:X6,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:X6,approxDurationMs:ia},{itag:244,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+Sr+"&mn="+
EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fwebm&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Wt+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:X6,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:X6,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ia},{itag:397,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+
Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:X6,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:X6,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ia},{itag:134,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+
Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:X6,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:X6,highReplication:!0,approxDurationMs:ia},{itag:243,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+
Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fwebm&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:X6,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:X6,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ia},{itag:396,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+
Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:X6,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:X6,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ia},{itag:133,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+
Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:X6,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:X6,approxDurationMs:ia},{itag:242,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+Sr+"&mn="+
EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fwebm&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:X6,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:X6,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ia},{itag:395,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+
Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:X6,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:X6,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ia},{itag:160,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+
Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:X6,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Mw,approxDurationMs:ia},{itag:278,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+Sr+"&mn="+
EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fwebm&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+k+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/webm; codecs="vp9"',bitrate:X6,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Mw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ia},{itag:394,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&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="+
Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=video%2Fmp4&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Mw,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Mw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:ia},{itag:140,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=audio%2Fmp4&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:X6,
initRange:{start:"0",end:"631"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:X6,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ia,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+
Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=audio%2Fwebm&ns="+ov+"&gir="+kv+"&clen="+ia+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'audio/webm; codecs="opus"',bitrate:Mw,initRange:{start:"0",end:"265"},indexRange:{start:QV,
end:Zf},lastModified:oB,contentLength:ia,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Mw,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ia,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=audio%2Fwebm&ns="+
ov+"&gir="+kv+"&clen="+ia+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'audio/webm; codecs="opus"',bitrate:Mw,initRange:{start:"0",end:"265"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:ia,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Mw,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:ia,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Mu+".googlevideo.com/videoplayback?expire="+qw+"&ei="+g+"&ip="+fQ+"&id=o-AF"+vI+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Sr+"&mn="+EF+"&ms="+EF+"&mv="+Yv+"&mvi="+FX+"&pl="+Nw+"&initcwndbps="+ia+"&siu="+FX+"&spc="+I+"&vprv="+FX+"&svpuc="+FX+"&mime=audio%2Fwebm&ns="+ov+"&gir="+kv+"&clen="+jf+"&dur="+jf+"&lmt="+oB+"&mt="+qw+"&fvip=3&keepalive="+kv+"&c=WEB&txp="+
ia+"&n="+s5+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+k,mimeType:'audio/webm; codecs="opus"',bitrate:X6,initRange:{start:"0",end:"265"},indexRange:{start:QV,end:Zf},lastModified:oB,contentLength:jf,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:X6,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:ia,audioSampleRate:"48000",audioChannels:2,
loudnessDb:-3.7800007}]},playerAds:[{playerLegacyDesktopWatchAdsRenderer:{playerAdParams:{showContentThumbnail:!0,enabledEngageTypes:"3,6,4,5,17,1"},gutParams:{tag:"\\4061\\ytpwmpu"},showCompanion:!0,showInstream:!0,useGut:!0}}],playbackTracking:{videostatsPlaybackUrl:{baseUrl:"https://s.youtube.com/api/stats/playback?cl="+TH+"&docid="+T+"&ei="+g+"&feature="+w+"&fexp="+X9+"&ns="+R$+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Yv+"&el="+d4+"&len="+Zf+"&of="+NH+
"&uga="+Nw+"&vm="+c9},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+TH+"&docid="+T+"&ei="+g+"&feature="+w+"&fexp="+X9+"&ns="+R$+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Yv+"&el="+d4+"&len="+Zf+"&of="+NH+"&uga="+Nw+"&vm="+c9},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+TH+"&docid="+T+"&ei="+g+"&feature="+w+"&fexp="+X9+"&ns="+R$+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
Yv+"&el="+d4+"&len="+Zf+"&of="+NH+"&uga="+Nw+"&vm="+c9},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+g+"&m="+jV+"&oid="+NH+"&plid="+L+"&pltype="+Zy+"&ptchn="+NH+"&ptk="+S+"&video_id="+T},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+TH+"&docid="+T+"&ei="+g+"&event="+AW+"&feature="+w+"&fexp="+X9+"&ns="+R$+"&plid="+L+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+Yv},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
s5+"&ver=2&cmt="+ua+"&fmt="+QV+"&fs="+FX+"&rt="+ua+"&lact="+QV+"&cl="+TH+"&mos="+FX+"&volume=100&cbrand="+wq+"&cbr="+CW+"&cbrver="+fQ+"&c=WEB&cver="+H+"&cplayer=UNIPLAYER&cos="+ct+"&cosver="+ia+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+Nw+"&len="+jf+"&fexp="+EF+"&feature=g-high-rec&afmt="+QV+"&muted=0&conn=1&docid="+T+"&ei="+g+"&plid="+L+"&vm="+sL(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
T+"&caps="+kv+"&opi="+TH+"&xoaf="+FX+"&hl="+R$+"&ip="+fQ+"&ipbits="+FX+"&expire="+qw+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+fQ+"&key="+kv+"&lang="+tT,name:{simpleText:bM},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+T+"&caps="+kv+"&opi="+TH+"&xoaf="+FX+"&hl="+R$+"&ip="+fQ+"&ipbits="+FX+"&expire="+qw+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+fQ+"&key="+kv+"&kind="+kv+"&lang="+R$,name:{simpleText:AZ},
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:bM,title:s5,lengthSeconds:"1155",keywords:[bM,W$,CW,Y3],channelId:ov,isOwnerViewing:!1,shortDescription:ct,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+nW+"G&rs="+$h,width:168,height:94},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+nW+
"G&rs="+$h,width:196,height:110},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+nW+"G&rs="+u,width:246,height:138},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+nW+"G&rs="+u,width:336,height:188},{url:"https://i.ytimg.com/vi/"+T+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:ia,author:z7,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:ia,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
NH+"/featured_channel.jpg?v="+u8,width:40,height:40}]},trackingParams:G4+"=",navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"/channel/"+ov,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ov}},channelName:z7,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:W$}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ov,showPreferences:!1,subscribedButtonText:{runs:[{text:ct}]},unsubscribedButtonText:{runs:[{text:d4}]},
trackingParams:G4+"=",unsubscribeButtonText:{runs:[{text:bM}]},serviceEndpoints:[{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ov],params:u8}},{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:vU,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:G4+"=",dialogMessages:[{runs:[{text:hy},
{text:u8},{text:W$}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:AW}]},serviceEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ov],params:u8}},accessibility:{label:hy},trackingParams:G4+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:u8}]},accessibility:{label:d4},
trackingParams:G4+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:AW}},unsubscribeAccessibility:{accessibilityData:{label:Y3}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:jf},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ov],
params:u8}},unsubscribeCommand:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ov],params:u8}},addToWatchLaterCommand:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:bM,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:bM}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+T+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+nW+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+T+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+bM,width:1280,
height:720},title:{simpleText:ct},description:{simpleText:nK},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+KQ,externalChannelId:ov,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:ia,category:"Travel & Events",publishDate:DO,ownerChannelName:z7,uploadDate:DO}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:ct},trackingParams:G4+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:vU,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:G4+"="}}],headerText:{simpleText:z7},icon:{infoCardIconRenderer:{trackingParams:G4+"="}},closeButton:{infoCardIconRenderer:{trackingParams:G4+"="}},trackingParams:G4+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:G4+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+bM+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:Hv,interpreterSafeUrl:(h$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+fe+".js",h$),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:AZ},{text:Y3,bold:!0}]},endpoint:{clickTrackingParams:vU,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:G4+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:hy}]},actionButton:{buttonRenderer:{text:{runs:[{text:Y3}]},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+T,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
T,target:"TARGET_NEW_WINDOW"}},trackingParams:G4+"="}},trackingParams:G4+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+ZV+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+ZV+"=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:ia,endMs:ia,title:{accessibility:{accessibilityData:{label:nK}},simpleText:CW},metadata:{simpleText:bM},callToAction:{simpleText:AW},dismiss:{simpleText:s5},endpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"/channel/"+ov,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ov}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:ct}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ov,showPreferences:!1,
subscribedButtonText:{runs:[{text:W$}]},unsubscribedButtonText:{runs:[{text:u8}]},trackingParams:G4+"=",unsubscribeButtonText:{runs:[{text:CW}]},serviceEndpoints:[{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ov],params:u8}},{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:vU,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:G4+
"=",dialogMessages:[{runs:[{text:z7},{text:AZ},{text:bM}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:wq}]},serviceEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ov],params:u8}},accessibility:{label:u8},trackingParams:G4+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:s5}]},
accessibility:{label:z7},trackingParams:G4+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:d4}},unsubscribeAccessibility:{accessibilityData:{label:bM}}}},trackingParams:G4+"=",isSubscribe:!0,id:bY}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+nW+"G&rs="+u,width:168,height:94},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+nW+"G&rs="+$h,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+nW+"G&rs="+u,width:246,height:138},{url:"https://i.ytimg.com/vi/"+T+"/hqdefault.jpg?sqp=-oaymwE"+nW+"G&rs="+u,width:336,height:188},{url:"https://i.ytimg.com/vi/"+T+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:ia,endMs:ia,title:{accessibility:{accessibilityData:{label:z7}},simpleText:nK},metadata:{simpleText:d4},endpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
bM,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:bM,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Mu+".googlevideo.com/videoplayback?source=youtube&oeis="+FX+"&c=WEB&oad="+Zf+"&ovd="+Zf+"&oaad="+ua+"&oavd="+ua+"&ocs="+QV+"&oewis="+FX+"&oputc="+FX+"&ofpcc="+FX+"&siu="+FX+"&msp="+FX+"&odepv="+FX+
"&id=o-AF"+vI+"&ip="+fQ+"&initcwndbps="+ia+"&mt="+qw+"&oweuc="+X9}}}}},trackingParams:G4+"=",id:bY,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:AZ}},simpleText:W$},style:"DEFAULT"}}]}}],startMs:ia,trackingParams:G4+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:FX,offsetEndMilliseconds:ua},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+TH+";dc_dbm_token="+k+";ord="+qw+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FX+";dc_rui="+FX+";dc_exteid="+bY+";dc_av="+QV+";dc_sk="+FX+";dc_ctype="+Nw+";dc_ref=http://www.youtube.com/video/"+bM+";dc_pubid="+FX+";dc_btype=23?gclid="+i8+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+FX+"&ns="+FX+"&event="+FX+"&device="+FX+"&content_v="+T+"&el="+d4+"&ei="+g+"&devicever="+H+"&bti="+ia+"&format="+$Q+"&break_type="+FX+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+FX+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+fQ+"&slot_pos="+FX+"&slot_len="+FX+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Sr+"&ad_len="+ua+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
bM+"&aqi="+g+"&ad_rmp="+FX+"&sli="+FX}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+
";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+$Q+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+ia+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&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"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&ctype="+QV+"&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"+
c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_engaged_view&ctype="+QV+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+$Q+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
TH+";dc_trk_cid="+TH+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FX+";ord="+TH+";dc_rui="+FX+";dc_exteid="+ZO+";dc_av="+FX+";dc_sk="+FX+";dc_ctype="+Nw+";dc_pubid="+FX+";dc_btype=3?gclid="+i8+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+K+"&sig="+SM+"&ad_cpn=[AD_CPN]&id="+CW+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+CW+"&dc_pubid="+FX+"&dc_exteid="+bY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+K+"&sig="+SM+"&ad_cpn=[AD_CPN]&id="+CW+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+FX},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+CW+"&avm="+FX+"&dc_pubid="+FX+"&dc_exteid="+
bY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&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="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
K+"&sig="+SM+"&ad_cpn=[AD_CPN]&id="+CW+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+FX},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+CW+"&dc_pubid="+FX+"&dc_exteid="+bY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+$Q+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+$Q+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:vU,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+
QV+"&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/"+T+"/mqdefault.jpg",width:320,height:180}]},trackingParams:G4+"="},trackingParams:G4+
"=",templatedCountdown:{templatedAdText:{text:z7,isTemplated:!0,trackingParams:G4+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:u8,isTemplated:!1,trackingParams:G4+"="},trackingParams:G4+"="}},trackingParams:G4+"=",skipOffsetMilliseconds:5E3}},trackingParams:G4+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:ct},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:G4+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:bM,isTemplated:!1,trackingParams:G4+"="},trackingParams:G4+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:hy,isTemplated:!0,trackingParams:G4+"="}},trackingParams:G4+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:vU,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Qo.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+R$+"&origin=www.youtube.com&ata_theme="+gi,Qo),trackingParams:G4+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:G4+"="}},hoverText:{runs:[{text:wq}]},trackingParams:G4+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+IR+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:G4+"="},headline:{text:hy,isTemplated:!1,trackingParams:G4+"="},description:{text:Zy,
trackingParams:G4+"="},actionButton:{buttonRenderer:{text:{simpleText:AZ},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+TH+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FX+";ord="+TH+";dc_rui="+FX+";dc_exteid="+bY+";dc_av="+FX+";dc_sk="+FX+";dc_ctype="+Nw+";dc_pubid="+FX+";dc_btype=3?gclid="+i8+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:G4+"="}},startMs:FX,trackingParams:G4+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:nK},elementId:Zy}},elementId:s5,trackingParams:G4+"=",legacyInfoCardVastExtension:W$,sodarExtensionData:{siub:u8,bgub:u8,scs:bM,bgp:W$},externalVideoId:bM,adLayoutLoggingData:{serializedAdServingDataEntry:KQ},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+IR+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:G4+"="},
headline:{text:AW,isTemplated:!1,trackingParams:G4+"="},description:{text:d4,isTemplated:!1,trackingParams:G4+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:gi},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+TH+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FX+";ord="+TH+";dc_rui="+FX+";dc_exteid="+
bY+";dc_av="+FX+";dc_sk="+FX+";dc_ctype="+Nw+";dc_pubid="+FX+";dc_btype=3?gclid="+i8+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+
FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:G4+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:G4+"="}},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+
TH+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FX+";ord="+TH+";dc_rui="+FX+";dc_exteid="+bY+";dc_av="+FX+";dc_sk="+FX+";dc_ctype="+Nw+";dc_pubid="+FX+";dc_btype=3?gclid="+i8+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+
U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:G4+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:G4+"="},abandonCommands:{commands:[{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&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="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+
FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:vU,commandExecutorCommand:{commands:[{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:AW,isTemplated:!1,trackingParams:G4+
"="},trackingParams:G4+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:KQ},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+ia+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"1ID7Gdwk2vV7OZ1A"}},
{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N1957659.127733GOOGLE-YOUTUBE/B29940965.366940103;dc_trk_aid="+TH+";dc_trk_cid="+TH+";ord="+qw+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FX+";dc_rui="+FX+";dc_exteid="+bY+";dc_av="+QV+";dc_sk="+FX+";dc_ctype="+Nw+";dc_ref=http://www.youtube.com/video/"+bM+";dc_pubid="+FX+";dc_btype=23?gclid="+i8+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+FX+"&ns="+FX+"&event="+FX+"&device="+FX+"&content_v="+T+"&el="+d4+"&ei="+g+"&devicever="+H+"&bti="+ia+"&format="+$Q+"&break_type="+FX+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+FX+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+fQ+"&slot_pos="+FX+"&slot_len="+FX+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Sr+"&ad_len="+ua+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+bM+"&aqi="+g+"&ad_rmp="+FX+"&sli="+FX}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+$Q+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+
Q+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+ia+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&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"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&ctype="+QV+"&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"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_engaged_view&ctype="+QV+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+$Q+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+K+"&sig="+SM+"&ad_cpn=[AD_CPN]&id="+
CW+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+CW+"&dc_pubid="+FX+"&dc_exteid="+bY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+K+
"&sig="+SM+"&ad_cpn=[AD_CPN]&id="+CW+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+FX},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+CW+"&avm="+FX+"&dc_pubid="+FX+"&dc_exteid="+bY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&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="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+K+"&sig="+SM+"&ad_cpn=[AD_CPN]&id="+CW+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+FX},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+CW+"&dc_pubid="+FX+"&dc_exteid="+bY+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+$Q+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+$Q+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+
QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&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/"+T+"/mqdefault.jpg",width:320,height:180}]},trackingParams:G4+"="},trackingParams:G4+"=",templatedCountdown:{templatedAdText:{text:Zy,isTemplated:!0,trackingParams:G4+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:KQ,isTemplated:!1,trackingParams:G4+"="},trackingParams:G4+"="}},
trackingParams:G4+"=",skipOffsetMilliseconds:5E3}},trackingParams:G4+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:AW},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:G4+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:u8,isTemplated:!1,trackingParams:G4+"="},trackingParams:G4+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:u8,
isTemplated:!0,trackingParams:G4+"="}},trackingParams:G4+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:vU,openPopupAction:{popup:{aboutThisAdRenderer:{url:(v1.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+R$+"&origin=www.youtube.com&ata_theme="+gi,v1),trackingParams:G4+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:G4+"="}},hoverText:{runs:[{text:nK}]},trackingParams:G4+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ED+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:G4+"="},headline:{text:W$,isTemplated:!1,trackingParams:G4+"="},description:{text:AW,trackingParams:G4+"="},actionButton:{buttonRenderer:{text:{simpleText:ct},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:G4+"="}},startMs:FX,trackingParams:G4+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:u8},elementId:z7}},elementId:z7,trackingParams:G4+"=",legacyInfoCardVastExtension:bM,sodarExtensionData:{siub:wq,bgub:hy,scs:wq,bgp:AZ},externalVideoId:bM,adLayoutLoggingData:{serializedAdServingDataEntry:bM},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ED+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:G4+"="},headline:{text:AZ,
isTemplated:!1,trackingParams:G4+"="},description:{text:u8,isTemplated:!1,trackingParams:G4+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Y3},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:G4+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:G4+"="}},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+
FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:G4+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:G4+"="},abandonCommands:{commands:[{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&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="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+Nw+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:vU,commandExecutorCommand:{commands:[{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:CW,isTemplated:!1,trackingParams:G4+"="},trackingParams:G4+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:KQ},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+FX+";dc_exteid="+bY+";met="+FX+";ecn"+FX+"="+FX+";etm1="+FX+";eid1="+
ia+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:KQ}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:AZ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ua,offsetEndMilliseconds:$Q},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+g+"&m_pos="+Nw+"&token=ALHj"+R+"&index="+FX+"&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="+H+"&m_pos_ms="+ua}},adSlotLoggingData:{serializedSlotAdServingDataEntry:nK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:$Q,offsetEndMilliseconds:$Q},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+g+"&m_pos="+QV+"&token=ALHj"+R+"&index="+FX+"&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="+
H+"&m_pos_ms="+$Q}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ct}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$Q,offsetEndMilliseconds:$Q},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+g+"&m_pos="+QV+"&token=ALHj"+R+"&index="+FX+"&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="+
H+"&m_pos_ms="+$Q}},adSlotLoggingData:{serializedSlotAdServingDataEntry:z7}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$Q,offsetEndMilliseconds:$Q},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+g+"&m_pos="+QV+"&token=ALHj"+R+"&index="+FX+"&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="+
H+"&m_pos_ms="+$Q}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ct}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$Q,offsetEndMilliseconds:Nw},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+g+"&m_pos="+QV+"&token=ALHj"+R+"&index="+FX+"&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="+
H+"&m_pos_ms="+$Q}},adSlotLoggingData:{serializedSlotAdServingDataEntry:z7}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Nw,offsetEndMilliseconds:Nw},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+g+"&m_pos="+Nw+"&token=ALHj"+R+"&index="+FX+"&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="+
H+"&m_pos_ms="+Nw}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ct}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ct,isTemplated:!1,trackingParams:G4+"="},description:{text:u8,isTemplated:!1,trackingParams:G4+"="},actionButton:{buttonRenderer:{text:{simpleText:bM},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
TH+";dc_trk_cid="+TH+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FX+";ord="+TH+";dc_rui="+FX+";dc_exteid="+bY+";dc_av="+FX+";dc_sk="+FX+";dc_ctype="+Nw+";dc_pubid="+FX+";dc_btype=3?gclid="+i8+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:G4+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+IR+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:G4+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+o$+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:G4+"="},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+TH+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FX+";ord="+TH+
";dc_rui="+FX+";dc_exteid="+bY+";dc_av="+FX+";dc_sk="+FX+";dc_ctype="+Nw+";dc_pubid="+FX+";dc_btype=3?gclid="+i8+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:G4+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:vU,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Q_.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+R$+"&origin=www.youtube.com&ata_theme="+gi,Q_),trackingParams:G4+"="}},popupType:"DIALOG"}},trackingParams:G4+"="}},hoverText:{runs:[{text:gi}]},trackingParams:G4+"="}},adVideoId:bM,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Y3},associatedCompositePlayerBytesLayoutId:s5}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:gi}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:gi,isTemplated:!1,trackingParams:G4+"="},description:{text:W$,isTemplated:!1,trackingParams:G4+"="},actionButton:{buttonRenderer:{text:{simpleText:Zy},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+
U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:G4+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+ED+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:G4+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+OX+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:G4+"="},navigationEndpoint:{clickTrackingParams:vU,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+
FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:G4+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:vU,openPopupAction:{popup:{aboutThisAdRenderer:{url:(on.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+R$+"&origin=www.youtube.com&ata_theme="+gi,on),trackingParams:G4+"="}},popupType:"DIALOG"}},trackingParams:G4+"="}},
hoverText:{runs:[{text:AW}]},trackingParams:G4+"="}},adVideoId:bM,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+bM+"&cid="+Q+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:bM},associatedCompositePlayerBytesLayoutId:s5}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ct}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:W$,
isTemplated:!1,trackingParams:G4+"="},description:{text:Zy,isTemplated:!1,trackingParams:G4+"="},actionButton:{buttonRenderer:{text:{simpleText:ct},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+TH+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FX+";ord="+TH+";dc_rui="+FX+";dc_exteid="+bY+";dc_av="+FX+";dc_sk="+FX+";dc_ctype="+
Nw+";dc_pubid="+FX+";dc_btype=3?gclid="+i8+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+
u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:G4+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+IR+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:G4+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+o$+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:G4+
"="},navigationEndpoint:{clickTrackingParams:vU,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+TH+";dc_trk_cid="+TH+";dc_dbm_token="+k+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+FX+";ord="+TH+";dc_rui="+FX+";dc_exteid="+bY+";dc_av="+FX+";dc_sk="+FX+";dc_ctype="+Nw+";dc_pubid="+FX+";dc_btype=3?gclid="+i8+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+c+"____________"+U+"AxAA&ase=2&num="+FX+"&cid="+Q+"&ad_cpn=%5BAD_CPN%5D&sig="+u+"&adurl="+FF+"&label=video_click_to_advertiser_site&ctype="+QV+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:G4+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:vU,openPopupAction:{popup:{aboutThisAdRenderer:{url:(mw.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+R$+"&origin=www.youtube.com&ata_theme="+gi,mw),trackingParams:G4+"="}},popupType:"DIALOG"}},trackingParams:G4+
"="}},hoverText:{runs:[{text:d4}]},trackingParams:G4+"="}},adVideoId:bM,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+c+"____________"+U+"AxAA&sigh="+T+"&cid="+Q+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:wq},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:s5}},adSlotLoggingData:{serializedSlotAdServingDataEntry:CW}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:fe,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:fe,command:{innertubeCommand:{clickTrackingParams:vU,ypcGetOfflineUpsellEndpoint:{params:iY}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:G4+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:qw,nanos:kQ}}}},q2$=JSON.stringify(MU),SW=performance.now()-D;return{objectRepresentation:MU,jsonRepresentation:q2$,generationTime:SW}};
IM3=function(D,t){if(D===t)return!0;if(!D||!t||typeof D!==typeof t)return!1;if(D instanceof Array&&t instanceof Array){if(D.length!==t.length)return!1;for(var H=0;H<D.length;H++)if(!IM3(D[H],t[H]))return!1;return!0}if(typeof D==="object"&&typeof t==="object"&&D&&t){for(H in D)if(!(H in t&&IM3(D[H],t[H])))return!1;for(var e in t)if(!(e in D))return!1;return!0}return!1};
_.EL=function(){if(!GK){GK=new $O(new QyV);var D=_.ZU("client_streamz_web_flush_count",-1);D!==-1&&(GK.invocationLimit=D)}return GK};
K_=function(D,t,H,e){if(D===t)return!0;if(Array.isArray(D)&&Array.isArray(t)){if(D.length!==t.length)return!1;for(var V=0;V<D.length;V++)if(!K_(D[V],t[V],H,e))return!1;return!0}if(D instanceof Set||t instanceof Set){if(D instanceof Set&&t instanceof Set){if(D.size!==t.size)return!1;e=_.F(D.values());for(V=e.next();!V.done;V=e.next())if(!t.has(V.value))return!1;return!0}return!1}if(D instanceof Function){if(e)return!0;D.name===""&&_.gT(Error("Nf"),"ERROR");return!1}if(D instanceof Date&&t instanceof
Date)return D.getTime()===t.getTime();if(D instanceof Object&&t instanceof Object){if(yfK(D)&&yfK(t))try{return D.equals(t)}catch(a){_.gT(Error("Of`"+a),"ERROR")}V=Object.getOwnPropertyNames(D).filter(function(a){return H?D[a]!==void 0:!0});
var b=Object.getOwnPropertyNames(t).filter(function(a){return H?t[a]!==void 0:!0});
if(V.length!==b.length)return!1;V=_.F(V);for(b=V.next();!b.done;b=V.next())if(b=b.value,!K_(D[b],t[b],H,e))return!1;return!0}return!1};
yfK=function(D){D=Object.getPrototypeOf(D).equals;return D instanceof Function&&D.length===1};
_.Dg$=function(){return _.Z(function(D){if(D.nextAddress==1)return BBK!==2?D.jumpTo(2):D.yield(zv3(),3);D.nextAddress!=2&&(BBK=D.yieldResult);return D.return(BBK)})};
_.eAk=function(){return _.Z(function(D){if(D.nextAddress==1)return _.r("ab_pl_man")?tL8!==2?D.jumpTo(2):D.yield(HoD(),3):D.return(1);D.nextAddress!=2&&(tL8=D.yieldResult);return D.return(tL8)})};
qxX=function(){return _.Z(function(D){if(D.nextAddress==1)return _.r("ab_fk_sk_cl")?VLR!==2?D.jumpTo(2):D.yield(boX(),3):D.return(1);D.nextAddress!=2&&(VLR=D.yieldResult);return D.return(VLR)})};
_.wJ8=function(){return _.Z(function(D){if(D.nextAddress==1)return _.r("ab_det_apb_b")?FyX!==2?D.jumpTo(2):D.yield(aGV(),3):D.return(1);D.nextAddress!=2&&(FyX=D.yieldResult);return D.return(FyX)})};
hAu=function(){var D;return _.Z(function(t){if(t.nextAddress==1)return t.yield(Promise.all([_.Dg$(),_.wJ8(),_.eAk(),qxX()]),2);if(t.nextAddress!=3)return ZoX()?t.return(!0):t.yield(_.sM3(),3);D=t.yieldResult;return t.return(D===0)})};
ZoX=function(){var D=!1,t=function(H,e){GI$.increment(e,H);H===0&&(D=!0)};
t(_.En3(),"j.s_");t(BBK,"f.i_");t(FyX,"a.b_");t(tL8,"p.m_");t(VLR,"i.f_");Ky6===2&&(Ky6=_.NtR(kIK));t(Ky6,"e.h_");_.r("ks_det_gpbl")||t(_.TtT(),"p.i_");_.r("ks_get_o_pp")||t(_.ckA(),"g.o_");_.r("ab_deg_unex_thr")||t(_.jMX(),"a.o_");t($g$,"s.t_");_.r("ab_det_sc_inj_enf")&&t(_.ioR(),"s.i_");t(rkA,"d.p_");t(_.Oo$(_.NF),"o.p_");t(_.Ug3()===0?0:_.on6(),"o.a_");return _.r("debug_sk_em_precheck")?!0:D};
nnV=function(){var D=[].concat(_.A6(Pk$));try{var t=W2D();D.push({jsonRepresentation:t.jsonRepresentation,objectRepresentation:t.objectRepresentation})}catch(H){D=[].concat(_.A6(Pk$))}return D};
Ck8=function(){var D=["adPlacements","adSlots"];try{return D.filter(function(){return!0}).length!==D.length?0:1}catch(t){return 0}};
_.ckA=function(){if(Ck8()===0)return 0;var D=W2D(),t=D.objectRepresentation,H=(0,_.J$.unsafeClone)(t),e=[];if(t&&typeof t==="object")for(var V in t)e.push(V);else return 4;D=D.objectRepresentation.adPlacements;if(!(D&&D.length>0))return 4;try{if(!IM3(e,Object.getOwnPropertyNames(t)))return 0}catch(b){return 0}return IM3(H,t)?1:0};
_.Oo$=function(D){if(!D||!D.length||typeof D==="string")return 0;for(var t=Object.getOwnPropertyNames(Object.prototype),H=0;H<D.length;H++)for(var e=_.wn(D[H]),V=_.F(t),b=V.next();!b.done;b=V.next())if(e===b.value)return 0;return 1};
mgX=function(D){var t=_.wn(D[1]);if(D[0]===null)return t;D=D[0];for(var H={},e=0;e<D.length;e++){var V=_.wn(D[e]);if(e===0)H[V]=t;else{var b={};b[V]=H;H=b}}return H};
_.Ug3=function(){for(var D=_.kg,t=0;t<D.length;t++){var H=mgX(D[t]),e=[];e.push(H);if(e.length===0)return 0}return 1};
_.on6=function(){for(var D=_.kg,t={},H=0;H<D.length;t={jA6:void 0},H++){var e=[mgX(D[H])];t.jA6=[];e.forEach(function(V){return function(b){V.jA6[V.jA6.length]=b}}(t));
if(t.jA6.length===0)return 0}return 1};
_.En3=function(){for(var D=_.F(nnV()),t=D.next();!t.done;t=D.next()){var H=t.value;t=H.jsonRepresentation;H=H.objectRepresentation;try{var e=JSON.parse(t);if(!K_(e,H,!1,!1))return 0}catch(V){return 0}}return 1};
_.ioR=function(){try{var D=_.hW("ab_det_sc_inj_val");D.length===1&&D[0]===""&&(D=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var t=document.querySelectorAll("script"),H=_.F(t),e=H.next();!e.done;e=H.next())for(var V=e.value,b=_.F(D),a=b.next();!a.done;a=b.next()){var w=a.value;t=void 0;if((t=V.textContent)==null?0:t.includes(w))return 0}}catch(h){return 4}return 1};
_.sM3=function(){var D,t,H,e,V,b,a;return _.Z(function(w){switch(w.nextAddress){case 1:_.$p(w,2),D=_.F(Pk$),t=D.next();case 4:if(t.done)return w.return(1);e=H=t.value;V=e.jsonRepresentation;b=e.objectRepresentation;return w.yield((new Response(V,{status:200})).json(),7);case 7:a=w.yieldResult;if(!K_(a,b,!1,!1))return w.return(0);t=D.next();w.jumpTo(4);break;case 2:return _.Pv(w),w.return(4)}})};
_.jMX=function(){try{btoa("abc")}catch(D){return 0}return 1};
zv3=function(){var D,t,H,e,V,b,a,w,h,K,N;return _.Z(function(k){switch(k.nextAddress){case 1:_.$p(k,2),D=_.F(nnV()),t=D.next();case 4:if(t.done)return k.return(1);e=H=t.value;V=e.jsonRepresentation;b=e.objectRepresentation;a=btoa(V);w="data:application/json;base64,"+a;h=new Request(w);Object.defineProperty(h,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(h,"method",{get:function(){return"POST"}});
Object.defineProperty(h,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(h,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(h,"body",{get:function(){return new ReadableStream}});
return k.yield(fetch(h),7);case 7:return K=k.yieldResult,k.yield(K.json(),8);case 8:N=k.yieldResult;if(!K_(N,b,!1,!1))return k.return(0);t=D.next();k.jumpTo(4);break;case 2:return _.Pv(k),k.return(4)}})};
_.NtR=function(D){if(!D||!D.length||typeof D==="string")return 0;for(var t=function(V){return _.wn(V)},H=2,e=0;e<D.length&&(H=_.MLV(_.Rvk(D[e],t)),H!==0);e++);
return H};
_.MLV=function(D){var t=_.F(D);D=t.next().value;t=t.next().value;try{var H=document.createElement("div");document.body.appendChild(H);var e=getComputedStyle(H).display;document.body.removeChild(H);if(e==="none")return 4;var V=getComputedStyle(t).display==="none"?0:1;document.body.removeChild(D);return V}catch(b){return 4}};
boX=function(){var D,t,H;return _.Z(function(e){D=new _.TK;t=document.createElement("button");t.classList.add("ytp-ad-skip-button");t.style.opacity="0";t.style.height="0px";t.style.width="0px";t.style.padding="0px";t.style.border="none";H=function(){t.parentElement&&t.parentElement.removeChild(t)};
t.onclick=function(){D.resolve(0);H()};
document.body.appendChild(t);setTimeout(function(){H();D.resolve(1)},50);
return e.return(D.promise)})};
HoD=function(){var D,t,H,e,V,b,a;return _.Z(function(w){D=new _.TK;t=document.createElement("ytd-player");try{document.body.prepend(t)}catch(h){return w.return(4)}H=function(){t.parentElement&&t.parentElement.removeChild(t)};
t.getElementsByTagName("div").length>0?e=t.getElementsByTagName("div")[0]:(e=document.createElement("div"),t.appendChild(e));V=document.createElement("div");e.appendChild(V);b=document.createElement("video");a=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"});b.src=_.JA(_.xh(a));b.ontimeupdate=function(){H();D.resolve(0)};
V.appendChild(b);b.classList.add("html5-main-video");setTimeout(function(){V.classList.add("ad-interrupting")},200);
setTimeout(function(){H();D.resolve(1)},5E3);
return w.return(D.promise)})};
Sxu=function(D){var t=W2D().objectRepresentation.playbackTracking;if(t){var H=[],e;H.push(t==null?void 0:(e=t.videostatsPlaybackUrl)==null?void 0:e.baseUrl);var V;H.push(t==null?void 0:(V=t.videostatsDelayplayUrl)==null?void 0:V.baseUrl);var b;H.push(t==null?void 0:(b=t.videostatsWatchtimeUrl)==null?void 0:b.baseUrl);var a;H.push(t==null?void 0:(a=t.ptrackingUrl)==null?void 0:a.baseUrl);var w;H.push(t==null?void 0:(w=t.qoeUrl)==null?void 0:w.baseUrl);var h;H.push(t==null?void 0:(h=t.atrUrl)==null?
void 0:h.baseUrl);t=_.F(H);for(H=t.next();!H.done;H=t.next())if((H=H.value)&&D.test(H))return H.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
XJT=function(D,t){var H,e;return _.Z(function(V){switch(V.nextAddress){case 1:H=[],e=0;case 2:if(!(e<3)){V.jumpTo(4);break}return V.yield(fetch(D,{cache:"no-store",method:t}).then(function(b){H.push(b.status)}).catch(function(){H.push(-1)}),3);
case 3:e++;V.jumpTo(2);break;case 4:return V.return(H)}})};
fGD=function(D){return D.domainLookupStart===0&&D.domainLookupEnd===0&&D.connectStart===0&&D.connectEnd===0};
LyT=function(D,t,H){H=H===void 0?"GET":H;var e,V,b,a,w,h,K,N,k,T;return _.Z(function(c){if(c.nextAddress==1)return c.yield(Promise.all([XJT(D,H),XJT(t,H)]),2);e=c.yieldResult;V=_.F(e);b=V.next().value;a=V.next().value;w=b;h=a;if(Math.min.apply(Math,_.A6(h))!==Math.max.apply(Math,_.A6(h))||Math.min.apply(Math,_.A6(w))!==Math.max.apply(Math,_.A6(w)))return c.return(2);if(Math.min.apply(Math,_.A6(h))===Math.min.apply(Math,_.A6(w)))return c.return(1);N=(K=performance.getEntriesByName(D))==null?void 0:
K[0];T=(k=performance.getEntriesByName(t))==null?void 0:k[0];return N&&T?fGD(T)?c.return(1):fGD(N)?c.return(0):c.return(1):c.return(2)})};
aGV=function(){var D;return _.Z(function(t){var H=[];var e;var V,b,a;(V=e=(V=W2D().objectRepresentation.streamingData)==null?void 0:(b=V.formats)==null?void 0:(a=b[0])==null?void 0:a.url)&&V&&!e.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(V=V.replace("initcwndbps","ctier=L&initcwndbps"),V=V.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),e={testUrl:V,baseUrl:e,method:"GET"}):e=void 0;e&&H.push(e);_.r("ab_net_tp_e")&&H.push({testUrl:_.VA.location.origin+"/ad_companion",baseUrl:_.VA.location.origin+
"/generate_204",method:"OPTIONS"});_.r("ab_fix_creator_view_cnt")&&(H.length=0,(e=Sxu(/api\/stats\/atr/))&&H.push({testUrl:_.VA.location.origin+e,baseUrl:_.VA.location.origin+"/generate_204",method:"OPTIONS"}));_.r("ad_net_pb_pbp")&&(e=Sxu(/api\/stats\/qoe/))&&H.push({testUrl:_.VA.location.origin+e,baseUrl:_.VA.location.origin+"/feed/download",method:"GET"});H=H.length!==0?H[Math.floor(Math.random()*H.length)]:void 0;return(D=H)?t.return(LyT(D.testUrl,D.baseUrl,D.method)):t.return(4)})};
_.TtT=function(){if(_.VA.jVo===void 0||_.VA.jVo===null||typeof _.VA.jVo!=="function")return 2;try{return _.VA.jVo()===!0?0:1}catch(D){return 0}};
AkR=function(D){switch(D){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.xv(D,"unknown result type")}};
_.gnk=function(D,t){var H=Number(_.YC("CATSTAT",0));if(t.tSr===void 0)return H;t=t.tSr;D=AkR(D);return H&~(3<<t)|D<<t};
Jk$=function(D){var t,H;if((D=(t=D.auxiliaryUi)==null?void 0:(H=t.messageRenderers)==null?void 0:H.bkaEnforcementMessageViewModel)&&D.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return D};
lGD=function(){for(var D=_.F(Object.values(_.Yx6)),t=D.next();!t.done;t=D.next())t=t.value,t.isAsync&&t.tSr&&_.JZ("CATSTAT",_.gnk(2,t))};
_.rn=function(D,t){D=_.c7("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",D);(t===void 0?0:t)?_.vnR(D,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.jo(_.$g(),D,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
dgD=function(){if(!pJV){if(Polymer.Base){var D=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{D.apply(this,arguments)}catch(k){_.vn(k)}};
var t=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{t.apply(this,arguments)}catch(k){_.vn(k)}};
var H=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{H.apply(this,arguments)}catch(k){_.vn(k)}};
var e=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{e.apply(this,arguments)}catch(k){_.vn(k)}};
var V=Polymer.Base._listen,b=new WeakMap;Polymer.Base._listen=function(k,T,c){var U=function(){try{c.apply(this,arguments)}catch(S){_.vn(S)}};
b.set(c,U);V.call(this,k,T,U)};
var a=Polymer.Base._unlisten;Polymer.Base._unlisten=function(k,T,c){a.call(this,k,T,b.get(c))}}if(Polymer.Async){var w=Polymer.Async,h=w._atEndOfMicrotask;
w._atEndOfMicrotask=function(){try{h.apply(w,arguments)}catch(k){_.vn(k)}}}if(Polymer.RenderStatus){var K=Polymer.RenderStatus,N=K.afterNextRender;
K.afterNextRender=function(k,T,c){N.call(K,k,function(){try{T.apply(this,arguments)}catch(U){_.vn(U)}},c)}}pJV=!0}};
_.RAD=function(D){var t=D?_.TW(D):"";if(t){if(t.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(t.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(t.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(t.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(t.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.r("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(t.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";t=t.toLowerCase();if(t==="/")return"home";if(t==="/channel_memberships")return"channel-memberships-shopfront";if(t.indexOf("/feed/trending")===0)return"trending";if(t.indexOf("/feed/explore")===0)return"explore";if(t.indexOf("/live")===0)return"live";if(t.indexOf("/results")===0)return"search";if(t.indexOf("/sports")===0)return"sports";if(t.indexOf("/fashion")===0||t.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(t))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(t))return _.r("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(t.indexOf("/channel/")===0||t.indexOf("/user/")===0||t.indexOf("/gaming")===0||t.indexOf("/post/")===0)return"channel";if(xgk(D))return"show";if(t==="/playlist"||t.indexOf("/playlist/")===0||t==="/view_play_list"||t.indexOf("/view_play_list/")===0||t.indexOf("/show/")===0)return"playlist";if(t==="/feed/companion_canvas")return"companion-canvas";if(t==="/feed/history"||
t.indexOf("/feed/history/")===0)return"history";if(t==="/new")return"labs";if(t==="/feed/subscriptions")return"subscriptions";if(t.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(t==="/history_controls")return"standalone";if(t.indexOf("/account")===0||t==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(t.indexOf("/paid_memberships")===0||t.indexOf("/refund")===0||t.indexOf("/purchases")===0||t.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(t.indexOf("/product")===
0)return"yts-products";if(t.indexOf("/premium")===0||t.indexOf("/musicpremium")===0)return t.indexOf("/premium/offers")===0||t.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(t==="/cart/checkout"||t==="/cart")return"ypc-checkout";if(t.indexOf("/feed/downloads")===0||t.indexOf("/redeem")===0||t.indexOf("/reporthistory")===0)return"browse";if(t.indexOf("/hashtag")===0)return"hashtag-landing-page";if(t.indexOf("/handle")===0)return"handle";if(t.indexOf("/source")===0)return"audio-pivot";if(t.search(RegExp("^/playables/(?!saved)."))===
0)return"mini_app";if(t.indexOf("/playables")===0)return"playables";if(t.indexOf("/create/live/join")===0)return"open-in-app";if(t.indexOf("/shorts")===0)return"shorts";if(t.indexOf("/feed/channels")===0)return"subscriptions-channels";(t=D?_.TW(D):"")&&t.indexOf("/watch")===0&&_.r("web_watch_enable_learning_journey")?(D=_.yc(D),D=!!D.list&&D.list.indexOf("LJPP")===0):D=!1;if(D)return"learning_journey_watch"}};
_.OL=function(D){var t,H;(D=(H=_.O(D==null?void 0:D.commandMetadata,_.i1))==null?void 0:H.url)&&(t=_.RAD(D));return t};
xgk=function(D){var t=D?_.TW(D):"";if(!t)return!1;t=t.toLowerCase();return t.indexOf("/show/")===0||t.indexOf("/playlist")===0&&(D=_.yc(D),D.list&&D.list.indexOf("EL")===0)?!0:!1};
P7=function(D){var t="unknown",H;var e=((H=_.O(D==null?void 0:D.commandMetadata,_.i1))==null?void 0:H.webPageType)||"";e?(H=e.toLowerCase(),H.startsWith("web_page_type_")&&(H=H.slice(14))):H=e;H&&unV[H.toUpperCase()]?t=unV[H.toUpperCase()]:_.O(D,_.UL)||_.O(D,WyA)?t="browse":_.O(D,_.oh)?t="search":_.O(D,_.Hh)&&(t="watch");t==="watch"&&_.OL(D||null)==="learning_journey_watch"&&(t="learning_journey_watch");t==="unknown"&&_.Yw(Error("Qf`"+JSON.stringify({clickTrackingParams:D==null?void 0:D.clickTrackingParams,
commandMetadata:D==null?void 0:D.commandMetadata,allEndpointKeys:Object.keys(D||[])})));return t};
_.n_=function(D){if(!_.IGD||D)_.IGD=_.U5();return _.IGD};
_.QMV=function(D){return!!_.O(D,_.Hh)||!!_.O(D,_.C_)&&_.r("kevlar_enable_shorts_prefetch")};
_.yk6=function(D,t){D=_.O(D,_.Hh)||_.O(D,_.C_);return"v"+D.videoId+(D.playlistId?"-pl"+D.playlistId:"")+(t?"-an1":"")+(D.params?"-pr"+D.params:"")};
mP=function(D){return function(){return new D}};
MF=function(D){var t=_.qS();return function(){return t.resolve(D)}};
zA3=function(D){var t=_.ZU("web_pbj_log_warning_rate",0);t=t>0&&Math.random()<t;if(!_.O(D,_.C_))return t&&_.Yw(Error("Tf")),!1;var H;return _.r("shorts_controller_retrieve_seedless_sequence_v2")&&((H=_.O(D,_.C_))==null?void 0:H.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:Btu(D)?!0:(t&&_.Yw(Error("Uf")),!1)};
Btu=function(D){var t=(_.O(D,_.Hh)||_.O(D,_.C_)).videoId;if(!t||!DY6.test(t))return!1;var H;return(D=(H=_.O(D.commandMetadata,_.i1))==null?void 0:H.url)&&(D.includes(t)||D.startsWith("/clip"))?!0:!1};
_.H86=function(){var D=_.Ph();return D.getFlag(192)?D.getFlag(190):!(_.r("web_watch_cinematics_disabled_by_default")||_.r("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&tCX())};
_.So=function(D,t,H){var e={};e.currentUrl=t;e.vis=D.vis!==void 0?D.vis:0;e.splay=!1;t=_.Ph();e.autoCaptionsDefaultOn=t.getFlag(66);t.getFlag(141)?t.getFlag(140)?e.autonavState="STATE_OFF":e.autonavState="STATE_ON":e.autonavState="STATE_NONE";e.html5Preference="HTML5_PREF_WANTS";isNaN(_.YC("STS"))||(e.signatureTimestamp=_.YC("STS"));D.autonav&&(e.autoplay=!0,e.autonav=!0);D.mutedAutoplay&&(e.autoplay=!0,e.mutedAutoplay=!0);D.inlinePlayback&&(e.autoplay=!0,e.autonav=!1,e.isInlineUnmutedPlayback=!!D.inlineUnmuted);
e.referer=H;e.lactMilliseconds=D.lact!==void 0?D.lact.toString():"-1";_.r("enable_unknown_lact_fix_on_html5")&&e.lactMilliseconds==="-1"&&_.Yw(new _.nZ("Unknown LACT is set in playbackContext.",{"lact in tempData":D.lact||"undefined",autonav:D.autonav||"undefined"}));D={};t.getFlag(194)&&(D.hasShownAmbientMode=!0);t.getFlag(192)&&(D.hasToggledOffAmbientMode=!0);_.H86()&&(D.watchAmbientModeEnabled=!0);e.watchAmbientModeContext=D;return e};
ezD=function(D){var t={},H=D.pbis||0;H&&(t.playbackBeginsInSeconds=H);D.prefetch_reason&&D.prefetch_reason==="hc_pbis"&&(t.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return t};
_.f_=function(D){D=D===void 0?!1:D;var t=_.Ph(),H="USER_INTERFACE_THEME_LIGHT";t.getFlag(165)?H="USER_INTERFACE_THEME_DARK":t.getFlag(174)?H="USER_INTERFACE_THEME_LIGHT":_.XO()&&(H="USER_INTERFACE_THEME_DARK");return D?H:VC3()||H};
_.b8V=function(){return!_.r("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.XO=function(){return _.b8V()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.L_=function(){var D=_.Ph();return _.b8V()&&!D.getFlag(165)&&!D.getFlag(174)};
VC3=function(){var D=D===void 0?window.location.href:D;if(_.r("kevlar_disable_theme_param"))return null;var t=_.TW(D);if(_.qb$(t))return"USER_INTERFACE_THEME_DARK";try{var H=_.yc(D).theme;return FZV.get(H)||null}catch(e){}return null};
_.qb$=function(D){return _.r("enable_dark_theme_only_on_shorts")?!(D==null||!D.startsWith("/shorts/")):!1};
_.Z8V=function(D,t,H,e,V){t=t===void 0?!1:t;H=H===void 0?!1:H;var b=_.YC("INNERTUBE_CONTEXT");if(!b)return _.gT(Error("Xf")),{};b=(0,_.J$.unsafeClone)(b);_.r("web_no_tracking_params_in_shell_killswitch")||delete b.clickTracking;b.client||(b.client={});var a=b.client;a.clientName==="MWEB"&&a.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(a.clientFormFactor=_.YC("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");a.screenWidthPoints=window.innerWidth;a.screenHeightPoints=window.innerHeight;a.screenPixelDensity=
Math.round(window.devicePixelRatio||1);a.screenDensityFloat=window.devicePixelRatio||1;a.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());a.userInterfaceTheme=_.f_();if(!t){var w=_.XHD();w&&(a.connectionType=w);_.r("web_log_effective_connection_type")&&(w=L1V())&&(b.client.effectiveConnectionType=w)}var h;if(_.r("web_log_memory_total_kbytes")&&((h=_.VA.navigator)==null?0:h.deviceMemory)){var K;h=(K=_.VA.navigator)==null?void 0:K.deviceMemory;b.client.memoryTotalKbytes=""+h*1E6}t&&e&&!_.r("web_it_context_set_original_url_ks")&&
(a.originalUrl=aZ8(_.VA.location.href,e).toString());_.r("web_gcf_hashes_innertube")&&(w=RdV())&&(K=w.coldConfigData,h=w.coldHashData,w=w.hotHashData,b.client.configInfo=b.client.configInfo||{},K&&(b.client.configInfo.coldConfigData=K),h&&(b.client.configInfo.coldHashData=h),w&&(b.client.configInfo.hotHashData=w));K=_.yc(_.VA.location.href);!_.r("web_populate_internal_geo_killswitch")&&K.internalcountrycode&&(a.internalGeo=K.internalcountrycode);!_.r("web_populate_client_screen_killswitch")&&V&&(a.clientScreen=
V);a.clientName==="MWEB"||a.clientName==="WEB"?(a.mainAppWebInfo||(a.mainAppWebInfo={}),a.mainAppWebInfo.graftUrl=e||_.VA.location.href,_.r("kevlar_woffle")&&_.AG.instance&&(e=_.AG.instance,a.mainAppWebInfo.pwaInstallabilityStatus=!e.appInstalledEventFired&&e.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),a.mainAppWebInfo.webDisplayMode=ggV(),a.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):a.clientName==="TVHTML5"&&
(!_.r("web_lr_app_quality_killswitch")&&(e=_.YC("LIVING_ROOM_APP_QUALITY"))&&(a.tvAppInfo=Object.assign(a.tvAppInfo||{},{appQuality:e})),e=_.YC("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(a.tvAppInfo=Object.assign(a.tvAppInfo||{},{certificationScope:e}));!_.r("web_populate_time_zone_itc_killswitch")&&(e=MRK())&&(a.timeZone=e);(e=BEV())?a.experimentsToken=e:delete a.experimentsToken;a=zLk();e=_.wpV();e=(0,_.J$.getValues)(e.tokenJars);b.request=Object.assign({},b.request,{internalExperimentFlags:a,consistencyTokenJars:e});
!_.r("web_prequest_context_killswitch")&&(a=_.YC("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(b.request.externalPrequestContext=a);e=_.Ph();a=e.getFlag(58);e=e.get("gsml","");b.user=Object.assign({},b.user);a&&(b.user.enableSafetyMode=a);e&&(b.user.lockedSafetyMode=!0);_.r("warm_op_csn_cleanup")?H&&(t=_.v3())&&(b.clientScreenNonce=t):!t&&(t=_.v3())&&(b.clientScreenNonce=t);D&&(b.clickTracking={clickTrackingParams:D});if(D=_.RD("yt.mdx.remote.remoteClient_"))b.remoteClient=D;_.gn.getInstance().setLocationOnInnerTubeContext(b);
try{var N=wH$(),k=N.bid;delete N.bid;b.adSignalsInfo={params:[],bid:k};for(var T=_.F(Object.entries(N)),c=T.next();!c.done;c=T.next()){var U=_.F(c.value),S=U.next().value,L=U.next().value;N=S;k=L;D=void 0;(D=b.adSignalsInfo.params)==null||D.push({key:N,value:""+k})}var J,g;if(((J=b.client)==null?void 0:J.clientName)==="TVHTML5"||((g=b.client)==null?void 0:g.clientName)==="TVHTML5_UNPLUGGED"){var Q=_.YC("INNERTUBE_CONTEXT");Q.adSignalsInfo&&(b.adSignalsInfo.advertisingId=Q.adSignalsInfo.advertisingId,
b.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",b.adSignalsInfo.limitAdTracking=Q.adSignalsInfo.limitAdTracking)}}catch(u){_.gT(u)}return b};
_.Yg=function(D,t,H){var e=H&&H>0?H:0;H=e?Date.now()+e*1E3:0;if((e=e?_.JG.getLocalStorage():_.JG.getSessionStorage())&&window.JSON){typeof t!=="string"&&(t=JSON.stringify(t,void 0));try{e.set(D,t,H)}catch(V){e.remove(D)}}};
_.l_=function(D){var t=_.JG.getSessionStorage(),H=_.JG.getLocalStorage();if(!t&&!H||!window.JSON)return null;try{var e=t.get(D)}catch(V){}if(typeof e!=="string")try{e=H.get(D)}catch(V){}if(typeof e!=="string")return null;try{e=JSON.parse(e,void 0)}catch(V){}return e};
_.v7=function(D){try{var t=_.JG.getSessionStorage(),H=_.JG.getLocalStorage();t&&t.remove(D);H&&H.remove(D)}catch(e){}};
_.swu=function(D){var t=new p_(_.YC("ONE_PICK_URL",""));t.urlParamMap_.set("hostId",D);(D=_.YC("GAPI_LOCALE"))&&t.urlParamMap_.set("hl",D);(D=_.YC("SESSION_INDEX"))&&t.urlParamMap_.set("authuser",D);(D=_.YC("DELEGATED_SESSION_ID"))&&t.urlParamMap_.set("groupId",D);return t};
GsV=function(){var D=_.qS(),t=D.resolve(_.dn);D=D.resolve(_.xg);return new hzA(t,D)};
KZD=function(D){if(window.IntersectionObserver)return new EDA(D,400);throw new TypeError("dg");};
ksu=function(){var D=Hammer.TouchAction,t=D.prototype.preventDefaults;D.prototype.preventDefaults=function(H){var e=this.actions.indexOf("pan-down")>-1;if(!e)return t.call(this,H);if(!N7D){var V=H.srcEvent;H=H.direction;var b;if((b=this.manager)==null?0:b.session.prevented)V.preventDefault();else if(e&&H&Hammer.DIRECTION_DOWN)return this.preventSrc(V)}}};
T7V=function(D){if(!D||D.size===0)return Hammer.DIRECTION_ALL;if(D.size===2){if(D.has("up")&&D.has("down"))return Hammer.DIRECTION_VERTICAL;if(D.has("right")&&D.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(D.size===1){if(D.has("up"))return Hammer.DIRECTION_UP;if(D.has("down"))return Hammer.DIRECTION_DOWN;if(D.has("right"))return Hammer.DIRECTION_RIGHT;if(D.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.jwA=function(){return crX?Promise.resolve(crX):new Promise(function(D,t){var H=self.indexedDB.open("swpushnotificationsdb");H.onerror=t;H.onsuccess=function(){var e=H.result;if(e.objectStoreNames.contains("swpushnotificationsstore"))crX=e,D(crX);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.jwA()};
H.onupgradeneeded=$YA})};
$YA=function(D){D=D.target.result;D.objectStoreNames.contains("swpushnotificationsstore")&&D.deleteObjectStore("swpushnotificationsstore");D.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
rrk=function(D){var t=i8V(),H;return _.Z(function(e){switch(e.nextAddress){case 1:return _.$p(e,2),e.yield(D.match(t,{cacheName:"yt-appshell-assets"}),4);case 4:H=e.yieldResult;_.yM(e,3);break;case 2:_.Pv(e);case 3:return e.return(H)}})};
i8V=function(){var D=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?O8R.registration.scope:UYX;D.endsWith("/")&&(D=D.slice(0,-1));return D+"/app_shell_home"};
oDV=function(D){D.map(function(t){return t.source}).join("|")};
_.PUT=function(D){return _.Z(function(t){return t.return(rrk(D))})};
nDA=function(){var D=window.caches,t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(_.PUT(D),2);t=H.yieldResult;return H.return(!!t)})};
LZV=function(){_.Z(function(D){if(D.nextAddress==1){if(CU3)return D.jumpTo(0);CU3=!0;if(_.r("enable_system_health_primes_monitoring"))return _.NS(mYD,3E4),MCV(),D.return();if(!(Math.random()<_.ZU("web_system_health_fraction")))return D.jumpTo(0);SbV={heightPixels:screen.height,widthPixels:screen.width};Rh&&!isNaN(Rh.jsHeapSizeLimit)&&(SbV.memoryTotalKbytes=String(Math.round(Rh.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(SbV.devicePixelRatio=window.devicePixelRatio);return D.yield(XpX(),4)}_.NS(mYD,
3E4);return D.yield(fZV(),0)})};
XpX=function(){return _.Z(function(D){if(D.nextAddress==1)return u_.intersectionObserverPresent="IntersectionObserver"in window,u_.serviceWorkerPresent="serviceWorker"in navigator,u_.webSharePresent="share"in navigator,u_.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,u_.cacheStoragePresent="caches"in window,u_.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,u_.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
u_.webkitTemporaryStoragePresent="webkitTemporaryStorage"in W7&&W7.webkitTemporaryStorage&&"queryUsageAndQuota"in W7.webkitTemporaryStorage,u_.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",D.yield(shk(),2);u_.indexedDbPresent=D.yieldResult;u_.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;u_.broadcastChannelPresent="BroadcastChannel"in window;u_.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(u_.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,u_.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.n2(D)})};
mYD=function(){var D=9E4+Math.random()*2E3;_.aR()>D||(_.r("enable_system_health_primes_monitoring")?MCV():fZV())};
fZV=function(){var D;return _.Z(function(t){if(t.nextAddress==1)return t.yield(ArV(),2);D=t.yieldResult;_.L7("systemHealthCaptured",D);_.n2(t)})};
MCV=function(){var D={metric:{}},t=gD8();t.networkEvents.length&&(D.metric.networkEvents=JrD(t));_.L7("systemHealthCaptured",D)};
ArV=function(){var D,t,H,e,V,b,a,w,h,K;return _.Z(function(N){switch(N.nextAddress){case 1:D={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};t=window.screen;_.r("enable_is_extended_monitoring")&&t&&"isExtended"in t&&(D.isExtended=!!t.isExtended);H={metric:{staticContext:SbV,dynamicContext:D,webMetric:Yb3,webApiSupport:u_}};
if(e=_.v3())H.csn=e;Rh&&(H.metric.webMetric.currentHeapKbytes=Math.round(Rh.usedJSHeapSize/1E3));window.matchMedia&&(H.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,H.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,H.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in W7&&typeof W7.getBattery==="function")){N.jumpTo(2);break}return N.yield(W7.getBattery(),3);case 3:if(V=
N.yieldResult)H.metric.dynamicContext.chargingStatus=V.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(H.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(u_.storageEstimatePresent)return N.yield(navigator.storage.estimate(),8);if(!u_.webkitTemporaryStoragePresent){N.jumpTo(5);break}return N.yield(lZT(),7);case 7:b=N.yieldResult;N.jumpTo(5);break;case 8:b=N.yieldResult;case 5:return H.metric.dynamicContext.deviceStorageQuotaMbytes=((a=b)==null?0:a.quota)?String(Math.round(b.quota/
1048576/10)*10):"-1",H.metric.dynamicContext.deviceStorageUsageMbytes=((w=b)==null?0:w.usage)?String(Math.round(b.usage/1048576/10)*10):"-1",h=H.metric.dynamicContext,N.yield(nDA(),9);case 9:return h.hasAppShell=N.yieldResult,K=gD8(),K.networkEvents.length&&(H.metric.networkEvents=JrD(K)),N.return(H)}})};
lZT=function(){return new Promise(function(D){var t;u_.webkitTemporaryStoragePresent&&(t=W7.webkitTemporaryStorage)!=null&&t.queryUsageAndQuota?W7.webkitTemporaryStorage.queryUsageAndQuota(function(H,e){D({usage:H,quota:e})}):D(void 0)})};
_.Ih=function(D){D&=16777215;D=[(D&16711680)>>16,(D&65280)>>8,D&255];return vDV(D[0],D[1],D[2])};
_.Qk=function(D){D=[(D&16711680)>>>16,(D&65280)>>>8,D&255,(D&4278190080)>>>24];var t=_.ppD(D,function(H){return H==(H&255)});
D[3]=(D[3]/255).toFixed(3);if(!t)throw Error("eg`"+D.join(","));return"rgba("+D.join(",")+")"};
_.dYR=function(D){return[(D&16711680)>>>16,(D&65280)>>>8,D&255]};
_.xYV=function(D){D=D.map(function(t){t/=255;return t<=.03928?t/12.92:Math.pow((t+.05)/1.05,2.4)});
return D[0]*.2126+D[1]*.7152+D[2]*.0722};
yk=function(D,t){D=_.dYR(D);return"rgba("+D[0]+", "+D[1]+", "+D[2]+", "+t+")"};
_.RzD=function(){try{return!!self.localStorage}catch(D){return!1}};
Qwu=function(){if(uD8())_.Yw(Error("fg"));else{var D=document.createElement("iframe");D.style.display="none";var t=t===void 0?window.location.href:t;var H=_.YV(_.YC("PERSIST_IDENTITY_IFRAME_URL"));t=H?H:(new URL(t)).host.indexOf("studio")===0?_.E5(WZR,"persist_identity"):_.E5(IZV,"persist_identity");_.hDV(D,1,t);D.id="persist_identity";var e;(e=document.body)==null||e.appendChild(D)}};
uD8=function(){var D=yrX;D||(D=document.querySelector("#persist_identity"));return D};
B7V=function(){var D=!1;try{D=!!window.sessionStorage.getItem("session_logininfo")}catch(t){D=!0}return(_.YC("INNERTUBE_CLIENT_NAME")==="WEB"||_.YC("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&D};
zzT=function(D,t){if(!B7V())return!1;t||(t=_.YC("LOGIN_INFO"));return t?(D.session_logininfo=t,!0):!1};
t_X=function(D,t){D=D===void 0?!1:D;if((t===void 0||!t)&&Di8!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.lh("LOG_STICKINESS",!1)){t=_.v3();var H=_.lo(),e={identityStickinessData:{initialState:Di8}};t&&H&&_.eR(t,H,e)}if(t=uD8())if(H=t.src?(new URL(t.src)).origin:"*",D){var V;(V=t.contentWindow)==null||V.postMessage({action:"clear"},H)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(D=window.sessionStorage.getItem("session_logininfo"))){var b;(b=t.contentWindow)==null||b.postMessage({loginInfo:D},H)}};
_.B7=function(D){D=D===void 0?!0:D;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.JZ("LOGIN_INFO",""),D&&window.sessionStorage.setItem("from_switch_account","1"),t_X(!0,D)}catch(t){}};
H0T=function(D){D&&(D.startsWith("https://accounts.google.com/AddSession")?_.B7():D.startsWith("https://accounts.google.com/ServiceLogin")?_.B7():D.startsWith("https://myaccount.google.com")&&_.IK(D).getPath().endsWith("/youtubeoptions")&&_.B7())};
zK=function(D,t){H0T(D);if(_.lh("LOGGED_IN",!0)&&B7V()){var H=YiA(D);H==null&&(H={});zzT(H,t)&&_.qJ(D,H)}};
eiK=function(){function D(t){for(t=t.target;t&&t.nodeName!=="A";)if(t=t.parentNode,!(t&&t instanceof HTMLElement))return;if(t&&!t.hasAttribute("download")&&t.getAttribute("rel")!=="external"&&t.href)return t.href}
document.addEventListener("mousedown",function(t){t.button!==0&&(t=D(t))&&zK(t)});
document.addEventListener("click",function(t){(t=D(t))&&zK(t)})};
qv$=function(){var D=new V_3;try{if(_.lh("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(w){D.increment(5,!1);return}if(_.YC("LOGIN_INFO")){var t=b08?b08:window.location;_.YC("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&Qwu();var H=YiA(t.href);H==null&&(H={});var e=H.session_logininfo,V=Number(window.sessionStorage.getItem("stickiness_reload")),b=e===_.YC("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
V>=2||b)V>=2?D.increment(2,b):b?D.increment(7,b):window.sessionStorage.getItem("session_logininfo")||(D.increment(3,b),Di8="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.YC("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.YC("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))D.increment(4,b),window.sessionStorage.removeItem("stickiness_reload");
else if(V<2){window.sessionStorage.setItem("stickiness_reload",String(V+1));var a=t.href;a=_.Fy(a,"sttick");zK(a,window.sessionStorage.getItem("session_logininfo"));a=_.Bn(a,{sttick:V});D.increment(V,b);_.TN$(t,a)}}else D.increment(6,!1)}else _.B7(!1)}catch(w){}};
_.D9=function(D,t,H,e,V){t=t===void 0?{}:t;H=H===void 0?"":H;e=e===void 0?window:e;D=_.z5(D,t);zK(D);H=_.dw(D+H,V);_.TN$(e.location,H)};
F8V=function(D){if(D.urlEndpoint){if(D=_.yc(D.urlEndpoint.url),D.adurl)return VM(D.adurl)}else if(D.watchEndpoint)return"//www.youtube.com/watch?v="+D.watchEndpoint.videoId;return null};
a6D=function(D){if(!D||!D.reportingPings)return null;var t={};D.reportingPings.forEach(function(H){H.pingType in t?t[H.pingType].push(H.url):t[H.pingType]=[H.url]});
return{adpings:g0X(t)}};
_.th=function(){return{isShellLoad:_.lh("IS_SHELL_LOAD",!1)}};
Z0D=function(){navigator.serviceWorker.getRegistrations().then(function(D){D.forEach(wVk)})};
wVk=function(D){D&&_.sgD(hi6,D.scope)};
_.sgD=function(D,t){t={scope:t||_.sa("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.X7(D),t)};
HT=function(D,t,H,e){if(t&&t.serializedYpcCujLoggingParams){if(H){var V={};V.transactionErrorType=H;e&&(V.errorMessage=e);t.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:V}}}H={};H.ypcCujContext=t;D=_.c7("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",D,H);_.jo(_.$g(),D,"FLOW_TYPE_YPC_ACQUISITION")}};
_.GgR=function(D,t,H,e){var V={};V.serializedTransactionFlowLoggingParams=t;H&&(V.errorType=H);e&&(V.errorMessage=e);_.L7(D,V);_.Ap()};
_.Esk=function(D){D&&_.GgR("transactionFlowStarted",D)};
_.K8D=function(D){D&&_.GgR("transactionFlowCancelled",D)};
_.eZ=function(D,t,H){t&&_.GgR("transactionFlowFailed",t,D,H)};
NdD=function(D){var t=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");t&&(t.inert=D)};
_.Vb=function(){this.megabloxUrl_=null};
_.bK=function(D){try{var t=kgV==null?void 0:kgV.composedPath(D)}catch(H){t=D.composedPath?D.composedPath():[]}return t&&t.length>0?t:D.composedPath?D.composedPath():[]};
_.qy=function(D){return _.bK(D)[0]};
_.Fd=function(D){if(!(D instanceof Element))return null;D=D.classList?Array.from(D.classList):void 0;if(!D)return null;var t=D.indexOf("style-scope");return t>-1&&t+1<D.length?D[t+1]:null};
a5=function(D){if(!(D instanceof HTMLElement))return null;var t=D&&(D.$$||D.polymerController)?D.tagName.toLowerCase():null;return t?t:_.Fd(D)};
TdA=function(D,t){return D.replace(/[^a-z]*[^\s]+/g,function(H){return H+".style-scope."+t})};
c9R=function(D,t){return t?D.split(",").map(function(H){return TdA(H.trim(),t)}).join(", "):D};
_.wx=function(D){var t,H,e,V;return(V=(e=(H=(t=D.root)!=null?t:D.shadowRoot)!=null?H:D.__shady_native_shadowRoot)!=null?e:D.__shady_shadowRoot)!=null?V:D};
Z9=function(D){return D instanceof ShadowRoot?ShadowRoot:D instanceof DocumentFragment?DocumentFragment:D instanceof Document?Document:HTMLElement};
jgX=function(D){var t,H,e;return(e=(H=(t=D.parentElement)!=null?t:D.__shady_native_parentElement)!=null?H:D.__shady_parentElement)!=null?e:null};
$i8=function(D){var t,H,e;return(e=(H=(t=D.parentNode)!=null?t:D.__shady_native_parentNode)!=null?H:D.__shady_parentNode)!=null?e:null};
i0V=function(D){var t,H,e;return(e=(H=(t=D.__shady_parentNode)!=null?t:D.__shady_native_parentNode)!=null?H:D.parentNode)!=null?e:null};
r9D=function(D){var t,H;return(H=(t=$i8(D))!=null?t:D.host)!=null?H:null};
O0T=function(D){var t,H,e;return(e=(H=(t=D.nextSibling)!=null?t:D.__shady_native_nextSibling)!=null?H:D.__shady_nextSibling)!=null?e:null};
UiD=function(D){var t,H,e;return(e=(H=(t=D.previousSibling)!=null?t:D.__shady_native_previousSibling)!=null?H:D.__shady_previousSibling)!=null?e:null};
osT=function(D){var t,H,e;return(e=(H=(t=D.nextElementSibling)!=null?t:D.__shady_native_nextElementSibling)!=null?H:D.__shady_nextElementSibling)!=null?e:null};
P4R=function(D){var t,H,e;return(e=(H=(t=D.previousElementSibling)!=null?t:D.__shady_native_previousElementSibling)!=null?H:D.__shady_previousElementSibling)!=null?e:null};
nsV=function(D){var t,H,e;return new Set([].concat(_.A6((t=D.children)!=null?t:[]),_.A6((H=D.__shady_native_children)!=null?H:[]),_.A6((e=D.__shady_children)!=null?e:[])))};
C4D=function(D){var t,H,e;return new Set([].concat(_.A6((t=D.childNodes)!=null?t:[]),_.A6((H=D.__shady_native_childNodes)!=null?H:[]),_.A6((e=D.__shady_childNodes)!=null?e:[])))};
miV=function(D){if(!D)return null;var t=_.Fd(D);if(!t){var H;return(H=Node.prototype.getRootNode)==null?void 0:H.call(D)}t=t.toUpperCase();for(D=jgX(D);D&&D.tagName!==t;)D=jgX(D);return D?_.wx(D):null};
M_D=function(D){for(;D&&!(D instanceof HTMLElement);)D=r9D(D);return D};
Svk=function(D){var t=M_D(D);return D===t?_.Fd(D):t?a5(t):null};
XVV=function(D){return(D=M_D(D))?a5(D):null};
f6X=function(D){if(D instanceof Comment)return!1;if(D instanceof Text){var t,H;if(((H=(t=D.textContent)==null?void 0:t.trim())!=null?H:"")==="")return!1}return!0};
ss=function(D,t,H){var e=t(D);for(H=H===void 0?XVV(D):H;e&&(Svk(e)!==H||!f6X(e));)D=e,e=t(D);return e};
L83=function(D,t,H){if(!t)return null;D=XVV(D);return Svk(t)===D&&f6X(t)?t:ss(t,H,D)};
A9D=function(D){return ss(D,i0V,_.Fd(D))};
gsD=function(D){return ss(D,osT)};
J9V=function(D){return ss(D,O0T)};
YvK=function(D){return ss(D,P4R)};
l6$=function(D){return ss(D,UiD)};
vsA=function(D){return L83(D,D.firstChild||D.__shady_native_firstChild||D.__shady_firstChild||null,O0T)};
pVR=function(D){var t,H,e;var V=(e=(H=(t=D.firstElementChild)!=null?t:D.__shady_native_firstElementChild)!=null?H:D.__shady_firstElementChild)!=null?e:null;return L83(D,V,osT)};
diV=function(D){var t,H,e;var V=(e=(H=(t=D.lastChild)!=null?t:D.__shady_native_lastChild)!=null?H:D.__shady_lastChild)!=null?e:null;return L83(D,V,UiD)};
xiR=function(D){var t,H,e;var V=(e=(H=(t=D.lastElementChild)!=null?t:D.__shady_native_lastElementChild)!=null?H:D.__shady_lastElementChild)!=null?e:null;return L83(D,V,P4R)};
RiV=function(D){var t=XVV(D);return Array.from(C4D(D)).filter(function(H){return Svk(H)===t})};
uok=function(D){var t=a5(D);return Array.from(nsV(D)).filter(function(H){return _.Fd(H)===t})};
_.hh=function(D,t,H){if(D instanceof HTMLElement&&_.Fd(D)===H){var e=Array.from(D.classList).indexOf("style-scope");if(e===-1)D.classList.add("style-scope"),D.classList.add(t);else if(!(e+1>=D.classList.length)){e=D.classList[e+1];var V,b;D==null||(V=D.classList)==null||(b=V.replace)==null||b.call(V,e,t)}}if(D instanceof HTMLElement||D instanceof DocumentFragment)for(V=_.F(nsV(D)),b=V.next();!b.done;b=V.next())_.hh(b.value,t,H);return D};
G1=function(D,t){if(D instanceof HTMLElement&&_.Fd(D)===t){var H=Array.from(D.classList).indexOf("style-scope");H===-1||H+1>=D.classList.length||D.classList.remove("style-scope",D.classList[H+1])}if(D instanceof HTMLElement||D instanceof DocumentFragment){H=_.F(D.children);for(var e=H.next();!e.done;e=H.next())G1(e.value,t)}return D};
_.W86=function(D,t){return Z9(D).prototype.appendChild.call(D,t)};
I6k=function(D,t){if(D===t)return!0;D=C4D(D);return Array.from(D).some(function(H){return I6k(H,t)})};
_.Kg=function(D,t){if(D instanceof Es)return D;(t==null?0:t.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(D,"ownerDocument")&&Object.defineProperty(D,"ownerDocument",{get:function(){return window.document}});
return new Es(D)};
y9K=function(){var D=Es.prototype,t=[].concat(_.A6(Qgu?[]:["getRootNode"]),["setAttribute","removeAttribute"]);t=_.F(t);for(var H=t.next(),e={};!H.done;e={method$jscomp$51:void 0},H=t.next())e.method$jscomp$51=H.value,D[e.method$jscomp$51]=function(V){return function(){return this.host[V.method$jscomp$51].apply(this.host,arguments)}}(e)};
zi$=function(){var D=Es.prototype,t=[].concat(_.A6(Qgu?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.A6(BdK?[]:["querySelector","querySelectorAll"]));t=_.F(t);for(var H=t.next(),e={};!H.done;e={method$jscomp$52:void 0},H=t.next())e.method$jscomp$52=H.value,D[e.method$jscomp$52]=function(V){return function(){return this.root[V.method$jscomp$52].apply(this.root,arguments)}}(e)};
H3$=function(){var D=Es.prototype,t=[].concat(_.A6(D5V?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.A6(t3$?[]:["parentNode"]));t=_.F(t);for(var H=t.next(),e={};!H.done;e={prop$jscomp$63:void 0},H=t.next())e.prop$jscomp$63=H.value,Object.defineProperty(D,e.prop$jscomp$63,{get:function(V){return function(){return this.host[V.prop$jscomp$63]}}(e),
configurable:!0})};
b3R=function(){var D=Es.prototype,t=["activeElement"].concat(_.A6(D5V?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.A6(e9K?[]:["children"]),_.A6(V3A?[]:["lastChild"]));t=_.F(t);for(var H=t.next(),e={};!H.done;e={prop$jscomp$64:void 0},H=t.next())e.prop$jscomp$64=H.value,Object.defineProperty(D,e.prop$jscomp$64,{get:function(V){return function(){return this.root[V.prop$jscomp$64]}}(e),
configurable:!0})};
qR6=function(){for(var D=Es.prototype,t=_.F(["innerHTML","textContent"]),H=t.next(),e={};!H.done;e={prop$jscomp$65:void 0},H=t.next())e.prop$jscomp$65=H.value,Object.defineProperty(D,e.prop$jscomp$65,{get:function(V){return function(){return this.root[V.prop$jscomp$65]}}(e),
set:function(V){return function(b){this.root[V.prop$jscomp$65]=b}}(e),
configurable:!0})};
FRu=function(D){var t=Es.prototype;D=_.F(Object.entries(D));for(var H=D.next(),e={};!H.done;e={fn$jscomp$402:void 0},H=D.next()){var V=_.F(H.value);H=V.next().value;V=V.next().value;e.fn$jscomp$402=V;t[H]=function(b){return function(){return b.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.A6(arguments)))}}(e)}};
wz6=function(){for(var D=Es.prototype,t=_.F(Object.entries(ar8)),H=t.next(),e={};!H.done;e={fn$jscomp$403:void 0},H=t.next()){var V=_.F(H.value);H=V.next().value;V=V.next().value;e.fn$jscomp$403=V;Object.defineProperty(D,H,{get:function(b){return function(){return b.fn$jscomp$403.apply(null,[this.host.node||this.host].concat(_.A6(arguments)))}}(e),
configurable:!0})}};
_.Ny=function(D){return D instanceof Z3T||D instanceof Document?D:new Z3T(D)};
si6=function(){for(var D=Z3T.prototype,t=_.F("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),H=t.next(),e={};!H.done;e={method$jscomp$53:void 0},H=t.next())e.method$jscomp$53=H.value,D[e.method$jscomp$53]=function(V){return function(){return HTMLElement.prototype[V.method$jscomp$53].call.apply(HTMLElement.prototype[V.method$jscomp$53],[this.node].concat(_.A6(arguments)))}}(e)};
h93=function(){for(var D=Z3T.prototype,t=_.F("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),H=t.next(),e={};!H.done;e={prop$jscomp$66:void 0},H=t.next())e.prop$jscomp$66=H.value,Object.defineProperty(D,e.prop$jscomp$66,{get:function(V){return function(){var b;return(b=this.node["__shady_native_"+V.prop$jscomp$66])!=null?b:this.node[V.prop$jscomp$66]}}(e),
configurable:!0})};
_.kL=function(D,t,H){H===void 0&&(H=!D.classList.contains(t));H?D.classList.add(t):D.classList.remove(t)};
_.T1=function(D,t,H){H===void 0&&(H=!D.hasAttribute(t));if(t==="class")throw Error("kg");H?_.Ny(D).setAttribute(t,""):_.Ny(D).removeAttribute(t)};
G_6=function(D){return(D.localName!=="slot"?[]:(0,_.cT)(D).assignedNodes({flatten:!0})).filter(function(t){return t.nodeType===Node.ELEMENT_NODE})};
_.ErT=function(D){return(D=_.Kg(D).querySelector("slot"))&&D.localName==="slot"?G_6(D):[]};
_.jZ=function(D,t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(D,t)};
$L=function(D,t){var H=t.bind(D);return function(e){H(e,e.detail)}};
_.iK=function(D,t){var H=KR$.get(D);H||(H=new WeakMap,KR$.set(D,H));if(H.has(t))return H.get(t);if(_.r("web_fi_listen_disable_bound_fn_helper")){var e=t.bind(D);D=function(V){e(V,V==null?void 0:V.detail)}}else D=$L(D,t);
H.set(t,D);return D};
TAV=function(D,t){NA3(D);D.created[k_T].push(t)};
NA3=function(D){if(!D.created||!D.created[k_T]){var t=D.created,H=t?[t]:[];D.created=function(){for(var e=_.F(H),V=e.next();!V.done;V=e.next())V.value.apply(this)};
D.created[k_T]=H}};
cDD=function(D){return function(){var t=_.RE.apply(0,arguments);return function(H,e,V){D.apply(null,_.A6(t))(H,e,V)}}};
jiV=function(){return function(){var D=_.RE.apply(0,arguments);return function(t,H,e){e0$.apply(null,_.A6(D))(t,H,e)}}};
_.C=function(D){return jiV()(D)};
_.m=function(){return cDD(aED).apply(null,_.A6(_.RE.apply(0,arguments)))};
_.rx=function(D){return _.r("pbcm_fi_listen_decorators")?$56(D):cDD(brR)(D)};
$56=function(D){return function(t,H){TAV(t,function(){var e=this[H],V=_.r("web_fi_listen_disable_bound_fn_helper")?function(b){e(b,b.detail)}.bind(this):$L(this,e);
i3k.has(D)?Jn(this.hostElement,D,V):this.hostElement.addEventListener(D,V)})}};
_.Os=function(){return cDD(Ff$).apply(null,_.A6(_.RE.apply(0,arguments)))};
_.M=function(D){D=D===void 0?{}:D;return cDD(VxV)(D)};
_.Us=function(D){if(D.hostElement&&D!==D.hostElement){var t=_.Xu(D.hostElement);t=D.renderIdom?t:t.shadowRoot}t||(D=D.root,t=D instanceof Node?_.Xu(D):null);return t};
_.o5=function(D){return rDk?O3R(D):function(t,H){Object.defineProperty(t,H,{get:function(){var e;return(e=_.Us(this))==null?void 0:e.querySelector(D)},
enumerable:!0,configurable:!0})}};
O3R=function(D){return function(t,H){Object.defineProperty(t,H,{get:function(){var e,V=(e=_.Kg(this.hostElement))==null?void 0:e.querySelector(D);if(V)return V;var b;return(b=_.Us(this))==null?void 0:b.querySelector(D)},
enumerable:!0,configurable:!0})}};
_.PT=function(D){return rDk?U5k(D):function(t,H){Object.defineProperty(t,H,{get:function(){var e;return(e=_.Us(this))==null?void 0:e.querySelectorAll(D)},
enumerable:!0,configurable:!0})}};
U5k=function(D){return function(t,H){Object.defineProperty(t,H,{get:function(){var e,V=(e=_.Kg(this.hostElement))==null?void 0:e.querySelectorAll(D);if(V==null?0:V.length)return V;var b;return(b=_.Us(this))==null?void 0:b.querySelectorAll(D)},
enumerable:!0,configurable:!0})}};
or6=function(D){return function(t){if(![_.Fu,_.X].includes(Object.getPrototypeOf(t.prototype).constructor))throw Error("lg");IyD(Object.assign({},typeof D!=="string"?D:{is:D,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(t)}};
_.Cg=function(){var D=D===void 0?{}:D;return function(t){if(![az,_.ng].includes(Object.getPrototypeOf(t.prototype).constructor))throw Error("mg");QS8(Object.assign({},D,{disableInheritanceCheck:!0}))(t)}};
nr$=function(D,t){PHA[D]!=null||(PHA[D]=new Set);PHA[D].add(t)};
_.mx=function(){var D=_.Os.apply(null,_.A6(_.RE.apply(0,arguments)));return function(t,H){nr$(t.is,H);D(t,H)}};
Xd=function(D,t,H){if(My(D)&&!CHX.has(t)){t=t.replace(/^JSC\$[\d]+_/,"");t=t.replace(/\.\d+(\.|$)/g,function(b,a){return".#"+a});
SZ[D]!=null||(SZ[D]={});var e,V;(e=SZ[D])[V=t]!=null||(e[V]=new Set);SZ[D][t].has(H)||(SZ[D][t].add(H),_.L7("polymerPropertyAccessEvent",{componentName:D,propertyName:t,accessType:H}))}};
m5A=function(){return _.r("polymer_property_access_logging_debug")||_.r("polymer_enable_property_access_logging")};
My=function(D){if(_.r("polymer_property_access_logging_debug"))return!0;if(!_.r("polymer_enable_property_access_logging"))return!1;M38||(M38=Date.now());return(Qi(D)+M38)%100<_.ZU("polymer_property_access_logging_percent")};
SRK=function(D,t){return My(t)&&D.hostElement.loggingStatus?new Proxy(D,{get:function(H,e,V){if(H.hostElement.loggingStatus.bypassProxyController)return H[e];H.hostElement.loggingStatus.isExternalGet=!0;var b=H[e];H.hostElement.loggingStatus.isExternalGet=!1;if(b instanceof Function)return function(){var a=_.RE.apply(0,arguments);try{return H.hostElement.loggingStatus.currentExternalCall=e,Xd(t,e,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),b.apply(this===V?H:this,a)}finally{H.hostElement.loggingStatus.currentExternalCall=
void 0}};
Xd(t,e,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return b},
set:function(H,e,V){if(H.hostElement.loggingStatus.bypassProxyController)return H[e]=V,!0;H.hostElement.loggingStatus.isRendererStamper?Xd(t,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):H.hostElement.loggingStatus.isDeclarativeExternal||Xd(t,e,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{H.hostElement.loggingStatus.currentExternalSet=e,H[e]=V}finally{H.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):D};
XzX=function(D,t){D&&D.loggingStatus&&!D.loggingStatus.isDeclarativeExternal&&!D.loggingStatus.isExternalGet&&D.loggingStatus.currentExternalSet!==t&&Xd(D.tagName.toLowerCase(),t,"PROPERTY_ACCESS_GET_INTERNAL")};
fg=function(D,t,H){D&&(H||D.loggingStatus&&!D.loggingStatus.isInitializing&&!D.loggingStatus.isDefiningPropertyAccessor&&D.loggingStatus.currentExternalSet!==t)&&Xd(D.tagName.toLowerCase(),t,"PROPERTY_ACCESS_SET_INTERNAL")};
fr$=function(){return{_definePropertyAccessor:function(D,t){var H=this,e=H.hostElement.loggingStatus;e&&(e.isDefiningPropertyAccessor=!0);var V=H[D];V!==void 0&&(H.__data?H._setPendingProperty(D,V):(H.__dataProto!=null||(H.__dataProto={}),H.__dataProto[D]=V));e&&(e.isDefiningPropertyAccessor=!1);Object.defineProperty(this,D,{get:function(){XzX(H.hostElement,D);return this.__data[D]},
set:function(b){t||this._setPendingProperty(D,b,!0)&&this._invalidateProperties()}})},
created:function(){var D=this._setPendingProperty.bind(this);this._setPendingProperty=function(t,H,e){fg(this.hostElement,t);return D.apply(this,[t,H,e])}}}};
LR3=function(D){m5A()&&_.C(Lg.prototype)(D.prototype,"__templateBindingLoggingBehavior")};
AD$=function(D,t){if(t.resolvedFactories.length!==D.resolvedFactories.length)return!0;t=_.F(t.resolvedFactories.entries());for(var H=t.next();!H.done;H=t.next()){var e=_.F(H.value);H=e.next().value;e=e.next().value;if(e.providerClass){if(e.providerClass!==D.resolvedFactories[H].providerClass)return!0}else if(e.providerValue){if(e.providerValue!==D.resolvedFactories[H].providerValue)return!0}else if(e.factory!==D.resolvedFactories[H].factory)return!0}return!1};
gr$=function(D,t){D=_.F(D);for(var H=D.next();!H.done;H=D.next())if(H=H.value,H.constructor===Array)gr$(H,t);else{var e=t;e.has(H)||(H.inject&&e.add(H),H.behaviors&&gr$(H.behaviors,e))}};
Ah=function(D,t){var H=D[t];D[t]=function(){var e=_.RE.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(H)return H.apply(this,e)}};
vrD=function(){_.gx.Class=function(H,e){H=JDV(H,e);Ah(H.prototype,"created");return H};
Ah(lK.prototype,"_initializeProperties");Ah(_.vT.prototype,"_initializeProperties");if(YRD)Ah(lr3,"created");else{var D=function(){Ah(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))D();else{var t=customElements.define;customElements.define=function(H,e,V){t.call(customElements,H,e,V);H==="tp-yt-iron-list"&&(D(),customElements.define=t)}}}};
d5D=function(D,t){D.prototype.behaviors=D.prototype.behaviors||[];D.prototype.behaviors.unshift(pzX.InjectBehavior);D.prototype.provide=t};
_.xL=function(D){return function(t){if(!D.disableElementRegistration){D.noInjection||d5D(t,D.providers);var H=t.prototype;H.__templateHelpers||e0$(pg.prototype)(H,"__templateHelpers");H=D.is;x56||(x56=Date.now());(Qi(H)+x56)%100<_.ZU("polymer_log_prop_change_observer_percent")&&e0$(dx.prototype)(t.prototype,"__propertyObserverObserver");t.prototype.behaviors=t.prototype.behaviors||[];t.prototype.behaviors.unshift(_.R9K.YtHostElementBehavior);LR3(t);or6({is:D.is,notifyObserversOnUndefined:D.notifyObserversOnUndefined!==
!1,fastInit:D.fastInit,template:D.template,disableEnforceFastDefaultValuesCheck:!0})(t)}}};
_.Y=function(D){return _.xL({is:D.is,template:D.template,disableElementRegistration:D.disableElementRegistration,cssBuildOptOut:D.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
IrV=function(D,t){if(uiA){D=new D;for(var H=_.F(Object.getOwnPropertyNames(D)),e=H.next();!e.done;e=H.next())e=e.value,t[e]=D[e];for(H=t;H&&H!==Object.prototype;H=Object.getPrototypeOf(H)){e=_.F(Object.getOwnPropertyNames(H));for(var V=e.next();!V.done;V=e.next())V=V.value,D.hasOwnProperty(V)||Object.defineProperty(D,V,WR8(t,V))}}else D.apply(t)};
WR8=function(D,t){return{get:function(){var H=D[t];return H instanceof Function?H.bind(D):H},
set:function(H){D[t]=H}}};
yDK=function(D,t){for(var H=D._noAccessors,e=_.F(Object.getOwnPropertyNames(D)),V=e.next();!V.done;V=e.next())if(V=V.value,!Qi3.has(V))if(H)t[V]=D[V];else{var b=Object.getOwnPropertyDescriptor(D,V);b&&(b.configurable=!0,Object.defineProperty(t,V,b))}};
BAV=function(D,t,H){return function(e){if(H){var V=H();e.model=V}if(D[t])D[t](e,e.detail)}};
R5=function(D){var t=[];if(typeof D==="string")D.length>0&&t.push.apply(t,_.A6(D.split(".")));else{D=_.F(D);for(var H=D.next();!H.done;H=D.next())H=H.value,typeof H==="string"?t.push.apply(t,_.A6(H.split("."))):t.push(H)}return t};
z9X=function(D,t){if(t[t.length-1]!=="*"&&t[t.length-1]!=="splices"){for(var H=0;H<t.length;H++){if(!D)return;D=D[t[H]]}return D}};
DnR=function(D,t){if(D.length>t.length)return!1;for(var H=0;H<D.length;H++)if(D[H]!==t[H])return!1;return!0};
HFk=function(D,t,H){if(t.type==="compute"){var e=t.getter.bind(H);var V=t.args}else e=function(){return H[t.method.methodName].apply(H,_.A6(_.RE.apply(0,arguments)))},V=t.method.args;
t9X(D,t.propertyKey,e,V,t.value)};
V9T=function(D,t){if(t.readOnly){var H=Object.getOwnPropertyDescriptor(D.model,t.propertyKey);Object.defineProperty(D.model,t.propertyKey,{get:H.get,set:function(){}});
D.model[e1$(t.propertyKey)]=H.set}};
bFA=function(D,t,H){if(H){var e=t.propertyKey,V=t.selector;t=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.A6(t.selectorArgs.map(function(b){return{type:"path",path:b}})));
t9X(D,e,function(b){var a=_.RE.apply(1,arguments);return V.apply(null,[H.getState()].concat(_.A6(a)))},t)}};
FaR=function(D,t,H){var e=_.UW(t.propertyKey)+"-changed";qo3(D,function(V){var b={value:V.value,queueProperty:!0};V.path.split(".").length>1&&(b.path=V.path);H.dispatchEvent(new CustomEvent(e,{detail:b}))},[{type:"wildcard",
path:t.propertyKey}])};
aJD=function(D,t,H){qo3(D,function(){H[t.method.methodName].apply(H,_.A6(_.RE.apply(0,arguments)))},t.method.args)};
e1$=function(D){return"_set"+(D.charAt(0).toUpperCase()+D.slice(1))};
wWA=function(){var D,t=X2(function(H){D=H},!1);
return[D,t]};
EEk=function(D){D=D.trim().replace(ZFK,",").replace(s9$,"$1");var t=D[0];t==="-"&&(t=D[1]);if(t>="0"&&t<="9")return{type:"literal",value:Number(D)};if(t==="'"||t==='"')return{type:"literal",value:D.slice(1,-1)};if(t=D.match(h18)){t=t[1];var H=GSD[t];if(H)return{type:H,path:D.slice(0,-(t.length+1))}}return{type:"path",path:D}};
T9D=function(D){var t=D.match(Ka3);if(t)return D={methodName:t[1],args:N9$},t[2].trim()&&(t=t[2].replace(kSA,"&comma;").split(","),D.args=t.map(EEk)),D};
ciV=function(D,t,H,e){e=e===void 0?!1:e;t=_.UW(t);var V=oC;V&&(H=V(H,t,"attribute",D));uK(D,H,t,e)};
uK=function(D,t,H,e){t=j9$(t,e===void 0?!1:e);t===void 0?D.removeAttribute(H):D.setAttribute(H,t)};
j9$=function(D,t){switch(typeof D){case "object":case "function":if(D instanceof Date)return D.toString();if(D){if((t===void 0?0:t)&&!_.r("polymer_reflect_objects_as_boolean_killswitch"))return D?"":void 0;t=window.trustedTypes?window.trustedTypes.isHTML(D)||window.trustedTypes.isScript(D)||window.trustedTypes.isScriptURL(D):void 0;if(t)return D;try{return JSON.stringify(D)}catch(H){_.Yw(Error("Ig`"+D))}}break;case "boolean":return D?"":void 0;default:return D!==null&&D!==void 0?D.toString():void 0}};
$nV=function(D){if(D===void 0)throw Error("Jg");return D};
oET=function(D,t,H,e){var V=iFV(e);if(V.length){e=H;var b="property";riV.test(H)?b="attribute":H[H.length-1]==="$"&&(H=H.slice(0,-1),b="attribute");var a=OF$(V);a&&b==="attribute"&&(H==="class"&&D.hasAttribute("class")&&(a+=" "+D.getAttribute(H)),uK(D,a,H));b==="attribute"&&e==="disable-upgrade$"&&D.setAttribute("disable-upgrade","");D.localName==="input"&&e==="value"&&D.setAttribute("value","");D.removeAttribute(e);b==="property"&&(H=_.oz(H));t=$nV(t);UnX(t,b,H,V);return!0}return H.slice(0,3)===
"on-"?(D.removeAttribute(H),(b=t).events!=null||(b.events=[]),t.events.push({name:H.slice(3),value:e}),!0):H==="id"?(t.id=e,!0):!1};
iFV=function(D){for(var t=[],H=0,e;(e=PrT.exec(D))!==null;){e.index>H&&t.push({type:"literal",value:D.slice(H,e.index)});var V=e[1][0];H=!!e[2];e=e[3].trim();if(V==="{")throw Error("Kg");(V=T9D(e))?t.push({type:"method",negate:H,signature:V}):t.push({type:"path",negate:H,path:e});H=PrT.lastIndex}H&&H<D.length&&(D=D.substring(H))&&t.push({type:"literal",value:D});return t};
OF$=function(D){for(var t="",H=0;H<D.length;H++){var e=D[H];e.type==="literal"&&(t+=e.value)}return t};
UnX=function(D,t,H,e){D.bindings!=null||(D.bindings=[]);D.bindings.push({kind:t,target:H,parts:e})};
SoD=function(D,t,H){var e=!1;if(D.localName==="template"){e=H;var V=t.stripWhitespace;V=nED(D,V===void 0?!1:V);var b=D.content.ownerDocument.createDocumentFragment();V.content=b;b.appendChild(D.content);e&&(e.templateInfo=V);e=!0}else D.localName==="slot"&&(t.hasInsertionPoint=!0);if(D.firstChild&&(V=H,D.localName!=="script"&&D.localName!=="style")){b=0;for(var a=D.firstChild;a;){var w=a;if(w.localName==="template"){var h=w.getAttribute("is");if((a=h==="dom-if")||h==="dom-repeat"){w.removeAttribute("is");
h=w.ownerDocument.createElement("ps-"+h);w.parentNode.replaceChild(h,w);h.appendChild(w);var K=Array.from(w.attributes);K=_.F(K);for(var N=K.next();!N.done;N=K.next())N=N.value,a?CrV.has(N.name)&&uK(h,N.value,N.name):mnX.has(N.name)?uK(h,N.value,N.name):M9V.has(N.name),w.removeAttribute(N.name);a=h}else a=w}if(a.nodeType===Node.TEXT_NODE){w=void 0;h=D;for(K=a;((w=K.nextSibling)==null?void 0:w.nodeType)===Node.TEXT_NODE;)N=void 0,(N=K).textContent!=null||(N.textContent=""),K.nextSibling.textContent&&
(K.textContent+=K.nextSibling.textContent),h.removeChild(K.nextSibling);if(t.stripWhitespace&&a.textContent&&!a.textContent.trim()){D.removeChild(a);a=a.nextSibling;continue}}SoD(a,t,{parentIndex:b,parentInfo:V});a.parentNode&&b++;a=a.nextSibling}}var k;if((k=D.hasAttributes)==null?0:k.call(D)){k=H=$nV(H);V=!1;b=Array.from(D.attributes);b=_.F(b);for(w=b.next();!w.done;w=b.next())w=w.value,V=oET(D,k,w.name,w.value)||V;e=V||e}D.nodeType===Node.TEXT_NODE&&(k=iFV(D.textContent),k.length&&(D.textContent=
OF$(k)||" ",H=$nV(H),UnX(H,"text","textContent",k),e=!0));H&&e&&(H.infoIndex=t.nodeInfoList.push(H)-1)};
nED=function(D,t){t={nodeInfoList:[],stripWhitespace:(t===void 0?!1:t)||D.hasAttribute("strip-whitespace")};SoD(D.content,t);return t};
XWA=function(D){Object.assign(D,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
La8=function(D,t,H){t.signalCache!=null||(t.signalCache={});var e=t.signalCache[H];if(!e){var V=H.split(".");e=!fJV(D,V[0]);if(V.length>1&&e){var b=D.getPathMutationSignal(V);e=function(){var a=AL(D.owner,function(){return D.getWithPath([V[0]])}),w,h=(w=b())==null?void 0:w.value;
return{rootWasDefined:a!==void 0,value:h}}}else e=function(){var a=D.getWithPath(V);
return{rootWasDefined:a!==void 0,value:a}};
t.signalCache[H]=e}return e()};
gED=function(D,t,H,e,V){t=t.parts.map(function(a,w){if(a.type==="literal"){H.partWasDefined!=null||(H.partWasDefined=[]);var h;(h=H.partWasDefined)[w]||(h[w]=a.value!==void 0);return a.value}var K;if(a.type==="method"){var N,k=(N=(K=H.partWasDefined)==null?void 0:K[w])!=null?N:!1;k||(k=a.signature.args.every(function(U){return U.type==="literal"}));
var T=!1,c=!0;K=a.signature.args.map(function(U){if(U.type==="literal")return U.value;if(U.type!=="path")throw Error("Lg`"+U.type);var S=La8(D,H,U.path);U=S.value;S=S.rootWasDefined;T||(T=S);c&&(c=S);return U});
k||(k=V===1?c:T);H.partWasDefined!=null||(H.partWasDefined={});H.partWasDefined[w]=k;if(!k)return;K=(w=La8(D,H,a.signature.methodName).value)&&typeof w==="function"?w.apply(e,K):void 0}else N=La8(D,H,a.path),K=N.value,H.partWasDefined!=null||(H.partWasDefined={}),(k=H.partWasDefined)[w]||(k[w]=K!==void 0||N.rootWasDefined);a.negate&&(K=!K);return K});
if(t.length===1){var b;return((b=H.partWasDefined)==null?0:b[0])?t[0]:Ai6}return t.join("")};
Jik=function(D){return typeof D==="object"&&!!D&&"notifyPath"in D&&"canNotifyPath"in D};
Yo$=function(D){return typeof D==="object"&&!!D&&"notifyPath"in D};
lJ3=function(D){return"polymerController"in D};
vEX=function(D,t){t=""+R5(t)[0];if(Jik(D))return D.canNotifyPath(t);if(lJ3(D)&&Jik(D.polymerController))return D.polymerController.canNotifyPath(t);if(Yo$(D)){var H;return!((H=D.properties)==null||!H[t])}if(lJ3(D)&&Yo$(D.polymerController)){var e;return!((e=D.polymerController.properties)==null||!e[t])}return!1};
pWR=function(D,t,H){Jik(D)||Yo$(D)?D.notifyPath(t,H):lJ3(D)&&(Jik(D.polymerController)||Yo$(D.polymerController))&&D.polymerController.notifyPath(t,H)};
xnA=function(D,t,H){if(H!==Ai6){D.kind==="attribute"||D.target!=="textContent"&&(D.target!=="value"||t.localName!=="input"&&t.localName!=="textarea")||(H=H===void 0?"":H);var e,V=(e=dnD.Polymer)==null?void 0:e.sanitizeDOMValue;V&&(H=V(H,D.target,D.kind,t));if(D.kind==="attribute"){D=D.target;if(D==="class"||D==="name"||D==="slot")t=(0,_.cT)(t);uK(t,H,D)}else if(D=D.target,H!==t[D]||typeof H==="object")t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!0,Xd(t.localName,D,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
t[D]=H,t.loggingStatus&&(t.loggingStatus.isDeclarativeExternal=!1)}};
R1k=function(D,t,H,e){var V=t.parts[0];if(t.parts.length!==1||V.type!=="path"||!vEX(H,t.target))return!1;var b=_.F(V.path.split(".")),a=b.next().value,w=D_(b);if(fJV(D,a))return!1;e.signalCache!=null||(e.signalCache={});b=e.signalCache[V.path];var h;b=(h=b)==null?void 0:h().value;if((b==null?void 0:b.path)!==void 0){e=R5(b.path);var K=R5(V.path);e=[t.target].concat(_.A6(e.slice(K.length-1)));pWR(H,e,V.negate?!b.value:b.value);return!0}var N=WT(D,a);var k=N.getChangeRecordSignal(w),T=!1;b=function(){if(!T){var U=
AL(D.owner,function(){return N.getWithPath([])});
T||(T=U!==void 0)}return{value:k(),rootWasDefined:T}};
e.signalCache[V.path]=b;e.partWasDefined!=null||(e.partWasDefined={});b=b();(K=e.partWasDefined)[0]||(K[0]=b.rootWasDefined);var c=AL(D.owner,function(){return N.getWithPath(w)});
e.partWasDefined[0]&&AL(D.owner,function(){return void xnA(t,H,V.negate?!c:c)});
return!0};
u$6=function(D,t,H,e,V,b){if(!R1k(D,t,H,e)){var a=gED(D,t,e,V,b);AL(D.owner,function(){return void xnA(t,H,a)})}};
WaD=function(D,t,H,e,V,b){H=_.F(H);for(var a=H.next(),w={};!a.done;w={infoIndex:void 0},a=H.next()){a=a.value;var h=a.bindings;w.infoIndex=a.infoIndex;a=a.parentInfo;if(h){h=_.F(h);for(var K=h.next(),N={};!K.done;N={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},K=h.next()){N.b$jscomp$254=K.value;if(w.infoIndex===void 0)throw Error("Mg");N.bindingCtx$jscomp$4={};D.effect(function(k,T){return function(){V&&!V()||u$6(D,k.b$jscomp$254,t[T.infoIndex],k.bindingCtx$jscomp$4,e,b)}}(N,w))}}a&&WaD(D,t,[a],
e,V,b)}};
IJV=function(D,t){D=(t.parentInfo?IJV(D,t.parentInfo):D).firstChild;for(var H=0;D;D=D.nextSibling)if(t.parentIndex===H++)return D;throw Error("Ng");};
yiK=function(D,t,H,e){D=document.importNode(D.content,!0);D.__noInsertionPoint=!(e==null?0:e.hasInsertionPoint);for(var V=Array(t.length),b={},a=0;a<t.length;a++){var w=t[a],h=IJV(D,w);V[a]=h;w.id&&(b[w.id]=h);if(w.templateInfo){var K=h.parentElement;K&&(K.templateInfo=w.templateInfo,K.parentSignalProxy=H,K.eventListenerHost=e.eventListenerHost,K.stampingEnabled=e.enabledSignal)}K=void 0;if((K=w.events)==null?0:K.length)for(K=0;K<w.events.length;K++){var N=w.events[K];Q9V(e.eventListenerHost,h,N.name,
N.value,e.getModel)}}WaD(H,V,t,e.thisCtx,e.enabledSignal,e.methodInvocationRequirement);return{root:D,nodes:V,nodesById:b}};
z1K=function(D,t){D=D();var H;(H=B9V.ShadyCSS)==null||H.prepareTemplate(D,t);t=nED(D);return{template:D,nodeInfoList:t.nodeInfoList,hasInsertionPoint:t.hasInsertionPoint}};
HBD=function(){D$6=!1;for(var D=I5.length,t=0;t<D;t++){var H=I5[t];if(H)try{H()}catch(e){Promise.resolve().then(function(){throw e;})}}I5.splice(0,D);
tuV+=D};
qjX=function(D){D$6||(D$6=!0,eYu.textContent=(VuV++).toString());I5.push(D);return bB8++};
_.BT=function(D,t,H){Qb++;D=t?new F5T(Qb,D,t,H):new ac$(Qb,D);yb.set(Qb,D);return Qb};
wsT=function(D){(D=yb.get(D))&&D.cancel()};
s_3=function(D,t){D=ZBA.get(D);return D?(t=D.get(t))?t:null:null};
_.z1=function(D,t,H,e){var V=s_3(D,t);if(!V){V=new hYk;var b=ZBA.get(D);b||(b=new Map,ZBA.set(D,b));b.set(t,V)}D=H.bind(D);V.run(D,e,void 0)};
_.GwV=function(D,t){var H;(H=s_3(D,t))==null||H.cancel()};
EWk=function(D){var t;(t=s_3(D,"doRender"))==null||t.flush()};
Dt=function(D){var t;return(t=D.hostElement)!=null?t:D};
K5V=function(D){var t=D.indexOf(".");return t===-1?D:D.slice(0,t)};
NGD=function(D,t,H,e,V,b){b=(V=(e=b?K5V(t):t)?t:null)?D.get(V):D.__data[t];V&&b===void 0&&(b=H[t]);_.Gf(D.hostElement,AqV(e)+"-changed",{value:b,queueProperty:!0,path:V!=null?V:void 0},{bubbles:!1,composed:!1})};
kwD=function(D,t){D.__isReflecting=!0;ciV(D.hostElement,t,D.__data[t]);D.__isReflecting=!1};
TGX=function(D){if(D._onIronRequestResizeNotifications){var t=D._onIronRequestResizeNotifications.bind(D);D._onIronRequestResizeNotifications=function(H){_.qy(H)!==D.hostElement&&t(H)}}D._ariaActiveAttributeChanged&&(D._ariaActiveAttributeChanged=D._ariaActiveAttributeChanged.bind(D.hostElement));
D._activeChanged&&(D._activeChanged=function(H){D.toggles?uK(D.hostElement,H?"true":"false",D.ariaActiveAttribute):D.hostElement.removeAttribute(D.ariaActiveAttribute);D._changedButtonState()});
D._asyncClick&&(D._asyncClick=function(){_.BT(function(){D.hostElement.click()},1)});
!D.keyEventTarget||D.keyEventTarget instanceof EventTarget||(D.keyEventTarget=Dt(D.keyEventTarget));D._disabledChanged&&(D._disabledChanged=D._disabledChanged.bind(D.hostElement));D._observeItems&&(D._observeItems=function(H){var e=Dt(H);return _.Xu(e).observeNodes(function(V){D._updateItems();D._updateSelected();_.Gf(e,"iron-items-changed",V,{bubbles:!1,cancelable:!1})})});
D._updateItems&&D._updateItems===_.tj._updateItems&&(D._updateItems=function(){var H=_.Xu(D.hostElement).queryDistributedElements(D.selectable||"*");H=Array.prototype.filter.call(H,D._bindFilterItem);D._setItems(H)});
D._computeKeyboardClass&&(D._computeKeyboardClass=function(H){_.kL(D.hostElement,"keyboard-focus",H)});
D.ensureRipple&&(D.ensureRipple=function(H){if(D.hasRipple&&!D.hasRipple()){if(!D._createRipple)return;D._ripple=D._createRipple();D._ripple.noink=D.noink;var e=D._rippleContainer||D.hostElement;e&&_.Kg(e).appendChild(D._ripple)}var V;if(H&&((V=D._ripple)==null?0:V.uiDownAction)){e=_.Kg(D._rippleContainer||D.hostElement);var b;V=(b=H.composedPath())==null?void 0:b[0];e.contains(V)&&D._ripple.uiDownAction(H)}});
D._updateMultiselectable&&(D._updateMultiselectable=function(H){H?D.hostElement.setAttribute("aria-multiselectable","true"):D.hostElement.removeAttribute("aria-multiselectable")})};
ctk=function(D,t,H){H=_.F(H);for(var e=H.next();!e.done;e=H.next())IrV(e.value.constructor,D);IrV(t.constructor,D)};
$$3=function(D,t){D=_.F(D);for(var H=D.next();!H.done;H=D.next())if(H=H.value,H.type==="signal"){var e=H.propertyKey;if(t.hasOwnProperty(e)&&t[e]!=null&&H.attributeType===Object){a:{e=t[e].constructor;for(var V=_.F(j_V),b=V.next();!b.done;b=V.next())if(b=b.value,e===b){e=b;break a}e=Object}H.attributeType=e}}};
iBD=function(){};
rtV=function(D){var t;return(t=D.hostElement)!=null?t:D};
OBR=function(){throw Error("Rg");};
U$V=function(D,t){D.constructor.prototype.useSignals=!0;var H=new D.constructor;ctk(H,D,t.behaviors);$$3(t.reactiveSchemas,H);H={};for(var e=_.F(t.reactiveSchemas),V=e.next();!V.done;V=e.next())V=V.value,V.type==="signal"&&(H[V.propertyKey]=V.attributeType);var b={copyPropertiesToProto:OBR,didRegister:!1,typesForSignals:H},a=["disable-upgrade"].concat(_.A6(t.observedAttributes)),w=function(h){Hc.call(this,D,t,b,h)};
_.P(w,Hc);_.ql.Object.defineProperties(w,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return a}}});
b.copyPropertiesToProto=function(){for(var h=0;h<t.behaviors.length;h++)yDK(t.behaviors[h],w.prototype);yDK(D,w.prototype)};
t.legacyOptimizations||b.copyPropertiesToProto();w.prototype.is=D.is;return w};
oW3=function(D,t){if(Object.getPrototypeOf(t.prototype).constructor!==_.X)throw Error("Sg");t.prototype.is=D.is;return U$V(t.prototype,D)};
Pw8=function(D){return D.type==="compute"||D.type==="computeWithMethod"};
nW3=function(D){for(var t=D.reactiveSchemas.filter(Pw8),H=new Map,e=new Map,V=new Map,b=_.F(t),a=b.next();!a.done;a=b.next())a=a.value,H.set(a.propertyKey,a),e.set(a.propertyKey,[]),V.set(a.propertyKey,0);b=0;t=_.F(t);for(a=t.next();!a.done;a=t.next()){a=a.value;for(var w=_.F(a.type==="computeWithMethod"?a.method.args:a.args),h=w.next();!h.done;h=w.next())h=h.value,h.type!=="literal"&&(h=h.path.split(".")[0],e.has(h)&&(e.get(h).push(a.propertyKey),V.set(a.propertyKey,V.get(a.propertyKey)+1),b++))}a=
[].concat(_.A6(e.keys())).filter(function(K){return V.get(K)===0});
for(t=[];a.length;)for(w=a.shift(),t.push(H.get(w)),w=_.F(e.get(w)),h=w.next();!h.done;h=w.next())h=h.value,V.set(h,V.get(h)-1),b--,V.get(h)===0&&a.push(h);H=D.reactiveSchemas.filter(function(K){return!Pw8(K)});
D.reactiveSchemas=[].concat(_.A6(H),_.A6(t))};
CwV=function(D,t){if(t.properties)for(var H=_.F(Object.entries(t.properties)),e=H.next();!e.done;e=H.next()){var V=_.F(e.value);e=V.next().value;V=V.next().value;D.properties[e]=typeof V==="function"?{type:V}:V}t.observers&&D.observers.push.apply(D.observers,_.A6(t.observers));t.disabledPolySiReactions&&D.disabledPolySiReactions.push.apply(D.disabledPolySiReactions,_.A6(t.disabledPolySiReactions))};
m$D=function(D,t){for(var H=t.length-1;H>=0;H--){var e=t[H];Array.isArray(e)?m$D(D,e):D.indexOf(e)<0&&D.unshift(e)}};
Mu$=function(D,t){D.reactiveSchemas=D.reactiveSchemas.filter(function(H){return H.type==="observe"&&t.includes(H.method.methodName)||Pw8(H)&&t.includes(H.propertyKey)?!1:!0})};
Xsu=function(D,t){var H=t.prototype,e,V,b={is:D.is,reactiveSchemas:[],observedAttributes:[],behaviors:[pzX.InjectBehavior,pg.prototype],disableElementRegistration:D.disableElementRegistration,provide:(e=D.providers)!=null?e:[],reactivityMode:D.reactivityMode,signalProperties:(V=H.signalProperties)!=null?V:[]};"template"in t?b.templateGetter=function(){return t.template}:D.getTemplate&&(b.templateGetter=D.getTemplate);
H.behaviors&&m$D(b.behaviors,H.behaviors);SjV(b,t);return b};
SjV=function(D,t){for(var H=t.prototype,e={properties:{},observers:[],disabledPolySiReactions:[]},V=_.F(D.behaviors),b=V.next();!b.done;b=V.next())CwV(e,b.value);CwV(e,H);if(D.signalProperties)for(H=_.F(D.signalProperties),V=H.next();!V.done;V=H.next())delete e.properties[V.value];H=_.F(Object.entries(e.properties));for(V=H.next();!V.done;V=H.next()){b=_.F(V.value);V=b.next().value;b=b.next().value;var a=void 0;if((a=D.signalProperties)==null||!a.includes(V)){a=void 0;var w=D,h=b.type;if(!h)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{h=Reflect.getMetadata("design:type",t,V);for(var K=_.F(fcK),N=K.next();!N.done;N=K.next())if(N=N.value,h===N){h=N;break a}h=Object}else h=String;b.computed||b.selector||(w.reactiveSchemas.push({type:"signal",propertyKey:V,value:b.value,attributeType:h,readOnly:b.readOnly}),w.observedAttributes.push(_.UW(V)));b.reflectToAttribute&&w.reactiveSchemas.push({type:"reflect",propertyKey:V});if(b.computed){h=T9D(b.computed);if(!h)throw Error("Tg");w.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:V,method:h,value:b.value})}b.observer&&w.reactiveSchemas.push({type:"observe",method:{methodName:b.observer,args:[{type:"path",path:V}]}});b.notify&&w.reactiveSchemas.push({type:"notify",propertyKey:V});b.selector&&w.reactiveSchemas.push({type:"redux",propertyKey:V,selector:b.selector,selectorArgs:(a=b.selectorArgs)!=null?a:[]})}}L5D&&nW3(D);t=_.F(e.observers);for(V=t.next();!V.done;V=t.next())H=D,V=V.value,(b=T9D(V))?H.reactiveSchemas.push({type:"observe",method:b}):console.log('Warning: unable to parse observe declaration: "'+
V+'"');Mu$(D,e.disabledPolySiReactions)};
AtR=function(D,t){for(var H=0;H<t.length;H++){var e=t[H],V=void 0;(V=e).showHideApi!=null||(V.showHideApi={});V=void 0;!!D!==!((V=e.showHideApi)==null||!V.hideTemplateChildren)&&(e.nodeType===Node.TEXT_NODE?D?(e.showHideApi.polymerTextContent=e.textContent,e.textContent=""):(V=void 0,e.textContent=(V=e.showHideApi.polymerTextContent)!=null?V:null):e instanceof Element&&e.localName==="slot"?D?(e.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.cT)((0,_.cT)(e).parentNode).replaceChild(e.showHideApi.polymerReplaced,
e)):(V=e.showHideApi.polymerReplaced)&&(0,_.cT)((0,_.cT)(V).parentNode).replaceChild(e,V):e instanceof HTMLElement&&e.style&&(D?(e.showHideApi.polymerDisplay=e.style.display,e.style.display="none"):e.style.display=e.showHideApi.polymerDisplay));e.showHideApi.hideTemplateChildren=D;e.showHideChildren&&e.showHideChildren(D)}};
JtA=function(){if(!gWK){var D=document.createElement("style");D.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(D);gWK=!0}};
ea=function(){return _.r("disable_hidden_dom_if_using_stamper")};
Yjk=function(D,t){var H=_.V_().getState();return t?D.apply(null,[H].concat(_.A6(t))):D(H)};
ps6=function(){if(lc6)return lc6;var D=_.F(_.KR(0,void 0,"MB1Hb")),t=D.next().value;D.next();var H=D.next().value;_.V_().subscribe(function(){vWV(H)});
return lc6=t};
vWV=function(D){d$D||(d$D=!0,Promise.resolve().then(function(){D(function(t){return t+1});
d$D=!1}))};
_.V_=function(){return x$k.getAppStore()};
RYD=function(D,t){return x$k.getSelectFn()(D,t)};
_.bf=function(D){x$k.getDispatchFn()(D)};
uGV=function(D,t){var H={},e;for(e in D)H[e]=t(D[e],e);return H};
_.qT=function(D,t){return function(){var H;return(H=_.fR(D))!=null?H:t}};
_.FQ=function(D,t){var H=Object.assign({},D),e;for(e in t)t.hasOwnProperty(e)&&(H[e]=_.qT(D[e],t[e]));return H};
W5V=function(D,t,H){D instanceof Element&&(H.debugName||(H.debugName="<"+D.tagName.toLowerCase()+(D.tagName.includes("-")?">":"."+D.className+">")),_.r("ytwiz_enable_debug_component_props")&&(D.debugProps||(D.debugProps=uGV(t,function(e){return function(){return e()}}))))};
Q_V=function(D){var t;return IcT.value.traceAllComponents||((t=bG.stack[bG.stack.length-1])==null?void 0:t.name)!=="ytComponent"?GzX("ytComponent",{},D):D()};
_.l=function(D,t){var H=function(e){return Q_V(function(V){var b=ytX={};var a;if(((a=H)==null?0:a.idomCompat)&&e.renderedFromIdom){var w;a=typeof H.idomCompat==="object"?(w=H)==null?void 0:w.idomCompat.callbacks:{};a=_.F(BGR(e,a,H.debugName));w=a.next().value;a.next();a=a.next().value;var h=zYT(D,w);b.privateValue=h;ytX=void 0;W5V(h,w,H);b={debugName:H.debugName};V&&b&&Object.assign(V.attributes,b);V=szD(h);V=Array.isArray(V)?V[0]:V;V[KY]||(V[KY]={});V[KY].updateSignalsFromIdomProps=a;DWV(w,h);return h}a=
uGV(e,tUX);w=zYT(D,a);b.privateValue=w;ytX=void 0;W5V(w,a,H);b={debugName:H.debugName};V&&b&&Object.assign(V.attributes,b);DWV(a,w);return w})};
H.debugName=t===void 0?"":t;return H};
zYT=function(D,t){D=D(t);return jG(D)};
HmD=function(D,t){D[t]||(D=new _.nZ("IDOM interop setter undefined. Key:",t),_.gT(D))};
tUX=function(D,t){return t==="children"||t==="ref"||typeof D==="function"||D===void 0?D:function(){return _.fR(D)}};
BGR=function(D,t,H){var e={},V={},b={},a={},w;for(w in D){a={key$jscomp$945:a.key$jscomp$945};a.key$jscomp$945=w;var h=D[a.key$jscomp$945];if(a.key$jscomp$945==="children"||a.key$jscomp$945==="ref")e[a.key$jscomp$945]=h;else if(typeof h==="function")a.key$jscomp$945 in t||h.length>0?(b[a.key$jscomp$945]=h,e[a.key$jscomp$945]=function(N){return function(){return b[N.key$jscomp$945].apply(b,_.A6(_.RE.apply(0,arguments)))}}(a)):e[a.key$jscomp$945]=h;
else if(!(D[a.key$jscomp$945]===void 0&&a.key$jscomp$945 in t)){var K=_.F(_.KR(D[a.key$jscomp$945],{debugName:a.key$jscomp$945+":cwis:"+H},"rvrjQe"));h=K.next().value;K=K.next().value;e[a.key$jscomp$945]=h;V[a.key$jscomp$945]=K}}return[e,V,function(N){var k={},T;for(T in N)k={key$jscomp$946:k.key$jscomp$946,val$jscomp$122:void 0},k.key$jscomp$946=T,k.val$jscomp$122=N[k.key$jscomp$946],k.key$jscomp$946!=="children"&&k.key$jscomp$946!=="ref"&&(typeof k.val$jscomp$122==="function"?k.key$jscomp$946 in
t?b[k.key$jscomp$946]=k.val$jscomp$122:k.val$jscomp$122.length>0&&(b[k.key$jscomp$946]=k.val$jscomp$122,_.Yw(new _.nZ("Callback detected that was not set in the idomCompat callbacks map. Key:",k.key$jscomp$946))):k.key$jscomp$946 in t&&k.val$jscomp$122===void 0||(HmD(V,k.key$jscomp$946),$M(function(c){return function(){V[c.key$jscomp$946](c.val$jscomp$122)}}(k))))}]};
bmX=function(D,t,H){var e=xAT(D.prototype,eaV,D.prototype.behaviors);e.prototype.is=t;e.prototype.localName=t;H&&VUD(e,H);return function(V){V&&(e.prototype.hostElement=V);var b=new e;b.root=b;b.hostElement=V;return b}};
VUD=function(D,t){var H;Object.defineProperty(D.prototype,"_template",{get:function(){H===void 0&&(H=t());return H},
set:function(e){H=e},
configurable:!0,enumerable:!0})};
ZmX=function(D,t,H,e){function V(){if(!c){for(var U=new Set,S=_.F(N),L=S.next();!L.done;L=S.next()){L=L.value;for(var J=_.F(Object.getOwnPropertyNames(L)),g=J.next();!g.done;g=J.next()){g=g.value;var Q=void 0,u=(Q=Object.getOwnPropertyDescriptor(L,g))==null?void 0:Q.value;u&&u instanceof Function&&!aQ(g)&&(!w[g]||_.r("polymer_forward_method_killswitch"))&&U.add(g)}}S=_.F(Object.entries(Object.getOwnPropertyDescriptors(D.prototype)));for(L=S.next();!L.done;L=S.next())J=_.F(L.value),L=J.next().value,
J=J.next().value,J.value instanceof Function&&!aQ(L)&&U.add(L);c=U}return c}
q3k(D,t,e==null?void 0:e.providers);RFR(D.prototype,D,!0);var b=bmX(D,t,H),a,w=(a=D.prototype.properties)!=null?a:{},h,K,N=(K=(h=D.prototype.behaviors)==null?void 0:h.flat(Infinity))!=null?K:[];H=_.F(N);for(a=H.next();!a.done;a=H.next())w=Object.assign({},a.value.properties,w);var k=[].concat(_.A6(FUA),_.A6(Object.keys(w).map(function(U){return _.UW(U)}))),T=!1,c;
return{ctor:function(U,S){var L=b(U),J,g;U=[].concat(_.A6((J=e==null?void 0:e.allowedProps)!=null?J:[]),_.A6((g=e==null?void 0:e.allowedPropsFromBehaviors)!=null?g:[]));L.allowedProps=U.length>0?U:void 0;J={};g=_.F(k);for(U=g.next();!U.done;U=g.next())U=U.value,J[U]=_.oz(U);L.__dataAttributes=J;var Q=L.ready.bind(L);L.ready=function(){S.beforeReady();Q();if(My(t)&&!T){var u=L.__templateInfo;if(u==null?0:u.hostProps){u=_.F(Object.keys(u.hostProps));for(var R=u.next();!R.done;R=u.next())Xd(t,R.value,
"PROPERTY_ACCESS_GET_INTERNAL")}T=!0}};
L._overrideLegacyUndefined=!0;return L},
props:w,observedAttributes:k,getInitialMethods:V,getPropsToForwardBeforeRegister:function(){for(var U=[],S=new Set,L=_.F(Object.keys(w)),J=L.next();!J.done;J=L.next())J=J.value,U.push([J,w[J].readOnly]),S.add(J);L=V();J=_.F(Object.keys(Object.getOwnPropertyDescriptors(D.prototype)));for(var g=J.next();!g.done;g=J.next())g=g.value,!anu(g)||L.has(g)||S.has(g)||(U.push([g,!1]),S.add(g));S=_.F(wRR);for(L=S.next();!L.done;L=S.next())U.push([L.value,!0]);return U},
getPropsToForwardBeforeReady:function(U){for(var S=[],L=_.F(Object.entries(U)),J=L.next();!J.done;J=L.next()){var g=_.F(J.value);J=g.next().value;g=g.next().value;if(anu(J)&&!(g instanceof Function)&&(S.push([J,!1]),My(t))){var Q=g=void 0;(Q=(g=U)._createPropertyAccessor)==null||Q.call(g,J)}}return S},
shouldForwardProp:anu,shouldLog:My}};
q3k=function(D,t,H){d5D(D,H);D.prototype.behaviors.unshift(sdT);if(m5A()){if(My(t)){var e;(e=D.prototype).behaviors!=null||(e.behaviors=[]);D.prototype.behaviors.unshift(fr$())}LR3(D)}_.C(pg.prototype)(D.prototype,"__templateHelpers")};
aQ=function(D){return haD.has(D)||D.startsWith("__compute__")};
anu=function(D){return!aQ(D)&&!D.startsWith("_")&&!D.endsWith("_")};
kjR=function(D,t){function H(){var T=h();T=_.F(T);for(var c=T.next();!c.done;c=T.next()){var U=_.F(c.value);c=U.next().value;U=U.next().value;GjV(k.prototype,c,U)}e=!0}
var e=!1,V=D.ctor,b=D.getInitialMethods,a=D.observedAttributes,w=D.getPropsToForwardBeforeReady,h=D.getPropsToForwardBeforeRegister,K=D.shouldForwardProp,N=D.shouldLog,k=function(){var T=HTMLElement.call(this)||this;T.didForwardDynamicProps=!1;T.loggingStatus={};e||H();T.inst=V(T,{beforeReady:function(){T.didForwardDynamicProps||(T.forwardDynamicProps(),T.didForwardDynamicProps=!0)}});
T.controllerProxy=SRK(T.inst,t);T.forwardMethods();return T};
_.P(k,HTMLElement);k.prototype.forwardMethods=function(){for(var T=this,c=_.F(this.inst.getExtraMethodsToForward()),U=c.next(),S={};!U.done;S={method$jscomp$63:void 0},U=c.next()){var L=_.F(U.value);U=L.next().value;L=L.next().value;S.method$jscomp$63=L;this[U]=function(J){return function(){return J.method$jscomp$63.call.apply(J.method$jscomp$63,[T.inst].concat(_.A6(_.RE.apply(0,arguments))))}}(S)}c=_.F(b());
for(S=c.next();!S.done;S=c.next())S=S.value,K(S)&&Ejk(this,S),N(t)&&!aQ(S)&&KU$(this.inst,S)};
k.prototype.forwardDynamicProps=function(){var T=w(this.inst);T=_.F(T);for(var c=T.next();!c.done;c=T.next()){var U=_.F(c.value);c=U.next().value;U=U.next().value;GjV(this,c,U);N(t)&&!aQ(c)&&NsV(this.inst,c)}};
k.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
k.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
k.prototype.attributeChangedCallback=function(T,c,U){this.inst.attributeChangedCallbackWrapper(T,c,U)};
_.ql.Object.defineProperties(k.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return t}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.ql.Object.defineProperties(k,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return a}}});
customElements.define(t,k)};
GjV=function(D,t,H){D.hasOwnProperty(t)||Object.defineProperty(D,t,{get:function(){var e,V=((e=D.is)!=null?e:D.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Xd(V,t,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,e=this.polymerController[t],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,e},
set:function(e){if(!H){var V,b=((V=D.is)!=null?V:D.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Xd(b,t,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=t,this.loggingStatus.bypassProxyController=!0,this.polymerController[t]!==e&&(V={},this.polymerController.setProperties((V[t]=e,V)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
Ejk=function(D,t,H){var e=D.polymerController;D[t]=function(){var V=_.RE.apply(0,arguments);D.loggingStatus.currentExternalCall=t;D.loggingStatus.bypassProxyController=!0;var b,a=((b=D.is)!=null?b:D.tagName).toLowerCase();Xd(a,t,"PROPERTY_ACCESS_CALL_EXTERNAL");var w;b=(w=H!=null?H:e[t])==null?void 0:w.call.apply(w,[e].concat(_.A6(V)));D.loggingStatus.currentExternalCall=void 0;D.loggingStatus.bypassProxyController=!1;return b}};
KU$=function(D,t){var H=D.hostElement,e=D[t];D[t]=function(){var V=_.RE.apply(0,arguments);if(H.loggingStatus.currentExternalCall!==t){var b,a=((b=H.is)!=null?b:H.tagName).toLowerCase();Xd(a,t,"PROPERTY_ACCESS_CALL_INTERNAL")}return e==null?void 0:e.apply(D,V)}};
NsV=function(D,t){var H=Object.getOwnPropertyDescriptor(D,t);H&&!H.get&&Object.defineProperty(D,t,{get:function(){XzX(D.hostElement,t);return H.value},
set:function(e){fg(D.hostElement,t);H.value=e}})};
TsK=function(D){return _.r("poly_si_dom_repeat_detached_fix_killswitch")||D.tagName!=="PS-DOM-REPEAT"?D.tagName==="DOM-REPEAT":!0};
jd8=function(D,t){var H=cck(D);D instanceof Element&&H.unshift(D);D=_.F(H.filter(TsK));for(var e=D.next();!e.done;e=D.next()){var V=void 0;e=_.F((V=e.value.__instances)!=null?V:[]);for(V=e.next();!V.done;V=e.next())if(V=V.value,V.root){V=Array.from(V.root.children);V=_.F(V);for(var b=V.next();!b.done;b=V.next())H.push.apply(H,_.A6(jd8(b.value,t)))}}return H.filter(function(a){return a.usePatchedLifecycles&&a.lifecycleIsConnected===t})};
cck=function(D){var t=null;D instanceof Element?t=Element.prototype.querySelectorAll:D instanceof DocumentFragment&&(t=DocumentFragment.prototype.querySelectorAll);return t?Array.from(t.call(D,"*")):[]};
wj=function(D){_.EP(function(){for(var t=_.F(jd8(D,!1)),H=t.next();!H.done;H=t.next()){H=H.value;H.lifecycleIsConnected=!0;try{var e=void 0,V=void 0,b=void 0,a=void 0;(e=(a=H.polymerController)!=null?a:H)==null||(b=(V=e).connectedCallback)==null||b.call(V)}catch(w){_.gT(w)}}})};
Zt=function(D){_.EP(function(){for(var t=_.F(jd8(D,!0)),H=t.next();!H.done;H=t.next()){H=H.value;H.lifecycleIsConnected=!1;try{var e=void 0,V=void 0,b=void 0,a=void 0;(e=(a=H.polymerController)!=null?a:H)==null||(b=(V=e).disconnectedCallback)==null||b.call(V)}catch(w){_.gT(w)}}})};
P6D=function(){if(!$WV){$WV=!0;var D=[Node];s_&&D.push(s_.Wrapper);var t=Node.prototype.insertBefore,H=Node.prototype.removeChild;D=_.F(D);for(var e=D.next(),V={};!e.done;V={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},e=D.next())e=e.value,V.nativeInsertBefore=e.prototype.insertBefore,e.prototype.insertBefore=function(a){return function(w,h){if(w instanceof DocumentFragment){var K=Array.from(w.children);w=a.nativeInsertBefore.call(this,w,h);
if(this.isConnected&&a.nativeInsertBefore===t)for(h=_.F(K),K=h.next();!K.done;K=h.next())wj(K.value);return w}K=w instanceof Element&&w.isConnected;h=a.nativeInsertBefore.call(this,w,h);K&&Zt(w);this.isConnected&&wj(w);return h}}(V),V.nativeAppendChild=e.prototype.appendChild,e.prototype.appendChild=function(a){return function(w){if(w instanceof DocumentFragment){var h=Array.from(w.children);
w=a.nativeAppendChild.call(this,w);if(this.isConnected){h=_.F(h);for(var K=h.next();!K.done;K=h.next())wj(K.value)}return w}h=w instanceof Element&&w.isConnected;K=a.nativeAppendChild.call(this,w);h&&Zt(w);this.isConnected&&wj(w);return K}}(V),V.nativeRemoveChild=e.prototype.removeChild,e.prototype.removeChild=function(a){return function(w){var h=w instanceof Element&&w.isConnected,K=a.nativeRemoveChild.call(this,w);
h&&H===a.nativeRemoveChild&&Zt(w);return K}}(V),V.nativeReplaceChild=e.prototype.replaceChild,e.prototype.replaceChild=function(a){return function(w,h){if(w instanceof DocumentFragment){var K=Array.from(w.children);
w=a.nativeReplaceChild.call(this,w,h);if(this.isConnected)for(Zt(h),h=_.F(K),K=h.next();!K.done;K=h.next())wj(K.value);return w}K=w instanceof Element&&w.isConnected;var N=this.isConnected,k=a.nativeReplaceChild.call(this,w,h);N&&Zt(h);K&&Zt(w);N&&wj(w);return k}}(V);
D=[Element];s_&&D.push(s_.Wrapper);D=_.F(D);e=D.next();for(V={};!e.done;V={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},e=D.next())e=e.value,e.prototype.before=im6(e.prototype.before),e.prototype.after=im6(e.prototype.after),V.nativeReplaceWith=e.prototype.replaceWith,e.prototype.replaceWith=function(a){return function(){var w=_.RE.apply(0,arguments),h=_.F(rc3(w)),K=h.next().value,
N=h.next().value;h=this.isConnected;a.nativeReplaceWith.apply(this,w);w=_.F(N);for(N=w.next();!N.done;N=w.next())Zt(N.value);if(h)for(Zt(this),K=_.F(K),h=K.next();!h.done;h=K.next())h=h.value,h instanceof Element&&wj(h)}}(V),V.nativeRemove=e.prototype.remove,e.prototype.remove=function(a){return function(){var w=this.isConnected;
a.nativeRemove.call(this);w&&Zt(this)}}(V),V.nativeInsertAdjacentElement=e.prototype.insertAdjacentElement,e.prototype.insertAdjacentElement=function(a){return function(w,h){var K=h.isConnected;
w=a.nativeInsertAdjacentElement.call(this,w,h);K&&Zt(h);w.isConnected&&wj(w);return w}}(V),V.nativeSetAttribute=e.prototype.setAttribute,e.prototype.setAttribute=function(a){return function(w,h){var K=Om3(this);
if(!K.usePatchedLifecycles)return a.nativeSetAttribute.call(this,w,h);var N=this.getAttribute(w);a.nativeSetAttribute.call(this,w,h);h=this.getAttribute(w);UWX(K,w,N,h)}}(V),V.nativeRemoveAttribute=e.prototype.removeAttribute,e.prototype.removeAttribute=function(a){return function(w){var h=Om3(this);
if(!h.usePatchedLifecycles)return a.nativeRemoveAttribute.call(this,w);var K=this.getAttribute(w);a.nativeRemoveAttribute.call(this,w);K!==null&&UWX(h,w,K,null)}}(V),V.nativeToggleAttribute=e.prototype.toggleAttribute,e.prototype.toggleAttribute=function(a){return function(w,h){var K=Om3(this);
if(!this.usePatchedLifecycles)return a.nativeToggleAttribute.call(this,w,h);var N=this.getAttribute(w),k=N!==null;h=a.nativeToggleAttribute.call(this,w,h);h!==k&&UWX(K,w,N,h?"":null);return h}}(V);
D=[Document,DocumentFragment,Element,ShadowRoot];s_&&D.push(s_.Wrapper);D=_.F(D);for(V=D.next();!V.done;V=D.next())V=V.value,V.prototype.prepend=im6(V.prototype.prepend),V.prototype.append=im6(V.prototype.append);(s_==null?void 0:s_.noPatch)===!0&&ojD();document.readyState==="complete"?wj(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&wj(document.body)});
var b=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");b&&b.get&&b.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:b.enumerable,configurable:!0,get:b.get,set:function(a){a||Zt(this);b.set.call(this,a);return a}})}};
im6=function(D){return function(){var t=_.RE.apply(0,arguments),H=_.F(rc3(t)),e=H.next().value;H=H.next().value;D.apply(this,t);t=_.F(H);for(H=t.next();!H.done;H=t.next())Zt(H.value);if(this.isConnected)for(e=_.F(e),t=e.next();!t.done;t=e.next())t=t.value,t instanceof Element&&wj(t)}};
ojD=function(){for(var D=_.F(njV),t=D.next();!t.done;t=D.next()){t=t.value.prototype;for(var H=_.F(C6V),e=H.next();!e.done;e=H.next()){e=e.value;var V=Object.getOwnPropertyDescriptor(t,e);V&&Object.defineProperty(t,"__shady_native_"+e,V)}}};
UWX=function(D,t,H,e){var V,b;if((V=D.polymerController)==null?0:(b=V.observedAttributes)==null?0:b.includes(t))if(D=D.polymerController,D.attributeChangedCallbackWrapper)D.attributeChangedCallbackWrapper.call(D,t,H,e);else{var a;(a=D.attributeChangedCallback)==null||a.call(D,t,H,e)}};
rc3=function(D){var t=[],H=[];D=_.F(D);for(var e=D.next();!e.done;e=D.next())e=e.value,e instanceof Element&&e.isConnected&&H.push(e),e instanceof DocumentFragment?t.push.apply(t,_.A6(Array.from(e.children))):t.push(e);return[t,H]};
Om3=function(D){return!(D instanceof Element)&&D.node instanceof Element?D.node:D};
mWA=function(D,t){var H=t?["children"].concat(_.A6(t)):["children"];t=[];H=_.F(H);for(var e=H.next();!e.done;e=H.next()){var V=e.value;if(D.hasOwnProperty(V)){e=D[V];e=typeof e==="function"?e():e;e=Array.isArray(e)?e:[e];e=jG(e).flat();if(V!=="children"){V=AqV(V);for(var b=_.F(e),a=b.next();!a.done;a=b.next())a=a.value,a instanceof Element&&a.setAttribute("slot",V)}t.push(e)}}t.length===0?D=[]:(D=jG(_.G("div",null,t)),D=Array.from(D.childNodes));return D};
S3V=function(D,t,H){var e={};_.LR(function(){var V={},b;for(b in t)if(t.hasOwnProperty(b)){var a=void 0,w=void 0;if(!(((a=H.slotProps)==null?0:a.includes(b))||b==="children"||((w=H.callbackProps)==null?0:w.includes(b))||b==="ref")&&(a=_.fR(t[b]),e[b]!==a)){e[b]=a;w=void 0;var h=(w=D.hostElement)!=null?w:D;MUu.has(b)&&(h[b]=a);V[b]=a}}$M(function(){if(D.setProperties)D.setProperties(V);else for(var K=_.F(Object.entries(V)),N=K.next();!N.done;N=K.next()){var k=_.F(N.value);N=k.next().value;k=k.next().value;
D[N]=k}})},"h")};
fnA=function(D,t,H,e){var V=mWA(H,e.slotProps),b=(0,_.cT)(D);V=_.F(V);for(var a=V.next();!a.done;a=V.next())b.appendChild(a.value);S3V(t,H,e);e=_.F(e.callbackProps||[]);V=e.next();for(b={};!V.done;b={kebabEventName:void 0,eventListener:void 0},V=e.next())a=V=V.value,String(V).substring(0,2)==="on"&&H[a]?(b.kebabEventName=AqV(String(V).substring(2)),b.eventListener=H[a],D.addEventListener(b.kebabEventName,b.eventListener),_.Sj(function(N){return function(){D.removeEventListener(N.kebabEventName,N.eventListener)}}(b))):
t[a]=H[a];
if(H.ref){H=_.F(XRD(H.ref));var w=H.next().value,h=H.next().value,K=t.attached.bind(t);t.attached=function(){w(D);K()};
_.Sj(function(){h()})}};
XRD=function(D){if(typeof D==="function"){var t;return[function(H){t=D(H)},
function(){var H;(H=t)==null||H()}]}if(!D.onRender||!D.onUnmount)throw Error("Xg");
return[D.onRender,D.onUnmount]};
LU6=function(D,t){t=t===void 0?{}:t;var H=function(e){var V=document.createElement(D),b;var a=(b=V.polymerController)!=null?b:V;fnA(V,a,e,t);return V};
H.debugName=D+" (CoW wrapped)";return H};
Y3$=function(D,t,H,e,V){e=e===void 0?{}:e;var b=Ack,a=!1;b?(a=!0,Ack=void 0):(gjV=t,b=document.createElement(t),gjV=void 0);var w=b;w.usePatchedLifecycles=!0;w.lifecycleIsConnected=!1;b.loggingStatus={};var h=JcV(D,t,b,e,V);_.Sj(function(){w.lifecycleIsConnected&&(w.lifecycleIsConnected=!1,h.disconnectedCallback())});
a||(b.__noInsertionPoint=!0,fnA(b,h,H,e));return b};
JcV=function(D,t,H,e,V){V=V===void 0?ZmX:V;lnK[t]!=null||(lnK[t]=V(D,t,e==null?void 0:e.getTemplate,e));var b=lnK[t],a=b.ctor;V=b.getInitialMethods;var w=b.getPropsToForwardBeforeReady;D=b.getPropsToForwardBeforeRegister;e=b.shouldForwardProp;var h=b.observedAttributes,K=b.shouldLog,N=a(H,{beforeReady:function(){var k=N;k._takeAttributes?k._takeAttributes():k.setPropertiesFromInitialAttributeValues&&k.setPropertiesFromInitialAttributeValues();k=_.F(w(H.polymerController));for(var T=k.next();!T.done;T=
k.next()){var c=_.F(T.value);T=c.next().value;c=c.next().value;GjV(H,T,c);K(t)&&!aQ(T)&&NsV(H.polymerController,T)}H.polymerController=SRK(N,t)}});
H.polymerController=N;H.polymerController.observedAttributes=h;b=_.F(N.getExtraMethodsToForward());for(a=b.next();!a.done;a=b.next())h=_.F(a.value),a=h.next().value,h=h.next().value,Ejk(H,a,h);V=_.F(V());for(b=V.next();!b.done;b=V.next())b=b.value,e(b)&&Ejk(H,b),K(t)&&!aQ(b)&&KU$(N,b);D=_.F(D());for(e=D.next();!e.done;e=D.next())V=_.F(e.value),e=V.next().value,V=V.next().value,GjV(H,e,V);return N};
vjD=function(D){var t=hj;hj=D;return t};
dWR=function(D){if(GL.has(D)&&hj&&pRK(hj)===D){var t;(t=hj)._numRenders!=null||(t._numRenders=0);hj._numRenders++;if(hj._numRenders>1)throw Error("Yg");return hj}};
xWu=function(D){GL.has(pRK(D))&&hj!==D&&(D._isInert=!0)};
pRK=function(D){var t;return(t=D==null?void 0:D.tagName.toLowerCase())!=null?t:""};
RaD=function(D,t){if(D.componentType===PI)throw Error("Zg");GL.add(t);var H=function(){var e=HTMLElement.call(this)||this;e.is=t;if(gjV===t)return e.isInert=!0,e;e.createElement();return e};
_.P(H,HTMLElement);H.prototype.createElement=function(){if(!this.isInert){Ack=this;var e=_.F(_.Jl$(function(){return _.G(D,null)})).next().value;
Ack=void 0;XWA(this);return e}};
customElements.define(t,H)};
WUk=function(D,t,H,e,V){D.prototype.is=t;(e==null?0:e.useSink)?uSK(D,t,H,e,V):(H=ZmX(D,t,H,e),kjR(H,t));return D};
uSK=function(D,t,H,e,V){P6D();var b=_.l(function(a){return Y3$(D,t,a,Object.assign({},e,{getTemplate:H}),V)},"i");
b.debugName=t+" (CoW wrapped)";RaD(b,t);return b};
QdD=function(D){return!In$.has(D)};
zaT=function(D,t,H,e){function V(){if(!k){for(var T=new Set(yc3),c=_.F(b.behaviors),U=c.next();!U.done;U=c.next()){U=U.value;for(var S=_.F(Object.getOwnPropertyNames(U)),L=S.next();!L.done;L=S.next()){L=L.value;var J=void 0,g=(J=Object.getOwnPropertyDescriptor(U,L))==null?void 0:J.value;g&&g instanceof Function&&(!K[L]||_.r("polymer_forward_method_killswitch"))&&T.add(L)}}c=_.F(Object.entries(Object.getOwnPropertyDescriptors(D.prototype)));for(U=c.next();!U.done;U=c.next())S=_.F(U.value),U=S.next().value,
S=S.next().value,S.value instanceof Function&&T.add(U);k=T}return k}
var b=Xsu({is:t,disableElementRegistration:!1,getTemplate:H,providers:e==null?void 0:e.providers,reactivityMode:e==null?void 0:e.reactivityMode},D);if((e==null?0:e.allowedProps)||(e==null?0:e.allowedPropsFromBehaviors)){var a,w;b.allowedProps=[].concat(_.A6((a=e.allowedProps)!=null?a:[]),_.A6((w=e.allowedPropsFromBehaviors)!=null?w:[]))}var h=oW3(b,D);t=h.observedAttributes;var K={};H=_.F(b.reactiveSchemas);for(e=H.next();!e.done;e=H.next())if(e=e.value,e.type==="signal")K[e.propertyKey]={readOnly:e.readOnly},
e.readOnly&&(K[e1$(e.propertyKey)]={readOnly:!0});else if(e.type==="compute"||e.type==="computeWithMethod"||e.type==="redux")K[e.propertyKey]={readOnly:!0};var N=b.reactiveSchemas.length,k;return{ctor:function(T,c){T=new h(T);T.beforeReady=c.beforeReady;return T},
props:K,observedAttributes:t,getInitialMethods:V,getPropsToForwardBeforeRegister:function(){for(var T=[],c=new Set,U=_.F(BsK),S=U.next();!S.done;S=U.next())S=S.value,T.push([S,S!=="observers"&&S!=="properties"]),c.add(S);U=_.F(Object.keys(K));for(S=U.next();!S.done;S=U.next())S=S.value,T.push([S,K[S].readOnly]),c.add(S);U=V();S=_.F(Object.keys(Object.getOwnPropertyDescriptors(D.prototype)));for(var L=S.next();!L.done;L=S.next())L=L.value,!QdD(L)||U.has(L)||c.has(L)||(T.push([L,!1]),c.add(L));T.push(["allowedProps",
!0]);return T},
getPropsToForwardBeforeReady:function(T){var c=[];T=_.F(Object.keys(T));for(var U=T.next();!U.done;U=T.next()){U=U.value;var S=V();QdD(U)&&!S.has(U)&&c.push([U,!1])}T=_.F(b.reactiveSchemas.slice(N));for(U=T.next();!U.done;U=T.next())U=U.value,U.type!=="compute"&&U.type!=="computeWithMethod"&&U.type!=="redux"&&U.type!=="signal"||c.push([U.propertyKey,U.type==="signal"?U.readOnly:!0]);return c},
shouldForwardProp:QdD,shouldLog:My}};
_.p=function(D,t,H,e){var V,b,a=(b=(V=e)==null?void 0:V.mode)!=null?b:0;e!=null||(e={});var w;(w=e).reactivityMode!=null||(w.reactivityMode=0);a===1&&_.hW("creator_poly_si_disable_list").includes(t)&&(a=2);return a===1?WUk(D,t,H,Object.assign({},e,{useSink:!0}),zaT):WUk(D,t,H,Object.assign({},e,{useSink:a===2}))};
_.E_=function(){return function(D,t,H,e){var V,b,a=(b=(V=e)==null?void 0:V.mode)!=null?b:2;e!=null||(e={});var w;(w=e).reactivityMode!=null||(w.reactivityMode=0);if(a===0)throw Error("$g`"+a);return uSK(D,t,H,e,a===1?zaT:void 0)}};
_.Kz=function(D){return _.r("creator_poly_si_killswitch")?!1:_.r("force_all_poly_si_batches")&&(D==="poly_si_all_on_test_check"||D==="creator_poly_si_batch_050"?0:D)||document.documentElement.hasAttribute("use-signals")?!0:!D||_.r(D+"_holdback_enabled")&&_.r("kevlar_polysi_holdback")?!1:_.r(D)};
NT=function(D){return D?D.icon?D.icon.iconType.toLowerCase():D.customThumbnail?"member":"":""};
Dj3=function(D){if(!D)return"";D=_.F(D);for(var t=D.next();!t.done;t=D.next())if((t=t.value)&&t.liveChatAuthorBadgeRenderer&&(t=NT(t.liveChatAuthorBadgeRenderer))&&t!=="verified")return t;return""};
tF8=function(D,t){if(!D)return null;var H;return((H=D.find(function(e){return e&&e.liveChatAuthorBadgeRenderer?NT(e.liveChatAuthorBadgeRenderer)===t:!1}))==null?void 0:H.liveChatAuthorBadgeRenderer)||null};
_.F4V=function(D){var t=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;D=Hk$(D);t=Hk$(t);var H=ecA(D.hex);t=ecA(t.hex);var e=t[0]/255;var V=t[1]/255,b=t[2]/255,a=Math.max(e,V,b),w=Math.min(e,V,b),h=0,K=0,N=.5*(a+w);a!=w&&(a==e?h=60*(V-b)/(a-w):a==V?h=60*(b-e)/(a-w)+120:a==b&&(h=60*(e-V)/(a-w)+240),K=0<N&&N<=.5?(a-w)/(2*N):(a-w)/(2-2*N));e=[Math.round(h+360)%360,K,N];H=VFD(H,t);for(D=bkT(D.hex);H<4.5;){D=e[2]>=.5?D.darker((4.5-H)/2):D.brighter((4.5-H)/2);H=D.toString();
V=qJ3(H);if(!V.length)throw Error("Wd`"+H);H=V;H=VFD(H,t)}return D.hex()};
VFD=function(D,t){D=_.xYV(D);t=_.xYV(t);return(Math.max(D,t)+.05)/(Math.min(D,t)+.05)};
_.kP=function(D){return"#"+("000000"+(D&16777215).toString(16)).slice(-6)};
_.aq3=function(D){for(var t=0,H=0;H<D.length;H++)t=D.charCodeAt(H)+((t<<5)-t);D="#";for(H=0;H<3;H++)D+=("00"+(t>>H*8&255).toString(16)).slice(-2);return D};
wDu=function(D){D=(D||"").split(":");D.length===1&&D.unshift("yt-icons");D[1]=D[1].toLowerCase();return D};
K4T=function(D,t){var H=(t=t===void 0?!1:t)?ZkV:s2D,e=t?hcV:G$A;D.getIconNames().forEach(function(V){V=t?V:V.substring(V.indexOf(":")+1);D.name==="yt-icons"?ElT.add(V):V.includes("-filled")?H.add(V):e.add(V)})};
TL=function(D,t,H,e){H=H===void 0?!1:H;e=e===void 0?!1:e;var V,b,a;return _.Z(function(w){if(w.nextAddress==1)return w.yield(N2D,2);if(e)return w.return(ElT.has(D));V=H?ZkV:s2D;b=H?hcV:G$A;return t?(a=D.includes("-filled")?D:D.concat("-filled"),w.return(V.has(a))):w.return(b.has(D))})};
_.cPV=function(D){if(k$V(D))return D;var t=D=D.toLowerCase();(D=T26.get(D))&&(t=D);return t};
_.cc=function(D){if(k$V(D))return D.toString();var t=j2k.get(D);if(t)return t;t=D.toLowerCase();var H="yt-icons",e=t.replace(/_/g,"-");switch(D){case "MY_CHANNEL":t="account_circle";break;case "ADD_TO_LIBRARY":t="add";break;case "ALERT_WARN_RED":t="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":t="person_music";break;case "BLOCK_USER":t="block";break;case "CAPTIONS":t="closed_caption";break;case "CLOSED_CAPTION":H="av";t="closed-caption";break;case "COLLECTION":H="maps";t="layers";break;case "CONTACT":H=
"icons";t="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":H="ytcp-icons";t=e.split("creator-studio-")[1];break;case "DISMISSAL":t="close";break;case "DO_NOT_DISTURB":t="block";break;case "DOGFOOD":H="icons";t="pets";break;case "DRAFT":t="paper_corner_folded";break;
case "EMPTY_LIKE":t="like_outline";break;case "EXIT_APP":t="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":t=e;break;case "GAMES":H="ytg";t="my-games";break;case "GO_TO_PAGE":t="arrow-forward";break;case "GROUP":H="social";break;case "HIDE":t="not_interested";break;case "INPUT_COMPONENT":H="icons";t="settings-input-component";break;case "KIDS_BLOCK":t="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":H="ytg";t="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":H=
"ytg";t="membership-post-purchase";break;case "MULTIVIEW":t="screen_multi_view";break;case "MY_LOCATION":H="maps";t=e;break;case "NOTIFICATIONS_INBOX":t="NOTIFICATIONS";break;case "NEXT":t="chevron_right";break;case "OFFLINE":t="power-settings-new";break;case "PAUSE":H="miniplayer";break;case "PAYMENT":H="icons";break;case "PHONE_DOWNLOAD":t="phone_download";break;case "PREMIUM_STANDALONE":H="yt-logos";t="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":H="yt-logos";t="premium_standalone_cairo";
break;case "QUESTION_ANSWER":t="question_answer";break;case "REDEEM":H="icons";t="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":t="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":t="library_add";break;case "SCHOOL":H="yt-sys-icons";t="creator_academy";break;case "SETTINGS_LIGHT":t="settings_applications";break;case "SETTINGS_MATERIAL":t="settings";break;case "SEARCH_HISTORY":t="watch_history";break;case "SHOPPING_BAG":t="bag";break;case "SOCIAL":case "PEOPLE":H=
"yt-icons";t="people";break;case "STAFF_PICK":H="ytg";t="spotlight";break;case "START_DVR":t="add";break;case "STOP_DVR":H="av";t="stop";break;case "TAB_LIKED":t="like";break;case "TAB_INBOX":t="mail";break;case "TERMS_OF_SERVICE":H="icons";t="description";break;case "TRENDING":t="fire";break;case "UNBLOCK_USER":t="remove";break;case "UNPLUGGED_DARK_THEME":H="image";t="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":t="live";break;case "UNPLUGGED_SPORTS":H="ytu";t="visibility-off";break;
case "VIDEOS":H="av";t="play-circle-filled";break;case "YOUTUBE":H="yt-logos";t="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":H="yt-logos-ext";t="yt-logo-red-updated";break;case "YOUTUBE_LOGO":H="yt-logos-ext";t="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":H="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":H="shorts";t=e;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":H="yt-sys-icons";t="youtube_improve_tv";break;case "OUTLINE_BAG":H=
"yt-sys-icons";t="bag";break;case "QUEUE_PLAY_LAST":H="yt-sys-icons";t="list_queue_last";break;case "SLASH_CIRCLE_LEFT":t="slash_circle_left";break;case "SPEED_1_POINT_2X":t="1_point_2x";break;case "SPEED_1_POINT_5X":t="1_point_5x";break;case "SPEED_1_POINT_8X":t="1_point_8x";break;case "SPEED_POINT_2X":t="point_2x";break;case "SPEED_POINT_5X":t="point_5x";break;case "SPEED_POINT_8X":t="point_8x";break;case "SPEED_1X":t="1x";break;case "SPEED_2X":t="2x";break;case "TAB_BOOKMARK":t="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":H="yt-sys-icons";t="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":H="yt-sys-icons";t="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":H="yt-sys-icons",t="tic_tac_toe"}t=H+":"+t;j2k.set(D,t);return t};
k$V=function(D){var t;_.r("kevlar_use_wil_icons")?t=!!_.qS().resolve(_.ja).resolveIcon({iconName:D.toString()}):t=!1;return t};
_.rj=function(D,t,H,e){H=H===void 0?{}:H;e=e===void 0?!1:e;H===null&&(H={});var V=_.hW("kevlar_command_handler_command_banlist");V=_.F(V);for(var b=V.next();!b.done;b=V.next())if(b=D?D.hasOwnProperty(b.value):void 0,b)return!1;V=_.O(D.commandMetadata,_.i1);return e&&V!=null&&V.url?!1:!t.disableCommandHandlerOverride&&_.$P.instance?(e=_.$P.instance,H.form||(H.form={element:t}),H.form.element||(H.form.element=t),!H.clickedVisualElement&&t.visualElement&&(H.clickedVisualElement=t.visualElement),e.resolveCommand(D,
H),!0):!1};
$jk=function(D,t){D=O_(D);for(var H=_.F(D.visibilityMonitorKeys||[]),e=H.next();!e.done;e=H.next())t.unobserveByKey(e.value);D.visibilityMonitorKeys=void 0};
UjD=function(D,t){if(_.v3()){if(_.r("kevlar_vimio_use_shared_monitor"))ikk(D,t.data);else if(!ikk(D,t.data))return;var H=t.data,e=rPX(H);if(_.r("enable_client_ve_spec_logging"))$jk(D,t.observer);else{var V=O_(D);V.trackedParams&&V.trackedParams!==e&&$jk(D,t.observer)}V=O_(D);!H||V.data&&V.data===H||(V.data=H);OkV(D,t);V.trackedParams=e}};
OkV=function(D,t){var H=t.observer;if(!H&&_.r("web_skip_missing_vimio_observer")){var e,V;_.Yw(new _.nZ("VisibilityObserver is not defined.",D.tagName,D.trackedParams,(e=t.data)==null?void 0:e.trackingParams,(V=t.data)==null?void 0:V.loggingDirectives))}else{var b=t.layer,a=t.visibilityCallback||function(){},w=t.prescanCallback,h=O_(D);
e=[];t.showOption&&e.push(H.observe(D,function(){t.skipLogging&&t.skipLogging()||_.U_().reportShown(h,void 0,b);a(!0)},t.showOption));
t.hideOption&&e.push(H.observe(D,function(){_.U_().reportHidden(h,void 0,b);a(!1)},t.hideOption));
t.prescanOption&&w&&e.push(H.observe(D,function(){w()},t.prescanOption));
h.visibilityMonitorKeys=e}};
ikk=function(D,t){D=O_(D);if(D.visualElement&&!t)return!0;if(!t)return!1;var H=!1;if(_.r("enable_client_ve_spec_logging")){var e,V;H=!!((e=t.loggingDirectives)==null?0:(V=e.clientVeSpec)==null?0:V.uiType)}e=rPX(t);if(!e&&!H)return!1;_.r("mweb_component_visibility_logging")&&(D.veContainer||(D.veContainer={}),D.veContainer.trackingParams=e);if(D.trackedParams&&D.trackedParams===e)return!1;var b;if(_.r("enable_client_ve_spec_logging")&&((b=D.visualElement)==null?0:b.isClientVe())){var a;b=(a=D.visualElement)==
null?void 0:a.getAsJspb();var w,h,K,N;if(_.sH(b,2)===((w=t.loggingDirectives)==null?void 0:(h=w.clientVeSpec)==null?void 0:h.uiType)&&_.sH(b,3,-1)===((K=t.loggingDirectives)==null?void 0:(N=K.clientVeSpec)==null?void 0:N.elementIndex))return!1}if(_.r("enable_client_ve_spec_logging")){var k,T;!D.visualElement&&((k=t.loggingDirectives)==null?0:(T=k.clientVeSpec)==null?0:T.uiType)&&(w=t.loggingDirectives.clientVeSpec,t=w.uiType,a=w.elementIndex,w=w.clientYoutubeData,D.visualElement=_.oQ(_.Pc(),{veType:t,
elementIndex:a,clientYouTubeData:w}))}return!0};
rPX=function(D){if(D==null?0:D.rendererContext){var t=_.O(D.rendererContext,_.nz);if(t==null?0:t.loggingDirectives)return t.loggingDirectives.trackingParams}return(D==null?0:D.loggingDirectives)?D.loggingDirectives.trackingParams:D==null?void 0:D.trackingParams};
O_=function(D){var t;return(t=D.polymerController)!=null?t:D};
CpR=function(D){_.U_();if(_.pY(Cz().JSC$12572_elementShouldLogGesture).bind(Cz())(D,4)){olD(D);var t=PpV(D);nlV.set(D,t)}};
olD=function(D){nlV.has(D)&&(nlV.get(D).cancel("untrack hover element"),nlV.delete(D))};
PpV=function(D){var t,H=[],e=!1,V=new _.c$(function(b,a){mV(D,"mouseenter",_.pY(function(){var w,h,K;return _.Z(function(N){if(N.nextAddress==1)return t=(0,_.aP)(),w=mjK(D),H.push(w),h=MF8(D,function(){e=!0;a(Error("ah"))}),N.yield(w,2);
if(N.nextAddress!=3)return h&&MT(h),K=SJk(D),H.push(K),N.yield(K,3);b();_.n2(N)})}))});
V.then(function(){var b=(0,_.aP)()-t;b=Math.round(b);if(!(500>b||6E5<=b)){var a=D.getScreenLayer?D.getScreenLayer():void 0;a=_.v3(a)||"";var w=XDu(_.U_(),D);_.HH(a,D.visualElement?D.visualElement:_.Sa(w),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:b}})}CpR(D)},function(){XQ&&(XQ(),XQ=null);
e&&(olD(D),CpR(D))});
return V};
mjK=function(D){var t;return(new _.c$(function(H,e){XQ=function(){e(Error("bh"))};
t=_.Jy.debounce(_.pY(function(){MT(V);H()}),1,100);
var V=_.fz(D,"mousemove",t)})).thenCatch(function(){var H=_.Jy.cancelDebouncedJobMap.get(t);
H&&_.Jy.cancelJob(H)})};
SJk=function(D){var t;return(new _.c$(function(H,e){XQ=function(){e(Error("ch"))};
t=mV(D,"mouseleave",_.pY(function(){H()}))})).thenCatch(function(){MT(t)})};
MF8=function(D,t){return mV(D,"mouseleave",_.pY(t))};
L4k=function(D){fqD&&_.Lz.cancel(fqD);fqD=_.Lz.run(function(){_.Gf(D,"yt-visibility-refresh");fqD=0})};
AP3=function(D){D=Number(D);return"rgba("+[D>>16&255,D>>8&255,D&255,(D>>24&255)/255].join()+")"};
JPR=function(D){if(!D)return!1;if(_.O(D,_.glX))return!0;var t;if(D=(t=_.O(D,_.ch))==null?void 0:t.commands)for(t=_.F(D),D=t.next();!D.done;D=t.next())if(_.O(D.value,_.glX))return!0;return!1};
YJV=function(D){var t=!0;t=t===void 0?!0:t;if(!D.useSignals&&!D.experimentalPropertiesChanged||_.r("experimental_templating_behavior_nopatch_killswitch")){var H=D._propertiesChanged;D._propertiesChanged=function(e,V,b){t?D.debounceRender():D.doRender();H&&H.call(D,e,V,b)}}};
lqK=function(D,t){if(D.useSignals||D.experimentalPropertiesChanged)if(_.r("experimental_templating_behavior_nopatch_killswitch"))D.experimentalPropertiesChanged=function(){};
else return;var H=new Set,e=[D].concat(_.A6(D.behaviors));e=_.F(e);for(var V=e.next();!V.done;V=e.next()){V=V.value;for(var b in V.properties)H.has(b)||(D._addPropertyEffect(b,"function",t),H.add(b))}};
vl6=function(){var D=Polymer.Element,t=D._prepareTemplate;D._prepareTemplate=function(){t.call(this);var H=this.prototype;if(H.experimentalTemplatingInUse&&H.experimentalTemplatingInUse()&&H.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.gT(Error("dh"));else{H=this.template.content.childNodes;for(var e=H.length-1;e>=0;e--){var V=H[e];V.nodeName!=="STYLE"&&V.nodeName!=="LINK"&&V.nodeName!=="SCRIPT"&&V.nodeName!=="#comment"&&V.remove()}}}};
pDA=function(D){var t=!0;t=t===void 0?!0:t;vl6();var H=D.ready;D.ready=function(){this._template=null;H.call(this)};
lqK(D,t?D.debounceRender:D.doRender)};
xjA=function(D,t,H){if(H===null||H===void 0)return H;var e=inD(D.tagName.toLowerCase(),t,function(){throw Error("Wb");});
if(e===null)return H;e=dj6[e];var V;if((V=e.isUnwrappable)==null?0:V.call(e,H)){if(e.unwrap)return e.unwrap(H);throw Error("gh");}return e.filterString?e.filterString(D.tagName,t,String(H)):H};
RcT=function(D,t,H){var e=t[t.length-1]!=="$",V=xjA(D,t,H);if(e)if(typeof V==="function"&&t.startsWith("reactiveon")&&t===t.toLowerCase()){var b=HI;Mp$(D,t.slice(8),function(a){AL(b,function(){V(a)})})}else D[t]=V;
else H=V==null?null:String(V),YM(D,t.slice(0,-1),H)};
gj=function(D){uNV.length===0&&requestAnimationFrame(function(){setTimeout(function(){var t=uNV.slice();uNV.length=0;t=_.F(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;try{H()}catch(e){_.Aj(e)}}})});
uNV.push(D)};
W4V=function(D){if(D){var t=D.component;if(t){var H;t==null||(H=t.events)==null||H.publish("DISCONNECTED");var e;t==null||(e=t.onDisconnected)==null||e.call(t)}var V,b;(V=D.__spec)==null||(b=V.didUnmount)==null||b.call(V);for(t=0;t<D.childNodes.length;t++)W4V(D.childNodes[t])}};
IqA=function(D,t,H){var e=t&&t.key,V=zp;V[0]=D;V[1]=e;V[2]=void 0;for(var b in t)t.hasOwnProperty(b)&&(D=t[b],e=Dv,e.push(b),e.push(D));t=zp;a:{if(b=zp[2])for(D=0;D<b.length;D+=2)if(b[D]==="nonce"){b=b[D+1];break a}b=""}b=x1V(t[0],t[1],b);D=pR(b);e=t[2];if(!D.staticsApplied&&(D.staticsApplied=!0,e&&e.length))if((V=D._attrsArr)&&V.length){for(V=0;V<e.length;V+=2)Jj[e[V]]=V+1;V=D._attrsArr||(D._attrsArr=m1V(0));for(var a=0,w=0;w<V.length;w+=2){var h=V[w],K=V[w+1],N=Jj[h];N?e[N]===K&&delete Jj[h]:(V[a]=
h,V[a+1]=K,a+=2)}JL(V,a);for(var k in Jj)AnA(b,k,e[Jj[k]],q1),delete Jj[k]}else for(k=0;k<e.length;k+=2)AnA(b,e[k],e[k+1],q1);zKV(b,D,q1);JL(t,0);H&&H(d_);RKD()};
_.YP=function(D,t,H){H===void 0?delete D[t.name]:D[t.name]=H};
_.lf=function(D){var t={androidIncludeFontPadding:!1},H=0,e=[],V=[],b=[];if(D.simpleText)return t.content=D.simpleText,t;if(D.runs===void 0)return t.content="",t;D=_.F(D.runs);for(var a=D.next();!a.done;a=D.next()){a=a.value;var w=a.text,h=void 0,K=(h=w)==null?void 0:h.length;if(w&&K){e.push(w);if(a.bold||a.italics||a.strikethrough||a.underline||a.textColor!=null&&a.textColor!==0||a.deemphasize){w=V;h=w.push;var N={startIndex:H,length:K};a.bold&&(N.weightLabel="FONT_WEIGHT_MEDIUM");a.italics&&(N.italic=
!0);a.strikethrough&&(N.strikethrough="LINE_STYLE_SINGLE");a.underline&&(N.underline="LINE_STYLE_SINGLE");a.textColor!=null&&a.textColor!==0?document.documentElement.hasAttribute("dark")?N.fontColor=a.darkModeTextColor||a.textColor:N.fontColor=a.textColor:a.deemphasize&&(document.documentElement.hasAttribute("dark")?N.fontColor=parseInt("ff"+Q2T("#aaa").substring(1),16):N.fontColor=parseInt("ff"+Q2T("#606060").substring(1),16));h.call(w,N)}a.navigationEndpoint&&(w=b,h=w.push,N={startIndex:H,length:K,
onTap:{innertubeCommand:a.navigationEndpoint}},a.loggingDirectives&&_.YP(N,yPA,a.loggingDirectives),h.call(w,N));H+=K}}t.content=e.join("");t.styleRuns=V.length?V:void 0;t.commandRuns=b.length?b:void 0;return t};
zcR=function(D){if(D==null||!D.runs)return!0;D=_.F(D.runs);for(var t=D.next();!t.done;t=D.next())if(t=t.value,t.bracket||t.errorUnderline||t.deemphasize||_.O(t,vc)||_.O(t,B2A))return!1;return!0};
DsA=function(D,t){return function(H){var e=t.unit;if(e!==H)throw Error("jh`"+D+"`"+e+"`"+H);return t}};
pz=function(D){if(!((D==null?0:D.value)&&(D==null?0:D.unit)))return"";switch(D.unit){case "DIMENSION_UNIT_FRACTION":var t="%";break;default:t="px"}D=D.value;t==="%"&&(D*=100);return""+D+t};
t0D=function(D){try{return D()}catch(t){_.Yw(t)}};
_.xP=function(D){var t=_.O(D,_.dj);if(t)return t;if((t=_.O(D,HqX))&&t.commands)return eSA(t.commands);if((t=_.O(D,V0V))&&t.commands)return eSA(t.commands);if((D=_.O(D,bqV))&&D.identifier&&D.command&&(qVk||(qVk=[]),!qVk.includes(D.identifier)))return qVk.push(D.identifier),_.O(D.command,_.dj)};
eSA=function(D){if(D.length!==0){var t=[];D=_.F(D);for(var H=D.next();!H.done;H=D.next())(H=_.xP(H.value))&&t.push(H);return{commandExecutorCommand:{commands:t}}}};
_.uf=function(D){var t=D.defaultTarget,H=D.elementConfig,e=D.elementsCommand,V=D.skipOnClick,b=D.forceNewState,a=D.additionalCommandArgs,w=D.innertubeCommand||_.xP(e);if(w){D={};var h=Fz6(w);e=h.navigatingCommand;h=h.href;e&&h?(D.href$=h,abD(D,e,h,t),_.r("web_atagconfig_pointerdown")&&w8$(D,e),b&&(D["force-new-state$"]=!0)):(D.role$="button",D.href$="javascript:void(0);");_.O(w,ZqD)&&(D["aria-haspopup$"]=!0);V||(D.onclick=function(K){var N={};if(sr3(K)){var k=(a==null?void 0:a.clickedVisualElement)||
(a==null?void 0:a.getClickedVisualElement)&&a.getClickedVisualElement();k&&(N={clickedVisualElement:k});N=Object.assign({},{form:{element:K.target,event:K,createScreenConfig:N}},a);K.preventDefault();_.RQ(w,N)}});
return Object.assign({},H,D)}};
hSV=function(D){if(D.length){if(D.length===1)return D[0];var t={};_.YP(t,_.ch,{commands:D});return t}};
Wc=function(D){return D&&D.href$!=="javascript:void(0);"};
Fz6=function(D){var t,H=((t=_.O(D,_.ch))==null?void 0:t.commands)||[D];D=_.F(H);for(t=D.next();!t.done;t=D.next()){t=t.value;var e=void 0,V=void 0;H=(V=_.O((e=t)==null?void 0:e.commandMetadata,_.i1))==null?void 0:V.url;_.r("web_remove_web_navigation_endpoint_data")||(e=void 0,H=H||((e=_.O(t,GMK))==null?void 0:e.url));if(H&&H!=="/service_ajax"){if(e=_.lM(H,EaK))return D=_.JA(e),{navigatingCommand:t,href:D};_.Yw(new _.nZ("AttributedString URL could not be sanitized",H))}}return{}};
sr3=function(D){return D.button!==void 0?D.button===0&&!(D.shiftKey||D.altKey||D.metaKey||D.ctrlKey):!(D.shiftKey||D.altKey||D.metaKey||D.ctrlKey)};
abD=function(D,t,H,e){H=!ec(H);var V,b,a;if((V=_.O(t,_.UL))!=null&&V.nofollow||(b=_.O(t,_.Hh))!=null&&b.nofollow||(a=_.O(t,_.um))!=null&&a.nofollow||H)D.rel$="nofollow";var w;t=((w=_.O(t,_.um))==null?void 0:w.target)==="TARGET_NEW_WINDOW"?"_blank":e===void 0?"":e;D.target$=t};
w8$=function(D,t){t.clickTrackingParams&&(D.params={itct:t.clickTrackingParams});D.onpointerdown=function(H){Kz$(H)};
D._data=t};
NyV=function(D){(D.loggingUrls||[]).forEach(function(t){Qp(t.baseUrl,t.attributionSrcMode)})};
Kz$=function(D){var t=D.currentTarget;D=t0D(function(){return t.href});
var H=t.params;D&&_.qJ(D,H||{},8,!0)};
_.IQ=function(D,t){(D=_.xP(D))&&_.RQ(D,t)};
_.RQ=function(D,t){Q46(function(H){t?H.resolveCommand(D,t):H.resolveCommand(D)})};
jr3=function(D,t){var H=["yt-core-attributed-string__link"];t!=null&&t.noLinkColor||((t==null?0:t.isOverlay)?H.push("yt-core-attributed-string__link--overlay-call-to-action-color"):H.push("yt-core-attributed-string__link--call-to-action-color"),(t==null?0:t.linkInheritColor)&&H.push("yt-core-attributed-string--link-inherit-color"));H={className:H.join(" "),tabindex$:"0"};var e=D.onTap||D.onLongPress;if(!e)return H;var V=kMR(D);V&&(H["aria-label$"]=V);t=_.uf({elementsCommand:e,elementConfig:H,skipOnClick:!(t==
null||!t.skipOnClick),forceNewState:!0});D.onLongPress&&(e=new TyD(function(){var b=_.xP(D.onLongPress);b&&_.qS().resolve(_.aA).resolveCommand(b)}),t&&caK(e,t));
return t||H};
kMR=function(D){var t,H;return(t=D.onTapOptions)==null?void 0:(H=t.accessibilityInfo)==null?void 0:H.accessibilityLabel};
$s$=function(D){var t=D;D<=16777215&&(t+=parseInt("ff000000",16));return _.Qk(t)};
iqK=function(D){var t=D.isDarkTheme;var H=D.extension;D=D.runColor;var e=void 0;if(H=H==null?void 0:H.colorMap){t=t?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";H=_.F(H);for(var V=H.next();!V.done;V=H.next())if(V=V.value,t===V.key){e=V.value;break}}e==null&&D&&(e=D);if(e)return $s$(e)};
y_=function(D){var t=D.config;var H=D.image;var e=D.imageConfig;var V=D.imageWrapperConfig;var b=D.run;var a=D.tag;var w=D.textLength;var h=D.startIndex===void 0?0:D.startIndex;D=D.length;h===void 0&&(h=0);b={run:b,startIndex:h,endIndex:D!==void 0?h+D:w,tag:a};H&&(b.image=H);e&&(b.imageConfig=e);V&&(b.imageWrapperConfig=V);t&&(b.config=t);return b};
Oq8=function(D,t){var H=[];H.push("yt-core-attributed-string");(t==null?0:t.className)&&H.push(t==null?void 0:t.className);(t==null?0:t.ellipsisTruncate)?H.push("yt-core-attributed-string--ellipsis-truncate"):(t==null?0:t.noWrap)?H.push("yt-core-attributed-string--white-space-no-wrap"):(t==null?0:t.noPreWrap)||H.push("yt-core-attributed-string--white-space-pre-wrap");(t==null?0:t.linkInheritColor)&&H.push("yt-core-attributed-string--link-inherit-color");D.alignment&&H.push(raV(D.alignment));D.lineBreakMode&&
H.push("yt-core-attributed-string--word-wrapping");return H.join(" ")};
UsD=function(D,t){if(D.weight)return D.weight;switch(D.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return t?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
oaK=function(D){switch(D){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"}};
raV=function(D){switch(D){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"}};
DP=function(D,t,H){var e=t;D.content&&H&&(H=D.content.indexOf("\n"),H!==-1&&(e=Math.min(t,H)));if(!D.content||D.content.length<=e)t=D;else if(D.attachmentRuns||D.commandRuns||D.decorationRuns||D.styleRuns||D.paragraphStyleRuns){t=Bc(D.content,e);H=e;var V=D.attachmentRuns;if(V){var b=[];V=_.F(V);for(var a=V.next();!a.done;a=V.next())a=Object.assign({},a.value),a.startIndex===void 0||a.startIndex>=H||(a.length||(a.length=0),a.length+a.startIndex>H&&(a.length=H-a.startIndex),b.push(a));H=b}else H=void 0;
b=PXD(e,D.commandRuns);V=e;var w=D.decorationRuns;if(w){a=[];w=_.F(w);for(var h=w.next();!h.done;h=w.next()){h=h.value;var K=_.O(h.textDecorator,zL);if(K&&K.startIndex!==void 0&&!(K.startIndex>=V)){h=Object.assign({},h,{textDecorator:{highlightTextDecorator:Object.assign({},K)}});K=_.O(h.textDecorator,zL);if(!K.length||K.length+K.startIndex>V)K.length=V-K.startIndex;a.push(h)}}V=a}else V=void 0;a=PXD(e,D.styleRuns);if(w=D.paragraphStyleRuns)for(D=[],w=_.F(w),h=w.next();!h.done;h=w.next()){var N=h.value;
h=Object.assign({},N);if(!(h.startIndex===void 0||h.startIndex>=e)){if(!h.length||h.length+h.startIndex>e)h.length=e-h.startIndex;K=[];var k=void 0,T=void 0;if((k=N)==null?0:(T=k.listGroup)==null?0:T.listItems)for(N=_.F(N.listGroup.listItems),k=N.next();!k.done;k=N.next())if(k=Object.assign({},k.value),!(k.startIndex===void 0||k.startIndex>=e)){if(!k.length||k.length+k.startIndex>e)k.length=e-k.startIndex;K.push(k)}K.length>0&&(h.listGroup||(h.listGroup={}),h.listGroup=Object.assign({},h.listGroup,
{listItems:K}));D.push(h)}}else D=void 0;t={content:t,attachmentRuns:H,commandRuns:b,decorationRuns:V,styleRuns:a,paragraphStyleRuns:D}}else t=Object.assign({},D,{content:Bc(D.content,e)});return t};
PXD=function(D,t){if(t){var H=[];t=_.F(t);for(var e=t.next();!e.done;e=t.next())if(e=Object.assign({},e.value),!(e.startIndex===void 0||e.startIndex>=D)){if(!e.length||e.length+e.startIndex>D)e.length=D-e.startIndex;H.push(e)}return H}};
Bc=function(D,t){var H=t,e;if(e=H>0)e=D.charCodeAt(H-1),e=e>=55296&&e<=56319;e&&(H=D.charCodeAt(H),e=H>=56320&&H<=57343);e&&--t;return D.substring(0,t)};
M0V=function(D,t,H){H=H===void 0?naA:H;if(D){var e=_.qS().resolve(aC);e||_.r("mweb_no_observer_killswitch")?UjD(D,{data:t,observer:e,visibilityCallback:H,hideOption:CXX,showOption:msk,layer:D.layer}):_.Yw(new _.nZ("Warning: monitorVisibility called with null observer",D.tagName,t==null?void 0:t.loggingDirectives,t==null?void 0:t.trackingParams))}else _.Yw(new _.nZ("Warning: monitorVisibility called with null element",t==null?void 0:t.loggingDirectives,t==null?void 0:t.trackingParams,t==null?void 0:
t.rendererContext))};
JaT=function(D,t){var H=[],e=D.content.length,V,b=(V=_.qS().resolve(_.by(_.tB)))==null?void 0:V();if(D.paragraphStyleRuns){V=_.F(D.paragraphStyleRuns);for(var a=V.next();!a.done;a=V.next()){var w=H.push,h=w.apply;var K=void 0;a=a.value;if((K=a.listGroup)!=null&&K.listItems){K=[];b:switch(a.listGroup.listType){case "LIST_TYPE_BULLET":var N="ul";break b;default:N="span"}K.push(y_({run:a,textLength:e,tag:N,config:{className:"yt-core-attributed-string__list-group"},startIndex:a.startIndex,length:a.length}));
N=_.F(a.listGroup.listItems);for(var k=N.next();!k.done;k=N.next()){k=k.value;b:switch(a.listGroup.listType){case "LIST_TYPE_BULLET":var T="li";break b;default:T="span"}K.push(y_({run:a,textLength:e,tag:T,startIndex:k.startIndex,length:k.length}))}a=K}else a=[];h.call(w,H,_.A6(a))}}if(D.styleRuns&&(t==null||!t.noStyleRuns))for(V=_.F(D.styleRuns),w=V.next();!w.done;w=V.next()){a=w=w.value;K=b;h=t;K=iqK({extension:_.O(a.styleRunExtensions,SVV),isDarkTheme:K===void 0?!1:K,runColor:a.fontColor});k=a;
N=[];K&&N.push("yt-core-attributed-string--link-inherit-color");k.italic&&N.push("yt-core-attributed-string--italicized");k.underline&&k.strikethrough?N.push("yt-core-attributed-string--underline-strikethrough",oaK(k.underline)):k.underline?N.push("yt-core-attributed-string--underlined",oaK(k.underline)):k.strikethrough&&N.push("yt-core-attributed-string--strikethrough",oaK(k.strikethrough));if(k.baselineOffset){a:switch(k.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":k="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":k="yt-core-attributed-string--baseline-offset-superscript";break a;default:k="yt-core-attributed-string--baseline-offset-unknown"}N.push(k)}N=N.join(" ");k={};if(a.weight||a.weightLabel)k.fontWeight=UsD(a,h==null?void 0:h.isHeadline).toString();K&&(k.color=K);H.push(y_({run:w,textLength:e,tag:"span",config:{className:N,style:k},startIndex:w.startIndex,length:w.length}))}if(D.decorationRuns)for(V=_.F(D.decorationRuns),w=V.next();!w.done;w=V.next())w=w.value,
h={},w.textDecorator&&(N=w.textDecorator,a=b===void 0?!1:b,k=[],K=_.O(N,zL),N=_.O(N,X83),K?(N=k,k=N.concat,T=[],(a=iqK({extension:_.O(K.highlightTextDecoratorExtensions,fbD),isDarkTheme:a,runColor:K.backgroundColor}))&&T.push("background-color: "+a+";"),K.backgroundCornerRadius!==void 0&&T.push("border-radius: "+K.backgroundCornerRadius+"px;"),K.leftPadding!==void 0&&T.push("padding-left: "+K.leftPadding+"px;"),K.rightPadding!==void 0&&T.push("padding-right: "+K.rightPadding+"px;"),K.topPadding!==
void 0&&T.push("padding-top: "+K.topPadding+"px;"),K.bottomPadding!==void 0&&T.push("padding-bottom: "+K.bottomPadding+"px;"),k=k.call(N,T)):N&&(K=k,k=K.concat,a=a?"#2ba640":"#107516",a=N.color?$s$(N.color):a,a=["padding: 2px;","border-top: solid "+a+" 2px;","border-bottom: solid "+a+" 2px;","background: linear-gradient(135deg, "+a+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+a+" 3px, rgba(0, 0, 0, 0) 3px);"],k=k.call(K,a)),a=k.join(" "),h.style$=a,a=w.textDecorator,K=[],N=_.O(a,
X83),_.O(a,zL)?K.push("yt-core-attributed-string--highlight-text-decorator"):N&&K.push("yt-core-attributed-string--bracket-text-decorator"),a=K.join(" "),h.className=a,h.dir="auto"),a=_.O(w.textDecorator,zL),K=_.O(w.textDecorator,X83),N=_.O(w.textDecorator,zL),k=_.O(w.textDecorator,X83),H.push(y_({run:w,textLength:e,tag:"span",config:h,startIndex:(a==null?void 0:a.startIndex)||(K==null?void 0:K.startIndex)||0,length:(N==null?void 0:N.length)||(k==null?void 0:k.length)||0}));if(D.commandRuns&&(t==
null||!t.noEndpoints))for(b=_.F(D.commandRuns),V=b.next();!V.done;V=b.next())V=V.value,w=jr3(V,t),H.push(y_({run:V,textLength:e,tag:"a",config:w,startIndex:V.startIndex,length:V.length}));if(D.attachmentRuns)for(D=_.F(D.attachmentRuns),b=D.next();!b.done;b=D.next()){b=b.value;h=w=void 0;V={className:"yt-core-attributed-string--inline-block-mod"};if((h=b.element)==null?0:h.properties){h=(w=b.element)==null?void 0:w.properties;w=[];h=_.O(h,Lzu);if(h==null?0:h.margin)h=h.margin,h.left&&w.push("margin-left: "+
pz(h.left)+";"),h.right&&w.push("margin-right: "+pz(h.right)+";"),h.top&&w.push("margin-top: "+pz(h.top)+";"),h.bottom&&w.push("margin-bottom: "+pz(h.bottom)+";");w=w.length!==0?w.join(" "):void 0;V.style$=w}a=void 0;w={alt:"",preserveHeight:!0,preserveWidth:!0};h=["yt-core-attributed-string__image-element"];if(b.alignment){a:switch(b.alignment){case "ALIGNMENT_BASELINE":K="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":K="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:K="yt-core-attributed-string__image-element--image-alignment-bottom"}h.push(K)}if((a=b.element)==null?0:a.properties)a=[],K=_.O(b.element.properties,Lzu),(K==null?0:K.height)&&a.push("height: "+pz(K.height)+";"),(K==null?0:K.width)&&a.push("width: "+pz(K.width)+";"),a=a.length!==0?a.join(" "):void 0,w.style$=a,K=void 0,a=((K=_.O(b.element.properties,Aa3))==null?void 0:K.label)||"",w.alt=a;w.className=h.join(" ");h=void 0;N=K=void 0;a=((N=b.element)==null?0:N.type)?(K=_.O(b.element.type,
ga3))==null?void 0:K.image:void 0;H.push(y_({run:b,textLength:e,tag:"img",image:a,imageConfig:w,imageWrapperConfig:V,startIndex:b.startIndex,length:(h=b.length)!=null?h:0}))}if(t==null?0:t.headerRuns)for(t=_.F(t.headerRuns),D=t.next();!D.done;D=t.next())if(D=D.value,D.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(D.headerMapping)){a:{switch(D.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":b=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":b="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":b="yt-core-attributed-string--heading-3";break a}b=void 0}H.push(y_({run:D,textLength:e,tag:"span",config:b?{className:b}:void 0,startIndex:D.startIndex,length:D.length}))}return H};
_.HZ=function(D){return(D==null?void 0:D.content)!==void 0};
YVD=function(D){return _.HZ(D)?D:_.lf(D)};
lbD=function(D){return D.image!==void 0&&D.imageConfig!==void 0};
va3=function(D,t){if(t==null?0:t.userInput)for(D=_.F(D),t=D.next();!t.done;t=D.next())if(t=t.value,t.tag!=="a"&&t.tag!=="li"){var H=void 0;(H=t).config||(H.config={});t.config.dir=t.tag==="ul"?_.qS().resolve(_.eQ):"auto"}};
p8D=function(D){return function(t){var H=D.run;(H.onTap!==void 0||H.onLongPress!==void 0)&&_.O(H,yPA)&&M0V(t,{loggingDirectives:_.O(H,yPA)})}};
dsA=function(D){return function(t){for(var H in D)(q1[H]||q1[lD["default"]])(t,H,D[H])}};
WzV=function(D,t){xsX(t);var H={data:null,start:0,end:D.length,parts:[]};t=_.F(t);for(var e=t.next();!e.done;e=t.next())e=e.value,RS$(H,e.startIndex,e.endIndex,e);ut3(D,H);return H};
RS$=function(D,t,H,e){for(var V=_.F(D.parts),b=V.next();!b.done;b=V.next()){b=b.value;if(typeof b==="string")throw Error("lh");if(b.start<=t&&H<=b.end){RS$(b,t,H,e);return}}D.parts.push({data:e,parts:[],start:t,end:H})};
ut3=function(D,t){for(var H=t.parts.length;H>=0;H--){var e=t.parts[H],V=t.parts[H-1],b=H===t.parts.length?t.end:e.start;V=H===0?t.start:V.end;b!==V&&t.parts.splice(H,0,D.slice(V,b));e&&ut3(D,e)}};
xsX=function(D){D.sort(function(t,H){if(t.startIndex<H.startIndex)return-1;if(H.startIndex<t.startIndex)return 1;t=t.endIndex-t.startIndex;H=H.endIndex-H.startIndex;return t>H?-1:H>t?1:0})};
_.IbK=function(D){var t=D.thumbnails;if(t){D={sources:[]};t=_.F(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;var e={};e.url=H.url;e.width=H.width;e.height=H.height;D.sources.push(e)}return D}};
QrX=function(D,t,H,e){if(!t)return D.length>=1?D[D.length-1]:null;if(e)for(var V=_.F(D),b=V.next();!b.done;b=V.next()){b=b.value;var a=void 0,w=(a=b.url)==null?void 0:a.indexOf(e);if(w!==void 0&&w>=0)return b}e=_.F(D);for(V=e.next();!V.done;V=e.next())if(V=V.value,V.width&&V.height&&(H&&V.width>=t||!H&&V.height>=t))return V;for(t=D.length-1;t>=0;t--)if(H&&D[t].width||!H&&D[t].height)return D[t];return D[0]};
_.yaA=function(D){var t;return(D=(t=D.sources)==null?void 0:t[0])?D.width/D.height:0};
_.ByT=function(D){if(D.sources){D=_.F(D.sources);for(var t=D.next();!t.done;t=D.next()){t=t.value;var H=void 0;if((H=t.clientResource)==null?0:H.imageName)return t}}};
zS3=function(D){var t;if((t=D.clientResource)!=null&&t.imageColor)return _.Qk(D.clientResource.imageColor)};
_.tKR=function(D,t,H,e,V,b,a){if(!t||t.length===0||t[0].clientResource)return null;if(H&&t[0].url)return t[0].url;e===void 0&&(e=!0);if(e){var w;D=D7u*(V||(D==null?void 0:(w=D.getBoundingClientRect())==null?void 0:w.width)||0)}else{var h;D=D7u*(b||(D==null?void 0:(h=D.getBoundingClientRect())==null?void 0:h.height)||0)}t=QrX(t,D,e,a);return(t==null?0:t.url)?t.url:(t==null?0:t.imageData)?t.imageData:null};
HO6=function(D,t,H){H=H?[H]:[];D.opacity&&H.push("opacity: "+D.opacity+";");t&&D.placeholderColor?(D=_.Qk(D.placeholderColor),H.push("background-color: "+D+";")):H.push("background-color: transparent;");return H.join(" ")};
ekK=function(D,t,H,e,V){var b=["ytCoreImageHost"];t&&b.push(t);H||b.push("ytCoreImageFillParentHeight");e||b.push("ytCoreImageFillParentWidth");switch(D.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":b.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":b.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":b.push("ytCoreImageContentModeCenter");break;default:b.push("ytCoreImageContentModeScaleToFill")}D.flipForRtlLayout&&b.push("ytCoreImageFlipRtl");
switch(V){case "TOP_START":var a;b.push(((a=document.body)==null?void 0:a.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return b.join(" ")};
bO$=function(D){var t;if(D==null?0:(t=D.clientResource)==null?0:t.imageName){var H;D=(H=D.clientResource)==null?void 0:H.imageName;a:{switch(D){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":H="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":H="yt-logos-ext:yt-logo-updated";break a}H=void 0}return H||VK6.get(D)||D}};
aIk=function(D){return _.r("mweb_wiz_skip_render")?qXD(D):Fo8(D)};
qXD=function(D){return function(t){var H=x1V("wink-root");u9V();RKD();TgT(H,_.G(D,t))}};
Fo8=function(D){var t=t===void 0?!1:t;return function(H){if(!t||!_.r("mweb_skip_keto_to_c3_if_no_data")||H.data!==void 0){var e=aD(!1);try{var V=H.children;_.r("mweb_render_outside_patch_killswitch")||d_?V?bv(_.G(D,H,V)):bv(_.G(D,H)):_.Yw(new _.nZ("ketoToC3 called outside of a patch",{tagName:D.TAG_NAME}))}finally{aD(e)}}}};
w6K=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
sYV=function(D,t){D.onViewportEntered=t;ZOV.observe(D)};
hk3=function(){var D={rootMargin:"10%",threshold:.01};_.r("mweb_enable_set_io_root_to_null_safari")?D.root=null:_.r("mweb_enable_set_io_root_to_body_safari")&&(D.root=document.body);return new IntersectionObserver(function(t,H){t.filter(function(e){return e.intersectionRect.height>0}).forEach(function(e){e=e.target;
if(!_.r("mweb_enable_only_update_image_when_connected")||e.isConnected!==!1){var V;(V=e.onViewportEntered)==null||V.call(e);H.unobserve(e)}})},D)};
GC3=function(D,t,H,e,V){function b(){if(e){var w=e.loadedClass,h=e.notifyOnUnloaded;w&&_.VL(D,w);h&&D.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function a(){var w=H(t,D);w&&D.getAttribute("src")!==w&&(_.r("mweb_enable_only_update_image_when_connected")&&D.isConnected===!1||w===D.src||(D.src=w),b())}
V=V===void 0?!0:V;D.removeAttribute("src");b();t&&(V?sYV(D,a):a())};
E9V=function(D,t,H){if(!t)return!1;t=H(t,D);H=D.getAttribute("src");return t&&t===H&&D.complete};
KoV=function(D,t){for(var H in t)H==="className"?D.className=t[H]:(q1[H]||q1[lD.default])(D,H,t[H])};
NY3=function(D,t,H,e){aIk(_.bi)({contentMode:t.contentMode,loadedClass:t.loadedClass,isPreloaded:t.isPreloaded,notifyOnLoaded:t.notifyOnLoaded,notifyOnUnloaded:t.notifyOnUnloaded,preferredThumbnail:t.preferredThumbnail,preserveHeight:t.preserveHeight,preserveWidth:t.preserveWidth,objectPosition:t.objectPosition,targetWidth:t.targetWidth,targetHeight:t.targetHeight,shouldShowPlaceholder:t.shouldShowPlaceholder,useWidth:t.useWidth,isToggled:t.isToggled,alt:t.alt,className:t.className,onerror:t.onerror,
onload:t.onload,style$:t.style$,color:t.color,width:t.width,height:t.height,"aria-hidden$":t["aria-hidden$"],draggable:t.draggable,"data-disabled$":t["data-disabled$"],data:D,callback:H,renderLazy:e===void 0?!0:e,hideOn404:!1})};
TYT=function(D,t,H){H=H===void 0?!1:H;var e=D.sources!==void 0?D:_.IbK(D);if(e){var V=t.onload;t.onload=function(h){var K=h.target;H&&K.naturalWidth===120||_.qX(K,"ytCoreImageLoaded");t.notifyOnLoaded&&K.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));V==null||V(h)};
t.targetWidth&&t.preserveWidth&&(t.width=t.targetWidth);t.targetHeight&&t.preserveHeight&&(t.height=t.targetHeight);var b=_.ByT(e),a=b&&bO$(b);if(a)return(D=zS3(b))&&(t.color=D),{type:"icon",iconName:a,config:Object.assign({},t,t.alt?{}:{"aria-hidden$":"true"},{"aria-label$":t.alt,role:"img"})};if(D.sources===void 0){t.alt=D.accessibility&&D.accessibility.accessibilityData&&D.accessibility.accessibilityData.label||t.alt;t.style$=HO6(D,t.shouldShowPlaceholder,t.style$);var w;t.isPreloaded=!((w=_.O(D,
kC8))==null||!w.isPreloaded)}t.contentMode&&!e.contentMode&&(e.contentMode=t.contentMode);t.className=ekK(e,t.className,t.preserveHeight,t.preserveWidth,t.objectPosition);t.loadedClass="ytCoreImageLoaded";return{type:"image",image:e,config:t}}};
_.FI=function(){var D=_.RE.apply(0,arguments);return _.ep(cgX,function(t){var H=D.map(function(e){return e==null?void 0:e(t)});
return function(){return void H.forEach(function(e){return void(e==null?void 0:e())})}})};
aH=function(D,t){var H=t==null?void 0:t.initial;return _.jj(function(){_.fR(!0);return H=D(H)},{equals:t==null?void 0:t.isEqual},"rSlKsc")};
jYV=function(D,t){if(D===t)return!0;if(D===void 0||t===void 0)return!1;var H,e,V,b,a,w,h,K;return D.content===t.content&&((H=D.styleRuns)==null?void 0:H.length)===((e=t.styleRuns)==null?void 0:e.length)&&((V=D.commandRuns)==null?void 0:V.length)===((b=t.commandRuns)==null?void 0:b.length)&&((a=D.attachmentRuns)==null?void 0:a.length)===((w=t.attachmentRuns)==null?void 0:w.length)&&((h=D.decorationRuns)==null?void 0:h.length)===((K=t.decorationRuns)==null?void 0:K.length)};
rgV=function(D,t){if(D){var H=YVD(D);if(H!=null&&H.content)if(_.r("attr_string_reactive"))aIk($7u)({text:D,config:t});else{var e=!(t==null||!t.ariaLabel)||!(H.commandRuns&&H.commandRuns.length!==0||H.paragraphStyleRuns&&H.paragraphStyleRuns.length!==0);D=e?t==null?void 0:t.ariaLabel:null;e=e?"text":null;IqA("span",{className:Oq8(H,t),dir$:(t==null?0:t.userInput)?"auto":void 0,"aria-label$":D,role$:e},function(){if(H.styleRuns||H.commandRuns||H.attachmentRuns||H.decorationRuns||H.paragraphStyleRuns){var V=
JaT(H,t);va3(V,t);V=WzV(H.content,V);V=_.F(V.parts);for(var b=V.next();!b.done;b=V.next())iOV(b.value)}else DlV(H.content)})}}};
iOV=function(D){typeof D==="string"?DlV(D):lbD(D.data)?IqA("span",D.data.imageWrapperConfig,function(){NY3(D.data.image,D.data.imageConfig)}):IqA(D.data.tag,D.data.config,function(t){p8D(D.data)(t);
t=_.F(D.parts);for(var H=t.next();!H.done;H=t.next())iOV(H.value)})};
U7D=function(D){return D.parts.map(OOK)};
OOK=function(D){if(typeof D==="string")return D;D=lbD(D.data)?_.G("span",{el:_.FI(dsA(D.data.imageWrapperConfig))},_.G(_.bi,Object.assign({},{data:D.data.image},D.data.imageConfig))):_.G(D.data.tag,{el:_.FI(p8D(D.data),dsA(D.data.config))},D.parts.map(OOK));return jG(D)};
o9A=function(D,t){return D===t?!0:D===void 0||t===void 0?!1:D.noStyleRuns===t.noStyleRuns&&D.noLinkColor===t.noLinkColor&&D.noEndpoints===t.noEndpoints&&D.headerRuns===t.headerRuns&&D.isOverlay===t.isOverlay&&D.linkInheritColor===t.linkInheritColor&&D.userInput===t.userInput&&D.isHeadline===t.isHeadline};
Pdk=function(D){return function(){var t,H,e,V,b,a,w,h,K,N,k,T,c,U;return{ariaLabel:(t=D.ariaLabel)==null?void 0:t.call(D),className:(H=D.className)==null?void 0:H.call(D),ellipsisTruncate:(e=D.ellipsisTruncate)==null?void 0:e.call(D),isOverlay:(V=D.isOverlay)==null?void 0:V.call(D),linkInheritColor:(b=D.linkInheritColor)==null?void 0:b.call(D),noEndpoints:(a=D.noEndpoints)==null?void 0:a.call(D),noStyleRuns:(w=D.noStyleRuns)==null?void 0:w.call(D),noLinkColor:(h=D.noLinkColor)==null?void 0:h.call(D),
noPreWrap:(K=D.noPreWrap)==null?void 0:K.call(D),noWrap:(N=D.noWrap)==null?void 0:N.call(D),skipOnClick:(k=D.skipOnClick)==null?void 0:k.call(D),userInput:(T=D.userInput)==null?void 0:T.call(D),headerRuns:(c=D.headerRuns)==null?void 0:c.call(D),isHeadline:(U=D.isHeadline)==null?void 0:U.call(D)}}};
CdA=function(D,t){D=new n9D(D,t);_.gT(D);throw D;};
m7$=function(D,t,H){var e=vjD(D);D._numRenders=0;try{var V=_.Jl$(function(){return _.G(t,Object.assign({},H))})}catch(a){var b=function(w){w.args||(w.args=[]);
w.args.push("Error in web component wrapper");w.args.push(D.tagName.toLowerCase());return w};
_.Jp(a instanceof Error?b(a):new n9D("Wiz rendering error",D.tagName.toLowerCase()));throw a;}finally{vjD(e)}return V};
_.hB=function(D,t,H){function e(N){var k={};N=_.F(N);for(var T=N.next();!T.done;T=N.next()){T=T.value;var c=void 0,U=void 0,S=void 0,L=_.oz((S=(U=(c=T).getAttribute)==null?void 0:U.call(c,"slot"))!=null?S:"children");if(c=k[L])c.push(T);else if(L in b||L==="children")k[L]=[T]}N=_.F(Object.keys(k));L=N.next();for(T={};!L.done;T={content$jscomp$57:void 0},L=N.next())L=L.value,L!=="children"&&(T.content$jscomp$57=k[L],k[L]=function(J){return function(){return J.content$jscomp$57}}(T));
return k}
H=H===void 0?{}:H;D.componentType!==PI||CdA("Components must be marked reactive to be used from web component wrapper.",t);var V,b=(V=H.props)!=null?V:{};GL.add(t);var a=MKA();V=function(){var N=a.apply(this,arguments)||this;N.rawProps={};N.queuingRender=!1;N.dispose=function(){};
N.isWebComponentWrapper=!0;N.isReparenting=!1;N.hasRendered=!1;return N};
_.P(V,a);V.prototype.render=function(){this.hasRendered=!0;for(var N=_.F([].concat(_.A6(this.attributes))),k=N.next();!k.done;k=N.next())k=k.value,k.name!=="slot"&&k.name!=="hidden"&&this.removeAttribute(k.name);N=Object.assign({},this.componentProps,this.slotProps);k=_.F(m7$(this,D,N));N=k.next().value;k=k.next().value;!(N[0]instanceof Element)||N.length>1?CdA("Wrapped Wiz components must return a single root element.",t):(N=N[0].tagName.toLowerCase(),N!==t&&CdA("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(N+" !== '"+t),t),this.dispose=k)};
V.prototype.setUpProps=function(){for(var N=this.rawProps,k=this.attributes,T=_.F(Object.keys(b)),c=T.next();!c.done;c=T.next()){c=c.value;var U=void 0;((U=this)==null?0:U[c])&&this[c]!==SXD&&N[c]===void 0&&(N[c]=this[c],(U=Object.getOwnPropertyDescriptor(this.constructor.prototype,c))&&Object.defineProperty(this,c,U))}T=_.F(k);for(c=T.next();!c.done;c=T.next()){U=c.value;c=_.oz(U.name);var S=c==="class"&&!k.getNamedItem("class-name");if(c in b||S)U=U.value===""||U.value==="true"?!0:U.value==="false"?
!1:isNaN(Number(U.value))?U.value:Number(U.value),c!=="class"||N.className?N[c]=U:N.className=U}k={};for(var L in b)b[L]!==_.wm&&b[L]!==X6R&&(N[L]instanceof Function&&CdA("Function props must be configured as STATIC, not SIGNAL.",t),c=_.F(_.KR(N[L],void 0,"q4ZVff")),T=c.next().value,c=c.next().value,k[L]=c,N[L]=T);N=_.F([N,k]);this.componentProps=N.next().value;this.setters=N.next().value;this.slotProps=e(this.childNodes)};
V.prototype.connectedCallback=function(){fIK===t&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in b&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
V.prototype.disconnectedCallback=function(){if(!this._isInert){var N;a:{if(_.ZP)for(N=this;N;){if(_.s7.has(N)){N=!0;break a}N=N.parentElement}N=!1}if(N)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){N=_.F([].concat(_.A6(this.attributes)));for(var k=N.next();!k.done;k=N.next()){k=k.value;var T=void 0;k.name==="slot"||k.name==="hidden"&&((T=H.unsafeExternallySettableAttributes)==null?0:T.has("hidden"))||this.removeAttribute(k.name)}}this.innerText="";XWA(this)}}};
V.prototype._setPendingPropertyOrPath=function(){};
V.prototype.notifyPath=function(){};
_.ql.Object.defineProperties(V.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var w=_.F(Object.keys(b)),h=w.next(),K={};!h.done;K={prop$jscomp$105:void 0},h=w.next())K.prop$jscomp$105=h.value,h=void 0,((h=H.legacyPolymer)==null?0:h.forwardHostProps)&&MUu.has(K.prop$jscomp$105)||Object.defineProperty(V.prototype,K.prop$jscomp$105,{set:function(N){return function(k){var T=this;this._isInert||(this.setters?$M(function(){var c,U;return void((U=(c=T.setters)[N.prop$jscomp$105])==null?void 0:U.call(c,k))}):(this.rawProps[N.prop$jscomp$105]=k,this.queuingRender&&N.prop$jscomp$105===
"data"&&k!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(K),
get:LoD.has(K.prop$jscomp$105)?void 0:function(){return SXD}});
customElements.define(t,V)};
_.Ag$=function(D,t){return(D=_.G3(D,t))?_.JA(_.dw(D)):null};
_.E7=function(D){if(D=_.G3(D,Number.MAX_VALUE,void 0,"width"))return _.dw(D)};
_.G3=function(D,t,H,e){e=e===void 0?"width":e;if(!D||!D.length)return null;if(_.r("kevlar_tuner_should_always_use_device_pixel_ratio")){var V=window.devicePixelRatio;_.r("kevlar_tuner_should_clamp_device_pixel_ratio")?V=Math.min(V,_.ZU("kevlar_tuner_clamp_device_pixel_ratio")):_.r("kevlar_tuner_should_use_thumbnail_factor")&&(V=_.ZU("kevlar_tuner_thumbnail_factor"));g9T=V}else g9T||(g9T=window.devicePixelRatio);V=g9T;_.r("kevlar_tuner_should_always_use_device_pixel_ratio")?t*=V:V>1&&(t*=V);if(_.r("kevlar_tuner_min_thumbnail_quality"))return D[0].url||
null;V=D.length;if(_.r("kevlar_tuner_max_thumbnail_quality"))return D[V-1].url||null;if(H)for(var b=0;b<V;b++)if(D[b].url.indexOf(H)>=0)return D[b].url||null;for(H=0;H<V;H++)if(D[H][e]>=t)return D[H].url||null;for(t=V-1;t>0;t--)if(D[t][e])return D[t].url||null;return D[0].url||null};
lIV=function(){Kb.size?setTimeout(function(){NX(JgD)},0):YXR=0};
JgD=function(){var D=(0,_.aP)(),t=null,H=!1;Kb.forEach(function(V){V.loaded=!0;V.loadTime=D;V.pendingPaint=!1;var b=v93.get(V);b&&b.resolve(D);t=V;H||!V.ftlEligible&&V.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(H=!0)});
var e;((e=t)==null?0:e.markDirty)&&t.markDirty();Kb.clear();YXR=0;H&&p6R(D)};
d78=function(D){Kb.add(D);D.pendingPaint=!0;YXR||(YXR=_.kX(_.Jy,lIV))};
x7K=function(D){D.loaded=!1;D.loadTime=Infinity;var t=v93.get(D);t&&(t.reject(Error("rh")),v93.delete(D));D.pendingPaint&&(Kb.delete(D),D.pendingPaint=!1)};
_.Rkk=function(D){var t=D.indexOf(":");return t===-1?{originalName:D}:{originalName:D.substring(0,t),datasyncId:D.substring(t+1)}};
_.WoX=function(){return _.Z(function(D){if(up3!==void 0)return D.return(up3);up3=new Promise(function(t){var H;return _.Z(function(e){switch(e.nextAddress){case 1:return _.$p(e,2),e.yield(_.T3.open("test-only"),4);case 4:return e.yield(_.T3.delete("test-only"),5);case 5:_.yM(e,3);break;case 2:if(H=_.Pv(e),H instanceof Error&&H.name==="SecurityError")return t(!1),e.return();case 3:t("caches"in window),_.n2(e)}})});
return D.return(up3)})};
ygD=function(){return _.Z(function(D){if(D.nextAddress==1)return D.yield(_.WoX(),2);if(!D.yieldResult)return D.return(void 0);IIV||(IIV=new QYR);return D.return(IIV)})};
BYu=function(D){var t,H,e,V;return _.Z(function(b){switch(b.nextAddress){case 1:return b.yield(ygD(),2);case 2:t=b.yieldResult;if(!t)throw Error("th");return b.yield(t.open("yt-player-local-img"),3);case 3:return H=b.yieldResult,b.yield(H.match(D),4);case 4:e=b.yieldResult;if(!e)throw Error("uh");return b.yield(e.blob(),5);case 5:return V=b.yieldResult,b.return(V)}})};
zkV=function(D,t){for(var H in D)if(D.hasOwnProperty(H)&&t[H])return H;return null};
Dq$=function(D){return"stamp"+D.replace("-","_")+"_"};
thR=function(D){var t=D.match(/\[\[([\w\.]+)\]\]/);if(t&&t.length>1)return t[1];_.gT(Error("wh`"+D));return null};
HDX=function(D){return D===void 0?_.lh("REUSE_COMPONENTS",!1):D||!1};
bD$=function(D,t,H){H&&(t.is?(epk.has(t)&&(D=epk.get(t),H=D.listener,delete t[D.property],H.type==="element"&&t.removeEventListener(H.eventName,H.handler),epk.delete(t)),VhV(t)):t.__proto__==HTMLElement.prototype&&(t=new _.nZ("Rendererstamper removed a non custom element","Stamper: "+D+" element: "+(t&&t.nodeName)),_.Yw(t)))};
q$3=function(D,t,H,e){var V=t.node?t.node:t;_.Kg(H).parentNode===V&&(t.removeChild(H),bD$(D,H,e));if(D=cZ.get(H))cZ.delete(H),_.Jy.cancelJob(D);H.hidden=!1};
F7u=function(D,t,H,e){if(t&&t.children&&(H=t.children[H]))if(_.lh("DEFERRED_DETACH"))for(;H&&!cZ.has(H);){var V=D,b=t,a=H,w=e;a.hidden=!0;V=_.C7(_.Jy,q$3.bind(null,V,b,a,w),0);cZ.set(a,V);H=H.nextElementSibling}else for(;(a=t.lastElementChild)&&(t.removeChild(a),bD$(D,a,e),a!=H););};
_.jQ=function(){for(var D=_.RE.apply(0,arguments),t=!0,H=_.F(D),e=H.next();!e.done;e=H.next())if(typeof e.value!=="string"){t=!1;break}return t?D.join(" ").trim()||void 0:function(){for(var V="",b=_.F(D),a=b.next();!a.done;a=b.next())if(a=a.value,typeof a==="function"&&(a=a()),a)if(typeof a==="string")V+=" "+a;else for(var w in a)if(a.hasOwnProperty(w)){var h=a[w];typeof h==="function"&&(h=h());h&&(V+=" "+w)}V=V.trim()||void 0;return _.fR(V)}};
wER=function(D){var t;return(t=aW6[D])!=null?t:"EVENT_SPAN_TYPE_UNKNOWN"};
ZDR=function(D){var t=D.nodeName;if(D.id)return t+="#"+D.id;if(D.classList)for(var H=_.F(D.classList),e=H.next();!e.done;e=H.next())t+="."+e.value;D.parentElement&&(t=ZDR(D.parentElement)+" > "+t);return t};
saT=function(D){return function(t){var H=wER(t.type);return H==="EVENT_SPAN_TYPE_UNKNOWN"?D(t):GzX("event",{type:H,nodepath:t.target instanceof Element?ZDR(t.target):void 0},function(){return D(t)})}};
_.$X=function(D){D&&ZSV("event")&&(D=saT(D));return EG$(function(t){var H,e=(H=D)==null?void 0:H(t);return typeof e==="boolean"?e:!0})};
ii=function(D){return function(){return D()?D():void 0}};
K7u=function(D){var t=_.DY("animated-rolling-character"),H=C1k(),e=V$(D.character)||V$(D.previousCharacter),V=_.F(mIV()),b=V.next().value,a=V.next().value;_.XH(function(){if(window.ResizeObserver&&_.r("web_fix_rolling_numbers_zoom_safari")){var w=new ResizeObserver(function(){var h,K,N=Math.round(((K=(h=t.value.querySelector("div"))==null?void 0:h.getBoundingClientRect().height)!=null?K:0)*100)/100;N&&a(N)});
w.observe(t.value);return function(){w.disconnect()}}});
j4k(function(){var w=_.r("web_fix_rolling_numbers_zoom_safari")?b:D.marginMultiplier;if(w){var h;(h=H.value)==null||h.cancel();e?(h=D.previousCharacter?Number(D.previousCharacter)+10:D.rollUp?0:30,D.shouldAnimate||(h-=hpD(D,h))):(h=D.rollUp?0:2,D.shouldAnimate||(h-=D.rollUp?-1:1));t.value.style.marginTop="-"+h*w+"px";D.shouldAnimate?H.value=GR$(t.value,D,h,e,w):t.value.style.display=D.character?"":"none"}});
return _.G("animated-rolling-character",{el:t,class:"animatedRollingCharacterHost"},CgK(e,function(){for(var w=[],h=1;h<30;h++)w.push(_.G("div",null,h%10));return _.G(_.FH,null,_.G("div",null,"\u00a0"),w,_.G("div",null,"\u00a0"))},function(){return EUD(D.character)}))};
EUD=function(D){return _.G(_.FH,null,_.G("div",null,"\u00a0"),_.G(_.FH,null,CgK(!D||_.sD(D),function(){return _.G("div",null,"\u00a0")},function(){return _.G("div",null,D)})),_.G("div",null,"\u00a0"))};
GR$=function(D,t,H,e,V){H=new Animation(new KeyframeEffect(D,[{transform:"translateY(0px)"},{transform:"translateY("+(e?hpD(t,H):t.rollUp?-1:1)*V+"px)"}],N$D),document.timeline);t.character?(D.style.display="",H.onfinish=null):H.onfinish=function(){D.style.display="none"};
H.play();return H};
hpD=function(D,t){var H=Number(D.character)+10;if(D.previousCharacter)if(D.character){var e=Number(D.character),V=Number(D.previousCharacter);D=D.rollUp?V<e?H:H+10:V<e?H-10:H}else D=D.rollUp?30:0;else D=D.character==="0"?H:D.rollUp?H-10:H+10;return t-D};
kRD=function(D){return function(t){var H={},e;for(e in t){var V=void 0,b=void 0;((V=void 0)==null?0:(b=V.callbacks)==null?0:b[e])||(H[e]=t[e])}return _.G(gG6,null,function(){for(var a in H)t[a]=_.fR(H[a]);t.disableReactiveLogging=!0;return _.G(D,Object.assign({},t))})}};
jaV=function(D,t,H,e,V,b,a){H=new Animation(new KeyframeEffect(D,[{transform:"translateY(0px)"},{transform:"translateY("+(b?T$V(t,H,e,V):e?-1:1)*a+"px)"}],cNV),document.timeline);t?(D.style.display="",H.onfinish=null):H.onfinish=function(){D.style.display="none"};
H.play();return H};
T$V=function(D,t,H,e){var V=Number(D)+10;t?D?(D=Number(D),t=Number(t),H=H?t<D?V:V+10:t<D?V-10:V):H=H?30:0:H=D==="0"?V:H?V-10:V+10;return e-H};
iDD=function(D){var t=C1k(),H=C1k();OlR(function(){t.value=D.numberText;H.value=D.numberValue},[D.numberText]);
var e=D.fontSizeMultiplier?D.heightPx*D.fontSizeMultiplier:D.heightPx,V=n08(function(){if(D.numberText){var a=D.numberText;var w=D.forceRollUp||!H.value||!D.numberValue||H.value<D.numberValue;var h=!!D.shouldAnimate,K=t.value,N=[],k=0,T=0,c=(K?K.replace(/\D/g,"").length:0)-(a?a.replace(/\D/g,"").length:0);K=K?K.split(/(\d)/).filter(Boolean):[];for(a=a.split(/(\d)/).filter(Boolean);c<0;){var U=a[T];N.push({character:U,rollUp:w,marginMultiplier:e,shouldAnimate:h});T++;V$(U)&&c++}for(;k<c;)U=K[k],N.push({previousCharacter:U,
rollUp:w,marginMultiplier:e,shouldAnimate:h}),k++,V$(U)||c++;for(;T<a.length;)c=a[T],U=K[k],V$(c)===V$(U)?(T++,k++):V$(c)?(k++,c=void 0):V$(U)&&(T++,U=void 0),N.push({character:c,previousCharacter:U,rollUp:w,marginMultiplier:e,shouldAnimate:h});w=N}else w=[];return w},[D.numberText]),b=D.numberText?["height: "+e+"px;",
"line-height: "+D.heightPx+"px;"].join(" "):"";return _.G("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:b,dir:"ltr","aria-hidden":"true"},V.map(function(a){return _.G($qV,Object.assign({},a))}))};
rN8=function(D){switch(D){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
OD8=function(D,t){if(!D&&!t)return"medium";D=Math.max(D||0,t||0);return D>=256?"large":D>=96?"medium":"small"};
UqT=function(D){switch(D){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
oUA=function(D){return new KeyframeEffect(D,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
PWV=function(D){return new KeyframeEffect(D,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.rm=function(D){var t=aH(function(H){H=H?_.EP(H[0]):void 0;return _.KR(D(H),void 0,"AwTxXe")},{isEqual:function(H,e){return _.EP(H[0])===_.EP(e[0])}});
return[function(){return t()[0]()},
function(H){return void t()[1](H)}]};
_.O7=function(D){return function(){var t="",H;for(H in D){for(var e=D[H];typeof e==="function";)e=e();e!==void 0&&e!==null&&(t+="; "+H+": "+e)}return t.length>0?_.fR(t.slice(2)):_.fR()}};
nUD=function(D){switch(D){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"}};
CWT=function(D,t){if(t)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(D)switch(D){case "large":return"yt-spec-touch-feedback-shape--thumbnail-size-large";case "medium":return"yt-spec-touch-feedback-shape--thumbnail-size-medium";default:return"yt-spec-touch-feedback-shape--thumbnail-size-small"}};
fWR=function(D,t,H,e,V,b,a){var w=mq3(D),h=w.disabled,K=w.iconPosition,N=w.style,k=w.focused,T=function(){return!!S()&&K()==="icon-only"},c=function(){return!!S()&&K()==="icon-only-40"},U=function(){return!!S()&&K()==="icon-with-label"},S=function(){return!!t||!(e==null||!e())};
return{type:function(){return N()==="call-to-action-inverse"?"text":N()==="overlay-dark"&&D().type!=="filled"&&D().type!=="tonal"?"tonal":D().type},
shouldFocus:function(){return(k()||(b==null?void 0:b()))&&!h()},
hasIconLeading:function(){return!!S()&&K()==="leading"},
hasIconTrailing:function(){return!!S()&&K()==="trailing"},
hasIconLeadingTrailing:function(){return!!S()&&!!(H||V!=null&&V())&&K()==="leading-trailing"},
hasIconOnly:T,hasIconOnly40:c,hasIconWithLabel:U,iconButton:function(){return T()||c()||U()},
visiblyDisabled:function(){return(h()?"disabled":D().state)==="disabled"||h()},
overrideSmallSizeIcon:function(){return!D().ignoreIconSizeOverride&&Mh$(D(),S())},
iconToRender:t?t:function(){return _.G(_.U7,{icon:e,size:function(){return S$X(D(),!0,D().ignoreIconSizeOverride)},
active:function(){return D().toggled},
iconFilter:function(){return XEV(D())},
animateIcon:a})},
secondaryIconToRender:H?H:function(){return _.G(_.U7,{icon:V,size:function(){return S$X(D(),!0,D().ignoreIconSizeOverride)},
active:function(){return D().toggled},
iconFilter:function(){return XEV(D())}})}}};
mq3=function(D){return{size:function(){return D().size},
style:function(){return D().style},
focused:function(){return D().focused},
disabled:function(){return D().disabled},
onTap:function(t){var H,e;return(e=(H=D()).onTap)==null?void 0:e.call(H,t)},
alignByText:function(){return D().alignByText},
aTagConfig:function(){return D().aTagConfig},
customColors:function(){return D().customColors},
segmentedPosition:function(){return D().segmentedPosition},
toggled:function(){return D().toggled},
toggleable:function(){return D().toggleable},
accessibilityLabel:function(){return D().accessibilityLabel},
onToggle:function(t){var H,e;return(e=(H=D()).onToggle)==null?void 0:e.call(H,t)},
iconPosition:function(){return D().iconPosition},
oneOffCustomTextWrap:function(){return D().oneOffCustomTextWrap},
disableTextEllipsis:function(){return D().disableTextEllipsis},
disableBackdropFilter:function(){return D().disableBackdropFilter},
tooltipText:function(){return D().tooltipText},
ariaHidden:function(){return D().ariaHidden},
tabIndex:function(){return D().tabIndex},
buttonText:function(){return D().buttonText},
formattedButtonText:function(){return D().formattedButtonText},
animatedTextProps:function(){return D().animatedTextProps},
onClickRateLimitMs:function(){return D().onClickRateLimitMs}}};
Mh$=function(D,t){t=(D.iconPosition==="icon-only"||D.iconPosition==="icon-only-40"||D.iconPosition==="icon-with-label")&&t;return!D.segmentedPosition&&t&&D.size==="S"};
S$X=function(D,t,H){switch(D.size){case "XS":return 16;case "S":return!H&&Mh$(D,t)?24:16;default:return 24}};
L7T=function(D){switch(D){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"}};
AN$=function(D){switch(D){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"}};
gU6=function(D){switch(D){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"}};
XEV=function(D){if(D.style==="overlay-dark"&&D.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
oH=function(D){return D&&D.endsWith("px")?Number(D.slice(0,-2)):0};
lWK=function(D){var t=t===void 0?{}:t;D=_.F(_.rm(D));var H=D.next().value;return[function(e){var V=_.jj(function(){var w,h,K,N;return{text:(w=H())!=null?w:"",location:(h=t.location)!=null?h:"bottom",offset:(K=t.offset)!=null?K:16,delay:(N=t.delay)!=null?N:1}},void 0,"MgTrkc");
_.Mp(function(){var w=V();_.EP(function(){_.Jy.addJob(function(){PZ.notify(e,w)},4)})},"WlsgZc");
var b=function(){JN8(e,V())},a=function(){Y$$()};
e.addEventListener("mouseenter",b);e.addEventListener("focus",b);e.addEventListener("mouseleave",a);e.addEventListener("blur",a);e.addEventListener("tap",a);_.Sj(function(){e.removeEventListener("mouseenter",b);e.removeEventListener("mouseleave",a);e.removeEventListener("focus",b);e.removeEventListener("blur",a);e.removeEventListener("tap",a);Y$$()})},
D.next().value]};
pE$=function(D,t){if(!HI){var H;cn3(function(){return H=LcK(D,t)});
return H}D.parent=vUV();return LcK(D,t)};
vUV=function(){var D=_.Vt(HI||void 0,SED);return _.XeA(D)?void 0:D};
nb=function(D,t){_.RQ(D,Object.assign({},t,{forceClickLogging:!0}))};
xqT=function(D,t){var H=_.xP(D==null?void 0:D.onTap),e={};H&&(e.getClickedVisualElement=function(){var V;return dqK(D,H,t==null?void 0:(V=t.value)==null?void 0:V.visualElement)});
e=_.uf({elementsCommand:D.onTap,forceNewState:!0,additionalCommandArgs:e});return Wc(e)?e:void 0};
RpV=function(D,t,H,e){nb(D,Object.assign({},{form:{element:t,event:H}},e))};
ue$=function(D,t,H,e,V){var b=void 0;return function(a){var w=_.xP(H?D==null?void 0:D.onDisabledTap:D==null?void 0:D.onTap);if(w){var h;b=(h=b)!=null?h:t==null?void 0:t.value;if(w)if(_.r("web_button_vm_click_client_ve_killswitch"))RpV(w,b,a);else{var K;h=dqK(D,w,(K=b)==null?void 0:K.visualElement);if(V){RpV(w,V,a,{clickedVisualElement:h,form:{element:V}});return}RpV(w,b,a,{clickedVisualElement:h})}}e&&e(a)}};
dqK=function(D,t,H){t=t==null?void 0:t.clickTrackingParams;var e,V;D=D==null?void 0:(e=D.loggingDirectives)==null?void 0:(V=e.clientVeSpec)==null?void 0:V.uiType;if(H&&D&&!t)return H};
W7V=function(D){switch(D){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"}};
IWV=function(D){switch(D){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"}};
Qa8=function(D){switch(D){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"}};
yNV=function(D){switch(D){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"}};
B$8=function(D,t){return _.jR(D.entities,"engagementToolbarStateEntityPayload",t)};
DbA=function(D){(D=_.Sa(D))&&_.zpT(D)};
_.zpT=function(D){var t=_.v3();t&&_.Bh(t,D)};
tsR=function(D,t,H){_.ET(D,"yt-open-popup-action",[t,H||D])};
HID=function(D,t){var H=_.LY(D,"endpoint"),e=_.LY(D,"action");return(H=e?e:H)&&t&&(H=t.navigationEndpointPopupMap[H])&&(D=_.RD(H,D),(H=_.LY(D,"renderer"))&&t.supportedPopups.hasOwnProperty(H))?{openPopupAction:{popupType:t.popupTypeMap[H],popup:D}}:null};
e$8=function(D,t,H,e){if(e){var V;H=H==null?void 0:(V=H.data)==null?void 0:V.contents;(V=H instanceof Array&&H.length?H[0]:H)&&(H=_.LY(V,"renderer"))&&e.supportedPopups.hasOwnProperty(H)&&(t.stopPropagation(),tsR(D,{openPopupAction:{popupType:e.popupTypeMap[H],popup:V}}))}};
qQA=function(D,t,H,e){e=e===void 0?!1:e;var V=Vs$(t);if(V){V.href&&zK(V.href);var b=t.button;b=b!==void 0?b===0&&!Cb(t):!Cb(t);V.data&&b&&bIV(D,V,t,H,e)}};
bIV=function(D,t,H,e,V){V=V===void 0?!1:V;var b=_.ZU("pbj_navigate_limit",-1)===0;FQV(t);_.qS().resolve(_.by(RR));var a=t.data;if(Object.keys(a).length!==0)if(!_.r("unplugged_web_disable_actions_for_cec_endpoint")&&_.O(a,_.ch))_.r("endpoint_behavior_command_executor_fix_killswitch")||(H.preventDefault(),H.stopPropagation()),_.k0(D,[a],D);else if(e=HID(a,e))a.loggingUrls&&a.loggingUrls.forEach(function(h){h.baseUrl&&_.IP(h.baseUrl)}),H.preventDefault(),H.stopPropagation(),tsR(D,e,t);
else{var w=aHV(0,t.data,H);if(D=t.getForm)D=D(),w.tempData=w.tempData||{},w.tempData=Object.assign({},w.tempData,D);D=_.bK(H);if(e=D.find(function(h){return!!h.visualElement}))w.createScreenConfig=w.createScreenConfig||{},w.createScreenConfig.clickedVisualElement=e.visualElement;
if(!b)if(H.preventDefault(),H.stopPropagation(),_.O(a,_.w46)&&!V&&_.$P.instance)_.$P.instance.resolveCommand(a,w);else if(_.r("kevlar_command_handler_formatted_string")&&!V&&_.$P.instance&&ZIk(a))V=D.find(function(h){return!!h.is})||H.target,H={form:Object.assign({},w,{event:H,
element:V,originatingNode:t})},_.$P.instance.resolveCommand(a,H);else{a=_.bK(H);H=[];for(V=0;V<a.length;V++)(b=a[V].is)&&H.push(b);y5K({parents:H.join(","),text:t.innerText},function(){_.Gf(t,"yt-navigate",w)})}}};
sqV=function(D){if(D=Vs$(D))FQV(D),H0T(D.href)};
Vs$=function(D){D=_.bK(D);for(var t,H=0;H<D.length;H++)if(t=D[H],t.tagName==="A"&&t.classList.contains("yt-simple-endpoint")){if(!t.data)break;return t}return null};
Cb=function(D){return D.shiftKey||D.altKey||D.metaKey||D.ctrlKey};
h$D=function(D,t){var H={itct:t.clickTrackingParams};_.r("kevlar_client_side_screens")&&(!_.O(t,_.C_)||_.r("kevlar_exclude_endpoint_killswitch"))&&(H.endpoint=JSON.stringify(t));_.r("enable_unknown_lact_fix_on_html5")&&_.qS().resolve(_.by(_.mM))&&(H.lact=_.aR());zzT(H);_.qJ(D,H)};
FQV=function(D){D.href&&Object.keys(D.data).length!==0&&h$D(D.href,D.data)};
ZIk=function(D){for(var t=_.F(GPR),H=t.next();!H.done;H=t.next())if(D[H.value])return!1;return!0};
_.EcR=function(D,t){return _.jR(D.entities,"markersEngagementPanelSyncEntity",t)};
KQ3=function(D,t){return _.jR(D.entities,"playerStateEntity",t)};
Ne3=function(D,t){return _.jR(D.entities,"fantasyWinProbabilityEntity",t)};
kP6=function(D,t){return _.jR(D.entities,"fantasyTeamEntity",t)};
TeV=function(D,t){return _.jR(D.entities,"fantasyPlayerEntity",t)};
cmV=function(D,t){return _.jR(D.entities,"booleanEntity",t)};
jqk=function(D,t){return _.jR(D.entities,"qrCodeEntity",t)};
$bk=function(D){return _.jR(D.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
iIK=function(){if(MX)return MX;if(window.lottie)return MX=Promise.resolve(window.lottie);var D=_.YV(_.YC("LOTTIE_URL"));return D?MX=new Promise(function(t,H){var e=document.createElement("script");e.addEventListener("load",function(){t(lottie)});
e.addEventListener("error",function(V){var b="Lottie library failed to load.";V?V.message&&(b+=" Original description: "+V.message,_.lm(V,b)):V=Error(b);_.Yw(V);H(V)});
e.setAttribute("async","");_.qd(e,D);document.head.appendChild(e)}):Promise.reject(Error("xh"))};
rmR=function(){return MX?MX:iIK()};
OIA=function(D){if(D)switch(D){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.r("kevlar_use_wil_icons"))return D=(D=$bk(_.b_().getState()))&&D.animationLightUrl&&D.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:D.animationLightUrl,pathDarkTheme:D.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,D?D:SQ.get("LIKE");break;case "LIKE_DELHI_PLAYER":return SQ.get("LIKE_DELHI_PLAYER")}};
UbD=function(D){var t=OIA(D);if(t)return t;switch(D){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return SQ.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return SQ.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return SQ.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return SQ.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return SQ.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return SQ.get("NOTIFICATION_BELL")}};
ocV=function(D,t){if(!D.closest)return!1;t=!!OIA(t);return _.YC("ID_TOKEN")&&t?!!D.closest("segmented-like-dislike-button-view-model")||!!D.closest("yt-player-quick-action-buttons"):!1};
ncA=function(D,t){if(!D||PsR)t=!1;else{var H;if(!(H=ocV(D,t)))if(D.closest)if(H=!_.YC("ID_TOKEN"),D=D.closest("ytd-subscription-notification-toggle-button-renderer-next"),H||!D)H=!1;else{var e;H=((e=D.data)==null?void 0:e.targetId)==="notification-bell"&&t!=="EXPAND_MORE"}else H=!1;t=H}return t};
Cs$=function(D){var t,H;return _.Z(function(e){switch(e.nextAddress){case 1:return _.$p(e,2),e.yield(fetch(D),4);case 4:return t=e.yieldResult,e.yield(t.json(),5);case 5:return e.return(e.yieldResult);case 2:H=_.Pv(e),_.Yw(H),_.n2(e)}})};
mbR=function(D,t){var H,e,V;return _.Z(function(b){if(b.nextAddress==1)return(H=t?D.pathDarkTheme:D.path)?b.yield(Promise.all([Cs$(H),iIK()]),2):b.return();e=b.yieldResult;V=e[0];XI.set(H,V);_.n2(b)})};
SQR=function(D,t,H,e){function V(a,w){if(t.value===w&&!t.cancelled&&D!=null&&D.value){for(;D.value.firstChild;)D.value.removeChild(D.value.firstChild);D.value.classList.add("ytSpecIconShapeHost");a(D.value,e)}}
var b=_.Ms$(_.qS().resolve(_.ja),H);typeof b==="function"?(t.value=null,V(b,null)):(t.value=b,b.then(function(a){V(a,b)}))};
fHV=function(D,t){var H=document.createElement("div"),e=_.M2(H,function(){return _.G(_.E,{cond:D,then:function(V){return _.G(X4k,{data:V,options:t})}})},"X");
return[H,e]};
_.fb=function(D,t){if(t){var H={};LQ3.forEach(function(e){e=AmK(t,e,"--yt-lightsource-");Object.assign(H,e)});
gcK.forEach(function(e){e=AmK(t,e,"--yt-basic-");Object.assign(H,e)});
_.jZ(D,H)}};
AmK=function(D,t,H){var e={};e[H+_.UW(t)]=D&&D[t]?_.Qk(D[t]):"";return e};
_.AB=function(D,t,H){Lb[D]||(Lb[D]={});Lb[D][t]=H};
_.gm=function(D){Lb[D]||(Lb[D]={});return Lb[D]};
Jm8=function(D){if(!D)return{};var t=D.foregroundTitleColor,H=D.backgroundColor;D=D.borderColor;var e="text";D?e="outline":H&&(e="filled");return{type:e,customColors:{color:t?_.Qk(t):void 0,backgroundColor:H?_.Qk(H):void 0,borderColor:D?_.Qk(D):void 0}}};
dbD=function(D){var t=D.renderer;var H=D.element;var e=D.commandController;var V=D.onTapCallback;var b=D.skipCommandHandling;var a=D.overrides;var w=D.forceIcon;var h=D.forceModernIconButton;var K=D.forceDisabled;var N=D.isSubscribe===void 0?!1:D.isSubscribe;var k=D.isPressed===void 0?!1:D.isPressed;var T=D.useButtonSize===void 0?!1:D.useButtonSize;D=YQA(t);N&&(D.style="mono",D.type="filled");w=!t.icon||!w&&t.text?t.icon?t.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:h?"icon-only":"icon-only-40";w==="icon-only-40"&&(D.type="text");var c;h=Object;N=h.assign;T=lHX(t,T);k=!!t.isSelected||!_.r("web_propagate_is_pressed_killswitch")&&!!k;var U=t.isSelected!==void 0;K=K===void 0?t.isDisabled:K;var S=t.text?_.lf(t.text):void 0;var L,J,g,Q=((L=t.accessibilityData)==null?void 0:(J=L.accessibilityData)==null?void 0:J.label)||((g=t.accessibility)==null?void 0:g.label);L=Q?Q:_.eo(t.text);H=vcD(t,H,e,V,b);e=p4T(t);e!=null&&e.length?(e=_.uf({innertubeCommand:hSV(e),
forceNewState:!0}),e=Wc(e)?e:void 0):e=void 0;return N.call(h,{},D,T,{iconPosition:w},a,{focused:!1,toggled:k,toggleable:U,disabled:K,formattedButtonText:S,accessibilityLabel:L,onTap:H,aTagConfig:e},Jm8((c=t.colorData)==null?void 0:c.basicColorPaletteData),{oneOffCustomTextWrap:t.oneOffCustomTextWrap})};
vcD=function(D,t,H,e,V){return function(b){var a=p4T(D);e(a,b);if(!V){a=_.F(a);for(var w=a.next();!w.done;w=a.next())nb(w.value,{form:{element:t,event:b},commandController:H})}}};
p4T=function(D){var t=[];D.command&&t.push(D.command);D.serviceEndpoint&&t.push(D.serviceEndpoint);D.navigationEndpoint&&t.push(D.navigationEndpoint);return t};
lHX=function(D,t){if(t)switch(D.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(D.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
YQA=function(D){switch(D.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_CALL_TO_ACTION_TONAL":return{style:"call-to-action",type:"tonal",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",
type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",
type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",
type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
xbA=function(D,t){return typeof D!=="object"||D===null?!1:Object.keys(t).every(function(H){return H in D})};
_.JB=function(D){return Object.fromEntries(Object.keys(D).map(function(t){return[t,t]}))};
R$$=function(D,t,H){return dMK(H,function(e,V){return function(b){var a=_.RE.apply(1,arguments);return xbA(b,D)?V.apply(null,[b[t]].concat(_.A6(a))):V.apply(null,[b].concat(_.A6(a)))}})};
_.YX=function(D){return function(t,H){return R$$(D,t,H)}};
_.li=function(D){return D!=null&&D.watch?D.watch.isTheaterMode:!1};
_.vZ=function(D){return D!=null&&D.watch?D.watch.isWatchFullscreen:!1};
_.pb=function(D){D=_.u8V(D);return _.r("web_watch_enable_single_column_grid_view")?D:!1};
_.u8V=function(D){return D.watch.isWatchNarrowWidth};
_.WQV=function(D){return D.watch.openEngagementPanels};
_.dm=function(D){return _.jj(function(){ps6()();return RYD(D)},{debugName:"d8B62c"},"DEXkhd")};
xX=function(D,t){return _.jR(D.entities,"likeStatusEntity",t)};
IHT=function(D,t){return _.jR(D.entities,"likeCountEntity",t)};
_.QqR=function(D,t){return _.jR(D.entities,"stringEntity",t)};
ymu=function(D,t){return _.jR(D.entities,"dataFreshnessEntity",t)};
BeD=function(D,t){if(!D)return!1;var H,e=(H=_.O(D,_.$0))==null?void 0:H.signal;if(e&&t.signalEndpointMap)return!!t.signalEndpointMap[e];var V;if((H=(V=_.O(D,_.RH))==null?void 0:V.request)&&t.continuationEndpointMap)return!!t.continuationEndpointMap[H];for(var b in D)if(t.commandEndpointMap[b])return!0;return!1};
z$D=function(D,t){if(t.streamingEndpointMap)for(var H in D)if(t.streamingEndpointMap[H]&&(D=t.streamingEndpointMap[H]))return D()};
Dh8=function(D,t){var H,e=(H=_.O(D,_.$0))==null?void 0:H.signal;if(e&&t.signalEndpointMap&&(H=t.signalEndpointMap[e]))return H();var V;if((H=(V=_.O(D,_.RH))==null?void 0:V.request)&&t.continuationEndpointMap&&(V=t.continuationEndpointMap[H]))return V();for(var b in D)if(t.commandEndpointMap[b]&&(D=t.commandEndpointMap[b]))return D()};
t6$=function(D){var t={"Content-Type":"application/json"};_.YC("EOM_VISITOR_DATA")?t["X-Goog-EOM-Visitor-Id"]=_.YC("EOM_VISITOR_DATA"):_.YC("VISITOR_DATA")&&(t["X-Goog-Visitor-Id"]=_.YC("VISITOR_DATA"));t["X-Youtube-Bootstrap-Logged-In"]=_.YC("LOGGED_IN",!1);_.YC("DEBUG_SETTINGS_METADATA")&&(t["X-Debug-Settings-Metadata"]=_.YC("DEBUG_SETTINGS_METADATA"));if(D!=="cors"){var H=_.YC("INNERTUBE_CONTEXT_CLIENT_NAME");H&&(t["X-Youtube-Client-Name"]=H);(H=_.YC("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(t["X-Youtube-Client-Version"]=
H);(H=_.YC("CHROME_CONNECTED_HEADER"))&&(t["X-Youtube-Chrome-Connected"]=H);(H=_.YC("DOMAIN_ADMIN_STATE"))&&(t["X-Youtube-Domain-Admin-State"]=H)}_.lh("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(D=_.YC("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(t["X-YouTube-Lava-Device-Context"]=D):D!=="cors"&&_.lh("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(D=_.YC("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(t["X-YouTube-Lava-Device-Context"]=D);return t};
HyV=function(D,t){t.watchNextResponse||t.reelItemWatchResponse?t.watchNextResponse?D.content=t.watchNextResponse:D.content=t.reelItemWatchResponse:t.playerResponse?D.player=t.playerResponse:t.reelWatchSequenceResponse&&(D.reelSequence=t.reelWatchSequenceResponse)};
_.ui=function(D){if(!D)return null;for(var t=[],H=0;H<D.textSegments.length;H++){var e=D.textSegments[H];e.text?t.push(e):e.emojiId&&t.push({emoji_id:e.emojiId})}return{text_segments:t}};
FCu=function(D,t,H,e,V,b,a){b=b===void 0?[]:b;var w=new _.WZ;w.endpoint=H;if(!H)return _.Jp(new _.nZ("handle undefined endpoint",t.tagName)),w;var h=qE8(H);h.length&&(_.k0(D,h,t,e),w.actions=h);H.loggingUrls&&H.loggingUrls.forEach(function(N){N.baseUrl&&Qp(N.baseUrl,N.attributionSrcMode)});
h=!_.r("web_skip_impression_click_killswitch")&&e&&e.impression;if(H.clickTrackingParams&&!eu3(H)&&!V66(t)&&!h&&(h=_.Pc(),!_.IH(h,t))){var K=t.getScreenLayer&&t.getScreenLayer();K?h.clickCommand(H,null,K):h.clickCommand(H,null)}h=!1;for(K=0;K<b.length;K++)if((0,b[K])(t,H,e)){h=!0;break}!h&&byk(H)&&(w.ajaxPromise=qU8(D,t,H,e,V,a));return w};
V66=function(D){var t;return(D=(t=D.data)==null?void 0:t.navigationEndpoint)&&!!D.clickTrackingParams};
eu3=function(D){var t=_.O(D,_.$0);if(t&&(t=t.signal)&&aSR.indexOf(t)>=0)return!0;for(var H in D)if(wq8.indexOf(H)>=0)return!0;return!1};
byk=function(D){var t;if(((t=_.O(D,_.$0))==null?void 0:t.signal)==="CLIENT_SIGNAL")return!1;for(var H in D)if(ZyD.indexOf(H)>=0)return!1;D=Object.keys(D);return D.length===1&&D[0]==="loggingUrls"?!1:!0};
Tbu=function(D,t,H,e,V,b,a){var w=_.QL.instance;if(w&&_.yL(w,e))var h=_.BZ(w,e,V).then(function(N){return(N==null?0:N.data)?N:{data:N}});
else h=D.requestDataForServiceEndpoint(e,V),_.O(e,sFR)||_.O(e,huD)||_.O(e,_.G8X)||_.O(e,Em8)||_.Yw(new _.nZ("No RequestBuilder for endpoint",e));var K=_.z3();K.promise.thenCatch(function(){var N=_.LY(e,"action")||_.LY(e,"command")||_.LY(e,"endpoint");N&&(N=e[N],N.hasOwnProperty("onFailureAction")?_.k0(t,[N.onFailureAction],H):N.hasOwnProperty("onFailureCommand")&&_.k0(t,N.onFailureCommand,H));h.cancel("Resolver promise rejected")});
h.then(function(N){if(N){var k=N.error;if(k){if(b&&b.onServerError)b.onServerError(e,N);K.reject(new _.nZ("Response error",e,k))}else if(N=N.data)if(k=N.error){if(b&&b.onServerError)b.onServerError(e,N);K.reject(new _.nZ("Returned error",e,k))}else{KCV(t,H,N,e);NbV(N);if(k=bPD(N))for(var T=_.F(k),c=T.next();!c.done;c=T.next()){c=c.value;var U=_.qS().resolve(_.by(k8u))||Dg;if(!_.QL.instance||!U.some(function(L){return!!_.O(e,L)})||_.r("kevlar_response_processor_allowlist_killswitch")){var S=U=void 0;
((S=_.O((U=c)==null?void 0:U.commandMetadata,_.i1))==null?0:S.sendPost)?_.NJ(t,[c]):_.k0(t,[c],H)}}(T=_.O(N==null?void 0:N.frameworkUpdates,t5))&&a&&a(T);if(b&&b.onSuccess)b.onSuccess(e,N);K.resolve(new _.H5(N,k))}}else K.reject(new _.nZ("Invalid service endpoint provided",e))},function(N){K.reject(N)});
return K.promise};
NbV=function(D){var t;(D=(t=_.O(D==null?void 0:D.onResponseReceivedCommand,_.cJk))==null?void 0:t.continuationItems)&&(D==null?void 0:D.length)===1&&_.O(D[0],jFR)&&_.vh("so_r",void 0,"search_overview_answer")};
qU8=function(D,t,H,e,V,b){var a;return(a=t.getNetworkManager&&t.getNetworkManager()?t.getNetworkManager():_.qS().resolve(_.by(_.dn)))?Tbu(a,D,t,H,e,V,b):_.Aj("No network manager.")};
KCV=function(D,t,H,e){if(H=H.trackingParams||H.loggingDirectives&&H.loggingDirectives.trackingParams){var V;(_.O(e,$hX)||_.O(e,iyu)||_.O(e,rJV))&&e.clickTrackingParams?V=_.Sa(e.clickTrackingParams):_.r("web_graft_to_parent_command")&&e.clickTrackingParams&&(V=_.Sa(e.clickTrackingParams));var b;e=(b=t.getScreenLayer)==null?void 0:b.call(t);t=_.Pc().graftServerVe(H,V,e);_.Kl(D,"yt-store-grafted-ve-action",[t])}};
_.Oyk=function(D){var t=new Image;return new _.c$(function(H,e){t.addEventListener("load",function(){H()});
t.addEventListener("error",function(){e()});
t.src=D})};
UhA=function(D){return!!D};
omR=function(D){return!!D};
PNV=function(D,t,H){var e=D.rowIndex;e!==void 0&&_.Kl(D.hostElement,"yt-section-reactive-dismissal",[e,t,H])};
_.ed=function(D,t,H){D=_.F(D);for(var e=D.next();!e.done;e=D.next()){e=e.value;if(e===t)break;for(var V=_.F(H),b=V.next();!b.done;b=V.next())if(b=b.value,e.tagName===b||!_.r("web_event_button_role_check_killswitch")&&e.role==="button"&&b==="BUTTON")return!0}return!1};
_.V2=function(D,t,H){D=_.F(D);for(var e=D.next();!e.done;e=D.next()){e=e.value;if(e===t)break;for(var V=_.F(H),b=V.next();!b.done;b=V.next())if(e.id===b.value)return!0}return!1};
_.FA=function(){var D=_.qS().resolve(_.by(_.bO));return D?(D=D.getCurrentPage())?_.qx(D):null:null};
_.an=function(){var D=_.FA();if(!D){var t=_.qS().resolve(_.by(_.bO)),H=t?typeof t:"no page manager";t=t?t.getCurrentPage():null;H=new _.nZ("Player is missing when requested.",H,t?t.tagName:"no page");_.gT(H)}return D};
_.qx=function(D){return D&&D.getPlayer?D.getPlayer():null};
nmX=function(D,t){D={args:{raw_player_response:D}};t&&(D.args=Object.assign({},D.args,t));return D};
CN8=function(D){if(D.args){if(D.args.raw_player_response)return D.args.raw_player_response;if(D.args.player_response)return JSON.parse(D.args.player_response)}};
_.mhD=function(D,t){var H={url:"/watch?v="+D.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};D.playlistId&&(H.url+="&list="+D.playlistId);D.playerParams&&(H.url+="&pp="+D.playerParams);D={watchEndpoint:D,commandMetadata:{webCommandMetadata:H}};t&&(D.clickTrackingParams=t);return D};
SU$=function(){return M6V||!!_.RD("yt.player.Application")};
fSV=function(){return Xq3||!!document.querySelector("link#player-css")};
AJT=function(){function D(){M6V=!0;LCD.resolve()}
var t,H;return _.Z(function(e){LCD||(LCD=new _.TK,SU$()?D():(t=document.createElement("script"),t.addEventListener("load",D),H=_.Xs(_.YC("PLAYER_JS_URL")),_.qd(t,H),document.head.appendChild(t)));return e.return(LCD.promise)})};
JJV=function(){function D(){Xq3=!0;gm3.resolve()}
if(!gm3)if(gm3=new _.TK,fSV())D();else{var t=document.createElement("link");t.id="player-css";t.addEventListener("load",D);var H=_.Xs(_.YC("PLAYER_CSS_URL"));_.wN(t,H,"stylesheet");document.head.appendChild(t)}return gm3.promise};
YUA=function(){return SU$()&&fSV()?Promise.resolve([]):Promise.all([AJT(),JJV()])};
lST=function(D,t,H){var e={args:{}};D&&(e.args.raw_player_response=D);t&&(e.args.raw_watch_next_response=t);H&&(e.args=Object.assign({},e.args,H));return e};
xhV=function(D,t,H){var e=!1;e=e===void 0?!0:e;D=typeof D==="string"?_.wF(document,D):D;var V=vmT+"_"+_.I$(D),b=pqK[V];if(b&&e)return dhk(t,H)?b.api.loadVideoByPlayerVars(t.args||null):b.loadNewVideoConfig(t),b.api;b=new Zg(D,V,t,H,void 0);pqK[V]=b;b.addOnDisposeCallback(function(){delete pqK[b.getId()]});
return b.api};
dhk=function(D,t){return t&&t.serializedExperimentFlags?t.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):D&&D.args&&D.args.fflags?D.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
RuK=function(){var D=new _.TK;D.resolved=!1;var t=D.resolve;D.resolve=function(H){D.resolved=!0;t(H)};
return D};
WCV=function(D){var t={};uTT().install((t.document_disposed={callback:D},t))};
sI=function(D,t){if(!D&&Math.random()<=_.ZU("kevlar_unified_player_logging_threshold")){D=Error("zh`"+(t?t:"Unspecified error"));if(_.r("kevlar_unified_player_throw_errors"))throw D;_.Yw(D)}};
_.IS3=function(){var D=_.RD("ytDebugData.callbacks");D||(D={},_.bg("ytDebugData.callbacks",D));return D};
yJD=function(D,t){var H=_.IS3();if(_.r("web_dd_iu")||QFD.includes(D))H[D]=t};
BbX=function(){return _.Z(function(D){return D.return({isLeader:_.CSA(_.b_().getState()),c:_.YC("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.YC("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
zu8=function(){var D;_.Z(function(t){if(t.nextAddress==1)return yJD("APP_STATE",BbX),t.yield(_.qS().resolve(_.h5),2);D=t.yieldResult;yJD("PI",function(){return _.Z(function(H){return H.return(D.getVideoStats())})});
_.n2(t)})};
D83=function(D){var t=_.b1(_.yi(_.VA.location.href));D=_.b1(_.yi(D));return _.r("kevlar_clear_non_displayable_url_params")?t==Gm(D):Gm(t)==Gm(D)};
Gm=function(D){var t=_.tlV(D);D=D.slice(0);var H=["frags"];_.r("kevlar_hide_pp_url_param")&&H.push("pp");_.r("kevlar_hide_time_continue_url_param")&&H.push("time_continue");H=_.F(H);for(var e=H.next();!e.done;e=H.next())e=e.value,D=_.Fy(_.b1(D),e);return _.b1(D)+(t?"#"+t:"")};
EI=function(D,t){t=Number(t)*1E3;var H=Math.round((0,_.aP)()),e=H.toString();D={innertubeResponse:D,serverDateTimestampMs:e,lastModifiedTimestampMs:e,expireTimestampMs:(H+t).toString()};if(t=_.YC("INNERTUBE_CONTEXT_CLIENT_NAME"))D.clientName=t;return D};
erV=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++H58};
VlV=function(D){return!isNaN(D)&&D>0};
q68=function(){_.r("web_adaptive_repeat_ase")&&b5K&&_.L7("applicationStarted",b5K)};
_.FAD=function(){var D=_.lo(),t=_.v3();t&&D&&_.D8(t,[D],!0)};
w23=function(D){return D&&a56.some(function(t){return D.includes(t)})};
KAu=function(D){var t=_.O(D,_.um);if(!t)return!1;var H=t.url,e=t.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!H)return _.gT(Error("Eh")),!1;if(t.target==="TARGET_NEW_WINDOW"){t={};_.r("resolve_url_parent_tracking_params")&&(!_.tW(H)||HY(window.location.href,H))&&(t={endpoint:D,itct:D.clickTrackingParams});zzT(t);D=null;try{if(e){a:{var V=H,b=t;e=e===void 0?!1:e;b&&_.qJ(V,b);var a=_.dw(V),w=_.JA(a);V!=w&&_.uh(Error("gg`"+V));V=w;try{if(e){w=V;w=ltV(w);zK(w);D=_.D7(window,w,"_blank",
"attributionsrc");break a}}catch(T){_.vn(T)}zK(V);D=_.D7(window,a,"_blank")}Z5$(_.qS().resolve(sb6),D,H);return!0}}catch(T){_.gT(T)}_.qJ(H,t);t={target:"_blank",noopener:!1};a=window;w=gw(H)?H:_.dw(typeof H.href!="undefined"?H.href:String(H));e=self.crossOriginIsolated!==void 0;D="strict-origin-when-cross-origin";window.Request&&(D=(new Request("/")).referrerPolicy);V=t.noreferrer;if(e&&V&&D==="unsafe-url")throw Error("ue");D=V&&!e;V=t.target||H.target;b=[];var h=[],K=!1;for(k in t){var N=t[k];switch(k){case "width":case "height":case "top":case "left":b.push(k+
"="+N);break;case "target":break;case "noopener":case "noreferrer":N?h.push(k):(K=!0,h.push(k+"=false"));break;case "attributionsrc":b.push(k+(N?"="+N:""));break;default:b.push(k+"="+(N?1:0))}}var k=V!==void 0&&!["_blank","_self","_top","_parent",""].includes(V);k=Pk()&&k;hr3&&e&&b.length===0&&h.length>0&&!k&&!K?(h.length===2&&(h=["noreferrer"]),_.D7(a,w,V,h[0]),D=GJu()):(k=b.join(","),_.SV()&&a.navigator&&a.navigator.standalone&&V&&V!="_self"?(k=_.OH("A"),WU(k,w),k.target=V,D&&(k.rel="noreferrer"),
((t=t.attributionsrc)||t==="")&&k.setAttribute("attributionsrc",t),t=document.createEvent("MouseEvent"),t.initMouseEvent("click",!0,!0,a,1),k.dispatchEvent(t),k=GJu()):D?(k=_.D7(a,"",V,k),a=_.JA(w),k&&(k.opener=null,a===""&&(a="javascript:''"),a='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+Kf(a)+'">',a=Ql(a),(t=k.document)&&t.write&&(t.write(BU(a)),t.close()))):((k=_.D7(a,w,V,k))&&t.noopener&&(k.opener=null),k&&t.noreferrer&&(k.opener=null)),D=k);Z5$(_.qS().resolve(sb6),
D,H);return!0}k=_.TW(H);k=w23(k)||H==="https://studio.youtube.com/";if(_.tW(H)&&!HY(window.location.href,H)||k)zK(H),gE(),_.D9(H,void 0,void 0,window.top,EA$);else return _.Yw(new _.nZ("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",D)),!1;return!0};
_.Ta8=function(D,t){t=t===void 0?0:t;if(!(_.O(D,NaV)||_.O(D,kJu)||_.O(D,_.um)&&_.O(D,_.um).url))return!1;var H,e=(H=_.O(D,_.um))==null?void 0:H.url;H=e?{externalLinkData:{url:e}}:null;return _.Pc().clickCommand(D,H,t)};
c4V=function(D,t){return _.jR(D.entities,"subscriptionStateEntity",t)};
jb3=function(D,t){return _.jR(D.entities,"subscriptionNotificationStateEntity",t)};
$88=function(D,t){return _.jR(D.entities,"upcomingEventReminderStateEntity",t)};
i5X=function(D,t){return _.jR(D.entities,"engagementToolbarSurfaceEntityPayload",t)};
r43=function(D,t){return _.jR(D.entities,"triStateButtonStateEntityPayload",t)};
O5K=function(D,t){return _.jR(D.entities,"commerceCartCheckoutButtonEntity",t)};
_.U8k=function(D,t){return _.jR(D.entities,"playlistLoopStateEntity",t)};
oAK=function(D,t){return _.jR(D.entities,"commandEntity",t)};
nA8=function(D,t,H,e,V){V=V===void 0?{}:V;return function(b){var a,w;var h=((a=D.loggingDirectives)==null?0:(w=a.clientVeSpec)==null?0:w.uiType)?_.Nx(D.loggingDirectives.clientVeSpec.uiType):void 0;V.clickedVisualElement||(V.clickedVisualElement=h);h=PT8(D,t);H(h,b);h=_.F(h);for(a=h.next();!a.done;a=h.next()){a=a.value;w=e;var K=b,N=V;N.form?N.form.event=K:N.form={element:w,event:K};nb(a,N)}}};
PT8=function(D,t){var H=[];t?(D.toggledCommand&&H.push(D.toggledCommand),D.toggledServiceEndpoint&&H.push(D.toggledServiceEndpoint)):(D.defaultCommand&&H.push(D.defaultCommand),D.defaultServiceEndpoint&&H.push(D.defaultServiceEndpoint),D.defaultNavigationEndpoint&&H.push(D.defaultNavigationEndpoint));return H};
CTD=function(D,t){var H=D.toggledStyle||D.style,e;switch((e=t?H:D.style)==null?void 0:e.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"}}};
_.ki=function(){return _.Z(function(D){return D.nextAddress==1?D.yield(_.qS().resolve(_.h5),2):D.return(_.qS().resolve(m8K)())})};
_.Tm=function(){return _.qS().resolve(m8K)()};
_.c5=function(){return fY(function(){return{lottieEl:void 0}})};
MlX=function(D,t){return D.startsWith(t.uniqueId)};
S6V=function(D){var t,H;_.Z(function(e){if(e.nextAddress==1)return e.yield(_.ki(),2);t=e.yieldResult;if((H=t)==null||!H.addEventListener)return jd(),e.return();t.addEventListener("onCueRangeEnter",D);_.n2(e)})};
X26=function(D){var t,H;_.Z(function(e){if(e.nextAddress==1)return e.yield(_.ki(),2);t=e.yieldResult;if((H=t)==null||!H.removeEventListener)return jd(),e.return();t.removeEventListener("onCueRangeEnter",D);_.n2(e)})};
f58=function(D){var t,H,e,V,b;_.Z(function(a){if(a.nextAddress==1)return a.yield(_.ki(),2);t=a.yieldResult;if((H=t)==null||!H.addCueRange)return jd(),a.return();e=_.F(D.timings);for(V=e.next();!V.done;V=e.next())b=V.value,t.addCueRange(D.uniqueId+"-"+b,b/1E3,(b+100)/1E3);_.n2(a)})};
LAk=function(D){var t,H,e,V,b;_.Z(function(a){if(a.nextAddress==1)return a.yield(_.ki(),2);t=a.yieldResult;if((H=t)==null||!H.removeCueRange)return jd(),a.return();e=_.F(D.timings);for(V=e.next();!V.done;V=e.next())b=V.value,t.removeCueRange(D.uniqueId+"-"+b);_.n2(a)})};
A48=function(){var D,t,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(_.ki(),2);D=e.yieldResult;if((t=D)==null||!t.getPlayerState)return jd(),e.return();H=D.getPlayerState();return e.return(H===2)})};
jd=function(){_.Yw(new _.nZ("Smartimation player does not exist or is corrupted"))};
gAu=function(){try{var D;return(D=window.CSS)!=null&&D.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(t){return _.Yw(new _.nZ("Smartimation CSS.supports threw an error")),!1}};
x8A=function(D,t,H,e,V){var b=D.playlistId?J46:Y63;t=t();H=H();V=!!D.videoId&&V()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.CC(t))return l5V({data:D,actionType:b,disabled:V},H);if(D.videoId&&e())return vAA({data:D,actionType:b,disabled:V});switch(t){case "TRANSFER_STATE_UNKNOWN":return vAA({data:D,actionType:b,disabled:V});case "TRANSFER_STATE_FAILED":return D.videoId?p2A({data:D,actionType:b,disabled:V}):d8T({data:D,actionType:b,disabled:V});case "TRANSFER_STATE_COMPLETE":return d8T({data:D,
actionType:b,disabled:V});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return l5V({data:D,actionType:b,disabled:V},H);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return D.videoId?p2A({data:D,actionType:b,disabled:V}):vAA({data:D,actionType:b,disabled:V});default:return vAA({data:D,actionType:b,disabled:V})}};
RrT=function(D,t){var H=D.onTapCommand,e=_.xP(H);if(D.videoId&&_.O(e,_.$i))return _.O(e,_.$i).action=t,H;D.playlistId&&_.O(e,_.iO)&&(_.O(e,_.iO).action=t);return H};
vAA=function(D){var t=D.data;var H=D.actionType;D=D.disabled;return{text:uR6,iconType:"OFFLINE_DOWNLOAD",onTap:RrT(t,H.ACTION_ADD),disabled:D}};
l5V=function(D,t){var H=D.data;var e=D.actionType;D=D.disabled;var V="OFFLINE_DOWNLOAD";t>=0&&t<=.1?V="OFFLINE_DOWNLOADING_ZERO":t>.1&&t<=.3?V="OFFLINE_DOWNLOADING_TWENTY":t>.3&&t<=.5?V="OFFLINE_DOWNLOADING_FORTY":t>.5&&t<=.7?V="OFFLINE_DOWNLOADING_SIXTY":t>.7&&t<1?V="OFFLINE_DOWNLOADING_EIGHTY":t===1&&(V="OFFLINE_PIN");return{text:WAV,iconType:V,onTap:RrT(H,e.ACTION_REMOVE_WITH_PROMPT),disabled:D}};
d8T=function(D){var t=D.data;var H=D.actionType;D=D.disabled;return{text:I53,iconType:"OFFLINE_PIN",onTap:RrT(t,H.ACTION_REMOVE_WITH_PROMPT),disabled:D}};
p2A=function(D){var t=D.data;var H=D.actionType;D=D.disabled;return{text:QbD,iconType:"OFFLINE_DOWNLOAD",onTap:RrT(t,H.ACTION_RETRY),disabled:D}};
_.rF=function(D,t){var H=ps6();return _.jj(function(){H();return RYD(D,[_.fR(t)||""])},{debugName:"LUZslf"},"Z105t")};
y43=function(D){var t=_.rF(_.xe,function(){return D().videoId}),H=_.rF(_.Rf,function(){return D().playlistId});
return function(){return D().videoId?t:D().playlistId?H:_.F(_.KR("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
Bau=function(D){var t=_.rF(uG,function(){return D().videoId}),H=_.rF(_.n$R,function(){return D().playlistId});
return function(){return D().videoId?t:D().playlistId?H:_.F(_.KR(0,void 0,"K4tgOc")).next().value}};
zrX=function(D){var t=_.rF(_.g$D,function(){return D().videoId});
return function(){return D().videoId?t:_.F(_.KR(!1,void 0,"Oaxwcf")).next().value}};
Dt$=function(D){var t=_.rF(Miu,function(){return D().videoId});
return function(){return D().videoId?t:_.F(_.KR("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
t1V=function(){return{}};
_.qC6=function(D,t,H){return{submitForm:function(){var e,V,b,a;return _.Z(function(w){if(w.nextAddress==1){e=HV8(D());if(!e)return w.return();if(e.onSubmit)return eJX(t),e.onSubmit(),eJX(H),w.return();if(!e.submitConfig||!e.formData)return w.jumpTo(0);e.disableDuringSubmission&&V1V(D(),!0);eJX(t);return w.yield(bVu(e.submitConfig,e.formData()),3)}V=w.yieldResult;eJX(H);if(((b=V)==null?0:b.submitResult)&&((a=e)==null?0:a.onSubmitResult))e.onSubmitResult(V.submitResult);e.disableDuringSubmission&&V1V(D(),
!1);return w.return()})},
isValid:function(){var e=HV8(D());if(e){var V;return!((V=e.isValid)==null||!V.call(e))}return!0},
isSubmitting:function(){var e,V;return!!((e=HV8(D()))==null?0:(V=e.isSubmitting)==null?0:V.call(e))}}};
_.OI=function(){if(!FpX){var D=_.F(_.KR(new Map,void 0,"Y1XnBc"));FpX=D.next().value;aKV=D.next().value}return FpX};
_.wAu=function(D){aKV(new Map(D))};
HV8=function(D){if(D)return _.OI()().get(D)};
bVu=function(D,t){var H;return _.Z(function(e){return e.nextAddress==1?t?(H=_.qS().resolve(_.by(ZVT)))&&D.submitId?e.yield(H.submitForm(D.submitId,t,sVk,D.params,D.clickTrackingParams),2):e.return(Promise.reject(Error("Gh"))):e.return(Promise.reject(Error("Fh"))):e.return(e.yieldResult)})};
V1V=function(D,t){if(D){var H=_.OI();H().set(D,Object.assign({},H().get(D),{isSubmitting:function(){return t}}));
_.wAu(H())}};
eJX=function(D){if(D){var t=_.qS().resolve(_.aA);t&&(D=_.xP(D()))&&t.resolveCommand(D)}};
Ghu=function(D,t){t=t===void 0?{shouldPersist:!0}:t;return{useUpdatableData:function(H,e){var V=[],b=_.F(_.rm(function(){var K=H();if(e!=null&&e.length&&V){var N=V.length>0;for(var k=!1,T=0;T<e.length;T++){var c=e[T]();N&&c!==V[T]&&(k=!0);V[T]=c}N=k}else N=!1;if(N)_.UI.remove(h());else if(N=_.UI.get(h()))return N;return K})),a=b.next().value,w=b.next().value,h=_.jj(function(){return D(H())},void 0,"mX326");
_.Mp(function(){if(h()!=null){hJK.set(h(),[a,w]);var K=h();_.Sj(function(){hJK.delete(K)})}},"MgKPjb");
return[a,function(K){w(K);t.shouldPersist&&_.UI.set(h(),K)}]},
getData:function(H){var e;return(e=hJK.get(D(H)))==null?void 0:e[0]()},
updateData:function(H,e){H=D(H);var V=hJK.get(H);if(!V)return!1;var b=_.F(V);V=b.next().value;b=b.next().value;e=e(V());b(e);t.shouldPersist&&_.UI.set(H,e);return!0}}};
E8V=function(D){var t=_.F(_.KR(!0,void 0,"bKtO6d")),H=t.next().value;t.next();return function(){var e=jG(D.children());return _.G(_.E,{cond:H,then:function(){return e},
else:D.fallback})}()};
_.P5=function(D){var t=KpT(D),H=t.data,e=t.mapping,V=t.wrapper;t=t.pendingFallback;var b=function(){return N5$(_.fR(H))},a=function(){var w=b(),h=[];
w=_.F(w);for(var K=w.next();!K.done;K=w.next()){var N=void 0;K=K.value;var k=void 0;for(N in K)if(!(!K).hasOwnProperty(N)){k=N;break}(N=k)&&h.push(N)}return h};
return D.data?_.G(E8V,{fallback:t},function(){return _.G(_.nY,{each:a},function(w,h){var K=V?function(k){return V(function(){return e[w](k,h)},N,h)}:function(k){return e[w](k,h)};
K.debugName||(K.debugName=String(w));if(!e[String(w)])return document.createComment("");K.componentType!==PI&&khD(String(w));var N=T5A(b,w,h);return _.G(K,{data:N})})}):_.G(_.FH,null)};
KpT=function(D){var t=D.targetId||cok(D.children);if(!D.data||!t||_.r("mweb_new_replaceables_killswitch"))return Object.assign({},D,{mapping:D.children,wrapper:void 0});var H="stamper-"+jVV++,e=function(){var w;return(w=typeof D.targetId==="function"?D.targetId(H):D.targetId)!=null?w:H};
t=_.F($tR(function(){var w=N5$(D.data());w.targetId=e;return w})).next().value;
var V=Object.assign({},(_.qS().resolve(_.by(iV3))||{}).replaceableMapping,D.children);if(D.replacementWrapper){var b=V.notificationTextRenderer,a=V.notificationMultiActionRenderer;b&&(V.notificationTextRenderer=function(w,h){return D.replacementWrapper(b({data:w.data},h))});
a&&(V.notificationMultiActionRenderer=function(w,h){return D.replacementWrapper(a({data:w.data},h))})}return Object.assign({},D,{data:t,
mapping:V,wrapper:function(w,h,K){return pE$({targetId:e,stamperIndex:K},w)}})};
T5A=function(D,t,H){var e;return _.jj(function(){var V=D()[H()];if(V)e=V[t];else return _.Yw(new _.nZ("Stamper failed to find "+String(t)+" at index "+H()+" of data array of length "+(D().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),e;return V[t]},void 0,"wgRPHd")};
cok=function(D){D=_.F(Object.keys(D));for(var t=D.next();!t.done;t=D.next())if(t=t.value,ro6.includes(t)||OV8.includes(t)||UtR.includes(t))return!0;return!1};
N5$=function(D){return D?Array.isArray(D)?D:[D]:[]};
khD=function(D){if(_.r("web_enable_renderer_logger")){var t;(t=_.qS().resolve(_.by(o88)))!=null&&t.loggingEnabled&&!t.ids.has(D)&&t.ids.add(D)}};
PJR=function(){var D,t;return(t=(D=_.qS().resolve(_.by(_.tB)))==null?void 0:D())!=null?t:!1};
CJT=function(D,t){D=D===void 0?n83:D;switch(t.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},D,{isOpen:t.payload});default:return D}};
M1V=function(D,t){D=D===void 0?mt8:D;switch(t.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},D,{isAllowed:t.payload});default:return D}};
XAR=function(D,t){D=D===void 0?SCV:D;switch(t.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},D,{errorMessage:t.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},D,{title:t.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},D,{privacy:t.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},D,{isDisabled:t.payload});default:return D}};
LpA=function(D,t){D=D===void 0?fKu:D;switch(t.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},D,{isOpen:t.payload});default:return D}};
g8V=function(D,t){D=D===void 0?AoK:D;switch(t.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},D,{isFullscreen:t.payload});case "SET_NAVIGATION_BUTTON":var H=t.payload.targetId,e=Object.assign({},D.navigationButtons);e[H]=t.payload.button;return Object.assign({},D,{navigationButtons:e});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},D,{topPanelId:t.payload});case "SET_SECONDARY_HEADER":return H=t.payload.panelId,e=Object.assign({},D.secondaryHeader),e[H]=t.payload.secondaryHeader,
Object.assign({},D,{secondaryHeader:e});default:return D}};
v8k=function(){return rZ(Object.assign({},{voiceSearch:F2k,engagementPanel:g8V,bottomSheet:CJT,cinematicSetting:M1V,shorts:K2V,drawerLayout:LpA,createPlaylist:XAR,locationCollection:JoV,reportChannel:YCD,reportForm:lK6},NBX))};
pAK=function(D,t){_.Jy.addLowPriorityJob(function(){var H,e,V;return _.Z(function(b){switch(b.nextAddress){case 1:return _.$p(b,2),b.yield(iIK(),4);case 4:return b.yield(fetch(D),5);case 5:return H=b.yieldResult,b.yield(H.json(),6);case 6:e=b.yieldResult;XI.set(D,e);requestAnimationFrame(function(){t(e)});
_.yM(b,0);break;case 2:V=_.Pv(b),_.Yw(V),_.n2(b)}})})};
dtV=function(D){var t={animationConfig:{},listeners:{}},H=function(){D(!0)};
t.listeners.data_failed=H;t.listeners.error=H;t.listeners.data_ready=function(){D(!1)};
return t};
uZV=function(D){var t=D.model;var H=D.subscribed;var e=D.isOverlay;var V=D.element;var b=D.commandController;var a=D.notificationState;if(H){var w,h;var K=(t==null?void 0:(w=t.buttonStyle)==null?void 0:w.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:t==null?void 0:(h=t.unsubscribeButtonContent)==null?void 0:h.buttonText}else{var N;K=t==null?void 0:(N=t.subscribeButtonContent)==null?void 0:N.buttonText}a:{var k;switch(t==null?void 0:(k=t.buttonStyle)==
null?void 0:k.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":w="S";break a;default:w="M"}}a:if(e)e="overlay";else switch(t.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":e="overlay";break a;default:e="mono"}a:if(H)var T="tonal";else switch((T=t.buttonStyle)==
null?void 0:T.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":T="tonal";break a;default:T="filled"}return{style:e,type:T,state:t.disableSubscribeButton?"disabled":"active",size:w,focused:D.focused,toggled:H,accessibilityLabel:xtR(t,H,a),buttonText:K,iconPosition:t.disableNotificationBell?"none":"leading-trailing",onTap:RJ$(t,H,V,b),disableTextEllipsis:!!D.disableTextEllipsis}};
RJ$=function(D,t,H,e){return function(V){if(t){var b;var a=D.disableNotificationBell?_.xP(D==null?void 0:(b=D.unsubscribeButtonContent)==null?void 0:b.onTapCommand):_.xP(D==null?void 0:D.onShowSubscriptionOptions)}else{var w;a=_.xP(D==null?void 0:(w=D.subscribeButtonContent)==null?void 0:w.onTapCommand)}a&&nb(a,{form:{element:H==null?void 0:H.value},commandController:e});V.stopPropagation()}};
xtR=function(D,t,H){if(t){if(D==null?0:D.disableNotificationBell){var e;return D==null?void 0:(e=D.unsubscribeButtonContent)==null?void 0:e.accessibilityText}switch(H){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var V;return D==null?void 0:(V=D.bellAccessibilityData)==null?void 0:V.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var b;return D==null?void 0:(b=D.bellAccessibilityData)==null?void 0:b.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var a;return D==null?void 0:(a=
D.bellAccessibilityData)==null?void 0:a.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var w;return D==null?void 0:(w=D.bellAccessibilityData)==null?void 0:w.disabledLabel;default:var h;return D==null?void 0:(h=D.unsubscribeButtonContent)==null?void 0:h.accessibilityText}}else{var K;return D==null?void 0:(K=D.subscribeButtonContent)==null?void 0:K.accessibilityText}};
Wp8=function(D){if(D){switch(D){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":D="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":D="NOTIFICATIONS_OFF";break;default:D="NOTIFICATIONS_NONE"}return D}};
IK3=function(D,t,H){H.subscribed!==t&&((H=H.key)&&_.bf(_.nf("subscriptionStateEntity",H,{key:H,subscribed:t})),D.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:t})),t||_.ET(D,"yt-unsubscribe-action"))};
yoK=function(D){D=_.O(_.xP(D),_.Cf);var t,H,e,V;return(V=_.O(D==null?void 0:(t=D.panelLoadingStrategy)==null?void 0:(H=t.inlineContent)==null?void 0:(e=H.sheetViewModel)==null?void 0:e.content,QVX))==null?void 0:V.listItems};
B5D=function(D,t){if(D.onShowSubscriptionOptions&&t&&(D=yoK(D.onShowSubscriptionOptions),D!=null&&D.length)){var H=Wp8(t);D.forEach(function(e){e=_.O(e,_.mt);var V,b,a,w,h=e==null?void 0:(V=e.leadingImage)==null?void 0:(b=V.sources)==null?void 0:(a=b[0])==null?void 0:(w=a.clientResource)==null?void 0:w.imageName;e&&h&&(e.isSelected=h===H)})}};
zJV=function(D,t,H,e){t&&H?D.style.width=H+"px":!t&&e&&(D.style.width=e+"px")};
D9D=function(D,t,H){var e;(e=D.lottieEl)==null||e.goToAndPlay(0);var V;(V=t.lottieEl)==null||V.goToAndPlay(0);_.Mx(_.Jy,function(){var b;(b=H.lottieEl)==null||b.goToAndPlay(0)},300)};
tIK=function(D){return!(D==null||!D.iconName||(D==null?0:D.title))};
H4K=function(D,t,H,e){H&&_.Jy.cancelJob(H);H=_.Jy.addLowPriorityJob(function(){e(void 0)},5E3);
e(H);t&&D!==(t.likeStatus==="LIKE")&&t.key&&_.bf(_.nf("likeStatusEntity",t.key,{key:t.key,likeStatus:D?"LIKE":"INDIFFERENT",hadUserInteraction:D}))};
_.eO6=function(D,t){return _.jR(D.entities,"accountLinkStatusEntity",t)};
VIA=function(D,t){return _.jR(D.entities,"hatsSurveyEntity",t)};
b4K=function(D,t){return _.jR(D.entities,"hatsSurveyStateEntity",t)};
qSD=function(D,t){return _.jR(D.entities,"quantityIncrementerEntity",t)};
F_V=function(D){switch(D){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
aRD=function(D){switch(D){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}};
wLV=function(D){switch(D){case 2:return"yt-badge-shape--ad";case 1:return"yt-badge-shape--media";case 3:return"yt-badge-shape--promoted";case 4:return"yt-badge-shape--promoted-inverted";case 5:return"yt-badge-shape--timely";case 6:return"yt-badge-shape--premium";case 7:return"yt-badge-shape--sale";case 8:return"yt-badge-shape--membership";case 9:return"yt-badge-shape--commerce";case 11:return"yt-badge-shape--live";case 12:return"yt-badge-shape--status-new";case 13:return"yt-badge-shape--status-complete";
case 14:return"yt-badge-shape--status-warning";case 15:return"yt-badge-shape--status-error";case 16:return"yt-badge-shape--status-default";case 17:return"yt-badge-shape--thumbnail-default";case 18:return"yt-badge-shape--thumbnail-live";case 19:return"yt-badge-shape--thumbnail-special";default:return"yt-badge-shape--default"}};
_.sGT=function(D){var t=_.ZU("web_generic_client_event_wait_period ",0);t||(t=3E5);var H=Z48.get(D);!_.r("enable_web_client_experiment_event_timeout_killswitch")&&H&&(0,_.aP)()-H<t||(Z48.set(D,(0,_.aP)()),_.L7("genericClientExperimentEvent",{eventType:D}))};
hOK=function(D){switch(D){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
GDV=function(D){if(!D)return"";var t,H=(t=_.qS().resolve(_.by(_.tB)))==null?void 0:t(),e;if(!H&&((e=D.vibrantColorPalette)==null?0:e.iconInactiveColor))return yk(D.vibrantColorPalette.iconInactiveColor,"1");var V;return H&&((V=D.darkColorPalette)==null?0:V.iconInactiveColor)?yk(D.darkColorPalette.iconInactiveColor,"1"):D.color?yk(D.color,"1"):D.sampledThumbnailColor?(D=D.sampledThumbnailColor,"rgba("+D.red+","+D.green+","+D.blue+");"):""};
_.Sd=function(D,t){if(!D.includes("DATE_PLACEHOLDER"))return D;var H=new Date(0);H.setUTCSeconds(t);return D.replace("DATE_PLACEHOLDER",E_V(H))};
K_3=function(D,t,H){return function(e){var V=D.command;V&&(nb(V,{form:{element:H}}),t([V],e))}};
kDu=function(D,t,H,e,V){return function(b){var a=Nu$(D,t);a&&nb(a,{form:{element:H},commandController:e});V&&b.stopPropagation()}};
Nu$=function(D,t){if(D.signInEndpoint&&!_.r("web_subscribe_sign_in_endpoint_killswitch"))return D.signInEndpoint;if(t){if(D.serviceEndpoints)return D.serviceEndpoints[1];if(D.onUnsubscribeEndpoints)return D.onUnsubscribeEndpoints[0]}else{if(D.serviceEndpoints)return D.serviceEndpoints[0];if(D.onSubscribeEndpoints)return D.onSubscribeEndpoints[0]}};
TuV=function(D,t){var H,e,V,b;t=t&&((H=D.unsubscribeAccessibility)==null?void 0:(e=H.accessibilityData)==null?void 0:e.label)||((V=D.subscribeAccessibility)==null?void 0:(b=V.accessibilityData)==null?void 0:b.label);return D.longSubscriberCountText?[t,_.eo(D.longSubscriberCountText)].filter(function(a){return a}).join(" "):t};
XA=function(D,t){return t||(D==null?0:D.isChannelDelegate)?"disabled":"active"};
cu8=function(D,t){var H;switch((H=D.style)==null?void 0:H.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:XA(D)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:XA(D)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:XA(D,!0)};case "OVERLAY":return t?{style:"overlay",type:"tonal",state:XA(D)}:{style:"overlay",type:"filled",state:XA(D)};default:return t?{style:"mono",type:"tonal",state:XA(D)}:{style:"mono",type:"filled",state:XA(D)}}};
_.ff=function(){for(var D=[],t=_.F(_.RE.apply(0,arguments)),H=t.next();!H.done;H=t.next())if(H=H.value)if(typeof H==="string")D.push(H);else{H=_.F(Object.entries(H));for(var e=H.next();!e.done;e=H.next()){var V=_.F(e.value);e=V.next().value;(V=V.next().value)&&D.push(e)}}return D.join(" ")};
jGk=function(D){switch(D){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
$9A=function(D){switch(D){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
i4V=function(D,t){var H=D.map(function(e){return e.toString()});
return _.$X(function(e){if(H.includes(e.key)){t&&e.preventDefault();var V;(V=e.currentTarget)==null||V.click()}})};
_.ruu=function(){return i4V(["Enter"])};
_.O4$=function(){return i4V(["Enter"," "],!0)};
_.Lf=function(D){if(D.composedPath)return D.composedPath();if(!D.__composedPath){for(var t=[],H=D.target;H;)t.push(H),H=H.parentNode;t.push(window);D.__composedPath=t}return D.__composedPath};
_.A5=function(D,t,H){D=_.F(D);for(var e=D.next();!e.done;e=D.next()){e=e.value;if(e===t)break;for(var V=_.F(H),b=V.next();!b.done;b=V.next())if(b=b.value,e.tagName===b||e.role==="button"&&b==="BUTTON")return!0}return!1};
o_X=function(D,t){var H,e=(H=t.observer)!=null?H:_.qS().resolve(aC);if(D){H=U9D(D);var V=[];t.showOption&&V.push(e.observe(D,function(){t.visibilityCallback(!0,D)},t.showOption));
t.hideOption&&V.push(e.observe(D,function(){t.visibilityCallback(!1,D)},t.hideOption));
t.prescanOption&&t.prescanCallback&&V.push(e.observe(D,function(){t.prescanCallback()},t.prescanOption));
var b;H.visibilityMonitorKeys=((b=H.visibilityMonitorKeys)!=null?b:[]).concat(V)}};
U9D=function(D){var t;return(t=D.polymerController)!=null?t:D};
_.J5=function(D){return!!_.gF(D)};
_.Yi=function(D,t,H,e,V){return function(b){var a=vUV();_.Mp(function(){if(b){Pc6(b,D(),V);var w=n_A(b,D(),t,H,e,a);_.Sj(w)}},"nr377e")}};
Pc6=function(D,t,H){var e=CcX(t),V=m98(t);t=e&&MI8;var b=V&&SSX;(e||V)&&o_X(D,{visibilityCallback:function(a){var w=_.qS().resolve(_.aA);a&&e?w.resolveCommand(e,{form:{element:H?D:void 0},disableClickTracking:!0}):!a&&V&&w.resolveCommand(V,{form:{element:H?D:void 0},disableClickTracking:!0})},
showOption:t,hideOption:b})};
n_A=function(D,t,H,e,V,b){var a=new Map;if(t=_.gF(t)){var w;D=(e==null?void 0:(w=e.onTap)==null?void 0:w.value)||D;H=XLD(t,D,H==null?void 0:H.onTap,V,b);D.addEventListener("click",H);a.set("click",H)}return function(){for(var h=_.F(a),K=h.next();!K.done;K=h.next()){var N=_.F(K.value);K=N.next().value;N=N.next().value;D.removeEventListener(K,N)}}};
_.gF=function(D){var t;return(D=(t=_.O(D,fR3))==null?void 0:t.onTap)&&_.xP(D)};
CcX=function(D){var t;return(D=(t=_.O(D,fR3))==null?void 0:t.onVisible)&&_.xP(D)};
m98=function(D){var t;return(D=(t=_.O(D,fR3))==null?void 0:t.onHidden)&&_.xP(D)};
XLD=function(D,t,H,e,V){var b=function(w){_.qS().resolve(_.aA).resolveCommand(D,w)},a=function(w){e&&_.A5(_.Lf(w),t,e)||b(w.target?{form:{element:w.target,
sourceData:D,mutationContext:V}}:void 0)};
H&&(a=function(w){H(w,b)});
return a};
L_u=function(D){switch(D){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}};
AuD=function(D){var t=D.numAvatarsInCluster;switch(D.clusterSize){case "small":return t===2?22:18;case "40":return t===2?24:22;default:return t===2?24:20}};
g_X=function(D,t){return function(H){var e=Object.keys(t);_.Mp(function(){if(D!=null&&D()){for(var V=_.F(e),b=V.next();!b.done;b=V.next())b=b.value,H.addEventListener(b,t[b]);_.Sj(function(){for(var a=_.F(e),w=a.next();!w.done;w=a.next())w=w.value,H.removeEventListener(w,t[w])})}},"bXZGfe")}};
Ju8=function(D){switch(AuD(D)){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""}};
YSV=function(D){switch(D){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""}};
lR$=function(D){switch(AuD(D)){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""}};
v_V=function(D){switch(D){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""}};
pLA=function(D){switch(D){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}};
d9K=function(D){return D==="medium"||D==="48"||D==="large"||D==="extra-large"||D==="extra-extra-large"||D==="giant"};
x9A=function(D){return!!((D==null?0:D.includes(3))||(D==null?0:D.includes(5)))};
uV6=function(D){var t=D.data;return{size:ROV(t.avatarImageSize),type:t.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:D.onTap,decorations:D.decorations||[],badgeText:D.badgeText,accessibilityText:D.accessibilityText,avatarButtonCustomClassName:D.avatarButtonCustomClassName,clusterLayoutConfig:D.clusterLayoutConfig}};
ROV=function(D){switch(D){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"}};
W_$=function(D){switch(D){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}};
IRV=function(D){switch(D){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model__avatar--avatar-size-giant";default:return""}};
QGk=function(D){var t=D.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",H,e=D.avatars&&D.avatars.length>0?(H=_.O(D.avatars[0],_.lO))==null?void 0:H.avatarImageSize:"AVATAR_SIZE_UNKNOWN";H=W_$(e)||0;if(t){var V,b=(V=D.avatarClusterSize)!=null?V:"AVATAR_SIZE_M";t=W_$(b);var a,w,h=Math.min((w=(a=D.avatars)==null?void 0:a.length)!=null?w:0,4),K;return{avatars:((K=D.avatars)==null?void 0:K.slice(0,4))||[],avatarSizeInPx:H,avatarStackStyle:{width:t+"px",height:t+"px",position:"relative"},avatarStyle:function(k){var T=
AuD({clusterSize:ROV(b),numAvatarsInCluster:h,avatarIndex:k});var c=W_$(b);h===3&&k===2?(c=(c-T)/2,c=(_.YC("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*c):c=void 0;return{position:"absolute",top:h===2&&k===1||h===3&&k===2||h===4&&k>=2?"0":void 0,bottom:h===2&&k===0||h>2&&k<2?"0":void 0,left:h===2&&k===1||h>2&&(k===1||k===3)?"0":void 0,right:h<=3&&k===0||h===4&&(k===0||k===2)?"0":void 0,transform:c?"translateX("+c+"px)":void 0,width:T+"px",height:T+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(k){return{clusterSize:ROV(D.avatarClusterSize),numAvatarsInCluster:h,avatarIndex:k}},
avatarButtonCustomClassName:void 0}}var N;return{avatars:((N=D.avatars)==null?void 0:N.slice())||[],avatarSizeInPx:H,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:IRV(e),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
yuT=function(D,t,H){return function(){nb(D,{form:{element:t},commandController:H})}};
BuA=function(D){switch(D){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
zOD=function(D){switch(D){case "small":return"yt-thumbnail-overlay-badge-view-model--small";case "medium":return"yt-thumbnail-overlay-badge-view-model--medium";case "large":return"yt-thumbnail-overlay-badge-view-model--large";default:return"yt-thumbnail-overlay-badge-view-model--medium"}};
D68=function(D){if("accessibilityText"in D)return D.accessibilityText||"";if("title"in D){var t,H,e;return((t=D.title)==null?void 0:(H=t.accessibility)==null?void 0:(e=H.accessibilityData)==null?void 0:e.label)||""}if("accessibility"in D){var V,b;return((V=D.accessibility)==null?void 0:(b=V.accessibilityData)==null?void 0:b.label)||""}return""};
tmR=function(D){return"inlinePlayerData"in D};
v5=function(D){return new HjT(D)};
e28=function(D){return function(t){D&&(D.thumbnailElRef=t.thumbnailElRef,D.thumbnail=t.thumbnail,D.thumbnailOverlays=t.thumbnailOverlays,D.thumbnailSize=t.thumbnailSize)}};
VmK=function(D){switch(D){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
qeu=function(D){var t=_.F(_.KR(!1,void 0,"RIOonf")),H=t.next().value,e=t.next().value;_.XH(function(){var V=D==null?void 0:D();if(V){var b=_.qS().resolve(_.by(bj6));if(b){var a={triggeringElement:V,onDwellTriggeredFn:function(){e(!0)},
onDwellEndFn:function(){e(!1)}};
b.registerElement(a);_.Sj(function(){_.pf(b,a)})}}});
return H};
F3V=function(D,t,H){H?H(t):_.IQ(t,D.target?{form:{element:D.target}}:void 0)};
_.dF=function(D,t,H,e){return function(V){_.Mp(function(){function b(N){N=N.composedPath();N=_.F(N);for(var k=N.next();!k.done;k=N.next()){k=k.value;if(k===V)break;if(k.className.indexOf("HostIsClickableAdComponent")>=0||k.tagName==="A".toString()||k.tagName==="BUTTON".toString())return!0}return!1}
var a=new Map,w,h=(w=D())==null?void 0:w.onTap;if(h){w=function(N){b(N)||F3V(N,h,t)};
var K=function(N){b(N)||N.key!=="Enter"||F3V(N,h,t)};
(H==null?0:H())||_.r("enable_web_home_top_landscape_image_layout_level_click")?(V.addEventListener("tap",w),a.set("tap",w)):(V.addEventListener("click",w),a.set("click",w));if(e==null?0:e())V.addEventListener("keydown",K),a.set("keydown",K)}_.Sj(function(){for(var N=_.F(a),k=N.next();!k.done;k=N.next()){var T=_.F(k.value);k=T.next().value;T=T.next().value;V.removeEventListener(k,T)}})},"D7XqOc")}};
aeX=function(D,t){var H,e=(H=D.interaction)==null?void 0:H.onTap;if(D=_.uf({elementsCommand:e,forceNewState:!0,skipOnClick:!0}))return D.onclick=function(V){sr3(V)&&(V.preventDefault(),e&&F3V(V,e,t))},Wc(D)?D:void 0};
wxk=function(D){switch(D){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
ZjX=function(D){switch(D){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"}};
sNk=function(D){switch(D){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"}};
_.h2D=function(D){return _.r("rich_grid_enable_dynamic_offset")&&D?Math.max(Math.round((D-_.ZU("rich_grid_dynamic_offset_anchor_width",1300))/100*_.ZU("rich_grid_dynamic_offset_offset_per_100",10)),_.ZU("rich_grid_dynamic_offset_lower_bound",-60)):0};
GoR=function(D,t){switch(t){case 4:return 16;case 1:return D<528?16:D<1024?32:48;case 2:return(D>=528?16:8)/2;case 3:return(D<528?16:D<1024?32:48)+(D>=528?16:8)/2;default:return 0}};
EHX=function(D){var t=D.originalContainerWidth;var H=D.sizing;var e=D.standardUnit;if(D.isCompactList&&t<528)return 1;switch(H){case "STANDARD":return e;case "COMPACT":return e+1;case "EXTRA_COMPACT":return _.r("web_responsive_extra_compact_2x")?e*2:_.r("web_responsive_current")?e===1?2:e%2===0?e/2*3:e+2:e<4?e*2:Math.ceil(e*3/2);case "MINI":return e>1?e*2:3;default:return e}};
NRV=function(D){var t=D.containerWidth;var H=D.peek;var e=D.gutter;var V=D.numItems;D=D.ignoreMaxWidthLimit;t=H?Math.max((t-H-e*V)/V,0):Math.max((t-e*(V-1))/V,0);return D?t:Math.min(t,K3V)};
_.xi=function(D){var t=D.containerWidth;var H=D.hasPeek;var e=D.sizing;var V=D.marginSettings;var b=D.isCompactList;var a=D.enableFullBleedForSingleCol;var w=D.standardUnitMinWidth;e=e||"STANDARD";H=!!H;D=t>=528?16:8;var h=H?t>=528?48:24:0;V=GoR(t,V);var K=Math.max(t-V*2,0);w=_.r("kevlar_disable_min_width_override")?void 0:w;w=Math.min(Math.max(Math.floor((K-h+D)/((w!=null?w:ko6)+_.h2D(t)+D)),1),6);var N=(a=!!a&&w===1)||w===1&&e!=="STANDARD";H=H||N?K:Math.min(K,(K3V+D)*w-D);e=EHX({originalContainerWidth:t,
sizing:e,standardUnit:w,isCompactList:b});return{itemWidth:NRV({containerWidth:H,peek:h,gutter:D,numItems:e,ignoreMaxWidthLimit:N}),gutter:D,maxContainerWidth:H,numItems:e,margin:a?0:V,contentMargin:GoR(t,1),typographyBump:NRV({containerWidth:H,peek:h,gutter:D,numItems:w,ignoreMaxWidthLimit:N})>400&&!(b&&t<528),standardUnit:w}};
TRK=function(D){switch(D){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.cQX=function(D){if(D){var t;if((t=D.responsiveContainerConfiguration)==null?0:t.responsiveSize)return TRK(D.responsiveContainerConfiguration.responsiveSize);if(D.layoutSizing)switch(D.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"}}};
jNA=function(D){if(D.fullbleed)return 1;switch(D.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
OjT=function(D,t,H,e,V,b,a,w){a:if(D===4&&e==="LOCKUP_CONTENT_TYPE_SOURCE")var h=1;else switch(D){case 3:h=1;break a;default:h=0}a:switch(D){case 4:b=!!(b&&b<100);break a;default:b=!1}a:switch(D){case 3:case 4:var K=e==="LOCKUP_CONTENT_TYPE_CHANNEL"||e==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:K=!1}a:switch(D){case 5:var N=!0;break a;case 4:N=!1;break a;default:N=!1}return{isOverlay:N,isCard:$6X(e,a),sizing:t!=null?t:"STANDARD",typographyBump:H!=null?H:!1,isTiny:b,isCentered:K,isCollection:ij$(e),
arrangement:h,addMarginForFullbleed:D===1&&e!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:D===1&&e==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:rQV(e,V,w),disableRounding:D===5||$6X(e,a)||D===1&&e==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:ij$(e)?2:0,useLegacyTypography:!(w==null||!w.useLegacyTypography),useRichGridLegacyTypography:!(w==null||!w.useRichGridLegacyTypography)&&!_.r("web_enable_typography_bump"),compactMetadata:h===0&&e==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:w==null?void 0:w.onFocusEffect}};
ij$=function(D){switch(D){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}};
$6X=function(D,t){if(t&&D==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(D){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
rQV=function(D,t,H){if(t&&(H==null||!H.alwaysRespectPodcastShowAspectRatio||D!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(D){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}};
U6$=function(D){switch(D){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"}};
oHk=function(D){switch(D){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
P0K=function(D){switch(D){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}};
_.Rn=function(D){if(D){var t;return((t=_.qS().resolve(_.by(_.tB)))==null?0:t())?D.darkThemeImage:D.image}};
m6D=function(D,t,H,e,V,b){if(V&&b&&t==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:V,height:b};if(!H)return{};V=H.size;H=H.allowFullWidth;if(t==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&H)return{fullWidth:!0};if(V===void 0)return{};switch(D){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:V,height:V};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:V,height:1/nH8*V};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:V*
C08,height:V};default:return(e==null?0:e.height)&&(e==null?0:e.width)?e.width/e.height>1?{maxWidth:V*C08}:{maxWidth:V}:{maxWidth:V}}};
Mm$=function(D){var t;return D&&((t=_.Rn(D.themedImage))!=null?t:D.image)};
SeV=function(D){var t;return D==null?void 0:(t=D.sources)==null?void 0:t[0]};
XxK=function(D){switch(D){case 0:return"yt-content-metadata-view-model__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model__metadata-text";case 2:return"yt-content-metadata-view-model__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model__metadata-text-max-lines-4"}};
_.feV=function(D){if(D)return"content-id-"+D};
L38=function(D){switch(D.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"}}};
AQT=function(D){var t=_.uO.currentPageSubTypeSelector(_.V_().getState())||"";return D?D+t:""};
gHK=function(D){switch(D){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
YeT=function(D){var t=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],H=_.F(_.KR(void 0,void 0,"JrqNsb")),e=H.next().value,V=H.next().value,b=_.F(_.KR(void 0,void 0,"rWytse"));H=b.next().value;var a=b.next().value;b=_.F(_.KR(void 0,void 0,"DHRqxe"));var w=b.next().value,h=b.next().value;return{touchFeedbackEvents:{pointerUpEvent:e,pointerDownEvent:H,pointerLeaveEvent:w},touchFeedbackOnPointerUp:_.$X(function(K){JQV(_.Lf(K),t)||(V(K),a(void 0),h(void 0))}),
touchFeedbackOnPointerDown:_.$X(function(K){D==null||D(K);JQV(_.Lf(K),t)||(a(K),V(void 0),h(void 0))}),
touchFeedbackOnPointerLeave:_.$X(function(K){JQV(_.Lf(K),t)||(h(K),a(void 0),V(void 0))})}};
JQV=function(D,t){t=t===void 0?[]:t;t=[].concat(_.A6(t),["BUTTON".toString()]);D=_.F(D);for(var H=D.next();!H.done;H=D.next()){H=H.value;for(var e=_.F(t),V=e.next();!V.done;V=e.next())if(H.tagName===V.value)return!0}return!1};
leD=function(D){switch(D){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"}};
vHV=function(D){return D.scrollHeight-D.offsetHeight>1};
pxu=function(D,t){var H;return DP(D,((H=D.content)==null?void 0:H.length)||0,!t)};
R2D=function(D,t,H,e,V,b){if(!t||d66){var a;return DP(D,((a=D.content)==null?void 0:a.length)||0,!0)}t=e.value;if(!H.value||!t||!D.content)return D;H=0;e=D.content.length;a=0;x6D||(x6D=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var w=x6D;for(V=V*b*w;H<=e;)b=Math.floor(H+(e-H)/2),w=DP(D,b)||D,t.firstChild&&(t.firstChild.textContent=w.content),t.scrollHeight>V?e=b-1:(a=b,H=b+1);return DP(D,a)};
ufR=function(D,t){var H,e;return(((H=D.content)==null?void 0:H.length)||0)>(((e=t.content)==null?void 0:e.length)||0)};
W3k=function(D,t,H,e,V,b){var a=_.DY("truncated-text-content"),w=_.DY("truncated-text-content"),h=_.DY("button"),K=_.DY("button"),N=_.DY("button"),k=_.qS().resolve(_.eQ),T=_.F(_.rm(function(){return pxu(D(),V())})),c=T.next().value,U=T.next().value;
T=_.F(_.rm(function(){return ufR(D(),c())}));
var S=T.next().value,L=T.next().value,J=null;_.Mp(function(){function g(){if(a.value&&h.value&&N.value){var R=b()?D():R2D(D(),V(),a,w,t(),H());U(R);requestAnimationFrame(function(){if(a.value&&h.value&&N.value){var I=vHV(a.value)||ufR(D(),R);L(I);if(!e()){var tT=vHV(a.value),ZV=H(),ED=a.value,o$=h.value,jV=N.value,i8=k==="rtl";if(ED&&o$){var g6=o$.offsetLeft;i8&&(g6=ED.offsetWidth-o$.offsetWidth-o$.offsetLeft);if(I){I=o$.offsetWidth;o$=ED.offsetWidth;var Mu=tT?o$-I-70:g6-70;ZV="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
ZV+"rem,\n      #000 "+ZV+"rem,\n      #000 100%), linear-gradient(\n      to "+((i8?"left":"right")+",\n      #000 0px,\n      #000 "+Mu+"px,\n      transparent "+(tT?o$-I:Mu+70)+"px)");ED.style.setProperty("-webkit-mask-image",ZV);ED.style.setProperty("mask-image",ZV)}else ED.style.setProperty("-webkit-mask-image",""),ED.style.setProperty("mask-image","");tT?i8?(jV.style.setProperty("left","0"),jV.style.setProperty("right","unset")):(jV.style.setProperty("left",""),jV.style.setProperty("right",
"0")):i8?(jV.style.setProperty("left","unset"),jV.style.setProperty("right",g6+"px")):(jV.style.setProperty("left",g6+"px"),jV.style.setProperty("right","unset"))}}}})}}
var Q,u;(Q=J)==null||(u=Q.stop)==null||u.call(Q);Q=new _.W5(g,17);g();J=Q},"KjwIxd");
_.XH(function(){U(pxu(D(),V()));L(ufR(D(),c()));var g=function(){x6D=void 0;var u,R;(u=J)==null||(R=u.fire)==null||R.call(u)};
if(window.ResizeObserver){var Q=new ResizeObserver(g);Q.observe(a.value);_.Sj(function(){var u,R;(u=J)==null||(R=u.stop)==null||R.call(u);Q.disconnect()})}else window.addEventListener("resize",g),_.Sj(function(){var u,R;
(u=J)==null||(R=u.stop)==null||R.call(u);window.removeEventListener("resize",g)})});
return{isTruncated:S,displayText:c,contentRef:a,hiddenRef:w,placeholderTruncationTextRef:h,hiddenTruncationTextRef:K,truncationTextRef:N}};
IeD=function(D){return{content:D!=null?D:""}};
QN$=function(D){return _.xP(D.onTap)||_.gF(D.rendererContext)};
yQV=function(D){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:D.overflowMenuA11yLabel,onTap:function(t){t.preventDefault();t.stopPropagation();if(D.overflowMenuOnTap){var H=_.uf({elementsCommand:D.overflowMenuOnTap,forceNewState:!0});if(H==null?0:H.onclick)H.onclick(t)}}}};
_.Q2=function(D,t,H,e,V){e=e===void 0?{}:e;if(!V||Math.random()<5E-4){t=t||null;H=H||null;D=D instanceof Error?D:new _.nZ(D);if(D.args)for(var b=_.F(D.args),a=b.next();!a.done;a=b.next())a=a.value,a instanceof Object&&(e=Object.assign({},a,e));e.category="H5 Ads Control Flow";t&&(e.slot=t?"slot:  "+t.slotType:"");H&&(e.layout=H?"layout:  "+H.layoutType:"",e.layoutId=H.layoutId);V&&(e.known_error_aggressively_sampled=!0);D.args=[e];_.Yw(D)}};
_.BRu=function(D,t){_.ET(D,"yt-open-popup-action",[_.FO(t),D])};
_.y2=function(D,t){_.BRu(D,_.H7(t))};
D_D=function(D){if(!D)return"";if(z2R[D])return z2R[D];B5||(B5=_.OH("A"));B5.href!==D&&WU(B5,D);var t=B5.pathname;z2R[D]=t.startsWith("/")?t:"/"+t;return z2R[D]};
tJD=function(){var D=D_D(window.location.href);if(D==="/")return"home";if(D.startsWith("/results"))return"search";if(D.startsWith("/watch"))return"watch";if(D.startsWith("/shorts"))return"shorts";if(D.startsWith("/hashtag"))return"hashtag";if(D.startsWith("/create_channel"))return"create_channel";if(D.startsWith("/@")||D.startsWith("/user/")||D.startsWith("/channel/"))return"channel";if(D.startsWith("/experiments"))return"experiments";if(D.startsWith("/sponsor_channel"))return"sponsorship";if(D.startsWith("/select_site"))return"settings";
if(D.startsWith("/locate"))return"locate";if(D.startsWith("/redeem"))return"redeem";if(D.startsWith("/musicpremium")||D.startsWith("/premium")||D.startsWith("/red"))return"premium";if(D.startsWith("/paid_memberships"))return"paid_memberships";if(D.startsWith("/oops"))return"oops";if(D.startsWith("/clip"))return"clip";var t;return(zm==null?void 0:(t=zm.response)==null?void 0:t.page)==="404"?"404":D.startsWith("/feed/history")?"history":D.startsWith("/feed/library")?"library":D.startsWith("/feed/subscriptions")?
"subscriptions":D.startsWith("/feed/trending")?"trending":D.startsWith("/feed/news_destination")?"news":D.startsWith("/playlist")?"playlist":D.startsWith("/minor_moment")?"minor_moment":D.startsWith("/playable/")||D.match("^/playables/(?!saved).")?"mini_app":D.startsWith("/playables")?"playables":D.startsWith("/create/live/join")?"open_in_app":D.startsWith("/feed/explore")?"explore":"browse"};
_.b$$=function(){var D=zm==null?void 0:zm.response,t=D==null?void 0:D.endpoint;if(!t)return(D==null?void 0:D.page)==="watch"?"watch":tJD();var H;D=(H=_.O(t==null?void 0:t.commandMetadata,_.i1))==null?void 0:H.webPageType;H=!1;if(D&&!H$X.includes(D))switch(D){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 e;return((e=_.O(t==null?void 0:t.commandMetadata,_.i1))==null?0:e.url)&&D_D(_.O(t.commandMetadata,_.i1).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var V;return(t=(V=_.O(t,_.UL))==null?void 0:V.browseId)?eqV[t]||"browse":"browse";default:H=!0}if(_.O(t,_.DT)||_.O(t,VJu))return"sponsorship";V=D_D(window.location.href);if(V.startsWith("/experiments"))return"experiments";if(V.startsWith("/create_channel"))return"create_channel";
if(_.O(t,_.um)&&V.startsWith("/shorts"))return"shorts";if(_.O(t,_.um)&&V.startsWith("/watch"))return"watch";H&&(t=new _.nZ("Unsupported mWeb page type",{pathname:V,webPageType:D}),_.gT(t));return"browse"};
tl=function(D,t,H,e){return D&&t?D!==H||t!==e?(_.Q2(Error("Ph"),void 0,void 0,{"stored-slot":D,"stored-layout":t,"latest-slot":H,"latest-layout":e}),!1):!0:!1};
Fl8=function(D,t,H){return D({targetId:t},function(e){return H.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},e,{contents:[H.continuationItems?_.O(H.continuationItems[0],qMR):{}]}):H.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},e,{header:H.continuationItems?H.continuationItems[0]:void 0}):Object.assign({},e,{contents:H.continuationItems?H.continuationItems:[]})})};
a0D=function(D,t,H,e){if(t=t.trackingParams){var V,b=(V=H.getScreenLayer)==null?void 0:V.call(H);H=_.v3(b);V=_.lo(b);if(H&&V){var a=_.Sa(t);_.r("combine_ve_grafts")?D.graftServerVe(t,V,b):_.Q$(H,V,a);e==null||e(a)}}};
Z$T=function(D){var t;return((t=wjR.get(D))==null?void 0:t.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
GZ8=function(D,t){var H={type:t.slotType,controlFlowManagerLayer:sXD.get(t.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};t.slotEntryTrigger&&(H.entryTriggerType=t.slotEntryTrigger.triggerType);t.slotPhysicalPosition!==1&&(H.slotPhysicalPosition=t.slotPhysicalPosition);if(D){H.debugData={slotId:t.slotId};if(D=t.slotEntryTrigger)H.debugData.slotEntryTriggerData=hqX(D);D=t.slotFulfillmentTriggers;H.debugData.fulfillmentTriggerData=[];D=_.F(D);for(var e=D.next();!e.done;e=D.next())H.debugData.fulfillmentTriggerData.push(hqX(e.value));
t=t.slotExpirationTriggers;H.debugData.expirationTriggerData=[];t=_.F(t);for(D=t.next();!D.done;D=t.next())H.debugData.expirationTriggerData.push(hqX(D.value))}return H};
hqX=function(D,t){var H={type:D.triggerType};t!=null&&(H.category=t);D.triggeringSlotId!=null&&(H.triggerSourceData||(H.triggerSourceData={}),H.triggerSourceData.associatedSlotId=D.triggeringSlotId);D.triggeringLayoutId!=null&&(H.triggerSourceData||(H.triggerSourceData={}),H.triggerSourceData.associatedLayoutId=D.triggeringLayoutId);return H};
EN8=function(D,t,H,e){t={opportunityType:t};D&&(e||H)&&(e=_.Yz(e||[],function(V){return GZ8(D,V)}),t.debugData=Object.assign({},H&&H.length>0?{associatedSlotId:H}:{},e.length>0?{slots:e}:{}));
return t};
KlT=function(D){return Hm(D.opportunityAdapterMap).concat(Hm(D.triggerAdapterMap)).concat(Hm(D.fulfillmentAdapterFactoryMap)).concat(Hm(D.slotAdapterFactoryMap)).concat(Hm(D.layoutRenderingAdapterFactoryMap))};
Hm=function(D){var t=[];D=_.F(D.values());for(var H=D.next();!H.done;H=D.next())H=H.value,H.isAdsControlFlowEventListener&&t.push(H);return t};
Vm=function(D){var t=D.slotId,H=D.slotType,e=D.slotPhysicalPosition;return t===void 0?new eN("Cannot construct a slot due to the missing id.",{adSlotMetadata:D}):H===void 0?new eN("Cannot construct a slot due to the missing type.",{adSlotMetadata:D}):e===void 0?new eN("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:D}):{slotId:t,slotType:H,slotPhysicalPosition:e,managerLayer:"external",adSlotLoggingData:D.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new NpA}};
kZA=function(D){var t=D.layoutId,H=D.layoutType;return t===void 0?new be("Cannot construct a layout due to the missing id.",{adLayoutMetadata:D}):H===void 0?new be("Cannot construct a layout due to the missing type.",{adLayoutMetadata:D}):{layoutId:t,layoutType:H,managerLayer:"external",adLayoutLoggingData:D.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new NpA,interactionLoggingAdsClientData:{}}};
TpV=function(D){if(D.querySelector("img")){var t=D.querySelector("img");t.addEventListener("error",function(){BYu(t.src).then(function(H){(H=_.xh(H).toString())?t.src=H:t.removeAttribute("src")}).catch(function(){t.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
FJ=function(D,t){if(t&&(cvX(t.viewableCommand)||cvX(t.endOfSessionCommand))){var H=jX$(t==null?void 0:t.viewableCommand);t=jX$(t==null?void 0:t.endOfSessionCommand);if(!qI){var e=_.ZU("custom_active_view_tos_timeout_ms");qI=e>0&&e!==36E5?new $_R(i$D(),e):new $_R(i$D())}rvX(qI,D);O$u(qI,D,H,t)}};
as=function(D){qI&&rvX(qI,D)};
i$D=function(){var D=_.YC("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(D==null?void 0:D.length)===2?D[1]:null};
cvX=function(D){D=_.xP(D);return!(D==null||!D.loggingUrls)&&D.loggingUrls.length>0};
jX$=function(D){if(!D)return[];var t=[],H,e;((e=(H=_.xP(D))==null?void 0:H.loggingUrls)!=null?e:[]).forEach(function(V){V.baseUrl&&t.push(V.baseUrl)});
return t};
U_8=function(D){if(_.r("stop_av_measurement_on_detach"))return function(){as(D)}};
oNu=function(D){return function(){_.r("stop_av_measurement_on_detach")&&as(D)}};
PL6=function(D){if(_.r("stop_av_measurement_on_detach"))return function(){as(D)}};
nN3=function(D){return D.shorts.isDesktopSmallWidth};
_.CLu=function(D){return D.shorts.isShortsActive};
_.m_T=function(D){return D.shorts.isWatchWhileMode};
_.wg=function(D){return D.shorts.isFullscreen};
_.ZT=function(D){return D.shorts.isShortsPipActive};
SMD=function(D){var t,H;if(D=(t=_.O(D.reelsAdCardButtoned,MJu))==null?void 0:(H=t.animatedRenderingConfig)==null?void 0:H.easeOutSeconds)return D+"s"};
f0R=function(D,t,H){return _.Z(function(e){return e.return(new Promise(function(V){var b=new Image;b.onload=function(){V(new Xj8(D,t,H,b.naturalWidth,b.naturalHeight))};
b.src=H.toString()}))})};
Ll3=function(D,t){return Math.round(D/1E-5)===Math.round(t/1E-5)};
AvA=function(D,t){return Math.round(D/1E-5)===Math.round(t/1E-5)};
gN6=function(D,t){return D.year===t.year&&D.month===t.month&&D.day===t.day};
Jvk=function(D,t){return D.year!==t.year?D.year<t.year:D.month!==t.month?D.month<t.month:D.day<t.day};
l0X=function(D){return D.day===YM8(D.year,D.month)?D.month===11?{year:D.year+1,month:0,day:1}:{year:D.year,month:D.month+1,day:1}:{year:D.year,month:D.month,day:D.day+1}};
vNK=function(){var D=new Date,t={year:D.getFullYear(),month:D.getMonth(),day:D.getDate()};return{start:t,end:{year:D.getFullYear()+2,month:D.getMonth(),day:D.getDate()},selectedDate:l0X(t)}};
pjk=function(D){return(new tG(2)).format(new Date(D.year,D.month,D.day))};
d_R=function(D){return{year:D.getFullYear(),month:D.getMonth(),day:D.getDate()}};
x_$=function(D,t){D=(D+(Number(t.utcOffsetSec)+(new Date(D*1E3)).getTimezoneOffset()*60))*1E3;t=d_R(new Date(D));return{date:t,secondsSinceMidnight:Math.floor((D-(new Date(t.year,t.month,t.day)).getTime())/1E3)}};
Rq3=function(D,t){t=t.months.findIndex(function(H){return H.year===D.year&&H.month===D.month});
return t>=0?t:void 0};
ukX=function(D){if(!D)return!1;try{if(D.host&&D.host.tagName==="YT-FORMATTED-STRING"&&D.host.id==="contenteditable-textarea"||D.nodeType===Node.ELEMENT_NODE&&D.tagName==="YTD-COMMENTBOX")return!0}catch(t){return!1}return ukX(D.parentNode)};
sE=function(D){return D?!(D.tagName!=="A"||!D.href||!D.classList.contains("yt-simple-endpoint")):!1};
WlK=function(D){return D?D.tagName==="IMG"&&D.classList.contains("emoji"):!1};
I0V=function(D,t,H){if(!D)return null;var e=sE(D);if(e&&H)return t=D.pathname.substring(D.pathname.indexOf("/channel/")+9),document.createTextNode("@"+t);if(e&&!H)return document.createTextNode("");if(WlK(D))return H=D.alt,D=D.dataset.emojiId,!D&&t&&(t=_.hl(t,H))&&t.isCustomEmoji&&(D=t.emojiId),D?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+D+">"):document.createTextNode(H);e=D.cloneNode(!1);for(var V=0;V<D.childNodes.length;++V){var b=I0V(D.childNodes[V],t,H);b&&e.appendChild(b)}return e};
GX=function(D){return D?sE(D)?D:GX(D.lastChild):null};
QXD=function(D){return D?sE(D)?D:QXD(D.firstChild):null};
yvD=function(D){if(!D)return null;for(var t=D.previousSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.previousSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.previousSibling;else break;(t=GX(t))?D=t:D=(D=D.parentNode)?GX(D.previousElementSibling):null;return D};
BpK=function(D){if(!D)return null;for(var t=D.nextSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.nextSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.nextSibling;else break;return(t=QXD(t))?t:BpK(D.parentNode)};
zqD=function(D){var t=_.EE(),H=t.JSC$11351_getStartNode();if(!ukX(H.parentNode))return null;t=t.JSC$11351_getStartOffset();if(H.nodeType===Node.TEXT_NODE){var e=_.xz(H,sE);if(e){if(D&&t===0||!D&&t===H.length)return e}else{if(D&&t===H.length)return!H||H.nodeName==="BR"||H.nextElementSibling&&_.KP(H.nextElementSibling,"display")==="block"?null:QXD(H.nextElementSibling);if(!D&&t===0)return H?GX(H.previousElementSibling):null}}if(H.nodeType===Node.ELEMENT_NODE)if(D){if(0<=t&&t<H.childNodes.length)return QXD(H.childNodes[t])}else if(0<
t&&t<=H.childNodes.length)return GX(H.childNodes[t-1]);return null};
DE8=function(D,t,H){if(!D)return null;if(D.nodeType===Node.TEXT_NODE)if(H){var e=yvD(D);if(e&&!/^\s+\S/.test(D.wholeText.substr(0,t)))return e}else if((e=BpK(D))&&!/\S\s+/.test(D.wholeText.substr(t,D.wholeText.length)))return e;return D.nodeType===Node.ELEMENT_NODE?H?yvD(D.childNodes[t]):BpK(D.childNodes[t]):DE8(D.parentNode,t,H)};
tA$=function(D){if(D.hasChildNodes())switch(D.tagName){case "DIV":case "A":case "SPAN":var t="";for(D=D.firstChild;D;D=D.nextSibling)t+=tA$(D);return t;default:return""}else switch(D.nodeType){case 3:return D.textContent;default:return""}};
NI=function(D,t){return D.year===t.year&&D.month===t.month&&D.day===t.day};
kG=function(D,t){return D.year!==t.year?D.year<t.year:D.month!==t.month?D.month<t.month:D.day<t.day};
HuV=function(D){return{year:D.getFullYear(),month:D.getMonth(),day:D.getDate()}};
eyA=function(D){var t=Bf3;t=t===void 0?Bf3:t;t(new Date(D.year,D.month,D.day))};
TX=function(D){return HuV(new Date(Number(D.seconds)*1E3))};
VAD=function(D){return D.year!==void 0&&D.month!==void 0&&D.day!==void 0};
buA=function(D){return D.start!==void 0&&D.end!==void 0};
q8$=function(D){return buA(D)?D.start:D};
FrR=function(D){return buA(D)?D.end:void 0};
wSV=function(D,t){for(var H=[],e=new Date(D.start.year,D.start.month);e.getFullYear()<D.end.year||e.getFullYear()===D.end.year&&e.getMonth()<=D.end.month;){var V=H,b=V.push,a=e.getFullYear(),w=e.getMonth(),h=D,K=t,N=void 0,k=[],T=Object.freeze({extraCssClass:"invisible"}),c=new Date(a,w),U=HuV(c);c=c.getDay();for(var S=HuV(new Date);U.month===w;){c!==aoV&&N||(N=Array.from({length:7}).fill(T),k.push(N));var L={date:{year:a,month:w,day:U.day},extraCssClass:"",debugClass:""};L.extraCssClass=K(L.date,
U,S,h).trim();N[(c-aoV+7)%7]=L;U=U.day===YM8(U.year,U.month)?U.month===11?{year:U.year+1,month:0,day:1}:{year:U.year,month:U.month+1,day:1}:{year:U.year,month:U.month,day:U.day+1};c=(c+1)%7}b.call(V,{weeks:k,monthLabel:cm.SHORTMONTHS[w]+" "+a,year:a,month:w,monthLabelExtraCssClass:k[0][2]===T?"shift-down-label":""});e.setMonth(e.getMonth()+1)}return H};
ZuK=function(D,t){t=t.months.findIndex(function(H){return H.year===D.year&&H.month===D.month});
return t>=0?t:void 0};
hyT=function(D,t){a:{var H=H===void 0?[2,3]:H;H=_.F(H);for(var e=H.next();!e.done;e=H.next()){var V=new Date;if((new spV(e.value)).parse(t,V,{validate:!0})){V.setHours(0,0,0,0);t=V;break a}}t=null}if(!t)return{isValid:!1,value:void 0};t=HuV(t);H=D.end;return kG(t,D.start)||kG(H,t)?{isValid:!1,value:void 0}:{isValid:!0,value:t}};
ke8=function(D){var t=Ge3;t=t===void 0?Ey3:t;var H=D.columnsToShow||[],e=KrV(D.columnDimensions,D.columnsToShow,D.leftFloatingColumns,t);return H.map(function(V,b){var a=D.columns[V];if(a===void 0)throw Error("Vh");var w=e?e[b]:"";var h=D.getCustomTooltip?D.getCustomTooltip(V,a.headerTooltipParagraphs):a.headerTooltipParagraphs;var K=NQT(D,V);return{type:V,index:b,style:w,classes:K,headerName:a.headerName||"",headerIcon:a.headerIcon,headerTooltipParagraphs:h||[],headerTooltipHelpContext:a.headerTooltipHelpContext,
sortOrders:a.sortOrders||[],selectionState:a.isSelectionCheckbox?D.selectionState:void 0}})};
NQT=function(D,t){var H=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],e=D.columns[t];if(e===void 0)return"";var V=H.includes("DEFAULTS")&&e.cssClass?[e.cssClass]:[];if(H.includes("SORTING")){e.sortOrders&&e.sortOrders.length&&V.push("sortable");if(D.sorting&&D.sorting.columnType===t)a:switch(D.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var b="column-sorted";break a;default:b=""}else b="";b&&V.push(b)}H.includes("FLOATING")&&(t=D.columnsToShow.indexOf(t),D.leftFloatingColumns&&t<D.leftFloatingColumns&&
V.push("floating-column"),D.leftFloatingColumns&&t===D.leftFloatingColumns-1&&V.push("last-floating-column"));H.includes("RIGHT_ALIGN")&&e.rightAlignHeader&&V.push("right-align");return V.filter(function(a){return a}).join(" ")};
KrV=function(D,t,H,e){H=H===void 0?0:H;e=e===void 0?Ey3:e;if(D){var V=[],b=0;TQR(D,t,e).forEach(function(a,w){var h="min-width:"+a.minWidth+"px;padding-left:"+a.paddingLeft+"px;padding-right:"+a.paddingRight+"px;flex:"+a.flexGrow+" 0 "+a.minWidth+"px;";a.maxWidth!==Infinity&&(h=[h,"max-width:"+a.maxWidth+"px;"].join(""));b>0&&w<H&&(h=[h,"left:"+b+"px;"].join(""));V.push(h);b+=a.minWidth+a.paddingLeft+a.paddingRight});
return V}};
TQR=function(D,t,H){H=H===void 0?Ey3:H;return t.map(function(e,V){e=D&&D[e]||{};var b=V===0?H.paddingLeftFirstColumn:H.padding;e.paddingLeft!==void 0&&(b=e.paddingLeft);V=V===t.length-1?H.paddingRightLastColumn:H.padding;e.paddingRight!==void 0&&(V=e.paddingRight);return{paddingLeft:b,paddingRight:V,minWidth:e.minWidth!==void 0?e.minWidth:H.minWidth,maxWidth:e.maxWidth!==void 0?e.maxWidth:H.maxWidth,flexGrow:e.flexGrow!==void 0?e.flexGrow:H.flexGrow}})};
cHA=function(D){var t=D.reduce(function(e,V){var b=V.columnId,a={};V.headerText&&(a.headerName=_.eo(V.headerText));V.rightAlignHeader&&(a.rightAlignHeader=V.rightAlignHeader);var w;if((w=V.headerIcon)==null?0:w.iconType)a.headerIcon=_.cc(V.headerIcon.iconType);e[b]=a;return e},{}),H=D.filter(function(e){return!e.hideColumn}).map(function(e){return e.columnId});
D=D.filter(function(e){return!!e.dimensions}).reduce(function(e,V){e[V.columnId]=V.dimensions;
return e},{});
return{columns:t,columnsToShow:H,columnDimensions:D}};
_.jpT=function(D){return D?D.simpleText?D.simpleText:D.runs?D.runs.map(function(t){return t.text}).join(""):"":""};
UED=function(D){var t=D.data;var H=D.onTap;var e=D.isSelected;var V=D.onFocusIn;if(!t)return{};D=$EK(t);e===void 0&&(e=t==null?void 0:t.isSelected);var b;return{text:iuV(t,D),startIcon:(b=t.icon)==null?void 0:b.iconType,state:e?0:2,type:0,onTap:rHT(t,H),accessibilityLabel:Ou6(t,D),onFocusIn:function(){return V==null?void 0:V()}}};
iuV=function(D,t){if(!t)return D.text?_.jpT(D.text):void 0};
rHT=function(D,t){return function(H){t==null||t(H,D)}};
$EK=function(D){D=D.style&&D.style.styleType;return!d66&&D==="STYLE_EXPLORE_LAUNCHER_CHIP"};
Ou6=function(D,t){if(t){var H,e,V;return(V=(H=D.accessibilityData)==null?void 0:(e=H.accessibilityData)==null?void 0:e.label)!=null?V:iuV(D,!1)}};
jN=function(D){return{signalAction:{signal:D}}};
nyD=function(){return _.YC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?oyX:_.P3V};
C36=function(D,t){D=D===void 0?"SOFT_RELOAD_PAGE":D;t=t===void 0?49504:t;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.wO(_.OT("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:t}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:D}}]}}}};
mED=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.wO(_.OT("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:nyD()}};
MAR=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.wO(_.OT("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:nyD()}};
S8u=function(D,t){var H=_.wO(_.OT("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),e=_.wO(_.OT("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),V={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.wO(_.OT("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};V.serviceEndpoint=D?D:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[jN("SOFT_RELOAD_PAGE")]}};return{title:H,bodyText:e,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:V},
style:{value:t!=null?t:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
foT=function(D){D=D===void 0?{}:D;return{title:_.wO(D.localizedZeroStateTitleText===void 0?"":D.localizedZeroStateTitleText),bodyText:_.wO(D.localizedZeroStateMessage===void 0?"":D.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.wO(D.localizedZeroStateButtonText===void 0?"":D.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[XSX]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
AHD=function(D){D=D===void 0?{}:D;return{title:_.wO(D.localizedOptInBannerTitleText===void 0?"":D.localizedOptInBannerTitleText),titleLength:19,subtitle:_.wO(D.localizedOptInMessage===void 0?"":D.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.wO(_.OT("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:_.wO(_.OT("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:[LrV]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Y83=function(D,t){var H=t=t===void 0?{}:t;t=H.offlineTitleText===void 0?"":H.offlineTitleText;var e=H.offlineDescriptionText===void 0?"":H.offlineDescriptionText,V=H.formattedSupplementalText,b=H.actionButtonText===void 0?"":H.actionButtonText,a=H.titleText===void 0?"":H.titleText;H=H.descriptionText===void 0?"":H.descriptionText;var w={title:b,accessibilityText:b,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};D||(a=t,H=e,w={title:b,accessibilityText:b,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.wO(a),titleLength:a.length,overrideTitleMaxFontSize:30,subtitle:_.wO(H),supplementalText:V,primaryButton:{buttonViewModel:w},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[gyV]},darkTileImage:{thumbnails:[JH6]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.pSD=function(D,t,H,e,V,b,a,w,h,K,N){V=V===void 0?!1:V;b=b===void 0?!1:b;a=a===void 0?0:a;w=w===void 0?-Infinity:w;h=h===void 0?!1:h;K=K===void 0?!1:K;N=N===void 0?!1:N;var k=[],T=_.wO(_.OT("SMART_DOWNLOADS",void 0,"Smart downloads")),c=_.wO(loA(a,w,D.length));w=a=void 0;K?a={statementBannerRenderer:Y83(N,e)}:V?D.length>0?w=vyR(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.r("kevlar_manual_downloads_above"),T,c):h?w={alertBannerViewModel:{heading:{content:H.localizedOptInBannerTitleText===
void 0?"":H.localizedOptInBannerTitleText},body:{content:H.localizedPromptMessage===void 0?"":H.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.OT("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.OT("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:_.qKD}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:b&&(w={backgroundPromoRenderer:{bodyText:_.wO(_.OT("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"}}}):
b&&(w={alertBannerViewModel:{heading:{content:H.localizedOptInBannerTitleText===void 0?"":H.localizedOptInBannerTitleText},body:{content:H.localizedOptInMessage===void 0?"":H.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.OT("TURN_ON",void 0,"Turn on"),accessibilityText:_.OT("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}}}}}});H=_.wO(_.OT("YOUR_DOWNLOADS",void 0,"Your downloads"));e=void 0;t.length>0?(e=void 0,_.r("kevlar_display_downloads_numbers")&&(e=_.wO(_.UT("VIDEO_COUNT",t.length))),e=vyR(t,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,H,e)):V||D.length||
K||(e={backgroundPromoRenderer:{bodyText:_.wO(_.OT("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}}}});a?k.push({richSectionRenderer:{content:a}}):w&&!_.r("kevlar_manual_downloads_above")&&k.push({richSectionRenderer:{content:w,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
e&&k.push({richSectionRenderer:{content:e,loggingDirectives:{clientVeSpec:{uiType:51721}}}});w&&_.r("kevlar_manual_downloads_above")&&k.push({richSectionRenderer:{content:w,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(t.length>0||V&&D.length>0&&!K)&&k.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.wO(_.OT("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:k}};
_.xED=function(D){return dE3(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.RyT=function(D){return dE3(D,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
dE3=function(D,t){var H=[];D=vyR(D,t,!0);H.push({richSectionRenderer:{content:D}});return{contents:H}};
vyR=function(D,t,H,e,V){H=H===void 0?!1:H;var b="RESPONSIVE_SIZE_STANDARD";_.r("kevlar_standard_rich_grid_on_offline_home")&&t==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?b="RESPONSIVE_SIZE_STANDARD":_.r("kevlar_modern_downloads_compact")?b="RESPONSIVE_SIZE_COMPACT":_.r("kevlar_modern_downloads_extra_compact")?b="RESPONSIVE_SIZE_EXTRA_COMPACT":_.r("kevlar_modern_downloads_tiny")&&(b="RESPONSIVE_SIZE_TINY");D={isExpanded:H,contents:$G(D),entitySelectorType:t,responsiveContainerConfiguration:{responsiveSize:b}};
e&&(D.title=e);V&&(D.subtitle=V);H||(_.r("kevlar_smart_downloads_show_more_button")?(D.showMoreButton={buttonRenderer:{accessibility:{label:_.OT("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.wO(_.OT("SHOW_MORE",void 0,"Show more"))}},D.showLessButton={buttonRenderer:{accessibility:{label:_.OT("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.wO(_.OT("SHOW_LESS",void 0,"Show less"))}}):(D.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.OT("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}}}},D.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.OT("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}}}},D.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.OT("VIEW_ALL",void 0,"View all"),accessibilityText:_.OT("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:_.FK("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:D}};
$G=function(D){var t=[];D=_.F(D);for(var H=D.next();!H.done;H=D.next())if(H=H.value,pK6(H)){var e=t,V=e.push;var b=void 0;if(H==null?0:(b=H.videoEntity)==null?0:b.videoId){b=WH(_.b_().getState(),H.videoEntity.videoId);var a=_.b_().getState();var w=_.cH(H.videoEntity.videoId,"mainVideoEntity");a=!!_.fC(a.entities)[w];a={videoId:H.videoEntity.videoId,title:Z8(H.videoEntity.title),shortBylineText:Z8(H.channelEntity.title),thumbnail:H.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:a&&_.r("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:cz8(H.videoEntity.videoId,b,H.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.OT("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};H.videoEntity.lengthSeconds&&(a.thumbnailOverlays=NWX(H.videoEntity.lengthSeconds,b));a.isWatched=b>0;_.r("kevlar_modern_downloads_page")&&(a.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:H.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.OT("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},a.badges=void 0);H=a}else H={};V.call(e,{richItemRenderer:{content:{videoRenderer:H},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(vSK(H)){e=t;V=e.push;var h=w=b=void 0,K=void 0,N=void 0,k=void 0,T=void 0,c=void 0,U=void 0,S=void 0,L=void 0,J=void 0;a=H.mainPlaylistEntity.playlistId;var g=H==null?void 0:(J=H.mainPlaylistEntity)==null?void 0:(L=J.thumbnailStyleData)==null?void 0:(S=L[0])==null?void 0:(U=S.value)==null?void 0:(c=U.collageThumbnail)==
null?void 0:c.coverThumbnail;if(a&&g){c=jWD(a);!_.r("enable_offline_playlist_page")&&(H==null?0:(T=H.mainPlaylistEntity)==null?0:T.videos)&&(T=H==null?void 0:(k=H.mainPlaylistEntity)==null?void 0:(N=k.videos)==null?void 0:N[0],N=_.NQ(T).entityId,N=JSON.parse(N).videoId,N!==void 0&&(k=WH(_.b_().getState(),N),c=_.af(N,a,void 0,void 0,k)));N=[];if(H==null?0:(K=H.mainPlaylistEntity)==null?0:(h=K.videos)==null?0:h.length)N=[yUV(),Object.assign({},(w=QmR(H==null?void 0:H.mainPlaylistEntity.videos.length))!=
null?w:{})];H={playlistId:a,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:g}},navigationEndpoint:c,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:N,title:Z8(H.mainPlaylistEntity.title),shortBylineText:Z8(H==null?void 0:(b=H.channelEntity)==null?void 0:b.title),badges:[{metadataBadgeRenderer:{label:_.OT("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.r("kevlar_modern_downloads_page")&&(H.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:uMk,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:a,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.OT("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},H.badges=void 0)}else H=void 0;V.call(e,{richItemRenderer:{content:{playlistRenderer:H},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return t};
loA=function(D,t,H){D=D?WrX(D):"";t!==void 0&&isFinite(t)?t===0?t=_.OT("UPDATING",void 0,"Updating..."):(t=KXk(new Date(t),new Date),t=_.OT("UPDATED_TIME",{relative_time:t},"Updated "+t)):t="";var e="";D&&t&&(e=" \u2022 ");if(H&&_.r("kevlar_display_downloads_numbers")){H=_.UT("VIDEO_COUNT",H);if(D||t)e=" \u2022 ";return H+e+D+e+t}return D+e+t};
IoV=function(D){return XK3(D.entities).length};
_.QpV=function(D,t){var H=TRK(D.responsiveSize),e;D=!((e=D.responsiveMap)==null||!e.some(function(V){return V.containerSize==="CONTAINER_SIZE_NARROW"&&V.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:t,sizing:H,enableFullBleedForSingleCol:!1,isCompactList:H==="COMPACT"&&D}};
yH6=function(D,t){return _.jR(D.entities,"votingEntity",t)};
ie=function(D){if(D){var t;return((t=_.qS().resolve(_.by(_.tB)))==null?0:t())?D.darkTheme:D.lightTheme}};
BQD=function(D,t){if(D.simpleText)return Object.assign({},D,{simpleText:Bc(D.simpleText,t)});if(!D.runs)return D;for(var H=Object.assign({},D,{runs:[]}),e=0,V=_.F(D.runs),b=V.next();!b.done;b=V.next())if(b=b.value,b.text)if(e+b.text.length<=t)H.runs.push(b),e+=b.text.length;else return H.runs.push(Object.assign({},b,{text:Bc(b.text,t-e)})),H;return D};
zyV=function(D,t){return _.jR(D.entities,"chipBarStateEntity",t)};
DUT=function(D,t){return _.jR(D.entities,"chipEntity",t)};
H6K=function(D,t,H,e){return function(){var V=tWD.has(D.displayType)&&D.selected,b=V&&D.deselectCommand?D.deselectCommand:D.tapCommand;!b||V&&e||_.IQ(b,{form:{element:t==null?void 0:t.value}});H==null||H()}};
esA=function(D){switch(D){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
VW8=function(D,t){return{triggeringElement:D,onDwellTriggeredFn:function(){var H={triggeringElement:D,loadVideoPreviewEventData:t},e=document.querySelector(".video-preview");e&&e.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:H}))},
onDwellEndFn:function(){var H=document.querySelector(".video-preview");H&&H.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
b6k=function(D,t){var H=_.qS().resolve(_.by(bj6)),e=function(){var V=t();return H&&V?VW8(D.value,V):null};
_.Mp(function(){var V=e();H&&V&&Promise.resolve().then(function(){H.registerElement(V)});
_.Sj(function(){H&&V&&Promise.resolve().then(function(){_.pf(H,V)})})},"csPUge")};
FwV=function(D){var t=D.dataset.resizeObserverId;if(t)return t;t=""+quA++;return D.dataset.resizeObserverId=t};
a3D=function(D,t){var H=FwV(D);rg.has(H)||rg.set(H,new Set);rg.get(H).add(t);OE.has(H)&&t(Object.assign({},{target:D},OE.get(H)))};
wf3=function(D){D=_.F(D);for(var t=D.next();!t.done;t=D.next()){t=t.value;var H=FwV(t.target),e=Object.assign({},{target:t.target},OE.get(H));if(e!=null&&e.contentRect?e.contentRect.width!==t.contentRect.width||e.contentRect.height!==t.contentRect.height:1)for(OE.set(H,{borderBoxSize:t.borderBoxSize,contentBoxSize:t.contentBoxSize,contentRect:t.contentRect,devicePixelContentBoxSize:t.devicePixelContentBoxSize}),H=_.F(rg.get(H)||[]),e=H.next();!e.done;e=H.next())e=e.value,e(t)}};
soV=function(){return UE?UE:UE=new Z6A(wf3)};
hsD=function(D,t){var H=FwV(D);rg.has(H)&&(rg.get(H).delete(t),rg.get(H).size===0&&(rg.delete(H),OE.delete(H),UE.unobserve(D),delete D.dataset.resizeObserverId));rg.size===0&&UE&&(UE.disconnect(),UE=void 0)};
E6T=function(D,t){var H=_.qS().resolve(aC);return GUV.map(function(e){return H.observe(D,t,e)})};
KwD=function(D){var t=_.qS().resolve(aC);D.forEach(function(H){t.unobserveByKey(H)})};
_.THV=function(D,t){var H=Object.assign({},NH$,t);t=_.F(YpD());var e=t.next().value,V=t.next().value,b=function(a){var w=a.contentRect.height;if((a=a.contentRect.width)||w||H.canHaveZeroSize)e.width()===a&&e.height()===w||V(e,{height:w,width:a})};
_.XH(function(){var a=D instanceof HTMLElement?D:D.value,w=kUT(b,H.throttleMs),h=[];H.useVisibilityObserver&&(h=E6T(a,function(K,N){requestAnimationFrame(function(){N==="visible"?(a3D(a,w),soV().observe(a)):hsD(a,w)})}));
h.length||(a3D(a,w),soV().observe(a));_.Sj(function(){h.length&&(KwD(h),h.length=0);hsD(a,w)})});
return e};
joT=function(D,t,H,e,V){D=t?D.switchOffCommand:D.switchOnCommand;if(e&&V)c0V(D,H,V);else{var b,a;(b=_.uf({elementsCommand:D}))==null||(a=b.onclick)==null||a.call(b,H)}};
c0V=function(D,t,H){D=_.uf({elementsCommand:D,additionalCommandArgs:{commandController:{onSuccess:function(){H(!1)},
onServerError:function(){H(!1)}}}});
if(D==null?0:D.onclick)D.onclick(t),H(!0)};
i6X=function(D){if(D)return _.O(D,$UR)};
r03=function(D){if(!((D==null?0:D.entitySelectorType)&&(D==null?0:D.entityKey)))return{};switch(D.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.r("enable_web_shorts_captions_language_command")){var t;var H=(t=_.Tm())==null?void 0:t.getOption("captions","track");var e,V=typeof(H==null?void 0:H.translationLanguage)==="object"&&((e=H.translationLanguage)==null?void 0:e.languageName)||(H==null?void 0:H.displayName)||"";H=Object.assign({},!!V&&
{selectionText:{content:V}},!!V&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof(H==null?void 0:H.displayName)==="undefined"})}else H={};return H;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.r("web_shorts_audio_track_picker")){var b;e=((b=_.Tm())==null?void 0:b.getAudioTrack())||void 0;t=e==null?void 0:(V=e.getLanguageInfo())==null?void 0:V.getName();e=Object.assign({},{selectionText:{content:t}},t&&!(e==null?
0:(H=e.getLanguageInfo())==null?0:H.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}else e={};return e;default:return{}}};
O68=function(D){var t=["A".toString(),"BUTTON".toString()];return function(H){var e=function(V){_.A5(_.Lf(V),H,t)||D(V)};
H.addEventListener("click",e);return function(){H.removeEventListener("click",e)}}};
_.UUV=function(D){return function(){return _.O(D(),_.Pm)}};
mUD=function(D,t,H){if(t)return[o6D];switch(D){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[nP];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return H?[nP]:[PlV,nP];case "TRANSFER_STATE_PAUSED_BY_USER":return[n6X,nP];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[ClV,nP];default:return[o6D]}};
MWD=function(D,t,H,e){return mUD(D,t,e).map(function(V){var b=V.text,a=V.iconType,w=V.videoAction;V=V.playlistAction;b=b?{content:b}:void 0;a=a&&{sources:[{clientResource:{imageName:a}}]};var h=(0,_.J$.unsafeClone)(H);if(h){var K=_.O(h,_.$i),N=_.O(h,_.iO);K&&w?K.action=w:N&&V&&(N.action=V)}return{title:b,leadingImage:a,rendererContext:h&&{commandContext:{onTap:{innertubeCommand:h}}}}})};
Su8=function(D){D=_.gF(D.rendererContext);var t;return(t=_.O(D,_.iO))==null?void 0:t.playlistId};
XfD=function(D){var t;return(t=D.listItems)==null?void 0:t.some(function(H){var e;return _.J5((e=_.O(H,_.mt))==null?void 0:e.rendererContext)})};
A0A=function(D){var t;return(t=D.listItems)==null?void 0:t.some(function(H){var e,V,b=(V=(e=_.O(H,f3D))==null?void 0:e.defaultListItem)!=null?V:H;H=_.O(b,_.mt);return!!_.O(H==null?void 0:H.leadingAccessory,Lwk)})};
YuX=function(D){var t=D.element;var H=D.veType;var e=D.storedVisualElement===void 0?null:D.storedVisualElement;var V=D.elementIndex===void 0?0:D.elementIndex;D=D.clientYouTubeData;var b=_.v3();b!==g6V&&(J0$.clear(),g6V=b);if(t.visualElement&&J0$.has(t.visualElement))return null;if(e&&J0$.has(e))return t.visualElement=e,null;H=_.oQ(_.Pc(),{veType:H,elementIndex:V,clientYouTubeData:D});if(!H)return null;t.visualElement=H;J0$.add(H);return H};
_.CP=function(D,t,H,e){H=H===void 0?null:H;e=e===void 0?naA:e;var V=V===void 0?null:V;gj(function(){if(t){H instanceof Function&&(H=H());var b=YuX({element:t,veType:D,storedVisualElement:H,clientYouTubeData:void 0});b&&(M0V(t,V),e(b))}})};
mc=function(D,t){if(D){switch(t){case 0:D=D.primaryTitleColor;break;case 1:D=D.secondaryTitleColor;break;case 2:D=D.surgeColor;break;case 3:D=D.section2Color;break;case 4:D=D.section3Color;break;default:return}if(D)return _.Ih(D)}};
MI=function(D,t){if(D){switch(t){case 0:D=D.primaryTitleColor;break;case 1:D=D.secondaryTitleColor;break;case 2:D=D.surgeColor;break;case 3:D=D.section2Color;break;case 4:D=D.section3Color;break;default:return}if(D)return _.Ih(D)}};
l33=function(D){return D?_.Qk(D):""};
v6D=function(D){return(D==null?void 0:D.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
pf$=function(D,t){return _.jR(D.entities,"videoOverviewAsyncDataEntity",t)};
dU6=function(D,t){var H;return"linear-gradient(to bottom, "+((H=t==null?void 0:t.map(function(e){var V=D?e.darkThemeColor:e.lightThemeColor;return V?_.Qk(V)+" "+((e==null?void 0:e.startLocation)||0)*100+"%":"transparent"}))==null?void 0:H.join(", "))+")"};
xUA=function(D,t,H,e,V){if(!((e==null?0:e.height)&&(e==null?0:e.width)))return{size:0};var b=e.width;e=e.height;if(V)return t==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||t==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&b>e?{size:312/C08}:t==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(H!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||D!==1&&D!==2||t!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&t!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&t!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(t==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||t==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||e===b)switch(D){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(t==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||e>b)switch(D){case 1:case 3:return{size:240*nH8};default:return{size:360*nH8}}switch(D){case 1:case 2:return{size:1/C08*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.Rs8=function(D){if(!("matchMedia"in window))return _.uh(Error("Wh")),function(){return!1};
var t=window.matchMedia(D);D=_.F(_.KR(t.matches,void 0,"jLJc8e"));var H=D.next().value,e=D.next().value,V=function(b){e(b.matches)};
t.addEventListener?(t.addEventListener("change",V),_.Sj(function(){t.removeEventListener("change",V)})):t.addListener&&(t.addListener(V),_.Sj(function(){t.removeListener(V)}));
return H};
umK=function(D){return D==="IMAGE_BANNER_STYLE_INSET"||D==="IMAGE_BANNER_STYLE_UNKNOWN"};
WwV=function(){if(!("matchMedia"in window))return _.uh(Error("Wh")),function(){return 0};
var D=fY(function(){return window.matchMedia("(max-width: 527.9px)")}),t=fY(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),H=fY(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),e=fY(function(){return window.matchMedia("(min-width: 1024px)")}),V=_.F(_.KR(D.matches,void 0,"og9kEc")),b=V.next().value,a=V.next().value;
V=_.F(_.KR(t.matches,void 0,"ybDWCb"));var w=V.next().value,h=V.next().value;V=_.F(_.KR(H.matches,void 0,"o0Gfh"));var K=V.next().value,N=V.next().value;V=_.F(_.KR(e.matches,void 0,"yqUUgd"));var k=V.next().value,T=V.next().value,c=fY(function(){return function(J){a(J.matches)}}),U=fY(function(){return function(J){h(J.matches)}}),S=fY(function(){return function(J){N(J.matches)}}),L=fY(function(){return function(J){T(J.matches)}});
_.XH(function(){D.addEventListener?(D.addEventListener("change",c),t.addEventListener("change",U),H.addEventListener("change",S),e.addEventListener("change",L)):D.addListener&&(D.addListener(c),t.addListener(U),H.addListener(S),e.addListener(L));_.Sj(function(){D.removeEventListener?(D.removeEventListener("change",c),t.removeEventListener("change",U),H.removeEventListener("change",S),e.removeEventListener("change",L)):D.removeListener&&(D.removeListener(c),t.removeListener(U),H.removeListener(S),
e.removeListener(L))})});
return function(){return b()?1:w()?2:K()?3:k()?4:0}};
I36=function(D){var t=0;D=_.F([D.title,D.metadata,D.actions,D.description,D.attribution]);for(var H=D.next();!H.done;H=D.next())H.value&&t++;return t};
QoR=function(D){return D===1||D===2?1:0};
BHX=function(D){D=(new y0X).parse(D);return(new $R).render(D).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(t){var H=t.split(":").map(Number),e=0,V=0;if(H.length===3)H=_.F(H),e=H.next().value,V=H.next().value,H=H.next().value;else if(H.length===2)H=_.F(H),V=H.next().value,H=H.next().value;else if(H.length===1)H=_.F(H).next().value;else throw Error("Xh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(e*3600+V*60+H)+'" role="button">'+t+"</span>"})};
zsV=function(D){D=_.F(D.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var t=D.next(),H={};!t.done;H={clickHandler$jscomp$5:void 0},t=D.next()){t=t.value;H.clickHandler$jscomp$5=function(V){V=Number(V.target.getAttribute("data-time"));if(isNaN(V))throw Error("Yh");var b;(b=_.Tm())==null||b.seekTo(V,!0)};
var e=function(V){return function(b){b.key!=="Enter"&&b.key!=="Space"||(0,V.clickHandler$jscomp$5)(b)}}(H);
t.setAttribute("tabindex","0");t.removeEventListener("click",H.clickHandler$jscomp$5);t.removeEventListener("keydown",e);t.addEventListener("click",H.clickHandler$jscomp$5);t.addEventListener("keydown",e)}};
Dm$=function(){return _.G("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.G(SN,{percentWidth:100}),_.G(SN,{animationDelay:200}),_.G(SN,{animationDelay:400}),_.G(SN,{animationDelay:600}),_.G(SN,{animationDelay:800,percentWidth:60}),_.G("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.G(SN,{percentWidth:100}),_.G(SN,{animationDelay:200}),_.G(SN,{animationDelay:400}),_.G(SN,{animationDelay:600,percentWidth:50}))};
SN=function(D){return _.G("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(D.percentWidth===void 0?100:D.percentWidth)+"%"},_.G("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(D.animationDelay===void 0?0:D.animationDelay)+"ms"}))};
tqK=function(){var D=_.F(_.KR(function(){return""},void 0,"dXJHWc")),t=D.next().value;
return[function(){return t()()},
D.next().value]};
HAK=function(D,t){D=D?WrX(D):"";t!==void 0&&isFinite(t)?t===0?t=_.OT("UPDATING",void 0,"Updating..."):(t=KXk(new Date(t),new Date),t=_.OT("UPDATED_TIME",{relative_time:t},"Updated "+t)):t="";var H="";D&&t&&(H=" \u2022 ");return _.wO(D+H+t)};
bA$=function(D,t,H,e,V,b){t=t===void 0?0:t;var a=eZK[t],w=a.title,h=a.iconType,K=a.topButtonRenderer,N=a.sectionClientVE;a=a.videoClientVE;var k;if(t!==1||D.length){H=[];D=_.F(D);for(e=D.next();!e.done;e=D.next()){var T=e.value;if(pK6(T))H.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:T.videoEntity.videoId,title:Z8(T.videoEntity.title),shortBylineText:Z8(T.channelEntity.title),thumbnail:T.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:T.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.OT("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:a}}}}}});else if(vSK(T)){e=H;var c=e.push;var U=void 0,S=void 0,L=void 0,J=void 0,g=void 0,Q=void 0,u=void 0,R=void 0,I=T.mainPlaylistEntity.playlistId,tT=T==null?void 0:(R=T.mainPlaylistEntity)==null?void 0:(u=R.thumbnailStyleData)==null?void 0:(Q=u[0])==null?void 0:(g=Q.value)==null?void 0:(J=g.collageThumbnail)==null?void 0:J.coverThumbnail;J=jWD(I);if(!_.r("enable_offline_playlist_page")&&
(T==null?0:(L=T.mainPlaylistEntity)==null?0:L.videos)){b:{L=T==null?void 0:(S=T.mainPlaylistEntity)==null?void 0:S.videos;S=_.b_().getState().entities;if(L!=null&&L.length&&S)for(L=_.F(L),g=L.next();!g.done;g=L.next())if(g=_.NQ(g.value).entityId,(g=JSON.parse(g).videoId)&&MtV(S,g)==="TRANSFER_STATE_COMPLETE"){S=g;break b}S=""}S!==void 0&&(J=WH(_.b_().getState(),S),J=_.af(S,I,void 0,void 0,J))}S=iST(_.OT("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),jWD(I));T=I&&tT&&S?{playlistId:I,navigationEndpoint:J,
viewPlaylistText:S,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:tT}},title:Z8(T.mainPlaylistEntity.title),shortBylineText:Z8(T==null?void 0:(U=T.channelEntity)==null?void 0:U.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:VqR,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:I,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.OT("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:a}}}:
void 0;c.call(e,{gridPlaylistRenderer:T})}}a={gridRenderer:{items:H}};t===1&&(k=HAK(V,b))}else if(e){var ZV=_.wO((c=H==null?void 0:H.localizedPromptMessage)!=null?c:"");a={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.wO(_.OT("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.qKD}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.wO(_.OT("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};k=HAK(V,b)}else ZV=_.wO(_.OT("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
a={};return{contents:[{shelfRenderer:{title:w,titleAnnotation:k,icon:{iconType:h},subtitle:ZV,content:a,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:K}]}}}}],loggingDirectives:{clientVeSpec:{uiType:N}}}};
qcV=function(D,t,H,e,V,b,a,w,h,K,N){H=H===void 0?{}:H;e=e===void 0?{}:e;V=V===void 0?!1:V;b=b===void 0?!1:b;a=a===void 0?!1:a;w=w===void 0?!1:w;h=h===void 0?!1:h;K=K===void 0?0:K;N=N===void 0?-Infinity:N;if(!(t.length||D.length||V||w))return b?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:foT(H)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.wO(_.OT("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 k=[];D.length&&k.push(bA$(D,0));w?k.push({contents:[{statementBannerRenderer:Y83(h,e)}]}):V?k.push(bA$(t,1,H,a,K,N)):b&&k.push({contents:[{statementBannerRenderer:AHD(H)}]});(V&&t.length||D.length)&&k.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.wO(_.OT("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 k.map(function(T){return{itemSectionRenderer:T}})};
XJ=function(D,t){if(typeof D!=="object")return null;D=_.F(Object.entries(D));for(var H=D.next();!H.done;H=D.next()){var e=_.F(H.value);H=e.next().value;e=e.next().value;if(H===t)return H;if(e=XJ(e,t))return H+"."+e}return null};
fP=function(D){var t=D.content;return(D=D.styleRuns)&&t?{runs:D.map(function(H){var e={text:t.slice(H.startIndex,H.startIndex+H.length)};H.fontColor&&(e.textColor=H.fontColor);return e})}:{simpleText:t}};
wB8=function(D,t,H,e){var V=FqR;e&&(D.quantity=e);if(!D.quantity||!D.maxQuantity)return{};e=D.minusButton;var b=D.plusButton,a,w,h,K;return{value:D.quantity,maxValue:D.maxQuantity,onChangeCallback:function(N){V(D,N)},
minusLabel:(a=_.O(e,aNk))==null?void 0:a.label,minimumReachedLabel:(w=_.O(e,aNk))==null?void 0:w.limitReachedLabel,plusLabel:(h=_.O(b,aNk))==null?void 0:h.label,maximumReachedLabel:(K=_.O(b,aNk))==null?void 0:K.limitReachedLabel,disabled:t,onRemoveCommand:H}};
FqR=function(D,t){var H=D.quantityIncrementerEntityKey;if(H){var e={};e.quantity=t;_.bf(_.LP("quantityIncrementerEntity",H,e));D.onChangeCommand&&_.IQ(D.onChangeCommand)}};
ZAX=function(D){if(D)return D===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(D).overflowY)?D:ZAX(D.parentElement)};
GYV=function(D,t){(D=s16(D))&&((_.r("enable_mini_app_command_handler_mweb_fix")?0:t)?hZ6.push({command:D,sourceData:{},commandContext:void 0}):_.qS().resolve(_.aA).resolveCommand(D))};
s16=function(D){return _.O(D,_.dj)};
E4V=function(){var D=window.performance.timeOrigin+window.performance.now(),t=(new _.Al).setSeconds(D/1E9);return _.tA(t,2,_.eb(D%1E9),0)};
NcR=function(D,t){var H;D=(H=_.O(_.O(D,_.dj),Kq6))==null?void 0:H.methodName;var e,V;(H=window.youtubewebview||((e=window.webkit)==null?void 0:(V=e.messageHandlers)==null?void 0:V.youtubewebview))&&D&&(e=new gg,D=_.M3(e,1,D),D=_.XF(D.JSC$12397_serializeBinary()),t=_.XF(t),H.postMessage(D+","+t))};
Jl=function(D,t){var H=_.O(_.O(D,_.dj),Kq6);H&&(t&&(H.serializedAdditionalMetadata=_.XF(t)),GYV(D,!0))};
kYA=function(D){switch(D){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"}};
TcT=function(){return!!_.YC("ID_TOKEN")};
$mV=function(D){return D instanceof Error&&D.cause instanceof cd8&&D.cause.rpcErrorCode!==void 0?!j1T.includes(D.cause.rpcErrorCode):!0};
rd6=function(){return _.z5(iAD,{authuser:""+(_.YC("SESSION_INDEX")||0)})};
YG=function(D,t,H,e){H=H===void 0?"MINI_APP_SDK_API_UNSPECIFIED":H;e=e===void 0?"":e;var V=new _.nZ;H={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:e,sdkApi:H};D instanceof Error&&(V.message=D.message,V.name=D.name,D.cause instanceof cd8&&D.cause.rpcErrorCode!==void 0&&(H.rpcErrorCode=D.cause.rpcErrorCode));var b;(b=t.onError)==null||b.call(t,{loggingError:V,metadata:H})};
Um8=function(D,t,H,e){switch(D){case "MINI_APP_SOURCE_GAMESNACKS":return new le(t,H,e);default:return new OAA(t,H,e)}};
o4D=function(D){switch(D){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"}};
P$$=function(D){switch(D){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"}};
n4K=function(D){switch(D){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"}};
C$D=function(){return Math.floor(Math.random()*4)+1};
mmV=function(D,t,H,e){D=_.F(Object.entries(D));for(var V=D.next(),b={};!V.done;b={message$jscomp$993:void 0},V=D.next()){var a=_.F(V.value);V=a.next().value;a=a.next().value;b.message$jscomp$993=a;t.push(setTimeout(function(w){return function(){e(!1);H(w.message$jscomp$993.text)}}(b),b.message$jscomp$993.delayMs));
Number(V)>0&&t.push(setTimeout(function(){e(!0)},b.message$jscomp$993.delayMs-400))}};
MqR=function(D,t){var H=H===void 0?naA:H;_.r("mweb_fix_monitor_visibility_after_render")?D&&gj(function(){M0V(D,t,H)}):gj(function(){M0V(D,t,H)})};
ScK=function(D,t){var H=document.createElement("ytd-engagement-panel-section-list-renderer");H.data=D;if(t==null?0:t.isPersistentPanel)H.isPersistentPanel=!0;return H};
AdV=function(D){XBD||(XBD=fN3(new _.y6(1,void 0,void 0,Lq$),0));var t=XBD.format(Math.floor(D));t=If==="be"||If==="bg"||If==="es"||If==="et"||If==="hu"||If==="ka"||If==="lv"||If==="pl"||If==="pt-PT"||If==="sq"?t.replace(new RegExp("^(\\d)"+Lq$.GROUP_SEP.replace(".","\\.")+"(\\d+("+Lq$.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):t;return D>=1E3&&D<=9999&&t[1]==="."&&(If==="sl"||If==="it")?t.replace(".",""):t};
g4A=function(D,t){IqA("ytd-button-renderer",{data:D,className:t?t.className:"",overrides:t==null?void 0:t.buttonOverrides},u9V)};
lN8=function(D,t,H,e){if(D)return e=e||D.likeStatus,t?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:e==="LIKE",isDisabled:!D.likesAllowed,defaultIcon:{iconType:H},defaultText:e==="LIKE"?D.likeCountWithUnlikeText:D.likeCountText,toggledText:e==="LIKE"?D.likeCountText:D.likeCountWithLikeText,defaultNavigationEndpoint:JdV(D,"LIKE"),defaultServiceEndpoint:YcV(D,"LIKE"),toggledServiceEndpoint:YcV(D,"INDIFFERENT"),defaultTooltip:_.eo(D.likeCountTooltipText),toggledTooltip:_.eo(D.likeCountTooltipText),
targetId:D.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:e==="DISLIKE",isDisabled:!D.likesAllowed,defaultIcon:{iconType:H},defaultText:e==="DISLIKE"?D.dislikeCountWithUndislikeText:D.dislikeCountText,toggledText:e==="DISLIKE"?D.dislikeCountText:D.dislikeCountWithDislikeText,defaultNavigationEndpoint:JdV(D,"DISLIKE"),defaultServiceEndpoint:YcV(D,"DISLIKE"),toggledServiceEndpoint:YcV(D,"INDIFFERENT"),defaultTooltip:_.eo(D.dislikeCountTooltipText),
toggledTooltip:_.eo(D.dislikeCountTooltipText)}};
JdV=function(D,t){if(t==="LIKE")return D.likeCommand;if(t==="DISLIKE")return D.dislikeNavigationEndpoint};
YcV=function(D,t){var H;return(H=D.serviceEndpoints)==null?void 0:H.find(function(e){var V;return((V=_.O(e,_.pP))==null?void 0:V.status)===t})};
_.dmX=function(D,t,H){return window.spf&&!_.r("web_disable_spfjs_client")?v48(D,t,H):pB8(D,t)};
v48=function(D,t,H){var e=null,V=(new _.c$(function(b,a){var w={};if(t){w.method=t.method;var h=t.postParams||{};hGD(D,t)&&(h[_.YC("XSRF_FIELD_NAME")]=_.YC("XSRF_TOKEN"));w.postData=_.jc(h);t.type&&(w.type=t.type);h=t.headers}w.headers=qOu(D,h);_.r("debug_forward_web_query_parameters")&&(D=_.ZCD(D,window.location.search));w.experimental_headers=w.headers;w.onError=function(K){K.err&&K.xhr&&(K.err.params={url:K.xhr.responseURL,response:K.xhr.responseText.substr(0,64)});a(K.err)};
w.onPartDone=function(K){H&&H.call(null,K.part)};
w.onDone=function(K){var N=xm3(K.response,"xsrf_token");HY(window.location.href,D)&&N&&_.JZ("XSRF_TOKEN",N);if(N=xm3(K.response,"service_worker_killswitch"))_.JZ("SERVICE_WORKER_KILLSWITCH",N),Z0D();b(K.response)};
e=spf.request(D,w)})).then(RZX);
V.thenCatch(function(b){var a=b instanceof _.dg,w=b&&b.hasOwnProperty("params")&&b.params.response?b.params.response:"";b instanceof Error&&(w?a?QnX(b):w===')]}\'\n{"reload":"now"}'?QnX(b):(u16(b,D,w),Wq8(b,w)?_.Yw(b):_.gT(b)):QnX(b));e&&e.abort()});
return V};
RZX=function(D){if(D.type==="multipart"){var t=D.timing;D=D.parts.reduce(function(H,e){Object.assign(H,e);return H},{});
D.timing=D.timing||{};Object.assign(D.timing,t);D.type="reduced"}return D};
pB8=function(D,t){t=t===void 0?{}:t;var H=null,e=new _.c$(function(V,b){t.onFinish=function(a){if(a.readyState===XMLHttpRequest.DONE)if(a.status===200){if(a.responseType!=="json"){var w=a.response;w.substring(0,5)===")]}'\n"&&(w=w.substring(5));try{var h=JSON.parse(w)}catch(K){h=K}}else h=a.response;h instanceof Error?b(h):(w=xm3(h,"xsrf_token"),HY(window.location.href,D)&&w&&_.JZ("XSRF_TOKEN",w),a=a.responseURL,window.performance&&window.performance.getEntriesByName?(w=window.performance.getEntriesByName(a).pop())?
a={responseStart:(0,_.aP)()-(w.responseEnd-w.responseStart)}:(Math.random()<.01&&(w=Error("ji"),w.params=a,_.Yw(w)),a={responseStart:-1}):a={responseStart:0},h.timing=h.timing||{},Object.assign(h.timing,a),V(h))}else b(Error("ii`"+a.status))};
(H=_.cY(D,t))||b(Error("ii`"+H.status))});
e.thenCatch(function(V){V instanceof Error&&(u16(V,D),Wq8(V)&&(V.level="WARNING"))});
_.r("cancel_pending_navs")&&e.thenCatch(function(){H.abort()});
return e};
xm3=function(D,t){var H=D[t],e=D.parts;D.type==="multipart"&&e&&(H=(D=e.find(function(V){return t in V}))&&D[t]);
return H};
u16=function(D,t,H){var e=D.message||"";t={original:e,url:t};if(H)if(e=e.match(/position:?\s*(\d+)/)){e=e&&Number(e[1])?Number(e[1]):0;var V=Math.max(e-25,0);t.position=e;t.response=H.substring(V,e+25)}else t.response=H.substring(0,50);_.lm(D,t);try{D.message="JSON parse error"}catch(b){}};
Wq8=function(D,t){D=D.message||"";D=!!(D.indexOf("<")>=0||D.indexOf("end of ")>=0||D.indexOf("Unterminated string")>=0||D.indexOf("Unexpected EOF"));if(!D&&t)for(var H=t.length,e=!1,V=0;V<H;V++)if(e&&t[V]==="\\")V++;else if(t[V]==='"')e=!e;else if(t[V]==="<"&&!e){D=!0;break}return D};
IND=function(){return document.documentElement.hasAttribute("dark")};
_.Q1D=function(D,t){if(D!=="GFEEDBACK"&&D!=="GUIDED_HELP")_.vn(Error("ki`"+D));else{var H=_.qS().resolve(_.by(_.bO));if(H&&(H=H.getCurrentPage())&&H.getServiceTrackingParams&&(H=H.getServiceTrackingParams()))for(var e=0,V;V=H[e++];)if(V.service===D){if(D=V.params)for(H=0;e=D[H++];)t[e.key]=e.value;break}}};
_.ydV=function(D){var t=_.FA();t&&(t=t.getPlayer())&&(t.pauseVideo(),D.playback_id=t.getVideoData().cpn,D.eid=t.getVideoData().eventId,Object.assign(D,t.getFeedbackProductData()))};
BcV=function(){var D={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.YC("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(D.enableAnonymousFeedback=!0);_.YC("SESSION_INDEX")&&(D.authuser=String(_.YC("SESSION_INDEX")));_.r("enable_pageid_for_feedback")&&_.YC("DELEGATED_SESSION_ID")&&(D.pageId=String(_.YC("DELEGATED_SESSION_ID")));return D};
_.xG=function(D){_.r("enable_ypc_spinners")&&_.ET(D,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},D])};
_.Rs=function(D){_.r("enable_ypc_spinners")&&_.ET(D,"yt-close-popup-action",["yt-loading-renderer"])};
zZA=function(D){return new Promise(function(t,H){_.RQ({verifyCommand:{recaptchaToken:D.recaptchaResponse}},{commandController:{onSuccess:function(e,V){V||H("ChallengeService did not return a response.");var b;t({challengeCompleted:(b=V.verified)!=null?b:!1})},
onServerError:function(e,V){H(V)}}})})};
DVu=function(D,t,H,e){t({recaptchaResponse:e}).then(function(V){V.challengeCompleted?_.Ua()?(H(3),_.qS().resolve(_.aA).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:D}})):H(2):H(4)},function(){H(4)})};
HwV=function(D,t,H){_.Iz(_.E5(t5u,_.YC("HL")),function(){var e;(e=window.grecaptcha)==null||e.ready(function(){var V=window.grecaptcha;V?(H(V.render(D,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:DVu.bind(null,D,zZA,t)})),t(1)):t(4)})})};
e36=function(D,t){return function(){switch(t()){case 0:return D().captchaLoadingMessage;case 1:return D().challengeReason;case 3:return D().captchaSuccessfulMessage;case 2:return D().captchaCookieSetFailureMessage;case 4:return D().captchaFailedMessage;default:return D().challengeReason}}()};
_.ue=function(){if(!V5X){var D=document.querySelector("#player.skeleton");D&&(_.UH(D),V5X=!0)}};
_.qNk=function(){return bw$=ZoX()};
wi3=function(){return _.Z(function(D){return FS3!==void 0?D.return():D.yield(adV(),0)})};
adV=function(){return _.Z(function(D){if(D.nextAddress==1)return D.yield(hAu(),2);bw$=D.yieldResult;FS3=_.Jy.addLowPriorityJob(adV,5E3);_.n2(D)})};
KSV=function(D){var t=t===void 0?ZwV:t;var H,e,V=(H=D.responseContext)==null?void 0:(e=H.mainAppWebResponseContext)==null?void 0:e.trackingParam;if(!V){t.increment("MISSING");var b,a,w,h,K,N;_.Yw(new _.nZ("282054944_a",{bbl:!!((b=D.responseContext)==null?0:(a=b.mainAppWebResponseContext)==null?0:a.loggedOut),mrA:((w=D.responseContext)==null?void 0:w.mainAppWebResponseContext)===void 0,rql:D.responseContext===void 0,cp:(h=D.playabilityStatus)==null?void 0:h.contextParams,qBs:(((K=D.streamingData)==
null?void 0:K.formats)||[]).length>0,xKT:(((N=D.streamingData)==null?void 0:N.adaptiveFormats)||[]).length>0,os:!!D.offlineState,cotn:D.cotn}));return 2}H="";try{H=sOR(V)}catch(c){return t.increment("C_ERROR"),_.gT(c),2}try{var k=_.h3A(H);var T=G2V(k)}catch(c){return t.increment("P_ERROR"),_.gT(c),2}T=_.wV(T,Eb3,1,_.Zl());V=[];T=_.F(T);for(k=T.next();!k.done;k=T.next())e=k.value,k=e.getPath(),H=(0,_.J$.getValueByKeys)(D,k.split(".")),H=String(H===void 0||H===null?"":H),e=e.getValue()||"",b=/[+\-\/_]/g,
H.replace(b,"")!==e.replace(b,"")&&(t.increment("MISMATCH"),_.r("ab_mis_log_err")&&(H=new _.nZ("282054944_p",{oqT:k,g:String(H),e:String(e)}),_.gT(H)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(k)||(k.match(/enforcementMessageViewModel/i)?V.push(3):V.push(2)));if(V.length>0)return Math.max.apply(Math,_.A6(V));t.increment("SUCCESS");return 1};
T0V=function(D){var t=new Wm;if(D.interpreterJavascript){var H=_.vLD(D.interpreterJavascript);H=G7V(H).toString();var e=new N0D;_.M3(e,6,H);_.oE(t,1,e,P9)}else D.interpreterUrl&&(H=_.YV(D.interpreterUrl),H=_.X7(H).toString(),e=new _.k2D,_.M3(e,4,H),_.oE(t,2,e,P9));D.interpreterHash&&_.Is(t,3,D.interpreterHash,P9);D.program&&_.Is(t,4,D.program,P9);D.globalName&&_.Is(t,5,D.globalName,P9);D.clientExperimentsStateBlob&&_.Is(t,7,D.clientExperimentsStateBlob,P9);return t};
Qm=function(D){var t={};D=_.F(D.split("&"));for(var H=D.next();!H.done;H=D.next())H=H.value.split("="),H.length===2&&(t[H[0]]=H[1]);return t};
cbk=function(D){return Number(D.t)||7200};
Y4$=function(){if(_.r("bg_st_hr"))return"havuokmhhs-0";var D,t=((D=globalThis.performance)==null?void 0:D.timeOrigin)||0;return"havuokmhhs-"+Math.floor(t)};
jOT=function(){return new Promise(function(D){var t=window;t.ntpevasrs!==void 0?D(new ym(t.ntpevasrs)):(t.ntpqfbel===void 0&&(t.ntpqfbel=[]),t.ntpqfbel.push(function(H){D(new ym(H))}))})};
$VR=function(D){var t=D.qWt.bind(D);_.bg("yt.aba.att",t);D=D.spQ.bind(D);_.bg("yt.aba.att2",D)};
rbu=function(D){switch(_.TW(D.input)){case _.qF(iwD):var t={};return t.encryptedVideoId=D.innerTubeRequest.externalVideoId,t}return{}};
ob8=function(D){switch(_.TW(D.input)){case _.qF(iwD):if(_.r("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.qF(Ow6):if(_.r("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.qF(Bm):if(_.r("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&D.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.qF(UV$):var t,H;if(_.r("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((H=_.O((t=D.config)==null?void 0:t.command,$hX))==null?0:H.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.nb8=function(D){var t;if(D.playlistVideoRenderer&&((t=D.playlistVideoRenderer)==null?0:t.engagementBar))return PbV(D.playlistVideoRenderer.engagementBar);if(_.O(D,zX)){var H;if(D=(H=_.O(D,zX))==null?void 0:H.engagementBar)return PbV(D)}return""};
PbV=function(D){if(!D)return"";D=_.O(D,_.CbK);if(D==null||!D.actions)return"";D=_.F(D.actions);for(D=D.next();!D.done;D=D.next()){D=_.O(D.value,_.mVD);var t=void 0;if((t=D)==null||!t.itemId)break;return D.itemId}return""};
_.M5u=function(D){var t;if(D.playlistVideoRenderer&&((t=D.playlistVideoRenderer)==null?0:t.videoId))return D.playlistVideoRenderer.videoId;if(_.O(D,zX)){var H,e;if(D=(H=_.O(D,zX))==null?void 0:(e=H.playlistItemData)==null?void 0:e.videoId)return D}return""};
_.SN8=function(D){var t;if(D.playlistVideoRenderer&&((t=D.playlistVideoRenderer)==null?0:t.voteCount))return D.playlistVideoRenderer.voteCount;if(_.O(D,zX)){var H,e;if(D=(H=_.O(D,zX))==null?void 0:(e=H.playlistItemData)==null?void 0:e.voteCount)return D}return 0};
_.Dm=function(D,t){return _.jR(D.entities,"flowStateEntity",t)};
fdV=function(D,t,H,e){var V=void 0;D=_.F(D[t.iconName]||[]);for(var b=D.next();!b.done;b=D.next()){b=b.value;var a=t.iconSize;var w=t.iconStyle;a=!a||a===b[2];var h=XiT[b[0]];e&&e!==b[1]||!a||w&&w!==h?w=!1:V?(w=XiT[b[0]],w=!!t.iconStyle||w==="youtube_outline",a=V.version<=b[1],w=(!!t.iconSize||b[2]===24)&&w&&a):w=!0;w&&(V={name:t.iconName,style:XiT[b[0]],size:b[2],version:b[1],allowMirroring:!!b[3],url:H(t.iconName,b)})}return V};
LSV=function(D,t,H,e){return D+(""+XiT[H[0]]+((e===void 0?0:e)?"_experimental":"")+"/"+t+"/v"+H[1]+"/")+(H[2]+"px.svg")};
AbD=function(D){return _.YC("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.YC("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":D};
gbV=function(D,t){return LSV("https://fonts.gstatic.com/s/i/",D,t)};
Jb8=function(D,t){return LSV("https://fonts.gstatic.com/s/i/",D,t,!0)};
YNk=function(D,t){return LSV("https://www.gstatic.com/youtube/img/icons/web/",D,t)};
vbT=function(D){var t=D.enabled;var H=D.itemPlaybackModel;var e=D.thumbnailElRef;var V=D.containerElRef;var b=D.options;var a;_.Mp(function(){var w=V==null?void 0:V.value;var h,K=(h=e())==null?void 0:h.value;h=H();var N=b();if(t&&h&&w&&K&&(N==null?0:N.thumbnail)){var k={data:h,hostElement:w},T,c,U=_.r("web_explore_hub_on_hover")||_.r("web_client_explore_hub_on_hover")?[].concat(_.A6((T=N.thumbnailOverlays)!=null?T:[]),_.A6((c=h.overlays)!=null?c:[])):N.thumbnailOverlays||[],S,L;w={mediaRenderer:k,
lockupElement:w,thumbnailElement:K,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.xP((S=h.inlinePlayerData)==null?void 0:S.onVisible),navigationEndpoint:_.xP((L=h.inlinePlayerData)==null?void 0:L.onSelect),thumbnail:N.thumbnail,thumbnailOverlays:U,accessibilityText:N.accessibilityText||""},thumbnailSize:N.thumbnailSize,enableRounding:N.enableRounding,mouseleaveCallback:N.mouseleaveCallback}}}else w=void 0;if(S=w){var J;(J=a)==null||t8(J);a=v5(S);var g,Q;((g=H())==null?0:(Q=g.inlinePlayerData)==
null?0:Q.forceImpAutoplay)&&ldV(a)}},"qy9yNe");
_.Sj(function(){var w;(w=a)==null||t8(w)})};
pik=function(D){D=atob(D);for(var t=[],H=0;H<D.length;H++)t.push(D.charCodeAt(H));return new Blob([new Uint8Array(t)],{type:"image/png"})};
xVT=function(D,t,H,e){e=e===void 0?"INSERTION_POSITION_UNSPECIFIED":e;return D({targetId:t},function(V){var b,a=(b=V.contents)!=null?b:[];b=H!=null?H:[];var w=dVD(a);switch(e){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},V,{contents:[].concat(_.A6(a.slice(0,w)),_.A6(b),_.A6(a.slice(w+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},V,{contents:[].concat(_.A6(b),_.A6(a))});case "INSERTION_POSITION_LAST":return Object.assign({},V,{contents:[].concat(_.A6(a),_.A6(b))});
default:return V}})};
u38=function(D,t,H,e,V){V=V===void 0?"RELATIVE_INSERTION_POSITION_AFTER":V;return D({targetId:t},function(b){var a,w=(a=b.contents)!=null?a:[];a=R3V(w,H);if(a<0)return b;a=V==="RELATIVE_INSERTION_POSITION_BEFORE"?a:a+1;return Object.assign({},b,{contents:[].concat(_.A6(w.slice(0,a)),_.A6(e),_.A6(w.slice(a)))})})};
dVD=function(D){var t=D.findIndex(function(H){return _.O(H,_.HX)});
return t>=0?t:D.length};
R3V=function(D,t){return D.findIndex(function(H){a:{H=_.F(Object.values(H));for(var e=H.next();!e.done;e=H.next())if((e=e.value)&&e.targetId){H=e.targetId;break a}H=""}return H===t})};
Id3=function(D,t,H){return D({targetId:t},function(e){var V,b=(V=e.contents)!=null?V:[];return Object.assign({},e,{contents:WS$(b,H)})})};
WS$=function(D,t){return D.filter(function(H){var e=t.includes;a:{H=_.F(Object.values(H));for(var V=H.next();!V.done;V=H.next())if((V=V.value)&&V.targetId){H=V.targetId;break a}H=""}return!e.call(t,H||"")})};
_.QO8=function(D,t){return{engagementPanelSectionListRenderer:{panelIdentifier:D,identifier:t,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
ybD=function(D,t){D=D.getAvailableAudioTracks();if(D.length)return D==null?void 0:D.find(function(H){var e;return(H==null?void 0:(e=H.getLanguageInfo())==null?void 0:e.getId())===t})};
_.z3K=function(D){var t,H=(t=D.getOption("captions","tracklist",{includeAsr:!0}))!=null?t:[];return H=B0A(H,D)};
D06=function(D){return D.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
B0A=function(D,t){t=D06(t);if(t==null||!t.length)return D;var H=t.filter(function(a){return a});
t=D.filter(function(a){return a.languageCode.startsWith("en")});
H=_.F(H);for(var e=H.next();!e.done;e=H.next())if(e=e.value,t.length){var V=t[0],b=Object.assign({},V);V.languageCode!==e.languageCode&&(b.displayName=V.languageName+" >> "+e.languageName,b.translationLanguage=e,D.push(b))}return D};
tDR=function(D,t,H){D=_.z3K(D);if(D.length)return H?D.find(function(e){if(typeof(e==null?void 0:e.translationLanguage)==="object"){var V;return((V=e.translationLanguage)==null?void 0:V.languageCode)===t}return!1}):D==null?void 0:D.find(function(e){return e.languageCode===t})};
H1$=function(D){return D.getOption("captions","tracklist",{includeAsr:!0})};
eBK=function(D){var t=D.getAvailableAudioTracks();if(t!=null&&t.length){var H=D.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.A6(t.map(function(e){return{listItemViewModel:{title:{content:e.getLanguageInfo().getName()},isSelected:e.getLanguageInfo().getId()===(H==null?void 0:H.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:e.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
VDR=function(D){return D.getOption("captions","tracklist",{includeAsr:!0})};
b1V=function(D){var t=VDR(D);if(t==null?0:t.length)return t;D.loadModule("captions");return VDR(D)};
qwK=function(D){var t=D.getOption("captions","track");if(t)return t;D.loadModule("captions");return D.getOption("captions","track")};
aAD=function(D){var t=b1V(D);if(t!=null&&t.length){var H=qwK(D),e;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.OT("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(H==null?0:H.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.A6(t.map(function(V){return{listItemViewModel:{title:{content:V.displayName},
isSelected:V.displayName===(H==null?void 0:H.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:V.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.OT("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!H.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!H.translationLanguage&&{selectionText:{content:(H==null?void 0:(e=H.translationLanguage)==null?void 0:e.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[F9V(D)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
F9V=function(D){var t=D06(D);if(t==null||!t.length)throw Error("Ji");var H=qwK(D);D=t.filter(function(e){return!e.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.A6(D.map(function(e){var V;return{listItemViewModel:{title:{content:e.languageName},isSelected:e.languageName===(H==null?void 0:(V=H.translationLanguage)==null?void 0:V.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:e.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
hBD=function(D){return new Promise(function(t,H){if(D===void 0)_.gT(Error("Ni"),"ERROR"),H(Error("Ni"));else{H=new _.wCT;var e=_.Z1A();H=H.init();var V=_.s86(_.YC("YPC_MB_URL"),!0);Promise.all([H,V]).then(function(){var b=_.ew.payments.business.integration.ClientTokenFactory.createClientToken(D,e);t(b)})}})};
K96=function(D,t,H,e,V,b,a){var w=_.z3();H=H.replace(/-/g,"+").replace(/_/g,"/");var h=_.Ph().get("hl"),K=_.Vd(_.Vb),N=t==null?void 0:t.element;N&&_.xG(N);GnD(t,!0);_.EuK(K,H,w.resolve,function(){N&&_.Rs(N)},function(k){N&&_.Rs(N);
w.reject(k)},h,e?function(k){e&&_.BZ(D,e,{backend_analytics:k})}:void 0,w.resolve,V,b,a);
return w.promise};
GnD=function(D,t){!(D=D==null?void 0:D.element)||D.tagName!=="YT-BUTTON-RENDERER"&&D.tagName!=="YTD-BUTTON-RENDERER"||(D.disabled=t)};
NP3=function(){var D=_.OT("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.wO(D),actionButton:{buttonRenderer:MAR()}}},popupType:"TOAST"}};
kn6=function(){var D=_.OT("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.wO(D),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
TPV=function(D){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:D}]}}};
bI=function(D,t,H,e){var V;return _.Z(function(b){if(b.nextAddress==1)return _.$p(b,2),b.yield(D,4);if(b.nextAddress!=2)return(V=_.MQ(t.getState().entities).length>0)?b.return({title:_.wO(_.OT("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.wO(_.OT("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:mED()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
b.return(S8u(H,e));_.Pv(b);return b.return(S8u(H,e))})};
cS3=function(D,t){return t?t==="PPSV"||fBV(D,t):!1};
j83=function(D){D.responseContext||(D.responseContext={});D.responseContext.maxAgeSeconds=0;return D};
FC=function(D){var t;return _.Z(function(H){return H.nextAddress==1?H.yield($0V(D,"service:topbar:fallback"),2):(t=H.yieldResult)&&_.qP(t)?H.return(j83(_.qP(t))):H.return()})};
i1T=function(D){var t;return _.Z(function(H){return H.nextAddress==1?H.yield($0V(D,"service:downloads_settings:fallback"),2):(t=H.yieldResult)&&_.qP(t)?H.return(t):H.return()})};
$0V=function(D,t){var H;return _.Z(function(e){if(e.nextAddress==1)return D?e.yield(D.get(t),2):e.return();H=e.yieldResult;return!H||!_.qP(H)||!isNaN(Number(H.data.expireTimestampMs))&&H.isExpired()?e.return():e.return(H)})};
rSX=function(D){var t=_.qS().resolve(a6).getState().entities;return D.playlistId?cS3(t,D.playlistId):!1};
O1T=function(D,t){var H;if(t==null?0:(H=t.requestTemplate)==null?0:H.panelId)D.panelId=t.requestTemplate.panelId;var e;if(t==null?0:(e=t.requestTemplate)==null?0:e.params)D.params=t.requestTemplate.params};
ou3=function(){if(U0k)return U0k();var D=!_.r("idb_response_store_auth_killswitch"),t={};U0k=FU("yt-it-response-store",{objectStores:(t.ResponseStore={addedAtVersion:1},t),shared:!D,upgrade:function(H,e){e(1)&&(H=RP(H,"ResponseStore",{keyPath:["key","clientName"]}),ug(H,"byExpiration","expireTimestampMs"),ug(H,"byInterface","clientName"))},
version:1});return U0k()};
PQ6=function(D){return _.zW(ou3(),D)};
CQ$=function(D,t){var H;return _.Z(function(e){return e.nextAddress==1?e.yield(_.qO(),2):(H=e.yieldResult)?e.return(new nuV(D,t,H)):e.return()})};
m0R=function(D){var t=Object.keys(D)[0];if(t)return D.screenExit&&(t=t+";"+D.screenExit.screen),t};
MDA=function(D){var t=new Map;D=_.F(D);for(var H=D.next();!H.done;H=D.next())H=H.value,H!=null&&(t.has(H.taskType)||t.set(H.taskType,[]),t.get(H.taskType).push(H));return t};
SwX=function(D){D=[].concat(_.A6(D)).sort(function(H,e){return H-e});
var t=Math.floor(D.length/2);return D.length%2?D[t]:(D[t-1]+D[t])/2};
L98=function(D,t){D=D===void 0?fgk:D;t=t===void 0?{}:t;_.bg("yt.logging.errors.log",_.gT);SIk();XCD(YIV(),t);window.onerror=D;fAK=X5X;window.addEventListener("unhandledrejection",function(H){if(H.reason instanceof Error){var e=H.reason;_.lm(e,{source:"unhandledrejection"});e.name==="AbortError"&&(e.level="WARNING")}X5X(H.reason);H.preventDefault()})};
_.AS8=function(D){var t,H,e,V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u,R,I,tT,ZV,ED,o$,jV,i8,g6,Mu,LQ,DO,fQ,yA,T4,Mw,X6,yZ,kQ,FX;return _.Z(function(qw){if(qw.nextAddress==1)return qw.yield(_.of(D,{mode:"readonly",enableRetries:!0},function(oB){return PH(oB,"playbackData").then(function(ZO){var Nw=ZO.map(function(Zf){return Zf.transfer}).filter(function(Zf){return!!Zf}),bY=ZO.map(function(Zf){return Zf.offlineVideoPolicy}).filter(function(Zf){return!!Zf}),P_=ZO.filter(function(Zf){return!!Zf.key}).map(function(Zf){return _.cH(_.NQ(Zf.key).entityId,
"downloadStatusEntity")});
Nw=PH(oB,"transfer",Nw);bY=PH(oB,"offlineVideoPolicy",bY);P_=PH(oB,"downloadStatusEntity",P_);var QV=Nw.then(function(Zf){Zf=Zf.reduce(function(ua,$Q){($Q==null?0:$Q.offlineVideoStreams)&&ua.push.apply(ua,_.A6($Q.offlineVideoStreams));return ua},[]).filter(function(ua){return!!ua});
return PH(oB,"offlineVideoStreams",Zf)});
return RA.all([Nw,bY,QV,P_]).then(function(Zf){var ua=_.F(Zf);Zf=ua.next().value;var $Q=ua.next().value;var ia=ua.next().value;ua=ua.next().value;return[ZO,Zf,$Q,ia,ua]})})}),2);
if(qw.nextAddress!=3)return t=qw.yieldResult,qw.yield(_.of(D,{mode:"readonly",enableRetries:!0},function(oB){return PH(oB,"mainDownloadsListEntity").then(function(ZO){var Nw,bY;return(bY=(Nw=ZO[0])==null?void 0:Nw.downloads)!=null?bY:[]})}),3);
H=qw.yieldResult;e=_.F(t);V=e.next().value;b=e.next().value;a=e.next().value;w=e.next().value;h=e.next().value;K=V;N=b;k=a;T=w;c=h;U={};S={};L={};J={};g={};Q=[];u=_.F(N);for(R=u.next();!R.done;R=u.next())(I=R.value)&&(U[I.key]=I);tT=_.F(k);for(ZV=tT.next();!ZV.done;ZV=tT.next())(ED=ZV.value)&&(S[ED.key]=ED);o$=_.F(c);for(jV=o$.next();!jV.done;jV=o$.next())(i8=jV.value)&&(L[i8.key]=i8);g6=_.F(T);for(Mu=g6.next();!Mu.done;Mu=g6.next())(LQ=Mu.value)&&(J[LQ.key]=LQ);DO=_.F(H);for(fQ=DO.next();!fQ.done;fQ=
DO.next())yA=fQ.value,T4=void 0,g[(T4=yA.videoItem)!=null?T4:""]=!0,yA.videoItem&&(X6=Mw=void 0,yZ=(X6=(Mw=_.NQ(yA.videoItem))==null?void 0:Mw.entityId)!=null?X6:"",Q.push({externalVideoId:yZ}));kQ=K.filter(function(oB){if(!oB||!oB.key||!oB.offlineVideoPolicy)return!1;oB=_.NQ(oB.key).entityId;oB=_.cH(oB,"downloadStatusEntity");var ZO;return!(oB&&((ZO=L[oB])==null?void 0:ZO.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
FX=kQ.map(function(oB){var ZO=U[oB.transfer],Nw=[];if(ZO==null?0:ZO.offlineVideoStreams)for(var bY=_.F(ZO.offlineVideoStreams),P_=bY.next();!P_.done;P_=bY.next())(P_=J[P_.value])&&Nw.push(P_);bY=S[oB.offlineVideoPolicy];P_=g;var QV=oB==null?void 0:oB.playerResponseTimestamp,Zf=_.NQ(bY.key).entityId;oB=_.cH(Zf,"mainVideoEntity");if(bY.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var ua="OFFLINE_VIDEO_STATE_DISABLED";bY.expirationTimestamp&&Number(bY.expirationTimestamp)<Date.now()/1E3&&(ua="OFFLINE_VIDEO_STATE_EXPIRED")}else if(bY.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")ua="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(ZO==null?void 0:ZO.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":ua="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":ua="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":ua="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":ua="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":ua="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":ua="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:ua="OFFLINE_VIDEO_STATE_UNKNOWN"}if(ua==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(ZO==null?void 0:ZO.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":ua="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":ua="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":ua=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Zf={id:Zf,videoState:ua};if(ZO==null?0:ZO.cotn)Zf.cotn=ZO.cotn;if(ZO==null?0:ZO.maximumDownloadQuality)Zf.selectedVideoQuality=ZO==null?void 0:ZO.maximumDownloadQuality;if(ZO==null?0:ZO.lastProgressTimeMs)Zf.lastProgressTimeMs=ZO.lastProgressTimeMs;QV&&(Zf.playerResponseSavedTimeMs=String(Number(QV)*1E3));ZO=String;QV=0;Nw=_.F(Nw);for(ua=Nw.next();!ua.done;ua=Nw.next())if(ua=ua.value,ua.streamsProgress){ua=_.F(ua.streamsProgress);for(var $Q=ua.next();!$Q.done;$Q=
ua.next()){var ia=void 0;QV+=Number((ia=$Q.value.numBytesDownloaded)!=null?ia:0)}}Zf.downloadedBytes=ZO(QV);Zf.selectedOfflineMode=P_[oB]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";bY.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Zf.offlinePlaybackDisabledReason=bY.offlinePlaybackDisabledReason);return Zf});
return qw.return({offlineVideos:FX,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:Q}}})})};
gu$=function(){var D;return _.Z(function(t){return t.nextAddress==1?t.yield(_.rO(),2):(D=t.yieldResult)?t.return(_.AS8(D)):t.return({state:"PES Unavailable"})})};
lAK=function(){var D,t,H,e;return _.Z(function(V){if(V.nextAddress==1)return V.yield(_.rO(),2);if(V.nextAddress!=3)return(D=V.yieldResult)?V.yield(JS6(D),3):V.return({state:"PES Unavailable"});t=V.yieldResult;H={};e=t.reduce(function(b,a){b[a.key]=a;return b},H);
return V.return(Ywu(e))})};
Ywu=function(D){for(var t={},H=[],e=_.F(Object.keys(D)),V=e.next();!V.done;V=e.next()){var b=V.value;V=D[b];var a=void 0;if(((a=V)==null?void 0:a.entityType)==="mainVideoEntity"){delete D[b];var w=V.data;V={};if(w){var h=void 0;a=(h=w.videoId)!=null?h:"vid-"+b;b=D;V.video=w;delete V.video.formattedDescription;delete V.video.thumbnail;w.owner&&(h=b[w.owner],h==null?0:h.data)&&(delete b[h.key],V.video.owner=h.data,delete V.video.owner.avatar);if(w=w.downloadState)if(h=b[w],h==null?0:h.data)if(delete b[w],
w=h.data.playbackData)if(h=b[w],h!=null&&h.data){delete b[w];w=h.data;delete w.playerResponseJson;V.playbackData=w;if(w.transfer&&(h=b[w.transfer],h==null?0:h.data)){delete b[h.key];var K=h.data;V.transfer=K;h=[];K=_.F(K.offlineVideoStreams||[]);for(var N=K.next();!N.done;N=K.next())if(N=b[N.value])delete b[N.key],h.push(N.data);h&&(V.streams=h)}(w=w.offlineVideoPolicy)&&(w=b[w])&&w.data&&(delete b[w.key],V.offlineVideoPolicy=w.data)}t[a]=V}}else V&&V.entityType==="offlineOrchestrationActionWrapperEntity"&&
V.data&&(delete D[V.key],a=V.data,b=void 0,H.push({id:a.rootActionId,type:((b=a.actionProto)==null?void 0:b.actionType)||"",entity:V}))}t.wrapperEntities=H;Object.keys(D).length>0&&(t.unknownKeys=D);return t};
vuR=function(){var D,t,H,e,V,b,a,w,h;return _.Z(function(K){if(K.nextAddress==1)return D=!!(new _.dk("")).expiringStorage_,e=!!((t=_.VA.crypto)==null?0:(H=t.subtle)==null?0:H.importKey),V=!!_.VA.BroadcastChannel,b=!!_.VA.navigator.locks,K.yield(shk(),2);a=K.yieldResult;w=D&&e&&V&&b&&a;h={isSupported:w};if(w)return K.return(h);h.missingBrowserFeatures=[];a||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");D||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
e||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");V||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");b||h.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return K.return(h)})};
pCV=function(){var D;return!((D=wL?wL:null)==null||!D.window)};
_.x0$=function(D){if(_.CK()&&_.iKV("Chromium")>=120){var t=_.d0V().mediaSession;try{t.setActionHandler("enterpictureinpicture",function(){D()})}catch(H){}}};
RBV=function(D){for(var t=[],H=_.F(document.styleSheets),e=H.next(),V={};!e.done;V={node$jscomp$731:void 0},e=H.next())V.node$jscomp$731=e.value.ownerNode,V.node$jscomp$731&&(V.node$jscomp$731 instanceof HTMLStyleElement||V.node$jscomp$731 instanceof HTMLLinkElement)&&t.push(new Promise(function(b){return function(a){var w=b.node$jscomp$731.cloneNode(!0);w.onload=function(){a()};
w.onerror=function(){_.Yw(Error("pj"));a()};
D.document.head.appendChild(w)}}(V)));
return Promise.all(t)};
H9$=function(D){var t=[_.Zi(uj8),_.Zi(W9k),_.Zi(IAX)];Q88(window.document.documentElement,D.document.documentElement,[_.Zi(ySX),_.Zi(BPD),_.Zi(zBK),_.Zi(Drk),_.Zi(t$V)]);Q88(window.document.body,D.document.body,t)};
Q88=function(D,t,H){D=_.F(D.attributes);for(var e=D.next();!e.done;e=D.next())if(e=e.value)try{_.ax(H,t,e.name,e.value)}catch(V){}};
V$A=function(D,t){D=new _.Zm(D.document.documentElement);D.start(e4D,t);return D};
b93=function(D){var t=D.document.documentElement;t.addEventListener("click",function(H){qQA(t,H)});
t.addEventListener("touchstart",function(H){sqV(H)});
t.addEventListener("mousedown",function(H){sqV(H)})};
FmD=function(D,t,H,e){e=e===void 0?!1:e;t=new qfD(t||D,H||D);return{x:D.x+((e===void 0?0:e)?t.lengthX*-1:t.lengthX)*.2,y:D.y+((e===void 0?0:e)?t.lengthY*-1:t.lengthY)*.2}};
aCA=function(D){if(!D)return!1;var t=D.status==="OK"||D.status==="LIVE_STREAM_OFFLINE",H,e,V,b=(V=(H=D.errorScreen)==null?void 0:H.playerLegacyDesktopYpcTrailerRenderer)!=null?V:(e=D.errorScreen)==null?void 0:e.ypcTrailerRenderer;return!!t||!!b};
_.waD=function(D,t){if(!D)return!1;var H,e=(H=D.errorScreen)==null?void 0:H.playerLegacyDesktopYpcOfferRenderer,V;t=!!(t==null?0:(V=t.playerOverlayRenderer)==null?0:V.gatedActionsOverlayRenderer);return!!aCA(D)||!!e||!!t};
h4A=function(D){return Z9D(D,0,"gclid",D.search(s3K))>=0||Z9D(D,0,"gad_source",D.search(s3K))>=0};
GbT=function(D){var t=[],H=0;return{clear:function(){H=t.length=0},
push:function(e){t[H]=e;H=(H+1)%D},
iterate:function(){return function V(){var b,a,w,h;return _.sG(V,function(K){switch(K.nextAddress){case 1:_.Ok(K,2),b=t.length,a=0;case 4:if(!(a<b)){K.jumpTo(2);break}w=H+a;h=_.h8;return K.yield(t[w%b],7);case 7:h(K.yieldResult);a++;K.jumpTo(4);break;case 2:_.rN(K),_.ox(K,0)}})}()}}};
E5V=function(D){D.eventsToIgnore||(D.eventsToIgnore=[]);var t=D.eventsToIgnore.map(wER),H=new Set(t),e=GbT(D.bufferSize);return{flush:function(){var V=Array.from(e.iterate());e.clear();V=V.map(function(b){return{name:b.name,timestamp:b.startTime,attributes:b.attributes}});
return JSON.stringify(V)},
onSpanStart:function(V){V.name==="event"&&H.has(V.attributes.type)||e.push(V)}}};
KmV=function(D){D=E5V(D);var t=D.flush;bG.processors.push({onSpanStart:D.onSpanStart});xxA.subscribe("handleError",function(H){try{H.params.breadcrumbs=t()}catch(e){_.gT(e,"WARNING")}})};
NSR=function(){Y0("web_tracing_action");_.l1("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
kbK=function(){Y0("web_tracing_action");_.l1("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
cs6=function(D,t,H){if(t===void 0){TSD||(kbK(),setInterval(kbK,6E5),TSD=!0);var e="web_tracing_action"}else e=t;var V,b=((V=D.endTime)!=null?V:D.startTime)-D.startTime,a={};V=D.name;var w=D.startTime;a={webTracing:(a[D.name]=D.attributes,a)};H=_.pY(P9V)(V,b,w,a,H,e);if(D.children)for(D=_.F(D.children),e=D.next();!e.done;e=D.next())cs6(e.value,t,H)};
j36=function(D){var t=EqX.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(H){H.data&&typeof H.data==="object"&&(H=H.data,H.from==="extension"&&H.app==="yt.telemetry"&&(t("Received message from extension",H),D.onMessage(H)))});
return function(H,e){H={app:"yt.telemetry",from:"app",key:H,payload:e};t("Sending message to extension",H);window.postMessage(H,"*")}};
$rR=function(){var D=D===void 0?3E3:D;var t=j36({onMessage:function(){}}),H=[];
return{onSpanEnd:function(e){e.parentId==null&&H.push(e)===1&&setTimeout(function(){var V=[].concat(_.A6(H));H.length=0;t("spansReported",{spans:V})},D)}}};
rsD=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var D=window.performance.getEntriesByType("navigation");if(D.length>0){var t=D[0];GzX("pageLoad",{navigationType:i98(t.type),unloadEventStart:Math.round(t.unloadEventStart),unloadEventEnd:Math.round(t.unloadEventEnd),domInteractive:Math.round(t.domInteractive),domContentLoadedEventStart:Math.round(t.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(t.domContentLoadedEventEnd),
domComplete:Math.round(t.domComplete),loadEventStart:Math.round(t.loadEventStart),loadEventEnd:Math.round(t.loadEventEnd),redirectCount:t.redirectCount},function(){})}}catch(H){}})};
i98=function(D){switch(D){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
o5D=function(){for(var D=IcT.value,t={},H=_.F(D.enabledSpansArray),e=H.next();!e.done;e=H.next())t[e.value]=!0;if(D.exportToCsi||D.exportBreadcrumbs)t={sessionId:WL6(),enabledSpans:t},bG.initialized=!0,bG.sessionId=t.sessionId||"",bG.enabledSpans=t.enabledSpans,t.shouldSampleFn!=null&&(bG.shouldSampleFn=t.shouldSampleFn),ZSV("pageLoad")&&rsD();D.exportBreadcrumbs&&KmV({eventsToIgnore:O9A,bufferSize:D.bufferSize});D.exportToCsi&&bG.processors.push(UrD);D.exportToDevTools&&(D=$rR(),bG.processors.push(D))};
PxD=function(D){return new Promise(function(t){window.setTimeout(t,D)})};
n5A=function(D){var t={bicf:function(b){D.bVd=b},
blc:function(){return D.getLatestChallengeResponse()},
bcr:function(b){D.fgJ.push(b)}},H=window;
H.ntpevasrs=t;if(H.ntpqfbel!==void 0)for(var e=_.F(H.ntpqfbel),V=e.next();!V.done;V=e.next())V=V.value,V(t);H.ntpqfbel=void 0};
CxR=function(D){return _.Z(function(t){if(t.nextAddress==1)return _.$p(t,2),t.yield(D.u7J(),4);if(t.nextAddress!=2)return _.yM(t,0);_.Pv(t);_.n2(t)})};
mrA=function(D){var t,H;(t=D.ytcsi)==null||(H=t.tick)==null||H.call(t,"pot_ist")};
M$k=function(D){if(D instanceof Error){var t=_.RD("yt.logging.errors.log");t&&t(D,"WARNING")}};
SfA=function(D){try{var t=JSON.parse(D);if(t.bgChallenge)return t}catch(H){}};
fCD=function(){var D=window,t={networkStatusManagerPromise:_.qS().resolve(new Ik3(_.yp)),initialChallengeSli:_.r("wpo_att_sli")?new _.Gdk("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};D=D===void 0?window:D;var H=D.ytAtR,e;t==null||(e=t.initialChallengeSli)==null||_.Gk(e);if(H){if(H=SfA(H)){var V;t==null||(V=t.initialChallengeSli)==null||_.EG(V,"SUCCESS");XaD(H,t)}D.ytAtR=void 0}else D.ytAtRC=function(b){if(b=SfA(b)){var a;t==null||(a=t.initialChallengeSli)==null||
_.EG(a,"SUCCESS");XaD(b,t);D.ytAtRC=void 0}}};
g5X=function(){if(LmR)return LmR;try{var D=_.OH("IFRAME");_.zF(D,_.E5(AsV));D.sandbox.add("allow-same-origin");D.style.display="none";document.body.appendChild(D);return LmR=D}catch(t){D=new _.nZ("Failed to create sandbox iframe"),_.gT(D)}};
JsA=function(D){var t,H;return(H=D==null?void 0:(t=D.contentWindow)==null?void 0:t.fetch)!=null?H:window.fetch};
YfT=function(D){var t,H;return(H=D==null?void 0:(t=D.contentWindow)==null?void 0:t.Request)!=null?H:window.Request};
lCV=function(D){var t,H;return(H=D==null?void 0:(t=D.contentWindow)==null?void 0:t.TextDecoder)!=null?H:window.TextDecoder};
v5u=function(){return function(D,t){_.YC("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[D]=t}};
paR=function(){return function(D,t){var H={};H[D]=t;D=_.pY(_.U48)(H);Object.keys(D).length>0&&_.JE(D)}};
R4u=function(){if(eM6()==="hidden")var D="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else eM6()==="visible"&&(D="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",drR=null);D&&xrK(D)};
xrK=function(D){if(D==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||D==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(u4V===D)return;u4V=D}var t=9E4+Math.random()*2E3;if(D!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.aR()>t)&&eM6()==="visible"){t=-1;drR&&(t=Math.round((0,_.aP)()-drR));var H=String;var e=_.RD("_fact",window);e=e==null||e==-1?-1:Math.max(Date.now()-e,0);_.L7("foregroundHeartbeat",{firstActivityMs:H(e),clientDocumentNonce:IhD,index:String(WmD),lastEventDeltaMs:String(t),trigger:D});
_.bg("_fact",-1,window);WmD++;drR=(0,_.aP)()}};
_.ICX=function(){try{return!!self.sessionStorage}catch(D){return!1}};
Q3V=function(){var D=navigator;return new Promise(function(t,H){var e;(e=D.webkitTemporaryStorage)!=null&&e.queryUsageAndQuota?D.webkitTemporaryStorage.queryUsageAndQuota(function(V,b){t({usage:V,quota:b})},function(V){H(V)}):H(Error("zj"))})};
ys8=function(D,t){var H={errorSeverity:t.errorSeverity.toString(),wizFeatureFlags:Object.entries(t.featureFlags).join("\n")};MdA(t,H);t=t.errorSeverity;t===3?_.gT(D,"ERROR",void 0,void 0,void 0,H):t===2&&_.gT(D,"WARNING",void 0,void 0,void 0,H);_.r("cow_if_errors_in_popup")&&t===3&&D.message.indexOf("<If>")!==-1&&window.alert(D.message)};
BSV=function(D,t){var H=V6.get(D)||{layerNode:t};H.layerNode=t;wu8(D,H);D.getScreenLayer=function(){return Ks(H.layerNode)}};
z4D=function(D){var t;D=D.parentNode;for(var H;D&&((t=V6.get(D))==null||!t.isRenderer)&&!((H=D.polymerController)!=null?H:D).isRenderer_;)D=D.parentNode||D.host;if(t=D)return V6.get(t)};
DfD=function(D){if(D){V6.delete(D);var t=_.qS().resolve(aC);$jk(D,t)}};
HTk=function(D,t,H){if(H===void 0?0:H){if(H=D.getAttribute("client-ve-type"),t.data&&!t.disableReactiveLogging||H)_.LR(function(){tHX(D,_.fR(t.data))},"$f"),_.Sj(function(){return void DfD(D)})}else typeof t.data!=="function"&&tHX(D,t.data)};
tHX=function(D,t){ex8++;VH8(D,t)&&_.Jy.addJob(function(){_.NP(_.Jy,function(){if(VH8(D,t)&&D.ownerDocument.documentElement===document.documentElement&&D){var H;if(D.getAttribute("layer")){var e=H=Number(D.getAttribute("layer")),V=V6.get(D);V?V.layerNode.layer=e:BSV(D,new bTD(e));(e=z4D(D))&&(V=V6.get(D))!=null&&(V.layerNode.parent=e.layerNode)}else if(H=V6.get(D))H=Ks(H.layerNode);else{H=Ks;e=new bTD;if(V=z4D(D))e.parent=V.layerNode;BSV(D,e);H=H(e)}H!=null||(H=0);e=D.getAttribute("client-ve-type");
V=Number(e);var b=!1;e=!1;var a=V6.get(D),w;if((w=a)&&!(w=a[q0V]!==t)&&(w=V)){var h;w=((h=V6.get(D))==null?void 0:h.clientVeType)===void 0}w&&(a[q0V]=t,b=e=a.isRenderer=!0);V6.has(D)&&(V6.get(D).clientVeType=V);D.visualElement&&(e=!0);if(_.r("wiz_next_ld_fix_client_ve_spec")){var K;h=((K=_.O(t==null?void 0:t.rendererContext,_.nz))==null?void 0:K.loggingDirectives)||(t==null?void 0:t.loggingDirectives)}else h=t==null?void 0:t.loggingDirectives;h&&h.clientVeSpec&&(K=F6X(_.U_(),D),K=_.ap8(_.Pc(),h,K||
void 0,H))&&(D.visualElement=K);!D.visualElement&&V&&b&&(D.veType=V,K=void 0,_.r("wiz_next_client_ve_parent_fix")&&(K=F6X(_.U_(),D)),K=_.oQ(_.Pc(),D,K,H),D.visualElement=K);e&&(K=_.qS().resolve(aC),UjD(D,{data:t,observer:K,layer:H,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
VH8=function(D,t){return(t==null?0:t.trackingParams)||(t==null?0:t.loggingDirectives)||_.O(t==null?void 0:t.rendererContext,_.nz)||D.getAttribute("client-ve-type")?!0:!1};
wo6=function(D,t,H){D.componentType!==PI&&H instanceof HTMLElement&&t&&!_.r("cow_logging_in_component_wrapper")&&HTk(H,t,!0)};
G9D=function(){if(!ZTV){ZTV=!0;var D=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.r("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:ys8,enableComponentStacksInErrorMessages:!1});Object.assign(F2,D);Is6=sl3;hxD();DJD=dWR;yK$=xWu}};
hxD=function(){_.r("cow_logging_in_component_wrapper")?(DWV=function(D,t){t instanceof HTMLElement&&HTk(t,D,!0)},gRV=function(){}):(DWV=function(){},gRV=wo6)};
EdT=function(D,t,H){t=t===void 0?{}:t;var e,V=(e=_.O(D.commandMetadata,_.i1))==null?void 0:e.url;e=t.form||{};!H||e.element||e.skipDefaultElement||(t.form=t.form||{},t.form.element=H);if(V&&V!=="/service_ajax")return{type:0,command:D,form:t.form};if(_.r("kevlar_service_command_check")){if(_.yL(_.qS().resolve(_.xg),D))return Object.assign({},{type:1,command:D},t)}else{var b;if((b=_.O(D.commandMetadata,_.i1))==null?0:b.apiUrl)return Object.assign({},{type:1,command:D},t)}return{type:2,command:D,form:t.form}};
K6X=function(D){if(D.form){var t=D.form,H=Object.assign({},t);t=t.element;H=(delete H.element,H);if(t)return[_.NJ(t,[D.command,H,D.commandController])]}return[]};
NlX=function(D){if(D.form){var t=D.form,H=Object.assign({},t);t=t.element;H=(delete H.element,H);t&&_.k0(t,[D.command],t,H)}};
TlT=function(D,t,H){var e=new k9T(D,t),V=new kK(D,t,H);D={"/youtubei/v1/browse":new Tk(D,t,H),"/youtubei/v1/player":e,"/youtubei/v1/navigation/resolve_url":new cX,"/youtubei/v1/next":V,"/youtubei/v1/guide":new jw(H),"/youtubei/v1/search":new $K(D,t,H),"/youtubei/v1/reel/reel_item_watch":new iI(D,t,H),"/youtubei/v1/get_watch":new rL(e,V)};D["/youtubei/v1/account/account_menu"]=new OG;D["/youtubei/v1/notification/get_notification_menu"]=new UG;return D};
PX=function(){var D=_.qS().resolve(o6);return Promise.resolve(cYu(D,_.VA.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
jlK=function(D){return D&&(D=_.ns(_.tlV(D)))?(new URLSearchParams(D)).get("service"):null};
MP=function(D,t){_.kX(_.Cs(),function(){_.vh("adl")});
_.qS().resolve($fT)(t);D=D.root;D.loadData&&D.loadData(t);(t==null?0:t.response)?_.EG(NIA(),"SUCCESS"):_.Yw(new _.nZ("Lifecycle: No response in data",_.lh("IS_SHELL_LOAD"),t?t.page:"NO_PAGE",t?t.endpoint:"NO_ENDPOINT"));D.polymerController.$["page-manager"].lazyPrepareCriticalPages((t==null?void 0:t.page)||"",t.endpoint);var H,e;((e=_.O(t==null?void 0:(H=t.endpoint)==null?void 0:H.commandMetadata,_.i1))==null?0:e.webPageType)&&_.b_().dispatch(_.mT(_.O(t.endpoint.commandMetadata,_.i1).webPageType))};
iT8=function(){var D,t;return _.Z(function(H){switch(H.nextAddress){case 1:D=window;if(!D.getDataPromise){H.jumpTo(2);break}_.$p(H,3);return H.yield(D.getDataPromise(),5);case 5:return H.return(H.yieldResult);case 3:return _.Pv(H),H.yield(PX(),6);case 6:return H.return(H.yieldResult);case 2:if(D.getInitialData)return t=D.getInitialData(),D.getInitialData=void 0,H.return(t);throw Error("Bj`"+_.VA.location.href);}})};
OTV=function(){_.JZ("CSI_SERVICE_NAME","youtube");_.JE({loadType:"cold"});_.r("kevlar_log_lcp")&&rY6(function(D){_.vh("lcp",D.value)})};
Ufk=function(){var D=_.uz(document.location.href,"enable");D&&D.indexOf("scraper")>-1&&_.JZ("ADD_SCRAPER_ATTRIBUTES",!0)};
mfD=function(D){var t=D.root;D=[odk,P7D,_.Sw];_.r("web_feedback_endpoint_autolog_allowlist_killswitch")&&D.push(_.XC,ndR);C7R(function(H,e){return EdT(H,e,t)},function(H){if(!H.command)return[];
var e;((e=H.form)==null?0:e.element)?H.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},H.form,{endpoint:H.command})})):t.handleNavigate(H);return[]},D);
_.qS().addProvider({provide:_.aA,useValue:_.$P.instance})};
S0D=function(){var D={},t={},H;for(H in MHk){var e=_.F(_.KR(MHk[H],void 0,"IAtZ7"));D[H]=e.next().value;t[H]=e.next().value}return[D,function(V){for(var b in V){var a=void 0;(a=t[b])==null||a(V[b])}}]};
_.Ls=function(D,t,H){t=t===void 0?!1:t;var e=_.J$.getValueByKeys(D,"contents","twoColumnWatchNextResults","results","results","contents"),V=_.J$.getValueByKeys(D,"contents","twoColumnWatchNextResults","playlist","playlist")||null;t&&(V=null);var b=t=null;if(V)t=_.J$.getValueByKeys(V,"titleText"),b=_.J$.unsafeClone(_.J$.getValueByKeys(V,"longBylineText")),e="",b&&(e=_.eo(b)),b=_.H7(e);else if(e){e=_.F(e);for(var a=e.next();!a.done;a=e.next())a=a.value,a.videoPrimaryInfoRenderer&&(t=_.J$.getValueByKeys.apply(_.J$,
[a].concat(_.A6(XoV)))),a.videoSecondaryInfoRenderer&&(b=_.J$.getValueByKeys.apply(_.J$,[a].concat(_.A6(fpT))))}else _.uh(Error("Gj"));var w;D.currentVideoEndpoint?w=D.currentVideoEndpoint:_.uh(Error("Hj"));var h;H&&(h=_.J$.getValueByKeys(H,"playabilityStatus","miniplayer","miniplayerRenderer"));D={miniplayerTitle:t,miniplayerSubtitle:b,watchEndpoint:w,playlistData:V};h&&(D.miniplayerRenderer=h);return D};
L6R=function(D){if(D)return _.lf(D)};
_.AY8=function(){return{isFullscreen:function(){throw Error("Ij");},
toggleFullscreen:function(){throw Error("Jj");},
exitFullscreen:function(){throw Error("Kj");},
isAutonavEnabled:function(){throw Error("Lj");},
setAutonavEnabled:function(){throw Error("Mj");},
isAutoplaySetExplicitly:function(){throw Error("Nj");}}};
gdK=function(D){return D.videoDuration?D.numTaps>1&&D.tapDirection!==0?_.A8(D.draggedTime/D.videoDuration,0,1):_.A8((D.playedTime||0)/D.videoDuration,0,1):0};
JYV=function(D){return D.videoDuration?D.isDragging||D.numTaps>1&&D.tapDirection!==0?_.A8(D.draggedTime/D.videoDuration,0,1):_.A8((D.playedTime||0)/D.videoDuration,0,1):0};
lp3=function(D){var t,H,e;return _.O(D==null?void 0:(t=D.markersMap)==null?void 0:(H=t.find(function(V){return V.key==="HEATSEEKER"}))==null?void 0:(e=H.value)==null?void 0:e.heatmap,Y0V)};
vdV=function(D){var t,H;return(H=(t=lp3(D))==null?void 0:t.heatMarkersDecorations)!=null?H:[]};
pou=function(D){if(_.r("mweb_supported_chapters_killswitch"))return!0;var t;return!!(D==null?0:(t=D.markersMap)==null?0:t.find(function(H){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(H.key)}))};
_.df3=function(D){var t=Object,H=t.assign,e;D={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(e=D==null?void 0:D.getPlayerState())!=null?e:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return H.call(t,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},D,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
xfD=function(D){return function(t){var H=D(),e,V=(e=H.playerApi)==null?void 0:e.getPlayerState();t&&t!==H.playerState&&(t===1||t===2)&&H.setState({playerState:V})}};
uaV=function(D){return function(t){var H=D(),e=H.playerApi;e&&(t==null?void 0:t.type)==="newdata"&&(RxA&&(clearTimeout(RxA),RxA=void 0),_.r("web_shorts_use_progress_state_for_gapless")?(t=e==null?void 0:e.getProgressState(t==null?void 0:t.playertype),t=t.seekableEnd-t.seekableStart):t=e==null?void 0:e.getDuration(t==null?void 0:t.playertype),H.setState({playedTime:0,videoDuration:t}))}};
W6K=function(D){return function(t){var H=D(),e=H.playerApi;if(e){var V=e.getPresentingPlayerType();_.r("web_shorts_use_progress_state_for_gapless")?(e=e.getProgressState(V),e=e.seekableEnd-e.seekableStart):e=e.getDuration(V);H.setState({playedTime:t,videoDuration:e})}}};
QlD=function(D){_.CP(112394,D,function(){return Ip$},function(t){Ip$=t})};
zxD=function(D,t){if(!D)return[];var H,e,V;D=((H=D.markersMap)==null?void 0:(e=H.find(function(b){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(b.key)}))==null?void 0:(V=e.value)==null?void 0:V.chapters)||[];
!yYV(D)||(t==null?0:t.ignoreStub)||(D=[BlV()].concat(_.A6(D)));return D};
BlV=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
yYV=function(D){if(D.length===0)return!1;var t;return((t=_.O(D[0],gL))==null?void 0:t.timeRangeStartMillis)!==0};
J8=function(D){return D?D.timeRangeStartMillis||0:0};
tvT=function(D,t){if(D.isDragging&&t)return D=DRk(D,t),D===-1?BlV():zxD(t)[D]};
DRk=function(D,t){return D.isDragging&&t?zxD(t,{ignoreStub:!0}).findIndex(function(H,e,V){H=HHV(D);return eVV(H,V,e).scrubberHovering}):-1};
HHV=function(D){return Object.assign({},D,{videoDuration:D.videoDuration*1E3,playedTime:D.playedTime*1E3,draggedTime:D.draggedTime*1E3})};
eVV=function(D,t,H){var e=J8(_.O(t[H],gL));t=J8(_.O(t[H+1],gL))||D.videoDuration;H=D.isDragging;var V;if(V=D.isDragging)V=D.draggedTime,V=V!==null&&V>=e&&V<t;var b=D.playedTime;return b!==null&&b>=e&&b<t?{videoPosition:"active",isScrubbing:H,scrubberHovering:V}:D.playedTime<e?{videoPosition:"pending",isScrubbing:H,scrubberHovering:V}:{videoPosition:"seen",isScrubbing:H,scrubberHovering:V}};
VvK=function(D,t){return D.videoPosition==="seen"||(t===void 0?0:t)>0};
bHT=function(D,t,H){t=D/t.storyboardInterval;var e=zxD(H);if(!e.length)return-t*72;H=0;e=_.F(e);for(var V=e.next();!V.done;V=e.next())if(J8(_.O(V.value,gL))/1E3<D)H++;else break;return-(t*72)-H*56};
q9V=function(D){return D?D.width/D.columns:0};
F0R=function(D){return D.isHovering?D.hoveredTime:D.draggedTime};
aa8=function(D,t){D=D.draggedTime*1E3;return D>=t.visibleTimeRangeStartMillis&&D<=t.visibleTimeRangeEndMillis};
_.wQ6=function(D){if(D===void 0||Number.isNaN(D))return"--:--";var t=Math.abs(Math.floor(D)),H=Math.floor(t/86400),e=Math.floor(t%86400/3600),V=Math.floor(t%3600/60);t=Math.floor(t%60);var b="";H>0&&(b+=H+":",e<10&&(b+="0"));if(H>0||e>0)b+=e+":",V<10&&(b+="0");b+=V+":";t<10&&(b+="0");b+=t;return D>=0?b:"-"+b};
ZHV=function(D,t){return function(){var H=F0R(D());var e=t();var V=D().playerApi;if(V&&V.getNumberOfStoryboardLevels()!==0){var b=V.getStoryboardFrameIndex(H,1);b!==-1?e=V.getStoryboardFrame(b,1):(H=V.getStoryboardFrameIndex(H,0),V=V.getStoryboardFrame(H,0),e&&V&&(V.height*=3,V.width*=3),e=V)}else e=null;if(!e)return null;t()&&(e.width=90*e.columns,e.height=160*e.rows);return e}};
_.YK=function(D){if(!D||D.getVideoData)return D};
seV=function(){var D;return{playerApi:(D=_.Tm())!=null?D:void 0}};
hV$=function(D){var t;_.Z(function(H){if(H.nextAddress==1)return H.yield(_.ki(),2);if(t=H.yieldResult)t.unMute(!0),t.setVolume(D,!0);_.n2(H)})};
GyK=function(D,t){D&&(D.value=""+t,D.style.setProperty("--gradient-percent",t+"%"))};
EJR=function(D){var t;return(t=D==null?void 0:D.value)!=null?t:0};
K06=function(){var D;_.Z(function(t){if(t.nextAddress==1)return t.yield(_.ki(),2);D=t.yieldResult;if(!D)return t.return();D.isMuted()?D.unMute(!0):D.mute(!0);_.n2(t)})};
NXX=function(D){var t=_.qS().resolve(_.dL).getPlayerElement();t&&D&&(D===1?t.pause():t.play())};
kyV=function(D){_.Kl(D,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
TXR=function(D){_.Kl(D,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
je8=function(D){return _.M2(D.document.body,function(){return _.G(cxR,null)},"Lg")};
$RT=function(){var D=window.performance.getEntriesByType("navigation");return D?D.map(function(t){return t.type}).includes("reload"):!1};
Cnu=function(){xK(xK(xK(xK(xK(xK(xK(_.qS().resolve(_.R6),_.iHT),_.rx3),_.OHD),_.URk),_.oJV),_.PnV),_.nJT)};
mR6=function(D,t){t=t===void 0?!1:t;var H,e,V,b;return _.Z(function(a){if(a.nextAddress==1)return t||!_.r("kevlar_shorts_seedless_retry_initial_load")||(H=window,e=!(!H.getDataPromise&&!H.getInitialData),e)?a.yield(iT8(),2):(setTimeout(mR6.bind(window,D,!0),1E3),a.return());if(a.nextAddress!=3)return V=a.yieldResult,a.yield(MvD(V),3);b=a.yieldResult;MP(D,b);_.n2(a)})};
MvD=function(D){var t;if((t=D.response)==null||!t.replacementEndpoint)return _.Tf(D);t=_.qS().resolve(o6);D=D.response;_.O(D.replacementEndpoint,_.C_)&&D.sequenceContinuation&&(_.O(D.replacementEndpoint,_.C_).sequenceParams=D.sequenceContinuation);return uI(t,D.replacementEndpoint,{},_.VA.location.href,"shorts",function(){},function(){return!1})};
XQ8=function(D){var t=_.qS().resolve(S9V);D.playerResponse&&t.handleResponse(D.playerResponse);D.response&&t.handleResponse(D.response)};
faT=function(D){var t=_.b_(),H,e=_.O((H=D.response)==null?void 0:H.frameworkUpdates,t5),V;H=_.O((V=D.playerResponse)==null?void 0:V.frameworkUpdates,t5);var b;D=_.O((b=D.reelWatchSequenceResponse)==null?void 0:b.frameworkUpdates,t5);e&&_.UO(e,t);H&&_.UO(H,t);D&&_.UO(D,t)};
L0T=function(D){var t;_.r("enable_redirect_linking_for_desktop_web_client")&&((t=window.location.hash)==null?0:t.includes("redirect_state"))&&D.url&&(D.url=D.url.toString()+window.location.hash)};
JxV=function(D){var t=_.qS(),H=t.resolve(o6);t=t.resolve(_.AxV);D.endpoint&&(H=gJV(H,D.endpoint),H.content&&D.response&&_.WX(t,D.response,H.content),H.player&&D.playerResponse&&_.WX(t,D.playerResponse,H.player),H.reelSequence&&D.reelWatchSequenceResponse&&_.WX(t,D.reelWatchSequenceResponse,H.reelSequence))};
I6=function(D,t){XQ8(t);faT(t);var H;(t==null?0:t.url)&&((H=window.location.hash)==null?0:H.includes("redirect_state"))&&(L0T(t),(H=jlK(t.url))&&_.ET(D.root,"yt-initialize-third-party",[H,t]));JxV(t);H=_.qS();var e=H.resolve(Y9D);t.playerResponse&&H.resolve(laD).handleResponse(t.playerResponse);if(t.playerResponse){H=void 0;if(_.r("ab_v_vid_sig")&&t.endpoint){var V,b=(V=_.O(t.endpoint,_.Hh))!=null?V:_.O(t.endpoint,_.C_);b&&(H=b.videoId)}vJ$(e,t.playerResponse,H)}t.playerResponse&&Jk$(t.playerResponse)&&
_.r("web_enable_ab_rsp_cl")?wi3().then(function(){pQA(e,t.playerResponse);MP(D,t)}):MP(D,t)};
xRD=function(D){if(D=D.root.data){var t=_.qS().resolve(dRA);D.endpoint&&(D.response&&t.handleResponse(D.response,void 0,document.querySelector("ytd-app")),D.playerResponse&&t.handleResponse(D.playerResponse),D.reelWatchSequenceResponse&&t.handleResponse(D.reelWatchSequenceResponse))}};
RVD=function(D){var t,H,e,V,b,a;return _.Z(function(w){switch(w.nextAddress){case 1:t=window;if(!t.getDataPromise){w.jumpTo(2);break}_.$p(w,3);return w.yield(t.getDataPromise(),5);case 5:H=w.yieldResult;I6(D,H);_.yM(w,4);break;case 3:return _.Pv(w),w.yield(PX(),6);case 6:e=w.yieldResult,MP(D,e);case 4:return w.return();case 2:if(!_.r("sw_nav_preload_pbj")){w.jumpTo(7);break}t.fetchInitialData=function(){var h;return _.Z(function(K){if(K.nextAddress==1)return K.yield(PX(),2);h=K.yieldResult;MP(D,h);
_.n2(K)})};
if(t.getInitialData){t.loadInitialData=function(h){I6(D,h)};
V=t.getInitialData();t.getInitialData=void 0;I6(D,V);w.jumpTo(8);break}t.fetchInitialData=void 0;return w.yield(PX(),9);case 9:b=w.yieldResult,MP(D,b);case 8:return w.return();case 7:t.getInitialData?(a=t.getInitialData(),t.getInitialData=void 0,I6(D,a)):t.loadInitialData=function(h){I6(D,h)},_.n2(w)}})};
uED=function(D){var t=0;return function(){return t<D.length?{done:!1,value:D[t++]}:{done:!0}}};
W0V=typeof Object.defineProperties=="function"?Object.defineProperty:function(D,t,H){if(D==Array.prototype||D==Object.prototype)return D;D[t]=H.value;return D};
Ia3=function(D){D=["object"==typeof globalThis&&globalThis,D,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var t=0;t<D.length;++t){var H=D[t];if(H&&H.Math==Math)return H}throw Error("a");};
_.ql=Ia3(this);Qd=function(D,t){if(t)a:{var H=_.ql;D=D.split(".");for(var e=0;e<D.length-1;e++){var V=D[e];if(!(V in H))break a;H=H[V]}D=D[D.length-1];e=H[D];t=t(e);t!=e&&t!=null&&W0V(H,D,{configurable:!0,writable:!0,value:t})}};
Qd("Symbol",function(D){if(D)return D;var t=function(b,a){this.$jscomp$symbol$id_=b;W0V(this,"description",{configurable:!0,writable:!0,value:a})};
t.prototype.toString=function(){return this.$jscomp$symbol$id_};
var H="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",e=0,V=function(b){if(this instanceof V)throw new TypeError("b");return new t(H+(b||"")+"_"+e++,b)};
return V});
Qd("Symbol.iterator",function(D){if(D)return D;D=Symbol("c");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),H=0;H<t.length;H++){var e=_.ql[t[H]];typeof e==="function"&&typeof e.prototype[D]!="function"&&W0V(e.prototype,D,{configurable:!0,writable:!0,value:function(){return Qeu(uED(this))}})}return D});
Qd("Symbol.asyncIterator",function(D){return D?D:Symbol("d")});
var Qeu=function(D){D={next:D};D[Symbol.iterator]=function(){return this};
return D},yxX=typeof Object.create=="function"?Object.create:function(D){var t=function(){};
t.prototype=D;return new t},BXK=function(){function D(){function H(){}
new H;Reflect.construct(H,[],function(){});
return new H instanceof H}
if(typeof Reflect!="undefined"&&Reflect.construct){if(D())return Reflect.construct;var t=Reflect.construct;return function(H,e,V){H=t(H,e);V&&Reflect.setPrototypeOf(H,V.prototype);return H}}return function(H,e,V){V===void 0&&(V=H);
V=yxX(V.prototype||Object.prototype);return Function.prototype.apply.call(H,V,e)||V}}(),zVu;
if(typeof Object.setPrototypeOf=="function")zVu=Object.setPrototypeOf;else{var DeV;a:{var tOk={a:!0},Hd8={};try{Hd8.__proto__=tOk;DeV=Hd8.a;break a}catch(D){}DeV=!1}zVu=DeV?function(D,t){D.__proto__=t;if(D.__proto__!==t)throw new TypeError("e`"+D);return D}:null}yd=zVu;
_.P=function(D,t){D.prototype=yxX(t.prototype);D.prototype.constructor=D;if(yd)yd(D,t);else for(var H in t)if(H!="prototype")if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(t,H);e&&Object.defineProperty(D,H,e)}else D[H]=t[H];D.superClass_=t.prototype};
_.F=function(D){var t=typeof Symbol!="undefined"&&Symbol.iterator&&D[Symbol.iterator];if(t)return t.call(D);if(typeof D.length=="number")return{next:uED(D)};throw Error("f`"+String(D));};
D_=function(D){for(var t,H=[];!(t=D.next()).done;)H.push(t.value);return H};
_.A6=function(D){return D instanceof Array?D:D_(_.F(D))};
_.zk=function(D){return BX(D,D)};
BX=function(D,t){D.raw=t;Object.freeze&&(Object.freeze(D),Object.freeze(t));return D};
Dj=function(D,t){return Object.prototype.hasOwnProperty.call(D,t)};
eQA=function(D){if(D==null)throw new TypeError("g");return Object(D)};
VO6=typeof Object.assign=="function"?Object.assign:function(D,t){D=eQA(D);for(var H=1;H<arguments.length;H++){var e=arguments[H];if(e)for(var V in e)Dj(e,V)&&(D[V]=e[V])}return D};
Qd("Object.assign",function(D){return D||VO6});
var tM=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},bdA=function(D){if(D.isRunning_)throw new TypeError("i");
D.isRunning_=!0};
tM.prototype.JSC$8724_next_=function(D){this.yieldResult=D};
var qZK=function(D,t){D.abruptCompletion_={exception:t,isException:!0};D.nextAddress=D.catchAddress_||D.finallyAddress_};
tM.prototype.return=function(D){this.abruptCompletion_={return:D};this.nextAddress=this.finallyAddress_};
tM.prototype.yield=function(D,t){this.nextAddress=t;return{value:D}};
tM.prototype.jumpTo=function(D){this.nextAddress=D};
_.n2=function(D){D.nextAddress=0};
_.$p=function(D,t,H){D.catchAddress_=t;H!=void 0&&(D.finallyAddress_=H)};
_.Ok=function(D,t){D.catchAddress_=0;D.finallyAddress_=t||0};
_.yM=function(D,t,H){D.nextAddress=t;D.catchAddress_=H||0};
_.Pv=function(D,t){D.catchAddress_=t||0;t=D.abruptCompletion_.exception;D.abruptCompletion_=null;return t};
_.rN=function(D,t,H,e){e?D.finallyContexts_[e]=D.abruptCompletion_:D.finallyContexts_=[D.abruptCompletion_];D.catchAddress_=t||0;D.finallyAddress_=H||0};
_.ox=function(D,t,H){H=D.finallyContexts_.splice(H||0)[0];(H=D.abruptCompletion_=D.abruptCompletion_||H)?H.isException?D.nextAddress=D.catchAddress_||D.finallyAddress_:H.jumpTo!=void 0&&D.finallyAddress_<H.jumpTo?(D.nextAddress=H.jumpTo,D.abruptCompletion_=null):D.nextAddress=D.finallyAddress_:D.nextAddress=t};
FsX=function(D){this.JSC$8729_context_=new tM;this.program_=D};
wGV=function(D,t){bdA(D.JSC$8729_context_);var H=D.JSC$8729_context_.yieldAllIterator_;if(H)return az$(D,"return"in H?H["return"]:function(e){return{value:e,done:!0}},t,D.JSC$8729_context_.return);
D.JSC$8729_context_.return(t);return Hg(D)};
az$=function(D,t,H,e){try{var V=t.call(D.JSC$8729_context_.yieldAllIterator_,H);if(!(V instanceof Object))throw new TypeError("h`"+V);if(!V.done)return D.JSC$8729_context_.isRunning_=!1,V;var b=V.value}catch(a){return D.JSC$8729_context_.yieldAllIterator_=null,qZK(D.JSC$8729_context_,a),Hg(D)}D.JSC$8729_context_.yieldAllIterator_=null;e.call(D.JSC$8729_context_,b);return Hg(D)};
Hg=function(D){for(;D.JSC$8729_context_.nextAddress;)try{var t=D.program_(D.JSC$8729_context_);if(t)return D.JSC$8729_context_.isRunning_=!1,{value:t.value,done:!1}}catch(H){D.JSC$8729_context_.yieldResult=void 0,qZK(D.JSC$8729_context_,H)}D.JSC$8729_context_.isRunning_=!1;if(D.JSC$8729_context_.abruptCompletion_){t=D.JSC$8729_context_.abruptCompletion_;D.JSC$8729_context_.abruptCompletion_=null;if(t.isException)throw t.exception;return{value:t.return,done:!0}}return{value:void 0,done:!0}};
Zd6=function(D){this.next=function(t){bdA(D.JSC$8729_context_);D.JSC$8729_context_.yieldAllIterator_?t=az$(D,D.JSC$8729_context_.yieldAllIterator_.next,t,D.JSC$8729_context_.JSC$8724_next_):(D.JSC$8729_context_.JSC$8724_next_(t),t=Hg(D));return t};
this.throw=function(t){bdA(D.JSC$8729_context_);D.JSC$8729_context_.yieldAllIterator_?t=az$(D,D.JSC$8729_context_.yieldAllIterator_["throw"],t,D.JSC$8729_context_.JSC$8724_next_):(qZK(D.JSC$8729_context_,t),t=Hg(D));return t};
this.return=function(t){return wGV(D,t)};
this[Symbol.iterator]=function(){return this}};
_.sG=function(D,t){t=new Zd6(new FsX(t));yd&&D.prototype&&yd(t,D.prototype);return t};
sUD=function(D){function t(e){return D.next(e)}
function H(e){return D.throw(e)}
return new Promise(function(e,V){function b(a){a.done?e(a.value):Promise.resolve(a.value).then(t,H).then(b,V)}
b(D.next())})};
_.Z=function(D){return sUD(new Zd6(new FsX(D)))};
_.iF=function(D){var t=D[Symbol.asyncIterator];return t!==void 0?t.call(D):new hQ8(_.F(D))};
hQ8=function(D){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return D};
this.next=function(t){return Promise.resolve(D.next(t))};
this["throw"]=function(t){return new Promise(function(H,e){var V=D["throw"];V!==void 0?H(V.call(D,t)):(H=D["return"],H!==void 0&&H.call(D),e(new TypeError("j")))})};
D["return"]!==void 0&&(this["return"]=function(t){return Promise.resolve(D["return"](t))})};
_.RE=function(){for(var D=Number(this),t=[],H=D;H<arguments.length;H++)t[H-D]=arguments[H];return t};
_.h8=function(D){return D};
Qd("globalThis",function(D){return D||_.ql});
Qd("Reflect",function(D){return D?D:{}});
Qd("Reflect.construct",function(){return BXK});
Qd("Reflect.setPrototypeOf",function(D){return D?D:yd?function(t,H){try{return yd(t,H),!0}catch(e){return!1}}:null});
Qd("Promise",function(D){function t(){this.batch_=null}
function H(a){return a instanceof V?a:new V(function(w){w(a)})}
if(D&&(typeof _.ql.PromiseRejectionEvent!=="undefined"||!_.ql.Promise||_.ql.Promise.toString().indexOf("[native code]")===-1))return D;t.prototype.asyncExecute=function(a){if(this.batch_==null){this.batch_=[];var w=this;this.asyncExecuteFunction(function(){w.executeBatch_()})}this.batch_.push(a)};
var e=_.ql.setTimeout;t.prototype.asyncExecuteFunction=function(a){e(a,0)};
t.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var a=this.batch_;this.batch_=[];for(var w=0;w<a.length;++w){var h=a[w];a[w]=null;try{h()}catch(K){this.asyncThrow_(K)}}}this.batch_=null};
t.prototype.asyncThrow_=function(a){this.asyncExecuteFunction(function(){throw a;})};
var V=function(a){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var w=this.createResolveAndReject_();try{a(w.resolve,w.reject)}catch(h){w.reject(h)}};
V.prototype.createResolveAndReject_=function(){function a(K){return function(N){h||(h=!0,K.call(w,N))}}
var w=this,h=!1;return{resolve:a(this.resolveTo_),reject:a(this.JSC$8757_reject_)}};
V.prototype.resolveTo_=function(a){if(a===this)this.JSC$8757_reject_(new TypeError("n"));else if(a instanceof V)this.settleSameAsPromise_(a);else{a:switch(typeof a){case "object":var w=a!=null;break a;case "function":w=!0;break a;default:w=!1}w?this.resolveToNonPromiseObj_(a):this.fulfill_(a)}};
V.prototype.resolveToNonPromiseObj_=function(a){var w=void 0;try{w=a.then}catch(h){this.JSC$8757_reject_(h);return}typeof w=="function"?this.settleSameAsThenable_(w,a):this.fulfill_(a)};
V.prototype.JSC$8757_reject_=function(a){this.settle_(2,a)};
V.prototype.fulfill_=function(a){this.settle_(1,a)};
V.prototype.settle_=function(a,w){if(this.state_!=0)throw Error("o`"+a+"`"+w+"`"+this.state_);this.state_=a;this.result_=w;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
V.prototype.scheduleUnhandledRejectionCheck_=function(){var a=this;e(function(){if(a.notifyUnhandledRejection_()){var w=_.ql.console;typeof w!=="undefined"&&w.error(a.result_)}},1)};
V.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var a=_.ql.CustomEvent,w=_.ql.Event,h=_.ql.dispatchEvent;if(typeof h==="undefined")return!0;typeof a==="function"?a=new a("unhandledrejection",{cancelable:!0}):typeof w==="function"?a=new w("unhandledrejection",{cancelable:!0}):(a=_.ql.document.createEvent("CustomEvent"),a.initCustomEvent("unhandledrejection",!1,!0,a));a.promise=this;a.reason=this.result_;return h(a)};
V.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var a=0;a<this.onSettledCallbacks_.length;++a)b.asyncExecute(this.onSettledCallbacks_[a]);this.onSettledCallbacks_=null}};
var b=new t;V.prototype.settleSameAsPromise_=function(a){var w=this.createResolveAndReject_();a.callWhenSettled_(w.resolve,w.reject)};
V.prototype.settleSameAsThenable_=function(a,w){var h=this.createResolveAndReject_();try{a.call(w,h.resolve,h.reject)}catch(K){h.reject(K)}};
V.prototype.then=function(a,w){function h(T,c){return typeof T=="function"?function(U){try{K(T(U))}catch(S){N(S)}}:c}
var K,N,k=new V(function(T,c){K=T;N=c});
this.callWhenSettled_(h(a,K),h(w,N));return k};
V.prototype.catch=function(a){return this.then(void 0,a)};
V.prototype.callWhenSettled_=function(a,w){function h(){switch(K.state_){case 1:a(K.result_);break;case 2:w(K.result_);break;default:throw Error("p`"+K.state_);}}
var K=this;this.onSettledCallbacks_==null?b.asyncExecute(h):this.onSettledCallbacks_.push(h);this.isRejectionHandled_=!0};
V.resolve=H;V.reject=function(a){return new V(function(w,h){h(a)})};
V.race=function(a){return new V(function(w,h){for(var K=_.F(a),N=K.next();!N.done;N=K.next())H(N.value).callWhenSettled_(w,h)})};
V.all=function(a){var w=_.F(a),h=w.next();return h.done?H([]):new V(function(K,N){function k(U){return function(S){T[U]=S;c--;c==0&&K(T)}}
var T=[],c=0;do T.push(void 0),c++,H(h.value).callWhenSettled_(k(T.length-1),N),h=w.next();while(!h.done)})};
return V});
var ek=function(D,t,H){if(D==null)throw new TypeError("q`"+H);if(t instanceof RegExp)throw new TypeError("r`"+H);return D+""};
Qd("String.prototype.startsWith",function(D){return D?D:function(t,H){var e=ek(this,t,"startsWith"),V=e.length,b=t.length;H=Math.max(0,Math.min(H|0,e.length));for(var a=0;a<b&&H<V;)if(e[H++]!=t[a++])return!1;return a>=b}});
Qd("Object.setPrototypeOf",function(D){return D||yd});
Qd("Symbol.dispose",function(D){return D?D:Symbol("s")});
Qd("SuppressedError",function(D){function t(H,e,V){if(!(this instanceof t))return new t(H,e,V);V=Error(V);"stack"in V&&(this.stack=V.stack);this.message=V.message;this.error=H;this.suppressed=e}
if(D)return D;_.P(t,Error);t.prototype.name="SuppressedError";return t});
Qd("Array.from",function(D){return D?D:function(t,H,e){H=H!=null?H:function(w){return w};
var V=[],b=typeof Symbol!="undefined"&&Symbol.iterator&&t[Symbol.iterator];if(typeof b=="function"){t=b.call(t);for(var a=0;!(b=t.next()).done;)V.push(H.call(e,b.value,a++))}else for(b=t.length,a=0;a<b;a++)V.push(H.call(e,t[a],a));return V}});
var GvV=function(D,t,H){D instanceof String&&(D=String(D));for(var e=D.length,V=0;V<e;V++){var b=D[V];if(t.call(H,b,V,D))return{i:V,v:b}}return{i:-1,v:void 0}};
Qd("Array.prototype.find",function(D){return D?D:function(t,H){return GvV(this,t,H).v}});
Qd("WeakMap",function(D){function t(){}
function H(h){var K=typeof h;return K==="object"&&h!==null||K==="function"}
function e(h){if(!Dj(h,b)){var K=new t;W0V(h,b,{value:K})}}
function V(h){var K=Object[h];K&&(Object[h]=function(N){if(N instanceof t)return N;Object.isExtensible(N)&&e(N);return K(N)})}
if(function(){if(!D||!Object.seal)return!1;try{var h=Object.seal({}),K=Object.seal({}),N=new D([[h,2],[K,3]]);if(N.get(h)!=2||N.get(K)!=3)return!1;N.delete(h);N.set(K,4);return!N.has(h)&&N.get(K)==4}catch(k){return!1}}())return D;
var b="$jscomp_hidden_"+Math.random();V("freeze");V("preventExtensions");V("seal");var a=0,w=function(h){this.JSC$8765_id_=(a+=Math.random()+1).toString();if(h){h=_.F(h);for(var K;!(K=h.next()).done;)K=K.value,this.set(K[0],K[1])}};
w.prototype.set=function(h,K){if(!H(h))throw Error("t");e(h);if(!Dj(h,b))throw Error("u`"+h);h[b][this.JSC$8765_id_]=K;return this};
w.prototype.get=function(h){return H(h)&&Dj(h,b)?h[b][this.JSC$8765_id_]:void 0};
w.prototype.has=function(h){return H(h)&&Dj(h,b)&&Dj(h[b],this.JSC$8765_id_)};
w.prototype.delete=function(h){return H(h)&&Dj(h,b)&&Dj(h[b],this.JSC$8765_id_)?delete h[b][this.JSC$8765_id_]:!1};
return w});
Qd("Map",function(D){if(function(){if(!D||typeof D!="function"||!D.prototype.entries||typeof Object.seal!="function")return!1;try{var w=Object.seal({x:4}),h=new D(_.F([[w,"s"]]));if(h.get(w)!="s"||h.size!=1||h.get({x:4})||h.set({x:4},"t")!=h||h.size!=2)return!1;var K=h.entries(),N=K.next();if(N.done||N.value[0]!=w||N.value[1]!="s")return!1;N=K.next();return N.done||N.value[0].x!=4||N.value[1]!="t"||!K.next().done?!1:!0}catch(k){return!1}}())return D;
var t=new WeakMap,H=function(w){this[0]={};this[1]=b();this.size=0;if(w){w=_.F(w);for(var h;!(h=w.next()).done;)h=h.value,this.set(h[0],h[1])}};
H.prototype.set=function(w,h){w=w===0?0:w;var K=e(this,w);K.list||(K.list=this[0][K.id]=[]);K.entry?K.entry.value=h:(K.entry={next:this[1],previous:this[1].previous,head:this[1],key:w,value:h},K.list.push(K.entry),this[1].previous.next=K.entry,this[1].previous=K.entry,this.size++);return this};
H.prototype.delete=function(w){w=e(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};
H.prototype.clear=function(){this[0]={};this[1]=this[1].previous=b();this.size=0};
H.prototype.has=function(w){return!!e(this,w).entry};
H.prototype.get=function(w){return(w=e(this,w).entry)&&w.value};
H.prototype.entries=function(){return V(this,function(w){return[w.key,w.value]})};
H.prototype.keys=function(){return V(this,function(w){return w.key})};
H.prototype.values=function(){return V(this,function(w){return w.value})};
H.prototype.forEach=function(w,h){for(var K=this.entries(),N;!(N=K.next()).done;)N=N.value,w.call(h,N[1],N[0],this)};
H.prototype[Symbol.iterator]=H.prototype.entries;var e=function(w,h){var K=h&&typeof h;K=="object"||K=="function"?t.has(h)?K=t.get(h):(K=""+ ++a,t.set(h,K)):K="p_"+h;var N=w[0][K];if(N&&Dj(w[0],K))for(w=0;w<N.length;w++){var k=N[w];if(h!==h&&k.key!==k.key||h===k.key)return{id:K,list:N,index:w,entry:k}}return{id:K,list:N,index:-1,entry:void 0}},V=function(w,h){var K=w[1];
return Qeu(function(){if(K){for(;K.head!=w[1];)K=K.previous;for(;K.next!=K.head;)return K=K.next,{done:!1,value:h(K)};K=null}return{done:!0,value:void 0}})},b=function(){var w={};
return w.previous=w.next=w.head=w},a=0;
return H});
Qd("Set",function(D){if(function(){if(!D||typeof D!="function"||!D.prototype.entries||typeof Object.seal!="function")return!1;try{var H=Object.seal({x:4}),e=new D(_.F([H]));if(!e.has(H)||e.size!=1||e.add(H)!=e||e.size!=1||e.add({x:4})!=e||e.size!=2)return!1;var V=e.entries(),b=V.next();if(b.done||b.value[0]!=H||b.value[1]!=H)return!1;b=V.next();return b.done||b.value[0]==H||b.value[0].x!=4||b.value[1]!=b.value[0]?!1:V.next().done}catch(a){return!1}}())return D;
var t=function(H){this.JSC$8779_map_=new Map;if(H){H=_.F(H);for(var e;!(e=H.next()).done;)this.add(e.value)}this.size=this.JSC$8779_map_.size};
t.prototype.add=function(H){H=H===0?0:H;this.JSC$8779_map_.set(H,H);this.size=this.JSC$8779_map_.size;return this};
t.prototype.delete=function(H){H=this.JSC$8779_map_.delete(H);this.size=this.JSC$8779_map_.size;return H};
t.prototype.clear=function(){this.JSC$8779_map_.clear();this.size=0};
t.prototype.has=function(H){return this.JSC$8779_map_.has(H)};
t.prototype.entries=function(){return this.JSC$8779_map_.entries()};
t.prototype.values=function(){return this.JSC$8779_map_.values()};
t.prototype.keys=t.prototype.values;t.prototype[Symbol.iterator]=t.prototype.values;t.prototype.forEach=function(H,e){var V=this;this.JSC$8779_map_.forEach(function(b){return H.call(e,b,b,V)})};
return t});
Qd("Math.log2",function(D){return D?D:function(t){return Math.log(t)/Math.LN2}});
Qd("Object.values",function(D){return D?D:function(t){var H=[],e;for(e in t)Dj(t,e)&&H.push(t[e]);return H}});
Qd("Object.is",function(D){return D?D:function(t,H){return t===H?t!==0||1/t===1/H:t!==t&&H!==H}});
Qd("Array.prototype.includes",function(D){return D?D:function(t,H){var e=this;e instanceof String&&(e=String(e));var V=e.length;H=H||0;for(H<0&&(H=Math.max(H+V,0));H<V;H++){var b=e[H];if(b===t||Object.is(b,t))return!0}return!1}});
Qd("String.prototype.includes",function(D){return D?D:function(t,H){return ek(this,t,"includes").indexOf(t,H||0)!==-1}});
Qd("Object.entries",function(D){return D?D:function(t){var H=[],e;for(e in t)Dj(t,e)&&H.push([e,t[e]]);return H}});
Qd("Number.isFinite",function(D){return D?D:function(t){return typeof t!=="number"?!1:!isNaN(t)&&t!==Infinity&&t!==-Infinity}});
Qd("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Qd("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Qd("Number.isInteger",function(D){return D?D:function(t){return Number.isFinite(t)?t===Math.floor(t):!1}});
Qd("Number.isSafeInteger",function(D){return D?D:function(t){return Number.isInteger(t)&&Math.abs(t)<=Number.MAX_SAFE_INTEGER}});
Qd("String.prototype.endsWith",function(D){return D?D:function(t,H){var e=ek(this,t,"endsWith");H===void 0&&(H=e.length);H=Math.max(0,Math.min(H|0,e.length));for(var V=t.length;V>0&&H>0;)if(e[--H]!=t[--V])return!1;return V<=0}});
var EtA=function(D,t){D instanceof String&&(D+="");var H=0,e=!1,V={next:function(){if(!e&&H<D.length){var b=H++;return{value:t(b,D[b]),done:!1}}e=!0;return{done:!0,value:void 0}}};
V[Symbol.iterator]=function(){return V};
return V};
Qd("Array.prototype.entries",function(D){return D?D:function(){return EtA(this,function(t,H){return[t,H]})}});
Qd("Math.trunc",function(D){return D?D:function(t){t=Number(t);if(isNaN(t)||t===Infinity||t===-Infinity||t===0)return t;var H=Math.floor(Math.abs(t));return t<0?-H:H}});
Qd("Number.isNaN",function(D){return D?D:function(t){return typeof t==="number"&&isNaN(t)}});
Qd("Array.prototype.keys",function(D){return D?D:function(){return EtA(this,function(t){return t})}});
Qd("Array.prototype.values",function(D){return D?D:function(){return EtA(this,function(t,H){return H})}});
Qd("Array.prototype.fill",function(D){return D?D:function(t,H,e){var V=this.length||0;H<0&&(H=Math.max(0,V+H));if(e==null||e>V)e=V;e=Number(e);e<0&&(e=Math.max(0,V+e));for(H=Number(H||0);H<e;H++)this[H]=t;return this}});
var VP=function(D){return D?D:Array.prototype.fill};
Qd("Int8Array.prototype.fill",VP);Qd("Uint8Array.prototype.fill",VP);Qd("Uint8ClampedArray.prototype.fill",VP);Qd("Int16Array.prototype.fill",VP);Qd("Uint16Array.prototype.fill",VP);Qd("Int32Array.prototype.fill",VP);Qd("Uint32Array.prototype.fill",VP);Qd("Float32Array.prototype.fill",VP);Qd("Float64Array.prototype.fill",VP);
Qd("Object.fromEntries",function(D){return D?D:function(t){var H={};if(!(Symbol.iterator in t))throw new TypeError("v`"+t);t=t[Symbol.iterator].call(t);for(var e=t.next();!e.done;e=t.next()){e=e.value;if(Object(e)!==e)throw new TypeError("w");H[e[0]]=e[1]}return H}});
Qd("String.prototype.replaceAll",function(D){return D?D:function(t,H){if(t instanceof RegExp&&!t.global)throw new TypeError("x");return t instanceof RegExp?this.replace(t,H):this.replace(new RegExp(String(t).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),H)}});
Qd("Object.getOwnPropertySymbols",function(D){return D?D:function(){return[]}});
Qd("String.prototype.repeat",function(D){return D?D:function(t){var H=ek(this,null,"repeat");if(t<0||t>1342177279)throw new RangeError("y");t|=0;for(var e="";t;)if(t&1&&(e+=H),t>>>=1)H+=H;return e}});
Qd("Array.prototype.findIndex",function(D){return D?D:function(t,H){return GvV(this,t,H).i}});
Qd("Array.prototype.flatMap",function(D){return D?D:function(t,H){var e=[];Array.prototype.forEach.call(this,function(V,b){V=t.call(H,V,b,this);Array.isArray(V)?e.push.apply(e,V):e.push(V)});
return e}});
Qd("String.prototype.codePointAt",function(D){return D?D:function(t){var H=ek(this,null,"codePointAt"),e=H.length;t=Number(t)||0;if(t>=0&&t<e){t|=0;var V=H.charCodeAt(t);if(V<55296||V>56319||t+1===e)return V;t=H.charCodeAt(t+1);return t<56320||t>57343?V:(V-55296)*1024+t+9216}}});
Qd("String.fromCodePoint",function(D){return D?D:function(t){for(var H="",e=0;e<arguments.length;e++){var V=Number(arguments[e]);if(V<0||V>1114111||V!==Math.floor(V))throw new RangeError("z`"+V);V<=65535?H+=String.fromCharCode(V):(V-=65536,H+=String.fromCharCode(V>>>10&1023|55296),H+=String.fromCharCode(V&1023|56320))}return H}});
Qd("String.prototype.trimLeft",function(D){function t(){return this.replace(/^[\s\xa0]+/,"")}
return D||t});
Qd("String.prototype.trimStart",function(D){return D||String.prototype.trimLeft});
Qd("String.prototype.padStart",function(D){return D?D:function(t,H){var e=ek(this,null,"padStart");t-=e.length;H=H!==void 0?String(H):" ";return(t>0&&H?H.repeat(Math.ceil(t/H.length)).substring(0,t):"")+e}});
Qd("Promise.prototype.finally",function(D){return D?D:function(t){return this.then(function(H){return Promise.resolve(t()).then(function(){return H})},function(H){return Promise.resolve(t()).then(function(){throw H;
})})}});
Qd("Math.imul",function(D){return D?D:function(t,H){t=Number(t);H=Number(H);var e=t&65535,V=H&65535;return e*V+((t>>>16&65535)*V+e*(H>>>16&65535)<<16>>>0)|0}});
Qd("Object.hasOwn",function(D){return D?D:function(t,H){return Object.prototype.hasOwnProperty.call(t,H)}});
Qd("Math.sign",function(D){return D?D:function(t){t=Number(t);return t===0||isNaN(t)?t:t>0?1:-1}});
Qd("Array.prototype.flat",function(D){return D?D:function(t){t=t===void 0?1:t;var H=[];Array.prototype.forEach.call(this,function(e){Array.isArray(e)&&t>0?(e=Array.prototype.flat.call(e,t-1),H.push.apply(H,e)):H.push(e)});
return H}});
Qd("String.raw",function(D){return D?D:function(t,H){t=eQA(t);for(var e=t.raw,V=e.length,b="",a=0;a<V;++a)b+=e[a],a+1<V&&a+1<arguments.length&&(b+=String(arguments[a+1]));return b}});
Qd("Reflect.ownKeys",function(D){return D?D:function(t){var H=[],e=Object.getOwnPropertyNames(t);t=Object.getOwnPropertySymbols(t);for(var V=0;V<e.length;V++)(e[V].substring(0,14)=="jscomp_symbol_"?t:H).push(e[V]);return H.concat(t)}});
Qd("Object.getOwnPropertyDescriptors",function(D){return D?D:function(t){for(var H={},e=Reflect.ownKeys(t),V=0;V<e.length;V++)H[e[V]]=Object.getOwnPropertyDescriptor(t,e[V]);return H}});
Qd("WeakSet",function(D){if(function(){if(!D||!Object.seal)return!1;try{var H=Object.seal({}),e=Object.seal({}),V=new D([H]);if(!V.has(H)||V.has(e))return!1;V.delete(H);V.add(e);return!V.has(H)&&V.has(e)}catch(b){return!1}}())return D;
var t=function(H){this.JSC$8791_map_=new WeakMap;if(H){H=_.F(H);for(var e;!(e=H.next()).done;)this.add(e.value)}};
t.prototype.add=function(H){this.JSC$8791_map_.set(H,!0);return this};
t.prototype.has=function(H){return this.JSC$8791_map_.has(H)};
t.prototype.delete=function(H){return this.JSC$8791_map_.delete(H)};
return t});
Qd("Promise.allSettled",function(D){function t(e){return{status:"fulfilled",value:e}}
function H(e){return{status:"rejected",reason:e}}
return D?D:function(e){var V=this;e=Array.from(e,function(b){return V.resolve(b).then(t,H)});
return V.all(e)}});
Qd("Number.parseInt",function(D){return D||parseInt});
_._DumpException=window._DumpException||function(D){throw D;};
window._DumpException=_._DumpException;var KsV=window.ytcsi;KsV&&typeof KsV.tick==="function"&&KsV.tick("rses_dpj");var NDD,bZ,qG,Fz,kvR,TDV,cwk,jUV,mi,$eV;NDD=NDD||{};_.VA=this||self;_.bg=function(D,t,H){D=D.split(".");H=H||_.VA;for(var e;D.length&&(e=D.shift());)D.length||t===void 0?H[e]&&H[e]!==Object.prototype[e]?H=H[e]:H=H[e]={}:H[e]=t};
bZ=function(D,t){var H=_.RD("WIZ_global_data.oxN3nb");D=H&&H[D];return D!=null?D:t};
qG=_.VA._F_toggles_default_kevlar_base||[];Fz=function(){};
Fz.get=function(){return null};
_.QsD=null;_.RD=function(D,t){D=D.split(".");t=t||_.VA;for(var H=0;H<D.length;H++)if(t=t[D[H]],t==null)return null;return t};
_.ak=function(D){D.instance_=void 0;D.getInstance=function(){return D.instance_?D.instance_:D.instance_=new D}};
_.yV=function(D){var t=typeof D;return t!="object"?t:D?Array.isArray(D)?"array":t:"null"};
_.d6=function(D){var t=_.yV(D);return t=="array"||t=="object"&&typeof D.length=="number"};
_.Wk=function(D){var t=typeof D;return t=="object"&&D!=null||t=="function"};
_.I$=function(D){return Object.prototype.hasOwnProperty.call(D,kvR)&&D[kvR]||(D[kvR]=++TDV)};
kvR="closure_uid_"+(Math.random()*1E9>>>0);TDV=0;cwk=function(D,t,H){return D.call.apply(D.bind,arguments)};
jUV=function(D,t,H){if(!D)throw Error();if(arguments.length>2){var e=Array.prototype.slice.call(arguments,2);return function(){var V=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(V,e);return D.apply(t,V)}}return function(){return D.apply(t,arguments)}};
_.Mc=function(D,t,H){_.Mc=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?cwk:jUV;return _.Mc.apply(null,arguments)};
_.o4=function(D,t){var H=Array.prototype.slice.call(arguments,1);return function(){var e=H.slice();e.push.apply(e,arguments);return D.apply(this,e)}};
_.wU=function(){return Date.now()};
mi=function(D){return D};
_.Zj=function(D,t){function H(){}
H.prototype=t.prototype;D.superClass_=t.prototype;D.prototype=new H;D.prototype.constructor=D;D.base=function(e,V,b){for(var a=Array(arguments.length-2),w=2;w<arguments.length;w++)a[w-2]=arguments[w];return t.prototype[V].apply(e,a)}};
$eV=function(D){return D};var idK,rw$;_.d=function(D,t,H,e){var V=arguments.length,b=V<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,H):e,a;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")b=Reflect.decorate(D,t,H,e);else for(var w=D.length-1;w>=0;w--)if(a=D[w])b=(V<3?a(b):V>3?a(t,H,b):a(t,H))||b;V>3&&b&&Object.defineProperty(t,H,b)};
_.x=function(D,t){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(D,t)};
idK=function(D,t){if(t!==null&&t!==void 0){if(typeof t!=="object"&&typeof t!=="function")throw new TypeError("A");if(H===void 0){if(!Symbol.dispose)throw new TypeError("C");var H=t[Symbol.dispose]}if(typeof H!=="function")throw new TypeError("D");D.stack.push({value:t,dispose:H,async:!1})}return t};
rw$=function(D){function t(b){D.error=D.hasError?new SuppressedError(b,D.error,"An error was suppressed during disposal."):b;D.hasError=!0}
function H(){for(;e=D.stack.pop();)try{if(!e.async&&V===1)return V=0,D.stack.push(e),Promise.resolve().then(H);if(e.dispose){var b=e.dispose.call(e.value);if(e.async)return V|=2,Promise.resolve(b).then(H,function(a){t(a);return H()})}else V|=1}catch(a){t(a)}if(V===1)return D.hasError?Promise.reject(D.error):Promise.resolve();
if(D.hasError)throw D.error;}
var e,V=0;H()};var OdV="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");DuX()&&OdV.push("details:not(:has(summary))");var HKT=OdV.join(",");_.Zj(_.Hk,Error);_.Hk.prototype.name="CustomError";var UeA;var otK=void 0,PBD,nt3=typeof TextDecoder!=="undefined",s$3,ZKk=typeof String.prototype.isWellFormed==="function",wkK=typeof TextEncoder!=="undefined";var CBD;_.CN=function(D){for(var t=[],H=0,e=0;e<D.length;e++){var V=D.charCodeAt(e);V<128?t[H++]=V:(V<2048?t[H++]=V>>6|192:((V&64512)==55296&&e+1<D.length&&(D.charCodeAt(e+1)&64512)==56320?(V=65536+((V&1023)<<10)+(D.charCodeAt(++e)&1023),t[H++]=V>>18|240,t[H++]=V>>12&63|128):t[H++]=V>>12|224,t[H++]=V>>6&63|128),t[H++]=V&63|128)}return t};
CBD=function(D){for(var t=[],H=0,e=0;H<D.length;){var V=D[H++];if(V<128)t[e++]=String.fromCharCode(V);else if(V>191&&V<224){var b=D[H++];t[e++]=String.fromCharCode((V&31)<<6|b&63)}else if(V>239&&V<365){b=D[H++];var a=D[H++],w=D[H++];V=((V&7)<<18|(b&63)<<12|(a&63)<<6|w&63)-65536;t[e++]=String.fromCharCode(55296+(V>>10));t[e++]=String.fromCharCode(56320+(V&1023))}else b=D[H++],a=D[H++],t[e++]=String.fromCharCode((V&15)<<12|(b&63)<<6|a&63)}return t.join("")};var KK=String.prototype.trim?function(D){return D.trim()}:function(D){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(D)[1]},meV=/&/g,MOu=/</g,SZD=/>/g,XGV=/"/g,fz$=/'/g,LsX=/\x00/g,AwV=/[\x00&<>"']/;var st=!!(qG[0]>>15&1),gtA=!!(qG[0]&1024),Jwu=!!(qG[0]>>16&1),YZV=!!(qG[0]&8),lzV=!!(qG[0]&2),vt$=!!(qG[0]&4),pGV=!!(qG[0]&16),de8=!!(qG[0]&128);var xe6=bZ(1,!0),ck=st?Jwu:bZ(610401301,!1),RQV=st?YZV:bZ(772657768,!1),uY8=st?lzV:bZ(513659523,!1),WsD=st?gtA||!vt$:bZ(568333945,!0),hr3=st?pGV:bZ(1331761403,!1),jvR=st?gtA||!de8:bZ(748402147,xe6);var $3,IzV=_.VA.navigator;$3=IzV?IzV.userAgentData||null:null;var zr;_.JT=function(D,t){return Array.prototype.indexOf.call(D,t,void 0)};
_.ID=function(D,t,H){Array.prototype.forEach.call(D,t,H)};
_.hM=function(D,t,H){return Array.prototype.filter.call(D,t,H)};
_.Yz=function(D,t,H){return Array.prototype.map.call(D,t,H)};
zr=function(D,t,H){return Array.prototype.some.call(D,t,H)};
_.ppD=function(D,t,H){return Array.prototype.every.call(D,t,H)};var GE=function(D){GE[" "](D);return D};
GE[" "]=function(){};
var fi8=function(D,t){try{return GE(D[t]),!0}catch(H){}return!1},Pg8=function(D,t,H,e){e=e?e(t):t;
return Object.prototype.hasOwnProperty.call(D,e)?D[e]:D[e]=H(t)};var QUk,eE,ywD,BDA,DZ$,ty3,XbX,HhD,eb6,VyV,d66,qlX,FBV,sLV,hbA,GQV;_.d0V=function(){return _.VA.navigator||null};
QUk=KDV();_.Et=N6D();eE=OD("Edge");ywD=eE||_.Et;_.Ka=OD("Gecko")&&!(_.GV(_.TV(),"WebKit")&&!OD("Edge"))&&!(OD("Trident")||OD("MSIE"))&&!OD("Edge");_.NG=_.GV(_.TV(),"WebKit")&&!OD("Edge");BDA=_.NG&&OD("Mobile");_.zQD=_.UuX();DZ$=_.o3V();ty3=(mD()?$3.platform==="Linux":OD("Linux"))||_.P8D();XbX=_.rTA();HhD=OKK();eb6=OD("iPad");VyV=OD("iPod");_.bhV=_.SV();d66=_.GV(_.TV(),"KaiOS");qlX=function(){var D=_.VA.document;return D?D.documentMode:void 0};
a:{var a$u="",w0V=function(){var D=_.TV();if(_.Ka)return/rv:([^\);]+)(\)|;)/.exec(D);if(eE)return/Edge\/([\d\.]+)/.exec(D);if(_.Et)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(D);if(_.NG)return/WebKit\/(\S+)/.exec(D);if(QUk)return/(?:Version)[ \/]?(\S+)/.exec(D)}();
w0V&&(a$u=w0V?w0V[1]:"");if(_.Et){var ZhK=qlX();if(ZhK!=null&&ZhK>parseFloat(a$u)){FBV=String(ZhK);break a}}FBV=a$u}sLV=FBV;hbA={};_.kf=function(D){return Pg8(hbA,D,function(){return _.Nu(sLV,D)>=0})};
if(_.VA.document&&_.Et){var E2V=qlX();GQV=E2V?E2V:parseInt(sLV,10)||void 0}else GQV=void 0;_.KBR=GQV;var dQk,xQD,Nz6;_.TE=Pk();dQk=OKK()||OD("iPod");xQD=OD("iPad");Nz6=_.cT3();_.cg=_.CK();_.di=_.T6V()&&!_.SV();var kQD,jk,z53,dDV,cOD,Tz6;kQD={};jk=null;z53=_.Ka||_.NG||typeof _.VA.btoa=="function";_.XF=function(D,t){t===void 0&&(t=0);Tz6();t=kQD[t];for(var H=Array(Math.floor(D.length/3)),e=t[64]||"",V=0,b=0;V<D.length-2;V+=3){var a=D[V],w=D[V+1],h=D[V+2],K=t[a>>2];a=t[(a&3)<<4|w>>4];w=t[(w&15)<<2|h>>6];h=t[h&63];H[b++]=K+a+w+h}K=0;h=e;switch(D.length-V){case 2:K=D[V+1],h=t[(K&15)<<2]||e;case 1:D=D[V],H[b]=t[D>>2]+t[(D&3)<<4|K>>4]+h+e}return H.join("")};
dDV=function(D){var t="";cOD(D,function(H){t+=String.fromCharCode(H)});
return t};
_.h3A=function(D){var t=[];cOD(D,function(H){t.push(H)});
return t};
_.zV=function(D){var t=D.length,H=t*3/4;H%3?H=Math.floor(H):_.hT("=.",D[t-1])&&(H=_.hT("=.",D[t-2])?H-2:H-1);var e=new Uint8Array(H),V=0;cOD(D,function(b){e[V++]=b});
return V!==H?e.subarray(0,V):e};
cOD=function(D,t){function H(h){for(;e<D.length;){var K=D.charAt(e++),N=jk[K];if(N!=null)return N;if(!_.sD(K))throw Error("H`"+K);}return h}
Tz6();for(var e=0;;){var V=H(-1),b=H(0),a=H(64),w=H(64);if(w===64&&V===-1)break;t(V<<2|b>>4);a!=64&&(t(b<<4&240|a>>2),w!=64&&t(a<<6&192|w))}};
Tz6=function(){if(!jk){jk={};for(var D="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),t=["+/=","+/","-_=","-_.","-_"],H=0;H<5;H++){var e=D.concat(t[H].split(""));kQD[H]=e;for(var V=0;V<e.length;V++){var b=e[V];jk[b]===void 0&&(jk[b]=V)}}}};var zR3=typeof Uint8Array!=="undefined",v3T=!_.Et&&typeof btoa==="function",pkX=/[-_.]/g,YDk={"-":"+",_:"/",".":"="},ro={};var $v,$ZR;$v=function(D,t){if(t!==ro)throw Error("J");this.JSC$8825_value_=D;if(D!=null&&D.length===0)throw Error("I");};
_.Om=function(){return jLA||(jLA=new $v(null,ro))};
$ZR=function(D){return new Uint8Array(dHA(D)||0)};
$v.prototype.isEmpty=function(){return this.JSC$8825_value_==null};
$v.prototype.sizeBytes=function(){var D=dHA(this);return D?D.length:0};
var dHA=function(D){if(ro!==ro)throw Error("J");var t=D.JSC$8825_value_;t==null||zR3&&t!=null&&t instanceof Uint8Array||(typeof t==="string"?t=du8(t):(_.yV(t),t=null));return t==null?t:D.JSC$8825_value_=t},jLA;var RR6=void 0;var VV=typeof Symbol==="function"&&typeof Symbol()==="symbol",ih$=ef("jas",void 0,!0),lf3=ef(void 0,"0di"),eM=ef(void 0,"1oa"),MH=ef(void 0,Symbol()),egV=ef(void 0,"0ub"),be6=ef(void 0,"0ubs"),ohV=ef(void 0,"0ubsb"),ieu=ef(void 0,"0actk"),UF=ef("m_m","messagePrototypeMarker",!0),KiA=ef(void 0,"vps"),DHK=ef();var IVD,WD$,uY,rOX;IVD={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};WD$=Object.defineProperties;_.ba=VV?ih$:"internalArrayState";rOX=[];F6(rOX,7);uY=Object.freeze(rOX);var Pt={},sm={},Oh6=function(D,t,H){this.iterable=D;this.mapper=t;this.thisArg=H};
Oh6.prototype.next=function(){var D=this.iterable.next();D.done||(D.value=this.mapper.call(this.thisArg,D.value));return D};
Oh6.prototype[Symbol.iterator]=function(){return this};
var UZ$=Object.freeze({}),P9={};_.o2A=CQ(function(D){return D!==null&&D!==void 0});var bQu=CQ(function(D){return typeof D==="number"}),VfT=CQ(function(D){return typeof D==="string"}),Fnk=CQ(function(D){return typeof D==="boolean"}),PC3=CQ(function(D){return D!=null&&typeof D==="object"&&typeof D.then==="function"}),gxK=CQ(function(D){return typeof D==="function"}),aZ=CQ(function(D){return!!D&&(typeof D==="object"||typeof D==="function")});var qmA=typeof _.VA.BigInt==="function"&&typeof _.VA.BigInt(0)==="bigint";var ffV=CQ(function(D){return qmA?D>=n2D&&D<=CCR:D[0]==="-"?afK(D,mZV):afK(D,My8)}),mZV=Number.MIN_SAFE_INTEGER.toString(),n2D=qmA?BigInt(Number.MIN_SAFE_INTEGER):void 0,My8=Number.MAX_SAFE_INTEGER.toString(),CCR=qmA?BigInt(Number.MAX_SAFE_INTEGER):void 0;var SlR=typeof Uint8Array.prototype.slice==="function",Sf=0,A3=0,sB8;var av,GH,B9,hF,jBT;av=typeof BigInt==="function"?BigInt.asIntN:void 0;_.Ke=typeof BigInt==="function"?BigInt.asUintN:void 0;GH=Number.isSafeInteger;B9=Number.isFinite;hF=Math.trunc;jBT=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var N4X={};var y36={},X0K=function(){try{var D=function(){return BXK(Map,[],this.constructor)};
_.P(D,Map);GE(new D);return!1}catch(t){return!0}}(),$f=function(){this.JSC$8844_map_=new Map};
_.q=$f.prototype;_.q.get=function(D){return this.JSC$8844_map_.get(D)};
_.q.set=function(D,t){this.JSC$8844_map_.set(D,t);this.size=this.JSC$8844_map_.size;return this};
_.q.delete=function(D){D=this.JSC$8844_map_.delete(D);this.size=this.JSC$8844_map_.size;return D};
_.q.clear=function(){this.JSC$8844_map_.clear();this.size=this.JSC$8844_map_.size};
_.q.has=function(D){return this.JSC$8844_map_.has(D)};
_.q.entries=function(){return this.JSC$8844_map_.entries()};
_.q.keys=function(){return this.JSC$8844_map_.keys()};
_.q.values=function(){return this.JSC$8844_map_.values()};
_.q.forEach=function(D,t){return this.JSC$8844_map_.forEach(D,t)};
$f.prototype[Symbol.iterator]=function(){return this.entries()};
var Le=function(){if(X0K)return Object.setPrototypeOf($f.prototype,Map.prototype),Object.defineProperties($f.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),$f;var D=function(){return BXK(Map,[],this.constructor)};
_.P(D,Map);return D}(),Ce=function(D,t,H,e){H=H===void 0?RnT:H;
e=e===void 0?RnT:e;var V=Le.call(this)||this;V.arrayState=D[_.ba]|0;V.valueCtor=t;V.keyToApi=H;V.valueToApi=V.valueCtor?WnD:e;for(var b=0;b<D.length;b++){var a=D[b],w=H(a[0],!1,!0),h=a[1];t?h===void 0&&(h=null):h=e(a[1],!1,!0,void 0,void 0,V.arrayState);Le.prototype.set.call(V,w,h)}return V};
_.P(Ce,Le);var f$6=function(D){if(D.arrayState&2)throw Error("N");},UHR=function(D){return Array.from(Le.prototype.entries.call(D))};
_.q=Ce.prototype;_.q.clear=function(){f$6(this);Le.prototype.clear.call(this)};
_.q.delete=function(D){f$6(this);return Le.prototype.delete.call(this,this.keyToApi(D,!0,!1))};
_.q.entries=function(){if(this.valueCtor){var D=Le.prototype.keys.call(this);D=new Oh6(D,IfV,this)}else D=Le.prototype.entries.call(this);return D};
_.q.values=function(){if(this.valueCtor){var D=Le.prototype.keys.call(this);D=new Oh6(D,Ce.prototype.get,this)}else D=Le.prototype.values.call(this);return D};
_.q.forEach=function(D,t){this.valueCtor?Le.prototype.forEach.call(this,function(H,e,V){D.call(t,V.get(e),e,V)}):Le.prototype.forEach.call(this,D,t)};
_.q.set=function(D,t){f$6(this);D=this.keyToApi(D,!0,!1);return D==null?this:t==null?(Le.prototype.delete.call(this,D),this):Le.prototype.set.call(this,D,this.valueToApi(t,!0,!0,this.valueCtor,!1,this.arrayState))};
_.q.has=function(D){return Le.prototype.has.call(this,this.keyToApi(D,!1,!1))};
_.q.get=function(D){D=this.keyToApi(D,!1,!1);var t=Le.prototype.get.call(this,D);if(t!==void 0){var H=this.valueCtor;return H?(H=this.valueToApi(t,!1,!0,H,this.callToMutableOnAccess,this.arrayState),H!==t&&Le.prototype.set.call(this,D,H),H):t}};
Ce.prototype[Symbol.iterator]=function(){return this.entries()};
Ce.prototype.toJSON=void 0;var QB6;var wtV=function(){},FiA=function(D,t){for(var H in D)!isNaN(H)&&t(D,+H,D[H])},ZeD=function(D){var t=new wtV;
FiA(D,function(H,e,V){t[e]=pQ(V)});
t.reviveUnknownFields=D.reviveUnknownFields;return t},tbk={reviveIntoImmutable:!0};var aOV;var kH6,T43;var LBV,zH,j4,Up,AOR,Ca,rT,g2A,JOD,Xz,YlD,fa,gU,JM;LBV=_.mn(0);_.iZ={};_.rU=function(D,t,H,e,V){t=zH(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t,H,V);if(t!==null||e&&D.noLegacyNull!==sm)return t};
zH=function(D,t,H,e){if(t===-1)return null;var V=t+(H?0:-1),b=D.length-1;if(!(b<1+(H?0:-1))){if(V>=b){var a=D[b];if(a!=null&&typeof a==="object"&&a.constructor===Object){H=a[t];var w=!0}else if(V===b)H=a;else return}else H=D[V];if(e&&H!=null){e=e(H);if(e==null)return e;if(!Object.is(e,H))return w?a[t]=e:D[V]=e,e}return H}};
_.Eq=function(D,t,H,e){vt(D);var V=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;Rv(V,V[_.ba]|0,t,H,e);return D};
_.Ot=function(D,t,H){D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return JFk(D,D[_.ba]|0,t,H)!==void 0};
_.Ut=function(D,t,H,e){var V=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return JFk(V,V[_.ba]|0,t,Up(D,e,H))!==void 0};
_.Zl=function(D){return D===UZ$?2:4};
_.ok=function(D,t){D=_.rU(D,t,void 0,void 0,SFV);return D==null?_.Om():D};
j4=function(D,t,H,e){vt(D);var V=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=V[_.ba]|0;if(e==null){var a=LiV(V);if(AFk(a,V,b,H)===t)a.set(H,0);else return D}else b=gQD(V,b,H,t);Rv(V,b,t,e);return D};
_.Pg=function(D,t,H,e){var V=D[_.ba]|0,b=nQ(V);V=gQD(D,V,H,t,b);Rv(D,V,t,e,b)};
Up=function(D,t,H){return _.na(D,t)===H?H:-1};
_.na=function(D,t){D=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return AFk(LiV(D),D,void 0,t,void 0)};
AOR=function(D,t,H){var e=D[_.ba]|0,V=nQ(e),b=zH(D,H,V);if(b!=null&&b[UF]===Pt){if(!Em(b))return lY(b),b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var a=b.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(b)&&(a=b);if(a){var w=a[_.ba]|0;w&2&&(a=YQ(a,w))}a=JF(a,t,!0);a!==b&&Rv(D,e,H,a,V);return a};
_.sq=function(D,t,H,e){var V=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=V[_.ba]|0;t=JFk(V,b,t,H,e);if(t==null)return t;b=V[_.ba]|0;if(!Em(D,b)){var a=u6D(t);a!==t&&(lY(D)&&(V=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,b=V[_.ba]|0),t=a,b=Rv(V,b,H,t,e),pe(V,b))}return t};
_.wV=function(D,t,H,e){var V=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return YFV(D,V,V[_.ba]|0,t,H,e,!1,!0)};
_.oE=function(D,t,H,e){H=lOR(H);_.Eq(D,t,H,e);H&&!Em(H)&&pe(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return D};
_.PU=function(D,t,H,e){e=lOR(e);j4(D,t,H,e);e&&!Em(e)&&pe(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return D};
Ca=function(D,t,H){vt(D);var e=D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,V=e[_.ba]|0;if(H==null)return Rv(e,V,t),D;for(var b=H===uY?7:H[_.ba]|0,a=b,w=Bt(b),h=w||Object.isFrozen(H),K=!0,N=!0,k=0;k<H.length;k++){var T=H[k];w||(T=Em(T),K&&(K=!T),N&&(N=T))}w||(b=K?13:5,b=N?b&-4097:b|4096);h&&b===a||(H=pQ(H),a=0,b=Iv(b,V));b!==a&&F6(H,b);V=Rv(e,V,t,H);2&b||!(4096&b||16&b)||pe(e,V);return D};
rT=function(D,t,H,e){pt3(D,t,H,e);return D};
g2A=function(D,t,H){pt3(D,t,mN,void 0,H,1,!0);return D};
_.MG=function(D,t,H){D=_.rU(D,t,void 0,H);t=typeof D;D=D==null?D:t==="bigint"?_.mn((0,_.Ke)(64,D)):_.z4(D)?t==="string"?_.X9V(D):_.Mfu(D):void 0;return D};
_.Sk=function(D,t){var H=H===void 0?!1:H;var e;return(e=_.c3X(_.rU(D,t)))!=null?e:H};
_.sH=function(D,t,H){H=H===void 0?0:H;var e;return(e=_.VZ(_.rU(D,t)))!=null?e:H};
JOD=function(D,t){var H=H===void 0?0:H;D=_.iQ3(_.rU(D,t));return D!=null?D:H};
Xz=function(D,t,H){H=H===void 0?LBV:H;var e;return(e=_.gvD(_.rU(D,t)))!=null?e:H};
YlD=function(D){var t=t===void 0?LBV:t;var H;return(H=_.MG(D,23))!=null?H:t};
fa=function(D,t){var H=H===void 0?0:H;var e;return(e=_.rU(D,t,void 0,void 0,_.W9))!=null?e:H};
_.La=function(D,t,H,e){H=H===void 0?"":H;var V;return(V=_.OF(_.rU(D,t,e)))!=null?V:H};
_.AM=function(D,t){var H=H===void 0?0:H;var e;return(e=_.Ht(_.rU(D,t)))!=null?e:H};
gU=function(D,t){var H=H===void 0?"0":H;D=A3A(_.rU(D,t),!0);return D!=null?D:H};
JM=function(D,t,H){return _.La(D,Up(D,H,t))};
_.Yf=function(D,t,H,e){return _.sq(D,t,Up(D,e,H),void 0)};
_.rV=function(D,t){return _.OF(_.rU(D,t,void 0,_.iZ))};
_.KN=function(D,t,H){return _.Eq(D,t,ToT(H))};
_.gZ=function(D,t,H){return _.tA(D,t,ToT(H),!1)};
_.lZ=function(D,t,H){return _.Eq(D,t,_.eb(H))};
_.P$=function(D,t,H){return _.Eq(D,t,sF(H))};
_.M3=function(D,t,H){return _.Eq(D,t,r4(H))};
_.Is=function(D,t,H,e){return _.tA(D,t,r4(H),"",e)};
_.Gr=function(D,t,H){return _.Eq(D,t,H==null?H:_.tF(H))};
_.vg=function(D,t,H){return _.tA(D,t,H==null?H:_.tF(H),0)};var Vl=function(D,t,H){this.buffer=D;if(H&&!t)throw Error();this.JSC$8856_isImmutable=t};var l$V=function(D,t,H,e){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8859_start_=0;this.init(D,t,H,e)},pa,p0V,dZV,xZA,Rb8,uP6,Kd3,v2$;
_.q=l$V.prototype;_.q.init=function(D,t,H,e){var V=e===void 0?{}:e;e=V.aliasBytesFields===void 0?!1:V.aliasBytesFields;V=V.treatNewDataAsImmutable===void 0?!1:V.treatNewDataAsImmutable;this.aliasBytesFields=e;this.treatNewDataAsImmutable=V;D&&(D=xHR(D,this.treatNewDataAsImmutable),this.bytes_=D.buffer,this.bytesAreImmutable_=D.JSC$8856_isImmutable,this.JSC$8859_start_=t||0,this.end_=H!==void 0?this.JSC$8859_start_+H:this.bytes_.length,this.cursor_=this.JSC$8859_start_)};
_.q.free=function(){this.clear();v2$.length<100&&v2$.push(this)};
_.q.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8859_start_=0;this.aliasBytesFields=!1};
_.q.reset=function(){this.cursor_=this.JSC$8859_start_};
_.q.atEnd=function(){return this.cursor_==this.end_};
_.dU=function(D,t){var H=0,e=0,V=0,b=D.bytes_,a=D.cursor_;do{var w=b[a++];H|=(w&127)<<V;V+=7}while(V<32&&w&128);if(V>32)for(e|=(w&127)>>4,V=3;V<32&&w&128;V+=7)w=b[a++],e|=(w&127)<<V;pa(D,a);if(!(w&128))return t(H>>>0,e>>>0);throw Error();};
pa=function(D,t){D.cursor_=t;if(t>D.end_)throw Error();};
_.xf=function(D){var t=D.bytes_,H=D.cursor_,e=t[H++],V=e&127;if(e&128&&(e=t[H++],V|=(e&127)<<7,e&128&&(e=t[H++],V|=(e&127)<<14,e&128&&(e=t[H++],V|=(e&127)<<21,e&128&&(e=t[H++],V|=e<<28,e&128&&t[H++]&128&&t[H++]&128&&t[H++]&128&&t[H++]&128&&t[H++]&128)))))throw Error();pa(D,H);return V};
_.Rk=function(D){var t=D.bytes_,H=D.cursor_,e=t[H],V=t[H+1],b=t[H+2];t=t[H+3];pa(D,D.cursor_+4);return(e<<0|V<<8|b<<16|t<<24)>>>0};
p0V=function(D){var t=_.Rk(D);D=_.Rk(D);return G4D(t,D)};
dZV=function(D){var t=_.Rk(D);D=(t>>31)*2+1;var H=t>>>23&255;t&=8388607;return H==255?t?NaN:D*Infinity:H==0?D*1.401298464324817E-45*t:D*Math.pow(2,H-150)*(t+8388608)};
xZA=function(D){var t=_.Rk(D),H=_.Rk(D);D=(H>>31)*2+1;var e=H>>>20&2047;t=4294967296*(H&1048575)+t;return e==2047?t?NaN:D*Infinity:e==0?D*4.9E-324*t:D*Math.pow(2,e-1075)*(t+4503599627370496)};
Rb8=function(D){for(var t=0,H=D.cursor_,e=H+10,V=D.bytes_;H<e;){var b=V[H++];t|=b;if((b&128)===0)return pa(D,H),!!(t&127)}throw Error();};
uP6=function(D,t){if(t<0)throw Error();var H=D.cursor_;t=H+t;if(t>D.end_)throw Error();D.cursor_=t;return H};
Kd3=function(D,t){if(t==0)return _.Om();var H=uP6(D,t);D.aliasBytesFields&&D.bytesAreImmutable_?H=D.bytes_.subarray(H,H+t):(D=D.bytes_,t=H+t,H=H===t?new Uint8Array(0):SlR?D.slice(H,t):new Uint8Array(D.subarray(H,t)));return H.length==0?_.Om():new $v(H,ro)};
v2$=[];var I$D=function(D,t,H,e){if(v2$.length){var V=v2$.pop();V.init(D,t,H,e);D=V}else D=new l$V(D,t,H,e);this.decoder_=D;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;WBA(this,e)},WBA=function(D,t){t=t===void 0?{}:t;
D.discardUnknownFields=t.discardUnknownFields===void 0?!1:t.discardUnknownFields},Twu=function(D,t,H,e){if(QLT.length){var V=QLT.pop();
WBA(V,e);V.decoder_.init(D,t,H,e);return V}return new I$D(D,t,H,e)},hUu,EhR,uZ,yOk,QLT;
I$D.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;QLT.length<100&&QLT.push(this)};
I$D.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
hUu=function(D){if(D.decoder_.atEnd())return!1;D.fieldCursor_=D.decoder_.cursor_;var t=_.xf(D.decoder_)>>>0,H=t>>>3;t&=7;if(!(t>=0&&t<=5))throw Error();if(H<1)throw Error();D.nextField_=H;D.nextWireType_=t;return!0};
EhR=function(D){switch(D.nextWireType_){case 0:D.nextWireType_!=0?EhR(D):Rb8(D.decoder_);break;case 1:D=D.decoder_;pa(D,D.cursor_+8);break;case 2:if(D.nextWireType_!=2)EhR(D);else{var t=_.xf(D.decoder_)>>>0;D=D.decoder_;pa(D,D.cursor_+t)}break;case 5:D=D.decoder_;pa(D,D.cursor_+4);break;case 3:t=D.nextField_;do{if(!hUu(D))throw Error();if(D.nextWireType_==4){if(D.nextField_!=t)throw Error();break}EhR(D)}while(1);break;default:throw Error();}};
uZ=function(D,t,H){var e=D.decoder_.end_,V=_.xf(D.decoder_)>>>0;V=D.decoder_.cursor_+V;var b=V-e;b<=0&&(D.decoder_.end_=V,H(t,D,void 0,void 0,void 0),b=V-D.decoder_.cursor_);if(b)throw Error();D.decoder_.cursor_=V;D.decoder_.end_=e;return t};
yOk=function(D){var t=_.xf(D.decoder_)>>>0;D=D.decoder_;var H=uP6(D,t);D=D.bytes_;if(nt3){var e=D,V;(V=PBD)||(V=PBD=new TextDecoder("utf-8",{fatal:!0}));t=H+t;e=H===0&&t===e.length?e:e.subarray(H,t);try{var b=V.decode(e)}catch(K){if(otK===void 0){try{V.decode(new Uint8Array([128]))}catch(N){}try{V.decode(new Uint8Array([97])),otK=!0}catch(N){otK=!1}}!otK&&(PBD=void 0);throw K;}}else{b=H;t=b+t;H=[];for(var a=null,w,h;b<t;)w=D[b++],w<128?H.push(w):w<224?b>=t?eV():(h=D[b++],w<194||(h&192)!==128?(b--,
eV()):H.push((w&31)<<6|h&63)):w<240?b>=t-1?eV():(h=D[b++],(h&192)!==128||w===224&&h<160||w===237&&h>=160||((V=D[b++])&192)!==128?(b--,eV()):H.push((w&15)<<12|(h&63)<<6|V&63)):w<=244?b>=t-2?eV():(h=D[b++],(h&192)!==128||(w<<28)+(h-144)>>30!==0||((V=D[b++])&192)!==128||((e=D[b++])&192)!==128?(b--,eV()):(w=(w&7)<<18|(h&63)<<12|(V&63)<<6|e&63,w-=65536,H.push((w>>10&1023)+55296,(w&1023)+56320))):eV(),H.length>=8192&&(a=aVR(a,H),H.length=0);b=aVR(a,H)}return b};
_.BzT=function(D){var t=_.xf(D.decoder_)>>>0;return Kd3(D.decoder_,t)};
_.zb6=function(D,t,H){var e=_.xf(D.decoder_)>>>0;for(e=D.decoder_.cursor_+e;D.decoder_.cursor_<e;)H.push(t(D.decoder_))};
QLT=[];var DvT=function(D,t){this.JSC$8866_lo=D>>>0;this.JSC$8866_hi=t>>>0},tS3=function(D){D=BigInt.asUintN(64,D);
return new DvT(Number(D&BigInt(4294967295)),Number(D>>BigInt(32)))},Wik=function(D){if(!D)return HtV||(HtV=new DvT(0,0));
if(!/^\d+$/.test(D))return null;v9(D);return new DvT(Sf,A3)},HtV,MM6=function(D,t){this.JSC$8868_lo=D>>>0;
this.JSC$8868_hi=t>>>0},RgV=function(D){if(!D)return eCV||(eCV=new MM6(0,0));
if(!/^-?\d+$/.test(D))return null;v9(D);return new MM6(Sf,A3)},eCV;var Wg=function(){this.JSC$8870_buffer_=[]},NN,TF,VSX;
Wg.prototype.length=function(){return this.JSC$8870_buffer_.length};
Wg.prototype.end=function(){var D=this.JSC$8870_buffer_;this.JSC$8870_buffer_=[];return D};
NN=function(D,t,H){for(;H>0||t>127;)D.JSC$8870_buffer_.push(t&127|128),t=(t>>>7|H<<25)>>>0,H>>>=7;D.JSC$8870_buffer_.push(t)};
TF=function(D,t){for(;t>127;)D.JSC$8870_buffer_.push(t&127|128),t>>>=7;D.JSC$8870_buffer_.push(t)};
_.SYD=function(D,t){if(t>=0)TF(D,t);else{for(var H=0;H<9;H++)D.JSC$8870_buffer_.push(t&127|128),t>>=7;D.JSC$8870_buffer_.push(1)}};
VSX=function(D,t){v9(t);Ev$(function(H,e){NN(D,H>>>0,e>>>0)})};
Wg.prototype.writeUint8=function(D){this.JSC$8870_buffer_.push(D>>>0&255)};
_.KM=function(D,t){D.JSC$8870_buffer_.push(t>>>0&255);D.JSC$8870_buffer_.push(t>>>8&255);D.JSC$8870_buffer_.push(t>>>16&255);D.JSC$8870_buffer_.push(t>>>24&255)};
Wg.prototype.writeInt8=function(D){this.JSC$8870_buffer_.push(D>>>0&255)};var btD,Z1,f1D,ghk,B4V;btD=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new Wg};
Z1=function(D,t){t.length!==0&&(D.blocks_.push(t),D.totalLength_+=t.length)};
_.q1V=function(D,t){_.EY(D,t,2);t=D.encoder_.end();Z1(D,t);t.push(D.totalLength_);return t};
_.FkA=function(D,t){var H=t.pop();for(H=D.totalLength_+D.encoder_.length()-H;H>127;)t.push(H&127|128),H>>>=7,D.totalLength_++;t.push(H);D.totalLength_++};
_.EY=function(D,t,H){TF(D.encoder_,t*8+H)};
f1D=function(D,t,H){if(H!=null)switch(IOD(H),_.EY(D,t,1),typeof H){case "number":D=D.encoder_;w9A(H);_.KM(D,Sf);_.KM(D,A3);break;case "bigint":H=tS3(H);D=D.encoder_;t=H.JSC$8866_hi;_.KM(D,H.JSC$8866_lo);_.KM(D,t);break;default:H=Wik(H),D=D.encoder_,t=H.JSC$8866_hi,_.KM(D,H.JSC$8866_lo),_.KM(D,t)}};
ghk=function(D,t,H){_.EY(D,t,2);TF(D.encoder_,H.length);Z1(D,D.encoder_.end());Z1(D,H)};
B4V=function(D,t,H,e){H!=null&&(t=_.q1V(D,t),e(H,D),_.FkA(D,t))};var QvT,aFV,wdV,Ztk,s76,GlK,EFV,NCK,klV;QvT=qN();aFV=qN();wdV=qN();Ztk=qN();s76=qN();_.hC8=qN();_.Ik=qN();GlK=qN();EFV=qN();_.KkT=qN();NCK=qN();klV=qN();_.TC6=qN();_.cIA=qN();_.ww=function(D,t,H){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D,t,H)};
_.ww.prototype.toJSON=function(){return AF(this)};
_.ww.prototype.serialize=function(D){return JSON.stringify(AF(this,D))};
var u7K=function(D,t){if(t==null||t=="")return new D;t=JSON.parse(t);if(!Array.isArray(t))throw Error("V");return new D(B6X(t))};
_.ww.prototype.getExtension=function(D){VbX(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,D.fieldIndex);HeV(this,D.fieldIndex);return D.ctor?D.isRepeated?D.getExtensionFn(this,D.ctor,D.fieldIndex,_.Zl(),D.JSC$8881_hasMessageId):D.getExtensionFn(this,D.ctor,D.fieldIndex,D.JSC$8881_hasMessageId):D.isRepeated?D.getExtensionFn(this,D.fieldIndex,_.Zl(),D.JSC$8881_hasMessageId):D.getExtensionFn(this,D.fieldIndex,D.defaultValue,D.JSC$8881_hasMessageId)};
_.ww.prototype.clone=function(){var D=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,t=D[_.ba]|0;return nQD(this,D,t)?PYV(this,D,!0):new this.constructor(YQ(D,t,!1))};
_.ww.prototype[UF]=Pt;_.ww.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var F7=function(D,t,H){this.$$binaryReaderFn=D;this.$$binaryWriterFn=t;D=mi(QvT);this.$$isMsg=!!D&&H===D||!1},VM8=yFk(function(D,t,H,e,V){if(D.nextWireType_!==2)return!1;
uZ(D,AOR(t,e,H),V);return!0},DNV),bM6=yFk(function(D,t,H,e,V){if(D.nextWireType_!==2)return!1;
uZ(D,AOR(t,e,H),V);return!0},DNV),jEK=Symbol(),a1V=Symbol(),sEk=Symbol(),rAV=Symbol(),NwA=Symbol(),tMX,HMK;var dNX,j7A,QP,$vV,it8,rIV,Otu,Bg,Uv3,zE,oFk,PEK,nFD,CER,mvA,MSR,S1R,fFu,Lk$,AIR,gFV;dNX=function(D,t){var H=new btD;OMA(D.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,H,aE(jEK,cAV,$NA,t));Z1(H,H.encoder_.end());D=new Uint8Array(H.totalLength_);t=H.blocks_;for(var e=t.length,V=0,b=0;b<e;b++){var a=t[b];D.set(a,V);V+=a.length}H.blocks_=[D];return D};
j7A=yFk(function(D,t,H,e,V){if(D.nextWireType_!==2)return!1;D=uZ(D,JF([void 0,void 0],e,!0),V);D=pQ(D);e=t[_.ba]|0;V=nQ(e);if(e&2)throw Error();var b=zH(t,H,V);b instanceof Ce?(b.arrayState&2)!=0?(b=UHR(b),b.push(D),Rv(t,e,H,b,V)):(t=b,H=t.keyToApi(D[0],!1,!0),D=D[1],D=t.valueCtor?D===void 0?null:D:t.valueToApi(D,!1,!0,void 0,!1,t.arrayState),Le.prototype.set.call(t,H,D)):Array.isArray(b)?((b[_.ba]|0)&2&&(b=XtV(b),Rv(t,e,H,b,V)),b.push(D)):Rv(t,e,H,[D],V);return!0},function(D,t,H,e,V){if(t instanceof
Ce)t.forEach(function(w,h){B4V(D,H,JF([h,
w],e,!1),V)});
else if(Array.isArray(t))for(var b=0;b<t.length;b++){var a=t[b];Array.isArray(a)&&B4V(D,H,JF(a,e,!1),V)}});
QP=_.hA(function(D,t,H){if(D.nextWireType_!==1)return!1;_.GF(t,H,xZA(D.decoder_));return!0},CM8,klV);
$vV=_.hA(function(D,t,H,e){if(D.nextWireType_!==1)return!1;_.Pg(t,H,e,xZA(D.decoder_));return!0},CM8,klV);
it8=_.hA(function(D,t,H){if(D.nextWireType_!==5)return!1;_.GF(t,H,dZV(D.decoder_));return!0},mN6,NCK);
rIV=_.nhV(function(D,t,H){if(D.nextWireType_!==5&&D.nextWireType_!==2)return!1;t=_.HU(t,t[_.ba]|0,H);D.nextWireType_==2?_.zb6(D,dZV,t):t.push(dZV(D.decoder_));return!0},function(D,t,H){t=_.PMA(_.W9,t,!0);
if(t!=null&&t.length)for(_.EY(D,H,2),TF(D.encoder_,t.length*4),H=0;H<t.length;H++){var e=D.encoder_;hnV(t[H]);_.KM(e,Sf)}},NCK);
Otu=_.hA(function(D,t,H,e){if(D.nextWireType_!==5)return!1;_.Pg(t,H,e,dZV(D.decoder_));return!0},mN6,NCK);
_.yP=_.hA(function(D,t,H){if(D.nextWireType_!==0)return!1;_.GF(t,H,_.dU(D.decoder_,la));return!0},_.kh,_.Ik);
Bg=_.hA(function(D,t,H){if(D.nextWireType_!==0)return!1;D=_.dU(D.decoder_,la);_.GF(t,H,D===0?void 0:D);return!0},_.kh,_.Ik);
Uv3=_.hA(function(D,t,H,e){if(D.nextWireType_!==0)return!1;_.Pg(t,H,e,_.dU(D.decoder_,la));return!0},_.kh,_.Ik);
zE=_.hA(function(D,t,H){if(D.nextWireType_!==0)return!1;_.GF(t,H,_.dU(D.decoder_,G4D));return!0},function(D,t,H){t=Ym$(t);
if(t!=null&&(IOD(t),t!=null))switch(_.EY(D,H,0),typeof t){case "number":D=D.encoder_;go(t);NN(D,Sf,A3);break;case "bigint":H=tS3(t);NN(D.encoder_,H.JSC$8866_lo,H.JSC$8866_hi);break;default:H=Wik(t),NN(D.encoder_,H.JSC$8866_lo,H.JSC$8866_hi)}},GlK);
_.Dy=_.hA(function(D,t,H){if(D.nextWireType_!==0)return!1;_.GF(t,H,_.xf(D.decoder_));return!0},XUD,Ztk);
oFk=_.hA(function(D,t,H){if(D.nextWireType_!==0)return!1;D=_.xf(D.decoder_);_.GF(t,H,D===0?void 0:D);return!0},XUD,Ztk);
PEK=_.hA(function(D,t,H,e){if(D.nextWireType_!==0)return!1;_.Pg(t,H,e,_.xf(D.decoder_));return!0},XUD,Ztk);
nFD=_.hA(function(D,t,H){if(D.nextWireType_!==1)return!1;_.GF(t,H,p0V(D.decoder_));return!0},_.Ld8,_.KkT);
CER=_.nhV(function(D,t,H){if(D.nextWireType_!==1&&D.nextWireType_!==2)return!1;t=_.HU(t,t[_.ba]|0,H);D.nextWireType_==2?_.zb6(D,p0V,t):t.push(p0V(D.decoder_));return!0},function(D,t,H){t=_.PMA(Ym$,t,!1);
if(t!=null)for(var e=0;e<t.length;e++)f1D(D,H,t[e])},_.KkT);
_.t_=_.hA(function(D,t,H){if(D.nextWireType_!==0)return!1;_.GF(t,H,Rb8(D.decoder_));return!0},AAD,aFV);
_.Hr=_.hA(function(D,t,H){if(D.nextWireType_!==0)return!1;D=Rb8(D.decoder_);_.GF(t,H,D===!1?void 0:D);return!0},AAD,aFV);
mvA=_.hA(function(D,t,H,e){if(D.nextWireType_!==0)return!1;_.Pg(t,H,e,Rb8(D.decoder_));return!0},AAD,aFV);
_.eB=_.hA(function(D,t,H){if(D.nextWireType_!==2)return!1;_.GF(t,H,yOk(D));return!0},JAD,wdV);
_.Vs=_.hA(function(D,t,H){if(D.nextWireType_!==2)return!1;D=yOk(D);_.GF(t,H,D===""?void 0:D);return!0},JAD,wdV);
_.bt=_.hA(function(D,t,H,e){if(D.nextWireType_!==2)return!1;_.Pg(t,H,e,yOk(D));return!0},JAD,wdV);
MSR=_.nhV(function(D,t,H){if(D.nextWireType_!==2)return!1;D=yOk(D);_.HU(t,t[_.ba]|0,H).push(D);return!0},function(D,t,H){t=_.PMA(_.OF,t,!0);
if(t!=null)for(var e=0;e<t.length;e++){var V=D,b=H,a=t[e];a!=null&&ghk(V,b,hRA(a))}},wdV);
S1R=void 0;S1R=S1R===void 0?QvT:S1R;_.qA=new F7(function(D,t,H,e,V){if(D.nextWireType_!==2)return!1;e=JF(void 0,e,!0);_.HU(t,t[_.ba]|0,H).push(e);uZ(D,e,V);return!0},function(D,t,H,e,V){if(Array.isArray(t))for(var b=0;b<t.length;b++)YY6(D,t[b],H,e,V)},S1R);
_.Fx=yFk(function(D,t,H,e,V,b){if(D.nextWireType_!==2)return!1;var a=t[_.ba]|0;gQD(t,a,b,H,nQ(a));t=AOR(t,e,H);uZ(D,t,V);return!0},YY6);
_.Xd3=_.hA(function(D,t,H){if(D.nextWireType_!==2)return!1;_.GF(t,H,_.BzT(D));return!0},_.l13,_.TC6);
fFu=_.hA(function(D,t,H,e){if(D.nextWireType_!==2)return!1;_.Pg(t,H,e,_.BzT(D));return!0},_.l13,_.TC6);
Lk$=_.hA(function(D,t,H){if(D.nextWireType_!==0)return!1;_.GF(t,H,_.xf(D.decoder_)>>>0);return!0},vhV,s76);
AIR=_.hA(function(D,t,H,e){if(D.nextWireType_!==0)return!1;_.Pg(t,H,e,_.xf(D.decoder_)>>>0);return!0},vhV,s76);
_.aS=_.hA(function(D,t,H){if(D.nextWireType_!==0)return!1;_.GF(t,H,_.xf(D.decoder_));return!0},_.pUA,_.cIA);
_.sB=_.hA(function(D,t,H){if(D.nextWireType_!==0)return!1;D=_.xf(D.decoder_);_.GF(t,H,D===0?void 0:D);return!0},_.pUA,_.cIA);
gFV=_.hA(function(D,t,H){if(D.nextWireType_!==0)return!1;_.GF(t,H,_.dU(D.decoder_,KnK));return!0},function(D,t,H){t=J3T(t);
if(t!=null&&(uF3(t),t!=null))switch(_.EY(D,H,0),typeof t){case "number":D=D.encoder_;H=t;t=H<0;H=Math.abs(H)*2;w9A(H);H=Sf;var e=A3;t&&(H==0?e==0?e=H=4294967295:(e--,H=4294967295):H--);Sf=H;A3=e;NN(D,Sf,A3);break;case "bigint":D=D.encoder_;t=t<<BigInt(1)^t>>BigInt(63);Sf=Number(BigInt.asUintN(32,t));A3=Number(BigInt.asUintN(32,t>>BigInt(32)));NN(D,Sf,A3);break;default:VSX(D.encoder_,t)}},EFV);var lFA=function(){var D=JIV,t=Y1V;this.fieldIndex=175237375;this.ctor=t;this.isRepeated=0;this.getExtensionFn=_.sq;this.defaultValue=void 0;this.JSC$8881_hasMessageId=D.messageId!=null?P9:void 0};
lFA.prototype.register=function(){GE(this)};var vFR=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(vFR,_.ww);var pdD=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(pdD,_.ww);var QED=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(QED,_.ww);var dvu=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(dvu,_.ww);var xvV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(xvV,_.ww);var RCV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(RCV,_.ww);var uBT=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(uBT,_.ww);uBT.prototype.getData=function(){return _.ok(this,2)};var WkK=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(WkK,_.ww);var IFD=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(IFD,_.ww);IFD.prototype.getStyle=function(){return _.sq(this,vFR,1)};var UY=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(UY,_.ww);UY.prototype.getPayloadCase=function(){return _.na(this,nM)};
UY.prototype.getStyle=function(){return _.Yf(this,IFD,6,nM)};
var Q73=function(){var D=new UY,t=new xvV;return _.PU(D,7,nM,t)},yI6=function(){var D=new UY,t=new RCV;
return _.PU(D,8,nM,t)},nM=[1,
2,3,4,5,6,7,8];var BCV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(BCV,_.ww);var zCD=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(zCD,_.ww);var Du6=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Du6,_.ww);var tVn=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(tVn,_.ww);var HK3=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(HK3,_.ww);var eR9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(eR9,_.ww);var VV6=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(VV6,_.ww);var bK9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(bK9,_.ww);bK9.prototype.getData=function(){return _.ok(this,2)};var qDn=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(qDn,_.ww);var I1T=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(I1T,_.ww);I1T.prototype.getPayloadCase=function(){return _.na(this,h_)};
var h_=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var GN=function(D,t){D=Error.call(this,D);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.code=t===void 0?2:t};
_.P(GN,Error);var FD4=Promise;var aVn=function(D){this.channelPromise=D};
aVn.prototype.send=function(D,t,H){this.channelPromise.then(function(e){e.send(D,t,H)})};var wkQ=function(D,t){this.data=D;this.channel=t};
wkQ.prototype.reply=function(D,t,H){this.channel.send(D,t,H)};var ZK9=function(D){this.JSC$8947_port_=D};
ZK9.prototype.send=function(D,t,H){H=H===void 0?[]:H;var e=new MessageChannel;s$v(e.port1,t);this.JSC$8947_port_.postMessage(D,[e.port2].concat(H))};
var hRV=function(D,t){s$v(D,t);return new ZK9(D)},s$v=function(D,t){t&&(D.onmessage=function(H){t(new wkQ(H.data,hRV(H.ports[0])))})};var GVw=function(D){this.verifier_=D};
GVw.prototype.verify=function(D){return this.verifier_(D)};
var E3Q=function(D){var t=Object.create(null);(typeof D==="string"?[D]:D).forEach(function(H){if(H==="null")throw Error("X");t[H]=!0});
return function(H){return t[H]===!0}};_.KDf=function(){if(!_.VA.addEventListener||!Object.defineProperty)return!1;var D=!1,t=Object.defineProperty({},"passive",{get:function(){D=!0}});
try{var H=function(){};
_.VA.addEventListener("test",H,t);_.VA.removeEventListener("test",H,t)}catch(e){}return D}();var N6m;_.EB=function(D){var t=D.destination;var H=D.iframe;var e=D.origin;var V=D.channelName===void 0?"ZNWN1d":D.channelName;var b=D.onMessage===void 0?void 0:D.onMessage;D=D.onEstablished===void 0?void 0:D.onEstablished;return N6m({destination:t,getSource:function(){return H.contentWindow},
originVerifier:e instanceof GVw?e:typeof e==="function"?new GVw(e):new GVw(E3Q(e)),channelName:V,onMessage:b,onEstablished:D})};
N6m=function(D){var t=D.destination;var H=D.getSource;var e=D.originVerifier;var V=D.token===void 0?void 0:D.token;var b=D.channelName;var a=D.onMessage===void 0?void 0:D.onMessage;var w=D.onEstablished===void 0?void 0:D.onEstablished;return new aVn(new FD4(function(h,K){var N=function(k){k.source&&k.source===H()&&e.verify(k.origin)&&(k.data.n||k.data)===b&&(t.removeEventListener("message",N,!1),V&&k.data.t!==V?K(Error("Y`"+b+"`"+V+"`"+k.data.t)):(h(hRV(k.ports[0],a)),w&&w(k)))};
t.addEventListener("message",N,!1)}))};var kV6=function(D){try{D()}catch(t){b8(t)}};var cTv=function(D){var t=this;var H=D.getMessageType;var e=D.onUnregisteredMessage===void 0?function(){}:D.onUnregisteredMessage;
var V=D.onBeforeRegisteredMessage===void 0?function(){}:D.onBeforeRegisteredMessage;
D=D.onAfterRegisteredMessage===void 0?function(){}:D.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=H;this.onUnregisteredMessage_=e;this.onBeforeRegisteredMessage_=V;this.onAfterRegisteredMessage_=D;this.onMessage=function(b){return T6f(t,b)}};
cTv.prototype.register=function(D,t){this.registry_.set(D,t);return this};
var T6f=function(D,t){var H=D.getMessageType_(t.data),e=D.registry_.get(H);e?(kV6(function(){return D.onBeforeRegisteredMessage_(t,H)}),kV6(function(){return e(t)}),kV6(function(){return D.onAfterRegisteredMessage_(t,H)})):kV6(function(){return D.onUnregisteredMessage_(t,H)})};var j$a=function(D){this.JSC$8964_channel_=D},iKf,rTV;
j$a.prototype.send=function(D,t,H){this.JSC$8964_channel_.send(AF(D),t,H)};
_.$u6=function(D,t){return function(H){var e=new D(H.data);return t(new wkQ(e,H.channel))}};
iKf=function(D){return function(t){return D(new wkQ(t.data,new j$a(t.channel)))}};
rTV=function(D,t){return iKf(_.$u6(D,t))};var OKQ=function(D,t,H,e){this.registry=D;this.delegate=t;this.receiveMessageConstructor=H;this.createInitMessage=e;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},WdT=function(D){var t=new cTv({getMessageType:D.getPayloadCase});
return new OKQ(t,new j$a(_.EB({iframe:D.child,destination:window,origin:D.origin,channelName:D.channelName,onMessage:rTV(D.receiveMessageConstructor,t.onMessage)})),D.receiveMessageConstructor,D.createInitMessage)},Uu6=function(D,t){D.createInitMessage=t};
OKQ.prototype.send=function(D){if(!this.initialised)throw new GN("Attempted to send a message before initialisation.");this.delegate.send(D)};
var o34=function(D,t){return _.Z(function(H){if(!D.initialised)throw new GN("Attempted to send a message before initialisation.");return H.return(new Promise(function(e){D.delegate.send(t,rTV(D.receiveMessageConstructor,e))}))})};
OKQ.prototype.init=function(){var D=this;return _.Z(function(t){if(D.initialised)throw new GN("Attempted to initialise twice. The SDK can only be initialised once.");if(D.createInitMessage!==void 0){var H=D.delegate,e=H.send,V=D.createInitMessage;var b=new pdD;var a=[].concat(_.A6(D.features));b=_.D1(b,1,a,_.tF);e.call(H,V.call(D,b))}D.initialised=!0;_.n2(t)})};
var KJ=function(D,t){if(D.initialised)throw new GN('Attempted to set up API "'+t+'" after initialisation. All APIs must be set up before initialising the SDK.');D.features.add(t);return D.registry};
_.ql.Object.defineProperties(OKQ.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var P8m=function(D){this.channel=D;this.registered=!1};
P8m.prototype.update=function(D){if(this.channel.isInitialised){if(!this.registered)throw new GN("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var t=new UY;var H=new dvu;H=_.KN(H,1,D);t=_.PU(t,2,nM,H);this.channel.send(t)}else this.register();this.JSC$8978_audioEnabled=D};
P8m.prototype.register=function(){KJ(this.channel,1);this.registered=!0};
P8m.prototype.isAudioEnabled=function(){return this.JSC$8978_audioEnabled};var n3v=function(D){this.channel=D};
_.q=n3v.prototype;_.q.onFirstFrameReady=function(D){KJ(this.channel,2).register(11,function(t){t=_.Yf(t.data,BCV,11,h_);if(!t)throw new GN("Unexpectedly nonexistent GameFirstFrameReadyEvent");D(_.La(t,1))})};
_.q.onReady=function(D){KJ(this.channel,2).register(4,function(t){t=_.Yf(t.data,Du6,4,h_);if(!t)throw new GN("Unexpectedly nonexistent GameReadyEvent");D(_.La(t,1))})};
_.q.onLevelComplete=function(D){KJ(this.channel,2).register(5,function(t){t=_.Yf(t.data,tVn,5,h_);if(!t)throw new GN("Unexpectedly nonexistent LevelCompleteEvent");D(_.La(t,1),_.sH(t,2))})};
_.q.onGameOver=function(D){KJ(this.channel,2).register(6,function(t){t=_.Yf(t.data,zCD,6,h_);if(!t)throw new GN("Unexpectedly nonexistent GameOverEvent");D(_.La(t,1))})};
_.q.pause=function(){var D=this;if(!this.channel.isInitialised)return KJ(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new GN("Using unregistered Game Feature: pause.");var t=Q73();return new Promise(function(H){return _.Z(function(e){if(e.nextAddress==1)return e.yield(o34(D.channel,t),2);H();_.n2(e)})})};
_.q.resume=function(){var D=this;if(!this.channel.isInitialised)return KJ(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new GN("Using unregistered Game Feature: resume.");var t=yI6();return new Promise(function(H){return _.Z(function(e){if(e.nextAddress==1)return e.yield(o34(D.channel,t),2);H();_.n2(e)})})};var C84=function(D){this.channel=D};
C84.prototype.onReady=function(D){KJ(this.channel,5).register(8,function(t){if(!_.Yf(t.data,HK3,8,h_))throw new GN("Unexpectedly nonexistent PageReadyEvent");D()})};var muB=function(D){this.channel=D};
muB.prototype.onChange=function(D){KJ(this.channel,3).register(7,function(t){t=_.Yf(t.data,eR9,7,h_);if(!t)throw new GN("Unexpectedly nonexistent ScoreEvent");D(_.La(t,1),_.sH(t,2))})};var MV6={load:function(){throw new GN("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new GN("Storage used, but storage.onSave() listener not set!");}},SDn=function(D){this.channel=D;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},Xk4=function(D){KJ(D.channel,4).register(2,MV6.load).register(3,MV6.save);
D.initialSetupDone=!0};
SDn.prototype.onLoad=function(D){this.initialSetupDone||Xk4(this);this.loadRegistered||(this.loadRegistered=!0,KJ(this.channel,4).register(2,function(t){var H,e,V;return _.Z(function(b){if(b.nextAddress==1){H=_.Yf(t.data,VV6,2,h_);if(!H)throw new GN("Unexpectedly nonexistent StorageLoad");e=_.La(H,1);return b.yield(D(e),2)}V=b.yieldResult;var a=t.reply,w=new UY;var h=new uBT;h=_.M3(h,1,e);h=_.Eq(h,2,_.Um(V,!1));w=_.PU(w,3,nM,h);a.call(t,w);_.n2(b)})}))};
SDn.prototype.onSave=function(D){this.initialSetupDone||Xk4(this);this.saveRegistered||(this.saveRegistered=!0,KJ(this.channel,4).register(3,function(t){var H,e,V;return _.Z(function(b){if(b.nextAddress==1){H=_.Yf(t.data,bK9,3,h_);if(!H)throw new GN("Unexpectedly nonexistent StorageSave");e=_.La(H,1);V=$ZR(H.getData());return b.yield(D(e,V),2)}var a=t.reply,w=new UY;var h=new WkK;h=_.M3(h,1,e);w=_.PU(w,4,nM,h);a.call(t,w);_.n2(b)})}))};var fVn=function(D){this.channel=D};
fVn.prototype.update=function(D){if(!this.channel.features.has(6))throw new GN("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var t=new UY,H=new IFD;D=_.oE(H,1,D);t=_.PU(t,6,nM,D);this.channel.send(t)};
fVn.prototype.register=function(){KJ(this.channel,6)};var LD9=function(D){this.channel=D;this.userActivityLoggingIntervalMs=0};
LD9.prototype.onUserActivity=function(D,t){this.userActivityLoggingIntervalMs=t;KJ(this.channel,7).register(9,function(H){if(!_.Yf(H.data,qDn,9,h_))throw new GN("Unexpectedly nonexistent ClickEvent");D()})};var AT9=function(D){var t=this;this.channel=D;this.init=this.channel.init.bind(this.channel);this.page=new C84(this.channel);this.game=new n3v(this.channel);this.audio=new P8m(this.channel);this.score=new muB(this.channel);this.storage=new SDn(this.channel);this.style=new fVn(this.channel);this.userActivity=new LD9(this.channel);Uu6(this.channel,function(H){var e=new QED;H=_.oE(e,1,H);H=_.lZ(H,3,t.userActivity.userActivityLoggingIntervalMs);e=t.audio.isAudioEnabled();e!==void 0&&_.KN(H,2,e);e=new UY;
return _.PU(e,5,nM,H)})};var g3f=function(){this.timedFunctionContext=0};
g3f.prototype.timeExecution=function(D,t){var H=this;return function(){var e=_.RE.apply(0,arguments);H.timedFunctionContext=D;return t.apply(null,_.A6(e))}};var JTa=function(){var D={};this.priorityTasks=(D[3]=[],D[2]=[],D[1]=[],D);this.isFlushing=!1},$z=function(D,t,H){var e=YD9(D,H);
D.priorityTasks[H].push(t);e&&D.priorityTasks[H].length===1&&D.flush()},YD9=function(D,t){return Object.keys(D.priorityTasks).map(function(H){return Number(H)}).filter(function(H){return!isNaN(H)&&H>t}).every(function(H){return D.priorityTasks[H].length===0})};
JTa.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(D){return D.length>0});)lVm(this,3),lVm(this,2),lVm(this,1)}catch(D){throw Object.values(this.priorityTasks).forEach(function(t){return void t.splice(0,t.length)}),D;
}finally{this.isFlushing=!1}}};
var lVm=function(D,t){for(;YD9(D,t)&&D.priorityTasks[t].length>0;)D.priorityTasks[t][0](),D.priorityTasks[t].shift()};
_.ql.Object.defineProperties(JTa.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(D){return D.length>0})}}});var eDV={};var v33=globalThis.trustedTypes,Bw$=v33,DdD;var md=function(D){this.privateDoNotAccessOrElseWrappedResourceUrl=D};
md.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var pk6,dua,xuw,RRo,uX4,WDB,IVm,Q$v;pk6=_.zk([""]);dua=BX(["\x00"],["\\0"]);xuw=BX(["\n"],["\\n"]);RRo=BX(["\x00"],["\\u0000"]);uX4=_.zk([""]);WDB=BX(["\x00"],["\\0"]);IVm=BX(["\n"],["\\n"]);Q$v=BX(["\x00"],["\\u0000"]);_.yTv=H26(function(D){return D(pk6)})||H26(function(D){return D(dua)})||H26(function(D){return D(xuw)})||H26(function(D){return D(RRo)});
_.B66=_.fM(uX4)&&_.fM(WDB)&&_.fM(IVm)&&_.fM(Q$v);var pM;_.LM=function(D,t){this.privateDoNotAccessOrElseWrappedUrl=t};
_.LM.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.zRv=AA("about:blank");pM=AA("about:invalid#zClosurez");var V28=function(D){this.isValid=D},Dwf=new V28(function(D){return/^[^:]*([/?#]|$)/.test(D)}),tfw=Yh("data"),HQm=Yh("http"),en3=Yh("https"),Vf3=Yh("ftp"),bQw=Yh("mailto"),qmV=Yh("intent"),Fn9=Yh("vnd.youtube"),b2T=[tfw,
HQm,en3,bQw,Vf3,Dwf],FuR=CM(function(){return typeof URL==="function"}),afQ=["data:",
"http:","https:","mailto:","ftp:"],wvX=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var IE=function(D){this.privateDoNotAccessOrElseWrappedHtml=D};
IE.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var OX3=CM(function(){return new IE(v33?v33.emptyHTML:"")});var w9V={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"},sx6=function(D,t){var H=Error.call(this,D+" cannot be used with intent "+w9V[t]);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.type=D;this.intent=t;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.P(sx6,Error);_.e2=function(D){this.privateDoNotAccessOrElseWrappedScript=D};
_.e2.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var KuA=function(D){this.privateDoNotAccessOrElseWrappedAttributePrefix=D};
KuA.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var NND="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var Z7=function(D){this.privateDoNotAccessOrElseWrappedStyleSheet=D};
Z7.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var J5V=function(D){var t=_.RD("window.location.href");D==null&&(D='Unknown Error of type "null/undefined"');if(typeof D==="string")return{message:D,name:"Unknown error",lineNumber:"Not available",fileName:t,stack:"Not available"};var H=!1;try{var e=D.lineNumber||D.line||"Not available"}catch(a){e="Not available",H=!0}try{var V=D.fileName||D.filename||D.sourceURL||_.VA.$googDebugFname||t}catch(a){V="Not available",H=!0}t=ZQQ(D);if(!(!H&&D.lineNumber&&D.fileName&&D.stack&&D.message&&D.name)){H=D.message;
if(H==null){if(D.constructor&&D.constructor instanceof Function){if(D.constructor.name)H=D.constructor.name;else if(H=D.constructor,NA[H])H=NA[H];else{H=String(H);if(!NA[H]){var b=/function\s+([^\(]+)/m.exec(H);NA[H]=b?b[1]:"[Anonymous]"}H=NA[H]}H='Unknown Error of type "'+H+'"'}else H="Unknown Error of unknown type";typeof D.toString==="function"&&Object.prototype.toString!==D.toString&&(H+=": "+D.toString())}return{message:H,name:D.name||"UnknownError",lineNumber:e,fileName:V,stack:t||"Not available"}}return{message:D.message,
name:D.name,lineNumber:D.lineNumber,fileName:D.fileName,stack:t}},ZQQ=function(D,t){t||(t={});
t[sBa(D)]=!0;var H=D.stack||"",e=D.cause;e&&!t[sBa(e)]&&(H+="\nCaused by: ",e.stack&&e.stack.indexOf(e.toString())==0||(H+=typeof e==="string"?e:e.message+"\n"),H+=ZQQ(e,t));D=D.errors;if(Array.isArray(D)){e=1;var V;for(V=0;V<D.length&&!(e>4);V++)t[sBa(D[V])]||(H+="\nInner error "+e++ +": ",D[V].stack&&D[V].stack.indexOf(D[V].toString())==0||(H+=typeof D[V]==="string"?D[V]:D[V].message+"\n"),H+=ZQQ(D[V],t));V<D.length&&(H+="\n... "+(D.length-V)+" more inner errors")}return H},sBa=function(D){var t=
"";
typeof D.toString==="function"&&(t=""+D);return t+D.stack},NA={};var hnf,VM,Kf,EvB,KnQ,G4n,W1,Qi,k4v;hnf=function(D,t){for(var H=D.split("%s"),e="",V=Array.prototype.slice.call(arguments,1);V.length&&H.length>1;)e+=H.shift()+V.shift();return e+H.join("%s")};
_.Wn=function(D){return encodeURIComponent(String(D))};
VM=function(D){return decodeURIComponent(D.replace(/\+/g," "))};
Kf=function(D){AwV.test(D)&&(D.indexOf("&")!=-1&&(D=D.replace(meV,"&amp;")),D.indexOf("<")!=-1&&(D=D.replace(MOu,"&lt;")),D.indexOf(">")!=-1&&(D=D.replace(SZD,"&gt;")),D.indexOf('"')!=-1&&(D=D.replace(XGV,"&quot;")),D.indexOf("'")!=-1&&(D=D.replace(fz$,"&#39;")),D.indexOf("\x00")!=-1&&(D=D.replace(LsX,"&#0;")));return D};
EvB=function(D){var t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var H=_.VA.document.createElement("div");return D.replace(G4n,function(e,V){var b=t[e];if(b)return b;V.charAt(0)=="#"&&(V=Number("0"+V.slice(1)),isNaN(V)||(b=String.fromCharCode(V)));b||(_.Fq(H,Ql(e+" ")),b=H.firstChild.nodeValue.slice(0,-1));return t[e]=b})};
KnQ=function(D){return D.replace(/&([^;]+);/g,function(t,H){switch(H){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return H.charAt(0)!="#"||(H=Number("0"+H.slice(1)),isNaN(H))?t:String.fromCharCode(H)}})};
G4n=/&([^;\s<&]+);?/g;_.kaT=function(D){return String(D).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.NoB=String.prototype.repeat?function(D,t){return D.repeat(t)}:function(D,t){return Array(t+1).join(D)};
_.kB=function(D,t){if(!Number.isFinite(D))return String(D);D=String(D);var H=D.indexOf(".");H===-1&&(H=D.length);var e=D[0]==="-"?"-":"";e&&(D=D.substring(1));return e+(0,_.NoB)("0",Math.max(0,t-H))+D};
W1=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.wU()).toString(36)};
Qi=function(D){for(var t=0,H=0;H<D.length;++H)t=31*t+D.charCodeAt(H)>>>0;return t};
_.oz=function(D){return String(D).replace(/\-([a-z])/g,function(t,H){return H.toUpperCase()})};
_.UW=function(D){return String(D).replace(/([A-Z])/g,"-$1").toLowerCase()};
k4v=function(D){return D.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(t,H,e){return H+e.toUpperCase()})};var To3=function(){this.names=new Map};
To3.prototype.getName=function(D){var t=this.names.get(D);if(t)return t;var H;t=(H=D.description)!=null?H:W1();this.names.set(D,t);return t};var c36=function(D){var t=Error.call(this,D?D.length+" errors occurred during unsubscription:\n"+D.map(function(H,e){return e+1+") "+H.toString()}).join("\n  "):"");
this.message=t.message;"stack"in t&&(this.stack=t.stack);this.errors=D;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.P(c36,Error);var h6=function(D){this.initialTeardown=D;this.closed=!1;this._teardowns=this._parentage=null};
_.q=h6.prototype;
_.q.unsubscribe=function(){if(!this.closed){this.closed=!0;var D=this._parentage;if(Array.isArray(D))for(var t=_.F(D),H=t.next();!H.done;H=t.next())H.value.remove(this);else D==null||D.remove(this);t=this.initialTeardown;if(sk(t))try{t()}catch(b){var e=b instanceof c36?b.errors:[b]}var V=this._teardowns;if(V)for(this._teardowns=null,t=_.F(V),H=t.next();!H.done;H=t.next()){H=H.value;try{sk(H)?H():H.unsubscribe()}catch(b){H=void 0,e=(H=e)!=null?H:[],b instanceof c36?e=[].concat(_.A6(e),_.A6(b.errors)):
e.push(b)}}if(e)throw new c36(e);}};
_.q.add=function(D){if(D&&D!==this)if(this.closed)sk(D)?D():D.unsubscribe();else{if(D instanceof h6){if(D.closed||D._hasParent(this))return;D._addParent(this)}var t;(this._teardowns=(t=this._teardowns)!=null?t:[]).push(D)}};
_.q._hasParent=function(D){var t=this._parentage;return t===D||Array.isArray(t)&&t.includes(D)};
_.q._addParent=function(D){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(D),t):t?[t,D]:D};
_.q._removeParent=function(D){var t=this._parentage;t===D?this._parentage=null:Array.isArray(t)&&jxD(t,D)};
_.q.remove=function(D){var t=this._teardowns;t&&jxD(t,D);D instanceof h6&&D._removeParent(this)};
var jB3=new h6;jB3.closed=!0;h6.JSC$9074_EMPTY=jB3;var i2X=function(){setTimeout.apply(null,_.A6(_.RE.apply(0,arguments)))};var TN=function(D){h6.call(this);this.JSC$9079_isStopped=!1;this.destination=D instanceof TN?D:new cr(!D||sk(D)?{next:D!=null?D:void 0}:D);$d3(D)&&D.add(this)};
_.P(TN,h6);TN.JSC$9074_EMPTY=h6.JSC$9074_EMPTY;TN.create=function(D,t,H){return new jB(D,t,H)};
_.q=TN.prototype;_.q.next=function(D){this.JSC$9079_isStopped||this._next(D)};
_.q.error=function(D){this.JSC$9079_isStopped||(this.JSC$9079_isStopped=!0,this._error(D))};
_.q.complete=function(){this.JSC$9079_isStopped||(this.JSC$9079_isStopped=!0,this._complete())};
_.q.unsubscribe=function(){this.closed||(this.JSC$9079_isStopped=!0,h6.prototype.unsubscribe.call(this))};
_.q._next=function(D){this.destination.next(D)};
_.q._error=function(D){this.destination.error(D);this.unsubscribe()};
_.q._complete=function(){this.destination.complete();this.unsubscribe()};
var cr=function(D){this.partialObserver=D};
cr.prototype.next=function(D){var t=this.partialObserver;if(t.next)try{t.next(D)}catch(H){Ek(H)}};
cr.prototype.error=function(D){var t=this.partialObserver;if(t.error)try{t.error(D)}catch(H){Ek(H)}else Ek(D)};
cr.prototype.complete=function(){var D=this.partialObserver;if(D.complete)try{D.complete()}catch(t){Ek(t)}};
var jB=function(D,t,H){TN.call(this);var e;sk(D)||!D?e={next:D!=null?D:void 0,error:t!=null?t:void 0,complete:H!=null?H:void 0}:e=D;this.destination=new cr(e)};
_.P(jB,TN);jB.JSC$9074_EMPTY=TN.JSC$9074_EMPTY;jB.create=TN.create;var T7=typeof Symbol==="function"&&Symbol.observable||"@@observable";var kp=function(D){D&&(this._subscribe=D)};
_.q=kp.prototype;_.q.lift=function(D){var t=new kp;t.source=this;t.operator=D;return t};
_.q.subscribe=function(D,t,H){D=D&&D instanceof TN||D&&sk(D.next)&&sk(D.error)&&sk(D.complete)&&$d3(D)?D:new jB(D,t,H);t=this.operator;H=this.source;D.add(t?t.call(D,H):H?this._subscribe(D):this._trySubscribe(D));return D};
_.q._trySubscribe=function(D){try{return this._subscribe(D)}catch(t){D.error(t)}};
_.q.forEach=function(D,t){var H=this;t=O2K(t);return new t(function(e,V){var b=H.subscribe(function(a){try{D(a)}catch(w){V(w),b==null||b.unsubscribe()}},V,e)})};
_.q._subscribe=function(D){var t;return(t=this.source)==null?void 0:t.subscribe(D)};
kp.prototype[T7]=function(){return this};
kp.prototype.pipe=function(){var D=_.RE.apply(0,arguments);return D.length?r6D(D)(this):this};
kp.create=function(D){return new kp(D)};var $wV=function(){var D=Error.call(this,"object unsubscribed");this.message=D.message;"stack"in D&&(this.stack=D.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.P($wV,Error);var Tt=function(){this.observers=[];this.hasError=this.JSC$9095_isStopped=this.closed=!1;this.thrownError=null};
_.P(Tt,kp);_.q=Tt.prototype;_.q.lift=function(D){var t=new $B(this,this);t.operator=D;return t};
_.q._throwIfClosed=function(){if(this.closed)throw new $wV;};
_.q.next=function(D){this._throwIfClosed();if(!this.JSC$9095_isStopped){var t=this.observers.slice();t=_.F(t);for(var H=t.next();!H.done;H=t.next())H.value.next(D)}};
_.q.error=function(D){this._throwIfClosed();if(!this.JSC$9095_isStopped){this.hasError=this.JSC$9095_isStopped=!0;this.thrownError=D;for(var t=this.observers;t.length;)t.shift().error(D)}};
_.q.complete=function(){this._throwIfClosed();if(!this.JSC$9095_isStopped){this.JSC$9095_isStopped=!0;for(var D=this.observers;D.length;)D.shift().complete()}};
_.q.unsubscribe=function(){this.JSC$9095_isStopped=this.closed=!0;this.observers=null};
_.q._trySubscribe=function(D){this._throwIfClosed();return kp.prototype._trySubscribe.call(this,D)};
_.q._subscribe=function(D){this._throwIfClosed();this._checkFinalizedStatuses(D);return this._innerSubscribe(D)};
_.q._innerSubscribe=function(D){var t=this,H=this.JSC$9095_isStopped,e=this.observers;return this.hasError||H?h6.JSC$9074_EMPTY:(e.push(D),new h6(function(){return jxD(t.observers,D)}))};
_.q._checkFinalizedStatuses=function(D){var t=this.thrownError,H=this.JSC$9095_isStopped;this.hasError?D.error(t):H&&D.complete()};
Tt.create=function(D,t){return new $B(D,t)};
var $B=function(D,t){Tt.call(this);this.destination=D;this.source=t};
_.P($B,Tt);$B.create=Tt.create;$B.prototype.next=function(D){var t,H;(t=this.destination)==null||(H=t.next)==null||H.call(t,D)};
$B.prototype.error=function(D){var t,H;(t=this.destination)==null||(H=t.error)==null||H.call(t,D)};
$B.prototype.complete=function(){var D,t;(D=this.destination)==null||(t=D.complete)==null||t.call(D)};
$B.prototype._subscribe=function(D){var t,H;return(H=(t=this.source)==null?void 0:t.subscribe(D))!=null?H:h6.JSC$9074_EMPTY};var It=function(D){Tt.call(this);this._value=D};
_.P(It,Tt);It.create=Tt.create;It.prototype._subscribe=function(D){var t=Tt.prototype._subscribe.call(this,D);!t.closed&&D.next(this._value);return t};
It.prototype.getValue=function(){var D=this.thrownError,t=this._value;if(this.hasError)throw D;this._throwIfClosed();return t};
It.prototype.next=function(D){Tt.prototype.next.call(this,this._value=D)};
_.ql.Object.defineProperties(It.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var vv=new kp(function(D){return D.complete()});var np3=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var XvR=function(D){return D&&typeof D.length==="number"&&typeof D!=="function"};var iQv={now:function(){return(iQv.delegate||Date).now()},
delegate:void 0};var Vo=function(D,t,H){D=D===void 0?Infinity:D;t=t===void 0?Infinity:t;H=H===void 0?iQv:H;Tt.call(this);this.bufferSize=D;this.windowTime=t;this.timestampProvider=H;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=t===Infinity;this.bufferSize=Math.max(1,D);this.windowTime=Math.max(1,t)};
_.P(Vo,Tt);Vo.create=Tt.create;Vo.prototype.next=function(D){var t=this.buffer,H=this.infiniteTimeWindow,e=this.timestampProvider,V=this.windowTime;this.JSC$9095_isStopped||(t.push(D),!H&&t.push(e.now()+V));r39(this);Tt.prototype.next.call(this,D)};
Vo.prototype._subscribe=function(D){this._throwIfClosed();r39(this);for(var t=this._innerSubscribe(D),H=this.infiniteTimeWindow,e=this.buffer.slice(),V=0;V<e.length&&!D.closed;V+=H?1:2)D.next(e[V]);this._checkFinalizedStatuses(D);return t};
var r39=function(D){var t=D.bufferSize,H=D.timestampProvider,e=D.buffer;D=D.infiniteTimeWindow;var V=(D?1:2)*t;t<Infinity&&V<e.length&&e.splice(0,e.length-V);if(!D){t=H.now();H=0;for(D=1;D<e.length&&e[D]<=t;D+=2)H=D;H&&e.splice(0,H+1)}};var Uw4=function(D,t){t=t===void 0?OQB:t;this.schedulerActionCtor=D;this.now=t};
Uw4.prototype.schedule=function(D,t,H){t=t===void 0?0:t;return(new this.schedulerActionCtor(this,D)).schedule(H,t)};
var OQB=iQv.now;var U3K=function(){var D=Error.call(this,"no elements in sequence");this.message=D.message;"stack"in D&&(this.stack=D.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.P(U3K,Error);var Xq=function(D,t,H,e,V){TN.call(this,D);this.onUnsubscribe=V;t&&(this._next=function(b){try{t(b)}catch(a){this.destination.error(a)}});
H&&(this._error=function(b){try{H(b)}catch(a){this.destination.error(a)}this.unsubscribe()});
e&&(this._complete=function(){try{e()}catch(b){this.destination.error(b)}this.unsubscribe()})};
_.P(Xq,TN);Xq.JSC$9074_EMPTY=TN.JSC$9074_EMPTY;Xq.create=TN.create;Xq.prototype.unsubscribe=function(){var D;this.closed||(D=this.onUnsubscribe)!=null&&D.call(this);TN.prototype.unsubscribe.call(this)};var H_=function(D,t){this.source=D;this.subjectFactory=t;this._subject=null;this._refCount=0;this._connection=null};
_.P(H_,kp);H_.create=kp.create;H_.prototype._subscribe=function(D){return ovQ(this).subscribe(D)};
var ovQ=function(D){var t=D._subject;if(!t||t.JSC$9095_isStopped)D._subject=D.subjectFactory();return D._subject};
H_.prototype._teardown=function(){this._refCount=0;var D=this._connection;this._subject=this._connection=null;D==null||D.unsubscribe()};
H_.prototype.connect=function(){var D=this,t=this._connection;if(!t){t=this._connection=new h6;var H=ovQ(this);t.add(this.source.subscribe(new Xq(H,void 0,function(e){D._teardown();H.error(e)},function(){D._teardown();
H.complete()},function(){return D._teardown()})));
t.closed&&(this._connection=null,t=h6.JSC$9074_EMPTY)}return t};var RDA=Array.isArray;var Wuk=Array.isArray,Paa=Object,I73=Paa.getPrototypeOf,QxR=Paa.prototype,y6k=Paa.keys;var J6=function(D,t,H){TN.call(this,D);this._next=t;this.shouldComplete=H};
_.P(J6,TN);J6.JSC$9074_EMPTY=TN.JSC$9074_EMPTY;J6.create=TN.create;J6.prototype._complete=function(){this.shouldComplete()?TN.prototype._complete.call(this):this.unsubscribe()};var q5V=["addListener","removeListener"],bWk=["addEventListener","removeEventListener"],aiR=["on","off"];var rq=function(){h6.call(this)};
_.P(rq,h6);rq.JSC$9074_EMPTY=h6.JSC$9074_EMPTY;rq.prototype.schedule=function(){return this};var nvv=function(D,t){return setInterval.apply(null,[D,t].concat(_.A6(_.RE.apply(2,arguments))))};var OB=function(D,t){h6.call(this);this.scheduler=D;this.work=t;this.pending=!1};
_.P(OB,rq);OB.JSC$9074_EMPTY=rq.JSC$9074_EMPTY;OB.prototype.schedule=function(D,t){t=t===void 0?0:t;if(this.closed)return this;this.state=D;D=this.id;var H=this.scheduler;D!=null&&(this.id=Caf(this,D,t));this.pending=!0;this.delay=t;this.id=this.id||this.requestAsyncId(H,this.id,t);return this};
OB.prototype.requestAsyncId=function(D,t,H){H=H===void 0?0:H;return nvv(D.flush.bind(D,this),H)};
var Caf=function(D,t,H){H=H===void 0?0:H;if(H!=null&&D.delay===H&&D.pending===!1)return t;clearInterval(t)};
OB.prototype.execute=function(D,t){if(this.closed)return Error("ha");this.pending=!1;if(D=this._execute(D,t))return D;this.pending===!1&&this.id!=null&&(this.id=Caf(this,this.id,null))};
OB.prototype._execute=function(D){var t=!1;try{this.work(D)}catch(e){t=!0;var H=!!e&&e||Error(e)}if(t)return this.unsubscribe(),H};
OB.prototype.unsubscribe=function(){if(!this.closed){var D=this.id,t=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;jxD(t,this);D!=null&&(this.id=Caf(this,D,null));this.delay=null;rq.prototype.unsubscribe.call(this)}};var mwo=function(D,t){t=t===void 0?OQB:t;Uw4.call(this,D,t);this.actions=[];this.active=!1;this.scheduled=void 0};
_.P(mwo,Uw4);mwo.prototype.flush=function(D){var t=this.actions;if(this.active)t.push(D);else{var H;this.active=!0;do if(H=D.execute(D.state,D.delay))break;while(D=t.shift());this.active=!1;if(H){for(;D=t.shift();)D.unsubscribe();throw H;}}};var LW=new kp(G7);var w_R=Array.isArray;var UB=function(D,t){OB.call(this,D,t);this.scheduler=D;this.work=t};
_.P(UB,OB);UB.JSC$9074_EMPTY=OB.JSC$9074_EMPTY;UB.prototype.schedule=function(D,t){t=t===void 0?0:t;if(t>0)return OB.prototype.schedule.call(this,D,t);this.delay=t;this.state=D;this.scheduler.flush(this);return this};
UB.prototype.execute=function(D,t){return t>0||this.closed?OB.prototype.execute.call(this,D,t):this._execute(D,t)};
UB.prototype.requestAsyncId=function(D,t,H){H=H===void 0?0:H;return H!=null&&H>0||H==null&&this.delay>0?OB.prototype.requestAsyncId.call(this,D,t,H):D.flush(this)};var Mfw=function(){mwo.apply(this,arguments)};
_.P(Mfw,mwo);var ddD=new Mfw(UB);var Smn=function(){this.performanceMonitor=new g3f;this.queue=new JTa;this.internalSymbol=Symbol();this.debugNames=new To3};
Smn.prototype.getOnBackgrounded=function(){return LW};
_.ql.Object.defineProperties(Smn.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var oS=function(D,t){t=Error.call(this,t?D+": "+t:String(D));this.message=t.message;"stack"in t&&(this.stack=t.stack);this.code=D;this.__proto__=oS.prototype;this.name=String(D)};
_.P(oS,Error);var A$=function(D){oS.call(this,1E3,'sfr:"'+D+'"');this.measurementStrategyFailureReason=D;this.__proto__=A$.prototype};
_.P(A$,oS);var gM=function(){oS.call(this,1003);this.__proto__=gM.prototype};
_.P(gM,oS);var Pr=function(){oS.call(this,1009);this.__proto__=Pr.prototype};
_.P(Pr,oS);var X9f=function(){oS.call(this,1011);this.__proto__=X9f.prototype};
_.P(X9f,oS);var fff=function(){oS.call(this,1007);this.__proto__=gM.prototype};
_.P(fff,oS);var Xw=function(D){oS.call(this,1004,String(D));this.inputObservableIndex=D;this.__proto__=Xw.prototype};
_.P(Xw,oS);var dcK=function(D){oS.call(this,1010,D);this.__proto__=xcV.prototype};
_.P(dcK,oS);var xcV=function(D){oS.call(this,1005,D);this.__proto__=xcV.prototype};
_.P(xcV,oS);var Lnw=function(D){var t=_.RE.apply(1,arguments),H=this;this.orderedFactories=[];this.orderedFactories.push(D);t.forEach(function(e){H.orderedFactories.push(e)})};
Lnw.prototype.isSupported=function(D){return this.orderedFactories.some(function(t){return t.isSupported(D)})};
Lnw.prototype.makeBeacon=function(D,t){for(var H=0;H<this.orderedFactories.length;H++)if(this.orderedFactories[H].isSupported(t))return this.orderedFactories[H].makeBeacon(D,t);throw new Pr;};var SPR=Symbol("ia"),A3V=Symbol("ja"),uF=function(D,t){this.value=D;this.timeline=t},Rx=function(D,t){if(t.timeline!==D.timeline)throw new fff;
return D.value-t.value};
_.q=uF.prototype;_.q.equals=function(D){return Rx(this,D)===0};
_.q.maximum=function(D){if(D.timeline!==this.timeline)throw new fff;return this.value>=D.value?this:D};
_.q.round=function(){return new uF(Math.round(this.value),this.timeline)};
_.q.add=function(D){return new uF(this.value+D,this.timeline)};
_.q.toString=function(){return String(this.value)};var nJ=function(D,t){this.context=D;this.JSC$9201_pinger=t};
nJ.prototype.isSupported=function(D){return this.JSC$9201_pinger.isSupported(D)};
nJ.prototype.makeBeacon=function(D,t){if(!this.isSupported(t))throw new Pr;return new mb(this.context,this.JSC$9201_pinger,t!=null?t:void 0,D)};
var mb=function(D,t,H,e){var V=this;this.JSC$9207_pinger=t;this.properties=H;this.url=e;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var b;this.method=(b=H==null?void 0:H.beaconMethod)!=null?b:"GET";this.backgroundedSubscription=D.getOnBackgrounded().subscribe(function(){V.sendNow()})};
mb.prototype.deactivate=function(){this.internalIsPending=!1};
mb.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9207_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var D,t;this.JSC$9207_pinger.pingWithHeadersAndBody((D=this.properties)!=null?D:{},this.customHeaders,(t=this.body)!=null?t:"",this.url)}else this.JSC$9207_pinger.ping(this.url);this.internalIsPending=!1}catch(H){}else this.internalIsPending=!1};
mb.prototype.setHeader=function(D,t){this.customHeaders.set(D,t)};
_.ql.Object.defineProperties(mb.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var J33=function(){for(var D=_.F(_.RE.apply(0,arguments)),t=D.next();!t.done;t=D.next())if(t=t.value,t.available()){this.timeProvider=t;return}this.timeProvider=new gvm};
_.q=J33.prototype;_.q.available=function(){return this.timeProvider.available()};
_.q.now=function(){return this.timeProvider.now()};
_.q.setTimeout=function(D,t){return this.timeProvider.setTimeout(D,t)};
_.q.clearTimeout=function(D){this.timeProvider.clearTimeout(D)};
_.q.interval=function(D,t){var H=this.intervalObservable(D).subscribe(t);return function(){return void H.unsubscribe()}};
_.q.intervalObservable=function(D){return this.timeProvider.intervalObservable(D)};
_.ql.Object.defineProperties(J33.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var gvm=function(){this.timeline=Symbol()};
_.q=gvm.prototype;_.q.available=function(){return!1};
_.q.now=function(){return new uF(0,this.timeline)};
_.q.setTimeout=function(){return 0};
_.q.clearTimeout=function(){};
_.q.interval=function(){return function(){}};
_.q.intervalObservable=function(){return LW};var MA=function(D,t){this.intrinsicFunctionNamespace=D;this.performanceMonitor=t};
_.q=MA.prototype;_.q.setTimeout=function(D,t){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,D),t)};
_.q.clearTimeout=function(D){this.intrinsicFunctionNamespace.clearTimeout(D)};
_.q.interval=function(D,t){var H=this.intervalObservable(D).subscribe(t);return function(){return void H.unsubscribe()}};
_.q.intervalObservable=function(D){var t=this;return new kp(function(H){var e=0,V=t.intrinsicFunctionNamespace.setInterval(function(){H.next(e++)},D);
return function(){t.intrinsicFunctionNamespace.clearInterval(V)}})};
_.q.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var YmB=function(D,t){MA.call(this,D,t);this.timeline=A3V};
_.P(YmB,MA);YmB.prototype.now=function(){return new uF(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
YmB.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&MA.prototype.available.call(this)};var lfv=function(D,t){MA.call(this,D,t);this.timeline=SPR};
_.P(lfv,MA);lfv.prototype.now=function(){return new uF(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
lfv.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&MA.prototype.available.call(this)};var p9a=function(D){this.context=D;if(vv3===void 0)a:{var t,H,e=(t=D.global)==null?void 0:(H=t.document)==null?void 0:H.createElement("meta");if(e)try{e.httpEquiv="origin-trial";e.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";D.global.document.head.append(e);vv3=e;break a}catch(V){}vv3=void 0}},
vv3;
p9a.prototype.isSupported=function(D){return c$K(this.context)!==void 0&&!(D==null||!D.endOfSession)&&!SB(this.context)&&!(D==null?0:D.attributionEnabled)&&!(D==null?0:D.customHeaders)&&!(D==null?0:D.customBody)};
p9a.prototype.makeBeacon=function(D,t){if(!this.isSupported(t))throw new Pr;return new Xx(this.context,D,t)};
var Xx=function(D,t,H){this.context=D;this.properties=H;this.JSC$9234_urlWithoutToken=t;var e;this.beaconMethod=(e=H==null?void 0:H.beaconMethod)!=null?e:"GET";D=c$K(this.context);if(D===void 0)throw Error();this.fetchLater=D;dwQ(this,xwv(this))},dwQ=function(D,t){D.beaconResult&&D.beaconResult.activated||(D.beaconAbort=new AbortController,D.beaconResult=D.fetchLater(t,{method:D.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:D.beaconAbort.signal,activateAfter:96E4}))},xwv=function(D){D=D.JSC$9234_urlWithoutToken;
return(D.slice(-1)[0]==="&"?D:D+"&")+"flapi=1"};
Xx.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Xx.prototype.sendNow=function(){};
Xx.prototype.setHeader=function(){};
_.ql.Object.defineProperties(Xx.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9234_urlWithoutToken},
set:function(D){this.JSC$9234_urlWithoutToken=D;D=xwv(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);dwQ(this,D)}},
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 Rn3=function(D){this.context=D};
Rn3.prototype.isSupported=function(){return!SB(this.context)&&!!this.context.global.fetch};
Rn3.prototype.ping=function(){var D=this;return p2.apply(null,_.A6(_.RE.apply(0,arguments).map(function(t){return j2(D.context.global.fetch(t,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(L2(function(H){return H.status===200}))}))).pipe(ozR(function(t){return t}),nzV())};
Rn3.prototype.pingWithHeadersAndBody=function(D,t,H){for(var e=_.RE.apply(3,arguments),V=this,b=new Headers,a=_.F(t.entries()),w=a.next();!w.done;w=a.next()){var h=_.F(w.value);w=h.next().value;h=h.next().value;b.set(w,h)}var K,N=(K=D.keepAlive)!=null?K:!1;p2.apply(null,_.A6(e.map(function(k){return j2(V.context.global.fetch(k,Object.assign({},{method:String(D.beaconMethod),cache:"no-cache"},N?{keepalive:!0}:{},{mode:"no-cors",headers:b,body:H}))).pipe(L2(function(T){return T.status===200}))}))).pipe(ozR(function(k){return k}),
nzV())};var u6n,kUT,Wnm;_.fJ=function(){};
_.AT=function(D){return D};
u6n=function(D){var t=t||0;return function(){return D.apply(this,Array.prototype.slice.call(arguments,0,t))}};
_.LJ=function(D){var t=!1,H;return function(){t||(H=D(),t=!0);return H}};
_.A_=function(D,t){var H=0;return function(e){_.VA.clearTimeout(H);var V=arguments;H=_.VA.setTimeout(function(){D.apply(void 0,V)},t)}};
kUT=function(D,t){var H=0,e=!1,V=[],b=function(){H=0;e&&(e=!1,a())},a=function(){H=_.VA.setTimeout(b,t);
var w=V;V=[];D.apply(void 0,w)};
return function(w){V=arguments;H?e=!0:a()}};
Wnm=function(D,t){var H=0,e=function(){H=0};
return function(V){H||(H=_.VA.setTimeout(e,t),D.apply(void 0,arguments))}};var QBo=function(){return ck&&$3?$3.mobile:!Iff()&&(OD("iPod")||OD("iPhone")||OD("Android")||OD("IEMobile"))},Iff=function(){return ck&&$3?!$3.mobile&&(OD("iPad")||OD("Android")||OD("Silk")):OD("iPad")||OD("Android")&&!OD("Mobile")||OD("Silk")};var gq=function(D,t,H,e,V){this.allowedElements=D;this.elementPolicies=t;this.allowedGlobalAttributes=H;this.globalAttributePolicies=e;this.globallyAllowedAttributePrefixes=V},y3o=function(D,t,H){H=D.elementPolicies.get(H);
return(H==null?0:H.has(t))?H.get(t):D.allowedGlobalAttributes.has(t)?{policyAction:1}:(H=D.globalAttributePolicies.get(t))?H:D.globallyAllowedAttributePrefixes&&[].concat(_.A6(D.globallyAllowedAttributePrefixes)).some(function(e){return t.indexOf(e)===0})?{policyAction:1}:{policyAction:0}};var BoQ="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(" "),
znQ=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],DHQ="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
tb9=[["dir",{policyAction:3,conditions:CM(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:CM(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:CM(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:CM(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],Hef=new gq(new Set(BoQ),new Map(znQ),new Set(DHQ),new Map(tb9)),egf=new gq(new Set(BoQ.concat(["BUTTON",
"INPUT"])),new Map(znQ),new Set(CM(function(){return DHQ.concat(["class","id","name"])})),new Map(CM(function(){return tb9.concat([["style",
{policyAction:1}]])})));var Vb6,beo,FiV;Vb6=function(D,t,H,e,V){this.JSC$9291_sanitizerTable=D;this.styleElementSanitizer=t;this.styleAttributeSanitizer=H;this.JSC$9291_resourceUrlPolicy=e;this.JSC$9291_navigationUrlPolicy=V;this.changes=[]};
_.qFw=function(D,t){var H=document.implementation.createHTMLDocument("");D=beo(D,t,H);H=H.body;H.appendChild(D);H=(new XMLSerializer).serializeToString(H);H=H.slice(H.indexOf(">")+1,H.lastIndexOf("</"));return Ql(H)};
beo=function(D,t,H){t=J$V(t,H);t=document.createTreeWalker(t,5,function(w){if(w.nodeType===3)w=1;else if(lik(w))if(w=Y5k(w),w===null)w=2;else{var h=D.JSC$9291_sanitizerTable;w=w!=="FORM"&&(h.allowedElements.has(w)||h.elementPolicies.has(w))?1:2}else w=2;return w});
for(var e=t.nextNode(),V=H.createDocumentFragment(),b=V;e!==null;){var a=void 0;if(e.nodeType===3)D.styleElementSanitizer&&b.nodeName==="STYLE"?(e=D.styleElementSanitizer(e.data),a=D.createTextNode(e)):a=D.createTextNode(e.data);else if(lik(e))a=FiV(D,e,H);else throw Error("Z");b.appendChild(a);if(e=t.firstChild())b=a;else for(;!(e=t.nextSibling())&&(e=t.parentNode());)b=b.parentNode}return V};
Vb6.prototype.createTextNode=function(D){return document.createTextNode(D)};
FiV=function(D,t,H){var e,V=Y5k(t);H=H.createElement(V);t=t.attributes;for(var b=_.F(t),a=b.next();!a.done;a=b.next()){var w=a.value;a=w.name;w=w.value;var h=y3o(D.JSC$9291_sanitizerTable,a,V);a:{if(e=h.conditions){e=_.F(e);for(var K=e.next();!K.done;K=e.next()){var N=_.F(K.value);K=N.next().value;N=N.next().value;var k=void 0;if((K=(k=t.getNamedItem(K))==null?void 0:k.value)&&!N.has(K)){e=!1;break a}}}e=!0}if(e)switch(h.policyAction){case 1:Gt(H,a,w);break;case 2:throw Error();case 3:Gt(H,a,w.toLowerCase());
break;case 4:D.styleAttributeSanitizer?(w=D.styleAttributeSanitizer(w),Gt(H,a,w)):Gt(H,a,w);break;case 5:D.JSC$9291_resourceUrlPolicy?(h={type:2,attributeName:a,elementName:V},w=gzR(w),(w=D.JSC$9291_resourceUrlPolicy(w,h))&&Gt(H,a,w.toString())):Gt(H,a,w);break;case 6:if(D.JSC$9291_resourceUrlPolicy){h={type:2,attributeName:a,elementName:V};e=[];w=_.F(w.split(","));for(K=w.next();!K.done;K=w.next())N=_.F(K.value.trim().split(/\s+/,2)),K=N.next().value,N=N.next().value,e.push({url:K,descriptor:N});
w={parts:[]};e=_.F(e);for(K=e.next();!K.done;K=e.next())K=K.value,N=gzR(K.url),(N=D.JSC$9291_resourceUrlPolicy(N,h))&&w.parts.push({url:N.toString(),descriptor:K.descriptor});Gt(H,a,vz8(w))}else Gt(H,a,w);break;case 7:h=w;if(D.JSC$9291_navigationUrlPolicy){h={type:2,attributeName:a,elementName:V};w=gzR(w);w=D.JSC$9291_navigationUrlPolicy(w,h);if(w===null)break;h=w.toString()}w=h;h=_.a7K(w);h=h!==void 0&&afQ.indexOf(h.toLowerCase())!==-1?w:"about:invalid#zClosurez";Gt(H,a,h)}}return H};
_.aOf=CM(function(){return new Vb6(Hef)});
_.wt4=CM(function(){return new Vb6(egf)});var Zem=function(){this.calledBuild=!1;this.JSC$9303_sanitizerTable=Hef},svv=function(){Zem.apply(this,arguments)};
_.P(svv,Zem);svv.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new Vb6(this.JSC$9303_sanitizerTable,void 0,void 0,this.JSC$9303_resourceUrlPolicy,this.JSC$9303_navigationUrlPolicy)};var hgn=/[^#]*/;var Mru={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"},GHQ=_.LJ(function(){return X_D()}),
KiV=function(){var D=EQn("IFRAME"),t={};
_.ID(GHQ(),function(H){D.sandbox&&D.sandbox.supports&&D.sandbox.supports(H)&&(t[H]=!0)});
return t},EQn=function(D,t){t=t===void 0?document:t;
return t.createElement(String(D).toLowerCase())};var J_;_.A8=function(D,t,H){return Math.min(Math.max(D,t),H)};
J_=function(D,t,H){return D+H*(t-D)};_.lR=function(D,t){this.x=D!==void 0?D:0;this.y=t!==void 0?t:0};
_.q=_.lR.prototype;_.q.clone=function(){return new _.lR(this.x,this.y)};
_.q.equals=function(D){return D instanceof _.lR&&(this==D?!0:this&&D?this.x==D.x&&this.y==D.y:!1)};
_.q.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.q.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.q.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.q.translate=function(D,t){D instanceof _.lR?(this.x+=D.x,this.y+=D.y):(this.x+=Number(D),typeof t==="number"&&(this.y+=t));return this};
_.q.scale=function(D,t){this.x*=D;this.y*=typeof t==="number"?t:D;return this};_.O5=function(D,t){this.width=D;this.height=t};
_.q=_.O5.prototype;_.q.clone=function(){return new _.O5(this.width,this.height)};
_.q.area=function(){return this.width*this.height};
_.q.aspectRatio=function(){return this.width/this.height};
_.q.isEmpty=function(){return!this.area()};
_.q.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.q.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.q.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.q.scale=function(D,t){this.width*=D;this.height*=typeof t==="number"?t:D;return this};var N46;_.J$={};N46="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.J$.add=function(D,t,H){if(D!==null&&t in D)throw Error("na`"+t);D[t]=H};
_.J$.clear=function(D){for(var t in D)delete D[t]};
_.J$.clone=function(D){var t={},H;for(H in D)t[H]=D[H];return t};
_.J$.contains=function(D,t){return x3V(D,t)};
_.J$.containsKey=function(D,t){return D!==null&&t in D};
_.J$.containsValue=x3V;_.J$.create=WJD;_.J$.createImmutableView=function(D){var t=D;Object.isFrozen&&!Object.isFrozen(D)&&(t=Object.create(D),Object.freeze(t));return t};
_.J$.createSet=IiV;_.J$.equals=function(D,t){for(var H in D)if(!(H in t)||D[H]!==t[H])return!1;for(var e in t)if(!(e in D))return!1;return!0};
_.J$.every=function(D,t,H){for(var e in D)if(!t.call(H,D[e],e,D))return!1;return!0};
_.J$.extend=function(D,t){for(var H,e,V=1;V<arguments.length;V++){e=arguments[V];for(H in e)D[H]=e[H];for(var b=0;b<N46.length;b++)H=N46[b],Object.prototype.hasOwnProperty.call(e,H)&&(D[H]=e[H])}};
_.J$.filter=function(D,t,H){var e={},V;for(V in D)t.call(H,D[V],V,D)&&(e[V]=D[V]);return e};
_.J$.findKey=R5A;_.J$.findValue=function(D,t,H){return(t=R5A(D,t,H))&&D[t]};
_.J$.forEach=function(D,t,H){for(var e in D)t.call(H,D[e],e,D)};
_.J$.get=function(D,t,H){return D!==null&&t in D?D[t]:H};
_.J$.getAllPropertyNames=function(D,t,H){if(!D)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return d3A(D);for(var e={};D&&(D!==Object.prototype||t)&&(D!==Function.prototype||H);){for(var V=Object.getOwnPropertyNames(D),b=0;b<V.length;b++)e[V[b]]=!0;D=Object.getPrototypeOf(D)}return d3A(e)};
_.J$.getAnyKey=function(D){for(var t in D)return t};
_.J$.getAnyValue=function(D){for(var t in D)return D[t]};
_.J$.getCount=function(D){var t=0,H;for(H in D)t++;return t};
_.J$.getKeys=d3A;_.J$.getSuperClass=function(D){return(D=Object.getPrototypeOf(D.prototype))&&D.constructor};
_.J$.getValueByKeys=function(D,t){var H=_.d6(t),e=H?t:arguments;for(H=H?0:1;H<e.length;H++){if(D==null)return;D=D[e[H]]}return D};
_.J$.getValues=function(D){var t=[],H=0,e;for(e in D)t[H++]=D[e];return t};
_.J$.isEmpty=function(D){for(var t in D)return!1;return!0};
_.J$.isImmutableView=function(D){return!!Object.isFrozen&&Object.isFrozen(D)};
_.J$.map=function(D,t,H){var e={},V;for(V in D)e[V]=t.call(H,D[V],V,D);return e};
_.J$.remove=function(D,t){var H;(H=t in D)&&delete D[t];return H};
_.J$.set=function(D,t,H){D[t]=H};
_.J$.setIfUndefined=function(D,t,H){return t in D?D[t]:D[t]=H};
_.J$.setWithReturnValueIfNotSet=function(D,t,H){if(t in D)return D[t];H=H();return D[t]=H};
_.J$.some=function(D,t,H){for(var e in D)if(t.call(H,D[e],e,D))return!0;return!1};
_.J$.transpose=function(D){var t={},H;for(H in D)t[D[H]]=H;return t};
_.J$.unsafeClone=uwR;var v$=function(D,t){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=D===vi6&&t||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=kHo};
v$.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var T4v=function(D){return D instanceof v$&&D.constructor===v$&&D.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===kHo?D.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},kHo={},vi6={};
new v$(vi6,"");var mJ,oK,lt,cF9,iew,$HQ,v_,Oew,oQv,UHn,xB,PYf,fOv,Xtf,SFf,Lif,AF9,gQm,JF9,q7V,YFf,vQB,ptv,lOn,YB;mJ=function(D){return D?new YB(_.pW(D)):UeA||(UeA=new YB)};
_.wF=function(D,t){return typeof t==="string"?D.getElementById(t):t};
oK=function(D,t){return(t||document).getElementsByTagName(String(D))};
_.jvn=function(D){return cF9("yt-formatted-string","paper-input-input",D)};
lt=function(D,t,H,e){D=e||D;return(t=t&&t!="*"?String(t).toUpperCase():"")||H?D.querySelectorAll(t+(H?"."+H:"")):D.getElementsByTagName("*")};
cF9=function(D,t,H){var e=document,V=D&&D!="*"?String(D).toUpperCase():"";return V||t?(H||e).querySelector(V+(t?"."+t:"")):lt(e,D,t,H)[0]||null};
iew=function(D,t){_.J$.forEach(t,function(H,e){e=="style"?D.style.cssText=H:e=="class"?D.className=H:e=="for"?D.htmlFor=H:$HQ.hasOwnProperty(e)?D.setAttribute($HQ[e],H):_.qu(e,"aria-")||_.qu(e,"data-")?D.setAttribute(e,H):D[e]=H})};
$HQ={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"};_.U5=function(D){D=(D||window).document;D=D.compatMode=="CSS1Compat"?D.documentElement:D.body;return new _.O5(D.clientWidth,D.clientHeight)};
_.rFQ=function(D){var t=_.vr(D);D=D.defaultView;return new _.lR((D==null?void 0:D.pageXOffset)||t.scrollLeft,(D==null?void 0:D.pageYOffset)||t.scrollTop)};
_.vr=function(D){return D.scrollingElement?D.scrollingElement:_.NG||D.compatMode!="CSS1Compat"?D.body||D.documentElement:D.documentElement};
v_=function(D){return D?D.defaultView:window};
_.pJ=function(D,t,H){return Oew(document,arguments)};
Oew=function(D,t){var H=t[1],e=UHn(D,String(t[0]));H&&(typeof H==="string"?e.className=H:Array.isArray(H)?e.className=H.join(" "):iew(e,H));t.length>2&&oQv(D,e,t,2);return e};
oQv=function(D,t,H,e){function V(w){w&&t.appendChild(typeof w==="string"?D.createTextNode(w):w)}
for(;e<H.length;e++){var b=H[e];if(!_.d6(b)||_.Wk(b)&&b.nodeType>0)V(b);else{a:{if(b&&typeof b.length=="number"){if(_.Wk(b)){var a=typeof b.item=="function"||typeof b.item=="string";break a}if(typeof b==="function"){a=typeof b.item=="function";break a}}a=!1}_.ID(a?_.pK(b):b,V)}}};
_.OH=function(D){return UHn(document,D)};
UHn=function(D,t){t=String(t);D.contentType==="application/xhtml+xml"&&(t=t.toLowerCase());return D.createElement(t)};
_.dq=function(){return document.createTextNode("\n")};
xB=function(D){if(D.nodeType!=1)return!1;switch(D.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};
PYf=function(D,t){oQv(_.pW(D),D,arguments,1)};
_.RS=function(D){for(var t;t=D.firstChild;)D.removeChild(t)};
_.ut=function(D,t){t.parentNode&&t.parentNode.insertBefore(D,t)};
_.Wr=function(D,t){t.parentNode&&t.parentNode.insertBefore(D,t.nextSibling)};
_.UH=function(D){return D&&D.parentNode?D.parentNode.removeChild(D):null};
_.nQm=function(D,t){var H=t.parentNode;H&&H.replaceChild(D,t)};
_.CY3=function(D){var t,H=D.parentNode;if(H&&H.nodeType!=11)if(D.removeNode)D.removeNode(!1);else{for(;t=D.firstChild;)H.insertBefore(t,D);_.UH(D)}};
_.IS=function(D){return D.children!=void 0?D.children:Array.prototype.filter.call(D.childNodes,function(t){return t.nodeType==1})};
_.Mbf=function(D){return D.nextElementSibling!==void 0?D.nextElementSibling:_.mHf(D.nextSibling,!0)};
_.mHf=function(D,t){for(;D&&D.nodeType!=1;)D=t?D.nextSibling:D.previousSibling;return D};
_.H$=function(D){return _.Wk(D)&&D.nodeType==1};
_.RK=function(D,t){if(!D||!t)return!1;if(D.contains&&t.nodeType==1)return D==t||D.contains(t);if(typeof D.compareDocumentPosition!="undefined")return D==t||!!(D.compareDocumentPosition(t)&16);for(;t&&D!=t;)t=t.parentNode;return t==D};
fOv=function(D,t){if(D==t)return 0;if(D.compareDocumentPosition)return D.compareDocumentPosition(t)&2?1:-1;if("sourceIndex"in D||D.parentNode&&"sourceIndex"in D.parentNode){var H=D.nodeType==1,e=t.nodeType==1;if(H&&e)return D.sourceIndex-t.sourceIndex;var V=D.parentNode,b=t.parentNode;return V==b?SFf(D,t):!H&&_.RK(V,t)?-1*Xtf(D,t):!e&&_.RK(b,D)?Xtf(t,D):(H?D.sourceIndex:V.sourceIndex)-(e?t.sourceIndex:b.sourceIndex)}e=_.pW(D);H=e.createRange();H.selectNode(D);H.collapse(!0);D=e.createRange();D.selectNode(t);
D.collapse(!0);return H.compareBoundaryPoints(_.VA.Range.START_TO_END,D)};
Xtf=function(D,t){var H=D.parentNode;if(H==t)return-1;for(;t.parentNode!=H;)t=t.parentNode;return SFf(t,D)};
SFf=function(D,t){for(;t=t.previousSibling;)if(t==D)return-1;return 1};
Lif=function(D){var t,H=arguments.length;if(!H)return null;if(H==1)return arguments[0];var e=[],V=Infinity;for(t=0;t<H;t++){for(var b=[],a=arguments[t];a;)b.unshift(a),a=a.parentNode;e.push(b);V=Math.min(V,b.length)}b=null;for(t=0;t<V;t++){a=e[0][t];for(var w=1;w<H;w++)if(a!=e[w][t])return b;b=a}return b};
_.pW=function(D){return D.nodeType==9?D:D.ownerDocument||D.document};
AF9=function(D){return D.contentDocument||D.contentWindow.document};
_.Qs=function(D,t){if("textContent"in D)D.textContent=t;else if(D.nodeType==3)D.data=String(t);else if(D.firstChild&&D.firstChild.nodeType==3){for(;D.lastChild!=D.firstChild;)D.removeChild(D.lastChild);D.firstChild.data=String(t)}else _.RS(D),D.appendChild(_.pW(D).createTextNode(String(t)))};
gQm={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};JF9={IMG:" ",BR:"\n"};q7V=function(D){var t;D.tagName=="A"&&D.hasAttribute("href")||D.tagName=="INPUT"||D.tagName=="TEXTAREA"||D.tagName=="SELECT"||D.tagName=="BUTTON"?t=!D.disabled&&(!D.hasAttribute("tabindex")||YFf(D)):t=D.hasAttribute("tabindex")&&YFf(D);return t};
YFf=function(D){D=D.tabIndex;return typeof D==="number"&&D>=0&&D<32768};
vQB=function(D){var t=[];lOn(D,t,!0);D=t.join("");D=D.replace(/ \xAD /g," ").replace(/\xAD/g,"");D=D.replace(/\u200B/g,"");D=D.replace(/ +/g," ");D!=" "&&(D=D.replace(/^\s*/,""));return D};
ptv=function(D){var t=[];lOn(D,t,!1);return t.join("")};
lOn=function(D,t,H){if(!(D.nodeName in gQm))if(D.nodeType==3)H?t.push(String(D.nodeValue).replace(/(\r\n|\r|\n)/g,"")):t.push(D.nodeValue);else if(D.nodeName in JF9)t.push(JF9[D.nodeName]);else for(D=D.firstChild;D;)lOn(D,t,H),D=D.nextSibling};
_.dHV=function(D,t,H){if(!t&&!H)return null;var e=t?String(t).toUpperCase():null;return _.xz(D,function(V){return(!e||V.nodeName==e)&&(!H||typeof V.className==="string"&&_.l8(V.className.split(/\s+/),H))},!0)};
_.xz=function(D,t,H){D&&!H&&(D=D.parentNode);for(H=0;D;){if(t(D))return D;D=D.parentNode;H++}return null};
YB=function(D){this.JSC$9330_document_=D||_.VA.document||document};
_.q=YB.prototype;_.q.getElement=function(D){return _.wF(this.JSC$9330_document_,D)};
_.q.$=YB.prototype.getElement;_.q.getElementsByTagName=function(D,t){return(t||this.JSC$9330_document_).getElementsByTagName(String(D))};
_.q.getElementsByTagNameAndClass=function(D,t,H){return lt(this.JSC$9330_document_,D,t,H)};
_.q.$$=YB.prototype.getElementsByTagNameAndClass;_.q.setProperties=iew;_.q.JSC$9332_createDom=function(D,t,H){return Oew(this.JSC$9330_document_,arguments)};
_.q.createElement=function(D){return UHn(this.JSC$9330_document_,D)};
_.q.createTextNode=function(D){return this.JSC$9330_document_.createTextNode(String(D))};
_.q.getWindow=function(){return this.JSC$9330_document_.defaultView};
var ot=function(D){return _.rFQ(D.JSC$9330_document_)};
_.q=YB.prototype;_.q.appendChild=function(D,t){D.appendChild(t)};
_.q.append=PYf;_.q.canHaveChildren=xB;_.q.removeNode=_.UH;_.q.getChildren=_.IS;_.q.contains=_.RK;_.q.isFocusable=q7V;_.q=kz.prototype;_.q.getWidth=function(){return this.right-this.left};
_.q.getHeight=function(){return this.bottom-this.top};
_.q.clone=function(){return new kz(this.top,this.right,this.bottom,this.left)};
_.q.contains=function(D){return this&&D?D instanceof kz?D.left>=this.left&&D.right<=this.right&&D.top>=this.top&&D.bottom<=this.bottom:D.x>=this.left&&D.x<=this.right&&D.y>=this.top&&D.y<=this.bottom:!1};
_.q.expand=function(D,t,H,e){_.Wk(D)?(this.top-=D.top,this.right+=D.right,this.bottom+=D.bottom,this.left-=D.left):(this.top-=D,this.right+=Number(t),this.bottom+=Number(H),this.left-=Number(e));return this};
_.q.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};
_.q.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};
_.q.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};
_.q.translate=function(D,t){D instanceof _.lR?(this.left+=D.x,this.right+=D.x,this.top+=D.y,this.bottom+=D.y):(this.left+=D,this.right+=D,typeof t==="number"&&(this.top+=t,this.bottom+=t));return this};
_.q.scale=function(D,t){t=typeof t==="number"?t:D;this.left*=D;this.right*=D;this.top*=t;this.bottom*=t;return this};var ys=function(D,t,H,e){this.left=D;this.top=t;this.width=H;this.height=e};
_.q=ys.prototype;_.q.clone=function(){return new ys(this.left,this.top,this.width,this.height)};
_.q.boundingRect=function(D){var t=Math.max(this.left+this.width,D.left+D.width),H=Math.max(this.top+this.height,D.top+D.height);this.left=Math.min(this.left,D.left);this.top=Math.min(this.top,D.top);this.width=t-this.left;this.height=H-this.top};
_.q.contains=function(D){return D instanceof _.lR?D.x>=this.left&&D.x<=this.left+this.width&&D.y>=this.top&&D.y<=this.top+this.height:this.left<=D.left&&this.left+this.width>=D.left+D.width&&this.top<=D.top&&this.top+this.height>=D.top+D.height};
_.q.distance=function(D){var t=D.x<this.left?this.left-D.x:Math.max(D.x-(this.left+this.width),0);D=D.y<this.top?this.top-D.y:Math.max(D.y-(this.top+this.height),0);return Math.sqrt(t*t+D*D)};
_.q.getSize=function(){return new _.O5(this.width,this.height)};
_.q.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};
_.q.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};
_.q.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};
_.q.translate=function(D,t){D instanceof _.lR?(this.left+=D.x,this.top+=D.y):(this.left+=D,typeof t==="number"&&(this.top+=t));return this};
_.q.scale=function(D,t){t=typeof t==="number"?t:D;this.left*=D;this.width*=D;this.top*=t;this.height*=t;return this};var Rgf,DE,jZA,zN,Qv3,IOm,yF9,wlR,B4f,DNf;_.Br=function(D,t,H){if(typeof t==="string")(t=_.xHn(D,t))&&(D.style[t]=H);else for(var e in t){H=D;var V=t[e],b=_.xHn(H,e);b&&(H.style[b]=V)}};
Rgf={};_.xHn=function(D,t){var H=Rgf[t];if(!H){var e=_.oz(t);H=e;D.style[e]===void 0&&(e=(_.NG?"Webkit":_.Ka?"Moz":null)+k4v(e),D.style[e]!==void 0&&(H=e));Rgf[t]=H}return H};
_.KP=function(D,t){var H=_.pW(D);return H.defaultView&&H.defaultView.getComputedStyle&&(D=H.defaultView.getComputedStyle(D,null))?D[t]||D.getPropertyValue(t)||"":""};
_.xO=function(D,t){return _.KP(D,t)||(D.currentStyle?D.currentStyle[t]:null)||D.style&&D.style[t]};
_.uFv=function(D){return _.xO(D,"position")};
DE=function(D,t,H){if(t instanceof _.lR){var e=t.x;t=t.y}else e=t,t=H;D.style.left=zN(e,!1);D.style.top=zN(t,!1)};
jZA=function(D){try{return D.getBoundingClientRect()}catch(t){return{left:0,top:0,right:0,bottom:0}}};
_.dM=function(D){var t=_.pW(D),H=new _.lR(0,0);if(D==(t?_.pW(t):document).documentElement)return H;D=jZA(D);t=ot(mJ(t));H.x=D.left+t.x;H.y=D.top+t.y;return H};
_.Wi9=function(D,t,H){if(t instanceof _.O5)H=t.height,t=t.width;else if(H==void 0)throw Error("oa");D.style.width=zN(t,!0);D.style.height=zN(H,!0)};
zN=function(D,t){typeof D=="number"&&(D=(t?Math.round(D):D)+"px");return D};
Qv3=function(D){return IOm(D)};
IOm=function(D){var t=yF9;if(_.xO(D,"display")!="none")return t(D);var H=D.style,e=H.display,V=H.visibility,b=H.position;H.visibility="hidden";H.position="absolute";H.display="inline";D=t(D);H.display=e;H.position=b;H.visibility=V;return D};
yF9=function(D){var t=D.offsetWidth,H=D.offsetHeight,e=_.NG&&!t&&!H;return(t===void 0||e)&&D.getBoundingClientRect?(D=jZA(D),new _.O5(D.right-D.left,D.bottom-D.top)):new _.O5(t,H)};
wlR=function(D){var t=_.dM(D);D=IOm(D);return new ys(t.x,t.y,D.width,D.height)};
B4f=function(D,t){D=D.style;"opacity"in D?D.opacity=t:"MozOpacity"in D?D.MozOpacity=t:"filter"in D&&(D.filter=t===""?"":"alpha(opacity="+Number(t)*100+")")};
_.B1=function(D,t){D.style.display=t?"":"none"};
_.zgv=function(D){return"rtl"==_.xO(D,"direction")};
DNf=function(D){var t=_.KP(D,"marginLeft"),H=_.KP(D,"marginRight"),e=_.KP(D,"marginTop");D=_.KP(D,"marginBottom");return new kz(parseFloat(e),parseFloat(H),parseFloat(D),parseFloat(t))};
_.tM6=function(D){var t=_.KP(D,"borderLeftWidth"),H=_.KP(D,"borderRightWidth"),e=_.KP(D,"borderTopWidth");D=_.KP(D,"borderBottomWidth");return new kz(parseFloat(e),parseFloat(H),parseFloat(D),parseFloat(t))};var t2=function(D){this.context=D};
t2.prototype.isSupported=function(D){return(D==null?0:D.attributionEnabled)||(D==null?void 0:D.beaconMethod)==="POST"||(D==null?0:D.customHeaders)||(D==null?0:D.customBody)||(D==null?0:D.keepAlive)?!1:!SB(this.context)};
t2.prototype.ping=function(){var D=this;return mu(_.RE.apply(0,arguments).map(function(t){try{var H=D.context.global,e=!1;e=e===void 0?!1:e;H.google_image_requests||(H.google_image_requests=[]);var V=EQn("IMG",H.document);e&&(V.attributionSrc="");V.src=t;H.google_image_requests.push(V);return!0}catch(b){return!1}}).every(function(t){return t}))};
t2.prototype.pingWithHeadersAndBody=function(D,t,H){this.ping.apply(this,_.A6(_.RE.apply(3,arguments)))};var HMQ=function(D){this.context=D};
HMQ.prototype.isSupported=function(D){return eUf&&!SB(this.context)&&QtV(this.context)!==void 0&&!(D==null?0:D.attributionEnabled)&&(D==null?void 0:D.beaconMethod)!=="POST"&&!(D==null?0:D.customHeaders)&&!(D==null?0:D.customBody)};
HMQ.prototype.makeBeacon=function(D,t){if(!this.isSupported(t))throw new Pr;return new Hl(this.context,D)};
var eUf=!1,Hl=function(D,t){this.context=D;this.JSC$9351_urlWithoutToken=t;D=QtV(this.context);if(D===void 0)throw Error();this.wrappedBeacon=new D(VMa(this),{})},VMa=function(D){D=D.JSC$9351_urlWithoutToken;
return(D.slice(-1)[0]==="&"?D:D+"&")+"pbapi=1"};
Hl.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Hl.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Hl.prototype.setHeader=function(){};
_.ql.Object.defineProperties(Hl.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9351_urlWithoutToken},
set:function(D){this.JSC$9351_urlWithoutToken=D;this.wrappedBeacon.setURL(VMa(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(D){if(D!=="GET")throw new Pr;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var bMo=function(D){this.context=D};
bMo.prototype.isSupported=function(D){if((D==null?0:D.attributionEnabled)||(D==null?void 0:D.beaconMethod)==="GET"||(D==null?0:D.customHeaders)||(D==null?0:D.customBody)||(D==null?0:D.keepAlive))return!1;var t;return!SB(this.context)&&((t=this.context.global.navigator)==null?void 0:t.sendBeacon)!==void 0};
bMo.prototype.ping=function(){var D=this;return mu(_.RE.apply(0,arguments).map(function(t){var H;return(H=D.context.global.navigator)==null?void 0:H.sendBeacon(t)}).every(function(t){return t}))};
bMo.prototype.pingWithHeadersAndBody=function(D,t,H){this.ping.apply(this,_.A6(_.RE.apply(3,arguments)))};var iR=function(D){this.value=D},H1=function(D,t){return mu(D.value).pipe(jr(t))},Vh=new iR(!1),S4$=new iR(!0);var Rt=function(D){this.value=D;this.releasedSubject=new Tt};
Rt.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.ql.Object.defineProperties(Rt.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9364_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var w1D=["FRAME","IMG","IFRAME"],et3=/^[01](px)?$/,al8=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},FgV=function(){var D=new al8;
D.crossDomainLoadedDefault=!0;D.pendingImagesBlockLoad=!0;return D};var qYn=function(D,t){var H=NVV(D);if(H)if(H.onCreativeLoad)H.onCreativeLoad(t);else{var e=t?[t]:[],V=function(b){for(var a=0;a<e.length;++a)try{e[a](1,b)}catch(w){}e={push:function(w){w(1,b)}}};
H.onCreativeLoad=function(b){e.push(b)};
H.setAttribute("data-creative-load-listener","");H.addEventListener("creativeLoad",function(b){V(b.detail)});
_.VA.addEventListener("message",function(b){Kg8(H,V,b)})}};var ex=function(D,t){var H=this;this.global=D;this.parentContext=t;this.JSC$9375_onVisibilityChange=this.document?p2(mu(!0),lF(this.document,"visibilitychange")).pipe(Wv(this.parentContext.performanceMonitor,748),L2(function(){return H.getVisibilityState()}),Di()):mu("visible");
this.document?lF(this.document,"DOMContentLoaded").pipe(Wv(this.parentContext.performanceMonitor,739),Bv(1)):mu(tTD("DOMContentLoaded"))},MGD=function(D){return D.document!==null&&D.document.visibilityState!==void 0};
ex.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
ex.prototype.querySelector=function(D){return this.document?this.document.querySelector(D):null};
ex.prototype.querySelectorAll=function(D){return this.document?_.pK(this.document.querySelectorAll(D)):[]};
ex.prototype.elementFromPoint=function(D,t){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;D=this.document.elementFromPoint(D,t);return D===null?null:new Rt(D)};
var jD3=function(D,t,H){H=H===void 0?!1:H;if(t.ref===void 0||!D.document)return mu(t).pipe(Wv(D.parentContext.performanceMonitor,749));var e=new Vo(1),V=function(){e.next(t)};
H||qYn(t.ref,V);ZNV(t.ref,V);return e.pipe(Wv(D.parentContext.performanceMonitor,749),Bv(1))};
_.ql.Object.defineProperties(ex.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return fi8(this.global,"document")?this.global.document||null:null}}});var kxX=_.zk(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),TVX=_.zk(["./reach_worklet.js"]),ceV=_.zk(["./reach_worklet.js"]),Fd9=_.zk(["./reach_worklet.html"]),a1f=_.zk(["./reach_worklet.js"]),wUn=_.zk(["./reach_worklet.js"]);_.E5(Fd9);_.E5(a1f);_.E5(wUn);var yo={left:0,top:0,width:0,height:0};var ZMV,sE9,hUw,GFB,HY,Kdv,NwV,kFm,Z9D,s3K,jEQ,$NV;ZMV=function(D,t,H,e,V,b,a){var w="";D&&(w+=D+":");H&&(w+="//",t&&(w+=t+"@"),w+=H,e&&(w+=":"+e));V&&(w+=V);b&&(w+="?"+b);a&&(w+="#"+a);return w};
sE9=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.DU=function(D){return D.match(sE9)};
_.ns=function(D,t){return D?t?decodeURI(D):decodeURIComponent(D):D};
hUw=function(D){D=_.DU(D)[1]||null;!D&&_.VA.self&&_.VA.self.location&&(D=_.VA.self.location.protocol.slice(0,-1));return D?D.toLowerCase():""};
_.tW=function(D){return _.ns(_.DU(D)[3]||null,!0)};
_.TW=function(D){return _.ns(_.DU(D)[5]||null,!0)};
_.tlV=function(D){var t=D.indexOf("#");return t<0?null:D.slice(t+1)};
GFB=function(D){D=_.DU(D);return ZMV(D[1],D[2],D[3],D[4])};
_.Ehn=function(D){D=_.DU(D);return ZMV(D[1],null,D[3],D[4])};
_.yi=function(D){D=_.DU(D);return ZMV(null,null,null,null,D[5],D[6],D[7])};
_.b1=function(D){var t=D.indexOf("#");return t<0?D:D.slice(0,t)};
HY=function(D,t){D=_.DU(D);t=_.DU(t);return D[3]==t[3]&&D[1]==t[1]&&D[4]==t[4]};
Kdv=function(D,t){if(D){D=D.split("&");for(var H=0;H<D.length;H++){var e=D[H].indexOf("="),V=null;if(e>=0){var b=D[H].substring(0,e);V=D[H].substring(e+1)}else b=D[H];t(b,V?VM(V):"")}}};
NwV=function(D){var t=D.indexOf("#");t<0&&(t=D.length);var H=D.indexOf("?");if(H<0||H>t){H=t;var e=""}else e=D.substring(H+1,t);return[D.slice(0,H),e,D.slice(t)]};
kFm=function(D,t){return t?D?D+"&"+t:t:D};
_.Tww=function(D,t){if(!t)return D;D=NwV(D);D[1]=kFm(D[1],t);return D[0]+(D[1]?"?"+D[1]:"")+D[2]};
_.cAf=function(D,t,H){if(Array.isArray(t))for(var e=0;e<t.length;e++)_.cAf(D,String(t[e]),H);else t!=null&&H.push(D+(t===""?"":"="+_.Wn(t)))};
_.jc=function(D){var t=[],H;for(H in D)_.cAf(H,D[H],t);return t.join("&")};
_.z5=function(D,t){t=_.jc(t);return _.Tww(D,t)};
_.VK=function(D,t,H){H=H!=null?"="+_.Wn(H):"";return _.Tww(D,t+H)};
Z9D=function(D,t,H,e){for(var V=H.length;(t=D.indexOf(H,t))>=0&&t<e;){var b=D.charCodeAt(t-1);if(b==38||b==63)if(b=D.charCodeAt(t+V),!b||b==61||b==38||b==35)return t;t+=V+1}return-1};
s3K=/#|$/;_.uz=function(D,t){var H=D.search(s3K),e=Z9D(D,0,t,H);if(e<0)return null;var V=D.indexOf("&",e);if(V<0||V>H)V=H;e+=t.length+1;return VM(D.slice(e,V!==-1?V:0))};
jEQ=/[?&]($|#)/;_.Fy=function(D,t){for(var H=D.search(s3K),e=0,V,b=[];(V=Z9D(D,e,t,H))>=0;)b.push(D.substring(e,V)),e=Math.min(D.indexOf("&",V)+1||H,H);b.push(D.slice(e));return b.join("").replace(jEQ,"$1")};
_.p7=function(D,t,H){return _.VK(_.Fy(D,t),t,H)};
$NV=function(D){var t=NwV(window.location.href),H=t[1],e=[];H&&H.split("&").forEach(function(V){var b=V.indexOf("=");b=b>=0?V.slice(0,b):V;D.hasOwnProperty(b)||e.push(V)});
t[1]=kFm(e.join("&"),_.jc(D));return t[0]+(t[1]?"?"+t[1]:"")+t[2]};var YHu=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(YHu,_.ww);YHu.prototype.getVersion=function(){return _.La(this,2)};var JeV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(JeV,_.ww);var SHu=function(D,t){return _.M3(D,2,t)},gO$=function(D,t){return _.M3(D,3,t)};
JeV.prototype.getModel=function(){return _.La(this,4)};
var flA=function(D,t){return _.M3(D,4,t)},MT8=function(D,t){return _.M3(D,5,t)},AeK=function(D,t){return _.M3(D,9,t)},mc6=function(D,t){return Ca(D,10,t)},Czk=function(D,t){return _.KN(D,11,t)},X1u=function(D,t){return _.M3(D,1,t)},LgD=function(D,t){return _.KN(D,7,t)};var PzD="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var eT=function(D,t,H,e){D=D===void 0?window:D;t=t===void 0?null:t;H=H===void 0?new g3f:H;e=e===void 0?jKV():e;Smn.call(this);var V=this;this.global=D;this.debugChannel=t;this.performanceMonitor=H;this.onPageHide=VrD(function(){return lF(V.global,"pagehide")}).pipe(Wv(this.performanceMonitor,941));
this.onLoad=VrD(function(){return lF(V.global,"load")}).pipe(Wv(this.performanceMonitor,738),Bv(1));
this.onResize=VrD(function(){return lF(V.global,"resize")}).pipe(Wv(this.performanceMonitor,741));
this.onMessage=VrD(function(){return lF(V.global,"message")}).pipe(Wv(this.performanceMonitor,740));
this.document=new ex(this.global,this);this.timeProvider=new J33(new lfv(this.intrinsicFunctionNamespace,this.performanceMonitor),new YmB(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Lnw(new p9a(this),new HMQ(this),new nJ(this,new Rn3(this)),new nJ(this,new bMo(this)),new nJ(this,new t2(this)))};
_.P(eT,Smn);var SB=function(D){var t=D.global;return!!D.global.HTMLFencedFrameElement&&!!t.fence&&typeof t.fence.reportEvent==="function"};
_.q=eT.prototype;_.q.reportFencedFrameEvent=function(D){SB(this)&&this.global.fence.reportEvent(D)};
_.q.getOnBackgrounded=function(){return this.onPageHide.pipe(Wv(this.performanceMonitor,942),jr(this.queue),L2(function(){}))};
_.q.postMessage=function(D,t,H){H=H===void 0?[]:H;this.global.postMessage(D,t,H)};
_.q.getWidth=function(){return LJR(this.global)?this.global.width:0};
_.q.getHeight=function(){return LJR(this.global)?this.global.height:0};
_.q.isMobile=function(){return Iff()||QBo()};
var uR=function(D,t){try{var H=ONV(t,D.global,D.isMobile());return{left:H.left,top:H.top,width:H.getWidth(),height:H.getHeight()}}catch(e){return yo}};
eT.prototype.validate=function(){var D=this.beaconFactory.isSupported()||SB(this);return this.global&&this.timeProvider.available()&&D};
var BMk=function(D){return(D=vO3(D.global))?j2(D):null};
_.ql.Object.defineProperties(eT.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(D){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!LJR(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}}});_.iMa=!_.Et&&!_.T6V();var Xn$=function(D){return D};var LI$=function(D){return D.pipe(xp(function(t){var H=t.endOfSessionReason;var e;return((e=t.viewable)==null?void 0:e.extrapolateToNow().value)||H!=void 0}),Bv(1),Qf())};var IlA=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},QK8=function(D){var t=D.sequenceNumber.toString(10).padStart(2,"0");
t=""+D.startTime+t;D.sequenceNumber<99&&D.sequenceNumber++;return t};var m2u=Nd(wM(function(D){return D.endOfSessionReason===void 0}),L2(function(D){return Object.assign({},D,{timestamps:fW(D)})}),xp(function(D){var t=D.viewable;
D=D.timestamps;var H;return(H=t==null?void 0:t.extrapolateUsingTimestampMap(D).value)!=null?H:!1}),L2(function(D){var t=D.beaconFactory;
var H=D.timestampedExposureHistory;var e=D.timeOnScreen;var V=D.binaryContext;D=D.timestamps;if(t===void 0||H===void 0||e===void 0||V===void 0)return!1;if(e.extrapolateUsingTimestampMap(D).value.every(function(b){return b>=0}))return!0;
H=H.map(function(b){return b.timestamp+":"+b.value}).join(",");
e=yeT({bin:V,tos:e},D);t.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+e+("&eh="+H)).sendNow();return!0}),wM(function(D){return!D}),Qf());var zt8=function(D){return{id:D.pingId,mcvt:D.maxConsecutiveViewTime,p:D.creativePosition,asp:D.adSpeedPosition,tm:D.totalMeasurementTime,tu:D.totalUnviewedTime,mtos:D.maxTimeOnScreen,tos:D.timeOnScreen,v:D.binaryVersion,bin:D.binaryContext,avms:D.measurementStrategy,bs:D.browserSize,mc:D.maximumExposure,"if":D.crossDomainIframeState,vu:D.delayedImpressionJsState,app:D.inApp,mse:D.mraidError,mtop:D.mraidSituation,itpl:D.injectedTemplateId,adk:D.adKey,exk:D.awbidKey,rs:D.requestSource,la:D.isLargeAd,
cr:D.isContentRecommendationAd,uach:D.userAgentClientHints,vs:D.viewState,r:D.reasonCode,pay:D.hasCpmavUrl,co:D.clientPingOrderCounter,rst:D.adRenderStartTime,rpt:D.adRenderPeriodTime,isd:D.initialScrollDepth,lsd:D.loadedScrollDepth,context:D.errorContext,msg:D.errorMessage,stack:D.errorStack,name:D.errorName,ec:D.hasElementChanged,sfr:D.strategyFailureReasons,met:D.creativeSearchResult,wmsd:D.webMeasurementStartDiagnostic,pv:D.pageVisible,epv:D.eosPageVisible,pbe:D.inStatefulBeaconExperiment,fle:D.inFetchLaterBeaconExperiment,
vae:D.inViewableAttributionExperiment,spb:D.supportsPendingBeacon,sfl:D.supportsFetchLater,ffslot:D.isFencedFrameSlotTurtlex,reach:D.sharedStorageReachMode,io2:D.v2VisibilityBitVector,rxdbg:D.rxDebugger,omida:D.omidAppId,omidp:D.omidPartner,omidpv:D.omidPartnerVersion,omidor:D.omidOcclusionReasons,omidv:D.omidVersion,omids:D.omidSessionType,omidam:D.omidAccessMode,omidct:D.omidCreativeType,omidia:D.omidInApp,omiddc:D.omidDeviceCategory,omidlat:D.omidLastActivity,omiddit:D.omidDeviceIdleTime,qid:D.errorEscapedQueryId}};var fvT=function(D){var t=[];return D.pipe(L2(function(H){var e=H.beaconFactory,V=H.fetchBeaconFactory,b=H.timeOnScreen,a=H.timeOnScreenUrlPrefixes,w=H.payloadMapper,h=H.timeOnScreenPingId,K=H.timeOnScreenReason,N=H.urlSerializer,k=H.viewable,T=H.hasImpressionFired,c=H.inStatefulBeaconExperiment,U=H.supportsPendingBeacon,S=H.supportsFetchLater,L=H.turtlexReportEventData;if(!H.geometryMeasurable||!T||H.maxTimeOnScreen===void 0||b===void 0||a===void 0||w===void 0||h===void 0||N===void 0||e===void 0)return!1;
if(H.isTurtlex){if(K===void 0)return!1;a=H.reportFencedFrameEvent;if(!a)return!1;a({eventType:"active-view-time-on-screen",eventData:L!=null?L:"",destination:["buyer"]});return!0}if(!(c||S||K))return!1;L=fW(H);var J;k=(J=k==null?void 0:k.extrapolateUsingTimestampMap(L).value)!=null?J:!1;J=N(Object.assign({},H,{pingId:h,viewState:k?4:3,reasonCode:K!=null?K:"u",payloadMapper:w,urlPrefixes:a}),L);if(c){for(;t.length>a.length;)H=void 0,(H=t.shift())==null||H.deactivate();J.forEach(function(Q,u){u>=t.length?
t.push(e.makeBeacon(Q)):t[u].url=Q});
return U&&V&&K!==void 0?(J.forEach(function(Q){V.makeBeacon(Q).sendNow()}),!0):K!==void 0}if(U&&V&&K!==void 0)return J.forEach(function(Q){V.makeBeacon(Q).sendNow()}),!0;
if(S&&V){for(;t.length>a.length;)U=void 0,(U=t.shift())==null||U.deactivate();var g=N(Object.assign({},H,{pingId:h,viewState:k?4:3,reasonCode:K!=null?K:"u",payloadMapper:w,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),L)[0];J.forEach(function(Q,u){u>=t.length?t.push(e.makeBeacon(g,{endOfSession:!0})):t[u].url=g});
return K!==void 0?(J.forEach(function(Q){V.makeBeacon(Q).sendNow()}),!0):K!==void 0}return K!==void 0?(J.forEach(function(Q){e.makeBeacon(Q).sendNow()}),!0):!1}),wM(function(H){return!H}),Qf())};var AZk=Nd(xp(function(D){return D.immediateUrlPrefixes!==void 0&&D.payloadMapper!==void 0&&D.urlSerializer!==void 0&&D.inferredPingId!==void 0&&D.beaconFactory!==void 0}),xp(function(D){return FG8(D)!==null}),bRD(function(D){return D.activeViewUnmeasurableEvent},function(D){return D.emit}),L2(function(D){if(D.isTurtlex){var t=D.reportFencedFrameEvent;
if(t){var H;t({eventType:"active-view-unmeasurable",eventData:(H=D.turtlexReportEventData)!=null?H:"",destination:["buyer"]})}}else{H=void 0;var e=FG8(D);if(e==="x"){var V,b=(V=D.geometricMeasurementErrors)!=null?V:D.contextValidationErrors;b&&(t=b.stack,H=b.message)}D.urlSerializer(Object.assign({},D,{urlPrefixes:D.immediateUrlPrefixes,payloadMapper:D.payloadMapper,pingId:D.inferredPingId,viewState:2,reasonCode:e,errorMessage:H,errorStack:t}),fW(D)).forEach(function(a){D.beaconFactory.makeBeacon(a).sendNow()})}}),
Bv(1),Qf());var a_A=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var ChV=Nd(xp(function(D){return D.payloadMapper!==void 0&&D.immediateUrlPrefixes!==void 0&&D.urlSerializer!==void 0&&D.inferredPingId!==void 0&&D.beaconFactory!==void 0}),L2(function(D){return Object.assign({},D,{timestamps:fW(D)})}),xp(function(D){var t=D.viewable;
var H=D.hasImpressionFired;D=D.timestamps;var e;return!!H&&((e=t==null?void 0:t.extrapolateUsingTimestampMap(D).value)!=null?e:!1)}),bRD(function(D){return D.activeViewViewableEvent},function(D){return D.emit}),L2(function(D){var t=D.beaconFactory,H=D.turtlexReportEventData;
if(D.isTurtlex){var e=D.reportFencedFrameEvent;if(!e)return!1;e({eventType:"active-view-viewable",eventData:H!=null?H:"",destination:["buyer"]});return!0}H=D.urlSerializer(Object.assign({},D,{urlPrefixes:D.immediateUrlPrefixes,payloadMapper:D.payloadMapper,pingId:D.inferredPingId,viewState:4,reasonCode:"v"}),D.timestamps);(e=D.cpmavUrls)&&e.length>0&&D.viewUrlSerializer&&D.viewUrlSerializer(e,D).forEach(function(V){t.makeBeacon(V).sendNow()});
(e=D.viewableRelayUrls)&&e.length>0&&D.viewUrlSerializer&&D.viewUrlSerializer(e,D).forEach(function(V){t.makeBeacon(V).sendNow()});
H.forEach(function(V){t.makeBeacon(V,{attributionEnabled:D.isViewableAttributionEnabled}).sendNow()});
return!0}),wM(function(D){return!D}),Qf());var ze8=L2(function(D){return[D.value.topWindowViewportExternalGeometry.width,D.value.topWindowViewportExternalGeometry.height]});var W_=function(D,t){this.callback=D;this.options=t;this.intersectionObserverV2=this.intersectionObserverV1=null},f_8=function(D,t){t?D.intersectionObserverV2||(t=Object.assign({},D.options,{delay:100,
trackVisibility:!0}),D.intersectionObserverV2=new IntersectionObserver(D.callback,t)):D.intersectionObserverV1||(D.intersectionObserverV1=new IntersectionObserver(D.callback,D.options))},rA4=function(D,t){D=t?D.intersectionObserverV2:D.intersectionObserverV1;
if(!D)throw new X9f;return D};
W_.prototype.observe=function(D,t){rA4(this,D).observe(t)};
W_.prototype.unobserve=function(D,t){rA4(this,D).unobserve(t)};
W_.prototype.disconnect=function(D){rA4(this,D).disconnect()};
W_.prototype.takeRecords=function(D){return rA4(this,D).takeRecords()};var iRk={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:yo,topWindowViewportExternalGeometry:yo,measurementRequests:new Tt,elementGeometrySourceName:"ns",elementGeometry:yo,intersectionGeometry:yo,viewportLocalAppOffset:{x:0,y:0}};var vMD=B_(Nd(L2(function(D){var t;return(t=D.exposureOverride)!=null?t:AL$(D)}),L2(function(D){return isFinite(D)?D:0}))),I_D=B_(Nd(L2(function(D){var t;
return(t=D.exposureOverride)!=null?t:AL$(D)}),L2(function(D){return isFinite(D)?D:-1})));var bV=function(D,t){this.a=D;this.b=t;if(D.clock.timeline!==t.clock.timeline)throw Error();};
bV.prototype.equivalentTo=function(D){return D instanceof bV?this.a.equivalentTo(D.a)&&this.b.equivalentTo(D.b):!1};
bV.prototype.extrapolateToTime=function(D){var t=this.a.extrapolateToTime(D).value,H=this.b.extrapolateToTime(D).value;return{timestamp:D,value:[t,H]}};
_.ql.Object.defineProperties(bV.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 D=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),t=this.a.lastMeasurement.timestamp.equals(D)?this.a.lastMeasurement.value:this.a.extrapolateToTime(D).value,H=this.b.lastMeasurement.timestamp.equals(D)?this.b.lastMeasurement.value:this.b.extrapolateToTime(D).value;return{timestamp:D,value:[t,H]}}}});var qk=function(D,t){this.input=D;this.mapFunction=t;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
qk.prototype.equivalentTo=function(D){return D instanceof qk?this.input.equivalentTo(D.input)&&this.mapFunction===D.mapFunction:!1};
qk.prototype.extrapolateToTime=function(D){D=this.input.extrapolateToTime(D);return{timestamp:D.timestamp,value:this.mapFunction(D.value)}};
_.ql.Object.defineProperties(qk.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Fv=function(){};
Fv.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Fv.prototype.extrapolateUsingTimestampMap=function(D){var t=this.clock.timeline,H,e=(H=D.get(t))!=null?H:this.clock.now();D.set(t,e);return this.extrapolateToTime(e)};
Fv.prototype.map=function(D){return new OMV(this,D)};
Fv.prototype.joinWith=function(D){return new UN6(this,D)};
var UN6=function(){bV.apply(this,arguments);this.map=Fv.prototype.map;this.joinWith=Fv.prototype.joinWith;this.extrapolateToNow=Fv.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Fv.prototype.extrapolateUsingTimestampMap};
_.P(UN6,bV);var OMV=function(){qk.apply(this,arguments);this.map=Fv.prototype.map;this.joinWith=Fv.prototype.joinWith;this.extrapolateToNow=Fv.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Fv.prototype.extrapolateUsingTimestampMap};
_.P(OMV,qk);var Dl=function(D,t){this.lastMeasurement=t;this.extrapolateToNow=Fv.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Fv.prototype.extrapolateUsingTimestampMap;this.map=Fv.prototype.map;this.joinWith=Fv.prototype.joinWith;this.clock=D};
Dl.prototype.equivalentTo=function(D){return D.active};
Dl.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.ql.Object.defineProperties(Dl.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var B_$=L2(function(D){if(D.value.viewportGeometrySourceName==="omid"){if(D.value.elementGeometrySourceName==="nio")return"omio";if(D.value.elementGeometrySourceName==="geo")return"omgeo"}return D.value.elementGeometrySourceName==="geo"||D.value.elementGeometrySourceName==="nio"?D.value.viewportGeometrySourceName:D.value.elementGeometrySourceName});var JLD=Nd(xp(function(D){return!isNaN(D)}),q3(function(D,t){return isNaN(D)?t:Math.min(D,t)},NaN),Di());var pI3=B_(Nd(L2(function(D){return D.intersectionGeometry.width*D.intersectionGeometry.height/(D.exposedViewportLocalGeometry.width*D.exposedViewportLocalGeometry.height)}),L2(function(D){return isFinite(D)?Math.min(1,D):0})));var yLV=Nd(B_(L2(function(D){D=D.exposureOverride?D.elementGeometry.width*D.elementGeometry.height*D.exposureOverride/(D.topWindowViewportExternalGeometry.width*D.topWindowViewportExternalGeometry.height):D.intersectionGeometry.width*D.intersectionGeometry.height/(D.topWindowViewportExternalGeometry.width*D.topWindowViewportExternalGeometry.height);return isFinite(D)?D:0})));var HY8=function(D,t){var H=this;this.timeProvider=D;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=t.pipe(Di()).subscribe(function(e){VGX(H);H.measurementRequestObserver=e})},bY6=function(D,t){VGX(D);
D.lastMeasurementRequest=D.timeProvider.setTimeout(function(){var H;return void((H=D.measurementRequestObserver)==null?void 0:H.next())},t)},VGX=function(D){D.lastMeasurementRequest!==null&&D.timeProvider.clearTimeout(D.lastMeasurementRequest);
D.lastMeasurementRequest=null};
HY8.prototype.dispose=function(){VGX(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var oh4=function(){};var oC3=function(D,t){this.context=D;this.strategies=t};
_.P(oC3,oh4);oC3.prototype.buildGeometrySource=function(D,t){var H=this.strategies.map(function(b){return b.buildGeometrySource(D,t)}),e=ZY$(H.map(function(b){return b.geometrySource})),V=e.capturedErrors.pipe(PMV());
return{geometrySource:e.chain.pipe(jr(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:V,strategyErrors:e.capturedErrors}].concat(_.A6(H.map(function(b){return b.additionalOutputs}))))}};
var PMV=function(){return q3(function(D,t){t instanceof A$?D.push(t.measurementStrategyFailureReason):D.push(-1);return D},[])};var nCD=function(D,t){this.context=D;this.poller=t};
_.P(nCD,oh4);nCD.prototype.buildGeometrySource=function(D,t){var H=sDT(G5X(this.context,this.poller),rLD(this.context,t.requestSource));return{geometrySource:wn3(D.measurableCreative.pipe(H),t.inApp),additionalOutputs:{}}};var PhA=function(D,t,H){H=H===void 0?CD6(D,t):H;this.context=D;this.intersectionObserverStrategy=H};
_.P(PhA,oh4);PhA.prototype.buildGeometrySource=function(D,t){var H=this.intersectionObserverStrategy(t.useV2);return{geometrySource:wn3(D.measurableCreative.pipe(H,mpA(this.context)),t.inApp),additionalOutputs:{}}};var nhf=function(D,t,H){var e=e===void 0?Symbol():e;this.element=D;this.immediateUrls=t;this.timeOnScreenUrls=H;this.symbol=e};var tGK=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),T1k=Object.freeze([1,.75,tGK.exposureThreshold,tGK.largeAdExposureThreshold,0]);var $_R=function(D,t){t=t===void 0?36E5:t;var H=H===void 0?!0:H;this.creatives=new Tt;this.elementsToUnregister=new Tt;this.elementMap=new Map;var e=new eT(window,null);e.beaconFactory=new nJ(e,new t2(e));U2u(e,this.creatives,this.elementsToUnregister,D,t,H).subscribe()},O$u=function(D,t,H,e){if(!D.elementMap.has(t)){var V=new Rt(t);
D.elementMap.set(t,V);D.creatives.next(new nhf(V,H,e))}},rvX=function(D,t){D.elementsToUnregister.next(t);
var H=D.elementMap.get(t);H!==void 0&&(H.release(),D.elementMap.delete(t))};var LVX=function(D){var t=D.url;D=D.uaDataValues;this.JSC$9480_url_=t;this.uaDataValues_=D;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var H=/[?&]([^&=]+)=([^&]*)/g;D=H.exec(t);)this.urlParamValues_[D[1]]=D[2]},AjR=function(D){D=D.uaDataValues_;
if(!D)return"";var t=bz("uap",D.platform)+bz("uapv",D.platformVersion)+bz("uafv",D.uaFullVersion)+bz("uaa",D.architecture)+bz("uam",D.model)+bz("uab",D.bitness);D.fullVersionList&&(t+="&uafvl="+encodeURIComponent(D.fullVersionList.map(function(H){return encodeURIComponent(H.brand)+";"+encodeURIComponent(H.version)}).join("|")));
D.wow64!=null&&(t+="&uaw="+Number(D.wow64));return t.slice(1)};var CMa=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(CMa,_.ww);CMa.prototype.getId=function(){return _.La(this,1)};var au=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(au,_.ww);au.prototype.getSeconds=function(){return Xz(this,1)};
au.prototype.setSeconds=function(D){return _.tA(this,1,sF(D),"0")};_.Al=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(_.Al,_.ww);_.Al.prototype.getSeconds=function(){return Xz(this,1)};
_.Al.prototype.setSeconds=function(D){return _.tA(this,1,sF(D),"0")};
_.mNo=function(D){var t=Number(gU(D,1));D=_.sH(D,2);return new Date(t*1E3+D/1E6)};var w8=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(w8,_.ww);w8.prototype.getUrl=function(){return _.La(this,1)};
w8.prototype.setUrl=function(D){return _.Is(this,1,D)};
w8.prototype.getHeight=function(){return _.sH(this,2)};
w8.prototype.getWidth=function(){return _.sH(this,3)};var ZE=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(ZE,_.ww);ZE.prototype.getAspectRatio=function(){return fa(this,1)};
ZE.prototype.getDuration=function(){return _.sq(this,au,2)};var MMo=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(MMo,_.ww);var SYm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(SYm,_.ww);var XUn=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(XUn,_.ww);var f1n=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(f1n,_.ww);var Lda=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Lda,_.ww);var AAn=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(AAn,_.ww);var gh9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(gh9,_.ww);var JAm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(JAm,_.ww);var YYo=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(YYo,_.ww);var s2=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(s2,_.ww);var h2=[2,4,5,6,7];var l1v=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(l1v,_.ww);var mN=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(mN,_.ww);_.q=mN.prototype;_.q.getId=function(){return _.sq(this,CMa,1)};
_.q.getName=function(){return _.La(this,2)};
_.q.setDescription=function(D){return _.Is(this,3,D)};
_.q.getUrl=function(){return _.La(this,8)};
_.q.setUrl=function(D){return _.Is(this,8,D)};
var GT=function(D){return _.wV(D,w8,10,_.Zl())};
mN.prototype.getOwner=function(D){var t=_.QZ(this,40,_.OF,3,!0);DwV(t,D);return t[D]};
mN.prototype.getVersion=function(){return Xz(this,45)};
var E2=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(E2,_.ww);_.Kr=[0,Bg,oFk];_.Nk=[0,Bg,oFk];var vh4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(vh4,_.ww);var k1=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(k1,_.ww);k1.prototype.getStatus=function(){return _.AM(this,1)};
k1.prototype.removeItem=function(D){return g2A(this,2,D)};var pUV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(pUV,_.ww);pUV.prototype.getName=function(){return _.La(this,8)};var TT=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(TT,_.ww);TT.prototype.getCommand=function(){return _.AM(this,1)};
TT.prototype.getSource=function(){return _.sq(this,pUV,2)};
TT.prototype.setVisible=function(D){return _.gZ(this,5,D)};
TT.prototype.removeItem=function(D){return g2A(this,7,D)};var dN6=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(dN6,_.ww);dN6.prototype.getCommand=function(){return _.AM(this,1)};
dN6.prototype.removeItem=function(D){return g2A(this,4,D)};
var xNQ=_.iM(dN6);var cl=function(D,t,H){H=H===void 0?Error():H;var e=Error.call(this);this.message=e.message;"stack"in e&&(this.stack=e.stack);this.code=D;t+=":";H instanceof Error?(this.message=t+H.message,this.stack=H.stack||""):(this.message=t+String(H),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.P(cl,Error);_.mg=function(){this.JSC$9538_disposed_=this.JSC$9538_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.mg.prototype.JSC$9538_disposed_=!1;_.mg.prototype.isDisposed=function(){return this.JSC$9538_disposed_};
_.mg.prototype.dispose=function(){this.JSC$9538_disposed_||(this.JSC$9538_disposed_=!0,this.disposeInternal())};
_.mg.prototype[Symbol.dispose]=function(){this.dispose()};
_.c1=function(D,t){D.addOnDisposeCallback(_.o4(_.qc,t))};
_.mg.prototype.addOnDisposeCallback=function(D,t){this.JSC$9538_disposed_?t!==void 0?D.call(t):D():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),t&&(D=D.bind(t)),this.onDisposeCallbacks_.push(D))};
_.mg.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var jx=function(D){_.mg.call(this);this.wpc=D};
_.P(jx,_.mg);jx.prototype.u7J=function(){return this.wpc.f()};
jx.prototype.rH4=function(D){return this.wpc.c(D)};
jx.prototype.mI=function(D){return this.wpc.m(vCD(D))};
jx.prototype.grD=function(D){return this.wpc.mws(vCD(D))};
var aK=function(D){_.mg.call(this);var t=this;this.vm=D;this.ms1="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.k2r=void 0;this.jk6=this.vm.p;this.pnc=this.hnt.bind(this);this.addOnDisposeCallback(function(){return void RU3(t)})};
_.P(aK,_.mg);var u7Q=function(D){var t;return _.Z(function(H){if(H.nextAddress==1){if(!D.vm.wpc)throw new cl(30,"NWA");return D.vec?H.return(D.vec):H.yield(D.vm.wpc(),2)}t=H.yieldResult;D.vec=new jx(t);return H.return(D.vec)})};
aK.prototype.snapshot=function(D){return this.vm.s(Object.assign({},D.hU&&{c:D.hU},D.hxv&&{s:D.hxv},D.zT5!==void 0&&{p:D.zT5}))};
aK.prototype.hnt=function(D){this.vm.e(D)};
aK.prototype.vmi=function(D,t){return this.vm.c(D,t,!1)};
var RU3=function(D){D.k2r!==void 0&&(D.ms1.forEach(function(t){var H;(H=D.k2r)==null||H.removeEventListener(t,D.pnc)}),D.k2r=void 0)};
aK.prototype.uh6=function(){return this.vm.l()};var $1=function(){_.mg.apply(this,arguments);this.iA3=1};
_.P($1,_.mg);$1.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.iA3++;return this};
$1.prototype.dispose=function(){--this.iA3||_.mg.prototype.dispose.call(this)};var Wd3=function(D){this.nKI=D;D.addNewEventMetric("/client_streamz/bg/frs",_.EH("mk"))};
Wd3.prototype.record=function(D,t){this.nKI.record("/client_streamz/bg/frs",D,t)};
var I13=function(D){this.eGc=D;D.addNewEventMetric("/client_streamz/bg/wrl",_.EH("mn"),Gx("ac"),Gx("sc"),_.EH("rk"),_.EH("mk"))};
I13.prototype.record=function(D,t,H,e,V,b){this.eGc.record("/client_streamz/bg/wrl",D,t,H,e,V,b)};
var QEm=function(D){this.ud1=D;D.addNewCounter("/client_streamz/bg/ec",_.EH("en"),_.EH("mk"))};
QEm.prototype.increment=function(D,t){this.ud1.JSC$9791_incrementCounter("/client_streamz/bg/ec",D,t)};
var yAf=function(D){this.m1Q=D;D.addNewEventMetric("/client_streamz/bg/el",_.EH("en"),_.EH("mk"))};
yAf.prototype.record=function(D,t,H){this.m1Q.record("/client_streamz/bg/el",D,t,H)};
var BwB=function(D){this.jR1=D;D.addNewCounter("/client_streamz/bg/cec",Gx("ec"),_.EH("mk"))};
BwB.prototype.increment=function(D,t){this.jR1.JSC$9791_incrementCounter("/client_streamz/bg/cec",D,t)};
var zU6=function(D){this.r5c=D;D.addNewCounter("/client_streamz/bg/po/csc",Gx("cs"),_.EH("mk"))};
zU6.prototype.increment=function(D,t){this.r5c.JSC$9791_incrementCounter("/client_streamz/bg/po/csc",D,t)};
var Ddn=function(D){this.ft1=D;D.addNewCounter("/client_streamz/bg/po/ctav",_.EH("av"),_.EH("mk"))};
Ddn.prototype.increment=function(D,t){this.ft1.JSC$9791_incrementCounter("/client_streamz/bg/po/ctav",D,t)};
var t26=function(D){this.y59=D;D.addNewCounter("/client_streamz/bg/po/cwsc",_.EH("su"),_.EH("mk"))};
t26.prototype.increment=function(D,t){this.y59.JSC$9791_incrementCounter("/client_streamz/bg/po/cwsc",D,t)};var NiD=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(NiD,_.ww);var Kh3=function(D,t){return _.D1(D,3,t,$wA)};var H2o=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(H2o,_.ww);var eD4=[1,2,3];var V2a=[0,eD4,_.bt,PEK,mvA];var b23=[0,_.qA,[0,QP,_.yP]];var qko=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(qko,_.ww);var Fun=[1,2,3];var a7Q=[0,Fun,Uv3,$vV,_.Fx,b23];var wv6=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(wv6,_.ww);var Z2m=[0,_.qA,V2a,a7Q];var sxo=[0,_.eB];var hDf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(hDf,_.ww);var G7f=[0,_.eB,-1,_.t_];var Epn=[0,_.eB,-1,_.Dy,_.t_];var KuV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(KuV,_.ww);var NNm=[1,2,3];var k7o=[0,NNm,_.Fx,G7f,_.Fx,Epn,_.Fx,sxo];var TNB=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(TNB,_.ww);TNB.prototype.JSC$9611_serializeBinary=xNK([0,_.eB,k7o,MSR,_.qA,Z2m,nFD,CER]);var c69=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(c69,_.ww);var i26=function(D){var t=new TNB;t=_.M3(t,1,D.JSC$9727_metricName);var H=jxn(D);t=_.D1(t,3,H,_.jb);H=[];for(var e=[],V=_.F(D.cellMap.keys()),b=V.next();!b.done;b=V.next())e.push(b.value.split(","));for(V=0;V<e.length;V++){b=e[V];for(var a=D.cellType,w=D.getCells(b)||[],h=[],K=0;K<w.length;K++){var N=w[K],k=N&&N.cellValue;N=new qko;switch(a){case 3:k=Number(k);Number.isFinite(k)&&j4(N,1,Fun,sF(k));break;case 2:j4(N,2,Fun,_.RB(Number(k)))}h.push(N)}a=h;for(w=0;w<a.length;w++){h=a[w];K=new wv6;h=_.oE(K,
2,h);K=[];N=$dv(D);for(k=0;k<N.length;k++){var T=N[k],c=b[k],U=new H2o;switch(T){case 3:j4(U,1,eD4,r4(String(c)));break;case 2:T=Number(c);Number.isFinite(T)&&j4(U,2,eD4,_.eb(T));break;case 1:j4(U,3,eD4,ToT(c==="true"))}K.push(U)}Ca(h,1,K);H.push(h)}}Ca(t,4,H);return t};var r6m=function(D){if(!D)return"";if(/^about:(?:blank|srcdoc)$/.test(D))return window.origin||"";D.indexOf("blob:")===0&&(D=D.substring(5));D=D.split("#")[0].split("?")[0];D=D.toLowerCase();D.indexOf("//")==0&&(D=window.location.protocol+D);/^[\w\-]*:\/\//.test(D)||(D=window.location.href);var t=D.substring(D.indexOf("://")+3),H=t.indexOf("/");H!=-1&&(t=t.substring(0,H));H=D.substring(0,D.indexOf("://"));if(!H)throw Error("qa`"+D);if(H!=="http"&&H!=="https"&&H!=="chrome-extension"&&H!=="moz-extension"&&
H!=="file"&&H!=="android-app"&&H!=="chrome-search"&&H!=="chrome-untrusted"&&H!=="chrome"&&H!=="app"&&H!=="devtools")throw Error("ra`"+H);D="";var e=t.indexOf(":");if(e!=-1){var V=t.substring(e+1);t=t.substring(0,e);if(H==="http"&&V!=="80"||H==="https"&&V!=="443")D=":"+V}return H+"://"+t+D};var UdB=function(D,t,H){var e=String(_.VA.location.href);return e&&D&&t?[t,O2Q(r6m(e),D,H||null)].join(" "):null},O2Q=function(D,t,H){var e=[],V=[];
if((Array.isArray(H)?2:1)==1)return V=[t,D],_.ID(e,function(w){V.push(w)}),opf(V.join(" "));
var b=[],a=[];_.ID(H,function(w){a.push(w.key);b.push(w.value)});
H=Math.floor((new Date).getTime()/1E3);V=b.length==0?[H,t,D]:[b.join(":"),H,t,D];_.ID(e,function(w){V.push(w)});
D=opf(V.join(" "));D=[H,D];a.length==0||D.push(a.join(""));return D.join("_")},opf=function(D){var t=QDD();
t.update(D);return t.digestString().toLowerCase()};var iV=function(D){this.JSC$9622_document_=D||{cookie:""}},PF6;
_.q=iV.prototype;_.q.isEnabled=function(){if(!_.VA.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};
_.q.set=function(D,t,H){var e=!1;if(typeof H==="object"){var V=H.sameSite;e=H.secure||!1;var b=H.domain||void 0;var a=H.path||void 0;var w=H.maxAge}if(/[;=\s]/.test(D))throw Error("sa`"+D);if(/[;\r\n]/.test(t))throw Error("ta`"+t);w===void 0&&(w=-1);H=b?";domain="+b:"";a=a?";path="+a:"";e=e?";secure":"";w=w<0?"":w==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+w*1E3)).toUTCString();this.JSC$9622_document_.cookie=D+"="+t+H+a+w+e+(V!=null?";samesite="+V:"")};
_.q.get=function(D,t){for(var H=D+"=",e=(this.JSC$9622_document_.cookie||"").split(";"),V=0,b;V<e.length;V++){b=KK(e[V]);if(b.lastIndexOf(H,0)==0)return b.slice(H.length);if(b==D)return""}return t};
_.q.remove=function(D,t,H){var e=this.containsKey(D);this.set(D,"",{maxAge:0,path:t,domain:H});return e};
_.q.getKeys=function(){return PF6(this).keys};
_.q.getValues=function(){return PF6(this).values};
_.q.isEmpty=function(){return!this.JSC$9622_document_.cookie};
_.q.getCount=function(){return this.JSC$9622_document_.cookie?(this.JSC$9622_document_.cookie||"").split(";").length:0};
_.q.containsKey=function(D){return this.get(D)!==void 0};
_.q.containsValue=function(D){for(var t=PF6(this).values,H=0;H<t.length;H++)if(t[H]==D)return!0;return!1};
_.q.clear=function(){for(var D=PF6(this).keys,t=D.length-1;t>=0;t--)this.remove(D[t])};
PF6=function(D){D=(D.JSC$9622_document_.cookie||"").split(";");for(var t=[],H=[],e,V,b=0;b<D.length;b++)V=KK(D[b]),e=V.indexOf("="),e==-1?(t.push(""),H.push(V)):(t.push(V.substring(0,e)),H.push(V.substring(e+1)));return{keys:t,values:H}};
_.ri=new iV(typeof document=="undefined"?null:document);var SiX,npv;SiX=function(){var D=_.VA.__SAPISID||_.VA.__APISID||_.VA.__3PSAPISID||_.VA.__1PSAPISID||_.VA.__OVERRIDE_SID;if(D)return!0;typeof document!=="undefined"&&(D=new iV(document),D=D.get("SAPISID")||D.get("APISID")||D.get("__Secure-3PAPISID")||D.get("__Secure-1PAPISID"));return!!D};
npv=function(D,t,H,e){(D=_.VA[D])||typeof document==="undefined"||(D=(new iV(document)).get(t));return D?UdB(D,H,e):null};
_.sQR=function(D){var t=r6m(_.VA==null?void 0:_.VA.location.href),H=[];if(SiX()){t=t.indexOf("https:")==0||t.indexOf("chrome-extension:")==0||t.indexOf("chrome-untrusted://new-tab-page")==0||t.indexOf("moz-extension:")==0;var e=t?_.VA.__SAPISID:_.VA.__APISID;e||typeof document==="undefined"||(e=new iV(document),e=e.get(t?"SAPISID":"APISID")||e.get("__Secure-3PAPISID"));(e=e?UdB(e,t?"SAPISIDHASH":"APISIDHASH",D):null)&&H.push(e);t&&((t=npv("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",D))&&H.push(t),
(D=npv("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",D))&&H.push(D))}return H.length==0?null:H.join(" ")};var CF9=function(){this.minSize=1024};
CF9.prototype.compress=function(D){var t,H,e,V;return _.Z(function(b){switch(b.nextAddress){case 1:return t=new CompressionStream("gzip"),H=(new Response(t.readable)).arrayBuffer(),e=t.writable.getWriter(),b.yield(e.write((new TextEncoder).encode(D)),2);case 2:return b.yield(e.close(),3);case 3:return V=Uint8Array,b.yield(H,4);case 4:return b.return(new V(b.yieldResult))}})};
CF9.prototype.isSupported=function(D){return D<this.minSize?!1:typeof CompressionStream!=="undefined"};var mdm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(mdm,_.ww);var r8=function(D,t){this.intervalMs=D;this.callback=t;this.enabled=!1;this.nowFn=function(){return _.wU()};
this.lastTimeMs=this.nowFn()};
r8.prototype.setInterval=function(D){this.intervalMs=D;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
r8.prototype.start=function(){var D=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){D.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
r8.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
r8.prototype.tick=function(){var D=this;if(this.enabled){var t=Math.max(this.nowFn()-this.lastTimeMs,0);t<this.intervalMs*.8?this.timer=setTimeout(function(){D.tick()},this.intervalMs-t):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var M2n=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(M2n,_.ww);var SkQ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(SkQ,_.ww);var Xvn=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Xvn,_.ww);Xvn.prototype.getTransmissionType=function(){return _.AM(this,1)};var DSu=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(DSu,_.ww);DSu.prototype.getVersion=function(){return _.La(this,2)};var O2=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(O2,_.ww);var zhT=function(D){Ca(tcT,1,D)};
O2.prototype.getModel=function(){return _.La(this,6)};
var f7a=_.iM(O2);var Luf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Luf,_.ww);var yZX=["platform","platformVersion","architecture","model","uaFullVersion"],tcT=new O2,B13=null;var U2=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(U2,_.ww);var A6V=function(D){return _.Gr(D,1,1)};var gpm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D,4)};
_.P(gpm,_.ww);_.ou=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D,36)};
_.P(_.ou,_.ww);_.ou.prototype.getExperimentIds=function(){return _.sq(this,mdm,16)};var J6o=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D,19)};
_.P(J6o,_.ww);J6o.prototype.setLogSource=function(D){return _.Gr(this,2,D)};
J6o.prototype.setScheduler=function(D){return _.Gr(this,10,D)};var l7o=function(D,t){this.isServiceWorkerScope=t=t===void 0?!1:t;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new J6o;Number.isInteger(D)&&this.logRequest.setLogSource(D);t||(this.locale=document.documentElement.getAttribute("lang"));Ykn(this,new U2)};
l7o.prototype.setLogSource=function(D){this.logRequest.setLogSource(D);return this};
var Ykn=function(D,t){_.oE(D.logRequest,1,t);_.AM(t,1)||A6V(t);D.isServiceWorkerScope||(t=Pl(D),_.La(t,5)||_.M3(t,5,D.locale));D.uach&&(t=Pl(D),_.sq(t,O2,9)||_.oE(t,9,D.uach))},vpV=function(D,t){D.transmissionType=t},pvw=function(D){var t=t===void 0?yZX:t;
var H=D.isServiceWorkerScope?void 0:v_();H?HZX(H,t).then(function(e){D.uach=f7a(e!=null?e:"[]");e=Pl(D);_.oE(e,9,D.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Pl=function(D){var t=_.sq(D.logRequest,U2,1);
t||(t=new U2,Ykn(D,t));D=t;t=_.sq(D,Luf,11);t||(t=new Luf,_.oE(D,11,t));return t};
l7o.prototype.build=function(D,t,H,e,V,b){t=t===void 0?0:t;H=H===void 0?0:H;e=e===void 0?null:e;V=V===void 0?0:V;b=b===void 0?0:b;if(!this.isServiceWorkerScope){var a=Pl(this);var w=new Xvn;w=_.Gr(w,1,this.transmissionType);w=_.KN(w,2,this.isFinal);H=_.lZ(w,3,H>0?H:void 0);H=_.lZ(H,4,V>0?V:void 0);H=_.lZ(H,5,b>0?b:void 0);V=H.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;b=V[_.ba]|0;H=Em(H,b)?H:nQD(H,V,b)?PYV(H,V):new H.constructor(YQ(V,b,!0));_.oE(a,10,H)}a=this.logRequest.clone();H=Date.now().toString();
a=_.Eq(a,4,sF(H));D=D.slice();D=Ca(a,3,D);e&&(a=new M2n,e=_.lZ(a,13,e),a=new SkQ,e=_.oE(a,2,e),a=new gpm,e=_.oE(a,1,e),e=_.Gr(e,2,9),_.oE(D,18,e));t&&_.P$(D,14,t);return D};Nc.prototype.currBackoffCount_=0;Nc.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
Nc.prototype.getValue=function(){return this.currValue_};
var ddn=function(D){D.currBaseValue_=Math.min(D.maxValue_,D.currBaseValue_*D.backoffFactor_);D.currValue_=Math.min(D.maxValue_,D.currBaseValue_+(D.randomFactor_?Math.round(D.randomFactor_*(Math.random()-.5)*2*D.currBaseValue_):0));D.currBackoffCount_++};var JIV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D,8)};
_.P(JIV,_.ww);var xd6=_.iM(JIV);var Y1V=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Y1V,_.ww);var nr;nr=new lFA;var Cr=function(D){_.mg.call(this);var t=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9700_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$9700_sendBeaconApiEnabled=!1;this.logSource=D.logSource;this.getAuthHeaderValue=
D.getAuthHeaderValue||function(){};
this.logRequestBuilder=new l7o(D.logSource,D.isServiceWorkerScope);this.network=D.network||null;this.productID=D.productID||null;this.bufferSize=1E3;this.clearcutUrl=D.urlOverride||null;this.sessionIndex=D.sessionIndex||null;this.disableAutomaticFlush=D.disableAutomaticFlush||!1;this.withCredentials=!D.disableWithCredentials;this.isServiceWorkerScope=D.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!v_()&&!!v_().navigator&&v_().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(RDV())).searchParams&&!!(new URL(RDV())).searchParams.set;var H=A6V(new U2);Ykn(this.logRequestBuilder,H);this.flushBackoff=new Nc(1E4,3E5,.1);D=uqQ(this,D.backgroundJobDeferrer);this.JSC$9700_flushTimer=new r8(this.flushBackoff.getValue(),D);this.backupTimer=new r8(6E5,D);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){Wu9(t);
var e;(e=t.metalogService)==null||e.flush()}}),document.addEventListener("pagehide",function(){Wu9(t);
var e;(e=t.metalogService)==null||e.flush()}))};
_.P(Cr,_.mg);var uqQ=function(D,t){return D.isBrowserSupported?t?function(){t().then(function(){D.flush()})}:function(){D.flush()}:function(){}};
Cr.prototype.disposeInternal=function(){Wu9(this);this.JSC$9700_flushTimer.stop();this.backupTimer.stop();_.mg.prototype.disposeInternal.call(this)};
var I7v=function(D){D.clearcutUrl||(D.clearcutUrl=RDV());try{return(new URL(D.clearcutUrl)).toString()}catch(t){return(new URL(D.clearcutUrl,v_().location.origin)).toString()}};
Cr.prototype.dispatch=function(D){if(D instanceof _.ou)this.log(D);else try{var t=new _.ou,H=D.serialize();var e=_.M3(t,8,H);this.log(e)}catch(V){mf(this,4,1)}};
var mf=function(D,t,H){D.metalogService&&D.metalogService.increment(t,H)};
Cr.prototype.log=function(D){mf(this,2,1);if(this.isBrowserSupported){D=D.clone();var t=this.sequencePosition++;D=_.P$(D,21,t);this.componentId&&_.M3(D,26,this.componentId);t=D;if(A3A(_.rU(t,1))==null){var H=Date.now();H=Number.isFinite(H)?H.toString():"0";_.Eq(t,1,sF(H))}_.Lnu(_.rU(t,15))!=null||_.P$(t,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(H=this.experimentIds.clone(),_.oE(t,16,H));mf(this,1,1);t=this.pendingEvents.length-this.bufferSize+1;t>0&&(this.pendingEvents.splice(0,t),
this.numLogsDroppedSinceLastFlush+=t,mf(this,3,t));this.pendingEvents.push(D);this.disableAutomaticFlush||this.JSC$9700_flushTimer.enabled||this.JSC$9700_flushTimer.start()}};
Cr.prototype.flush=function(D,t){var H=this;if(this.pendingEvents.length===0)D&&D();else if(this.JSC$9700_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Qxn(this);else{var e=Date.now();if(this.noFlushUntilMs>e&&this.startWaitingMs<e)t&&t("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?vpV(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var V=this.pendingEvents.length,
b=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),a=this.getAuthHeaderValue();if(a&&this.lastFailedAuth===a)t&&t("stale-auth-token");else{this.pendingEvents=[];this.JSC$9700_flushTimer.enabled&&this.JSC$9700_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;e=b.serialize();var w;this.JSC$9700_compressor&&this.JSC$9700_compressor.isSupported(e.length)&&
(w=this.JSC$9700_compressor.compress(e));var h=y69(this,e,a),K=function(T){H.flushBackoff.reset();H.JSC$9700_flushTimer.setInterval(H.flushBackoff.getValue());if(T){var c=null;try{var U=JSON.stringify(JSON.parse(T.replace(")]}'\n","")));c=xd6(U)}catch(S){}c&&(T=Number(Xz(c,1,_.mn("-1"))),T>0&&(H.startWaitingMs=Date.now(),H.noFlushUntilMs=H.startWaitingMs+T),VbX(c.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,nr.fieldIndex),HeV(c,nr.fieldIndex),c=nr.ctor?nr.getExtensionFn(c,nr.ctor,nr.fieldIndex,
nr.JSC$8881_hasMessageId):nr.getExtensionFn(c,nr.fieldIndex,null,nr.JSC$8881_hasMessageId),c=c===null?void 0:c)&&(c=_.sH(c,1,-1),c!==-1&&(H.flushBackoff=new Nc(c<1?1:c,3E5,.1),H.JSC$9700_flushTimer.setInterval(H.flushBackoff.getValue())))}D&&D();H.numRetriesSinceLastSuccessfulFlush=0},N=function(T,c){var U=_.wV(b,_.ou,3,_.Zl());
var S=Number(Xz(b,14));ddn(H.flushBackoff);H.JSC$9700_flushTimer.setInterval(H.flushBackoff.getValue());T===401&&a&&(H.lastFailedAuth=a);S&&(H.numLogsDroppedSinceLastFlush+=S);c===void 0&&(c=H.isRetryable(T));c&&(H.pendingEvents=U.concat(H.pendingEvents),H.disableAutomaticFlush||H.JSC$9700_flushTimer.enabled||H.JSC$9700_flushTimer.start());mf(H,7,1);t&&t("net-send-failed",T);++H.numRetriesSinceLastSuccessfulFlush},k=function(){H.network&&H.network.send(h,K,N)};
w?w.then(function(T){mf(H,5,V);h.requestHeaders["Content-Encoding"]="gzip";h.requestHeaders["Content-Type"]="application/binary";h.body=T;h.bodyType=2;k()},function(){mf(H,6,V);
k()}):k()}}}};
var y69=function(D,t,H){H=H===void 0?null:H;var e=e===void 0?D.withCredentials:e;var V={},b=new URL(I7v(D));H&&(V.Authorization=H);D.sessionIndex&&(V["X-Goog-AuthUser"]=D.sessionIndex,b.searchParams.set("authuser",D.sessionIndex));D.pageId&&(Object.defineProperty(V,"X-Goog-PageId",{value:D.pageId}),b.searchParams.set("pageId",D.pageId));return{url:b.toString(),body:t,bodyType:1,requestHeaders:V,requestType:"POST",withCredentials:e,timeoutMillis:D.timeoutMillis}},Wu9=function(D){D.logRequestBuilder.isFinal=
!0;
D.flush();D.logRequestBuilder.isFinal=!1},Qxn=function(D){BN4(D,function(t,H){t=new URL(t);
t.searchParams.set("format","json");var e=!1;try{e=v_().navigator.sendBeacon(t.toString(),H.serialize())}catch(V){}e||(D.isSendBeaconSupported=!1);return e})},BN4=function(D,t){if(D.pendingEvents.length!==0){var H=new URL(I7v(D));
H.searchParams.delete("format");var e=D.getAuthHeaderValue();e&&H.searchParams.set("auth",e);H.searchParams.set("authuser",D.sessionIndex||"0");for(e=0;e<10&&D.pendingEvents.length;++e){var V=D.pendingEvents.slice(0,32),b=D.logRequestBuilder.build(V,D.numLogsDroppedSinceLastFlush,D.numRetriesSinceLastSuccessfulFlush,D.productID,D.persistedLogRecoveredCount,D.persistedLogExpiredCount);if(!t(H.toString(),b)){++D.numRetriesSinceLastSuccessfulFlush;break}D.numLogsDroppedSinceLastFlush=0;D.numRetriesSinceLastSuccessfulFlush=
0;D.persistedLogRecoveredCount=0;D.persistedLogExpiredCount=0;D.pendingEvents=D.pendingEvents.slice(V.length)}D.JSC$9700_flushTimer.enabled&&D.JSC$9700_flushTimer.stop()}};
Cr.prototype.isRetryable=function(D){return 500<=D&&D<600||D===401||D===0};
var RDV=function(){return"https://play.google.com/log?format=json&hasfast=true"};var zD9=function(){this.abortSupported=typeof AbortController!=="undefined"};
zD9.prototype.send=function(D,t,H){var e=this,V,b,a,w,h,K,N,k,T,c;return _.Z(function(U){switch(U.nextAddress){case 1:return b=(V=e.abortSupported?new AbortController:void 0)?setTimeout(function(){V.abort()},D.timeoutMillis):void 0,_.$p(U,2,3),a=Object.assign({},{method:D.requestType,
headers:Object.assign({},D.requestHeaders)},D.body&&{body:D.body},D.withCredentials&&{credentials:"include"},{signal:D.timeoutMillis&&V?V.signal:null}),U.yield(fetch(D.url,a),5);case 5:w=U.yieldResult;if(w.status!==200){(h=H)==null||h(w.status);U.jumpTo(3);break}if((K=t)==null){U.jumpTo(7);break}return U.yield(w.text(),8);case 8:K(U.yieldResult);case 7:case 3:_.rN(U);clearTimeout(b);_.ox(U,0);break;case 2:N=_.Pv(U);switch((k=N)==null?void 0:k.name){case "AbortError":(T=H)==null||T(408);break;default:(c=
H)==null||c(400)}U.jumpTo(3)}})};
zD9.prototype.getTransmissionType=function(){return 4};_.Tx=function(D,t){t=t===void 0?"0":t;_.mg.call(this);this.logSource=D;this.sessionIndex=t;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9718_clearExperimentIds=this.productID=null;this.JSC$9718_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.P(_.Tx,_.mg);var hED=function(D,t){D.buildLabel=t;return D},sAV=function(D,t){D.network=t;
return D},ExT=function(D,t){D.JSC$9718_clearExperimentIds=t},ZZ6=function(D){D.JSC$9718_sendBeaconApiEnabled=!0;
return D};
_.Tx.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Tx.prototype.build=function(){this.network||(this.network=new zD9);var D=new Cr({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.sQR,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.c1(this,D);if(this.buildLabel){var t=this.buildLabel,H=
Pl(D.logRequestBuilder);_.M3(H,7,t)}D.JSC$9700_compressor=new CF9;this.componentId&&(D.componentId=this.componentId);this.productID&&(D.productID=this.productID);this.pageId&&(D.pageId=this.pageId);this.JSC$9718_clearExperimentIds&&((H=this.JSC$9718_clearExperimentIds)?(D.experimentIds||(D.experimentIds=new mdm),t=D.experimentIds,H=H.serialize(),_.M3(t,4,H)):D.experimentIds&&_.Eq(D.experimentIds,4));this.JSC$9718_sendBeaconApiEnabled&&(D.JSC$9700_sendBeaconApiEnabled=D.isSendBeaconSupported);pvw(D.logRequestBuilder);
this.bufferSize&&(D.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(D);return D};var kWV=function(D,t,H,e,V,b,a){D=D===void 0?-1:D;t=t===void 0?"":t;H=H===void 0?"":H;e=e===void 0?!1:e;V=V===void 0?"":V;_.mg.call(this);this.logSource=D;this.componentId=t;b?t=b:(D=new _.Tx(D,"0"),D.componentId=t,_.c1(this,D),H!==""&&(D.destinationUrl=H),e&&(D.serviceWorkerScopeEnabled=!0),V&&hED(D,V),a&&sAV(D,a),t=D.build());this.JSC$9722_transport=t};
_.P(kWV,_.mg);kWV.prototype.flush=function(D){D=D||[];if(D.length){for(var t=new c69,H=[],e=0;e<D.length;e++){var V=D[e],b=i26(V);H.push(b);V.clear()}Ca(t,1,H);this.JSC$9722_transport.dispatch(t);this.JSC$9722_transport.flush()}};var D3f=function(D){this.cellValue=D};var Mk=function(D,t,H){this.JSC$9727_metricName=D;this.cellType=t;this.fields=H||[];this.cellMap=new Map},$dv=function(D){return D.fields.map(function(t){return t.fieldType})},jxn=function(D){return D.fields.map(function(t){return t.fieldName})};
_.q=Mk.prototype;_.q.addCell=function(D){var t=_.RE.apply(1,arguments),H=this.getCells(t);H?H.push(new D3f(D)):this.JSC$9727_setCell(D,t)};
_.q.JSC$9727_setCell=function(D){var t=this.JSC$9727_getKey(_.RE.apply(1,arguments));this.cellMap.set(t,[new D3f(D)])};
_.q.getCells=function(){var D=this.JSC$9727_getKey(_.RE.apply(0,arguments));return this.cellMap.has(D)?this.cellMap.get(D):void 0};
_.q.getCell=function(){var D=this.getCells(_.RE.apply(0,arguments));return D&&D.length?D[0]:void 0};
_.q.clear=function(){this.cellMap.clear()};
_.q.JSC$9727_getKey=function(){var D=_.RE.apply(0,arguments);return D?D.join(","):"key"};var trB=function(D,t){Mk.call(this,D,3,t)};
_.P(trB,Mk);trB.prototype.JSC$9730_incrementCounterBy=function(D){var t=_.RE.apply(1,arguments),H=0,e=this.getCell(t);e&&(H=e.cellValue);this.JSC$9727_setCell(H+D,t)};var HWQ=function(D,t){Mk.call(this,D,2,t)};
_.P(HWQ,Mk);HWQ.prototype.record=function(D){this.addCell(D,_.RE.apply(1,arguments))};_.Sx=function(D){this.id=D};
_.Sx.prototype.toString=function(){return this.id};_.Xv=function(D,t){this.type=D instanceof _.Sx?String(D):D;this.currentTarget=this.target=t;this.defaultPrevented=this.propagationStopped_=!1};
_.Xv.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.Xv.prototype.preventDefault=function(){this.defaultPrevented=!0};_.fr=function(D,t){_.Xv.call(this,D?D.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;D&&this.init(D,t)};
_.Zj(_.fr,_.Xv);
_.fr.prototype.init=function(D,t){var H=this.type=D.type,e=D.changedTouches&&D.changedTouches.length?D.changedTouches[0]:null;this.target=D.target||D.srcElement;this.currentTarget=t;t=D.relatedTarget;t||(H=="mouseover"?t=D.fromElement:H=="mouseout"&&(t=D.toElement));this.relatedTarget=t;e?(this.clientX=e.clientX!==void 0?e.clientX:e.pageX,this.clientY=e.clientY!==void 0?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0):(this.offsetX=_.NG||D.offsetX!==void 0?D.offsetX:D.layerX,
this.offsetY=_.NG||D.offsetY!==void 0?D.offsetY:D.layerY,this.clientX=D.clientX!==void 0?D.clientX:D.pageX,this.clientY=D.clientY!==void 0?D.clientY:D.pageY,this.screenX=D.screenX||0,this.screenY=D.screenY||0);this.button=D.button;this.keyCode=D.keyCode||0;this.key=D.key||"";this.charCode=D.charCode||(H=="keypress"?D.keyCode:0);this.ctrlKey=D.ctrlKey;this.altKey=D.altKey;this.shiftKey=D.shiftKey;this.metaKey=D.metaKey;this.pointerId=D.pointerId||0;this.pointerType=D.pointerType;this.state=D.state;
this.timeStamp=D.timeStamp;this.event_=D;D.defaultPrevented&&_.fr.superClass_.preventDefault.call(this)};
_.fr.prototype.isButton=function(D){return this.event_.button==D};
_.fr.prototype.stopPropagation=function(){_.fr.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.fr.prototype.preventDefault=function(){_.fr.superClass_.preventDefault.call(this);var D=this.event_;D.preventDefault?D.preventDefault():D.returnValue=!1};var e5B="closure_listenable_"+(Math.random()*1E6|0),Lr=function(D){return!(!D||!D[e5B])};var Vrn=0;var bW9=function(D,t,H,e,V){this.listener=D;this.proxy=null;this.src=t;this.type=H;this.capture=!!e;this.handler=V;this.key=++Vrn;this.removed=this.callOnce=!1},q5f=function(D){D.removed=!0;
D.listener=null;D.proxy=null;D.src=null;D.handler=null};kO.prototype.add=function(D,t,H,e,V){var b=D.toString();D=this.listeners[b];D||(D=this.listeners[b]=[],this.typeCount_++);var a=FJm(D,t,e,V);a>-1?(t=D[a],H||(t.callOnce=!1)):(t=new bW9(t,this.src,b,!!e,V),t.callOnce=H,D.push(t));return t};
kO.prototype.remove=function(D,t,H,e){D=D.toString();if(!(D in this.listeners))return!1;var V=this.listeners[D];t=FJm(V,t,H,e);return t>-1?(q5f(V[t]),_.MVX(V,t),V.length==0&&(delete this.listeners[D],this.typeCount_--),!0):!1};
var ain=function(D,t){var H=t.type;if(!(H in D.listeners))return!1;var e=_.vk(D.listeners[H],t);e&&(q5f(t),D.listeners[H].length==0&&(delete D.listeners[H],D.typeCount_--));return e};
kO.prototype.removeAll=function(D){D=D&&D.toString();var t=0,H;for(H in this.listeners)if(!D||H==D){for(var e=this.listeners[H],V=0;V<e.length;V++)++t,q5f(e[V]);delete this.listeners[H];this.typeCount_--}return t};
kO.prototype.getListener=function(D,t,H,e){D=this.listeners[D.toString()];var V=-1;D&&(V=FJm(D,t,H,e));return V>-1?D[V]:null};
kO.prototype.hasListener=function(D,t){var H=D!==void 0,e=H?D.toString():"",V=t!==void 0;return _.J$.some(this.listeners,function(b){for(var a=0;a<b.length;++a)if(!(H&&b[a].type!=e||V&&b[a].capture!=t))return!0;return!1})};
var FJm=function(D,t,H,e){for(var V=0;V<D.length;++V){var b=D[V];if(!b.removed&&b.listener==t&&b.capture==!!H&&b.handler==e)return V}return-1};var w_n,ZWn,sta,Gtw,Ez3,mV,MT,ktf,KJa,NMf,A2,TMB,h5V;w_n="closure_lm_"+(Math.random()*1E6|0);ZWn={};sta=0;_.fz=function(D,t,H,e,V){if(e&&e.once)return mV(D,t,H,e,V);if(Array.isArray(t)){for(var b=0;b<t.length;b++)_.fz(D,t[b],H,e,V);return null}H=h5V(H);return Lr(D)?D.listen(t,H,_.Wk(e)?!!e.capture:!!e,V):Gtw(D,t,H,!1,e,V)};
Gtw=function(D,t,H,e,V,b){if(!t)throw Error("va");var a=_.Wk(V)?!!V.capture:!!V,w=A2(D);w||(D[w_n]=w=new kO(D));H=w.add(t,H,e,a,b);if(H.proxy)return H;e=Ez3();H.proxy=e;e.src=D;e.listener=H;if(D.addEventListener)_.KDf||(V=a),V===void 0&&(V=!1),D.addEventListener(t.toString(),e,V);else if(D.attachEvent)D.attachEvent(KJa(t.toString()),e);else if(D.addListener&&D.removeListener)D.addListener(e);else throw Error("wa");sta++;return H};
Ez3=function(){var D=NMf,t=function(H){return D.call(t.src,t.listener,H)};
return t};
mV=function(D,t,H,e,V){if(Array.isArray(t)){for(var b=0;b<t.length;b++)mV(D,t[b],H,e,V);return null}H=h5V(H);return Lr(D)?D.listenOnce(t,H,_.Wk(e)?!!e.capture:!!e,V):Gtw(D,t,H,!0,e,V)};
_.g8=function(D,t,H,e,V){if(Array.isArray(t))for(var b=0;b<t.length;b++)_.g8(D,t[b],H,e,V);else e=_.Wk(e)?!!e.capture:!!e,H=h5V(H),Lr(D)?D.unlisten(t,H,e,V):D&&(D=A2(D))&&(t=D.getListener(t,H,e,V))&&MT(t)};
MT=function(D){if(typeof D==="number"||!D||D.removed)return!1;var t=D.src;if(Lr(t))return ain(t.eventTargetListeners_,D);var H=D.type,e=D.proxy;t.removeEventListener?t.removeEventListener(H,e,D.capture):t.detachEvent?t.detachEvent(KJa(H),e):t.addListener&&t.removeListener&&t.removeListener(e);sta--;(H=A2(t))?(ain(H,D),H.typeCount_==0&&(H.src=null,t[w_n]=null)):q5f(D);return!0};
ktf=function(D,t,H,e,V){H=h5V(H);e=!!e;return Lr(D)?D.getListener(t,H,e,V):D?(D=A2(D))?D.getListener(t,H,e,V):null:null};
KJa=function(D){return D in ZWn?ZWn[D]:ZWn[D]="on"+D};
NMf=function(D,t){if(D.removed)D=!0;else{t=new _.fr(t,this);var H=D.listener,e=D.handler||D.src;D.callOnce&&MT(D);D=H.call(e,t)}return D};
A2=function(D){D=D[w_n];return D instanceof kO?D:null};
TMB="__closure_events_fn_"+(Math.random()*1E9>>>0);h5V=function(D){if(typeof D==="function")return D;D[TMB]||(D[TMB]=function(t){return D.handleEvent(t)});
return D[TMB]};_.J2=function(){_.mg.call(this);this.eventTargetListeners_=new kO(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Zj(_.J2,_.mg);_.J2.prototype[e5B]=!0;_.q=_.J2.prototype;_.q.setParentEventTarget=function(D){this.parentEventTarget_=D};
_.q.addEventListener=function(D,t,H,e){_.fz(this,D,t,H,e)};
_.q.removeEventListener=function(D,t,H,e){_.g8(this,D,t,H,e)};
_.q.dispatchEvent=function(D){var t,H=this.parentEventTarget_;if(H)for(t=[];H;H=H.parentEventTarget_)t.push(H);H=this.actualEventTarget_;var e=D.type||D;if(typeof D==="string")D=new _.Xv(D,H);else if(D instanceof _.Xv)D.target=D.target||H;else{var V=D;D=new _.Xv(e,H);_.J$.extend(D,V)}V=!0;var b;if(t)for(b=t.length-1;!D.propagationStopped_&&b>=0;b--){var a=D.currentTarget=t[b];V=c$Q(a,e,!0,D)&&V}D.propagationStopped_||(a=D.currentTarget=H,V=c$Q(a,e,!0,D)&&V,D.propagationStopped_||(V=c$Q(a,e,!1,D)&&
V));if(t)for(b=0;!D.propagationStopped_&&b<t.length;b++)a=D.currentTarget=t[b],V=c$Q(a,e,!1,D)&&V;return V};
_.q.disposeInternal=function(){_.J2.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.q.listen=function(D,t,H,e){return this.eventTargetListeners_.add(String(D),t,!1,H,e)};
_.q.listenOnce=function(D,t,H,e){return this.eventTargetListeners_.add(String(D),t,!0,H,e)};
_.q.unlisten=function(D,t,H,e){return this.eventTargetListeners_.remove(String(D),t,H,e)};
_.q.removeAllListeners=function(D){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(D):0};
var c$Q=function(D,t,H,e){t=D.eventTargetListeners_.listeners[String(t)];if(!t)return!0;t=t.concat();for(var V=!0,b=0;b<t.length;++b){var a=t[b];if(a&&!a.removed&&a.capture==H){var w=a.listener,h=a.handler||a.src;a.callOnce&&ain(D.eventTargetListeners_,a);V=w.call(h,e)!==!1&&V}}return V&&!e.defaultPrevented};
_.J2.prototype.getListener=function(D,t,H,e){return this.eventTargetListeners_.getListener(String(D),t,H,e)};
_.J2.prototype.hasListener=function(D,t){return this.eventTargetListeners_.hasListener(D!==void 0?String(D):void 0,t)};var Y1=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(D){return D&&AsyncContext.Snapshot.wrap(D)}:function(D){return D};var jtw=function(D,t){this.create_=D;this.reset_=t;this.occupants_=0;this.JSC$9762_head_=null};
jtw.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var D=this.JSC$9762_head_;this.JSC$9762_head_=D.next;D.next=null}else D=this.create_();return D};
jtw.prototype.put=function(D){this.reset_(D);this.occupants_<100&&(this.occupants_++,D.next=this.JSC$9762_head_,this.JSC$9762_head_=D)};var $3a=function(){this.workTail_=this.workHead_=null};
$3a.prototype.add=function(D,t){var H=VcV.get();H.set(D,t);this.workTail_?this.workTail_.next=H:this.workHead_=H;this.workTail_=H};
$3a.prototype.remove=function(){var D=null;this.workHead_&&(D=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),D.next=null);return D};
var VcV=new jtw(function(){return new iWn},function(D){return D.reset()}),iWn=function(){this.next=this.scope=this.fn=null};
iWn.prototype.set=function(D,t){this.fn=D;this.scope=t;this.next=null};
iWn.prototype.reset=function(){this.next=this.scope=this.fn=null};var r$a,bZD,eEu,OWQ;bZD=!1;eEu=new $3a;_.lV=function(D,t){r$a||OWQ();bZD||(r$a(),bZD=!0);eEu.add(D,t)};
OWQ=function(){var D=Promise.resolve(void 0);r$a=function(){D.then(qaV)}};var U3Q=function(D){D.prototype.$goog_Thenable=!0},ozn=function(D){if(!D)return!1;
try{return!!D.$goog_Thenable}catch(t){return!1}};var PR4,nz4,CR3,Mrw,S5v,X_n,gzn,li9,x34,p_o,fAK;_.c$=function(D,t){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(D!=_.fJ)try{var H=this;D.call(t,function(e){H.resolve_(2,e)},function(e){H.resolve_(3,e)})}catch(e){this.resolve_(3,e)}};
PR4=function(){this.next=this.context=this.JSC$9773_onRejected=this.JSC$9773_onFulfilled=this.child=null;this.always=!1};
PR4.prototype.reset=function(){this.context=this.JSC$9773_onRejected=this.JSC$9773_onFulfilled=this.child=null;this.always=!1};
nz4=new jtw(function(){return new PR4},function(D){D.reset()});
CR3=function(D,t,H){var e=nz4.get();e.JSC$9773_onFulfilled=D;e.JSC$9773_onRejected=t;e.context=H;return e};
_.Tf=function(D){if(D instanceof _.c$)return D;var t=new _.c$(_.fJ);t.resolve_(2,D);return t};
_.Aj=function(D){return new _.c$(function(t,H){H(D)})};
Mrw=function(D,t,H){m3m(D,t,H,null)||_.lV(_.o4(t,D))};
_.vl=function(D){return new _.c$(function(t,H){var e=D.length,V=[];if(e)for(var b=function(K,N){e--;V[K]=N;e==0&&t(V)},a=function(K){H(K)},w,h=0;h<D.length;h++)w=D[h],Mrw(w,_.o4(b,h),a);
else t(V)})};
S5v=function(D){return new _.c$(function(t){var H=D.length,e=[];if(H)for(var V=function(w,h,K){H--;e[w]=h?{fulfilled:!0,value:K}:{fulfilled:!1,reason:K};H==0&&t(e)},b,a=0;a<D.length;a++)b=D[a],Mrw(b,_.o4(V,a,!0),_.o4(V,a,!1));
else t(e)})};
X_n=function(D){return new _.c$(function(t,H){var e=D.length,V=[];if(e)for(var b=function(K){t(K)},a=function(K,N){e--;
V[K]=N;e==0&&H(V)},w,h=0;h<D.length;h++)w=D[h],Mrw(w,b,_.o4(a,h));
else t(void 0)})};
_.z3=function(){var D,t,H=new _.c$(function(e,V){D=e;t=V});
return new fia(H,D,t)};
_.c$.prototype.then=function(D,t,H){return LJn(this,Y1(typeof D==="function"?D:null),Y1(typeof t==="function"?t:null),H)};
U3Q(_.c$);gzn=function(D,t,H,e){A$w(D,CR3(t||_.fJ,H||null,e))};
_.pr=function(D,t){t=Y1(t);t=CR3(t,t);t.always=!0;A$w(D,t);return D};
_.c$.prototype.finally=function(D){var t=this;D=Y1(D);return new _.c$(function(H,e){gzn(t,function(V){D();H(V)},function(V){D();
e(V)})})};
_.c$.prototype.thenCatch=function(D,t){return LJn(this,null,Y1(D),t)};
_.c$.prototype.catch=_.c$.prototype.thenCatch;_.c$.prototype.cancel=function(D){if(this.state_==0){var t=new _.dg(D);_.lV(function(){J$f(this,t)},this)}};
var J$f=function(D,t){if(D.state_==0)if(D.parent_){var H=D.parent_;if(H.callbackEntries_){for(var e=0,V=null,b=null,a=H.callbackEntries_;a&&(a.always||(e++,a.child==D&&(V=a),!(V&&e>1)));a=a.next)V||(b=a);V&&(H.state_==0&&e==1?J$f(H,t):(b?(e=b,e.next==H.callbackEntriesTail_&&(H.callbackEntriesTail_=e),e.next=e.next.next):Y59(H),li9(H,V,3,t)))}D.parent_=null}else D.resolve_(3,t)},A$w=function(D,t){D.callbackEntries_||D.state_!=2&&D.state_!=3||vza(D);
D.callbackEntriesTail_?D.callbackEntriesTail_.next=t:D.callbackEntries_=t;D.callbackEntriesTail_=t},LJn=function(D,t,H,e){var V=CR3(null,null,null);
V.child=new _.c$(function(b,a){V.JSC$9773_onFulfilled=t?function(w){try{var h=t.call(e,w);b(h)}catch(K){a(K)}}:b;
V.JSC$9773_onRejected=H?function(w){try{var h=H.call(e,w);h===void 0&&w instanceof _.dg?a(w):b(h)}catch(K){a(K)}}:a});
V.child.parent_=D;A$w(D,V);return V.child};
_.c$.prototype.unblockAndFulfill_=function(D){this.state_=0;this.resolve_(2,D)};
_.c$.prototype.unblockAndReject_=function(D){this.state_=0;this.resolve_(3,D)};
_.c$.prototype.resolve_=function(D,t){this.state_==0&&(this===t&&(D=3,t=new TypeError("xa")),this.state_=1,m3m(t,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=t,this.state_=D,this.parent_=null,vza(this),D!=3||t instanceof _.dg||p_o(this,t)))};
var m3m=function(D,t,H,e){if(D instanceof _.c$)return gzn(D,t,H,e),!0;if(ozn(D))return D.then(t,H,e),!0;if(_.Wk(D))try{var V=D.then;if(typeof V==="function")return d3V(D,V,t,H,e),!0}catch(b){return H.call(e,b),!0}return!1},d3V=function(D,t,H,e,V){var b=!1,a=function(h){b||(b=!0,H.call(V,h))},w=function(h){b||(b=!0,e.call(V,h))};
try{t.call(D,a,w)}catch(h){w(h)}},vza=function(D){D.executing_||(D.executing_=!0,_.lV(D.executeCallbacks_,D))},Y59=function(D){var t=null;
D.callbackEntries_&&(t=D.callbackEntries_,D.callbackEntries_=t.next,t.next=null);D.callbackEntries_||(D.callbackEntriesTail_=null);return t};
_.c$.prototype.executeCallbacks_=function(){for(var D;D=Y59(this);)li9(this,D,this.state_,this.result_);this.executing_=!1};
li9=function(D,t,H,e){if(H==3&&t.JSC$9773_onRejected&&!t.always)for(;D&&D.hadUnhandledRejection_;D=D.parent_)D.hadUnhandledRejection_=!1;if(t.child)t.child.parent_=null,x34(t,H,e);else try{t.always?t.JSC$9773_onFulfilled.call(t.context):x34(t,H,e)}catch(V){fAK.call(null,V)}nz4.put(t)};
x34=function(D,t,H){t==2?D.JSC$9773_onFulfilled.call(D.context,H):D.JSC$9773_onRejected&&D.JSC$9773_onRejected.call(D.context,H)};
p_o=function(D,t){D.hadUnhandledRejection_=!0;_.lV(function(){D.hadUnhandledRejection_&&fAK.call(null,t)})};
fAK=b8;_.dg=function(D){_.Hk.call(this,D)};
_.Zj(_.dg,_.Hk);_.dg.prototype.name="cancel";var fia=function(D,t,H){this.promise=D;this.resolve=t;this.reject=H};var d8;_.hK=function(D,t){_.J2.call(this);this.JSC$9785_interval_=D||1;this.timerObject_=t||_.VA;this.boundTick_=(0,_.Mc)(this.tick_,this);this.last_=_.wU()};
_.Zj(_.hK,_.J2);_.q=_.hK.prototype;_.q.enabled=!1;_.q.JSC$9787_timer_=null;_.q.setInterval=function(D){this.JSC$9785_interval_=D;this.JSC$9787_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9787_timer_&&this.stop()};
_.q.tick_=function(){if(this.enabled){var D=_.wU()-this.last_;D>0&&D<this.JSC$9785_interval_*.8?this.JSC$9787_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9785_interval_-D):(this.JSC$9787_timer_&&(this.timerObject_.clearTimeout(this.JSC$9787_timer_),this.JSC$9787_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.q.start=function(){this.enabled=!0;this.JSC$9787_timer_||(this.JSC$9787_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9785_interval_),this.last_=_.wU())};
_.q.stop=function(){this.enabled=!1;this.JSC$9787_timer_&&(this.timerObject_.clearTimeout(this.JSC$9787_timer_),this.JSC$9787_timer_=null)};
_.q.disposeInternal=function(){_.hK.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
d8=function(D,t,H){if(typeof D==="function")H&&(D=(0,_.Mc)(D,H));else if(D&&typeof D.handleEvent=="function")D=(0,_.Mc)(D.handleEvent,D);else throw Error("ya");return Number(t)>2147483647?-1:_.VA.setTimeout(D,t||0)};
_.R5V=function(D){var t=null;return(new _.c$(function(H,e){t=d8(function(){H(void 0)},D);
t==-1&&e(Error("za"))})).thenCatch(function(H){_.VA.clearTimeout(t);
throw H;})};var $O=function(D){_.mg.call(this);this.streamzLogger=D;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9791_flushTimer=new _.hK(this.flushInterval);this.JSC$9791_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.c1(this,this.JSC$9791_flushTimer)};
_.P($O,_.mg);$O.prototype.sendIsolatedPayload=function(D){this.shouldSendIsolatedPayload=D;this.invocationLimit=1};
var uwn=function(D){D.JSC$9791_flushTimer.enabled||D.JSC$9791_flushTimer.start();D.invocationCount++;D.invocationCount>=D.invocationLimit&&D.snapshotAndFlush()};
$O.prototype.snapshotAndFlush=function(){var D=this.metricMap.values();D=[].concat(_.A6(D)).filter(function(t){return t.cellMap.size});
D.length&&this.streamzLogger.flush(D,this.shouldSendIsolatedPayload);WJn(D);this.invocationCount=0;this.JSC$9791_flushTimer.enabled&&this.JSC$9791_flushTimer.stop()};
$O.prototype.addNewCounter=function(D){var t=_.RE.apply(1,arguments);this.metricMap.has(D)||this.metricMap.set(D,new trB(D,t))};
$O.prototype.addNewEventMetric=function(D){var t=_.RE.apply(1,arguments);this.metricMap.has(D)||this.metricMap.set(D,new HWQ(D,t))};
var Ii4=function(D,t){return D.disabledMetrics.has(t)?void 0:D.metricMap.get(t)};
$O.prototype.JSC$9791_incrementCounter=function(D){this.JSC$9791_incrementCounterBy(D,1,_.RE.apply(1,arguments))};
$O.prototype.JSC$9791_incrementCounterBy=function(D,t){var H=_.RE.apply(2,arguments),e=Ii4(this,D);e&&e instanceof trB&&(e.JSC$9730_incrementCounterBy(t,H),uwn(this))};
$O.prototype.record=function(D,t){var H=_.RE.apply(2,arguments),e=Ii4(this,D);e&&e instanceof HWQ&&(e.record(t,H),uwn(this))};
var WJn=function(D){for(var t=0;t<D.length;t++)D[t].clear()};_.x1=function(D,t,H){H=H===void 0?{}:H;t=Error.call(this,t);this.message=t.message;"stack"in t&&(this.stack=t.stack);this.code=D;this.metadata=H;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.P(_.x1,Error);_.x1.prototype.toString=function(){var D="RpcError("+(aUR(this.code)||String(this.code))+")";this.message&&(D+=": "+this.message);return D};_.Qt4=_.VA.JSON.parse;_.Ru=_.VA.JSON.stringify;_.AK=_.VA.JSON.parse;_.y$V=function(D){switch(D){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 BM9=function(D){switch(D){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var z5v,Dcf=function(){};
_.Zj(Dcf,_.wYk);Dcf.prototype.createInstance=function(){return new XMLHttpRequest};
z5v=new Dcf;_.uV=function(D){_.J2.call(this);this.headers=new Map;this.JSC$9800_xmlHttpFactory_=D||null;this.JSC$9800_active_=!1;this.JSC$9800_xhr_=null;this.JSC$9800_lastUri_="";this.JSC$9800_lastErrorCode_=0;this.JSC$9800_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9800_timeoutId_=null;this.responseType_="";this.JSC$9800_withCredentials_=!1};
_.Zj(_.uV,_.J2);var tTm=/^https?$/i,HN9=["POST","PUT"],etv=[],LL3=function(D,t,H,e,V,b,a){var w=new _.uV;etv.push(w);t&&w.listen("complete",t);w.listenOnce("ready",w.cleanupSend_);b&&(w.timeoutInterval_=Math.max(0,b));a&&(w.JSC$9800_withCredentials_=a);w.send(D,H,e,V)};
_.uV.prototype.cleanupSend_=function(){this.dispose();_.vk(etv,this)};
_.uV.prototype.send=function(D,t,H,e){if(this.JSC$9800_xhr_)throw Error("Aa`"+this.JSC$9800_lastUri_+"`"+D);t=t?t.toUpperCase():"GET";this.JSC$9800_lastUri_=D;this.JSC$9800_lastError_="";this.JSC$9800_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9800_active_=!0;this.JSC$9800_xhr_=this.createXhr();this.JSC$9800_xhr_.onreadystatechange=Y1((0,_.Mc)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9800_xhr_.open(t,String(D),!0),this.inOpen_=!1}catch(a){VTB(this,a);return}D=H||"";H=new Map(this.headers);
if(e)if(Object.getPrototypeOf(e)===Object.prototype)for(var V in e)H.set(V,e[V]);else if(typeof e.keys==="function"&&typeof e.get==="function"){V=_.F(e.keys());for(var b=V.next();!b.done;b=V.next())b=b.value,H.set(b,e.get(b))}else throw Error("Ba`"+String(e));e=Array.from(H.keys()).find(function(a){return"content-type"==a.toLowerCase()});
V=_.VA.FormData&&D instanceof _.VA.FormData;!_.l8(HN9,t)||e||V||H.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");t=_.F(H);for(e=t.next();!e.done;e=t.next())H=_.F(e.value),e=H.next().value,H=H.next().value,this.JSC$9800_xhr_.setRequestHeader(e,H);this.responseType_&&(this.JSC$9800_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9800_xhr_&&this.JSC$9800_xhr_.withCredentials!==this.JSC$9800_withCredentials_&&(this.JSC$9800_xhr_.withCredentials=this.JSC$9800_withCredentials_);
try{this.JSC$9800_timeoutId_&&(clearTimeout(this.JSC$9800_timeoutId_),this.JSC$9800_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9800_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9800_xhr_.send(D),this.inSend_=!1}catch(a){VTB(this,a)}};
_.uV.prototype.createXhr=function(){return this.JSC$9800_xmlHttpFactory_?this.JSC$9800_xmlHttpFactory_.createInstance():z5v.createInstance()};
_.uV.prototype.timeout_=function(){typeof NDD!="undefined"&&this.JSC$9800_xhr_&&(this.JSC$9800_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9800_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var VTB=function(D,t){D.JSC$9800_active_=!1;D.JSC$9800_xhr_&&(D.inAbort_=!0,D.JSC$9800_xhr_.abort(),D.inAbort_=!1);D.JSC$9800_lastError_=t;D.JSC$9800_lastErrorCode_=5;bNf(D);qHf(D)},bNf=function(D){D.errorDispatched_||(D.errorDispatched_=!0,D.dispatchEvent("complete"),D.dispatchEvent("error"))};
_.uV.prototype.abort=function(D){this.JSC$9800_xhr_&&this.JSC$9800_active_&&(this.JSC$9800_active_=!1,this.inAbort_=!0,this.JSC$9800_xhr_.abort(),this.inAbort_=!1,this.JSC$9800_lastErrorCode_=D||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),qHf(this))};
_.uV.prototype.disposeInternal=function(){this.JSC$9800_xhr_&&(this.JSC$9800_active_&&(this.JSC$9800_active_=!1,this.inAbort_=!0,this.JSC$9800_xhr_.abort(),this.inAbort_=!1),qHf(this,!0));_.uV.superClass_.disposeInternal.call(this)};
_.uV.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Fg4(this);else this.onReadyStateChangeEntryPoint_()};
_.uV.prototype.onReadyStateChangeEntryPoint_=function(){Fg4(this)};
var Fg4=function(D){if(D.JSC$9800_active_&&typeof NDD!="undefined")if(D.inSend_&&_.Wl(D)==4)setTimeout(D.onReadyStateChange_.bind(D),0);else if(D.dispatchEvent("readystatechange"),D.isComplete()){D.JSC$9800_active_=!1;try{if(D.isSuccess())D.dispatchEvent("complete"),D.dispatchEvent("success");else{D.JSC$9800_lastErrorCode_=6;try{var t=_.Wl(D)>2?D.JSC$9800_xhr_.statusText:""}catch(H){t=""}D.JSC$9800_lastError_=t+" ["+D.getStatus()+"]";bNf(D)}}finally{qHf(D)}}},qHf=function(D,t){if(D.JSC$9800_xhr_){D.JSC$9800_timeoutId_&&
(clearTimeout(D.JSC$9800_timeoutId_),D.JSC$9800_timeoutId_=null);
var H=D.JSC$9800_xhr_;D.JSC$9800_xhr_=null;t||D.dispatchEvent("ready");try{H.onreadystatechange=null}catch(e){}}};
_.uV.prototype.isActive=function(){return!!this.JSC$9800_xhr_};
_.uV.prototype.isComplete=function(){return _.Wl(this)==4};
_.uV.prototype.isSuccess=function(){var D=this.getStatus(),t;if(!(t=BM9(D))){if(D=D===0)D=hUw(String(this.JSC$9800_lastUri_)),D=!tTm.test(D);t=D}return t};
_.Wl=function(D){return D.JSC$9800_xhr_?D.JSC$9800_xhr_.readyState:0};
_.q=_.uV.prototype;_.q.getStatus=function(){try{return _.Wl(this)>2?this.JSC$9800_xhr_.status:-1}catch(D){return-1}};
_.q.getResponseText=function(){try{return this.JSC$9800_xhr_?this.JSC$9800_xhr_.responseText:""}catch(D){return""}};
_.q.getResponse=function(){try{if(!this.JSC$9800_xhr_)return null;if("response"in this.JSC$9800_xhr_)return this.JSC$9800_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9800_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9800_xhr_)return this.JSC$9800_xhr_.mozResponseArrayBuffer}return null}catch(D){return null}};
_.q.getAllResponseHeaders=function(){return this.JSC$9800_xhr_&&_.Wl(this)>=2?this.JSC$9800_xhr_.getAllResponseHeaders()||"":""};
_.q.getLastError=function(){return typeof this.JSC$9800_lastError_==="string"?this.JSC$9800_lastError_:String(this.JSC$9800_lastError_)};var GWV=function(){};
GWV.prototype.send=function(D,t,H){t=t===void 0?function(){}:t;
H=H===void 0?function(){}:H;
LL3(D.url,function(e){e=e.target;e.isSuccess()?t(e.getResponseText()):H(e.getStatus())},D.requestType,D.body,D.requestHeaders,D.timeoutMillis,D.withCredentials)};
GWV.prototype.getTransmissionType=function(){return 1};var ala=function(D,t){this.sRQ=D;this.event=t;this.startTime=iz()},cWA;
ala.prototype.done=function(){this.sRQ.i6(this.event,iz()-this.startTime)};
var Iu=function(){$1.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.P(Iu,$1);_.QK=function(D,t,H){var e=iz();t=t();D.i6(H,iz()-e);return t};
cWA=function(){Iu.apply(this,arguments)};
_.P(cWA,Iu);_.q=cWA.prototype;_.q.qNW=function(){};
_.q.ds=function(){};
_.q.i6=function(){};
_.q.logError=function(){};
_.q.vF=function(){};
_.q.jx6=function(){};
_.q.eeD=function(){};
_.q.uw2=function(){};
var w1n=function(D){Iu.call(this);var t=this;this.dZ=D;this.TEST_ONLY={nqY:function(){return t.dZ},
getExperimentIds:function(){return t.dZ.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void t.dZ.dispose()})};
_.P(w1n,Iu);_.q=w1n.prototype;_.q.update=function(D){this.dZ.dispose();this.dZ=D};
_.q.ds=function(D){this.dZ.ds(D)};
_.q.i6=function(D,t){this.dZ.i6(D,t)};
_.q.logError=function(D){this.dZ.logError(D)};
_.q.vF=function(){this.dZ.vF()};
_.q.jx6=function(D){this.dZ.jx6(D)};
_.q.eeD=function(D){this.dZ.eeD(D)};
_.q.uw2=function(D){this.dZ.uw2(D)};
_.q.qNW=function(D){this.dZ.qNW(D)};
var ZNf=function(D,t){_.mg.call(this);var H=this;this.callback=D;this.d8u=t;this.lsJ=-t;this.addOnDisposeCallback(function(){return void clearTimeout(H.timer)})};
_.P(ZNf,_.mg);var sK3=function(D){if(D.timer===void 0){var t=Math.max(0,D.lsJ+D.d8u-iz());D.timer=setTimeout(function(){try{D.callback()}finally{D.lsJ=iz(),D.timer=void 0}},t)}},ht3=function(D,t){Iu.call(this);
this.metrics=D;this.rH=t};
_.P(ht3,Iu);_.q=ht3.prototype;_.q.qNW=function(D){this.metrics.rfn.record(D,this.rH)};
_.q.ds=function(D){this.metrics.eventCount.increment(D,this.rH)};
_.q.i6=function(D,t){this.metrics.nfc.record(t,D,this.rH)};
_.q.logError=function(D){this.metrics.errorCount.increment(D,this.rH)};
_.q.jx6=function(D){this.metrics.bFA.increment(D,this.rH)};
_.q.eeD=function(D){this.metrics.iOx.increment(D,this.rH)};
_.q.uw2=function(D){this.metrics.vGC.increment(D,this.rH)};
var jAD=function(D,t){t=t===void 0?[]:t;var H={rH:D.rH||"_",rN5:D.rN5||[],z7U:D.z7U|0,destinationUrl:D.destinationUrl,y06:D.y06||function(){},
xmr:D.xmr||function(b,a){return Ti3(b,a,H.y06,H.destinationUrl)}},e=H.xmr("51",H.rN5.concat(t));
ht3.call(this,{rfn:new Wd3(e),errorCount:new BwB(e),eventCount:new QEm(e),nfc:new yAf(e),hMm:new I13(e),bFA:new zU6(e),iOx:new Ddn(e),vGC:new t26(e)},H.rH);var V=this;this.TEST_ONLY={getExperimentIds:function(){return V.options.rN5.concat(V.drR).sort(function(b,a){return b-a})}};
this.options=H;this.service=e;this.gbQ=!D.xmr;this.flushDebouncer=new ZNf(function(){return void V.service.snapshotAndFlush()},H.z7U);
this.addOnDisposeCallback(function(){V.flushDebouncer.dispose();V.gbQ&&V.service.dispose()});
(this.drR=t.slice()).sort(_.LDk)};
_.P(jAD,ht3);jAD.prototype.vF=function(){sK3(this.flushDebouncer)};var N0D=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(N0D,_.ww);_.k2D=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(_.k2D,_.ww);var Wm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D,0,Wm.messageId)};
_.P(Wm,_.ww);var GxQ=_.RUT(Wm);Wm.messageId="bfkj";var RhR=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(RhR,_.ww);var EO6=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(EO6,_.ww);var Kga=_.iM(EO6);_.TK=function(){var D=this;this.promise=new Promise(function(t,H){D.resolve=t;D.reject=H})};_.yK=function(D){_.mg.call(this);var t=this;this.hdo=Math.floor(Math.random()*200);this.pAr=new EO6;if("challenge"in D&&GxQ(D.challenge)){var H=_.La(D.challenge,4,void 0,P9);var e=_.La(D.challenge,5,void 0,P9);_.La(D.challenge,7,void 0,P9)&&(this.pAr=Kga(_.La(D.challenge,7,void 0,P9)))}else H=D.program,e=D.globalName;this.addOnDisposeCallback(function(){var U,S,L;return _.Z(function(J){if(J.nextAddress==1)return J.yield(t.u8I,2);U=J.yieldResult;S=U.dym;(L=S)==null||L();_.n2(J)})});
this.ka=$S$(D.z22||{},this.pAr);_.c1(this,this.ka);var V=new _.TK;this.u8I=V.promise;this.ka.ds("t");var b=this.ka.share(),a=new ala(b,"t"),w=function(U,S,L,J){if(!t.ka.isDisposed()){var g="k";S?g="h":L&&(g="u");g!=="k"?J!==0&&(t.ka.ds(g),t.ka.i6(g,U)):t.hdo<=0?(t.ka.ds(g),t.ka.i6(g,U),t.hdo=Math.floor(Math.random()*200)):t.hdo--}},h=function(U,S,L,J){Promise.resolve().then(function(){a.done();
b.vF();b.dispose();V.resolve({fau:U,dym:S,jBs:L,ek9:J})})};
if(!_.VA[e])throw this.ka.logError(25),Error("Ca");if(!_.VA[e].a)throw this.ka.logError(26),Error("Da");try{var K=_.VA[e].a;e=[];for(var N=[],k=uHR(this.pAr),T=0;T<k.length;T++)e.push(k[T]),N.push(1);var c=WIR(this.pAr);for(k=0;k<c.length;k++)e.push(c[k]),N.push(2);this.kNA=_.F(K(H,h,!0,D.g4c,w,[e,N],_.La(this.pAr,5),!1)).next().value;this.jk6=V.promise.then(function(){})}catch(U){throw this.ka.logError(28),U;
}};
_.P(_.yK,_.mg);_.yK.prototype.snapshot=function(D){if(this.isDisposed())throw Error("Ea");this.ka.ds("n");var t=this.ka.share();return this.u8I.then(function(H){var e=H.fau;return new Promise(function(V){var b=new ala(t,"n");e(function(a){b.done();t.qNW(a.length);t.vF();t.dispose();V(a)},[D.hU,
D.hxv,D.o2c,D.zT5])})})};
_.yK.prototype.hnt=function(D){this.u8I.then(function(t){var H;(H=t.jBs)==null||H(D)})};
_.yK.prototype.vmi=function(D,t){return this.u8I.then(function(H){var e;return(e=H.ek9)==null?void 0:e(D,t,!1)})};
_.yK.prototype.uh6=function(){return this.ka.share()};var NVf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(NVf,_.ww);var KHD=_.RUT(NVf);var kx6=function(){this.promises={};this.pcT=null},TV6=function(){kx6.instance||(kx6.instance=new kx6);
return kx6.instance},jKf=function(D,t){return ce4(D,_.sq(t,N0D,1,P9),_.sq(t,_.k2D,2,P9),_.La(t,3,void 0,P9))},ce4=function(D,t,H,e){if(!t&&!H)return Promise.resolve();
if(!e)return oxX(t,H);var V;(V=D.promises)[e]||(V[e]=new Promise(function(b,a){oxX(t,H).then(function(){D.pcT=e;b()},function(w){delete D.promises[e];
a(w)})}));
return D.promises[e]};var $ca=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P($ca,_.ww);var iNa=function(D,t){return _.Is(D,1,t)},ren=function(D,t){return _.Is(D,2,t)};var Bl=function(D){_.mg.call(this);var t=this;this.options=D;this.bu6=new _.TK;this.jk6=this.bu6.promise;this.oNc=new _.TK;this.ccJ=1;this.soI=new _.TK;this.fW2=[];this.xLr=D.xLr||function(){};
this.eq4=new w1n($S$(D.z22||{}));ONf(this,D.mS,D.nV9,D.wEY,D.y1c,Object.assign({},Uc3,D.i56||{}));this.addOnDisposeCallback(function(){return void oOa(t)})};
_.P(Bl,_.mg);Bl.prototype.snapshot=function(D){var t=this;return _.Z(function(H){switch(H.nextAddress){case 1:if(t.isDisposed())throw Error("Ea");if(t.jO||t.cbJ){H.jumpTo(2);break}return H.yield(t.oNc.promise,2);case 2:if(!t.jO){H.jumpTo(4);break}return H.yield(t.jO.snapshot(D),5);case 5:return H.return(H.yieldResult);case 4:throw t.cbJ;}})};
var Pzn=function(D){var t;return _.Z(function(H){if(D.isDisposed())throw Error("Ea");(t=D.za)!=null&&(t.endTimeMs=0,t.resolver(1));return H.yield(D.soI.promise,0)})},oOa=function(D){D.cbJ=Error("Ga");
D.oNc.resolve();IvX(D.bu6.promise);D.bu6.reject(Error("Ga"));D.eq4.dispose();Promise.all(D.fW2).then(function(){var H;return _.Z(function(e){(H=D.jO)==null||H.dispose();D.jO=void 0;_.n2(e)})});
D.fW2=[];var t;(t=D.za)!=null&&(t.endTimeMs=0,t.resolver(1));IvX(D.soI.promise);D.soI.reject(Error("Ga"))};
Bl.prototype.hnt=function(D){var t,H;(t=this.jO)==null||(H=t.hnt)==null||H.call(t,D)};
Bl.prototype.vmi=function(D,t){var H,e,V;return(V=(H=this.jO)==null?void 0:(e=H.vmi)==null?void 0:e.call(H,D,t))!=null?V:Promise.resolve()};
var nOn=function(D,t){var H=D.xLr;D.xLr=function(){H();t()}},Cz9=function(D,t){D.isDisposed()||(D.jO=t,D.eq4.update(t.uh6()),D.oNc.resolve(),D.bu6.resolve(void 0),D.xLr())};
Bl.prototype.handleError=function(D){if(!this.isDisposed()){this.cbJ=D;this.oNc.resolve();var t,H;(H=(t=this.options).mxc)==null||H.call(t,D)}};
var mco=function(D,t){t&&(Promise.all(D.fW2).then(function(){return void t.dispose()}),D.fW2=[])},zT=function(D,t){D.ccJ=t;
var H,e;(e=(H=D.options).h4A)==null||e.call(H,t)},MTa=function(D){D.isDisposed()||(D.soI.resolve(),D.soI=new _.TK)},ONf=function(D,t,H,e,V,b){e=e===void 0?TV6():e;
V=V===void 0?Promise.resolve(void 0):V;var a,w,h,K,N,k,T,c,U,S,L,J;_.Z(function(g){switch(g.nextAddress){case 1:return g.yield(0,3);case 3:w=null;if(!a){g.jumpTo(6);break}zT(D,7);_.$p(g,7);return g.yield(P1(a.snapshot({}),b.gsu,function(){return Promise.resolve("E:CTO")}),9);
case 9:w=g.yieldResult;_.yM(g,6);break;case 7:_.Pv(g),w="E:UCE";case 6:h=void 0,K=a?b.zL1:b.gf1,N=new Nc(K,b.cPR,b.pi1,b.aFR),k=1;case 10:if(!(k<=b.maxAttempts)){g.jumpTo(12);break}if(k===1){g.jumpTo(13);break}zT(D,0);D.za=new SHw(N.getValue(),b.wMu,b.dg3);return g.yield(D.za.promise,14);case 14:T=g.yieldResult,D.za=void 0,T===1?(k=1,N.reset()):ddn(N);case 13:_.$p(g,15);c=void 0;if(H){c=H;g.jumpTo(17);break}zT(D,5);U=e.pcT;return g.yield(P1(X1w(t,U,w),b.cxR,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:c=g.yieldResult;case 17:return zT(D,3),g.yield(P1(jKf(e,c),b.g3Q,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return zT(D,8),g.yield(V,20);case 20:return S=new _.yK({challenge:c,z22:D.options.z22,g4c:D.options.g4c}),g.yield(P1(S.jk6,b.q9T,function(){return Promise.reject(Error("Ja"))}),21);
case 21:h=S;g.jumpTo(12);break;case 15:L=_.Pv(g),D.handleError(L),MTa(D);case 11:k++;g.jumpTo(10);break;case 12:if(D.isDisposed()){g.jumpTo(5);break}h&&(H=void 0,mco(D,a),a=h,Cz9(D,h),MTa(D));zT(D,2);D.za=new SHw(b.hY1,b.wMu,b.dg3);return g.yield(D.za.promise,22);case 22:D.za=void 0;if(D.isDisposed()){g.jumpTo(5);break}g.jumpTo(3);break;case 5:(J=a)==null||J.dispose(),_.n2(g)}})};
Bl.prototype.uh6=function(){return this.eq4.share()};
var Uc3={hY1:432E5,wMu:3E5,dg3:10,gsu:1E4,cxR:3E4,g3Q:3E4,q9T:6E4,gf1:1E3,zL1:6E4,cPR:6E5,pi1:.25,aFR:2,maxAttempts:10},SHw=function(D,t,H){var e=this;this.endTimeMs=Date.now()+D;this.promise=new Promise(function(b){e.resolver=b});
var V=function(){var b=e.endTimeMs-Date.now();b<=H?e.resolver(0):setTimeout(V,Math.min(b,t))};
V()};var flV,Cyk=(flV=Math.imul)!=null?flV:function(D,t){return D*t|0},nN=[196,
200,224,18],DD=function(D,t,H){H=H===void 0?[]:H;this.maxItems=D;this.lR=t===void 0?0:t;this.u6=H},Lgm=function(D){var t=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!t)return new DD(D);var H=t.split(",");if(H.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new DD(D);t=H.slice(1);t.length===1&&t[0]===""&&(t=[]);H=Number(H[0]);return isNaN(H)||H<0||H>t.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new DD(D)):new DD(D,H,t)};
DD.prototype.serialize=function(){return String(this.lR)+","+this.u6.join()};
DD.prototype.insert=function(D,t){var H=void 0;if(this.u6[this.lR]!==D){var e=this.u6.indexOf(D);e!==-1?(this.u6.splice(e,1),e<this.lR&&this.lR--,this.u6.splice(this.lR,0,D)):(H=this.u6[this.lR],this.u6[this.lR]=D)}this.lR=(this.lR+1)%this.maxItems;D=Py$("iU5q-!O9@$",this.serialize());H&&D&&t(H);return D};
var AeQ=function(D,t){this.dZ4=t;try{var H=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(e){H=!1}H&&(this.index=Lgm(D))},gOB=function(D,t,H,e,V){var b=D.index?_.QK(D.dZ4,function(){return XYX(D.index,Mc$(t),H,e,V)},"W"):"u";
D.dZ4.uw2(b)},Jef=function(D,t,H){var e=_.F(D.index?_.QK(D.dZ4,function(){return fUV(Mc$(t),H)},"R"):["u"]),V=e.next().value;
e=e.next().value;D.dZ4.eeD(V);return e};var YHw={toString:function(D){var t=[],H=0;D-=-2147483648;t[H++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(D%52);for(D=Math.floor(D/52);D>0;)t[H++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(D%62),D=Math.floor(D/62);return t.join("")}};var p1w=function(D){D=llo(D);for(var t=2654435769,H=2654435769,e=314159265,V=D.length,b=V,a=0,w=function(){t-=H;t-=e;t^=e>>>13;H-=e;H-=t;H^=t<<8;e-=t;e-=H;e^=H>>>13;t-=H;t-=e;t^=e>>>12;H-=e;H-=t;H^=t<<16;e-=t;e-=H;e^=H>>>5;t-=H;t-=e;t^=e>>>3;H-=e;H-=t;H^=t<<10;e-=t;e-=H;e^=H>>>15};b>=12;b-=12,a+=12)t+=vOv(D,a),H+=vOv(D,a+4),e+=vOv(D,a+8),w();
e+=V;switch(b){case 11:e+=D[a+10]<<24;case 10:e+=D[a+9]<<16;case 9:e+=D[a+8]<<8;case 8:H+=D[a+7]<<24;case 7:H+=D[a+6]<<16;case 6:H+=D[a+5]<<8;case 5:H+=D[a+4];case 4:t+=D[a+3]<<24;case 3:t+=D[a+2]<<16;case 2:t+=D[a+1]<<8;case 1:t+=D[a]}w();return YHw.toString(e)},llo=function(D){for(var t=[],H=0;H<D.length;H++)t.push(D.charCodeAt(H));
return t},vOv=function(D,t){return D[t]+(D[t+1]<<8)+(D[t+2]<<16)+(D[t+3]<<24)};var tR=function(D){_.mg.call(this);this.m1=D;this.fyU=new _.TK};
_.P(tR,_.mg);var dcQ=function(D,t){var H=setTimeout(function(){D.fyU.resolve()},t);
D.addOnDisposeCallback(function(){return void clearTimeout(H)})};
tR.prototype.grD=function(D,t){var H=this.mI(D);t==null||t(H);return _.QK(this.m1,function(){return _.XF(H,2)},this.kHU)};
var xc4=function(D,t,H,e){return _.QK(D.m1,function(){return H?D.grD(t,e):D.mI(t,e)},D.cit)},Rt6=function(D,t,H,e){tR.call(this,D);
this.nHc=t;this.uNR=H;this.cit="m";this.kHU="x";this.eM9=0;dcQ(this,e)};
_.P(Rt6,tR);Rt6.prototype.mI=function(D,t){var H=this;this.m1.ds(this.cit);++this.eM9>=this.uNR&&this.fyU.resolve();var e=D();D=_.QK(this.m1,function(){return H.nHc(e)},"C");
if(D===void 0)throw new cl(17,"YNJ:Undefined");if(!(D instanceof Uint8Array))throw new cl(18,"ODM:Invalid");t==null||t(D);return D};
var usn=function(D,t,H){tR.call(this,D);this.awu=t;this.cit="f";this.kHU="z";dcQ(this,H)};
_.P(usn,tR);usn.prototype.mI=function(){return this.awu};
var Wgv=function(D,t,H){tR.call(this,D);this.wAI=t;this.cit="w";this.kHU="z";dcQ(this,H)};
_.P(Wgv,tR);Wgv.prototype.mI=function(){var D=this;return _.QK(this.m1,function(){return _.zV(D.wAI)},"d")};
Wgv.prototype.grD=function(){return this.wAI};
var IlV=function(D,t){tR.call(this,D);this.error=t;this.cit="e";this.kHU="y"};
_.P(IlV,tR);var QKa=function(D,t){var H=(t(D.error.message)+":"+t(D.error.stack)).substring(0,2048);t=H.length+1;H=LhK(H);var e=new Uint8Array(4+H.length);e.set([42,t&127|128,t>>7,D.error.code]);e.set(H,4);return e};
IlV.prototype.mI=function(){if(this.zLJ)return this.zLJ;this.zLJ=QKa(this,function(D){return"_"+p1w(D)});
return QKa(this,function(D){return D})};
var ye3=function(D,t,H){tR.call(this,D);this.rq1=t;this.clientState=H;this.cit="S";this.kHU="q"};
_.P(ye3,tR);ye3.prototype.mI=function(){var D=Math.floor(Date.now()/1E3),t=[Math.random()*255,Math.random()*255],H=t.concat([this.rq1&255,this.clientState],[D>>24&255,D>>16&255,D>>8&255,D&255]);D=new Uint8Array(2+H.length);D[0]=34;D[1]=H.length;D.set(H,2);H=D.subarray(2);for(var e=t=t.length;e<H.length;++e)H[e]^=H[e%t];this.m1.jx6(this.clientState);return D};var BVf={dHc:3E4,f7n:2E4},Hy=function(D){_.mg.call(this);var t=this;this.oBU=new _.TK;this.jK4=0;this.jH=void 0;this.state=2;this.vm=D.vm;this.mS=D.mS;this.i56=Object.assign({},BVf,D.i56||{});this.uy=D.vm.uh6();var H;this.onError=(H=D.onError)!=null?H:function(){};
this.e52=D.e52||!1;if(zta(D)){var e=this.vm;this.zcd=function(){return Pzn(e).catch(function(a){a=t.reportError(new cl(t.zh?20:32,"TRG:Disposed",a));t.jH=a;var w;(w=t.zh)==null||w.dispose();t.zh=void 0;t.oBU.reject(a)})};
nOn(e,function(){return void Dp4(t)});
e.ccJ===2&&Dp4(this)}else this.zcd=D.rvc,Dp4(this);var V=this.uy.share();V.ds("o");var b=new ala(V,"o");this.oBU.promise.then(function(){b.done();V.vF();V.dispose()},function(){return void V.dispose()});
this.addOnDisposeCallback(function(){t.zh?(t.zh.dispose(),t.zh=void 0):t.jH?t.uy.vF():(t.jH=t.reportError(new cl(32,"TNP:Disposed")),t.uy.vF(),t.oBU.reject(t.jH))});
_.c1(this,this.uy)};
_.P(Hy,_.mg);Hy.prototype.u7J=function(){return this.oBU.promise};
var tjf=function(D,t){if(!(t instanceof cl))if(t instanceof _.x1){var H=Error(t.toString());H.stack=t.stack;t=new cl(11,"EBH:Error",H)}else t=new cl(12,"BSO:Unknown",t);return D.reportError(t)},Dp4=function(D){var t,H,e,V,b,a,w,h,K,N,k,T,c,U,S;
return _.Z(function(L){switch(L.nextAddress){case 1:t=void 0;D.jK4++;H=new _.TK;D.vm instanceof Bl&&D.vm.fW2.push(H.promise);if(!D.e52){L.jumpTo(2);break}e=new _.TK;setTimeout(function(){return void e.resolve()});
return L.yield(e.promise,2);case 2:return V=D.uy.share(),_.$p(L,4,5),D.state=5,b={},a=[],L.yield(P1(D.vm.snapshot({hU:b,o2c:a}),D.i56.f7n,function(){return Promise.reject(new cl(15,"MDA:Timeout"))}),7);
case 7:w=L.yieldResult;if(D.isDisposed())throw new cl(D.zh?20:32,"MDA:Disposed");h=a[0];D.state=6;return L.yield(P1(HRo(D.mS,w),D.i56.dHc,function(){return Promise.reject(new cl(10,"BWB:Timeout"))}),8);
case 8:K=L.yieldResult;if(D.isDisposed())throw new cl(D.zh?20:32,"BWB:Disposed");D.state=7;t=_.QK(V,function(){var g=eeB(D,K,H,h);g.fyU.promise.then(function(){return void D.zcd()});
return g},"i");
case 5:_.rN(L);V.dispose();_.ox(L,6);break;case 4:N=_.Pv(L);(k=t)==null||k.dispose();if(!D.jH){T=tjf(D,N);H.resolve();var J;if(J=D.vm instanceof Bl&&D.jK4<2)a:if(N instanceof cl)J=N.code!==32&&N.code!==20&&N.code!==10;else{if(N instanceof _.x1)switch(N.code){case 2:case 13:case 14:case 4:break;default:J=!1;break a}J=!0}if(J)return c=(1+Math.random()*.25)*(D.zh?6E4:1E3),U=setTimeout(function(){return void D.zcd()},c),D.addOnDisposeCallback(function(){return void clearTimeout(U)}),L.return();
D.jH=T}V.logError(D.zh?13:14);D.oBU.reject(D.jH);return L.return();case 6:D.state=8,D.jK4=0,(S=D.zh)==null||S.dispose(),D.zh=t,D.oBU.resolve(),_.n2(L)}})},eeB=function(D,t,H,e){var V=JOD(t,2)*1E3;
if(V<=0)throw new cl(31,"TTM:Invalid");if(_.La(t,4))return new Wgv(D.uy,_.La(t,4),V);if(!JOD(t,3))return new usn(D.uy,$ZR(_.ok(t,1)),V);if(!e)throw new cl(4,"PMD:Undefined");e=e($ZR(_.ok(t,1)));if(!(e instanceof Function))throw new cl(16,"APF:Failed");D.ae7=Math.floor((Date.now()+V)/1E3);D=new Rt6(D.uy,e,JOD(t,3),V);D.addOnDisposeCallback(function(){return void H.resolve()});
return D};
Hy.prototype.mI=function(D){return VjQ(this,Object.assign({},D),!1)};
Hy.prototype.grD=function(D){return VjQ(this,Object.assign({},D),!0)};
Hy.prototype.rH4=function(D){if(D>150)return!1;try{return this.cache=new AeQ(D,this.uy),!0}catch(t){return this.reportError(new cl(22,"GBJ:init",t)),!1}};
Hy.prototype.reportError=function(D){this.uy.logError(D.code);this.onError(D);return D};
var bRm=function(D,t){t=t instanceof cl?t:new cl(5,"TVD:error",t);return D.reportError(t)},VjQ=function(D,t,H){try{if(D.isDisposed())throw new cl(21,"BNT:disposed");
if(!D.zh&&D.jH)throw D.jH;var e,V;return(V=(e=qPw(D,t,H))!=null?e:FGa(D,t,H))!=null?V:a_V(D,t,H)}catch(b){if(!t.uJT)throw bRm(D,b);return wIf(D,H,b)}},qPw=function(D,t,H){var e;
return(e=D.zh)==null?void 0:xc4(e,function(){return ZRa(D,t)},H,function(V){var b;
if(D.zh instanceof Rt6&&((b=t.qe)==null?0:b.yr7))try{var a;(a=D.cache)==null||gOB(a,ZRa(D,t),V,t.qe.x2v,D.ae7-120)}catch(w){D.reportError(new cl(24,"ELX:write",w))}})},FGa=function(D,t,H){var e;
if((e=t.qe)!=null&&e.xj5)try{var V,b=(V=D.cache)==null?void 0:Jef(V,ZRa(D,t),t.qe.x2v);return b?H?_.QK(D.uy,function(){return _.XF(b,2)},"a"):b:void 0}catch(a){D.reportError(new cl(23,"RXO:read",a))}},a_V=function(D,t,H){var e={stack:[],
error:void 0,hasError:!1};try{if(!t.eiJ)throw new cl(29,"SDF:notready");return xc4(idK(e,new ye3(D.uy,0,D.state)),function(){return ZRa(D,t)},H)}catch(V){e.error=V,e.hasError=!0}finally{rw$(e)}},wIf=function(D,t,H){var e={stack:[],
error:void 0,hasError:!1};try{var V=bRm(D,H);return xc4(idK(e,new IlV(D.uy,V)),function(){return[]},t)}catch(b){e.error=b,e.hasError=!0}finally{rw$(e)}},ZRa=function(D,t){return t.pn5?t.pn5:t.hU?_.QK(D.uy,function(){return t.pn5=LhK(t.hU)},"c"):[]},zta=function(D){return CQ(function(t){if(!aZ(t))return!1;
for(var H=_.F(Object.entries(D)),e=H.next();!e.done;e=H.next()){var V=_.F(e.value);e=V.next().value;V=V.next().value;if(!(e in t)){if(V.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!V(t[e]))return!1}return!0})}({vm:function(D){return CQ(function(t){return t instanceof D})}(Bl)},"");var sZa=function(){var D=_.EL();this.JSC$9918_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",he("cookie_enabled"),he("cookie_3p_enabled"),_.EH("browser"))};
sZa.prototype.increment=function(D,t,H){this.JSC$9918_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",D,t,H)};
var V_3=function(){var D=_.EL();this.JSC$9942_streamzService=D;D.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Gx("tick"),he("from_st_cookie"))};
V_3.prototype.increment=function(D,t){this.JSC$9942_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",D,t)};
var heB=function(){var D=_.EL();this.JSC$9948_streamzService=D;D.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.EH("status"))};
heB.prototype.increment=function(D){this.JSC$9948_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",D)};
var Gp4=function(){var D=_.EL();this.JSC$9951_streamzService=D;D.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.EH("stage"),he("is_using_ytd_player"),he("has_expandable_tiles"))};
Gp4.prototype.increment=function(D,t,H){this.JSC$9951_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",D,t,H)};
var EMn=function(){var D=_.EL();this.JSC$9954_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/response_signature",_.EH("check_status"))};
EMn.prototype.increment=function(D){this.JSC$9954_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/response_signature",D)};
var KGQ=function(){var D=_.EL();this.JSC$9957_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.EH("sig"),Gx("de"))};
KGQ.prototype.increment=function(D,t){this.JSC$9957_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/e_sig_log",D,t)};
var N_6=function(){var D=_.EL();this.JSC$9960_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.EH("sig"),Gx("de"))};
N_6.prototype.increment=function(D,t){this.JSC$9960_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/e_sig_en",D,t)};
_.kpw=function(){var D=_.EL();this.JSC$9963_streamzService=D;D.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.EH("action"))};
_.kpw.prototype.increment=function(D){this.JSC$9963_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/enforcement_intent",D)};var ee=window;var T_B=(new Date).getTime();_.J$.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.J$.createSet("action","cite","data","formaction","href","manifest","poster","src");var cLw=function(D){this.servicePromise_=D;D.then((0,_.Mc)(function(){},this),function(){},this)},jZV=function(D,t,H){D.servicePromise_.then(function(e){var V=e[t];
if(!V)throw Error("Ka`"+t);return V.apply(e,H)})},rLm=function(D,t,H){for(var e=Array(arguments.length-2),V=2;V<arguments.length;V++)e[V-2]=arguments[V];
V=$pa(D,t).then(function(b){return b.apply(null,e)},function(b){b=Error("La`"+t+"`"+D,{cause:b});
delete iR9[t];return _.Aj(b)});
return new cLw(V)},iR9={},$pa=function(D,t){var H=iR9[t];
if(H)return H;H=(H=_.RD(t))?_.Tf(H):(new _.c$(function(e,V){var b=(new YB(document)).createElement("SCRIPT");b.async=!0;_.qd(b,_.MN(T4v(D)));b.onload=b.onreadystatechange=function(){b.readyState&&b.readyState!="loaded"&&b.readyState!="complete"||e()};
b.onerror=function(a){V(Error("Ma`"+t+"`"+D,{cause:a}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(b)})).then(function(){var e=_.RD(t);
if(!e)throw Error("Na`"+t+"`"+D);return e});
return iR9[t]=H};var ORf={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},oM6=function(){var D=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=AWX(function(){return _.Z(function(t){if(t.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?t.return(Promise.resolve()):t.yield(Up9(D),2);D.rsaForList.length>
0&&document.addEventListener("click",D.requestAccessForHelpPanel);_.n2(t)})});
this.requestAccessForHelpPanel=function(){if(!(D.rsaForPromises.length>0)){for(var t=_.F(D.rsaForList),H=t.next();!H.done;H=t.next()){H=H.value;try{D.rsaForPromises.push(document.requestStorageAccessFor(H))}catch(e){}}Promise.all(D.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){D.reset()})}}};
oM6.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var Up9=function(D){var t,H,e,V;return _.Z(function(b){switch(b.nextAddress){case 1:t=_.F(Object.values(ORf)),H=t.next();case 2:if(H.done){b.jumpTo(0);break}e=H.value;_.$p(b,5);return b.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:e}),7);case 7:V=b.yieldResult;V.state!=="granted"&&D.rsaForList.push(e);_.yM(b,3);break;case 5:_.Pv(b);b.jumpTo(0);break;case 3:H=t.next(),b.jumpTo(2)}})};(new oM6).initialize();var PDw=function(D){this.JSC$9977_loader_=D};
PDw.prototype.startHelp=function(D){jZV(this.JSC$9977_loader_,"startHelp",arguments)};
PDw.prototype.JSC$9979_loadChatSupport=function(D){jZV(this.JSC$9977_loader_,"loadChatSupport",arguments)};
var CDo=function(D,t){t=t||{};D=rLm(nMm,"help.service.Lazy.create",D,{apiKey:t.apiKey||t.apiKey,asxUiUri:t.asxUiUri||t.asxUiUri,environment:t.environment||t.environment,flow:t.flow||t.flow,frdProductData:t.frdProductData||t.frdProductData,frdProductDataSerializedJspb:t.frdProductDataSerializedJspb||t.frdProductDataSerializedJspb,helpCenterPath:t.helpCenterPath||t.helpCenterPath,locale:t.locale||t.locale||"en-US".replace(/-/g,"_"),nonce:t.nonce||t.nonce,productData:t.productData||t.productData,receiverUri:t.receiverUri||
t.receiverUri,renderApiUri:t.renderApiUri||t.renderApiUri,theme:t.theme||t.theme,window:t.window||t.window});return new PDw(D)},nMm=new v$(vi6,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var mpV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(mpV,_.ww);var Mj9=_.iM(mpV);var SPn=[0,_.Vs,Bg,oFk];_.XI9=new function(D,t,H,e){this.configType=D;this.flagName=H;this.defaultValue=e;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 LGf=function(){this.retriever=_.qS().resolve(f_a)};_.ew={get payments(){return window.payments}};JWu(Node);JWu(Element);var ALB=JWu(HTMLElement);JWu(SVGElement);var gMa,JLm,qo,YPn;gMa=function(D){return typeof D.className=="string"?D.className:D.getAttribute&&D.getAttribute("class")||""};
JLm=function(D){return D.classList?D.classList:gMa(D).match(/\S+/g)||[]};
_.Vr=function(D,t){typeof D.className=="string"?D.className=t:D.setAttribute&&D.setAttribute("class",t)};
_.bu=function(D,t){return D.classList?D.classList.contains(t):_.l8(JLm(D),t)};
_.qX=function(D,t){if(D.classList)D.classList.add(t);else if(!_.bu(D,t)){var H=gMa(D);_.Vr(D,H+(H.length>0?" "+t:t))}};
qo=function(D,t){if(D.classList)Array.prototype.forEach.call(t,function(V){_.qX(D,V)});
else{var H={};Array.prototype.forEach.call(JLm(D),function(V){H[V]=!0});
Array.prototype.forEach.call(t,function(V){H[V]=!0});
t="";for(var e in H)t+=t.length>0?" "+e:e;_.Vr(D,t)}};
_.VL=function(D,t){D.classList?D.classList.remove(t):_.bu(D,t)&&_.Vr(D,Array.prototype.filter.call(JLm(D),function(H){return H!=t}).join(" "))};
YPn=function(D,t){D.classList?Array.prototype.forEach.call(t,function(H){_.VL(D,H)}):_.Vr(D,Array.prototype.filter.call(JLm(D),function(H){return!_.l8(t,H)}).join(" "))};var l_9=function(D){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=D.document},dpV=function(D,t){vMn(D);
var H=document.createElement("div"),e;(e=t.parentNode)==null||e.insertBefore(H,t);H.tabIndex=0;H.id="fc-focus-trap-pre-div";H=document.createElement("div");var V;(V=t.parentNode)==null||V.insertBefore(H,t.nextSibling);H.tabIndex=0;H.id="fc-focus-trap-post-div";var b=pIv(D,t),a=pIv(D,t,!0);b&&a&&(D.focusChangeHandler=function(){var w=D.document.activeElement;if(w)if(_.RK(t,w))D.previouslyFocusedElement=w;else if(w===D.document.activeElement)switch(D.previouslyFocusedElement){case b:a.focus();D.previouslyFocusedElement=
a;break;default:b.focus(),D.previouslyFocusedElement=b}},D.document.addEventListener("focus",D.focusChangeHandler,!0),D.document.addEventListener("focusin",D.focusChangeHandler))},vMn=function(D){D.focusChangeHandler&&(document.removeEventListener("focus",D.focusChangeHandler,!0),document.removeEventListener("focusin",D.focusChangeHandler),D.focusChangeHandler=null);
var t;(t=document.getElementById("fc-focus-trap-pre-div"))==null||t.remove();var H;(H=document.getElementById("fc-focus-trap-post-div"))==null||H.remove()},xpm=function(D,t,H,e,V){H=H===void 0?!0:H;
var b;V=(b=V===void 0?null:V)!=null?b:pIv(D,t,e===void 0?!1:e);V!==null&&(V.focus(),H&&dpV(D,t))};
l_9.prototype.disableButton=function(D,t){t=t===void 0?null:t;D.disabled=!0;t&&_.qX(D,t)};
var pIv=function(D,t,H){H=H===void 0?!1:H;if(q7V(t)&&!H)return t;var e=H?[].slice.call(t.children,0).reverse():t.children;e=_.F(e);for(var V=e.next();!V.done;V=e.next())if(V=V.value,ALB(V)&&(V=pIv(D,V,H)))return V;return q7V(t)&&H?t:null};var Re6=function(D){this.originalBodyOverflow="";this.JSC$10004_domHelper=mJ(D)};
Re6.prototype.enableScrolling=function(){this.JSC$10004_domHelper.JSC$9330_document_.body.style.overflow=this.originalBodyOverflow};_.Zj(_.ST,_.mg);_.q=_.ST.prototype;_.q.JSC$10007_id_=0;_.q.disposeInternal=function(){_.ST.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10005_listener_;delete this.handler_};
_.q.start=function(D){this.stop();this.JSC$10007_id_=d8(this.callback_,D!==void 0?D:this.JSC$10005_interval_)};
_.q.stop=function(){this.isActive()&&_.VA.clearTimeout(this.JSC$10007_id_);this.JSC$10007_id_=0};
_.q.fire=function(){this.stop();this.JSC$10007_doAction_()};
_.q.isActive=function(){return this.JSC$10007_id_!=0};
_.q.JSC$10007_doAction_=function(){this.JSC$10007_id_=0;this.JSC$10005_listener_&&this.JSC$10005_listener_.call(this.handler_)};_.GA=function(D){_.mg.call(this);this.handler_=D;this.JSC$10008_keys_={}};
_.Zj(_.GA,_.mg);var u29=[];_.GA.prototype.listen=function(D,t,H,e){Array.isArray(t)||(t&&(u29[0]=t.toString()),t=u29);for(var V=0;V<t.length;V++){var b=_.fz(D,t[V],H||this.handleEvent,e||!1,this.handler_||this);if(!b)break;this.JSC$10008_keys_[b.key]=b}return this};
_.GA.prototype.listenOnce=function(D,t,H,e){return WG3(this,D,t,H,e)};
var WG3=function(D,t,H,e,V,b){if(Array.isArray(H))for(var a=0;a<H.length;a++)WG3(D,t,H[a],e,V,b);else{t=mV(t,H,e||D.handleEvent,V,b||D.handler_||D);if(!t)return D;D.JSC$10008_keys_[t.key]=t}return D};
_.GA.prototype.unlisten=function(D,t,H,e,V){if(Array.isArray(t))for(var b=0;b<t.length;b++)this.unlisten(D,t[b],H,e,V);else if(D=ktf(D,t,H||this.handleEvent,_.Wk(e)?!!e.capture:!!e,V||this.handler_||this))MT(D),delete this.JSC$10008_keys_[D.key];return this};
_.GA.prototype.removeAll=function(){_.J$.forEach(this.JSC$10008_keys_,function(D,t){this.JSC$10008_keys_.hasOwnProperty(t)&&MT(D)},this);
this.JSC$10008_keys_={}};
_.GA.prototype.disposeInternal=function(){_.GA.superClass_.disposeInternal.call(this);this.removeAll()};
_.GA.prototype.handleEvent=function(){throw Error("Oa");};var FL=function(){_.mg.call(this);this.services_={}};
_.Zj(FL,_.mg);FL.prototype.connect=function(D){D&&D()};
FL.prototype.isConnected=function(){return!0};
FL.prototype.registerService=function(D,t,H){this.services_[D]={callback:t,objectPayload:!!H}};
FL.prototype.getService=function(D,t){var H=this.services_[D];return H?H:this.defaultService_?{callback:_.o4(this.defaultService_,D),objectPayload:_.Wk(t)}:null};
var I_m=function(D,t){if(t&&typeof D==="string")try{return JSON.parse(D)}catch(H){return null}else if(!t&&typeof D!=="string")return(0,_.Ru)(D);return D};
FL.prototype.disposeInternal=function(){FL.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 aI=function(D,t){this.sequence_=[];this.onCancelFunction_=D;this.defaultScope_=t||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
aI.prototype.cancel=function(D){if(this.fired_)this.result_ instanceof aI&&this.result_.cancel();else{if(this.parent_){var t=this.parent_;delete this.parent_;D?t.cancel(D):(t.branches_--,t.branches_<=0&&t.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new wh(this))}};
aI.prototype.continue_=function(D,t){this.blocked_=!1;QZ6(this,D,t)};
var QZ6=function(D,t,H){D.fired_=!0;D.result_=H;D.hadError_=!t;yLf(D)},zea=function(D){if(D.fired_){if(!D.silentlyCanceled_)throw new B_B(D);
D.silentlyCanceled_=!1}};
aI.prototype.callback=function(D){zea(this);QZ6(this,!0,D)};
aI.prototype.errback=function(D){zea(this);QZ6(this,!1,D)};
var D29=function(D,t,H){ZD(D,t,null,H)};
aI.prototype.finally=function(D){var t=this;return tGQ(new Promise(function(H,e){ZD(t,function(V){D();H(V)},function(V){D();
e(V)})}))};
var ZD=function(D,t,H,e){var V=D.fired_;V||(t===H?t=H=Y1(t):(t=Y1(t),H=Y1(H)));D.sequence_.push([t,H,e]);V&&yLf(D)};
aI.prototype.then=function(D,t,H){var e,V,b=new _.c$(function(a,w){V=a;e=w});
ZD(this,V,function(a){a instanceof wh?b.cancel():e(a);return HYa},this);
return b.then(D,t,H)};
U3Q(aI);var ehw=function(D,t){t instanceof aI?D29(D,(0,_.Mc)(t.branch,t)):D29(D,function(){return t})};
aI.prototype.branch=function(D){var t=new aI;ZD(this,t.callback,t.errback,t);D&&(t.parent_=this,this.branches_++);return t};
aI.prototype.isError=function(D){return D instanceof Error};
var VG6=function(D){return zr(D.sequence_,function(t){return typeof t[1]==="function"})},HYa={},yLf=function(D){if(D.unhandledErrorId_&&D.fired_&&VG6(D)){var t=D.unhandledErrorId_,H=bYo[t];
H&&(_.VA.clearTimeout(H.JSC$10025_id_),delete bYo[t]);D.unhandledErrorId_=0}D.parent_&&(D.parent_.branches_--,delete D.parent_);t=D.result_;for(var e=H=!1;D.sequence_.length&&!D.blocked_;){var V=D.sequence_.shift(),b=V[0],a=V[1];V=V[2];if(b=D.hadError_?a:b)try{var w=b.call(V||D.defaultScope_,t);w===HYa&&(w=void 0);w!==void 0&&(D.hadError_=D.hadError_&&(w==t||D.isError(w)),D.result_=t=w);if(ozn(t)||typeof _.VA.Promise==="function"&&t instanceof _.VA.Promise)e=!0,D.blocked_=!0}catch(h){t=h,D.hadError_=
!0,VG6(D)||(H=!0)}}D.result_=t;e&&(w=(0,_.Mc)(D.continue_,D,!0),e=(0,_.Mc)(D.continue_,D,!1),t instanceof aI?(ZD(t,w,e),t.blocking_=!0):t.then(w,e));H&&(t=new q4o(t),bYo[t.JSC$10025_id_]=t,D.unhandledErrorId_=t.JSC$10025_id_)},tGQ=function(D){var t=new aI;
D.then(function(H){t.callback(H)},function(H){t.errback(H)});
return t},B_B=function(){_.Hk.call(this)};
_.Zj(B_B,_.Hk);B_B.prototype.message="Deferred has already fired";B_B.prototype.name="AlreadyCalledError";var wh=function(){_.Hk.call(this)};
_.Zj(wh,_.Hk);wh.prototype.message="Deferred was canceled";wh.prototype.name="CanceledError";var q4o=function(D){this.JSC$10025_id_=_.VA.setTimeout((0,_.Mc)(this.throwError,this),0);this.JSC$10025_error_=D};
q4o.prototype.throwError=function(){delete bYo[this.JSC$10025_id_];throw this.JSC$10025_error_;};
var bYo={};var FIf={1:"NativeMessagingTransport"},av9=["pu","lru","pru","lpu","ppu"],ZYB=function(){for(var D=10,t=wnv,H=t.length,e="";D-- >0;)e+=t.charAt(Math.floor(Math.random()*H));return e},wnv="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var sr=function(D){_.mg.call(this);this.JSC$10028_domHelper_=D||mJ()};
_.Zj(sr,_.mg);sr.prototype.transportType=0;sr.prototype.getWindow=function(){return this.JSC$10028_domHelper_.getWindow()};
sr.prototype.getName=function(){return FIf[String(this.transportType)]||""};var hR=function(D,t,H,e,V){sr.call(this,H);this.JSC$10031_channel_=D;this.protocolVersion_=V||2;this.peerHostname_=t||"*";this.JSC$10031_eventHandler_=new _.GA(this);this.maybeAttemptToConnectTimer_=new _.hK(100,this.getWindow());this.oneSidedHandshake_=!!e;this.setupAckReceived_=new aI;this.setupAckSent_=new aI;this.JSC$10031_connected_=new aI;this.endpointId_=ZYB();this.peerEndpointId_=null;this.oneSidedHandshake_?sD3(this.JSC$10031_channel_)==1?ehw(this.JSC$10031_connected_,this.setupAckReceived_):
ehw(this.JSC$10031_connected_,this.setupAckSent_):(ehw(this.JSC$10031_connected_,this.setupAckReceived_),this.protocolVersion_==2&&ehw(this.JSC$10031_connected_,this.setupAckSent_));D29(this.JSC$10031_connected_,this.notifyConnected_,this);this.JSC$10031_connected_.callback(!0);this.JSC$10031_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Zj(hR,sr);hR.prototype.peerProtocolVersion_=null;hR.prototype.initialized_=!1;hR.prototype.transportType=1;var hh4={};hR.prototype.sendTimerId_=0;
var KIf=function(D){var t=D.event_.data;if(typeof t!=="string")return!1;var H=t.indexOf("|"),e=t.indexOf(":");if(H==-1||e==-1)return!1;var V=t.substring(0,H);H=t.substring(H+1,e);t=t.substring(e+1);if(e=Ga[V])return e.xpcDeliver(H,t,D.event_.origin),!0;e=G56(t)[0];for(var b in Ga){var a=Ga[b];if(sD3(a)==1&&!a.isConnected()&&H=="tp"&&(e=="SETUP"||e=="SETUP_NTPV2")&&ECa(a,D.event_.origin))return delete Ga[a.name],a.name=V,Ga[V]=a,a.xpcDeliver(H,t),!0}return!1},N14=function(D){D.protocolVersion_!=2||
D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=2||D.send("tp","SETUP_NTPV2,"+D.endpointId_);
D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=1||D.send("tp","SETUP")},k59=function(D,t){if(D.protocolVersion_!=2||D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=2||t!=2){if(D.peerProtocolVersion_!=null&&D.peerProtocolVersion_!=1||t!=1)return;
D.send("tp","SETUP_ACK")}else D.send("tp","SETUP_ACK_NTPV2");D.setupAckSent_.fired_||D.setupAckSent_.callback(!0)},T19=function(D,t){t>D.peerProtocolVersion_&&(D.peerProtocolVersion_=t);
D.peerProtocolVersion_==1&&(D.setupAckSent_.fired_||D.oneSidedHandshake_||D.setupAckSent_.callback(!0),D.peerEndpointId_=null)};
_.q=hR.prototype;_.q.connect=function(){var D=this.getWindow(),t=_.I$(D),H=hh4[t];typeof H!=="number"&&(H=0);H==0&&_.fz(D.postMessage?D:D.document,"message",KIf,!1,hR);hh4[t]=H+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.q.maybeAttemptToConnect_=function(){var D=sD3(this.JSC$10031_channel_)==0;this.oneSidedHandshake_&&D||this.JSC$10031_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),N14(this))};
_.q.send=function(D,t){var H=this.JSC$10031_channel_.peerWindowObject_;H&&(this.send=function(e,V){var b=this,a=this.JSC$10031_channel_.name;this.sendTimerId_=d8(function(){b.sendTimerId_=0;try{var w=H.postMessage?H:H.document;w.postMessage&&w.postMessage(a+"|"+e+":"+V,b.peerHostname_)}catch(h){}},0)},this.send(D,t))};
_.q.notifyConnected_=function(){var D=this.JSC$10031_channel_,t=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;D.isConnected()||D.connectionDelay_&&D.connectionDelay_.isActive()||(D.state_=2,_.qc(D.connectionDelay_),t!==void 0?(D.connectionDelay_=new _.ST(D.connectCb_,t),D.connectionDelay_.start()):(D.connectionDelay_=null,D.connectCb_()))};
_.q.disposeInternal=function(){if(this.initialized_){var D=this.getWindow(),t=_.I$(D),H=hh4[t];hh4[t]=H-1;H==1&&_.g8(D.postMessage?D:D.document,"message",KIf,!1,hR)}this.sendTimerId_&&(_.VA.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.qc(this.JSC$10031_eventHandler_);delete this.JSC$10031_eventHandler_;_.qc(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10031_connected_.cancel();delete this.JSC$10031_connected_;delete this.send;hR.superClass_.disposeInternal.call(this)};
var G56=function(D){D=D.split(",");D[1]=D[1]||null;return D};var jDv;_.Er=function(D){if(D.getValues&&typeof D.getValues=="function")return D.getValues();if(typeof Map!=="undefined"&&D instanceof Map||typeof Set!=="undefined"&&D instanceof Set)return Array.from(D.values());if(typeof D==="string")return D.split("");if(_.d6(D)){for(var t=[],H=D.length,e=0;e<H;e++)t.push(D[e]);return t}return _.J$.getValues(D)};
_.cZn=function(D){if(D.getKeys&&typeof D.getKeys=="function")return D.getKeys();if(!D.getValues||typeof D.getValues!="function"){if(typeof Map!=="undefined"&&D instanceof Map)return Array.from(D.keys());if(!(typeof Set!=="undefined"&&D instanceof Set)){if(_.d6(D)||typeof D==="string"){var t=[];D=D.length;for(var H=0;H<D;H++)t.push(H);return t}return _.J$.getKeys(D)}}};
jDv=function(D,t,H){if(D.forEach&&typeof D.forEach=="function")D.forEach(t,H);else if(_.d6(D)||typeof D==="string")Array.prototype.forEach.call(D,t,H);else for(var e=_.cZn(D),V=_.Er(D),b=V.length,a=0;a<b;a++)t.call(H,V[a],e&&e[a],D)};var aZ8,$Y,rh,PhV,$23,rZ6,iY9,oCv,OYV;
_.eP=function(D,t){this.JSC$10036_domain_=this.userInfo_=this.scheme_="";this.JSC$10036_port_=null;this.fragment_=this.JSC$10036_path_="";this.JSC$10036_ignoreCase_=!1;var H;D instanceof _.eP?(this.JSC$10036_ignoreCase_=t!==void 0?t:D.JSC$10036_ignoreCase_,_.Kx(this,D.scheme_),this.userInfo_=D.userInfo_,_.No(this,D.JSC$10036_domain_),_.kY(this,D.JSC$10036_port_),_.Ta(this,D.getPath()),_.cy(this,D.JSC$10036_queryData_.clone()),_.je(this,D.fragment_)):D&&(H=_.DU(String(D)))?(this.JSC$10036_ignoreCase_=
!!t,_.Kx(this,H[1]||"",!0),this.userInfo_=$Y(H[2]||""),_.No(this,H[3]||"",!0),_.kY(this,H[4]),_.Ta(this,H[5]||"",!0),_.cy(this,H[6]||"",!0),_.je(this,H[7]||"",!0)):(this.JSC$10036_ignoreCase_=!!t,this.JSC$10036_queryData_=new _.iu(null,this.JSC$10036_ignoreCase_))};
_.eP.prototype.toString=function(){var D=[],t=this.scheme_;t&&D.push(rh(t,$23,!0),":");var H=this.JSC$10036_domain_;if(H||t=="file")D.push("//"),(t=this.userInfo_)&&D.push(rh(t,$23,!0),"@"),D.push(_.Wn(H).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),H=this.JSC$10036_port_,H!=null&&D.push(":",String(H));if(H=this.getPath())this.JSC$10036_domain_&&H.charAt(0)!="/"&&D.push("/"),D.push(rh(H,H.charAt(0)=="/"?iY9:rZ6,!0));(H=this.JSC$10036_queryData_.toString())&&D.push("?",H);(H=this.fragment_)&&D.push("#",
rh(H,OYV));return D.join("")};
_.eP.prototype.resolve=function(D){var t=this.clone(),H=!!D.scheme_;H?_.Kx(t,D.scheme_):H=!!D.userInfo_;H?t.userInfo_=D.userInfo_:H=!!D.JSC$10036_domain_;H?_.No(t,D.JSC$10036_domain_):H=D.JSC$10036_port_!=null;var e=D.getPath();if(H)_.kY(t,D.JSC$10036_port_);else if(H=!!D.JSC$10036_path_){if(e.charAt(0)!="/")if(this.JSC$10036_domain_&&!this.JSC$10036_path_)e="/"+e;else{var V=t.getPath().lastIndexOf("/");V!=-1&&(e=t.getPath().slice(0,V+1)+e)}V=e;if(V==".."||V==".")e="";else if(_.hT(V,"./")||_.hT(V,
"/.")){e=_.qu(V,"/");V=V.split("/");for(var b=[],a=0;a<V.length;){var w=V[a++];w=="."?e&&a==V.length&&b.push(""):w==".."?((b.length>1||b.length==1&&b[0]!="")&&b.pop(),e&&a==V.length&&b.push("")):(b.push(w),e=!0)}e=b.join("/")}else e=V}H?_.Ta(t,e):H=D.JSC$10036_queryData_.toString()!=="";H?_.cy(t,D.JSC$10036_queryData_.clone()):H=!!D.fragment_;H&&_.je(t,D.fragment_);return t};
_.eP.prototype.clone=function(){return new _.eP(this)};
_.Kx=function(D,t,H){D.scheme_=H?$Y(t,!0):t;D.scheme_&&(D.scheme_=D.scheme_.replace(/:$/,""));return D};
_.No=function(D,t,H){D.JSC$10036_domain_=H?$Y(t,!0):t;return D};
_.kY=function(D,t){if(t){t=Number(t);if(isNaN(t)||t<0)throw Error("Pa`"+t);D.JSC$10036_port_=t}else D.JSC$10036_port_=null;return D};
_.eP.prototype.getPath=function(){return this.JSC$10036_path_};
_.Ta=function(D,t,H){D.JSC$10036_path_=H?$Y(t,!0):t;return D};
_.cy=function(D,t,H){t instanceof _.iu?(D.JSC$10036_queryData_=t,U2w(D.JSC$10036_queryData_,D.JSC$10036_ignoreCase_)):(H||(t=rh(t,oCv)),D.JSC$10036_queryData_=new _.iu(t,D.JSC$10036_ignoreCase_));return D};
_.yh=function(D,t,H){D.JSC$10036_queryData_.set(t,H);return D};
_.Qh=function(D,t){return D.JSC$10036_queryData_.get(t)};
_.je=function(D,t,H){D.fragment_=H?$Y(t):t;return D};
_.Or=function(D){_.yh(D,"zx",W1());return D};
_.IK=function(D,t){return D instanceof _.eP?D.clone():new _.eP(D,t)};
aZ8=function(D,t){D instanceof _.eP||(D=_.IK(D));t instanceof _.eP||(t=_.IK(t));return D.resolve(t)};
$Y=function(D,t){return D?t?decodeURI(D.replace(/%25/g,"%2525")):decodeURIComponent(D):""};
rh=function(D,t,H){return typeof D==="string"?(D=encodeURI(D).replace(t,PhV),H&&(D=D.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),D):null};
PhV=function(D){D=D.charCodeAt(0);return"%"+(D>>4&15).toString(16)+(D&15).toString(16)};
$23=/[#\/\?@]/g;rZ6=/[#\?:]/g;iY9=/[#\?]/g;oCv=/[#\?@]/g;OYV=/#/g;_.iu=function(D,t){this.count_=this.keyMap_=null;this.encodedQuery_=D||null;this.JSC$10037_ignoreCase_=!!t};
_.Ur=function(D){D.keyMap_||(D.keyMap_=new Map,D.count_=0,D.encodedQuery_&&Kdv(D.encodedQuery_,function(t,H){D.add(VM(t),H)}))};
_.q=_.iu.prototype;_.q.getCount=function(){_.Ur(this);return this.count_};
_.q.add=function(D,t){_.Ur(this);this.encodedQuery_=null;D=oI(this,D);var H=this.keyMap_.get(D);H||this.keyMap_.set(D,H=[]);H.push(t);this.count_+=1;return this};
_.q.remove=function(D){_.Ur(this);D=oI(this,D);return this.keyMap_.has(D)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(D).length,this.keyMap_.delete(D)):!1};
_.q.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.q.isEmpty=function(){_.Ur(this);return this.count_==0};
_.q.containsKey=function(D){_.Ur(this);D=oI(this,D);return this.keyMap_.has(D)};
_.q.containsValue=function(D){var t=this.getValues();return _.l8(t,D)};
_.q.forEach=function(D,t){_.Ur(this);this.keyMap_.forEach(function(H,e){H.forEach(function(V){D.call(t,V,e,this)},this)},this)};
_.q.getKeys=function(){_.Ur(this);for(var D=Array.from(this.keyMap_.values()),t=Array.from(this.keyMap_.keys()),H=[],e=0;e<t.length;e++)for(var V=D[e],b=0;b<V.length;b++)H.push(t[e]);return H};
_.q.getValues=function(D){_.Ur(this);var t=[];if(typeof D==="string")this.containsKey(D)&&(t=t.concat(this.keyMap_.get(oI(this,D))));else{D=Array.from(this.keyMap_.values());for(var H=0;H<D.length;H++)t=t.concat(D[H])}return t};
_.q.set=function(D,t){_.Ur(this);this.encodedQuery_=null;D=oI(this,D);this.containsKey(D)&&(this.count_-=this.keyMap_.get(D).length);this.keyMap_.set(D,[t]);this.count_+=1;return this};
_.q.get=function(D,t){if(!D)return t;D=this.getValues(D);return D.length>0?String(D[0]):t};
_.nCm=function(D,t,H){D.remove(t);H.length>0&&(D.encodedQuery_=null,D.keyMap_.set(oI(D,t),_.pK(H)),D.count_+=H.length)};
_.iu.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var D=[],t=Array.from(this.keyMap_.keys()),H=0;H<t.length;H++){var e=t[H],V=_.Wn(e);e=this.getValues(e);for(var b=0;b<e.length;b++){var a=V;e[b]!==""&&(a+="="+_.Wn(e[b]));D.push(a)}}return this.encodedQuery_=D.join("&")};
_.iu.prototype.clone=function(){var D=new _.iu;D.encodedQuery_=this.encodedQuery_;this.keyMap_&&(D.keyMap_=new Map(this.keyMap_),D.count_=this.count_);return D};
var oI=function(D,t){t=String(t);D.JSC$10037_ignoreCase_&&(t=t.toLowerCase());return t},U2w=function(D,t){t&&!D.JSC$10037_ignoreCase_&&(_.Ur(D),D.encodedQuery_=null,D.keyMap_.forEach(function(H,e){var V=e.toLowerCase();
e!=V&&(this.remove(e),_.nCm(this,V,H))},D));
D.JSC$10037_ignoreCase_=t};
_.iu.prototype.extend=function(D){for(var t=0;t<arguments.length;t++)jDv(arguments[t],function(H,e){this.add(e,H)},this)};var Py=function(D,t){FL.call(this);for(var H=0,e;e=av9[H];H++)if(e in D&&!/^https?:\/\//.test(D[e]))throw Error("Ra`"+D[e]+"`"+e);this.cfg_=D;this.name=this.cfg_.cn||ZYB();this.JSC$10032_domHelper_=t||mJ();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.GA(this);D.lpu=D.lpu||GFB(this.JSC$10032_domHelper_.getWindow().location.href)+"/robots.txt";D.ppu=D.ppu||GFB(D.pu||"")+"/robots.txt";Ga[this.name]=this;ktf(window,"unload",Chf)||mV(window,"unload",Chf)};
_.Zj(Py,FL);var m2w=RegExp("^%*tp$"),MGn=RegExp("^%+tp$");_.q=Py.prototype;_.q.connectionDelay_=null;_.q.peerWindowDeferred_=null;_.q.transport_=null;_.q.state_=1;_.q.isConnected=function(){return this.state_==2};
_.q.peerWindowObject_=null;_.q.iframeElement_=null;_.q.getConfig=function(){return this.cfg_};
_.q.connect=function(D){this.connectCb_=D||_.fJ;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?D29(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.q.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10032_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var D=this.iframeElement_.contentWindow;D||(D=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=D}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10032_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new hR(this,this.cfg_.ph,this.JSC$10032_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.q.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.qc(this.transport_);this.connectCb_=this.transport_=null;_.qc(this.connectionDelay_);this.connectionDelay_=null};
_.q.send=function(D,t){if(this.isConnected()){try{var H=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(V){H=!1}if(H){_.Wk(t)&&(t=(0,_.Ru)(t));H=this.transport_;var e=H.send;m2w.test(D)&&(D="%"+D);D=D.replace(/[%:|]/g,encodeURIComponent);e.call(H,D,t)}else this.close()}};
_.q.xpcDeliver=function(D,t,H){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Mc)(this.xpcDeliver,this,D,t,H));else if(ECa(this,H)&&!this.isDisposed()&&this.state_!=3)if(D&&D!="tp")this.isConnected()&&(D=D.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),D=MGn.test(D)?D.substring(1):D,D=this.getService(D,t))&&(t=I_m(t,D.objectPayload),t!=null&&D.callback(t));else switch(D=this.transport_,H=G56(t),t=H[1],H[0]){case "SETUP_ACK":T19(D,1);D.setupAckReceived_.fired_||D.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":D.protocolVersion_==2&&(T19(D,2),D.setupAckReceived_.fired_||D.setupAckReceived_.callback(!0));break;case "SETUP":T19(D,1);k59(D,1);break;case "SETUP_NTPV2":D.protocolVersion_==2&&(H=D.peerProtocolVersion_,T19(D,2),k59(D,2),H!=1&&D.peerEndpointId_==null||D.peerEndpointId_==t||N14(D),D.peerEndpointId_=t)}};
var sD3=function(D){var t=D.cfg_.role;return typeof t==="number"?t:window.parent==D.peerWindowObject_?1:0},ECa=function(D,t){var H=D.cfg_.ph;
return _.sD(t==null?"":String(t))||_.sD(H==null?"":String(H))||t==D.cfg_.ph};
Py.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Ga[this.name];_.qc(this.peerLoadHandler_);delete this.peerLoadHandler_;Py.superClass_.disposeInternal.call(this)};
var Chf=function(){for(var D in Ga)_.qc(Ga[D])},Ga={};var XnB=function(D,t){this.JSC$10046_win=D;this.allowAdsHttpEndpoint=t;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10046_domHelper=mJ(D);this.scrollManager=new Re6(D);this.accessibilityManager=new l_9(D);S4B(this)},S4B=function(D){var t=function(){D.allowAdsPopup&&D.allowAdsPopup.style.setProperty("display","none","important");
D.wallElement.style.setProperty("display","","important");vMn(D.accessibilityManager);xpm(D.accessibilityManager,D.wallElement.querySelector(".fc-dialog-container"),!1,!1,D.wallElement.querySelector(".fc-button-whitelist"));D.scrollManager.enableScrolling()};
D.allowAdsPopup=D.JSC$10046_domHelper.JSC$9332_createDom("DIV",{"class":"fc-whitelist-root"});D.allowAdsPopup.style.setProperty("display","none","important");D.JSC$10046_domHelper.appendChild(D.JSC$10046_domHelper.JSC$9330_document_.body,D.allowAdsPopup);var H=D.JSC$10046_domHelper.JSC$9332_createDom("DIV",{"class":"fc-dialog-overlay"});D.JSC$10046_domHelper.appendChild(D.allowAdsPopup,H);var e=D.JSC$10046_domHelper.JSC$9332_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:t});D.JSC$10046_domHelper.appendChild(D.allowAdsPopup,
e);H=D.JSC$10046_domHelper.JSC$9332_createDom("IFRAME");H.className="fc-whitelist-dialog";H.frameBorder="0";H.id="fc-whitelist-iframe";H.tabIndex="0";_.zF(H,D.allowAdsHttpEndpoint);D.JSC$10046_domHelper.appendChild(e,H);e={};e.pu=_.X7(D.allowAdsHttpEndpoint).toString();e.tp=1;e.cn="fc-whitelist-channel";e.ifrid=H.id;e.osh=!0;D.allowAdsCrossPageChannel=new Py(e);D.allowAdsCrossPageChannel.registerService("close",t);D.allowAdsCrossPageChannel.registerService("refresh",function(){D.JSC$10046_win.location.reload()});
D.allowAdsCrossPageChannel.registerService("resize",function(V){if(V){var b=D.allowAdsPopup.querySelector(".fc-whitelist-dialog");V.width&&b.style.setProperty("width",V.width,"important");V.height&&b.style.setProperty("height",V.height,"important")}},!0);
D.allowAdsCrossPageChannel.connect()};
XnB.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10046_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var nx=window,Cx=document,fv3=nx.location,LIB=function(){},AZ9=/\[native code\]/,mW=function(D,t,H){return D[t]=D[t]||H},gC3=function(D){D=D.sort();
for(var t=[],H=void 0,e=0;e<D.length;e++){var V=D[e];V!=H&&t.push(V);H=V}return t},Mo=function(){var D;
if((D=Object.create)&&AZ9.test(D))D=D(null);else{D={};for(var t in D)D[t]=void 0}return D},Se=mW(nx,"gapi",{});var fx={};fx=mW(nx,"___jsl",Mo());mW(fx,"I",0);mW(fx,"hel",10);var JZo=function(){var D=fv3.href;if(fx.dpo)var t=fx.h;else{t=fx.h;var H=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),e=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(D=D&&(H.exec(D)||e.exec(D)))try{t=decodeURIComponent(D[2])}catch(V){}}return t},Y4B=function(D){var t=mW(fx,"PQ",[]);
fx.PQ=[];var H=t.length;if(H===0)D();else for(var e=0,V=function(){++e===H&&D()},b=0;b<H;b++)t[b](V)},lvm=function(D){return mW(mW(fx,"H",Mo()),D,Mo())};var Lx=function(D){this.JSC$10048_obj_=D};
Lx.prototype.value=function(){return this.JSC$10048_obj_};
Lx.prototype.getWidth=function(){return this.JSC$10048_obj_.width};
Lx.prototype.getHeight=function(){return this.JSC$10048_obj_.height};
Lx.prototype.getStyle=function(){return this.JSC$10048_obj_.style};var vCn=function(D){this.JSC$10051_obj_=D||{}};
_.q=vCn.prototype;_.q.value=function(){return this.JSC$10051_obj_};
_.q.setUrl=function(D){this.JSC$10051_obj_.url=D;return this};
_.q.getUrl=function(){return this.JSC$10051_obj_.url};
_.q.getStyle=function(){return this.JSC$10051_obj_.style};
_.q.getId=function(){return this.JSC$10051_obj_.id};
_.q.getContext=function(){return this.JSC$10051_obj_.context};
var pna=function(D){D.JSC$10051_obj_.attributes=D.JSC$10051_obj_.attributes||{};return new Lx(D.JSC$10051_obj_.attributes)};var d26=function(){vCn.apply(this,arguments)};
_.P(d26,vCn);var x2m=mW(fx,"perf",Mo());mW(x2m,"g",Mo());var Rhn=mW(x2m,"i",Mo());mW(x2m,"r",[]);Mo();Mo();var WIn=function(D,t,H){t&&t.length>0&&(t=uHn(t),H&&H.length>0&&(t+="___"+uHn(H)),t.length>28&&(t=t.substr(0,28)+(t.length-28)),H=t,t=mW(Rhn,"_p",Mo()),mW(t,H,Mo())[D]=(new Date).getTime(),t=x2m.r,typeof t==="function"?t(D,"_p",H):t.push([D,"_p",H]))},uHn=function(D){return D.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Iv6=Mo(),QDn=[],AR=function(D){throw Error("Ua`"+D);};
QDn.push(["jsl",function(D){for(var t in D)if(Object.prototype.hasOwnProperty.call(D,t)){var H=D[t];typeof H=="object"?fx[t]=mW(fx,t,[]).concat(H):mW(fx,t,H)}if(t=D.u)D=mW(fx,"us",[]),D.push(t),(t=/^https:(.*)$/.exec(t))&&D.push("http:"+t[1])}]);
var yZ6=/^(\/[a-zA-Z0-9_\-]+)+$/,B1v=[/\/amp\//,/\/amp$/,/^\/amp$/],zh3=/^[a-zA-Z0-9\-_\.,!]+$/,DSw=/^gapi\.loaded_[0-9]+$/,tc3=/^[a-zA-Z0-9,._-]+$/,bZm=function(D,t,H,e,V){var b=D.split(";"),a=b.shift(),w=Iv6[a],h=null;w?h=w(b,t,H,e):AR("no hint processor for: "+a);h||AR("failed to generate load url");t=h;H=t.match(HZ6);(e=t.match(eEw))&&e.length===1&&Vcf.test(t)&&H&&H.length===1||AR("failed sanity: "+D);try{D="?";if(V&&V.length>0){fVR(V);var K=V.join(",");h=h+"?le="+K;D="&"}if(fx.rol){var N=fx.ol;
N&&N.length&&(h=""+h+D+"ol="+N.length)}}catch(k){}return h},aUn=function(D,t,H,e){D=qaf(D);
DSw.test(H)||AR("invalid_callback");t=Fhw(t);e=e&&e.length?Fhw(e):null;var V=function(b){return encodeURIComponent(b).replace(/%2C/g,",")};
return[encodeURIComponent(D.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",V(D.version),"/m=",V(t),e?"/exm="+V(e):"","/rt=j/sv=1/d=1/ed=1",D.activeMods?"/am="+V(D.activeMods):"",D.resourceSig?"/rs="+V(D.resourceSig):"",D.zcms?"/t="+V(D.zcms):"","/cb=",V(H)].join("")},qaf=function(D){D.charAt(0)!=="/"&&AR("relative path");
for(var t=D.substring(1).split("/"),H=[];t.length;){D=t.shift();if(!D.length||D.indexOf(".")==0)AR("empty/relative directory");else if(D.indexOf("=")>0){t.unshift(D);break}H.push(D)}D={};for(var e=0,V=t.length;e<V;++e){var b=t[e].split("="),a=decodeURIComponent(b[0]),w=decodeURIComponent(b[1]);b.length==2&&a&&w&&(D[a]=D[a]||w)}t="/"+H.join("/");yZ6.test(t)||AR("invalid_prefix");H=0;for(e=B1v.length;H<e;++H)B1v[H].test(t)&&AR("invalid_prefix");H=wY9(D,"k",!0);e=wY9(D,"am");V=wY9(D,"rs");D=wY9(D,"t");
return{pathPrefix:t,version:H,activeMods:e,resourceSig:V,zcms:D}},Fhw=function(D){for(var t=[],H=0,e=D.length;H<e;++H){var V=D[H].replace(/\./g,"_").replace(/-/g,"_");
tc3.test(V)&&t.push(V)}return t.join(",")},wY9=function(D,t,H){D=D[t];
!D&&H&&AR("missing: "+t);if(D){if(zh3.test(D))return D;AR("invalid: "+t)}return null},Vcf=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,eEw=/\/cb=/g,HZ6=/\/\//g;
Iv6.m=function(D,t,H,e){(D=D[0])||AR("missing_hint");return"https://apis.google.com"+aUn(D,t,H,e)};
var ZZo=decodeURI("%73cript"),sAf=/^[-+_0-9\/A-Za-z]+={0,2}$/,hEn=function(D,t){for(var H=[],e=0;e<D.length;++e){var V=D[e],b;if(b=V){a:{for(b=0;b<t.length;b++)if(t[b]===V)break a;b=-1}b=b<0}b&&H.push(V)}return H},GW4=function(){var D=fx.nonce;
return D!==void 0?D&&D===String(D)&&D.match(sAf)?D:fx.nonce=null:Cx.querySelector?(D=Cx.querySelector("script[nonce]"))?(D=D.nonce||D.getAttribute("nonce")||"",D&&D===String(D)&&D.match(sAf)?fx.nonce=D:fx.nonce=null):null:null},Nin=function(D){if(Cx.readyState!="loading")Ex3(D);
else{var t=GW4(),H="";t!==null&&(H=' nonce="'+t+'"');D="<"+ZZo+' src="'+encodeURI(D)+'"'+H+"></"+ZZo+">";Cx.write(Khv?Khv.createHTML(D):D)}},Ex3=function(D){var t=Cx.createElement(ZZo);
t.setAttribute("src",Khv?Khv.createScriptURL(D):D);D=GW4();D!==null&&t.setAttribute("nonce",D);t.async="true";(D=Cx.getElementsByTagName(ZZo)[0])?D.parentNode.insertBefore(t,D):(Cx.head||Cx.body||Cx.documentElement).appendChild(t)},Tiv=function(D,t,H){kWf(function(){var e=t===JZo()?mW(Se,"_",Mo()):Mo();
e=mW(lvm(t),"_",e);D(e)},H)},ul$=function(D,t){var H=t||{};
typeof t=="function"&&(H={},H.callback=t);var e=(t=H)&&t._c;if(e)for(var V=0;V<QDn.length;V++){var b=QDn[V][0],a=QDn[V][1];a&&Object.prototype.hasOwnProperty.call(e,b)&&a(e[b],D,t)}t=[];D?t=D.split(":"):H.features&&(t=H.features);if(!(D=H.h)&&(D=JZo(),!D))throw Error("Va");cWV(t||[],H,D)},cWV=function(D,t,H){D=gC3(D)||[];
var e=t.callback,V=t.config,b=t.timeout,a=t.ontimeout,w=t.onerror,h=void 0;typeof w=="function"&&(h=w);var K=null,N=!1;if(b&&!a||!b&&a)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";w=mW(lvm(H),"r",[]).sort();var k=mW(lvm(H),"L",[]).sort(),T=fx.le||[],c=[].concat(w),U=function(Q,u){if(N)return 0;nx.clearTimeout(K);k.push.apply(k,S);var R=((Se||{}).config||{}).update;R?R(V):V&&mW(fx,"cu",[]).push(V);if(u){WIn("me0",Q,c);try{Tiv(u,H,h)}finally{WIn("me1",Q,c)}}return 1};
b>0&&(K=nx.setTimeout(function(){N=!0;a()},b));
var S=hEn(D,k);if(S.length){S=hEn(D,w);var L=mW(fx,"CP",[]),J=L.length;L[J]=function(Q){if(!Q)return 0;WIn("ml1",S,c);var u=function(I){L[J]=null;U(S,Q)&&Y4B(function(){e&&e();I()})},R=function(){var I=L[J+1];
I&&I()};
J>0&&L[J-1]?L[J]=function(){u(R)}:u(R)};
if(S.length){var g="loaded_"+fx.I++;Se[g]=function(Q){L[J](Q);Se[g]=null};
D=bZm(H,S,"gapi."+g,w,T);w.push.apply(w,S);WIn("ml0",S,c);t.sync||nx.___gapisync?Nin(D):Ex3(D)}else L[J](LIB)}else U(S)&&e&&e()},jAn;
var $SB=null,iZa=_.VA.trustedTypes;if(iZa&&iZa.createPolicy){try{$SB=iZa.createPolicy("goog#gapi",{createHTML:$eV,createScript:$eV,createScriptURL:$eV})}catch(D){_.VA.console&&_.VA.console.error(D.message)}jAn=$SB}else jAn=$SB;var Khv=jAn,kWf=function(D,t){if(fx.hee&&fx.hel>0)try{return D()}catch(H){t&&t(H),fx.hel--,ul$("debug_error",function(){try{window.___jsl.hefn(H)}catch(e){throw H;}})}else try{return D()}catch(H){throw t&&t(H),H;
}},rWn=Se.load;
rWn&&mW(fx,"ol",[]).push(rWn);Se.load=function(D,t){return kWf(function(){return ul$(D,t)})};var dSK;var US6=function(D,t){var H=H||[];this.serviceId_=D;this.moduleId_=t||null;this.dependencies_=[];OZV(this,H)};
US6.prototype.toString=function(){return this.serviceId_};
US6.prototype.getModuleId=function(){return this.moduleId_};
var OZV=function(D,t){var H=!1;H=H===void 0?!1:H;D.dependencies_=D.dependencies_.concat(t);if(H){if(!D.moduleId_)throw Error("Wa`"+D.serviceId_);t.map(function(e){return e.getModuleId()}).forEach(function(e){xSV(function(V){V.addExtraEdge(D.moduleId_,e)})})}};var mlu=new US6("MpJwZc","MpJwZc");var ilT=new _.Sx("a"),SWX=new _.Sx("c"),M7K=function(D,t,H){_.Xv.call(this,D,t);this.node=t;this.kind=H};
_.P(M7K,_.Xv);var ox6=function(){this.JSC$10064_keys_={};this.urlPrefix_="";this.JSC$10064_queryData_={}};
ox6.prototype.toString=function(){var D=this.urlPrefix_+PyB(this),t=_.jc(this.JSC$10064_queryData_),H="";t!=""&&(H="?"+t);return D+H};
var nxw=function(D){D=gh(D,"md");return!!D&&D!=="0"},PyB=function(D){var t=[],H=(0,_.Mc)(function(e){this.JSC$10064_keys_[e]!==void 0&&t.push(e+"="+this.JSC$10064_keys_[e])},D);
nxw(D)?(H("md"),H("k"),H("ck"),H("am"),H("rs"),H("gssmodulesetproto"),H("slk"),H("dti")):(H("sdch"),H("k"),H("ck"),H("am"),H("rt"),"d"in D.JSC$10064_keys_||JR(D,"d","0"),H("d"),H("exm"),H("excm"),(D.JSC$10064_keys_.excm||D.JSC$10064_keys_.exm)&&t.push("ed=1"),H("im"),H("dg"),H("sm"),gh(D,"br")!="1"&&gh(D,"br")!="0"||H("br"),H("br-d"),gh(D,"rb")=="1"&&H("rb"),gh(D,"zs")!=="0"&&H("zs"),Cy9(D)!==""&&H("wt"),H("gssmodulesetproto"),H("ujg"),H("sp"),H("rs"),H("cb"),H("ee"),H("slk"),H("dti"),H("m"));return t.join("/")},
gh=function(D,t){return D.JSC$10064_keys_[t]?D.JSC$10064_keys_[t]:null},JR=function(D,t,H){H?D.JSC$10064_keys_[t]=H:delete D.JSC$10064_keys_[t]},mSw=function(D,t){D.urlPrefix_=t},McB=function(D,t){t&&t.length>0?(t.sort(),JR(D,"exm",t.join(","))):JR(D,"exm",null)},San=function(D,t){t&&t.length>0?(t.sort(),JR(D,"excm",t.join(","))):JR(D,"excm",null)},XY6=function(D){return(D=gh(D,"m"))?D.split(","):[]},Cy9=function(D){switch(gh(D,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},fU4=function(D,t){var H=Object.keys(t).filter(function(e){return!!Object.keys(t[e]).length}).map(function(e){var V=Object.keys(t[e]);
V.length>1&&V.sort();return e+":"+V.join(",")});
H.sort();JR(D,"ee",H.join(";"))},DzV=function(D){var t=gh(D,"ee");
if(!t)return{};D={};t=_.F(t.split(";"));for(var H=t.next();!H.done;H=t.next()){var e=_.F(H.value.split(":"));H=e.next().value;e=e.next().value;D[H]={};e=_.F(e.split(","));for(var V=e.next();!V.done;V=e.next())D[H][V.value]=!0}return D},LhQ=function(D){delete D.JSC$10064_keys_.m;
delete D.JSC$10064_keys_.exm;delete D.JSC$10064_keys_.ed};
ox6.prototype.clone=function(){var D=new ox6;D.JSC$10064_keys_=Object.assign({},this.JSC$10064_keys_);D.urlPrefix_=this.urlPrefix_;D.JSC$10064_queryData_=Object.assign({},this.JSC$10064_queryData_);return D};
var t4R=function(D,t){t=t===void 0?!0:t;var H=AW6(D),e=new ox6,V=_.DU(H)[5];_.J$.forEach(gxQ,function(a){var w=V.match("/"+a+"=([^/]+)");w&&JR(e,a,w[1])});
var b="";b=D.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";mSw(e,D.substr(0,D.indexOf(b)+b.length));if(!t)return e;(D=_.DU(H)[6]||null)&&Kdv(D,function(a,w){e.JSC$10064_queryData_[a]=w});
return e},yy8=function(D){D=_.TW(AW6(D));
return D===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(D)?/\/k=/.test(D):!1},AW6=function(D){return D.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?D.substr(65):D},gxQ={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"},JWw=RegExp("^loaded_(g|h)?[_\\d]+$");_.YY=function(D){this.JSC$10076_id_=D;this.opts={}};
_.YY.prototype.JSC$10078_setLabel=function(D){this.label_=D||void 0;return this};
_.YY.prototype.addUploadMetadata=function(D,t){var H=this.opts.data||{};H[D]=t;this.opts.data=H;return this};
var Yaf=function(D){var t=_.J$.filter(D.opts,function(H){return H!==null});
t=_.J$.isEmpty(t)?null:t;D=[D.JSC$10076_id_,D.label_,t];t=C8V(D);return D=D.slice(0,t+1)};
_.YY.prototype.toString=function(){var D=Yaf(this);return"("+_.Yz(D,function(t){return JSON.stringify(t)}).join(",")+")"};
_.YY.prototype.getId=function(){return this.JSC$10076_id_};
_.YY.prototype.getOptions=function(){return _.J$.clone(this.opts)};var lu=function(){_.YY.call(this,"image-search")};
_.P(lu,_.YY);lu.prototype.setSize=function(D){this.opts.imgsz=D;return this};
lu.prototype.JSC$10078_setLabel=function(D){_.YY.prototype.JSC$10078_setLabel.call(this,D);return this};
lu.prototype.addUploadMetadata=function(D,t){_.YY.prototype.addUploadMetadata.call(this,D,t);return this};var vy=function(){_.YY.call(this,"maps")};
_.P(vy,_.YY);vy.prototype.setZoom=function(D){this.opts.zoom=D;return this};
vy.prototype.JSC$10078_setLabel=function(D){_.YY.prototype.JSC$10078_setLabel.call(this,D);return this};
vy.prototype.addUploadMetadata=function(D,t){_.YY.prototype.addUploadMetadata.call(this,D,t);return this};_.px=function(){_.YY.call(this,"photos")};
_.P(_.px,_.YY);_.px.prototype.JSC$10078_setLabel=function(D){_.YY.prototype.JSC$10078_setLabel.call(this,D);return this};
_.px.prototype.addUploadMetadata=function(D,t){_.YY.prototype.addUploadMetadata.call(this,D,t);return this};var dh=function(){_.YY.call(this,"url")};
_.P(dh,_.YY);var lUo=function(){var D=new dh;D.opts.type="video";D.opts.site="youtube.com";return D};
dh.prototype.JSC$10078_setLabel=function(D){_.YY.prototype.JSC$10078_setLabel.call(this,D);return this};
dh.prototype.addUploadMetadata=function(D,t){_.YY.prototype.addUploadMetadata.call(this,D,t);return this};var xY=function(){_.YY.call(this,"video-search")};
_.P(xY,_.YY);var vxa=function(){var D=new xY;D.opts.site="youtube.com";return D};
xY.prototype.JSC$10078_setLabel=function(D){_.YY.prototype.JSC$10078_setLabel.call(this,D);return this};
xY.prototype.addUploadMetadata=function(D,t){_.YY.prototype.addUploadMetadata.call(this,D,t);return this};var pY9=function(){_.YY.call(this,"web")};
_.P(pY9,_.YY);pY9.prototype.JSC$10078_setLabel=function(D){_.YY.prototype.JSC$10078_setLabel.call(this,D);return this};
pY9.prototype.addUploadMetadata=function(D,t){_.YY.prototype.addUploadMetadata.call(this,D,t);return this};var RI=function(){this.items_=[];this.opts={}},dSQ=function(D){switch(D){case "image-search":return new lu;
case "maps":return new vy;case "photos":return new _.px;case "url":return new dh;case "video-search":return new xY;case "web":return new pY9}return new _.YY(D)};
RI.prototype.addView=function(D){this.items_.push(typeof D==="string"?dSQ(D):D);return this};
var xSf=function(D){return"("+_.Yz(D.items_,function(t){return t.toString()}).join(",")+")"};
RI.prototype.toString=function(){return xSf(this)};
RI.prototype.getViews=function(D,t){t=t===void 0?[]:t;for(var H=this.items_,e=0;e<H.length;e++){var V=H[e];V instanceof RI?V.getViews(D,t):V.getId()==D&&t.push(V)}return t};
RI.prototype.getOptions=function(){return _.J$.clone(this.opts)};var pN=function(D){this.basePickerUrl_=D||"https://docs.google.com/picker";this.nav_=new RI};
pN.prototype.nav_=null;pN.prototype.addView=function(D){this.nav_.addView(D);return this};
pN.prototype.getBaseUrl=function(){return this.basePickerUrl_};
pN.prototype.getViews=function(D){return this.nav_.getViews(D)};
_.RE3=function(D,t){D.callback_=t;return D};var ucB=new Map;ucB.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");ucB.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");ucB.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Wh9=new Set;Wh9.add("application/vnd.google-apps.kix");Wh9.add("application/vnd.google-apps.ritz");Wh9.add("application/vnd.google-apps.punch");var qq9=function(D,t,H){var e=H&&_.La(H,1);H=IUm(H);var V=D[0].getId();switch(_.AM(V,2)){case 13:return QAf(D,t,e,H);case 3:return yWn(D,t,e,H);case 10:return Bio(D,t,e,H);case 27:return Bio(D,t,e,H);case 12:return zE4(D,t);case 2:return DOw(D,t,e,H);case 5:return tEa(D,t,e,H);case 9:return HXv(D,t,e,H);case 6:return eX9(D,t,e,H);case 25:return VEv(D,t,e,H);case 1:return _.Ot(D[0],MMo,26)?bXQ(D,t,e,H):Bio(D,t,e,H);default:return{}}},eX9=function(D,t,H,e){D=D.map(function(V){return{id:V.getId().getId(),
serviceId:"youtube",name:V.getName(),description:_.La(V,3),type:uu(V),lastEditedUtc:_.mNo(_.sq(V,_.Al,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:V.getUrl(),embedUrl:_.La(V,13),thumbnails:Wy(GT(V))}});
return{action:t,docs:D,viewToken:e,view:H||"youtube",v2Translated:!0}},DOw=function(D,t,H,e){var V=D.map(function(b){var a=b.getId().getId(),w=_.La(b,7),h=b.getName(),K=uu(b),N=_.mNo(_.sq(b,_.Al,12)).getTime(),k=b.getUrl(),T=Number(YlD(b)),c=_.La(b,3),U=_.La(b,11),S=Wy(GT(b));
var L=_.sq(b,E2,21);L=_.Sk(L,1);var J=_.sq(b,E2,21);J=_.La(J,10);var g=_.La(b,13);var Q=_.sq(b,E2,21);Q=_.Sk(Q,9);var u=_.sq(b,E2,21);u=_.La(u,11);a={id:a,serviceId:"docs",mimeType:w,name:h,type:K,lastEditedUtc:N,url:k,sizeBytes:T,description:c,iconUrl:U,thumbnails:S,isShared:L,downloadUrl:J,embedUrl:g,copyable:Q,resourceKey:u};w=_.sq(b,E2,21);_.Sk(w,12)&&(a.uploadState="success",a.isNew=!0);w=_.sq(b,E2,21);_.Ot(w,ZE,3)&&(b=_.sq(b,E2,21),b=_.sq(b,ZE,3),_.Ot(b,au,2)&&(w=YO(b.getDuration().getSeconds()),
h=b.getDuration(),h=_.sH(h,2),a.duration=w+h/1E9),a.aspectRatio=b.getAspectRatio());return a});
return{action:t,docs:V,viewToken:e,view:H||"all",extraUserInputs:FYB(D),v2Translated:!0}},tEa=function(D,t,H,e){D=D.map(function(V){var b=_.sq(V,l1v,15);
b=_.sq(b,w8,1);rT(V,10,w8,b);return{id:V.getId().getId(),serviceId:"web",mimeType:_.La(V,7),name:V.getName(),type:uu(V),url:V.getUrl(),description:_.La(V,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Wy(GT(V))}});
return{action:t,docs:D,viewToken:e,view:H||"image-search",v2Translated:!0}},HXv=function(D,t,H,e){D=D.map(function(V){return{serviceId:"url",
name:GT(V)[0].getUrl().split("/").pop(),type:uu(V),mimeType:_.La(V,7),url:V.getUrl(),description:_.La(V,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Wy(GT(V))}});
return{action:t,docs:D,viewToken:e,view:H||"url",v2Translated:!0}},bXQ=function(D,t,H,e){D=D.map(function(V){return{id:V.getId().getId(),
serviceId:"picasa",name:V.getName(),type:uu(V),description:_.La(V,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Wy(GT(V))}});
return{action:t,docs:D,viewToken:e,view:H||"webcam",v2Translated:!0}},Bio=function(D,t,H,e){return{action:t,
docs:D.map(a4V),viewToken:e,view:wef(H||"upload",D),extraUserInputs:FYB(D),v2Translated:!0}},wef=function(D,t){return t.some(function(H){var e;
return((e=_.sq(H,s2,30))==null?void 0:_.AM(e,3))===9})?D+"/gmailphotos":D},yWn=function(D,t,H,e){var V=D.map(function(b){var a={id:b.getId().getId(),
serviceId:"picasa",mimeType:_.La(b,7),name:b.getName(),type:uu(b),lastEditedUtc:_.mNo(_.sq(b,_.Al,12)).getTime(),url:b.getUrl(),sizeBytes:Number(YlD(b)),description:_.La(b,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Wy(GT(b)),mediaKey:b.getId().getId(),parentId:_.La(b,4)},w,h=(w=_.sq(b,f1n,18))==null?void 0:_.sq(w,XUn,3);h&&(a.latitude=fa(h,1),a.longitude=fa(h,2));var K;b=(K=_.sq(b,f1n,18))==null?void 0:Xz(K,6);K=b!=null?YO(b):void 0;K&&(a.version=
K);return a});
return{action:t,docs:V,viewToken:e,view:H||"photos",extraUserInputs:FYB(D),v2Translated:!0}},QAf=function(D,t,H,e){D=D.map(function(V){return{id:V.getId().getId(),
serviceId:"et",name:GT(V)[0].getUrl().split("/").pop(),description:_.La(V,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Wy(GT(V),"etjpg")}});
return{action:t,docs:D,viewToken:e,view:H||"et",v2Translated:!0}},VEv=function(D,t,H,e){D=D.map(function(V){var b=V.getId().getId(),a=e["2"];
return{id:b,serviceId:a.type!=="gmail_themes"&&a.parent==="6226252643674576769"?"picasa":"static_themes",name:V.getName(),mimeType:_.La(V,7),type:uu(V),description:_.La(V,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:V.getUrl(),embedUrl:V.getUrl(),thumbnails:Wy(GT(V))}});
return{action:t,docs:D,viewToken:e,view:H||"photos",v2Translated:!0}},zE4=function(D,t){D=D.map(function(H){var e=_.sq(H,SYm,27);
e=_.QZ(e,1,_.OF,_.Zl())[0];return{id:H.getId().getId(),serviceId:"contacts",mimeType:_.La(H,7),name:H.getName(),description:_.La(H,3),url:"mailto:"+e,thumbnail:[{url:_.La(H,11)}],email:e}});
return{action:t,docs:D,view:"contacts",v2Translated:!0}},IUm=function(D){if(!D)return{};
var t=_.La(D,3);t=t&&JSON.parse(t)||{};return{0:_.La(D,1),1:_.La(D,2),2:t}},Wy=function(D,t){t=t===void 0?"":t;
if(!D.length)return null;t=="etjpg"&&(D=D.filter(function(H){return H.getUrl().includes("w1200-h300")}));
return D.map(function(H){return{url:H.getUrl(),height:H.getHeight(),width:H.getWidth(),type:t}})},FYB=function(D){return{isAttachment:D.some(function(t){return _.Sk(t,31)})}},a4V=function(D){var t,H={id:(t=D.getId())==null?void 0:t.getId(),
serviceId:ZX6(D),mimeType:_.La(D,7),name:D.getName(),type:uu(D),sizeBytes:Number(YlD(D)),description:_.La(D,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:Wy(GT(D)),isNew:!0};if(t=_.sq(D,s2,30)){H.dataUrl=_.La(t,1)||null;a:{var e=_.sq(D,s2,30);switch(_.AM(e,3)){case 9:e=_.Yf(e,JAm,2,h2);e={remoteRefs:e&&_.La(e,1)};break a;case 10:case 15:e=_.Yf(e,gh9,4,h2);var V=GT(D);e={photo_id:e&&_.La(e,1),media_key:D.getId().getId(),media_type:_.AM(D,6)===1?1:2,image_url:V&&
V[0].getUrl(),width:V&&String(V[0].getWidth()),height:V&&String(V[0].getHeight())};break a}e=null}H.uploadMetadata=e;H.uploadId=_.La(t,9)||null;H.uploadState=sPv(t)||null}(e=t&&_.Yf(t,gh9,4,h2))&&(H.id=_.La(e,1));(e=t&&_.Yf(t,YYo,5,h2))&&(H.contentId=_.La(e,1));(e=t&&_.Yf(t,Lda,7,h2))&&(H.contentId=_.La(e,1));(e=t&&_.Yf(t,AAn,6,h2))&&(H.contentId=_.La(e,1));(t==null?void 0:_.AM(t,3))===1&&(H.mediaKey=D.getId().getId());return H},ZX6=function(D){var t;
switch(((t=_.sq(D,s2,30))==null?void 0:_.AM(t,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},uu=function(D){switch(_.AM(D,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 _.La(D,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},sPv=function(D){switch(D==null?void 0:_.AM(D,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 KYa,hXm,Grf,EV4;_.Nkn=function(D,t){var H=t||{};t=H.document||document;var e=_.X7(D).toString(),V=(new YB(t)).createElement("SCRIPT"),b={script_:V,timeout_:void 0},a=new aI(hXm,b),w=null,h=H.timeout!=null?H.timeout:5E3;h>0&&(w=window.setTimeout(function(){Grf(V,!0);a.errback(new EV4(1,"Timeout reached for loading script "+e))},h),b.timeout_=w);
V.onload=V.onreadystatechange=function(){V.readyState&&V.readyState!="loaded"&&V.readyState!="complete"||(Grf(V,H.cleanupWhenDone||!1,w),a.callback(null))};
V.onerror=function(){Grf(V,!0,w);a.errback(new EV4(0,"Error while loading script "+e))};
b=H.attributes||{};_.J$.extend(b,{type:"text/javascript",charset:"UTF-8"});iew(V,b);_.qd(V,D);KYa(t).appendChild(V);return a};
KYa=function(D){var t=oK("HEAD",D);return t&&t.length!==0?t[0]:D.documentElement};
hXm=function(){if(this&&this.script_){var D=this.script_;D&&D.tagName=="SCRIPT"&&Grf(D,!0,this.timeout_)}};
Grf=function(D,t,H){H!=null&&_.VA.clearTimeout(H);D.onload=function(){};
D.onerror=function(){};
D.onreadystatechange=function(){};
t&&window.setTimeout(function(){_.UH(D)},0)};
EV4=function(D,t){var H="Jsloader error (code #"+D+")";t&&(H+=": "+t);_.Hk.call(this,H);this.code=D};
_.Zj(EV4,_.Hk);var kr9=_.zk(["https://apis.google.com/js/api.js"]),Tkm=_.E5(kr9),iXn=function(D,t,H){H=H===void 0?{}:H;var e=!1,V=cy9(D,t,H).then(function(a){e=!0;return a}),b=_.R5V(5E3).then(function(){return e?cy9(D,t,H):jPB(t,H).then(function(a){return $O9(a,D)})});
return X_n([V,b])},cy9=function(D,t,H){H=H===void 0?{}:H;
return ryB(t,H).then(function(e){return $O9(e,D)})},$O9=function(D,t){var H=_.qu(t,"gapi.")?t.slice(5):t;
return D[H]?_.Tf(D[H]):new _.c$(function(e,V){var b=d8(function(){V(Error("Ya"))},3E4);
D.load(t,{callback:function(){_.VA.clearTimeout(b);e(D[H])},
onerror:function(a){_.VA.clearTimeout(b);V(a)}})})},ryB=function(D,t){t=t===void 0?{}:t;
return D.gapi&&D.gapi.load?_.Tf(D.gapi):jPB(D,t)},jPB=function(D,t){t=t===void 0?{}:t;
return _.Nkn(Tkm,{document:D.document,attributes:t}).then(function(){return D.gapi})},OXv=function(){};
OXv.prototype.load=function(D,t,H){t=t===void 0?window:t;H=H===void 0?{}:H;var e=Date.now();return iXn(D,t,H).then(function(V){var b=Date.now();return{library:V,loadStartMs:e,loadEndMs:b}},function(V){throw V instanceof Error?V:Error(String(V));
})};var jP$=function(){_.mg.call(this);this.gapiLoader_=new OXv;this.origin_=null;this.gapiPickerIframeResolver_=_.z3();this.gapiIframesResolver_=_.z3();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.P(jP$,_.mg);var UO3=function(D,t){var H=H===void 0?{}:H;var e=_.RD("gapi.iframes",t);return e?(D=Date.now(),_.Tf({library:e,loadStartMs:D,loadEndMs:D})):D.gapiLoader_.load("gapi.iframes",t,H)},oVv=function(D,t,H,e,V,b){var a=!1;
a=a===void 0?!1:a;UO3(D,v_(t.ownerDocument)).then(function(w){var h=w.library;D.gapiIframesResolver_.resolve(h);w=D.gapiPickerIframeResolver_;var K=w.resolve,N=a;N=N===void 0?!1:N;var k={};k["host-message-handler"]=H;D.hostMessageHandlerInternal_=k;var T=_.IK(e);T=_.IK(T);T=_.kY(_.No(_.Kx(new _.eP,T.scheme_),T.JSC$10036_domain_),T.JSC$10036_port_).toString();D.origin_=T;T=(new d26).setUrl(e);T.JSC$10051_obj_.where=t;T.JSC$10051_obj_.allowPost=N;T.JSC$10051_obj_.messageHandlers=k;N=_.RD("makeWhiteListIframesFilter",
h)([D.origin_]);T.JSC$10051_obj_.messageHandlersFilter=N;V!=null&&(T.JSC$10051_obj_.id=V);b!=null&&(T.JSC$10051_obj_.rpctoken=b);N=pna(T);N.JSC$10048_obj_.style={display:"block","min-width":"100%",width:"1px"};N.JSC$10048_obj_.height="100%";pna(T).value().allow="camera 'src' "+D.origin_;h=h.getContext().openChild(T.value());K.call(w,h)},function(w){D.gapiIframesResolver_.reject(w);
D.gapiPickerIframeResolver_.reject(w)});
return D.gapiPickerIframeResolver_.promise},Pga=function(D,t){return _.vl([D.gapiIframesResolver_.promise,
D.gapiPickerIframeResolver_.promise]).then(function(H){var e=_.F(H);H=e.next().value;return(e=e.next().value)?e.send("picker-message-handler",t,void 0,_.RD("makeWhiteListIframesFilter",H)([D.origin_])):_.Aj(Error("Za"))})};
jP$.prototype.disposeInternal=function(){nVo(this);_.mg.prototype.disposeInternal.call(this)};
var nVo=function(D){D.gapiPickerIframeResolver_.promise.then(function(t){t&&(t.unregister("host-message-handler"),delete D.hostMessageHandlerInternal_["host-message-handler"])})};var CgQ=function(){this.JSC$10138_nextId=0};var MEm=function(D,t){switch(D.action){case "select-contacts":D=mOQ(D.contacts);break;case "visibility":D=D.visible;var H=new TT;D=_.vg(H,1,7).setVisible(D);H={};H["iframe-command"]=D.serialize();D=H;break;default:D=null}return D?Pga(t,D):_.Tf()},mOQ=function(D){if(!D||D.length==0)return null;
var t=new TT;_.vg(t,1,11);var H=new CgQ;D.forEach(function(e){if(e.email){var V=new mN;V=_.Is(V,2,e.name?e.name:e.email);var b=new SYm;e=_.vQ$(b,1,_.jb,e.email,_.OF);e=_.oE(V,27,e);V=new CMa;b=":"+(H.JSC$10138_nextId++).toString(36);V=_.Is(V,1,b);V=_.vg(V,2,12);e=_.oE(e,1,V)}else e=null;e&&rT(t,7,mN,e)});
D={};D["iframe-command"]=t.serialize();return D};_.Sqn=function(){if(DZ$){var D=/Windows NT ([0-9.]+)/;return(D=D.exec(_.TV()))?D[1]:"0"}return _.zQD?(D=/1[0|1][_.][0-9_.]+/,(D=D.exec(_.TV()))?D[0].replace(/_/g,"."):"10"):XbX?(D=/Android\s+([^\);]+)(\)|;)/,(D=D.exec(_.TV()))?D[1]:""):HhD||eb6||VyV?(D=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(D=D.exec(_.TV()))?D[1].replace(/_/g,"."):""):""}();var II;II=function(D){return(D=D.exec(_.TV()))?D[1]:""};
_.XeV=function(){if(_.TE)return II(/Firefox\/([0-9.]+)/);if(_.Et||eE||QUk)return sLV;if(_.cg){if(_.SV()||_.UuX()){var D=II(/CriOS\/([0-9.]+)/);if(D)return D}return II(/Chrome\/([0-9.]+)/)}if(_.di&&!_.SV())return II(/Version\/([0-9.]+)/);if(dQk||xQD){if(D=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.TV()))return D[1]+"."+D[2]}else if(Nz6)return(D=II(/Android\s+([0-9.]+)/))?D:II(/Version\/([0-9.]+)/);return""}();var f4v=function(){};
_.ak(f4v);f4v.prototype.nextId_=0;_.Qr=function(D){return":"+(D.nextId_++).toString(36)};var yr=function(D){_.J2.call(this);this.JSC$10146_dom_=D||mJ();this.JSC$10146_id_=null;this.inDocument_=!1;this.JSC$10146_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Zj(yr,_.J2);yr.prototype.idGenerator_=f4v.getInstance();yr.prototype.getId=function(){return this.JSC$10146_id_||(this.JSC$10146_id_=_.Qr(this.idGenerator_))};
yr.prototype.getElement=function(){return this.JSC$10146_element_};
var By=function(D){D.googUiComponentHandler_||(D.googUiComponentHandler_=new _.GA(D));return D.googUiComponentHandler_},LYv=function(D,t){if(D==t)throw Error("$a");
var H;if(H=t&&D.parent_&&D.JSC$10146_id_){H=D.parent_;var e=D.JSC$10146_id_;H=H.childIndex_&&e?_.J$.get(H.childIndex_,e)||null:null}if(H&&D.parent_!=t)throw Error("$a");D.parent_=t;yr.superClass_.setParentEventTarget.call(D,t)};
yr.prototype.setParentEventTarget=function(D){if(this.parent_&&this.parent_!=D)throw Error("ab");yr.superClass_.setParentEventTarget.call(this,D)};
yr.prototype.JSC$10148_createDom=function(){this.JSC$10146_element_=this.JSC$10146_dom_.createElement("DIV")};
yr.prototype.render=function(D){Ay9(this,D)};
var Ay9=function(D,t,H){if(D.inDocument_)throw Error("bb");D.JSC$10146_element_||D.JSC$10148_createDom();t?t.insertBefore(D.JSC$10146_element_,H||null):D.JSC$10146_dom_.JSC$9330_document_.body.appendChild(D.JSC$10146_element_);D.parent_&&!D.parent_.inDocument_||D.enterDocument()};
_.q=yr.prototype;_.q.decorate=function(D){if(this.inDocument_)throw Error("bb");if(D&&this.canDecorate(D)){this.wasDecorated_=!0;var t=_.pW(D);this.JSC$10146_dom_&&this.JSC$10146_dom_.JSC$9330_document_==t||(this.JSC$10146_dom_=mJ(D));this.decorateInternal(D);this.enterDocument()}else throw Error("cb");};
_.q.canDecorate=function(){return!0};
_.q.decorateInternal=function(D){this.JSC$10146_element_=D};
_.q.enterDocument=function(){this.inDocument_=!0;gV6(this,function(D){!D.inDocument_&&D.getElement()&&D.enterDocument()})};
_.q.exitDocument=function(){gV6(this,function(D){D.inDocument_&&D.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.q.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);gV6(this,function(D){D.dispose()});
!this.wasDecorated_&&this.JSC$10146_element_&&_.UH(this.JSC$10146_element_);this.parent_=this.model_=this.JSC$10146_element_=this.childIndex_=this.children_=null;yr.superClass_.disposeInternal.call(this)};
_.q.getModel=function(){return this.model_};
_.q.addChild=function(D,t){var H=this.children_?this.children_.length:0;if(D.inDocument_&&(t||!this.inDocument_))throw Error("bb");if(H<0||H>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);D.parent_==this?(_.J$.set(this.childIndex_,D.getId(),D),_.vk(this.children_,D)):_.J$.add(this.childIndex_,D.getId(),D);LYv(D,this);_.XkV(this.children_,H,0,D);D.inDocument_&&this.inDocument_&&D.parent_==this?(t=this.getContentElement(),
(t.childNodes[H]||null)!=D.getElement()&&(D.getElement().parentElement==t&&t.removeChild(D.getElement()),H=t.childNodes[H]||null,t.insertBefore(D.getElement(),H))):t?(this.JSC$10146_element_||this.JSC$10148_createDom(),H=this.children_?this.children_[H+1]||null:null,Ay9(D,this.getContentElement(),H?H.JSC$10146_element_:null)):this.inDocument_&&!D.inDocument_&&D.JSC$10146_element_&&D.JSC$10146_element_.parentNode&&D.JSC$10146_element_.parentNode.nodeType==1&&D.enterDocument()};
_.q.getContentElement=function(){return this.JSC$10146_element_};
var gV6=function(D,t){D.children_&&D.children_.forEach(t,void 0)};
yr.prototype.removeChild=function(D,t){if(D){var H=typeof D==="string"?D:D.getId();D=this.childIndex_&&H?_.J$.get(this.childIndex_,H)||null:null;H&&D&&(_.J$.remove(this.childIndex_,H),_.vk(this.children_,D),t&&(D.exitDocument(),D.JSC$10146_element_&&_.UH(D.JSC$10146_element_)),LYv(D,null))}if(!D)throw Error("eb");return D};_.Zj(Whk,uc$);_.Zj(hXD,uc$);var Jyw;_.J$.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var YqV=function(D,t){t?D.setAttribute("role",t):D.removeAttribute("role")},za=function(D,t,H){Array.isArray(H)&&(H=H.join(" "));
var e="aria-"+t;H===""||H==void 0?(Jyw||(H={},Jyw=(H.atomic=!1,H.autocomplete="none",H.dropeffect="none",H.haspopup=!1,H.live="off",H.multiline=!1,H.multiselectable=!1,H.orientation="vertical",H.readonly=!1,H.relevant="additions text",H.required=!1,H.sort="none",H.busy=!1,H.disabled=!1,H.hidden=!1,H.invalid="false",H)),H=Jyw,t in H?D.setAttribute(e,H[t]):D.removeAttribute(e)):D.setAttribute(e,H)};var l4V;_.Dh=function(D,t,H){_.J2.call(this);this.target=D;this.handle=t||D;this.limits=H||new ys(NaN,NaN,NaN,NaN);this.JSC$10151_document_=_.pW(D);this.JSC$10151_eventHandler_=new _.GA(this);_.c1(this,this.JSC$10151_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;_.fz(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=l4V};
_.Zj(_.Dh,_.J2);l4V=_.VA.document&&_.VA.document.documentElement&&!!_.VA.document.documentElement.setCapture&&!!_.VA.document.releaseCapture;_.vVv=function(D,t){D.hysteresisDistanceSquared_=Math.pow(t,2)};
_.q=_.Dh.prototype;_.q.setEnabled=function(D){this.enabled_=D};
_.q.disposeInternal=function(){_.Dh.superClass_.disposeInternal.call(this);_.g8(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10151_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10151_document_.releaseCapture();this.handle=this.target=null};
_.q.startDrag=function(D){var t=D.type=="mousedown";if(!this.enabled_||this.dragging_||t&&(!D.isButton(0)||_.zQD&&D.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new tC("start",this,D.clientX,D.clientY,D)))this.dragging_=!0,t&&D.preventDefault();else return;else t&&D.preventDefault();t=this.JSC$10151_document_;var H=t.documentElement,e=!this.useSetCapture_;this.JSC$10151_eventHandler_.listen(t,["touchmove","mousemove"],this.handleMove_,
{capture:e,passive:!1});this.JSC$10151_eventHandler_.listen(t,["touchend","mouseup"],this.endDrag,e);this.useSetCapture_?(H.setCapture(!1),this.JSC$10151_eventHandler_.listen(H,"losecapture",this.endDrag)):this.JSC$10151_eventHandler_.listen(v_(t),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10151_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,e);this.clientX=this.startX=D.clientX;this.clientY=this.startY=D.clientY;this.screenX=D.screenX;this.screenY=D.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=ot(mJ(this.JSC$10151_document_))}};
_.q.endDrag=function(D,t){this.JSC$10151_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10151_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new tC("end",this,D.clientX,D.clientY,D,pef(this,this.deltaX),dOV(this,this.deltaY),t||D.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.q.handleMove_=function(D){if(this.enabled_){var t=D.clientX-this.clientX,H=D.clientY-this.clientY;this.clientX=D.clientX;this.clientY=D.clientY;this.screenX=D.screenX;this.screenY=D.screenY;if(!this.dragging_){var e=this.startX-this.clientX,V=this.startY-this.clientY;if(e*e+V*V>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new tC("start",this,D.clientX,D.clientY,D)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(D);return}}H=xO3(this,t,H);t=H.x;H=H.y;this.dragging_&&this.dispatchEvent(new tC("beforedrag",
this,D.clientX,D.clientY,D,t,H))&&(RXo(this,D,t,H),D.preventDefault())}};
var xO3=function(D,t,H){var e=ot(mJ(D.JSC$10151_document_));t+=e.x-D.pageScroll.x;H+=e.y-D.pageScroll.y;D.pageScroll=e;D.deltaX+=t;D.deltaY+=H;return new _.lR(pef(D,D.deltaX),dOV(D,D.deltaY))};
_.Dh.prototype.onScroll_=function(D){var t=xO3(this,0,0);D.clientX=this.clientX;D.clientY=this.clientY;RXo(this,D,t.x,t.y)};
var RXo=function(D,t,H,e){D.target.style.left=H+"px";D.target.style.top=e+"px";D.dispatchEvent(new tC("drag",D,t.clientX,t.clientY,t,H,e))},pef=function(D,t){var H=D.limits;
D=isNaN(H.left)?null:H.left;H=isNaN(H.width)?0:H.width;return Math.min(D!=null?D+H:Infinity,Math.max(D!=null?D:-Infinity,t))},dOV=function(D,t){var H=D.limits;
D=isNaN(H.top)?null:H.top;H=isNaN(H.height)?0:H.height;return Math.min(D!=null?D+H:Infinity,Math.max(D!=null?D:-Infinity,t))};
_.Dh.prototype.isDragging=function(){return this.dragging_};
var tC=function(D,t,H,e,V,b,a){_.Xv.call(this,D);this.clientX=H;this.clientY=e;this.browserEvent=V;this.left=b!==void 0?b:t.deltaX;this.top=a!==void 0?a:t.deltaY};
_.Zj(tC,_.Xv);var HN=function(D){this.JSC$10158_map_=new Map;var t=arguments.length;if(t>1){if(t%2)throw Error("ma");for(var H=0;H<t;H+=2)this.set(arguments[H],arguments[H+1])}else D&&this.addAll(D)};
_.q=HN.prototype;_.q.getCount=function(){return this.JSC$10158_map_.size};
_.q.getValues=function(){return Array.from(this.JSC$10158_map_.values())};
_.q.getKeys=function(){return Array.from(this.JSC$10158_map_.keys())};
_.q.containsKey=function(D){return this.JSC$10158_map_.has(D)};
_.q.containsValue=function(D){return this.getValues().some(function(t){return t==D})};
_.q.equals=function(D,t){var H=this;t=t===void 0?function(e,V){return e===V}:t;
return this===D?!0:this.JSC$10158_map_.size!=D.getCount()?!1:this.getKeys().every(function(e){return t(H.JSC$10158_map_.get(e),D.get(e))})};
_.q.isEmpty=function(){return this.JSC$10158_map_.size==0};
_.q.clear=function(){this.JSC$10158_map_.clear()};
_.q.remove=function(D){return this.JSC$10158_map_.delete(D)};
_.q.get=function(D,t){return this.JSC$10158_map_.has(D)?this.JSC$10158_map_.get(D):t};
_.q.set=function(D,t){this.JSC$10158_map_.set(D,t);return this};
_.q.addAll=function(D){if(D instanceof HN){D=_.F(D.JSC$10158_map_);for(var t=D.next();!t.done;t=D.next()){var H=_.F(t.value);t=H.next().value;H=H.next().value;this.JSC$10158_map_.set(t,H)}}else if(D)for(D=_.F(Object.entries(D)),t=D.next();!t.done;t=D.next())H=_.F(t.value),t=H.next().value,H=H.next().value,this.JSC$10158_map_.set(t,H)};
_.q.forEach=function(D,t){var H=this;t=t===void 0?this:t;this.JSC$10158_map_.forEach(function(e,V){return D.call(t,e,V,H)})};
_.q.clone=function(){return new HN(this)};(function(){for(var D=["ms","moz","webkit","o"],t,H=0;t=D[H]&&!_.VA.requestAnimationFrame;++H)_.VA.requestAnimationFrame=_.VA[t+"RequestAnimationFrame"],_.VA.cancelAnimationFrame=_.VA[t+"CancelAnimationFrame"]||_.VA[t+"CancelRequestAnimationFrame"];if(!_.VA.requestAnimationFrame){var e=0;_.VA.requestAnimationFrame=function(V){var b=(new Date).getTime(),a=Math.max(0,16-(b-e));e=b+a;return _.VA.setTimeout(function(){V(b+a)},a)};
_.VA.cancelAnimationFrame||(_.VA.cancelAnimationFrame=function(V){clearTimeout(V)})}})();
var uUw=[[],[]],WY6=0,I4n=!1,QPn=0,Bkm=function(D,t){var H=QPn++,e={measureTask:{id:H,fn:D.measure,context:t},mutateTask:{id:H,fn:D.mutate,context:t},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(e.args||(e.args=[]),e.args.length=0,e.args.push.apply(e.args,arguments),e.args.push(e.state)):e.args&&e.args.length!=0?(e.args[0]=e.state,e.args.length=1):e.args=[e.state];e.isScheduled||(e.isScheduled=!0,uUw[WY6].push(e));I4n||(I4n=!0,window.requestAnimationFrame(yya))}},yya=
function(){I4n=!1;
var D=uUw[WY6],t=D.length;WY6=(WY6+1)%2;for(var H,e=0;e<t;++e){H=D[e];var V=H.measureTask;H.isScheduled=!1;V.fn&&V.fn.apply(V.context,H.args)}for(e=0;e<t;++e)H=D[e],V=H.mutateTask,H.isScheduled=!1,V.fn&&V.fn.apply(V.context,H.args),H.state={};D.length=0};var zX6=_.zk(["about:blank"]),Dzf=_.zk(["javascript:undefined"]),t4n=_.E5(zX6);_.X7(t4n);var H7V=_.E5(Dzf);_.X7(H7V);var eg=function(D){_.J2.call(this);this.JSC$10164_element_=D;this.listenKeyIn_=_.fz(this.JSC$10164_element_,"focus",this,!0);this.listenKeyOut_=_.fz(this.JSC$10164_element_,"blur",this,!0)};
_.Zj(eg,_.J2);eg.prototype.handleEvent=function(D){var t=new _.fr(D.event_);t.type=D.type=="focusin"||D.type=="focus"?"focusin":"focusout";this.dispatchEvent(t)};
eg.prototype.disposeInternal=function(){eg.superClass_.disposeInternal.call(this);MT(this.listenKeyIn_);MT(this.listenKeyOut_);delete this.JSC$10164_element_};var eH6=function(D,t){this.JSC$10167_element_=D;this.JSC$10167_dom_=t};var VB=function(D,t){yr.call(this,t);this.useIframeMask_=!!D;this.lastFocus_=null;this.resizeBackgroundTask_=Bkm({mutate:this.resizeBackground_},this);Bkm({mutate:this.updateModalAndBackground_},this)};
_.Zj(VB,yr);_.q=VB.prototype;_.q.focusHandler_=null;_.q.visible_=!1;_.q.bgEl_=null;_.q.bgIframeEl_=null;_.q.tabCatcherElement_=null;_.q.backwardTabWrapInProgress_=!1;_.q.getCssClass=function(){return"goog-modalpopup"};
_.q.getBackgroundElement=function(){return this.bgEl_};
_.q.JSC$10148_createDom=function(){VB.superClass_.JSC$10148_createDom.call(this);var D=this.getElement(),t=KK(this.getCssClass()).split(" ");qo(D,t);D.tabIndex=0;_.B1(D,!1);V4w(this);b7w(this)};
var V4w=function(D){if(D.useIframeMask_&&!D.bgIframeEl_){var t=D.JSC$10146_dom_.JSC$9332_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.zF(t,t4n);D.bgIframeEl_=t;D.bgIframeEl_.className=D.getCssClass()+"-bg";_.B1(D.bgIframeEl_,!1);B4f(D.bgIframeEl_,0)}D.bgEl_||(D.bgEl_=D.JSC$10146_dom_.JSC$9332_createDom("DIV",D.getCssClass()+"-bg"),_.B1(D.bgEl_,!1))},b7w=function(D){D.tabCatcherElement_||(D.tabCatcherElement_=D.JSC$10146_dom_.createElement("SPAN"),_.B1(D.tabCatcherElement_,
!1),D.tabCatcherElement_.tabIndex=0,D.tabCatcherElement_.style.position="absolute")};
_.q=VB.prototype;_.q.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.q.canDecorate=function(D){return!!D&&D.tagName=="DIV"};
_.q.decorateInternal=function(D){VB.superClass_.decorateInternal.call(this,D);D=KK(this.getCssClass()).split(" ");qo(this.getElement(),D);V4w(this);b7w(this);this.getElement().tabIndex=0;_.B1(this.getElement(),!1)};
_.q.enterDocument=function(){this.bgIframeEl_&&_.ut(this.bgIframeEl_,this.getElement());_.ut(this.bgEl_,this.getElement());VB.superClass_.enterDocument.call(this);_.Wr(this.tabCatcherElement_,this.getElement());this.focusHandler_=new eg(this.JSC$10146_dom_.JSC$9330_document_);By(this).listen(this.focusHandler_,"focusin",this.onFocus);qpB(this,!1)};
_.q.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.qc(this.focusHandler_);VB.superClass_.exitDocument.call(this);_.UH(this.bgIframeEl_);_.UH(this.bgEl_);_.UH(this.tabCatcherElement_)};
_.q.setVisible=function(D){if(D!=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_&&qpB(this,D),D){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10146_dom_.JSC$9330_document_.activeElement}catch(V){}this.updateModalAndBackground_();By(this).listen(this.JSC$10146_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10146_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);FE9(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)mV(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){By(this).unlisten(this.JSC$10146_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10146_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)mV(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var t=this.JSC$10146_dom_,H=t.JSC$9330_document_.body,e=t.JSC$9330_document_.activeElement||H;if(!this.lastFocus_||this.lastFocus_==H){this.lastFocus_=null;break a}(e==H||t.contains(this.getElement(),e))&&this.lastFocus_.focus()}catch(V){}this.lastFocus_=
null}}};
var qpB=function(D,t){D.modalAriaVisibilityHelper_||(D.modalAriaVisibilityHelper_=new eH6(D.JSC$10146_element_,D.JSC$10146_dom_));D=D.modalAriaVisibilityHelper_;if(t){D.hiddenElements_||(D.hiddenElements_=[]);t=D.JSC$10167_dom_.getChildren(D.JSC$10167_dom_.JSC$9330_document_.body);for(var H=0;H<t.length;H++){var e=t[H],V;if(V=e!=D.JSC$10167_element_)V=e.getAttribute("aria-hidden"),V=!(V==null||V==void 0?0:String(V));V&&(za(e,"hidden",!0),D.hiddenElements_.push(e))}}else if(D.hiddenElements_){for(t=
0;t<D.hiddenElements_.length;t++)D.hiddenElements_[t].removeAttribute("aria-hidden");D.hiddenElements_=null}};
VB.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var FE9=function(D,t){D.bgIframeEl_&&_.B1(D.bgIframeEl_,t);D.bgEl_&&_.B1(D.bgEl_,t);_.B1(D.getElement(),t);_.B1(D.tabCatcherElement_,t)};
_.q=VB.prototype;_.q.onShow=function(){this.dispatchEvent("show")};
_.q.onHide=function(){FE9(this,!1);this.dispatchEvent("hide")};
_.q.isVisible=function(){return this.visible_};
_.q.focus=function(){this.focusElement_()};
_.q.resizeBackground_=function(){this.bgIframeEl_&&_.B1(this.bgIframeEl_,!1);this.bgEl_&&_.B1(this.bgEl_,!1);var D=this.JSC$10146_dom_.JSC$9330_document_;var t=_.U5(v_(this.JSC$10146_dom_.JSC$9330_document_)||window);var H=Math.max(t.width,Math.max(D.body.scrollWidth,D.documentElement.scrollWidth));D=Math.max(t.height,Math.max(D.body.scrollHeight,D.documentElement.scrollHeight));this.bgIframeEl_&&(_.B1(this.bgIframeEl_,!0),_.Wi9(this.bgIframeEl_,H,D));this.bgEl_&&(_.B1(this.bgEl_,!0),_.Wi9(this.bgEl_,
H,D))};
_.q.reposition=function(){var D;if(_.uFv(this.getElement())=="fixed")var t=D=0;else t=ot(this.JSC$10146_dom_),D=t.x,t=t.y;var H=Qv3(this.getElement());var e=_.U5(v_(this.JSC$10146_dom_.JSC$9330_document_)||window);D=Math.max(D+e.width/2-H.width/2,0);t=Math.max(t+e.height/2-H.height/2,0);DE(this.getElement(),D,t);DE(this.tabCatcherElement_,D,t)};
_.q.onFocus=function(D){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():D.target==this.tabCatcherElement_&&d8(this.focusElement_,0,this)};
_.q.focusElement_=function(){try{this.getElement().focus()}catch(D){}};
_.q.disposeInternal=function(){_.qc(this.popupShowTransition_);this.popupShowTransition_=null;_.qc(this.popupHideTransition_);this.popupHideTransition_=null;_.qc(this.bgShowTransition_);this.bgShowTransition_=null;_.qc(this.bgHideTransition_);this.bgHideTransition_=null;VB.superClass_.disposeInternal.call(this)};var lz=function(D,t,H){VB.call(this,t,H);this.JSC$10177_class_=D||"modal-dialog";this.buttons_=(new b5).addButton(axV,!0).addButton(w$4,!1,!0)};
_.Zj(lz,VB);_.q=lz.prototype;_.q.escapeToCancel_=!0;_.q.hasTitleCloseButton_=!0;_.q.modal_=!0;_.q.draggable_=!0;_.q.backgroundElementOpacity_=.5;_.q.title_="";_.q.JSC$10179_dragger_=null;_.q.JSC$10179_disposeOnHide_=!1;_.q.titleEl_=null;_.q.titleTextEl_=null;_.q.titleTextId_=null;_.q.titleCloseEl_=null;_.q.contentEl_=null;_.q.buttonEl_=null;_.q.getCssClass=function(){return this.JSC$10177_class_};
_.q.setTitle=function(D){this.title_=D;this.titleTextEl_&&_.Qs(this.titleTextEl_,D)};
_.q.getTitle=function(){return this.title_};
_.q.getContent=function(){return""};
_.q.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var Z7f=function(D){D.getElement()||D.render();return D.getElement()};
lz.prototype.getBackgroundElement=function(){this.getElement()||this.render();return lz.superClass_.getBackgroundElement.call(this)};
var sRf=function(D,t){D.backgroundElementOpacity_=t;D.getElement()&&(t=D.getBackgroundElement())&&B4f(t,D.backgroundElementOpacity_)};
lz.prototype.setDraggable=function(D){this.draggable_=D;hHn(this,D&&this.inDocument_)};
lz.prototype.handleDrag=function(){};
var hHn=function(D,t){var H=KK(D.JSC$10177_class_+"-title-draggable").split(" ");D.getElement()&&(t?qo(D.titleEl_,H):YPn(D.titleEl_,H));t&&!D.JSC$10179_dragger_?(t=new _.Dh(D.getElement(),D.titleEl_),D.JSC$10179_dragger_=t,qo(D.titleEl_,H),_.fz(D.JSC$10179_dragger_,"start",D.setDraggerLimits_,!1,D),_.fz(D.JSC$10179_dragger_,"drag",D.handleDrag,!1,D)):!t&&D.JSC$10179_dragger_&&(D.JSC$10179_dragger_.dispose(),D.JSC$10179_dragger_=null)};
_.q=lz.prototype;
_.q.JSC$10148_createDom=function(){lz.superClass_.JSC$10148_createDom.call(this);var D=this.getElement(),t=this.JSC$10146_dom_;this.titleTextId_=this.getId();var H=this.getId()+".contentEl";this.titleEl_=t.JSC$9332_createDom("DIV",this.JSC$10177_class_+"-title",this.titleTextEl_=t.JSC$9332_createDom("SPAN",{className:this.JSC$10177_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=t.JSC$9332_createDom("SPAN",this.JSC$10177_class_+"-title-close"));PYf(D,this.titleEl_,this.contentEl_=
t.JSC$9332_createDom("DIV",{className:this.JSC$10177_class_+"-content",id:H}),this.buttonEl_=t.JSC$9332_createDom("DIV",this.JSC$10177_class_+"-buttons"));YqV(this.titleTextEl_,"heading");YqV(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;za(this.titleCloseEl_,"label","Close");YqV(D,"dialog");za(D,"labelledby",this.titleTextId_||"");_.B1(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(D=this.buttons_,D.JSC$10180_element_=this.buttonEl_,D.render());_.B1(this.buttonEl_,!!this.buttons_);
sRf(this,this.backgroundElementOpacity_)};
_.q.decorateInternal=function(D){lz.superClass_.decorateInternal.call(this,D);D=this.getElement();var t=this.JSC$10177_class_+"-content";this.contentEl_=lt(document,null,t,D)[0];this.contentEl_||(this.contentEl_=this.JSC$10146_dom_.JSC$9332_createDom("DIV",t),D.appendChild(this.contentEl_));t=this.JSC$10177_class_+"-title";var H=this.JSC$10177_class_+"-title-text",e=this.JSC$10177_class_+"-title-close";(this.titleEl_=lt(document,null,t,D)[0])?(this.titleTextEl_=lt(document,null,H,this.titleEl_)[0],
this.titleCloseEl_=lt(document,null,e,this.titleEl_)[0]):(this.titleEl_=this.JSC$10146_dom_.JSC$9332_createDom("DIV",t),D.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=vQB(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.pJ("SPAN",{className:H,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;za(D,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10146_dom_.JSC$9332_createDom("SPAN",e),this.titleEl_.appendChild(this.titleCloseEl_));_.B1(this.titleCloseEl_,this.hasTitleCloseButton_);t=this.JSC$10177_class_+"-buttons";(this.buttonEl_=lt(document,null,t,D)[0])?(this.buttons_=new b5(this.JSC$10146_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10146_dom_.JSC$9332_createDom("DIV",t),D.appendChild(this.buttonEl_),this.buttons_&&(D=this.buttons_,D.JSC$10180_element_=this.buttonEl_,D.render()),_.B1(this.buttonEl_,
!!this.buttons_));sRf(this,this.backgroundElementOpacity_)};
_.q.enterDocument=function(){lz.superClass_.enterDocument.call(this);By(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);By(this).listen(this.buttonEl_,"click",this.onButtonClick_);hHn(this,this.draggable_);By(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var D=this.getElement();YqV(D,"dialog");this.titleTextEl_.id!==""&&za(D,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){D=this.JSC$10146_dom_;
var t=this.getBackgroundElement();D.removeNode(this.bgIframeEl_);D.removeNode(t)}this.isVisible()&&qpB(this,!1)}};
_.q.exitDocument=function(){this.isVisible()&&this.setVisible(!1);hHn(this,!1);lz.superClass_.exitDocument.call(this)};
_.q.setVisible=function(D){D!=this.isVisible()&&(this.inDocument_||this.render(),lz.superClass_.setVisible.call(this,D))};
_.q.onShow=function(){lz.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.q.onHide=function(){lz.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10179_disposeOnHide_&&this.dispose()};
_.q.setDraggerLimits_=function(){var D=this.JSC$10146_dom_.JSC$9330_document_,t=_.U5(v_(D)||window),H=Math.max(D.body.scrollWidth,t.width);D=Math.max(D.body.scrollHeight,t.height);var e=Qv3(this.getElement());_.uFv(this.getElement())=="fixed"?this.JSC$10179_dragger_.limits=new ys(0,0,Math.max(0,t.width-e.width),Math.max(0,t.height-e.height)):this.JSC$10179_dragger_.limits=new ys(0,0,H-e.width,D-e.height)};
_.q.onTitleCloseClick_=function(){G0V(this)};
var G0V=function(D){if(D.hasTitleCloseButton_){var t=D.buttons_,H=t&&t.cancelButton_;H?(t=t.get(H),D.dispatchEvent(new qM(H,t))&&D.setVisible(!1)):D.setVisible(!1)}},Ew4=function(D){D.hasTitleCloseButton_=!1;
D.titleCloseEl_&&_.B1(D.titleCloseEl_,D.hasTitleCloseButton_)};
lz.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;lz.superClass_.disposeInternal.call(this)};
lz.prototype.onButtonClick_=function(D){a:{for(D=D.target;D!=null&&D!=this.buttonEl_;){if(D.tagName=="BUTTON")break a;D=D.parentNode}D=null}if(D&&!D.disabled){D=D.name;var t=this.buttons_.get(D);this.dispatchEvent(new qM(D,t))&&this.setVisible(!1)}};
lz.prototype.onKey_=function(D){var t=!1,H=!1,e=this.buttons_,V=D.target;if(D.type=="keydown")if(this.escapeToCancel_&&D.keyCode==27){var b=e&&e.cancelButton_;V=V.tagName=="SELECT"&&!V.disabled;b&&!V?(H=!0,t=e.get(b),t=this.dispatchEvent(new qM(b,t))):V||(t=!0)}else{if(D.keyCode==9&&D.shiftKey&&V==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(N){}d8(this.resetBackwardTabWrap_,0,this)}}else if(D.keyCode==13){if(V.tagName=="BUTTON"&&!V.disabled)b=V.name;
else if(V==this.titleCloseEl_)G0V(this);else if(e){var a=e.defaultButton_,w;if(w=a)a:{w=oK("BUTTON",e.JSC$10180_element_);for(var h,K=0;h=w[K];K++)if(h.name==a||h.id==a){w=h;break a}w=null}V=(V.tagName=="TEXTAREA"||V.tagName=="SELECT"||V.tagName=="A")&&!V.disabled;!w||w.disabled||V||(b=a)}b&&e&&(H=!0,t=this.dispatchEvent(new qM(b,String(e.get(b)))))}else V!=this.titleCloseEl_||D.keyCode!=32&&D.key!=" "||G0V(this);if(t||H)D.stopPropagation(),D.preventDefault();t&&this.setVisible(!1)};
var qM=function(D,t){this.type="dialogselect";this.key=D;this.caption=t};
_.Zj(qM,_.Xv);var b5=function(D){HN.call(this);D||mJ();this.cancelButton_=this.JSC$10180_element_=this.defaultButton_=null};
_.Zj(b5,HN);_.q=b5.prototype;_.q.clear=function(){HN.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.q.set=function(D,t,H,e){HN.prototype.set.call(this,D,t);H&&(this.defaultButton_=D);e&&(this.cancelButton_=D);return this};
_.q.addButton=function(D,t,H){return this.set(D.key,D.caption,t,H)};
_.q.render=function(){if(this.JSC$10180_element_){_.Fq(this.JSC$10180_element_,OX3);var D=mJ(this.JSC$10180_element_);this.forEach(function(t,H){t=D.JSC$9332_createDom("BUTTON",{name:H},t);H==this.defaultButton_&&(t.className="goog-buttonset-default");this.JSC$10180_element_.appendChild(t)},this)}};
_.q.decorate=function(D){if(D&&D.nodeType==1){this.JSC$10180_element_=D;D=oK("BUTTON",this.JSC$10180_element_);for(var t,H,e,V=0;t=D[V];V++)if(H=t.name||t.id,e=vQB(t)||t.value,H){var b=V==0;this.set(H,e,b,t.name=="cancel");b&&_.qX(t,"goog-buttonset-default")}}};
_.q.getElement=function(){return this.JSC$10180_element_};
var axV={key:"ok",caption:"OK"},w$4={key:"cancel",caption:"Cancel"},KE6={key:"yes",caption:"Yes"},NTQ={key:"no",caption:"No"},k0V={key:"save",caption:"Save"},TTo={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new b5).addButton(axV,!0,!0),(new b5).addButton(axV,!0).addButton(w$4,!1,!0),(new b5).addButton(KE6,!0).addButton(NTQ,!1,!0),(new b5).addButton(KE6).addButton(NTQ,!0).addButton(w$4,!1,!0),(new b5).addButton(TTo).addButton(k0V).addButton(w$4,!0,!0));_.Zj(GrV,lz);_.Zj(EVV,pN);var cpQ=_.zk(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),jR9=_.zk(["//apis.google.com/js/rpc.js"]),ry$=_.E5(cpQ),iXD=_.E5(jR9),NkD=null;var dV=function(D,t){_.J2.call(this);this.JSC$10189_element_=D;D=_.H$(this.JSC$10189_element_)?this.JSC$10189_element_:this.JSC$10189_element_?this.JSC$10189_element_.body:null;this.isRtl_=!!D&&_.zgv(D);this.listenKey_=_.fz(this.JSC$10189_element_,_.Ka?"DOMMouseScroll":"mousewheel",this,t)};
_.Zj(dV,_.J2);dV.prototype.handleEvent=function(D){var t=0,H=0,e=D.event_;e.type=="mousewheel"?(D=$zv(-e.wheelDelta),e.wheelDeltaX!==void 0?(t=$zv(-e.wheelDeltaX),H=$zv(-e.wheelDeltaY)):H=D):(D=e.detail,D>100?D=3:D<-100&&(D=-3),e.axis!==void 0&&e.axis===e.HORIZONTAL_AXIS?t=D:H=D);typeof this.maxDeltaX_==="number"&&(t=_.A8(t,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(H=_.A8(H,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(t=-t);t=new i7B(D,e,t,H);this.dispatchEvent(t)};
var $zv=function(D){return _.NG&&(_.zQD||ty3)&&D%40!=0?D:D/40};
dV.prototype.disposeInternal=function(){dV.superClass_.disposeInternal.call(this);MT(this.listenKey_);this.listenKey_=null};
var i7B=function(D,t,H,e){_.fr.call(this,t);this.type="mousewheel";this.detail=D;this.deltaX=H;this.deltaY=e};
_.Zj(i7B,_.fr);_.Vd=function(D){var t="instance_";if(D.instance_&&D.hasOwnProperty(t))return D.instance_;t=new D;return D.instance_=t};var $Ok;var rpQ=_.zk(["https://about:blank"]),O7f=_.zk(['javascript:""']),Uza=_.zk(["about:blank"]);_.Zj(zx,GrV);_.q=zx.prototype;_.q.JSC$10197_url_="";_.q.JSC$10197_iframe_=null;_.q.iframeLoaded_=!1;_.q.loadedFired_=!1;_.q.callback_=function(){};
_.q.enterDocument=function(){zx.superClass_.enterDocument.call(this);cyk(this.getBackgroundElement(),By(this))};
_.q.render=function(D){var t=this;zx.superClass_.render.call(this,D);this.useGapi_?UO3(this.iframeManager_,window).then(function(){return owV(t)}).then(null,function(){t.callback_({action:"error"})}):Pmf(this)};
var owV=function(D){var t=D.JSC$10146_dom_.JSC$9332_createDom("div",["picker-dialog-content","picker-frame"]);_.B1(t,!1);D.getContentElement().appendChild(t);return oVv(D.iframeManager_,t,function(H){var e=xNQ(H["iframe-command"]);switch(e.getCommand()){case 1:H=D.callback_;e=_.sq(e,k1,2);var V="";switch(e.getStatus()){case 2:V="cancel";break;case 1:V="picked";break;case 3:V="error"}var b=_.wV(e,mN,2,_.Zl(UZ$));e=b.length===0?{action:V}:qq9(b,V,_.sq(e,vh4,7));H.call(D,e);D.setVisible(!1);break;case 4:Ew4(D);
D.callback_({action:"loaded"});break;case 7:case 8:H=D.callback_;a:{V=e.getCommand();b=_.sq(e,k1,2);switch(V){case 7:V="uploadScheduled";break;case 8:V="uploadStateChange";break;default:e={};break a}e=_.wV(b,mN,2,_.Zl(UZ$));if(e.length===0)e={action:V};else{var a=_.sq(b,vh4,7);b=a&&_.La(a,1);a=IUm(a);e=Bio(e,V,b,a)}}H.call(D,e)}},D.JSC$10197_url_,D.targetId_,D.rpcToken_).then(function(H){D.JSC$10197_iframe_=H.getIframeEl();
nwo(D);_.B1(D.JSC$10197_iframe_.parentElement,!0);_.qX(D.getElement(),"picker-dialog");Cmw(D);return H})},Pmf=function(D){D.JSC$10197_iframe_=D.JSC$10146_dom_.JSC$9332_createDom("IFRAME",{id:D.targetId_,
name:D.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.zF(D.JSC$10197_iframe_,mz4(D));_.qX(D.getElement(),"picker-dialog");D.getContentElement().appendChild(D.JSC$10197_iframe_);By(D).listen(D.JSC$10197_iframe_,"load",function(){return void nwo(D)});
D.JSC$10197_iframe_.src=D.JSC$10197_url_;Cmw(D)},SpV=function(D){M4n(D,(0,_.Mc)(function(t){t.setAuthToken(this.targetId_,this.rpcToken_)},D))},Cmw=function(D){var t=_.Qh(_.IK(D.JSC$10197_url_),"title");
t&&D.setTitle(t)},mz4=function(D){return _.iKV("Internet Explorer")>=7&&_.qu(D.JSC$10197_url_,"https")?_.E5(rpQ):_.Et?_.E5(O7f):_.E5(Uza)},nwo=function(D){SpV(D);
D.iframeLoaded_=!0;D.JSC$10197_iframe_.tabIndex=0;D.isVisible()&&D.focus()};
zx.prototype.handleKeydown_=function(D){D.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),D.stopPropagation(),D.preventDefault())};
var M4n=function(D,t){var H=D.JSC$10195_gadgetsDomHelper_;krk(function(){t(H.getWindow().gadgets.rpc)},H)};
zx.prototype.setUrl=function(D){D=_.yh(new _.eP(D),"rpcService",this.targetId_);_.yh(D,"rpctoken",this.rpcToken_);_.je(D,"rpctoken="+this.rpcToken_);_.Kx(D,"https");this.JSC$10197_url_=D.toString();this.JSC$10197_iframe_&&(this.JSC$10197_iframe_.src=this.JSC$10197_url_)};
var X$v=function(D,t){D.callback_=t;M4n(D,(0,_.Mc)(function(H){H.register(this.targetId_,(0,_.Mc)(this.handlePickerAction_,this))},D))};
zx.prototype.handlePickerAction_=function(D){var t=D.action;t=="loaded"&&(this.loadedFired_=!0,fx6(this,new hXD(this.isVisible())),LEo(this),Ew4(this),By(this).unlisten(this.JSC$10146_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10197_iframe_.tabIndex=0);t!="picked"&&t!="cancel"||this.setVisible(!1);this.callback_(D)};
var LEo=function(D){D.JSC$10197_appId_&&fx6(D,new Whk(D.JSC$10197_appId_,window.location.protocol+"//"+window.location.host))};
zx.prototype.setRelayUrl=function(D){M4n(this,(0,_.Mc)(function(t){t.setRelayUrl(this.targetId_,D)},this))};
var fx6=function(D,t){D.useGapi_&&MEm(t,D.iframeManager_).then(null,function(){D.callback_({action:"error"})});
M4n(D,(0,_.Mc)(function(H){H.call(this.targetId_,"picker",null,t)},D))};
zx.prototype.resizePicker_=function(){var D=v_(this.JSC$10146_dom_.JSC$9330_document_)||window;if(_.Qh(_.IK(this.JSC$10197_url_),"ignoreLimits")=="true")D=new _.O5(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Qh(_.IK(this.JSC$10197_url_),"shadeDialog")=="true"){var t=Z7f(this);t=DNf(t);var H=_.U5(D);D=H.width-80;H=H.height-40;t&&(D-=t.left?t.left:0,D-=t.right?t.right:0,H-=t.top?t.top:0,H-=t.bottom?t.bottom:0);D=new _.O5(D>0?D:0,H>0?H:0)}else(t=this.preferredDialogWidth_)?(t=Math.max(320,
Math.min(1051,t)),(H=this.preferredDialogHeight_)||(H=_.U5(D).height*.85),H=Math.max(480,Math.min(650,H))):(t=_.U5(D),H=t.width*.618,H=H<t.height?Math.round(Math.max(480,Math.min(650,H*.85))):Math.round(Math.max(480,Math.min(650,t.height*.85))),t=Math.round(H/.618)),D=_.U5(D),t=Math.min(t,Math.max(D.width,320)),H=Math.min(H,Math.max(D.height,480)),D=new _.O5(t,H);_.Wi9(this.getContentElement(),D);this.reposition()};
zx.prototype.reposition=function(){if(_.Qh(_.IK(this.JSC$10197_url_),"shadeDialog")=="true"){var D=Qv3(this.getElement()),t=_.U5(this.JSC$10146_dom_.getWindow());D=Math.floor(t.width/2-D.width/2);t=Z7f(this);if(t=DNf(t)){var H=t.left?t.left:0;H+=t.right?t.right:0;D=Math.floor(D-H/2)}D=D>0?D:0;t=ot(this.JSC$10146_dom_).y;DE(this.getElement(),D,t)}else zx.superClass_.reposition.call(this)};
zx.prototype.setVisible=function(D){if(D!=this.isVisible()&&this.autoSizeDialog_){var t=this.JSC$10146_dom_.getWindow();D?(this.resizePicker_(),By(this).listen(t,"resize",this.resizePicker_),this.iframeLoaded_||By(this).listen(t,"keydown",this.handleKeydown_)):(By(this).unlisten(t,"resize",this.resizePicker_),this.iframeLoaded_||By(this).unlisten(t,"keydown",this.handleKeydown_))}zx.superClass_.setVisible.call(this,D);fx6(this,new hXD(D))};
zx.prototype.focus=function(){zx.superClass_.focus.call(this);if(this.JSC$10197_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10197_iframe_.focus()}catch(D){}};var p_=function(D,t){t=t===void 0?zx:t;pN.call(this,D);this.pickerConstructor=t;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(D=window.location.origin)||(D=window.location.protocol+"//"+window.location.host);D&&this.urlParamMap_.set("origin",D);this.postProcessors_=[]};
_.P(p_,EVV);p_.prototype.JSC$10202_disposeOnHide_=!1;
p_.prototype.build=function(){this.JSC$10103_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10103_appId_);this.getRelayUrl()||this.setRelayUrl(_.Ta(_.je(_.cy(_.IK(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var D=new this.pickerConstructor(ApV(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);D.JSC$10179_disposeOnHide_=this.JSC$10202_disposeOnHide_;
D.JSC$10197_appId_=this.JSC$10103_appId_;D.loadedFired_&&LEo(D);X$v(D,this.callback_);return D};
var gwf=function(D){D.urlParamMap_.set("multiselectEnabled","true");return D};
_.q=p_.prototype;_.q.getHeight=function(){return this.dialogHeight_};
_.q.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.q.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.q.getTitle=function(){return this.urlParamMap_.get("title")};
_.q.getWidth=function(){return this.dialogWidth_};
var Jpf=function(D){D.JSC$10202_disposeOnHide_=void 0;return D};
p_.prototype.setRelayUrl=function(D){this.urlParamMap_.set("parent",D);return this};
var Ypm=function(D,t){D.urlParamMap_.set("selectButtonLabel",t);return D};
p_.prototype.setSize=function(D,t){this.dialogWidth_=D;this.dialogHeight_=t;return this};
p_.prototype.setTitle=function(D){this.urlParamMap_.set("title",D);return this};
var ApV=function(D){D.postProcessors_.length&&D.urlParamMap_.set("pp",JSON.stringify(D.postProcessors_));D.urlParamMap_.set("nav",xSf(D.nav_));var t=new _.eP(D.getBaseUrl());D.urlParamMap_.forEach(function(H,e){_.yh(t,e,H)});
return t};var p$f=function(D,t){D.name!==void 0?(this.name=D.name,this.code=lxV[D.name]):(this.code=D=D.code,this.name=vwn(D));_.Hk.call(this,hnf("%s %s",this.name,t))};
_.Zj(p$f,_.Hk);var vwn=function(D){var t=_.J$.findKey(lxV,function(H){return D==H});
if(t===void 0)throw Error("hb`"+D);return t},Fb={},lxV=(Fb.AbortError=3,Fb.EncodingError=5,Fb.InvalidModificationError=9,Fb.InvalidStateError=7,Fb.NotFoundError=1,Fb.NotReadableError=4,Fb.NoModificationAllowedError=6,Fb.PathExistsError=12,Fb.QuotaExceededError=10,Fb.SecurityError=2,Fb.SyntaxError=8,Fb.TypeMismatchError=11,Fb);var dz3=function(D,t){_.Xv.call(this,D.type,t);this.event_=D};
_.Zj(dz3,_.Xv);var xzo=function(D,t,H){H===void 0&&(H=D.size);return D.slice?D.slice(t,H):null};var oV3=new WeakMap,UOT=function(D,t){D=[D];for(var H=t.length-1;H>=0;--H)D.push(typeof t[H],t[H]);return D.join("\v")};_.nV6(function(){if(!_.VA.Blob)return!1;var D=new Uint8Array(100);try{var t=new Blob([D])}catch(H){return!1}return t.size!=100?!1:!0});
var RH3=_.nV6(function(){if(!_.VA.Blob)return!1;var D=new Uint8Array(100);try{var t=new Blob([D])}catch(H){return!1}return xzo(t,0,1)===null?!1:!0});_.VA.U3bHHf!=null||(_.VA.U3bHHf=0);_.VA.U3bHHf++;_.u0Q=new WeakMap;_.WEw=new WeakMap;var mOK={};var HI=void 0;var SqR=Symbol("pb");var RX6=bD("WizInjectionContext_Dispatcher");var q2=Symbol("qb");var cn,U4;cn=function(){this.afterRenderCallbacks=null};
_.K$A=Symbol("rb");U4=function(D){this.props=D;this.__unmounted=!1};
U4.prototype.didPatch=function(){};
U4.prototype.didMount=function(){};
U4.prototype.didUnmount=function(){};
U4.prototype.didUpdate=function(){};_.l4A=bD("WizInjectionContext_RootElement");var peV=bD("WizInjectionContext_AppContext"),vV3=bD("WizInjectionContext_ModelRootElement"),dOA=bD("WizInjectionContext_RendererData"),xOT=bD("WizInjectionContext_InjectingConstructor"),YqA=bD("WizInjectionContext_AsyncDeps"),uUu={};var zXX=!1;var eHX={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:uY8,enableLazyTsx:WsD,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:RQV,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var F2=Object.assign({},{attributes:{},handleError:function(D){throw D;}},eHX);var Ixv=Symbol("vb"),iD=Symbol("wb"),zHT=Symbol("xb"),ypV=Symbol("yb"),qhD=CQ(function(D){return aZ(D)&&Ixv in D});var Z7V=Symbol("zb"),aJ={},axA=(aJ[Z7V]=!0,aJ.debugName="[component]",aJ.getComponentStack=function(){for(var D=[],t=this;t;)sRV(t)&&D.push(t.debugName),t=t.parent;return D},aJ.registerSignal=function(){},aJ.registerEffect=function(){},aJ);var w_=null,sP=!1,KEX=1,O7V=Symbol("Db"),cI={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var wK=Symbol("Eb"),Zh=Symbol("Fb"),Gp=Symbol("Gb"),rpK=Object.assign({},cI,{value:wK,dirty:!0,error:null,equal:hHD,kind:"computed",producerMustRecompute:function(D){return D.value===wK||D.value===Zh},
producerRecomputeValue:function(D){if(D.value===Zh)throw Error("Z");var t=D.value;D.value=Zh;var H=jRk(D),e=!1;try{var V=D.computation();Z_(null);e=t!==wK&&t!==Gp&&V!==Gp&&D.equal(t,V)}catch(b){V=Gp,D.error=b}finally{Z_(H),D&&i7$(D)}e?D.value=t:(D.value=V,D.version++)}});Object.assign({},cI,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,kind:"effect"});var nw6=function(){throw Error();};var mzV=null,owA=Object.assign({},cI,{equal:hHD,value:void 0,kind:"signal"});Object.assign({},cI,{value:wK,dirty:!0,error:null,equal:hHD,kind:"linkedSignal",producerMustRecompute:function(D){return D.value===wK||D.value===Zh},
producerRecomputeValue:function(D){if(D.value===Zh)throw Error("Z");var t=D.value;D.value=Zh;var H=jRk(D);try{var e=D.source();var V=D.computation(e,t===wK||t===Gp?void 0:{source:D.sourceValue,value:t});D.sourceValue=e}catch(b){V=Gp,D.error=b}finally{Z_(H),D&&i7$(D)}t!==wK&&V!==Gp&&D.equal(t,V)?D.value=t:(D.value=V,D.version++)}});Object.assign({},cI,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(D){D.schedule!==null&&D.schedule(D.ref)},
hasRun:!1,cleanupFn:function(){}});var SpA=Symbol("Hb"),Np=Symbol("Ib");var kM=Array.isArray;var vwR;var QRn={},dzT=lxA(Object.assign({},{consumerAllowSignalWrites:!0},QRn)),$C=lxA(Object.assign({},{consumerAllowSignalWrites:!0},QRn));var r_=0,OP=!1,sy=function(){this.queue=new Set};
sy.prototype.schedule=function(D){this.queue.add(D)};
sy.prototype.remove=function(D){this.queue.delete(D)};
sy.prototype.clear=function(){this.queue.clear()};
var u0K=Symbol("Nb"),xz6=Symbol("Ob"),hC=function(){sy.apply(this,arguments)};
_.P(hC,sy);hC.prototype.flush=function(){if(this.queue.size){OP=!0;for(var D=_.F(this.queue),t=D.next();!t.done;t=D.next()){t=t.value;this.queue.delete(t);try{t.run()}catch(H){yp4(H)}}OP=!1}};
var BTQ=function(){hC.apply(this,arguments)};
_.P(BTQ,hC);var RHT=new BTQ,zH3=function(){hC.apply(this,arguments)};
_.P(zH3,hC);zH3.prototype.schedule=function(D){var t=this;return _.Z(function(H){if(H.nextAddress==1)return F2.enableQueueEffectAndOnInitInitialRuns?H.jumpTo(2):H.yield(Promise.resolve(),3);if(H.nextAddress!=2)return D.run(),H.return();t.queue.add(D);_.n2(H)})};
var WEu=new zH3,GB=function(){sy.apply(this,arguments)};
_.P(GB,sy);GB.prototype.flush=function(){this.queue.size&&FFu(this.queue)};
var D1Q=function(){GB.apply(this,arguments)};
_.P(D1Q,GB);D1Q.prototype.schedule=function(D){D.hasRun?this.queue.add(D):D.run()};
D1Q.prototype.flush=function(){if(this.queue.size)if(F2.flushRenderEffectsDuringRender){var D=this.queue;this.queue=new Set;FFu(D)}else FFu(this.queue)};
var QRR=new D1Q,tp4=function(){GB.apply(this,arguments)};
_.P(tp4,GB);tp4.prototype.schedule=function(D){var t=this;return _.Z(function(H){if(H.nextAddress==1)return F2.enableQueueEffectAndOnInitInitialRuns||D.hasRun?H.jumpTo(2):H.yield(Promise.resolve(),3);if(H.nextAddress!=2)return D.run(),H.return();t.queue.add(D);_.n2(H)})};
var D1K=new tp4,Hno=function(){GB.apply(this,arguments)};
_.P(Hno,GB);var BTK=new Hno,Hn6=[QRR,RHT,BTK],bn3=[WEu,D1K],eKn=[QRR,BTK,D1K],aY8=[].concat(_.A6(Hn6),_.A6(bn3)),VpB=[];mzV=function(){Vp$();for(var D=_.F(VpB),t=D.next();!t.done;t=D.next())t=t.value,t()};
var yp4=b8;var PI=Symbol("Pb");var oZ=null,sCX,hK6=null,Gc$;var Ey={},bnv=Object.assign({},cI,(Ey[Ixv]=!0,Ey.effectType=iD,Ey.isResettableContext=!0,Ey.hasRun=!1,Ey.effectFn=null,Ey.consumerIsAlwaysLive=!0,Ey.consumerAllowSignalWrites=!0,Ey.consumerMarkedDirty=tpV,Ey.kind="effect",Ey.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(sP)throw Error("Qb");this.dirty=!1;if(!this.hasRun||NTK(this)){this.hasRun=!0;Jyu(this);var D=_.ej(this),t=jRk(this);b7u("effectRun",this.debugName);try{mG(this.effectFn,this.componentStack,this)}catch(H){throw F2.enableContextBasedComponentStacks&&
CR(H),H;}finally{qp$("effectRun",this.debugName),Z_(t),this&&i7$(this),_.ej(D)}}}},Ey.componentStack=void 0,Ey.debugName="[effect]",Ey[Symbol.dispose]=function(){if(hL(this))for(var D=this.producers;D!==void 0;)D=$z3(D);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;D=_.F(eKn);for(var t=D.next();!t.done;t=D.next())t.value.remove(this);gVX(this)},Ey));var NvV=Object.assign({},bnv,{effectType:zHT});var kcX=Symbol("Rb");var Tv8=Object.assign({},bnv,{effectType:iD});var t7D=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 $1$={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},jCX=
{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}]}},wyX={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},OnK=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],rnD={"*":{async:1,dir:0,loading:2,target:3}};var qhn=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Kv={},oo8=(Kv[1]=null,Kv[2]=function(D,t){return t instanceof IE?BU(t):pM.toString()},Kv[3]=function(D,t){return gw(t)?_.JA(t):qhn.test(String(t))?String(t):pM.toString()},Kv[4]=function(D,t){return t instanceof md?_.X7(t):pM.toString()},Kv[5]=function(D,t){return String(t)},Kv[7]=null,Kv[8]=null,Kv[10]=null,Kv);var $IR=Symbol("Xb");var WrX=function(D){var t=FFw,H=D,e="",V="",b=1;D<0&&(D=-D);if(D===Infinity)D=(Infinity*Math.sign(H)).toString();else{for(var a=0;a<aYa.length;a++){var w=aYa[a];b=t[w];if(D>=b||b<=1&&D>.1*b){e=w;break}}e?(e+="B",V=" "):b=1;D=Math.round(H/b*10)/10+V+e}return D},aYa="Y Z E P T G M K  m u n".split(" "),FFw={"":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};_.wF9=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 hZ={};RegExp.prototype.hasOwnProperty("sticky");var e6u=function(D){D=String(D);for(var t=function(e,V,b){for(var a=Math.min(V.length-b,e.length),w=0;w<a;w++){var h=V[b+w];if(e[w]!==("A"<=h&&h<="Z"?h.toLowerCase():h))return!1}return!0},H=0;(H=D.indexOf("<",H))!=-1;){if(t("\x3c/script",D,H)||t("\x3c!--",D,H))return"zSoyz";
H+=1}return D};var lD={default:"__default"};var ShV=Object.prototype.hasOwnProperty;Cv8.prototype=Object.create(null);var q1=LFu();var tZ=null;var WFD=function(D){this.created=[];this.deleted=[];this.node=D};var IYT=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var D=this,t=D;D;)t=D,D=D.parentNode;return t};var goX=function(D,t){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=D;this.key=t;this.text=void 0};var WI=null,IZ=null,d_=null,BI=null,pFT=[],voA=Yhu,zp=[],Dv=[],jsk=function(D){return QCu(function(t,H,e){d_=IZ=t;IZ=null;H(e);lYX(null);IZ=d_;d_=d_.parentNode;return t},D)}(),clA=function(D){return QCu(function(t,H,e){var V={nextSibling:t};
IZ=V;H(e);d_&&lYX(t.nextSibling);return V===IZ?null:IZ},D)}();var Hn=[],BvK=0;var eG=new Cv8;var Jj=new Cv8;var Znw=LFu(),qWV=Znw[lD.default],bG$=Znw.style,HGK=["focusin","focusout"],w3u="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var Is6=function(){},gRV=function(){},DJD=function(){},yK$=function(){};var bh=Symbol("bc");var ERD,GAD=h68;var KY=Symbol("cc");var z6D=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(" ")),
BZX=new Set(["a","font","script","style","title"]);_.E4={setUp:PoX,tearDown:PoX,log:PoX,logNodeRange:PoX,graft:function(D,t){t()}};var ih={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var r1=null,O4=function(D,t){U4.call(this,D);var H=this;this.functionComponent=t;this.hooks=[];this.hookCounter=0;this.disposeEffects=X2(function(e){H.effectContext=e;_.Sj(function(){vRD(H,H.el)})},F2.alwaysTrackContexts||!!HI)};
_.P(O4,U4);O4.prototype.render=function(D){var t=r1;r1=this;this.hookCounter=0;var H=Z_($C),e=_.ej(this.effectContext);try{return b7u("render",this.componentName),this.functionComponent(D)}finally{qp$("render",this.componentName),_.ej(e),Z_(H),r1=t}};
_.ql.Object.defineProperties(O4.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return wFk(this.functionComponent)}}});var tPV=Symbol("qc"),uuV=function(D,t,H){this.afterRenderCallbacks=null;this.kind=D;this.props=t;this.children=H};
_.P(uuV,cn);uuV.prototype.render=function(){var D=R68(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var t=_.F(this.afterRenderCallbacks),H=t.next();!H.done;H=t.next())H=H.value,D=H(D);return D};
uuV.prototype.getChildren=function(){return this.children};var eLX=[];nw6=function(D){throw Error("ob`"+D.debugName);};
(function(){var D=tZ;tZ=function(t){D==null||D(t);VPV(t)}})();Object.assign({},bnv,{effectType:iD,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var D=this.elementRef;var t;D.element!=null||(D.element=(t=D.document.getElementById(D.value))!=null?t:void 0);D=D.element;for(t=this.attributes;t;){var H=t.signal();H!==t.prevValue&&(t.prevValue=H,t.namespace===1?D[t.name]=H:t7D.has(t.name)?YM(D,t.name,H?"":null):YM(D,t.name,H));t=t.next}}});_.oD.debugName="tbhMcf";_.Pn.debugName="zyMFzb";Object.assign({},bnv,{effectType:iD,hasRun:!0});_.E.debugName="RlDudd";var blk={nonNullableCondIsNull:function(){return Error("uc")}};var s4K=function(){this.map=new Map};
s4K.prototype.push=function(D,t){var H=this.map;H.has(D)&&(this.multi||(this.multi=new Map),this.multi.set(t,H.get(D)));H.set(D,t)};
s4K.prototype.pop=function(D){var t=this.map,H=t.get(D),e;H!==void 0&&((e=this.multi)==null?0:e.has(H))?(t.set(D,this.multi.get(H)),this.multi.delete(H)):t.delete(D);return H};_.nY.debugName="nsTGHd";_.CY.debugName="vI1rtf";_.kfD={OUT_OF_ORDER_HOOK_CALL:function(D){return Error("vc`"+D)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(D,t){return Error("zc`"+((t===void 0?0:t)?"IDOM":"Reactive")+"`"+(mI(D)?D.description:D))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(D,t){return Error("Ac`"+(mI(D)?D.description:D)+"`"+t)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(D){return Error("Bc`"+(mI(D)?D.description:D))},
USE_ELEMENT_NOT_ASSIGNED:function(D){return Error("Cc`"+(mI(D)?D.description:D))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(D){return Error("Dc`"+(mI(D)?D.description:D))}};ERD=WHD;var rED=Symbol("Ec");YW$({beforeRender:function(D){var t=_.ej(D.effectContext);try{var H;((H=D.__syncEffects)==null?0:H.length)&&o0T(D.__syncEffects)}finally{_.ej(t)}},
didPatch:function(D){var t=_.ej(D.effectContext);try{var H;((H=D.__syncEffects)==null?0:H.length)&&o0T(D.__syncEffects)}finally{_.ej(t)}},
didUnmount:function(D){var t;((t=D.hooks)==null?0:t.length)&&D.hooks.forEach(UJu)}});var sC6,hKo,GcB;sC6=_.VA.window;_.g1=(sC6==null?void 0:(hKo=sC6.yt)==null?void 0:hKo.config_)||(sC6==null?void 0:(GcB=sC6.ytcfg)==null?void 0:GcB.data_)||{};_.bg("yt.config_",_.g1);var Eow={},MPD=[];_.nZ=function(D){var t=_.RE.apply(1,arguments);var H=Error.call(this,D);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.args=[].concat(_.A6(t));Object.setPrototypeOf(this,this.constructor.prototype)};
_.P(_.nZ,Error);var RjV=function(D,t,H){this.actionName=D;this.optionalAction=t===void 0?!1:t;this.args=H===void 0?null:H;this.returnValue=[]};_.NM=function(D){this.name=D};_.xw=new _.NM("signalAction");var phK=/^[\w.]*$/,AEu={q:!0,search_query:!0},L$3=String(fkD);var Fc;Fc=Symbol("Fc");_.kI=function(D){this.name=D};
_.kI.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var dJV=function(D){this.key=D},Ik3=function(D){this.deferredKey=D},RLK=function(){var D=this;
this.providers=new Map;this.JSC$10496_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(D.providers)}}};
RLK.prototype.addProvider=function(D){this.providers.set(D.provide,D);var t=this.JSC$10496_deferred.get(D.provide);if(t)try{t.resolver(this.resolve(D.provide))}catch(H){t.rejector(H)}};
RLK.prototype.resolve=function(D){return D instanceof Ik3?KFo(this,D):D instanceof dJV?Nvf(this,D.key,[],!0):Nvf(this,D,[])};
var KFo=function(D,t){t=t.deferredKey;if(D.JSC$10496_deferred.has(t))return D.JSC$10496_deferred.get(t).promise;var H={};H.promise=new Promise(function(e,V){H.resolver=e;H.rejector=V});
D.JSC$10496_deferred.set(t,H);return H.promise},Nvf=function(D,t,H,e){e=e===void 0?!1:e;
if(H.indexOf(t)>-1)throw Error("Gc`"+t);if(D.cachedValues.has(t))return D.cachedValues.get(t);if(!D.providers.has(t)){if(e)return;throw Error("Hc`"+t);}e=D.providers.get(t);H.push(t);if(e.useValue!==void 0)var V=e.useValue;else if(e.useFactory)V=e[Fc]?kc6(D,e[Fc],H):[],V=e.useFactory.apply(e,_.A6(V));else if(e.useClass){V=e.useClass;var b=V[Fc]?kc6(D,V[Fc],H):[];V=new (Function.prototype.bind.apply(V,[null].concat(_.A6(b))))}else throw Error("Ic`"+t);H.pop();e.skipCache||D.cachedValues.set(t,V);return V},
kc6=function(D,t,H){return t?t.map(function(e){return e instanceof dJV?Nvf(D,e.key,H,!0):Nvf(D,e,H)}):[]};var xJV;var RR=new _.kI("ENDPOINT_HANDLER_TOKEN");_.um=new _.NM("urlEndpoint");var Tva=function(){this.data=[];this.cachedPackedInt52=-1};
Tva.prototype.set=function(D,t){t=t===void 0?!0:t;0<=D&&D<52&&Number.isInteger(D)&&this.data[D]!==t&&(this.data[D]=t,this.cachedPackedInt52=-1)};
Tva.prototype.get=function(D){return!!this.data[D]};
var cnv=function(D){D.cachedPackedInt52===-1&&(D.cachedPackedInt52=D.data.reduce(function(t,H,e){return t+(H?Math.pow(2,e):0)},0));
return D.cachedPackedInt52};var wH$=function(D){var t=jC6;D=D===void 0?_.RD("yt.ads.biscotti.lastId_")||"":D;var H=Object,e=H.assign,V={};V.dt=T_B;V.flash="0";a:{try{var b=t.JSC$10502_win_.top.location.href}catch(tT){b=2;break a}b=b?b===t.doc_.location.href?0:1:2}V=(V.frm=b,V);try{V.u_tz=-(new Date).getTimezoneOffset();try{var a=ee.history.length}catch(tT){a=0}V.u_his=a;var w;V.u_h=(w=ee.screen)==null?void 0:w.height;var h;V.u_w=(h=ee.screen)==null?void 0:h.width;var K;V.u_ah=(K=ee.screen)==null?void 0:K.availHeight;var N;V.u_aw=
(N=ee.screen)==null?void 0:N.availWidth;var k;V.u_cd=(k=ee.screen)==null?void 0:k.colorDepth}catch(tT){}a=t.JSC$10502_win_;try{var T=a.screenX;var c=a.screenY}catch(tT){}try{var U=a.outerWidth;var S=a.outerHeight}catch(tT){}try{var L=a.innerWidth;var J=a.innerHeight}catch(tT){}try{var g=a.screenLeft;var Q=a.screenTop}catch(tT){}try{L=a.innerWidth,J=a.innerHeight}catch(tT){}try{var u=a.screen.availWidth;var R=a.screen.availTop}catch(tT){}T=[g,Q,T,c,u,R,U,S,L,J];c=reD(!1,t.JSC$10502_win_.top);U={};
var I=I===void 0?_.VA:I;S=new Tva;"SVGElement"in I&&"createElementNS"in I.document&&S.set(0);L=KiV();L["allow-top-navigation-by-user-activation"]&&S.set(1);L["allow-popups-to-escape-sandbox"]&&S.set(2);I.crypto&&I.crypto.subtle&&S.set(3);"TextDecoder"in I&&"TextEncoder"in I&&S.set(4);I=cnv(S);t=(U.bc=I,U.bih=c.height,U.biw=c.width,U.brdim=T.join(),U.vis=EC8(t.doc_),U.wgl=!!ee.WebGLRenderingContext,U);H=e.call(H,V,t);H.ca_type="image";D&&(H.bid=D);return H},jC6=new function(){var D=window.document;
this.JSC$10502_win_=window;this.doc_=D};
_.bg("yt.ads_.signals_.getAdSignalsString",function(D){return g0X(wH$(D))});_.wU();navigator.userAgent.indexOf(" (CrKey ");var DQR="XMLHttpRequest"in _.VA?function(){return new XMLHttpRequest}:null;var $1B="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),inm=[].concat(_.A6($1B),["client_dev_set_cookie"]);var a83={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"},eG8="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(_.A6($1B)),TOD=!1,bCu=_.ZCD,K1V=F1D;var lgV=[{messageFn:function(D){return"Cannot read property '"+D.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(D){return"Cannot call '"+D.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(D){return D.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var rnm={messageWeights:[],callbackWeights:[{callback:iC6,weight:500},{callback:rVD,weight:500}]};var OnQ=function(){this.callbackWeights=[];this.messageWeights=[]},U1w,YIV=function(){if(!U1w){var D=U1w=new OnQ;
D.messageWeights.length=0;D.callbackWeights.length=0;XCD(D,rnm)}return U1w},XCD=function(D,t){t.messageWeights&&D.messageWeights.push.apply(D.messageWeights,t.messageWeights);
t.callbackWeights&&D.callbackWeights.push.apply(D.callbackWeights,t.callbackWeights)};_.Zj(_.$x,_.mg);_.$x.prototype.subscribe=function(D,t,H){var e=this.topics_[D];e||(e=this.topics_[D]=[]);var V=this.JSC$10526_key_;this.subscriptions_[V]=D;this.subscriptions_[V+1]=t;this.subscriptions_[V+2]=H;this.JSC$10526_key_=V+3;e.push(V);return V};
var ooa=function(D){var t=xxA,H=!1,e=t.subscribe("handleError",function(V){H||(H=!0,this.unsubscribeByKey(e),D.apply(void 0,arguments))},t)};
_.$x.prototype.unsubscribe=function(D,t,H){if(D=this.topics_[D]){var e=this.subscriptions_;if(D=D.find(function(V){return e[V+1]==t&&e[V+2]==H}))return this.unsubscribeByKey(D)}return!1};
_.$x.prototype.unsubscribeByKey=function(D){var t=this.subscriptions_[D];if(t){var H=this.topics_[t];this.publishDepth_!=0?(this.pendingKeys_.push(D),this.subscriptions_[D+1]=function(){}):(H&&_.vk(H,D),delete this.subscriptions_[D],delete this.subscriptions_[D+1],delete this.subscriptions_[D+2])}return!!t};
_.$x.prototype.publish=function(D,t){var H=this.topics_[D];if(H){var e=Array(arguments.length-1),V=arguments.length,b;for(b=1;b<V;b++)e[b-1]=arguments[b];if(this.async_)for(b=0;b<H.length;b++)V=H[b],Pvn(this.subscriptions_[V+1],this.subscriptions_[V+2],e);else{this.publishDepth_++;try{for(b=0,V=H.length;b<V&&!this.isDisposed();b++){var a=H[b];this.subscriptions_[a+1].apply(this.subscriptions_[a+2],e)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;H=this.pendingKeys_.pop();)this.unsubscribeByKey(H)}}return b!=
0}return!1};
var Pvn=function(D,t,H){_.lV(function(){D.apply(t,H)})};
_.$x.prototype.clear=function(D){if(D){var t=this.topics_[D];t&&(t.forEach(this.unsubscribeByKey,this),delete this.topics_[D])}else this.subscriptions_.length=0,this.topics_={}};
_.$x.prototype.getCount=function(D){if(D){var t=this.topics_[D];return t?t.length:0}D=0;for(t in this.topics_)D+=this.getCount(t);return D};
_.$x.prototype.disposeInternal=function(){_.$x.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var xxA=new _.$x;var KX=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(KX,_.ww);KX.prototype.getColdHashData=function(){return _.La(this,3)};
KX.prototype.getHotHashData=function(){return _.La(this,5)};
KX.prototype.setHotHashData=function(D){return _.M3(this,5,D)};var AGX=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(AGX,_.ww);var sn$=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(sn$,_.ww);_.q=sn$.prototype;_.q.getDeviceId=function(){return _.La(this,6)};
_.q.getExperimentIds=function(D){var t=_.QZ(this,9,_.VZ,3,!0);DwV(t,D);return t[D]};
_.q.getPlayerType=function(){return _.AM(this,36)};
_.q.setHomeGroupInfo=function(D){return _.oE(this,81,D)};
_.q.clearLocationPlayabilityToken=function(){return _.Eq(this,89)};var im=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(im,_.ww);im.prototype.setKey=function(D){return _.M3(this,1,D)};
im.prototype.getValue=function(){return JM(this,2,GmA)};
var GmA=[2,3,4,5,6];var noo=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(noo,_.ww);noo.prototype.setTrackingParams=function(D){return _.Eq(this,1,_.Um(D,!1))};var hoV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(hoV,_.ww);var YLA=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(YLA,_.ww);YLA.prototype.getExperimentIds=function(D){var t=_.QZ(this,5,_.iQ3,3,!0);DwV(t,D);return t[D]};var oR=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(oR,_.ww);oR.prototype.getToken=function(){return _.rV(this,2)};
oR.prototype.setToken=function(D){return _.M3(this,2,D)};var Op=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Op,_.ww);Op.prototype.setSafetyMode=function(D){return _.Gr(this,5,D)};var $w=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P($w,_.ww);$w.prototype.setClient=function(D){return _.oE(this,1,D)};var JG8={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 ggV;_.AG=function(){var D=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.VA.addEventListener("beforeinstallprompt",function(t){t.preventDefault();D.deferredInstallPrompt=t});
_.VA.addEventListener("appinstalled",function(){D.appInstalledEventFired=!0},{once:!0})};
ggV=function(){if(!_.VA.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.VA.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.VA.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.VA.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.VA.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(D){return"WEB_DISPLAY_MODE_UNKNOWN"}};var p73=function(){this.syncHeaders=!0},dFA=function(D){var t={},H=[];
"USER_SESSION_ID"in _.g1&&H.push({key:"u",value:_.YC("USER_SESSION_ID")});if(H=_.sQR(H))t.Authorization=H,H=D=D==null?void 0:D.sessionIndex,H===void 0&&(H=Number(_.YC("SESSION_INDEX",0)),H=isNaN(H)?0:H),_.r("voice_search_auth_header_removal")||(t["X-Goog-AuthUser"]=H.toString()),"INNERTUBE_HOST_OVERRIDE"in _.g1||(t["X-Origin"]=window.location.origin),D===void 0&&"DELEGATED_SESSION_ID"in _.g1&&(t["X-Goog-PageId"]=_.YC("DELEGATED_SESSION_ID"));return t};var Cva={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var TB=_.RD("ytglobal.prefsUserPrefsPrefs_")||{},m1f;_.bg("ytglobal.prefsUserPrefsPrefs_",TB);_.cN=function(){this.cookieName=_.YC("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.YC("ALT_PREF_COOKIE_DOMAIN","youtube.com");var D=_.ri.get(this.cookieName,void 0);D&&this.parse(D)};
_.Ph=function(){m1f||(m1f=new _.cN);return m1f};
_.cN.prototype.get=function(D,t){MpB(D);Shf(D);D=TB[D]!==void 0?TB[D].toString():null;return D!=null?D:t?t:""};
_.cN.prototype.set=function(D,t){MpB(D);Shf(D);if(t==null)throw Error("Lc");TB[D]=t.toString()};
_.cN.prototype.getFlag=function(D){return!!((XFQ("f"+(Math.floor(D/31)+1))||0)&1<<D%31)};
_.nl=function(D,t,H){D="f"+(Math.floor(t/31)+1);t=1<<t%31;var e=XFQ(D)||0;e=H?e|t:e&~t;e===0?delete TB[D]:(H=e.toString(16),TB[D]=H.toString())};
_.cN.prototype.remove=function(D){MpB(D);Shf(D);delete TB[D]};
_.cN.prototype.save=function(){var D=!0;_.r("web_secure_pref_cookie_killswitch")&&(D=!1);_.Oa(this.cookieName,this.dump(),63072E3,this.cookieDomain,D)};
_.cN.prototype.clear=function(){_.J$.clear(TB)};
_.cN.prototype.dump=function(){var D=[],t;for(t in TB)TB.hasOwnProperty(t)&&D.push(t+"="+encodeURIComponent(String(TB[t])));return D.join("&")};
var Shf=function(D){if(/^f([1-9][0-9]*)$/.test(D))throw Error("Mc`"+D);},MpB=function(D){if(!/^\w+$/.test(D))throw Error("Nc`"+D);
},XFQ=function(D){D=TB[D]!==void 0?TB[D].toString():null;
return D!=null&&/^[A-Fa-f0-9]+$/.test(D)?parseInt(D,16):null};
_.cN.prototype.parse=function(D){D=decodeURIComponent(D).split("&");for(var t=0;t<D.length;t++){var H=D[t].split("="),e=H[0];(H=H[1])&&(TB[e]=H.toString())}};var SO3={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"},l2A={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},vgD={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},f8$={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var NX;_.jg=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.C7=function(D,t,H){return D.addJob(t,0,H)};
_.jg.prototype.addLowPriorityJob=function(D,t){return this.addJob(D,1,t)};
_.Mx=function(D,t,H){return D.addJob(t,2,H)};
_.NP=function(D,t,H){return D.addJob(t,3,H)};
_.kX=function(D,t,H){return D.addJob(t,4,H)};
NX=function(D){var t=_.RD("yt.scheduler.instance.addImmediateJob");t?t(D):D()};
_.jg.prototype.debounce=function(D,t,H){var e=this,V=0,b=function(){V&&e.cancelJob(V);V=e.addJob(D,t,H);e.cancelDebouncedJobMap.set(b,V)};
return b};
_.jg.prototype.cancelThrottle=function(D){(D=this.cancelThrottledJobMap.get(D))&&D()};var $I=function(){_.jg.apply(this,arguments)};
_.P($I,_.jg);_.Cs=function(){$I.instance||($I.instance=new $I);return $I.instance};
$I.prototype.addJob=function(D,t,H){H!==void 0&&Number.isNaN(Number(H))&&(H=void 0);var e=_.RD("yt.scheduler.instance.addJob");return e?e(D,t,H):H===void 0?(D(),NaN):_.KZ(D,H||0)};
$I.prototype.cancelJob=function(D){if(D===void 0||!Number.isNaN(Number(D))){var t=_.RD("yt.scheduler.instance.cancelJob");t?t(D):_.kx(D)}};
$I.prototype.start=function(){var D=_.RD("yt.scheduler.instance.start");D&&D()};
$I.prototype.pause=function(){var D=_.RD("yt.scheduler.instance.pause");D&&D()};
_.Jy=_.Cs();_.CZ.prototype.set=function(D,t){t===void 0?this.mechanism.remove(D):this.mechanism.set(D,(0,_.Ru)(t))};
_.CZ.prototype.get=function(D){try{var t=this.mechanism.get(D)}catch(H){return}if(t!==null)try{return JSON.parse(t)}catch(H){throw"Storage: Invalid value was encountered";}};
_.CZ.prototype.remove=function(D){this.mechanism.remove(D)};var i5=function(D){this.mechanism=D};
_.Zj(i5,_.CZ);var fY6=function(D){this.data=D},LFw=function(D){return D===void 0||D instanceof fY6?D:new fY6(D)};
i5.prototype.set=function(D,t){i5.superClass_.set.call(this,D,LFw(t))};
i5.prototype.getWrapper=function(D){D=i5.superClass_.get.call(this,D);if(D===void 0||D instanceof Object)return D;throw"Storage: Invalid value was encountered";};
i5.prototype.get=function(D){if(D=this.getWrapper(D)){if(D=D.data,D===void 0)throw"Storage: Invalid value was encountered";}else D=void 0;return D};_.Zj(mh,i5);_.AnV=function(D){var t=D.creation;D=D.expiration;return!!D&&D<_.wU()||!!t&&t>_.wU()};
mh.prototype.set=function(D,t,H){if(t=LFw(t)){if(H){if(H<_.wU()){mh.prototype.remove.call(this,D);return}t.expiration=H}t.creation=_.wU()}mh.superClass_.set.call(this,D,t)};
mh.prototype.getWrapper=function(D,t){var H=mh.superClass_.getWrapper.call(this,D);if(H)if(!t&&_.AnV(H))mh.prototype.remove.call(this,D);else return H};var rK=function(){};
rK.prototype.next=function(){return Oy};
var Oy={done:!0,value:void 0},Uy=function(D){return{value:D,done:!1}};
rK.prototype.__iterator__=function(){return this};
_.go6=function(D){if(D instanceof rK)return D;if(typeof D.__iterator__=="function")return D.__iterator__(!1);if(_.d6(D)){var t=0,H=new rK;H.next=function(){for(;;){if(t>=D.length)return Oy;if(t in D)return Uy(D[t++]);t++}};
return H}throw Error("Oc");};var Jnn=function(D){if(D instanceof oJ||D instanceof PN||D instanceof nv)return D;if(typeof D.next=="function")return new oJ(function(){return D});
if(typeof D[Symbol.iterator]=="function")return new oJ(function(){return D[Symbol.iterator]()});
if(typeof D.__iterator__=="function")return new oJ(function(){return D.__iterator__()});
throw Error("Pc");},oJ=function(D){this.func_=D};
oJ.prototype.__iterator__=function(){return new PN(this.func_())};
oJ.prototype[Symbol.iterator]=function(){return new nv(this.func_())};
oJ.prototype.toEs6=function(){return new nv(this.func_())};
var PN=function(D){this.JSC$10610_iter_=D};
_.P(PN,rK);PN.prototype.next=function(){return this.JSC$10610_iter_.next()};
PN.prototype[Symbol.iterator]=function(){return new nv(this.JSC$10610_iter_)};
PN.prototype.toEs6=function(){return new nv(this.JSC$10610_iter_)};
var nv=function(D){oJ.call(this,function(){return D});
this.JSC$10613_iter_=D};
_.P(nv,oJ);nv.prototype.next=function(){return this.JSC$10613_iter_.next()};var Yhw=function(){};var Cv=function(){};
_.Zj(Cv,Yhw);Cv.prototype.getCount=function(){for(var D=0,t=_.F(this),H=t.next();!H.done;H=t.next())D++;return D};
Cv.prototype[Symbol.iterator]=function(){return Jnn(this.__iterator__(!0)).toEs6()};
Cv.prototype.clear=function(){var D=Array.from(this);D=_.F(D);for(var t=D.next();!t.done;t=D.next())this.remove(t.value)};_.Zj(MS,Cv);_.q=MS.prototype;_.q.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var D=this.storage_;if(D)try{D.setItem("__sak","1");D.removeItem("__sak");var t=!0}catch(H){t=H instanceof DOMException&&(H.name==="QuotaExceededError"||H.code===22||H.code===1014||H.name==="NS_ERROR_DOM_QUOTA_REACHED")&&D&&D.length!==0}else t=!1;this.cachedIsStorageAvailable_=t}return this.cachedIsStorageAvailable_};
_.q.set=function(D,t){mL(this);try{this.storage_.setItem(D,t)}catch(H){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.q.get=function(D){mL(this);D=this.storage_.getItem(D);if(typeof D!=="string"&&D!==null)throw"Storage mechanism: Invalid value was encountered";return D};
_.q.remove=function(D){mL(this);this.storage_.removeItem(D)};
_.q.getCount=function(){mL(this);return this.storage_.length};
_.q.__iterator__=function(D){mL(this);var t=0,H=this.storage_,e=new rK;e.next=function(){if(t>=H.length)return Oy;var V=H.key(t++);if(D)return Uy(V);V=H.getItem(V);if(typeof V!=="string")throw"Storage mechanism: Invalid value was encountered";return Uy(V)};
return e};
_.q.clear=function(){mL(this);this.storage_.clear()};
_.q.key=function(D){mL(this);return this.storage_.key(D)};
var mL=function(D){if(D.storage_==null)throw Error("Qc");D.isAvailable()||b8(Error("Qc"))};_.Zj(AVV,MS);_.Zj(geX,MS);_.Zj(Sc,Cv);Sc.prototype.set=function(D,t){this.mechanism_.set(this.JSC$10628_prefix_+D,t)};
Sc.prototype.get=function(D){return this.mechanism_.get(this.JSC$10628_prefix_+D)};
Sc.prototype.remove=function(D){this.mechanism_.remove(this.JSC$10628_prefix_+D)};
Sc.prototype.__iterator__=function(D){var t=this.mechanism_[Symbol.iterator](),H=this,e=new rK;e.next=function(){var V=t.next();if(V.done)return V;for(V=V.value;V.slice(0,H.JSC$10628_prefix_.length)!=H.JSC$10628_prefix_;){V=t.next();if(V.done)return V;V=V.value}return Uy(D?V.slice(H.JSC$10628_prefix_.length):H.mechanism_.get(V))};
return e};_.dk=function(D){this.expiringStorage_=(D=_.JVD(D))?new mh(D):null;this.JSC$10632_domain_=document.domain||window.location.hostname};
_.dk.prototype.set=function(D,t,H,e){H=H||31104E3;this.remove(D);if(this.expiringStorage_)try{this.expiringStorage_.set(D,t,Date.now()+H*1E3);return}catch(b){}var V="";if(e)try{V=escape((0,_.Ru)(t))}catch(b){return}else V=escape(t);_.Oa(D,V,H,this.JSC$10632_domain_)};
_.dk.prototype.get=function(D,t){var H=void 0,e=!this.expiringStorage_;if(!e)try{H=this.expiringStorage_.get(D)}catch(V){e=!0}if(e&&(H=_.ri.get(D,void 0))&&(H=unescape(H),t))try{H=JSON.parse(H)}catch(V){this.remove(D),H=void 0}return H};
_.dk.prototype.remove=function(D){this.expiringStorage_&&this.expiringStorage_.remove(D);_.CGV(D,"/",this.JSC$10632_domain_)};
_.dk.prototype.getCreationTime=function(D){return this.expiringStorage_&&(D=(this.expiringStorage_.getWrapper(D)||{}).creation,typeof D==="number")?D:null};var l8K=function(){var D;return function(){D||(D=new _.dk("ytidb"));return D}}();var pH6;_.fZ=[];pH6=!1;var FPk=dQk||xQD;var MM={},lY6=(MM.AUTH_INVALID="No user identifier specified.",MM.EXPLICIT_ABORT="Transaction was explicitly aborted.",MM.IDB_NOT_SUPPORTED="IndexedDB is not supported.",MM.MISSING_INDEX="Index not created.",MM.MISSING_OBJECT_STORES="Object stores not created.",MM.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",MM.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",MM.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",MM.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",MM.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",MM.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",MM.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",MM),Sg={},voV=(Sg.AUTH_INVALID="ERROR",Sg.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",Sg.EXPLICIT_ABORT="IGNORED",
Sg.IDB_NOT_SUPPORTED="ERROR",Sg.MISSING_INDEX="WARNING",Sg.MISSING_OBJECT_STORES="ERROR",Sg.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",Sg.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",Sg.QUOTA_EXCEEDED="WARNING",Sg.QUOTA_MAYBE_EXCEEDED="WARNING",Sg.UNKNOWN_ABORT="WARNING",Sg.INCOMPATIBLE_DB_VERSION="WARNING",Sg),Xb={},pF3=(Xb.AUTH_INVALID=!1,Xb.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,Xb.EXPLICIT_ABORT=!1,Xb.IDB_NOT_SUPPORTED=!1,Xb.MISSING_INDEX=!1,Xb.MISSING_OBJECT_STORES=!1,Xb.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,Xb.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,Xb.QUOTA_EXCEEDED=!1,Xb.QUOTA_MAYBE_EXCEEDED=!0,Xb.UNKNOWN_ABORT=!0,Xb.INCOMPATIBLE_DB_VERSION=!1,Xb),pZ=function(D,t,H,e,V){t=t===void 0?{}:t;H=H===void 0?lY6[D]:H;e=e===void 0?voV[D]:e;V=V===void 0?pF3[D]:V;_.nZ.call(this,H,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:D},t));this.type=D;this.message=H;this.level=e;this.retryable=V;Object.setPrototypeOf(this,pZ.prototype)};
_.P(pZ,_.nZ);var d1v=function(D,t){pZ.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:t,foundObjectStores:D},lY6.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,d1v.prototype)};
_.P(d1v,pZ);var uKT=function(D,t){var H=Error.call(this);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.index=D;this.objectStore=t;Object.setPrototypeOf(this,uKT.prototype)};
_.P(uKT,Error);var W1T=["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 uy=function(D){this.executor=D},RA=function(D){var t=this;
this.state={status:"PENDING"};this.JSC$10660_onFulfilled=[];this.JSC$10660_onRejected=[];D=D.executor;var H=function(V){if(t.state.status==="PENDING"){t.state={status:"FULFILLED",value:V};V=_.F(t.JSC$10660_onFulfilled);for(var b=V.next();!b.done;b=V.next())b=b.value,b()}},e=function(V){if(t.state.status==="PENDING"){t.state={status:"REJECTED",
reason:V};V=_.F(t.JSC$10660_onRejected);for(var b=V.next();!b.done;b=V.next())b=b.value,b()}};
try{D(H,e)}catch(V){e(V)}};
RA.all=function(D){return new RA(new uy(function(t,H){var e=[],V=D.length;V===0&&t(e);for(var b={i$jscomp$468:0};b.i$jscomp$468<D.length;b={i$jscomp$468:b.i$jscomp$468},++b.i$jscomp$468)RA.resolve(D[b.i$jscomp$468]).then(function(a){return function(w){e[a.i$jscomp$468]=w;V--;V===0&&t(e)}}(b)).catch(function(a){H(a)})}))};
RA.resolve=function(D){return new RA(new uy(function(t,H){D instanceof RA?D.then(t,H):t(D)}))};
RA.reject=function(D){return new RA(new uy(function(t,H){H(D)}))};
RA.prototype.then=function(D,t){var H=this,e=D!=null?D:yVK,V=t!=null?t:QfV;return new RA(new uy(function(b,a){H.state.status==="PENDING"?(H.JSC$10660_onFulfilled.push(function(){x1f(H,H,e,b,a)}),H.JSC$10660_onRejected.push(function(){RKm(H,H,V,b,a)})):H.state.status==="FULFILLED"?x1f(H,H,e,b,a):H.state.status==="REJECTED"&&RKm(H,H,V,b,a)}))};
RA.prototype.catch=function(D){return this.then(void 0,D)};
var x1f=function(D,t,H,e,V){try{if(D.state.status!=="FULFILLED")throw Error("Tc");var b=H(D.state.value);b instanceof RA?u9f(D,t,b,e,V):e(b)}catch(a){V(a)}},RKm=function(D,t,H,e,V){try{if(D.state.status!=="REJECTED")throw Error("Uc");
var b=H(D.state.reason);b instanceof RA?u9f(D,t,b,e,V):e(b)}catch(a){V(a)}},u9f=function(D,t,H,e,V){t===H?V(new TypeError("Vc")):H.then(function(b){b instanceof RA?u9f(D,t,b,e,V):e(b)},function(b){V(b)})};var fv;fv=window;_.aP=fv.ytcsi&&fv.ytcsi.now?fv.ytcsi.now:fv.performance&&fv.performance.timing&&fv.performance.now&&fv.performance.timing.navigationStart?function(){return fv.performance.timing.navigationStart+fv.performance.now()}:function(){return(new Date).getTime()};var IA=function(D,t){this.JSC$10672_wrapped=D;this.options=t;this.transactionCount=0;this.startedMs=Math.round((0,_.aP)());this.hasUnknownAbortedTransaction=!1},Lv=function(){return _.r("idb_immediate_commit")},QCw,yno,JC,Dlf;
IA.prototype.add=function(D,t,H){return _.D4(this,[D],{mode:"readwrite",enableRetries:!0,commit:Lv()},function(e){return e.objectStore(D).add(t,H)})};
IA.prototype.clear=function(D){return _.D4(this,[D],{mode:"readwrite",enableRetries:!0},function(t){return t.objectStore(D).clear()})};
IA.prototype.close=function(){this.JSC$10672_wrapped.close();var D;((D=this.options)==null?0:D.closed)&&this.options.closed()};
IA.prototype.count=function(D,t){return _.D4(this,[D],{mode:"readonly",enableRetries:!0,commit:Lv()},function(H){return H.objectStore(D).count(t)})};
var RP=function(D,t,H){D=D.JSC$10672_wrapped.createObjectStore(t,H);return new AC(D)};
IA.prototype.delete=function(D,t){return _.D4(this,[D],{mode:"readwrite",enableRetries:!0,commit:Lv()&&!(t instanceof IDBKeyRange)},function(H){return H.objectStore(D).delete(t)})};
var WFn=function(D,t){return _.D4(D,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(H){return H.objectStore("ResponseStore").index("byInterface").delete(t)})};
IA.prototype.get=function(D,t){return _.D4(this,[D],{mode:"readonly",enableRetries:!0,commit:Lv()},function(H){return H.objectStore(D).get(t)})};
IA.prototype.getAll=function(D,t,H){return _.D4(this,[D],{mode:"readonly",enableRetries:!0},function(e){return e.objectStore(D).getAll(t,H)})};
IA.prototype.put=function(D,t,H){return _.D4(this,[D],{mode:"readwrite",enableRetries:!0,commit:Lv()},function(e){return e.objectStore(D).put(t,H)})};
IA.prototype.objectStoreNames=function(){return Array.from(this.JSC$10672_wrapped.objectStoreNames)};
_.D4=function(D,t,H,e){var V,b,a,w,h,K,N,k,T,c,U,S;return _.Z(function(L){switch(L.nextAddress){case 1:var J={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof H==="string"?J.mode=H:Object.assign(J,H);V=J;D.transactionCount++;b=V.enableRetries?3:1;a=0;case 2:if(w){L.jumpTo(4);break}a++;h=Math.round((0,_.aP)());_.$p(L,5);K=D.JSC$10672_wrapped.transaction(t,V.mode);J=L.yield;var g=!!V.commit;var Q=new QM(K);g=IY3(Q,e,g);return J.call(L,g,7);case 7:return N=L.yieldResult,k=Math.round((0,_.aP)()),
QCw(D,h,k,a,void 0,t.join(),V),L.return(N);case 5:T=_.Pv(L);c=Math.round((0,_.aP)());U=I8A(T,D.JSC$10672_wrapped.name,t.join(),D.JSC$10672_wrapped.version);if((S=U instanceof pZ&&!U.retryable)||a>=b)QCw(D,h,c,a,U,t.join(),V),w=U;L.jumpTo(2);break;case 4:return L.return(Promise.reject(w))}})};
QCw=function(D,t,H,e,V,b,a){t=H-t;V?(V instanceof pZ&&(V.type==="QUOTA_EXCEEDED"||V.type==="QUOTA_MAYBE_EXCEEDED")&&JW("QUOTA_EXCEEDED",{dbName:ly(D.JSC$10672_wrapped.name),objectStoreNames:b,transactionCount:D.transactionCount,transactionMode:a.mode}),V instanceof pZ&&V.type==="UNKNOWN_ABORT"&&(H-=D.startedMs,H<0&&H>=2147483648&&(H=0),JW("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:b,transactionDuration:t,transactionCount:D.transactionCount,dbDuration:H}),D.hasUnknownAbortedTransaction=!0),
yno(D,!1,e,b,t,a.tag),_.LZ(V)):yno(D,!0,e,b,t,a.tag)};
yno=function(D,t,H,e,V,b){JW("TRANSACTION_ENDED",{objectStoreNames:e,connectionHasUnknownAbortedTransaction:D.hasUnknownAbortedTransaction,duration:V,isSuccessful:t,tryCount:H,tag:b===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":b})};
IA.prototype.getVersion=function(){return this.JSC$10672_wrapped.version};
IA.prototype.getName=function(){return this.JSC$10672_wrapped.name};
var AC=function(D){this.JSC$10687_wrapped=D};
AC.prototype.add=function(D,t){return WY(this.JSC$10687_wrapped.add(D,t))};
AC.prototype.autoIncrement=function(){return this.JSC$10687_wrapped.autoIncrement};
AC.prototype.clear=function(){return WY(this.JSC$10687_wrapped.clear()).then(function(){})};
var ug=function(D,t,H){D.JSC$10687_wrapped.createIndex(t,H,{unique:!1})};
AC.prototype.count=function(D){return WY(this.JSC$10687_wrapped.count(D))};
var BvQ=function(D,t){return He(D,{query:t},function(H){return H.delete().then(function(){return H.continue()})}).then(function(){})};
AC.prototype.delete=function(D){return D instanceof IDBKeyRange?BvQ(this,D):WY(this.JSC$10687_wrapped.delete(D))};
AC.prototype.get=function(D){return WY(this.JSC$10687_wrapped.get(D))};
AC.prototype.getAll=function(D,t){return"getAll"in IDBObjectStore.prototype?WY(this.JSC$10687_wrapped.getAll(D,t)):zK4(this,D,t)};
var zK4=function(D,t,H){var e=[];return He(D,{query:t},function(V){if(!(H!==void 0&&e.length>=H))return e.push(V.getValue()),V.continue()}).then(function(){return e})};
AC.prototype.index=function(D){try{return new gK(this.JSC$10687_wrapped.index(D))}catch(t){if(t instanceof Error&&t.name==="NotFoundError")throw new uKT(D,this.JSC$10687_wrapped.name);throw t;}};
AC.prototype.getName=function(){return this.JSC$10687_wrapped.name};
AC.prototype.keyPath=function(){return this.JSC$10687_wrapped.keyPath};
AC.prototype.put=function(D,t){return WY(this.JSC$10687_wrapped.put(D,t))};
var He=function(D,t,H){D=D.JSC$10687_wrapped.openCursor(t.query,t.direction);return Dlf(D).then(function(e){return DF8(e,H)})},QM=function(D){var t=this;
this.JSC$10695_wrapped=D;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(H,e){t.JSC$10695_wrapped.addEventListener("complete",function(){H()});
t.JSC$10695_wrapped.addEventListener("error",function(V){V.currentTarget===V.target&&e(t.JSC$10695_wrapped.error)});
t.JSC$10695_wrapped.addEventListener("abort",function(){var V=t.JSC$10695_wrapped.error;if(V)e(V);else if(!t.aborted){V=pZ;for(var b=t.JSC$10695_wrapped.objectStoreNames,a=[],w=0;w<b.length;w++){var h=b.item(w);if(h===null)throw Error("Wc");a.push(h)}V=new V("UNKNOWN_ABORT",{objectStoreNames:a.join(),dbName:t.JSC$10695_wrapped.db.name,mode:t.JSC$10695_wrapped.mode});e(V)}})})},IY3=function(D,t,H){var e=new Promise(function(V,b){try{var a=t(D);
H&&D.commit();a.then(function(w){V(w)}).catch(b)}catch(w){b(w),D.abort()}});
return Promise.all([e,D.done]).then(function(V){return _.F(V).next().value})};
QM.prototype.abort=function(){this.JSC$10695_wrapped.abort();this.aborted=!0;throw new pZ("EXPLICIT_ABORT");};
QM.prototype.commit=function(){if(!this.aborted){var D,t;(t=(D=this.JSC$10695_wrapped).commit)==null||t.call(D)}};
QM.prototype.objectStore=function(D){D=this.JSC$10695_wrapped.objectStore(D);var t=this.objectStoreCache.get(D);t||(t=new AC(D),this.objectStoreCache.set(D,t));return t};
var gK=function(D){this.JSC$10697_wrapped=D};
gK.prototype.count=function(D){return WY(this.JSC$10697_wrapped.count(D))};
gK.prototype.delete=function(D){return _.wk(this,{query:D},function(t){return t.delete().then(function(){return t.continue()})})};
gK.prototype.get=function(D){return WY(this.JSC$10697_wrapped.get(D))};
gK.prototype.getAll=function(D,t){return"getAll"in IDBIndex.prototype?WY(this.JSC$10697_wrapped.getAll(D,t)):t7n(this,D,t)};
var t7n=function(D,t,H){var e=[];return _.wk(D,{query:t},function(V){if(!(H!==void 0&&e.length>=H))return e.push(V.getValue()),V.continue()}).then(function(){return e})};
gK.prototype.keyPath=function(){return this.JSC$10697_wrapped.keyPath};
gK.prototype.unique=function(){return this.JSC$10697_wrapped.unique};
_.wk=function(D,t,H){D=D.JSC$10697_wrapped.openCursor(t.query===void 0?null:t.query,t.direction===void 0?"next":t.direction);return Dlf(D).then(function(e){return DF8(e,H)})};
JC=function(D,t){this.request=D;this.cursor=t};
Dlf=function(D){return WY(D).then(function(t){return t?new JC(D,t):null})};
JC.prototype.continue=function(D){this.cursor.continue(D);return Dlf(this.request)};
JC.prototype.delete=function(){return WY(this.cursor.delete()).then(function(){})};
JC.prototype.getValue=function(){return this.cursor.value};
JC.prototype.update=function(D){return WY(this.cursor.update(D))};var YI=function(D,t){this.name=D;this.options=t;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},HGQ;
YI.prototype.openDb=function(D,t,H){H=H===void 0?{}:H;return H_V(D,t,H)};
YI.prototype.delete=function(D){D=D===void 0?{}:D;return _.BY(this.name,D)};
HGQ=function(D,t){return new pZ("INCOMPATIBLE_DB_VERSION",{dbName:D.name,oldVersion:D.options.version,newVersion:t})};
_.zW=function(D,t){if(!t)throw xx("openWithToken",ly(D.name));return D.open()};
YI.prototype.open=function(){var D=this;if(!this.isCompatible)throw HGQ(this);if(this.connectionPromise)return this.connectionPromise;var t,H=function(){D.connectionPromise===t&&(D.connectionPromise=void 0)},e={blocking:function(b){b.close()},
closed:H,terminated:H,upgrade:this.options.upgrade},V=function(){var b,a,w,h,K,N,k,T,c,U;return _.Z(function(S){switch(S.nextAddress){case 1:return a=(b=Error().stack)!=null?b:"",_.$p(S,2),S.yield(D.openDb(D.name,D.options.version,e),4);case 4:for(var L=w=S.yieldResult,J=D.options,g=[],Q=_.F(Object.keys(J.objectStores)),u=Q.next();!u.done;u=Q.next()){u=u.value;var R=J.objectStores[u],I=R.removedAtVersion===void 0?Number.MAX_VALUE:R.removedAtVersion;!(L.JSC$10672_wrapped.version>=R.addedAtVersion)||
L.JSC$10672_wrapped.version>=I||L.JSC$10672_wrapped.objectStoreNames.contains(u)||g.push(u)}h=g;if(h.length===0){S.jumpTo(5);break}K=Object.keys(D.options.objectStores);N=w.objectStoreNames();if(D.timesReopenedToFixMissingObjectStore<_.ZU("ytidb_reopen_db_retries",0))return D.timesReopenedToFixMissingObjectStore++,w.close(),_.LZ(new pZ("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:D.name,expectedObjectStores:K,foundObjectStores:N})),S.return(V());if(!(D.timesDeletedToFixMissingObjectStore<_.ZU("ytidb_remake_db_retries",
1))){S.jumpTo(6);break}D.timesDeletedToFixMissingObjectStore++;return S.yield(D.delete(),7);case 7:return _.LZ(new pZ("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:D.name,expectedObjectStores:K,foundObjectStores:N})),S.return(V());case 6:throw new d1v(N,K);case 5:return S.return(w);case 2:k=_.Pv(S);if(k instanceof DOMException?k.name!=="VersionError":"DOMError"in self&&k instanceof DOMError?k.name!=="VersionError":!(k instanceof Object&&"message"in k)||k.message!=="An attempt was made to open a database using a lower version than the existing version."){S.jumpTo(8);
break}return S.yield(D.openDb(D.name,void 0,Object.assign({},e,{upgrade:void 0})),9);case 9:T=S.yieldResult;c=T.getVersion();if(D.options.version!==void 0&&c>D.options.version+1)throw T.close(),D.isCompatible=!1,HGQ(D,c);return S.return(T);case 8:throw H(),k instanceof Error&&!_.r("ytidb_async_stack_killswitch")&&(k.stack=k.stack+"\n"+a.substring(a.indexOf("\n")+1)),I8A(k,D.name,"",(U=D.options.version)!=null?U:-1);}})};
return this.connectionPromise=t=V()};var edD=new YI("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(D,t){t(1)&&RP(D,"databases",{keyPath:"actualName"})}});var Z_$,a23=new function(){}(new function(){});new _.TK;var e6w=function(D,t){YI.call(this,D,t);this.options=t;Yx(D)};
_.P(e6w,YI);var jhR=function(D,t){var H;return function(){H||(H=new e6w(D,t));return H}};
e6w.prototype.openDb=function(D,t,H){H=H===void 0?{}:H;return(this.options.shared?KPD:EgV)(D,t,Object.assign({},H))};
e6w.prototype.delete=function(D){D=D===void 0?{}:D;return(this.options.shared?cGR:NnT)(this.name,D)};var V7n={},$F3=FU("ytGcfConfig",{objectStores:(V7n.coldConfigStore={addedAtVersion:1},V7n.hotConfigStore={addedAtVersion:1},V7n),shared:!1,upgrade:function(D,t){t(1)&&(ug(RP(D,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),ug(RP(D,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var bGB=function(){_.mg.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var D=_.RD("yt.gcf.config.hotUpdateCallbacks");D?(this.localHotConfigJobQueue=[].concat(_.A6(D)),this.sharedHotConfigJobQueue=D):(this.sharedHotConfigJobQueue=[],_.bg("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.P(bGB,_.mg);bGB.prototype.disposeInternal=function(){for(var D=_.F(this.localHotConfigJobQueue),t=D.next();!t.done;t=D.next()){var H=this.sharedHotConfigJobQueue;t=H.indexOf(t.value);t>=0&&H.splice(t,1)}this.localHotConfigJobQueue.length=0;_.mg.prototype.disposeInternal.call(this)};var mE=function(){var D=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new bGB;this.TEST_ONLY={initializeConfigDb:function(){D.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return D.coldGlobalConfigGroup},
setHotConfigGroup:function(t){qWf(D,t)},
setHotHashData:function(t){D.setHotHashData(t)},
setColdConfigGroup:function(t){FHm(D,t)},
getColdHashData:function(){return D.coldHashData},
getHotHashData:function(){return D.hotHashData},
getHotConfigGroup:function(){return D.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return as9()},
getExportedHotConfigGroup:function(){return l5()},
getExportedColdHashData:function(){return _.RD("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.RD("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){w3w(D)},
resetInstance:function(){D.setHotHashData(void 0);ZG9(D);delete mE.instance},
setDebounceTimer:function(t){D.debounceTimer=t},
getDebounceTimer:function(){return D.debounceTimer}}},szn=function(){if(!mE.instance){var D=new mE;
mE.instance=D}return mE.instance},ERn=function(D){var t;
_.Z(function(H){if(H.nextAddress==1)return _.r("start_client_gcf")||_.r("delete_gcf_config_db")?_.r("start_client_gcf")?H.yield(_.qO(),3):H.jumpTo(2):H.return();H.nextAddress!=2&&((t=H.yieldResult)&&_.PY()&&!_.r("delete_gcf_config_db")?(D.isConfigDbInitialized=!0,w3w(D)):(h6a(D),GAn(D)));return _.r("delete_gcf_config_db")?H.yield(P_T(),0):H.jumpTo(0)})},Mz=function(){var D;
return(D=l5())!=null?D:_.YC("RAW_HOT_CONFIG_GROUP")},KHn=function(D){var t,H,e,V,b,a;
return _.Z(function(w){switch(w.nextAddress){case 1:if(D.hotGlobalConfigGroup)return w.return(l5());if(!D.isConfigDbInitialized)return t=xx("getHotConfig IDB not initialized"),_.uh(t),w.return(Promise.reject(t));H=Vp();e=_.YC("TIME_CREATED_MS");if(!H){V=xx("getHotConfig token error");_.uh(V);w.jumpTo(2);break}return w.yield(og3(H),3);case 3:if((b=w.yieldResult)&&b.timestamp>e)return qWf(D,b.config),D.setHotHashData(b.hashData),w.return(l5());case 2:GAn(D);if(!(H&&D.hotGlobalConfigGroup&&D.hotHashData)){w.jumpTo(4);
break}return w.yield(rG3(D.hotGlobalConfigGroup,D.hotHashData,H,e),4);case 4:return D.hotGlobalConfigGroup?w.return(l5()):(a=new _.nZ("Config not available in ytConfig"),_.uh(a),w.return(Promise.reject(a)))}})},kAo=function(D){var t,H,e,V,b,a;
return _.Z(function(w){switch(w.nextAddress){case 1:if(D.coldGlobalConfigGroup)return w.return(as9());if(!D.isConfigDbInitialized)return t=xx("getColdConfig IDB not initialized"),_.uh(t),w.return(Promise.reject(t));H=Vp();e=_.YC("TIME_CREATED_MS");if(!H){V=xx("getColdConfig");_.uh(V);w.jumpTo(2);break}return w.yield(UFX(H),3);case 3:if((b=w.yieldResult)&&b.timestamp>e)return FHm(D,b.config),NZ3(D,b.configData),ZG9(D,b.hashData),w.return(as9());case 2:h6a(D);if(!(H&&D.coldGlobalConfigGroup&&D.coldHashData&&
D.configData)){w.jumpTo(4);break}return w.yield(O_6(D.coldGlobalConfigGroup,D.coldHashData,D.configData,H,e),4);case 4:return D.coldGlobalConfigGroup?w.return(as9()):(a=new _.nZ("Config not available in ytConfig"),_.uh(a),w.return(Promise.reject(a)))}})},w3w=function(D){if(!D.hotGlobalConfigGroup||!D.coldGlobalConfigGroup){if(!Vp()){var t=xx("scheduleGetConfigs");
_.uh(t)}D.initJob||(D.initJob=_.Jy.addLowPriorityJob(function(){return _.Z(function(H){switch(H.nextAddress){case 1:return _.$p(H,2),H.yield(KHn(D),4);case 4:_.yM(H,3);break;case 2:_.Pv(H);case 3:return _.$p(H,5),H.yield(kAo(D),7);case 7:_.yM(H,6);break;case 5:_.Pv(H);case 6:D.initJob&&(D.initJob=0),_.n2(H)}})},100))}},OfK=function(D,t,H){var e,V,b;
return _.Z(function(a){switch(a.nextAddress){case 1:if(!_.r("start_client_gcf")){a.jumpTo(0);break}H&&qWf(D,H);D.setHotHashData(t);e=Vp();if(!e){a.jumpTo(3);break}if(H){a.jumpTo(4);break}return a.yield(og3(e),5);case 5:V=a.yieldResult,H=(b=V)==null?void 0:b.config;case 4:return a.yield(rG3(H,t,e),3);case 3:if(H)for(var w=H,h=_.F(D.configUpdateService.sharedHotConfigJobQueue),K=h.next();!K.done;K=h.next())K=K.value,K(w);_.n2(a)}})},UxA=function(D,t,H){var e,V,b,a;
return _.Z(function(w){if(w.nextAddress==1){if(!_.r("start_client_gcf"))return w.jumpTo(0);ZG9(D,t);return(e=Vp())?H?w.jumpTo(4):w.yield(UFX(e),5):w.jumpTo(0)}w.nextAddress!=4&&(V=w.yieldResult,H=(b=V)==null?void 0:b.config);if(!H)return w.jumpTo(0);a=H.configData;return w.yield(O_6(H,t,a,e),0)})},RdV=function(){var D=szn(),t=(0,_.aP)()-D.debounceTimer;
if(!(D.debounceTimer!==0&&t<_.ZU("send_config_hash_timer"))){t=_.RD("yt.gcf.config.coldConfigData");var H=_.RD("yt.gcf.config.hotHashData"),e=_.RD("yt.gcf.config.coldHashData");t&&H&&e&&(D.debounceTimer=(0,_.aP)());return{coldConfigData:t,hotHashData:H,coldHashData:e}}},h6a=function(D){FHm(D,_.YC("RAW_COLD_CONFIG_GROUP"));
ZG9(D,_.YC("SERIALIZED_COLD_HASH_DATA"));var t;NZ3(D,(t=D.coldGlobalConfigGroup)==null?void 0:t.configData)},GAn=function(D){qWf(D,_.YC("RAW_HOT_CONFIG_GROUP"));
D.setHotHashData(_.YC("SERIALIZED_HOT_HASH_DATA"))},qWf=function(D,t){D.hotGlobalConfigGroup=t;
_.bg("yt.gcf.config.hotConfigGroup",D.hotGlobalConfigGroup||null)},FHm=function(D,t){D.coldGlobalConfigGroup=t;
_.bg("yt.gcf.config.coldConfigGroup",D.coldGlobalConfigGroup||null)};
mE.prototype.setHotHashData=function(D){this.hotHashData=D;_.bg("yt.gcf.config.hotHashData",this.hotHashData||null)};
var ZG9=function(D,t){D.coldHashData=t;_.bg("yt.gcf.config.coldHashData",D.coldHashData||null)},NZ3=function(D,t){D.configData=t;
_.bg("yt.gcf.config.coldConfigData",D.configData||null)},l5=function(){return _.RD("yt.gcf.config.hotConfigGroup")},as9=function(){return _.RD("yt.gcf.config.coldConfigGroup")};var jE={},TZV=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";jE.assign=function(D){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var H=t.shift();if(H){if(typeof H!=="object")throw new TypeError("Zc`"+H);for(var e in H)Object.prototype.hasOwnProperty.call(H,e)&&(D[e]=H[e])}}return D};
jE.shrinkBuf=function(D,t){if(D.length===t)return D;if(D.subarray)return D.subarray(0,t);D.length=t;return D};
var cKn={arraySet:function(D,t,H,e,V){if(t.subarray&&D.subarray)D.set(t.subarray(H,H+e),V);else for(var b=0;b<e;b++)D[V+b]=t[H+b]},
flattenChunks:function(D){var t,H;var e=H=0;for(t=D.length;e<t;e++)H+=D[e].length;var V=new Uint8Array(H);e=H=0;for(t=D.length;e<t;e++){var b=D[e];V.set(b,H);H+=b.length}return V}},jz9={arraySet:function(D,t,H,e,V){for(var b=0;b<e;b++)D[V+b]=t[H+b]},
flattenChunks:function(D){return[].concat.apply([],D)}};
jE.setTyped=function(){TZV?(jE.Buf8=Uint8Array,jE.Buf16=Uint16Array,jE.Buf32=Int32Array,jE.assign(jE,cKn)):(jE.Buf8=Array,jE.Buf16=Array,jE.Buf32=Array,jE.assign(jE,jz9))};
jE.setTyped();var $lV=!0;try{new Uint8Array(1)}catch(D){$lV=!1}
var oL$=function(D){var t,H,e=D.length,V=0;for(t=0;t<e;t++){var b=D.charCodeAt(t);if((b&64512)===55296&&t+1<e){var a=D.charCodeAt(t+1);(a&64512)===56320&&(b=65536+(b-55296<<10)+(a-56320),t++)}V+=b<128?1:b<2048?2:b<65536?3:4}var w=new jE.Buf8(V);for(t=H=0;H<V;t++)b=D.charCodeAt(t),(b&64512)===55296&&t+1<e&&(a=D.charCodeAt(t+1),(a&64512)===56320&&(b=65536+(b-55296<<10)+(a-56320),t++)),b<128?w[H++]=b:(b<2048?w[H++]=192|b>>>6:(b<65536?w[H++]=224|b>>>12:(w[H++]=240|b>>>18,w[H++]=128|b>>>12&63),w[H++]=
128|b>>>6&63),w[H++]=128|b&63);return w};var G1D={};G1D=function(D,t,H,e){var V=D&65535|0;D=D>>>16&65535|0;for(var b;H!==0;){b=H>2E3?2E3:H;H-=b;do V=V+t[e++]|0,D=D+V|0;while(--b);V%=65521;D%=65521}return V|D<<16|0};for(var XU={},vN,iGV=[],rKo=0;rKo<256;rKo++){vN=rKo;for(var OGa=0;OGa<8;OGa++)vN=vN&1?3988292384^vN>>>1:vN>>>1;iGV[rKo]=vN}XU=function(D,t,H,e){H=e+H;for(D^=-1;e<H;e++)D=D>>>8^iGV[(D^t[e])&255];return D^-1};var Oq={};Oq={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 Hgk=[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],VZT=[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],UyV=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],s5V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],nX=Array(576);NO(nX);var CX=Array(60);NO(CX);var ig=Array(512);NO(ig);var $V=Array(256);NO($V);var elA=Array(29);NO(elA);var bgu=Array(30);NO(bgu);var igK,rhR,Og3,$yD=!1;var gk;
gk=[new Ay(0,0,0,0,function(D,t){var H=65535;for(H>D.pending_buf_size-5&&(H=D.pending_buf_size-5);;){if(D.lookahead<=1){fX(D);if(D.lookahead===0&&t===0)return 1;if(D.lookahead===0)break}D.strstart+=D.lookahead;D.lookahead=0;var e=D.block_start+H;if(D.strstart===0||D.strstart>=e)if(D.lookahead=D.strstart-e,D.strstart=e,mY(D,!1),D.strm.avail_out===0)return 1;if(D.strstart-D.block_start>=D.w_size-262&&(mY(D,!1),D.strm.avail_out===0))return 1}D.insert=0;if(t===4)return mY(D,!0),D.strm.avail_out===0?3:
4;D.strstart>D.block_start&&mY(D,!1);return 1}),
new Ay(4,4,8,4,ELX),new Ay(4,5,16,8,ELX),new Ay(4,6,32,32,ELX),new Ay(4,4,16,16,LX),new Ay(8,16,32,32,LX),new Ay(8,16,128,128,LX),new Ay(8,32,128,256,LX),new Ay(32,128,258,1024,LX),new Ay(32,258,258,4096,LX)];var j5u={};j5u=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 PK3=Object.prototype.toString;
chT.prototype.push=function(D,t){var H=this.strm,e=this.options.chunkSize;if(this.ended)return!1;var V=t===~~t?t:t===!0?4:0;typeof D==="string"?H.input=oL$(D):PK3.call(D)==="[object ArrayBuffer]"?H.input=new Uint8Array(D):H.input=D;H.next_in=0;H.avail_in=H.input.length;do{H.avail_out===0&&(H.output=new jE.Buf8(e),H.next_out=0,H.avail_out=e);D=TxK(H,V);if(D!==1&&D!==0)return UlB(this,D),this.ended=!0,!1;if(H.avail_out===0||H.avail_in===0&&(V===4||V===2))if(this.options.to==="string"){var b=jE.shrinkBuf(H.output,
H.next_out);t=b;b=b.length;if(b<65537&&(t.subarray&&$lV||!t.subarray))t=String.fromCharCode.apply(null,jE.shrinkBuf(t,b));else{for(var a="",w=0;w<b;w++)a+=String.fromCharCode(t[w]);t=a}this.chunks.push(t)}else t=jE.shrinkBuf(H.output,H.next_out),this.chunks.push(t)}while((H.avail_in>0||H.avail_out===0)&&D!==1);if(V===4)return(H=this.strm)&&H.state?(e=H.state.status,e!==42&&e!==69&&e!==73&&e!==91&&e!==103&&e!==113&&e!==666?D=Uq(H,-2):(H.state=null,D=e===113?Uq(H,-3):0)):D=-2,UlB(this,D),this.ended=
!0,D===0;V===2&&(UlB(this,0),H.avail_out=0);return!0};
var UlB=function(D,t){t===0&&(D.result=D.options.to==="string"?D.chunks.join(""):jE.flattenChunks(D.chunks));D.chunks=[];D.err=t;D.msg=D.strm.msg};var oRQ=typeof TextEncoder!=="undefined"?new TextEncoder:null,eNK=oRQ?function(D){return oRQ.encode(D)}:function(D){D=_.CN(D);
for(var t=new Uint8Array(D.length),H=0;H<t.length;H++)t[H]=D[H];return t};var YAV={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},vkD={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var pv=function(D,t){this.version=D;this.args=t};
pv.prototype.serialize=function(){return{version:this.version,args:this.args}};var Ssk=function(D,t){this.topic=D;this.dataClass=t};
Ssk.prototype.toString=function(){return this.topic};var Po6=_.RD("ytPubsub2Pubsub2Instance")||new _.$x;_.$x.prototype.subscribe=_.$x.prototype.subscribe;_.$x.prototype.unsubscribeByKey=_.$x.prototype.unsubscribeByKey;_.$x.prototype.publish=_.$x.prototype.publish;_.$x.prototype.clear=_.$x.prototype.clear;_.bg("ytPubsub2Pubsub2Instance",Po6);var MZV=_.RD("ytPubsub2Pubsub2SubscribedKeys")||{};_.bg("ytPubsub2Pubsub2SubscribedKeys",MZV);var f9T=_.RD("ytPubsub2Pubsub2TopicToKeys")||{};_.bg("ytPubsub2Pubsub2TopicToKeys",f9T);
var XT3=_.RD("ytPubsub2Pubsub2IsAsync")||{};_.bg("ytPubsub2Pubsub2IsAsync",XT3);_.bg("ytPubsub2Pubsub2SkipSubKey",null);var xy$=void 0,pTX=void 0;var zl6=_.ZU("max_body_size_to_compress",5E5),DT3=_.ZU("min_body_size_to_compress",500),lg=!0,q_3=0,ve=0,bzK=_.ZU("compression_performance_threshold_lr",250),FVV=_.ZU("slow_compressions_before_abandon_count",4),WxX=!1,I93=new Map,HzT=1,ta$=!0;_.Zj(pX,Zzu);pX.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 nRQ=function(D,t,H){H||(H=0);var e=D.W_;if(typeof t==="string")for(var V=0;V<16;V++)e[V]=t.charCodeAt(H)<<24|t.charCodeAt(H+1)<<16|t.charCodeAt(H+2)<<8|t.charCodeAt(H+3),H+=4;else for(V=0;V<16;V++)e[V]=t[H]<<24|t[H+1]<<16|t[H+2]<<8|t[H+3],H+=4;for(t=16;t<80;t++)H=e[t-3]^e[t-8]^e[t-14]^e[t-16],e[t]=(H<<1|H>>>31)&4294967295;t=D.chain_[0];H=D.chain_[1];V=D.chain_[2];for(var b=D.chain_[3],a=D.chain_[4],w,h,K=0;K<80;K++)K<40?K<20?(w=b^H&(V^b),h=1518500249):(w=H^V^b,h=1859775393):K<60?(w=H&V|b&(H|V),
h=2400959708):(w=H^V^b,h=3395469782),w=(t<<5|t>>>27)+w+a+h+e[K]&4294967295,a=b,b=V,V=(H<<30|H>>>2)&4294967295,H=t,t=w;D.chain_[0]=D.chain_[0]+t&4294967295;D.chain_[1]=D.chain_[1]+H&4294967295;D.chain_[2]=D.chain_[2]+V&4294967295;D.chain_[3]=D.chain_[3]+b&4294967295;D.chain_[4]=D.chain_[4]+a&4294967295};
pX.prototype.update=function(D,t){if(D!=null){t===void 0&&(t=D.length);for(var H=t-this.blockSize,e=0,V=this.buf_,b=this.inbuf_;e<t;){if(b==0)for(;e<=H;)nRQ(this,D,e),e+=this.blockSize;if(typeof D==="string")for(;e<t;){if(V[b]=D.charCodeAt(e),++b,++e,b==this.blockSize){nRQ(this,V);b=0;break}}else for(;e<t;)if(V[b]=D[e],++b,++e,b==this.blockSize){nRQ(this,V);b=0;break}}this.inbuf_=b;this.total_+=t}};
pX.prototype.digest=function(){var D=[],t=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var H=this.blockSize-1;H>=56;H--)this.buf_[H]=t&255,t/=256;nRQ(this,this.buf_);for(H=t=0;H<5;H++)for(var e=24;e>=0;e-=8)D[t]=this.chain_[H]>>e&255,++t;return D};var GLK;var xI=function(D){var t=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(N){t.databaseToken=N},
triggerThrottle:function(){t.throttledSend()},
cancelThrottle:function(){t.cancelThrottledSend()},
immediateSend:function(N){return _.Z(function(k){return k.yield(t.immediateSend(N),0)})},
requestWithinAgeLimit:function(N,k){return t.requestWithinAgeLimit(N,k)},
retryQueuedRequests:function(){t.retryQueuedRequests()}};
var H;this.throttleTimeout=(H=D.throttleTimeout)!=null?H:100;var e;this.retryMaxAttempts=(e=D.retryMaxAttempts)!=null?e:1;var V;this.requestAgeLimitMs=(V=D.requestAgeLimitMs)!=null?V:2592E6;var b;this.queuedRequestAgeLimitMs=(b=D.queuedRequestAgeLimitMs)!=null?b:12E4;var a;this.retryDelayMs=(a=D.retryDelayMs)!=null?a:5E3;var w;this.databaseToken=(w=D.databaseToken)!=null?w:void 0;this.enableCleaning=!!D.enableCleaning;var h;this.cleaningRate=(h=D.cleaningRate)!=null?h:.1;var K;this.potentialEsfErrorLimit=
(K=D.potentialEsfErrorLimit)!=null?K:10;D.handleError&&(this.handleError=D.handleError);D.handleWarning&&(this.handleWarning=D.handleWarning);D.disableYtIdbTransactions&&(this.disableYtIdbTransactions=D.disableYtIdbTransactions);D.bypassDbTokenDependency&&(this.bypassDbTokenDependency=D.bypassDbTokenDependency);this.getBooleanFlag=D.getBooleanFlag;this.jobManager=D.jobManager;this.logsStore=D.logsStore;this.networkManager=D.networkManager;this.sendFn=D.sendFn;this.onlineEvent=D.onlineEvent;this.offlineEvent=
D.offlineEvent;dK(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&Co3(this)},Co3=function(D){dK(D)&&!D.disableYtIdbTransactions&&(D.initialized=!0,D.enableCleaning&&Math.random()<=D.cleaningRate&&D.logsStore.cleanLogsStore(D.databaseToken),D.retryQueuedRequests(),D.networkManager.isNetworkAvailable()&&D.throttledSend(),D.networkManager.listen(D.onlineEvent,D.throttledSend.bind(D)),D.networkManager.listen(D.offlineEvent,D.cancelThrottledSend.bind(D)))};
_.q=xI.prototype;_.q.writeThenSend=function(D,t){var H=this;t=t===void 0?{}:t;if(dK(this)&&this.initialized){var e={url:D,options:t,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(e,this.databaseToken).then(function(V){e.id=V;H.networkManager.isNetworkAvailable()&&H.immediateSend(e)}).catch(function(V){H.immediateSend(e);
mlw(H,V)})}else this.sendFn(D,t)};
_.q.sendThenWrite=function(D,t,H){var e=this;t=t===void 0?{}:t;if(dK(this)&&this.initialized){var V={url:D,options:t,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(V.skipRetry=H);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!V.skipRetry){if(!V.skipRetry){var b=t.onError?t.onError:function(){};
t.onError=function(a,w){return _.Z(function(h){if(h.nextAddress==1)return h.yield(e.logsStore.set(V,e.databaseToken).catch(function(K){mlw(e,K)}),2);
b(a,w);_.n2(h)})}}this.sendFn(D,t,V.skipRetry)}else this.logsStore.set(V,this.databaseToken).catch(function(a){e.sendFn(D,t,V.skipRetry);
mlw(e,a)})}else this.sendFn(D,t,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&H)};
_.q.sendAndWrite=function(D,t){var H=this;t=t===void 0?{}:t;if(dK(this)&&this.initialized){var e={url:D,options:t,timestamp:this.now(),status:"NEW",sendCount:0},V=!1,b=t.onSuccess?t.onSuccess:function(){};
e.options.onSuccess=function(a,w){e.id!==void 0?H.logsStore.deleteRequest(e.id,H.databaseToken):V=!0;H.networkManager.networkStatusHint&&H.getBooleanFlag&&H.getBooleanFlag("vss_network_hint")&&H.networkManager.networkStatusHint(!0);b(a,w)};
this.sendFn(e.url,e.options,void 0,!0);this.logsStore.set(e,this.databaseToken).then(function(a){e.id=a;V&&H.logsStore.deleteRequest(e.id,H.databaseToken)}).catch(function(a){mlw(H,a)})}else this.sendFn(D,t,void 0,!0)};
_.q.throttledSend=function(){var D=this;if(!dK(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(D.logsStore.getMostRecentByStatus("NEW",D.databaseToken),2);if(H.nextAddress!=3)return t=H.yieldResult,t?H.yield(D.immediateSend(t),3):(D.cancelThrottledSend(),H.return());D.intervalJob&&(D.intervalJob=0,D.throttledSend());_.n2(H)})},this.throttleTimeout))};
_.q.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.q.immediateSend=function(D){var t=this,H;return _.Z(function(e){switch(e.nextAddress){case 1:if(!dK(t))throw Error("cd");if(D.id===void 0){e.jumpTo(2);break}return e.yield(t.logsStore.markAsQueued(D.id,t.databaseToken),3);case 3:(H=e.yieldResult)||t.handleWarning(Error("dd"));case 2:if(t.requestWithinAgeLimit(D,t.requestAgeLimitMs)){e.jumpTo(4);break}t.handleWarning(Error("ed"));if(D.id===void 0){e.jumpTo(5);break}return e.yield(t.logsStore.deleteRequest(D.id,t.databaseToken),5);case 5:return e.return();
case 4:D.skipRetry||(D=M7Q(t,D));if(!D){e.jumpTo(0);break}if(!D.skipRetry||D.id===void 0){e.jumpTo(8);break}return e.yield(t.logsStore.deleteRequest(D.id,t.databaseToken),8);case 8:t.sendFn(D.url,D.options,!!D.skipRetry),_.n2(e)}})};
var M7Q=function(D,t){if(!dK(D))throw Error("fd");var H=t.options.onError?t.options.onError:function(){};
t.options.onError=function(V,b){var a,w,h,K;return _.Z(function(N){switch(N.nextAddress){case 1:a=Tj$(b);(w=cj8(b))&&D.getBooleanFlag&&D.getBooleanFlag("web_enable_error_204")&&D.handleError(Error("gd"),t.url,b);if(!(D.getBooleanFlag&&D.getBooleanFlag("nwl_consider_error_code")&&a||D.getBooleanFlag&&!D.getBooleanFlag("nwl_consider_error_code")&&D.potentialEsfErrorCounter<=D.potentialEsfErrorLimit)){N.jumpTo(2);break}if(!D.networkManager.sendNetworkCheckRequest){N.jumpTo(3);break}return N.yield(D.networkManager.sendNetworkCheckRequest(),
3);case 3:if(D.networkManager.isNetworkAvailable()){N.jumpTo(2);break}H(V,b);if(!D.getBooleanFlag||!D.getBooleanFlag("nwl_consider_error_code")||((h=t)==null?void 0:h.id)===void 0){N.jumpTo(6);break}return N.yield(D.logsStore.resetRequest(t.id,D.databaseToken,!1),6);case 6:return N.return();case 2:if(D.getBooleanFlag&&D.getBooleanFlag("nwl_consider_error_code")&&!a&&D.potentialEsfErrorCounter>D.potentialEsfErrorLimit)return N.return();D.potentialEsfErrorCounter++;if(((K=t)==null?void 0:K.id)===void 0){N.jumpTo(8);
break}return t.sendCount<D.retryMaxAttempts?N.yield(D.logsStore.resetRequest(t.id,D.databaseToken,!0,w?!1:void 0),12):N.yield(D.logsStore.deleteRequest(t.id,D.databaseToken),8);case 12:D.jobManager.addLowPriorityJob(function(){D.networkManager.isNetworkAvailable()&&D.throttledSend()},D.retryDelayMs);
case 8:H(V,b),_.n2(N)}})};
var e=t.options.onSuccess?t.options.onSuccess:function(){};
t.options.onSuccess=function(V,b){var a;return _.Z(function(w){if(w.nextAddress==1)return((a=t)==null?void 0:a.id)===void 0?w.jumpTo(2):w.yield(D.logsStore.deleteRequest(t.id,D.databaseToken),2);D.networkManager.networkStatusHint&&D.getBooleanFlag&&D.getBooleanFlag("vss_network_hint")&&D.networkManager.networkStatusHint(!0);e(V,b);_.n2(w)})};
return t};
xI.prototype.requestWithinAgeLimit=function(D,t){D=D.timestamp;return this.now()-D>=t?!1:!0};
xI.prototype.retryQueuedRequests=function(){var D=this;if(!dK(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(t){t&&!D.requestWithinAgeLimit(t,D.queuedRequestAgeLimitMs)?D.jobManager.addLowPriorityJob(function(){return _.Z(function(H){if(H.nextAddress==1)return t.id===void 0?H.jumpTo(2):H.yield(D.logsStore.resetRequest(t.id,D.databaseToken),2);D.retryQueuedRequests();_.n2(H)})}):D.networkManager.isNetworkAvailable()&&D.throttledSend()})};
var mlw=function(D,t){D.writeError&&!D.networkManager.isNetworkAvailable()?D.writeError(t):D.handleError(t)},dK=function(D){return!!D.databaseToken||D.bypassDbTokenDependency};var jQV;var niK={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,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,
visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,
spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,
vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,
buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,
buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,
transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,
outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,
ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,
watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,
deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,
ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,
watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,
tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,
tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,
activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,
browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,
gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,
sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,
musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,
embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,
getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,
unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,
connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var SW6={},mT$=FU("ServiceWorkerLogsDatabase",{objectStores:(SW6.SWHealthLog={addedAtVersion:1},SW6),shared:!0,upgrade:function(D,t){t(1)&&ug(RP(D,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var Jj3={},gP8=0;var pc6;var RJ=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Be=function(){if(!RJ.instance){var D=_.RD("yt.networkRequestMonitor.instance")||new RJ;
_.bg("yt.networkRequestMonitor.instance",D);RJ.instance=D}return RJ.instance};
RJ.prototype.requestComplete=function(D,t){t&&(this.anyRequestHasSucceeded=!0);D=this.removeParams(D);this.requestMap.get(D)||this.requestMap.set(D,t)};
RJ.prototype.isEndpointCFR=function(D){D=this.removeParams(D);return(D=this.requestMap.get(D))?!1:D===!1&&this.anyRequestHasSucceeded?!0:null};
RJ.prototype.removeParams=function(D){return D.split("?")[0]};
RJ.prototype.removeParams=RJ.prototype.removeParams;RJ.prototype.isEndpointCFR=RJ.prototype.isEndpointCFR;RJ.prototype.requestComplete=RJ.prototype.requestComplete;RJ.getInstance=Be;var u5=function(D){_.J2.call(this);var t=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=D!=null?D:{addLowPriorityJob:function(V,b){return setTimeout(V,b)},
cancelJob:function(V){clearTimeout(V)}};
var H,e;this.isOnline=(e=(H=window.navigator)==null?void 0:H.onLine)!=null?e:!0;this.onNavigatorChange=function(){return _.Z(function(V){return V.yield(X3n(t),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||fsm(this)};
_.P(u5,_.J2);u5.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete u5.instance};
u5.prototype.isNetworkAvailable=function(){return this.isOnline};
var fsm=function(D){D.pollingJob=D.jobManager.addLowPriorityJob(function(){var t;return _.Z(function(H){if(H.nextAddress==1)return D.isOnline?((t=window.navigator)==null?0:t.onLine)?H.jumpTo(3):H.yield(X3n(D),3):H.yield(X3n(D),3);fsm(D);_.n2(H)})},3E4)},X3n=function(D,t){return D.networkRequestPromise?D.networkRequestPromise:D.networkRequestPromise=new Promise(function(H){var e,V,b,a;
return _.Z(function(w){switch(w.nextAddress){case 1:return e=window.AbortController?new window.AbortController:void 0,b=(V=e)==null?void 0:V.signal,a=!1,_.$p(w,2,3),e&&(D.abortTimeoutKey=D.jobManager.addLowPriorityJob(function(){e.abort()},t||2E4)),w.yield(fetch("/generate_204",{method:"HEAD",
signal:b}),5);case 5:a=!0;case 3:_.rN(w);D.networkRequestPromise=void 0;D.abortTimeoutKey&&(D.jobManager.cancelJob(D.abortTimeoutKey),D.abortTimeoutKey=0);a!==D.isOnline&&(D.isOnline=a,D.isOnline?D.dispatchEvent("networkstatus-online"):D.dispatchEvent("networkstatus-offline"));H(a);_.ox(w,0);break;case 2:_.Pv(w),a=!1,w.jumpTo(3)}})})};var WN=function(){_.J2.call(this);var D=this;this.shouldFlushErrors=!1;u5.instance||(u5.instance=new u5(_.Jy));this.sharedNetworkStatusManager=u5.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(D.shouldFlushErrors&&_.r("offline_error_handling")){var t=dT8().get("errors",!0);if(t){for(var H in t)if(t[H]){var e=new _.nZ(H,"sent via offline_errors");e.name=t[H].name;e.stack=t[H].stack;e.level=t[H].level;_.vn(e)}dT8().set("errors",{},2592E3,!0)}}})};
_.P(WN,_.J2);var LHo=function(){if(!WN.instance){var D=_.RD("yt.networkStatusManager.instance")||new WN;_.bg("yt.networkStatusManager.instance",D);WN.instance=D}return WN.instance};
_.q=WN.prototype;_.q.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.q.networkStatusHint=function(D){this.sharedNetworkStatusManager.isOnline=D};
_.q.getWindowStatus=function(){var D=window.navigator.onLine;return D===void 0?!0:D};
_.q.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.q.listen=function(D,t){return this.sharedNetworkStatusManager.listen(D,t)};
_.q.sendNetworkCheckRequest=function(D){D=X3n(this.sharedNetworkStatusManager,D);D.then(function(t){_.r("use_cfr_monitor")&&Be().requestComplete("generate_204",t)});
return D};
WN.prototype.sendNetworkCheckRequest=WN.prototype.sendNetworkCheckRequest;WN.prototype.listen=WN.prototype.listen;WN.prototype.enableErrorFlushing=WN.prototype.enableErrorFlushing;WN.prototype.getWindowStatus=WN.prototype.getWindowStatus;WN.prototype.networkStatusHint=WN.prototype.networkStatusHint;WN.prototype.isNetworkAvailable=WN.prototype.isNetworkAvailable;WN.getInstance=LHo;_.yp=function(D){D=D===void 0?{}:D;_.J2.call(this);var t=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=LHo();var H=_.RD("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);H&&(D.rateLimit?(this.rateLimit=D.rateLimit,H("networkstatus-online",function(){AKo(t,"publicytnetworkstatus-online")}),H("networkstatus-offline",function(){AKo(t,"publicytnetworkstatus-offline")})):(H("networkstatus-online",function(){t.dispatchEvent("publicytnetworkstatus-online")}),H("networkstatus-offline",
function(){t.dispatchEvent("publicytnetworkstatus-offline")})))};
_.P(_.yp,_.J2);_.yp.prototype.isNetworkAvailable=function(){var D=_.RD("yt.networkStatusManager.instance.isNetworkAvailable");return D?D.bind(this.nsmInstance)():!0};
_.yp.prototype.networkStatusHint=function(D){var t=_.RD("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);t&&t(D)};
_.yp.prototype.sendNetworkCheckRequest=function(D){var t=this,H;return _.Z(function(e){H=_.RD("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(t.nsmInstance);return _.r("skip_network_check_if_cfr")&&Be().isEndpointCFR("generate_204")?e.return(new Promise(function(V){var b;t.networkStatusHint(((b=window.navigator)==null?void 0:b.onLine)||!0);V(t.isNetworkAvailable())})):H?e.return(H(D)):e.return(!0)})};
var AKo=function(D,t){D.rateLimit?D.lastJobTime?(_.Jy.cancelJob(D.schedulerJob),D.schedulerJob=_.Jy.addLowPriorityJob(function(){D.lastPublicSignalSent!==t&&(D.dispatchEvent(t),D.lastPublicSignalSent=t,D.lastJobTime=(0,_.aP)())},D.rateLimit-((0,_.aP)()-D.lastJobTime))):(D.dispatchEvent(t),D.lastPublicSignalSent=t,D.lastJobTime=(0,_.aP)()):D.dispatchEvent(t)};var Itu,IJ=function(){xI.call(this,{logsStore:{cleanLogsStore:nPV,deleteRequest:Pf3,getMostRecentByStatus:OzT,markAsQueued:UTD,resetRequest:oPA,set:rjA},networkManager:_.QQT(),handleError:function(D,t,H){var e,V=H==null?void 0:(e=H.error)==null?void 0:e.code;if(V===400||V===415){var b;D=new _.nZ(D.message,t,H==null?void 0:(b=H.error)==null?void 0:b.code);_.uh(D,void 0,void 0,void 0,!0)}else _.vn(D)},
handleWarning:_.uh,sendFn:uQX,now:_.aP,writeError:xT6,jobManager:_.Cs(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.ZU("potential_esf_error_limit",10),getBooleanFlag:_.r,disableYtIdbTransactions:!(_.PY()&&_.yjA())});this.initializationPromise=new _.TK;_.r("networkless_immediately_drop_all_requests")&&CfV();cGR("LogsDatabaseV2")};
_.P(IJ,xI);_.JKV=function(){var D=_.RD("yt.networklessRequestController.instance");D||(D=new IJ,_.bg("yt.networklessRequestController.instance",D),_.r("networkless_logging")&&_.qO().then(function(t){D.databaseToken=t;Co3(D);D.initializationPromise.resolve();D.enableCleaning&&Math.random()<=D.cleaningRate&&D.databaseToken&&S_k(D.databaseToken);_.r("networkless_immediately_drop_sw_health_store")&&gR4(D)}));
return D};
IJ.prototype.writeThenSend=function(D,t){t||(t={});t=WV6(D,t);_.PY()||(this.initialized=!1);xI.prototype.writeThenSend.call(this,D,t)};
IJ.prototype.sendThenWrite=function(D,t,H){t||(t={});t=WV6(D,t);_.PY()||(this.initialized=!1);xI.prototype.sendThenWrite.call(this,D,t,H)};
IJ.prototype.sendAndWrite=function(D,t){t||(t={});t=WV6(D,t);_.PY()||(this.initialized=!1);xI.prototype.sendAndWrite.call(this,D,t)};
IJ.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var gR4=function(D){var t;_.Z(function(H){if(!D.databaseToken)throw t=xx("clearSWHealthLogsDb"),t;return H.return(XcR(D.databaseToken).catch(function(e){D.handleError(e)}))})};_.zNV=!1;_.BjV=_.VA.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.zNV};_.bg("ytNetworklessLoggingInitializationOptions",_.BjV);var f7=function(D){var t=this;this.config_=null;D?this.config_=D:ngX()&&(this.config_=_.Z4());_.C7(_.Jy,function(){kL$(t)},5E3)};
f7.prototype.isReady=function(){!this.config_&&ngX()&&(this.config_=_.Z4());return!!this.config_};
var NjK=function(D,t,H,e){!_.YC("VISITOR_DATA")&&t!=="visitor_id"&&Math.random()<.01&&_.uh(new _.nZ("Missing VISITOR_DATA when sending innertube request.",t,H,e));if(!D.isReady()){var V=new _.nZ("innertube xhrclient not ready",t,H,e);_.vn(V);throw V;}var b={headers:e.headers||{},method:"POST",postParams:H,postBody:e.postBody,postBodyFormat:e.postBodyFormat||"JSON",onTimeout:function(){e.onTimeout()},
onFetchTimeout:e.onTimeout,onSuccess:function(k,T){if(e.onSuccess)e.onSuccess(T)},
onFetchSuccess:function(k){if(e.onSuccess)e.onSuccess(k)},
onProgress:function(k){if(e.onProgress)e.onProgress(k)},
onError:function(k,T){if(e.onError)e.onError(T)},
onFetchError:function(k){if(e.onError)e.onError(k)},
timeout:e.timeout,withCredentials:!0,compress:e.compress};b.headers["Content-Type"]||(b.headers["Content-Type"]="application/json");var a="";(V=D.config_.innertubeHostOverride)&&(a=V);var w=D.config_.innertubeUseThirdPartyAuth||!1,h=_.xF8(w,a,e);Object.assign(b.headers,h);b.headers.Authorization&&!a&&w&&(b.headers["x-origin"]=window.location.origin);var K=_.Bn(a+("/youtubei/"+D.config_.innertubeApiVersion+"/"+t),{alt:"json"}),N=function(k){k=k===void 0?!1:k;var T;if(e.retry&&a!="www.youtube-nocookie.com"&&
(k||_.r("skip_ls_gel_retry")||b.headers["Content-Type"]!=="application/json"||(T=EP$(t,H,h,w)),T)){var c=b.onSuccess,U=b.onFetchSuccess;b.onSuccess=function(J,g){KVA(T);c(J,g)};
H.onFetchSuccess=function(J,g){KVA(T);U(J,g)}}try{if(k&&e.retry&&!e.networklessOptions.bypassNetworkless)b.method="POST",e.networklessOptions.writeThenSend?_.JKV().writeThenSend(K,b):_.JKV().sendAndWrite(K,b);
else if(e.compress){var S=!e.networklessOptions.writeThenSend;if(b.postBody){var L=b.postBody;typeof L!=="string"&&(L=JSON.stringify(b.postBody));Va8(K,L,b,_.cY,S)}else Va8(K,JSON.stringify(b.postParams),b,sf3,S)}else _.r("web_all_payloads_via_jspb")?_.cY(K,b):sf3(K,b)}catch(J){if(J.name==="InvalidAccessError")T&&(KVA(T),T=0),_.uh(Error("id"));else throw J;}T&&_.C7(_.Jy,function(){kL$(D)},5E3)};
_.DX3()?shk().then(function(k){N(k)}):N(!1)};var EkK=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(EkK,_.ww);var YWB=0,HbD=_.NG?"webkit":_.Ka?"moz":_.Et?"ms":QUk?"o":"";_.bg("ytDomDomGetNextId",_.RD("ytDomDomGetNextId")||function(){return++YWB});var lsQ={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},Va=function(D){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(D=
D||window.event){this.event=D;for(var t in D)t in lsQ||(this[t]=D[t]);this.scale=D.scale;this.rotation=D.rotation;var H=D.target||D.srcElement;H&&H.nodeType==3&&(H=H.parentNode);this.target=H;var e=D.relatedTarget;if(e)try{e=e.nodeName?e:null}catch(V){e=null}else this.type=="mouseover"?e=D.fromElement:this.type=="mouseout"&&(e=D.toElement);this.relatedTarget=e;this.clientX=D.clientX!=void 0?D.clientX:D.pageX;this.clientY=D.clientY!=void 0?D.clientY:D.pageY;this.keyCode=D.keyCode?D.keyCode:D.which;
this.charCode=D.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=D.altKey;this.ctrlKey=D.ctrlKey;this.shiftKey=D.shiftKey;this.metaKey=D.metaKey;this.pageX_=D.pageX;this.pageY_=D.pageY}}catch(V){}},vRm=function(D){if(document.body&&document.documentElement){var t=document.body.scrollTop+document.documentElement.scrollTop;
D.pageX_=D.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);D.pageY_=D.clientY+t}};
Va.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
Va.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
Va.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var e4=_.VA.ytEventsEventsListeners||{};_.bg("ytEventsEventsListeners",e4);var aPT=_.VA.ytEventsEventsCounter||{count:0};_.bg("ytEventsEventsCounter",aPT);var wZ$=_.LJ(function(){var D=!1;try{var t=Object.defineProperty({},"capture",{get:function(){D=!0}});
window.addEventListener("test",null,t)}catch(H){}return D});_.Zj(qz,_.mg);qz.prototype.onMouseMove_=function(D){D.pageX_===void 0&&vRm(D);var t=D.pageX_;D.pageY_===void 0&&vRm(D);this.position_=new _.lR(t,D.pageY_)};
qz.prototype.checkPosition_=function(){if(this.position_){var D=(0,_.aP)();if(this.previousTime_!=0){var t=this.previousPosition_,H=this.position_,e=t.x-H.x;t=t.y-H.y;e=Math.sqrt(e*e+t*t)/(D-this.previousTime_);this.cycles_[this.index_]=Math.abs((e-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(H=t=0;H<4;H++)t+=this.cycles_[H]||0;t>=3&&this.callback_();this.previousVelocity_=e}this.previousTime_=D;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
qz.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.ZbX(this.mouseListenerKey_)};var KMD={};var r58=new _.NM("rawColdConfigGroup");var if$=new _.NM("rawHotConfigGroup");var p3n=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(p3n,_.ww);var GOV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(GOV,_.ww);var n7=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D,500)};
_.P(n7,_.ww);n7.prototype.getPayloadCase=function(){return _.na(this,dl9)};
n7.prototype.getContext=function(){return _.sq(this,GOV,33)};
var dl9=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529];var NFV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(NFV,_.ww);var RMV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(RMV,_.ww);RMV.prototype.setVideoId=function(D){return j4(this,1,uIX,r4(D))};
RMV.prototype.getPlaylistId=function(){return _.rV(this,Up(this,uIX,2))};
var uIX=[1,2];var ZfD=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(ZfD,_.ww);ZfD.prototype.getContext=function(){return _.sq(this,$w,1)};
ZfD.prototype.getTier=function(){return _.AM(this,7)};var xln,Zx,sp;xln=_.VA.ytPubsubPubsubInstance||new _.$x;Zx=_.VA.ytPubsubPubsubSubscribedKeys||{};sp=_.VA.ytPubsubPubsubTopicToKeys||{};_.NmK=_.VA.ytPubsubPubsubIsSynchronous||{};_.$x.prototype.subscribe=_.$x.prototype.subscribe;_.$x.prototype.unsubscribeByKey=_.$x.prototype.unsubscribeByKey;_.$x.prototype.publish=_.$x.prototype.publish;_.$x.prototype.clear=_.$x.prototype.clear;_.bg("ytPubsubPubsubInstance",xln);_.bg("ytPubsubPubsubTopicToKeys",sp);_.bg("ytPubsubPubsubIsSynchronous",_.NmK);
_.bg("ytPubsubPubsubSubscribedKeys",Zx);var Ep=window;var QB=_.r("web_enable_lifecycle_monitoring")&&$XV()!==0,R6a=_.r("web_enable_lifecycle_monitoring");var uu4=function(D){var t=this;var H=H===void 0?0:H;var e=e===void 0?_.Cs():e;this.JSC$10894_defaultPriority=H;this.scheduler=e;this.completedResolver=new _.TK;this.scheduledPayloads=D;for(D={i$jscomp$492:0};D.i$jscomp$492<this.scheduledPayloads.length;D={payload$jscomp$20:void 0,i$jscomp$492:D.i$jscomp$492},D.i$jscomp$492++)D.payload$jscomp$20=this.scheduledPayloads[D.i$jscomp$492],H=function(V){return function(){V.payload$jscomp$20.job();t.scheduledPayloads[V.i$jscomp$492].processed=!0;t.scheduledPayloads.every(function(b){return b.processed===
!0})&&t.completedResolver.resolve()}}(D),e=this.getPriority(D.payload$jscomp$20),e=this.scheduler.addJob(H,e),this.scheduledPayloads[D.i$jscomp$492]=Object.assign({},D.payload$jscomp$20,{job:H,
jobId:e})};
uu4.prototype.flushJobs=function(){var D=this,t=Array.from(this.scheduledPayloads.keys()).sort(function(e,V){return D.getPriority(D.scheduledPayloads[V])-D.getPriority(D.scheduledPayloads[e])});
t=_.F(t);for(var H=t.next();!H.done;H=t.next())H=this.scheduledPayloads[H.value],H.jobId===void 0||H.processed||(this.scheduler.cancelJob(H.jobId),this.scheduler.addJob(H.job,10))};
uu4.prototype.cancel=function(){for(var D=_.F(this.scheduledPayloads),t=D.next();!t.done;t=D.next())t=t.value,t.jobId===void 0||t.processed||this.scheduler.cancelJob(t.jobId),t.processed=!0;this.completedResolver.resolve()};
uu4.prototype.getPriority=function(D){var t;return(t=D.priority)!=null?t:this.JSC$10894_defaultPriority};var yB=function(D){this.state=D;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};QB&&ibV(this.state)};
yB.prototype.install=function(D){this.plugins.push(D);return this};
yB.prototype.uninstall=function(){var D=this;_.RE.apply(0,arguments).forEach(function(t){t=D.plugins.indexOf(t);t>-1&&D.plugins.splice(t,1)})};
yB.prototype.transition=function(D,t){var H=this;QB&&rB6(this.state);var e=this.transitions.find(function(b){return Array.isArray(b.from)?b.from.find(function(a){return a===H.state&&b.to===D}):b.from===H.state&&b.to===D});
if(e){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);WHn(this,D,t);this.state=D;QB&&ibV(this.state);e=e.action.bind(this);var V=this.plugins.filter(function(b){return b[D]}).map(function(b){return b[D]});
e(Iso(this,V),t)}else throw Error("jd`"+this.state+"`"+D);};
var Iso=function(D,t){var H=t.filter(function(V){return Qzf(D,V)===10}),e=t.filter(function(V){return Qzf(D,V)!==10});
return D.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var V=_.RE.apply(0,arguments);return _.Z(function(b){if(b.nextAddress==1)return b.yield(D.runImmediateJobsAsync.apply(D,[H].concat(_.A6(V))),2);D.setJobSetWithScheduledJobs.apply(D,[e].concat(_.A6(V)));_.n2(b)})}:function(){var V=_.RE.apply(0,arguments);
D.runImmediateJobsSync.apply(D,[H].concat(_.A6(V)));D.setJobSetWithScheduledJobs.apply(D,[e].concat(_.A6(V)))}};
yB.prototype.runImmediateJobsSync=function(D){var t=_.RE.apply(1,arguments);_.Cs();for(var H=_.F(D),e=H.next(),V={};!e.done;V={lifecycle$jscomp$2:void 0},e=H.next())V.lifecycle$jscomp$2=e.value,NX(function(b){return function(){yKB(b.lifecycle$jscomp$2.name);UXk(function(){return b.lifecycle$jscomp$2.callback.apply(b.lifecycle$jscomp$2,_.A6(t))});
BN(b.lifecycle$jscomp$2.name)}}(V))};
yB.prototype.runImmediateJobsAsync=function(D){var t=_.RE.apply(1,arguments),H,e,V,b;return _.Z(function(a){a.nextAddress==1&&(_.Cs(),H=_.F(D),e=H.next(),V={});if(a.nextAddress!=3){if(e.done)return a.jumpTo(0);V.lifecycle$jscomp$3=e.value;V.asyncJobCompletion=void 0;b=function(w){return function(){yKB(w.lifecycle$jscomp$3.name);var h=UXk(function(){return w.lifecycle$jscomp$3.callback.apply(w.lifecycle$jscomp$3,_.A6(t))});
PC3(h)?w.asyncJobCompletion=_.r("web_lifecycle_error_handling_killswitch")?h.then(function(){BN(w.lifecycle$jscomp$3.name)}):h.then(function(){BN(w.lifecycle$jscomp$3.name)},function(K){ObV(K);
BN(w.lifecycle$jscomp$3.name)}):BN(w.lifecycle$jscomp$3.name)}}(V);
NX(b);return V.asyncJobCompletion?a.yield(V.asyncJobCompletion,3):a.jumpTo(3)}V={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};e=H.next();return a.jumpTo(2)})};
yB.prototype.setJobSetWithScheduledJobs=function(D){var t=_.RE.apply(1,arguments),H=this,e=D.map(function(V){return{job:function(){yKB(V.name);UXk(function(){return V.callback.apply(V,_.A6(t))});
BN(V.name)},
priority:Qzf(H,V)}});
e.length&&(this.jobSet=new uu4(e))};
var Qzf=function(D,t){var H,e;return(e=(H=D.overridePriority)!=null?H:t.priority)!=null?e:0},yKB=function(D){QB&&D&&ibV(D)},BN=function(D){QB&&D&&rB6(D)},WHn=function(D,t,H){R6a&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+D.constructor.name+"] '"+D.state+"' to '"+t+"'"),console.log("with message: ",H),console.groupEnd())};
_.ql.Object.defineProperties(yB.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var BZ6=function(D){yB.call(this,D===void 0?"none":D);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(){}}]},z6m;
_.P(BZ6,yB);BZ6.prototype.runApplicationNavigationBegin=function(D,t){var H=this;this.navigationTimer=_.C7(_.Jy,function(){H.currentState==="application_navigating"&&H.transition("none")},5E3);
D(t==null?void 0:t.event)};
BZ6.prototype.runApplicationNavigationEnd=function(D,t){this.navigationTimer&&(_.Jy.cancelJob(this.navigationTimer),this.navigationTimer=null);D(t==null?void 0:t.event)};
_.$xX=function(){z6m||(z6m=new BZ6);return z6m};var jn6=[];_.bg("yt.logging.transport.getScrapedGelPayloads",function(){return jn6});var K7=function(){var D=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return D.totalEntries}}};
K7.prototype.storePayload=function(D,t){D=oXX(D);this.store[D]?this.store[D].push(t):(this.memoizedKeySequences={},this.store[D]=[t]);this.totalEntries++;_.r("more_accurate_gel_parser")&&(t=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(t));return D};
K7.prototype.smartExtractMatchingEntries=function(D){if(!D.keys.length)return[];for(var t=DJm(this,D.keys.splice(0,1)[0]),H=[],e=0;e<t.length;e++)this.store[t[e]]&&D.sizeLimit&&(this.store[t[e]].length<=D.sizeLimit?(H.push.apply(H,_.A6(this.store[t[e]])),delete this.store[t[e]]):H.push.apply(H,_.A6(this.store[t[e]].splice(0,D.sizeLimit))));this.totalEntries-=H.length;(D==null?0:D.sizeLimit)&&H.length<(D==null?void 0:D.sizeLimit)&&(D.sizeLimit-=H.length,H.push.apply(H,_.A6(this.smartExtractMatchingEntries(D))));
return H};
K7.prototype.extractMatchingEntries=function(D){D=DJm(this,D);for(var t=[],H=0;H<D.length;H++)this.store[D[H]]&&(t.push.apply(t,_.A6(this.store[D[H]])),delete this.store[D[H]]);this.totalEntries-=t.length;return t};
K7.prototype.getSequenceCount=function(D){D=DJm(this,D);for(var t=0,H=0;H<D.length;H++){var e=void 0;t+=((e=this.store[D[H]])==null?void 0:e.length)||0}return t};
var DJm=function(D,t){var H=oXX(t);if(D.memoizedKeySequences[H])return D.memoizedKeySequences[H];var e=Object.keys(D.store)||[];if(e.length<=1&&oXX(t)===e[0])return e;for(var V=[],b=0;b<e.length;b++){var a=e[b].split("/");if(tPf(t.auth,a[0])){var w=t.isJspb;tPf(w===void 0?"undefined":w?"true":"false",a[1])&&tPf(t.cttAuthInfo,a[2])&&(w=t.tier,w=w===void 0?"undefined":JSON.stringify(w),tPf(w,a[3])&&V.push(e[b]))}}return D.memoizedKeySequences[H]=V},tPf=function(D,t){return D===void 0||D==="undefined"?
!0:D===t};
K7.prototype.getSequenceCount=K7.prototype.getSequenceCount;K7.prototype.extractMatchingEntries=K7.prototype.extractMatchingEntries;K7.prototype.smartExtractMatchingEntries=K7.prototype.smartExtractMatchingEntries;K7.prototype.storePayload=K7.prototype.storePayload;var Hf8,DxD,eoV,T0,HlB,POK,oi8,zM3,BmA,lP$,tdA,TF6,IP3;Hf8=_.ZU("initial_gel_batch_timeout",2E3);DxD=_.ZU("gel_queue_timeout_max_ms",6E4);eoV=_.ZU("gel_min_batch_size",5);T0=void 0;HlB=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
POK=new HlB;oi8=new HlB;zM3=new HlB;BmA=new HlB;tdA=!0;TF6=1;_.kmA=new Map;IP3=_.VA.ytLoggingTransportTokensToCttTargetIds_||{};_.bg("ytLoggingTransportTokensToCttTargetIds_",IP3);var WMk=_.VA.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.bg("ytLoggingTransportTokensToJspbCttTargetIds_",WMk);var kw={};var S4=_.VA.ytLoggingGelSequenceIdObj_||{};_.bg("ytLoggingGelSequenceIdObj_",S4);var mxA=[];var p5D=new Set,LtD=0,uAK=0,RoD=0,giK=[],A58=[],Wt6=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var FcV=function(){};
FcV.prototype.getUrl=function(D,t){t=t===void 0?!1:t;return D.hasOwnProperty("shareEndpoint")?null:_.BFK(D,null,t)};
var aHV=function(D,t,H){D={endpoint:t,actions:[]};H=(H.path?H.path[0]:H.target).icon||"";t=H.indexOf(":");t>0&&(H=H.substr(t+1));H&&D.actions.push(H);return D};var VNk=/Command$/,e7V=/Endpoint$/,DIV=new Map;var eL6,VPf;eL6=1;_.Qa=function(){this.actionRoutingMap=new Map};
_.Qa.prototype.triggerAction=function(D){var t=new RjV(D,!1,_.RE.apply(1,arguments));this.handleAction(t);return t.returnValue};
_.Qa.prototype.triggerOptionalAction=function(D){var t=new RjV(D,!0,_.RE.apply(1,arguments));this.handleAction(t);return t.returnValue};
_.zB=function(D,t,H){t.forEach(function(e){var V=HPV(e);V&&D.triggerOptionalAction(V,e,H,void 0)})};
_.Qa.prototype.handleAction=function(D){var t=this.actionRoutingMap.get(D.actionName);t&&VPf(D,t);D.optionalAction||D.returnValue.length!==0||(D=new _.nZ("Unhandled action",D.actionName),_.uh(D))};
VPf=function(D,t){t.forEach(function(H){var e=null;H?e=H.apply(null,D.args):(H=Error("kd"),H.params=D.actionName,_.vn(H));D.returnValue.push(e)})};
_.ya=function(D,t,H){H||(H=eL6++);for(var e=_.F(Object.keys(t)),V=e.next();!V.done;V=e.next()){V=V.value;var b=D.actionRoutingMap.get(V);b||(b=new Map,D.actionRoutingMap.set(V,b));D.registerActionHandler(H,V,t[V],b)}return H};
_.Qa.prototype.registerActionHandler=function(D,t,H,e){e.set(D,_.pY(H))};
_.B$=function(D,t,H){t=_.F(Object.keys(t));for(var e=t.next();!e.done;e=t.next())(e=D.actionRoutingMap.get(e.value))&&e.delete(H)};
_.ak(_.Qa);var ZPA=function(D,t){var H=_.Qa.getInstance();_.XH(function(){var e={},V=_.ya(H,(e[D]=t,e));_.Sj(function(){var b={};_.B$(H,(b[D]="",b),V)})})};var cgX=Symbol("md");ERD=WHD;var oGD=new Set(["For","If","Match","Watch"]),bl9={},qTn=(bl9[lD.default]=function(){return FHD},bl9.style=function(){return FHD},bl9),F$a;
for(F$a in qTn)F2.attributes[F$a]=qTn[F$a](F2.attributes[F$a]);var aC=new _.kI("VISIBILITY_OBSERVER");var Alk={retrieve:function(D){return this.id.\u0275prov.token===D.\u0275prov.token?this.contextValue:this?_.Vt(this,this.id):SqR}};var sl3=function(D,t,H){if(D!==V9)return!1;D=jsk(document.createElement("div"),function(){var e=aD(!1);try{H[0]()}finally{aD(e)}});
D=Array.from(D.childNodes);D.length===1&&(D=D[0]);return D};var ako=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(D){}var whf=typeof WeakRef==="function";var Zl3=function(D){this.value=D};
Zl3.prototype.deref=function(){return this.value};
var s4Q=whf?WeakRef:Zl3,hL9=function(D){this.newKeyHandler=D;this.map=new WeakMap};
hL9.prototype.add=function(D,t){this.map.has(D)||(this.newKeyHandler(D),this.map.set(D,[]));this.map.get(D).push(new s4Q(t))};
hL9.prototype.get=function(D){var t=this;return function e(){var V,b,a,w,h,K,N,k,T,c,U;return _.sG(e,function(S){switch(S.nextAddress){case 1:_.Ok(S,2);V=t.map.get(D);if(!V)return S.return();b=0;a=_.F(V);w=a.next();case 4:if(w.done){S.jumpTo(6);break}h=w.value;K=h.deref();if(!K){S.jumpTo(5);break}b++;N=_.h8;return S.yield(K,8);case 8:N(S.yieldResult);case 5:w=a.next();S.jumpTo(4);break;case 6:if(2*b<V.length){k=0;T=_.F(V);for(c=T.next();!c.done;c=T.next())U=c.value,U.deref()&&(V[k++]=U);V.length=
k}case 2:_.rN(S),_.ox(S,0)}})}()};var Gff=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},dI8=new hL9(function(D){D.addEventListener("abort",R7V,{once:!0})}),pmX=new WeakMap,E06=function(D){D=D===void 0?DX:D;
this.signal=new D};
E06.prototype.abort=function(D){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=D,D=new Event("abort"),this.signal.dispatchEvent(D))};
var DX=function(){this.target=Gff();this.aborted=!1;this.onabort=null};
DX.prototype.throwIfAborted=function(){vGV.call(this)};
DX.prototype.addEventListener=function(D,t,H){this.target.addEventListener(D,t,H)};
DX.prototype.removeEventListener=function(D,t,H){this.target.removeEventListener(D,t,H)};
DX.prototype.dispatchEvent=function(D){if(this.onabort&&D.type==="abort")this.onabort(D);return this.target.dispatchEvent(D)};
DX.abort=lTA;DX.timeout=uJ6;DX.any=xIk;var YEA=ako?AbortController:E06,tq=ako?AbortSignal:DX;typeof tq.abort!=="function"&&(tq.abort=lTA);typeof tq.prototype.throwIfAborted!=="function"&&(tq.prototype.throwIfAborted=vGV);typeof tq.any!=="function"&&(tq.any=xIk);typeof tq.timeout!=="function"&&(tq.timeout=uJ6);var K$V=function(D){D=D.clone();LhQ(D);JR(D,"dg",null);JR(D,"d","0");McB(D,null);San(D,null);return D},NEo=!0,kfm=function(D,t,H){var e=H===void 0?{}:H;
H=e.cssRowKey===void 0?void 0:e.cssRowKey;var V=e.combinedSignature===void 0?void 0:e.combinedSignature;var b=e.extraEdges===void 0?void 0:e.extraEdges;e=e.callback===void 0?void 0:e.callback;JR(D,"m",t.join(","));b&&fU4(D,b);H&&(JR(D,"ck",H),V?JR(D,"rs",V):NEo&&(NEo=!1));if(e){if(e!=null&&!JWw.test(e))throw Error("Xa`"+e);JR(D,"cb",e)}D=D.toString();_.qu(D,"/")&&(D=GFB(document.location.href)+D);return _.MN(D)};var cEo=function(D){return TEv(D).then(function(t){return JSON.parse(t.responseText)})},TEv=function(D){var t={},H=t.xmlHttpFactory?t.xmlHttpFactory.createInstance():z5v.createInstance();
return(new _.c$(function(e,V){var b;try{H.open("GET",D,!0)}catch(h){V(new Hb("Error opening XHR: "+h.message,D,H))}H.onreadystatechange=function(){if(H.readyState==4){_.VA.clearTimeout(b);var h;!(h=BM9(H.status))&&(h=H.status===0)&&(h=hUw(D),h=!(h=="http"||h=="https"||h==""));h?e(H):V(new j49(H.status,D,H))}};
H.onerror=function(){V(new Hb("Network error",D,H))};
if(t.headers)for(var a in t.headers){var w=t.headers[a];w!=null&&H.setRequestHeader(a,w)}t.withCredentials&&(H.withCredentials=t.withCredentials);t.responseType&&(H.responseType=t.responseType);t.mimeType&&H.overrideMimeType(t.mimeType);t.timeoutMs>0&&(b=_.VA.setTimeout(function(){H.onreadystatechange=function(){};
H.abort();V(new $J3(D,H))},t.timeoutMs));
try{H.send(null)}catch(h){H.onreadystatechange=function(){},_.VA.clearTimeout(b),V(new Hb("Error sending XHR: "+h.message,D,H))}})).thenCatch(function(e){e instanceof _.dg&&H.abort();
throw e;})},Hb=function(D,t,H){_.Hk.call(this,D+", url="+t);
this.url=t;this.xhr=H};
_.Zj(Hb,_.Hk);Hb.prototype.name="XhrError";var j49=function(D,t,H){Hb.call(this,"Request Failed, status="+D,t,H);this.status=D};
_.Zj(j49,Hb);j49.prototype.name="XhrHttpError";var $J3=function(D,t){Hb.call(this,"Request timed out",D,t)};
_.Zj($J3,Hb);$J3.prototype.name="XhrTimeoutError";Fz=Fz||{};var eY=function(){_.mg.call(this)};
_.Zj(eY,_.mg);eY.prototype.initialize=function(){};var il3=function(D,t){this.fn_=D;this.handler_=t};
il3.prototype.execute=function(D){this.fn_&&(this.fn_.call(this.handler_||null,D),this.fn_=this.handler_=null)};
il3.prototype.abort=function(){this.handler_=this.fn_=null};var VO=function(D,t){_.mg.call(this);this.deps_=D;this.JSC$11048_id_=t;this.onloadCallbacks_=[];this.JSC$11048_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Zj(VO,_.mg);VO.prototype.moduleConstructor_=eY;VO.prototype.module_=null;VO.prototype.getId=function(){return this.JSC$11048_id_};
VO.prototype.registerCallback=function(D,t){return rEn(this.onloadCallbacks_,D,t)};
var Oln=function(D,t){rEn(D.JSC$11048_onErrorCallbacks_,t)},rEn=function(D,t,H){t=new il3(t,H);
D.push(t);return t};
VO.prototype.isLoaded=function(){return!!this.module_};
VO.prototype.onLoad=function(D){var t=new this.moduleConstructor_;t.initialize(D());this.module_=t;t=(t=UJw(this.earlyOnloadCallbacks_,D()))||UJw(this.onloadCallbacks_,D());t||(this.JSC$11048_onErrorCallbacks_.length=0);return t};
VO.prototype.onError=function(D){(D=UJw(this.JSC$11048_onErrorCallbacks_,D))&&b8(Error("qd`"+D));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var UJw=function(D,t){for(var H=[],e=0;e<D.length;e++)try{D[e].execute(t)}catch(V){b8(V),H.push(V)}D.length=0;return H.length?H:null};
VO.prototype.disposeInternal=function(){VO.superClass_.disposeInternal.call(this);_.qc(this.module_)};var o03,STo,mJ4,MPm,n0a,C19,g06,L$v,AEw;
_.sh=function(D,t,H,e,V){e=e===void 0?!1:e;V=V===void 0?!1:V;var b=b===void 0?!0:b;this.scsReferenceUrl_=t4R(_.X7(D).toString(),b);this.cssRowKey_=t;this.combinedSignature_=H;this.useNegativeLoading_=e;this.requestedModuleMap_={};this.JSC$11051_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(D=gh(this.scsReferenceUrl_,"excm"))?D.split(","):[];this.shouldScanForCss_=V;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;H7A();_.bA(this,XY6(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
o03=function(D,t){if(t.href||t.getAttribute("data-href"))if(t=t.href||t.getAttribute("data-href"),yy8(t)&&!t4R(t).urlPrefix_.endsWith("_/js/")){t=XY6(t4R(t));t=_.F(t);for(var H=t.next();!H.done;H=t.next())H=H.value,D.loadedCssModuleList_.includes(H)||D.loadedCssModuleList_.push(H)}};
_.sh.prototype.JSC$11053_loadModules=function(D,t,H){var e=H===void 0?{}:H;H=e.extraEdges;var V=e.onError;var b=e.onSuccess;e=e.forceReload;this.JSC$11051_moduleInfoMap_=t;if(!D)throw Error("rd");if(this.shouldScanForCss_){t=_.F(document.getElementsByTagName("style"));for(var a=t.next();!a.done;a=t.next())o03(this,a.value);t=_.F(document.getElementsByTagName("link"));for(a=t.next();!a.done;a=t.next())o03(this,a.value)}P1a(this,n0a(this,D),H,V,b,e)};
var P1a=function(D,t,H,e,V,b){e=e===void 0?function(){}:e;
V=V===void 0?function(){}:V;
b=b===void 0?!1:b;C19(D,t,function(a,w,h){h=h===void 0?w:h;D.enableFallbackFetch&&b?D.loadWithFetch(a,w,e,V,h):D.load(a,w,e,V,h,H)},H)||e(-1)};
_.sh.prototype.loadWithFetch=function(){_.Z(function(){throw Error("sd");})};
_.sh.prototype.maybeSetAdditionalFields=function(){};
STo=function(D,t,H){if(D.useNegativeLoading_){var e=D.scsReferenceUrl_;D={cssRowKey:D.cssRowKey_,combinedSignature:D.combinedSignature_,extraEdges:H,requestedModuleIds:mJ4(D),requestedCssModuleIds:MPm(D)};var V=D===void 0?{}:D;D=V.requestedModuleIds===void 0?[]:V.requestedModuleIds;H=V.requestedCssModuleIds===void 0?[]:V.requestedCssModuleIds;var b=V.cssRowKey===void 0?void 0:V.cssRowKey;var a=V.combinedSignature===void 0?void 0:V.combinedSignature;var w=V.extraEdges===void 0?void 0:V.extraEdges;
V=V.callback===void 0?void 0:V.callback;e=K$V(e);JR(e,"d","1");McB(e,D);San(e,H);t=kfm(e,t,{cssRowKey:b,combinedSignature:a,extraEdges:w,callback:V})}else e=D.scsReferenceUrl_,D={cssRowKey:D.cssRowKey_,combinedSignature:D.combinedSignature_,requestedModuleIds:mJ4(D),requestedCssModuleIds:MPm(D)},w=D===void 0?{}:D,D=w.requestedCssModuleIds===void 0?[]:w.requestedCssModuleIds,H=w.cssRowKey===void 0?void 0:w.cssRowKey,b=w.combinedSignature===void 0?void 0:w.combinedSignature,a=w.extraEdges===void 0?
void 0:w.extraEdges,w=w.callback===void 0?void 0:w.callback,e=K$V(e),San(e,D),t=kfm(e,t,{cssRowKey:H,combinedSignature:b,extraEdges:a,callback:w});return t};
_.bA=function(D,t){for(var H=!1,e=[],V=0;V<t.length;++V){var b=t[V];D.requestedModuleMap_[b]||(D.requestedModuleMap_[b]=!0,D.requestedModuleList_.push(b),H=!0,e.push(b))}H&&(D.requestedModuleListSorted_=!1)};
_.qL=function(D,t){for(var H=[],e=0;e<t.length;++e){var V=t[e];D.requestedModuleMap_[V]&&(delete D.requestedModuleMap_[V],_.vk(D.requestedModuleList_,V),H.push(V))}};
_.sh.prototype.load=function(D,t,H,e,V){V=V===void 0?t:V;_.X7(D);var b=this.useCors_,a=this.corsMode_,w=this.fetchPriority,h=_.OH("SCRIPT");_.qd(h,D);b&&(h.crossOrigin=a);h.async=!1;w&&h.setAttribute("fetchpriority",w);_.bA(this,t);_.Xhn(this,D,h,t,H,e,V)};
_.Xhn=function(D,t,H,e,V,b,a){a=a===void 0?e:a;D.lastScript_=H;D.insertPos.insertBefore(H,D.insertPos.firstChild);_.fkm(H,e,function(){H.parentElement.removeChild(H);D.lastScript_==H&&(D.lastScript_=null);var w=new Set;e.map(function(K){return w.add(K)});
for(var h in D.JSC$11051_moduleInfoMap_)D.JSC$11051_moduleInfoMap_[h].isLoaded()&&w.add(h);Array.from(w);b()},function(w){H.parentElement.removeChild(H);
D.lastScript_==H&&(D.lastScript_=null);_.qL(D,w);D.pendingModuleGraphUpdate_?D.pendingModuleGraphUpdate_.then(function(){V(-1,t)}):V(-1,t)},a)};
_.fkm=function(D,t,H,e,V){V=V===void 0?t:V;var b=t.length,a=function(){b=0;D.onload=null;D.onerror=null;w=function(){}},w=function(){a();
var K=V.filter(function(N){return!Ae().getModuleInfo(N).isLoaded()});
K.length!==0?e(K,"Response was successful but was missing module(s) "+K+"."):H()},h=function(){b--;
b==0&&w()};
t.forEach(function(K){K=Ae().getModuleInfo(K);K.isLoaded()?h():(rEn(K.earlyOnloadCallbacks_,h),Oln(K,h))});
D.onload=function(){return w()};
D.onerror=function(){a();e(t)}};
mJ4=function(D){D.requestedModuleListSorted_||(D.requestedModuleListSorted_=!0,D.requestedModuleList_.sort());return D.requestedModuleList_};
MPm=function(D){D=D.loadedCssModuleList_;D.sort();return D};
n0a=function(D,t){return t.filter(function(H){return!D.requestedModuleMap_[H]})};
C19=function(D,t,H,e){if(D.pendingModuleGraphUpdate_)return D.pendingModuleGraphUpdate_.then(function(){C19(D,t,H,e)}),!0;
if(!D.useNegativeLoading_){var V=[],b=Object.assign({},D.requestedModuleMap_);L$v(D,t,function(N){V.push(N.getId())},e,function(N){return!N.isLoaded()},b);
t=V}for(b=0;b<t.length;){for(var a=t.length-b,w=b==0?t:t.slice(b,t.length),h=STo(D,w,e),K=_.X7(h).toString();K.length>D.urlMaxLength;)if(a>1)a-=Math.ceil((K.length-D.urlMaxLength)/6),a=Math.max(a,1),w=t.slice(b,b+a),h=STo(D,w,e),K=_.X7(h).toString();else return D.useNegativeLoading_?(D.useNegativeLoading_=!1,D.pendingModuleGraphUpdate_=AEw(D).then(function(N){g06(D,N,e)}),C19(D,t.slice(b),H,e)):!1;
b+=a;D.useNegativeLoading_?H(h,w):H(h,w,b===t.length?t:[])}return!0};
g06=function(D,t,H){Ae().setAllModuleInfoString((t||{}).moduleGraph);L$v(D,mJ4(D),function(e){_.bA(D,[e.getId()])},H);
D.pendingModuleGraphUpdate_=null};
L$v=function(D,t,H,e,V,b){b=b===void 0?{}:b;var a=Ae();t=_.F(t);for(var w=t.next();!w.done;w=t.next()){w=w.value;var h=a.getModuleInfo(w);if(!(b[w]||V&&!V(h))){b[w]=!0;var K=h.deps_||[];if(e){var N=[];e[w]&&(N=Object.keys(e[w]));K=K.concat(N)}L$v(D,K,H,e,V,b);H(h)}}};
AEw=function(D){D=D.scsReferenceUrl_.clone();LhQ(D);JR(D,"dg",null);JR(D,"md","1");return cEo(D.toString())};var Wc6=new Uint8Array(123);var JE4=[];var YTf=function(){this.JSC$10058_loader_=null};
_.q=YTf.prototype;_.q.setBatchModeEnabled=function(){};
_.q.setAllModuleInfoString=function(){};
_.q.addExtraEdge=function(){throw Error("td");};
_.q.removeExtraEdge=function(){throw Error("ud");};
_.q.getModuleContext=function(){return null};
_.q.isActive=function(){return!1};
_.q.isUserActive=function(){return!1};
_.q.registerCallback=function(){};var Fl=function(D,t,H,e,V){var b=Error.call(this);this.message=b.message;"stack"in b&&(this.stack=b.stack);this.name="ModuleLoadFailure";this.type=D;this.status=t;this.requestedModuleIds=H;this.url=e;this.cause=V;this.message=this.toString()};
_.P(Fl,Error);Fl.prototype.toString=function(){return lkv(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var lkv=function(D){switch(D.type){case Fl.Type.UNAUTHORIZED:return"Unauthorized";case Fl.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case Fl.Type.TIMEOUT:return"Timed out";case Fl.Type.OLD_CODE_GONE:return"Out of date module id";case Fl.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+D.type}};
Fz.ModuleLoadFailure=Fl;Fz.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var ac=function(){this.moduleIds_=this.JSC$10058_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11066_extraEdges_={};this.JSC$11066_callbackMap_={};this.JSC$11066_currentlyLoadingModule_=this.baseModuleInfo_=new VO([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new aI;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Zj(ac,YTf);var v0f=function(D,t){_.Hk.call(this,"Error loading "+D+": "+t)};
_.Zj(v0f,_.Hk);ac.prototype.setBatchModeEnabled=function(D){this.batchModeEnabled_=D};
ac.prototype.setAllModuleInfoString=function(D,t){if(!(this instanceof ac))this.setAllModuleInfoString(D,t);else if(typeof D==="string"){if(D.startsWith("d$")){D=D.substring(2);for(var H=[],e=0,V=D.indexOf("/"),b=0,a=!1,w=0;;){var h=a?D.substring(b):D.substring(b,V);if(h.length===0)e++,b="sy"+e.toString(36),h=[];else{var K=h.indexOf(":");if(K<0)b=h,h=[];else if(K===h.length-1)b=h.substring(0,K),h=Array(H[w-1]);else{b=h.substring(0,K);h=h.substring(K+1).split(",");K=w;for(var N=0;N<h.length;N++)K-=
h[N].length===0?1:Number(h[N]),h[N]=H[K]}K=0;if(b.length===0)K=1;else if(b.charAt(0)==="+"||b.charAt(0)==="-")K=Number(b);K!==0&&(e+=K,b="sy"+e.toString(36))}H.push(b);phQ(this,b,h);if(a)break;b=V+1;V=D.indexOf("/",b);V===-1&&(a=!0);w++}this.moduleIds_=H}else if(D.startsWith("p$"))dJf(this,D);else{D=D.split("/");H=[];for(e=0;e<D.length;e++){w=D[e].split(":");V=w[0];a=[];if(w[1])for(a=w[1].split(","),w=0;w<a.length;w++)a[w]=H[parseInt(a[w],36)];H.push(V);phQ(this,V,a)}this.moduleIds_=H}t&&t.length?
(_.x3(this.loadingModuleIds_,t),this.lastInitialModuleId_=_.fK(t)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11066_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11066_currentlyLoadingModule_=null,(t=this.baseModuleInfo_.onLoad((0,_.Mc)(this.getModuleContext,this)))&&t.length&&xJ4(this,new Fz.ModuleLoadFailure(Fz.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,t[0])),wI(this))}};
var dJf=function(D,t){var H=t.substring(2);for(t=0;t<64;t++)Wc6["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(t)]=t;var e={buf:H,pos:0};ZY(e);var V=ZY(e),b=ZY(e)+1;t=Array(V);var a=Array(V),w=Array(V);b=Array(b);var h=0,K=0,N=e.pos,k=e.buf.indexOf("|",e.pos);e.pos=k+1;for(k=0;k<V;k++){var T=ZY(e),c=T&2,U=T&1;T>>>=2;U?(h+=T>>>1^-(T&1),T="sy"+h.toString(36)):(U=N,N+=T,T=H.substring(U,N));t[k]=T;c&&(b[K++]=T)}b[K]="";e.pos++;K=V&-2;H=V&1;for(h=0;h<K;h+=2)N=ITK(e),w[h]=
N&7,w[h+1]=N>>>3&7;H&&(H=ITK(e),w[K]=H&7);e.pos++;for(K=0;K<V;K++)w[K]===7&&(w[K]=ZY(e));e.pos++;for(H=K=0;H<V;H++){h=w[H];N=h===0?JE4:Array(h);a[H]=N;k=K;for(c=0;c<h;c++)k-=ZY(e),N[c]=b[k];b[K]===t[H]&&K++}for(e=0;e<t.length;e++)phQ(D,t[e],a[e]);D.moduleIds_=t};
_.q=ac.prototype;_.q.getModuleInfo=function(D){return this.moduleInfoMap[D]};
_.q.addExtraEdge=function(D,t){var H=this.getModuleInfo(D);H&&H.isLoaded()?this.load(t):(this.JSC$11066_extraEdges_[D]||(this.JSC$11066_extraEdges_[D]={}),this.JSC$11066_extraEdges_[D][t]=!0)};
_.q.removeExtraEdge=function(D,t){if(this.JSC$11066_extraEdges_[D]){delete this.JSC$11066_extraEdges_[D][t];for(var H in this.JSC$11066_extraEdges_[D])return;delete this.JSC$11066_extraEdges_[D]}};
_.q.isActive=function(){return this.loadingModuleIds_.length>0};
_.q.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var wI=function(D){var t=D.lastActive_,H=D.isActive();H!=t&&(D.executeCallbacks_(H?"active":"idle"),D.lastActive_=H);t=D.isUserActive();t!=D.userLastActive_&&(D.executeCallbacks_(t?"userActive":"userIdle"),D.userLastActive_=t)},phQ=function(D,t,H){D.moduleInfoMap[t]?(D=D.moduleInfoMap[t].deps_,D!=H&&D.splice.apply(D,[0,
D.length].concat(_.A6(H)))):D.moduleInfoMap[t]=new VO(H,t)},uyw=function(D,t,H){var e=[];
fVR(t,e);t=[];for(var V={},b=0;b<e.length;b++){var a=e[b],w=D.getModuleInfo(a);if(!w)throw Error("vd`"+a);var h=new aI;V[a]=h;w.isLoaded()?h.callback(null):(RLQ(D,a,w,!!H,h),D.isModuleLoading(a)||t.push(a))}t.length>0&&(D.loadingModuleIds_.length===0?D.loadModules_(t):(D.requestedModuleIdsQueue_.push(t),wI(D)));return V},RLQ=function(D,t,H,e,V){H.registerCallback(V.callback,V);
Oln(H,function(b){V.errback(new v0f(t,b))});
D.isModuleLoading(t)?e&&(W$V(D,t),wI(D)):e&&W$V(D,t)};
ac.prototype.loadModules_=function(D,t,H){var e=this;t||(this.consecutiveFailures_=0);var V=Ikv(this,D);this.loadingModuleIds_=V;this.requestedLoadingModuleIds_=this.batchModeEnabled_?D:_.pK(V);wI(this);if(V.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,V);D=this.JSC$10058_loader_;if(!D)throw Error("wd");if(Object.keys(this.JSC$11066_extraEdges_).length>0&&!D.supportsExtraEdges)throw Error("xd");H=(0,_.Mc)(D.JSC$11053_loadModules,D,_.pK(V),this.moduleInfoMap,{extraEdges:this.JSC$11066_extraEdges_,
forceReload:!!H,onError:function(b,a){var w=e.requestedLoadingModuleIds_;b=b!=null?b:void 0;e.consecutiveFailures_++;var h=_.pK(V);e.requestedLoadingModuleIds_=w;V.forEach(_.o4(_.vk,e.requestedModuleIds_),e);b==401?(xJ4(e,new Fz.ModuleLoadFailure(Fz.ModuleLoadFailure.Type.UNAUTHORIZED,b)),e.requestedModuleIdsQueue_.length=0):b==410?(Q4o(e,new Fz.ModuleLoadFailure(Fz.ModuleLoadFailure.Type.OLD_CODE_GONE,b)),yEv(e)):e.consecutiveFailures_>=3?(Q4o(e,new Fz.ModuleLoadFailure(Fz.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
b,h,a)),yEv(e)):e.loadModules_(e.requestedLoadingModuleIds_,!0,b==8001||!1)},
onTimeout:(0,_.Mc)(this.handleLoadTimeout_,this)});(D=Math.pow(this.consecutiveFailures_,2)*5E3)?_.VA.setTimeout(H,D):H()}};
var Ikv=function(D,t){t=t.filter(function(V){return D.moduleInfoMap[V].isLoaded()?(_.VA.setTimeout(function(){return Error("yd`"+V)},0),!1):!0});
for(var H=[],e=0;e<t.length;e++)H=H.concat(BE4(D,t[e]));fVR(H);return!D.batchModeEnabled_&&H.length>1?(t=H.shift(),D.requestedModuleIdsQueue_=H.map(function(V){return[V]}).concat(D.requestedModuleIdsQueue_),[t]):H},BE4=function(D,t){var H=_.J$.createSet(D.requestedModuleIds_),e=[];
H[t]||e.push(t);t=[t];for(var V=0;V<t.length;V++)for(var b=D.getModuleInfo(t[V]).deps_,a=b.length-1;a>=0;a--){var w=b[a];D.getModuleInfo(w).isLoaded()||H[w]||(e.push(w),t.push(w))}e.reverse();fVR(e);return e};
ac.prototype.JSC$11061_setLoaded=function(){if(this.JSC$11066_currentlyLoadingModule_){var D=this.JSC$11066_currentlyLoadingModule_.getId(),t=[];if(this.JSC$11066_extraEdges_[D]){for(var H=_.F(Object.keys(this.JSC$11066_extraEdges_[D])),e=H.next();!e.done;e=H.next()){e=e.value;var V=this.getModuleInfo(e);V&&!V.isLoaded()&&(this.removeExtraEdge(D,e),t.push(e))}this.loadMultiple(t)}this.isDisposed()||((t=this.moduleInfoMap[D].onLoad((0,_.Mc)(this.getModuleContext,this)))&&t.length&&xJ4(this,new Fz.ModuleLoadFailure(Fz.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,t[0])),_.vk(this.userInitiatedLoadingModuleIds_,D),_.vk(this.loadingModuleIds_,D),this.loadingModuleIds_.length===0&&yEv(this),this.lastInitialModuleId_&&D==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),wI(this),this.JSC$11066_currentlyLoadingModule_=null)}};
ac.prototype.isModuleLoading=function(D){if(_.l8(this.loadingModuleIds_,D))return!0;for(var t=0;t<this.requestedModuleIdsQueue_.length;t++)if(_.l8(this.requestedModuleIdsQueue_[t],D))return!0;return!1};
ac.prototype.load=function(D,t){return uyw(this,[D],t)[D]};
ac.prototype.loadMultiple=function(D){return uyw(this,D)};
var W$V=function(D,t){_.l8(D.userInitiatedLoadingModuleIds_,t)||D.userInitiatedLoadingModuleIds_.push(t)};
ac.prototype.beforeLoadModuleCode=function(D){var t=this;this.JSC$11066_currentlyLoadingModule_&&this.JSC$11066_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11061_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[D]&&zL9(this,this.moduleInfoMap[D].deps_||[],function(H){H.module_=new eY;_.vk(t.loadingModuleIds_,H.getId())},function(H){return!H.isLoaded()});
this.JSC$11066_currentlyLoadingModule_=this.getModuleInfo(D)};
ac.prototype.handleLoadTimeout_=function(){Q4o(this,new Fz.ModuleLoadFailure(Fz.ModuleLoadFailure.Type.TIMEOUT));yEv(this)};
var Q4o=function(D,t){D.requestedLoadingModuleIds_.length>1?D.requestedModuleIdsQueue_=D.requestedLoadingModuleIds_.map(function(H){return[H]}).concat(D.requestedModuleIdsQueue_):xJ4(D,t)},xJ4=function(D,t){var H=D.requestedLoadingModuleIds_;
D.loadingModuleIds_.length=0;for(var e=[],V=0;V<D.requestedModuleIdsQueue_.length;V++){var b=D.requestedModuleIdsQueue_[V].filter(function(h){var K=BE4(this,h);return zr(H,function(N){return _.l8(K,N)})},D);
_.x3(e,b)}for(V=0;V<H.length;V++)_.mu$(e,H[V]);for(V=0;V<e.length;V++){for(b=0;b<D.requestedModuleIdsQueue_.length;b++)_.vk(D.requestedModuleIdsQueue_[b],e[V]);_.vk(D.userInitiatedLoadingModuleIds_,e[V])}if(V=D.JSC$11066_callbackMap_.error)for(b=0;b<V.length;b++)for(var a=V[b],w=0;w<e.length;w++)a("error",e[w],t);for(e=0;e<H.length;e++)if(D.moduleInfoMap[H[e]])D.moduleInfoMap[H[e]].onError(t);D.requestedLoadingModuleIds_.length=0;wI(D)},yEv=function(D){for(;D.requestedModuleIdsQueue_.length;){var t=
D.requestedModuleIdsQueue_.shift().filter(function(H){return!this.getModuleInfo(H).isLoaded()},D);
if(t.length>0){D.loadModules_(t);return}}wI(D)};
ac.prototype.registerCallback=function(D,t){Array.isArray(D)||(D=[D]);for(var H=0;H<D.length;H++){var e=D[H],V=t,b=this.JSC$11066_callbackMap_;b[e]||(b[e]=[]);b[e].push(V)}};
ac.prototype.executeCallbacks_=function(D){for(var t=this.JSC$11066_callbackMap_[D],H=0;t&&H<t.length;H++)t[H](D)};
var zL9=function(D,t,H,e,V){e=e===void 0?function(){return!0}:e;
V=V===void 0?{}:V;t=_.F(t);for(var b=t.next();!b.done;b=t.next()){b=b.value;var a=D.getModuleInfo(b);!V[b]&&e(a)&&(V[b]=!0,zL9(D,a.deps_||[],H,e,V),H(a))}};
ac.prototype.dispose=function(){_.Fs(_.J$.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11066_callbackMap_={};this.isDisposed_=!0};
ac.prototype.isDisposed=function(){return this.isDisposed_};
_.LN=function(){return new ac};var DQn=[5E3,2E4],tR4=function(){this.JSC$10058_loader_=null;this.JSC$11074_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11074_queue_=[];this.JSC$11074_extraEdges_=Object.create(null);this.JSC$11074_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.P(tR4,YTf);_.q=tR4.prototype;_.q.setAllModuleInfoString=function(){this.JSC$11074_currentlyLoadingModule_&&this.JSC$11074_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11061_setLoaded()};
_.q.getModuleInfo=function(D){var t=this.JSC$11074_moduleInfoMap_[D];t||(t=new VO([],D),this.JSC$11074_moduleInfoMap_[D]=t);return t};
_.q.addExtraEdge=function(D,t){this.getModuleInfo(D).isLoaded()?this.load(t):(this.JSC$11074_extraEdges_[D]||(this.JSC$11074_extraEdges_[D]={}),this.JSC$11074_extraEdges_[D][t]=!0)};
_.q.removeExtraEdge=function(D,t){if(this.JSC$11074_extraEdges_[D]){delete this.JSC$11074_extraEdges_[D][t];for(var H in this.JSC$11074_extraEdges_[D])return;delete this.JSC$11074_extraEdges_[D]}};
_.q.isModuleLoading=function(D){return!!this.loadingModules_[D]};
_.q.load=function(D){HCv(this,[D]);return eGa(this,D)};
_.q.loadMultiple=function(D){var t=this,H=Object.create(null),e=[];D.forEach(function(V){H[V]||(H[V]=eGa(t,V),e.push(V))});
HCv(this,e);return H};
_.q.beforeLoadModuleCode=function(D){var t;((t=this.JSC$11074_currentlyLoadingModule_)==null?void 0:t.getId())==="synthetic_module_overhead"&&this.JSC$11061_setLoaded();var H,e;VRV(this,(e=(H=this.JSC$11074_moduleInfoMap_[D])==null?void 0:H.deps_)!=null?e:[],function(V){V.module_=new eY},function(V){return!V.isLoaded()});
this.JSC$11074_currentlyLoadingModule_=this.getModuleInfo(D)};
_.q.JSC$11061_setLoaded=function(){if(this.JSC$11074_currentlyLoadingModule_){var D=this.JSC$11074_currentlyLoadingModule_.getId(),t=[];if(this.JSC$11074_extraEdges_[D]){for(var H=_.F(Object.keys(this.JSC$11074_extraEdges_[D])),e=H.next();!e.done;e=H.next())e=e.value,this.getModuleInfo(e).isLoaded()||(this.removeExtraEdge(D,e),t.push(e));this.loadMultiple(t)}this.JSC$11074_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11074_currentlyLoadingModule_=null;(!this.isModuleLoading(D)&&/^sy[0-9a-z]{0,4}$/.test(D)||D==="synthetic_module_overhead")&&delete this.JSC$11074_moduleInfoMap_[D];this.unsetModulesAsLoading(D)}};
_.q.setModulesAsLoading=function(){var D=this;_.RE.apply(0,arguments).forEach(function(t){D.loadingModules_[t]=!0})};
_.q.unsetModulesAsLoading=function(){var D=this;_.RE.apply(0,arguments).forEach(function(t){delete D.loadingModules_[t]})};
var eGa=function(D,t){return new _.c$(function(H,e){var V=D.getModuleInfo(t);V.isLoaded()?H(null):(V.registerCallback(function(){H(null)}),Oln(V,function(b){var a="Error loading "+t+": "+b;
b instanceof Fz.ModuleLoadFailure&&b.url&&(a=a+", requested url: "+b.url.toString());e(Error(a))}))})},HCv=function(D,t){t=t.filter(function(H){return!D.isModuleLoading(H)&&!D.getModuleInfo(H).isLoaded()});
t.length>0&&(D.setModulesAsLoading.apply(D,_.A6(t)),D.JSC$11074_queue_.push(t),bCw(D))},bCw=function(D){for(var t={};D.activeLoads_<Infinity&&D.JSC$11074_queue_.length>0;t={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})t.ids$jscomp$36=D.JSC$11074_queue_.shift().filter(function(H){return!D.getModuleInfo(H).isLoaded()}),t.ids$jscomp$36.length>0&&(D.activeLoads_++,t.finishLoad=function(H){return function(){D.activeLoads_--;
bCw(D);H.finishLoad=function(){}}}(t),_.vl(t.ids$jscomp$36.map(function(H){return eGa(D,H)})).then(function(H){return function(){(0,H.finishLoad)()}}(t)),t.attempt$jscomp$6=0,t.load$jscomp$1=function(H){return function(){if(Object.keys(D.JSC$11074_extraEdges_).length>0&&!D.JSC$10058_loader_.supportsExtraEdges)throw Error("xd");
D.JSC$10058_loader_.JSC$11053_loadModules(H.ids$jscomp$36,D.JSC$11074_moduleInfoMap_,{extraEdges:D.JSC$11074_extraEdges_,onError:function(e,V){var b=DQn[H.attempt$jscomp$6++];b!==void 0?setTimeout(function(){(0,H.load$jscomp$1)()},b):(D.unsetModulesAsLoading.apply(D,_.A6(H.ids$jscomp$36)),(0,H.finishLoad)(),H.ids$jscomp$36.forEach(function(a){a=D.getModuleInfo(a);
if(!a.isLoaded())a.onError(new Fz.ModuleLoadFailure(Fz.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,e,H.ids$jscomp$36,V))}))}})}}(t),(0,t.load$jscomp$1)())},VRV=function(D,t,H,e,V){e=e===void 0?function(){return!0}:e;
V=V===void 0?{}:V;t=_.F(t);for(var b=t.next();!b.done;b=t.next()){b=b.value;var a=D.getModuleInfo(b);!V[b]&&e(a)&&(V[b]=!0,VRV(D,a.deps_||[],H,e,V),H(a))}};var qOw=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var z7V=Symbol("Ad");window.JSCompiler_renameProperty=function(D){return D};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var F1m=!qOw||HTMLElement.es5Shimmed||_.VA.Reflect===void 0||_.VA.customElements===void 0||_.VA.customElements.polyfillWrapFlushCallback||!1,a8v,MKA=function(){var D=HTMLElement;if(F1m)return D;if(a8v!==void 0)return a8v;var t=_.VA.Reflect,H=function(){return t.construct(D,[],this.constructor)};
H.prototype=D.prototype;H.prototype.constructor=H;H.es5Shimmed=!0;Object.setPrototypeOf(H,D);return a8v=H},wHB=!1;F1m||wHB||(wHB=!0,_.VA.HTMLElement=MKA());/*

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 VwR=/(url\()([^)]*)(\))/g,HsX=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,e8D,hn;var uv=!window.ShadyDOM||!window.ShadyDOM.inUse,ZCm=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),sfv=!window.customElements.polyfillWrapFlushCallback,hGm;if(hGm=uv&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var Gu9=new CSSStyleSheet;Gu9.replaceSync("");var Ee3=document.createElement("div");Ee3.attachShadow({mode:"open"});Ee3.shadowRoot.adoptedStyleSheets=[Gu9];hGm=Ee3.shadowRoot.adoptedStyleSheets[0]===Gu9}catch(D){hGm=!1}
var K1f=hGm,NOv=window.Polymer&&window.Polymer.rootPath||qGV(document.baseURI||window.location.href),oC=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,EfD=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,y9=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,kua=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,RC=window.Polymer&&window.Polymer.legacyOptimizations||!1,Q9=window.Polymer&&window.Polymer.legacyWarnings||!1,TOm=window.Polymer&&window.Polymer.syncInitialRender||
!1,nn=window.Polymer&&window.Polymer.legacyUndefined||!1,cVo=window.Polymer&&window.Polymer.orderedComputed||!1,ZX=window.Polymer&&window.Polymer.removeNestedTemplates||!1,si=window.Polymer&&window.Polymer.fastDomIf||!1,hq=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,jfm=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,$Qa=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var Gd={},iCo={},mF=function(){return HTMLElement.apply(this,arguments)||this};
_.P(mF,HTMLElement);mF.import=function(D,t){return D?(D=Gd[D]||iCo[D.toLowerCase()])&&t?D.querySelector(t):D:null};
mF.prototype.attributeChangedCallback=function(D,t,H){t!==H&&this.register()};
mF.prototype.register=function(D){if(D=D||this.id){if(y9&&(Gd[D]||iCo[D.toLowerCase()])!==void 0)throw Gd[D]=iCo[D.toLowerCase()]=null,Error("Bd`"+D);this.id=D;Gd[D]=iCo[D.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.ql.Object.defineProperties(mF.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var D=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;D=_.Gc(this.getAttribute("assetpath")||"",D.baseURI);this.__assetpath=qGV(D)}return this.__assetpath}}});
_.ql.Object.defineProperties(mF,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
mF["import"]=mF.import;mF.prototype.modules=Gd;customElements.define("dom-module",mF);var rVm=0,am6=0,Eh=[],OCn=0,FTK=!1,UQw=document.createTextNode(""),oeQ,dv;(new window.MutationObserver(wXR)).observe(UQw,{characterData:!0});_.Ei={after:function(D){return{run:function(t){return window.setTimeout(t,D)},
cancel:function(t){window.clearTimeout(t)}}},
run:function(D,t){return window.setTimeout(D,t)},
cancel:function(D){window.clearTimeout(D)}};
_.Lz={run:function(D){return window.requestAnimationFrame(D)},
cancel:function(D){window.cancelAnimationFrame(D)}};
oeQ={run:function(D){return window.requestIdleCallback?window.requestIdleCallback(D):window.setTimeout(D,16)},
cancel:function(D){window.cancelIdleCallback?window.cancelIdleCallback(D):window.clearTimeout(D)}};
dv={run:function(D){FTK||(FTK=!0,UQw.textContent=OCn++);Eh.push(D);return rVm++},
cancel:function(D){var t=D-am6;if(t>=0){if(!Eh[t])throw Error("Cd`"+D);Eh[t]=null}}};var PGa=0,KU=function(D){var t=D.__mixinApplications;t||(t=new WeakMap,D.__mixinApplications=t);var H=PGa++;return function(e){var V=e.__mixinSet;if(V&&V[H])return e;var b=t,a=b.get(e);a||(a=D(e),b.set(e,a),e=Object.create(a.__mixinSet||V||null),e[H]=!0,a.__mixinSet=e);return a}};_.Uh=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(D){return ShadyDOM.patch(D)}:function(D){return D};var nen=KU(function(D){var t=function(){var H=D.call(this)||this;H.__dataEnabled=!1;H.__dataReady=!1;H.__dataInvalid=!1;H.__data={};H.__dataPending=null;H.__dataOld=null;H.__dataInstanceProps=null;H.__dataCounter=0;H.__serializing=!1;H._initializeProperties();return H};
_.P(t,D);t.createProperties=function(H){var e=this.prototype,V;for(V in H)V in e||e._createPropertyAccessor(V)};
t.attributeNameForProperty=function(H){return H.toLowerCase()};
t.typeForProperty=function(){};
t.prototype._createPropertyAccessor=function(H,e){this._addPropertyToAttributeMap(H);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[H]||(this.__dataHasAccessor[H]=!0,this._definePropertyAccessor(H,e))};
t.prototype._addPropertyToAttributeMap=function(H){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var e=this.__dataAttributes[H];e||(e=this.constructor.attributeNameForProperty(H),this.__dataAttributes[e]=H);return e};
t.prototype._definePropertyAccessor=function(H,e){Object.defineProperty(this,H,{get:function(){return this.__data[H]},
set:e?function(){}:function(V){this._setPendingProperty(H,V,!0)&&this._invalidateProperties()}})};
t.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
t.prototype._initializeProperties=function(){for(var H in this.__dataHasAccessor)this.hasOwnProperty(H)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[H]=this[H],delete this[H])};
t.prototype._initializeInstanceProperties=function(H){Object.assign(this,H)};
t.prototype._setProperty=function(H,e){this._setPendingProperty(H,e)&&this._invalidateProperties()};
t.prototype._getProperty=function(H){return this.__data[H]};
t.prototype._setPendingProperty=function(H,e){var V=this.__data[H],b=this._shouldPropertyChange(H,e,V);b&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||H in this.__dataOld||(this.__dataOld[H]=V),this.__data[H]=e,this.__dataPending[H]=e);return b};
t.prototype._isPropertyPending=function(H){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(H))};
t.prototype._invalidateProperties=function(){var H=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,dv.run(function(){H.__dataInvalid&&(H.__dataInvalid=!1,H._flushProperties())}))};
t.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
t.prototype._flushProperties=function(){this.__dataCounter++;var H=this.__data,e=this.__dataPending,V=this.__dataOld;this._shouldPropertiesChange(H,e,V)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(H,e,V));this.__dataCounter--};
t.prototype._shouldPropertiesChange=function(H,e){return!!e};
t.prototype._propertiesChanged=function(){};
t.prototype._shouldPropertyChange=function(H,e,V){return V!==e&&(V===V||e===e)};
t.prototype.attributeChangedCallback=function(H,e,V,b){e!==V&&this._attributeToProperty(H,V);D.prototype.attributeChangedCallback&&D.prototype.attributeChangedCallback.call(this,H,e,V,b)};
t.prototype._attributeToProperty=function(H,e,V){if(!this.__serializing){var b=this.__dataAttributes;H=b&&b[H]||H;this[H]=this._deserializeValue(e,V||this.constructor.typeForProperty(H))}};
t.prototype._propertyToAttribute=function(H,e,V){this.__serializing=!0;V=arguments.length<3?this[H]:V;this._valueToNodeAttribute(this,V,e||this.constructor.attributeNameForProperty(H));this.__serializing=!1};
t.prototype._valueToNodeAttribute=function(H,e,V){e=this._serializeValue(e);if(V==="class"||V==="name"||V==="slot")H=(0,_.Uh)(H);e===void 0?H.removeAttribute(V):H.setAttribute(V,e===""&&window.trustedTypes?window.trustedTypes.emptyScript:e)};
t.prototype._serializeValue=function(H){switch(typeof H){case "boolean":return H?"":void 0;default:return H!=null?H.toString():void 0}};
t.prototype._deserializeValue=function(H,e){switch(e){case Boolean:return H!==null;case Number:return Number(H);default:return H}};
return t});var CG4=0,Zs6=[];var mQn=KU(function(D){function t(b){b=Object.getPrototypeOf(b);return b.prototype instanceof V?b:null}
function H(b){if(!b.hasOwnProperty("__ownProperties")){var a=null;if(b.hasOwnProperty("properties")){var w=b.properties;if(w){a={};for(var h in w){var K=w[h];a[h]=typeof K==="function"?{type:K}:K}}}b.__ownProperties=a}return b.__ownProperties}
var e=nen(D),V=function(){return e.apply(this,arguments)||this};
_.P(V,e);V.finalize=function(){if(!this.hasOwnProperty("__finalized")){var b=t(this);b&&b.finalize();this.__finalized=!0;this._finalizeClass()}};
V._finalizeClass=function(){var b=H(this);b&&this.createProperties(b)};
V.typeForProperty=function(b){return(b=this._properties[b])&&b.type};
V.prototype._initializeProperties=function(){CG4++;this.constructor.finalize();e.prototype._initializeProperties.call(this)};
V.prototype.connectedCallback=function(){e.prototype.connectedCallback&&e.prototype.connectedCallback.call(this);this._enableProperties()};
V.prototype.disconnectedCallback=function(){e.prototype.disconnectedCallback&&e.prototype.disconnectedCallback.call(this)};
_.ql.Object.defineProperties(V,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var b=this;if(!this.hasOwnProperty("__observedAttributes")){s63(this.prototype);var a=this._properties;this.__observedAttributes=a?Object.keys(a).map(function(w){return b.prototype._addPropertyToAttributeMap(w)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var b=t(this);this.__properties=Object.assign({},b&&b._properties,H(this))}return this.__properties}}});
return V});var h8R={},Gku=/-[a-z]/g,EK$=/([A-Z])/g;for(var MRQ={},SOv=HTMLElement.prototype;SOv;){for(var XHm=Object.getOwnPropertyNames(SOv),f8B=0;f8B<XHm.length;f8B++)MRQ[XHm[f8B]]=!0;SOv=Object.getPrototypeOf(SOv)}var L14=window.trustedTypes?function(D){return trustedTypes.isHTML(D)||trustedTypes.isScript(D)||trustedTypes.isScriptURL(D)}:function(){return!1},AV4=KU(function(D){var t=nen(D);
D=function(){return t.apply(this,arguments)||this};
_.P(D,t);D.createPropertiesForAttributes=function(){for(var H=this.observedAttributes,e=0;e<H.length;e++)this.prototype._createPropertyAccessor(Kn(H[e]))};
D.attributeNameForProperty=function(H){return N1(H)};
D.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);t.prototype._initializeProperties.call(this)};
D.prototype._initializeProtoProperties=function(H){for(var e in H)this._setProperty(e,H[e])};
D.prototype._ensureAttribute=function(H,e){this.hasAttribute(H)||this._valueToNodeAttribute(this,e,H)};
D.prototype._serializeValue=function(H){switch(typeof H){case "object":if(H instanceof Date)return H.toString();if(H){if(L14(H))return H;try{return JSON.stringify(H)}catch(e){return""}}default:return t.prototype._serializeValue.call(this,H)}};
D.prototype._deserializeValue=function(H,e){switch(e){case Object:try{var V=JSON.parse(H)}catch(b){V=H}break;case Array:try{V=JSON.parse(H)}catch(b){V=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+H)}break;case Date:V=isNaN(H)?String(H):Number(H);V=new Date(V);break;default:V=t.prototype._deserializeValue.call(this,H,e)}return V};
D.prototype._definePropertyAccessor=function(H,e){if(!MRQ[H]){var V=this[H];V!==void 0&&(this.__data?this._setPendingProperty(H,V):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[H]=V))}t.prototype._definePropertyAccessor.call(this,H,e)};
D.prototype._hasAccessor=function(H){return this.__dataHasAccessor&&this.__dataHasAccessor[H]};
D.prototype._isPropertyPending=function(H){return!!(this.__dataPending&&H in this.__dataPending)};
return D});var ge6={"dom-if":!0,"dom-repeat":!0},JVm=!1,YOa=!1,l8Q=function(){var D=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(t){return t}});
return function(t,H,e){H=H.getAttribute(e);D&&e.startsWith("on-")?t.setAttribute(e,D.createScript(H,e)):t.setAttribute(e,H)}}(),vew=KU(function(D){var t=function(){return D.apply(this,arguments)||this};
_.P(t,D);t._parseTemplate=function(H,e){if(!H._templateInfo){var V=H._templateInfo={};V.nodeInfoList=[];V.nestedTemplate=!!e;V.stripWhiteSpace=e&&e.stripWhiteSpace||H.hasAttribute&&H.hasAttribute("strip-whitespace");this._parseTemplateContent(H,V,{parent:null})}return H._templateInfo};
t._parseTemplateContent=function(H,e,V){return this._parseTemplateNode(H.content,e,V)};
t._parseTemplateNode=function(H,e,V){var b=!1;H.localName!="template"||H.hasAttribute("preserve-content")?H.localName==="slot"&&(e.hasInsertionPoint=!0):b=this._parseTemplateNestedTemplate(H,e,V)||b;if(!JVm){JVm=!0;var a=document.createElement("textarea");a.placeholder="a";YOa=a.placeholder===a.textContent}YOa&&H.localName==="textarea"&&H.placeholder&&H.placeholder===H.textContent&&(H.textContent=null);H.firstChild&&this._parseTemplateChildNodes(H,e,V);H.hasAttributes&&H.hasAttributes()&&(b=this._parseTemplateNodeAttributes(H,
e,V)||b);return b||V.noted};
t._parseTemplateChildNodes=function(H,e,V){if(H.localName!=="script"&&H.localName!=="style")for(var b=H.firstChild,a=0,w;b;b=w){if(b.localName=="template"){var h=b.getAttribute("is");if(h&&ge6[h])for(w=b,w.removeAttribute("is"),b=w.ownerDocument.createElement(h),w.parentNode.replaceChild(b,w),b.appendChild(w);w.attributes.length;)h=w.attributes[0].name,l8Q(b,w,h),w.removeAttribute(h)}w=b.nextSibling;if(b.nodeType===Node.TEXT_NODE){for(h=w;h&&h.nodeType===Node.TEXT_NODE;)b.textContent+=h.textContent,
w=h.nextSibling,H.removeChild(h),h=w;if(e.stripWhiteSpace&&!b.textContent.trim()){H.removeChild(b);continue}}h={parentIndex:a,parentInfo:V};this._parseTemplateNode(b,e,h)&&(h.infoIndex=e.nodeInfoList.push(h)-1);b.parentNode&&a++}};
t._parseTemplateNestedTemplate=function(H,e,V){e=this._parseTemplate(H,e);(e.content=H.content.ownerDocument.createDocumentFragment()).appendChild(H.content);V.templateInfo=e;return!0};
t._parseTemplateNodeAttributes=function(H,e,V){for(var b=!1,a=Array.from(H.attributes),w=a.length-1,h;h=a[w];w--)b=this._parseTemplateNodeAttribute(H,e,V,h.name,h.value)||b;return b};
t._parseTemplateNodeAttribute=function(H,e,V,b,a){return b.slice(0,3)==="on-"?(H.removeAttribute(b),V.events=V.events||[],V.events.push({name:b.slice(3),value:a}),!0):b==="id"?(V.id=a,!0):!1};
t._contentForTemplate=function(H){var e=H._templateInfo;return e&&e.content||H.content};
t.prototype._stampTemplate=function(H,e){H&&!H.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(H);e=e||this.constructor._parseTemplate(H);var V=e.nodeInfoList;H=document.importNode(e.content||H.content,!0);H.__noInsertionPoint=!e.hasInsertionPoint;var b=H.nodeList=Array(V.length);H.$={};for(var a=0,w=V.length,h=void 0;a<w&&(h=V[a]);a++){var K=b[a]=KTu(H,h);h.id&&(H.$[h.id]=K);var N=K,k=h,T=e;k.templateInfo&&(N._templateInfo=k.templateInfo,N._parentTemplateInfo=
T);if(h.events&&h.events.length)for(N=0,k=h.events,T=void 0;N<k.length&&(T=k[N]);N++)this._addMethodEventListenerToNode(K,T.name,T.value,this)}return H};
t.prototype._addMethodEventListenerToNode=function(H,e,V,b){V=NLK(b||H,V);this._addEventListenerToNode(H,e,V);return V};
t.prototype._addEventListenerToNode=function(H,e,V){H.addEventListener(e,V)};
t.prototype._removeEventListenerFromNode=function(H,e,V){H.removeEventListener(e,V)};
return t});var rv=0,PF=[],pHo={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},dQ9=/[A-Z]/,xQm=function(D,t,H,e,V){var b=V?Tc(D):D;if(t=t[b])for(b=0;b<t.length;b++){var a=t[b];if(a.info.lastRun!==rv&&(!V||isk(D,a.trigger))){a.info.lastRun=rv;a=a.info;for(var w=H,h=e,K=0,N=w.length-1,k=-1;K<=N;){var T=K+N>>1,c=h.get(w[T].methodInfo)-h.get(a.methodInfo);if(c<0)K=T+1;else if(c>0)N=T-1;else{k=T;break}}k<
0&&(k=N+1);w.splice(k,0,a)}}},gKK=[],RGf=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"),kZ=KU(function(D){var t=vew(AV4(D));
D=function(){var H=t.call(this)||this;H.__isPropertyEffectsClient=!0;return H};
_.P(D,t);D.prototype._initializeProperties=function(){t.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
D.prototype._registerHost=function(){if(NL.length){var H=NL[NL.length-1];H._enqueueClient(this);this.__dataHost=H}};
D.prototype._initializeProtoProperties=function(H){this.__data=Object.create(H);this.__dataPending=Object.create(H);this.__dataOld={}};
D.prototype._initializeInstanceProperties=function(H){var e=this.__readOnly,V;for(V in H)e&&e[V]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[V]=this.__dataPending[V]=H[V])};
D.prototype._addPropertyEffect=function(H,e,V){this._createPropertyAccessor(H,e=="__readOnly");var b=$P6(this,e,!0)[H];b||(b=this[e][H]=[]);b.push(V)};
D.prototype._removePropertyEffect=function(H,e,V){H=$P6(this,e,!0)[H];V=H.indexOf(V);V>=0&&H.splice(V,1)};
D.prototype._hasPropertyEffect=function(H,e){e=this[e];return!(!e||!e[H])};
D.prototype._hasReadOnlyEffect=function(H){return this._hasPropertyEffect(H,"__readOnly")};
D.prototype._hasNotifyEffect=function(H){return this._hasPropertyEffect(H,"__notifyEffects")};
D.prototype._hasReflectEffect=function(H){return this._hasPropertyEffect(H,"__reflectEffects")};
D.prototype._hasComputedEffect=function(H){return this._hasPropertyEffect(H,"__computeEffects")};
D.prototype._setPendingPropertyOrPath=function(H,e,V,b){if(b||Tc(Array.isArray(H)?H[0]:H)!==H){if(!b&&(b=iv(this,H),H=j68(this,H,e),!H||!t.prototype._shouldPropertyChange.call(this,H,e,b)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(H,e,V)){if(V=this.__dataLinkedPaths)for(var a in V)b=V[a],cF(a,H)?(b=jp(a,b,H),this._setPendingPropertyOrPath(b,e,!0,!0)):cF(b,H)&&(b=jp(b,a,H),this._setPendingPropertyOrPath(b,e,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[H])return this._setPendingProperty(H,
e,V);this[H]=e}return!1};
D.prototype._setUnmanagedPropertyToNode=function(H,e,V){if(V!==H[e]||typeof V=="object")e==="className"&&(H=(0,_.Uh)(H)),H[e]=V};
D.prototype._setPendingProperty=function(H,e,V){var b=this.__dataHasPaths&&ko(H);if(this._shouldPropertyChange(H,e,(b?this.__dataTemp:this.__data)[H])){this.__dataPending||(this.__dataPending={},this.__dataOld={});H in this.__dataOld||(this.__dataOld[H]=this.__data[H]);b?this.__dataTemp[H]=e:this.__data[H]=e;this.__dataPending[H]=e;if(b||this.__notifyEffects&&this.__notifyEffects[H])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[H]=V;return!0}return!1};
D.prototype._setProperty=function(H,e){this._setPendingProperty(H,e,!0)&&this._invalidateProperties()};
D.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
D.prototype._enqueueClient=function(H){this.__dataPendingClients=this.__dataPendingClients||[];H!==this&&this.__dataPendingClients.push(H)};
D.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
D.prototype.__enableOrFlushClients=function(){var H=this.__dataPendingClients;if(H){this.__dataPendingClients=null;for(var e=0;e<H.length;e++){var V=H[e];V.__dataEnabled?V.__dataPending&&V._flushProperties():V._enableProperties()}}};
D.prototype._readyClients=function(){this.__enableOrFlushClients()};
D.prototype.setProperties=function(H,e){for(var V in H)!e&&this.__readOnly&&this.__readOnly[V]||this._setPendingPropertyOrPath(V,H[V],!0);this._invalidateProperties()};
D.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
D.prototype._propertiesChanged=function(H,e,V){H=this.__dataHasPaths;this.__dataHasPaths=!1;var b;if(b=this.__computeEffects)if(cVo){rv++;var a=nKu(this),w=[],h;for(h in e)xQm(h,b,w,a,H);for(;h=w.shift();)mP3(this,"",e,V,h)&&xQm(h.methodInfo,b,w,a,H);Object.assign(V,this.__dataOld);Object.assign(e,this.__dataPending);this.__dataPending=null}else for(a=e;Oh(this,b,a,V,H);)Object.assign(V,this.__dataOld),Object.assign(e,this.__dataPending),a=this.__dataPending,this.__dataPending=null;b=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(e,V,H);this._flushClients();Oh(this,this.__reflectEffects,e,V,H);Oh(this,this.__observeEffects,e,V,H);if(b){a=this.__notifyEffects;w=rv++;for(var K in b)if(b[K]){if(h=a){var N=a;h=w;var k=K,T=e,c=V,U=H,S=!1,L=U?Tc(k):k;if(N=N[L]){L=0;for(var J=N.length,g=void 0;L<J&&(g=N[L]);L++)g.info&&g.info.lastRun===h||U&&!isk(k,g.trigger)||(g.info&&(g.info.lastRun=h),g.fn(this,k,T,c,g.info,U,void 0),S=!0)}h=S}if(h)var Q=!0;else{if(h=H)h=K,k=e,T=Tc(h),T!==
h?(T=N1(T)+"-changed",OsT(this,T,k[h],h),h=!0):h=!1;h&&(Q=!0)}}var u;Q&&(u=this.__dataHost)&&u._invalidateProperties&&u._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
D.prototype._propagatePropertyChanges=function(H,e,V){this.__propagateEffects&&Oh(this,this.__propagateEffects,H,e,V);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,H,e,V)};
D.prototype._runEffectsForTemplate=function(H,e,V,b){var a=this,w=function(h,K){Oh(a,H.propertyEffects,h,V,K,H.nodeList);for(var N=H.firstChild;N;N=N.nextSibling)a._runEffectsForTemplate(N,h,V,K)};
H.runEffects?H.runEffects(w,e,b):w(e,b)};
D.prototype.linkPaths=function(H,e){H=$o(H);e=$o(e);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[H]=e};
D.prototype.unlinkPaths=function(H){H=$o(H);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[H]};
D.prototype.notifySplices=function(H,e){var V={path:""};H=iv(this,H,V);vKV(this,H,V.path,e)};
D.prototype.get=function(H,e){return iv(e||this,H)};
D.prototype.set=function(H,e,V){V?j68(V,H,e):this.__readOnly&&this.__readOnly[H]||this._setPendingPropertyOrPath(H,e,!0)&&this._invalidateProperties()};
D.prototype.push=function(H){var e=_.RE.apply(1,arguments),V={path:""},b=iv(this,H,V),a=b.length,w=b.push.apply(b,_.A6(e));e.length&&Cn(this,b,V.path,a,e.length,[]);return w};
D.prototype.pop=function(H){var e={path:""};H=iv(this,H,e);var V=!!H.length,b=H.pop();V&&Cn(this,H,e.path,H.length,0,[b]);return b};
D.prototype.splice=function(H,e,V){var b=_.RE.apply(3,arguments),a={path:""},w=iv(this,H,a);e<0?e=w.length-Math.floor(-e):e&&(e=Math.floor(e));var h=arguments.length===2?w.splice(e):w.splice.apply(w,[e,V].concat(_.A6(b)));(b.length||h.length)&&Cn(this,w,a.path,e,b.length,h);return h};
D.prototype.shift=function(H){var e={path:""};H=iv(this,H,e);var V=!!H.length,b=H.shift();V&&Cn(this,H,e.path,0,0,[b]);return b};
D.prototype.unshift=function(H){var e=_.RE.apply(1,arguments),V={path:""},b=iv(this,H,V),a=b.unshift.apply(b,_.A6(e));e.length&&Cn(this,b,V.path,0,e.length,[]);return a};
D.prototype.notifyPath=function(H,e){if(arguments.length==1){var V={path:""};e=iv(this,H,V);V=V.path}else V=Array.isArray(H)?$o(H):H;this._setPendingPropertyOrPath(V,e,!0,!0)&&this._invalidateProperties()};
D.prototype._createReadOnlyProperty=function(H,e){this._addPropertyEffect(H,"__readOnly");e&&(this["_set"+(H[0].toUpperCase()+H.substring(1))]=function(V){this._setProperty(H,V)})};
D.prototype._createPropertyObserver=function(H,e,V){var b={property:H,method:e,dynamicFn:!!V};this._addPropertyEffect(H,"__observeEffects",{fn:r8K,info:b,trigger:{name:H}});V&&this._addPropertyEffect(e,"__observeEffects",{fn:r8K,info:b,trigger:{name:e}})};
D.prototype._createMethodObserver=function(H,e){var V=YG3(H);if(!V)throw Error("Dd`"+H);LTV(this,V,"__observeEffects",CIk,null,e)};
D.prototype._createNotifyingProperty=function(H){this._addPropertyEffect(H,"__notifyEffects",{fn:UPk,info:{eventName:N1(H)+"-changed",property:H}})};
D.prototype._createReflectedProperty=function(H){var e=this.constructor.attributeNameForProperty(H);e[0]==="-"?console.warn("Property "+H+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(H,"__reflectEffects",{fn:oKu,info:{attrName:e}})};
D.prototype._createComputedProperty=function(H,e,V){var b=YG3(e);if(!b)throw Error("Ed`"+e);e=LTV(this,b,"__computeEffects",mP3,H,V);$P6(this,"__computeInfo")[H]=e};
D.prototype._marshalArgs=function(H,e,V){for(var b=this.__data,a=[],w=0,h=H.length;w<h;w++){var K=H[w],N=K.name,k=K.structured,T=K.wildcard,c=K.value;K.literal||(T?(K=cF(N,e),k=lmV(b,V,K?e:N),c={path:K?e:N,value:k,base:K?iv(b,N):k}):c=k?lmV(b,V,N):b[N]);if(nn&&!this._overrideLegacyUndefined&&c===void 0&&H.length>1)return PF;a[w]=c}return a};
D.addPropertyEffect=function(H,e,V){this.prototype._addPropertyEffect(H,e,V)};
D.createPropertyObserver=function(H,e,V){this.prototype._createPropertyObserver(H,e,V)};
D.createMethodObserver=function(H,e){this.prototype._createMethodObserver(H,e)};
D.createNotifyingProperty=function(H){this.prototype._createNotifyingProperty(H)};
D.createReadOnlyProperty=function(H,e){this.prototype._createReadOnlyProperty(H,e)};
D.createReflectedProperty=function(H){this.prototype._createReflectedProperty(H)};
D.createComputedProperty=function(H,e,V){this.prototype._createComputedProperty(H,e,V)};
D.bindTemplate=function(H){return this.prototype._bindTemplate(H)};
D.prototype._bindTemplate=function(H,e){var V=this.constructor._parseTemplate(H),b=this.__preBoundTemplateInfo==V;if(!b)for(var a in V.propertyEffects)this._createPropertyAccessor(a);e?(V=Object.create(V),V.wasPreBound=b,this.__templateInfo?(H=H._parentTemplateInfo||this.__templateInfo,e=H.lastChild,V.parent=H,H.lastChild=V,(V.previousSibling=e)?e.nextSibling=V:H.firstChild=V):this.__templateInfo=V):this.__preBoundTemplateInfo=V;return V};
D._addTemplatePropertyEffect=function(H,e,V){(H.hostProps=H.hostProps||{})[e]=!0;H=H.propertyEffects=H.propertyEffects||{};(H[e]=H[e]||[]).push(V)};
D.prototype._stampTemplate=function(H,e){e=e||this._bindTemplate(H,!0);NL.push(this);H=t.prototype._stampTemplate.call(this,H,e);NL.pop();e.nodeList=H.nodeList;if(!e.wasPreBound)for(var V=e.childNodes=[],b=H.firstChild;b;b=b.nextSibling)V.push(b);H.templateInfo=e;V=e.nodeList;b=e.nodeInfoList;if(b.length)for(var a=0;a<b.length;a++){var w=V[a],h=b[a].bindings;if(h)for(var K=0;K<h.length;K++){var N=h[K],k=w,T=N;if(T.isCompound){for(var c=k.__dataCompoundStorage||(k.__dataCompoundStorage={}),U=T.parts,
S=Array(U.length),L=0;L<U.length;L++)S[L]=U[L].literal;U=T.target;c[U]=S;T.literal&&T.kind=="property"&&(U==="className"&&(k=(0,_.Uh)(k)),k[U]=T.literal)}fm8(w,this,N)}w.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients());return H};
D.prototype._removeBoundDom=function(H){H=H.templateInfo;var e=H.previousSibling,V=H.nextSibling,b=H.parent;e?e.nextSibling=V:b&&(b.firstChild=V);V?V.previousSibling=e:b&&(b.lastChild=e);H.nextSibling=H.previousSibling=null;H=H.childNodes;for(e=0;e<H.length;e++)V=H[e],(0,_.Uh)((0,_.Uh)(V).parentNode).removeChild(V)};
D._parseTemplateNode=function(H,e,V){var b=t._parseTemplateNode.call(this,H,e,V);if(H.nodeType===Node.TEXT_NODE){var a=this._parseBindings(H.textContent,e);a&&(H.textContent=A8V(a)||" ",XXX(this,e,V,"text","textContent",a),b=!0)}return b};
D._parseTemplateNodeAttribute=function(H,e,V,b,a){var w=this._parseBindings(a,e);if(w){a=b;var h="property";dQ9.test(b)?h="attribute":b[b.length-1]=="$"&&(b=b.slice(0,-1),h="attribute");var K=A8V(w);K&&h=="attribute"&&(b=="class"&&H.hasAttribute("class")&&(K+=" "+H.getAttribute(b)),H.setAttribute(b,K));h=="attribute"&&a=="disable-upgrade$"&&H.setAttribute(b,"");H.localName==="input"&&a==="value"&&H.setAttribute(a,"");H.removeAttribute(a);h==="property"&&(b=Kn(b));XXX(this,e,V,h,b,w,K);return!0}return t._parseTemplateNodeAttribute.call(this,
H,e,V,b,a)};
D._parseTemplateNestedTemplate=function(H,e,V){var b=t._parseTemplateNestedTemplate.call(this,H,e,V),a=H.parentNode,w=V.templateInfo,h=a.localName==="dom-if",K=a.localName==="dom-repeat";ZX&&(h||K)&&(a.removeChild(H),V=V.parentInfo,V.templateInfo=w,V.noted=!0,b=!1);H=w.hostProps;if(si&&h)H&&(e.hostProps=Object.assign(e.hostProps||{},H),ZX||(V.parentInfo.noted=!0));else for(var N in H)XXX(this,e,V,"property","_host_"+N,[{mode:"{",source:N,dependencies:[N],hostProp:!0}]);return b};
D._parseBindings=function(H,e){for(var V=[],b=0,a;(a=RGf.exec(H))!==null;){a.index>b&&V.push({literal:H.slice(b,a.index)});b=a[1][0];var w=!!a[2];a=a[3].trim();var h=!1,K="",N=-1;b=="{"&&(N=a.indexOf("::"))>0&&(K=a.substring(N+2),a=a.substring(0,N),h=!0);N=YG3(a);var k=[];if(N){var T=N,c=T.args;T=T.methodName;for(var U=0;U<c.length;U++){var S=c[U];S.literal||k.push(S)}if((c=e.dynamicFns)&&c[T]||N.static)k.push(T),N.dynamicFn=!0}else k.push(a);V.push({source:a,mode:b,negate:w,customEvent:h,signature:N,
dependencies:k,event:K});b=RGf.lastIndex}b&&b<H.length&&(H=H.substring(b))&&V.push({literal:H});return V.length?V:null};
D._evaluateBinding=function(H,e,V,b,a,w){H=e.signature?CIk(H,V,b,a,e.signature):V!=e.source?iv(H,e.source):w&&ko(V)?iv(H,V):H.__data[V];e.negate&&(H=!H);return H};
_.ql.Object.defineProperties(D.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return pHo}}});
return D}),NL=[];var uK3=window.ShadyCSS&&window.ShadyCSS.cssBuild,Td=KU(function(D){function t(e,V,b,a){if(!uK3){for(var w=V.content.querySelectorAll("style"),h=R8$(V),K=uCD(b),N=V.content.firstElementChild,k=0;k<K.length;k++){var T=K[k];T.textContent=e._processStyleText(T.textContent,a);V.content.insertBefore(T,N)}for(N=K=0;N<h.length;N++)k=h[N],T=w[K],T!==k?(k=k.cloneNode(!0),T.parentNode.insertBefore(k,T)):K++,k.textContent=e._processStyleText(k.textContent,a)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(V,
b);if($Qa&&uK3&&K1f&&(V=V.content.querySelectorAll("style"))){var c="";Array.from(V).forEach(function(U){c+=U.textContent;U.parentNode.removeChild(U)});
e._styleSheet=new CSSStyleSheet;e._styleSheet.replaceSync(c)}}
var H=mQn(kZ(D));D=function(){return H.call(this)||this};
_.P(D,H);D._finalizeClass=function(){H._finalizeClass.call(this);var e;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(e=this.__ownObservers)&&this.createObservers(e,this._properties);this._prepareTemplate()};
D._prepareTemplate=function(){var e=this.template;e&&(typeof e==="string"?(console.error("template getter must return HTMLTemplateElement"),e=null):RC||(e=e.cloneNode(!0)));this.prototype._template=e};
D.createProperties=function(e){for(var V in e){var b=this.prototype,a=V,w=e[V],h=e;w.computed&&(w.readOnly=!0);w.computed&&(b._hasReadOnlyEffect(a)?console.warn("Cannot redefine computed property '"+a+"'."):b._createComputedProperty(a,w.computed,h));w.readOnly&&!b._hasReadOnlyEffect(a)?b._createReadOnlyProperty(a,!w.computed):w.readOnly===!1&&b._hasReadOnlyEffect(a)&&console.warn("Cannot make readOnly property '"+a+"' non-readOnly.");w.reflectToAttribute&&!b._hasReflectEffect(a)?b._createReflectedProperty(a):
w.reflectToAttribute===!1&&b._hasReflectEffect(a)&&console.warn("Cannot make reflected property '"+a+"' non-reflected.");w.notify&&!b._hasNotifyEffect(a)?b._createNotifyingProperty(a):w.notify===!1&&b._hasNotifyEffect(a)&&console.warn("Cannot make notify property '"+a+"' non-notify.");w.observer&&b._createPropertyObserver(a,w.observer,h[w.observer]);b._addPropertyToAttributeMap(a)}};
D.createObservers=function(e,V){for(var b=this.prototype,a=0;a<e.length;a++)b._createMethodObserver(e[a],V)};
D.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);H.prototype._initializeProperties.call(this);this.rootPath=NOv;this.importPath=this.constructor.importPath;var e=this.constructor;if(!e.hasOwnProperty("__propertyDefaults")){e.__propertyDefaults=null;var V=e._properties,b;for(b in V){var a=V[b];"value"in a&&(e.__propertyDefaults=e.__propertyDefaults||{},e.__propertyDefaults[b]=a)}}if(e=e.__propertyDefaults)for(var w in e)V=e[w],
this._canApplyPropertyDefault(w)&&(V=typeof V.value=="function"?V.value.call(this):V.value,this._hasAccessor(w)?this._setPendingProperty(w,V,!0):this[w]=V)};
D.prototype._canApplyPropertyDefault=function(e){return!this.hasOwnProperty(e)};
D._processStyleText=function(e,V){return bsK(e,V)};
D._finalizeTemplate=function(e){var V=this.prototype._template;if(V&&!V.__polymerFinalized){V.__polymerFinalized=!0;var b=this.importPath;b=b?_.Gc(b):"";t(this,V,e,b);this.prototype._bindTemplate(V)}};
D.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);H.prototype.connectedCallback.call(this)};
D.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);H.prototype.ready.call(this)};
D.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));H.prototype._readyClients.call(this)};
D.prototype._attachDom=function(e){var V=(0,_.Uh)(this);if(V.attachShadow)return e?(V.shadowRoot||(V.attachShadow({mode:"open",shadyUpgradeFragment:e}),V.shadowRoot.appendChild(e),this.constructor._styleSheet&&(V.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),TOm&&window.ShadyDOM&&window.ShadyDOM.flushInitial(V.shadowRoot),V.shadowRoot):null;throw Error("Gd");};
D.prototype.updateStyles=function(e){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,e)};
D.prototype.resolveUrl=function(e,V){!V&&this.importPath&&(V=_.Gc(this.importPath));return _.Gc(e,V)};
D._parseTemplateContent=function(e,V,b){V.dynamicFns=V.dynamicFns||this._properties;return H._parseTemplateContent.call(this,e,V,b)};
D._addTemplatePropertyEffect=function(e,V,b){!Q9||V in this._properties||b.info.part.signature&&b.info.part.signature.static||b.info.part.hostProp||e.nestedTemplate||console.warn("Property '"+V+"' used in template but not declared in 'properties'; attribute will not be observed.");return H._addTemplatePropertyEffect.call(this,e,V,b)};
_.ql.Object.defineProperties(D,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var e=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof e==="function"&&(e=e());if(e===void 0){if(e=this.hasOwnProperty("is")){e=this.is;var V=null;if(e&&(!y9||kua)&&(V=mF.import(e,"template"),y9&&!V))throw Error("Fd`"+e);e=V}e=e||Object.getPrototypeOf(this.prototype).constructor.template}this._template=e}return this._template},
set:function(e){this._template=e}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var e=this.importMeta;e?this._importPath=qGV(e.url):this._importPath=(e=mF.import(this.is))&&e.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return D});var W13=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(D){return D}}),DGD=function(D,t){I8V(D,t);
this.value=t.reduce(function(H,e,V){return H+tkV(e)+D[V+1]},D[0]).toString()},I8V;
DGD.prototype.toString=function(){return this.value};
_.Qff=function(D){var t=_.RE.apply(1,arguments);I8V(D,t);var H=document.createElement("template");t=t.reduce(function(e,V,b){if(V instanceof HTMLTemplateElement)V=V.innerHTML;else if(V instanceof DGD)V=tkV(V);else throw Error("Id`"+V);return e+V+D[b+1]},D[0]);
W13&&(t=W13.createHTML(t));H.innerHTML=t;return H};
I8V=function(D,t){if(!Array.isArray(D)||!Array.isArray(D.raw)||t.length!==D.length-1)throw new TypeError("Jd");};var cb=Td(HTMLElement);var yVQ=KU(function(D){var t=Td(D);D=function(){var H=t.call(this)||this;H.__lastItems=null;H.__lastMulti=null;H.__selectedMap=null;return H};
_.P(D,t);D.prototype.__updateSelection=function(H,e){var V=e.path;V=="items"?(e=e.base||[],V=this.__lastItems,H!==this.__lastMulti&&this.clearSelection(),V&&(V=z83(e,V),this.__applySplices(V)),this.__lastItems=e,this.__lastMulti=H):e.path=="items.splices"?this.__applySplices(e.value.indexSplices):(H=V.slice(6),e=parseInt(H,10),H.indexOf(".")<0&&H==e&&this.__deselectChangedIdx(e))};
D.prototype.__applySplices=function(H){for(var e=this,V=this.__selectedMap,b={},a=0;a<H.length;b={s$jscomp$109:void 0},a++){b.s$jscomp$109=H[a];V.forEach(function(N){return function(k,T){k<N.s$jscomp$109.index||(k>=N.s$jscomp$109.index+N.s$jscomp$109.removed.length?V.set(T,k+N.s$jscomp$109.addedCount-N.s$jscomp$109.removed.length):V.set(T,-1))}}(b));
for(var w=0;w<b.s$jscomp$109.addedCount;w++){var h=b.s$jscomp$109.index+w;V.has(this.items[h])&&V.set(this.items[h],h)}}this.__updateLinks();var K=0;V.forEach(function(N,k){N<0?(e.multi?e.splice("selected",K,1):e.selected=e.selectedItem=null,V.delete(k)):K++})};
D.prototype.__updateLinks=function(){var H=this;this.__dataLinkedPaths={};if(this.multi){var e=0;this.__selectedMap.forEach(function(V){V>=0&&H.linkPaths("items."+V,"selected."+e++)})}else this.__selectedMap.forEach(function(V){H.linkPaths("selected","items."+V);
H.linkPaths("selectedItem","items."+V)})};
D.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
D.prototype.isSelected=function(H){return this.__selectedMap.has(H)};
D.prototype.isIndexSelected=function(H){return this.isSelected(this.items[H])};
D.prototype.__deselectChangedIdx=function(H){var e=this,V=this.__selectedIndexForItemIndex(H);if(V>=0){var b=0;this.__selectedMap.forEach(function(a,w){V==b++&&e.deselect(w)})}};
D.prototype.__selectedIndexForItemIndex=function(H){if(H=this.__dataLinkedPaths["items."+H])return parseInt(H.slice(9),10)};
D.prototype.deselect=function(H){var e=this.__selectedMap.get(H);if(e>=0){this.__selectedMap.delete(H);var V;this.multi&&(V=this.__selectedIndexForItemIndex(e));this.__updateLinks();this.multi?this.splice("selected",V,1):this.selected=this.selectedItem=null}};
D.prototype.deselectIndex=function(H){this.deselect(this.items[H])};
D.prototype.select=function(H){this.selectIndex(this.items.indexOf(H))};
D.prototype.selectIndex=function(H){var e=this.items[H];this.isSelected(e)?this.toggle&&this.deselectIndex(H):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(e,H),this.__updateLinks(),this.multi?this.push("selected",e):this.selected=this.selectedItem=e)};
_.ql.Object.defineProperties(D,{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 D}),BOo=yVQ(cb),jY=function(){return BOo.apply(this,arguments)||this};
_.P(jY,BOo);_.ql.Object.defineProperties(jY,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(jY.is,jY);var zG9=window.Polymer;window.Polymer=function(D){return window.Polymer._polymerFn(D)};
zG9&&Object.assign(Polymer,zG9);Polymer._polymerFn=function(){throw Error("Kd");};/*

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:bsK,resolveUrl:_.Gc,pathFromUrl:qGV};Polymer.DomModule=mF;Polymer.Async={timeOut:_.Ei,animationFrame:_.Lz,idlePeriod:oeQ,microTask:dv};Polymer.dedupingMixin=KU;Polymer.wrap=_.Uh;Polymer.PropertiesChanged=nen;Polymer.telemetry={instanceCount:CG4,incrementInstanceCount:function(){CG4++},
registrations:Zs6,register:s63,dumpRegistrations:function(){Zs6.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=mQn;Polymer.CaseMap={dashToCamelCase:Kn,camelToDashCase:N1};Polymer.PropertyAccessors=AV4;Polymer.TemplateStamp=vew;Polymer.Path={isPath:ko,root:Tc,isAncestor:kkD,isDescendant:cF,translate:jp,matches:TLD,normalize:$o,split:c8D,get:iv,set:j68,isDeep:ko};Polymer.Settings={useShadow:uv,useNativeCSSProperties:ZCm,useNativeCustomElements:sfv,get rootPath(){return NOv},setRootPath:function(D){NOv=D},
get sanitizeDOMValue(){return oC},setSanitizeDOMValue:function(D){oC=D},
get passiveTouchGestures(){return EfD},setPassiveTouchGestures:function(D){EfD=D},
get strictTemplatePolicy(){return y9},setStrictTemplatePolicy:function(D){y9=D},
get allowTemplateFromDomModule(){return kua},setAllowTemplateFromDomModule:function(D){kua=D},
get legacyOptimizations(){return RC},setLegacyOptimizations:function(D){RC=D},
get syncInitialRender(){return TOm},setSyncInitialRender:function(D){TOm=D},
get legacyUndefined(){return nn},setLegacyUndefined:function(D){nn=D},
get legacyWarnings(){return Q9},setLegacyWarnings:function(D){Q9=D},
get orderedComputed(){return cVo},setOrderedComputed:function(D){cVo=D},
get fastDomIf(){return si},setFastDomIf:function(D){si=D},
get removeNestedTemplates(){return ZX},setRemoveNestedTemplates:function(D){ZX=D},
get suppressTemplateNotifications(){return hq},setSuppressTemplateNotifications:hq};Polymer.rootPath!==void 0&&(NOv=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(oC=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(EfD=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(y9=Polymer.strictTemplatePolicy);kua=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(RC=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(TOm=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(nn=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(Q9=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(cVo=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(si=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(ZX=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(hq=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return oC},
set:function(D){oC=D}});Polymer.PropertyEffects=kZ;Polymer.StyleGather={stylesFromModules:xP3,stylesFromModule:dP8,stylesFromTemplate:R8$,stylesFromModuleImports:uCD,cssFromModules:Imu,cssFromModule:WTX,cssFromTemplate:Q6D,cssFromModuleImports:function(D){return(D=mF.import(D))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(D):""}};Polymer.ElementMixin=Td;Polymer.updateStyles=function(D){window.ShadyCSS&&window.ShadyCSS.styleDocument(D)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:z83};Polymer.html=_.Qff;Polymer.htmlLiteral=function(D){return new DGD(D,_.RE.apply(1,arguments))};Polymer.Element=cb;Polymer.ArraySelectorMixin=yVQ;Polymer.ArraySelector=jY;var DFa=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,to9=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,fyV=/@media\s(.*)/;var baD=null,VkD=window.HTMLImports&&window.HTMLImports.whenReady||null,qtV;var H_f=null,$Z=null,iA=function(){this.customStyles=[];this.enqueued=!1;FN8(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},edn=function(D){!D.enqueued&&$Z&&(D.enqueued=!0,FN8($Z))};
iA.prototype.addCustomStyle=function(D){D.__seenByShadyCSS||(D.__seenByShadyCSS=!0,this.customStyles.push(D),edn(this))};
iA.prototype.getStyleForCustomStyle=function(D){if(D.__shadyCSSCachedStyle)return D.__shadyCSSCachedStyle;var t;D.getStyle?t=D.getStyle():t=D;return t};
iA.prototype.processStyles=function(){for(var D=this.customStyles,t=0;t<D.length;t++){var H=D[t];if(!H.__shadyCSSCachedStyle){var e=this.getStyleForCustomStyle(H);e&&(e=e.__appliedElement||e,H_f&&H_f(e),H.__shadyCSSCachedStyle=e)}}return D};
iA.prototype.addCustomStyle=iA.prototype.addCustomStyle;iA.prototype.getStyleForCustomStyle=iA.prototype.getStyleForCustomStyle;iA.prototype.processStyles=iA.prototype.processStyles;Object.defineProperties(iA.prototype,{transformCallback:{get:function(){return H_f},
set:function(D){H_f=D}},
validateCallback:{get:function(){return $Z},
set:function(D){var t=!1;$Z||(t=!0);$Z=D;t&&edn(this)}}});var wgR=!(window.ShadyDOM&&window.ShadyDOM.inUse),ajR,bo;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(bo=window.ShadyCSS.cssBuild);var Von=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?ajR=window.ShadyCSS.nativeCss:window.ShadyCSS?(Za6(window.ShadyCSS),window.ShadyCSS=void 0):Za6(window.WebComponents&&window.WebComponents.flags);var MBD=ajR;var b_B=new iA;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(D,t){b_B.processStyles();Ha8(D,t)},
styleElement:function(){b_B.processStyles()},
styleDocument:function(D){b_B.processStyles();Ha8(document.body,D)},
getComputedStyleValue:function(D,t){return emD(D,t)},
flushCustomStyles:function(){},
nativeCss:MBD,nativeShadow:wgR,cssBuild:bo,disableRuntime:Von});window.ShadyCSS.CustomStyleInterface=b_B;var qLm=window.ShadyCSS.CustomStyleInterface,rI=function(){var D=HTMLElement.call(this)||this;D._style=null;qLm.addCustomStyle(D);return D};
_.P(rI,HTMLElement);rI.prototype.getStyle=function(){if(this._style)return this._style;var D=this.querySelector("style");if(!D)return null;this._style=D;var t=D.getAttribute("include");t&&(D.removeAttribute("include"),D.textContent=Imu(t)+D.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
rI.prototype.getStyle=rI.prototype.getStyle;window.customElements.define("custom-style",rI);Polymer.CustomStyle=rI;var Oi=function(){this._timer=this._callback=this._asyncModule=null},Ui,a2v;
Oi.prototype.setConfig=function(D,t){var H=this;this._asyncModule=D;this._callback=t;this._timer=this._asyncModule.run(function(){H._timer=null;Ui.delete(H);H._callback()})};
Oi.prototype.cancel=function(){this.isActive()&&(FP9(this),Ui.delete(this))};
var FP9=function(D){D.isActive()&&(D._asyncModule.cancel(D._timer),D._timer=null)};
Oi.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Oi.prototype.isActive=function(){return this._timer!=null};
_.oc=function(D,t,H){D instanceof Oi?FP9(D):D=new Oi;D.setConfig(t,H);return D};
Ui=new Set;_.Pb=function(D){Ui.add(D)};
a2v=function(){var D=!!Ui.size;Ui.forEach(function(t){try{t.flush()}catch(H){setTimeout(function(){throw H;})}});
return D};var hmD=typeof document.head.style.touchAction==="string",skD=["mousedown","mousemove","mouseup","click"],$GV=[0,1,4,2],w7o;try{w7o=(new MouseEvent("test",{buttons:1})).buttons===1}catch(D){w7o=!1}var jkX=w7o,GE3=!1;(function(){try{var D=Object.defineProperty({},"passive",{get:function(){GE3=!0}});
window.addEventListener("test",null,D);window.removeEventListener("test",null,D)}catch(t){}})();
var NUV=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),kET=[],Z_B={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},XgX={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},TUV=function(D){var t=D.sourceCapabilities;if(!t||t.firesTouchEvents)if(D.__polymerGesturesHandled={skip:!0},D.type==="click"){t=!1;for(var H=UG$(D),e=0;e<H.length;e++){if(H[e].nodeType===Node.ELEMENT_NODE)if(H[e].localName==="label")kET.push(H[e]);
else if(Z_B[H[e].localName]){var V=H[e];var b=Array.prototype.slice.call(V.labels||[]);if(!b.length){b=[];try{var a=V.getRootNode();if(V.id){var w=a.querySelectorAll("label[for = '"+V.id+"']");for(V=0;V<w.length;V++)b.push(w[V])}}catch(h){}}for(V=0;V<b.length;V++)t=t||kET.indexOf(b[V])>-1}if(H[e]===sh9)return}t||(D.preventDefault(),D.stopPropagation())}},sh9=null,nU=null,PZX=0,nf8=0,ofD=-1,CZX=!1;
document.addEventListener("touchend",function(D){nU||cMV(!0);sh9=UG$(D)[0];nU=_.oc(nU,_.Ei.after(2500),function(){cMV();nU=sh9=null})},GE3?{passive:!0}:!1);
var UG$=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(D){return D.composedPath&&D.composedPath()||[]},gv={},Ln=[];
mGk({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){fn(this.info)},
mousedown:function(D){if(Sp(D)){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),H=this;rMV(this.info,function(e){Sp(e)||(xo("up",t,e),fn(H.info))},function(e){Sp(e)&&xo("up",t,e);
fn(H.info)});
xo("down",t,D)}},
touchstart:function(D){xo("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),D.changedTouches[0],D)},
touchend:function(D){xo("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),D.changedTouches[0],D)}});
mGk({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(D){this.moves.length>2&&this.moves.shift();this.moves.push(D)},
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;fn(this.info)},
mousedown:function(D){if(Sp(D)){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D),H=this,e=function(V){var b=V.clientX,a=V.clientY;MkR(H.info,b,a)&&(H.info.state=H.info.started?V.type==="mouseup"?"end":"track":"start",H.info.state==="start"&&An("tap"),H.info.addMove({x:b,y:a}),Sp(V)||(H.info.state="end",fn(H.info)),t&&StR(H.info,t,V),H.info.started=!0)};
rMV(this.info,e,function(V){H.info.started&&e(V);fn(H.info)});
this.info.x=D.clientX;this.info.y=D.clientY}},
touchstart:function(D){D=D.changedTouches[0];this.info.x=D.clientX;this.info.y=D.clientY},
touchmove:function(D){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);D=D.changedTouches[0];var H=D.clientX,e=D.clientY;MkR(this.info,H,e)&&(this.info.state==="start"&&An("tap"),this.info.addMove({x:H,y:e}),StR(this.info,t,D),this.info.state="track",this.info.started=!0)},
touchend:function(D){var t=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D);D=D.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:D.clientX,y:D.clientY}),StR(this.info,t,D))}});
mGk({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(D){Sp(D)&&(this.info.x=D.clientX,this.info.y=D.clientY)},
click:function(D){Sp(D)&&fjX(this.info,D)},
touchstart:function(D){D=D.changedTouches[0];this.info.x=D.clientX;this.info.y=D.clientY},
touchend:function(D){fjX(this.info,D.changedTouches[0],D)}});var hdf=KU(function(D){var t=function(){return D.apply(this,arguments)||this};
_.P(t,D);t.prototype._addEventListenerToNode=function(H,e,V){Jn(H,e,V)||D.prototype._addEventListenerToNode.call(this,H,e,V)};
t.prototype._removeEventListenerFromNode=function(H,e,V){Yo(H,e,V)||D.prototype._removeEventListenerFromNode.call(this,H,e,V)};
return t});var CU=KU(function(D){var t=function(){return D.apply(this,arguments)||this};
_.P(t,D);t.prototype._shouldPropertyChange=function(H,e,V){return LN$(this,H,e,V,!0)};
return t}),GKQ=KU(function(D){var t=function(){return D.apply(this,arguments)||this};
_.P(t,D);t.prototype._shouldPropertyChange=function(H,e,V){return LN$(this,H,e,V,this.mutableData)};
_.ql.Object.defineProperties(t,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return t});
CU._mutablePropertyChange=LN$;var AM8=!1;var Eg4=hdf(GKQ(kZ(HTMLElement))),mK=function(){var D=Eg4.call(this)||this;if(y9)throw Error("Ld");D.root=null;D.$=null;D.__children=null;return D};
_.P(mK,Eg4);_.q=mK.prototype;_.q.attributeChangedCallback=function(){this.mutableData=!0};
_.q.connectedCallback=function(){gfk()||(this.style.display="none");this.render()};
_.q.disconnectedCallback=function(){this.__removeChildren()};
_.q.__insertChildren=function(){(0,_.Uh)((0,_.Uh)(this).parentNode).insertBefore(this.root,this)};
_.q.__removeChildren=function(){if(this.__children)for(var D=0;D<this.__children.length;D++)this.root.appendChild(this.__children[D])};
_.q.render=function(){var D=this;if(!this.__children){var t=t||this.querySelector("template");if(!t){var H=new MutationObserver(function(){if(t=D.querySelector("template"))H.disconnect(),D.render();else throw Error("Md");});
H.observe(this,{childList:!0});return}this.root=this._stampTemplate(t);this.$=this.root.$;this.__children=[];for(var e=this.root.firstChild;e;e=e.nextSibling)this.__children[this.__children.length]=e;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.ql.Object.defineProperties(mK,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",mK);Polymer.Debouncer=Oi;Polymer.Gestures={gestures:gv,recognizers:Ln,deepTargetFind:OaK,addListener:Jn,removeListener:Yo,register:mGk,setTouchAction:_.pn,prevent:An,resetMouseCanceller:function(){nU&&nU.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:Jn,remove:Yo};Polymer.GestureEventListeners=hdf;Polymer.MutableData=CU;Polymer.OptionalMutableData=GKQ;Polymer.DomBind=mK;_.ML=function(){do{var D=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var t=a2v()}while(D||t)};var JM3=null;Yt6.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Yt6,writable:!0}});var WNV=kZ(Yt6),uz8=CU(WNV),KPm=kZ(function(){}),WF=function(D){var t=KPm.call(this)||this;
t._configureProperties(D);t.root=t._stampTemplate(t.__dataHost);var H=[];t.children=H;for(var e=t.root.firstChild;e;e=e.nextSibling)H.push(e),e.__templatizeInstance=t;t.__templatizeOwner&&t.__templatizeOwner.__hideTemplateChildren__&&t._showHideChildren(!0);H=t.__templatizeOptions;(D&&H.instanceProps||!H.instanceProps)&&t._enableProperties();return t};
_.P(WF,KPm);_.q=WF.prototype;_.q._configureProperties=function(D){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var H in D)this._setPendingProperty(H,D[H])};
_.q.forwardHostProp=function(D,t){this._setPendingPropertyOrPath(D,t,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.q._addEventListenerToNode=function(D,t,H){var e=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(D,t,function(b){b.model=e;H(b)});
else{var V=this.__dataHost.__dataHost;V&&V._addEventListenerToNode(D,t,H)}};
_.q._showHideChildren=function(D){vfK(D,this.children)};
_.q._setUnmanagedPropertyToNode=function(D,t,H){D.__hideTemplateChildren__&&D.nodeType==Node.TEXT_NODE&&t=="textContent"?D.__polymerTextContent__=H:KPm.prototype._setUnmanagedPropertyToNode.call(this,D,t,H)};
_.q.dispatchEvent=function(){return!0};
_.ql.Object.defineProperties(WF.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var D=this.__parentModel;if(!D){var t;D=this;do D=D.__dataHost.__dataHost;while((t=D.__templatizeOptions)&&!t.parentModel);this.__parentModel=D}return D}}});
var dGK=CU(WF);var SY=function(){var D=cb.call(this)||this;D.__renderDebouncer=null;D._lastIf=!1;D.__hideTemplateChildren__=!1;return D};
_.P(SY,cb);_.q=SY.prototype;_.q.__debounceRender=function(){var D=this;this.__renderDebouncer=_.oc(this.__renderDebouncer,dv,function(){return D.__render()});
_.Pb(this.__renderDebouncer)};
_.q.disconnectedCallback=function(){cb.prototype.disconnectedCallback.call(this);var D=(0,_.Uh)(this).parentNode;D&&(D.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Uh)(D).host)||this.__teardownInstance()};
_.q.connectedCallback=function(){cb.prototype.connectedCallback.call(this);gfk()||(this.style.display="none");this.if&&this.__debounceRender()};
_.q.__ensureTemplate=function(){var D=this;if(!this.__template){var t=this._templateInfo?this:(0,_.Uh)(this).querySelector("template");if(!t){var H=new MutationObserver(function(){if((0,_.Uh)(D).querySelector("template"))H.disconnect(),D.__render();else throw Error("Pd");});
H.observe(this,{childList:!0});return!1}this.__template=t}return!0};
_.q.__ensureInstance=function(){var D=(0,_.Uh)(this).parentNode;if(this.__hasInstance()){var t=this.__getInstanceNodes();if(t&&t.length&&(0,_.Uh)(this).previousSibling!==t[t.length-1])for(var H=0,e=void 0;H<t.length&&(e=t[H]);H++)(0,_.Uh)(D).insertBefore(e,this)}else{if(!D||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(D)}return!0};
_.q.render=function(){_.ML()};
_.q.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();hq&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.q.__hasInstance=function(){};
_.q.__getInstanceNodes=function(){};
_.q.__createAndInsertInstance=function(){};
_.q.__teardownInstance=function(){};
_.q._showHideChildren=function(){};
_.ql.Object.defineProperties(SY,{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:SY.prototype.__debounceRender},restamp:{type:Boolean,observer:SY.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var Nn3=function(){var D=SY.call(this)||this;D.__instance=null;D.__syncInfo=null;return D};
_.P(Nn3,SY);_.q=Nn3.prototype;_.q.__hasInstance=function(){return!!this.__instance};
_.q.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.q.__createAndInsertInstance=function(D){var t=this,H=this.__dataHost||this;if(y9&&!this.__dataHost)throw Error("Nd");var e=H._bindTemplate(this.__template,!0);e.runEffects=function(V,b,a){var w=t.__syncInfo;if(t.if)w&&(t.__syncInfo=null,t._showHideChildren(),b=Object.assign(w.changedProps,b)),V(b,a);else if(t.__instance)if(w||(w=t.__syncInfo={runEffects:V,changedProps:{}}),a)for(var h in b)V=Tc(h),w.changedProps[V]=t.__dataHost[V];else Object.assign(w.changedProps,b)};
this.__instance=H._stampTemplate(this.__template,e);(0,_.Uh)(D).insertBefore(this.__instance,this)};
_.q.__syncHostProperties=function(){var D=this.__syncInfo;D&&(this.__syncInfo=null,D.runEffects(D.changedProps,!1))};
_.q.__teardownInstance=function(){var D=this.__dataHost||this;this.__instance&&(D._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.q._showHideChildren=function(){var D=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==D&&(this.__instance.__hidden=D,vfK(D,this.__instance.templateInfo.childNodes));D||this.__syncHostProperties()};
var kKa=function(){var D=SY.call(this)||this;D.__ctor=null;D.__instance=null;D.__invalidProps=null;return D};
_.P(kKa,SY);_.q=kKa.prototype;_.q.__hasInstance=function(){return!!this.__instance};
_.q.__getInstanceNodes=function(){return this.__instance.children};
_.q.__createAndInsertInstance=function(D){this.__ctor||(this.__ctor=IC(this.__template,this,{mutableData:!0,forwardHostProp:function(t,H){this.__instance&&(this.if?this.__instance.forwardHostProp(t,H):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Tc(t)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Uh)(D).insertBefore(this.__instance.root,this)};
_.q.__teardownInstance=function(){if(this.__instance){var D=this.__instance.children;if(D&&D.length){var t=(0,_.Uh)(D[0]).parentNode;if(t){t=(0,_.Uh)(t);for(var H=0,e=void 0;H<D.length&&(e=D[H]);H++)t.removeChild(e)}}this.__instance=this.__invalidProps=null}};
_.q.__syncHostProperties=function(){var D=this.__invalidProps;if(D){this.__invalidProps=null;for(var t in D)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__instance._flushProperties()}};
_.q._showHideChildren=function(){var D=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==D&&(this.__instance.__hidden=D,this.__instance._showHideChildren(D));D||this.__syncHostProperties()};
_.vT=si?Nn3:kKa;customElements.define(_.vT.is,_.vT);Polymer.enqueueDebouncer=_.Pb;Polymer.flush=_.ML;Polymer.Templatize={templatize:IC,modelForElement:DAV};Polymer.TemplateInstanceBase=WF;Polymer.DomIf=_.vT;var Tnw=GKQ(cb),lK=function(){var D=Tnw.call(this)||this;D.__instances=[];D.__renderDebouncer=null;D.__itemsIdxToInstIdx={};D.__chunkCount=null;D.__renderStartTime=null;D.__itemsArrayChanged=!1;D.__shouldMeasureChunk=!1;D.__shouldContinueChunking=!1;D.__chunkingId=0;D.__sortFn=null;D.__filterFn=null;D.__observePaths=null;D.__ctor=null;D.__isDetached=!0;D.template=null;return D};
_.P(lK,Tnw);_.q=lK.prototype;_.q.disconnectedCallback=function(){Tnw.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var D=0;D<this.__instances.length;D++)this.__detachInstance(D);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.q.connectedCallback=function(){Tnw.prototype.connectedCallback.call(this);gfk()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var D=(0,_.Uh)((0,_.Uh)(this).parentNode),t=0;t<this.__instances.length;t++)this.__attachInstance(t,D);this.__chunkingId&&this.__render()}};
_.q.__ensureTemplatized=function(){var D=this;if(!this.__ctor){var t=this.template=this._templateInfo?this:this.querySelector("template");if(!t){var H=new MutationObserver(function(){if(D.querySelector("template"))H.disconnect(),D.__render();else throw Error("Qd");});
H.observe(this,{childList:!0});return!1}var e={};e[this.as]=!0;e[this.indexAs]=!0;e[this.itemsIndexAs]=!0;this.__ctor=IC(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:e,forwardHostProp:function(V,b){for(var a=this.__instances,w=0,h=void 0;w<a.length&&(h=a[w]);w++)h.forwardHostProp(V,b)},
notifyInstanceProp:function(V,b,a){TLD(this.as,b)&&(V=V[this.itemsIndexAs],b==this.as&&(this.items[V]=a),b=jp(this.as,"items."+V,b),this.notifyPath(b,a))}})}return!0};
_.q.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.q.__functionFromPropertyValue=function(D){if(typeof D==="string"){var t=this.__getMethodHost();return function(){return t[D].apply(t,arguments)}}return D};
_.q.__sortChanged=function(D){this.__sortFn=this.__functionFromPropertyValue(D);this.items&&this.__debounceRender(this.__render)};
_.q.__filterChanged=function(D){this.__filterFn=this.__functionFromPropertyValue(D);this.items&&this.__debounceRender(this.__render)};
_.q.__computeFrameTime=function(D){return Math.ceil(1E3/D)};
_.q.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.q.__handleObservedPaths=function(D){if(this.__sortFn||this.__filterFn)if(!D)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var t=this.__observePaths,H=0;H<t.length;H++)D.indexOf(t[H])===0&&this.__debounceRender(this.__render,this.delay)};
_.q.__itemsChanged=function(D){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(D.path,D.value)||(D.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.q.__debounceRender=function(D,t){t=t===void 0?0:t;this.__renderDebouncer=_.oc(this.__renderDebouncer,t>0?_.Ei.after(t):dv,D.bind(this));_.Pb(this.__renderDebouncer)};
_.q.render=function(){this.__debounceRender(this.__render);_.ML()};
_.q.__render=function(){var D=this;if(this.__ensureTemplatized()){var t=this.items||[],H=this.__sortAndFilterItems(t),e=this.__calculateLimit(H.length);this.__updateInstances(t,e,H);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){D.__chunkingId=null;D.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);hq&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.q.__sortAndFilterItems=function(D){for(var t=this,H=Array(D.length),e=0;e<D.length;e++)H[e]=e;this.__filterFn&&(H=H.filter(function(V,b,a){return t.__filterFn(D[V],b,a)}));
this.__sortFn&&H.sort(function(V,b){return t.__sortFn(D[V],D[b])});
return H};
_.q.__calculateLimit=function(D){var t=D,H=this.__instances.length;if(this.initialCount){var e;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(D,this.initialCount),this.__chunkCount=(e=Math.max(t-H,0))||1):(e=Math.min(Math.max(D-H,0),this.__chunkCount),t=Math.min(H+e,D));this.__shouldMeasureChunk=e===this.__chunkCount;this.__shouldContinueChunking=t<D;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return t};
_.q.__continueChunking=function(){if(this.__shouldMeasureChunk){var D=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/D*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.q.__updateInstances=function(D,t,H){var e=this.__itemsIdxToInstIdx={},V;for(V=0;V<t;V++){var b=this.__instances[V],a=H[V],w=D[a];e[a]=V;b?(b._setPendingProperty(this.as,w),b._setPendingProperty(this.indexAs,V),b._setPendingProperty(this.itemsIndexAs,a),b._flushProperties()):this.__insertInstance(w,V,a)}for(D=this.__instances.length-1;D>=V;D--)this.__detachAndRemoveInstance(D)};
_.q.__detachInstance=function(D){D=this.__instances[D];for(var t=(0,_.Uh)(D.root),H=0;H<D.children.length;H++)t.appendChild(D.children[H]);return D};
_.q.__attachInstance=function(D,t){t.insertBefore(this.__instances[D].root,this)};
_.q.__detachAndRemoveInstance=function(D){this.__detachInstance(D);this.__instances.splice(D,1)};
_.q.__stampInstance=function(D,t,H){var e={};e[this.as]=D;e[this.indexAs]=t;e[this.itemsIndexAs]=H;return new this.__ctor(e)};
_.q.__insertInstance=function(D,t,H){D=this.__stampInstance(D,t,H);H=(H=this.__instances[t+1])?H.children[0]:this;(0,_.Uh)((0,_.Uh)(this).parentNode).insertBefore(D.root,H);return this.__instances[t]=D};
_.q._showHideChildren=function(D){for(var t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(D)};
_.q.__handleItemPath=function(D,t){var H=D.slice(6),e=H.indexOf(".");D=e<0?H:H.substring(0,e);if(D==parseInt(D,10)){H=e<0?"":H.substring(e+1);this.__handleObservedPaths(H);if(D=this.__instances[this.__itemsIdxToInstIdx[D]])D._setPendingPropertyOrPath(this.as+(H?"."+H:""),t,!1,!0),D._flushProperties();return!0}};
_.q.itemForElement=function(D){return(D=this.modelForElement(D))&&D[this.as]};
_.q.indexForElement=function(D){return(D=this.modelForElement(D))&&D[this.indexAs]};
_.q.modelForElement=function(D){return DAV(this.template,D)};
_.ql.Object.defineProperties(lK,{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:lK.prototype.__sortChanged},filter:{type:Function,observer:lK.prototype.__filterChanged},observe:{type:String,observer:lK.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!hq,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.*)"]}}});
lK.prototype._setRenderedItemCount=function(){};
customElements.define(lK.is,lK);Polymer.DomRepeat=lK;var cGn=function(D,t){var H=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=D;this.callback=t;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){H._schedule()};
this.connect();this._schedule()},jhn=function(D){var t=(0,_.Uh)(D);
if(BF(D))return t.assignedNodes({flatten:!0});D=[];for(var H=0;H<t.childNodes.length;H++){var e=t.childNodes[H];BF(e)?D.push.apply(D,_.A6((0,_.Uh)(e).assignedNodes({flatten:!0}))):D.push(e)}return D};
_.q=cGn.prototype;_.q.connect=function(){var D=this;BF(this._target)?this._listenSlots([this._target]):(0,_.Uh)(this._target).children&&(this._listenSlots((0,_.Uh)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(t){D._processMutations(t)}):(this._nativeChildrenObserver=new MutationObserver(function(t){D._processMutations(t)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.q.disconnect=function(){BF(this._target)?this._unlistenSlots([this._target]):(0,_.Uh)(this._target).children&&(this._unlistenSlots((0,_.Uh)(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};
_.q._schedule=function(){var D=this;this._scheduled||(this._scheduled=!0,dv.run(function(){return D.flush()}))};
_.q._processMutations=function(D){this._processSlotMutations(D);this.flush()};
_.q._processSlotMutations=function(D){if(D)for(var t=0;t<D.length;t++){var H=D[t];H.addedNodes&&this._listenSlots(H.addedNodes);H.removedNodes&&this._unlistenSlots(H.removedNodes)}};
_.q.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 D={target:this._target,addedNodes:[],removedNodes:[]},t=jhn(this._target),H=z83(t,this._effectiveNodes),e=0,V=void 0;e<H.length&&(V=H[e]);e++)for(var b=0,a=void 0;b<V.removed.length&&(a=V.removed[b]);b++)D.removedNodes.push(a);
e=0;for(V=void 0;e<H.length&&(V=H[e]);e++)for(b=V.index;b<V.index+V.addedCount;b++)D.addedNodes.push(t[b]);this._effectiveNodes=t;t=!1;if(D.addedNodes.length||D.removedNodes.length)t=!0,this.callback.call(this._target,D);return t};
_.q._listenSlots=function(D){for(var t=0;t<D.length;t++){var H=D[t];BF(H)&&H.addEventListener("slotchange",this._boundSchedule)}};
_.q._unlistenSlots=function(D){for(var t=0;t<D.length;t++){var H=D[t];BF(H)&&H.removeEventListener("slotchange",this._boundSchedule)}};var Xl=Element.prototype,$Fv=Xl.matches||Xl.matchesSelector||Xl.mozMatchesSelector||Xl.msMatchesSelector||Xl.oMatchesSelector||Xl.webkitMatchesSelector,i_4=function(D,t){return $Fv.call(D,t)},zc=function(D){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(D);
this.node=D},ogv;
_.q=zc.prototype;_.q.observeNodes=function(D){return new cGn(this.node,D)};
_.q.unobserveNodes=function(D){D.disconnect()};
_.q.notifyObserver=function(){};
_.q.deepContains=function(D){if((0,_.Uh)(this.node).contains(D))return!0;var t=D;for(D=D.ownerDocument;t&&t!==D&&t!==this.node;)t=(0,_.Uh)(t).parentNode||(0,_.Uh)(t).host;return t===this.node};
_.q.getOwnerRoot=function(){return(0,_.Uh)(this.node).getRootNode()};
_.q.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Uh)(this.node).assignedNodes({flatten:!0}):[]};
_.q.getDestinationInsertionPoints=function(){for(var D=[],t=(0,_.Uh)(this.node).assignedSlot;t;)D.push(t),t=(0,_.Uh)(t).assignedSlot;return D};
_.q.importNode=function(D,t){return(0,_.Uh)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(D,t)};
_.q.getEffectiveChildNodes=function(){return jhn(this.node)};
_.q.queryDistributedElements=function(D){for(var t=this.getEffectiveChildNodes(),H=[],e=0,V=t.length,b=void 0;e<V&&(b=t[e]);e++)b.nodeType===Node.ELEMENT_NODE&&i_4(b,D)&&H.push(b);return H};
_.ql.Object.defineProperties(zc.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var D=this.node;return D._activeElement!==void 0?D._activeElement:D.activeElement}}});
var fU=function(D){this.event=D};
_.ql.Object.defineProperties(fU.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 rGv=zc;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var O_o=window.ShadyDOM.Wrapper,UF6=function(){return O_o.apply(this,arguments)||this};
_.P(UF6,O_o);Object.getOwnPropertyNames(zc.prototype).forEach(function(D){D!="activeElement"&&D!="constructor"&&(UF6.prototype[D]=zc.prototype[D])});
HJk(UF6.prototype,["classList"]);rGv=UF6;Object.defineProperties(fU.prototype,{localTarget:{get:function(){var D=this.event.currentTarget;D=D&&_.Xu(D).getOwnerRoot();for(var t=this.path,H=0;H<t.length;H++){var e=t[H];if(_.Xu(e).getOwnerRoot()===D)return e}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else tB6(),HJk(zc.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),eFV();ogv=rGv;_.Xu=function(D){D=D||document;if(D instanceof rGv)return D;if(D instanceof fU)return D;var t=D.__domApi;t||(D instanceof Event?t=new fU(D):t=new rGv(D),D.__domApi=t);return t};var P_3=/:host\(:dir\((ltr|rtl)\)\)/g,ng6=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,C_f=/:dir\((?:ltr|rtl)\)/,mFo=!(!window.ShadyDOM||!window.ShadyDOM.inUse),tK=[],LU=null,Ds="",Mon=KU(function(D){mFo||LU||(Ds=document.documentElement.getAttribute("dir"),LU=new MutationObserver(VBA),LU.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var t=AV4(D);D=function(){var H=t.call(this)||this;H.__autoDirOptOut=!1;return H};
_.P(D,t);D._processStyleText=function(H,e){H=t._processStyleText.call(this,H,e);!mFo&&C_f.test(H)&&(H=this._replaceDirInCssText(H),this.__activateDir=!0);return H};
D._replaceDirInCssText=function(H){H=H.replace(P_3,':host([dir="$1"])');return H=H.replace(ng6,':host([dir="$2"]) $1')};
D.prototype.ready=function(){t.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
D.prototype.connectedCallback=function(){t.prototype.connectedCallback&&t.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(LU&&LU.takeRecords().length&&VBA(),tK.push(this),this.__autoDirOptOut||this.setAttribute("dir",Ds))};
D.prototype.disconnectedCallback=function(){t.prototype.disconnectedCallback&&t.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var H=tK.indexOf(this);H>-1&&tK.splice(H,1)}};
D.__activateDir=!1;return D});var SLV=function(D){for(;D;){var t=Object.getOwnPropertyDescriptor(D,"observedAttributes");if(t)return t.get;D=Object.getPrototypeOf(D.prototype).constructor}return function(){return[]}};
KU(function(D){var t=Td(D),H=SLV(t);D=function(){return t.call(this)||this};
_.P(D,t);D.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:t.prototype._initializeProperties.call(this)};
D.prototype._enableProperties=function(){this.__isUpgradeDisabled||t.prototype._enableProperties.call(this)};
D.prototype._canApplyPropertyDefault=function(e){return t.prototype._canApplyPropertyDefault.call(this,e)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(e))};
D.prototype.attributeChangedCallback=function(e,V,b,a){e=="disable-upgrade"?this.__isUpgradeDisabled&&b==null&&(t.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Uh)(this).isConnected&&t.prototype.connectedCallback.call(this)):t.prototype.attributeChangedCallback.call(this,e,V,b,a)};
D.prototype.connectedCallback=function(){this.__isUpgradeDisabled||t.prototype.connectedCallback.call(this)};
D.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||t.prototype.disconnectedCallback.call(this)};
_.ql.Object.defineProperties(D,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return H.call(this).concat("disable-upgrade")}}});
return D});var H3=!1,qBT=[],e7=[];var ZJu=window.ShadyDOM,sSD=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",GNX):document.readyState==="interactive"||document.readyState==="complete"?GNX():window.addEventListener("DOMContentLoaded",GNX);var Nq$=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=""},EB$=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,KbD=/@import[^;]*;/gim,iJ$=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,r_A=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,OJ3=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,UAX=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,jSk=/^@[^\s]*keyframes/,
c_k=/\s+/g;var oB6={};var CtA=Promise.resolve();var X7n=new Set;var f2V=/;\s*/m,LP9=/^\s*(initial)|(inherit)\s*$/,AG6=/\s*!important/,ggf=function(){this._map={}};
ggf.prototype.set=function(D,t){D=D.trim();this._map[D]={properties:t,dependants:{}}};
ggf.prototype.get=function(D){D=D.trim();return this._map[D]||null};
var JGa=null,Aq=function(){this._measureElement=this._currentElement=null;this._map=new ggf};
_.q=Aq.prototype;_.q.detectMixin=function(D){D=to9.test(D)||DFa.test(D);to9.lastIndex=0;DFa.lastIndex=0;return D};
_.q.transformTemplate=function(D,t){if(D._gatheredStyle===void 0){var H=[];for(var e=D.content.querySelectorAll("style"),V=0;V<e.length;V++){var b=e[V];if(b.hasAttribute("shady-unscoped")){if(!wgR){var a=b.textContent;if(!X7n.has(a)){X7n.add(a);var w=document.createElement("style");w.setAttribute("shady-unscoped","");w.textContent=a;document.head.appendChild(w)}b.parentNode.removeChild(b)}}else H.push(b.textContent),b.parentNode.removeChild(b)}(H=H.join("").trim())?(e=document.createElement("style"),
e.textContent=H,D.content.insertBefore(e,D.content.firstChild),H=e):H=null;D._gatheredStyle=H}return(D=D._gatheredStyle)?this.JSC$11275_transformStyle(D,t):null};
_.q.JSC$11275_transformStyle=function(D,t){t=t===void 0?"":t;var H=Xr$(D);this.transformRules(H,t);D.textContent=SB3(H);return H};
_.q.transformCustomStyle=function(D){var t=this,H=Xr$(D);LbD(H,function(e){e.selector===":root"&&(e.selector="html");t.transformRule(e)});
D.textContent=SB3(H);return H};
_.q.transformRules=function(D,t){var H=this;this._currentElement=t;LbD(D,function(e){H.transformRule(e)});
this._currentElement=null};
_.q.transformRule=function(D){D.cssText=YLV(this,D.parsedCssText,D);D.selector===":root"&&(D.selector=":host > *")};
var YLV=function(D,t,H){t=t.replace(DFa,function(e,V,b,a){return D._produceCssProperties(e,V,b,a,H)});
return D._consumeCssProperties(t,H)};
_.q=Aq.prototype;_.q._getInitialValueForProperty=function(D){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(D)};
_.q._fallbacksFromPreviousRules=function(D){for(var t=this,H=D;H.parent;)H=H.parent;var e={},V=!1;LbD(H,function(b){(V=V||b===D)||b.selector===D.selector&&Object.assign(e,t._cssTextToMap(b.parsedCssText))});
return e};
_.q._consumeCssProperties=function(D,t){for(var H;H=to9.exec(D);){var e=H[0],V=H[1];H=H.index;var b=H+e.indexOf("@apply"),a=H+e.length;e=D.slice(0,b);D=D.slice(a);b=t?this._fallbacksFromPreviousRules(t):{};Object.assign(b,this._cssTextToMap(e));V=this._atApplyToCssProperties(V,b);D=e+V+D;to9.lastIndex=H+V.length}return D};
_.q._atApplyToCssProperties=function(D,t){D=D.replace(f2V,"");var H=[],e=this._map.get(D);e||(this._map.set(D,{}),e=this._map.get(D));if(e){this._currentElement&&(e.dependants[this._currentElement]=!0);var V,b=e.properties;for(V in b){var a=t&&t[V];e=[V,": var(",D,"_-_",V];a&&e.push(",",a.replace(AG6,""));e.push(")");AG6.test(b[V])&&e.push(" !important");H.push(e.join(""))}}return H.join("; ")};
_.q._replaceInitialOrInherit=function(D,t){var H=LP9.exec(t);H&&(t=H[1]?this._getInitialValueForProperty(D):"apply-shim-inherit");return t};
_.q._cssTextToMap=function(D,t){t=t===void 0?!1:t;D=D.split(";");for(var H,e,V={},b=0;b<D.length;b++)if(H=D[b])e=H.split(":"),e.length>1&&(H=e[0].trim(),e=e.slice(1).join(":"),t&&(e=this._replaceInitialOrInherit(H,e)),V[H]=e);return V};
_.q._invalidateMixinEntry=function(D){if(JGa)for(var t in D.dependants)t!==this._currentElement&&JGa(t)};
_.q._produceCssProperties=function(D,t,H,e,V){var b=this;H&&A_6(H,function(U,S){S&&b._map.get(S)&&(e="@apply "+S+";")});
if(!e)return D;var a=this._consumeCssProperties(""+e,V);V=D.slice(0,D.indexOf("--"));var w=a=this._cssTextToMap(a,!0),h=this._map.get(t),K=h&&h.properties;K?w=Object.assign(Object.create(K),a):this._map.set(t,w);var N=[],k,T=!1;for(k in w){var c=a[k];c===void 0&&(c="initial");!K||k in K||(T=!0);N.push(t+"_-_"+k+": "+c)}T&&this._invalidateMixinEntry(h);h&&(h.properties=w);H&&(V=D+";"+V);return V+N.join("; ")+";"};
Aq.prototype.detectMixin=Aq.prototype.detectMixin;Aq.prototype.transformStyle=Aq.prototype.JSC$11275_transformStyle;Aq.prototype.transformCustomStyle=Aq.prototype.transformCustomStyle;Aq.prototype.transformRules=Aq.prototype.transformRules;Aq.prototype.transformRule=Aq.prototype.transformRule;Aq.prototype.transformTemplate=Aq.prototype.transformTemplate;Aq.prototype._separator="_-_";Object.defineProperty(Aq.prototype,"invalidCallback",{get:function(){return JGa},
set:function(D){JGa=D}});var gI=new Aq,l2V=function(){this.customStyleInterface=null;gI.invalidCallback=PtD},Jq=function(D){!D.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(D.customStyleInterface=window.ShadyCSS.CustomStyleInterface,D.customStyleInterface.transformCallback=function(t){gI.transformCustomStyle(t)},D.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){D.customStyleInterface.enqueued&&D.flushCustomStyles()})})};
_.q=l2V.prototype;_.q.prepareTemplate=function(D,t){Jq(this);gB6(D)===""&&(oB6[t]=D,t=gI.transformTemplate(D,t),D._styleAst=t)};
_.q.flushCustomStyles=function(){Jq(this);if(this.customStyleInterface){var D=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var t=0;t<D.length;t++){var H=this.customStyleInterface.getStyleForCustomStyle(D[t]);H&&gI.transformCustomStyle(H)}this.customStyleInterface.enqueued=!1}}};
_.q.styleSubtree=function(D,t){Jq(this);t&&Ha8(D,t);if(D.shadowRoot)for(this.styleElement(D),D=D.shadowRoot.children||D.shadowRoot.childNodes,t=0;t<D.length;t++)this.styleSubtree(D[t]);else for(D=D.children||D.childNodes,t=0;t<D.length;t++)this.styleSubtree(D[t])};
_.q.styleElement=function(D){Jq(this);var t=D.localName,H;t?t.indexOf("-")>-1?H=t:H=D.getAttribute&&D.getAttribute("is")||"":H=D.is;t=oB6[H];if(!(t&&gB6(t)!==""||!t||nB$(t))){if(nB$(t)||t._applyShimValidatingVersion!==t._applyShimNextVersion)this.prepareTemplate(t,H),mAD(t);if(D=D.shadowRoot)if(D=D.querySelector("style"))D.__cssRules=t._styleAst,D.textContent=SB3(t._styleAst)}};
_.q.styleDocument=function(D){Jq(this);this.styleSubtree(document.body,D)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var YZ=new l2V,vgm=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(D,t){YZ.flushCustomStyles();YZ.prepareTemplate(D,t)},
prepareTemplateStyles:function(D,t,H){window.ShadyCSS.prepareTemplate(D,t,H)},
prepareTemplateDom:function(){},
styleSubtree:function(D,t){YZ.flushCustomStyles();YZ.styleSubtree(D,t)},
styleElement:function(D){YZ.flushCustomStyles();YZ.styleElement(D)},
styleDocument:function(D){YZ.flushCustomStyles();YZ.styleDocument(D)},
getComputedStyleValue:function(D,t){return emD(D,t)},
flushCustomStyles:function(){YZ.flushCustomStyles()},
nativeCss:MBD,nativeShadow:wgR,cssBuild:bo,disableRuntime:Von};vgm&&(window.ShadyCSS.CustomStyleInterface=vgm)}window.ShadyCSS.ApplyShim=gI;var p7v;p7v=window.ShadyCSS;_.lA=KU(function(D){D=hdf(Td(D));var t=uK3?D:Mon(D),H=SLV(t),e={x:"pan-x",y:"pan-y",none:"none",all:"auto"};D=function(){return t.call(this)||this};
_.P(D,t);D.prototype.created=function(){};
D.prototype.__attributeReaction=function(V,b,a){(this.__dataAttributes&&this.__dataAttributes[V]||V==="disable-upgrade")&&this.attributeChangedCallback(V,b,a,null)};
D.prototype.setAttribute=function(V,b){if(jfm&&!this._legacyForceObservedAttributes){var a=this.getAttribute(V);t.prototype.setAttribute.call(this,V,b);this.__attributeReaction(V,a,String(b))}else t.prototype.setAttribute.call(this,V,b)};
D.prototype.removeAttribute=function(V){if(jfm&&!this._legacyForceObservedAttributes){var b=this.getAttribute(V);t.prototype.removeAttribute.call(this,V);this.__attributeReaction(V,b,null)}else t.prototype.removeAttribute.call(this,V)};
D.prototype._enableProperties=function(){this.__isUpgradeDisabled||t.prototype._enableProperties.call(this)};
D.prototype._canApplyPropertyDefault=function(V){return t.prototype._canApplyPropertyDefault.call(this,V)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(V))};
D.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(t.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
D.prototype.attached=function(){};
D.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(t.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
D.prototype.detached=function(){};
D.prototype.attributeChangedCallback=function(V,b,a,w){b!==a&&(V=="disable-upgrade"?this.__isUpgradeDisabled&&a==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Uh)(this).isConnected&&this.connectedCallback()):(t.prototype.attributeChangedCallback.call(this,V,b,a,w),this.attributeChanged(V,b,a)))};
D.prototype.attributeChanged=function(){};
D.prototype._initializeProperties=function(){if(RC&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var V=Object.getPrototypeOf(this);V.hasOwnProperty("__hasRegisterFinished")||(this._registered(),V.__hasRegisterFinished=!0);t.prototype._initializeProperties.call(this);this.root=this;this.created();jfm&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
D.prototype._takeAttributes=function(){for(var V=this.attributes,b=0,a=V.length;b<a;b++){var w=V[b];this.__attributeReaction(w.name,null,w.value)}};
D.prototype._registered=function(){};
D.prototype.ready=function(){this._ensureAttributes();t.prototype.ready.call(this)};
D.prototype._ensureAttributes=function(){};
D.prototype._applyListeners=function(){};
D.prototype.serialize=function(V){return this._serializeValue(V)};
D.prototype.deserialize=function(V,b){return this._deserializeValue(V,b)};
D.prototype.reflectPropertyToAttribute=function(V,b,a){this._propertyToAttribute(V,b,a)};
D.prototype.serializeValueToAttribute=function(V,b,a){this._valueToNodeAttribute(a||this,V,b)};
D.prototype.extend=function(V,b){if(!V||!b)return V||b;for(var a=Object.getOwnPropertyNames(b),w=0,h=void 0;w<a.length&&(h=a[w]);w++){var K=Object.getOwnPropertyDescriptor(b,h);K&&Object.defineProperty(V,h,K)}return V};
D.prototype.mixin=function(V,b){for(var a in b)V[a]=b[a];return V};
D.prototype.chainObject=function(V,b){V&&b&&V!==b&&(V.__proto__=b);return V};
D.prototype.instanceTemplate=function(V){V=this.constructor._contentForTemplate(V);return document.importNode(V,!0)};
D.prototype.fire=function(V,b,a){a=a||{};b=b===null||b===void 0?{}:b;V=new Event(V,{bubbles:a.bubbles===void 0?!0:a.bubbles,cancelable:!!a.cancelable,composed:a.composed===void 0?!0:a.composed});V.detail=b;(0,_.Uh)(a.node||this).dispatchEvent(V);return V};
D.prototype.listen=function(V,b,a){V=V||this;var w=this.__boundListeners||(this.__boundListeners=new WeakMap),h=w.get(V);h||(h={},w.set(V,h));w=b+a;h[w]||(h[w]=this._addMethodEventListenerToNode(V,b,a,this))};
D.prototype.unlisten=function(V,b,a){V=V||this;var w=this.__boundListeners&&this.__boundListeners.get(V);a=b+a;var h=w&&w[a];h&&(this._removeEventListenerFromNode(V,b,h),w[a]=null)};
D.prototype.setScrollDirection=function(V,b){_.pn(b||this,e[V]||"auto")};
D.prototype.$$=function(V){return this.root.querySelector(V)};
D.prototype.distributeContent=function(){var V=_.Xu(this);window.ShadyDOM&&V.shadowRoot&&ShadyDOM.flush()};
D.prototype.getEffectiveChildNodes=function(){return _.Xu(this).getEffectiveChildNodes()};
D.prototype.queryDistributedElements=function(V){return _.Xu(this).queryDistributedElements(V)};
D.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(V){return V.nodeType===Node.ELEMENT_NODE})};
D.prototype.getEffectiveTextContent=function(){for(var V=this.getEffectiveChildNodes(),b=[],a=0,w;w=V[a];a++)w.nodeType!==Node.COMMENT_NODE&&b.push(w.textContent);return b.join("")};
D.prototype.queryEffectiveChildren=function(V){return(V=this.queryDistributedElements(V))&&V[0]};
D.prototype.queryAllEffectiveChildren=function(V){return this.queryDistributedElements(V)};
D.prototype.getContentChildNodes=function(V){return(V=this.root.querySelector(V||"slot"))?_.Xu(V).getDistributedNodes():[]};
D.prototype.getContentChildren=function(V){return this.getContentChildNodes(V).filter(function(b){return b.nodeType===Node.ELEMENT_NODE})};
D.prototype.isLightDescendant=function(V){return this!==V&&(0,_.Uh)(this).contains(V)&&(0,_.Uh)(this).getRootNode()===(0,_.Uh)(V).getRootNode()};
D.prototype.isLocalDescendant=function(V){return this.root===(0,_.Uh)(V).getRootNode()};
D.prototype.scopeSubtree=function(V,b){return hFA(V,b===void 0?!1:b)};
D.prototype.getComputedStyleValue=function(V){return p7v.getComputedStyleValue(this,V)};
D.prototype.debounce=function(V,b,a){this._debouncers=this._debouncers||{};return this._debouncers[V]=_.oc(this._debouncers[V],a>0?_.Ei.after(a):dv,b.bind(this))};
D.prototype.isDebouncerActive=function(V){this._debouncers=this._debouncers||{};V=this._debouncers[V];return!(!V||!V.isActive())};
D.prototype.flushDebouncer=function(V){this._debouncers=this._debouncers||{};(V=this._debouncers[V])&&V.flush()};
D.prototype.cancelDebouncer=function(V){this._debouncers=this._debouncers||{};(V=this._debouncers[V])&&V.cancel()};
D.prototype.async=function(V,b){return b>0?_.Ei.run(V.bind(this),b):~dv.run(V.bind(this))};
D.prototype.cancelAsync=function(V){V<0?dv.cancel(~V):_.Ei.cancel(V)};
D.prototype.create=function(V,b){V=document.createElement(V);if(b)if(V.setProperties)V.setProperties(b);else for(var a in b)V[a]=b[a];return V};
D.prototype.elementMatches=function(V,b){return i_4(b||this,V)};
D.prototype.toggleAttribute=function(V,b){var a=this;arguments.length===3&&(a=arguments[2]);arguments.length==1&&(b=!a.hasAttribute(V));if(b)return(0,_.Uh)(a).setAttribute(V,""),!0;(0,_.Uh)(a).removeAttribute(V);return!1};
D.prototype.toggleClass=function(V,b,a){a=a||this;arguments.length==1&&(b=!a.classList.contains(V));b?a.classList.add(V):a.classList.remove(V)};
D.prototype.transform=function(V,b){b=b||this;b.style.webkitTransform=V;b.style.transform=V};
D.prototype.translate3d=function(V,b,a,w){this.transform("translate3d("+V+","+b+","+a+")",w||this)};
D.prototype.arrayDelete=function(V,b){if(Array.isArray(V)){if(b=V.indexOf(b),b>=0)return V.splice(b,1)}else if(b=iv(this,V).indexOf(b),b>=0)return this.splice(V,b,1);return null};
D.prototype._logger=function(V,b){Array.isArray(b)&&b.length===1&&Array.isArray(b[0])&&(b=b[0]);switch(V){case "log":case "warn":case "error":console[V].apply(console,_.A6(b))}};
D.prototype._log=function(){this._logger("log",_.RE.apply(0,arguments))};
D.prototype._warn=function(){this._logger("warn",_.RE.apply(0,arguments))};
D.prototype._error=function(){this._logger("error",_.RE.apply(0,arguments))};
D.prototype._logf=function(V){return["[%s::%s]",this.is,V].concat(_.A6(_.RE.apply(1,arguments)))};
_.ql.Object.defineProperties(D.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var V=(0,_.Uh)(this).getRootNode();return V instanceof DocumentFragment?V.host:V}}});
_.ql.Object.defineProperties(D,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return jfm&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],s63(this.prototype)),this.__observedAttributes):H.call(this).concat("disable-upgrade")}}});
D.prototype.is="";return D});Polymer.FlattenedNodesObserver=cGn;Polymer.DomApi=ogv;Polymer.EventApi=fU;Polymer.dom=_.Xu;Polymer.dom.matchesSelector=i_4;Polymer.dom.flush=_.ML;Polymer.dom.addDebouncer=_.Pb;Polymer.DirMixin=Mon;Polymer.RenderStatus={beforeNextRender:_.wrD,afterNextRender:_.Vi,flush:function(){for(;qBT.length||e7.length;)bJA(qBT),bJA(e7);H3=!1}};Polymer.LegacyElementMixin=_.lA;var dFV;dFV=CU._mutablePropertyChange;var xFa={properties:{mutableData:Boolean},_shouldPropertyChange:function(D,t,H){return dFV(this,D,t,H,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(D,t,H){return dFV(this,D,t,H,!0)}};
Polymer.OptionalMutableDataBehavior=xFa;var J_3={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},dAX={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},prV=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},dAX),Rd4=(0,_.lA)(HTMLElement),JDV=function(D,t){D||console.warn("Polymer.Class requires `info` argument");t=t?t(Rd4):Rd4;t=xAT(D,t,D.behaviors);t.is=t.prototype.is=
D.is;return t};Polymer.Class=JDV;Polymer.mixinBehaviors=function(D,t){return xAT({},(0,_.lA)(t),D)};
Polymer.GenerateClassFromInfo=xAT;_.gx=function(D){var t=typeof D==="function"?D:_.gx.Class(D);D._legacyForceObservedAttributes&&(t.prototype._legacyForceObservedAttributes=D._legacyForceObservedAttributes);customElements.define(t.is,t);return t};
_.gx.Class=JDV;Polymer._polymerFn=_.gx;var uOv=window.onLegacyPolymerFunctionDefinedCallback;uOv&&uOv();var lr3={templatize:function(D,t){this._templatizerTemplate=D;this.ctor=IC(D,this,{mutableData:!!t,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(D){return new this.ctor(D)},
modelForElement:function(D){return DAV(this._templatizerTemplate,D)}};Polymer.Templatizer=lr3;_.vb=(0,_.lA)(HTMLElement).prototype;Polymer.Base=_.vb;var ux$=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Fu=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.P(_.Fu,PolymerFakeBaseClass);var az=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.P(az,PolymerFakeBaseClass);var WbR=Symbol("Rd"),HrA=[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 WPB=WPB||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},I29;(function(D){function t(u,R,I){var tT=Q.get(u);if(!tT){if(!I)return;tT=new J;Q.set(u,tT)}u=tT.get(R);if(!u){if(!I)return;u=new J;tT.set(R,u)}return u}
function H(u,R,I){if(e(u,R,I))return!0;R=T(R);return R!==null?H(u,R,I):!1}
function e(u,R,I){R=t(R,I,!1);return R===void 0?!1:!!R.has(u)}
function V(u,R,I){if(e(u,R,I))return b(u,R,I);R=T(R);if(R!==null)return V(u,R,I)}
function b(u,R,I){R=t(R,I,!1);if(R!==void 0)return R.get(u)}
function a(u,R){var I=w(u,R);u=T(u);if(u===null)return I;var tT=a(u,R);if(tT.length<=0)return I;if(I.length<=0)return tT;R=new g;u=[];I=_.F(I);for(var ZV=I.next();!ZV.done;ZV=I.next())ZV=ZV.value,R.has(ZV)||(R.add(ZV),u.push(ZV));I=_.F(tT);for(tT=I.next();!tT.done;tT=I.next())tT=tT.value,R.has(tT)||(R.add(tT),u.push(tT));return u}
function w(u,R){u=t(u,R,!1);var I=[];u&&u.forEach(function(tT,ZV){return I.push(ZV)});
return I}
function h(u){return u===void 0}
function K(u){return typeof u==="object"?u!==null:typeof u==="function"}
function N(u){return typeof u==="function"}
function k(u){return typeof u==="symbol"?u:String(u)}
function T(u){var R=Object.getPrototypeOf(u);if(typeof u!=="function"||u===L||R!==L)return R;var I=Object.getPrototypeOf(u.prototype);if(I==null||I===Object.prototype)return R;I=I.constructor;return typeof I!=="function"||I===u?R:I}
function c(){function u(){this._keys=[];this._values=[];this._cache=R}
var R={};u.prototype={get size(){return this._keys.length},has:function(I){return I===this._cache?!0:this._find(I)>=0?(this._cache=I,!0):!1},
get:function(I){var tT=this._find(I);if(tT>=0)return this._cache=I,this._values[tT]},
set:function(I,tT){this.delete(I);this._keys.push(I);this._values.push(tT);this._cache=I;return this},
delete:function(I){I=this._find(I);return I>=0?(this._keys.splice(I,1),this._values.splice(I,1),this._cache=R,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=R},
forEach:function(I){for(var tT=this.size,ZV=0;ZV<tT;++ZV){var ED=this._keys[ZV],o$=this._values[ZV];this._cache=ED;I.call(this,o$,ED,this)}},
_find:function(I){for(var tT=this._keys,ZV=tT.length,ED=0;ED<ZV;++ED)if(tT[ED]===I)return ED;return-1}};
return u}
function U(){function u(){this._map=new J}
u.prototype={get size(){return this._map.length},has:function(R){return this._map.has(R)},
add:function(R){this._map.set(R,R);return this},
delete:function(R){return this._map.delete(R)},
clear:function(){this._map.clear()},
forEach:function(R,I){this._map.forEach(R,I)}};
return u}
function S(){function u(){this._key=I()}
function R(i8,g6){for(var Mu=0;Mu<g6;++Mu)i8[Mu]=Math.random()*255|0}
function I(){do{if(ZV)var i8=ZV.randomBytes(16);else typeof Uint8Array==="function"?(i8=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(i8):R(i8,16)):(i8=Array(16),R(i8,16));i8[6]=i8[6]&79|64;i8[8]=i8[8]&191|128;for(var g6="",Mu=0;Mu<16;++Mu){var LQ=i8[Mu];if(Mu===4||Mu===6||Mu===8)g6+="-";LQ<16&&(g6+="0");g6+=LQ.toString(16).toLowerCase()}i8="@@WeakMap@@"+g6}while(ED.call(o$,i8));o$[i8]=!0;return i8}
function tT(i8,g6){if(!ED.call(i8,jV)){if(!g6)return;Object.defineProperty(i8,jV,{value:Object.create(null)})}return i8[jV]}
var ZV=typeof global!=="undefined"&&typeof WPB==="object"&&typeof require==="function"&&require("crypto"),ED=Object.prototype.hasOwnProperty,o$={},jV=I();u.prototype={has:function(i8){return(i8=tT(i8,!1))?this._key in i8:!1},
get:function(i8){if(i8=tT(i8,!1))return i8[this._key]},
set:function(i8,g6){tT(i8,!0)[this._key]=g6;return this},
delete:function(i8){return(i8=tT(i8,!1))&&this._key in i8?delete i8[this._key]:!1},
clear:function(){this._key=I()}};
return u}
var L=Object.getPrototypeOf(Function),J=typeof Map==="function"?Map:c(),g=typeof Set==="function"?Set:U(),Q=new (typeof WeakMap==="function"?WeakMap:S());D.decorate=function(u,R,I,tT){if(h(tT)){if(h(I)){if(!Array.isArray(u))throw new TypeError;if(!N(R))throw new TypeError;for(I=u.length-1;I>=0;--I)if(tT=(0,u[I])(R),!h(tT)){if(!N(tT))throw new TypeError;R=tT}return R}if(!Array.isArray(u))throw new TypeError;if(!K(R))throw new TypeError;I=k(I);for(tT=u.length-1;tT>=0;--tT)(0,u[tT])(R,I)}else{if(Array.isArray(u))if(K(R)){if(h(I))throw new TypeError;
if(!K(tT))throw new TypeError;}else throw new TypeError;else throw new TypeError;I=k(I);for(var ZV=u.length-1;ZV>=0;--ZV){var ED=(0,u[ZV])(R,I,tT);if(!h(ED)){if(!K(ED))throw new TypeError;tT=ED}}return tT}};
D.metadata=function(u,R){return function(I,tT){if(h(tT)){if(!N(I))throw new TypeError;t(I,void 0,!0).set(u,R)}else{if(!K(I))throw new TypeError;tT=k(tT);t(I,tT,!0).set(u,R)}}};
D.defineMetadata=function(u,R){var I;if(K(R))h(I)||(I=k(I));else throw new TypeError;t(R,I,!0).set("parameters",u)};
D.hasMetadata=function(u,R,I){if(K(R))h(I)||(I=k(I));else throw new TypeError;return H(u,R,I)};
D.hasOwnMetadata=function(u,R,I){if(K(R))h(I)||(I=k(I));else throw new TypeError;return e(u,R,I)};
D.getMetadata=function(u,R,I){if(K(R))h(I)||(I=k(I));else throw new TypeError;return V(u,R,I)};
D.getOwnMetadata=function(u,R,I){if(K(R))h(I)||(I=k(I));else throw new TypeError;return b(u,R,I)};
D.getMetadataKeys=function(u,R){if(K(u))h(R)||(R=k(R));else throw new TypeError;return a(u,R)};
D.getOwnMetadataKeys=function(u,R){if(K(u))h(R)||(R=k(R));else throw new TypeError;return w(u,R)};
D.deleteMetadata=function(u,R,I){if(K(R))h(I)||(I=k(I));else throw new TypeError;var tT=t(R,I,!1);if(!h(tT)){if(!tT.delete(u))return!1;if(tT.size>0)return!0;u=Q.get(R);u.delete(I);if(u.size>0)return!0;Q.delete(R);return!0}};
(function(u){if(typeof u.Reflect!=="undefined"){if(u.Reflect!==D)for(var R in D)u.Reflect[R]=D[R]}else u.Reflect=D})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(I29||(I29={}));var O8R=self;var Qhm=[0,_.Dy,_.eB,_.Dy];var yGB=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(yGB,_.ww);var Bnv=_.cU(yGB,[0,_.Xd3,_.qA,Qhm,_.eB,_.aS]);_.Zj(_.wZ,_.mg);_.q=_.wZ.prototype;_.q.start=function(){this.stop();this.usingListeners_=!1;var D=zdf(this),t=Dy3(this);D&&!t&&this.JSC$11318_win_.mozRequestAnimationFrame?(this.JSC$11318_id_=_.fz(this.JSC$11318_win_,"MozBeforePaint",this.callback_),this.JSC$11318_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11318_id_=D&&t?D.call(this.JSC$11318_win_,this.callback_):this.JSC$11318_win_.setTimeout(u6n(this.callback_),20)};
_.q.stop=function(){if(this.isActive()){var D=zdf(this),t=Dy3(this);D&&!t&&this.JSC$11318_win_.mozRequestAnimationFrame?MT(this.JSC$11318_id_):D&&t?t.call(this.JSC$11318_win_,this.JSC$11318_id_):this.JSC$11318_win_.clearTimeout(this.JSC$11318_id_)}this.JSC$11318_id_=null};
_.q.fire=function(){this.stop();this.JSC$11320_doAction_()};
_.q.isActive=function(){return this.JSC$11318_id_!=null};
_.q.JSC$11320_doAction_=function(){this.usingListeners_&&this.JSC$11318_id_&&MT(this.JSC$11318_id_);this.JSC$11318_id_=null;this.JSC$11318_listener_.call(this.handler_,_.wU())};
_.q.disposeInternal=function(){this.stop();_.wZ.superClass_.disposeInternal.call(this)};
var zdf=function(D){D=D.JSC$11318_win_;return D.requestAnimationFrame||D.webkitRequestAnimationFrame||D.mozRequestAnimationFrame||D.oRequestAnimationFrame||D.msRequestAnimationFrame||null},Dy3=function(D){D=D.JSC$11318_win_;
return D.cancelAnimationFrame||D.cancelRequestAnimationFrame||D.webkitCancelRequestAnimationFrame||D.mozCancelRequestAnimationFrame||D.oCancelRequestAnimationFrame||D.msCancelRequestAnimationFrame||null};_.W5=function(D,t,H){_.mg.call(this);this.JSC$11321_listener_=H!=null?D.bind(H):D;this.JSC$11321_interval_=t;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11321_timer_=null};
_.P(_.W5,_.mg);_.q=_.W5.prototype;_.q.fire=function(D){this.args_=arguments;this.JSC$11321_timer_||this.pauseCount_?this.shouldFire_=!0:tZn(this)};
_.q.stop=function(){this.JSC$11321_timer_&&(_.VA.clearTimeout(this.JSC$11321_timer_),this.JSC$11321_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.q.pause=function(){this.pauseCount_++};
_.q.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11321_timer_||(this.shouldFire_=!1,tZn(this))};
_.q.disposeInternal=function(){_.mg.prototype.disposeInternal.call(this);this.stop()};
var tZn=function(D){D.JSC$11321_timer_=d8(function(){D.JSC$11321_timer_=null;D.shouldFire_&&!D.pauseCount_&&(D.shouldFire_=!1,tZn(D))},D.JSC$11321_interval_);
var t=D.args_;D.args_=null;D.JSC$11321_listener_.apply(null,t)};var Hg9=function(D,t){this.childIterator_=D[_.VA.Symbol.iterator]();this.mapFn_=t};
Hg9.prototype[Symbol.iterator]=function(){return this};
Hg9.prototype.next=function(){var D=this.childIterator_.next();return{value:D.done?void 0:this.mapFn_.call(void 0,D.value),done:D.done}};
var elV=function(D,t){return new Hg9(D,t)};var VZ3={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 Hk$=function(D){var t=bgw(D);if(!t)throw Error("Vd`"+D);return t},bgw=function(D){var t={};
D=String(D);var H=D.charAt(0)=="#"?D:"#"+D;if(qsf.test(H))return t.hex=Q2T(H),t.type="hex",t;H=qJ3(D);return H.length?(t.hex=vDV(H[0],H[1],H[2]),t.type="rgb",t):VZ3&&(D=VZ3[D.toLowerCase()])?(t.hex=D,t.type="named",t):null},Fxf=/#(.)(.)(.)/,Q2T=function(D){if(!qsf.test(D))throw Error("Xd`"+D);
D.length==4&&(D=D.replace(Fxf,"#$1$1$2$2$3$3"));return D.toLowerCase()},ecA=function(D){D=Q2T(D);
D=parseInt(D.slice(1),16);return[D>>16,D>>8&255,D&255]},vDV=function(D,t,H){D=Number(D);
t=Number(t);H=Number(H);if(D!=(D&255)||t!=(t&255)||H!=(H&255))throw Error("Yd`"+D+"`"+t+"`"+H);t=D<<16|t<<8|H;return D<16?"#"+(16777216|t).toString(16).slice(1):"#"+t.toString(16)},qsf=/^#(?:[0-9a-f]{3}){1,2}$/i,a9o=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,qJ3=function(D){var t=D.match(a9o);
if(t){D=Number(t[1]);var H=Number(t[2]);t=Number(t[3]);if(D>=0&&D<=255&&H>=0&&H<=255&&t>=0&&t<=255)return[D,H,t]}return[]};var wTa={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},cm=wTa;cm=wTa;var YM8,Zgn,s5f;YM8=function(D,t){switch(t){case 1:return D%4!=0||D%100==0&&D%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
Zgn=function(D,t,H,e,V){D=new Date(D,t,H);V=V||0;return D.valueOf()+(((e!==void 0?e:3)-V+7)%7-((D.getDay()+6)%7-V+7)%7)*864E5};
_.pU=function(D,t,H){typeof D==="number"?(this.date=s5f(D,t||0,H||1),hl3(this,H||1)):_.Wk(D)?(this.date=s5f(D.getFullYear(),D.getMonth(),D.getDate()),hl3(this,D.getDate())):(this.date=new Date(_.wU()),D=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),hl3(this,D))};
s5f=function(D,t,H){t=new Date(D,t,H);D>=0&&D<100&&t.setFullYear(t.getFullYear()-1900);return t};
_.q=_.pU.prototype;_.q.firstDayOfWeek_=cm.FIRSTDAYOFWEEK;_.q.firstWeekCutOffDay_=cm.FIRSTWEEKCUTOFFDAY;_.q.clone=function(){var D=new _.pU(this.date);D.firstDayOfWeek_=this.firstDayOfWeek_;D.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return D};
_.q.getFullYear=function(){return this.date.getFullYear()};
_.q.getYear=function(){return this.getFullYear()};
_.q.getMonth=function(){return this.date.getMonth()};
_.q.getDate=function(){return this.date.getDate()};
_.q.getTime=function(){return this.date.getTime()};
_.q.getDay=function(){return this.date.getDay()};
_.q.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.q.getUTCMonth=function(){return this.date.getUTCMonth()};
_.q.getUTCDate=function(){return this.date.getUTCDate()};
_.q.getUTCDay=function(){return this.date.getDay()};
_.q.getUTCHours=function(){return this.date.getUTCHours()};
_.q.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.q.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.q.set=function(D){this.date=new Date(D.getFullYear(),D.getMonth(),D.getDate())};
_.q.setFullYear=function(D){this.date.setFullYear(D)};
_.q.setYear=function(D){this.setFullYear(D)};
_.q.setMonth=function(D){this.date.setMonth(D)};
_.q.setDate=function(D){this.date.setDate(D)};
_.q.setTime=function(D){this.date.setTime(D)};
_.q.setUTCFullYear=function(D){this.date.setUTCFullYear(D)};
_.q.setUTCMonth=function(D){this.date.setUTCMonth(D)};
_.q.setUTCDate=function(D){this.date.setUTCDate(D)};
_.q.add=function(D){if(D.years||D.months){var t=this.getMonth()+D.months+D.years*12,H=this.getYear()+Math.floor(t/12);t%=12;t<0&&(t+=12);var e=Math.min(YM8(H,t),this.getDate());this.setDate(1);this.setFullYear(H);this.setMonth(t);this.setDate(e)}D.days&&(H=this.getYear(),t=H>=0&&H<=99?-1900:0,D=new Date((new Date(H,this.getMonth(),this.getDate(),12)).getTime()+D.days*864E5),this.setDate(1),this.setFullYear(D.getFullYear()+t),this.setMonth(D.getMonth()),this.setDate(D.getDate()),hl3(this,D.getDate()))};
_.q.JSC$11334_toIsoString=function(D){var t=this.getFullYear(),H=t<0?"-":t>=1E4?"+":"";return[H+_.kB(Math.abs(t),H?6:4),_.kB(this.getMonth()+1,2),_.kB(this.getDate(),2)].join(D?"-":"")};
_.q.equals=function(D){return!(!D||this.getYear()!=D.getYear()||this.getMonth()!=D.getMonth()||this.getDate()!=D.getDate())};
_.q.toString=function(){return this.JSC$11334_toIsoString()};
var hl3=function(D,t){D.getDate()!=t&&D.date.setUTCHours(D.date.getUTCHours()+(D.getDate()<t?1:-1))};
_.pU.prototype.valueOf=function(){return this.date.valueOf()};var xZ=function(D,t,H,e,V){this.reversed=!!t;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!H;D&&dI(this,D,e);this.depth=V!=void 0?V:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Zj(xZ,rK);var dI=function(D,t,H,e){if(D.node=t)D.tagType=typeof H==="number"?H:D.node.nodeType!=1?0:D.reversed?-1:1;typeof e==="number"&&(D.depth=e)};
_.q=xZ.prototype;_.q.JSC$11349_copyFrom=function(D){this.node=D.node;this.tagType=D.tagType;this.depth=D.depth;this.reversed=D.reversed;this.constrained=D.constrained};
_.q.clone=function(){return new xZ(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.q.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return Oy;var D=this.node;var t=this.reversed?-1:1;if(this.tagType==t){var H=this.reversed?D.lastChild:D.firstChild;H?dI(this,H):dI(this,D,t*-1)}else(H=this.reversed?D.previousSibling:D.nextSibling)?dI(this,H):dI(this,D.parentNode,t*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(D=this.node)?Uy(D):Oy};
_.q.equals=function(D){return D.node==this.node&&(!this.node||D.tagType==this.tagType)};
_.q.splice=function(D){var t=this.node,H=this.reversed?1:-1;this.tagType==H&&(this.tagType=H*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;xZ.prototype.next.call(this);this.reversed=!this.reversed;H=_.d6(arguments[0])?arguments[0]:arguments;for(var e=H.length-1;e>=0;e--)_.Wr(H[e],t);_.UH(t)};var G1n=function(){},Rc=function(D){for(var t=[],H=D.getTextRangeCount(),e=0;e<H;e++)t.push(D.getTextRange(e));
return t};
G1n.prototype.isReversed=function(){return!1};
G1n.prototype.getWindow=function(){return v_(_.pW(this.JSC$11351_getStartNode()))};
var EL6=function(D,t){xZ.call(this,D,t,!0)};
_.Zj(EL6,xZ);var uA=function(D,t,H,e,V){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!V;if(D){this.startNode_=D;this.startOffset_=t;this.endNode_=H;this.endOffset_=e;if(D.nodeType==1&&D.tagName!="BR")if(D=D.childNodes,t=D[t])this.startNode_=t,this.startOffset_=0;else{D.length&&(this.startNode_=_.fK(D));var b=!0}H.nodeType==1&&((this.endNode_=H.childNodes[e])?this.endOffset_=0:this.endNode_=H)}xZ.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);b&&this.next()};
_.Zj(uA,EL6);_.q=uA.prototype;_.q.JSC$11357_getStartNode=function(){return this.startNode_};
_.q.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)};
_.q.next=function(){return this.isLast()?Oy:uA.superClass_.next.call(this)};
_.q.JSC$11349_copyFrom=function(D){this.startNode_=D.startNode_;this.endNode_=D.endNode_;this.startOffset_=D.startOffset_;this.endOffset_=D.endOffset_;this.isReversed_=D.isReversed_;uA.superClass_.JSC$11349_copyFrom.call(this,D)};
_.q.clone=function(){var D=new uA(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);D.JSC$11349_copyFrom(this);return D};var Kxf=function(){};
Kxf.prototype.__iterator__=function(){return new uA(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Wb=function(D){this.range_=D};
_.Zj(Wb,Kxf);var Nxa=function(D){var t=_.pW(D).createRange();if(D.nodeType==3)t.setStart(D,0),t.setEnd(D,D.length);else if(xB(D)||D.nodeType==3){for(var H,e=D;(H=e.firstChild)&&(xB(H)||H.nodeType==3);)e=H;t.setStart(e,0);for(e=D;(H=e.lastChild)&&(xB(H)||H.nodeType==3);)e=H;t.setEnd(e,e.nodeType==1?e.childNodes.length:e.length)}else H=D.parentNode,D=Array.prototype.indexOf.call(H.childNodes,D),t.setStart(H,D),t.setEnd(H,D+1);return t},k13=function(D,t,H,e){var V=_.pW(D).createRange();
V.setStart(D,t);V.setEnd(H,e);return V};
_.q=Wb.prototype;_.q.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.q.getContainer=function(){return this.range_.commonAncestorContainer};
_.q.compareBrowserRangeEndpoints=function(D,t,H){return this.range_.compareBoundaryPoints(H==1?t==1?_.VA.Range.START_TO_START:_.VA.Range.START_TO_END:t==1?_.VA.Range.END_TO_START:_.VA.Range.END_TO_END,D)};
_.q.isCollapsed=function(){return this.range_.collapsed};
_.q.select=function(D){this.selectInternal(v_(_.pW(this.range_.startContainer)).getSelection(),D)};
_.q.selectInternal=function(D){D.removeAllRanges();D.addRange(this.range_)};
_.q.insertNode=function(D,t){var H=this.range_.cloneRange();H.collapse(t);H.insertNode(D);H.detach();return D};
_.q.collapse=function(D){this.range_.collapse(D)};_.Zj(Zs,Wb);Zs.prototype.selectInternal=function(D,t){!t||this.isCollapsed()?Zs.superClass_.selectInternal.call(this,D,t):(D.collapse(this.range_.endContainer,this.range_.endOffset),D.extend(this.range_.startContainer,this.range_.startOffset))};_.Zj(sW,Wb);sW.prototype.compareBrowserRangeEndpoints=function(D,t,H){return sW.superClass_.compareBrowserRangeEndpoints.call(this,D,t,H)};
sW.prototype.selectInternal=function(D,t){t?D.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):D.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var TxQ=function(D){return _.NG?new sW(D):_.Ka?new Zs(D):new Wb(D)};var Ic=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},ch3;
_.Zj(Ic,G1n);ch3=function(D,t){var H=new Ic;H.browserRangeWrapper_=D;H.isReversed_=!!t;return H};
_.j5w=function(D){D=_.NG?new sW(Nxa(D)):_.Ka?new Zs(Nxa(D)):new Wb(Nxa(D));return ch3(D)};
_.QO=function(D,t,H,e){var V=new Ic;V.isReversed_=$yn(D,t,H,e);if(_.H$(D)&&!xB(D)){var b=D.parentNode;t=Array.prototype.indexOf.call(b.childNodes,D);D=b}_.H$(H)&&!xB(H)&&(b=H.parentNode,e=Array.prototype.indexOf.call(b.childNodes,H),H=b);V.isReversed_?(V.startNode_=H,V.startOffset_=e,V.endNode_=D,V.endOffset_=t):(V.startNode_=D,V.startOffset_=t,V.endNode_=H,V.endOffset_=e);return V};
_.q=Ic.prototype;_.q.clone=function(){var D=new Ic;D.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();D.startNode_=this.startNode_;D.startOffset_=this.startOffset_;D.endNode_=this.endNode_;D.endOffset_=this.endOffset_;D.isReversed_=this.isReversed_;return D};
_.q.JSC$11351_getType=function(){return"text"};
_.q.getBrowserRangeObject=function(){return yO(this).range_};
_.q.getTextRangeCount=function(){return 1};
_.q.getTextRange=function(){return this};
var yO=function(D){var t;if(!(t=D.browserRangeWrapper_)){t=D.JSC$11351_getStartNode();var H=D.JSC$11351_getStartOffset(),e=D.JSC$11351_getEndNode(),V=D.JSC$11351_getEndOffset();t=_.NG?new sW(k13(t,H,e,V)):_.Ka?new Zs(k13(t,H,e,V)):new Wb(k13(t,H,e,V));t=D.browserRangeWrapper_=t}return t};
_.q=Ic.prototype;_.q.getContainer=function(){return yO(this).getContainer()};
_.q.JSC$11351_getStartNode=function(){return this.startNode_||(this.startNode_=yO(this).range_.startContainer)};
_.q.JSC$11351_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=yO(this).range_.startOffset};
_.q.JSC$11351_getEndNode=function(){return this.endNode_||(this.endNode_=yO(this).range_.endContainer)};
_.q.JSC$11351_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=yO(this).range_.endOffset};
_.q.isReversed=function(){return this.isReversed_};
_.q.JSC$11351_containsRange=function(D,t){if(D.JSC$11351_getType()=="text"){var H=yO(this);D=yO(D);t=t&&!D.isCollapsed();D=D.range_;H=t?H.compareBrowserRangeEndpoints(D,0,1)>=0&&H.compareBrowserRangeEndpoints(D,1,0)<=0:H.compareBrowserRangeEndpoints(D,0,0)>=0&&H.compareBrowserRangeEndpoints(D,1,1)<=0}else H=!1;return H};
_.q.isCollapsed=function(){return yO(this).isCollapsed()};
_.q.JSC$11351_getText=function(){return yO(this).range_.toString()};
_.q.__iterator__=function(){return new uA(this.JSC$11351_getStartNode(),this.JSC$11351_getStartOffset(),this.JSC$11351_getEndNode(),this.JSC$11351_getEndOffset())};
_.q.select=function(){yO(this).select(this.isReversed_)};
_.q.JSC$11351_removeContents=function(){var D=yO(this).range_;D.extractContents();if(D.startContainer.hasChildNodes()&&(D=D.startContainer.childNodes[D.startOffset])){var t=D.previousSibling;ptv(D)==""&&_.UH(D);t&&ptv(t)==""&&_.UH(t)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.q.insertNode=function(D,t){D=yO(this).insertNode(D,t);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return D};
_.q.collapse=function(D){D=this.isReversed()?!D:D;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(D);D?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var igQ=function(){};
_.Zj(igQ,G1n);igQ.prototype.JSC$11351_containsRange=function(D,t){var H=Rc(this);D=Rc(D);return(t?zr:_.ppD)(D,function(e){return zr(H,function(V){return V.JSC$11351_containsRange(e,t)})})};
igQ.prototype.insertNode=function(D,t){t?_.ut(D,this.JSC$11351_getStartNode()):_.Wr(D,this.JSC$11351_getEndNode());return D};var rhn,Ogv=mJ().JSC$9330_document_.documentElement;rhn=Ogv.requestFullscreen?"fullscreenchange":Ogv.webkitRequestFullscreen?"webkitfullscreenchange":Ogv.mozRequestFullScreen?"mozfullscreenchange":Ogv.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var Uy4=function(){var D=mJ().JSC$9330_document_;return!!(D.webkitIsFullScreen||D.mozFullScreen||D.msFullscreenElement||D.fullscreenElement)};var Bb=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Zj(Bb,igQ);_.q=Bb.prototype;_.q.clone=function(){var D=new Bb;D.browserRanges_=_.pK(this.browserRanges_);return D};
_.q.JSC$11351_getType=function(){return"mutli"};
_.q.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.q.getTextRangeCount=function(){return this.browserRanges_.length};
_.q.getTextRange=function(D){this.ranges_[D]||(this.ranges_[D]=ch3(TxQ(this.browserRanges_[D])));return this.ranges_[D]};
_.q.getContainer=function(){if(!this.container_){for(var D=[],t=this.getTextRangeCount(),H=0;H<t;H++)D.push(this.getTextRange(H).getContainer());this.container_=Lif.apply(null,D)}return this.container_};
var zd=function(D){D.sortedRanges_||(D.sortedRanges_=Rc(D),D.sortedRanges_.sort(function(t,H){var e=t.JSC$11351_getStartNode();t=t.JSC$11351_getStartOffset();var V=H.JSC$11351_getStartNode();H=H.JSC$11351_getStartOffset();return e==V&&t==H?0:$yn(e,t,V,H)?1:-1}));
return D.sortedRanges_};
_.q=Bb.prototype;_.q.JSC$11351_getStartNode=function(){return zd(this)[0].JSC$11351_getStartNode()};
_.q.JSC$11351_getStartOffset=function(){return zd(this)[0].JSC$11351_getStartOffset()};
_.q.JSC$11351_getEndNode=function(){return _.fK(zd(this)).JSC$11351_getEndNode()};
_.q.JSC$11351_getEndOffset=function(){return _.fK(zd(this)).JSC$11351_getEndOffset()};
_.q.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.q.JSC$11351_getText=function(){return Rc(this).map(function(D){return D.JSC$11351_getText()}).join("")};
_.q.__iterator__=function(){return new Du(this)};
_.q.select=function(){var D=this.getWindow().getSelection();D.removeAllRanges();for(var t=this.getTextRangeCount(),H=0;H<t;H++)D.addRange(this.getTextRange(H).getBrowserRangeObject())};
_.q.JSC$11351_removeContents=function(){Rc(this).forEach(function(D){D.JSC$11351_removeContents()})};
_.q.collapse=function(D){if(!this.isCollapsed()){var t=D?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;t.collapse(D);this.ranges_=[t];this.sortedRanges_=[t];this.browserRanges_=[t.getBrowserRangeObject()]}};
var Du=function(D){this.iterators_=null;this.currentIdx_=0;D&&(this.iterators_=zd(D).map(function(t){return _.go6(t)}));
xZ.call(this,D?this.JSC$11357_getStartNode():null,!1,!0)};
_.Zj(Du,EL6);_.q=Du.prototype;_.q.JSC$11357_getStartNode=function(){return this.iterators_[0].JSC$11357_getStartNode()};
_.q.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.q.next=function(){for(;this.currentIdx_<this.iterators_.length;){var D=this.iterators_[this.currentIdx_],t=D.next();if(t.done)this.currentIdx_++;else return dI(this,D.node,D.tagType,D.depth),t}return Oy};
_.q.JSC$11349_copyFrom=function(D){this.iterators_=_.pK(D.iterators_);Du.superClass_.JSC$11349_copyFrom.call(this,D)};
_.q.clone=function(){var D=new Du(null);D.JSC$11349_copyFrom(this);return D};var oLB,$yn;_.EE=function(){var D=window.getSelection();return D&&oLB(D)};
oLB=function(D){var t=!1;if(D.createRange)try{var H=D.createRange()}catch(V){return null}else if(D.rangeCount){if(D.rangeCount>1){H=new Bb;t=D.rangeCount;for(var e=0;e<t;e++)H.browserRanges_.push(D.getRangeAt(e));return H}H=D.getRangeAt(0);t=$yn(D.anchorNode,D.anchorOffset,D.focusNode,D.focusOffset)}else return null;return ch3(TxQ(H),t)};
_.t7=function(D,t){return _.QO(D,t,D,t)};
_.HO=function(D,t,H,e){return _.QO(D,t,H,e)};
$yn=function(D,t,H,e){if(D==H)return e<t;var V;if(D.nodeType==1&&t)if(V=D.childNodes[t])D=V,t=0;else if(_.RK(D,H))return!0;if(H.nodeType==1&&e)if(V=H.childNodes[e])H=V,e=0;else if(_.RK(H,D))return!1;return(fOv(D,H)||t-e)>0};var en=function(){_.J2.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Mc)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Mc)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Mc)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Mc)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Mc)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Mc)(this.dispatchProgressEvent_,this)};
_.Zj(en,_.J2);en.prototype.abort=function(){try{this.reader_.abort()}catch(D){throw new p$f(D,"aborting read");}};
en.prototype.getError=function(){return this.reader_.error&&new p$f(this.reader_.error,"reading file")};
en.prototype.dispatchProgressEvent_=function(D){this.dispatchEvent(new dz3(D,this))};
en.prototype.disposeInternal=function(){en.superClass_.disposeInternal.call(this);delete this.reader_};
var nL3=function(D){var t=new en,H=PKv(t);t.reader_.readAsArrayBuffer(D);return H},CKf=function(D){var t=new en,H=PKv(t);
t.reader_.readAsDataURL(D);return H},PKv=function(D){var t=new aI;
D.listen("loadend",_.o4(function(H,e){var V=e.reader_.result,b=e.getError();V==null||b?H.errback(b):H.callback(V);e.dispose()},t,D));
return t};var VI=function(){_.J2.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11391_eventHandler_=new _.GA(this);this.JSC$11391_isInitialized_=!1};
_.Zj(VI,_.J2);var myn=new _.Sx("d"),MZf=new _.Sx("beforedragstart"),Ss9=new _.Sx("dragstart"),XTv=new _.Sx("beforedragmove"),f93=new _.Sx("dragmove"),Lxw=new _.Sx("beforedragend"),AhV=new _.Sx("dragend"),gL9=new _.Sx("e");VI.prototype.isDragging=function(){return!!this.JSC$11391_dragger_};
var Jho=function(D,t){t.dlgGrowthDirection_=0;t.dlgDragHoverClass_=void 0;t.dlgDragPermission=0;D.dragLists_.push(t)},Ysn=function(D,t){D.getHandleForDragItem_=t};
VI.prototype.init=function(){if(!this.JSC$11391_isInitialized_){for(var D=this.dragLists_.length,t=0;t<D;t++)for(var H=_.IS(this.dragLists_[t]),e=H.length,V=0;V<e;++V){var b=H[V],a=this.getHandleForDragItem_(b),w=_.I$(a);this.dragItemForHandle_[w]=b;this.dragItemHoverClasses_&&(this.JSC$11391_eventHandler_.listen(b,"mouseover",this.handleDragItemMouseover_),this.JSC$11391_eventHandler_.listen(b,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11391_eventHandler_.listen(a,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11391_eventHandler_.listen(a,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(b);this.JSC$11391_eventHandler_.listen(a,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11391_isInitialized_=!0}};
VI.prototype.disposeInternal=function(){this.JSC$11391_eventHandler_.dispose();for(var D=this.dragLists_.length,t=0;t<D;t++){var H=this.dragLists_[t];H.dlgGrowthDirection_=void 0;H.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;l9w(this);VI.superClass_.disposeInternal.call(this)};
var vLn=function(D,t){for(var H=D.dragLists_.length,e=0;e<H;e++){var V=D.dragLists_[e];V.dlgBounds_=wlR(V)}H=D.dragItems_.length;for(e=0;e<H;e++)V=D.dragItems_[e],V!=t&&(V.dlgBounds_=wlR(V))};
_.q=VI.prototype;
_.q.handlePotentialDragStart_=function(D){var t=_.I$(D.currentTarget);t=this.dragItemForHandle_[t];if(t.parentElement.dlgDragPermission!=2){this.currDragItem_=t;a:{t=this.currDragItem_;for(var H=t.cloneNode(!0),e=oK("TEXTAREA",t),V=oK("TEXTAREA",H),b=0;b<e.length;b++)V[b].value=e[b].value;switch(t.tagName){case "TR":t=_.pJ("TABLE",null,_.pJ("TBODY",null,H));break a;case "TD":case "TH":t=_.pJ("TABLE",null,_.pJ("TBODY",null,_.pJ("TR",null,H)));break a;case "TEXTAREA":H.value=t.value;default:t=H;break a}t=
void 0}this.draggerEl_=t;this.draggerElClasses_&&qo(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.pW(this.currDragItem_).body.appendChild(this.draggerEl_);H=_.dM(this.currDragItem_);t=this.draggerEl_;e=_.dM(t);if(H instanceof _.lR){var a=H.y;H=H.x}DE(t,t.offsetLeft+(H-e.x),t.offsetTop+(Number(a)-e.y));this.JSC$11391_dragger_=new _.Dh(this.draggerEl_);_.vVv(this.JSC$11391_dragger_,this.hysteresisDistance_);
_.fz(this.JSC$11391_dragger_,"start",this.handleDragStart_,!1,this);_.fz(this.JSC$11391_dragger_,"end",this.handleDragEnd_,!1,this);_.fz(this.JSC$11391_dragger_,"earlycancel",this.JSC$11393_cleanup_,!1,this);this.dispatchEvent(new b9(myn,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_));this.JSC$11391_dragger_.startDrag(D)}};
_.q.handleDragStart_=function(D){if(this.dispatchEvent(new b9(MZf,this,D.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.Mbf(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?qo(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var t=IOm(this.draggerEl_);this.draggerEl_.halfWidth=t.width/2;this.draggerEl_.halfHeight=t.height/2;t=this.draggerEl_.getBoundingClientRect();
var H=D.clientY,e=pef(this.JSC$11391_dragger_,D.clientX);if(e>t.right){var V=this.currDragItem_.getBoundingClientRect();this.JSC$11391_dragger_.deltaX=e-(e-V.left)/V.width*t.width}H=dOV(this.JSC$11391_dragger_,H);H>t.bottom&&(this.JSC$11391_dragger_.deltaY+=H-t.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";vLn(this,this.currDragItem_);this.currDragItem_.style.display="";_.fz(this.JSC$11391_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new b9(Ss9,
this,D.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_))}else D.preventDefault(),this.JSC$11393_cleanup_()};
_.q.handleDragMove_=function(D){var t=_.dM(this.draggerEl_);t=new _.lR(t.x+this.draggerEl_.halfWidth,t.y+this.draggerEl_.halfHeight);a:{var H=null;if(this.currDragItem_.style.display!="none"){H=this.currDragItem_.parentNode;var e=wlR(H);if(pT6(t,e))break a}e=this.dragLists_.length;for(var V=0;V<e;V++){var b=this.dragLists_[V];if(b!=H&&pT6(t,b.dlgBounds_)){H=b;break a}}H=null}if(H){if(H==null)throw Error("Zd");e=0;V=!1;b=void 0;switch(H.dlgGrowthDirection_){case 0:e=t.y;var a=dyw;var w=xyB;break;case 4:V=
!0;case 2:e=t.x;a=Rl3;w=xyB;break;case 5:V=!0;case 3:e=t.x,a=ud9,w=Wx6}for(var h=null,K,N=_.IS(H),k=N.length,T=0;T<k;T++){var c=N[T];if(c!=this.currDragItem_){var U=a(c.dlgBounds_);if(V){var S=I9v(c,t);b===void 0&&(b=S);w(e,U)&&(K==void 0||S<b||S==b&&(w(U,K)||U==K))&&(h=c,K=U);S<b&&(b=S)}else w(e,U)&&(K==void 0||w(U,K))&&(h=c,K=U)}}a=h!==null&&I9v(h,t)>b?null:h}else a=null;if(!this.dispatchEvent(new b9(XTv,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_,t,H,a)))return!1;if(H&&H.dlgDragPermission!=
1)this.currDragItem_.parentNode==H&&_.Mbf(this.currDragItem_)==a||H.insertBefore(this.currDragItem_,a),this.currDragItem_.style.display="",H.dlgDragHoverClass_&&_.qX(H,H.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",w=this.dragLists_.length,K=0;K<w;K++)e=this.dragLists_[K],e.dlgDragHoverClass_&&_.VL(e,e.dlgDragHoverClass_);H!=this.currHoverList_&&(this.currHoverList_=H,vLn(this,this.currDragItem_));this.dispatchEvent(new b9(f93,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_,
t,H,a));return!1};
_.q.JSC$11393_cleanup_=function(){l9w(this);this.JSC$11391_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var D=this.dragLists_.length,t=0;t<D;t++)this.dragLists_[t].dlgBounds_=null;D=this.dragItems_.length;for(t=0;t<D;t++)this.dragItems_[t].dlgBounds_=null};
_.q.handleDragEnd_=function(D){if(!this.dispatchEvent(new b9(Lxw,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_)))return!1;l9w(this);this.dispatchEvent(new b9(AhV,this,D,this.currDragItem_,this.draggerEl_,this.JSC$11391_dragger_));this.JSC$11393_cleanup_();return!0};
var l9w=function(D){_.qc(D.JSC$11391_dragger_);var t=D.draggerEl_&&D.draggerEl_.parentElement;D.draggerEl_&&_.UH(D.draggerEl_);D.currDragItem_&&D.currDragItem_.style.display=="none"&&(D.origList_.insertBefore(D.currDragItem_,D.origNextItem_),D.currDragItem_.style.display="");D.currDragItemClasses_&&D.currDragItem_?YPn(D.currDragItem_,D.currDragItemClasses_||[]):D.currDragItem_&&(D.currDragItem_.style.visibility="");for(var H=D.dragLists_.length,e=0;e<H;e++){var V=D.dragLists_[e];V.dlgDragHoverClass_&&
_.VL(V,V.dlgDragHoverClass_)}t&&D.dispatchEvent(new b9(gL9,D,null,D.currDragItem_,D.draggerEl_,D.JSC$11391_dragger_))};
_.q=VI.prototype;_.q.getHandleForDragItem_=function(D){return D};
_.q.handleDragItemMouseover_=function(D){qo(D.currentTarget,this.dragItemHoverClasses_||[])};
_.q.handleDragItemMouseout_=function(D){YPn(D.currentTarget,this.dragItemHoverClasses_||[])};
_.q.handleDragItemHandleMouseover_=function(D){qo(D.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.q.handleDragItemHandleMouseout_=function(D){YPn(D.currentTarget,this.dragItemHandleHoverClasses_||[])};
var pT6=function(D,t){return D.x>t.left&&D.x<t.left+t.width&&D.y>t.top&&D.y<t.top+t.height},I9v=function(D,t){D=D.dlgBounds_;
return Math.abs(t.y-(D.top+(D.height-1)/2))},dyw=function(D){return D.top+D.height-1},Rl3=function(D){return D.left+D.width-1},ud9=function(D){return D.left||0},xyB=function(D,t){return D<t},Wx6=function(D,t){return D>t},b9=function(D,t,H,e,V,b){_.Xv.call(this,D);
this.event=H;this.currDragItem=e;this.draggerEl=V;this.JSC$11395_dragger=b};
_.Zj(b9,_.Xv);_.Zj(EW,_.mg);var Q5o=new _.lR(0,0);EW.prototype.JSC$11399_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
EW.prototype.JSC$11399_onMouseMove=function(D){var t=this.containerIsActuallyContent_?Q5o:ot(mJ(this.containerNode_)),H=this.horizontalScrolling_?this.calculateScrollDelta(D.clientX+t.x,this.scrollBounds_.left,this.scrollBounds_.width):0,e=this.calculateScrollDelta(D.clientY+t.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=H;this.scrollDelta_.y=e;!(H=!H&&!e)&&(H=this.constrainScroll_)&&(H=D.clientX+t.x,D=D.clientY+t.y,t=this.containerBounds_,H=!(t.left<=H&&t.left+t.width>=
H&&t.top<=D&&t.top+t.height>=D));H?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
EW.prototype.calculateScrollDelta=function(D,t,H){var e=0;D<t?e=-8:D>t+H&&(e=8);return e};
EW.prototype.disposeInternal=function(){EW.superClass_.disposeInternal.call(this);this.JSC$11397_eventHandler_.dispose();this.scrollTimer_.dispose()};var yh3={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"}}},q4=yh3;q4=yh3;var Fg={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 Bxf=function(){},D2=function(D){if(typeof D=="number"){var t=new Bxf;
t.standardOffset_=D;var H=D;if(H==0)H="Etc/GMT";else{var e=["Etc/GMT",H<0?"-":"+"];H=Math.abs(H);e.push(Math.floor(H/60)%100);H%=60;H!=0&&e.push(":",_.kB(H,2));H=e.join("")}t.timeZoneId_=H;H=D;H==0?H="UTC":(e=["UTC",H<0?"+":"-"],H=Math.abs(H),e.push(Math.floor(H/60)%100),H%=60,H!=0&&e.push(":",H),H=e.join(""));D=zlo(D);t.tzNames_=[H,H];t.tzNamesExt_={STD_LONG_NAME_GMT:D,STD_GENERIC_LOCATION:D};t.transitions_=[];return t}t=new Bxf;t.timeZoneId_=D.id;t.standardOffset_=-D.std_offset;t.tzNames_=D.names;
t.tzNamesExt_=D.names_ext;t.transitions_=D.transitions;return t},zlo=function(D){var t=["GMT"];
t.push(D<=0?"+":"-");D=Math.abs(D);t.push(_.kB(Math.floor(D/60)%100,2),":",_.kB(D%60,2));return t.join("")},DTv=function(D,t){t=Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),t.getUTCHours(),t.getUTCMinutes())/36E5;
for(var H=0;H<D.transitions_.length&&t>=D.transitions_[H];)H+=2;return H==0?0:D.transitions_[H-1]},taB=function(D,t){D=D.standardOffset_-DTv(D,t);
return D===-1440?0:D};var tG=function(D,t){this.patternParts_=[];this.JSC$11410_dateTimeSymbols_=t||cm;typeof D=="number"?Hz3(this,D):eNQ(this,D)},Vaa=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],a0=function(D){return D.getHours?D.getHours():0},eNQ=function(D,t){for(aQD&&(t=t.replace(/\u200f/g,""));t;){for(var H=t,e=0;e<Vaa.length;++e){var V=t.match(Vaa[e]);
if(V){var b=V[0];t=t.substring(b.length);e==0&&(b=="''"?b="'":(b=b.substring(1,V[1]=="'"?b.length-1:b.length),b=b.replace(/''/g,"'")));D.patternParts_.push({text:b,type:e});break}}if(H===t)throw Error("$d`"+t);}};
tG.prototype.format=function(D,t){if(!D)throw Error("ae");var H=t?(D.getTimezoneOffset()-taB(t,D))*6E4:0,e=H?new Date(D.getTime()+H):D,V=e;t&&e.getTimezoneOffset()!=D.getTimezoneOffset()&&(e=new Date(e.getTime()+(e.getTimezoneOffset()-D.getTimezoneOffset())*6E4),V=new Date(D.getTime()+(H+(H>0?-864E5:864E5))));H=[];for(var b=0;b<this.patternParts_.length;++b){var a=this.patternParts_[b].text;1==this.patternParts_[b].type?H.push(bzQ(this,a,D,e,V,t)):H.push(a)}return H.join("")};
var Hz3=function(D,t){if(t<4)var H=D.JSC$11410_dateTimeSymbols_.DATEFORMATS[t];else if(t<8)H=D.JSC$11410_dateTimeSymbols_.TIMEFORMATS[t-4];else if(t<12)H=D.JSC$11410_dateTimeSymbols_.DATETIMEFORMATS[t-8],H=H.replace("{1}",D.JSC$11410_dateTimeSymbols_.DATEFORMATS[t-8]),H=H.replace("{0}",D.JSC$11410_dateTimeSymbols_.TIMEFORMATS[t-8]);else if(t===12)H=D.JSC$11410_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(t===13)H=D.JSC$11410_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{Hz3(D,10);return}eNQ(D,H)},wJ=function(D,t){t=String(t);
D=D.JSC$11410_dateTimeSymbols_||cm;if(D.ZERODIGIT!==void 0&&!FX3){for(var H=[],e=0;e<t.length;e++){var V=t.charCodeAt(e);H.push(48<=V&&V<=57?String.fromCharCode(D.ZERODIGIT+V-48):t.charAt(e))}t=H.join("")}return t},FX3=!1,aQD=!1,FVf=function(D,t,H,e){H=H.getFullYear();
H<=0&&e&&(H=1-H);return wJ(D,q_v(H,t))},q_v=function(D,t){t==2&&(D%=100);
D<0&&t++;return _.kB(D,t)},Zu=function(D){if(!(D.getHours&&D.getSeconds&&D.getMinutes))throw Error("be");
},atQ=function(D,t){Zu(t);
t=a0(t);return D.JSC$11410_dateTimeSymbols_.AMPMS[t>=12&&t<24?1:0]},bzQ=function(D,t,H,e,V,b){var a=t.length;
switch(t.charAt(0)){case "G":return H=e.getFullYear()>0?1:0,a>=4?D.JSC$11410_dateTimeSymbols_.ERANAMES[H]:D.JSC$11410_dateTimeSymbols_.ERAS[H];case "y":return FVf(D,a,e,!0);case "Y":return H=(new Date(Zgn(e.getFullYear(),e.getMonth(),e.getDate(),D.JSC$11410_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,D.JSC$11410_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),a==2&&(H%=100),wJ(D,q_v(H,a));case "u":return FVf(D,a,e,!1);case "M":a:switch(H=e.getMonth(),a){case 5:a=D.JSC$11410_dateTimeSymbols_.NARROWMONTHS[H];
break a;case 4:a=D.JSC$11410_dateTimeSymbols_.MONTHS[H];break a;case 3:a=D.JSC$11410_dateTimeSymbols_.SHORTMONTHS[H];break a;default:a=wJ(D,_.kB(H+1,a))}return a;case "k":return Zu(V),wJ(D,_.kB(a0(V)||24,a));case "S":return wJ(D,(V.getMilliseconds()/1E3).toFixed(Math.min(3,a)).slice(2)+(a>3?_.kB(0,a-3):""));case "E":return H=e.getDay(),a>=4?D.JSC$11410_dateTimeSymbols_.WEEKDAYS[H]:D.JSC$11410_dateTimeSymbols_.SHORTWEEKDAYS[H];case "a":return atQ(D,V);case "b":return atQ(D,V);case "B":return atQ(D,
V);case "h":return Zu(V),wJ(D,_.kB(a0(V)%12||12,a));case "K":return Zu(V),wJ(D,_.kB(a0(V)%12,a));case "H":return Zu(V),wJ(D,_.kB(a0(V),a));case "c":a:switch(H=e.getDay(),a){case 5:a=D.JSC$11410_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[H];break a;case 4:a=D.JSC$11410_dateTimeSymbols_.STANDALONEWEEKDAYS[H];break a;case 3:a=D.JSC$11410_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[H];break a;default:a=wJ(D,_.kB(H,1))}return a;case "L":a:switch(H=e.getMonth(),a){case 5:a=D.JSC$11410_dateTimeSymbols_.STANDALONENARROWMONTHS[H];
break a;case 4:a=D.JSC$11410_dateTimeSymbols_.STANDALONEMONTHS[H];break a;case 3:a=D.JSC$11410_dateTimeSymbols_.STANDALONESHORTMONTHS[H];break a;default:a=wJ(D,_.kB(H+1,a))}return a;case "Q":return H=Math.floor(e.getMonth()/3),a<4?D.JSC$11410_dateTimeSymbols_.SHORTQUARTERS[H]:D.JSC$11410_dateTimeSymbols_.QUARTERS[H];case "d":return wJ(D,_.kB(e.getDate(),a));case "m":return Zu(V),wJ(D,_.kB(V.getMinutes?V.getMinutes():0,a));case "s":return Zu(V),wJ(D,_.kB(V.getSeconds(),a));case "v":return(b||D2(H.getTimezoneOffset())).timeZoneId_;
case "V":return D=b||D2(H.getTimezoneOffset()),a<=2?D.timeZoneId_:DTv(D,H)>0?D.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?D.tzNamesExt_.DST_GENERIC_LOCATION:D.tzNamesExt_.DST_GENERIC_LOCATION:D.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?D.tzNamesExt_.STD_GENERIC_LOCATION:D.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return H=Zgn(V.getFullYear(),V.getMonth(),V.getDate(),D.JSC$11410_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,D.JSC$11410_dateTimeSymbols_.FIRSTDAYOFWEEK),wJ(D,_.kB(Math.floor(Math.round((H-(new Date((new Date(H)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,a));case "z":return D=b||D2(H.getTimezoneOffset()),a<4?D.tzNames_[DTv(D,H)>0?2:0]:D.tzNames_[DTv(D,H)>0?3:1];case "Z":return t=b||D2(H.getTimezoneOffset()),a<4?(a=-taB(t,H),D=[a<0?"-":"+"],a=Math.abs(a),D.push(_.kB(Math.floor(a/60)%100,2),_.kB(a%60,2)),a=D.join("")):a=wJ(D,zlo(taB(t,H))),a;default:return""}};var wcB=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Zzw=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,spV=function(D){this.patternParts_=[];this.JSC$11419_dateTimeSymbols_=cm;if(typeof D=="number"){D>11&&(D=10);if(D<4)var t=this.JSC$11419_dateTimeSymbols_.DATEFORMATS[D];else D<8?t=this.JSC$11419_dateTimeSymbols_.TIMEFORMATS[D-4]:(t=this.JSC$11419_dateTimeSymbols_.DATETIMEFORMATS[D-8],t=t.replace("{1}",this.JSC$11419_dateTimeSymbols_.DATEFORMATS[D-8]),t=t.replace("{0}",this.JSC$11419_dateTimeSymbols_.TIMEFORMATS[D-
8]));sQn(this,t)}else sQn(this,D)},sQn=function(D,t){for(var H=!1,e="",V=0;V<t.length;V++){var b=t.charAt(V);
if(wcB.test(b))for(e.length>0&&(D.patternParts_.push({text:e,count:0,abutStart:!1,numeric:!1}),e=""),D.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});V<t.length-1&&t.charAt(V+1)==" ";)V++;else if(H)b=="'"?V+1<t.length&&t.charAt(V+1)=="'"?(e+="'",V++):H=!1:e+=b;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(b)>=0){e.length>0&&(D.patternParts_.push({text:e,count:0,abutStart:!1,numeric:!1}),e="");for(var a=t.charAt(V),w=V+1;w<t.length&&t.charAt(w)==a;)w++;a=w-V;a<=0?w=!1:(w="MydhHmsSDkK".indexOf(b),
w=w>0||w==0&&a<3);D.patternParts_.push({text:b,count:a,abutStart:!1,numeric:w});V+=a-1}else b=="'"?V+1<t.length&&t.charAt(V+1)=="'"?(e+="'",V++):H=!0:e+=b}e.length>0&&D.patternParts_.push({text:e,count:0,abutStart:!1,numeric:!1});t=!1;for(H=0;H<D.patternParts_.length;H++)D.patternParts_[H].numeric?!t&&H+1<D.patternParts_.length&&D.patternParts_[H+1].numeric&&(t=!0,D.patternParts_[H].abutStart=!0):t=!1};
spV.prototype.parse=function(D,t,H){var e=!1,V=!1;H&&(e=H.predictive||!1,V=H.validate||!1);if(e)for(H=0;H<this.patternParts_.length;H++){var b=this.patternParts_[H];if(b.count>0&&("abBhHkKm".indexOf(b.text.charAt(0))<0||b.count>2||b.abutStart))throw Error("ce`"+b.text.charAt(0));}b=new hNQ;H=[0];b.dayPeriodIndex=-1;for(var a=0;a<this.patternParts_.length&&!(e&&H[0]>=D.length);a++){if(this.patternParts_[a].count==0){a:{var w=D;var h=H,K=this.patternParts_[a],N=e;if(K.text.match(wcB)!=null){if(K=h[0],
GLQ(w,h),h[0]>K){w=!0;break a}}else{if(w.indexOf(K.text,h[0])==h[0]){h[0]+=K.text.length;w=!0;break a}if(N&&K.text.indexOf(w.substring(h[0]))==0){h[0]+=w.length-h[0];w=!0;break a}}w=!1}if(w)continue;return 0}if(this.patternParts_[a].abutStart){a:{h=D;K=H;N=a;var k=K[0],T=0;for(w=N;w<this.patternParts_.length;w++){var c=this.patternParts_[w],U=c.count;if(U===0)break;if(w==N&&(U-=T,T++,U==0)){w=0;break a}var S=w>N&&c.numeric,L=K[0];if(!EPB(this,h,K,c,U,b,!1)||S&&K[0]-L<U)w=N-1,K[0]=k}w-=N}if(w<=0)return 0;
a+=w-1}else if(!EPB(this,D,H,this.patternParts_[a],0,b,e))return 0}a:{D=V;if(t==null)throw Error("de");b.era!=void 0&&b.year!=void 0&&b.era==0&&b.year>0&&(b.year=-(b.year-1));b.year!=void 0&&t.setFullYear(b.year);e=t.getDate();t.setDate(1);b.month!=void 0&&t.setMonth(b.month);b.day!=void 0?t.setDate(b.day):(V=YM8(t.getFullYear(),t.getMonth()),t.setDate(e>V?V:e));typeof t.setHours==="function"&&(b.hours==void 0&&(b.hours=t.getHours()),b.hours<12&&(b.ampm!=void 0&&b.ampm>0?b.hours+=12:b.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(b.dayPeriodName)||["night1","night2"].includes(b.dayPeriodName)&&b.hours>=6)&&(b.hours+=12)),t.setHours(b.hours));typeof t.setMinutes==="function"&&b.minutes!=void 0&&t.setMinutes(b.minutes);typeof t.setSeconds==="function"&&b.seconds!=void 0&&t.setSeconds(b.seconds);typeof t.setMilliseconds==="function"&&b.milliseconds!=void 0&&t.setMilliseconds(b.milliseconds);if(D&&(b.year&&b.year!=t.getFullYear()||b.month&&b.month!=
t.getMonth()||b.day&&b.day!=t.getDate()||b.hours&&b.hours>=24||b.minutes&&b.minutes>=60||b.seconds&&b.seconds>=60||b.milliseconds&&b.milliseconds>=1E3))t=!1;else{b.tzOffset!=void 0&&t.setTime(t.getTime()+(b.tzOffset-t.getTimezoneOffset())*60*1E3);b.ambiguousYear&&(D=new Date,D.setFullYear(D.getFullYear()-80),t.getTime()<D.getTime()&&t.setFullYear(D.getFullYear()+100));if(b.dayOfWeek!=void 0)if(b.day==void 0)b=(7+b.dayOfWeek-t.getDay())%7,b>3&&(b-=7),D=t.getMonth(),t.setDate(t.getDate()+b),t.getMonth()!=
D&&t.setDate(t.getDate()+(b>0?-7:7));else if(b.dayOfWeek!=t.getDay()){t=!1;break a}t=!0}}return t?H[0]:0};
var EPB=function(D,t,H,e,V,b,a){GLQ(t,H);if(e.numeric&&V>0&&H[0]+V>t.length)return!1;switch(e.text.charAt(0)){case "G":return sA(t,H,[D.JSC$11419_dateTimeSymbols_.ERAS],function(w){return b.era=w}),!0;
case "M":case "L":return KVV(D,t,H,V,e,b);case "E":return sA(t,H,[D.JSC$11419_dateTimeSymbols_.WEEKDAYS,D.JSC$11419_dateTimeSymbols_.SHORTWEEKDAYS],function(w){return b.dayOfWeek=w});
case "B":case "b":return V=[],D=[[].concat(D.JSC$11419_dateTimeSymbols_.AMPMS)],V.push("isAm"),V.push("isPm"),t=sA(t,H,D,function(w){return b.dayPeriodIndex=w},a),b.dayPeriodName=V[b.dayPeriodIndex],a?t:!0;
case "a":return t=sA(t,H,[D.JSC$11419_dateTimeSymbols_.AMPMS],function(w){return b.ampm=w},a),a?t:!0;
case "y":return NjQ(D,t,H,e,V,b);case "Q":return sA(t,H,[D.JSC$11419_dateTimeSymbols_.QUARTERS,D.JSC$11419_dateTimeSymbols_.SHORTQUARTERS],function(w){b.month=w*3;b.day=1});
case "d":return h7(D,t,H,e,V,function(w){b.day=w}),!0;
case "S":return kLB(D,t,H,V,b);case "h":case "K":case "H":case "k":return t=h7(D,t,H,e,V,function(w){b.hours=e.text.charAt(0)==="h"&&w===12?0:w},a),a?t:!0;
case "m":return t=h7(D,t,H,e,V,function(w){b.minutes=w},a),a?t:!0;
case "s":return h7(D,t,H,e,V,function(w){b.seconds=w}),!0;
case "z":case "Z":case "v":return TjB(D,t,H,b);default:return!1}},NjQ=function(D,t,H,e,V,b){var a=H[0];
V=GO(D,t,H,V);V===null&&(V=GO(D,t,H,0,!0));if(V===null)return!1;V>=0&&H[0]-a==2&&e.count==2?(D=V,t=(new Date).getFullYear()-80,H=t%100,b.ambiguousYear=D==H,D+=Math.floor(t/100)*100+(D<H?100:0),b.year=D):b.year=V;return!0},KVV=function(D,t,H,e,V,b){return V.numeric&&h7(D,t,H,V,e,function(a){b.month=a-1})?!0:sA(t,H,[D.JSC$11419_dateTimeSymbols_.MONTHS,
D.JSC$11419_dateTimeSymbols_.STANDALONEMONTHS,D.JSC$11419_dateTimeSymbols_.SHORTMONTHS,D.JSC$11419_dateTimeSymbols_.STANDALONESHORTMONTHS],function(a){b.month=a})},kLB=function(D,t,H,e,V){var b=H[0];
D=GO(D,t,H,e);if(D===null)return!1;H=H[0]-b;V.milliseconds=H<3?D*Math.pow(10,3-H):Math.round(D/Math.pow(10,H-3));return!0},TjB=function(D,t,H,e){t.indexOf("GMT",H[0])==H[0]&&(H[0]+=3);
if(H[0]>=t.length)return e.tzOffset=0,!0;var V=H[0],b=GO(D,t,H,0,!0);if(b===null)return!1;if(H[0]<t.length&&t.charAt(H[0])==":"){var a=b*60;H[0]++;b=GO(D,t,H,0);if(b===null)return!1;a+=b}else a=b,a=a<24&&H[0]-V<=3?a*60:a%100+a/100*60;e.tzOffset=-a;return!0},h7=function(D,t,H,e,V,b,a){a=a||!1;
var w=H[0];D=GO(D,t,H,V);if(D===null)return!1;if(a&&H[0]-w<e.count){if(H[0]<t.length)return!1;D*=Math.pow(10,e.count-(H[0]-w))}b(D);return!0},sA=function(D,t,H,e,V){V=V||!1;
for(var b,a=0;a<H.length;a++){b=t;for(var w=H[a],h=V,K=0,N=null,k=D.substring(b[0]).toLowerCase(),T=0;T<w.length;T++){var c=w[T].toLowerCase();if(h&&c.indexOf(k)==0){K=k.length;N=T;break}w[T].length>K&&k.indexOf(c)==0&&(K=w[T].length,N=T)}N!==null&&(b[0]+=K);b=N;if(b!==null)return e(b),!0}return!1},GLQ=function(D,t){(D=D.substring(t[0]).match(Zzw))&&(t[0]+=D[0].length)},GO=function(D,t,H,e,V){t=e>0?t.substring(0,H[0]+e):t;
V=V||!1;if(D.JSC$11419_dateTimeSymbols_.ZERODIGIT){e=[];for(var b=H[0];b<t.length;b++){var a=t.charCodeAt(b)-D.JSC$11419_dateTimeSymbols_.ZERODIGIT;e.push(0<=a&&a<=9?String.fromCharCode(a+48):t.charAt(b))}t=e.join("")}else t=t.substring(H[0]);D=t.match(new RegExp("^"+(V?"[+-]?":"")+"\\d+"));if(!D)return null;H[0]+=D[0].length;return parseInt(D[0],10)},hNQ=function(){};
hNQ.prototype.ambiguousYear=!1;var cja;
cja={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 jQ4={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}"]};
jQ4={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 $T4=function(){var D={type:"unit",style:"narrow"};this.listType_=D&&D.type?D.type:"conjunction";this.listStyle_=D&&D.style?D.style:"long";this.listSymbols_=jQ4;D=0;switch(this.listStyle_){case "short":D=1;break;case "narrow":D=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[D];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[D];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[D];this.listEndPattern_=
this.listSymbols_.AND_END[D];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[D];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[D];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[D];this.listEndPattern_=this.listSymbols_.OR_END[D];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[D],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[D],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[D],this.listEndPattern_=this.listSymbols_.UNIT_END[D]}};
$T4.prototype.format=function(D){return izn(this,D)};
var izn=function(D,t){var H=t.length;switch(H){case 0:return"";case 1:return String(t[0]);case 2:return D.listTwoPattern_.replace("{0}",String(t[0])).replace("{1}",String(t[1]))}for(var e=D.listStartPattern_.replace("{0}",String(t[0])).replace("{1}",String(t[1])),V=2;V<H-1;++V)e=D.listMiddlePattern_.replace("{0}",e).replace("{1}",String(t[V]));return D.listEndPattern_.replace("{0}",e).replace("{1}",String(t[H-1]))};var rjV={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"},Oz3=rjV,UTm=rjV;UTm=Oz3=rjV;var Pfv,EA,N4,fN3,KL,oPV;
_.y6=function(D,t,H,e){var V;if(V=t){a:if(t&&t.length===3){for(V=0;V<3;V++){var b=t[V];if(b<"A"||b>"Z"&&b<"a"||b>"z"){V=!1;break a}}V=!0}else V=!1;V=!V}if(V)throw new TypeError("ee");this.intlCurrencyCode_=t?t.toUpperCase():null;this.currencyStyle_=H||0;this.overrideNumberFormatSymbols_=e||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_=EA(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof D==="number")switch(D){case 1:KL(this,EA(this).DECIMAL_PATTERN);break;case 2:KL(this,EA(this).SCIENTIFIC_PATTERN);break;case 3:KL(this,EA(this).PERCENT_PATTERN);break;case 4:D=EA(this).CURRENCY_PATTERN;t=["0"];if(H=
Fg[N4(this)]){H=H[0]&7;if(H>0)for(t.push("."),e=0;e<H;e++)t.push("0");D=D.replace(/0.00/g,t.join(""))}KL(this,D);break;case 5:oPV(this,1);break;case 6:oPV(this,2);break;default:throw Error("he");}else KL(this,D)};
Pfv=!1;EA=function(D){return D.overrideNumberFormatSymbols_||(Pfv?UTm:Oz3)};
N4=function(D){return D.intlCurrencyCode_||EA(D).DEF_CURRENCY_CODE};
fN3=function(D,t){if(t>308)throw Error("ge`"+t);D.maximumFractionDigits_=t;return D};
KL=function(D,t){var H=[0];D.positivePrefix_=nPf(D,t,H);for(var e=H[0],V=-1,b=0,a=0,w=0,h=-1,K=t.length,N=!0;H[0]<K&&N;H[0]++)switch(t.charAt(H[0])){case "#":a>0?w++:b++;h>=0&&V<0&&h++;break;case "0":if(w>0)throw Error("ne`"+t);a++;h>=0&&V<0&&h++;break;case ",":h>0&&D.groupingArray_.push(h);h=0;break;case ".":if(V>=0)throw Error("oe`"+t);V=b+a+w;break;case "E":if(D.useExponentialNotation_)throw Error("pe`"+t);D.useExponentialNotation_=!0;D.minExponentDigits_=0;H[0]+1<K&&t.charAt(H[0]+1)=="+"&&(H[0]++,
D.useSignForPositiveExponent_=!0);for(;H[0]+1<K&&t.charAt(H[0]+1)=="0";)H[0]++,D.minExponentDigits_++;if(b+a<1||D.minExponentDigits_<1)throw Error("qe`"+t);N=!1;break;default:H[0]--,N=!1}a==0&&b>0&&V>=0&&(a=V,a==0&&a++,w=b-a,b=a-1,a=1);if(V<0&&w>0||V>=0&&(V<b||V>b+a)||h==0)throw Error("re`"+t);w=b+a+w;D.maximumFractionDigits_=V>=0?w-V:0;V>=0&&(D.minimumFractionDigits_=b+a-V,D.minimumFractionDigits_<0&&(D.minimumFractionDigits_=0));D.minimumIntegerDigits_=(V>=0?V:w)-b;D.useExponentialNotation_&&(D.maximumIntegerDigits_=
b+D.minimumIntegerDigits_,D.maximumFractionDigits_==0&&D.minimumIntegerDigits_==0&&(D.minimumIntegerDigits_=1));D.groupingArray_.push(Math.max(0,h));D.decimalSeparatorAlwaysShown_=V==0||V==w;e=H[0]-e;D.positiveSuffix_=nPf(D,t,H);H[0]<t.length&&t.charAt(H[0])==";"?(H[0]++,D.multiplier_!=1&&(D.negativePercentSignExpected_=!0),D.negativePrefix_=nPf(D,t,H),H[0]+=e,D.negativeSuffix_=nPf(D,t,H)):(D.negativePrefix_+=D.positivePrefix_,D.negativeSuffix_+=D.positiveSuffix_)};
oPV=function(D,t){D.compactStyle_=t;KL(D,EA(D).DECIMAL_PATTERN);D.minimumFractionDigits_=0;fN3(D,2);if(D.minimumFractionDigits_>0)throw Error("fe");D.significantDigits_=2};
_.y6.prototype.parse=function(D,t){t=t||[0];if(this.compactStyle_!==0)throw Error("ie");D=D.replace(/ |\u202f/g,"\u00a0");var H=D.indexOf(this.positivePrefix_,t[0])==t[0],e=D.indexOf(this.negativePrefix_,t[0])==t[0];H&&e&&(this.positivePrefix_.length>this.negativePrefix_.length?e=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(H=!1));H?t[0]+=this.positivePrefix_.length:e&&(t[0]+=this.negativePrefix_.length);if(D.indexOf(EA(this).INFINITY,t[0])==t[0]){t[0]+=EA(this).INFINITY.length;var V=
Infinity}else{V=D;var b=!1,a=!1,w=!1,h=-1,K=1,N=EA(this).DECIMAL_SEP,k=EA(this).GROUP_SEP,T=EA(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("je");k=k.replace(/\u202f/g,"\u00a0");for(var c="";t[0]<V.length;t[0]++){var U=V.charAt(t[0]),S=Cff(this,U);if(S>=0&&S<=9)c+=S,w=!0;else if(U==N.charAt(0)){if(b||a)break;c+=".";b=!0}else if(U==k.charAt(0)&&("\u00a0"!=k.charAt(0)||t[0]+1<V.length&&Cff(this,V.charAt(t[0]+1))>=0)){if(b||a)break}else if(U==T.charAt(0)){if(a)break;c+="E";a=!0;h=t[0]}else if(U==
"+"||U=="-"){if(w&&h!=t[0]-1)break;c+=U}else if(this.multiplier_==1&&U==EA(this).PERCENT.charAt(0)){if(K!=1)break;K=100;if(w){t[0]++;break}}else if(this.multiplier_==1&&U==EA(this).PERMILL.charAt(0)){if(K!=1)break;K=1E3;if(w){t[0]++;break}}else break}this.multiplier_!=1&&(K=this.multiplier_);V=parseFloat(c)/K}if(H){if(D.indexOf(this.positiveSuffix_,t[0])!=t[0])return NaN;t[0]+=this.positiveSuffix_.length}else if(e){if(D.indexOf(this.negativeSuffix_,t[0])!=t[0])return NaN;t[0]+=this.negativeSuffix_.length}return e?
-V:V};
_.y6.prototype.format=function(D){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("ke");if(isNaN(D))return EA(this).NAN;var t=[];var H=D;if(this.compactStyle_==0)H=kk;else{H=Math.abs(H);var e=mTB(this,H<=1?0:Mam(H)).divisorBase;H=mTB(this,e+Mam(S_9(this,TO(H,-e)).intValue))}D=TO(D,-H.divisorBase);(e=D<0||D==0&&1/D<0)?H.negative_prefix?t.push(H.negative_prefix):(t.push(H.prefix),t.push(this.negativePrefix_)):(t.push(H.prefix),t.push(this.positivePrefix_));if(isFinite(D))if(D*=
e?-1:1,D*=this.multiplier_,this.useExponentialNotation_){var V=D;if(V==0)Xcn(this,V,this.minimumIntegerDigits_,t),ft9(this,0,t);else{var b=Math.floor(Math.log(V)/Math.log(10)+2E-15);V=TO(V,-b);var a=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(a=b%this.maximumIntegerDigits_,a<0&&(a=this.maximumIntegerDigits_+a),V=TO(V,a),b-=a,a=1):this.minimumIntegerDigits_<1?(b++,V=TO(V,-1)):(b-=this.minimumIntegerDigits_-1,V=TO(V,this.minimumIntegerDigits_-
1));Xcn(this,V,a,t);ft9(this,b,t)}}else Xcn(this,D,this.minimumIntegerDigits_,t);else t.push(EA(this).INFINITY);e?H.negative_suffix?t.push(H.negative_suffix):(isFinite(D)&&t.push(H.suffix),t.push(this.negativeSuffix_)):(isFinite(D)&&t.push(H.suffix),t.push(this.positiveSuffix_));return t.join("")};
var S_9=function(D,t){var H=TO(t,D.maximumFractionDigits_);D.significantDigits_>0&&(H=LV6(H,D.significantDigits_,D.maximumFractionDigits_));H=Math.round(H);if(isFinite(H)){var e=Math.floor(TO(H,-D.maximumFractionDigits_));H=Math.floor(H-TO(e,D.maximumFractionDigits_));if(H<0||H>=TO(1,D.maximumFractionDigits_))e=Math.round(t),H=0}else e=t,H=0;return{intValue:e,fracValue:H}},Xcn=function(D,t,H,e){if(D.minimumFractionDigits_>D.maximumFractionDigits_)throw Error("ke");
e||(e=[]);t=S_9(D,t);var V=t.intValue,b=t.fracValue,a=D.minimumFractionDigits_>0||b>0||!1;t=D.minimumFractionDigits_;a&&(t=D.minimumFractionDigits_);for(var w="",h=V;h>1E20;)w="0"+w,h=Math.round(TO(h,-1));w=h+w;var K=EA(D).DECIMAL_SEP;h=EA(D).ZERO_DIGIT.codePointAt(0);var N=w.length,k=0;if(V>0||H>0){for(V=N;V<H;V++)e.push(String.fromCodePoint(h));if(D.groupingArray_.length>=2)for(H=1;H<D.groupingArray_.length;H++)k+=D.groupingArray_[H];H=N-k;if(H>0){V=D.groupingArray_;k=N=0;for(var T,c=EA(D).GROUP_SEP,
U=w.length,S=0;S<U;S++)if(e.push(String.fromCodePoint(h+Number(w.charAt(S)))),U-S>1)if(T=V[k],S<H){var L=H-S;(T===1||T>0&&L%T===1)&&e.push(c)}else k<V.length&&(S===H?k+=1:T===S-H-N+1&&(e.push(c),N+=T,k+=1))}else{H=w;w=D.groupingArray_;V=EA(D).GROUP_SEP;T=H.length;c=[];for(N=w.length-1;N>=0&&T>0;N--){k=w[N];for(U=0;U<k&&T-U-1>=0;U++)c.push(String.fromCodePoint(h+Number(H.charAt(T-U-1))));T-=k;T>0&&c.push(V)}e.push.apply(e,c.reverse())}}else a||e.push(String.fromCodePoint(h));(D.decimalSeparatorAlwaysShown_||
a)&&e.push(K);b=String(b);a=b.split("e+");a.length==2&&(b=String(LV6(parseFloat(a[0]),D.significantDigits_,1)),b=b.replace(".",""),b+=(0,_.NoB)("0",parseInt(a[1],10)-b.length+1));D.maximumFractionDigits_+1>b.length&&(b="1"+(0,_.NoB)("0",D.maximumFractionDigits_-b.length)+b);for(D=b.length;b.charAt(D-1)=="0"&&D>t+1;)D--;for(t=1;t<D;t++)e.push(String.fromCodePoint(h+Number(b.charAt(t))))},ft9=function(D,t,H){H.push(EA(D).EXP_SYMBOL);
t<0?(t=-t,H.push(EA(D).MINUS_SIGN)):D.useSignForPositiveExponent_&&H.push(EA(D).PLUS_SIGN);t=""+t;for(var e=EA(D).ZERO_DIGIT,V=t.length;V<D.minExponentDigits_;V++)H.push(e);D=e.codePointAt(0)-Ajn;for(e=0;e<t.length;e++)H.push(String.fromCodePoint(D+t.codePointAt(e)))},Cff=function(D,t){t=t.codePointAt(0);
if(48<=t&&t<58)return t-48;D=EA(D).ZERO_DIGIT.codePointAt(0);return D<=t&&t<D+10?t-D:-1},Ajn="0".codePointAt(0),nPf=function(D,t,H){for(var e="",V=!1,b=t.length;H[0]<b;H[0]++){var a=t.charAt(H[0]);
if(a=="'")H[0]+1<b&&t.charAt(H[0]+1)=="'"?(H[0]++,e+="'"):V=!V;else if(V)e+=a;else switch(a){case "#":case "0":case ",":case ".":case ";":return e;case "\u00a4":if(H[0]+1<b&&t.charAt(H[0]+1)=="\u00a4")H[0]++,e+=N4(D);else switch(D.currencyStyle_){case 0:a=N4(D);e+=a in Fg?Fg[a][1]:a;break;case 2:a=N4(D);var w=Fg[a];e+=w?a==w[1]?a:a+" "+w[1]:a;break;case 1:a=N4(D),e+=a in Fg?Fg[a][2]:a}break;case "%":if(!D.negativePercentSignExpected_&&D.multiplier_!=1)throw Error("le");if(D.negativePercentSignExpected_&&
D.multiplier_!=100)throw Error("me");D.multiplier_=100;D.negativePercentSignExpected_=!1;e+=EA(D).PERCENT;break;case "\u2030":if(!D.negativePercentSignExpected_&&D.multiplier_!=1)throw Error("le");if(D.negativePercentSignExpected_&&D.multiplier_!=1E3)throw Error("me");D.multiplier_=1E3;D.negativePercentSignExpected_=!1;e+=EA(D).PERMILL;break;default:e+=a}}return e},kk={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},mTB=function(D,t){D=D.compactStyle_==1?q4.COMPACT_DECIMAL_SHORT_PATTERN:q4.COMPACT_DECIMAL_LONG_PATTERN;D==null&&(D=q4.COMPACT_DECIMAL_SHORT_PATTERN);if(t<3)return kk;t=Math.min(14,t);var H=D[TO(1,t)];for(--t;!H&&t>=3;)H=D[TO(1,t)],t--;if(!H)return kk;H=H.other;var e=D="",V=H.indexOf(";");V>=0&&(H=H.substring(0,V),V=H.substring(V+1))&&(e=/([^0]*)(0+)(.*)/.exec(V),D=e[1],e=e[3]);return H&&H!="0"?(H=/([^0]*)(0+)(.*)/.exec(H))?{divisorBase:t+
1-(H[2].length-1),negative_prefix:D,negative_suffix:e,prefix:H[1],suffix:H[3]}:kk:kk},Mam=function(D){if(!isFinite(D))return D>0?D:0;
for(var t=0;(D/=10)>=1;)t++;return t},TO=function(D,t){if(!D||!isFinite(D)||t==0)return D;
D=String(D).split("e");return parseFloat(D[0]+"e"+(parseInt(D[1]||0,10)+t))},gPa=function(D,t){return D&&isFinite(D)?TO(Math.round(TO(D,t)),-t):D},LV6=function(D,t,H){if(!D)return D;
t=t-Mam(D)-1;return t<-H?gPa(D,-H):gPa(D,t)};var Jjv=function(D){return D%10==1&&D%100!=11?"one":D%10==2&&D%100!=12?"two":D%10==3&&D%100!=13?"few":"other"},Y_o=Jjv;
Y_o=Jjv;var lt4=function(D,t){var H=D|0;if(void 0===t){t=Math;var e=t.min,V=D+"",b=V.indexOf(".");t=e.call(t,b===-1?0:V.length-b-1,3)}e=Math.pow(10,t);D={v:t,f:(D*e|0)%e};return H==1&&D.v==0?"one":"other"},Q6=lt4;
Q6=lt4;var xTo=function(D){this.JSC$11462_pattern_=D;this.parsedPattern_=this.literals_=this.initialLiterals_=null;D=Oz3;var t=q4;if(vPV!==D||pco!==t)vPV=D,pco=t,dTa=new _.y6(1);this.numberFormatter_=dTa},vPV=null,pco=null,dTa=null,RN4=RegExp("'([{}#].*?)'","g"),uQ6=RegExp("''","g");
xTo.prototype.format=function(D){if(this.JSC$11462_pattern_){this.initialLiterals_=[];var t=WVo(this,this.JSC$11462_pattern_);this.parsedPattern_=Itw(this,t);this.JSC$11462_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.pK(this.initialLiterals_),t=[],QQ3(this,this.parsedPattern_,D,!1,t),D=t.join("");this.literals_.length>0;)D=D.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else D="";return D};
var QQ3=function(D,t,H,e,V){for(var b=0;b<t.length;b++)switch(t[b].type){case 4:V.push(t[b].value);break;case 3:var a=t[b].value;var w=D,h=V,K=H[a];K===void 0?h.push("Undefined parameter - "+a):(w.literals_.push(K),h.push(w.buildPlaceholder_(w.literals_)));break;case 2:a=t[b].value;w=D;h=H;K=e;var N=V,k=a.argumentIndex;h[k]===void 0?N.push("Undefined parameter - "+k):(k=a[h[k]],k===void 0&&(k=a.other),QQ3(w,k,h,K,N));break;case 0:a=t[b].value;yjV(D,a,H,Q6,e,V);break;case 1:a=t[b].value,yjV(D,a,H,
Y_o,e,V)}},yjV=function(D,t,H,e,V,b){var a=t.argumentIndex,w=t.argumentOffset,h=+H[a];
isNaN(h)?b.push("Undefined or invalid parameter - "+a):(w=h-w,a=t[H[a]],a===void 0&&(e=e(Math.abs(w)),a=t[e],a===void 0&&(a=t.other)),t=[],QQ3(D,a,H,V,t),H=t.join(""),V?b.push(H):(D=D.numberFormatter_.format(w),b.push(H.replace(/#/g,D))))},WVo=function(D,t){var H=D.initialLiterals_,e=D.buildPlaceholder_.bind(D);
t=t.replace(uQ6,function(){H.push("'");return e(H)});
return t=t.replace(RN4,function(V,b){H.push(b);return e(H)})},Bjf=function(D){var t=0,H=[],e=[],V=/[{}]/g;
V.lastIndex=0;for(var b;b=V.exec(D);){var a=b.index;b[0]=="}"?(H.pop(),H.length==0&&(b={type:1},b.value=D.substring(t,a),e.push(b),t=a+1)):(H.length==0&&(t=D.substring(t,a),t!=""&&e.push({type:0,value:t}),t=a+1),H.push("{"))}D=D.substring(t);D!=""&&e.push({type:0,value:D});return e},zN4=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,DXv=/^\s*(\w+)\s*,\s*selectordinal\s*,/,tQ3=/^\s*(\w+)\s*,\s*select\s*,/,Itw=function(D,t){var H=[];
t=Bjf(t);for(var e=0;e<t.length;e++){var V={};if(0==t[e].type)V.type=4,V.value=t[e].value;else if(1==t[e].type){var b=t[e].value;switch(zN4.test(b)?0:DXv.test(b)?1:tQ3.test(b)?2:/^\s*\w+\s*/.test(b)?3:5){case 2:V.type=2;V.value=Hbn(D,t[e].value);break;case 0:V.type=0;V.value=eMo(D,t[e].value);break;case 1:V.type=1;V.value=VQ9(D,t[e].value);break;case 3:V.type=3,V.value=t[e].value}}H.push(V)}return H},Hbn=function(D,t){var H="";
t=t.replace(tQ3,function(w,h){H=h;return""});
var e={};e.argumentIndex=H;t=Bjf(t);for(var V=0;V<t.length;){var b=t[V].value;V++;var a=void 0;1==t[V].type&&(a=Itw(D,t[V].value));e[b.replace(/\s/g,"")]=a;V++}return e},eMo=function(D,t){var H="",e=0;
t=t.replace(zN4,function(h,K,N){H=K;N&&(e=parseInt(N,10));return""});
var V={};V.argumentIndex=H;V.argumentOffset=e;t=Bjf(t);for(var b=0;b<t.length;){var a=t[b].value;b++;var w=void 0;1==t[b].type&&(w=Itw(D,t[b].value));V[a.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=w;b++}return V},VQ9=function(D,t){var H="";
t=t.replace(DXv,function(w,h){H=h;return""});
var e={};e.argumentIndex=H;e.argumentOffset=0;t=Bjf(t);for(var V=0;V<t.length;){var b=t[V].value;V++;var a=void 0;1==t[V].type&&(a=Itw(D,t[V].value));e[b.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=a;V++}return e};
xTo.prototype.buildPlaceholder_=function(D){return"\ufddf_"+(D.length-1).toString(10)+"_"};var WOR=function(){var D={style:1},t=bb9;this.style_=(D==null?void 0:D.style)||0;this.durationSymbols_=t||cja},q74=function(D,t){switch(t){default:case "years":return D.durationSymbols_.YEAR;
case "months":return D.durationSymbols_.MONTH;case "weeks":return D.durationSymbols_.WEEK;case "days":return D.durationSymbols_.DAY;case "hours":return D.durationSymbols_.HOUR;case "minutes":return D.durationSymbols_.MINUTE;case "seconds":return D.durationSymbols_.SECOND}},cO=function(D,t,H){a:{H=q74(D,H);
switch(D.style_){case 1:if(H.LONG!=void 0){D=H.LONG;break a}case 2:if(H.NARROW!=void 0){D=H.NARROW;break a}default:D=H.SHORT;break a}D=void 0}return D?(new xTo("{DURATION_VALUE,plural,"+D+"}")).format({DURATION_VALUE:t}):""};
WOR.prototype.format=function(D){var t=[],H=D.years,e=D.months,V=D.weeks,b=D.days,a=D.hours,w=D.minutes;D=D.seconds;H!=null&&t.push(cO(this,H,"years"));e!=null&&t.push(cO(this,e,"months"));V!=null&&t.push(cO(this,V,"weeks"));b!=null&&t.push(cO(this,b,"days"));a!=null&&t.push(cO(this,a,"hours"));w!=null&&t.push(cO(this,w,"minutes"));D!=null&&t.push(cO(this,D,"seconds"));return(new $T4).format(t)};var FMm;
FMm={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 ZEV=function(){this.rdtfSymbols_=aP3||FMm;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
ZEV.prototype.format=function(D,t){a:{t=wZB(this,t);switch(this.style_){case 2:if(t.NARROW!=void 0){t=t.NARROW;break a}case 1:if(t.SHORT!=void 0){t=t.SHORT;break a}default:t=t.LONG;break a}t=void 0}if(!this.alwaysNumeric_&&t&&t.R&&t.R[""+D])D=t.R[""+D];else if(t){var H=Math.abs(D);D=(new xTo("{N,plural,"+(D>0||D==0&&1/D==Infinity?t.F:t.P)+"}")).format({N:H})}else D="";return D};
var wZB=function(D,t){switch(t){default:case 0:return D.rdtfSymbols_.YEAR;case 1:return D.rdtfSymbols_.QUARTER;case 2:return D.rdtfSymbols_.MONTH;case 3:return D.rdtfSymbols_.WEEK;case 4:return D.rdtfSymbols_.DAY;case 5:return D.rdtfSymbols_.HOUR;case 6:return D.rdtfSymbols_.MINUTE;case 7:return D.rdtfSymbols_.SECOND}};var Zb6=function(D,t,H,e,V,b,a,w){this.x0=D;this.y0=t;this.x1=H;this.y1=e;this.x2=V;this.y2=b;this.x3=a;this.y3=w};
Zb6.prototype.clone=function(){return new Zb6(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Zb6.prototype.equals=function(D){return this.x0==D.x0&&this.y0==D.y0&&this.x1==D.x1&&this.y1==D.y1&&this.x2==D.x2&&this.y2==D.y2&&this.x3==D.x3&&this.y3==D.y3};
var sH6=function(D,t){if(t==0)return D.x0;if(t==1)return D.x3;var H=J_(D.x0,D.x1,t),e=J_(D.x1,D.x2,t);D=J_(D.x2,D.x3,t);H=J_(H,e,t);e=J_(e,D,t);return J_(H,e,t)},hMw=function(D,t){var H=(t-D.x0)/(D.x3-D.x0);
if(H<=0)return 0;if(H>=1)return 1;for(var e=0,V=1,b=0,a=0;a<8;a++){b=sH6(D,H);var w=(sH6(D,H+1E-6)-b)/1E-6;if(Math.abs(b-t)<1E-6)return H;if(Math.abs(w)<1E-6)break;else b<t?e=H:V=H,H-=(b-t)/w}for(a=0;Math.abs(b-t)>1E-6&&a<8;a++)b<t?(e=H,H=(H+V)/2):(V=H,H=(H+e)/2),b=sH6(D,H);return H};var jn=function(){_.J2.call(this);this.JSC$11483_name_="closure_frame"+G3B++;this.iframesForDisposal_=[];EX6[this.JSC$11483_name_]=this},$k;
_.Zj(jn,_.J2);var EX6={},G3B=0,KMm=function(D,t){var H=mJ(D);jDv(t,function(e,V){Array.isArray(e)||(e=[e]);_.ID(e,function(b){b=H.JSC$9332_createDom("INPUT",{type:"hidden",name:V,value:b});D.appendChild(b)})})};
_.q=jn.prototype;_.q.JSC$11485_form_=null;_.q.JSC$11485_iframe_=null;_.q.iframeName_=null;_.q.nextIframeId_=0;_.q.JSC$11485_active_=!1;_.q.complete_=!1;_.q.success_=!1;_.q.lastContent_=null;_.q.JSC$11485_lastErrorCode_=0;_.q.iframeDisposalTimer_=null;
_.q.send=function(D,t,H,e){if(this.JSC$11485_active_)throw Error("se");D=new _.eP(D);t=t?t.toUpperCase():"GET";H&&_.Or(D);$k||($k=_.pJ("FORM"),$k.acceptCharset="utf-8",H=$k.style,H.position="absolute",H.visibility="hidden",H.top=H.left="-10px",H.width=H.height="10px",H.overflow="hidden",document.body.appendChild($k));this.JSC$11485_form_=$k;t=="GET"&&KMm(this.JSC$11485_form_,D.JSC$10036_queryData_);e&&KMm(this.JSC$11485_form_,e);H=D.toString();H=YaV(H);e=this.JSC$11485_form_;H=_.uM(AA(H));H!==void 0&&
(e.action=H);this.JSC$11485_form_.method=t;NmQ(this);k3o(this)};
_.q.abort=function(D){if(this.JSC$11485_active_){var t=i9(this);if(t)if(Lr(t))t.removeAllListeners(void 0);else if(t=A2(t)){var H=0,e;for(e in t.listeners)for(var V=t.listeners[e].concat(),b=0;b<V.length;++b)MT(V[b])&&++H}this.success_=this.JSC$11485_active_=this.complete_=!1;this.JSC$11485_lastErrorCode_=D||7;this.dispatchEvent("abort");Tmo(this)}};
_.q.disposeInternal=function(){this.JSC$11485_active_&&this.abort();jn.superClass_.disposeInternal.call(this);this.JSC$11485_iframe_&&cBw(this);k3o(this);this.JSC$11485_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11485_form_=null;this.JSC$11485_lastErrorCode_=0;delete EX6[this.JSC$11483_name_]};
_.q.isComplete=function(){return this.complete_};
_.q.isSuccess=function(){return this.success_};
_.q.isActive=function(){return this.JSC$11485_active_};
_.q.getResponseText=function(){return this.lastContent_};
_.q.getLastError=function(){return _.y$V(this.JSC$11485_lastErrorCode_)};
var NmQ=function(D){D.JSC$11485_active_=!0;D.complete_=!1;D.JSC$11485_lastErrorCode_=0;D.iframeName_=D.JSC$11483_name_+"_"+(D.nextIframeId_++).toString(36);D.JSC$11485_iframe_=mJ(D.JSC$11485_form_).JSC$9332_createDom("IFRAME",{name:D.iframeName_,id:D.iframeName_});var t=D.JSC$11485_iframe_.style;t.visibility="hidden";t.width=t.height="10px";t.display="none";_.NG?t.marginTop=t.marginLeft="-10px":(t.position="absolute",t.top=t.left="-10px");mJ(D.JSC$11485_form_).JSC$9330_document_.body.appendChild(D.JSC$11485_iframe_);
t=D.iframeName_+"_inner";var H=AF9(D.JSC$11485_iframe_);if(document.baseURI){var e=Kf(t);e='<head><base href="'+Kf(document.baseURI)+'"></head><body><iframe id="'+e+'" name="'+e+'"></iframe>';e=Ql(e)}else e=Kf(t),e=Ql('<body><iframe id="'+e+'" name="'+e+'"></iframe>');H.write(BU(e));_.fz(H.getElementById(t),"load",D.onIframeLoaded_,!1,D);e=oK("TEXTAREA",D.JSC$11485_form_);for(var V=0,b=e.length;V<b;V++){var a=e[V].value;ptv(e[V])!=a&&(_.Qs(e[V],a),e[V].value=a)}e=H.importNode(D.JSC$11485_form_,!0);
e.target=t;e.action=D.JSC$11485_form_.action;H.body.appendChild(e);V=oK("SELECT",D.JSC$11485_form_);b=oK("SELECT",e);a=0;for(var w=V.length;a<w;a++)for(var h=oK("OPTION",V[a]),K=oK("OPTION",b[a]),N=0,k=h.length;N<k;N++)K[N].selected=h[N].selected;V=oK("INPUT",D.JSC$11485_form_);b=oK("INPUT",e);a=0;for(w=V.length;a<w;a++)if(V[a].type=="file"&&V[a].value!=b[a].value){D.JSC$11485_form_.target=t;e=D.JSC$11485_form_;break}try{D.errorHandled_=!1,e.submit(),H.close(),_.Ka&&setTimeout(D.testForFirefoxSilentError_.bind(D),
250)}catch(T){_.g8(H.getElementById(t),"load",D.onIframeLoaded_,!1,D),H.close(),rJ(D,2)}};
jn.prototype.onIframeLoaded_=function(){_.g8(i9(this),"load",this.onIframeLoaded_,!1,this);try{var D=this.JSC$11485_iframe_?AF9(i9(this)):null;this.complete_=!0;this.JSC$11485_active_=!1;try{var t=D.body;this.lastContent_=t.textContent||t.innerText}catch(V){var H=1}var e;H||typeof this.errorChecker_!="function"||(e=this.errorChecker_(D))&&(H=4);H?rJ(this,H):(this.success_=!0,this.JSC$11485_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),Tmo(this))}catch(V){rJ(this,1)}};
var rJ=function(D,t){D.errorHandled_||(D.success_=!1,D.JSC$11485_active_=!1,D.complete_=!0,D.JSC$11485_lastErrorCode_=t,D.dispatchEvent("complete"),D.dispatchEvent("error"),Tmo(D),D.errorHandled_=!0)},Tmo=function(D){cBw(D);
k3o(D);D.JSC$11485_form_=null;D.dispatchEvent("ready")},cBw=function(D){var t=D.JSC$11485_iframe_;
t&&(t.onreadystatechange=null,t.onload=null,t.onerror=null,D.iframesForDisposal_.push(t));D.iframeDisposalTimer_&&(clearTimeout(D.iframeDisposalTimer_),D.iframeDisposalTimer_=null);_.Ka?D.iframeDisposalTimer_=setTimeout(D.disposeIframes_.bind(D),2E3):D.disposeIframes_();D.JSC$11485_iframe_=null;D.iframeName_=null};
jn.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var D=this.iframesForDisposal_.pop();_.UH(D)}};
var k3o=function(D){D.JSC$11485_form_&&D.JSC$11485_form_==$k&&_.RS(D.JSC$11485_form_)},i9=function(D){return D.JSC$11485_iframe_?AF9(D.JSC$11485_iframe_).getElementById(D.iframeName_+"_inner"):null};
jn.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11485_active_){var D=this.JSC$11485_iframe_?AF9(i9(this)):null;D&&!fi8(D,"documentUri")?(_.g8(i9(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?rJ(this,3):rJ(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.OA=function(D){return D=="\r"||D=="\n"||D==" "||D=="\t"};var jH3;_.UA=function(D){this.errorMessage_=null;this.result_=[];this.JSC$11487_buffer_="";this.stack_=[];this.JSC$11487_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!D||!D.deliverMessageAsRawString)};
jH3={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};_.UA.prototype.isInputValid=function(){return this.streamState_!=3};
_.UA.prototype.done=function(){return this.streamState_===2};
var o0=function(D,t,H){D.streamState_=3;D.errorMessage_="The stream is broken @"+D.JSC$11487_pos_+"/"+H+". With input:\n"+t;throw Error(D.errorMessage_);};
_.UA.prototype.acceptsBinaryInput=function(){return!1};
_.UA.prototype.parse=function(D){function t(){for(;T<D.length;)if(_.OA(D[T]))T++,b.JSC$11487_pos_++;else break;return T<K}
function H(){for(var U;;){U=D[T++];if(!U)break;b.JSC$11487_pos_++;switch(b.state_){case h.INIT:U==="{"?b.state_=h.OBJECT_OPEN:U==="["?b.state_=h.ARRAY_OPEN:_.OA(U)||o0(b,D,T);continue;case h.KEY_START:case h.OBJECT_OPEN:if(_.OA(U))continue;if(b.state_===h.KEY_START)a.push(h.KEY_END);else if(U==="}"){V("{}");b.state_=e();continue}else a.push(h.OBJECT_END);U==='"'?b.state_=h.STRING:o0(b,D,T);continue;case h.KEY_END:case h.OBJECT_END:if(_.OA(U))continue;U===":"?(b.state_===h.OBJECT_END&&(a.push(h.OBJECT_END),
b.depth_++),b.state_=h.VALUE):U==="}"?(b.depth_--,V(),b.state_=e()):U===","?(b.state_===h.OBJECT_END&&a.push(h.OBJECT_END),b.state_=h.KEY_START):o0(b,D,T);continue;case h.ARRAY_OPEN:case h.VALUE:if(_.OA(U))continue;if(b.state_===h.ARRAY_OPEN)if(b.depth_++,b.state_=h.VALUE,U==="]"){b.depth_--;if(b.depth_===0){b.state_=h.ARRAY_END;return}V("[]");b.state_=e();continue}else a.push(h.ARRAY_END);U==='"'?b.state_=h.STRING:U==="{"?b.state_=h.OBJECT_OPEN:U==="["?b.state_=h.ARRAY_OPEN:U==="t"?b.state_=h.TRUE1:
U==="f"?b.state_=h.FALSE1:U==="n"?b.state_=h.NULL1:U!=="-"&&("0123456789".indexOf(U)!==-1?b.state_=h.NUM_DIGIT:o0(b,D,T));continue;case h.ARRAY_END:if(U===",")a.push(h.ARRAY_END),b.state_=h.VALUE,b.depth_===1&&(k=T);else if(U==="]"){b.depth_--;if(b.depth_===0)return;V();b.state_=e()}else if(_.OA(U))continue;else o0(b,D,T);continue;case h.STRING:var S=T;a:for(;;){for(;b.unicodeCount_>0;)if(U=D[T++],b.unicodeCount_===4?b.unicodeCount_=0:b.unicodeCount_++,!U)break a;if(U==='"'&&!b.slashed_){b.state_=
e();break}if(U==="\\"&&!b.slashed_&&(b.slashed_=!0,U=D[T++],!U))break;if(b.slashed_)if(b.slashed_=!1,U==="u"&&(b.unicodeCount_=1),U=D[T++])continue;else break;w.lastIndex=T;U=w.exec(D);if(!U){T=D.length+1;break}T=U.index+1;U=D[U.index];if(!U)break}b.JSC$11487_pos_+=T-S;continue;case h.TRUE1:if(!U)continue;U==="r"?b.state_=h.TRUE2:o0(b,D,T);continue;case h.TRUE2:if(!U)continue;U==="u"?b.state_=h.TRUE3:o0(b,D,T);continue;case h.TRUE3:if(!U)continue;U==="e"?b.state_=e():o0(b,D,T);continue;case h.FALSE1:if(!U)continue;
U==="a"?b.state_=h.FALSE2:o0(b,D,T);continue;case h.FALSE2:if(!U)continue;U==="l"?b.state_=h.FALSE3:o0(b,D,T);continue;case h.FALSE3:if(!U)continue;U==="s"?b.state_=h.FALSE4:o0(b,D,T);continue;case h.FALSE4:if(!U)continue;U==="e"?b.state_=e():o0(b,D,T);continue;case h.NULL1:if(!U)continue;U==="u"?b.state_=h.NULL2:o0(b,D,T);continue;case h.NULL2:if(!U)continue;U==="l"?b.state_=h.NULL3:o0(b,D,T);continue;case h.NULL3:if(!U)continue;U==="l"?b.state_=e():o0(b,D,T);continue;case h.NUM_DECIMAL_POINT:U===
"."?b.state_=h.NUM_DIGIT:o0(b,D,T);continue;case h.NUM_DIGIT:if("0123456789.eE+-".indexOf(U)!==-1)continue;else T--,b.JSC$11487_pos_--,b.state_=e();continue;default:o0(b,D,T)}}}
function e(){var U=a.pop();return U!=null?U:h.VALUE}
function V(U){b.depth_>1||(U||(U=k===-1?b.JSC$11487_buffer_+D.substring(N,T):D.substring(k,T)),b.deliverMessageAsRawString_?b.result_.push(U):b.result_.push(JSON.parse(U)),k=T)}
for(var b=this,a=b.stack_,w=b.stringInputPattern_,h=jH3,K=D.length,N=0,k=-1,T=0;T<K;)switch(b.streamState_){case 3:return o0(b,D,T),null;case 2:return t()&&o0(b,D,T),null;case 0:if(t()){var c=D[T++];b.JSC$11487_pos_++;if(c==="["){b.streamState_=1;N=T;b.state_=h.ARRAY_OPEN;continue}else o0(b,D,T)}return null;case 1:return H(),b.depth_===0&&b.state_==h.ARRAY_END?(b.streamState_=2,b.JSC$11487_buffer_=D.substring(T)):b.JSC$11487_buffer_=k===-1?b.JSC$11487_buffer_+D.substring(N):D.substring(k),b.result_.length>
0?(c=b.result_,b.result_=[],c):null}return null};_.Zj(_.KG,mh);Nl.prototype.getValue=function(){return this.JSC$11495_value_};
Nl.prototype.clone=function(){return new Nl(this.JSC$11495_key_,this.JSC$11495_value_)};var PO=function(D){this.nodes_=[];if(D)a:{if(D instanceof PO){var t=D.getKeys();D=D.getValues();if(this.getCount()<=0){for(var H=this.nodes_,e=0;e<t.length;e++)H.push(new Nl(t[e],D[e]));break a}}else t=_.J$.getKeys(D),D=_.J$.getValues(D);for(H=0;H<t.length;H++)this.insert(t[H],D[H])}};
_.q=PO.prototype;_.q.insert=function(D,t){var H=this.nodes_;H.push(new Nl(D,t));D=H.length-1;t=this.nodes_;for(H=t[D];D>0;){var e=D-1>>1;if(t[e].JSC$11495_key_>H.JSC$11495_key_)t[D]=t[e],D=e;else break}t[D]=H};
_.q.remove=function(){var D=this.nodes_,t=D.length,H=D[0];if(!(t<=0)){if(t==1)D.length=0;else{D[0]=D.pop();D=0;t=this.nodes_;for(var e=t.length,V=t[D];D<e>>1;){var b=D*2+1,a=D*2+2;b=a<e&&t[a].JSC$11495_key_<t[b].JSC$11495_key_?a:b;if(t[b].JSC$11495_key_>V.JSC$11495_key_)break;t[D]=t[b];D=b}t[D]=V}return H.getValue()}};
_.q.peek=function(){var D=this.nodes_;if(D.length!=0)return D[0].getValue()};
_.q.getValues=function(){for(var D=this.nodes_,t=[],H=D.length,e=0;e<H;e++)t.push(D[e].getValue());return t};
_.q.getKeys=function(){for(var D=this.nodes_,t=[],H=D.length,e=0;e<H;e++)t.push(D[e].JSC$11495_key_);return t};
_.q.containsValue=function(D){return this.nodes_.some(function(t){return t.getValue()==D})};
_.q.containsKey=function(D){return this.nodes_.some(function(t){return t.JSC$11495_key_==D})};
_.q.clone=function(){return new PO(this)};
_.q.getCount=function(){return this.nodes_.length};
_.q.isEmpty=function(){return this.nodes_.length===0};
_.q.clear=function(){this.nodes_.length=0};_.nL=function(D,t){this.JSC$11501_map_={};this.JSC$11501_keys_=[];this.version_=this.size=0;var H=arguments.length;if(H>1){if(H%2)throw Error("ma");for(var e=0;e<H;e+=2)this.set(arguments[e],arguments[e+1])}else D&&this.addAll(D)};
_.q=_.nL.prototype;_.q.getCount=function(){return this.size};
_.q.getValues=function(){CL(this);for(var D=[],t=0;t<this.JSC$11501_keys_.length;t++)D.push(this.JSC$11501_map_[this.JSC$11501_keys_[t]]);return D};
_.q.getKeys=function(){CL(this);return this.JSC$11501_keys_.concat()};
_.q.containsKey=function(D){return this.has(D)};
_.q.has=function(D){return mj(this.JSC$11501_map_,D)};
_.q.containsValue=function(D){for(var t=0;t<this.JSC$11501_keys_.length;t++){var H=this.JSC$11501_keys_[t];if(mj(this.JSC$11501_map_,H)&&this.JSC$11501_map_[H]==D)return!0}return!1};
_.q.equals=function(D,t){if(this===D)return!0;if(this.size!=D.getCount())return!1;t=t||$Xf;CL(this);for(var H,e=0;H=this.JSC$11501_keys_[e];e++)if(!t(this.get(H),D.get(H)))return!1;return!0};
var $Xf=function(D,t){return D===t};
_.nL.prototype.isEmpty=function(){return this.size==0};
_.nL.prototype.clear=function(){this.JSC$11501_map_={};this.version_=this.size=this.JSC$11501_keys_.length=0};
_.nL.prototype.remove=function(D){return this.delete(D)};
_.nL.prototype.delete=function(D){return mj(this.JSC$11501_map_,D)?(delete this.JSC$11501_map_[D],--this.size,this.version_++,this.JSC$11501_keys_.length>2*this.size&&CL(this),!0):!1};
var CL=function(D){if(D.size!=D.JSC$11501_keys_.length){for(var t=0,H=0;t<D.JSC$11501_keys_.length;){var e=D.JSC$11501_keys_[t];mj(D.JSC$11501_map_,e)&&(D.JSC$11501_keys_[H++]=e);t++}D.JSC$11501_keys_.length=H}if(D.size!=D.JSC$11501_keys_.length){t={};for(e=H=0;H<D.JSC$11501_keys_.length;){var V=D.JSC$11501_keys_[H];mj(t,V)||(D.JSC$11501_keys_[e++]=V,t[V]=1);H++}D.JSC$11501_keys_.length=e}};
_.q=_.nL.prototype;_.q.get=function(D,t){return mj(this.JSC$11501_map_,D)?this.JSC$11501_map_[D]:t};
_.q.set=function(D,t){mj(this.JSC$11501_map_,D)||(this.size+=1,this.JSC$11501_keys_.push(D),this.version_++);this.JSC$11501_map_[D]=t};
_.q.addAll=function(D){if(D instanceof _.nL)for(var t=D.getKeys(),H=0;H<t.length;H++)this.set(t[H],D.get(t[H]));else for(t in D)this.set(t,D[t])};
_.q.forEach=function(D,t){for(var H=this.getKeys(),e=0;e<H.length;e++){var V=H[e],b=this.get(V);D.call(t,b,V,this)}};
_.q.clone=function(){return new _.nL(this)};
_.q.transpose=function(){for(var D=new _.nL,t=0;t<this.JSC$11501_keys_.length;t++){var H=this.JSC$11501_keys_[t];D.set(this.JSC$11501_map_[H],H)}return D};
_.q.keys=function(){return Jnn(this.__iterator__(!0)).toEs6()};
_.q.values=function(){return Jnn(this.__iterator__(!1)).toEs6()};
_.q.entries=function(){var D=this;return elV(this.keys(),function(t){return[t,D.get(t)]})};
_.q.__iterator__=function(D){CL(this);var t=0,H=this.version_,e=this,V=new rK;V.next=function(){if(H!=e.version_)throw Error("te");if(t>=e.JSC$11501_keys_.length)return Oy;var b=e.JSC$11501_keys_[t++];return Uy(D?b:e.JSC$11501_map_[b])};
return V};
var mj=function(D,t){return Object.prototype.hasOwnProperty.call(D,t)};var rBo=function(){this.JSC$11504_map_=new _.nL;this.JSC$11504_head_=new ibf("");this.JSC$11504_head_.next=this.JSC$11504_head_.prev=this.JSC$11504_head_},Obf=function(D,t){if(t=D.JSC$11504_map_.get(t))t.remove(),D.insert_(t);
return t};
_.q=rBo.prototype;_.q.get=function(D,t){return(D=Obf(this,D))?D.value:t};
_.q.set=function(D,t){var H=Obf(this,D);H?H.value=t:(H=new ibf(D,t),this.JSC$11504_map_.set(D,H),this.insert_(H))};
_.q.peek=function(){return this.JSC$11504_head_.next.value};
_.q.shift=function(){return UX9(this,this.JSC$11504_head_.next)};
_.q.pop=function(){return UX9(this,this.JSC$11504_head_.prev)};
_.q.remove=function(D){return(D=this.JSC$11504_map_.get(D))?(this.removeNode(D),!0):!1};
_.q.removeNode=function(D){D.remove();this.JSC$11504_map_.remove(D.key)};
_.q.getCount=function(){return this.JSC$11504_map_.getCount()};
_.q.isEmpty=function(){return this.JSC$11504_map_.isEmpty()};
_.q.getKeys=function(){return this.map(function(D,t){return t})};
_.q.getValues=function(){return this.map(function(D){return D})};
_.q.contains=function(D){return this.some(function(t){return t==D})};
_.q.containsKey=function(D){return this.JSC$11504_map_.containsKey(D)};
_.q.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11504_head_.prev)};
_.q.forEach=function(D,t){for(var H=this.JSC$11504_head_.next;H!=this.JSC$11504_head_;H=H.next)D.call(t,H.value,H.key,this)};
_.q.map=function(D,t){for(var H=[],e=this.JSC$11504_head_.next;e!=this.JSC$11504_head_;e=e.next)H.push(D.call(t,e.value,e.key,this));return H};
_.q.some=function(D,t){for(var H=this.JSC$11504_head_.next;H!=this.JSC$11504_head_;H=H.next)if(D.call(t,H.value,H.key,this))return!0;return!1};
_.q.every=function(D,t){for(var H=this.JSC$11504_head_.next;H!=this.JSC$11504_head_;H=H.next)if(!D.call(t,H.value,H.key,this))return!1;return!0};
_.q.insert_=function(D){D.next=this.JSC$11504_head_.next;D.prev=this.JSC$11504_head_;this.JSC$11504_head_.next=D;for(D.next.prev=D;this.getCount()>100;)this.removeNode(this.JSC$11504_head_.prev)};
var UX9=function(D,t){D.JSC$11504_head_!=t&&D.removeNode(t);return t.value},ibf=function(D,t){this.key=D;
this.value=t};
ibf.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var oX6=function(){PO.apply(this,arguments)};
_.P(oX6,PO);oX6.prototype.enqueue=function(D,t){this.insert(D,t)};var Pif=function(){var D=Error();D.name="SecurityError";throw D;},GJu=function(){return{get opener(){return null},
get closed(){return!0},get location(){Pif()},get document(){Pif()},postMessage:function(){},
close:function(){},
focus:function(){}}};var ZrD={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 GTD={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 nXB={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(GTD).join("|");var Ci4=function(){function D(w){w.substr(-1)!==";"&&(w+=";");return a(w)}
for(var t=Object.keys(nXB).sort(h0k),H=Object.keys(GTD).sort(h0k),e=0,V=0;e<H.length;e++)t[V]===H[e]?(H[e]+=";?",V++):H[e]+=";";var b=new RegExp("&(?:"+H.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),a=E1A();return function(w){return String(w).replace(b,D)}}();/*

 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 mX4={};var MQm=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"),S7V=/[\\&]/,XZa=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),fPn=RegExp('[&<>"]',"g"),LMm=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),AB4=function(D){return D.charCodeAt(0)===92?D.charAt(1):Ci4(D)},gXf=function(D){return S7V.test(D)?D.replace(XZa,AB4):D},JBQ=function(D){try{var t,H="";
if(typeof V!=="string"){var e=V;var V=";/?:@&=+$,-_.!~*'()#"}typeof e==="undefined"&&(e=!0);var b,a=mX4[V];if(a)var w=a;else{a=mX4[V]=[];for(b=0;b<128;b++){var h=String.fromCharCode(b);/^[0-9a-z]$/i.test(h)?a.push(h):a.push("%"+("0"+b.toString(16).toUpperCase()).slice(-2))}for(b=0;b<V.length;b++)a[V.charCodeAt(b)]=V[b];w=a}var K=0;for(t=D.length;K<t;K++){var N=D.charCodeAt(K);if(e&&N===37&&K+2<t&&/^[0-9a-f]{2}$/i.test(D.slice(K+1,K+3)))H+=D.slice(K,K+3),K+=2;else if(N<128)H+=w[N];else if(N>=55296&&
N<=57343){if(N>=55296&&N<=56319&&K+1<t){var k=D.charCodeAt(K+1);if(k>=56320&&k<=57343){H+=encodeURIComponent(D[K]+D[K+1]);K++;continue}}H+="%EF%BF%BD"}else H+=encodeURIComponent(D[K])}return H}catch(T){return D}},Y7w=function(D){switch(D){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return D}},M4=function(D,t){return fPn.test(D)?t?D.replace(LMm,Y7w):D.replace(fPn,Y7w):D};/*

 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 Sn;if(String.fromCodePoint)Sn=function(D){try{return String.fromCodePoint(D)}catch(t){if(t instanceof RangeError)return String.fromCharCode(65533);throw t;}};
else{var lPB=String.fromCharCode,vXV=Math.floor;Sn=function(){var D=[],t=-1,H=arguments.length;if(!H)return"";for(var e="";++t<H;){var V=Number(arguments[t]);if(!isFinite(V)||V<0||V>1114111||vXV(V)!==V)return String.fromCharCode(65533);if(V<=65535)D.push(V);else{V-=65536;var b=(V>>10)+55296;V=V%1024+56320;D.push(b,V)}if(t+1===H||D.length>16384)e+=lPB.apply(null,D),D.length=0}return e}};var pZm=function(D){this.root=this.current=D;this.entering=!0};
pZm.prototype.next=function(){var D=this.current,t=this.entering;if(D===null)return null;a:switch(D._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 H=!0;break a;default:H=!1}t&&H?D._firstChild?(this.current=D._firstChild,this.entering=!0):this.entering=!1:D===this.root?this.current=null:D._next===null?(this.current=
D._parent,this.entering=!1):(this.current=D._next,this.entering=!0);return{entering:t,node:D}};
var j7=function(D,t){this._type=D;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=t;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
j7.prototype.appendChild=function(D){D.unlink();D._parent=this;this._lastChild?(this._lastChild._next=D,D._prev=this._lastChild):this._firstChild=D;this._lastChild=D};
j7.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var dXn=function(D,t){t.unlink();t._next=D._next;t._next&&(t._next._prev=t);t._prev=D;D._next=t;t._parent=D._parent;t._next||(t._parent._lastChild=t)};
j7.prototype.insertBefore=function(D){D.unlink();D._prev=this._prev;D._prev&&(D._prev._next=D);D._next=this;this._prev=D;D._parent=this._parent;D._prev||(D._parent._firstChild=D)};
_.ql.Object.defineProperties(j7.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(D){this._literal=D}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(D){this._destination=D}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(D){this._title=D}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(D){this._info=D}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(D){this._level=D}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(D){this._listData.type=D}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(D){this._listData.tight=D}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(D){this._listData.start=D}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(D){this._onEnter=D}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(D){this._onExit=D}}});var KfR=/[ \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,
N8k={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 xXB=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]/),
RM4=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),uI6=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),WM9=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),IPv=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),QH6=/`+/,yBV=/^`+/,BmV=/\.\.\./g,zMv=/--+/g,Dxn=/^<([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])?)*)>/,
tdV=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,Hfa=/^ *(?:\n *)?/,eof=/^[ \t\n\x0b\x0c\x0d]/,VdQ=/[ \t\n\x0b\x0c\x0d]+/g,bfa=/^\s/,qIm=/ *$/,Ft6=/^ */,agv=/^ *(?:\n|$)/,w5n=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Zfm=/^[^\n`\[\]\\!<&*_'"]+/m,Xg=function(D){var t=new j7("text");t._literal=D;return t},fL=function(D){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=D||{}};
fL.prototype.match=function(D){D=D.exec(this.subject.slice(this.pos));if(D===null)return null;this.pos+=D.index+D[0].length;return D[0]};
fL.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var LL=function(D){D.match(Hfa);return!0},snB=function(D,t,H){var e=0;
var V=D.pos;if(t===39||t===34)e++,D.pos++;else for(;D.peek()===t;)e++,D.pos++;if(e===0)e=null;else{var b=V===0?"\n":D.subject.charAt(V-1);var a=D.peek();a=a===-1?"\n":Sn(a);var w=bfa.test(a);a=xXB.test(a);var h=bfa.test(b);var K=xXB.test(b);b=!w&&!(a&&!h&&!K);w=!h&&!(K&&!w&&!a);t===95?(h=b&&(!w||K),a=w&&(!b||a)):(h=t===39||t===34?b&&!w:b,a=w);D.pos=V;e={numdelims:e,can_open:h,can_close:a}}if(!e)return!1;V=e.numdelims;a=D.pos;D.pos+=V;a=t===39?"\u2019":t===34?"\u201c":D.subject.slice(a,D.pos);a=Xg(a);
H.appendChild(a);D.delimiters={cc:t,numdelims:V,origdelims:V,node:a,previous:D.delimiters,next:null,can_open:e.can_open,can_close:e.can_close};D.delimiters.previous!==null&&(D.delimiters.previous.next=D.delimiters);return!0},ho4=function(D,t){t.previous!==null&&(t.previous.next=t.next);
t.next===null?D.delimiters=t.previous:t.next.previous=t.previous},GmV=function(D,t){var H,e,V=[],b=!1;
V[95]=t;V[42]=t;V[39]=t;V[34]=t;for(H=D.delimiters;H!==null&&H.previous!==t;)H=H.previous;for(;H!==null;){var a=H.cc;if(H.can_close){var w=H.previous;for(e=!1;w!==null&&w!==t&&w!==V[a];){b=(H.can_open||w.can_close)&&(w.origdelims+H.origdelims)%3===0;if(w.cc===H.cc&&w.can_open&&!b){e=!0;break}w=w.previous}var h=H;if(a===42||a===95)if(e){var K=H.numdelims>=2&&w.numdelims>=2?2:1;var N=w.node;var k=H.node;w.numdelims-=K;H.numdelims-=K;N._literal=N._literal.slice(0,N._literal.length-K);k._literal=k._literal.slice(0,
k._literal.length-K);var T=new j7(K===1?"emph":"strong");for(K=N._next;K&&K!==k;){var c=K._next;K.unlink();T.appendChild(K);K=c}dXn(N,T);K=w;c=H;K.next!==c&&(K.next=c,c.previous=K);w.numdelims===0&&(N.unlink(),ho4(D,w));H.numdelims===0&&(k.unlink(),w=H.next,ho4(D,H),H=w)}else H=H.next;else a===39?(H.node._literal="\u2019",e&&(w.node._literal="\u2018"),H=H.next):a===34&&(H.node._literal="\u201d",e&&(w.node.literal="\u201c"),H=H.next);e||b||(V[a]=h.previous,h.can_open||ho4(D,h))}else H=H.next}for(;D.delimiters!==
null&&D.delimiters!==t;)ho4(D,D.delimiters)},Ei9=function(D){D=D.match(RM4);
return D===null?null:gXf(D.substr(1,D.length-2))},Kta=function(D){var t=D.match(uI6);
if(t===null){t=D.pos;for(var H=0,e;(e=D.peek())!==-1;)if(e===92)D.pos+=1,D.peek()!==-1&&(D.pos+=1);else if(e===40)D.pos+=1,H+=1;else if(e===41)if(H<1)break;else D.pos+=1,--H;else if(eof.exec(Sn(e))!==null)break;else D.pos+=1;t=D.subject.substr(t,D.pos-t);return JBQ(gXf(t))}return JBQ(gXf(t.substr(1,t.length-2)))},NFf=function(D){D=D.match(w5n);
return D===null||D.length>1001?0:D.length},kmV=function(D,t,H,e){D.brackets!==null&&(D.brackets.bracketAfter=!0);
D.brackets={node:t,previous:D.brackets,previousDelimiter:D.delimiters,index:H,image:e,active:!0}},TFo=function(D,t){var H;
return(H=D.match(Zfm))?(D.options.smart?t.appendChild(Xg(H.replace(BmV,"\u2026").replace(zMv,function(e){var V=0,b=0;e.length%3===0?b=e.length/3:e.length%2===0?V=e.length/2:e.length%3===2?(V=1,b=(e.length-2)/3):(V=2,b=(e.length-4)/3);e="";var a;for(a=0;a<b;a++)e+="\u2014";for(a=0;a<V;a++)e+="\u2013";return e}))):t.appendChild(Xg(H)),!0):!1},c59=function(D,t,H){D.subject=t;
D.pos=0;t=D.pos;var e=NFf(D);if(e===0)return 0;var V=D.subject.substr(0,e);if(D.peek()===58)D.pos++;else return D.pos=t,0;LL(D);e=Kta(D);if(e===null||e.length===0)return D.pos=t,0;var b=D.pos;LL(D);var a=Ei9(D);a===null&&(a="",D.pos=b);var w=!0;D.match(agv)===null&&(a===""?w=!1:(a="",D.pos=b,w=D.match(agv)!==null));if(!w)return D.pos=t,0;V=kTV(V);if(V==="")return D.pos=t,0;H[V]||(H[V]={destination:e,title:a});return D.pos-t},jno=function(D,t){var H,e=D.peek();
if(e===-1)return!1;switch(e){case 10:D.pos+=1;if((H=t._lastChild)&&H.type==="text"&&H._literal[H._literal.length-1]===" "){var V=H._literal[H._literal.length-2]===" ";H._literal=H._literal.replace(qIm,"");t.appendChild(new j7(V?"linebreak":"softbreak"))}else t.appendChild(new j7("softbreak"));D.match(Ft6);H=!0;break;case 92:H=D.subject;D.pos+=1;D.peek()===10?(D.pos+=1,H=new j7("linebreak"),t.appendChild(H)):WM9.test(H.charAt(D.pos))?(t.appendChild(Xg(H.charAt(D.pos))),D.pos+=1):t.appendChild(Xg("\\"));
H=!0;break;case 96:a:if(H=D.match(yBV),H===null)H=!1;else{V=D.pos;for(var b;(b=D.match(QH6))!==null;)if(b===H){b=new j7("code");b._literal=D.subject.slice(V,D.pos-H.length).trim().replace(VdQ," ");t.appendChild(b);H=!0;break a}D.pos=V;t.appendChild(Xg(H));H=!0}break;case 42:case 95:H=snB(D,e,t);break;case 39:case 34:H=D.options.smart&&snB(D,e,t);break;case 91:H=D.pos;D.pos+=1;V=Xg("[");t.appendChild(V);kmV(D,V,H,!1);H=!0;break;case 33:H=D.pos;D.pos+=1;D.peek()===91?(D.pos+=1,V=Xg("!["),t.appendChild(V),
kmV(D,V,H+1,!0)):t.appendChild(Xg("!"));H=!0;break;case 93:var a,w=!1,h;D.pos+=1;var K=D.pos;V=D.brackets;if(V===null)t.appendChild(Xg("]"));else if(V.active){H=V.image;var N=D.pos;D.peek()===40&&(D.pos++,LL(D)&&(b=Kta(D))!==null&&LL(D)&&(eof.test(D.subject.charAt(D.pos-1))&&(a=Ei9(D)),1)&&LL(D)&&D.peek()===41?(D.pos+=1,w=!0):D.pos=N);if(!w){var k=D.pos,T=NFf(D);T>2?h=D.subject.slice(k,k+T):V.bracketAfter||(h=D.subject.slice(V.index,K));T===0&&(D.pos=N);h&&(h=D.refmap[kTV(h)])&&(b=h.destination,a=
h.title,w=!0)}if(w){K=new j7(H?"image":"link");K._destination=b;K._title=a||"";for(b=V.node._next;b;)a=b._next,b.unlink(),K.appendChild(b),b=a;t.appendChild(K);GmV(D,V.previousDelimiter);D.brackets=D.brackets.previous;V.node.unlink();if(!H)for(V=D.brackets;V!==null;)V.image||(V.active=!1),V=V.previous}else D.brackets=D.brackets.previous,D.pos=K,t.appendChild(Xg("]"))}else t.appendChild(Xg("]")),D.brackets=D.brackets.previous;H=!0;break;case 60:(H=D.match(Dxn))?(H=H.slice(1,H.length-1),V=new j7("link"),
V._destination=JBQ("mailto:"+H),V._title="",V.appendChild(Xg(H)),t.appendChild(V),H=!0):(H=D.match(tdV))?(H=H.slice(1,H.length-1),V=new j7("link"),V._destination=JBQ(H),V._title="",V.appendChild(Xg(H)),t.appendChild(V),H=!0):H=!1;H||(H=D.match(MQm),H===null?H=!1:(V=new j7("html_inline"),V._literal=H,t.appendChild(V),H=!0));break;case 38:(H=D.match(IPv))?(t.appendChild(Xg(Ci4(H))),H=!0):H=!1;break;default:H=TFo(D,t)}H||(D.pos+=1,t.appendChild(Xg(Sn(e))));return!0};
fL.prototype.parseInlines=function(D){this.subject=D._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;jno(this,D););D._string_content=null;GmV(this,null)};
fL.prototype.parse=fL.prototype.parseInlines;var $x6=[/./,/^<(?: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")],ifB=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],r5a=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,OfQ=/^[#`~*+_=<>0-9-\|]|\|/,UxV=/[^ \t\f\v\r\n]/,oia=/^[*+-]/,POQ=/^(\d{1,9})([.)])/,niQ=/^#{1,6}(?:[ \t]+|$)/,COV=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,mxV=/^(?:`{3,}|~{3,})(?= *$)/,MdV=/^(?:=+|-+)[ \t]*$/,SI9=/\r\n|\n|\r/,c2V=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,juD=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,X56={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(D){return D!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(D,t){for(D=t._firstChild;D;){if(T8X(D)&&D._next){t._listData.tight=!1;break}for(var H=D._firstChild;H;){if(T8X(H)&&(D._next||H._next)){t._listData.tight=!1;break}H=H._next}D=D._next}},
canContain:function(D){return D==="item"},
acceptsLines:!1},block_quote:{continue:function(D){var t=D.currentLine;if(D.indented||TA(t,D.nextNonspace)!==62)return 1;A7(D);gJ(D,1,!1);kR(TA(t,D.offset))&&gJ(D,1,!0);return 0},
finalize:function(){},
canContain:function(D){return D!=="item"},
acceptsLines:!1},item:{continue:function(D,t){if(D.blank){if(t._firstChild==null)return 1;A7(D)}else if(D.indent>=t._listData.markerOffset+t._listData.padding)gJ(D,t._listData.markerOffset+t._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(D){return D!=="item"&&!$kV(D)},
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(D,t){var H=D.currentLine,e=D.indent;if(t._isFenced){if((e=e<=3&&H.charAt(D.nextNonspace)===t._fenceChar&&H.slice(D.nextNonspace).match(mxV))&&e[0].length>=t._fenceLength)return D.finalize(t,D.lineNumber),2;for(t=t._fenceOffset;t>0&&kR(TA(H,D.offset));)gJ(D,1,!0),t--}else if(e>=4)gJ(D,4,!0);else if(D.blank)A7(D);else return 1;return 0},
finalize:function(D,t){if(t._isFenced){var H=t._string_content,e=H.indexOf("\n");D=H.slice(0,e);H=H.slice(e+1);t.info=gXf(D.trim());t._literal=H}else t._literal=t._string_content.replace(/(\n *)+$/,"\n");t._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(D,t){return!D.blank||t._htmlBlockType!==6&&t._htmlBlockType!==7?0:1},
finalize:function(D,t){t._literal=t._string_content.replace(/(\n *)+$/,"");t._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(D){return D.blank?1:0},
finalize:function(D,t){for(var H,e=!1;TA(t._string_content,0)===91&&(H=c59(D.inlineParser,t._string_content,D.refmap));)t._string_content=t._string_content.slice(H),e=!0;e&&!UxV.test(t._string_content)&&t.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(D){return c3(D.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(D){return D=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(D,t){if(!t._rowIsDelimiter){D=t._isHeader?"th":"td";for(var H=t._parent._tableColumns,e=t._string_content,V=0,b="",a,w=t._sourcepos[0][0];V<e.length;){switch(e[V]){case "|":a&&(a._string_content=b.trim(),b="",a=null,H--,H<=0&&(V=e.length));break;default:if(!a){a=new j7(D,[[w,V],[w,V]]);var h=t._parent._columnAlignment,K=t._parent._tableColumns-H;h&&K<=h.length&&K>=0&&(a._alignment=h[K]);t.appendChild(a)}b+=e[V];a._sourcepos[1][1]=V}V++}a&&(a._string_content=b.trim());t._string_content=
""}},
canContain:function(D){return D!=="row"},
acceptsLines:!1}},fg9=[function(D){if(D.indented||TA(D.currentLine,D.nextNonspace)!==62)return 0;A7(D);gJ(D,1,!1);kR(TA(D.currentLine,D.offset))&&gJ(D,1,!0);J7(D);D.addChild("block_quote",D.nextNonspace);return 1},
function(D){var t;if(!D.indented&&(t=D.currentLine.slice(D.nextNonspace).match(niQ))){A7(D);gJ(D,t[0].length,!1);J7(D);var H=D.addChild("heading",D.nextNonspace);H.level=t[0].trim().length;H._string_content=D.currentLine.slice(D.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");gJ(D,D.currentLine.length-D.offset);return 2}return 0},
function(D){var t;if(!D.indented&&(t=D.currentLine.slice(D.nextNonspace).match(COV))){var H=t[0].length;J7(D);var e=D.addChild("code_block",D.nextNonspace);e._isFenced=!0;e._fenceLength=H;e._fenceChar=t[0][0];e._fenceOffset=D.indent;A7(D);gJ(D,H,!1);return 2}return 0},
function(D,t){if(!D.indented&&TA(D.currentLine,D.nextNonspace)===60){var H=D.currentLine.slice(D.nextNonspace),e;for(e=1;e<=7;e++)if($x6[e].test(H)&&(e<7||t.type!=="paragraph"))return J7(D),D.addChild("html_block",D.offset)._htmlBlockType=e,2}return 0},
function(D,t){var H;if(!D.indented&&t.type==="paragraph"&&(H=D.currentLine.slice(D.nextNonspace).match(MdV))){J7(D);var e=new j7("heading",t.sourcepos);e.level=H[0][0]==="="?1:2;e._string_content=t._string_content;dXn(t,e);t.unlink();D.tip=e;gJ(D,D.currentLine.length-D.offset,!1);return 2}return 0},
function(D){return!D.indented&&r5a.test(D.currentLine.slice(D.nextNonspace))?(J7(D),D.addChild("thematic_break",D.nextNonspace),gJ(D,D.currentLine.length-D.offset,!1),2):0},
function(D,t){var H,e;if(!(e=D.indented&&t.type!=="list")){a:{var V=t,b=D.currentLine.slice(D.nextNonspace);e={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:D.indent};if(H=b.match(oia))e.type="bullet",e.bulletChar=H[0][0];else{if(!(H=b.match(POQ))||V.type==="paragraph"&&H[1]!=="1"){H=null;break a}e.type="ordered";e.start=parseInt(H[1],10);e.delimiter=H[2]}var a=TA(D.currentLine,D.nextNonspace+H[0].length);if(a!==-1&&a!==9&&a!==32||V.type==="paragraph"&&!D.currentLine.slice(D.nextNonspace+
H[0].length).match(UxV))H=null;else{A7(D);gJ(D,H[0].length,!0);V=D.column;b=D.offset;do gJ(D,1,!0),a=TA(D.currentLine,D.offset);while(D.column-V<5&&kR(a));a=TA(D.currentLine,D.offset)===-1;var w=D.column-V;w>=5||w<1||a?(e.padding=H[0].length+1,D.column=V,D.offset=b,kR(TA(D.currentLine,D.offset))&&gJ(D,1,!0)):e.padding=H[0].length+w;H=e}}e=!H}if(e)return 0;J7(D);(e=D.tip.type!=="list")||(t=t._listData,e=!(t.type===H.type&&t.delimiter===H.delimiter&&t.bulletChar===H.bulletChar));e&&(t=D.addChild("list",
D.nextNonspace),t._listData=H);t=D.addChild("item",D.nextNonspace);t._listData=H;return 1},
function(D){var t;return((t=D.options.shouldParseIndentAsCodeBlock)!=null?t:1)&&D.indented&&D.tip.type!=="paragraph"&&!D.blank?(gJ(D,4,!0),J7(D),D.addChild("code_block",D.offset),2):0},
function(D,t){var H=c3(D.currentLine),e=c3(D.lookahead);if(H!==0&&e<0&&Math.abs(H)==Math.abs(e)&&!$kV(t.type)){J7(D);t=D.addChild("table",D.nextNonspace);t._tableRows=1;t._tableColumns=Math.abs(H);H=D.lookahead;if(juD.test(H)){e=[];for(var V=0,b=!1,a=0,w=void 0;V<H.length;){var h=a>=3;switch(H[V]){case "-":a++;break;case "|":b&&(e.push(w),w=void 0,a=0);b=!0;break;case ":":w||h||(w="left"),!w&&h&&(w="right"),w==="left"&&h&&(w="center")}V++}H=e}else H=void 0;t._columnAlignment=H;t=D.addChild("row",
D.nextNonspace);t._isHeader=!0;gJ(D,D.currentLine.length-D.offset,!1);t._string_content=D.currentLine;return 1}return 0},
function(D,t){if(t.type=="table"&&c3(D.currentLine)!==0){J7(D);var H=t;t=D.addChild("row",D.nextNonspace);c3(D.currentLine)<0?t._rowIsDelimiter=!0:H._tableRows+=1;gJ(D,D.currentLine.length-D.offset,!1);t._string_content=D.currentLine;return 2}return 0}],y0X=function(){var D={shouldParseIndentAsCodeBlock:!1};
D=D===void 0?{}:D;this.lastMatchedContainer=this.doc=irV();this.refmap={};this.lastLineLength=0;this.inlineParser=new fL(D);this.options=D;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=X56;this.blockStarts=fg9},Ltm=function(D){D.partiallyConsumedTab&&(D.offset+=1,D.tip._string_content+=" ".repeat(4-D.column%
4));
D.tip._string_content+=D.currentLine.slice(D.offset)+"\n"};
y0X.prototype.addChild=function(D,t){for(;!this.blocks[this.tip.type].canContain(D);)this.finalize(this.tip,this.lineNumber-1);D=new j7(D,[[this.lineNumber,t+1],[0,0]]);D._string_content="";this.tip.appendChild(D);return this.tip=D};
var J7=function(D){if(!D.allClosed){for(;D.oldtip!==D.lastMatchedContainer;){var t=D.oldtip._parent;D.finalize(D.oldtip,D.lineNumber-1);D.oldtip=t}D.allClosed=!0}},gJ=function(D,t,H){for(var e=D.currentLine,V,b;t>0&&(b=e[D.offset]);)b==="\t"?(V=4-D.column%4,H?(D.partiallyConsumedTab=V>t,V=V>t?t:V,D.column+=V,D.offset+=D.partiallyConsumedTab?0:1,t-=V):(D.partiallyConsumedTab=!1,D.column+=V,D.offset+=1,--t)):(D.partiallyConsumedTab=!1,D.offset+=1,D.column+=1,--t)},A7=function(D){D.offset=D.nextNonspace;
D.column=D.nextNonspaceColumn;D.partiallyConsumedTab=!1},A5a=function(D){for(var t=D.currentLine,H=D.offset,e=D.column,V;(V=t.charAt(H))!=="";)if(V===" ")H++,e++;
else if(V==="\t")H++,e+=4-e%4;else break;D.blank=V==="\n"||V==="\r"||V==="";D.nextNonspace=H;D.nextNonspaceColumn=e;D.indent=D.nextNonspaceColumn-D.column;D.indented=D.indent>=4};
y0X.prototype.finalize=function(D,t){var H=D._parent;D._open=!1;D.sourcepos[1]=[t,this.lastLineLength];this.blocks[D.type].finalize(this,D);this.tip=H};
y0X.prototype.parse=function(D){this.tip=this.doc=irV();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!D)return this.doc;this.options.time&&console.time("preparing input");var t=D.split(SI9),H=t.length;D.charCodeAt(D.length-1)===10&&--H;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(D=0;D<H;D++)a:{var e=void 0,V=t[D],b=t[D+1],a=!0,w=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;V.indexOf("\x00")!==-1&&(V=V.replace(/\0/g,"\ufffd"));this.currentLine=V;for(this.lookahead=b;(e=w._lastChild)&&e._open;){w=e;A5a(this);switch(this.blocks[w.type].continue(this,w)){case 0:break;case 1:a=!1;break;case 2:this.lastLineLength=V.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!a){w=w._parent;break}}this.allClosed=w===this.oldtip;this.lastMatchedContainer=
w;e=w.type!=="paragraph"&&X56[w.type].acceptsLines;b=this.blockStarts;for(a=b.length;!e;){A5a(this);if(!this.indented&&!OfQ.test(V.slice(this.nextNonspace))){A7(this);break}for(var h=0;h<a;){var K=b[h](this,w);if(K===1){w=this.tip;break}else if(K===2){w=this.tip;e=!0;break}else h++}if(h===a){A7(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){J7(this);this.blank&&w.lastChild&&(w.lastChild._lastLineBlank=!0);e=w.type;b=this.blank&&!(e==="block_quote"||e==="code_block"&&w._isFenced||
e==="item"&&!w._firstChild&&w.sourcepos[0][0]===this.lineNumber);for(a=w;a;)a._lastLineBlank=b,a=a._parent;this.blocks[e].acceptsLines?(Ltm(this),e==="html_block"&&w._htmlBlockType>=1&&w._htmlBlockType<=5&&ifB[w._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(w,this.lineNumber)):this.offset<V.length&&!this.blank&&(this.addChild("paragraph",this.offset),A7(this),Ltm(this))}else Ltm(this);this.lastLineLength=V.length}for(;this.tip;)this.finalize(this.tip,H);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");V=new pZm(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;H=V.next();)t=H.node,D=t.type,H.entering||D!=="paragraph"&&D!=="heading"&&D!=="th"&&D!="td"||this.inlineParser.parse(t);this.options.time&&console.timeEnd("inline parsing");return this.doc};r28.prototype.render=function(D){D=new pZm(D);var t;this.buffer="";for(this.lastOut="\n";t=D.next();){var H=t.node.type;if(this[H])this[H](t.node,t.entering)}return this.buffer};
r28.prototype.out=function(D){Yk(this,D)};
var Yk=function(D,t){D.buffer+=t;D.lastOut=t};
r28.prototype.cr=function(){this.lastOut!=="\n"&&Yk(this,"\n")};var giQ=/^javascript:|vbscript:|file:|data:/i,J54=/^data:image\/(?:png|gif|jpeg|webp)/i,YIf=function(D){return giQ.test(D)&&!J54.test(D)};
$R.prototype=Object.create(r28.prototype);_.q=$R.prototype;_.q.text=function(D){this.out(D.literal)};
_.q.html_inline=function(D){this.options.safe?Yk(this,"\x3c!-- raw HTML omitted --\x3e"):Yk(this,D.literal)};
_.q.html_block=function(D){this.cr();this.options.safe?Yk(this,"\x3c!-- raw HTML omitted --\x3e"):Yk(this,D.literal);this.cr()};
_.q.softbreak=function(){Yk(this,this.options.softbreak)};
_.q.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.q.link=function(D,t){var H=this.attrs(D);t?(this.options.safe&&YIf(D.destination)||H.push(["href",M4(D.destination,!0)]),D.title&&H.push(["title",M4(D.title,!0)]),this.tag("a",H)):this.tag("/a")};
_.q.image=function(D,t){t?(this.disableTags===0&&(this.options.safe&&YIf(D.destination)?Yk(this,'<img src="" alt="'):Yk(this,'<img src="'+M4(D.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(D.title&&Yk(this,'" title="'+M4(D.title,!0)),Yk(this,'" />')))};
_.q.emph=function(D,t){this.tag(t?"em":"/em")};
_.q.strong=function(D,t){this.tag(t?"strong":"/strong")};
_.q.paragraph=function(D,t){var H=D.parent.parent;D=this.attrs(D);H!==null&&H.type==="list"&&H.listTight||(t?(this.cr(),this.tag("p",D)):(this.tag("/p"),this.cr()))};
_.q.heading=function(D,t){var H="h"+D.level;D=this.attrs(D);t?(this.cr(),this.tag(H,D)):(this.tag("/"+H),this.cr())};
_.q.code=function(D){this.tag("code");this.out(D.literal);this.tag("/code")};
_.q.code_block=function(D){var t=D.info?D.info.split(/\s+/):[],H=this.attrs(D);t.length>0&&t[0].length>0&&H.push(["class","language-"+M4(t[0],!0)]);this.cr();this.tag("pre");this.tag("code",H);this.out(D.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.q.thematic_break=function(D){D=this.attrs(D);this.cr();this.tag("hr",D,!0);this.cr()};
_.q.block_quote=function(D,t){D=this.attrs(D);t?(this.cr(),this.tag("blockquote",D)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.q.list=function(D,t){var H=D.listType==="bullet"?"ul":"ol",e=this.attrs(D);t?(D=D.listStart,D!==null&&D!==1&&e.push(["start",D.toString()]),this.cr(),this.tag(H,e)):(this.cr(),this.tag("/"+H));this.cr()};
_.q.item=function(D,t){D=this.attrs(D);t?this.tag("li",D):(this.tag("/li"),this.cr())};
_.q.custom_inline=function(D,t){t&&D.onEnter?Yk(this,D.onEnter):!t&&D.onExit&&Yk(this,D.onExit)};
_.q.custom_block=function(D,t){this.cr();t&&D.onEnter?Yk(this,D.onEnter):!t&&D.onExit&&Yk(this,D.onExit);this.cr()};
_.q.table=function(D,t){D=this.attrs(D);t?(this.cr(),this.tag("table",D)):(this.tag("/table"),this.cr())};
_.q.row=function(D,t){D._rowIsDelimiter||(D=this.attrs(D),t?this.tag("tr",D):this.tag("/tr"))};
_.q.td=function(D,t){var H=this.attrs(D);D._alignment&&H.push(["align",D._alignment]);t?this.tag("td",H):this.tag("/td")};
_.q.th=function(D,t){var H=this.attrs(D);D._alignment&&H.push(["align",D._alignment]);t?this.tag("th",H):this.tag("/th")};
_.q.out=function(D){Yk(this,M4(D,!1))};
_.q.tag=function(D,t,H){if(!(this.disableTags>0)){this.buffer+="<"+D;if(t&&t.length>0){D=0;for(var e;(e=t[D])!==void 0;)this.buffer+=" "+e[0]+'="'+e[1]+'"',D++}H&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.q.attrs=function(D){var t=[];this.options.sourcepos&&(D=D.sourcepos)&&t.push(["data-sourcepos",String(D[0][0])+":"+String(D[0][1])+"-"+String(D[1][0])+":"+String(D[1][1])]);return t};
$R.prototype.text=$R.prototype.text;$R.prototype.html_inline=$R.prototype.html_inline;$R.prototype.html_block=$R.prototype.html_block;$R.prototype.softbreak=$R.prototype.softbreak;$R.prototype.linebreak=$R.prototype.linebreak;$R.prototype.link=$R.prototype.link;$R.prototype.image=$R.prototype.image;$R.prototype.emph=$R.prototype.emph;$R.prototype.strong=$R.prototype.strong;$R.prototype.paragraph=$R.prototype.paragraph;$R.prototype.heading=$R.prototype.heading;$R.prototype.code=$R.prototype.code;
$R.prototype.code_block=$R.prototype.code_block;$R.prototype.thematic_break=$R.prototype.thematic_break;$R.prototype.block_quote=$R.prototype.block_quote;$R.prototype.list=$R.prototype.list;$R.prototype.item=$R.prototype.item;$R.prototype.custom_inline=$R.prototype.custom_inline;$R.prototype.custom_block=$R.prototype.custom_block;$R.prototype.table=$R.prototype.table;$R.prototype.row=$R.prototype.row;$R.prototype.td=$R.prototype.td;$R.prototype.th=$R.prototype.th;$R.prototype.out=$R.prototype.out;
$R.prototype.tag=$R.prototype.tag;$R.prototype.attrs=$R.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 lg4,vio,bkT;(function(){function D(A,f){return A<f?-1:A>f?1:A>=f?0:NaN}
function t(A){return function(f,v){return D(A(f),v)}}
function H(){for(var A=0,f=arguments.length,v={},DV;A<f;++A){if(!(DV=arguments[A]+"")||DV in v)throw Error("ve`"+DV);v[DV]=[]}return new e(v)}
function e(A){this._=A}
function V(A,f){return A.trim().split(/^|\s+/).map(function(v){var DV="",w6=v.indexOf(".");w6>=0&&(DV=v.slice(w6+1),v=v.slice(0,w6));if(v&&!f.hasOwnProperty(v))throw Error("we`"+v);return{type:v,name:DV}})}
function b(A,f,v){for(var DV=0,w6=A.length;DV<w6;++DV)if(A[DV].name===f){A[DV]=R_g;A=A.slice(0,DV).concat(A.slice(DV+1));break}v!=null&&A.push({name:f,value:v});return A}
function a(A){var f=A,v=f.indexOf(":");v>=0&&(f=A.slice(0,v))!=="xmlns"&&(A=A.slice(v+1));return lI.hasOwnProperty(f)?{space:lI[f],local:A}:A}
function w(A){return function(){var f=this.ownerDocument,v=this.namespaceURI;return v==="http://www.w3.org/1999/xhtml"&&f.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?f.createElement(A):f.createElementNS(v,A)}}
function h(A){return function(){return this.ownerDocument.createElementNS(A.space,A.local)}}
function K(A){A=a(A);return(A.local?h:w)(A)}
function N(){}
function k(A){return A==null?N:function(){return this.querySelector(A)}}
function T(A){return Array(A.length)}
function c(A,f){this.ownerDocument=A.ownerDocument;this.namespaceURI=A.namespaceURI;this._next=null;this._parent=A;this.__data__=f}
function U(A){return function(){return A}}
function S(A,f,v,DV,w6,k3){for(var r6=0,XX,t3=f.length,Bk=k3.length;r6<Bk;++r6)(XX=f[r6])?(XX.__data__=k3[r6],DV[r6]=XX):v[r6]=new c(A,k3[r6]);for(;r6<t3;++r6)if(XX=f[r6])w6[r6]=XX}
function L(A,f,v,DV,w6,k3,r6){var XX,t3,Bk={},H9=f.length,h3=k3.length,IB=Array(H9),ne;for(XX=0;XX<H9;++XX)if(t3=f[XX])IB[XX]=ne="$"+r6.call(t3,t3.__data__,XX,f),ne in Bk?w6[XX]=t3:Bk[ne]=t3;for(XX=0;XX<h3;++XX)ne="$"+r6.call(A,k3[XX],XX,k3),(t3=Bk[ne])?(DV[XX]=t3,t3.__data__=k3[XX],Bk[ne]=null):v[XX]=new c(A,k3[XX]);for(XX=0;XX<H9;++XX)(t3=f[XX])&&Bk[IB[XX]]===t3&&(w6[XX]=t3)}
function J(A,f){return A<f?-1:A>f?1:A>=f?0:NaN}
function g(A){return function(){this.removeAttribute(A)}}
function Q(A){return function(){this.removeAttributeNS(A.space,A.local)}}
function u(A,f){return function(){this.setAttribute(A,f)}}
function R(A,f){return function(){this.setAttributeNS(A.space,A.local,f)}}
function I(A,f){return function(){var v=f.apply(this,arguments);v==null?this.removeAttribute(A):this.setAttribute(A,v)}}
function tT(A,f){return function(){var v=f.apply(this,arguments);v==null?this.removeAttributeNS(A.space,A.local):this.setAttributeNS(A.space,A.local,v)}}
function ZV(A){return function(){this.style.removeProperty(A)}}
function ED(A,f,v){return function(){this.style.setProperty(A,f,v)}}
function o$(A,f,v){return function(){var DV=f.apply(this,arguments);DV==null?this.style.removeProperty(A):this.style.setProperty(A,DV,v)}}
function jV(A,f){return A.style.getPropertyValue(f)||(A.ownerDocument&&A.ownerDocument.defaultView||A.document&&A||A.defaultView).getComputedStyle(A,null).getPropertyValue(f)}
function i8(A){return function(){delete this[A]}}
function g6(A,f){return function(){this[A]=f}}
function Mu(A,f){return function(){var v=f.apply(this,arguments);v==null?delete this[A]:this[A]=v}}
function LQ(){this.textContent=""}
function DO(A){return function(){this.textContent=A}}
function fQ(A){return function(){var f=A.apply(this,arguments);this.textContent=f==null?"":f}}
function yA(){this.innerHTML=""}
function T4(A){return function(){this.innerHTML=A}}
function Mw(A){return function(){var f=A.apply(this,arguments);this.innerHTML=f==null?"":f}}
function X6(){return null}
function yZ(){var A=this.parentNode;A&&A.removeChild(this)}
function kQ(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function FX(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function qw(A,f,v){A=oB(A,f,v);return function(DV){var w6=DV.relatedTarget;w6&&(w6===this||w6.compareDocumentPosition(this)&8)||A.call(this,DV)}}
function oB(A,f,v){return function(){A.call(this,this.__data__,f,v)}}
function ZO(A){return A.trim().split(/^|\s+/).map(function(f){var v="",DV=f.indexOf(".");DV>=0&&(v=f.slice(DV+1),f=f.slice(0,DV));return{type:f,name:v}})}
function Nw(A){return function(){var f=this.__on;if(f){for(var v=0,DV=-1,w6=f.length,k3;v<w6;++v)(k3=f[v],A.type&&k3.type!==A.type||k3.name!==A.name)?f[++DV]=k3:this.removeEventListener(k3.type,k3.listener,k3.capture);++DV?f.length=DV:delete this.__on}}}
function bY(A,f,v){var DV=mCw.hasOwnProperty(A.type)?qw:oB;return function(w6,k3,r6){w6=this.__on;var XX;k3=DV(f,k3,r6);if(w6){r6=0;for(var t3=w6.length;r6<t3;++r6)if((XX=w6[r6]).type===A.type&&XX.name===A.name){this.removeEventListener(XX.type,XX.listener,XX.capture);this.addEventListener(XX.type,XX.listener=k3,XX.capture=v);XX.value=f;return}}this.addEventListener(A.type,k3,v);XX={type:A.type,name:A.name,value:f,listener:k3,capture:v};w6?w6.push(XX):this.__on=[XX]}}
function P_(A,f,v){var DV=A.ownerDocument&&A.ownerDocument.defaultView||A.document&&A||A.defaultView,w6=DV.CustomEvent;typeof w6==="function"?w6=new w6(f,v):(w6=DV.document.createEvent("Event"),v?(w6.initEvent(f,v.bubbles,v.cancelable),w6.detail=v.detail):w6.initEvent(f,!1,!1));A.dispatchEvent(w6)}
function QV(A,f){return function(){return P_(this,A,f)}}
function Zf(A,f){return function(){return P_(this,A,f.apply(this,arguments))}}
function ua(A,f){this._groups=A;this._parents=f}
function $Q(){return new ua([[document.documentElement]],u_e)}
function ia(){this._="@"+(++Wv4).toString(36)}
function jf(A,f,v){A.prototype=f.prototype=v;v.constructor=A}
function TH(A,f){A=Object.create(A.prototype);for(var v in f)A[v]=f[v];return A}
function Hv(){}
function EF(A){var f;A=(A+"").trim().toLowerCase();return(f=ILH.exec(A))?(f=parseInt(f[1],16),new Wt(f>>8&15|f>>4&240,f>>4&15|f&240,(f&15)<<4|f&15,1)):(f=QWg.exec(A))?Sr(parseInt(f[1],16)):(f=yzH.exec(A))?new Wt(f[1],f[2],f[3],1):(f=BrF.exec(A))?new Wt(f[1]*255/100,f[2]*255/100,f[3]*255/100,1):(f=z_e.exec(A))?X9(f[1],f[2],f[3],f[4]):(f=DBH.exec(A))?X9(f[1]*255/100,f[2]*255/100,f[3]*255/100,f[4]):(f=ttF.exec(A))?AZ(f[1],f[2]/100,f[3]/100,1):(f=HiF.exec(A))?AZ(f[1],f[2]/100,f[3]/100,f[4]):Miw.hasOwnProperty(A)?
Sr(Miw[A]):A==="transparent"?new Wt(NaN,NaN,NaN,0):null}
function Sr(A){return new Wt(A>>16&255,A>>8&255,A&255,1)}
function X9(A,f,v,DV){DV<=0&&(A=f=v=NaN);return new Wt(A,f,v,DV)}
function Yv(A){A instanceof Hv||(A=EF(A));if(!A)return new Wt;A=A.rgb();return new Wt(A.r,A.g,A.b,A.opacity)}
function d4(A,f,v,DV){return arguments.length===1?Yv(A):new Wt(A,f,v,DV==null?1:DV)}
function Wt(A,f,v,DV){this.r=+A;this.g=+f;this.b=+v;this.opacity=+DV}
function bM(A){A=Math.max(0,Math.min(255,Math.round(A)||0));return(A<16?"0":"")+A.toString(16)}
function AZ(A,f,v,DV){DV<=0?A=f=v=NaN:v<=0||v>=1?A=f=NaN:f<=0&&(A=NaN);return new hy(A,f,v,DV)}
function z7(A){if(A instanceof hy)return new hy(A.h,A.s,A.l,A.opacity);A instanceof Hv||(A=EF(A));if(!A)return new hy;if(A instanceof hy)return A;A=A.rgb();var f=A.r/255,v=A.g/255,DV=A.b/255,w6=Math.min(f,v,DV),k3=Math.max(f,v,DV),r6=NaN,XX=k3-w6,t3=(k3+w6)/2;XX?(r6=f===k3?(v-DV)/XX+(v<DV)*6:v===k3?(DV-f)/XX+2:(f-v)/XX+4,XX/=t3<.5?k3+w6:2-k3-w6,r6*=60):XX=t3>0&&t3<1?0:r6;return new hy(r6,XX,t3,A.opacity)}
function AW(A,f,v,DV){return arguments.length===1?z7(A):new hy(A,f,v,DV==null?1:DV)}
function hy(A,f,v,DV){this.h=+A;this.s=+f;this.l=+v;this.opacity=+DV}
function s5(A,f,v){return(A<60?f+(v-f)*A/60:A<180?v:A<240?f+(v-f)*(240-A)/60:f)*255}
function W$(A){if(A instanceof nK)return new nK(A.l,A.a,A.b,A.opacity);if(A instanceof c9){if(isNaN(A.h))return new nK(A.l,0,0,A.opacity);var f=A.h*SKB;return new nK(A.l,Math.cos(f)*A.c,Math.sin(f)*A.c,A.opacity)}A instanceof Wt||(A=Yv(A));var v=NH(A.r),DV=NH(A.g),w6=NH(A.b);f=Y3(.2225045*v+.7168786*DV+.0606169*w6);if(v===DV&&DV===w6)var k3=v=f;else k3=Y3((.4360747*v+.3850649*DV+.1430804*w6)/.96422),v=Y3((.0139322*v+.0971045*DV+.7141733*w6)/.82521);return new nK(116*f-16,500*(k3-f),200*(f-v),A.opacity)}
function nK(A,f,v,DV){this.l=+A;this.a=+f;this.b=+v;this.opacity=+DV}
function Y3(A){return A>ePH?Math.pow(A,1/3):A/XM3+fwV}
function R$(A){return A>js?A*A*A:XM3*(A-fwV)}
function KQ(A){return 255*(A<=.0031308?12.92*A:1.055*Math.pow(A,1/2.4)-.055)}
function NH(A){return(A/=255)<=.04045?A/12.92:Math.pow((A+.055)/1.055,2.4)}
function SM(A){if(A instanceof c9)return new c9(A.h,A.c,A.l,A.opacity);A instanceof nK||(A=W$(A));if(A.a===0&&A.b===0)return new c9(NaN,0,A.l,A.opacity);var f=Math.atan2(A.b,A.a)*LOf;return new c9(f<0?f+360:f,Math.sqrt(A.a*A.a+A.b*A.b),A.l,A.opacity)}
function ov(A,f,v,DV){return arguments.length===1?SM(A):new c9(A,f,v,DV==null?1:DV)}
function c9(A,f,v,DV){this.h=+A;this.c=+f;this.l=+v;this.opacity=+DV}
function kv(A,f,v,DV){if(arguments.length===1){var w6=A;if(w6 instanceof fe)w6=new fe(w6.h,w6.s,w6.l,w6.opacity);else{w6 instanceof Wt||(w6=Yv(w6));var k3=w6.g/255,r6=w6.b/255,XX=(AUv*r6+w6.r/255*-1.7884503806-3.5172982438*k3)/(AUv+-1.7884503806-3.5172982438);r6-=XX;var t3=(1.97294*(k3-XX)- -.29227*r6)/-.90649;r6=(k3=Math.sqrt(t3*t3+r6*r6)/(1.97294*XX*(1-XX)))?Math.atan2(t3,r6)*LOf-120:NaN;w6=new fe(r6<0?r6+360:r6,k3,XX,w6.opacity)}}else w6=new fe(A,f,v,DV==null?1:DV);return w6}
function fe(A,f,v,DV){this.h=+A;this.s=+f;this.l=+v;this.opacity=+DV}
function $h(A,f,v,DV,w6){var k3=A*A,r6=k3*A;return((1-3*A+3*k3-r6)*f+(4-6*k3+3*r6)*v+(1+3*A+3*k3-3*r6)*DV+r6*w6)/6}
function G4(A){return function(){return A}}
function nW(A,f){return function(v){return A+v*f}}
function gi(A,f,v){return A=Math.pow(A,v),f=Math.pow(f,v)-A,v=1/v,function(DV){return Math.pow(A+DV*f,v)}}
function vU(A,f){var v=f-A;return v?nW(A,v>180||v<-180?v-360*Math.round(v/360):v):G4(isNaN(A)?f:A)}
function vI(A){return(A=+A)===1?IR:function(f,v){return v-f?gi(f,v,A):G4(isNaN(f)?v:f)}}
function IR(A,f){var v=f-A;return v?nW(A,v):G4(isNaN(A)?f:A)}
function wq(A){return function(f){var v=f.length,DV=Array(v),w6=Array(v),k3=Array(v),r6;for(r6=0;r6<v;++r6){var XX=d4(f[r6]);DV[r6]=XX.r||0;w6[r6]=XX.g||0;k3[r6]=XX.b||0}DV=A(DV);w6=A(w6);k3=A(k3);XX.opacity=1;return function(t3){XX.r=DV(t3);XX.g=w6(t3);XX.b=k3(t3);return XX+""}}}
function CW(A,f){return A=+A,f-=A,function(v){return A+f*v}}
function Zy(A){return function(){return A}}
function OX(A){return function(f){return A(f)+""}}
function u8(A,f){var v=kqR.lastIndex=TW3.lastIndex=0,DV,w6,k3,r6=-1,XX=[],t3=[];A+="";for(f+="";(DV=kqR.exec(A))&&(w6=TW3.exec(f));)(k3=w6.index)>v&&(k3=f.slice(v,k3),XX[r6]?XX[r6]+=k3:XX[++r6]=k3),(DV=DV[0])===(w6=w6[0])?XX[r6]?XX[r6]+=w6:XX[++r6]=w6:(XX[++r6]=null,t3.push({i:r6,x:CW(DV,w6)})),v=TW3.lastIndex;v<f.length&&(k3=f.slice(v),XX[r6]?XX[r6]+=k3:XX[++r6]=k3);return XX.length<2?t3[0]?OX(t3[0].x):Zy(f):(f=t3.length,function(Bk){for(var H9=0,h3;H9<f;++H9)XX[(h3=t3[H9]).i]=h3.x(Bk);return XX.join("")})}
function iY(A,f,v,DV,w6,k3){var r6,XX,t3;if(r6=Math.sqrt(A*A+f*f))A/=r6,f/=r6;if(t3=A*v+f*DV)v-=A*t3,DV-=f*t3;if(XX=Math.sqrt(v*v+DV*DV))v/=XX,DV/=XX,t3/=XX;A*DV<f*v&&(A=-A,f=-f,t3=-t3,r6=-r6);return{translateX:w6,translateY:k3,rotate:Math.atan2(f,A)*g$n,skewX:Math.atan(t3)*g$n,scaleX:r6,scaleY:XX}}
function ct(A,f,v,DV){function w6(Bk){return Bk.length?Bk.pop()+" ":""}
function k3(Bk,H9,h3,IB,ne,OY){Bk!==h3||H9!==IB?(ne=ne.push("translate(",null,f,null,v),OY.push({i:ne-4,x:CW(Bk,h3)},{i:ne-2,x:CW(H9,IB)})):(h3||IB)&&ne.push("translate("+h3+f+IB+v)}
function r6(Bk,H9,h3,IB){Bk!==H9?(Bk-H9>180?H9+=360:H9-Bk>180&&(Bk+=360),IB.push({i:h3.push(w6(h3)+"rotate(",null,DV)-2,x:CW(Bk,H9)})):H9&&h3.push(w6(h3)+"rotate("+H9+DV)}
function XX(Bk,H9,h3,IB){Bk!==H9?IB.push({i:h3.push(w6(h3)+"skewX(",null,DV)-2,x:CW(Bk,H9)}):H9&&h3.push(w6(h3)+"skewX("+H9+DV)}
function t3(Bk,H9,h3,IB,ne,OY){Bk!==h3||H9!==IB?(ne=ne.push(w6(ne)+"scale(",null,",",null,")"),OY.push({i:ne-4,x:CW(Bk,h3)},{i:ne-2,x:CW(H9,IB)})):h3===1&&IB===1||ne.push(w6(ne)+"scale("+h3+","+IB+")")}
return function(Bk,H9){var h3=[],IB=[];Bk=A(Bk);H9=A(H9);k3(Bk.translateX,Bk.translateY,H9.translateX,H9.translateY,h3,IB);r6(Bk.rotate,H9.rotate,h3,IB);XX(Bk.skewX,H9.skewX,h3,IB);t3(Bk.scaleX,Bk.scaleY,H9.scaleX,H9.scaleY,h3,IB);Bk=H9=null;return function(ne){for(var OY=-1,dN=IB.length,Uk;++OY<dN;)h3[(Uk=IB[OY]).i]=Uk.x(ne);return h3.join("")}}}
function FF(A){return function(f,v){var DV=A((f=AW(f)).h,(v=AW(v)).h),w6=IR(f.s,v.s),k3=IR(f.l,v.l),r6=IR(f.opacity,v.opacity);return function(XX){f.h=DV(XX);f.s=w6(XX);f.l=k3(XX);f.opacity=r6(XX);return f+""}}}
function h$(A){return function(f,v){var DV=A((f=ov(f)).h,(v=ov(v)).h),w6=IR(f.c,v.c),k3=IR(f.l,v.l),r6=IR(f.opacity,v.opacity);return function(XX){f.h=DV(XX);f.c=w6(XX);f.l=k3(XX);f.opacity=r6(XX);return f+""}}}
function Qo(A){return function DV(v){function w6(k3,r6){var XX=A((k3=kv(k3)).h,(r6=kv(r6)).h),t3=IR(k3.s,r6.s),Bk=IR(k3.l,r6.l),H9=IR(k3.opacity,r6.opacity);return function(h3){k3.h=XX(h3);k3.s=t3(h3);k3.l=Bk(Math.pow(h3,v));k3.opacity=H9(h3);return k3+""}}
v=+v;w6.gamma=DV;return w6}(1)}
function v1(){return DJ||(JUn(Q_),DJ=JS.now()+IUD)}
function Q_(){DJ=0}
function on(){this._call=this._time=this._next=null}
function mw(A,f,v){var DV=new on;DV.restart(A,f,v);return DV}
function MU(){DJ=(QAV=JS.now())+IUD;$c=Yu=0;try{v1();++$c;for(var A=yWR,f;A;)(f=DJ-A._time)>=0&&A._call.call(null,f),A=A._next;--$c}finally{$c=0;A=yWR;for(var v=Infinity;A;)if(A._call){v>A._time&&(v=A._time);var DV=A;A=A._next}else f=A._next,A._next=null,A=DV?DV._next=f:yWR=f;lQ=DV;SW(v);DJ=0}}
function q2$(){var A=JS.now(),f=A-QAV;f>1E3&&(IUD-=f,QAV=A)}
function SW(A){$c||(Yu&&(Yu=clearTimeout(Yu)),A-DJ>24?(A<Infinity&&(Yu=setTimeout(MU,A-JS.now()-IUD)),vC&&(vC=clearInterval(vC))):(vC||(QAV=JS.now(),vC=setInterval(q2$,1E3)),$c=1,JUn(MU)))}
function YKV(A,f,v){var DV=new on;f=f==null?0:+f;DV.restart(function(w6){DV.stop();A(w6+f)},f,v);
return DV}
function cX$(A,f,v,DV,w6,k3){var r6=A.__transition;if(!r6)A.__transition={};else if(v in r6)return;VtH(A,v,{name:f,index:DV,group:w6,on:bib,tween:qzF,time:k3.time,delay:k3.delay,duration:k3.duration,ease:k3.ease,timer:null,state:0})}
function jTD(A,f){A=XL(A,f);if(A.state>0)throw Error("xe");return A}
function ti(A,f){A=XL(A,f);if(A.state>2)throw Error("ye");return A}
function XL(A,f){A=A.__transition;if(!A||!(A=A[f]))throw Error("ze");return A}
function VtH(A,f,v){function DV(t3){var Bk,H9;if(v.state!==1)return k3();for(IB in r6){var h3=r6[IB];if(h3.name===v.name){if(h3.state===3)return YKV(DV);h3.state===4?(h3.state=6,h3.timer.stop(),h3.on.call("interrupt",A,A.__data__,h3.index,h3.group),delete r6[IB]):+IB<f&&(h3.state=6,h3.timer.stop(),delete r6[IB])}}YKV(function(){v.state===3&&(v.state=4,v.timer.restart(w6,v.delay,v.time),w6(t3))});
v.state=2;v.on.call("start",A,A.__data__,v.index,v.group);if(v.state===2){v.state=3;XX=Array(H9=v.tween.length);var IB=0;for(Bk=-1;IB<H9;++IB)if(h3=v.tween[IB].value.call(A,A.__data__,v.index,v.group))XX[++Bk]=h3;XX.length=Bk+1}}
function w6(t3){t3=t3<v.duration?v.ease.call(null,t3/v.duration):(v.timer.restart(k3),v.state=5,1);for(var Bk=-1,H9=XX.length;++Bk<H9;)XX[Bk].call(null,t3);v.state===5&&(v.on.call("end",A,A.__data__,v.index,v.group),k3())}
function k3(){v.state=6;v.timer.stop();delete r6[f];for(var t3 in r6)return;delete A.__transition}
var r6=A.__transition,XX;r6[f]=v;v.timer=mw(function(t3){v.state=1;v.timer.restart(DV,v.delay,v.time);v.delay<=t3&&DV(t3-v.delay)},0,v.time)}
function FeY(A,f){var v,DV;return function(){var w6=ti(this,A),k3=w6.tween;if(k3!==v){DV=v=k3;k3=0;for(var r6=DV.length;k3<r6;++k3)if(DV[k3].name===f){DV=DV.slice();DV.splice(k3,1);break}}w6.tween=DV}}
function aBi(A,f,v){var DV,w6;if(typeof v!=="function")throw Error();return function(){var k3=ti(this,A),r6=k3.tween;if(r6!==DV){w6=(DV=r6).slice();r6={name:f,value:v};for(var XX=0,t3=w6.length;XX<t3;++XX)if(w6[XX].name===f){w6[XX]=r6;break}XX===t3&&w6.push(r6)}k3.tween=w6}}
function $K3(A,f,v){var DV=A._id;A.each(function(){var w6=ti(this,DV);(w6.value||(w6.value={}))[f]=v.apply(this,arguments)});
return function(w6){return XL(w6,DV).value[f]}}
function lw9(A,f){var v;return(typeof f==="number"?CW:f instanceof EF?v$6:(v=EF(f))?(f=v,v$6):u8)(A,f)}
function wKZ(A){return function(){this.removeAttribute(A)}}
function ZiY(A){return function(){this.removeAttributeNS(A.space,A.local)}}
function sji(A,f,v){var DV,w6;return function(){var k3=this.getAttribute(A);return k3===v?null:k3===DV?w6:w6=f(DV=k3,v)}}
function hPZ(A,f,v){var DV,w6;return function(){var k3=this.getAttributeNS(A.space,A.local);return k3===v?null:k3===DV?w6:w6=f(DV=k3,v)}}
function G6Q(A,f,v){var DV,w6,k3;return function(){var r6=v(this);if(r6==null)return void this.removeAttribute(A);var XX=this.getAttribute(A);return XX===r6?null:XX===DV&&r6===w6?k3:k3=f(DV=XX,w6=r6)}}
function ESZ(A,f,v){var DV,w6,k3;return function(){var r6=v(this);if(r6==null)return void this.removeAttributeNS(A.space,A.local);var XX=this.getAttributeNS(A.space,A.local);return XX===r6?null:XX===DV&&r6===w6?k3:k3=f(DV=XX,w6=r6)}}
function Kev(A,f){function v(){var DV=this,w6=f.apply(DV,arguments);return w6&&function(k3){DV.setAttributeNS(A.space,A.local,w6(k3))}}
v._value=f;return v}
function N3v(A,f){function v(){var DV=this,w6=f.apply(DV,arguments);return w6&&function(k3){DV.setAttribute(A,w6(k3))}}
v._value=f;return v}
function k6F(A,f){return function(){jTD(this,A).delay=+f.apply(this,arguments)}}
function T3F(A,f){return f=+f,function(){jTD(this,A).delay=f}}
function c1v(A,f){return function(){ti(this,A).duration=+f.apply(this,arguments)}}
function jjY(A,f){return f=+f,function(){ti(this,A).duration=f}}
function $BF(A,f){if(typeof f!=="function")throw Error();return function(){ti(this,A).ease=f}}
function iiY(A){return(A+"").trim().split(/^|\s+/).every(function(f){var v=f.indexOf(".");v>=0&&(f=f.slice(0,v));return!f||f==="start"})}
function r14(A,f,v){var DV,w6,k3=iiY(f)?jTD:ti;return function(){var r6=k3(this,A),XX=r6.on;if(XX!==DV)(w6=(DV=XX).copy()).on(f,v);r6.on=w6}}
function OiY(A){return function(){var f=this.parentNode,v;for(v in this.__transition)if(+v!==A)return;f&&f.removeChild(this)}}
function UBH(A,f){var v,DV,w6;return function(){var k3=jV(this,A),r6=(this.style.removeProperty(A),jV(this,A));return k3===r6?null:k3===v&&r6===DV?w6:w6=f(v=k3,DV=r6)}}
function oSF(A){return function(){this.style.removeProperty(A)}}
function P2e(A,f,v){var DV,w6;return function(){var k3=jV(this,A);return k3===v?null:k3===DV?w6:w6=f(DV=k3,v)}}
function nS4(A,f,v){var DV,w6,k3;return function(){var r6=jV(this,A),XX=v(this);XX==null&&(XX=(this.style.removeProperty(A),jV(this,A)));return r6===XX?null:r6===DV&&XX===w6?k3:k3=f(DV=r6,w6=XX)}}
function C2O(A,f,v){function DV(){var w6=this,k3=f.apply(w6,arguments);return k3&&function(r6){w6.style.setProperty(A,k3(r6),v)}}
DV._value=f;return DV}
function mBH(A){return function(){this.textContent=A}}
function MtO(A){return function(){var f=A(this);this.textContent=f==null?"":f}}
function BP(A,f,v,DV){this._groups=A;this._parents=f;this._name=v;this._id=DV}
function iE$(A){return{type:A}}
function rX$(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function Bi6(){}
function pMa(A,f){var v=new Bi6;if(A instanceof Bi6)A.each(function(r6,XX){v.set(XX,r6)});
else if(Array.isArray(A)){var DV=-1,w6=A.length,k3;if(f==null)for(;++DV<w6;)v.set(DV,A[DV]);else for(;++DV<w6;)v.set(f(k3=A[DV],DV,A),k3)}else if(A)for(DV in A)v.set(DV,A[DV]);return v}
function zEV(){}
function dCB(A){return function(f){for(var v={},DV=0;DV<A.length;DV++)v[A[DV]]=f[DV]||"";return v}}
function Szg(A,f){var v=dCB(A);return function(DV,w6){return f(v(DV),w6,A)}}
function XKQ(A){var f=Object.create(null),v=[];A.forEach(function(DV){for(var w6 in DV)w6 in f||v.push(f[w6]=w6)});
return v}
function xCa(A){function f(r6,XX){function t3(){if(OY)return OE6;if(dN)return dN=!1,RWo;var tn,xM=h3,EO;if(r6.charCodeAt(xM)===34){for(;h3++<H9&&r6.charCodeAt(h3)!==34||r6.charCodeAt(++h3)===34;);(tn=h3)>=H9?OY=!0:(EO=r6.charCodeAt(h3++))===10?dN=!0:EO===13&&(dN=!0,r6.charCodeAt(h3)===10&&++h3);return r6.slice(xM+1,tn-1).replace(/""/g,'"')}for(;h3<H9;){if((EO=r6.charCodeAt(tn=h3++))===10)dN=!0;else if(EO===13)dN=!0,r6.charCodeAt(h3)===10&&++h3;else if(EO!==k3)continue;return r6.slice(xM,tn)}return OY=
!0,r6.slice(xM,H9)}
var Bk=[],H9=r6.length,h3=0,IB=0,ne,OY=H9<=0,dN=!1;r6.charCodeAt(H9-1)===10&&--H9;for(r6.charCodeAt(H9-1)===13&&--H9;(ne=t3())!==OE6;){for(var Uk=[];ne!==RWo&&ne!==OE6;)Uk.push(ne),ne=t3();XX&&(Uk=XX(Uk,IB++))==null||Bk.push(Uk)}return Bk}
function v(r6){return r6.map(DV).join(A)}
function DV(r6){return r6==null?"":w6.test(r6)?'"'+r6.replace(/"/g,'""')+'"':r6}
var w6=new RegExp('["'+A+"\n\r]"),k3=A.charCodeAt(0);return{parse:function(r6,XX){var t3,Bk;r6=f(r6,function(H9,h3){if(t3)return t3(H9,h3-1);Bk=H9;t3=XX?Szg(H9,XX):dCB(H9)});
r6.columns=Bk||[];return r6},
parseRows:f,format:function(r6,XX){XX==null&&(XX=XKQ(r6));return[XX.map(DV).join(A)].concat(r6.map(function(t3){return XX.map(function(Bk){return DV(t3[Bk])}).join(A)})).join("\n")},
formatRows:function(r6){return r6.map(v).join("\n")}}}
function fBb(A){if(!A.ok)throw Error("Ae`"+A.status+"`"+A.statusText);return A.text()}
function urV(A){return function(f,v,DV){arguments.length===2&&typeof v==="function"&&(DV=v,v=void 0);return fetch(f,v).then(fBb).then(function(w6){return A(w6,DV)})}}
function WOn(A,f,v,DV){if(isNaN(f)||isNaN(v))return A;var w6,k3=A._root;DV={data:DV};var r6=A._x0,XX=A._y0,t3=A._x1,Bk=A._y1,H9,h3,IB,ne,OY;if(!k3)return A._root=DV,A;for(;k3.length;)if((IB=f>=(H9=(r6+t3)/2))?r6=H9:t3=H9,(ne=v>=(h3=(XX+Bk)/2))?XX=h3:Bk=h3,w6=k3,!(k3=k3[OY=ne<<1|IB]))return w6[OY]=DV,A;var dN=+A._x.call(null,k3.data);var Uk=+A._y.call(null,k3.data);if(f===dN&&v===Uk)return DV.next=k3,w6?w6[OY]=DV:A._root=DV,A;do w6=w6?w6[OY]=Array(4):A._root=Array(4),(IB=f>=(H9=(r6+t3)/2))?r6=H9:t3=
H9,(ne=v>=(h3=(XX+Bk)/2))?XX=h3:Bk=h3;while((OY=ne<<1|IB)===(IB=(Uk>=h3)<<1|dN>=H9));return w6[IB]=k3,w6[OY]=DV,A}
function Jh(A,f,v,DV,w6){this.node=A;this.x0=f;this.y0=v;this.x1=DV;this.y1=w6}
function Leb(A){return A[0]}
function A1O(A){return A[1]}
function UK8(A,f,v,DV,w6,k3){this._x=A;this._y=f;this._x0=v;this._y0=DV;this._x1=w6;this._y1=k3;this._root=void 0}
function Iwa(A){for(var f={data:A.data},v=f;A=A.next;)v=v.next={data:A.data};return f}
function DOu(A,f){if((f=(A=f?A.toExponential(f-1):A.toExponential()).indexOf("e"))<0)return null;var v=A.slice(0,f);return[v.length>1?v[0]+v.slice(2):v,+A.slice(f+1)]}
function gSF(A){return A=DOu(Math.abs(A)),A?A[1]:NaN}
function J1t(A,f){return function(v,DV){for(var w6=v.length,k3=[],r6=0,XX=A[0],t3=0;w6>0&&XX>0;){t3+XX+1>DV&&(XX=Math.max(1,DV-t3));k3.push(v.substring(w6-=XX,w6+XX));if((t3+=XX+1)>DV)break;XX=A[r6=(r6+1)%A.length]}return k3.reverse().join(f)}}
function YzH(A){return function(f){return f.replace(/[0-9]/g,function(v){return A[+v]})}}
function o7X(A){return new PjV(A)}
function PjV(A){if(!(f=lB4.exec(A)))throw Error("Be`"+A);var f;this.fill=f[1]||" ";this.align=f[2]||">";this.sign=f[3]||"-";this.symbol=f[4]||"";this.zero=!!f[5];this.width=f[6]&&+f[6];this.comma=!!f[7];this.precision=f[8]&&+f[8].slice(1);this.trim=!!f[9];this.type=f[10]||""}
function Qmn(A,f){f=DOu(A,f);if(!f)return A+"";A=f[0];f=f[1];return f<0?"0."+Array(-f).join("0")+A:A.length>f+1?A.slice(0,f+1)+"."+A.slice(f+1):A+Array(f-A.length+2).join("0")}
function yU4(A){return A}
function vSe(A){function f(XX){function t3(yl){var hp=EO,xQ=In,rw,sY;if(xM==="c")xQ=RZ(yl)+xQ,yl="";else{yl=+yl;var Sb=yl<0;yl=RZ(Math.abs(yl),Uk);if(tn){var d1=yl.length,lv=1,HF=-1;a:for(;lv<d1;++lv)switch(yl[lv]){case ".":HF=rw=lv;break;case "0":HF===0&&(HF=lv);rw=lv;break;default:if(!+yl[lv])break a;HF>0&&(HF=0)}yl=HF>0?yl.slice(0,HF)+yl.slice(rw+1):yl}Sb&&+yl===0&&(Sb=!1);hp=(Sb?h3==="("?h3:"-":h3==="-"||h3==="("?"":h3)+hp;xQ=(xM==="s"?Bfv[8+zWf/3]:"")+xQ+(Sb&&h3==="("?")":"");if(jT)for(Sb=-1,
rw=yl.length;++Sb<rw;)if(sY=yl.charCodeAt(Sb),48>sY||sY>57){xQ=(sY===46?w6+yl.slice(Sb+1):yl.slice(Sb))+xQ;yl=yl.slice(0,Sb);break}}dN&&!ne&&(yl=v(yl,Infinity));sY=hp.length+yl.length+xQ.length;Sb=sY<OY?Array(OY-sY+1).join(Bk):"";dN&&ne&&(yl=v(Sb+yl,Sb.length?OY-xQ.length:Infinity),Sb="");switch(H9){case "<":yl=hp+yl+xQ+Sb;break;case "=":yl=hp+Sb+yl+xQ;break;case "^":yl=Sb.slice(0,sY=Sb.length>>1)+hp+yl+xQ+Sb.slice(sY);break;default:yl=Sb+hp+yl+xQ}return k3(yl)}
XX=o7X(XX);var Bk=XX.fill,H9=XX.align,h3=XX.sign,IB=XX.symbol,ne=XX.zero,OY=XX.width,dN=XX.comma,Uk=XX.precision,tn=XX.trim,xM=XX.type;xM==="n"?(dN=!0,xM="g"):DKV[xM]||(Uk==null&&(Uk=12),tn=!0,xM="g");if(ne||Bk==="0"&&H9==="=")ne=!0,Bk="0",H9="=";var EO=IB==="$"?DV[0]:IB==="#"&&/[boxX]/.test(xM)?"0"+xM.toLowerCase():"",In=IB==="$"?DV[1]:/[%p]/.test(xM)?r6:"",RZ=DKV[xM],jT=/[defgprs%]/.test(xM);Uk=Uk==null?6:/[gprs]/.test(xM)?Math.max(1,Math.min(21,Uk)):Math.max(0,Math.min(20,Uk));t3.toString=function(){return XX+
""};
return t3}
var v=A.grouping&&A.thousands?J1t(A.grouping,A.thousands):yU4,DV=A.currency,w6=A.decimal,k3=A.numerals?YzH(A.numerals):yU4,r6=A.percent||"%";return{format:f,formatPrefix:function(XX,t3){var Bk=f((XX=o7X(XX),XX.type="f",XX));XX=Math.max(-8,Math.min(8,Math.floor(gSF(t3)/3)))*3;var H9=Math.pow(10,-XX),h3=Bfv[8+XX/3];return function(IB){return Bk(H9*IB)+h3}}}}
function CJ(){this.reset()}
function t86(A,f,v){var DV=A.s=f+v,w6=DV-f;A.t=f-(DV-w6)+(v-w6)}
function tE8(A){return A>1?vX:A<-1?-vX:Math.asin(A)}
function pK4(){}
function HEV(A){var f=A[0];A=A[1];var v=ps(A);return[v*ps(f),v*i_(f),i_(A)]}
function eIQ(A,f){return[A[1]*f[2]-A[2]*f[1],A[2]*f[0]-A[0]*f[2],A[0]*f[1]-A[1]*f[0]]}
function V8n(A){var f=HX3(A[0]*A[0]+A[1]*A[1]+A[2]*A[2]);A[0]/=f;A[1]/=f;A[2]/=f}
function dBF(){var A=[],f;return{point:function(v,DV){f.push([v,DV])},
lineStart:function(){A.push(f=[])},
lineEnd:pK4,rejoin:function(){A.length>1&&A.push(A.pop().concat(A.shift()))},
result:function(){var v=A;A=[];f=null;return v}}}
function eXk(A,f,v,DV){this.x=A;this.z=f;this.o=v;this.e=DV;this.v=!1;this.n=this.p=null}
function xBF(A,f,v,DV,w6){var k3=[],r6=[];A.forEach(function(h3){if(!((IB=h3.length-1)<=0)){var IB,ne=h3[0],OY=h3[IB],dN=ne;if(zq(dN[0]-OY[0])<1E-6&&zq(dN[1]-OY[1])<1E-6){w6.lineStart();for(XX=0;XX<IB;++XX)w6.point((ne=h3[XX])[0],ne[1]);w6.lineEnd()}else k3.push(IB=new eXk(ne,h3,null,!0)),r6.push(IB.o=new eXk(ne,null,IB,!1)),k3.push(IB=new eXk(OY,h3,null,!1)),r6.push(IB.o=new eXk(OY,null,IB,!0))}});
if(k3.length){r6.sort(f);bEf(k3);bEf(r6);var XX=0;for(A=r6.length;XX<A;++XX)r6[XX].e=v=!v;v=k3[0];for(var t3;;){for(var Bk=v,H9=!0;Bk.v;)if((Bk=Bk.n)===v)return;f=Bk.z;w6.lineStart();do{Bk.v=Bk.o.v=!0;if(Bk.e){if(H9)for(XX=0,A=f.length;XX<A;++XX)w6.point((t3=f[XX])[0],t3[1]);else DV(Bk.x,Bk.n.x,1,w6);Bk=Bk.n}else{if(H9)for(f=Bk.p.z,XX=f.length-1;XX>=0;--XX)w6.point((t3=f[XX])[0],t3[1]);else DV(Bk.x,Bk.p.x,-1,w6);Bk=Bk.p}Bk=Bk.o;f=Bk.z;H9=!H9}while(!Bk.v);w6.lineEnd()}}}
function bEf(A){if(f=A.length){for(var f,v=0,DV=A[0],w6;++v<f;)DV.n=w6=A[v],w6.p=DV,DV=w6;DV.n=w6=A[0];w6.p=DV}}
function RPF(A){return A.length>1}
function u5e(A,f){return((A=A.x)[0]<0?A[1]-vX-1E-6:vX-A[1])-((f=f.x)[0]<0?f[1]-vX-1E-6:vX-f[1])}
function n7D(){}
function qgm(A){return function(f,v){var DV=ps(f),w6=ps(v);DV=A(DV*w6);return[DV*w6*i_(f),DV*i_(v)]}}
function p1(A){return function(f,v){var DV=HX3(f*f+v*v),w6=A(DV),k3=i_(w6);w6=ps(w6);return[FXv(f*k3,DV*w6),tE8(DV&&v*k3/DV)]}}
function WeO(A){var f=0,v=A.children,DV=v&&v.length;if(DV)for(;--DV>=0;)f+=v[DV].value;else f=1;A.value=f}
function aQn(A,f){var v=new dP(A);A=+A.value&&(v.value=A.value);var DV,w6=[v],k3,r6,XX,t3;for(f==null&&(f=IBH);DV=w6.pop();)if(A&&(DV.value=+DV.data.value),(r6=f(DV.data))&&(t3=r6.length))for(DV.children=Array(t3),XX=t3-1;XX>=0;--XX)w6.push(k3=DV.children[XX]=new dP(r6[XX])),k3.parent=DV,k3.depth=DV.depth+1;return v.eachBefore(Qjt)}
function IBH(A){return A.children}
function y1F(A){A.data=A.data.data}
function Qjt(A){var f=0;do A.height=f;while((A=A.parent)&&A.height<++f)}
function dP(A){this.data=A;this.depth=this.height=0;this.parent=null}
function hE(A,f,v,DV){function w6(k3){return A(k3=new Date(+k3)),k3}
w6.floor=w6;w6.ceil=function(k3){return A(k3=new Date(k3-1)),f(k3,1),A(k3),k3};
w6.round=function(k3){var r6=w6(k3),XX=w6.ceil(k3);return k3-r6<XX-k3?r6:XX};
w6.offset=function(k3,r6){return f(k3=new Date(+k3),r6==null?1:Math.floor(r6)),k3};
w6.range=function(k3,r6,XX){var t3=[],Bk;k3=w6.ceil(k3);XX=XX==null?1:Math.floor(XX);if(!(k3<r6&&XX>0))return t3;do t3.push(Bk=new Date(+k3)),f(k3,XX),A(k3);while(Bk<k3&&k3<r6);return t3};
w6.filter=function(k3){return hE(function(r6){if(r6>=r6)for(;A(r6),!k3(r6);)r6.setTime(r6-1)},function(r6,XX){if(r6>=r6)if(XX<0)for(;++XX<=0;)for(;f(r6,-1),!k3(r6););
else for(;--XX>=0;)for(;f(r6,1),!k3(r6););})};
v&&(w6.count=function(k3,r6){Cj3.setTime(+k3);mKR.setTime(+r6);A(Cj3);A(mKR);return Math.floor(v(Cj3,mKR))},w6.every=function(k3){k3=Math.floor(k3);
return isFinite(k3)&&k3>0?k3>1?w6.filter(DV?function(r6){return DV(r6)%k3===0}:function(r6){return w6.count(0,r6)%k3===0}):w6:null});
return w6}
function HW(A){return hE(function(f){f.setDate(f.getDate()-(f.getDay()+7-A)%7);f.setHours(0,0,0,0)},function(f,v){f.setDate(f.getDate()+v*7)},function(f,v){return(v-f-(v.getTimezoneOffset()-f.getTimezoneOffset())*6E4)/6048E5})}
function e9(A){return hE(function(f){f.setUTCDate(f.getUTCDate()-(f.getUTCDay()+7-A)%7);f.setUTCHours(0,0,0,0)},function(f,v){f.setUTCDate(f.getUTCDate()+v*7)},function(f,v){return(v-f)/6048E5})}
function B3Y(A){if(0<=A.y&&A.y<100){var f=new Date(-1,A.m,A.d,A.H,A.M,A.S,A.L);f.setFullYear(A.y);return f}return new Date(A.y,A.m,A.d,A.H,A.M,A.S,A.L)}
function VE3(A){if(0<=A.y&&A.y<100){var f=new Date(Date.UTC(-1,A.m,A.d,A.H,A.M,A.S,A.L));f.setUTCFullYear(A.y);return f}return new Date(Date.UTC(A.y,A.m,A.d,A.H,A.M,A.S,A.L))}
function xu(A){return{y:A,m:0,d:1,H:0,M:0,S:0,L:0}}
function zPb(A){function f(xQ,rw){return function(sY){var Sb=[],d1=-1,lv=0,HF=xQ.length,GW,F_;for(sY instanceof Date||(sY=new Date(+sY));++d1<HF;)if(xQ.charCodeAt(d1)===37){Sb.push(xQ.slice(lv,d1));(lv=wPf[GW=xQ.charAt(++d1)])!=null?GW=xQ.charAt(++d1):lv=GW==="e"?" ":"0";if(F_=rw[GW])GW=F_(sY,lv);Sb.push(GW);lv=d1+1}Sb.push(xQ.slice(lv,d1));return Sb.join("")}}
function v(xQ,rw){return function(sY){var Sb=xu(1900);if(DV(Sb,xQ,sY,0)!=sY.length)return null;if("Q"in Sb)return new Date(Sb.Q);"p"in Sb&&(Sb.H=Sb.H%12+Sb.p*12);if("V"in Sb){if(Sb.V<1||Sb.V>53)return null;"w"in Sb||(Sb.w=1);if("Z"in Sb){sY=VE3(xu(Sb.y));var d1=sY.getUTCDay();sY=d1>4||d1===0?M8D.ceil(sY):M8D(sY);sY=ZEf.offset(sY,(Sb.V-1)*7);Sb.y=sY.getUTCFullYear();Sb.m=sY.getUTCMonth();Sb.d=sY.getUTCDate()+(Sb.w+6)%7}else sY=rw(xu(Sb.y)),d1=sY.getDay(),sY=d1>4||d1===0?Sg3.ceil(sY):Sg3(sY),sY=sT4.offset(sY,
(Sb.V-1)*7),Sb.y=sY.getFullYear(),Sb.m=sY.getMonth(),Sb.d=sY.getDate()+(Sb.w+6)%7}else if("W"in Sb||"U"in Sb)"w"in Sb||(Sb.w="u"in Sb?Sb.u%7:"W"in Sb?1:0),d1="Z"in Sb?VE3(xu(Sb.y)).getUTCDay():rw(xu(Sb.y)).getDay(),Sb.m=0,Sb.d="W"in Sb?(Sb.w+6)%7+Sb.W*7-(d1+5)%7:Sb.w+Sb.U*7-(d1+6)%7;return"Z"in Sb?(Sb.H+=Sb.Z/100|0,Sb.M+=Sb.Z%100,VE3(Sb)):rw(Sb)}}
function DV(xQ,rw,sY,Sb){for(var d1=0,lv=rw.length,HF=sY.length,GW;d1<lv;){if(Sb>=HF)return-1;GW=rw.charCodeAt(d1++);if(GW===37){if(GW=rw.charAt(d1++),GW=hp[GW in wPf?rw.charAt(d1++):GW],!GW||(Sb=GW(xQ,sY,Sb))<0)return-1}else if(GW!=sY.charCodeAt(Sb++))return-1}return Sb}
var w6=A.dateTime,k3=A.date,r6=A.time,XX=A.periods,t3=A.days,Bk=A.shortDays,H9=A.months,h3=A.shortMonths,IB=R8(XX),ne=uQ(XX),OY=R8(t3),dN=uQ(t3),Uk=R8(Bk),tn=uQ(Bk),xM=R8(H9),EO=uQ(H9),In=R8(h3),RZ=uQ(h3),jT={a:function(xQ){return Bk[xQ.getDay()]},
A:function(xQ){return t3[xQ.getDay()]},
b:function(xQ){return h3[xQ.getMonth()]},
B:function(xQ){return H9[xQ.getMonth()]},
c:null,d:hIa,e:hIa,f:DCF,H:tii,I:HpF,j:eWF,L:Gqn,m:ViH,M:bpg,p:function(xQ){return XX[+(xQ.getHours()>=12)]},
Q:E7B,s:KX9,S:qKF,u:FOe,U:awi,V:wMi,w:Zpe,W:smY,x:null,X:null,y:hWH,Y:Gig,Z:E$g,"%":NW6},yl={a:function(xQ){return Bk[xQ.getUTCDay()]},
A:function(xQ){return t3[xQ.getUTCDay()]},
b:function(xQ){return h3[xQ.getUTCMonth()]},
B:function(xQ){return H9[xQ.getUTCMonth()]},
c:null,d:kqn,e:kqn,f:KOt,H:NfF,I:kiF,j:Tfv,L:TWv,m:cUH,M:jmF,p:function(xQ){return XX[+(xQ.getUTCHours()>=12)]},
Q:E7B,s:KX9,S:$CF,u:ip4,U:rUY,V:OpH,w:UCe,W:o$b,x:null,X:null,y:PSQ,Y:n$g,Z:CSZ,"%":NW6},hp={a:function(xQ,rw,sY){return(rw=Uk.exec(rw.slice(sY)))?(xQ.w=tn[rw[0].toLowerCase()],sY+rw[0].length):-1},
A:function(xQ,rw,sY){return(rw=OY.exec(rw.slice(sY)))?(xQ.w=dN[rw[0].toLowerCase()],sY+rw[0].length):-1},
b:function(xQ,rw,sY){return(rw=In.exec(rw.slice(sY)))?(xQ.m=RZ[rw[0].toLowerCase()],sY+rw[0].length):-1},
B:function(xQ,rw,sY){return(rw=xM.exec(rw.slice(sY)))?(xQ.m=EO[rw[0].toLowerCase()],sY+rw[0].length):-1},
c:function(xQ,rw,sY){return DV(xQ,w6,rw,sY)},
d:cXB,e:cXB,f:mCH,H:jTn,I:jTn,j:MiH,L:SKv,m:XMF,M:fwZ,p:function(xQ,rw,sY){return(rw=IB.exec(rw.slice(sY)))?(xQ.p=ne[rw[0].toLowerCase()],sY+rw[0].length):-1},
Q:LOb,s:AUQ,S:g$i,u:JUg,U:YKZ,V:lwt,w:v$F,W:pMY,x:function(xQ,rw,sY){return DV(xQ,k3,rw,sY)},
X:function(xQ,rw,sY){return DV(xQ,r6,rw,sY)},
y:dCv,Y:xCY,Z:RW4,"%":urZ};jT.x=f(k3,jT);jT.X=f(r6,jT);jT.c=f(w6,jT);yl.x=f(k3,yl);yl.X=f(r6,yl);yl.c=f(w6,yl);return{format:function(xQ){var rw=f(xQ,jT);rw.toString=function(){return xQ};
return rw},
parse:function(xQ){var rw=v(xQ,B3Y);rw.toString=function(){return xQ};
return rw},
utcFormat:function(xQ){var rw=f(xQ,yl);rw.toString=function(){return xQ};
return rw},
utcParse:function(xQ){var rw=v(xQ,VE3);rw.toString=function(){return xQ};
return rw}}}
function kC(A,f,v){var DV=A<0?"-":"";A=(DV?-A:A)+"";var w6=A.length;return DV+(w6<v?Array(v-w6+1).join(f)+A:A)}
function WOg(A){return A.replace(IwY,"\\$&")}
function R8(A){return new RegExp("^(?:"+A.map(WOg).join("|")+")","i")}
function uQ(A){for(var f={},v=-1,DV=A.length;++v<DV;)f[A[v].toLowerCase()]=v;return f}
function v$F(A,f,v){return(f=KC.exec(f.slice(v,v+1)))?(A.w=+f[0],v+f[0].length):-1}
function JUg(A,f,v){return(f=KC.exec(f.slice(v,v+1)))?(A.u=+f[0],v+f[0].length):-1}
function YKZ(A,f,v){return(f=KC.exec(f.slice(v,v+2)))?(A.U=+f[0],v+f[0].length):-1}
function lwt(A,f,v){return(f=KC.exec(f.slice(v,v+2)))?(A.V=+f[0],v+f[0].length):-1}
function pMY(A,f,v){return(f=KC.exec(f.slice(v,v+2)))?(A.W=+f[0],v+f[0].length):-1}
function xCY(A,f,v){return(f=KC.exec(f.slice(v,v+4)))?(A.y=+f[0],v+f[0].length):-1}
function dCv(A,f,v){return(f=KC.exec(f.slice(v,v+2)))?(A.y=+f[0]+(+f[0]>68?1900:2E3),v+f[0].length):-1}
function RW4(A,f,v){return(f=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(f.slice(v,v+6)))?(A.Z=f[1]?0:-(f[2]+(f[3]||"00")),v+f[0].length):-1}
function XMF(A,f,v){return(f=KC.exec(f.slice(v,v+2)))?(A.m=f[0]-1,v+f[0].length):-1}
function cXB(A,f,v){return(f=KC.exec(f.slice(v,v+2)))?(A.d=+f[0],v+f[0].length):-1}
function MiH(A,f,v){return(f=KC.exec(f.slice(v,v+3)))?(A.m=0,A.d=+f[0],v+f[0].length):-1}
function jTn(A,f,v){return(f=KC.exec(f.slice(v,v+2)))?(A.H=+f[0],v+f[0].length):-1}
function fwZ(A,f,v){return(f=KC.exec(f.slice(v,v+2)))?(A.M=+f[0],v+f[0].length):-1}
function g$i(A,f,v){return(f=KC.exec(f.slice(v,v+2)))?(A.S=+f[0],v+f[0].length):-1}
function SKv(A,f,v){return(f=KC.exec(f.slice(v,v+3)))?(A.L=+f[0],v+f[0].length):-1}
function mCH(A,f,v){return(f=KC.exec(f.slice(v,v+6)))?(A.L=Math.floor(f[0]/1E3),v+f[0].length):-1}
function urZ(A,f,v){return(A=Qmg.exec(f.slice(v,v+1)))?v+A[0].length:-1}
function LOb(A,f,v){return(f=KC.exec(f.slice(v)))?(A.Q=+f[0],v+f[0].length):-1}
function AUQ(A,f,v){return(f=KC.exec(f.slice(v)))?(A.Q=+f[0]*1E3,v+f[0].length):-1}
function hIa(A,f){return kC(A.getDate(),f,2)}
function tii(A,f){return kC(A.getHours(),f,2)}
function HpF(A,f){return kC(A.getHours()%12||12,f,2)}
function eWF(A,f){return kC(1+sT4.count(is(A),A),f,3)}
function Gqn(A,f){return kC(A.getMilliseconds(),f,3)}
function DCF(A,f){return Gqn(A,f)+"000"}
function ViH(A,f){return kC(A.getMonth()+1,f,2)}
function bpg(A,f){return kC(A.getMinutes(),f,2)}
function qKF(A,f){return kC(A.getSeconds(),f,2)}
function FOe(A){A=A.getDay();return A===0?7:A}
function awi(A,f){return kC(yUH.count(is(A),A),f,2)}
function wMi(A,f){var v=A.getDay();A=v>=4||v===0?XPT(A):XPT.ceil(A);return kC(XPT.count(is(A),A)+(is(A).getDay()===4),f,2)}
function Zpe(A){return A.getDay()}
function smY(A,f){return kC(Sg3.count(is(A),A),f,2)}
function hWH(A,f){return kC(A.getFullYear()%100,f,2)}
function Gig(A,f){return kC(A.getFullYear()%1E4,f,4)}
function E$g(A){A=A.getTimezoneOffset();return(A>0?"-":(A*=-1,"+"))+kC(A/60|0,"0",2)+kC(A%60,"0",2)}
function kqn(A,f){return kC(A.getUTCDate(),f,2)}
function NfF(A,f){return kC(A.getUTCHours(),f,2)}
function kiF(A,f){return kC(A.getUTCHours()%12||12,f,2)}
function Tfv(A,f){return kC(1+ZEf.count(re(A),A),f,3)}
function TWv(A,f){return kC(A.getUTCMilliseconds(),f,3)}
function KOt(A,f){return TWv(A,f)+"000"}
function cUH(A,f){return kC(A.getUTCMonth()+1,f,2)}
function jmF(A,f){return kC(A.getUTCMinutes(),f,2)}
function $CF(A,f){return kC(A.getUTCSeconds(),f,2)}
function ip4(A){A=A.getUTCDay();return A===0?7:A}
function rUY(A,f){return kC(BfQ.count(re(A),A),f,2)}
function OpH(A,f){var v=A.getUTCDay();A=v>=4||v===0?fQX(A):fQX.ceil(A);return kC(fQX.count(re(A),A)+(re(A).getUTCDay()===4),f,2)}
function UCe(A){return A.getUTCDay()}
function o$b(A,f){return kC(M8D.count(re(A),A),f,2)}
function PSQ(A,f){return kC(A.getUTCFullYear()%100,f,2)}
function n$g(A,f){return kC(A.getUTCFullYear()%1E4,f,4)}
function CSZ(){return"+0000"}
function NW6(){return"%"}
function E7B(A){return+A}
function KX9(A){return Math.floor(+A/1E3)}
function KW(A){for(var f=A.length/6|0,v=Array(f),DV=0;DV<f;)v[DV]="#"+A.slice(DV*6,++DV*6);return v}
function xC(A){return zWO(A[A.length-1])}
function bXK(A){var f=A.length;return function(v){return A[Math.max(0,Math.min(f-1,Math.floor(v*f)))]}}
function $Kv(A){this._context=A}
function iEB(A){this._curve=A}
function rXB(A,f,v){var DV=A._x1-A._x0;f-=A._x1;var w6=(A._y1-A._y0)/(DV||f<0&&-0);A=(v-A._y1)/(f||DV<0&&-0);return((w6<0?-1:1)+(A<0?-1:1))*Math.min(Math.abs(w6),Math.abs(A),.5*Math.abs((w6*f+A*DV)/(DV+f)))||0}
function OEo(A,f){var v=A._x1-A._x0;return v?(3*(A._y1-A._y0)/v-f)/2:f}
function LX6(A,f,v){var DV=A._x0,w6=A._x1,k3=A._y1,r6=(w6-DV)/3;A._context.bezierCurveTo(DV+r6,A._y0+r6*f,w6-r6,k3-r6*v,w6,k3)}
function AX8(A){this._context=A}
function UKa(A){this._context=A}
function WC(A,f,v){this.k=A;this.x=f;this.y=v}
(function(A){A.length===1&&(A=t(A));return{left:function(f,v,DV,w6){DV==null&&(DV=0);w6==null&&(w6=f.length);for(;DV<w6;){var k3=DV+w6>>>1;A(f[k3],v)<0?DV=k3+1:w6=k3}return DV},
right:function(f,v,DV,w6){DV==null&&(DV=0);w6==null&&(w6=f.length);for(;DV<w6;){var k3=DV+w6>>>1;A(f[k3],v)>0?w6=k3:DV=k3+1}return DV}}})(D);
var R_g={value:function(){}};
e.prototype=H.prototype={constructor:e,on:function(A,f){var v=this._,DV=V(A+"",v),w6,k3=-1,r6=DV.length;if(arguments.length<2)for(;++k3<r6;){var XX;if(XX=w6=(A=DV[k3]).type){a:{XX=v[w6];for(var t3=0,Bk=XX.length;t3<Bk;++t3)if((w6=XX[t3]).name===A.name){w6=w6.value;break a}w6=void 0}XX=w6}if(XX)return w6}else{if(f!=null&&typeof f!=="function")throw Error("Ce`"+f);for(;++k3<r6;)if(w6=(A=DV[k3]).type)v[w6]=b(v[w6],A.name,f);else if(f==null)for(w6 in v)v[w6]=b(v[w6],A.name,null);return this}},
copy:function(){var A={},f=this._,v;for(v in f)A[v]=f[v].slice();return new e(A)},
call:function(A,f){if((w6=arguments.length-2)>0)for(var v=Array(w6),DV=0,w6,k3;DV<w6;++DV)v[DV]=arguments[DV+2];if(!this._.hasOwnProperty(A))throw Error("we`"+A);k3=this._[A];DV=0;for(w6=k3.length;DV<w6;++DV)k3[DV].value.apply(f,v)},
apply:function(A,f,v){if(!this._.hasOwnProperty(A))throw Error("we`"+A);A=this._[A];for(var DV=0,w6=A.length;DV<w6;++DV)A[DV].value.apply(f,v)}};
var lI={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/"},o76=function(A){return function(){return this.matches(A)}};
if(typeof document!=="undefined"){var I8=document.documentElement;if(!I8.matches){var DKZ=I8.webkitMatchesSelector||I8.msMatchesSelector||I8.mozMatchesSelector||I8.oMatchesSelector;o76=function(A){return function(){return DKZ.call(this,A)}}}}var Pjf=o76;
c.prototype={constructor:c,appendChild:function(A){return this._parent.insertBefore(A,this._next)},
insertBefore:function(A,f){return this._parent.insertBefore(A,f)},
querySelector:function(A){return this._parent.querySelector(A)},
querySelectorAll:function(A){return this._parent.querySelectorAll(A)}};
var mCw={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(mCw={mouseenter:"mouseover",mouseleave:"mouseout"}));var u_e=[null];ua.prototype=$Q.prototype={constructor:ua,select:function(A){typeof A!=="function"&&(A=k(A));for(var f=this._groups,v=f.length,DV=Array(v),w6=0;w6<v;++w6)for(var k3=f[w6],r6=k3.length,XX=DV[w6]=Array(r6),t3,Bk,H9=0;H9<r6;++H9)(t3=k3[H9])&&(Bk=A.call(t3,t3.__data__,H9,k3))&&("__data__"in t3&&(Bk.__data__=t3.__data__),XX[H9]=Bk);return new ua(DV,
this._parents)},
filter:function(A){typeof A!=="function"&&(A=Pjf(A));for(var f=this._groups,v=f.length,DV=Array(v),w6=0;w6<v;++w6)for(var k3=f[w6],r6=k3.length,XX=DV[w6]=[],t3,Bk=0;Bk<r6;++Bk)(t3=k3[Bk])&&A.call(t3,t3.__data__,Bk,k3)&&XX.push(t3);return new ua(DV,this._parents)},
data:function(A,f){if(!A)return ne=Array(this.size()),Bk=-1,this.each(function(xM){ne[++Bk]=xM}),ne;
var v=f?L:S,DV=this._parents,w6=this._groups;typeof A!=="function"&&(A=U(A));for(var k3=w6.length,r6=Array(k3),XX=Array(k3),t3=Array(k3),Bk=0;Bk<k3;++Bk){var H9=DV[Bk],h3=w6[Bk],IB=h3.length,ne=A.call(H9,H9&&H9.__data__,Bk,DV),OY=ne.length,dN=XX[Bk]=Array(OY),Uk=r6[Bk]=Array(OY);IB=t3[Bk]=Array(IB);v(H9,h3,dN,Uk,IB,ne,f);h3=H9=0;for(var tn;H9<OY;++H9)if(IB=dN[H9]){for(H9>=h3&&(h3=H9+1);!(tn=Uk[h3])&&++h3<OY;);IB._next=tn||null}}r6=new ua(r6,DV);r6._enter=XX;r6._exit=t3;return r6},
enter:function(){return new ua(this._enter||this._groups.map(T),this._parents)},
exit:function(){return new ua(this._exit||this._groups.map(T),this._parents)},
merge:function(A){var f=this._groups;A=A._groups;for(var v=f.length,DV=Math.min(v,A.length),w6=Array(v),k3=0;k3<DV;++k3)for(var r6=f[k3],XX=A[k3],t3=r6.length,Bk=w6[k3]=Array(t3),H9,h3=0;h3<t3;++h3)if(H9=r6[h3]||XX[h3])Bk[h3]=H9;for(;k3<v;++k3)w6[k3]=f[k3];return new ua(w6,this._parents)},
order:function(){for(var A=this._groups,f=-1,v=A.length;++f<v;)for(var DV=A[f],w6=DV.length-1,k3=DV[w6],r6;--w6>=0;)if(r6=DV[w6])k3&&k3!==r6.nextSibling&&k3.parentNode.insertBefore(r6,k3),k3=r6;return this},
sort:function(A){function f(h3,IB){return h3&&IB?A(h3.__data__,IB.__data__):!h3-!IB}
A||(A=J);for(var v=this._groups,DV=v.length,w6=Array(DV),k3=0;k3<DV;++k3){for(var r6=v[k3],XX=r6.length,t3=w6[k3]=Array(XX),Bk,H9=0;H9<XX;++H9)if(Bk=r6[H9])t3[H9]=Bk;t3.sort(f)}return(new ua(w6,this._parents)).order()},
call:function(){var A=arguments[0];arguments[0]=this;A.apply(null,arguments);return this},
nodes:function(){var A=Array(this.size()),f=-1;this.each(function(){A[++f]=this});
return A},
node:function(){for(var A=this._groups,f=0,v=A.length;f<v;++f)for(var DV=A[f],w6=0,k3=DV.length;w6<k3;++w6){var r6=DV[w6];if(r6)return r6}return null},
size:function(){var A=0;this.each(function(){++A});
return A},
empty:function(){return!this.node()},
each:function(A){for(var f=this._groups,v=0,DV=f.length;v<DV;++v)for(var w6=f[v],k3=0,r6=w6.length,XX;k3<r6;++k3)(XX=w6[k3])&&A.call(XX,XX.__data__,k3,w6);return this},
attr:function(A,f){var v=a(A);if(arguments.length<2){var DV=this.node();return v.local?DV.getAttributeNS(v.space,v.local):DV.getAttribute(v)}return this.each((f==null?v.local?Q:g:typeof f==="function"?v.local?tT:I:v.local?R:u)(v,f))},
style:function(A,f,v){return arguments.length>1?this.each((f==null?ZV:typeof f==="function"?o$:ED)(A,f,v==null?"":v)):jV(this.node(),A)},
property:function(A,f){return arguments.length>1?this.each((f==null?i8:typeof f==="function"?Mu:g6)(A,f)):this.node()[A]},
text:function(A){return arguments.length?this.each(A==null?LQ:(typeof A==="function"?fQ:DO)(A)):this.node().textContent},
html:function(A){return arguments.length?this.each(A==null?yA:(typeof A==="function"?Mw:T4)(A)):this.node().innerHTML},
append:function(A){var f=typeof A==="function"?A:K(A);return this.select(function(){return this.appendChild(f.apply(this,arguments))})},
insert:function(A,f){var v=typeof A==="function"?A:K(A),DV=f==null?X6:typeof f==="function"?f:k(f);return this.select(function(){return this.insertBefore(v.apply(this,arguments),DV.apply(this,arguments)||null)})},
remove:function(){return this.each(yZ)},
clone:function(A){return this.select(A?FX:kQ)},
datum:function(A){return arguments.length?this.property("__data__",A):this.node().__data__},
on:function(A,f,v){var DV=ZO(A+""),w6=DV.length,k3;if(arguments.length<2){var r6=this.node().__on;if(r6)for(var XX=0,t3=r6.length,Bk;XX<t3;++XX){var H9=0;for(Bk=r6[XX];H9<w6;++H9)if((k3=DV[H9]).type===Bk.type&&k3.name===Bk.name)return Bk.value}}else{r6=f?bY:Nw;v==null&&(v=!1);for(H9=0;H9<w6;++H9)this.each(r6(DV[H9],f,v));return this}},
dispatch:function(A,f){return this.each((typeof f==="function"?Zf:QV)(A,f))}};
var Wv4=0;ia.prototype=function(){return new ia}.prototype={constructor:ia,
get:function(A){for(var f=this._;!(f in A);)if(!(A=A.parentNode))return;return A[f]},
set:function(A,f){return A[this._]=f},
remove:function(A){return this._ in A&&delete A[this._]},
toString:function(){return this._}};
var OQ=1/.7,ILH=/^#([0-9a-f]{3})$/,QWg=/^#([0-9a-f]{6})$/,yzH=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),BrF=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),z_e=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),DBH=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*\\)$"),
ttF=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),HiF=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*\\)$"),Miw={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};
jf(Hv,EF,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
jf(Wt,d4,TH(Hv,{brighter:function(A){A=A==null?OQ:Math.pow(OQ,A);return new Wt(this.r*A,this.g*A,this.b*A,this.opacity)},
darker:function(A){A=A==null?.7:Math.pow(.7,A);return new Wt(this.r*A,this.g*A,this.b*A,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"#"+bM(this.r)+bM(this.g)+bM(this.b)},
toString:function(){var A=this.opacity;A=isNaN(A)?1:Math.max(0,Math.min(1,A));return(A===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))+(A===1?")":", "+A+")")}}));
jf(hy,AW,TH(Hv,{brighter:function(A){A=A==null?OQ:Math.pow(OQ,A);return new hy(this.h,this.s,this.l*A,this.opacity)},
darker:function(A){A=A==null?.7:Math.pow(.7,A);return new hy(this.h,this.s,this.l*A,this.opacity)},
rgb:function(){var A=this.h%360+(this.h<0)*360,f=this.l,v=f+(f<.5?f:1-f)*(isNaN(A)||isNaN(this.s)?0:this.s);f=2*f-v;return new Wt(s5(A>=240?A-240:A+120,f,v),s5(A,f,v),s5(A<120?A+240:A-120,f,v),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 SKB=Math.PI/180,LOf=180/Math.PI,fwV=4/29,js=6/29,XM3=3*js*js,ePH=js*js*js;jf(nK,function(A,f,v,DV){return arguments.length===1?W$(A):new nK(A,f,v,DV==null?1:DV)},TH(Hv,{brighter:function(A){return new nK(this.l+18*(A==null?1:A),this.a,this.b,this.opacity)},
darker:function(A){return new nK(this.l-18*(A==null?1:A),this.a,this.b,this.opacity)},
rgb:function(){var A=(this.l+16)/116,f=isNaN(this.a)?A:A+this.a/500,v=isNaN(this.b)?A:A-this.b/200;f=.96422*R$(f);A=1*R$(A);v=.82521*R$(v);return new Wt(KQ(3.1338561*f-1.6168667*A-.4906146*v),KQ(-.9787684*f+1.9161415*A+.033454*v),KQ(.0719453*f-.2289914*A+1.4052427*v),this.opacity)}}));
jf(c9,ov,TH(Hv,{brighter:function(A){return new c9(this.h,this.c,this.l+18*(A==null?1:A),this.opacity)},
darker:function(A){return new c9(this.h,this.c,this.l-18*(A==null?1:A),this.opacity)},
rgb:function(){return W$(this).rgb()}}));
var AUv=1.78277*-.29227-.1347134789;jf(fe,kv,TH(Hv,{brighter:function(A){A=A==null?OQ:Math.pow(OQ,A);return new fe(this.h,this.s,this.l*A,this.opacity)},
darker:function(A){A=A==null?.7:Math.pow(.7,A);return new fe(this.h,this.s,this.l*A,this.opacity)},
rgb:function(){var A=isNaN(this.h)?0:(this.h+120)*SKB,f=+this.l,v=isNaN(this.s)?0:this.s*f*(1-f),DV=Math.cos(A);A=Math.sin(A);return new Wt(255*(f+v*(-.14861*DV+1.78277*A)),255*(f+v*(-.29227*DV+-.90649*A)),255*(f+1.97294*DV*v),this.opacity)}}));
var v$6=function v(f){function DV(k3,r6){var XX=w6((k3=d4(k3)).r,(r6=d4(r6)).r),t3=w6(k3.g,r6.g),Bk=w6(k3.b,r6.b),H9=IR(k3.opacity,r6.opacity);return function(h3){k3.r=XX(h3);k3.g=t3(h3);k3.b=Bk(h3);k3.opacity=H9(h3);return k3+""}}
var w6=vI(f);DV.gamma=v;return DV}(1),zWO=wq(function(f){var v=f.length-1;
return function(DV){var w6=DV<=0?DV=0:DV>=1?(DV=1,v-1):Math.floor(DV*v),k3=f[w6],r6=f[w6+1];return $h((DV-w6/v)*v,w6>0?f[w6-1]:2*k3-r6,k3,r6,w6<v-1?f[w6+2]:2*r6-k3)}});
wq(function(f){var v=f.length;return function(DV){var w6=Math.floor(((DV%=1)<0?++DV:DV)*v);return $h((DV-w6/v)*v,f[(w6+v-1)%v],f[w6%v],f[(w6+1)%v],f[(w6+2)%v])}});
var kqR=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,TW3=new RegExp(kqR.source,"g"),g$n=180/Math.PI,g78={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Qw,JXD,n7n,qqk,t8F=ct(function(f){if(f==="none")return g78;Qw||(Qw=document.createElement("DIV"),JXD=document.documentElement,n7n=document.defaultView);Qw.style.transform=f;f=n7n.getComputedStyle(JXD.appendChild(Qw),null).getPropertyValue("transform");JXD.removeChild(Qw);f=f.slice(7,-1).split(",");return iY(+f[0],+f[1],+f[2],+f[3],
+f[4],+f[5])},"px, ","px)","deg)"),HEZ=ct(function(f){if(f==null)return g78;
qqk||(qqk=document.createElementNS("http://www.w3.org/2000/svg","g"));qqk.setAttribute("transform",f);if(!(f=qqk.transform.baseVal.consolidate()))return g78;f=f.matrix;return iY(f.a,f.b,f.c,f.d,f.e,f.f)},", ",")",")");
FF(vU);FF(IR);h$(vU);h$(IR);Qo(vU);var YgA=Qo(IR),$c=0,Yu=0,vC=0,yWR,lQ,QAV=0,DJ=0,IUD=0,JS=typeof performance==="object"&&performance.now?performance:Date,JUn=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(f){setTimeout(f,17)};
on.prototype=mw.prototype={constructor:on,restart:function(f,v,DV){if(typeof f!=="function")throw new TypeError("De");DV=(DV==null?v1():+DV)+(v==null?0:+v);this._next||lQ===this||(lQ?lQ._next=this:yWR=this,lQ=this);this._call=f;this._time=DV;SW()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,SW())}};
var bib=H("start","end","interrupt"),qzF=[],eIe=$Q.prototype.constructor,Cjv=0,UQ=$Q.prototype;BP.prototype=function(f){return $Q().transition(f)}.prototype={constructor:BP,
select:function(f){var v=this._name,DV=this._id;typeof f!=="function"&&(f=k(f));for(var w6=this._groups,k3=w6.length,r6=Array(k3),XX=0;XX<k3;++XX)for(var t3=w6[XX],Bk=t3.length,H9=r6[XX]=Array(Bk),h3,IB,ne=0;ne<Bk;++ne)(h3=t3[ne])&&(IB=f.call(h3,h3.__data__,ne,t3))&&("__data__"in h3&&(IB.__data__=h3.__data__),H9[ne]=IB,cX$(H9[ne],v,DV,ne,H9,XL(h3,DV)));return new BP(r6,this._parents,v,DV)},
filter:function(f){typeof f!=="function"&&(f=Pjf(f));for(var v=this._groups,DV=v.length,w6=Array(DV),k3=0;k3<DV;++k3)for(var r6=v[k3],XX=r6.length,t3=w6[k3]=[],Bk,H9=0;H9<XX;++H9)(Bk=r6[H9])&&f.call(Bk,Bk.__data__,H9,r6)&&t3.push(Bk);return new BP(w6,this._parents,this._name,this._id)},
merge:function(f){if(f._id!==this._id)throw Error();var v=this._groups;f=f._groups;for(var DV=v.length,w6=Math.min(DV,f.length),k3=Array(DV),r6=0;r6<w6;++r6)for(var XX=v[r6],t3=f[r6],Bk=XX.length,H9=k3[r6]=Array(Bk),h3,IB=0;IB<Bk;++IB)if(h3=XX[IB]||t3[IB])H9[IB]=h3;for(;r6<DV;++r6)k3[r6]=v[r6];return new BP(k3,this._parents,this._name,this._id)},
selection:function(){return new eIe(this._groups,this._parents)},
transition:function(){for(var f=this._name,v=this._id,DV=++Cjv,w6=this._groups,k3=w6.length,r6=0;r6<k3;++r6)for(var XX=w6[r6],t3=XX.length,Bk,H9=0;H9<t3;++H9)if(Bk=XX[H9]){var h3=XL(Bk,v);cX$(Bk,f,DV,H9,XX,{time:h3.time+h3.delay+h3.duration,delay:0,duration:h3.duration,ease:h3.ease})}return new BP(w6,this._parents,f,DV)},
call:UQ.call,nodes:UQ.nodes,node:UQ.node,size:UQ.size,empty:UQ.empty,each:UQ.each,on:function(f,v){var DV=this._id;return arguments.length<2?XL(this.node(),DV).on.on(f):this.each(r14(DV,f,v))},
attr:function(f,v){var DV=a(f),w6=DV==="transform"?HEZ:lw9;return this.attrTween(f,typeof v==="function"?(DV.local?ESZ:G6Q)(DV,w6,$K3(this,"attr."+f,v)):v==null?(DV.local?ZiY:wKZ)(DV):(DV.local?hPZ:sji)(DV,w6,v+""))},
attrTween:function(f,v){var DV="attr."+f;if(arguments.length<2)return(DV=this.tween(DV))&&DV._value;if(v==null)return this.tween(DV,null);if(typeof v!=="function")throw Error();var w6=a(f);return this.tween(DV,(w6.local?Kev:N3v)(w6,v))},
style:function(f,v,DV){var w6=f==="transform"?t8F:lw9;return v==null?this.styleTween(f,UBH(f,w6)).on("end.style."+f,oSF(f)):this.styleTween(f,typeof v==="function"?nS4(f,w6,$K3(this,"style."+f,v)):P2e(f,w6,v+""),DV)},
styleTween:function(f,v,DV){var w6="style."+f;if(arguments.length<2)return(w6=this.tween(w6))&&w6._value;if(v==null)return this.tween(w6,null);if(typeof v!=="function")throw Error();return this.tween(w6,C2O(f,v,DV==null?"":DV))},
text:function(f){return this.tween("text",typeof f==="function"?MtO($K3(this,"text",f)):mBH(f==null?"":f+""))},
remove:function(){return this.on("end.remove",OiY(this._id))},
tween:function(f,v){var DV=this._id;if(arguments.length<2){DV=XL(this.node(),DV).tween;for(var w6=0,k3=DV.length,r6;w6<k3;++w6)if((r6=DV[w6]).name===f)return r6.value;return null}return this.each((v==null?FeY:aBi)(DV,f,v))},
delay:function(f){var v=this._id;return arguments.length?this.each((typeof f==="function"?k6F:T3F)(v,f)):XL(this.node(),v).delay},
duration:function(f){var v=this._id;return arguments.length?this.each((typeof f==="function"?c1v:jjY)(v,f)):XL(this.node(),v).duration},
ease:function(f){var v=this._id;return arguments.length?this.each($BF(v,f)):XL(this.node(),v).ease}};
var lQX={time:null,delay:0,duration:250,ease:function(f){return((f*=2)<=1?f*f*f:(f-=2)*f*f+2)/2}};
$Q.prototype.transition=function(f){var v;if(f instanceof BP){var DV=f._id;f=f._name}else DV=++Cjv,(v=lQX).time=v1(),f=f==null?null:f+"";for(var w6=this._groups,k3=w6.length,r6=0;r6<k3;++r6)for(var XX=w6[r6],t3=XX.length,Bk,H9=0;H9<t3;++H9)if(Bk=XX[H9]){var h3=Bk,IB=f,ne=DV,OY=H9,dN=XX,Uk;if(!(Uk=v))a:{Uk=void 0;for(var tn=DV;!(Uk=Bk.__transition)||!(Uk=Uk[tn]);)if(!(Bk=Bk.parentNode)){Uk=(lQX.time=v1(),lQX);break a}}cX$(h3,IB,ne,OY,dN,Uk)}return new BP(w6,this._parents,f,DV)};
["e","w"].map(iE$);["n","s"].map(iE$);"n e s w nw ne se sw".split(" ").map(iE$);rX$.prototype=function(){return new rX$}.prototype={constructor:rX$,
moveTo:function(f,v){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+v)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(f,v){this._+="L"+(this._x1=+f)+","+(this._y1=+v)},
bezierCurveTo:function(f,v,DV,w6,k3,r6){this._+="C"+ +f+","+ +v+","+ +DV+","+ +w6+","+(this._x1=+k3)+","+(this._y1=+r6)},
rect:function(f,v,DV,w6){this._+="M"+(this._x0=this._x1=+f)+","+(this._y0=this._y1=+v)+"h"+ +DV+"v"+ +w6+"h"+-DV+"Z"},
toString:function(){return this._}};
Bi6.prototype=pMa.prototype={constructor:Bi6,has:function(f){return" "+f in this},
get:function(f){return this[" "+f]},
set:function(f,v){this[" "+f]=v;return this},
remove:function(f){f=" "+f;return f in this&&delete this[f]},
clear:function(){for(var f in this)f[0]===" "&&delete this[f]},
keys:function(){var f=[],v;for(v in this)v[0]===" "&&f.push(v.slice(1));return f},
values:function(){var f=[],v;for(v in this)v[0]===" "&&f.push(this[v]);return f},
entries:function(){var f=[],v;for(v in this)v[0]===" "&&f.push({key:v.slice(1),value:this[v]});return f},
size:function(){var f=0,v;for(v in this)v[0]===" "&&++f;return f},
empty:function(){for(var f in this)if(f[0]===" ")return!1;return!0},
each:function(f){for(var v in this)v[0]===" "&&f(this[v],v.slice(1),this)}};
var VR=pMa.prototype;zEV.prototype=function(f,v){var DV=new zEV;if(f instanceof zEV)f.each(function(r6){DV.add(r6)});
else if(f){var w6=-1,k3=f.length;if(v==null)for(;++w6<k3;)DV.add(f[w6]);else for(;++w6<k3;)DV.add(v(f[w6],w6,f))}return DV}.prototype={constructor:zEV,
has:VR.has,add:function(f){this[" "+f]=f;return this},
remove:VR.remove,clear:VR.clear,values:VR.keys,size:VR.size,empty:VR.empty,each:VR.each};var RWo={},OE6={},V8i=xCa(",").parse,bEO=xCa("\t").parse;urV(V8i);urV(bEO);var YL=function(f,v,DV){v=new UK8(v==null?Leb:v,DV==null?A1O:DV,NaN,NaN,NaN,NaN);return f==null?v:v.addAll(f)}.prototype=UK8.prototype;
YL.copy=function(){var f=new UK8(this._x,this._y,this._x0,this._y0,this._x1,this._y1),v=this._root,DV,w6;if(!v)return f;if(!v.length)return f._root=Iwa(v),f;for(DV=[{source:v,target:f._root=Array(4)}];v=DV.pop();)for(var k3=0;k3<4;++k3)if(w6=v.source[k3])w6.length?DV.push({source:w6,target:v.target[k3]=Array(4)}):v.target[k3]=Iwa(w6);return f};
YL.add=function(f){var v=+this._x.call(null,f),DV=+this._y.call(null,f);return WOn(this.cover(v,DV),v,DV,f)};
YL.addAll=function(f){var v,DV,w6=f.length,k3,r6,XX=Array(w6),t3=Array(w6),Bk=Infinity,H9=Infinity,h3=-Infinity,IB=-Infinity;for(DV=0;DV<w6;++DV)isNaN(k3=+this._x.call(null,v=f[DV]))||isNaN(r6=+this._y.call(null,v))||(XX[DV]=k3,t3[DV]=r6,k3<Bk&&(Bk=k3),k3>h3&&(h3=k3),r6<H9&&(H9=r6),r6>IB&&(IB=r6));h3<Bk&&(Bk=this._x0,h3=this._x1);IB<H9&&(H9=this._y0,IB=this._y1);this.cover(Bk,H9).cover(h3,IB);for(DV=0;DV<w6;++DV)WOn(this,XX[DV],t3[DV],f[DV]);return this};
YL.cover=function(f,v){if(isNaN(f=+f)||isNaN(v=+v))return this;var DV=this._x0,w6=this._y0,k3=this._x1,r6=this._y1;if(isNaN(DV))k3=(DV=Math.floor(f))+1,r6=(w6=Math.floor(v))+1;else if(DV>f||f>k3||w6>v||v>r6){var XX=k3-DV,t3=this._root,Bk;switch(Bk=(v<(w6+r6)/2)<<1|f<(DV+k3)/2){case 0:do{var H9=Array(4);H9[Bk]=t3;t3=H9}while(XX*=2,k3=DV+XX,r6=w6+XX,f>k3||v>r6);break;case 1:do H9=Array(4),H9[Bk]=t3,t3=H9;while(XX*=2,DV=k3-XX,r6=w6+XX,DV>f||v>r6);break;case 2:do H9=Array(4),H9[Bk]=t3,t3=H9;while(XX*=
2,k3=DV+XX,w6=r6-XX,f>k3||w6>v);break;case 3:do H9=Array(4),H9[Bk]=t3,t3=H9;while(XX*=2,DV=k3-XX,w6=r6-XX,DV>f||w6>v)}this._root&&this._root.length&&(this._root=t3)}else return this;this._x0=DV;this._y0=w6;this._x1=k3;this._y1=r6;return this};
YL.data=function(){var f=[];this.visit(function(v){if(!v.length){do f.push(v.data);while(v=v.next)}});
return f};
YL.extent=function(f){return arguments.length?this.cover(+f[0][0],+f[0][1]).cover(+f[1][0],+f[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
YL.find=function(f,v,DV){var w6=this._x0,k3=this._y0,r6,XX,t3,Bk,H9=this._x1,h3=this._y1,IB=[],ne=this._root,OY;ne&&IB.push(new Jh(ne,w6,k3,H9,h3));DV==null?DV=Infinity:(w6=f-DV,k3=v-DV,H9=f+DV,h3=v+DV,DV*=DV);for(;OY=IB.pop();)if(!(!(ne=OY.node)||(r6=OY.x0)>H9||(XX=OY.y0)>h3||(t3=OY.x1)<w6||(Bk=OY.y1)<k3))if(ne.length){OY=(r6+t3)/2;var dN=(XX+Bk)/2;IB.push(new Jh(ne[3],OY,dN,t3,Bk),new Jh(ne[2],r6,dN,OY,Bk),new Jh(ne[1],OY,XX,t3,dN),new Jh(ne[0],r6,XX,OY,dN));if(ne=(v>=dN)<<1|f>=OY)OY=IB[IB.length-
1],IB[IB.length-1]=IB[IB.length-1-ne],IB[IB.length-1-ne]=OY}else if(OY=f-+this._x.call(null,ne.data),dN=v-+this._y.call(null,ne.data),OY=OY*OY+dN*dN,OY<DV){var Uk=Math.sqrt(DV=OY);w6=f-Uk;k3=v-Uk;H9=f+Uk;h3=v+Uk;Uk=ne.data}return Uk};
YL.remove=function(f){if(isNaN(Bk=+this._x.call(null,f))||isNaN(H9=+this._y.call(null,f)))return this;var v,DV=this._root,w6,k3=this._x0,r6=this._y0,XX=this._x1,t3=this._y1,Bk,H9,h3,IB,ne,OY,dN;if(!DV)return this;if(DV.length)for(;;){(ne=Bk>=(h3=(k3+XX)/2))?k3=h3:XX=h3;(OY=H9>=(IB=(r6+t3)/2))?r6=IB:t3=IB;if(!(v=DV,DV=DV[dN=OY<<1|ne]))return this;if(!DV.length)break;if(v[dN+1&3]||v[dN+2&3]||v[dN+3&3]){var Uk=v;var tn=dN}}for(;DV.data!==f;)if(!(w6=DV,DV=DV.next))return this;(f=DV.next)&&delete DV.next;
if(w6)return f?w6.next=f:delete w6.next,this;if(!v)return this._root=f,this;f?v[dN]=f:delete v[dN];(DV=v[0]||v[1]||v[2]||v[3])&&DV===(v[3]||v[2]||v[1]||v[0])&&!DV.length&&(Uk?Uk[tn]=DV:this._root=DV);return this};
YL.removeAll=function(f){for(var v=0,DV=f.length;v<DV;++v)this.remove(f[v]);return this};
YL.root=function(){return this._root};
YL.size=function(){var f=0;this.visit(function(v){if(!v.length){do++f;while(v=v.next)}});
return f};
YL.visit=function(f){var v=[],DV,w6=this._root,k3,r6,XX,t3,Bk;for(w6&&v.push(new Jh(w6,this._x0,this._y0,this._x1,this._y1));DV=v.pop();)if(!f(w6=DV.node,r6=DV.x0,XX=DV.y0,t3=DV.x1,Bk=DV.y1)&&w6.length){DV=(r6+t3)/2;var H9=(XX+Bk)/2;(k3=w6[3])&&v.push(new Jh(k3,DV,H9,t3,Bk));(k3=w6[2])&&v.push(new Jh(k3,r6,H9,DV,Bk));(k3=w6[1])&&v.push(new Jh(k3,DV,XX,t3,H9));(k3=w6[0])&&v.push(new Jh(k3,r6,XX,DV,H9))}};
YL.visitAfter=function(f){var v=[],DV=[],w6;for(this._root&&v.push(new Jh(this._root,this._x0,this._y0,this._x1,this._y1));w6=v.pop();){var k3=w6.node;if(k3.length){var r6,XX=w6.x0,t3=w6.y0,Bk=w6.x1,H9=w6.y1,h3=(XX+Bk)/2,IB=(t3+H9)/2;(r6=k3[0])&&v.push(new Jh(r6,XX,t3,h3,IB));(r6=k3[1])&&v.push(new Jh(r6,h3,t3,Bk,IB));(r6=k3[2])&&v.push(new Jh(r6,XX,IB,h3,H9));(r6=k3[3])&&v.push(new Jh(r6,h3,IB,Bk,H9))}DV.push(w6)}for(;w6=DV.pop();)f(w6.node,w6.x0,w6.y0,w6.x1,w6.y1);return this};
YL.x=function(f){return arguments.length?(this._x=f,this):this._x};
YL.y=function(f){return arguments.length?(this._y=f,this):this._y};
var lB4=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;o7X.prototype=PjV.prototype;PjV.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 zWf,DKV={"%":function(f,v){return(f*100).toFixed(v)},
b:function(f){return Math.round(f).toString(2)},
c:function(f){return f+""},
d:function(f){return Math.round(f).toString(10)},
e:function(f,v){return f.toExponential(v)},
f:function(f,v){return f.toFixed(v)},
g:function(f,v){return f.toPrecision(v)},
o:function(f){return Math.round(f).toString(8)},
p:function(f,v){return Qmn(f*100,v)},
r:Qmn,s:function(f,v){var DV=DOu(f,v);if(!DV)return f+"";var w6=DV[0];DV=DV[1];DV=DV-(zWf=Math.max(-8,Math.min(8,Math.floor(DV/3)))*3)+1;var k3=w6.length;return DV===k3?w6:DV>k3?w6+Array(DV-k3+1).join("0"):DV>0?w6.slice(0,DV)+"."+w6.slice(DV):"0."+Array(1-DV).join("0")+DOu(f,Math.max(0,v+DV-1))[0]},
X:function(f){return Math.round(f).toString(16).toUpperCase()},
x:function(f){return Math.round(f).toString(16)}},Bfv="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),qgF;
(function(f){return qgF=vSe(f)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});CJ.prototype={constructor:CJ,reset:function(){this.s=this.t=0},
add:function(f){t86(FY$,f,this.t);t86(this,FY$.s,this.s);this.s?this.t+=FY$.t:this.s=FY$.t},
valueOf:function(){return this.s}};
var FY$=new CJ,vF=Math.PI,vX=vF/2,mKn=vF/4,FXQ=vF*2,v7V=vF/180,zq=Math.abs,pPA=Math.atan,FXv=Math.atan2,ps=Math.cos,i_=Math.sin,HX3=Math.sqrt;new CJ;new CJ;new CJ;var dKV=new CJ;(function(f,v,DV,w6){return function(k3){function r6(RZ,jT){f(RZ,jT)&&k3.point(RZ,jT)}
function XX(RZ,jT){ne.point(RZ,jT)}
function t3(){In.point=XX;ne.lineStart()}
function Bk(){In.point=r6;ne.lineEnd()}
function H9(RZ,jT){EO.push([RZ,jT]);dN.point(RZ,jT)}
function h3(){dN.lineStart();EO=[]}
function IB(){H9(EO[0][0],EO[0][1]);dN.lineEnd();var RZ=dN.clean(),jT=OY.result(),yl=jT.length,hp;EO.pop();tn.push(EO);EO=null;if(yl)if(RZ&1){if(yl=jT[0],(jT=yl.length-1)>0){Uk||(k3.polygonStart(),Uk=!0);k3.lineStart();for(RZ=0;RZ<jT;++RZ)k3.point((hp=yl[RZ])[0],hp[1]);k3.lineEnd()}}else yl>1&&RZ&2&&jT.push(jT.pop().concat(jT.shift())),xM.push(jT.filter(RPF))}
var ne=v(k3),OY=dBF(),dN=v(OY),Uk=!1,tn,xM,EO,In={point:r6,lineStart:t3,lineEnd:Bk,polygonStart:function(){In.point=H9;In.lineStart=h3;In.lineEnd=IB;xM=[];tn=[]},
polygonEnd:function(){In.point=r6;In.lineStart=t3;In.lineEnd=Bk;var RZ=xM,jT=RZ.length;var yl=-1;for(var hp=0,xQ,rw;++yl<jT;)hp+=RZ[yl].length;for(xQ=Array(hp);--jT>=0;)for(rw=RZ[jT],yl=rw.length;--yl>=0;)xQ[--hp]=rw[yl];xM=xQ;RZ=tn;jT=w6[0];hp=w6[1];var sY=i_(hp);yl=[i_(jT),-ps(jT),0];rw=xQ=0;dKV.reset();sY===1?hp=vX+1E-6:sY===-1&&(hp=-vX-1E-6);sY=0;for(var Sb=RZ.length;sY<Sb;++sY)if(lv=(d1=RZ[sY]).length){var d1,lv,HF=d1[lv-1],GW=HF[0],F_=HF[1]/2+mKn,a4A=i_(F_),M8m=ps(F_);for(F_=0;F_<lv;++F_,GW=
xKV,a4A=Sgv,M8m=yw,HF=weV){var weV=d1[F_],xKV=weV[0];yw=weV[1]/2+mKn;var Sgv=i_(yw),yw=ps(yw),oq=xKV-GW,RIR=oq>=0?1:-1,uW6=RIR*oq,ZXX=uW6>vF;a4A*=Sgv;dKV.add(FXv(a4A*RIR*i_(uW6),M8m*yw+a4A*ps(uW6)));xQ+=ZXX?oq+RIR*FXQ:oq;ZXX^GW>=jT^xKV>=jT&&(HF=eIQ(HEV(HF),HEV(weV)),V8n(HF),GW=eIQ(yl,HF),V8n(GW),GW=(ZXX^oq>=0?-1:1)*tE8(GW[2]),hp>GW||hp===GW&&(HF[0]||HF[1]))&&(rw+=ZXX^oq>=0?1:-1)}}RZ=(xQ<-1E-6||xQ<1E-6&&dKV<-1E-6)^rw&1;xM.length?(Uk||(k3.polygonStart(),Uk=!0),xBF(xM,u5e,RZ,DV,k3)):RZ&&(Uk||(k3.polygonStart(),
Uk=!0),k3.lineStart(),DV(null,null,1,k3),k3.lineEnd());Uk&&(k3.polygonEnd(),Uk=!1);xM=tn=null},
sphere:function(){k3.polygonStart();k3.lineStart();DV(null,null,1,k3);k3.lineEnd();k3.polygonEnd()}};
return In}})(function(){return!0},function(f){var v=NaN,DV=NaN,w6=NaN,k3;
return{lineStart:function(){f.lineStart();k3=1},
point:function(r6,XX){var t3=r6>0?vF:-vF,Bk=zq(r6-v);if(zq(Bk-vF)<1E-6)f.point(v,DV=(DV+XX)/2>0?vX:-vX),f.point(w6,DV),f.lineEnd(),f.lineStart(),f.point(t3,DV),f.point(r6,DV),k3=0;else if(w6!==t3&&Bk>=vF){zq(v-w6)<1E-6&&(v-=w6*1E-6);zq(r6-t3)<1E-6&&(r6-=t3*1E-6);Bk=v;var H9=DV,h3=r6,IB,ne,OY=i_(Bk-h3);DV=zq(OY)>1E-6?pPA((i_(H9)*(ne=ps(XX))*i_(h3)-i_(XX)*(IB=ps(H9))*i_(Bk))/(IB*ne*OY)):(H9+XX)/2;f.point(w6,DV);f.lineEnd();f.lineStart();f.point(t3,DV);k3=0}f.point(v=r6,DV=XX);w6=t3},
lineEnd:function(){f.lineEnd();v=DV=NaN},
clean:function(){return 2-k3}}},function(f,v,DV,w6){f==null?(DV*=vX,w6.point(-vF,DV),w6.point(0,DV),w6.point(vF,DV),w6.point(vF,0),w6.point(vF,-DV),w6.point(0,-DV),w6.point(-vF,-DV),w6.point(-vF,0),w6.point(-vF,DV)):zq(f[0]-v[0])>1E-6?(f=f[0]<v[0]?vF:-vF,DV=DV*f/2,w6.point(-f,DV),w6.point(0,DV),w6.point(f,DV)):w6.point(v[0],v[1])},[-vF,
-vX]);new CJ;new CJ;new CJ;new CJ;n7D.prototype={constructor:n7D,point:function(f,v){this.stream.point(f,v)},
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()}};
ps(30*v7V);(function(f){return function(v){var DV=new n7D,w6;for(w6 in f)DV[w6]=f[w6];DV.stream=v;return DV}})({point:function(f,v){this.stream.point(f*v7V,v*v7V)}});
qgm(function(f){return HX3(2/(1+f))}).invert=p1(function(f){return 2*tE8(f/2)});
qgm(function(f){return(f=f>1?0:f<-1?vF:Math.acos(f))&&f/i_(f)}).invert=p1(function(f){return f});
HX3(3);p1(pPA);p1(tE8);p1(function(f){return 2*pPA(f)});
dP.prototype=aQn.prototype={constructor:dP,count:function(){return this.eachAfter(WeO)},
each:function(f){var v,DV=[this],w6;do{var k3=DV.reverse();for(DV=[];v=k3.pop();)if(f(v),v=v.children){var r6=0;for(w6=v.length;r6<w6;++r6)DV.push(v[r6])}}while(DV.length);return this},
eachAfter:function(f){for(var v,DV=[this],w6=[],k3,r6;v=DV.pop();)if(w6.push(v),v=v.children)for(k3=0,r6=v.length;k3<r6;++k3)DV.push(v[k3]);for(;v=w6.pop();)f(v);return this},
eachBefore:function(f){for(var v,DV=[this],w6;v=DV.pop();)if(f(v),v=v.children)for(w6=v.length-1;w6>=0;--w6)DV.push(v[w6]);return this},
sum:function(f){return this.eachAfter(function(v){for(var DV=+f(v.data)||0,w6=v.children,k3=w6&&w6.length;--k3>=0;)DV+=w6[k3].value;v.value=DV})},
sort:function(f){return this.eachBefore(function(v){v.children&&v.children.sort(f)})},
path:function(f){var v=this;var DV=v;var w6=f;if(DV!==w6){var k3=DV.ancestors(),r6=w6.ancestors(),XX=null;DV=k3.pop();for(w6=r6.pop();DV===w6;)XX=DV,DV=k3.pop(),w6=r6.pop();DV=XX}for(w6=[v];v!==DV;)v=v.parent,w6.push(v);for(v=w6.length;f!==DV;)w6.splice(v,0,f),f=f.parent;return w6},
ancestors:function(){for(var f=this,v=[f];f=f.parent;)v.push(f);return v},
links:function(){var f=this,v=[];f.each(function(DV){DV!==f&&v.push({source:DV.parent,target:DV})});
return v},
copy:function(){return aQn(this).eachBefore(y1F)}};
(function(f,v){this._=f;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=v}).prototype=Object.create(dP.prototype);
var Cj3=new Date,mKR=new Date,XP3=hE(function(){},function(f,v){f.setTime(+f+v)},function(f,v){return v-f});
XP3.every=function(f){f=Math.floor(f);return isFinite(f)&&f>0?f>1?hE(function(v){v.setTime(Math.floor(v/f)*f)},function(v,DV){v.setTime(+v+DV*f)},function(v,DV){return(DV-v)/f}):XP3:null};
hE(function(f){f.setTime(Math.floor(f/1E3)*1E3)},function(f,v){f.setTime(+f+v*1E3)},function(f,v){return(v-f)/1E3},function(f){return f.getUTCSeconds()});
hE(function(f){f.setTime(Math.floor(f/6E4)*6E4)},function(f,v){f.setTime(+f+v*6E4)},function(f,v){return(v-f)/6E4},function(f){return f.getMinutes()});
hE(function(f){var v=f.getTimezoneOffset()*6E4%36E5;v<0&&(v+=36E5);f.setTime(Math.floor((+f-v)/36E5)*36E5+v)},function(f,v){f.setTime(+f+v*36E5)},function(f,v){return(v-f)/36E5},function(f){return f.getHours()});
var sT4=hE(function(f){f.setHours(0,0,0,0)},function(f,v){f.setDate(f.getDate()+v)},function(f,v){return(v-f-(v.getTimezoneOffset()-f.getTimezoneOffset())*6E4)/864E5},function(f){return f.getDate()-1}),yUH=HW(0),Sg3=HW(1);
HW(2);HW(3);var XPT=HW(4);HW(5);HW(6);hE(function(f){f.setDate(1);f.setHours(0,0,0,0)},function(f,v){f.setMonth(f.getMonth()+v)},function(f,v){return v.getMonth()-f.getMonth()+(v.getFullYear()-f.getFullYear())*12},function(f){return f.getMonth()});
var is=hE(function(f){f.setMonth(0,1);f.setHours(0,0,0,0)},function(f,v){f.setFullYear(f.getFullYear()+v)},function(f,v){return v.getFullYear()-f.getFullYear()},function(f){return f.getFullYear()});
is.every=function(f){return isFinite(f=Math.floor(f))&&f>0?hE(function(v){v.setFullYear(Math.floor(v.getFullYear()/f)*f);v.setMonth(0,1);v.setHours(0,0,0,0)},function(v,DV){v.setFullYear(v.getFullYear()+DV*f)}):null};
hE(function(f){f.setUTCSeconds(0,0)},function(f,v){f.setTime(+f+v*6E4)},function(f,v){return(v-f)/6E4},function(f){return f.getUTCMinutes()});
hE(function(f){f.setUTCMinutes(0,0,0)},function(f,v){f.setTime(+f+v*36E5)},function(f,v){return(v-f)/36E5},function(f){return f.getUTCHours()});
var ZEf=hE(function(f){f.setUTCHours(0,0,0,0)},function(f,v){f.setUTCDate(f.getUTCDate()+v)},function(f,v){return(v-f)/864E5},function(f){return f.getUTCDate()-1}),BfQ=e9(0),M8D=e9(1);
e9(2);e9(3);var fQX=e9(4);e9(5);e9(6);hE(function(f){f.setUTCDate(1);f.setUTCHours(0,0,0,0)},function(f,v){f.setUTCMonth(f.getUTCMonth()+v)},function(f,v){return v.getUTCMonth()-f.getUTCMonth()+(v.getUTCFullYear()-f.getUTCFullYear())*12},function(f){return f.getUTCMonth()});
var re=hE(function(f){f.setUTCMonth(0,1);f.setUTCHours(0,0,0,0)},function(f,v){f.setUTCFullYear(f.getUTCFullYear()+v)},function(f,v){return v.getUTCFullYear()-f.getUTCFullYear()},function(f){return f.getUTCFullYear()});
re.every=function(f){return isFinite(f=Math.floor(f))&&f>0?hE(function(v){v.setUTCFullYear(Math.floor(v.getUTCFullYear()/f)*f);v.setUTCMonth(0,1);v.setUTCHours(0,0,0,0)},function(v,DV){v.setUTCFullYear(v.getUTCFullYear()+DV*f)}):null};
var wPf={"-":"",_:" ",0:"0"},KC=/^\s*\d+/,Qmg=/^%/,IwY=/[\\^$*+?|[\]().{}]/g,sP3;(function(f){sP3=zPb(f);lg4=sP3.utcFormat;vio=sP3.utcParse;return sP3})({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||lg4("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||vio("%Y-%m-%dT%H:%M:%S.%LZ");KW("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
KW("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");KW("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");KW("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");KW("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");KW("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");KW("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
KW("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");KW("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");KW("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");KW("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");KW("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var aQi=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(KW);xC(aQi);var wPO=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(KW);xC(wPO);var ZEO=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(KW);xC(ZEO);var sTH=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(KW);
xC(sTH);var hIY=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(KW);xC(hIY);var Gqg=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(KW);xC(Gqg);var E7v=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(KW);xC(E7v);var KXt=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(KW);xC(KXt);var NWF=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(KW);xC(NWF);var kqg=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(KW);xC(kqg);var TWQ=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(KW);xC(TWQ);var cXv=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(KW);xC(cXv);var jTi=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(KW);xC(jTi);var $KQ=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(KW);xC($KQ);var iEv=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(KW);xC(iEv);var rXv=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(KW);xC(rXv);var OE4=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(KW);xC(OE4);var UKY=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(KW);xC(UKY);var o7F=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(KW);xC(o7F);var Pjb=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(KW);xC(Pjb);var n7i=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(KW);xC(n7i);var CjQ=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(KW);xC(CjQ);var mKg=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(KW);xC(mKg);var M8F=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(KW);xC(M8F);var SgQ=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(KW);xC(SgQ);var XPF=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(KW);xC(XPF);var fQF=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(KW);xC(fQF);YgA(kv(300,.5,0),kv(-240,.5,1));YgA(kv(-100,.75,.35),kv(80,1.5,.8));YgA(kv(260,.75,.35),kv(80,1.5,.8));kv();d4();bXK(KW("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
bXK(KW("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
bXK(KW("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
bXK(KW("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
$Kv.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(f,v){f=+f;v=+v;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(f,v):this._context.moveTo(f,v);break;case 1:this._point=2;default:this._context.lineTo(f,v)}}};
(function(f){function v(DV){return new iEB(f(DV))}
v._curve=f;return v})(function(f){return new $Kv(f)});
iEB.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(f,v){this._curve.point(v*Math.sin(f),v*-Math.cos(f))}};
AX8.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:LX6(this,this._t0,OEo(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(f,v){var DV=NaN;f=+f;v=+v;if(f!==this._x1||v!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(f,v):this._context.moveTo(f,v);break;case 1:this._point=2;break;case 2:this._point=3;LX6(this,OEo(this,DV=rXB(this,f,v)),DV);break;default:LX6(this,this._t0,DV=rXB(this,f,v))}this._x0=this._x1;this._x1=f;this._y0=this._y1;this._y1=v;this._t0=DV}}};
(function(f){this._context=new UKa(f)}.prototype=Object.create(AX8.prototype)).point=function(f,v){AX8.prototype.point.call(this,v,f)};
UKa.prototype={moveTo:function(f,v){this._context.moveTo(v,f)},
closePath:function(){this._context.closePath()},
lineTo:function(f,v){this._context.lineTo(v,f)},
bezierCurveTo:function(f,v,DV,w6,k3,r6){this._context.bezierCurveTo(v,f,w6,DV,r6,k3)}};
WC.prototype={constructor:WC,scale:function(f){return f===1?this:new WC(this.k*f,this.x,this.y)},
translate:function(f,v){return f===0&v===0?this:new WC(this.k,this.x+this.k*f,this.y+this.k*v)},
apply:function(f){return[f[0]*this.k+this.x,f[1]*this.k+this.y]},
invert:function(f){return[(f[0]-this.x)/this.k,(f[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new WC(1,0,0);bkT=EF;lI.svg=lI.svg;lI.xhtml=lI.xhtml;lI.xlink=lI.xlink;lI.xml=lI.xml;lI.xmlns=lI.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 p5m="hammer_"+(Math.random()*1E6|0),dxw=function(){var D=document||document;if(!D[p5m]){var t=function(){(function(H,e,V,b){function a(nK,Y3,R$){return setTimeout(T(nK,R$),Y3)}
function w(nK,Y3,R$){return Array.isArray(nK)?(h(nK,R$[Y3],R$),!0):!1}
function h(nK,Y3,R$){var KQ;if(nK)if(nK.forEach)nK.forEach(Y3,R$);else if(nK.length!==b){var NH=0;for(KQ=nK.length;NH<KQ;NH++)Y3.call(R$,nK[NH],NH,nK)}else for(NH in nK)nK.hasOwnProperty(NH)&&Y3.call(R$,nK[NH],NH,nK)}
function K(nK,Y3,R$){for(var KQ=Object.keys(Y3),NH=0,SM=KQ.length;NH<SM;NH++)if(!R$||R$&&nK[KQ[NH]]===b)nK[KQ[NH]]=Y3[KQ[NH]];return nK}
function N(nK,Y3){return K(nK,Y3,!0)}
function k(nK,Y3,R$){Y3=Y3.prototype;var KQ=nK.prototype=Object.create(Y3);KQ.constructor=nK;KQ._super=Y3;R$&&K(KQ,R$)}
function T(nK,Y3){return function(){return nK.apply(Y3,arguments)}}
function c(nK,Y3){return typeof nK=="function"?nK.apply(Y3?Y3[0]||b:b,Y3):nK}
function U(nK,Y3,R$){h(L(Y3),function(KQ){nK.addEventListener(KQ,R$,!1)})}
function S(nK,Y3,R$){h(L(Y3),function(KQ){nK.removeEventListener(KQ,R$,!1)})}
function L(nK){return nK.trim().split(/\s+/g)}
function J(nK,Y3,R$){if(nK.indexOf&&!R$)return nK.indexOf(Y3);for(var KQ=0,NH=nK.length;KQ<NH;KQ++)if(R$&&nK[KQ][R$]==Y3||!R$&&nK[KQ]===Y3)return KQ;return-1}
function g(nK,Y3,R$){for(var KQ=[],NH=[],SM=0,ov=nK.length;SM<ov;SM++){var c9=Y3?nK[SM][Y3]:nK[SM];J(NH,c9)<0&&KQ.push(nK[SM]);NH[SM]=c9}R$&&(KQ=Y3?KQ.sort(function(kv,fe){return kv[Y3]>fe[Y3]}):KQ.sort());
return KQ}
function Q(nK,Y3){for(var R$,KQ=Y3[0].toUpperCase()+Y3.slice(1),NH=0,SM=Zf.length;NH<SM;NH++)if(R$=(R$=Zf[NH])?R$+KQ:Y3,R$ in nK)return R$;return b}
function u(nK,Y3){var R$=this;this.manager=nK;this.callback=Y3;this.element=nK.element;this.target=nK.options.inputTarget;this.domHandler=function(KQ){c(nK.options.enable,[nK])&&R$.handler(KQ)};
this.evEl&&U(this.element,this.evEl,this.domHandler);this.evTarget&&U(this.target,this.evTarget,this.domHandler);this.evWin&&U(H,this.evWin,this.domHandler)}
function R(nK){var Y3;Sr?Y3=g6:X9?Y3=Mu:EF?Y3=LQ:Y3=i8;return new Y3(nK,I)}
function I(nK,Y3,R$){var KQ=R$.pointers.length,NH=R$.changedPointers.length,SM=Y3&1&&KQ-NH===0;R$.isFirst=!!SM;R$.isFinal=!!(Y3&12&&KQ-NH===0);SM&&(nK.session={});R$.eventType=Y3;Y3=nK.session;KQ=R$.pointers;NH=KQ.length;Y3.firstInput||(Y3.firstInput=tT(R$));NH>1&&!Y3.firstMultiple?Y3.firstMultiple=tT(R$):NH===1&&(Y3.firstMultiple=!1);SM=Y3.firstInput;var ov=(NH=Y3.firstMultiple)?NH.center:SM.center,c9=R$.center=ZV(KQ);R$.timeStamp=jf();R$.deltaTime=R$.timeStamp-SM.timeStamp;R$.angle=jV(ov,c9);R$.distance=
o$(ov,c9);SM=R$.center;ov=Y3.offsetDelta||{};c9=Y3.prevDelta||{};var kv=Y3.prevInput||{};if(R$.eventType===1||kv.eventType===4)c9=Y3.prevDelta={x:kv.deltaX||0,y:kv.deltaY||0},ov=Y3.offsetDelta={x:SM.x,y:SM.y};R$.deltaX=c9.x+(SM.x-ov.x);R$.deltaY=c9.y+(SM.y-ov.y);R$.offsetDirection=ED(R$.deltaX,R$.deltaY);NH?(SM=NH.pointers,SM=o$(KQ[0],KQ[1],d4)/o$(SM[0],SM[1],d4)):SM=1;R$.scale=SM;NH?(NH=NH.pointers,KQ=jV(KQ[1],KQ[0],d4)-jV(NH[1],NH[0],d4)):KQ=0;R$.rotation=KQ;ov=Y3.lastInterval||R$;KQ=R$.timeStamp-
ov.timeStamp;R$.eventType!=8&&(KQ>25||ov.velocity===b)?(SM=ov.deltaX-R$.deltaX,ov=ov.deltaY-R$.deltaY,c9=SM/KQ||0,kv=ov/KQ||0,KQ=c9,NH=kv,c9=ia(c9)>ia(kv)?c9:kv,SM=ED(SM,ov),Y3.lastInterval=R$):(c9=ov.velocity,KQ=ov.velocityX,NH=ov.velocityY,SM=ov.direction);R$.velocity=c9;R$.velocityX=KQ;R$.velocityY=NH;R$.direction=SM;Y3=nK.element;a:{for(KQ=R$.srcEvent.target;KQ;){if(KQ==Y3){KQ=!0;break a}KQ=KQ.parentNode}KQ=!1}KQ&&(Y3=R$.srcEvent.target);R$.target=Y3;nK.emit("hammer.input",R$);nK.recognize(R$);
nK.session.prevInput=R$}
function tT(nK){for(var Y3=[],R$=0;R$<nK.pointers.length;R$++)Y3[R$]={clientX:$Q(nK.pointers[R$].clientX),clientY:$Q(nK.pointers[R$].clientY)};return{timeStamp:jf(),pointers:Y3,center:ZV(Y3),deltaX:nK.deltaX,deltaY:nK.deltaY}}
function ZV(nK){var Y3=nK.length;if(Y3===1)return{x:$Q(nK[0].clientX),y:$Q(nK[0].clientY)};for(var R$=0,KQ=0,NH=0;NH<Y3;NH++)R$+=nK[NH].clientX,KQ+=nK[NH].clientY;return{x:$Q(R$/Y3),y:$Q(KQ/Y3)}}
function ED(nK,Y3){return nK===Y3?1:ia(nK)>=ia(Y3)?nK>0?2:4:Y3>0?8:16}
function o$(nK,Y3,R$){R$||(R$=Yv);var KQ=Y3[R$[0]]-nK[R$[0]];nK=Y3[R$[1]]-nK[R$[1]];return Math.sqrt(KQ*KQ+nK*nK)}
function jV(nK,Y3,R$){R$||(R$=Yv);return Math.atan2(Y3[R$[1]]-nK[R$[1]],Y3[R$[0]]-nK[R$[0]])*180/Math.PI}
function i8(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;u.apply(this,arguments)}
function g6(){this.evEl=z7;this.evWin=AW;u.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Mu(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};u.apply(this,arguments)}
function LQ(){u.apply(this,arguments);var nK=T(this.handler,this);this.touch=new Mu(this.manager,nK);this.mouse=new i8(this.manager,nK)}
function DO(nK,Y3){this.manager=nK;this.set(Y3)}
function fQ(nK){if(nK.indexOf("none")>-1)return"none";var Y3=nK.indexOf("pan-x")>-1,R$=nK.indexOf("pan-y")>-1;return Y3&&R$?"pan-x pan-y":Y3||R$?Y3?"pan-x":"pan-y":nK.indexOf("manipulation")>-1?"manipulation":"auto"}
function yA(nK){this.id=TH++;this.manager=null;this.options=N(nK||{},this.defaults);nK=this.options.enable;this.options.enable=nK===b?!0:nK;this.state=1;this.simultaneous={};this.requireFail=[]}
function T4(nK){return nK==16?"down":nK==8?"up":nK==2?"left":nK==4?"right":""}
function Mw(nK,Y3){return(Y3=Y3.manager)?Y3.get(nK):nK}
function X6(){yA.apply(this,arguments)}
function yZ(){X6.apply(this,arguments);this.pY=this.pX=null}
function kQ(){X6.apply(this,arguments)}
function FX(){yA.apply(this,arguments);this._input=this._timer=null}
function qw(){X6.apply(this,arguments)}
function oB(){X6.apply(this,arguments)}
function ZO(){yA.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Nw(nK,Y3){Y3=Y3||{};var R$=Y3.recognizers;Y3.recognizers=R$===b?Nw.defaults.preset:R$;return new bY(nK,Y3)}
function bY(nK,Y3){Y3=Y3||{};this.options=N(Y3,Nw.defaults);this.options.inputTarget=this.options.inputTarget||nK;this.handlers={};this.session={};this.recognizers=[];this.element=nK;this.input=R(this);this.touchAction=new DO(this,this.options.touchAction);P_(this,!0);h(Y3.recognizers,function(R$){var KQ=this.add(new R$[0](R$[1]));R$[2]&&KQ.recognizeWith(R$[2]);R$[3]&&KQ.requireFailure(R$[2])},this)}
function P_(nK,Y3){var R$=nK.element;h(nK.options.cssProps,function(KQ,NH){R$.style[Q(R$.style,NH)]=Y3?KQ:""})}
function QV(nK,Y3){var R$=e.createEvent("Event");R$.initEvent(nK,!0,!0);R$.gesture=Y3;Y3.target.dispatchEvent(R$)}
var Zf=" webkit moz MS ms o".split(" "),ua=e.createElement("div"),$Q=Math.round,ia=Math.abs,jf=Date.now,TH=1,Hv=/mobile|tablet|ip(ad|hone|od)|android/i,EF="ontouchstart"in H,Sr=Q(H,"PointerEvent")!==b,X9=EF&&Hv.test(navigator.userAgent),Yv=["x","y"],d4=["clientX","clientY"];u.prototype={handler:function(){},
destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler);this.evTarget&&S(this.target,this.evTarget,this.domHandler);this.evWin&&S(H,this.evWin,this.domHandler)}};
var Wt={mousedown:1,mousemove:2,mouseup:4};k(i8,u,{handler:function(nK){var Y3=Wt[nK.type];Y3&1&&nK.button===0&&(this.pressed=!0);Y3&2&&nK.which!==1&&(Y3=4);this.pressed&&this.allow&&(Y3&4&&(this.pressed=!1),this.callback(this.manager,Y3,{pointers:[nK],changedPointers:[nK],pointerType:"mouse",srcEvent:nK}))}});
var bM={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},AZ={2:"touch",3:"pen",4:"mouse",5:"kinect"},z7="pointerdown",AW="pointermove pointerup pointercancel";H.MSPointerEvent&&(z7="MSPointerDown",AW="MSPointerMove MSPointerUp MSPointerCancel");k(g6,u,{handler:function(nK){var Y3=this.store,R$=!1,KQ=nK.type.toLowerCase().replace("ms","");KQ=bM[KQ];var NH=AZ[nK.pointerType]||nK.pointerType;KQ&1&&(nK.button===0||NH=="touch")?Y3.push(nK):KQ&12&&(R$=!0);var SM=J(Y3,nK.pointerId,"pointerId");
SM<0||(Y3[SM]=nK,this.callback(this.manager,KQ,{pointers:Y3,changedPointers:[nK],pointerType:NH,srcEvent:nK}),R$&&Y3.splice(SM,1))}});
var hy={touchstart:1,touchmove:2,touchend:4,touchcancel:8};k(Mu,u,{handler:function(nK){var Y3=hy[nK.type];var R$=Array.prototype.slice.call(nK.touches,0);var KQ=this.targetIds;if(Y3&3&&R$.length===1)KQ[R$[0].identifier]=!0,KQ=[R$,R$];else{var NH,SM=Array.prototype.slice.call(nK.targetTouches,0),ov=Array.prototype.slice.call(nK.changedTouches,0),c9=[];if(Y3===1)for(R$=0,NH=SM.length;R$<NH;R$++)KQ[SM[R$].identifier]=!0;R$=0;for(NH=ov.length;R$<NH;R$++)KQ[ov[R$].identifier]&&c9.push(ov[R$]),Y3&12&&
delete KQ[ov[R$].identifier];KQ=c9.length?[g(SM.concat(c9),"identifier",!0),c9]:void 0}KQ&&this.callback(this.manager,Y3,{pointers:KQ[0],changedPointers:KQ[1],pointerType:"touch",srcEvent:nK})}});
k(LQ,u,{handler:function(nK,Y3,R$){var KQ=R$.pointerType=="mouse";if(R$.pointerType=="touch")this.mouse.allow=!1;else if(KQ&&!this.mouse.allow)return;Y3&12&&(this.mouse.allow=!0);this.callback(nK,Y3,R$)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var s5=Q(ua.style,"touchAction"),W$=s5!==b;DO.prototype={set:function(nK){nK=="compute"&&(nK=this.compute());W$&&(this.manager.element.style[s5]=nK);this.actions=nK.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var nK=[];h(this.manager.recognizers,function(Y3){c(Y3.options.enable,[Y3])&&(nK=nK.concat(Y3.getTouchAction()))});
return fQ(nK.join(" "))},
preventDefaults:function(nK){if(!W$){var Y3=nK.srcEvent;nK=nK.offsetDirection;if(this.manager.session.prevented)Y3.preventDefault();else{var R$=this.actions,KQ=R$.indexOf("none")>-1,NH=R$.indexOf("pan-y")>-1;R$=R$.indexOf("pan-x")>-1;if(KQ||NH&&R$||NH&&nK&6||R$&&nK&24)return this.preventSrc(Y3)}}},
preventSrc:function(nK){this.manager.session.prevented=!0;nK.preventDefault()}};
yA.prototype={defaults:{},set:function(nK){K(this.options,nK);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(nK){if(w(nK,"recognizeWith",this))return this;var Y3=this.simultaneous;nK=Mw(nK,this);Y3[nK.id]||(Y3[nK.id]=nK,nK.recognizeWith(this));return this},
dropRecognizeWith:function(nK){if(w(nK,"dropRecognizeWith",this))return this;nK=Mw(nK,this);delete this.simultaneous[nK.id];return this},
requireFailure:function(nK){if(w(nK,"requireFailure",this))return this;var Y3=this.requireFail;nK=Mw(nK,this);J(Y3,nK)===-1&&(Y3.push(nK),nK.requireFailure(this));return this},
dropRequireFailure:function(nK){if(w(nK,"dropRequireFailure",this))return this;nK=Mw(nK,this);nK=J(this.requireFail,nK);nK>-1&&this.requireFail.splice(nK,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(nK){return!!this.simultaneous[nK.id]},
emit:function(nK){function Y3(NH){R$.manager.emit(R$.options.event+(NH?KQ&16?"cancel":KQ&8?"end":KQ&4?"move":KQ&2?"start":"":""),nK)}
var R$=this,KQ=this.state;KQ<8&&Y3(!0);Y3();KQ>=8&&Y3(!0)},
tryEmit:function(nK){if(this.canEmit())return this.emit(nK);this.state=32},
canEmit:function(){for(var nK=0;nK<this.requireFail.length;nK++)if(!(this.requireFail[nK].state&33))return!1;return!0},
recognize:function(nK){nK=K({},nK);c(this.options.enable,[this,nK])?(this.state&56&&(this.state=1),this.state=this.process(nK),this.state&30&&this.tryEmit(nK)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
k(X6,yA,{defaults:{pointers:1},attrTest:function(nK){var Y3=this.options.pointers;return Y3===0||nK.pointers.length===Y3},
process:function(nK){var Y3=this.state,R$=nK.eventType,KQ=Y3&6;nK=this.attrTest(nK);return KQ&&(R$&8||!nK)?Y3|16:KQ||nK?R$&4?Y3|8:Y3&2?Y3|4:2:32}});
k(yZ,X6,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var nK=this.options.direction;if(nK===30)return["none"];var Y3=[];nK&6&&Y3.push("pan-y");nK&24&&Y3.push("pan-x");return Y3},
directionTest:function(nK){var Y3=this.options,R$=!0,KQ=nK.distance,NH=nK.direction,SM=nK.deltaX,ov=nK.deltaY;NH&Y3.direction||(Y3.direction&6?(NH=SM===0?1:SM<0?2:4,R$=SM!=this.pX,KQ=Math.abs(nK.deltaX)):(NH=ov===0?1:ov<0?8:16,R$=ov!=this.pY,KQ=Math.abs(nK.deltaY)));nK.direction=NH;return R$&&KQ>Y3.threshold&&NH&Y3.direction},
attrTest:function(nK){return X6.prototype.attrTest.call(this,nK)&&(this.state&2||!(this.state&2)&&this.directionTest(nK))},
emit:function(nK){this.pX=nK.deltaX;this.pY=nK.deltaY;var Y3=T4(nK.direction);Y3&&this.manager.emit(this.options.event+Y3,nK);this._super.emit.call(this,nK)}});
k(kQ,X6,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(nK){return this._super.attrTest.call(this,nK)&&(Math.abs(nK.scale-1)>this.options.threshold||this.state&2)},
emit:function(nK){this._super.emit.call(this,nK);nK.scale!==1&&this.manager.emit(this.options.event+(nK.scale<1?"in":"out"),nK)}});
k(FX,yA,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(nK){var Y3=this.options,R$=nK.pointers.length===Y3.pointers,KQ=nK.distance<Y3.threshold,NH=nK.deltaTime>Y3.time;this._input=nK;if(!KQ||!R$||nK.eventType&12&&!NH)this.reset();else if(nK.eventType&1)this.reset(),this._timer=a(function(){this.state=8;this.tryEmit()},Y3.time,this);
else if(nK.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(nK){this.state===8&&(nK&&nK.eventType&4?this.manager.emit(this.options.event+"up",nK):(this._input.timeStamp=jf(),this.manager.emit(this.options.event,this._input)))}});
k(qw,X6,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(nK){return this._super.attrTest.call(this,nK)&&(Math.abs(nK.rotation)>this.options.threshold||this.state&2)}});
k(oB,X6,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return yZ.prototype.getTouchAction.call(this)},
attrTest:function(nK){var Y3=this.options.direction;if(Y3&30)var R$=nK.velocity;else Y3&6?R$=nK.velocityX:Y3&24&&(R$=nK.velocityY);return this._super.attrTest.call(this,nK)&&Y3&nK.direction&&ia(R$)>this.options.velocity&&nK.eventType&4},
emit:function(nK){var Y3=T4(nK.direction);Y3&&this.manager.emit(this.options.event+Y3,nK);this.manager.emit(this.options.event,nK)}});
k(ZO,yA,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(nK){var Y3=this.options,R$=nK.pointers.length===Y3.pointers,KQ=nK.distance<Y3.threshold,NH=nK.deltaTime<Y3.time;this.reset();if(nK.eventType&1&&this.count===0)return this.failTimeout();if(KQ&&NH&&R$){if(nK.eventType!=4)return this.failTimeout();R$=this.pTime?nK.timeStamp-this.pTime<Y3.interval:!0;KQ=!this.pCenter||o$(this.pCenter,nK.center)<Y3.posThreshold;this.pTime=nK.timeStamp;this.pCenter=nK.center;KQ&&R$?this.count+=1:this.count=1;this._input=nK;if(this.count%Y3.taps===0)return this.hasRequireFailures()?
(this._timer=a(function(){this.state=8;this.tryEmit()},Y3.interval,this),2):8}return 32},
failTimeout:function(){this._timer=a(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))}});
Nw.VERSION="2.0.2";Nw.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[qw,{enable:!1}],[kQ,{enable:!1},["rotate"]],[oB,{direction:6}],[yZ,{direction:6},["swipe"]],[ZO],[ZO,{event:"doubletap",taps:2},["tap"]],[FX]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};bY.prototype={set:function(nK){K(this.options,nK);return this},
stop:function(nK){this.session.stopped=nK?2:1},
recognize:function(nK){var Y3=this.session;if(!Y3.stopped){this.touchAction.preventDefaults(nK);var R$=this.recognizers,KQ=Y3.curRecognizer;if(!KQ||KQ&&KQ.state&8)KQ=Y3.curRecognizer=null;for(var NH=0,SM=R$.length;NH<SM;NH++){var ov=R$[NH];Y3.stopped===2||KQ&&ov!=KQ&&!ov.canRecognizeWith(KQ)?ov.reset():ov.recognize(nK);!KQ&&ov.state&14&&(KQ=Y3.curRecognizer=ov)}}},
get:function(nK){if(nK instanceof yA)return nK;for(var Y3=this.recognizers,R$=0;R$<Y3.length;R$++)if(Y3[R$].options.event==nK)return Y3[R$];return null},
add:function(nK){if(w(nK,"add",this))return this;var Y3=this.get(nK.options.event);Y3&&this.remove(Y3);this.recognizers.push(nK);nK.manager=this;this.touchAction.update();return nK},
remove:function(nK){if(w(nK,"remove",this))return this;var Y3=this.recognizers;nK=this.get(nK);Y3.splice(J(Y3,nK),1);this.touchAction.update();return this},
on:function(nK,Y3){var R$=this.handlers;h(L(nK),function(KQ){R$[KQ]=R$[KQ]||[];R$[KQ].push(Y3)});
return this},
off:function(nK,Y3){var R$=this.handlers;h(L(nK),function(KQ){Y3?R$[KQ].splice(J(R$[KQ],Y3),1):delete R$[KQ]});
return this},
emit:function(nK,Y3){this.options.domEvents&&QV(nK,Y3);var R$=this.handlers[nK]&&this.handlers[nK].slice();if(R$&&R$.length){Y3.type=nK;Y3.preventDefault=function(){Y3.srcEvent.preventDefault()};
nK=0;for(var KQ=R$.length;nK<KQ;nK++)R$[nK](Y3)}},
destroy:function(){this.element&&P_(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
K(Nw,{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:bY,Input:u,TouchAction:DO,Recognizer:yA,AttrRecognizer:X6,Tap:ZO,Pan:yZ,Swipe:oB,Pinch:kQ,Rotate:qw,Press:FX,on:U,off:S,each:h,merge:N,extend:K,inherit:k,bindFn:T,prefixed:Q});
H[V]=Nw})(window,document,"Hammer");
return window.Hammer}.call({});
t.DOCUMENT=D;D[p5m]=t}return D[p5m]};/*

 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 xxV=function(D,t){if(D.length!==t.length)return!1;for(var H=0;H<D.length;++H)if(D[H]!==t[H])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var Ron=_.F(["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"]),uAQ=Ron.next();!uAQ.done;uAQ=Ron.next()){var Wto=uAQ.value,Igf=document.createElement("link");Igf.rel="stylesheet";Igf.href=Wto;document.head.appendChild(Igf)};var CVk,MxD,XlD,o1A,mkX,PVD,Or8,Uk6;CVk={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};MxD={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:"*"};XlD={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};o1A=/[a-z0-9*]/;mkX=/U\+/;PVD=/^arrow/;Or8=/^space(bar)?/;Uk6=/^escape$/;_.l9={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(D,t){this._imperativeKeyBindings[D]=t;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(D,t){t=Lf8(t);for(var H=0;H<t.length;++H)if(S2V(t[H],D))return!0;return!1},
_collectKeyBindings:function(){var D=this.behaviors.map(function(t){return t.keyBindings});
D.indexOf(this.keyBindings)===-1&&D.push(this.keyBindings);return D},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(H){for(var e in H)this._addKeyBinding(e,H[e])},this);
for(var D in this._imperativeKeyBindings)this._addKeyBinding(D,this._imperativeKeyBindings[D]);for(var t in this._keyBindings)this._keyBindings[t].sort(function(H,e){H=H[0].hasModifiers;return H===e[0].hasModifiers?0:H?-1:1})},
_addKeyBinding:function(D,t){Lf8(D).forEach(function(H){this._keyBindings[H.event]=this._keyBindings[H.event]||[];this._keyBindings[H.event].push([H,t])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(D){var t=this._onKeyBindingEvent.bind(this,this._keyBindings[D]);this._boundKeyHandlers.push([this.keyEventTarget,D,t]);this.keyEventTarget.addEventListener(D,t)},this)},
_unlistenKeyEventListeners:function(){for(var D,t,H;this._boundKeyHandlers.length;)D=this._boundKeyHandlers.pop(),t=D[0],H=D[1],D=D[2],t.removeEventListener(H,D)},
_onKeyBindingEvent:function(D,t){this.stopKeyboardEventPropagation&&t.stopPropagation();if(!t.defaultPrevented)for(var H=0;H<D.length;H++){var e=D[H][0],V=D[H][1];if(S2V(e,t)&&(this._triggerKeyHandler(e,V,t),t.defaultPrevented))break}},
_triggerKeyHandler:function(D,t,H){var e=Object.create(D);e.keyboardEvent=H;D=new CustomEvent(D.event,{detail:e,cancelable:!0});this[t].call(this,D);D.defaultPrevented&&H.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
*/
_.gx({is:"iron-a11y-keys",_template:null,behaviors:[_.l9],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(D){this.keyEventTarget=D},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(D){this.fire("keys-pressed",D.detail,{})}});_.vO={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(D){this._setFocused(D.type==="focus")},
_disabledChanged:function(D){this.setAttribute("aria-disabled",D?"true":"false");this.style.pointerEvents=D?"none":"";D?(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 pL={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(D){this._detectKeyboardFocus(D);D||this._setPressed(!1)},
_detectKeyboardFocus:function(D){this._setReceivedFocusFromKeyboard(!this.pointerDown&&D)},
_userActivate:function(D){this.active!==D&&(this.active=D,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(D){D=D.detail.keyboardEvent;var t=_.Xu(D).localTarget;this.isLightDescendant(t)||(D.preventDefault(),D.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(D){D=_.Xu(D.detail.keyboardEvent).localTarget;this.isLightDescendant(D)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(D,t){t&&t!=D&&this.hasAttribute(t)&&this.removeAttribute(t)},
_activeChanged:function(D){this.toggles?this.setAttribute(this.ariaActiveAttribute,D?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},Qn6=[_.l9,
pL];_.dJ={IronButtonState:Qn6,IronButtonStateImpl:pL};_.xk={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.R0=function(D){_.R0[" "](D);this.type=D&&D.type||"default";this.key=D&&D.key;D&&"value"in D&&(this.value=D.value)};
_.R0.prototype.byKey=function(D){this.key=D;return this.value};
_.ql.Object.defineProperties(_.R0.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var D=this.type,t=this.key;if(D&&t)return u9[D]&&u9[D][t]},
set:function(D){var t=this.type,H=this.key;t&&H&&(t=u9[t]=u9[t]||{},D==null?delete t[H]:t[H]=D)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var D=u9[this.type];return D?Object.keys(D).map(function(t){return u9[this.type][t]},this):[]}}});
_.R0[" "]=function(){};
var u9={};_.gx({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(D,t,H){D=new _.R0({type:D,key:t});H!==void 0&&H!==D.value?D.value=H:this.value!==D.value&&(this.value=D.value);return D},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(D){D&&(this.value=this)},
byKey:function(D){return(new _.R0({type:this.type,key:D})).value}});var y5Q;y5Q=null;_.WO={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){y5Q=new _.R0({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return y5Q&&y5Q.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(D){this.invalid=D===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(D);return!this.invalid},
_getValidity:function(D){return this.hasValidator()?this._validator.validate(D):!0}};var BFQ={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"}},zof=[_.xk,
_.WO,BFQ];_.gx({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 _.R0({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(D){return this.name+":"+D},this)},
applyIcon:function(D,t){this.removeIcon(D);if(t=this._cloneIcon(t,this.rtlMirroring&&this._targetIsRTL(D))){var H=_.Xu(D.root||D);H.insertBefore(t,H.childNodes[0]);return D._svgIcon=t}return null},
removeIcon:function(D){D._svgIcon&&(_.Xu(D.root||D).removeChild(D._svgIcon),D._svgIcon=null)},
_targetIsRTL:function(D){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(D&&D.nodeType!==Node.ELEMENT_NODE&&(D=D.host),this.__targetIsRTL=D&&window.getComputedStyle(D).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 D=Object.create(null);_.Xu(this).querySelectorAll("[id]").forEach(function(t){D[t.id]=t});
return D},
_cloneIcon:function(D,t){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[D],this.size,t)},
_prepareSvgClone:function(D,t,H){if(D){D=D.cloneNode(!0);var e=document.createElementNS("http://www.w3.org/2000/svg","svg");t=D.getAttribute("viewBox")||"0 0 "+t+" "+t;var V="pointer-events: none; display: block; width: 100%; height: 100%;";H&&D.hasAttribute("mirror-in-rtl")&&(V+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");e.setAttribute("viewBox",t);e.setAttribute("preserveAspectRatio","xMidYMid meet");e.setAttribute("focusable","false");e.style&&(e.style.cssText=
V);e.appendChild(D).removeAttribute("id");return e}return null}});var DIf=function(D){this.multi=!1;this.selection=[];this.selectCallback=D};
_.q=DIf.prototype;_.q.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.q.clear=function(D){this.selection.slice().forEach(function(t){(!D||D.indexOf(t)<0)&&this.setItemSelected(t,!1)},this)};
_.q.isSelected=function(D){return this.selection.indexOf(D)>=0};
_.q.setItemSelected=function(D,t){if(D!=null&&t!==this.isSelected(D)){if(t)this.selection.push(D);else{var H=this.selection.indexOf(D);H>=0&&this.selection.splice(H,1)}this.selectCallback&&this.selectCallback(D,t)}};
_.q.select=function(D){this.multi?this.toggle(D):this.get()!==D&&(this.setItemSelected(this.get(),!1),this.setItemSelected(D,!0))};
_.q.toggle=function(D){this.setItemSelected(D,!this.isSelected(D))};_.tj={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 DIf(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.Xu(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(D){return this.items?this.items.indexOf(D):-1},
select:function(D){this.selected=D},
selectPrevious:function(){var D=this.items.length,t=D-1;this.selected!==void 0&&(t=(Number(this._valueToIndex(this.selected))-1+D)%D);this.selected=this._indexToValue(t)},
selectNext:function(){var D=0;this.selected!==void 0&&(D=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(D)},
selectIndex:function(D){this.select(this._indexToValue(D))},
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(D){this.listen(this,D,"_activateHandler")},
_removeListener:function(D){this.unlisten(this,D,"_activateHandler")},
_activateEventChanged:function(D,t){this._removeListener(t);this._addListener(D)},
_updateItems:function(){var D=_.Xu(this).queryDistributedElements(this.selectable||"*");D=Array.prototype.filter.call(D,this._bindFilterItem);this._setItems(D)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var D=this._valueToItem(this.selected);D?this._selection.select(D):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(D){return!this._excludedLocalNames[D.localName]},
_valueToItem:function(D){return D==null?null:this.items[this._valueToIndex(D)]},
_valueToIndex:function(D){if(this.attrForSelected)for(var t=0,H;H=this.items[t];t++){if(this._valueForItem(H)==D)return t}else return Number(D)},
_indexToValue:function(D){if(this.attrForSelected){if(D=this.items[D])return this._valueForItem(D)}else return D},
_valueForItem:function(D){if(!D)return null;if(!this.attrForSelected)return D=this.indexOf(D),D===-1?null:D;var t=D[Kn(this.attrForSelected)];return t!=void 0?t:D.getAttribute(this.attrForSelected)},
_applySelection:function(D,t){this.selectedClass&&this.toggleClass(this.selectedClass,t,D);this.selectedAttribute&&this.toggleAttribute.call(D,this.selectedAttribute,t);this._selectionChange();this.fire("iron-"+(t?"select":"deselect"),{item:D})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(D){return _.Xu(D).observeNodes(function(t){this._updateItems();this._updateSelected();this.fire("iron-items-changed",t,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(D){D=D.target;for(var t=this.items;D&&D!=this;){var H=t.indexOf(D);if(H>=0){t=this._indexToValue(H);this._itemActivate(t,D);break}D=D.parentNode}},
_itemActivate:function(D,t){this.fire("iron-activate",{selected:D,item:t},{cancelable:!0}).defaultPrevented||this.select(D)}};var tNV={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(D){this.multi?this._toggleSelected(D):this.selected=D},
multiChanged:function(D){this._selection.multi=D;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(D){return this._indexToValue(this.indexOf(D))},this).filter(function(D){return D!=null},this)):_.tj._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(D){D=D||[];D=(this._valuesToItems(D)||[]).filter(function(H){return H!==null&&H!==void 0});
this._selection.clear(D);for(var t=0;t<D.length;t++)this._selection.setItemSelected(D[t],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var D=this._selection.get();this.multi?(this._setSelectedItems(D),this._setSelectedItem(D.length?D[0]:null)):D!==null&&D!==void 0?(this._setSelectedItems([D]),this._setSelectedItem(D)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(D){var t=this.selectedValues.indexOf(D);t<0?this.push("selectedValues",D):this.splice("selectedValues",t,1)},
_valuesToItems:function(D){return D==null?null:D.map(function(t){return this._valueToItem(t)},this)}},HP4=[_.tj,
tNV];var e74;
_.I0={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(D){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var t=this._valueToItem(D);t&&t.hasAttribute("disabled")||(this._setFocusedItem(t),tNV.select.apply(this,arguments))},
_resetTabindices:function(){var D=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(t){t.setAttribute("tabindex",t===D?"0":"-1");t.setAttribute("aria-selected",this._selection.isSelected(t))},this)},
_updateMultiselectable:function(D){D?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(D){if(this._MODIFIER_KEYS.indexOf(D.key)===-1){this.cancelDebouncer("_clearSearchText");var t=this._searchText||"";t+=(D.key&&D.key.length==1?D.key:String.fromCharCode(D.keyCode)).toLocaleLowerCase();D=t.length;for(var H=0,e;e=this.items[H];H++)if(!e.hasAttribute("disabled")){var V=this.attrForItemTitle||"textContent";V=(e[V]||e.getAttribute(V)||"").trim();if(!(V.length<D)&&V.slice(0,D).toLocaleLowerCase()==t){this._setFocusedItem(e);break}}this._searchText=t;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var D=this.items.length,t=Number(this.indexOf(this.focusedItem)),H=1;H<D+1;H++){var e=this.items[(t-H+D)%D];if(!e.hasAttribute("disabled")){var V=_.Xu(e).getOwnerRoot()||document;this._setFocusedItem(e);if(_.Xu(V).activeElement==e)break}}},
_focusNext:function(){for(var D=this.items.length,t=Number(this.indexOf(this.focusedItem)),H=1;H<D+1;H++){var e=this.items[(t+H)%D];if(!e.hasAttribute("disabled")){var V=_.Xu(e).getOwnerRoot()||document;this._setFocusedItem(e);if(_.Xu(V).activeElement==e)break}}},
_applySelection:function(D,t){t?D.setAttribute("aria-selected","true"):D.setAttribute("aria-selected","false");_.tj._applySelection.apply(this,arguments)},
_focusedItemChanged:function(D,t){t&&t.setAttribute("tabindex","-1");!D||D.hasAttribute("disabled")||this.disabled||(D.setAttribute("tabindex","0"),D.focus())},
_onIronItemsChanged:function(D){D.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var D=this.getAttribute("tabindex");_.I0._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",D);_.I0._shiftTabPressed=!1},1)},
_onFocus:function(D){!_.I0._shiftTabPressed&&(D=_.Xu(D).rootTarget,D===this||typeof D.tabIndex==="undefined"||this.isLightDescendant(D))&&(this._defaultFocusAsync=this.async(function(){var t=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);t?this._setFocusedItem(t):this.items[0]&&this._focusNext()}))},
_onUpKey:function(D){this._focusPrevious();D.detail.keyboardEvent.preventDefault()},
_onDownKey:function(D){this._focusNext();D.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var D=this.focusedItem;D&&D.blur()},
_onKeydown:function(D){this.keyboardEventMatchesKeys(D,"up down esc")||this._focusWithKeyboardEvent(D);D.stopPropagation()},
_activateHandler:function(D){_.tj._activateHandler.call(this,D);D.stopPropagation()},
_disabledChanged:function(D){D?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};e74=[HP4,_.l9,_.I0];_.VN9={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(D){this.focusedItem&&(this.focusedItem.click(),D.detail.keyboardEvent.preventDefault())},
_onDownKey:function(D){this.focusedItem&&(this.focusedItem.click(),D.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(D){return D.ctrlKey||D.shiftKey||D.altKey||D.metaKey},
_onLeftKey:function(D){this._isSpecialKey(D.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),D.detail.keyboardEvent.preventDefault())},
_onRightKey:function(D){this._isSpecialKey(D.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),D.detail.keyboardEvent.preventDefault())},
_onKeydown:function(D){this.keyboardEventMatchesKeys(D,"up down left right esc")||this._focusWithKeyboardEvent(D)}};
_.bPn=[e74,_.VN9];var qEa;qEa=new Set;_.QI={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):(qEa.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(D){this.resizerShouldNotify(D)&&this._notifyDescendant(D)},this),this._fireResize())},
assignParentResizable:function(D){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=D)&&D._interestedResizables.indexOf(this)===-1&&(D._interestedResizables.push(this),D._subscribeIronResize(this))},
stopResizeNotificationsFor:function(D){var t=this._interestedResizables.indexOf(D);t>-1&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(D))},
_subscribeIronResize:function(D){D.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(D){D.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(D){this._notifyingDescendant?D.stopPropagation():uv||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(D){var t=_.Xu(D).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),D.stopPropagation())},
_parentResizableChanged:function(D){D&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(D){this.isAttached&&(this._notifyingDescendant=!0,D.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var D=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function H(){document.removeEventListener("readystatechange",H);D()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(t){t!==this&&t._findParent()},this):(qEa.forEach(function(t){t!==this&&t._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),
this.notifyResize())},
_findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?qEa.delete(this):qEa.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
*/
_.Fc4={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(D,t){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);t&&(D==="document"?this.scrollTarget=this._doc:typeof D==="string"?this.scrollTarget=(t=this.domHost)&&t.$?t.$[D]:_.Xu(this.ownerDocument).querySelector("#"+D):this._isValidScrollTarget()&&(this._oldScrollTarget=D,this._toggleScrollListener(this._shouldHaveListener,D)))},
_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(D){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,D):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
D)},set _scrollLeft(D){this.scrollTarget===this._doc?window.scrollTo(D,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=D)},scroll:function(D,t){if(typeof D==="object"){var H=D.left;t=D.top}else H=D;H=H||0;t=t||0;this.scrollTarget===this._doc?window.scrollTo(H,t):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=H,this.scrollTarget.scrollTop=t)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(D,t){t=t===this._doc?window:t;D?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),t.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(t.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(D){this._shouldHaveListener=D;this._toggleScrollListener(D,this.scrollTarget)}};_.gx({is:"iron-selector",_template:null,behaviors:[HP4]});var yI={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(D){if(D.timing)for(var t in D.timing)this.animationTiming[t]=D.timing[t];return this.animationTiming},
setPrefixedProperty:function(D,t,H){for(var e={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[t],V,b=0;V=e[b];b++)D.style[V]=H;D.style[t]=H},
complete:function(){}};_.gx({is:"fade-in-animation",_template:null,behaviors:[yI],configure:function(D){return this._effect=new KeyframeEffect(D.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(D))}});_.gx({is:"fade-out-animation",_template:null,behaviors:[yI],configure:function(D){return this._effect=new KeyframeEffect(D.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(D))}});var aTv=[{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(D,t){for(var H in t)D[H]=t[H]},
_cloneConfig:function(D){var t={isClone:!0};this._copyProperties(t,D);return t},
_getAnimationConfigRecursive:function(D,t,H){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 e=D?this.animationConfig[D]:this.animationConfig;Array.isArray(e)||(e=[e]);if(e)for(var V,b=0;V=e[b];b++)if(V.animatable)V.animatable._getAnimationConfigRecursive(V.type||D,t,H);else if(V.id){var a=t[V.id];
a?(a.isClone||(t[V.id]=this._cloneConfig(a),a=t[V.id]),this._copyProperties(a,V)):t[V.id]=V}else H.push(V)}},
getAnimationConfig:function(D){var t={},H=[];this._getAnimationConfigRecursive(D,t,H);for(var e in t)H.push(t[e]);return H}},
{_configureAnimations:function(D){var t=[],H=[];if(D.length>0)for(var e,V=0;e=D[V];V++){var b=document.createElement(e.name);if(b.isNeonAnimation){var a=null;b.configure||(b.configure=function(){return null});
a=b.configure(e);H.push({result:a,config:e})}else console.warn(this.is+":",e.name,"not found!")}for(D=0;D<H.length;D++){a=H[D].result;e=H[D].config;try{typeof a.cancel!="function"&&(a=document.timeline.play(a))}catch(w){a=null,console.warn("Couldnt play","(",e.name,").",w)}a&&t.push({neonAnimation:b,config:e,animation:a})}return t},
_shouldComplete:function(D){for(var t=!0,H=0;H<D.length;H++)if(D[H].animation.playState!="finished"){t=!1;break}return t},
_complete:function(D){for(var t=0;t<D.length;t++)D[t].neonAnimation.complete(D[t].config);for(t=0;t<D.length;t++)D[t].animation.cancel()},
playAnimation:function(D,t){var H=this.getAnimationConfig(D);if(H){this._active=this._active||{};this._active[D]&&(this._complete(this._active[D]),delete this._active[D]);var e=this._configureAnimations(H);if(e.length==0)this.fire("neon-animation-finish",t,{bubbles:!1});else for(this._active[D]=e,H=0;H<e.length;H++)e[H].animation.onfinish=function(){this._shouldComplete(e)&&(this._complete(e),delete this._active[D],this.fire("neon-animation-finish",t,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var D in this._active){var t=this._active[D],H;for(H in t)t[H].animation&&t[H].animation.cancel&&t[H].animation.cancel()}this._active={}}}];var io=function(D,t){D=Error.call(this,D);this.message=D.message;"stack"in D&&(this.stack=D.stack);this.arg=t;this.name=this.constructor.name;this.constructor=io;this.__proto__=io.prototype};
_.P(io,Error);var wmo=KU(function(D){var t=function(){return D.apply(this,arguments)||this};
_.P(t,D);t.prototype._marshalArgs=function(H,e,V){e=D.prototype._marshalArgs.call(this,H,e,V);if(this._legacyUndefinedCheck&&e.length>1)for(V=0;V<e.length;V++)if(e[V]===void 0||H[V].wildcard&&e[V].base===void 0)throw H=H[V].name,new io("Argument '"+H+"' is undefined.",H);return e};
t.prototype._addPropertyEffect=function(H,e,V){return D.prototype._addPropertyEffect.call(this,H,e,A26(V,V&&V.info&&V.info.methodName))};
t._addTemplatePropertyEffect=function(H,e,V){return D._addTemplatePropertyEffect.call(this,H,e,A26(V))};
return t}),ZPV=_.gx.Class;
_.gx.Class=function(D,t){return ZPV(D,function(H){return t?t(wmo(H)):wmo(H)})};
var ssB=KU(function(D){var t=wmo(D);D=function(){return t.apply(this,arguments)||this};
_.P(D,t);_.ql.Object.defineProperties(D.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return D}),h7v=IC.mixin;
IC.mixin=h7v?function(D){return ssB(h7v(D))}:ssB;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.BO=_.dJ.IronButtonState;var YRD=RC;/*

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 EGB;_.GXf="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");EGB=function(){var D=[],t;var H=H||_.GXf.length;for(t=0;t<8;t++)D[t]=_.GXf[0|Math.random()*H];return D.join("")};var lEV=function(){return Math.random().toString(36).substring(7).split("").join(".")},Y2D="@@redux/INIT"+lEV(),dkK="@@redux/REPLACE"+lEV();var xkK=typeof Symbol==="function"&&Symbol.observable||"@@observable";var Kc6=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var Ngm="top right bottom left width height size weight".split(" "),kX9=typeof MutationObserver!=="undefined",Tg3=Kc6&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,clV=function(){this.mutationEventsAdded_=this.JSC$11760_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=R0u(this.refresh.bind(this))},js9=function(D,
t){var H=D.observers_;
t=H.indexOf(t);~t&&H.splice(t,1);!H.length&&D.JSC$11760_connected_&&Kc6&&D.JSC$11760_connected_&&(document.removeEventListener("transitionend",D.onTransitionEnd_),window.removeEventListener("resize",D.refresh),D.mutationsObserver_&&(D.mutationsObserver_.disconnect(),Tg3&&(HTMLElement.prototype.attachShadow=Tg3)),D.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",D.refresh),D.mutationsObserver_=null,D.mutationEventsAdded_=!1,D.JSC$11760_connected_=!1)};
clV.prototype.refresh=function(){$In(this)&&this.refresh()};
var $In=function(D){D=D.observers_.filter(function(t){return iPn(t),t.activeObservations_.length>0});
D.forEach(function(t){return rlv(t)});
return D.length>0},OPv=function(D){if(Kc6&&!D.JSC$11760_connected_){document.addEventListener("transitionend",D.onTransitionEnd_);
window.addEventListener("resize",D.refresh);if(kX9){D.mutationsObserver_=new MutationObserver(D.refresh);var t={attributes:!0,childList:!0,characterData:!0,subtree:!0};D.mutationsObserver_.observe(document,t);Tg3&&(function V(e){var b=e.shadowRoot;b&&(D.mutationsObserver_.observe(b,t),V(b));for(e=e.firstElementChild;e;)V(e),e=e.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var e=Tg3.apply(this,_.RE.apply(0,arguments));
D.mutationsObserver_.observe(e,t);return e})}else document.addEventListener("DOMSubtreeModified",D.refresh),D.mutationEventsAdded_=!0;
D.JSC$11760_connected_=!0}};
clV.prototype.onTransitionEnd_=function(D){var t=D.propertyName===void 0?"":D.propertyName;Ngm.some(function(H){return!!~t.indexOf(H)})&&this.refresh()};
var UI9=null;var oGm=function(D,t){for(var H=_.F(Object.keys(t)),e=H.next();!e.done;e=H.next())e=e.value,Object.defineProperty(D,e,{value:t[e],enumerable:!1,writable:!1,configurable:!0})};var zO=function(D){var t;return(D==null?void 0:(t=D.ownerDocument)==null?void 0:t.defaultView)||globalThis};var Pen={x:0,y:0,width:0,height:0},nGn=typeof SVGGraphicsElement!=="undefined"?function(D){return D instanceof zO(D).SVGGraphicsElement}:function(D){return D instanceof zO(D).SVGElement&&typeof D.getBBox==="function"};var Cef=function(D){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=D};
Cef.prototype.isActive=function(){var D=this.target;if(Kc6)if(nGn(D)){var t=D.getBBox();t={x:0,y:0,width:t.width,height:t.height}}else{var H=D.clientWidth,e=D.clientHeight;if(H||e){var V=zO(D).getComputedStyle(D);t=OW(V["padding-top"]);var b=OW(V["padding-left"]),a=b+OW(V["padding-right"]),w=t+OW(V["padding-bottom"]),h=OW(V.width),K=OW(V.height);V.boxSizing==="border-box"&&(Math.round(h+a)!==H&&(h-=uvR(V,"left","right")+a),Math.round(K+w)!==e&&(K-=uvR(V,"top","bottom")+w));D!==zO(D).document.documentElement&&
(D=Math.round(h+a)-H,e=Math.round(K+w)-e,Math.abs(D)!==1&&(h-=D),Math.abs(e)!==1&&(K-=e));t={x:b,y:t,width:h,height:K}}else t=Pen}else t=Pen;this.contentRect_=t;return t.width!==this.broadcastWidth||t.height!==this.broadcastHeight};var mI4=function(D,t){var H=t.x;var e=t.y;var V=t.width;t=t.height;var b=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);oGm(b,{x:H,y:e,width:V,height:t,top:e,right:H+V,bottom:t+e,left:H});oGm(this,{target:D,contentRect:b})};var MNw=function(D,t){var H=UI9;this.activeObservations_=[];this.observations_=new Map;if(typeof D!=="function")throw new TypeError("Ue");this.callback_=D;this.controller_=H;this.callbackCtx_=t};
MNw.prototype.observe=function(D){if(D===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(D instanceof zO(D).Element))throw new TypeError("We");var t=this.observations_;t.has(D)||(t.set(D,new Cef(D)),D=this.controller_,~D.observers_.indexOf(this)||D.observers_.push(this),D.JSC$11760_connected_||OPv(D),this.controller_.refresh())}};
MNw.prototype.unobserve=function(D){if(D===void 0)throw new TypeError("Ve");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(D instanceof zO(D).Element))throw new TypeError("We");var t=this.observations_;t.has(D)&&(t.delete(D),t.size||js9(this.controller_,this))}};
MNw.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();js9(this.controller_,this)};
var iPn=function(D){D.activeObservations_.splice(0);D.observations_.forEach(function(t){t.isActive()&&D.activeObservations_.push(t)})},rlv=function(D){if(D.activeObservations_.length>0){var t=D.callbackCtx_,H=D.activeObservations_.map(function(e){var V=e.target,b=e.contentRect_;
e.broadcastWidth=b.width;e.broadcastHeight=b.height;return new mI4(V,b)});
D.callback_.call(t,H,t);D.activeObservations_.splice(0)}};var DL=function(D){if(!(this instanceof DL))throw new TypeError("Xe");if(!arguments.length)throw new TypeError("Ve");UI9||(UI9=new clV);this.observer_=new MNw(D,this)};
DL.prototype.observe=function(D){this.observer_.observe(D)};
DL.prototype.unobserve=function(D){this.observer_.unobserve(D)};
DL.prototype.disconnect=function(){this.observer_.disconnect()};var Z6A=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:DL;var tek="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(" "),Do3={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},z0u=null,WfD=null;var Hx6={},efT=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 ZxA={text:1},qrD={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var SEm=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,XmQ={CONSTANT:{isUnwrappable:function(D){return D instanceof v$},
unwrap:T4v},JAVASCRIPT:{isUnwrappable:function(D){return D instanceof _.e2},
unwrap:G7V},HTML:{isUnwrappable:function(D){return D instanceof IE},
unwrap:function(D){return BU(D)}},
RESOURCE_URL:{isUnwrappable:function(D){return D instanceof md},
unwrap:_.X7},STRING:{isUnwrappable:function(D){return D instanceof Object},
unwrap:function(D){return String(D)}},
STYLE:{isUnwrappable:function(D){return typeof D==="string"},
unwrap:function(D){return D}},
URL:{isUnwrappable:function(D){return gw(D)},
unwrap:_.JA}},fTQ={CONSTANT:sIR,JAVASCRIPT:sIR,HTML:function(D){D=D instanceof IE?D:Ql(String(D).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return BU(D)},
RESOURCE_URL:sIR,STRING:String,STYLE:sIR,URL:function(D,t){D=SEm.test(D)?D:void 0;return D===void 0?t:D}};var ix6=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,hf$=/[\t\n\f\r ]+/,EYV=/[\t\n\f\r ,]+/g,NhV=function(D,t,H){return H},nG={},LcQ=function(){var D=function(){var e={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",e):e}(),t=D.createHTML(""),H=D.createScript("");
D=D.createScriptURL("");return{INNOCUOUS_STRING:t,INNOCUOUS_SCRIPT:H,INNOCUOUS_URL:D}}(),P3=LcQ.INNOCUOUS_STRING,$oK=LcQ.INNOCUOUS_SCRIPT,jIA=LcQ.INNOCUOUS_URL;var Al9=function(D){var t=rRT(D);return function(H,e,V,b){return b?t(b,e,V,H):P3}}({reportHandler:function(D,t){if(D)try{throw Error(t);
}catch(H){_.gT(H)}},
safeTypesBridge:function(D,t,H){var e=XmQ[t];return e.isUnwrappable(D)&&(e=e.unwrap(D,H),e!==H)?e:(0,fTQ[t])(String(D),H)},
allowedIdentifierPrefixes:[""]});if(oC!==void 0)throw Error("Ye");oC=Al9;if(oC!==Al9)throw Error("Ze");CG("Injectable",[]);var QID=CG("Inject",[["token",void 0]]),BhX=CG("Optional",[]);CG("Injectable",[]);var zfT=CG("Self",[]),DM6=CG("SkipSelf",[]);CG("Host",[]);var gGo={},JlB=function(){};
JlB.prototype.resolve=function(){throw Error("af");};
JlB.prototype.addProvider=function(){throw Error("af");};var WW6=Function;var YEV=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,lTV=function(){this._reflect=window.Reflect};
_.q=lTV.prototype;_.q.factory=function(D){return function(){return new (Function.prototype.bind.apply(D,[null].concat(_.A6(_.RE.apply(0,arguments)))))}};
_.q._zipTypesAndAnnotations=function(D,t){var H=typeof D==="undefined"?Array(t.length):Array(D.length);for(var e=0;e<H.length;e++)H[e]=typeof D==="undefined"?[]:D[e]!=Object?[D[e]]:[],t&&Uou(t[e])&&(H[e]=H[e].concat(t[e]));return H};
_.q._ownParameters=function(D,t){if(YEV.exec(D.toString()))return null;if(D.parameters&&D.parameters!==t.parameters)return D.parameters;var H=D.ctorParameters;return H&&H!==t.ctorParameters?(t=typeof H==="function"?H():H,D=t.map(function(e){return e&&e.type}),t=t.map(function(e){return e&&Pu$(e.decorators)}),this._zipTypesAndAnnotations(D,t)):Uou(this._reflect)&&Uou(this._reflect.getOwnMetadata)&&(t=this._reflect.getOwnMetadata("parameters",D),(H=this._reflect.getOwnMetadata("design:paramtypes",D))||
t)?this._zipTypesAndAnnotations(H,t):Array(D.length).fill(void 0)};
_.q.parameters=function(D){if(!D.prototype)return[];var t=Object.getPrototypeOf(D.prototype).constructor;(D=this._ownParameters(D,t))||t===Object||(D=this.parameters(t));return D||[]};
_.q._ownAnnotations=function(D,t){if(D.annotations&&D.annotations!==t.annotations)return D=D.annotations,typeof D==="function"&&D.annotations&&(D=D.annotations),D;if(D.decorators&&D.decorators!==t.decorators)return Pu$(D.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",D)};
_.q.annotations=function(D){var t=Object.getPrototypeOf(D.prototype).constructor;D=this._ownAnnotations(D,t)||[];return(t!==Object?this.annotations(t):[]).concat(D)};
_.q._ownPropMetadata=function(D,t){if(D.propMetadata&&D.propMetadata!==t.propMetadata)return D=D.propMetadata,typeof D==="function"&&D.propMetadata&&(D=D.propMetadata),D;if(D.propDecorators&&D.propDecorators!==t.propDecorators){var H=D.propDecorators,e={};Object.keys(H).forEach(function(V){e[V]=Pu$(H[V])});
return e}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",D)};
_.q.propMetadata=function(D){var t=Object.getPrototypeOf(D.prototype).constructor,H={};if(t!==Object){var e=this.propMetadata(t);Object.keys(e).forEach(function(b){H[b]=e[b]})}var V=this._ownPropMetadata(D,t);
V&&Object.keys(V).forEach(function(b){var a=[];H.hasOwnProperty(b)&&a.push.apply(a,_.A6(H[b]));a.push.apply(a,_.A6(V[b]));H[b]=a});
return H};
_.q.getter=function(D){return function(t){return t[D]}};
_.q.setter=function(D){return function(t,H){return t[D]=H}};
_.q.method=function(D){return function(t,H){if(!t[D])throw Error("bf`"+D);return t[D].apply(t,H)}};var vGf=function(){};var pm6=function(D){this.reflectionCapabilities=D};
_.P(pm6,vGf);_.q=pm6.prototype;_.q.factory=function(D){return this.reflectionCapabilities.factory(D)};
_.q.parameters=function(D){return this.reflectionCapabilities.parameters(D)};
_.q.annotations=function(D){return this.reflectionCapabilities.annotations(D)};
_.q.propMetadata=function(D){return this.reflectionCapabilities.propMetadata(D)};
_.q.getter=function(D){return this.reflectionCapabilities.getter(D)};
_.q.setter=function(D){return this.reflectionCapabilities.setter(D)};
_.q.method=function(D){return this.reflectionCapabilities.method(D)};var ARR=new pm6(new lTV);var tz=function(D,t){this.token=D;this.id=t;if(D===void 0||D===null)throw Error("gf");};
_.ql.Object.defineProperties(tz.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return mH(this.token)}}});
_.ql.Object.defineProperties(tz,{JSC$11802_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return S7.JSC$11806_numberOfKeys}}});
var dIa=function(){this._allKeys=new Map};
dIa.prototype.get=function(D){if(D instanceof tz)return D;if(this._allKeys.has(D))return this._allKeys.get(D);var t=new tz(D,tz.JSC$11802_numberOfKeys);this._allKeys.set(D,t);return t};
_.ql.Object.defineProperties(dIa.prototype,{JSC$11806_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var S7=new dIa;var tgX=function(D,t,H){this.key=D;this.optional=t;this.visibility=H},JRV=function(D){return new tgX(D,!1,null)},lD8=[],doV=function(D,t,H){this.key=D;
this.resolvedFactories=t;this.multiProvider=H},vYA=function(D,t,H,e){this.factory=D;
this.dependencies=t;this.providerClass=H;this.providerValue=e};var Hu={},ez=function(D,t){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=t===void 0?null:t;D=_.F(D);for(t=D.next();!t.done;t=D.next())this.addProvider(t.value)};
_.q=ez.prototype;_.q.addProvider=function(D){this.keyIdToIndex.set(D.key.id,this.keyIds.length);this.providers.push(D);this.keyIds.push(D.key.id);this.objs.push(Hu)};
_.q.resolve=function(D,t){t=t===void 0?gGo:t;return this._getByKey(S7.get(Ml(D)),null,t)};
_.q._new=function(D){if(this.constructedKeyIds[D.key.id])throw XyV(this,D.key);this.constructedKeyIds[D.key.id]=!0;return this._instantiateProvider(D)};
_.q._instantiateProvider=function(D){if(D.multiProvider){for(var t=Array(D.resolvedFactories.length),H=0;H<D.resolvedFactories.length;++H)t[H]=this._instantiate(D,D.resolvedFactories[H]);return t}return this._instantiate(D,D.resolvedFactories[0])};
_.q._instantiate=function(D,t){var H=this,e=t.factory;try{var V=t.dependencies.map(function(a){return H._getByReflectiveDependency(a)})}catch(a){throw a.addKey&&a.addKey(this,D.key),a;
}try{var b=e.apply(null,_.A6(V))}catch(a){throw fDD(this,a,D.key);}return b};
_.q._getByReflectiveDependency=function(D){return this._getByKey(D.key,D.visibility,D.optional?null:gGo)};
_.q._getByKey=function(D,t,H){return D===xI9?this:t instanceof zfT?this._getByKeySelf(D,H):this._getByKeyDefault(D,H,t)};
_.q._getObjByKeyId=function(D){for(var t=0;t<this.keyIds.length;t++)if(this.keyIds[t]===D)return this.objs[t]===Hu&&(this.objs[t]=this._new(this.providers[t])),this.objs[t];return Hu};
_.q._throwOrNull=function(D,t){if(t!==gGo)return t;throw SrD(this,D);};
_.q._getByKeySelf=function(D,t){var H=this._getObjByKeyId(D.id);return H!==Hu?H:this._throwOrNull(D,t)};
_.q._getByKeyDefault=function(D,t,H){for(var e=H=H instanceof DM6?this.parent:this;H instanceof ez;){var V=H._getObjByKeyId(D.id);if(V!==Hu)return V;H=H.parent}V=void 0;if(H!==null)try{var b=H.resolve(D.token,t);if(b!==Hu)return b}catch(a){V=a}if(!(e instanceof ez&&ewK(D.token))){if(V)throw V;return this._throwOrNull(D,t)}for(b=e;b.parent instanceof ez;)b=b.parent;b.addProvider(xoD({provide:D.token,useClass:D.token}));return b.resolve(D.token,t)};
_.q.toString=function(){return this.displayName};
_.ql.Object.defineProperties(ez.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+HvV(this,function(D){return' "'+D.key.displayName+'" '}).join(", ")+"])"}}});
var xI9=S7.get(Ml(JlB));(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 R7f=window.XRegExp;var uJo=-1,Wco=function(D){addEventListener("pageshow",function(t){t.persisted&&(uJo=t.timeStamp,D(t))},!0)};var Qsn=function(D,t,H){var e=ITQ,V,b;return function(a){if(t.value>=0&&(a||H)){var w;if((b=t.value-((w=V)!=null?w:0))||V===void 0)V=t.value,t.delta=b,a=t.value,t.rating=a>e[1]?"poor":a>e[0]?"needs-improvement":"good",D(t)}}};var yl3=function(D){requestAnimationFrame(function(){return requestAnimationFrame(function(){return D()})})};var Bgo=function(){var D=performance.getEntriesByType("navigation")[0];if(D&&D.responseStart>0&&D.responseStart<performance.now())return D};var z7f=function(){var D,t;return(t=(D=Bgo())==null?void 0:D.activationStart)!=null?t:0};var V4=-1,DPf=new Set,twn=function(D){if(document.visibilityState==="hidden"){if(D.type==="visibilitychange")for(var t=_.F(DPf),H=t.next();!H.done;H=t.next())H=H.value,H();isFinite(V4)||(V4=D.type==="visibilitychange"?D.timeStamp:0,removeEventListener("prerenderingchange",twn,!0))}},Hs6=function(){if(V4<0){var D=z7f(),t,H;
V4=(H=document.prerendering?void 0:(t=globalThis.performance.getEntriesByType("visibility-state").filter(function(e){return e.name==="hidden"&&e.startTime>D})[0])==null?void 0:t.startTime)!=null?H:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",twn,!0);addEventListener("prerenderingchange",twn,!0);Wco(function(){setTimeout(function(){V4=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return V4},
onHidden:function(e){DPf.add(e)}}};var e8m=function(){var D=D===void 0?-1:D;var t=Bgo(),H="navigate";uJo>=0?H="back-forward-cache":t&&(document.prerendering||z7f()>0?H="prerender":document.wasDiscarded?H="restore":t.type&&(H=t.type.replace(/_/g,"-")));return{name:"LCP",value:D,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:H}};var bvA=new WeakMap;var Vwn=function(D){var t=t===void 0?{}:t;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var H=new PerformanceObserver(function(e){Promise.resolve().then(function(){D(e.getEntries())})});
H.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},t));return H}}catch(e){}};var bsQ=function(D){var t=!1;return function(){t||(D(),t=!0)}};var qGf=function(D){document.prerendering?addEventListener("prerenderingchange",function(){return D()},!0):D()};var FTQ=function(D){var t=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?D():(D=bsQ(D),addEventListener("visibilitychange",D,{once:!0,capture:!0}),t(function(){D();removeEventListener("visibilitychange",D,{capture:!0})}))};var Vgu=function(){};
Vgu.prototype._processEntry=function(D){var t;(t=this._onBeforeProcessingEntry)==null||t.call(this,D)};var ITQ=[2500,4E3],rY6=function(D){var t=t===void 0?{}:t;qGf(function(){var H=Hs6(),e=e8m(),V=qyA(t),b=function(T){t.reportAllChanges||(T=T.slice(-1));T=_.F(T);for(var c=T.next();!c.done;c=T.next())c=c.value,V._processEntry(c),c.startTime<H.firstHiddenTime&&(e.value=Math.max(c.startTime-z7f(),0),e.entries=[c],w())},a=Vwn(b);
if(a){var w=Qsn(D,e,t.reportAllChanges);for(var h=bsQ(function(){b(a.takeRecords());a.disconnect();w(!0)}),K=function(T){T.isTrusted&&(FTQ(h),removeEventListener(T.type,K,{capture:!0}))},N=_.F(["keydown",
"click","visibilitychange"]),k=N.next();!k.done;k=N.next())addEventListener(k.value,K,{capture:!0});Wco(function(T){e=e8m();w=Qsn(D,e,t.reportAllChanges);yl3(function(){e.value=performance.now()-T.timeStamp;w(!0)})})}})};var amo;var wXn;_.W=function(){return wXn!==void 0?wXn:wXn=document.createElement("template")};
document.head.appendChild(_.W().content);var Zso;_.gx({_template:function(){if(Zso!==void 0)return Zso;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
var t=D.content,H=t.insertBefore;amo===void 0&&(amo=document.createElement("template"));var e=amo;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return Zso=D},
is:"tp-yt-app-toolbar"});var s6v;var h8n;_.bq=function(){};
_.bq=_.gx({_template:function(){if(h8n!==void 0)return h8n;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;s6v===void 0&&(s6v=document.createElement("template"));var e=s6v;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return h8n=D},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.bq.instance||(_.bq.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(D){this._text===D&&(D+="\u00a0");this._text="";this.async(function(){this._text=D},this.timeout)},
_onIronAnnounce:function(D){D.detail&&D.detail.text&&this.announce(D.detail.text)}});
_.bq.instance=null;_.bq.requestAvailability=function(){_.bq.instance||(_.bq.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.bq.instance):document.addEventListener("load",function(){document.body.appendChild(_.bq.instance)})};var Gkw;var EKB;/*

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

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 qa,$Po,is9;qa=Element.prototype;$Po=qa.matches||qa.matchesSelector||qa.mozMatchesSelector||qa.msMatchesSelector||qa.oMatchesSelector||qa.webkitMatchesSelector;is9=function(){};
_.Os3=function(D){var t=r8Q,H=[];return t._collectTabbableNodes(D,H)?t._sortByTabIndex(H):H};
_.q=is9.prototype;_.q.isFocusable=function(D){return $Po.call(D,"input, select, textarea, button, object")?$Po.call(D,":not([disabled])"):$Po.call(D,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.q._normalizedTabIndex=function(D){return this.isFocusable(D)?(D=D.getAttribute("tabindex")||0,Number(D)):-1};
_.q._collectTabbableNodes=function(D,t){if(D.nodeType!==Node.ELEMENT_NODE||!this._isVisible(D))return!1;var H=this._normalizedTabIndex(D),e=H>0;H>=0&&t.push(D);if(D.localName==="content"||D.localName==="slot")H=_.Xu(D).getDistributedNodes();else{var V;H=((V=_.Xu(D).shadowRoot)!=null?V:_.Xu(D.root||D)).children}for(D=0;D<H.length;D++)e=this._collectTabbableNodes(H[D],t)||e;return e};
_.q._isVisible=function(D){var t=D.style;return t.visibility!=="hidden"&&t.display!=="none"?(t=window.getComputedStyle(D),t.visibility!=="hidden"&&t.display!=="none"):!1};
_.q._sortByTabIndex=function(D){var t=D.length;if(t<2)return D;var H=Math.ceil(t/2);t=this._sortByTabIndex(D.slice(0,H));D=this._sortByTabIndex(D.slice(H));return this._mergeSortByTabIndex(t,D)};
_.q._mergeSortByTabIndex=function(D,t){for(var H=[];D.length>0&&t.length>0;)this._hasLowerTabOrder(D[0],t[0])?H.push(t.shift()):H.push(D.shift());return H.concat(D,t)};
_.q._hasLowerTabOrder=function(D,t){D=Math.max(D.tabIndex,0);t=Math.max(t.tabIndex,0);return D===0||t===0?t>D:D>t};
var r8Q=new is9;var UP9;var oKw;_.gx({_template:function(){if(oKw!==void 0)return oKw;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;UP9===void 0&&(UP9=document.createElement("template"));var e=UP9;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return oKw=D},
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&&_.Xu(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.Xu(this.parentNode).removeChild(this)},
_onTransitionend:function(D){D&&D.target===this&&this.complete()},
_openedChanged:function(D){D?this.prepare():(D=window.getComputedStyle(this),D.transitionDuration!=="0s"&&D.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 aW=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;Jn(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)};
aW.prototype._bringOverlayAtIndexToFront=function(D){var t=this._overlays[D];if(t){var H=this._overlays.length-1,e=this._overlays[H];e&&this._shouldBeBehindOverlay(t,e)&&H--;if(!(D>=H)){e=Math.max(this._getZ(_.PIB(this)),this._minimumZ);for(this._getZ(t)<=e&&this._applyOverlayZ(t,e);D<H;)this._overlays[D]=this._overlays[D+1],D++;this._overlays[H]=t}}};
aW.prototype.addOverlay=function(D){var t=this._overlays.indexOf(D);if(t>=0)this._bringOverlayAtIndexToFront(t);else{t=this._overlays.length;var H=this._overlays[t-1],e=Math.max(this._getZ(H),this._minimumZ),V=this._getZ(D);H&&this._shouldBeBehindOverlay(D,H)&&(this._applyOverlayZ(H,e),t--,e=Math.max(this._getZ(this._overlays[t-1]),this._minimumZ));V<=e&&this._applyOverlayZ(D,e);this._overlays.splice(t,0,D)}this.trackBackdrop()};
aW.prototype.removeOverlay=function(D){D=this._overlays.indexOf(D);D!==-1&&(this._overlays.splice(D,1),this.trackBackdrop())};
_.PIB=function(D){return D._overlays[D._overlays.length-1]};
_.q=aW.prototype;_.q.trackBackdrop=function(){var D=this._overlayWithBackdrop();if(D||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(D)-1,this.backdropElement.opened=!!D,this.backdropElement.prepare()};
_.q._overlayWithBackdrop=function(){for(var D=this._overlays.length-1;D>=0;D--)if(this._overlays[D].withBackdrop)return this._overlays[D]};
_.q._getZ=function(D){var t=this._minimumZ;if(D){var H,e,V=Number(((H=D.hostElement)!=null?H:D).style.zIndex||window.getComputedStyle((e=D.hostElement)!=null?e:D).zIndex);V===V&&(t=V)}return t};
_.q._setZ=function(D,t){var H;((H=D.hostElement)!=null?H:D).style.zIndex=t};
_.q._applyOverlayZ=function(D,t){this._setZ(D,t+2)};
_.q._overlayInPath=function(D){D=D||[];for(var t=0;t<D.length;t++){var H=void 0;if(((H=D[t].polymerController)!=null?H:D[t])._manager===this)return D[t]}};
_.q._onCaptureClick=function(D){var t=this._overlays.length-1;if(t!==-1)for(var H=_.Xu(D).path,e,V;(e=this._overlays[t])&&this._overlayInPath(H)!==((V=e.hostElement)!=null?V:e);)if(e._onCaptureClick(D),e.allowClickThrough)t--;else break};
_.q._onCaptureFocus=function(D){var t=_.PIB(this);t&&t._onCaptureFocus(D)};
_.q._onCaptureKeyDown=function(D){var t=_.PIB(this);t&&(_.l9.keyboardEventMatchesKeys(D,"esc")?t._onCaptureEsc(D):_.l9.keyboardEventMatchesKeys(D,"tab")&&t._onCaptureTab(D))};
_.q._shouldBeBehindOverlay=function(D,t){return!D.alwaysOnTop&&t.alwaysOnTop&&!t.contains(D)};
_.ql.Object.defineProperties(aW.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 D=document.activeElement;D&&D instanceof Element!==!1||(D=document.body);for(;D.root&&_.Xu(D.root).activeElement;)D=_.Xu(D.root).activeElement;return D}}});
_.wr=new aW;var FLV=0,ah3=0,wN3=null,ZvX=[],fG=["wheel","mousewheel","DOMMouseScroll"],sJX;_.r("web_no_lock_on_touchstart_killswitch")&&(fG.push("touchstart"),fG.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;_.ZL={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:_.wr},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var D;return this._focusedChild||_.Xu((D=this.hostElement)!=null?D:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var D;return _.Os3((D=this.hostElement)!=null?D: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 D;this._observer=_.Xu((D=this.hostElement)!=null?D:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var D;_.Xu((D=this.hostElement)!=null?D:this).unobserveNodes(this._observer)}this._observer=null;for(var t in this.__rafs)this.__rafs[t]!==null&&cancelAnimationFrame(this.__rafs[t]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(D){this.fire("iron-overlay-canceled",D,{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 D;((D=this.hostElement)!=null?D:this).style.outline="none";var t;((t=this.hostElement)!=null?t:this).style.display="none"}},
_openedChanged:function(D){if(D){var t;((t=this.hostElement)!=null?t:this).removeAttribute("aria-hidden")}else{var H;((H=this.hostElement)!=null?H: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 D;if(this.withBackdrop&&!((D=this.hostElement)!=null?D:this).hasAttribute("tabindex")){var t;((t=this.hostElement)!=null?t:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var H;((H=this.hostElement)!=null?H: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 D;((D=this.hostElement)!=null?D:this).style.display="none";var t;((t=this.hostElement)!=null?t:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var D,t;((D=this.hostElement)!=null?D:this).style.transition=((t=this.hostElement)!=null?t:this).style.webkitTransition="none";var H,e;((H=this.hostElement)!=null?H:this).style.transform=((e=this.hostElement)!=null?e:this).style.webkitTransform="none";var V;((V=this.hostElement)!=null?V:this).style.display=""},
_finishPositioning:function(){var D;((D=this.hostElement)!=null?D:this).style.display="none";this.scrollTop=this.scrollTop;var t,H;((t=this.hostElement)!=null?t:this).style.transition=((H=this.hostElement)!=null?H:this).style.webkitTransition="";var e,V;((e=this.hostElement)!=null?e:this).style.transform=((V=this.hostElement)!=null?V:this).style.webkitTransform="";var b;((b=this.hostElement)!=null?b:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var D=this._manager.deepActiveElement,t;if(!(t=D===document.body))a:{for(;D;D=D.assignedSlot||D.parentNode||D.host)if(D===this){t=!0;break a}t=!1}t&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(D){this.noCancelOnOutsideClick||this.cancel(D)},
_onCaptureFocus:function(D){if(this.withBackdrop){var t=_.Xu(D).path;t.indexOf(this)===-1?(D.stopPropagation(),this._applyFocus()):this._focusedChild=t[0]}},
_onCaptureEsc:function(D){this.noCancelOnEscKey||this.cancel(D)},
_onCaptureTab:function(D){if(this.withBackdrop){this.__ensureFirstLastFocusables();var t=D.shiftKey,H=t?this.__firstFocusableNode:this.__lastFocusableNode;t=t?this.__lastFocusableNode:this.__firstFocusableNode;if(H===t)H=!0;else{var e=this._manager.deepActiveElement;H=e===H||e===this}H&&(D.preventDefault(),this._focusedChild=t,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var D=this._focusableNodes;this.__firstFocusableNode=D[0];this.__lastFocusableNode=D[D.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(D,t){var H=this.__rafs;H[D]!==null&&cancelAnimationFrame(H[D]);H[D]=requestAnimationFrame(function(){H[D]=null;t.call(this)}.bind(this))},
__updateScrollObservers:function(D,t,H){D&&t&&this.__isValidScrollAction(H)?(H==="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),sJX=_._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()):(D=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),D!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(D,1),sJX=_._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(uv)for(var D=this;D;)D.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&D.host&&this.__rootNodes.push(D),D=D.host||D.assignedSlot||D.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(t){t.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(D){D.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(D){return D==="lock"||D==="refit"||D==="cancel"},
__onCaptureScroll:function(D){if(!(this.__isAnimating||_.Xu(D).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(D)}},
__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)}};
_.sn=[j6a,_.QI,_.ZL];_.gx({_template:function(){if(TLm!==void 0)return TLm;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;kkm===void 0&&(kkm=document.createElement("template"));var e=kkm;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return TLm=D},
is:"tp-yt-iron-dropdown",behaviors:[_.vO,_.l9,_.sn,aTv],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 D=_.Xu(this.$.content).getDistributedNodes(),t=0,H=D.length;t<H;t++)if(D[t].nodeType===Node.ELEMENT_NODE)return D[t]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.ZL._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.ZL._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.ZL._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var D=this.containedElement,t=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),H=0;H<t.length;H++)t[H].node=D;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(D){this._readied&&(D?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var D=this.focusTarget||this.containedElement;D&&this.opened&&!this.noAutoFocus?D.focus():_.ZL._applyFocus.apply(this,arguments)}});var nKw;var CI9;/*

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 mPv=new _.R0({type:"iconset"});
_.gx({_template:function(){if(CI9!==void 0)return CI9;var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;nKw===void 0&&(nKw=document.createElement("template"));
var e=nKw;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return CI9=D},
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(D){D=(D||"").split(":");this._iconName=D.pop();this._iconsetName=D.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&&_.Xu(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=mPv.byKey(this._iconsetName)){var D=this._iconset.applyIcon(this,this._iconName,this.theme);D&&D.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,_.Xu(this.root).appendChild(this._img)}});var Mw6;var SGf;_.gx({_template:function(){if(SGf!==void 0)return SGf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
var t=D.content,H=t.insertBefore;Mw6===void 0&&(Mw6=document.createElement("template"));var e=Mw6;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return SGf=D},
is:"tp-yt-iron-input",behaviors:[_.WO],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(){_.bq.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.Xu(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.Xu(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 D=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":D=/[0-9.,e-]/}return D},_bindValueChanged:function(D,t){t&&(D===void 0?t.value=null:D!==t.value&&(this.inputElement.value=D),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:D}))},
_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(D){var t=D.keyCode==19||D.keyCode==20||D.keyCode==45||D.keyCode==46||D.keyCode==144||D.keyCode==145||D.keyCode>32&&D.keyCode<41||D.keyCode>111&&D.keyCode<124;return!(D.keyCode==8||D.keyCode==9||D.keyCode==13||D.keyCode==27)&&!(D.charCode==0&&t)},
_onKeypress:function(D){if(this.allowedPattern||this.inputElement.type==="number"){var t=this._patternRegExp;if(t&&!(D.metaKey||D.ctrlKey||D.altKey)){this._patternAlreadyChecked=!0;var H=String.fromCharCode(D.charCode);this._isPrintable(D)&&!t.test(H)&&(D.preventDefault(),this._announceInvalidCharacter("Invalid character "+H+" not entered."))}}},
_checkPatternValidity:function(){var D=this._patternRegExp;if(!D)return!0;for(var t=0;t<this.inputElement.value.length;t++)if(!D.test(this.inputElement.value[t]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var D=this.inputElement.checkValidity();D&&(this.required&&this.bindValue===""?D=!1:this.hasValidator()&&(D=_.WO.validate.call(this,this.bindValue)));this.invalid=!D;this.fire("iron-input-validate");return D},
_announceInvalidCharacter:function(D){this.fire("iron-announce",{text:D})},
_computeValue:function(D){return D}});var XX6;var fma;var LT4=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),A8f=LT4&&LT4[1]>=8;
_.gx({_template:function(){if(fma!==void 0)return fma;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;XX6===void 0&&(XX6=document.createElement("template"));var e=XX6;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return fma=D},
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:[lr3,_.QI,_.Fc4,xFa],_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 _.Xu(_.Xu(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var D=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,D-this._physicalCount)},set _virtualStart(D){D=this._clamp(D,0,this._maxVirtualStart);this.grid&&(D-=D%this._itemsPerRow);this._virtualStartVal=D},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(D){D%=this._physicalCount;D<0&&(D=this._physicalCount+D);this.grid&&(D-=D%this._itemsPerRow);this._physicalStartVal=D},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(D){this._physicalCountVal=D},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 D=this._firstVisibleIndexVal;if(D==null){var t=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
D=this._iterateItems(function(H,e){t+=this._getPhysicalSizeIncrement(H);if(t>this._scrollPosition)return this.grid?e-e%this._itemsPerRow:e;if(this.grid&&this._virtualCount-1===e)return e-e%this._itemsPerRow})||0}return D},
get lastVisibleIndex(){var D=this._lastVisibleIndexVal;if(D==null){if(this.grid)D=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var t=this._physicalTop+this._scrollOffset;this._iterateItems(function(H,e){t<this._scrollBottom&&(D=e);t+=this._getPhysicalSizeIncrement(H)})}this._lastVisibleIndexVal=D}return D},
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,_.Lz);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(D){this.style.webkitOverflowScrolling=D===this?"touch":"";this.style.overflowY=D===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Lz)},
updateViewportBoundaries:function(){var D=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(D["padding-top"],10);this._isRTL=D.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var D=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),t=D-this._scrollPosition,H=t>=0;this._scrollPosition=D;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(t)>this._physicalSize&&this._physicalSize>0?(t-=this._scrollOffset,H=Math.round(t/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=H,this._physicalStart+=H,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(D=this._getReusables(H),H?(this._physicalTop=D.physicalTop,this._virtualStart+=D.indexes.length,this._physicalStart+=D.indexes.length):(this._virtualStart=this._virtualStart-D.indexes.length,this._physicalStart=this._physicalStart-D.indexes.length),this._update(D.indexes,H?null:D.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),dv))},
_getReusables:function(D){var t=[],H=this._hiddenContentSize*this._ratio,e=this._virtualStart,V=this._virtualEnd,b=this._physicalCount,a=this._physicalTop+this._scrollOffset;var w=this._physicalBottom+this._scrollOffset;var h=this._scrollPosition,K=this._scrollBottom;if(D){var N=this._physicalStart;w=h-a}else N=this._physicalEnd,w-=K;for(;;){var k=this._getPhysicalSizeIncrement(N);w-=k;if(t.length>=b||w<=H)break;if(D){if(V+t.length+1>=this._virtualCount)break;if(a+k>=h-this._scrollOffset)break;t.push(N);
a+=k;N=(N+1)%b}else{if(e-t.length<=0)break;if(a+this._physicalSize-k<=K)break;t.push(N);a-=k;N=N===0?b-1:N-1}}return{indexes:t,physicalTop:a-this._scrollOffset}},
_update:function(D,t){if(!(D&&D.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(D);this._updateMetrics(D);if(t)for(;t.length;)D=t.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(D);this._positionItems();this._updateScrollerSize()}},
_createPool:function(D){this._ensureTemplatized();var t,H=Array(D);for(t=0;t<D;t++){var e=this.stamp(null);H[t]=e.root.querySelector("*");this._itemsParent.appendChild(e.root)}return H},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(D){D=this._clamp(this._physicalCount+D,3,this._virtualCount-this._virtualStart);D=this._convertIndexToCompleteRow(D);if(this.grid){var t=D%this._itemsPerRow;t&&D-t<=this._physicalCount&&(D+=this._itemsPerRow);D-=t}D-=this._physicalCount;t=Math.round(this._physicalCount*.5);if(!(D<0)){if(D>0){t=window.performance.now();[].push.apply(this._physicalItems,this._createPool(D));for(var H=0;H<D;H++)this._physicalSizes.push(0);this._physicalCount+=D;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=D);this._update();this._templateCost=(window.performance.now()-t)/D;t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),oeQ):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,t),dv))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var D=this._getReusables(!0);this._physicalTop=D.physicalTop;this._virtualStart+=D.indexes.length;this._physicalStart+=D.indexes.length;this._update(D.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 D={__key__:!0};D[this.as]=!0;D[this.indexAs]=!0;D[this.selectedAs]=!0;D.tabIndex=!0;this._instanceProps=D;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(D,t){typeof t!=="undefined"&&(this.notifyResize(),_.ML(),D&&this._updateGridMetrics())},
_itemsChanged:function(D){if(D.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,
_.Lz);else if(D.path==="items.splices"){this._adjustVirtualIndex(D.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(D.value.indexSplices.some(function(H){return H.addedCount>0||H.removed.length>0})){var t=this._getActiveElement();
this.contains(t)&&t.blur()}D=D.value.indexSplices.some(function(H){return H.index+H.addedCount>=this._virtualStart&&H.index<=this._virtualEnd},this);
this._isClientFull()&&!D||this._debounce("_render",this._render,_.Lz)}else D.path!=="items.length"&&this._forwardItemPath(D.path,D.value)},
_forwardItemPath:function(D,t){D=D.slice(6);var H=D.indexOf(".");H===-1&&(H=D.length);var e,V=this.modelForElement(this._offscreenFocusedItem),b=parseInt(D.substring(0,H),10);if(e=this._isIndexRendered(b)){var a=this._getPhysicalIndex(b);var w=this.modelForElement(this._physicalItems[a])}else V&&(w=V);w&&w[this.indexAs]===b&&(D=D.substring(H+1),D=this.as+(D?"."+D:""),w._setPendingPropertyOrPath(D,t,!1,!0),w._flushProperties&&w._flushProperties(),e&&(this._updateMetrics([a]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(D){D.forEach(function(t){t.removed.forEach(this._removeItem,this);t.index<this._virtualStart&&(t=Math.max(t.addedCount-t.removed.length,t.index-this._virtualStart),this._virtualStart+=t,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=t))},this)},
_removeItem:function(D){this.$.selector.deselect(D);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===D&&this._removeFocusedItem()},
_iterateItems:function(D,t){var H,e;if(arguments.length===2&&t)for(e=0;e<t.length;e++){var V=t[e];var b=this._computeVidx(V);if((H=D.call(this,V,b))!=null)return H}else{V=this._physicalStart;for(b=this._virtualStart;V<this._physicalCount;V++,b++)if((H=D.call(this,V,b))!=null)return H;for(V=0;V<this._physicalStart;V++,b++)if((H=D.call(this,V,b))!=null)return H}},
_computeVidx:function(D){return D>=this._physicalStart?this._virtualStart+(D-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+D},
_assignModels:function(D){this._iterateItems(function(t,H){var e=this._physicalItems[t],V=this.items&&this.items[H];if(V!=null){var b=this.modelForElement(e);b.__key__=null;this._forwardProperty(b,this.as,V);this._forwardProperty(b,this.selectedAs,this.$.selector.isSelected(V));this._forwardProperty(b,this.indexAs,H);this._forwardProperty(b,"tabIndex",this._focusedVirtualIndex===H?0:-1);this._physicalIndexForKey[b.__key__]=t;b._flushProperties&&b._flushProperties(!0);e.removeAttribute("hidden")}else e.setAttribute("hidden",
"")},D)},
_updateMetrics:function(D){_.ML();var t=0,H=0,e=this._physicalAverageCount,V=this._physicalAverage;this._iterateItems(function(b){H+=this._physicalSizes[b];this._physicalSizes[b]=this._physicalItems[b].offsetHeight;t+=this._physicalSizes[b];this._physicalAverageCount+=this._physicalSizes[b]?1:0},D);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(H=this._itemsPerRow===1?H:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+t-H,this._itemsPerRow=1);this._physicalAverageCount!==e&&(this._physicalAverage=Math.round((V*e+t)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var D=this._physicalTop;if(this.grid){var t=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(H,e){var V=Math.floor(e%this._itemsPerRow*this._itemWidth+t);this._isRTL&&(V*=-1);this.translate3d(V+"px",D+"px",0,this._physicalItems[H]);this._shouldRenderNextRow(e)&&(D+=this._rowHeight)})}else this._iterateItems(function(H){this.translate3d(0,D+"px",0,this._physicalItems[H]);
D+=this._physicalSizes[H]})},
_getPhysicalSizeIncrement:function(D){return this.grid?this._computeVidx(D)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[D]},
_shouldRenderNextRow:function(D){return D%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var D=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(D!==0){this._physicalTop=this._physicalTop-D;var t=this._scrollPosition;!A8f&&t>0&&this._resetScrollPosition(t-D)}},
_resetScrollPosition:function(D){this.scrollTarget&&D>=0&&(this._scrollPosition=this._scrollTop=D)},
_updateScrollerSize:function(D){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((D=(D=(D=D||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(D){return this.scrollToIndex(this.items.indexOf(D))},
scrollToIndex:function(D){if(!(typeof D!=="number"||D<0||D>this.items.length-1)&&(_.ML(),this._physicalCount!==0)){D=this._clamp(D,0,this._virtualCount-1);if(!this._isIndexRendered(D)||D>=this._maxVirtualStart)this._virtualStart=this.grid?D-this._itemsPerRow*2:D-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var t=this._physicalStart,H=this._virtualStart,e=0,V=this._hiddenContentSize;H<D&&
e<=V;)e+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,H++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+e);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)},_.Lz)},
selectItem:function(D){return this.selectIndex(this.items.indexOf(D))},
selectIndex:function(D){if(!(D<0||D>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(D)){var t=this.modelForElement(this._physicalItems[this._getPhysicalIndex(D)]);t&&(t[this.selectedAs]=!0);this.updateSizeForIndex(D)}this.$.selector.selectIndex(D)}},
deselectItem:function(D){return this.deselectIndex(this.items.indexOf(D))},
deselectIndex:function(D){D<0||D>=this._virtualCount||(this._isIndexRendered(D)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(D)])[this.selectedAs]=!1,this.updateSizeForIndex(D)),this.$.selector.deselectIndex(D))},
toggleSelectionForItem:function(D){return this.toggleSelectionForIndex(this.items.indexOf(D))},
toggleSelectionForIndex:function(D){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(D):this.$.selector.isSelected(this.items[D]))?this.deselectIndex(D):this.selectIndex(D)},
clearSelection:function(){this._iterateItems(function(D){this.modelForElement(this._physicalItems[D])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(D){(D?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(D){var t=this.modelForElement(D.target);if(t){var H=_.Xu(D).path[0];D=this._getActiveElement();var e=this._physicalItems[this._getPhysicalIndex(t[this.indexAs])];if(H.localName!=="input"&&H.localName!=="button"&&H.localName!=="select"){H=t.tabIndex;t.tabIndex=-100;var V=D?D.tabIndex:-1;t.tabIndex=H;D&&e!==D&&e.contains(D)&&V!==-100||this.toggleSelectionForItem(t[this.as])}}},
_multiSelectionChanged:function(D){this.clearSelection();this.$.selector.multi=D},
updateSizeForItem:function(D){return this.updateSizeForIndex(this.items.indexOf(D))},
updateSizeForIndex:function(D){if(!this._isIndexRendered(D))return null;this._updateMetrics([this._getPhysicalIndex(D)]);this._positionItems();return null},
_manageFocus:function(){var D=this._focusedVirtualIndex;D>=0&&D<this._virtualCount?this._isIndexRendered(D)?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(D){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(D/this._itemsPerRow)*this._itemsPerRow:D},
_isIndexRendered:function(D){return D>=this._virtualStart&&D<=this._virtualEnd},
_isIndexVisible:function(D){return D>=this.firstVisibleIndex&&D<=this.lastVisibleIndex},
_getPhysicalIndex:function(D){return(this._physicalStart+(D-this._virtualStart))%this._physicalCount},
focusItem:function(D){this._focusPhysicalItem(D)},
_focusPhysicalItem:function(D){if(!(D<0||D>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(D)||this.scrollToIndex(D);var t=this._physicalItems[this._getPhysicalIndex(D)],H=this.modelForElement(t),e;H.tabIndex=-100;t.tabIndex===-100&&(e=t);e||(e=_.Xu(t).querySelector('[tabindex="-100"]'));H.tabIndex=0;this._focusedVirtualIndex=D;e&&e.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 D=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var t=this.stamp(null);this._focusBackfillItem=t.root.querySelector("*");this._itemsParent.appendChild(t.root)}this._offscreenFocusedItem=this._physicalItems[D];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[D]=this._focusBackfillItem;this._focusedPhysicalIndex=D;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var D=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),t=this._physicalItems[D];if(t){var H=this.modelForElement(t),e=this.modelForElement(this._offscreenFocusedItem);H[this.as]===e[this.as]?(this._focusBackfillItem=t,H.tabIndex=-1,this._physicalItems[D]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(D){D=this.modelForElement(D.target);var t=this.modelForElement(this._focusedItem),H=this._offscreenFocusedItem!==null,e=this._focusedVirtualIndex;D&&(t===D?this._isIndexVisible(e)||this.scrollToIndex(e):(this._restoreFocusedItem(),t&&(t.tabIndex=-1),D.tabIndex=0,this._focusedVirtualIndex=e=D[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(e),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],H&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(D){switch(D.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&D.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&&D.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(D)}},
_clamp:function(D,t,H){return Math.min(H,Math.max(t,D))},
_debounce:function(D,t,H){this._debouncers=this._debouncers||{};this._debouncers[D]=_.oc(this._debouncers[D],H,t.bind(this));_.Pb(this._debouncers[D])},
_forwardProperty:function(D,t,H){D._setPendingProperty(t,H)},
_forwardHostPropV2:function(D,t){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(H){H&&this.modelForElement(H).forwardHostProp(D,t)},this)},
_notifyInstancePropV2:function(D,t,H){TLD(this.as,t)&&(D=D[this.indexAs],t==this.as&&(this.items[D]=H),this.notifyPath(jp(this.as,"items."+D,t),H))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(D,t,H){t.indexOf(this.as+".")===0&&this.notifyPath("items."+D.__key__+"."+t.slice(this.as.length+1),H)},
_forwardParentPath:function(D,t){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(H){H&&this.modelForElement(H).notifyPath(D,t)},this)},
_forwardParentProp:function(D,t){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(H){H&&(this.modelForElement(H)[D]=t)},this)},
_getActiveElement:function(){var D=this._itemsParent.node.domHost;return _.Xu(D?D.root:document).activeElement},
_scrollTargetChanged:function(D,t){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(t)if(D==="document")this.scrollTarget=this._doc;else if(typeof D==="string"){var H,e;this.scrollTarget=(t=(e=(H=this.domHost)==null?void 0:H.polymerController)!=null?e:this.domHost)&&t.$?t.$[D]:_.Xu(this.ownerDocument).querySelector("#"+D)}else this._isValidScrollTarget()&&(this._oldScrollTarget=D,this._toggleScrollListener(this._shouldHaveListener,D))}});var gKQ;var J8V;var YGv=function(D,t,H,e){D-=H;t-=e;return Math.sqrt(D*D+t*t)},lmf=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
hwD.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var GBV=function(D){D.maxRadius=0;D.mouseDownStart=0;D.mouseUpStart=0;D.xStart=0;D.yStart=0;D.xEnd=0;D.yEnd=0;D.containerMetrics=new hwD(D.element)};
EID.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var D=lmf()-this.mouseDownStart;this.mouseUpStart&&(D-=this.mouseUpElapsed);return D},get mouseUpElapsed(){return this.mouseUpStart?lmf()-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 D=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(D*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-D/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var D=this.radius/(this.containerMetrics.size/2);var t=this.xNow-this.containerMetrics.width/2;var H=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+t+"px, "+H+"px)";this.waveContainer.style.transform="translate3d("+t+"px, "+H+"px, 0)";this.wave.style.webkitTransform="scale("+D+","+D+")";this.wave.style.transform="scale3d("+D+","+D+",1)"},
downAction:function(D){var t=this.containerMetrics.width/2,H=this.containerMetrics.height/2;GBV(this);this.mouseDownStart=lmf();this.center?(this.xStart=t,this.yStart=H):(this.xStart=D?D.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=D?D.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=t,this.yEnd=H);D=this.containerMetrics;t=this.xStart;H=this.yStart;this.maxRadius=Math.max(YGv(t,H,0,0),YGv(t,H,
D.width,0),YGv(t,H,0,D.height),YGv(t,H,D.width,D.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=lmf())},
remove:function(){_.Xu(_.Xu(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.gx({_template:function(){if(J8V!==void 0)return J8V;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;gKQ===void 0&&(gKQ=document.createElement("template"));var e=gKQ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return J8V=D},
is:"tp-yt-paper-ripple",behaviors:[_.l9],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(){_.Xu(this).parentNode.nodeType==11?this.keyEventTarget=_.Xu(this).getOwnerRoot().host:this.keyEventTarget=_.Xu(this).parentNode;var D=this.keyEventTarget;this.listen(D,"up","uiUpAction");this.listen(D,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(D){D.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var D=0;D<this.ripples.length;++D)if(!this.ripples[D].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(D){this.noink||this.downAction(D)},
downAction:function(D){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(D),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(D){this.noink||this.upAction(D)},
upAction:function(D){this.holdDown||(this.ripples.forEach(function(t){t.upAction(D)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var D=0;D<this.ripples.length;++D){var t=this.ripples[D];t.isOpacityFullyDecayed&&!t.isRestingAtMaxRadius&&this.removeRipple(t)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var D=new EID(this);_.Xu(this.$.waves).appendChild(D.waveContainer);this.$.background.style.backgroundColor=D.color;this.ripples.push(D);this._setAnimating(!0);return D},
removeRipple:function(D){var t=this.ripples.indexOf(D);t<0||(this.ripples.splice(t,1),D.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var D;for(D=0;D<this.ripples.length;++D){var t=this.ripples[D];t.draw();this.$.background.style.opacity=t.outerOpacity;t.isOpacityFullyDecayed&&!t.isRestingAtMaxRadius&&this.removeRipple(t)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(D,t){t!==void 0&&(D?this.downAction():this.upAction())}});var hz={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(D){pL._downHandler.call(this,D);this.pressed&&this.ensureRipple(D)},
ensureRipple:function(D){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var t=this._rippleContainer||this.root;t&&_.Xu(t).appendChild(this._ripple);if(D){t=_.Xu(this._rippleContainer||this);var H=_.Xu(D).rootTarget;t.deepContains(H)&&this._ripple.uiDownAction(D)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(D){this.hasRipple()&&(this._ripple.noink=D)}};var vK4={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 D=1;this.disabled?D=0:this.active||this.pressed?D=4:this.receivedFocusFromKeyboard&&(D=3);this._setElevation(D)},
_computeKeyboardClass:function(D){this.toggleClass("keyboard-focus",D)},
_spaceKeyDownHandler:function(D){pL._spaceKeyDownHandler.call(this,D);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(D){pL._spaceKeyUpHandler.call(this,D);this.hasRipple()&&this._ripple.uiUpAction()}},pXo=[Qn6,
_.vO,hz,vK4];_.dPa={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(D){D&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=D)},
_createRipple:function(){var D=hz._createRipple();D.id="ink";D.setAttribute("center","");D.classList.add("circle");return D}};
_.xPv=[Qn6,_.vO,hz,_.dPa];_.R8B=[_.xPv,zof,{_checkedChanged:function(){BFQ._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){hz._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var uCn;var WT6;var Imw=function(){};
_.q=Imw.prototype;_.q.registered=function(){};
_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._tapHandler=function(){};
_.q._focusChanged=function(){};
_.q._detectKeyboardFocus=function(){};
_.q._userActivate=function(){};
_.q._upHandler=function(){};
_.q._asyncClick=function(){};
_.q._pressedChanged=function(){};
_.q._ariaActiveAttributeChanged=function(){};
_.q._activeChanged=function(){};
_.q._controlStateChanged=function(){};
_.q._changedButtonState=function(){};
_.q._focusBlurHandler=function(){};
_.q._disabledChanged=function(){};
_.q._changedControlState=function(){};
_.q._buttonStateChanged=function(){};
_.q._downHandler=function(){};
_.q.ensureRipple=function(){};
_.q.getRipple=function(){};
_.q.hasRipple=function(){};
_.q._createRipple=function(){};
_.q._noinkChanged=function(){};
_.q._computeKeyboardClass=function(){};
_.q._spaceKeyDownHandler=function(){};
_.q._spaceKeyUpHandler=function(){};
_.q._setPressed=function(){};
_.q._setPointerDown=function(){};
_.q._setReceivedFocusFromKeyboard=function(){};
_.q._setFocused=function(){};
_.q._setElevation=function(){};
Imw=_.gx({_template:function(){if(WT6!==void 0)return WT6;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
var t=D.content,H=t.insertBefore;uCn===void 0&&(uCn=document.createElement("template"));var e=uCn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return WT6=D},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[pXo],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?vK4._calculateElevation.apply(this):this._setElevation(0)}});var Q6n;var y8m;var BL9={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(D){_.r("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(D)},
_onDialogClickWrapped:function(D){_.r("dialog_behavior_no_tap_killswitch")||this._onDialogClick(D)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(D,t){t&&(D?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(D){if(D){var t;((t=this.hostElement)!=null?t:this).setAttribute("aria-modal","true")}else{var H;((H=this.hostElement)!=null?H:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(D){this.closingReason=this.closingReason||{};this.closingReason.confirmed=D},
_onDialogClick:function(D){for(var t=_.Xu(D).path,H=0,e,V=t.indexOf((e=this.hostElement)!=null?e:this);H<V;H++)if(e=t[H],e.hasAttribute&&(e.hasAttribute("dialog-dismiss")||e.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(e.hasAttribute("dialog-confirm"));this.close();D.stopPropagation();break}}},z8v=[_.sn,
BL9];var DGn=document.createElement("template");_.n(DGn,'<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(DGn.content);var tkf=document.createElement("template");_.n(tkf,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(tkf.content);_.gx({_template:function(){if(y8m!==void 0)return y8m;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
var t=D.content,H=t.insertBefore;Q6n===void 0&&(Q6n=document.createElement("template"));var e=Q6n;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return y8m=D},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[z8v,aTv],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 Haa;var emn;_.gx({_template:function(){if(emn!==void 0)return emn;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;Haa===void 0&&(Haa=document.createElement("template"));var e=Haa;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return emn=D},
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 D,t,H;if(((D=window.ShadyDOM)==null?void 0:D.noPatch)!==!0&&((t=window.ShadyDOM)==null?void 0:t.noPatch)!=="on-demand"||((H=this.__shady_parentNode)==null?void 0:H.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(BL9)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var Vkm=_.zk(['<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>']),ban=_.Qff(Vkm);ban.setAttribute("style","display: none;");document.head.appendChild(ban.content);var qt4;var FNa;var ajn;var wgn;_.gx({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[yI],configure:function(D){var t=D.node,H=t.getBoundingClientRect().height;return this._effect=new KeyframeEffect(t,[{height:H/2+"px"},{height:H+"px"}],this.timingFromConfig(D))}});
_.gx({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[yI],configure:function(D){var t=D.node,H=t.getBoundingClientRect().width;return this._effect=new KeyframeEffect(t,[{width:H/2+"px"},{width:H+"px"}],this.timingFromConfig(D))}});
_.gx({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[yI],configure:function(D){var t=D.node,H=t.getBoundingClientRect().width;return this._effect=new KeyframeEffect(t,[{width:H+"px"},{width:H-H/20+"px"}],this.timingFromConfig(D))}});
_.gx({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[yI],configure:function(D){var t=D.node,H=t.getBoundingClientRect().height;this.setPrefixedProperty(t,"transformOrigin","0 0");return this._effect=new KeyframeEffect(t,[{height:H+"px",transform:"translateY(0)"},{height:H/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(D))}});var Gz={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},Zao=function(){};
_.q=Zao.prototype;_.q.registered=function(){};
_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._focusBlurHandler=function(){};
_.q._changedControlState=function(){};
_.q._setFocused=function(){};
Zao=_.gx({_template:function(){if(wgn!==void 0)return wgn;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;ajn===void 0&&(ajn=document.createElement("template"));var e=ajn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return wgn=D},
is:"tp-yt-paper-menu-button",behaviors:[_.l9,_.vO],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:Gz.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:Gz.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:Gz.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 D=_.Xu(this.$.content).getDistributedNodes(),t=0,H=D.length;t<H;t++)if(D[t].nodeType===Node.ELEMENT_NODE)return D[t]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(D,t){D?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):t!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(D){_.vO._disabledChanged.apply(this,arguments);D&&this.opened&&this.close()},
__onIronOverlayCanceled:function(D){var t=this.$.trigger;_.Xu(D.detail).path.indexOf(t)>-1&&D.preventDefault()}});
Object.keys(Gz).forEach(function(D){Zao[D]=Gz[D]});var skm=_.dJ.IronButtonState,hmn=(0,_.lA)(HTMLElement);
_.gx({_template:function(){if(FNa!==void 0)return FNa;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;qt4===void 0&&(qt4=document.createElement("template"));var e=qt4;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return FNa=D},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[skm,_.vO,hz,_.xk,_.WO],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(D){var t=(0,_.Uh)(this);t.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:D});t.shadowRoot.appendChild(D);return hmn.prototype._attachDom.call(this,D)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var D=this.contentElement;D&&D.selectedItem&&this._setSelectedItem(D.selectedItem)},
get contentElement(){for(var D=_.Xu(this.$.content).getDistributedNodes(),t=0,H=D.length;t<H;t++)if(D[t].nodeType===Node.ELEMENT_NODE)return D[t]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(D){this._setSelectedItem(D.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(D){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D)===this&&this.open()},
_selectedItemChanged:function(D){var t="";D?t=D.label||D.getAttribute("label")||D.textContent.trim():t="";this.value=t;this._setSelectedItemLabel(t)},
_computeMenuVerticalOffset:function(D,t){return t?t:D?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var D=this.opened?"true":"false",t=this.contentElement;t&&t.setAttribute("aria-expanded",D)},
_computeLabelClass:function(D,t,H){var e="label";if(D)H&&(e+=" label-is-hidden");else if(H||t)e+=" label-is-floating";return e},
_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 GEv;var Efm;_.gx({is:"tp-yt-paper-icon-button",_template:function(){if(Efm!==void 0)return Efm;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;GEv===void 0&&(GEv=document.createElement("template"));var e=GEv;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return Efm=D},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.xPv],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(D,t){var H=this.getAttribute("aria-label");H&&t!=H||this.setAttribute("aria-label",D)}});var KNQ;var NUf;_.En=[Qn6,_.vO,{hostAttributes:{role:"option",tabindex:"0"}}];_.gx({_template:function(){if(NUf!==void 0)return NUf;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;KNQ===void 0&&(KNQ=document.createElement("template"));var e=KNQ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return NUf=D},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.En]});var kE3;var TUf;var cMf={attached:function(){this.fire("addon-attached")},
update:function(){}};var jk6=1,$Gf=1,iao=1,rMf=[_.vO,_.l9,{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();!cb&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(D,t){D?D=D+" "+t:D=t;return D},
_onAddonAttached:function(D){D=_.Xu(D).rootTarget;if(D.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,D.id);else{var t="paper-input-add-on-"+$Gf++;D.id=t;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,t)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(D){_.vO._focusBlurHandler.call(this,D);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var D=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",D);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(D){try{var t=this.inputElement.selectionStart;this.value=D;this.inputElement.selectionStart=t;this.inputElement.selectionEnd=t}catch(H){this.value=D}},
_computeAlwaysFloatLabel:function(D,t){return t||D},
_updateAriaLabelledBy:function(){var D=_.Xu(this.root).querySelector("label");if(D){if(D.id)var t=D.id;else t="paper-input-label-"+jk6++,D.id=t;this._ariaLabelledBy=t}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+iao++)},
_onChange:function(D){this.shadowRoot&&this.fire(D.type,{sourceEvent:D},{node:this,bubbles:D.bubbles,cancelable:D.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var D=document.activeElement;D instanceof HTMLElement&&D!==document.body&&D!==document.documentElement||this._focusableElement.focus()}}}];var OaQ;var UGB;_.gx({_template:function(){if(UGB!==void 0)return UGB;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;OaQ===void 0&&(OaQ=document.createElement("template"));var e=OaQ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return UGB=D},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[cMf],properties:{_charCounterStr:{type:String,value:"0"}},update:function(D){if(D.inputElement){D.value=D.value||"";var t=D.value.toString().length.toString();D.inputElement.hasAttribute("maxlength")&&(t+="/"+D.inputElement.getAttribute("maxlength"));this._charCounterStr=t}}});var ofn;var PZ6;_.gx({_template:function(){if(PZ6!==void 0)return PZ6;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;ofn===void 0&&(ofn=document.createElement("template"));var e=ofn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return PZ6=D},
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 Kn(this.attrForValue)},get _inputElement(){return _.Xu(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(D){this._addons||(this._addons=[]);D=D.target;this._addons.indexOf(D)===-1&&(this._addons.push(D),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(D){this._handleValueAndAutoValidate(D.target)},
_onValueChanged:function(D){var t=D.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,t.value===void 0||t.value===""))return;this._handleValueAndAutoValidate(D.target)},
_handleValue:function(D){var t=this._inputElementValue;t||t===0||D.type==="number"&&!D.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:D,value:t,invalid:this.invalid})},
_handleValueAndAutoValidate:function(D){this.autoValidate&&D&&(this.invalid=!(D.validate?D.validate(this._inputElementValue):D.checkValidity()));this._handleValue(D)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(D){if(this._addons)for(var t,H=0;t=this._addons[H];H++)t.update(D)},
_computeInputContentClass:function(D,t,H,e,V){var b="input-content";D?(V&&(b+=" label-is-hidden"),e&&!this.noUnfloatedLabelError&&(b+=" is-invalid")):(D=this.querySelector("label"),t||V?(b+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",e?b+=" is-invalid":H&&(b+=" label-is-highlighted")):(D&&(this.$.labelAndInputContainer.style.position="relative"),e&&!this.noUnfloatedLabelError&&(b+=" is-invalid")));H&&(b+=" focused");return b},
_computeUnderlineClass:function(D,t){var H="underline";t?H+=" is-invalid":D&&(H+=" is-highlighted");return H},
_computeAddOnContentClass:function(D,t){var H="add-on-content";t?H+=" is-invalid":D&&(H+=" is-highlighted");return H}});var nfa;var CZ6;_.gx({_template:function(){if(CZ6!==void 0)return CZ6;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;nfa===void 0&&(nfa=document.createElement("template"));var e=nfa;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return CZ6=D},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[cMf],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(D){this._setInvalid(D.invalid)}});_.gx({is:"tp-yt-paper-input",_template:function(){if(TUf!==void 0)return TUf;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;kE3===void 0&&(kE3=document.createElement("template"));var e=kE3;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return TUf=D},
behaviors:[rMf,_.xk],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 mG9;var Mkn;_.gx({_template:function(){if(Mkn!==void 0)return Mkn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=
D.content,H=t.insertBefore;mG9===void 0&&(mG9=document.createElement("template"));var e=mG9;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return Mkn=D},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.En]});var Stn;var Xg6;_.gx({_template:function(){if(Xg6!==void 0)return Xg6;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
var t=D.content,H=t.insertBefore;Stn===void 0&&(Stn=document.createElement("template"));var e=Stn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return Xg6=D},
is:"tp-yt-paper-item-body"});var fj6;var LNB;var AMa=function(){};
_.q=AMa.prototype;_.q.indexOf=function(){};
_.q.selectPrevious=function(){};
_.q.selectNext=function(){};
_.q.selectIndex=function(){};
_.q.forceSynchronousItemUpdate=function(){};
_.q._checkFallback=function(){};
_.q._addListener=function(){};
_.q._removeListener=function(){};
_.q._activateEventChanged=function(){};
_.q._updateItems=function(){};
_.q._selectSelected=function(){};
_.q._filterItem=function(){};
_.q._valueToItem=function(){};
_.q._valueToIndex=function(){};
_.q._indexToValue=function(){};
_.q._valueForItem=function(){};
_.q._observeItems=function(){};
_.q._itemActivate=function(){};
_.q.multiChanged=function(){};
_.q._updateAttrForSelected=function(){};
_.q._updateSelected=function(){};
_.q._selectMulti=function(){};
_.q._selectionChange=function(){};
_.q._toggleSelected=function(){};
_.q._valuesToItems=function(){};
_.q.registered=function(){};
_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q.select=function(){};
_.q._resetTabindices=function(){};
_.q._updateMultiselectable=function(){};
_.q._focusWithKeyboardEvent=function(){};
_.q._clearSearchText=function(){};
_.q._focusPrevious=function(){};
_.q._focusNext=function(){};
_.q._applySelection=function(){};
_.q._focusedItemChanged=function(){};
_.q._onIronItemsChanged=function(){};
_.q._onShiftTabDown=function(){};
_.q._onFocus=function(){};
_.q._onUpKey=function(){};
_.q._onDownKey=function(){};
_.q._onEscKey=function(){};
_.q._onKeydown=function(){};
_.q._activateHandler=function(){};
_.q._disabledChanged=function(){};
_.q._setSelectedItem=function(){};
_.q._setItems=function(){};
_.q._setSelectedItems=function(){};
_.q._setFocusedItem=function(){};
AMa=_.gx({_template:function(){if(LNB!==void 0)return LNB;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
var t=D.content,H=t.insertBefore;fj6===void 0&&(fj6=document.createElement("template"));var e=fj6;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return LNB=D},
is:"tp-yt-paper-listbox",behaviors:[e74],hostAttributes:{role:"listbox"}});var gf9;var JMv;var Yto={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(D,t){return[D||t?"active":"",t?"cooldown":""].join(" ")},
__activeChanged:function(D,t){this.__setAriaHidden(!D);this.__coolingDown=!D&&t},
__altChanged:function(D){this.setAttribute("aria-label",D||"loading")},
__setAriaHidden:function(D){D?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.gx({_template:function(){if(JMv!==void 0)return JMv;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;gf9===void 0&&(gf9=document.createElement("template"));var e=gf9;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return JMv=D},
is:"tp-yt-paper-spinner",behaviors:[Yto]});var lj6;var vfQ;_.gx({_template:function(){if(vfQ!==void 0)return vfQ;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;lj6===void 0&&(lj6=document.createElement("template"));var e=lj6;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return vfQ=D},
is:"tp-yt-paper-spinner-lite",behaviors:[Yto]});var pgB;var dGQ;_.gx({_template:function(){if(dGQ!==void 0)return dGQ;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;pgB===void 0&&(pgB=document.createElement("template"));var e=pgB;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return dGQ=D},
is:"tp-yt-paper-tab",behaviors:[_.vO,_.dJ.IronButtonState,hz],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 D=_.Xu(this).parentNode;return!!D&&!!D.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(D){if(this.link){var t=this.queryEffectiveChildren("a");t&&D.target!==t&&t.click()}}});var xGV;var RmV;var uza=_.zk(['<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>']),WNf=_.Qff(uza);document.head.appendChild(WNf.content);_.gx({_template:function(){if(RmV!==void 0)return RmV;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;xGV===void 0&&(xGV=document.createElement("template"));var e=xGV;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return RmV=D},
is:"tp-yt-paper-tabs",behaviors:[_.QI,_.bPn],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(D){_.Xu(this).querySelectorAll("tp-yt-paper-tab").forEach(D?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(D){D.setAttribute("noink","")},
_removeNoinkAttribute:function(D){D.removeAttribute("noink")},
_computeScrollButtonClass:function(D,t,H,e){return!t||H?"hidden":D?e?"hidden":"not-visible":""},
_computeTabsContentClass:function(D,t){var H="tabs-content";D&&(H+=" scrollable");if(!D||t)H+=" fit-container";return H},
_computeSelectionBarClass:function(D,t){var H="selection-bar";D?H+=" hidden":t&&(H+=" align-bottom");return H},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(D){return""+D},
_onIronSelect:function(D){this._tabChanged(D.detail.item,this._previousTab);this._previousTab=D.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();_.I0._activateHandler.apply(this,arguments)},
_scheduleActivation:function(D,t){this._pendingActivationItem=D;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,t)},
_delayedActivationHandler:function(){var D=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;D.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(D){D.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(D,t){this.scrollable&&this._affectScroll(t&&-t.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(D){this.$.tabsContainer.scrollLeft+=D;D=this.$.tabsContainer.scrollLeft;this._leftHidden=D===0||this.hideScrollButtons;this._rightHidden=D===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(D,t){if(D){var H=this.$.tabsContent.getBoundingClientRect(),e=H.width,V=D.getBoundingClientRect();H=V.left-H.left;this._pos={width:this._calcPercent(V.width,e),left:this._calcPercent(H,e)};if(this.noSlide||t==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var b=t.getBoundingClientRect();t=this.items.indexOf(t);D=this.items.indexOf(D);this.$.selectionBar.classList.add("expand");
D=t<D;this._isRTL&&(D=!D);D?this._positionBar(this._calcPercent(V.left+V.width-b.left,e)-5,this._left):this._positionBar(this._calcPercent(b.left+b.width-V.left,e)-5,this._calcPercent(H,e)+5);this.scrollable&&this._scrollToSelectedIfNeeded(V.width,H)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(D,t){t-=this.$.tabsContainer.scrollLeft;t<0?this.$.tabsContainer.scrollLeft+=t:(t+=D-this.$.tabsContainer.offsetWidth,t>0&&(this.$.tabsContainer.scrollLeft+=t))},
_calcPercent:function(D,t){return 100*D/t},
_positionBar:function(D,t){D=D||0;t=t||0;this._width=D;this._left=t;this.transform("translateX("+t+"%) scaleX("+D/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var D=this.$.selectionBar.classList;D.contains("expand")?(D.remove("expand"),D.add("contract"),this._positionBar(this._pos.width,this._pos.left)):D.contains("contract")&&D.remove("contract")}});var Ij3;var Qk4;_.gx({_template:function(){if(Qk4!==void 0)return Qk4;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;Ij3===void 0&&(Ij3=document.createElement("template"));var e=Ij3;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return Qk4=D},
is:"tp-yt-paper-textarea",behaviors:[rMf,_.xk],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(D){this.$.input.textarea.selectionStart=D},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(D){this.$.input.textarea.selectionEnd=D},_ariaLabelledByChanged:function(D){this._focusableElement.setAttribute("aria-labelledby",D)},
_ariaDescribedByChanged:function(D){this._focusableElement.setAttribute("aria-describedby",D)},
get _focusableElement(){return this.inputElement.textarea}});var yMn;var BUo;/*

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 zmo=function(){};
_.q=zmo.prototype;_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._tapHandler=function(){};
_.q._focusChanged=function(){};
_.q._detectKeyboardFocus=function(){};
_.q._userActivate=function(){};
_.q._upHandler=function(){};
_.q._spaceKeyDownHandler=function(){};
_.q._spaceKeyUpHandler=function(){};
_.q._asyncClick=function(){};
_.q._pressedChanged=function(){};
_.q._ariaActiveAttributeChanged=function(){};
_.q._activeChanged=function(){};
_.q._controlStateChanged=function(){};
_.q._changedButtonState=function(){};
_.q._focusBlurHandler=function(){};
_.q._disabledChanged=function(){};
_.q._changedControlState=function(){};
_.q._downHandler=function(){};
_.q.ensureRipple=function(){};
_.q.getRipple=function(){};
_.q.hasRipple=function(){};
_.q._noinkChanged=function(){};
_.q._focusedChanged=function(){};
_.q.registered=function(){};
_.q._invalidChanged=function(){};
_.q.hasValidator=function(){};
_.q.validate=function(){};
_.q._getValidity=function(){};
_.q._requiredChanged=function(){};
_.q._valueChanged=function(){};
_.q._checkedChanged=function(){};
_.q._buttonStateChanged=function(){};
_.q._setPressed=function(){};
_.q._setPointerDown=function(){};
_.q._setReceivedFocusFromKeyboard=function(){};
_.q._setFocused=function(){};
zmo=_.gx({is:"tp-yt-paper-toggle-button",_template:function(){if(BUo!==void 0)return BUo;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;yMn===void 0&&(yMn=document.createElement("template"));var e=yMn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return BUo=D},
behaviors:[_.R8B],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");_.Vi(this,function(){_.pn(this,"pan-y")})},
_ontrack:function(D){D=D.detail;D.state==="start"?this._trackStart(D):D.state==="track"?this._trackMove(D):D.state==="end"&&this._trackEnd(D)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(D){D=D.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+D:D)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+D:D));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 D=hz._createRipple();D.id="ink";D.setAttribute("recenters","");D.classList.add("circle","toggle-ink");return D}});var DAf;var tBo;_.gx({_template:function(){if(tBo!==void 0)return tBo;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;DAf===void 0&&(DAf=document.createElement("template"));var e=DAf;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return tBo=D},
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 D=_.Xu(this).parentNode,t=_.Xu(this).getOwnerRoot(),H;this.for?H=_.Xu(t).querySelector("#"+this.for):H=D.nodeType==Node.DOCUMENT_FRAGMENT_NODE?t.host:D;return H},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(D){D==="entry"?this.show():D==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.Xu(this).textContent.trim()===""){for(var D=!0,t=_.Xu(this).getEffectiveChildNodes(),H=0;H<t.length;H++)if(t[H].textContent.trim()!==""){D=!1;break}if(D)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 D=this.offset;this.marginTop!=14&&this.offset==14&&(D=this.marginTop);var t=this.offsetParent.getBoundingClientRect(),H=this._target.getBoundingClientRect(),e=this.getBoundingClientRect(),V=(H.width-e.width)/2,b=(H.height-e.height)/2,a=H.left-t.left,w=H.top-t.top;switch(this.position){case "top":var h=a+V;var K=w-e.height-D;break;case "bottom":h=a+V;K=w+H.height+D;break;case "left":h=a-e.width-D;K=w+b;break;case "right":h=a+H.width+
D,K=w+b}this.fitToVisibleBounds?(t.left+h+e.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,h)+"px",this.style.right="auto"),t.top+K+e.height>window.innerHeight?(this.style.bottom=t.height+"px",this.style.top="auto"):(this.style.top=Math.max(-t.top,K)+"px",this.style.bottom="auto")):(this.style.left=h+"px",this.style.top=K+"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(D){D!==500&&this.updateStyles({"--paper-tooltip-delay-in":D+"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(D){if(D==="entry"&&this.animationEntry!=="")return this.animationEntry;if(D==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[D]&&typeof this.animationConfig[D][0].name==="string"){if(this.animationConfig[D][0].timing&&this.animationConfig[D][0].timing.delay&&this.animationConfig[D][0].timing.delay!==0){var t=this.animationConfig[D][0].timing.delay;D==="entry"?this.updateStyles({"--paper-tooltip-delay-in":t+"ms"}):D==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":t+
"ms"})}return this.animationConfig[D][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 HJ9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(HJ9,_.ww);var eFf=_.cU(HJ9,[0,_.aS]);var KS=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(KS,_.ww);var VBV=[3,4],bJV=[5,6];var qB3=[0,VBV,bJV,_.Kr,-1,_.Fx,_.Nk,-1,fFu,AIR];var Fb4=_.cU(KS,qB3),ay9=_.jM(qB3);var wrn=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(wrn,_.ww);var ZJw=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(ZJw,_.ww);var sSm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(sSm,_.ww);var hFV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(hFV,_.ww);var GN6=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(GN6,_.ww);var Na=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Na,_.ww);Na.prototype.getSource=function(){return _.AM(this,1)};
Na.prototype.getMessage=function(){return _.La(this,4)};
Na.prototype.getData=function(){return _.sq(this,GN6,8)};var EBB=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(EBB,_.ww);var kq=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(kq,_.ww);var Tz=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Tz,_.ww);var cu=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(cu,_.ww);cu.prototype.getUrl=function(){return _.La(this,1)};
cu.prototype.setUrl=function(D){return _.M3(this,1,D)};
cu.prototype.hasUrl=function(){return _.OF(_.rU(this,1))!=null};var Kbm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Kbm,_.ww);var NqB=[3];var kNV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(kNV,_.ww);var jz=function(D){var t=new kNV;return _.Gr(t,2,D)};
kNV.prototype.getLanguage=function(){return JM(this,4,$q)};
var Tq9=function(D){var t=jz(1);return _.PU(t,6,$q,D)},$q=[3,
4,5,6];var c_9=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(c_9,_.ww);var iq=function(D){var t=new c_9;return _.Gr(t,1,D)},rr=function(D,t){return _.PU(D,2,jS9,t)},jS9=[2,
3,4,5];var $AQ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P($AQ,_.ww);var On=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(On,_.ww);var iJB=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(iJB,_.ww);var r_V=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(r_V,_.ww);var OJv=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(OJv,_.ww);var UA6=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(UA6,_.ww);var oBo=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(oBo,_.ww);var Un=function(D){return _.sq(D,Tz,5)};var Ptn=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Ptn,_.ww);Ptn.prototype.getValue=function(){return Xz(this,1)};var nBB=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(nBB,_.ww);var oW=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(oW,_.ww);oW.prototype.getMetadata=function(){return _.Yf(this,OJv,7,Pu)};
oW.prototype.hasMetadata=function(){return _.Ut(this,OJv,7,Pu)};
var CtV=_.RUT(oW),Pu=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var nS=function(D){this.JSC$12027_name_=D;this.files_=[];this.directories_=[];this.directoryMap_={}};
nS.prototype.getName=function(){return this.JSC$12027_name_};var mv=function(D,t){this.callback_=t;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new nS("");mAn(this,D,this.rootDirectory_);CS(this)},mAn=function(D,t,H){for(var e=0;e<t.length;e++){var V=t[e];
V.isFile?(D.fileOps_++,V.file((0,_.Mc)(D.handleFileSuccess_,D,H),(0,_.Mc)(D.handleFileError_,D))):D.unscannedDirectories_.push(new MBm(V,H))}},CS=function(D){if(D.unscannedDirectories_.length>0&&D.directoryOps_<5&&!D.hasError_){D.directoryOps_++;
var t=D.unscannedDirectories_.shift(),H=t.entry,e=new nS(H.name);t=t.parent;t.directoryMap_[e.getName()]=e;t.directories_.push(e);H=H.createReader();H.readEntries((0,_.Mc)(D.handleDirectorySuccess_,D,H,e),(0,_.Mc)(D.handleDirectoryError_,D))}D.directoryOps_!=0||D.fileOps_!=0||D.unscannedDirectories_.length!=0&&!D.hasError_||D.callback_(D.rootDirectory_.files_,D.rootDirectory_.directories_,D.hasError_)};
mv.prototype.handleDirectorySuccess_=function(D,t,H){mAn(this,H,t);H.length==0?(this.directoryOps_--,CS(this)):D.readEntries((0,_.Mc)(this.handleDirectorySuccess_,this,D,t),(0,_.Mc)(this.handleDirectoryError_,this))};
mv.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;CS(this)};
mv.prototype.handleFileSuccess_=function(D,t){D.files_.push(t);this.fileOps_--;CS(this)};
mv.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;CS(this)};
var MBm=function(D,t){this.entry=D;this.parent=t};var Ma=function(D){_.J2.call(this);_.fz(D,"drop",this.onObjectsDropped_,!1,this);_.fz(D,"dragenter",this.onFilesDragged_,!1,this);_.fz(D,"dragover",this.onFilesDragged_,!1,this);_.fz(D,"dragleave",this.onDragLeave_,!1,this);_.fz(D,"dragend",this.onDragLeave_,!1,this)};
_.Zj(Ma,_.J2);var SBv=function(D,t){_.Xv.call(this,"f");this.files=D;this.directories=t};
_.Zj(SBv,_.Xv);var XrB=function(){_.Xv.call(this,"h")};
_.Zj(XrB,_.Xv);var fyf=function(){_.Xv.call(this,"i")};
_.Zj(fyf,_.Xv);var Lbm=function(){_.Xv.call(this,"g")};
_.Zj(Lbm,_.Xv);Ma.prototype.onObjectsDropped_=function(D){var t=this;D.preventDefault();var H=D.event_.dataTransfer;if((D=H&&H.items)&&D.length>0&&D[0].webkitGetAsEntry){H=[];for(var e=[],V=0;V<D.length;V++){var b=D[V].webkitGetAsEntry();b?H.push(b):e.push(D[V])}new mv(H,function(a,w,h){h?t.dispatchEvent(new Lbm("Error occurred while reading from the file system.")):t.dispatchEvent(new SBv(a,w,e))})}else(D=H&&H.files)&&this.dispatchEvent(new SBv(Array.from(D),[]))};
Ma.prototype.onFilesDragged_=function(D){D.type==="dragenter"&&this.dispatchEvent(new XrB);D.preventDefault()};
Ma.prototype.onDragLeave_=function(){this.dispatchEvent(new fyf)};var A_o=function(D,t){this.JSC$12050_name_=D;this.inputElement_=t};
A_o.prototype.getName=function(){return this.JSC$12050_name_};
A_o.prototype.getInputElement=function(){return this.inputElement_};var Sz=function(D,t,H){t=t===void 0?"single_file":t;H=H===void 0?[]:H;_.J2.call(this);this.overlayTarget_=D;this.parentOverlay_=D!=null?D.parentNode:_.OH("scotty-overlay-parent");this.selectorType_=t;this.acceptTypes_=H;this.overlay_=gBo(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.P(Sz,_.J2);
var gBo=function(D,t,H,e){var V=document.createElement("input");V.setAttribute("type","file");V.setAttribute("name","Filedata");_.fz(V,"change",D.onFilesSelected_,!1,D);H==="multiple_file"&&(V.multiple="true");H==="single_directory"&&(V.webkitdirectory="true");e.length>0&&V.setAttribute("accept",e.join(","));V.style.position="absolute";V.style.overflow="hidden";V.style.height="0px";V.style.width="0px";V.style.opacity="0";V.setAttribute("aria-hidden","true");V.setAttribute("tabIndex",-1);if(D.overlayTarget_!=
null)return V.style.height=t.offsetHeight+"px",V.style.width=t.offsetWidth+"px",D.parentOverlay_&&(D.parentOverlay_.style.position="relative"),_.Wr(V,t),DE(V,new _.lR(t.offsetLeft,t.offsetTop)),V;D.parentOverlay_.appendChild(V);return V};
Sz.prototype.click=function(){this.overlay_.click()};
Sz.prototype.onFilesSelected_=function(D){a:{try{var t=(new XMLHttpRequest).upload!==void 0;break a}catch(K){}t=!1}if(t){var H;D=Array.from((H=D.target.files)!=null?H:[]);H=[];if(this.selectorType_==="single_directory"&&(_.NG||eE||_.Ka)){H=new nS("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(t=0;t<D.length;t++)for(var e=D[t],V=e.webkitRelativePath.split("/"),b=H,a=0;a<V.length;a++){var w=V[a];if(a==V.length-1){w!="."&&b.files_.push(e);break}var h=b.directoryMap_[w];h==void 0&&(w=
h=new nS(w),b.directoryMap_[w.getName()]=w,b.directories_.push(w));b=h}H=H.directories_}this.dispatchEvent(new J_v(D,H,null))}else D=D.target.value,D.match(/^c:\\fakepath\\/i)&&(D=D.substring(12)),this.dispatchEvent(new J_v([],[],new A_o(D,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=gBo(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var J_v=function(D,t){_.Xv.call(this,"j");this.files=D;this.directories=t};
_.P(J_v,_.Xv);var YBw=function(D){this.uploadUrl_=D};var lyv=function(){_.J2.call(this)};
_.Zj(lyv,_.J2);var X_=function(D){_.Xv.call(this,D)};
_.Zj(X_,_.Xv);var fS=function(D){_.Xv.call(this,D)};
_.Zj(fS,_.Xv);var vBv=function(D,t,H,e,V){_.J2.call(this);H=document.createElement("form");H.setAttribute("method",t);H.setAttribute("enctype","multipart/form-data");H.setAttribute("encoding","multipart/form-data");t=document.createElement("input");t.setAttribute("type","hidden");t.setAttribute("name","metadata");t.setAttribute("value",V);H.appendChild(t);H.appendChild(e);this.JSC$12067_form_=H;D=new _.eP(D);_.yh(D,"upload_protocol","multipart");this.JSC$12067_url_=D.toString();this.JSC$12067_request_=new jn;this.state_=
"Ready";this.JSC$12067_errorDescription_=null;this.JSC$12067_eventHandler_=new _.GA(this);_.c1(this,this.JSC$12067_eventHandler_);this.JSC$12067_eventHandler_.listen(this.JSC$12067_request_,"success",this.onTransferSuccess_);this.JSC$12067_eventHandler_.listen(this.JSC$12067_request_,"error",this.onTransferError_)};
_.P(vBv,lyv);_.q=vBv.prototype;_.q.run=function(){this.state_="Transferring";var D=this.JSC$12067_request_,t=this.JSC$12067_form_;if(D.JSC$11485_active_)throw Error("se");var H=new _.eP(this.JSC$12067_url_||t.action);D.JSC$11485_form_=t;t=D.JSC$11485_form_;H=_.uM(H.toString());H!==void 0&&(t.action=H);NmQ(D)};
_.q.getResponseCode=function(){return null};
_.q.getResponseText=function(){return this.JSC$12067_request_&&this.JSC$12067_request_.getResponseText()||null};
_.q.JSC$29465_getErrorDescription=function(){return this.JSC$12067_errorDescription_};
_.q.cancel=function(){this.JSC$12067_request_&&this.JSC$12067_request_.abort();this.state_="Cancelled";this.dispatchEvent(new X_("o"))};
_.q.pause=function(){};
_.q.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new X_("l"))};
_.q.onTransferError_=function(){this.JSC$12067_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new X_("n"))};var LS=function(){_.uV.call(this)};
_.P(LS,_.uV);LS.prototype.createXhr=function(){var D=_.uV.prototype.createXhr.call(this);D.upload&&(D.upload.onprogress=(0,_.Mc)(this.onProgress_,this));return D};
LS.prototype.onProgress_=function(D){this.dispatchEvent(D)};var prf=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},xA3=function(D,t){var H=D.attempt_+1;
if(D.maxAttempts_>0&&H>D.maxAttempts_)return!1;H==0?t():D.delayCallId_=d8(function(){D.delayCallId_=null;t()},dA6(D),D);
D.attempt_=H;return!0};
prf.prototype.reset=function(){this.delayCallId_&&_.VA.clearTimeout(this.delayCallId_);this.attempt_=-1};
var dA6=function(D){var t=250*Math.pow(2,D.attempt_);D.maxDelayMs_>=0&&(t=Math.min(t,D.maxDelayMs_));return t};var NK8=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var Az=function(){_.J2.call(this);this.JSC$12077_request_=this.state_=null;this.JSC$12077_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12077_bytesTransferred_=0;this.retryIterator_=new prf;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12077_errorDescription_=null;this.JSC$12077_eventHandler_=new _.GA(this);_.c1(this,this.JSC$12077_eventHandler_);this.JSC$12077_url_=this.blob_=null;this.JSC$12077_method_=void 0;this.chunkSize_=this.JSC$12077_metadata_=
this.JSC$12077_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12077_responseText_=this.JSC$12077_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Zj(Az,lyv);_.q=Az.prototype;_.q.run=function(){gr(this)};
_.q.getResponseCode=function(){return this.JSC$12077_responseCode_};
_.q.getResponseText=function(){return this.JSC$12077_responseText_};
_.q.JSC$29465_getErrorDescription=function(){return this.JSC$12077_errorDescription_};
_.q.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12077_eventHandler_.removeAll();this.JSC$12077_request_&&this.JSC$12077_request_.abort();this.retryIterator_.reset();var D=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(D==="Upload"||D==="Query")D=new LS,D.JSC$9800_withCredentials_=this.JSC$12077_withCredentials_,D.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12077_bytesTransferred_=
0;this.dispatchEvent(new X_("o"))}};
_.q.pause=function(){this.pauseRequested_=!0};
var gr=function(D){var t=D.state_;D.pauseRequested_?(D.pauseRequested_=!1,D.stateAfterUnpausing_=t,D.state_="Paused"):xA3(D.retryIterator_,function(){switch(D.state_){case "Start":D.JSC$12077_request_=new LS;var H=_.J$.clone(D.JSC$12077_headers_);D.blob_.size!=null&&(H["Content-Length"]=D.blob_.size);H=kBX(H);H["X-Goog-Upload-Protocol"]="resumable";H["X-Goog-Upload-Command"]="start";D.JSC$12077_eventHandler_.removeAll();D.JSC$12077_eventHandler_.listen(D.JSC$12077_request_,"complete",D.onStartComplete_);
D.JSC$12077_request_.JSC$9800_withCredentials_=D.JSC$12077_withCredentials_;D.JSC$12077_request_.send(D.JSC$12077_url_,D.JSC$12077_method_,D.JSC$12077_metadata_,H);D.lastCommandResponseCode_=null;D.dispatchEvent(new fS("q"));break;case "Upload":H=D.transferHandle_.uploadUrl_;var e=D.blob_.size;if(RH3()){var V=D.chunkSize_;var b=D.offset_+V>=e;e=xzo(D.blob_,D.offset_,b?e:D.offset_+V)}else D.offset_=0,e=D.blob_,b=!0;D.JSC$12077_request_=new LS;D.JSC$12077_request_.JSC$9800_withCredentials_=D.JSC$12077_withCredentials_;
D.JSC$12077_eventHandler_.removeAll();D.JSC$12077_eventHandler_.listen(D.JSC$12077_request_,"progress",D.onUploadProgress_);V=(0,_.Mc)(D.JSC$12079_onUploadComplete_,D,D.offset_+e.size,b);D.JSC$12077_eventHandler_.listen(D.JSC$12077_request_,"complete",V);D.lastCommandResponseCode_=null;D.dispatchEvent(new fS("q"));b=Object.assign({},D.JSC$12077_headers_||{},{"X-Goog-Upload-Command":"upload"+(b?", finalize":""),"X-Goog-Upload-Offset":D.offset_});D.JSC$12077_request_.send(H,"POST",e,b);break;case "Query":D.JSC$12077_request_=
new LS;D.JSC$12077_eventHandler_.removeAll();D.JSC$12077_eventHandler_.listen(D.JSC$12077_request_,"complete",D.onQueryComplete_);H=Object.assign({},D.JSC$12077_headers_||{},{"X-Goog-Upload-Command":"query"});D.JSC$12077_request_.send(D.transferHandle_.uploadUrl_,"POST","",H);D.lastCommandResponseCode_=null;D.dispatchEvent(new fS("q"));break;default:throw Error("hf");}})||Jz(D,"Transfer encountered too many consecutive failures.")},Jz=function(D,t){D.state_="Error";
D.JSC$12077_errorDescription_=t;D.dispatchEvent(new X_("n"))};
Az.prototype.onStartComplete_=function(D){var t=D.target;this.lastCommandResponseCode_=t.getStatus();this.dispatchEvent(new fS("r"));if(RFn(t))uxB(this,t);else if(Wbn(t)){D=tL(D.target.getAllResponseHeaders());for(var H in D)_.qu(H.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new X_("m"));H=LG(D,"X-Goog-Upload-URL");D=(D=LG(D,"X-Goog-Upload-Chunk-Granularity"))?parseInt(D,10):1;H===void 0||isNaN(D)||D<=0?Jz(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
D)*D,this.transferHandle_=new YBw(H),this.dispatchEvent(new X_("p")),this.state_="Upload",this.retryIterator_.reset(),gr(this))}else gr(this)};
Az.prototype.onUploadProgress_=function(D){this.JSC$12077_bytesTransferred_=this.offset_+D.loaded;this.dispatchEvent(new X_("k"))};
Az.prototype.JSC$12079_onUploadComplete_=function(D,t,H){var e=this,V,b;return _.Z(function(a){switch(a.nextAddress){case 1:V=H.target;e.lastCommandResponseCode_=V.getStatus();e.dispatchEvent(new fS("r"));if(Iym(V)||V.getStatus()==404)return e.JSC$12077_bytesTransferred_=D,uxB(e,V),a.return();if(Wbn(V)){a.jumpTo(2);break}if(!(b=e.detectCorruptedBlobEnabled_)){a.jumpTo(3);break}return a.yield(QSa(e),4);case 4:b=a.yieldResult;case 3:if(b)return Jz(e,"Blob has been modified or corrupted."),a.return();
e.requireUploadRequestModification_=V.getStatus()==400;e.state_="Query";gr(e);return a.return();case 2:if(t)return Jz(e,"Got a non-final success response after issuing a finalize command."),a.return();e.JSC$12077_bytesTransferred_=D;e.offset_=D;e.retryIterator_.reset();gr(e);return a.return()}})};
Az.prototype.onQueryComplete_=function(D){var t=D.target;this.lastCommandResponseCode_=t.getStatus();this.dispatchEvent(new fS("r"));RFn(t)?(t.getStatus()===200&&(this.JSC$12077_bytesTransferred_=this.blob_.size),uxB(this,t)):Wbn(t)?(D=tL(D.target.getAllResponseHeaders()),D=parseInt(LG(D,"X-Goog-Upload-Size-Received"),10),isNaN(D)?Jz(this,"Server did not respond with current offset."):D<this.offset_?Jz(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
D+"."):this.requireUploadRequestModification_&&this.offset_===D?Jz(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<D&&this.retryIterator_.reset(),this.offset_=this.JSC$12077_bytesTransferred_=D,this.state_="Upload",gr(this))):gr(this)};
var uxB=function(D,t){D.JSC$12077_responseCode_=t.getStatus();var H=tL(t.getAllResponseHeaders());TKD(H);D.JSC$12077_responseText_=t.getResponseText();D.state_="Response received";D.dispatchEvent(new X_("l"))},Wbn=function(D){var t=D.getStatus();
D=tL(D.getAllResponseHeaders());D=LG(D,"X-Goog-Upload-Status");return t===200&&D==="active"},Iym=function(D){D=tL(D.getAllResponseHeaders());
return LG(D,"X-Goog-Upload-Status")==="final"},RFn=function(D){if(Iym(D))return!0;
D=D.getStatus();return D>=400&&D<500},QSa=function(D){var t;
return _.Z(function(H){if(H.nextAddress==1){if(!D.blob_||D.originalBlobSize_<=0)return H.return(!1);if(D.blob_.size!==D.originalBlobSize_)return H.return(!0);_.$p(H,2);if(t=xzo(D.blob_,0,1)){var e=H.yield,V=new en,b=PKv(V);V.reader_.readAsBinaryString(t);H=e.call(H,b,4)}else H=H.return(!0);return H}if(H.nextAddress!=2)return H.return(D.blob_.size!==D.originalBlobSize_);_.Pv(H);return H.return(!0)})};var y_o=function(D,t,H,e,V,b){_.J2.call(this);this.payload_=e;this.JSC$12080_url_=D;this.JSC$12080_method_=t;this.JSC$12080_headers_=H;this.JSC$12080_metadata_=V;this.encoding_=b||"binary";D=new _.pU;this.boundary_="uploader-"+W1()+"-"+D.JSC$11334_toIsoString();this.JSC$12080_responseText_=this.JSC$12080_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12080_errorDescription_=null;this.JSC$12080_eventHandler_=new _.GA(this);_.c1(this,this.JSC$12080_eventHandler_)};
_.P(y_o,lyv);_.q=y_o.prototype;
_.q.run=function(){var D=_.J$.clone(this.JSC$12080_headers_);this.payload_.length!=null&&(D["Content-Length"]=this.payload_.length);D=kBX(D);D["X-Goog-Upload-Protocol"]="multipart";D["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new LS;this.JSC$12080_eventHandler_.removeAll();this.JSC$12080_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12080_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12080_url_,this.JSC$12080_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12080_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",D)};
_.q.getResponseCode=function(){return this.JSC$12080_responseCode_};
_.q.getResponseText=function(){return this.JSC$12080_responseText_};
_.q.JSC$29465_getErrorDescription=function(){return this.JSC$12080_errorDescription_};
_.q.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12080_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new X_("o")))};
_.q.pause=function(){};
_.q.onTransferProgress_=function(){this.dispatchEvent(new X_("k"))};
_.q.onTransferComplete_=function(D){var t=D.target.getStatus();t===void 0||t===-1?(this.JSC$12080_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new X_("n"))):(this.JSC$12080_responseCode_=t,D=D.target,t=tL(D.getAllResponseHeaders()),TKD(t),this.JSC$12080_responseText_=D.getResponseText(),this.state_="Complete",this.dispatchEvent(new X_("l")))};_.Bqo=function(D,t,H,e){e=e===void 0?!1:e;if(H instanceof A_o)return new vBv(D,"POST",t,H.getInputElement(),"");if(typeof H==="string"||H instanceof String)return new y_o(D,"POST",t,H,"");var V=new Az(void 0);V.JSC$12077_url_=D;V.JSC$12077_method_="POST";V.JSC$12077_headers_=t;V.blob_=H;V.originalBlobSize_=H.size;V.JSC$12077_metadata_="";e&&(V.JSC$12077_withCredentials_=e);V.state_="Start";return V};var Yq=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Yq,_.ww);_.q=Yq.prototype;_.q.getEnableSsEngine=function(){return _.Sk(this,2)};
_.q.getEnableAwr=function(){return _.Sk(this,3)};
_.q.getAlohaAutoGaRollout=function(){return _.Sk(this,5)};
_.q.getEnableConfigurator=function(){return _.Sk(this,6)};
_.q.getEnableMweb=function(){return _.Sk(this,7)};
var Dk9=function(){var D=zF3();return _.gZ(D,7,!0)};
Yq.prototype.getEnableCtlConsentCheckbox=function(){return _.Sk(this,8)};
Yq.prototype.getEnableIframe=function(){return _.Sk(this,9)};
var zF3=function(){var D=new Yq;D=_.gZ(D,5,!0);D=_.gZ(D,2,!0);D=_.gZ(D,4,!1);D=_.gZ(D,8,!0);return _.gZ(D,9,!0)};
Yq.prototype.getEnableScreenshotNudge=function(){return _.Sk(this,10)};
var txV=function(){var D=Dk9();return _.gZ(D,10,!0)};
Yq.prototype.getEnableWebStartupConfigEndpoint=function(){return _.Sk(this,11)};
Yq.prototype.getEnableJunkNudge=function(){return _.Sk(this,12)};
var gI3=function(){var D=txV();return _.gZ(D,12,!0)};
_.q=Yq.prototype;_.q.getEnableConfiguratorLocale=function(){return _.Sk(this,13)};
_.q.getEnableTinyNoPointer=function(){return _.Sk(this,14)};
_.q.getEnableSupportSessionLogging=function(){return _.Sk(this,15)};
_.q.getEnableFileUploadForScreenshot=function(){return _.Sk(this,16)};
_.q.getEnableDirectDeflectionForSingleCategory=function(){return _.Sk(this,17)};
_.q.getEnableImageSanitization=function(){return _.Sk(this,18)};
_.q.getEnableAlohaBinarySplit=function(){return _.Sk(this,19)};
_.q.getEnableDbFeedbackIntents=function(){return _.Sk(this,20)};
_.q.getEnableMarkMandatoryFieldsWithRequired=function(){return _.Sk(this,21)};
_.q.getEnableFeedbackCategoryCustomUi=function(){return _.Sk(this,22)};
_.q.getEnableRealtimeCtl=function(){return _.Sk(this,23)};var ACV=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(ACV,_.ww);var cCD=[/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 $MV="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 ivV=_.zk(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),rCD=_.zk(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var UMD,nIV,oI8,C56;var HrV,e0B;
HrV=function(D,t,H){D.timeOfStartCall=(new Date).getTime();var e=H||_.VA,V=e.document,b=D.nonce||_.t6(e.document);b&&!D.nonce&&(D.nonce=b);if(D.flow=="help"){var a=_.RD("document.location.href",e);!D.helpCenterContext&&a&&(D.helpCenterContext=a.substring(0,1200));a=!0;if(t&&JSON&&JSON.stringify){var w=JSON.stringify(t);(a=w.length<=1200)&&(D.psdJson=w)}a||(t={invalidPsd:!0})}t=[D,t,H];e.GOOGLE_FEEDBACK_START_ARGUMENTS=t;H=D.feedbackServerUri||"//www.google.com/tools/feedback";if(a=e.GOOGLE_FEEDBACK_START)a.apply(e,t);
else{e=H+"/load.js?";for(var h in D)t=D[h],t==null||_.Wk(t)||(e+=encodeURIComponent(h)+"="+encodeURIComponent(t)+"&");D=mJ(V).createElement("SCRIPT");b&&D.setAttribute("nonce",b);_.qd(D,_.MN(e));V.body.appendChild(D)}};
e0B=function(D,t,H,e){var V,b;_.Z(function(a){V=H||_.VA;var w=D.serverEnvironment==="DEV",h=H||_.VA;h=D.nonce||_.t6(h.document);w={integrationKeys:{productId:D.productId,feedbackBucket:D.bucket,triggerId:D.triggerId},callbacks:{onClose:D.callback,onLoad:D.onLoadCallback},formContent:{locale:D.locale,disableScreenshot:D.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:D.abuseLink,additionalDataConsent:D.additionalDataConsent},initializationData:{isLocalServer:w,nonce:h,useNightlyRelease:w,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:D.feedbackServerUri,colorScheme:D.colorScheme},extraData:{productVersion:D.productVersion,authUser:D.authuser,configuratorId:D.configuratorId,customZIndex:D.customZIndex,tinyNoPointer:D.tinyNoPointer,
allowNonLoggedInFeedback:D.allowNonLoggedInFeedback,enableAnonymousFeedback:D.enableAnonymousFeedback}};t&&(h=new Map(Object.entries(t)),w.extraData.productSpecificData=h);b=w;return a.yield(XNT(b,e,V),0)})};
_.Vx4=function(D,t,H){try{if(D.flow==="help"){var e=D.helpCenterPath.replace(/^\//,"");_.D7(H||window,"https://support.google.com/"+e)}else D.flow==="submit"?HrV(D,t,H):JCX(D.productId,D.feedbackServerUri).then(function(V){V=_.sq(V,Yq,1);var b=!BDA||(V==null?void 0:V.getEnableMweb()),a=!D.tinyNoPointer||(V==null?void 0:V.getEnableTinyNoPointer());!V||V.getAlohaAutoGaRollout()&&b&&a?e0B(D,t,H,V):HrV(D,t,H)},function(V){V&&V.name!=="DuplicateFormError"&&HrV(D,t,H)})}catch(V){e0B(D,t,H,null)}};
_.bg("userfeedback.api.startFeedback",_.Vx4);var Yyu=/https?:\/\/\S+\.\S+/,lh6=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],vIV=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var sOR=function(D){var t=D.split(""),H=[-263237435,15,t,function(e,V,b){var a=V.length;b.forEach(function(w,h,K){this.push(K[h]=V[(V.indexOf(w)-V.indexOf(this[h])+h+a--)%V.length])},e.split(""))},
function(e,V){e=(e%V.length+V.length)%V.length;V.splice(-e).reverse().forEach(function(b){V.unshift(b)})},
"response",function(){for(var e=64,V=[];++e-V.length-32;){switch(e){case 58:e-=14;case 91:case 92:case 93:continue;case 123:e=47;case 94:case 95:case 96:continue;case 46:e=95}V.push(String.fromCharCode(e))}return V},
null,12,1540023973,65941107,null,t,function(e,V){for(e=(e%V.length+V.length)%V.length;e--;)V.unshift(V.pop())},
695603893,function(e){for(var V=e.length;V;)e.push(e.splice(--V,1)[0])},
"'[;'[(",function(e,V){e.push(V)},
null,function(e,V,b,a,w){return V(b,a,w)},
"continuation",t,function(e,V){if(e.length!=0){V=(V%e.length+e.length)%e.length;var b=e[0];e[0]=e[V];e[V]=b}},
function(){for(var e=64,V=[];++e-V.length-32;){switch(e){case 91:e=44;continue;case 123:e=65;break;case 65:e-=18;continue;case 58:e=96;continue;case 46:e=95}V.push(String.fromCharCode(e))}return V},
'"),/]];'];H[7]=H;H[11]=H;H[18]=H;try{(((0,H[15])(H[21]),H[22])(H[11],H[9]),H[22])(H[new Date("1970-01-01T04:30:12.000+04:30")/1E3],H[1]),((0,H[22])(H[11],H[23]),H[4])(H[10],H[18]),(0,H[20])(H[21],H[14])<<(0,H[17])(H[18],H[1]),(0,H[4])(H[8],H[21]),(0,H[19])((0,H[19])((0,H[17])(H[7],H[9]),H[3],H[20],(0,H[6])(),H[2]),H[3],H[5],(0,H[15])(),H[2])}catch(e){return"aTlOUOubTO4AP____8P_"+D}return t.join("")};_.brn=new _.NM("runAttestationCommand");var q2B=new _.NM("verifyCommand");_.Pm=new _.NM("accessibilityContext");var FfB=new _.NM("accessibilityData");var aEm=new _.NM("profileCardCommand");var kJu=new _.NM("signInEndpoint");var NaV=new _.NM("signOutEndpoint");var Zrn;_.wln=new _.NM("accountItemSectionRenderer");Zrn=new _.NM("accountItemRenderer");_.suB=new _.NM("saveCommandToSessionStorageAction");var h09=new _.NM("crossAccountChannelTransferEndpoint");var huD=new _.NM("getAccountMenuEndpoint");_.G8X=new _.NM("getAccountSwitcherEndpoint");var sFR=new _.NM("getAccountsListEndpoint");var GTn=new _.NM("getAccountsListInnertubeEndpoint");_.lq=new _.NM("addToToastAction");var E1V=new _.NM("hideEnclosingAction");_.vu=new _.NM("replaceEnclosingAction");var Kfn=new _.NM("buttonRefreshAction");var N89=new _.NM("adsControlFlowOpportunityReceivedCommand");var kT4=new _.NM("openAdAllowlistInstructionCommand");var T86=new _.NM("videoMastheadAdPrimaryVideoRenderer");var c2f=new _.NM("displayAdRenderer");_.jun=new _.NM("inFeedAdLayoutRenderer");var $k4=new _.NM("sequenceItemInPlayerAdLayoutRenderer");_.irf=new _.NM("adSlotRenderer");var r2a=new _.NM("adAvatarViewModel");var Ora=new _.NM("adBadgeViewModel");var Uko=new _.NM("adButtonViewModel");var o1V=new _.NM("adImageViewModel");var MJu=new _.NM("reelsAdCardButtonedViewModel");var PVm=new _.NM("reelsPlayerOverlayLayoutViewModel");var n19=new _.NM("showSchedulingPanelCommand");var CV9=new _.NM("backstageCommentsRenderer");var mk6=new _.NM("backstageImageRenderer");var Mxn=new _.NM("backstagePostRenderer");var S24=new _.NM("backstageZeroStateRenderer");var Xlm=new _.NM("postRenderer");var fEn=new _.NM("sharedPostRenderer");var Lfa=new _.NM("createBackstagePostEndpoint");var A2o=new _.NM("getPostVideoPreviewEndpoint");var g1f=new _.NM("updateBackstagePostEndpoint");var J2m=new _.NM("filterChipTransformCommand");var Y2n=new _.NM("insertRichSectionCommand");var P7D=new _.NM("talkToRecsDeselectCommand");var lE4=new _.NM("talkToRecsNextCommand");var odk=new _.NM("talkToRecsSelectCommand");var v1n=new _.NM("talkToRecsUpdateTextCommand");_.UL=new _.NM("browseEndpoint");_.plw=new _.NM("confirmDialogEndpoint");var dkQ=new _.NM("expandOnHoverCardRenderer");var xkQ=new _.NM("lumiereShelfDetailsRenderer");var R0w=new _.NM("revealBusinessEmailCommand");var uvn=new _.NM("validateChannelHandleCommand");var Wfn=new _.NM("channelCreationFormEndpoint");var IEn=new _.NM("aboutChannelViewModel");var QuV=new _.NM("channelThumbnailWithLinkRenderer");var y24=new _.NM("channelCreationServiceEndpoint");var B8w=new _.NM("updateChannelPageSettingsEndpoint");var pS=function(D){this.delegate=D},dr=function(){pS.apply(this,arguments)};
_.P(dr,pS);_.ql.Object.defineProperties(dr.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(D){this.delegate.entityMetadata=D}}});var z0w=function(){dr.apply(this,arguments)};
_.P(z0w,dr);z0w.prototype.getAssociations=function(){return[]};
z0w.prototype.getTypeName=function(){return"channelHandle"};var kC8=new _.NM("webThumbnailDetailsExtensionData");var fR3=new _.NM("commandContext");var Dov=new _.NM("addVideoLinkAction");var te9=new _.NM("banAuthorAction");var Hxo=new _.NM("createCommentAction");var ef3=new _.NM("createCommentReplyAction");var Vem=new _.NM("createPollAction");var bxn=new _.NM("hideIdentityChipAction");var qrm=new _.NM("openUpdateCommentDialogAction");var FW9=new _.NM("pinCommentAction");var aDf=new _.NM("removeCommentAction");var wy6=new _.NM("unpinCommentAction");var xq=new _.NM("updateBackstagePollAction");var ZxV=new _.NM("updateCommentVoteAction");var sIn=new _.NM("commentThreadRenderer");var hfB=function(){dr.apply(this,arguments)};
_.P(hfB,dr);hfB.prototype.getAssociations=function(){return[]};
hfB.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var Gaf=function(){dr.apply(this,arguments)};
_.P(Gaf,dr);Gaf.prototype.getAssociations=function(){return[]};
Gaf.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.EYf=new _.NM("commentDialogRenderer");var KWf=new _.NM("reloadCommentsCommand");var Nhf=new _.NM("updateCommentsSettingsEndpoint");var ka3=new _.NM("commentViewModel");var Th3=new _.NM("triStateButtonViewModel");var cR4=new _.NM("voiceReplyContainerViewModel");_.ch=new _.NM("commandExecutorCommand");var vc=new _.NM("emoji");var jIV=new _.NM("updateCreatorChannelInnertubeCommand");_.$oQ=new _.NM("appendContinuationItemsAction");_.ixo=new _.NM("changeEngagementPanelVisibilityAction");_.RH=new _.NM("continuationCommand");var rR3=new _.NM("hideReportedCommentAction");var Ox4=new _.NM("listMutationCommand");_.RW=new _.NM("openPopupAction");var Uow=new _.NM("persistSubscriptionsDisplayPreferencesCommand");var Xyf;_.oYn=new _.NM("playlistRemoveVideosAction");_.PuB=new _.NM("updatePlaylistAction");_.nYB=new _.NM("addToPlaylistCommand");_.Cum=new _.NM("endPlaylistCommand");_.moB=new _.NM("recoverPlaylistCommand");_.Mef=new _.NM("refreshPlaylistCommand");_.Srn=new _.NM("refreshFormCommand");Xyf=new _.NM("openOnePickAddVideoModalCommand");_.cJk=new _.NM("reloadContinuationItemsCommand");_.fDm=new _.NM("scrollToEngagementPanelCommand");var LWv=new _.NM("selectCountryCommand");var ARn=new _.NM("showReloadUiCommand");var gY9=new _.NM("undoFeedbackAction");var JRf=new _.NM("updateButtonAction");var Yro=new _.NM("updateSubscribeButtonAction");var lDa=new _.NM("updateToggleAction");var vYV=new _.NM("webNativeShareCommand");_.i1=new _.NM("webCommandMetadata");_.uq=new _.NM("webHandleServiceEndpointExtension");var GMK=new _.NM("webNavigationEndpointData");var pyQ=new _.NM("backgroundAudioPlaybackCommand");var do4=new _.NM("copyLinkCommand");var xon=new _.NM("playlistVotingRefreshPopupCommand");var RfB=new _.NM("selectChipCommand");var uLv=new _.NM("setCookieCommand");var WWo=new _.NM("setLocalStorageCommand");var ID6=new _.NM("setPrefStorageEntryCommand");var zf3;_.QIn=new _.NM("settingsUpdateCheckboxCommand");_.yRf=new _.NM("settingsUpdateTextCommand");_.Bh6=new _.NM("settingsUpdateOptionsCommand");zf3=new _.NM("settingsUpdateSwitchCommand");_.DMo=new _.NM("settingsUpdateConnectedAppRendererCommand");var tg6=new _.NM("showCreatorChatbotEngagementPanelCommand");var Hvf=new _.NM("updateTextInputFormFieldRendererCommand");var ewQ=new _.NM("updateToggleButtonStateCommand");var Vgw=new _.NM("updateUrlParamCommand");var bvV=new _.NM("webSubmitFormCommand");var qyV=new _.NM("channelSwitcherPageRenderer"),FLf=new _.NM("updateChannelSwitcherPageAction");_.HX=new _.NM("continuationItemRenderer");_.Wu=new _.NM("richItemRenderer");var ahv=new _.NM("richSectionRenderer");_.wNv=new _.NM("richShelfRenderer");_.Zv6=new _.NM("metadataBadgeRenderer");_.sJ6=new _.NM("multiPageMenuNotificationSectionRenderer");_.hwm=new _.NM("playlistLoopButtonStateRenderer");var GB4=new _.NM("claimLegacyYoutubeChannelEndpoint");var EIm=new _.NM("getNotificationMenuEndpoint");var KL9=new _.NM("getSearchInVideoCommand");_.NKa=new _.NM("getTranscriptEndpoint");_.$0=new _.NM("signalServiceEndpoint");var kB6=new _.NM("verifyAgeEndpoint");var Eb3=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Eb3,_.ww);Eb3.prototype.getPath=function(){return _.La(this,1)};
Eb3.prototype.getValue=function(){return _.La(this,2)};var TKm=[0,_.eB,-1];var cCn=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(cCn,_.ww);var G2V=_.cU(cCn,[0,_.qA,TKm]);var jJ9=new _.NM("dismissalEndpoint");var $M4=new _.NM("elementsCommand");_.dj=new _.NM("innertubeCommand");var ivf=new _.NM("multipleInlinePlaybackCommand");var yPA=new _.NM("loggingDirectives");var rCn=new _.NM("acknowledgeChannelTouStrikeCommand");var OvV=function(){dr.apply(this,arguments)};
_.P(OvV,dr);OvV.prototype.getAssociations=function(){return[]};
OvV.prototype.getTypeName=function(){return"booleanEntity"};var UMm=function(){dr.apply(this,arguments)};
_.P(UMm,dr);UMm.prototype.getAssociations=function(){return[]};
UMm.prototype.getTypeName=function(){return"stringEntity"};var t5=new _.NM("entityBatchUpdate");_.oIa=new _.NM("entityUpdateCommand");var P5a=function(){dr.apply(this,arguments)};
_.P(P5a,dr);P5a.prototype.getAssociations=function(){var D=[];this.delegate.alternateChannel&&D.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&D.push.apply(D,_.A6(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&D.push(this.delegate.oneofChannelEntity);return[].concat(_.A6(new Set(D)))};
P5a.prototype.getTypeName=function(){return"fakeChannel"};var nIf=function(){dr.apply(this,arguments)};
_.P(nIf,dr);nIf.prototype.getAssociations=function(){var D=[];this.delegate.entryCollection&&D.push(this.delegate.entryCollection);return[].concat(_.A6(new Set(D)))};
nIf.prototype.getTypeName=function(){return"fakePlaylist"};
var C5o=function(){dr.apply(this,arguments)};
_.P(C5o,dr);C5o.prototype.getAssociations=function(){var D=[];this.delegate.parentPlaylist&&D.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var t=_.F(this.delegate.entries),H=t.next();!H.done;H=t.next())D.push.apply(D,_.A6((new mM3(H.value)).getAssociations()));return[].concat(_.A6(new Set(D)))};
C5o.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var mM3=function(){pS.apply(this,arguments)};
_.P(mM3,pS);mM3.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);return[].concat(_.A6(new Set(D)))};var Mgn=function(){dr.apply(this,arguments)};
_.P(Mgn,dr);Mgn.prototype.getAssociations=function(){var D=[];this.delegate.descriptionEntity&&D.push(this.delegate.descriptionEntity);this.delegate.creators&&D.push.apply(D,_.A6(this.delegate.creators));this.delegate.theBiggestFan&&D.push(this.delegate.theBiggestFan);return[].concat(_.A6(new Set(D)))};
Mgn.prototype.getTypeName=function(){return"fakeVideo"};
var Syo=function(){dr.apply(this,arguments)};
_.P(Syo,dr);Syo.prototype.getAssociations=function(){return[]};
Syo.prototype.getTypeName=function(){return"fakeVideoDescription"};var XN3=new _.NM("fantasyRosterViewModel");var fh9=new _.NM("addFollowUpSurveyCommand");var LLv=new _.NM("getSurveyCommand");var ACf=new _.NM("ratingSurveyOptionRenderer");_.XC=new _.NM("feedbackEndpoint");var gIv=new _.NM("reportHistoryTableCellRenderer"),JC6=new _.NM("reportHistoryTableTextCellRenderer"),Yyw=new _.NM("reportHistoryTableReasonCellRenderer");_.lho=new _.NM("flagEndpoint");var vI4=new _.NM("getFlowCommand");var pNQ=new _.NM("submitFormWithValidationFlowCommand");var dMQ=function(){dr.apply(this,arguments)};
_.P(dMQ,dr);dMQ.prototype.getAssociations=function(){return[]};
dMQ.prototype.getTypeName=function(){return"flowStateEntity"};var xMf=new _.NM("flowFormState");var Rww=new _.NM("gameCardRenderer");var ub3=new _.NM("accountLinkingStateChangedCommand");var WLo=function(){dr.apply(this,arguments)};
_.P(WLo,dr);WLo.prototype.getAssociations=function(){return[]};
WLo.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var Ihn=new _.NM("changeMiniAppPlayStateCommand");var QJm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(QJm,_.ww);var IW=[1,2,3];var yC6=[0,IW,mvA,_.bt,Otu];var BKB=_.cU(QJm,yC6),zwn=_.jM(yC6);var DL4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(DL4,_.ww);var tY3=[0,_.yP,_.eB];var HU3=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(HU3,_.ww);var ejm=[0,_.eB,_.yP,-1];var Q4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Q4,_.ww);var VYa=_.jM([0,1,tY3,_.aS,ejm]);var bUf=new _.NM("miniAppScoreChallengeViewModel");var qia=new _.NM("miniGameCardViewModel");var FKB=new _.NM("teaserCardViewModel");var aXB=function(){dr.apply(this,arguments)};
_.P(aXB,dr);aXB.prototype.getAssociations=function(){return[]};
aXB.prototype.getTypeName=function(){return"logoEntity"};var wbn=new _.NM("feedbackItemRenderer");var ZUo=function(){dr.apply(this,arguments)};
_.P(ZUo,dr);ZUo.prototype.getAssociations=function(){return[]};
ZUo.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.scV=new _.NM("playerInterstitialRenderer");var hjQ=new _.NM("getKidsBlocklistPickerCommand");_.Gd9=new _.NM("updateKidsBlacklistEndpoint");_.pP=new _.NM("likeEndpoint");var EZV,KKQ,NIV;EZV=new _.NM("addChatItemAction");KKQ=new _.NM("removeChatItemAction");NIV=new _.NM("markChatItemAsDeletedAction");_.kdf=new _.NM("setLiveChatCollapsedStateAction");var TI6=function(){dr.apply(this,arguments)};
_.P(TI6,dr);TI6.prototype.getAssociations=function(){return[]};
TI6.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var cqa=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(cqa,_.ww);var jc3=[0,_.qA,[0,[1,2],_.bt,_.Fx,[0,_.Vs,1,_.Vs]]];var $LB=[0,_.eB,-1];var iUQ=[0,[1],_.bt];var y4=[0,[1,2],_.bt,_.Fx,[0,_.aS]];var Bu=[0,_.eB];var rq9=[0,[0,_.t_,_.Dy,[0,_.Vs,_.sB,_.Vs]],1,[0,_.t_]];var OU6=[0,Bg];var ULv=[0,Bg];var oZ6=[0,ULv,OU6];var PAn=[0,_.qA,[0,[1,2],_.bt,-1],_.t_];var nZ6=[0,[2],1,_.Fx,[0,_.Vs,-1,PAn]];var CA4=[0,[1],_.Fx,[0,_.Vs,_.eB,_.sB,1,PAn]];var mLv=[0,_.Dy,-1,rIV,_.aS];var MYn=[0,[0,QP,-3],-4];var zz=[0,_.t_,-3,_.eB,_.t_,_.Kr,_.t_,jc3,_.t_,-2];var DB=[0,_.qA,[0,[1,2],_.bt,-1],_.t_,_.eB];var Si6=[0,[3],y4,[0,[2,3,4],gFV,_.bt,-2],_.Fx,[0,_.eB],_.yP];var Xb6=[0,[3,5],_.eB,zE,_.Fx,[0,1,_.yP,_.aS],_.aS,_.Fx,[0,_.aS,_.yP]];var fXv=[0,2,zE,_.eB,-1];var LKf=[0,nFD];var Aqf=[0,[3,4],2,Uv3,_.bt,_.eB];var gZo=[0,_.aS,-2,1,_.eB];var Jq9=[0,_.eB,-1,_.aS];var YiV=[0,Bu,function(){return t1},
Bu,_.eB],lXo=[0,_.aS,Bu,y4,function(){return t1},
_.eB],t1=[-160,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158,159],Bu,zE,[0,_.t_,1,_.t_,1,_.t_,1,_.aS,-1,Bu],[0,1,_.t_,2,_.t_,_.aS,_.t_],1,zE,-1,_.eB,zE,2,QP,[0,QP,zE],_.eB,1,rq9,1,y4,_.Kr,1,[0,[0,_.qA,[0,_.eB,_.t_,_.aS]]],[0,_.t_,[0,_.yP,[0,_.sB]],_.yP,1,[0,oFk,-1]],_.eB,[0,1,_.eB],76,_.Fx,[0,y4,DB,rq9,1,[0,_.qA,DB]],1,_.Fx,[0,y4,_.eB,_.t_],_.Fx,
[0,y4,iUQ],_.Fx,[0,y4,iUQ,zE],_.Fx,[0,y4,iUQ],_.Fx,[0,y4,_.qA,Bu,y4,MSR],_.Fx,[0,y4,Bu,_.eB],_.Fx,[0,y4,_.t_,zz,-1,_.t_],4,_.Fx,[0,y4,_.t_,zE,zz,_.t_],_.Fx,[0,[4,9],y4,_.aS,zE,_.bt,DB,1,rq9,_.eB,_.bt,gZo],_.Fx,[0,y4,Bu,y4,_.aS,_.eB],_.Fx,[0,_.t_,y4,zz,_.t_,_.eB],_.Fx,[0,y4,Bu,y4,_.aS,_.eB],1,_.Fx,[0,y4,_.aS,_.eB,zz],_.Fx,[0,y4,_.aS,[0,_.eB,zE],_.eB,zE,_.eB,Lk$,-2,3,Jq9,_.qA,Jq9,Jq9,gZo],_.Fx,[0,y4,_.aS,CA4,_.qA,[0,ULv,nZ6],Bu,_.qA,oZ6,_.eB,1,_.aS,mLv,MYn,it8,-1],_.Fx,[0,y4,[0,_.sB,-1,CA4,_.qA,[0,
ULv,nZ6,OU6],[0,_.Nk],1,_.Vs],Bu,_.eB],_.Fx,[0,y4,DB,_.eB,[0,_.Dy]],_.Fx,function(){return lXo},
_.Fx,[0,y4,zE,_.eB,-1,_.t_],_.Fx,[0,[6,7],y4,_.qA,fXv,_.aS,DB,1,_.Fx,Aqf,_.Fx,LKf],_.Fx,[0,_.qA,fXv,_.aS,_.t_],_.Fx,[0,_.eB,SPn,-1],_.Fx,[0,Bu,_.qA,oZ6,_.eB],_.Fx,[0,y4,Bu,_.eB],_.Fx,[0,Lk$,_.eB],_.Fx,[0,$LB],_.Fx,[0,$LB],_.Fx,[0,DB],_.Fx,[0,Bu,DB],_.Fx,function(){return YiV},
_.Fx,[0,Bu,_.eB],_.Fx,[0,Bu,_.eB],1,_.Fx,[0,_.t_,y4,zz,_.t_,zz],_.Fx,[0,_.Nk],1,_.Fx,[0],1,_.Fx,[0,Bu,_.aS,y4,_.aS],_.Fx,[0,[1,2],_.Fx,Aqf,_.Fx,LKf,zE],_.Fx,[0,_.Nk,DB,Xb6,_.eB,zE],_.Fx,[0,Xb6,_.eB,zE],_.Fx,[0,mLv,DB,_.t_,MYn],_.Fx,Si6,_.Fx,[0],_.Fx,[0,_.eB,-1,_.yP],_.Fx,[0,Bu,_.eB],_.Fx,[0,Si6,_.yP,_.eB],_.Fx,[0,y4,zz,_.t_],_.Fx,[0,y4,zz,_.t_],_.Fx,[0,mLv,MYn,DB,_.Kr,_.t_,it8,-1],_.Fx,[0,y4,zz,_.t_]];var vZn=[0,_.qA,t1];var pbn=_.cU(cqa,[0,1,_.yP,[0,[18,22,24],vZn,3,[0,vZn],1,_.yP,[0,_.qA,[0,zE,QP],zE],1,t1,-1,[0,_.Hr,-2,_.Kr,_.Hr,-1,_.Kr,_.Hr,jc3,_.Hr,-2],j7A,[!0,_.eB,[0,iUQ,2,_.eB,zE,_.t_,2,_.eB,Lk$]],[0,[1,2,3],[5,6],_.Fx,[0,_.Vs],_.Fx,[0,_.Vs,-1],_.Fx,[0,_.Vs],1,_.Fx,$LB,_.Fx,[0,_.eB]],[0,t1,-1],_.Nk,t1,_.Fx,t1,[0,vZn],_.yP,t1,_.Fx,t1,_.eB,_.Fx,t1]]);var dL3=new _.NM("liveChatEndpoint");var xLQ=new _.NM("liveChatItemContextMenuEndpoint");var Rjf=new _.NM("liveChatReplayEndpoint");_.ulB=new _.NM("emojiPickerRenderer");var WKm=new _.NM("liveChatAuthorBadgeViewModel");var IXf=new _.NM("deleteLiveChatMessageCommand");var Qc4=new _.NM("liveChatActionEndpoint");var yqf=new _.NM("createLiveChatPollEndpoint");var BIV=new _.NM("manageLiveChatUserEndpoint");var zjf=new _.NM("moderateLiveChatEndpoint");_.D43=new _.NM("sendLiveChatMessageEndpoint");var tno=new _.NM("sendLiveChatVoteEndpoint");var HLm=new _.NM("clearLocationCommand");var eT6=new _.NM("resolveLocationCommand");var Vnw=new _.NM("interactionLoggingCommandMetadata");var bLn=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(bLn,_.ww);var qAQ=function(D,t){return _.KN(D,1,t)};var FjV=[0,_.t_];var auf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(auf,_.ww);var wO9=function(D,t){return rT(D,1,bLn,t)};auf.prototype.JSC$12174_serializeBinary=xNK([0,_.qA,FjV]);var ZU6={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 ZLo={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"},
s0o={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 HQD={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_ENTER_AUTO_ZOOM"};_.glX=new _.NM("logFlowLoggingEventCommand");_.nz=new _.NM("loggingContext");var hTn=new _.NM("audioTrackSelectActionCommand");var GO4=new _.NM("captionLanguageSelectActionCommand");var EkQ=new _.NM("showAudioTrackPickerActionCommand");var Kjw=new _.NM("showCaptionLanguageSelectActionCommand");var NJ3=new _.NM("dismissDialogEndpoint");var kOw=new _.NM("dismissPlayerOverlayCommand");var TJ4=new _.NM("hideItemSectionVideosByIdCommand");var c7o=new _.NM("showMiniplayerCommand");var j0a=function(){dr.apply(this,arguments)};
_.P(j0a,dr);j0a.prototype.getAssociations=function(){return[]};
j0a.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var $4w=function(){dr.apply(this,arguments)};
_.P($4w,dr);$4w.prototype.getAssociations=function(){return[]};
$4w.prototype.getTypeName=function(){return"downloadStatusEntity"};var iLa=function(){dr.apply(this,arguments)};
_.P(iLa,dr);iLa.prototype.getAssociations=function(){return[]};
iLa.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var r76=function(){dr.apply(this,arguments)};
_.P(r76,dr);r76.prototype.getAssociations=function(){var D=[];this.delegate.downloadsList&&D.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&D.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&D.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&D.push(this.delegate.refresh);return[].concat(_.A6(new Set(D)))};
r76.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var OLQ=function(){dr.apply(this,arguments)};
_.P(OLQ,dr);OLQ.prototype.getAssociations=function(){var D=[];this.delegate.refresh&&D.push(this.delegate.refresh);if(this.delegate.downloads)for(var t=_.F(this.delegate.downloads),H=t.next();!H.done;H=t.next())D.push.apply(D,_.A6((new U4a(H.value)).getAssociations()));return[].concat(_.A6(new Set(D)))};
OLQ.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var U4a=function(){pS.apply(this,arguments)};
_.P(U4a,pS);U4a.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);this.delegate.playlist&&D.push(this.delegate.playlist);this.delegate.videoItem&&D.push(this.delegate.videoItem);this.delegate.playlistItem&&D.push(this.delegate.playlistItem);return[].concat(_.A6(new Set(D)))};var okv=function(){dr.apply(this,arguments)};
_.P(okv,dr);okv.prototype.getAssociations=function(){var D=[];this.delegate.localImageEntities&&D.push.apply(D,_.A6(this.delegate.localImageEntities));return[].concat(_.A6(new Set(D)))};
okv.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var P9f=function(){dr.apply(this,arguments)};
_.P(P9f,dr);P9f.prototype.getAssociations=function(){var D=[];this.delegate.playbackData&&D.push(this.delegate.playbackData);this.delegate.localImageEntities&&D.push.apply(D,_.A6(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.A6(new Set(D)))};
P9f.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var nko=function(){dr.apply(this,arguments)};
_.P(nko,dr);nko.prototype.getAssociations=function(){return[]};
nko.prototype.getTypeName=function(){return"offlineabilityEntity"};var C9a=function(){dr.apply(this,arguments)};
_.P(C9a,dr);C9a.prototype.getAssociations=function(){var D=[];this.delegate.fakeChildren&&D.push.apply(D,_.A6(this.delegate.fakeChildren));return[].concat(_.A6(new Set(D)))};
C9a.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var m49=function(){dr.apply(this,arguments)};
_.P(m49,dr);m49.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);this.delegate.playbackData&&D.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&D.push(this.delegate.offlineVideoPolicy);return[].concat(_.A6(new Set(D)))};
m49.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var Mn6=function(){dr.apply(this,arguments)};
_.P(Mn6,dr);Mn6.prototype.getAssociations=function(){return[]};
Mn6.prototype.getTypeName=function(){return"continuationTokenEntity"};var SAf=function(){dr.apply(this,arguments)};
_.P(SAf,dr);SAf.prototype.getAssociations=function(){var D=[];this.delegate.channelOwner&&D.push(this.delegate.channelOwner);this.delegate.videos&&D.push.apply(D,_.A6(this.delegate.videos));this.delegate.collaboratorChannels&&D.push.apply(D,_.A6(this.delegate.collaboratorChannels));this.delegate.downloadState&&D.push(this.delegate.downloadState);this.delegate.refresh&&D.push(this.delegate.refresh);return[].concat(_.A6(new Set(D)))};
SAf.prototype.getTypeName=function(){return"mainPlaylistEntity"};var XO4=function(){dr.apply(this,arguments)};
_.P(XO4,dr);XO4.prototype.getAssociations=function(){var D=[];this.delegate.video&&D.push(this.delegate.video);this.delegate.channelContributor&&D.push(this.delegate.channelContributor);return[].concat(_.A6(new Set(D)))};
XO4.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var fuv=function(){pS.apply(this,arguments)};
_.P(fuv,pS);fuv.prototype.getAssociations=function(){var D=[];this.delegate.recommendedVideoMetadata&&D.push.apply(D,_.A6((new Ljf(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.A6(new Set(D)))};
var Ljf=function(){pS.apply(this,arguments)};
_.P(Ljf,pS);Ljf.prototype.getAssociations=function(){var D=[];this.delegate.localImageEntities&&D.push.apply(D,_.A6(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.A6(new Set(D)))};var A7a=function(){pS.apply(this,arguments)};
_.P(A7a,pS);A7a.prototype.getAssociations=function(){var D=[];this.delegate.playbackPosition&&D.push(this.delegate.playbackPosition);return[].concat(_.A6(new Set(D)))};var gkn=function(){dr.apply(this,arguments)};
_.P(gkn,dr);gkn.prototype.getAssociations=function(){var D=[];this.delegate.owner&&D.push(this.delegate.owner);this.delegate.downloadState&&D.push(this.delegate.downloadState);this.delegate.userState&&D.push.apply(D,_.A6((new A7a(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&D.push.apply(D,_.A6((new fuv(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.A6(new Set(D)))};
gkn.prototype.getTypeName=function(){return"mainVideoEntity"};var J7w=function(){dr.apply(this,arguments)};
_.P(J7w,dr);J7w.prototype.getAssociations=function(){var D=[];this.delegate.userChannelDetails&&D.push(this.delegate.userChannelDetails);return[].concat(_.A6(new Set(D)))};
J7w.prototype.getTypeName=function(){return"ytMainChannelEntity"};var YAf=function(){dr.apply(this,arguments)};
_.P(YAf,dr);YAf.prototype.getAssociations=function(){var D=[];this.delegate.channelOwner&&D.push(this.delegate.channelOwner);this.delegate.playbackPosition&&D.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&D.push.apply(D,_.A6(this.delegate.localImageEntities));this.delegate.downloadStatus&&D.push(this.delegate.downloadStatus);return[].concat(_.A6(new Set(D)))};
YAf.prototype.getTypeName=function(){return"ytMainVideoEntity"};var ViV=new _.NM("downloadsPageSmartDownloadsOptInBannerParams");var awD=new _.NM("downloadsPageUpsellBannerParams");var luf=function(){dr.apply(this,arguments)};
_.P(luf,dr);luf.prototype.getAssociations=function(){return[]};
luf.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var vkm=function(){dr.apply(this,arguments)};
_.P(vkm,dr);vkm.prototype.getAssociations=function(){return[]};
vkm.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var pOw=function(){dr.apply(this,arguments)};
_.P(pOw,dr);pOw.prototype.getAssociations=function(){return[]};
pOw.prototype.getTypeName=function(){return"macroMarkerEntity"};var d46=function(){dr.apply(this,arguments)};
_.P(d46,dr);d46.prototype.getAssociations=function(){return[]};
d46.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var x4V=function(){dr.apply(this,arguments)};
_.P(x4V,dr);x4V.prototype.getAssociations=function(){return[]};
x4V.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var RT6=function(){dr.apply(this,arguments)};
_.P(RT6,dr);RT6.prototype.getAssociations=function(){return[]};
RT6.prototype.getTypeName=function(){return"playerStateEntity"};var ugn=function(){dr.apply(this,arguments)};
_.P(ugn,dr);ugn.prototype.getAssociations=function(){return[]};
ugn.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var Wj9=function(){dr.apply(this,arguments)};
_.P(Wj9,dr);Wj9.prototype.getAssociations=function(){return[]};
Wj9.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var IuB=function(){dr.apply(this,arguments)};
_.P(IuB,dr);IuB.prototype.getAssociations=function(){return[]};
IuB.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.HK=new _.NM("dislikeButtonViewModel");_.et=new _.NM("likeButtonViewModel");var Q0n=new _.NM("videoSummaryContentViewModel");var y73=new _.NM("videoSummaryParagraphViewModel");var BJQ=new _.NM("changeTimelyActionVisibilityCommand");var zTV=new _.NM("hideEngagementPanelEndpoint");var Dao=new _.NM("refreshPanelEndpoint");var tzQ=new _.NM("scrollToSectionEndpoint");var HSB=new _.NM("seekToVideoTimestampCommand");_.Sw=new _.NM("showEngagementPanelEndpoint");var e_m=new _.NM("showTransientPlayerScrimOverlayCommand");var Vzn=new _.NM("toggleEngagementPanelCommand");_.bSn=new _.NM("createBroadcastCommand");var qn3=new _.NM("metadataUpdateCommand");var Fva=function(){dr.apply(this,arguments)};
_.P(Fva,dr);Fva.prototype.getAssociations=function(){return[]};
Fva.prototype.getTypeName=function(){return"featuredProductsEntity"};var aLn=function(){dr.apply(this,arguments)};
_.P(aLn,dr);aLn.prototype.getAssociations=function(){return[]};
aLn.prototype.getTypeName=function(){return"pinnedProductEntity"};var wua=function(){dr.apply(this,arguments)};
_.P(wua,dr);wua.prototype.getAssociations=function(){return[]};
wua.prototype.getTypeName=function(){return"trendingOfferEntity"};_.ZS4=new _.NM("merchandiseShelfRenderer");var sW4=new _.NM("shoppingContentLineItemViewModel");var h_a=new _.NM("gridMovieRenderer");_.Gz6=new _.NM("movieRenderer");var Eq6=function(){dr.apply(this,arguments)};
_.P(Eq6,dr);Eq6.prototype.getAssociations=function(){var D=[];this.delegate.trackDownloadMetadatas&&D.push.apply(D,_.A6(this.delegate.trackDownloadMetadatas));return[].concat(_.A6(new Set(D)))};
Eq6.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var Kva=function(){dr.apply(this,arguments)};
_.P(Kva,dr);
Kva.prototype.getAssociations=function(){var D=[];this.delegate.downloadedTracks&&D.push.apply(D,_.A6(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&D.push.apply(D,_.A6(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&D.push.apply(D,_.A6(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&D.push.apply(D,_.A6(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&D.push.apply(D,_.A6(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
D.push.apply(D,_.A6(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&D.push.apply(D,_.A6(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&D.push.apply(D,_.A6(this.delegate.metadataOnlyTracks));return[].concat(_.A6(new Set(D)))};
Kva.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var Nr6=function(){dr.apply(this,arguments)};
_.P(Nr6,dr);Nr6.prototype.getAssociations=function(){var D=[];this.delegate.trackDownloadMetadatas&&D.push.apply(D,_.A6(this.delegate.trackDownloadMetadatas));return[].concat(_.A6(new Set(D)))};
Nr6.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var kz3=function(){dr.apply(this,arguments)};
_.P(kz3,dr);kz3.prototype.getAssociations=function(){var D=[];this.delegate.playbackData&&D.push(this.delegate.playbackData);this.delegate.localImageEntities&&D.push.apply(D,_.A6(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.A6(new Set(D)))};
kz3.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var Trm=function(){dr.apply(this,arguments)};
_.P(Trm,dr);
Trm.prototype.getAssociations=function(){var D=[];this.delegate.musicLibraryStatusEntity&&D.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&D.push.apply(D,_.A6(this.delegate.primaryArtists));this.delegate.details&&D.push(this.delegate.details);this.delegate.userDetails&&D.push(this.delegate.userDetails);this.delegate.tracks&&D.push.apply(D,_.A6(this.delegate.tracks));this.delegate.share&&D.push(this.delegate.share);this.delegate.downloadMetadata&&D.push(this.delegate.downloadMetadata);this.delegate.refresh&&
D.push(this.delegate.refresh);return[].concat(_.A6(new Set(D)))};
Trm.prototype.getTypeName=function(){return"musicAlbumRelease"};
var cza=function(){dr.apply(this,arguments)};
_.P(cza,dr);cza.prototype.getAssociations=function(){var D=[];this.delegate.albumRelease&&D.push(this.delegate.albumRelease);this.delegate.tracks&&D.push.apply(D,_.A6(this.delegate.tracks));return[].concat(_.A6(new Set(D)))};
cza.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var jWn=function(){dr.apply(this,arguments)};
_.P(jWn,dr);jWn.prototype.getAssociations=function(){var D=[];this.delegate.albumRelease&&D.push(this.delegate.albumRelease);return[].concat(_.A6(new Set(D)))};
jWn.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var $ao=function(){dr.apply(this,arguments)};
_.P($ao,dr);$ao.prototype.getAssociations=function(){var D=[];this.delegate.details&&D.push(this.delegate.details);this.delegate.userDetails&&D.push(this.delegate.userDetails);return[].concat(_.A6(new Set(D)))};
$ao.prototype.getTypeName=function(){return"musicArtist"};
var iS3=function(){dr.apply(this,arguments)};
_.P(iS3,dr);iS3.prototype.getAssociations=function(){var D=[];this.delegate.parentArtist&&D.push(this.delegate.parentArtist);return[].concat(_.A6(new Set(D)))};
iS3.prototype.getTypeName=function(){return"musicArtistDetail"};
var rzm=function(){dr.apply(this,arguments)};
_.P(rzm,dr);rzm.prototype.getAssociations=function(){var D=[];this.delegate.parentArtist&&D.push(this.delegate.parentArtist);return[].concat(_.A6(new Set(D)))};
rzm.prototype.getTypeName=function(){return"musicArtistUserDetail"};var OSm=function(){dr.apply(this,arguments)};
_.P(OSm,dr);OSm.prototype.getAssociations=function(){return[]};
OSm.prototype.getTypeName=function(){return"musicLibraryEdit"};var Ua6=function(){dr.apply(this,arguments)};
_.P(Ua6,dr);Ua6.prototype.getAssociations=function(){return[]};
Ua6.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var oqf=function(){dr.apply(this,arguments)};
_.P(oqf,dr);
oqf.prototype.getAssociations=function(){var D=[];this.delegate.tracks&&D.push.apply(D,_.A6(this.delegate.tracks));this.delegate.refresh&&D.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&D.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&D.push(this.delegate.details);this.delegate.downloadMetadata&&D.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&D.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&D.push(this.delegate.userDetails);this.delegate.entryCollection&&
D.push(this.delegate.entryCollection);this.delegate.share&&D.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&D.push.apply(D,_.A6((new Pq6(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.A6(new Set(D)))};
oqf.prototype.getTypeName=function(){return"musicPlaylist"};
var Pq6=function(){pS.apply(this,arguments)};
_.P(Pq6,pS);Pq6.prototype.getAssociations=function(){var D=[];this.delegate.creatorEntity&&D.push(this.delegate.creatorEntity);return[].concat(_.A6(new Set(D)))};var nqn=function(){dr.apply(this,arguments)};
_.P(nqn,dr);nqn.prototype.getAssociations=function(){return[]};
nqn.prototype.getTypeName=function(){return"musicShare"};var Cq6=function(){dr.apply(this,arguments)};
_.P(Cq6,dr);
Cq6.prototype.getAssociations=function(){var D=[];this.delegate.musicLibraryStatusEntity&&D.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&D.push.apply(D,_.A6(this.delegate.artists));this.delegate.audioModeVersion&&D.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&D.push(this.delegate.videoModeVersion);this.delegate.userDetails&&D.push(this.delegate.userDetails);this.delegate.details&&D.push(this.delegate.details);this.delegate.albumRelease&&D.push(this.delegate.albumRelease);this.delegate.share&&
D.push(this.delegate.share);this.delegate.libraryEdit&&D.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&D.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&D.push(this.delegate.playbackPosition);this.delegate.lyrics&&D.push(this.delegate.lyrics);return[].concat(_.A6(new Set(D)))};
Cq6.prototype.getTypeName=function(){return"musicTrack"};
var maf=function(){dr.apply(this,arguments)};
_.P(maf,dr);maf.prototype.getAssociations=function(){var D=[];this.delegate.parentTrack&&D.push(this.delegate.parentTrack);return[].concat(_.A6(new Set(D)))};
maf.prototype.getTypeName=function(){return"musicTrackDetail"};
var Mz3=function(){dr.apply(this,arguments)};
_.P(Mz3,dr);Mz3.prototype.getAssociations=function(){var D=[];this.delegate.parentTrack&&D.push(this.delegate.parentTrack);return[].concat(_.A6(new Set(D)))};
Mz3.prototype.getTypeName=function(){return"musicTrackUserDetail"};var zX=new _.NM("musicResponsiveListItemRenderer");var rJV=new _.NM("addToPlaylistEndpoint");var SnV=new _.NM("captionPickerEndpoint");var XuV=new _.NM("suggestStats");var fLn=new _.NM("backstageImageUploadEndpoint");var Lvn=new _.NM("createBackstagePostDialogEndpoint");_.Azn=new _.NM("createCommentReplyDialogEndpoint");_.gq9=new _.NM("updateCommentDialogEndpoint");_.JzB=new _.NM("updateCommentReplyDialogEndpoint");var Ynn=new _.NM("menuEndpoint");var ZqD=new _.NM("modalEndpoint");var lL6=new _.NM("playlistEditorEndpoint");var vqQ=new _.NM("copyTextEndpoint");var puV,daQ;puV=new _.NM("shareEndpoint");daQ=new _.NM("shareEntityEndpoint");_.xa3=new _.NM("shareEntityServiceEndpoint");_.w46=new _.NM("userFeedbackEndpoint");_.Hh=new _.NM("watchEndpoint");var WyA=new _.NM("watchPlaylistEndpoint");var R_n=new _.NM("addUpcomingEventReminderEndpoint");_.VQ=new _.NM("getCommentsFromInboxCommand");var u_Q=new _.NM("notificationOptOutEndpoint");var Wvo=new _.NM("recordNotificationInteractionsEndpoint");var ILw=new _.NM("removeUpcomingEventReminderEndpoint");var $hX=new _.NM("getDownloadActionCommand");_.QWn=new _.NM("offlineOrchestrationActionCommand");var yz4=function(){dr.apply(this,arguments)};
_.P(yz4,dr);yz4.prototype.getAssociations=function(){return[]};
yz4.prototype.getTypeName=function(){return"captionTrack"};var Br6=function(){dr.apply(this,arguments)};
_.P(Br6,dr);Br6.prototype.getAssociations=function(){return[]};
Br6.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var z_Q=function(){dr.apply(this,arguments)};
_.P(z_Q,dr);z_Q.prototype.getAssociations=function(){return[]};
z_Q.prototype.getTypeName=function(){return"offlineVideoPolicy"};var DBw=function(){dr.apply(this,arguments)};
_.P(DBw,dr);DBw.prototype.getAssociations=function(){return[]};
DBw.prototype.getTypeName=function(){return"offlineVideoStreams"};var ttm=function(){dr.apply(this,arguments)};
_.P(ttm,dr);ttm.prototype.getAssociations=function(){var D=[];this.delegate.transfer&&D.push(this.delegate.transfer);this.delegate.adsPlaybackData&&D.push.apply(D,_.A6(this.delegate.adsPlaybackData));this.delegate.drmLicense&&D.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&D.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&D.push(this.delegate.videoDownloadContextEntity);return[].concat(_.A6(new Set(D)))};
ttm.prototype.getTypeName=function(){return"playbackData"};var Him=function(){dr.apply(this,arguments)};
_.P(Him,dr);Him.prototype.getAssociations=function(){return[]};
Him.prototype.getTypeName=function(){return"refresh"};var ePw=function(){dr.apply(this,arguments)};
_.P(ePw,dr);ePw.prototype.getAssociations=function(){var D=[];this.delegate.offlineVideoStreams&&D.push.apply(D,_.A6(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&D.push.apply(D,_.A6(this.delegate.captionTrack));return[].concat(_.A6(new Set(D)))};
ePw.prototype.getTypeName=function(){return"transfer"};var Vtw=function(){dr.apply(this,arguments)};
_.P(Vtw,dr);Vtw.prototype.getAssociations=function(){return[]};
Vtw.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var bif=new _.NM("showMoreDrawerCommand");var qz6=new _.NM("updateEngagementPanelContentCommand");var Fea=new _.NM("getPdgBuyFlowCommand");var aBn=new _.NM("liveChatPurchaseMessageEndpoint");var wKV=new _.NM("openSuperStickerBuyFlowCommand");var Zia=new _.NM("updatePdgFeatureEnablementCommand");var sjn=function(){dr.apply(this,arguments)};
_.P(sjn,dr);sjn.prototype.getAssociations=function(){return[]};
sjn.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var hPV=function(){dr.apply(this,arguments)};
_.P(hPV,dr);hPV.prototype.getAssociations=function(){return[]};
hPV.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.G6v=new _.NM("pdgCommentChipRenderer");_.ESV=new _.NM("permissionRoleBottomBarRenderer");_.KeB=new _.NM("updatePermissionRoleCommand");var N3B=new _.NM("prefetchWatchCommand");var k6m=new _.NM("updatePlayerErrorMessageCommand");var Em8=new _.NM("toggleCaptionsVisibilityCommand");_.T36=new _.NM("quickActionsViewModel");var c1B=new _.NM("playerResponse");var jja=new _.NM("playlistRenderer");_.$B3=new _.NM("playlistVideoListRenderer");_.b2=new _.NM("playlistEditEndpoint");var iia=new _.NM("createImagePollCommand");var r1o=new _.NM("createQuizCommand");var Oia=new _.NM("quizRenderer");var UB4=new _.NM("uploadedVideoRenderer");var oS6=new _.NM("decorateMessageEndpoint");var P2Q=new _.NM("lpOfferCardOptionViewModel");var nSo=new _.NM("sfvAudioItemPlaybackCommand");var C2f=function(){dr.apply(this,arguments)};
_.P(C2f,dr);C2f.prototype.getAssociations=function(){return[]};
C2f.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.qB=new _.NM("reelNonVideoContentEndpoint");_.C_=new _.NM("reelWatchEndpoint");_.F5=new _.NM("reelItemRenderer");_.mB4=new _.NM("reelMetapanelViewModel");_.Mtf=new _.NM("reelNonVideoContentRenderer");_.Szn=new _.NM("reelPlayerOverlayRenderer");var XKv=new _.NM("shortsLockupViewModel");var fBf=new _.NM("sponsorButtonViewModel");var Lef=new _.NM("reelItemWatchResponse");var A1f=new _.NM("textBadgeRenderer");_.aj=new _.NM("buttonRenderer");_.w3=new _.NM("toggleButtonRenderer");var $UR=new _.NM("switchButtonViewModel");_.gSm=new _.NM("confirmDialogRenderer");var J19;J19=new _.NM("menuRenderer");_.Yzw=new _.NM("menuFlexibleItemRenderer");var lBo=new _.NM("pollRenderer");_.vSQ=new _.NM("backgroundPromoRenderer");var dB6;_.pKo=new _.NM("chipCloudRenderer");dB6=new _.NM("chipCloudChipRenderer");var xB6=new _.NM("dropdownRenderer");var RP3=new _.NM("gridVideoRenderer");_.u5Q=new _.NM("itemSectionRenderer");_.Wef=new _.NM("messageRenderer");var IBw=new _.NM("sortFilterHeaderRenderer");_.ZB=new _.NM("videoRenderer");var Qj9=new _.NM("resolveUrlCommandMetadata");var y16=function(){dr.apply(this,arguments)};
_.P(y16,dr);y16.prototype.getAssociations=function(){return[]};
y16.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.B3a=new _.NM("getAnswerCommand");_.oh=new _.NM("searchEndpoint");var zPf=new _.NM("genAiRichTextViewModel");var jFR=new _.NM("overviewAnswerViewModel");var DC6=new _.NM("videoOverviewViewModel");var tin=new _.NM("addToPlaylistServiceEndpoint");var Hp3=new _.NM("clearSearchHistoryEndpoint");var eWm=new _.NM("clearWatchHistoryEndpoint");var Vi4=new _.NM("webSerializedServiceEndpointExtension");_.bpn=new _.NM("createCommentEndpoint");var qKm=new _.NM("createCommentReplyEndpoint");var FOQ=new _.NM("performCommentActionEndpoint");var awn=new _.NM("updateCommentEndpoint");var wMn=new _.NM("updateCommentReplyEndpoint");_.sz=new _.NM("createPlaylistServiceEndpoint");var ZpQ=new _.NM("deletePlaylistEndpoint");var sma=new _.NM("deleteVideoEndpoint");var iyu=new _.NM("getReportFormEndpoint");var hW4=new _.NM("modifyChannelNotificationPreferenceEndpoint");var J46;_.iO=new _.NM("offlinePlaylistEndpoint");J46={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 Y63;_.$i=new _.NM("offlineVideoEndpoint");Y63={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 Gin=new _.NM("pingingEndpoint");_.E$n=new _.NM("selectActiveIdentityEndpoint");var KO9=new _.NM("setSettingEndpoint");var ndR=new _.NM("undoFeedbackEndpoint");var Nf3=new _.NM("unsubscribeEndpoint");_.kim=new _.NM("updatedMetadataEndpoint");var TfB=function(){dr.apply(this,arguments)};
_.P(TfB,dr);TfB.prototype.getAssociations=function(){return[]};
TfB.prototype.getTypeName=function(){return"settingEntity"};_.cU4=new _.NM("updateLocalAppSettingCommand");var jm6=new _.NM("saveImageToDeviceEndpoint");var $C3=new _.NM("shareImageCommand");var ipo=new _.NM("sharingProviderDataCommand");var rUa=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(rUa,_.ww);var Opw=[0,_.eB,-1];rUa.prototype.JSC$12375_serializeBinary=xNK(Opw);var UCQ=_.jM(Opw);var o$f=new _.NM("userMentionSuggestionRenderer");var PSv=new _.NM("liveChatTunnelCommand");var n$n=new _.NM("showSponsorshipsGiftOfferDialogCommand");var CSV=new _.NM("sponsorshipsScrollableShelfViewModel");var fQ6=new _.NM("updateUpcomingEventReminderButtonStateCommand");var LXo=new _.NM("upcomingEventReminderButtonStateRenderer");var AXa=new _.NM("subscribeEndpoint");var g7a=new _.NM("registerTasksCommand");var JXn=new _.NM("hideSheetCommand");var YgV=new _.NM("hideSnackbarCommand");var lQ6=new _.NM("showDialogCommand");_.Cf=new _.NM("showSheetCommand");var v7f=new _.NM("showSnackbarCommand");var pPV=function(){dr.apply(this,arguments)};
_.P(pPV,dr);pPV.prototype.getAssociations=function(){return[]};
pPV.prototype.getTypeName=function(){return"chipEntity"};var dK4=function(){dr.apply(this,arguments)};
_.P(dK4,dr);dK4.prototype.getAssociations=function(){return[]};
dK4.prototype.getTypeName=function(){return"dismissState"};_.lO=new _.NM("avatarViewModel");var xKf=new _.NM("badgeViewModel");_.h1=new _.NM("buttonViewModel");_.G6=new _.NM("chipViewModel");var Lwk=new _.NM("collectionThumbnailViewModel");var RIn=new _.NM("contentPreviewImageViewModel");var uWo=new _.NM("decoratedAvatarViewModel");_.CbK=new _.NM("engagementBarViewModel");_.WX6=new _.NM("imageBannerViewModel");var IQf=new _.NM("lockupContentMetadataRowExtension");_.QT6=new _.NM("lockupMetadataViewModel");_.yXn=new _.NM("lockupViewModel");var BWV=new _.NM("avatarStackViewModel");_.zIw=new _.NM("contentMetadataViewModel");var DD9=function(){dr.apply(this,arguments)};
_.P(DD9,dr);DD9.prototype.getAssociations=function(){return[]};
DD9.prototype.getTypeName=function(){return"pageHeaderEntity"};_.tXf=new _.NM("pageHeaderViewModel");var HcQ=new _.NM("snackbarViewModel");var evQ=new _.NM("thumbnailHoverOverlayToggleActionsViewModel");_.Ez=new _.NM("toggleButtonViewModel");var VXv=function(){dr.apply(this,arguments)};
_.P(VXv,dr);VXv.prototype.getAssociations=function(){return[]};
VXv.prototype.getTypeName=function(){return"votingEntity"};_.mVD=new _.NM("votingViewModel");var bcn=new _.NM("sectionHeaderViewModel");var qdB=new _.NM("notifyDropdownOptionSelectedCommand");var QVX=new _.NM("listViewModel");_.mt=new _.NM("listItemViewModel");var f3D=new _.NM("toggleableListItemViewModel");var F29=new _.NM("dialogHeaderViewModel");var aMf=function(){dr.apply(this,arguments)};
_.P(aMf,dr);aMf.prototype.getAssociations=function(){return[]};
aMf.prototype.getTypeName=function(){return"dataFreshnessEntity"};var qMR=new _.NM("suspenseViewModel");var wwn=function(){dr.apply(this,arguments)};
_.P(wwn,dr);wwn.prototype.getAssociations=function(){return[]};
wwn.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var Zco=function(){dr.apply(this,arguments)};
_.P(Zco,dr);Zco.prototype.getAssociations=function(){return[]};
Zco.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var syo=function(){dr.apply(this,arguments)};
_.P(syo,dr);syo.prototype.getAssociations=function(){return[]};
syo.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.hvo=new _.NM("transcriptSubmitCaptionCorrectionCommand");var GGa=function(){dr.apply(this,arguments)};
_.P(GGa,dr);GGa.prototype.getAssociations=function(){return[]};
GGa.prototype.getTypeName=function(){return"buttonEntity"};var B2A=new _.NM("unpluggedStringRunImage");var ETV=new _.NM("tabViewModel");var K2f=new _.NM("tabbedViewModel");var NB6=function(){dr.apply(this,arguments)};
_.P(NB6,dr);NB6.prototype.getAssociations=function(){return[]};
NB6.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.kG6=new _.NM("updateDescriptionAction");var TBa=new _.NM("updateToggleButtonTextAction");_.cfB=new _.NM("autoplaySwitchButtonRenderer");var gL;_.jy4=new _.NM("multiMarkersPlayerBarRenderer");gL=new _.NM("chapterRenderer");var $Df=new _.NM("heatMarkerRenderer");var Y0V=new _.NM("heatmapRenderer");var ico=new _.NM("smartSkipPlayerScrimOverlayRenderer");var rfa=new _.NM("timedMarkerDecorationRenderer");var Kq6=new _.NM("postWebToNativeMessageCommand");var gg=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(gg,_.ww);gg.prototype.getMethodName=function(){return _.La(this,1)};var Oc4=[0,_.eB,-2];gg.prototype.JSC$12397_serializeBinary=xNK(Oc4);var UDv=_.cU(gg,Oc4);var oTV=new _.NM("whitelistEditEndpoint");var PPf=new _.NM("clearUrlParamCommand");var nTm=new _.NM("commerceActionCommand");_.CPm=new _.NM("getPaymentInstrumentsParamsCommand");var mD6=new _.NM("getPaymentsClientTokenCommand");var MXn=new _.NM("googlePaymentBillingCommand");var Sdo=new _.NM("googlePaymentPurchaseManagerCommand");_.Xwf=new _.NM("logGtmCommand");var fMf=new _.NM("updateCardItemOnClickCommand");_.L2n=new _.NM("ypcPauseSubscriptionCommand");_.Afn=new _.NM("ypcResumeSubscriptionCommand");var gTB=function(){dr.apply(this,arguments)};
_.P(gTB,dr);gTB.prototype.getAssociations=function(){return[]};
gTB.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var Jf4=function(){dr.apply(this,arguments)};
_.P(Jf4,dr);Jf4.prototype.getAssociations=function(){return[]};
Jf4.prototype.getTypeName=function(){return"commerceCartListEntity"};var Ydm=function(){dr.apply(this,arguments)};
_.P(Ydm,dr);Ydm.prototype.getAssociations=function(){return[]};
Ydm.prototype.getTypeName=function(){return"iconBadgeEntity"};var lMf=function(){dr.apply(this,arguments)};
_.P(lMf,dr);lMf.prototype.getAssociations=function(){return[]};
lMf.prototype.getTypeName=function(){return"pdpStateEntity"};var vT9=function(){dr.apply(this,arguments)};
_.P(vT9,dr);vT9.prototype.getAssociations=function(){return[]};
vT9.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var VJu=new _.NM("ypcOffersEndpoint");var pwB=new _.NM("cardItemRenderer"),dD4=new _.NM("cardItemTextRenderer");var xD9=new _.NM("commerceCartItemQuantityPickerRenderer");var Rv9=new _.NM("linkCardRenderer");var aNk=new _.NM("quantityIncrementerButtonViewModel");var uh6=new _.NM("quantityIncrementerViewModel");var W2m=new _.NM("themedImageViewModel");_.IMv=new _.NM("ypcCancelRecurrenceEndpoint");var Qyf=new _.NM("ypcCompleteTransactionEndpoint");_.yfQ=new _.NM("ypcGetCartEndpoint");_.DT=new _.NM("ypcGetOffersEndpoint");_.Ki=new _.NM("ypcHandleTransactionEndpoint");var BBQ=new _.NM("ypcLogWalletAnalyticDataEndpoint");_.zvv=new _.NM("ypcRedeemCodeEndpoint");var DgB=new _.NM("ypcUpdateFopEndpoint");rr(iq(1),jz(4));hRV((new MessageChannel).port2);var tLa=function(){this.register=new Map},hjK=function(D,t,H){D=D+"_"+t;
NB.register.has(D)?H=NB.register.get(D):(H=H(),NB.register.set(D,H));return H},Hon=function(D){D=_.F(D.register.values());
for(var t=D.next();!t.done;t=D.next())_.EG(t.value,"ABORTED")};
tLa.prototype.clear=function(){Hon(this);this.register.clear()};
var NB=new tLa;var Rwu=Date.now().toString();var IhD=WL6();var ejD={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 eA9,YR;eA9=1;YR=function(D){this.veData=D};
_.Sa=function(D){return new YR({trackingParams:D})};
_.Nx=function(D,t,H,e,V,b){var a=eA9++;return new YR({veType:D,veCounter:a,elementIndex:H,dataElement:t,youtubeData:e,jspbYoutubeData:V,loggingDirectives:b})};
_.q=YR.prototype;
_.q.getAsJson=function(){var D={};this.veData.trackingParams!==void 0?D.trackingParams=this.veData.trackingParams:(D.veType=this.veData.veType,this.veData.veCounter!==void 0&&(D.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(D.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(D.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(D.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(D.isCounterfactual=!0);
return D};
_.q.getAsJspb=function(){var D=new noo;this.veData.trackingParams!==void 0?D.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.lZ(D,2,this.veData.veType),this.veData.veCounter!==void 0&&_.lZ(D,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.lZ(D,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.KN(D,5,!0));if(this.veData.dataElement!==void 0){var t=this.veData.dataElement.getAsJspb();_.oE(D,7,t)}this.veData.youtubeData!==void 0&&_.oE(D,8,this.veData.jspbYoutubeData);
return D};
_.q.toString=function(){return JSON.stringify(this.getAsJson())};
_.q.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.q.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.bg("yt_logging_screen.getRootVeType",DLV);_.bg("yt_logging_screen.getCurrentCsn",_.v3);_.bg("yt_logging_screen.getCttAuthInfo",pG);_.bg("yt_logging_screen.setCurrentScreen",_.dZ);var VLn=function(){this.events=new Map},bo6=function(D){var t=[];
D=_.F(D.events.values());for(var H=D.next();!H.done;H=D.next())t.push(H.value);return t};
VLn.prototype.clear=function(){this.events.clear()};var Fy6=function(){this.logTransport=new qx6;this.loggedEventRegister=new VLn;this.unloggedEventRegister=new VLn;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12434_flushTimer=new _.hK(this.flushInterval);this.JSC$12434_flushTimer.listen("tick",this.flush,!1,this)};
Fy6.prototype.flush=function(){if(this.eventsCount){var D={loggedEvents:bo6(this.loggedEventRegister),unloggedEvents:bo6(this.unloggedEventRegister)};if(_.r("export_player_version_to_ytconfig")){var t;(t=_.YC("PLAYER_CLIENT_VERSION"))?(t=t.split("-")[0].replace(/\./g,""),t=isNaN(Number(t))?"0":t):t="";var H=_.YC("PLAYER_CLIENT_VERSION");if(H){H=H.split("-");var e="";H.length>1&&(e=H[H.length-1]);H=xMV(e.startsWith("canary_experiment")?"canary":e.startsWith("canary_control")?"control":"none")}else H=
"CLIENT_CANARY_STATE_UNKNOWN";D.dimensions={playerClientVersion:t,playerCanaryState:H}}this.logTransport.flush(D);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12434_flushTimer.enabled&&this.JSC$12434_flushTimer.stop()}};
var aGf=function(D){kS==null&&(kS=new Fy6);var t=kS;var H=t.loggedEventRegister;D.dimensions=D.dimensions||{};D.dimensions.csn=_.v3()||"";var e=qi8(D.dimensions).join(";");if(D.records!=null)if(H.events.has(e)){var V;(V=H.events.get(e).records)==null||V.push.apply(V,_.A6(D.records))}else H.events.set(e,D);t.JSC$12434_flushTimer.enabled||t.JSC$12434_flushTimer.start();t.eventsCount++;t.eventsCount>=100&&t.flush()};var qx6=function(){};
qx6.prototype.flush=function(D,t){_.r("enable_client_sli_logging")&&_.L7("sliEventBatch",D,{sendIsolatedPayload:!!t})};var kS;var Zo6;Zo6=function(D){var t=wJa;D=D===void 0?{}:D;t=t.name;var H=scA("SUCCESS");aGf({dimensions:D,records:[{name:t,state:"SLI_STATE_END",status:H}]})};
_.Gdk=function(D,t,H,e){this.name=D;this.sliId=t;this.timeoutMs=H;this.statusOnTimeout=e;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.Gdk.prototype.getId=function(){return this.sliId};
_.Gk=function(D,t){t=t===void 0?{}:t;D.ongoing||(D.ongoing=!0,D.dimensions=t,D.logSliId=EGB(),aGf({dimensions:D.dimensions,records:[{name:D.name,state:"SLI_STATE_START",sliId:D.logSliId}]}),D.timeoutMs>0&&(D.timeoutHandle=setTimeout(function(){_.EG(D,D.statusOnTimeout)},D.timeoutMs)))};
_.EG=function(D,t){D.ongoing&&(D.timeoutMs>0&&clearTimeout(D.timeoutHandle),D.ongoing=!1,t={dimensions:D.dimensions,records:[{name:D.name,status:scA(t),state:"SLI_STATE_END",sliId:D.logSliId}]},NB.register.delete(D.name+"_"+D.sliId),aGf(t))};var wJa=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var sMv=function(){dr.apply(this,arguments)};
_.P(sMv,dr);sMv.prototype.getAssociations=function(){return[]};
sMv.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var fbD=new _.NM("highlightTextDecoratorColorMapExtension");var SVV=new _.NM("styleRunColorMapExtension");var jcT=_.zk(["data-"]),rqk={};var UL3={};var T6=function(D){this.wrappedPromise_=D===void 0?null:D;this.state_=0;this.JSC$12466_value_=null};
T6.prototype.then=function(D,t,H){return this.wrappedPromise_?this.wrappedPromise_.then(D,t,H):this.state_===1&&D?(D=D.call(H,this.JSC$12466_value_))&&typeof D.then==="function"?D:_.cK(D):this.state_===2&&t?(D=t.call(H,this.JSC$12466_value_))&&typeof D.then==="function"?D:_.hAw(D):this};
T6.prototype.getValue=function(){return this.JSC$12466_value_};
T6.prototype.isRejected=function(){return this.state_==2};
U3Q(T6);_.hAw=function(D){var t=new T6;D=D===void 0?null:D;t.state_=2;t.JSC$12466_value_=D===void 0?null:D;return t};
_.cK=function(D){var t=new T6;D=D===void 0?null:D;t.state_=1;t.JSC$12466_value_=D===void 0?null:D;return t};var lX6="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var GIB=["load","abort","error"],jt=function(D,t,H){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12486_maxAspectRatio_=D;this.disableAnimation_=t===void 0?!1:t;this.disableExifRotation_=H===void 0?!1:H;this.JSC$12486_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12486_reject_=this.resolve_=null};
jt.prototype.transform=function(D){var t=this;this.mime_=D.type;ZD(CKf(D),this.dataUrlRead_,this.readError_,this);ZD(nL3(D.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(H,e){t.resolve_=H;t.JSC$12486_reject_=e})};
jt.prototype.dataUrlRead_=function(D){this.dataUrl_=D;this.angle_!=null&&Env(this)};
jt.prototype.exifRead_=function(D){if(this.disableExifRotation_)this.angle_=0;else{a:if(D=new DataView(D),D.byteLength<2||D.getUint16(0)!==65496)D=-2;else{for(var t=2,H=D.byteLength;t<H;){var e=D.getUint16(t),V=D.getUint16(t+2);if(e===65505){t+=4;e=D.getUint32(t);V=D.getUint16(t+4);if(e!==1165519206||V!==0)break;t+=6;e=D.getUint16(t)===18761;t+=D.getUint32(t+4,e);V=D.getUint16(t,e);t+=2;for(var b=0;b<V;b++){if(D.getUint16(t,e)===274){t+=8;D=D.getUint16(t,e);break a}t+=12}}else if(e>>8!==255)break;
else t+=V+2}D=-1}switch(D){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&&Env(this)};
jt.prototype.readError_=function(){this.JSC$12486_reject_()};
var Env=function(D){mV(D.JSC$12486_image_,GIB,D.completeTransform_,!1,D);D.JSC$12486_image_.src=_.dw(D.dataUrl_).toString();D.JSC$12486_image_.src!=pM.toString()&&D.JSC$12486_image_.src.substr(0,11)==="data:image/"||D.JSC$12486_reject_()};
jt.prototype.completeTransform_=function(){if(this.JSC$12486_image_.src!=pM.toString()){var D=_.dw(this.dataUrl_),t=this.JSC$12486_image_.naturalHeight?this.JSC$12486_image_.naturalWidth/this.JSC$12486_image_.naturalHeight:null;this.invalidAspectRatio=t>this.JSC$12486_maxAspectRatio_||t<1/this.JSC$12486_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var H=this.JSC$12486_image_.naturalWidth,e=this.JSC$12486_image_.naturalHeight,V=t=0,b=this.JSC$12486_image_.naturalHeight?this.JSC$12486_image_.naturalWidth/
this.JSC$12486_image_.naturalHeight:null;b>this.JSC$12486_maxAspectRatio_?(H=this.JSC$12486_maxAspectRatio_*e,t=(H-this.JSC$12486_image_.naturalWidth)/2,this.cropped=!0):b<1/this.JSC$12486_maxAspectRatio_?(e=this.JSC$12486_maxAspectRatio_*H,V=(e-this.JSC$12486_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)b=H,H=e,e=b,b=t,t=V,V=b;switch(this.angle_){case 90:V-=H;break;case 180:t-=H;V-=e;break;case 270:t-=
e}this.cropped||this.angle_%360!==0?(D=document.createElement("canvas"),D.width=H||1,D.height=e||1,this.JSC$12486_image_.naturalWidth&&this.JSC$12486_image_.naturalHeight&&(H=D.getContext("2d"),H.rotate(Math.PI/180*this.angle_),H.drawImage(this.JSC$12486_image_,t,V,this.JSC$12486_image_.naturalWidth,this.JSC$12486_image_.naturalHeight)),this.transformedData=_.dw(D.toDataURL(this.mime_))):this.transformedData=D}else this.transformedData=D;this.resolve_(this)}};var $S=function(D,t){_.Xv.call(this,D);this.value=t};
_.P($S,_.Xv);
var i2=function(D,t,H,e,V,b,a){a=a===void 0?!1:a;_.J2.call(this);var w=this;this.JSC$12491_url_=D;this.channelId_=t;this.maxFileSizeMb_=H;this.JSC$12491_maxAspectRatio_=e;this.dropZoneEl_=V;this.rejectInvalidAspectRatio_=a;this.selectButtonEl_=b;this.JSC$12491_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new Ma(this.dropZoneEl_);this.selectOverlay_=new Sz(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12491_image_=this.transfer_=null;this.handler_=new _.GA(this);_.c1(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(b,"click",function(){w.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.P(i2,_.J2);i2.prototype.disposeInternal=function(){for(var D=this.selectButtonEl_.nextSibling;D&&D.parentNode&&D.tagName=="INPUT";)D.parentNode.removeChild(D),D=this.selectButtonEl_.nextSibling;this.cancel();_.J2.prototype.disposeInternal.call(this)};
i2.prototype.uploadPromise=function(){if(this.JSC$12491_image_==null)return null;this.uploadPromise_||Kyo(this);return this.uploadPromise_};
i2.prototype.cancel=function(){Ntn(this);this.JSC$12491_image_=null};
var Ntn=function(D){D.transfer_&&D.transfer_.cancel();D.transfer_=null;D.uploadPromise_=null;D.resolve_=null;D.JSC$12491_reject_=null},Kyo=function(D){Ntn(D);
D.transfer_=_.Bqo(D.JSC$12491_url_,{"X-YouTube-ChannelId":D.channelId_},D.JSC$12491_image_);D.handler_.listenOnce(D.transfer_,"l",D.JSC$12493_onUploadComplete_);D.handler_.listenOnce(D.transfer_,"n",D.onUploadError_);D.transfer_.run();D.uploadPromise_=new Promise(function(t,H){D.resolve_=t;D.JSC$12491_reject_=H})};
_.q=i2.prototype;_.q.onChange_=function(D){D.files.length&&(this.JSC$12491_image_=D.files[0],this.JSC$12491_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12491_image_=null,this.dispatchEvent(new $S("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(Kyo(this),(new jt(this.JSC$12491_maxAspectRatio_)).transform(this.JSC$12491_image_).then((0,_.Mc)(this.onPreview_,this),(0,_.Mc)(this.onPreviewError_,this))))};
_.q.onPreview_=function(D){if(D.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12491_image_=null),this.dispatchEvent(new $S("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;D.cropped&&this.dispatchEvent(new $S("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new $S("yt.comments.ImageUploadOverlay.CHANGE_EVENT",D.transformedData))};
_.q.onPreviewError_=function(){this.JSC$12491_image_=null;this.dispatchEvent(new $S("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.q.onHover_=function(D){D.stopPropagation();D.preventDefault();if(D.type==="dragover")D=!0;else if(D.type==="dragleave")D=!1;else return;this.dispatchEvent(new $S("yt.comments.ImageUploadOverlay.HOVER_EVENT",D))};
_.q.JSC$12493_onUploadComplete_=function(){var D=(0,_.Qt4)(this.transfer_.getResponseText());this.resolve_(D.encryptedBlobId)};
_.q.onUploadError_=function(){this.JSC$12491_reject_();Ntn(this)};var kIQ=function(D){D=D||{};var t={},H={};this.url=D.url||"";this.args=D.args||_.J$.clone(t);this.assets=D.assets||{};this.attrs=D.attrs||_.J$.clone(H);this.fallback=D.fallback||null;this.fallbackMessage=D.fallbackMessage||null;this.html5=!!D.html5;this.disable=D.disable||{};this.loaded=!!D.loaded;this.messages=D.messages||{}};
kIQ.prototype.clone=function(){var D=new kIQ,t;for(t in this)if(this.hasOwnProperty(t)){var H=this[t];_.yV(H)=="object"?D[t]=_.J$.clone(H):D[t]=H}return D};var Tt3,ckV,jM6,Bm,ion,rkV,OoB,Ugv,ono,PkB,nnf,Cka,mg6,ML4,Sxw,XJ3,fGn,Ly3,Akn,gn9,JkB,Yxo,lGm,vnn,pJ4,dgm,xg9,RAn,unf,UV$,WyV,IGm,QMf,yko,Btw,zAv,DYo,tC6,H8o,ezm,Ow6,VCv,b84,qbB,FZf,aZa,wpf,Z8f,sww,hzV,Gsf,EDV,KZm,N7n,ksw,T74,r3,cr6,jwV,$YV,i8f,rr9,O8n,UY6,oD4,PU3,nDV,CUv,mYm,MC4,Sbf,Xp6,fZ4,LZ4,Ar4,gDa,iwD,Jrm,Ybv,lZ3,vDf,ppn,dYn,xY4,Rzm,uDa,WZn,IZ4,Qww,yr6,B74,zz3,Dia,t_6,H03,eiQ,V_v,b0a,qvB,F8f,a6m,wV9;Tt3=["account/accounts_list"];ckV=["acknowledge_channel_tou_strike"];jM6=["notification/add_upcoming_event_reminder"];
_.$gB=["att/get"];Bm=["browse","music/browse","unplugged/browse"];ion=["channel/claim_legacy_youtube_channel"];rkV=["history/clear_search_history"];OoB=["history/clear_watch_history"];Ugv=["comment/perform_comment_action"];ono=["comment/get_comment_replies"];PkB=["ypc/commerce_action"];nnf=["backstage/create_post"];Cka=["live/create_broadcast"];mg6=["channel/create_channel"];ML4=["comment/create_comment_reply"];Sxw=["comment/create_comment"];XJ3=["live_chat/create_poll"];fGn=["playlist/create"];
Ly3=["decorate_message"];Akn=["live_chat/delete_message"];gn9=["playlist/delete"];JkB=["video/delete"];Yxo=["like/dislike"];lGm=["dismissal/dismiss"];vnn=["flag/flag"];pJ4=["flow"];dgm=["account/account_menu"];xg9=["playlist/get_add_to_playlist"];RAn=["get_answer"];unf=["channel/get_channel_creation_form"];UV$=["offline/get_download_action"];WyV=["kids/get_kids_blocklist_picker"];IGm=["live_chat/get_item_context_menu"];QMf=["live_chat/get_live_chat_message_buy_flow"];yko=["live_chat/get_live_chat_replay"];
Btw=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];zAv=["live_chat/get_live_chat_super_sticker_buy_flow"];DYo=["notification/get_notification_menu"];tC6=["playlist/get_settings_editor"];H8o=["backstage/get_post_video_preview"];ezm=["account/get_profile_card"];Ow6=["share/get_share_panel"];VCv=["share/get_sharing_provider_data"];b84=["get_survey"];qbB=["notification/get_unseen_count"];FZf=["get_user_mention_suggestions"];aZa=["get_watch"];wpf=["guide"];
Z8f=["feedback"];sww=["kids/update_blacklist"];hzV=["like/like"];Gsf=["live_chat/live_chat_action"];EDV=["live_chat/manage_user"];KZm=["video_manager/metadata_update"];N7n=["live_chat/moderate"];ksw=["notification/modify_channel_preference"];T74=["notification/opt_out"];r3=["get_panel","get_posts_by_host_panel"];cr6=["player"];jwV=["browse/edit_playlist"];$YV=["notification/record_interactions"];i8f=["reel/reel_item_watch"];rr9=["reel/reel_watch_sequence"];O8n=["like/removelike"];UY6=["notification/remove_upcoming_event_reminder"];
oD4=["flag/get_form"];PU3=["miniapp/report_value"];nDV=["navigation/resolve_url"];CUv=["channel/reveal_business_email"];mYm=["in_video/search"];MC4=["search","sfv/search","unplugged/search"];Sbf=["live_chat/send_message"];Xp6=["live_chat/send_live_chat_vote"];fZ4=["account/set_setting"];LZ4=["submit_caption_correction"];Ar4=["submit_form"];gDa=["subscription/subscribe"];iwD=["get_transcript"];Jrm=["resolve_location","unplugged/resolve_location"];Ybv=["subscription/unsubscribe"];lZ3=["backstage/update_post"];
vDf=["channel_edit/update_channel_page_settings"];ppn=["comment/update_comment_reply"];dYn=["comment/update_comment"];xY4=["comment/update_comments_settings"];Rzm=["creator/update_creator_channel"];uDa=["pdg/update_enablement"];WZn=["updated_metadata"];IZ4=["channel_edit/validate_channel_handle"];Qww=["verify_age"];yr6=["next","unplugged/watch_next"];B74=["whitelist/edit"];zz3=["ypc/cancel_recurrence"];Dia=["ypc/complete_transaction"];t_6=["ypc/get_cart"];H03=["ypc/get_fix_instrument_params"];
eiQ=["ypc/get_offers"];V_v=["ypc/get_payment_instruments_params"];b0a=["ypc/handle_transaction"];qvB=["ypc/log_payment_server_analytics"];F8f=["ypc/pause_subscription"];a6m=["ypc/redeem_code"];wV9=["ypc/resume_subscription"];var Z0m=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,276243,93911,274188,276651,106531,257234,252598,252597,252600,252599,252596,225031,
177843,27259,27262,27263,21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,
74610,45707,83962,83970,46713,166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,276200,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,
235234,162712,80357,243315,86113,72598,168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,273905,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,
156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,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,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,
18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,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,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,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,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,
5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,
43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,
147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,275782,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,
22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var rE=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.bg("yt.msgs_",rE);var Oz=new _.kI("ACTION_ROUTER_TOKEN");_.Uz=function(){this.autonavState_=_.r("kevlar_is_pupi_enabled")?2:zjV()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Uz.prototype.getState=function(){return this.autonavState_};
_.Uz.prototype.pause=function(D){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=D):this.autonavState_==1&&(this.disabledAutonavPauseReason_=D)};
_.Uz.prototype.setState=function(D,t,H){t&&(this.autoplayChangedByUser=!0);t=this.autonavState_===3||D===3;this.autonavState_!=D&&(this.autonavState_=D,D!=3&&_.D4T(D==2),D=_.r("kevlar_is_pupi_enabled")?H||t:!0,_.Qa.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,D,H))};
_.Uz.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.ak(_.Uz);var oj=function(){this.hasRun=!1};var PK={},s06=(PK.auto_search="LATENCY_ACTION_AUTO_SEARCH",PK.ad_to_ad="LATENCY_ACTION_AD_TO_AD",PK.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",PK.app_startup="LATENCY_ACTION_APP_STARTUP",PK.browse="LATENCY_ACTION_BROWSE",PK.cast_splash="LATENCY_ACTION_CAST_SPLASH",PK.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",PK.channels="LATENCY_ACTION_CHANNELS",PK.chips="LATENCY_ACTION_CHIPS",PK.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",PK.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
PK.editor="LATENCY_ACTION_EDITOR",PK.embed="LATENCY_ACTION_EMBED",PK.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",PK.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",PK.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",PK.explore="LATENCY_ACTION_EXPLORE",PK.favorites="LATENCY_ACTION_FAVORITES",PK.home="LATENCY_ACTION_HOME",PK.inboarding="LATENCY_ACTION_INBOARDING",PK.landing="LATENCY_ACTION_LANDING",PK.learning="LATENCY_ACTION_LEARNING",
PK.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",PK.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",PK.library="LATENCY_ACTION_LIBRARY",PK.live="LATENCY_ACTION_LIVE",PK.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",PK.management="LATENCY_ACTION_MANAGEMENT",PK.mini_app="LATENCY_ACTION_MINI_APP_PLAY",PK.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",PK.onboarding="LATENCY_ACTION_ONBOARDING",PK.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
PK.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",PK.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",PK.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",PK.prebuffer="LATENCY_ACTION_PREBUFFER",PK.prefetch="LATENCY_ACTION_PREFETCH",PK.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",PK.profile_switcher="LATENCY_ACTION_LOGIN",PK.projects="LATENCY_ACTION_PROJECTS",PK.reel_watch="LATENCY_ACTION_REEL_WATCH",PK.results="LATENCY_ACTION_RESULTS",PK.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
PK.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",PK.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",PK.review="LATENCY_ACTION_REVIEW",PK.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",PK.search_ui="LATENCY_ACTION_SEARCH_UI",PK.search_suggest="LATENCY_ACTION_SUGGEST",PK.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",PK.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",PK.seek="LATENCY_ACTION_PLAYER_SEEK",PK.settings="LATENCY_ACTION_SETTINGS",PK.store="LATENCY_ACTION_STORE",
PK.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",PK.tenx="LATENCY_ACTION_TENX",PK.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",PK.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",PK.watch="LATENCY_ACTION_WATCH",PK.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",PK["watch,watch7"]="LATENCY_ACTION_WATCH",PK["watch,watch7_html5"]="LATENCY_ACTION_WATCH",PK["watch,watch7ad"]="LATENCY_ACTION_WATCH",PK["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",PK.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
PK.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",PK.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",PK.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",PK.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",PK.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",PK.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",PK.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",PK),ok3=0;var SAV=function(D,t){pv.call(this,1,arguments);this.timer=t};
_.P(SAV,pv);var MnX=new Ssk("aft-recorded",SAV);var Kju=_.VA.ytLoggingGelSequenceIdObj_||{};_.bg("ytLoggingGelSequenceIdObj_",Kju);var ni=_.VA.ytLoggingLatencyUsageStats_||{};_.bg("ytLoggingLatencyUsageStats_",ni);var Ci=function(){this.cleanupJob=0},TJV=function(){Ci.instance||(Ci.instance=new Ci);
return Ci.instance};
_.q=Ci.prototype;_.q.baseline=function(D,t,H){me(this,"baseline_"+D)||_.L7("latencyActionBaselined",{clientActionNonce:D},{timestamp:t,cttAuthInfo:H})};
_.q.tick=function(D,t,H,e){me(this,"tick_"+D+"_"+t)||_.L7("latencyActionTicked",{tickName:D,clientActionNonce:t},{timestamp:H,cttAuthInfo:e})};
_.q.info=function(D,t,H){var e=Object.keys(D).join("");me(this,"info_"+e+"_"+t)||(D=Object.assign({},D),D.clientActionNonce=t,_.L7("latencyActionInfo",D,{cttAuthInfo:H}))};
_.q.jspbInfo=function(D,t,H){for(var e="",V=0;V<AF(D).length;V++)AF(D)[V]!==void 0&&(e=V===0?e.concat(""+V):e.concat("_"+V));me(this,"info_"+e+"_"+t)||(_.M3(D,2,t),t={cttAuthInfo:H},H=_.r("jspb_sparse_encoded_pivot")?new n7([{}]):new n7,_.PU(H,7,dl9,D),NJT("latencyActionInfo",H,t))};
_.q.span=function(D,t,H){var e=Object.keys(D).join("");me(this,"span_"+e+"_"+t)||(D.clientActionNonce=t,_.L7("latencyActionSpan",D,{cttAuthInfo:H}))};
var me=function(D,t){ni[t]=ni[t]||{count:0};var H=ni[t];H.count++;H.time=(0,_.aP)();D.cleanupJob||(D.cleanupJob=_.C7(_.Jy,function(){var e=(0,_.aP)(),V;for(V in ni)ni[V]&&e-ni[V].time>6E4&&delete ni[V];D&&(D.cleanupJob=0)},5E3));
return H.count>5?(H.count===6&&Math.random()*1E5<1&&(H=new _.nZ("CSI data exceeded logging limit with key",t.split("_")),t.indexOf("plev")>=0||_.Yw(H)),!0):!1};var sgm,hio;sgm=window;hio=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.SP=sgm.performance||sgm.mozPerformance||sgm.msPerformance||sgm.webkitPerformance||new hio;var m4k=!1,j08=!1,XOV=(0,_.Mc)(_.SP.clearResourceTimings||_.SP.webkitClearResourceTimings||_.SP.mozClearResourceTimings||_.SP.msClearResourceTimings||_.SP.oClearResourceTimings||_.fJ,_.SP);var Ggn=window;Ggn.ytcsi&&(Ggn.ytcsi.infoGel=_.JE,Ggn.ytcsi.tick=_.vh);var x4A=function(D){pv.call(this,1,arguments);this.csn=D};
_.P(x4A,pv);var gLk=new Ssk("screen-created",x4A),Fv8=[],d4X=qnT,aLD=0,u1=new Map,RTX=new Map,ugR=new Map;var q0V=Symbol("Af"),V6=new WeakMap;var MB=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},Cz=function(){MB.instance||(MB.instance=new MB);
return MB.instance};
_.q=MB.prototype;_.q.setClient=function(D){this.client=D};
_.q.JSC$12572_newScreen=function(){this.clear();this.csn=_.v3()};
_.q.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.q.reportShown=function(D,t,H){var e=this.JSC$12572_getTrackingParams(D),V=D.visualElement?D.visualElement:e;t=this.shownElements.has(V);var b=this.visibleState.get(V);this.shownElements.add(V);this.visibleState.set(V,!0);D.impressionLog&&!t&&D.impressionLog();if(e||D.visualElement)if(H=Es9(this,D,H))if(V=K8m(this,D),St(this,D)||V){e=D.visualElement?D.visualElement:_.Sa(e);var a=D.interactionLoggingClientData;V||t?St(this,D)&4?b||tzK(this.client,H,e,a):St(this,D)&1&&!t&&BJK(this.client,H,e,a):BJK(this.client,
H,e,a)}};
_.q.reportHidden=function(D,t,H){var e=this.JSC$12572_getTrackingParams(D),V=D.visualElement?D.visualElement:e;t=this.hiddenElements.has(V);var b=this.visibleState.get(V);this.hiddenElements.add(V);this.visibleState.set(V,!1);if(b===!1)return!0;if(!e&&!D.visualElement)return!1;H=Es9(this,D,H);if(!H||!St(this,D)&&K8m(this,D))return!1;e=D.visualElement?D.visualElement:_.Sa(e);St(this,D)&8?HS$(this.client,H,e):St(this,D)&2&&!t&&(D=this.client,t=R4({cttAuthInfo:pG(H)||void 0},H),e={csn:H,ve:e.getAsJson(),
eventType:2},H==="UNDEFINED_CSN"?I4("visualElementHidden",t,e):D?X0("visualElementHidden",e,D,t):_.L7("visualElementHidden",e,t));return!0};
_.q.JSC$12572_getTrackingParams=function(D){var t=this.getData(D),H,e;if(_.r("il_use_view_model_logging_context")&&(t==null?0:(H=t.context)==null?0:(e=H.loggingContext)==null?0:e.loggingDirectives))return t.context.loggingContext.loggingDirectives.trackingParams||"";var V,b;if(t==null?0:(V=t.rendererContext)==null?0:(b=V.loggingContext)==null?0:b.loggingDirectives)return t.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(t==null?0:t.loggingDirectives)return t.loggingDirectives.trackingParams||
"";var a;return((a=D.veContainer)==null?0:a.trackingParams)?D.veContainer.trackingParams:(t==null?void 0:t.trackingParams)||""};
_.q.JSC$12572_elementShouldLogGesture=function(D,t){D=this.getData(D);return!!((Math.floor(Number(D&&D.loggingDirectives&&D.loggingDirectives.gestures&&D.loggingDirectives.gestures.types||""))||0)&t)};
_.q.JSC$12572_getNearestParentVe=function(D){var t=this.JSC$12572_getTrackingParams(D);return D.visualElement?D.visualElement:t?_.Sa(t):D.parentElement?this.JSC$12572_getNearestParentVe(D.parentElement):null};
var Es9=function(D,t,H){var e=_.v3(H);return D.csn===null||e===D.csn||H?e:(D=new _.nZ("VisibilityLogger called before newScreen",{caller:t.tagName,previous_csn:D.csn,current_csn:e}),_.Yw(D),null)};
MB.prototype.getData=function(D){var t,H=D.data||((t=D.props)==null?void 0:t.data);if(!H||D.isWebComponentWrapper){var e;H=(e=V6.get(D))==null?void 0:e[q0V]}return H};
var K8m=function(D,t){var H;return!((H=D.getData(t))==null||!H.loggingDirectives)},St=function(D,t){D=D.getData(t);
return Math.floor(Number(D&&D.loggingDirectives&&D.loggingDirectives.visibility&&D.loggingDirectives.visibility.types||""))||1};var X5;X5=function(){};
_.U_=function(){X5.instance||(X5.instance=new X5);return X5.instance};
X5.prototype.setClient=function(D){_.pY(Cz().setClient).bind(Cz())(D)};
_.Ndn=function(){_.U_();_.pY(Cz().JSC$12572_newScreen).bind(Cz())()};
X5.prototype.clear=function(){_.pY(Cz().clear).bind(Cz())()};
X5.prototype.reportShown=function(D,t,H){_.pY(Cz().reportShown).bind(Cz())(D,t,H)};
X5.prototype.reportHidden=function(D,t,H){return _.pY(Cz().reportHidden).bind(Cz())(D,t,H)};
var XDu=function(D,t){return _.pY(Cz().JSC$12572_getTrackingParams).bind(Cz())(t)},F6X=function(D,t){return _.pY(Cz().JSC$12572_getNearestParentVe).bind(Cz())(t)};var fi,kg4;fi=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};
_.Pc=function(){fi.instance||(fi.instance=new fi);return fi.instance};
fi.prototype.setClient=function(D){this.client=D};
kg4=function(D,t,H){H=H===void 0?{}:H;_.pY(function(){var e,V,b,a=((e=_.O(t==null?void 0:t.commandMetadata,_.i1))==null?void 0:e.rootVe)||((V=_.O(t==null?void 0:t.commandMetadata,Vnw))==null?void 0:(b=V.screenVisualElement)==null?void 0:b.uiType);if(a){e=_.O(t==null?void 0:t.commandMetadata,Qj9);if(e==null?0:e.parentTrackingParams){var w=_.Sa(e.parentTrackingParams);if(e.parentCsn)var h=e.parentCsn}else H.clickedVisualElement?w=H.clickedVisualElement:t.clickTrackingParams&&(w=_.Sa(t.clickTrackingParams));
a:{e=_.O(t,_.Hh);V=_.O(t,WyA);if(e){if(V=tn6(e,"VIDEO")){e={token:V,videoId:e.videoId};break a}}else if(V&&(e=tn6(V,"PLAYLIST"))){e={token:e,playlistId:V.playlistId};break a}e=void 0}H=Object.assign({},{cttAuthInfo:e,parentCsn:h},H);if(_.r("expectation_logging")){var K;H.loggingExpectations=((K=_.O(t==null?void 0:t.commandMetadata,Vnw))==null?void 0:K.loggingExpectations)||void 0}_.Li(D,a,w,H)}else _.Yw(new _.nZ("Error: Trying to create a new screen without a rootVeType",t))})()};
_.Li=function(D,t,H,e){e=e===void 0?{}:e;_.pY(function(){Z0m.includes(t)||(_.Yw(new _.nZ("createClientScreen() called with a non-page VE",t)),t=83769);e.isHistoryNavigation||(D.forwardHistoryStack=[],D.backHistoryStack.push({rootVe:t,key:e.key||""}));D.graftQueue=[];D.stateChangedQueue=[];e.dataPromises?TdV(D,t,H,e):c9n(D,t,H,e)})()};
_.jg6=function(D,t,H){H=H===void 0?0:H;_.pY(function(){t.then(function(e){D.pendingScreenCreation.has(H)&&D.pendingScreenFn&&D.pendingScreenFn();var V=_.v3(H),b=_.lo(H);if(V&&b){var a={automatedLogEventSource:3},w;(e==null?0:(w=e.response)==null?0:w.trackingParams)&&Wh(D.client,V,b,_.Sa(e.response.trackingParams),!1,a);var h;(e==null?0:(h=e.playerResponse)==null?0:h.trackingParams)&&Wh(D.client,V,b,_.Sa(e.playerResponse.trackingParams),!1,a)}})})()};
fi.prototype.graftServerVe=function(D,t,H){var e=this;return _.pY(function(){var V=_.Sa(D);_.A1(e,V,t,H);return V})()};
_.ap8=function(D,t,H,e){return _.r("enable_client_ve_spec")&&t.clientVeSpec?(t=_.Nx(t.clientVeSpec.uiType,void 0,t.clientVeSpec.elementIndex,t.clientVeSpec.clientYoutubeData,void 0,t),_.A1(D,t,H,e)?t:null):t.trackingParams?D.graftServerVe(t.trackingParams,H,e):null};
_.oQ=function(D,t,H,e){return _.pY(function(){if(!t.veType)return _.Jp(new _.nZ("Error: Trying to graft a client VE without a veType.")),null;if(t.visibilityTypes){var V=t.visibilityTypes.reduce(function(b,a){return b|a});
V={visibility:{types:String(V)}}}V=_.Nx(t.veType,t.visualElement,t.elementIndex,t.clientYouTubeData,void 0,V);return _.A1(D,V,H,e)?V:null})()};
_.A1=function(D,t,H,e){e=e===void 0?0:e;return _.pY(function(){if(D.pendingScreenCreation.has(e))return D.graftQueue.push([t,H]),!0;var V=_.v3(e),b=H||_.lo(e);if(V&&b){if(_.r("combine_ve_grafts")){var a=D.cachedVisualElements.get(b.toString());a?a.push(t):(D.cachedRootVisualElements.set(b.toString(),b),D.cachedVisualElements.set(b.toString(),[t]));D.attachTimeout||(D.attachTimeout=_.C7(_.Jy,function(){$ia(D,V)},1200))}else Wh(D.client,V,b,t);
return!0}return!1})()};
_.g3=function(D,t,H){H=H===void 0?0:H;var e=D.recurringGrafts.get(H)||new Map;if(_.r("smarter_ve_dedupping"))for(var V=Array.from(e.keys()),b=0;b<V.length;b++){var a=void 0,w=void 0;var h=t;var K=V[b];K.isClientVe()&&h.isClientVe()?(a=h.getAsJson(),w=K.getAsJson(),h=a.veType!==w.veType||a.elementIndex!==w.elementIndex||a.dataElement!==w.dataElement||h.getLoggingDirectives()!==K.getLoggingDirectives()?!1:!0):h=K.veData.trackingParams!==void 0&&h.veData.trackingParams!==void 0?((w=h.veData)==null?void 0:
w.trackingParams)===((a=K.veData)==null?void 0:a.trackingParams):!1;if(h)return}else if(e.has(t))return;e.set(t,void 0);D.recurringGrafts.set(H,e);_.v3(H)==="UNDEFINED_CSN"||D.pendingScreenCreation.has(H)||_.A1(D,t,void 0,H)};
_.J1=function(D,t,H,e){e=_.v3(e===void 0?0:e);if(!e)return!1;VzD(D.client,e,t,H);return!0};
_.YS=function(D,t,H,e){if(!t)return!1;e=_.v3(e===void 0?0:e);if(!e)return!1;VzD(D.client,e,_.Sa(t),H);return!0};
_.IH=function(D,t){var H=t.getScreenLayer&&t.getScreenLayer();if(t.visualElement)return _.J1(D,t.visualElement,void 0,H);t=XDu(_.U_(),t);return _.YS(D,t,void 0,H)};
fi.prototype.clickCommand=function(D,t,H){return _.YS(this,D.clickTrackingParams,t,H===void 0?0:H)};
fi.prototype.stateChanged=function(D,t,H){this.visualElementStateChanged(_.Sa(D),t,H===void 0?0:H)};
fi.prototype.visualElementStateChanged=function(D,t,H){H=H===void 0?0:H;H===0&&this.pendingScreenCreation.has(H)?this.stateChangedQueue.push([D,t]):this.logStateChanged(D,t,H)};
fi.prototype.logStateChanged=function(D,t,H){H=H===void 0?0:H;var e=_.v3(H);D=D||_.lo(H);return e&&D?(bSD(this.client,e,D,t),!0):!1};
var TdV=function(D,t,H,e){e=e===void 0?{}:e;D.pendingScreenCreation.add(e.layer||0);D.pendingScreenFn=function(){c9n(D,t,H,e);var a=_.lo(e.layer);if(a){for(var w=_.F(D.graftQueue),h=w.next();!h.done;h=w.next())h=h.value,_.A1(D,h[0],h[1]||a,e.layer);a=_.F(D.stateChangedQueue);for(w=a.next();!w.done;w=a.next())w=w.value,D.logStateChanged(w[0],w[1])}};
H||_.v3(e.layer)||D.pendingScreenFn();if(e.dataPromises)for(var V=_.F(e.dataPromises),b=V.next();!b.done;b=V.next())_.jg6(D,b.value,e.layer);else _.gT(Error("Bf"))},c9n=function(D,t,H,e){e=e===void 0?{}:e;
var V=void 0;e.layer||(e.layer=0);V=e.parentLayer!==void 0?e.parentLayer:e.layer;var b=_.v3(V);V=_.lo(V);var a=H||V,w;a&&(e.parentCsn!==void 0?w={clientScreenNonce:e.parentCsn,visualElement:a}:b&&b!=="UNDEFINED_CSN"&&(w={clientScreenNonce:b,visualElement:a}));var h,K=_.YC("EVENT_ID");b==="UNDEFINED_CSN"&&K&&(h={servletData:{serializedServletEventId:K}});_.r("combine_ve_grafts")&&b&&$ia(D,b);_.r("no_client_ve_attach_unless_shown")&&a&&b&&y7T(a,b);try{var N=_.Wjk(D.client,t,w,e.csnToClone,e.cttAuthInfo,
h,e.implicitGestureType,void 0,e.loggingExpectations)}catch(c){_.lm(c,{rootVeType:t,rootVe:V,parentVisualElement:H,currentCsn:b,parentEl:w,csnToClone:e.csnToClone});_.gT(c);return}_.dZ(N,t,e.layer,e.cttAuthInfo);b&&b!=="UNDEFINED_CSN"&&V&&!VY8(b)&&HS$(D.client,b,V,!0);D.backHistoryStack[D.backHistoryStack.length-1]&&!D.backHistoryStack[D.backHistoryStack.length-1].csn&&(D.backHistoryStack[D.backHistoryStack.length-1].csn=N||"");_.JE({clientScreenNonce:N});_.Ndn();var k=_.lo(e.layer);b&&b!=="UNDEFINED_CSN"&&
k&&(_.r("web_mark_root_visible")||_.r("music_web_mark_root_visible"))&&_.Bh(N,k);D.pendingScreenCreation.delete(e.layer||0);D.pendingScreenFn=void 0;var T;(T=D.recurringGrafts.get(e.layer))==null||T.forEach(function(c,U){c?_.A1(D,U,c,e.layer):k&&_.A1(D,U,k,e.layer)});
i04(D)},i04=function(D){for(var t=0;t<D.afterNewScreenOneOffJobs.length;t++){var H=D.afterNewScreenOneOffJobs[t];
try{H()}catch(e){_.gT(e)}}for(t=D.afterNewScreenOneOffJobs.length=0;t<D.afterNewScreenRecurringJobs.length;t++){H=D.afterNewScreenRecurringJobs[t];try{H()}catch(e){_.gT(e)}}},$ia=function(D,t){if(t===void 0)for(var H=HUT(),e=0;e<H.length;e++)H[e]!==void 0&&$ia(D,H[e]);
else D.cachedVisualElements.forEach(function(V,b){(b=D.cachedRootVisualElements.get(b))&&Iu$(D.client,t,b,V)}),D.cachedVisualElements.clear(),D.cachedRootVisualElements.clear(),D.attachTimeout=void 0};var l2=function(D){D=D===void 0?{layer:0}:D;this.hasRun=!1;this.createScreenConfig=D;D={};this.nxc=(D.response=!1,D.playerResponse=!1,D)};
_.P(l2,oj);l2.prototype.validate=function(D){return!(!D.data||!D.data.response&&!D.data.playerResponse)};
l2.prototype.handle=function(D){var t=_.Pc(),H=this.createScreenConfig.layer;D.data.response&&D.data.response.trackingParams&&!this.nxc.response&&(t.graftServerVe(D.data.response.trackingParams,void 0,H),this.nxc.response=!0);D.data.playerResponse&&D.data.playerResponse.trackingParams&&!this.nxc.playerResponse&&(t.graftServerVe(D.data.playerResponse.trackingParams,void 0,H),this.nxc.playerResponse=!0)};var vK=function(){this.yS=_.z3();this.ea=[];this.sLI=0};
vK.prototype.processChunk=function(D){if(D){for(var t=_.F(this.ea),H=t.next();!H.done;H=t.next())H=H.value,H.validate(D)&&(H.handle(D),H.hasRun=!0);_.vh("np"+this.sLI);this.sLI++}};var bG={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},h_8={rootSpan:function(){return bG.stack[0]}};var O03=function(){var D=r9n;this.observers=[];this.value=D};
_.q=O03.prototype;_.q.subscribe=function(D){var t=this;if(D.idx!=null)throw Error("Df");D.idx=this.observers.length;this.observers.push(D);return function(){var H=t.observers[t.observers.length-1];t.observers[D.idx]=H;H.idx=D.idx;t.observers.pop()}};
_.q.update=function(D){this.value=D(this.value);this.notify()};
_.q.mutate=function(D){D(this.value);this.notify()};
_.q.set=function(D){this.value=D;this.notify()};
_.q.notify=function(){for(var D=_.F(this.observers),t=D.next();!t.done;t=D.next()){t=t.value;try{t(this.value)}catch(H){}}};var C7R,Uim,ns4;_.$P=function(D,t,H,e,V,b,a){a=a===void 0?[]:a;this.buildCommandPayload=D;this.navigate=t;this.handleServiceRequest=H;this.sendAction=e;this.JSC$12619_screenManager=V;this.commandResolverMap=b;this.autoLogResolverAllowlist=a;this.pendingCommands=new Set;this.isTracingEnabled=!1;Uim(this)};
C7R=function(D,t,H){var e=K6X,V=NlX,b=_.Pc(),a=os3;H=H===void 0?[]:H;_.$P.instance=new _.$P(D,t,e,V,b,a,H)};
Uim=function(D){if(!D.isTracingEnabled&&ZSV("command")){var t=D.resolveCommand;D.resolveCommand=function(H,e){a:{for(V in H)if(Object.prototype.hasOwnProperty.call(H,V)){var V={commandType:V};break a}V={}}return GzX("command",V,t.bind(this,H,e))};
D.isTracingEnabled=!0}};
ns4=function(D,t,H){if(!D.commandResolverMap)return!1;var e=TrD(t,D.commandResolverMap);return e?((D.autoLogResolverAllowlist.some(function(V){return!!_.O(t,V)})||(H==null?0:H.forceClickLogging))&&P4n(D,t,H),e instanceof Promise?e.then(function(V){V.resolve(t,H)}):e.resolve(t,H),!0):!1};
_.$P.prototype.resolveCommand=function(D,t){var H=this,e=C4m(D);if(ns4(this,D,t))return!0;if(e)return mif(this,D,t);if(!this.buildCommandPayload)return Kv8(D,"Unhandled command by buildCommandPayload"),!1;var V=this.buildCommandPayload(D,t);if(t==null?0:t.commandController)V.commandController=t.commandController;if(V.type===0){if(!this.navigate)return NrX(D,"navigate"),!1;if(!M_m(V.command))return Kv8(D,"Page requests need to specify a url"),!1;_.r("logging_avoid_blocking_during_navigation")&&_.$xX().transition("application_navigating");
D=this.navigate(V)||[];S5v(D).then(function(){H.pendingCommands.delete(V.command)});
return!0}if(V.type===1){if(!this.handleServiceRequest)return NrX(D,"handleServiceRequest"),!1;(t==null?0:t.forceClickLogging)&&P4n(this,V.command,t);D=this.handleServiceRequest(V);S5v(D).then(function(){H.pendingCommands.delete(V.command)});
return!0}if(V.type===2){if(!this.sendAction)return NrX(D,"sendAction"),!1;P4n(this,V.command,t);this.sendAction(V);return!0}return!1};
var P4n=function(D,t,H){if((H==null||!H.disableClickTracking)&&D.JSC$12619_screenManager)if(t.clickTrackingParams&&_.r("log_click_with_layer_from_element_in_command_handler")){var e;H=H==null?void 0:(e=H.form)==null?void 0:e.element;D.JSC$12619_screenManager.clickCommand(t,null,H&&H.getScreenLayer&&H.getScreenLayer())}else t.clickTrackingParams?D.JSC$12619_screenManager.clickCommand(t):!_.r("disable_clicked_visual_element_in_command_handler")&&(H==null?0:H.clickedVisualElement)&&_.J1(D.JSC$12619_screenManager,
H.clickedVisualElement)},C4m=function(D){var t=!!_.O(D,_.ch),H;
D=((H=_.O(D,_.$0))==null?void 0:H.signal)==="CLIENT_SIGNAL";return t||D},mif=function(D,t,H){var e=_.O(t,_.ch);
if(e)var V=(e==null?void 0:e.commands)||[];else{var b;if(((b=_.O(t,_.$0))==null?void 0:b.signal)==="CLIENT_SIGNAL"){var a;V=((a=_.O(t,_.$0))==null?void 0:a.actions)||[]}}if(V){t=_.F(V);for(V=t.next();!V.done;V=t.next()){V=V.value;try{D.resolveCommand(V,H)}catch(w){w instanceof Error&&_.gT(w)}}return!0}Kv8(t,"Could not handle the meta command");return!1},M_m=function(D){var t;
return!((t=_.O(D==null?void 0:D.commandMetadata,_.i1))==null||!t.url)};var pi=function(){oj.apply(this,arguments)};
_.P(pi,oj);pi.prototype.validate=function(D){var t,H;return!this.hasRun&&!!((t=D.data.response)==null?0:(H=t.onResponseReceivedEndpoints)==null?0:H.length)};
pi.prototype.handle=function(D){var t=_.$P.instance;D=_.F(D.data.response.onResponseReceivedEndpoints);for(var H=D.next();!H.done;H=D.next())t.resolveCommand(H.value)};var Sv9,XVf,f66;
Sv9=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=_.Tf();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.d3=function(){XVf||(XVf=new Sv9);return XVf};
f66=function(){var D=_.d3();D.miniplayerButtonActivation=!1;D.userActivation=!1;D.playlistWatchPageActivation=!1;D.productDetailsPageActivation=!1;D.miniAppPageActivation=!1;D.playablesDestPageActivation=!1;D.lockupActivation=!1;D.showMiniplayerCommandActivation=!1;D.playlistSuggestionsShelfActivation=!1;D.mediaSessionPipActivation=!1;D.watchPipActivation=!1;D.watchWhileActivation=!1;D.shortsPipActivation=!1};
_.L8v=function(){var D=_.d3(),t=D.mediaSessionPipActivation,H=D.watchPipActivation,e=D.watchWhileActivation,V=D.playlistWatchPageActivation,b=D.lockupActivation,a=D.showMiniplayerCommandActivation,w=D.navigatingAwayFromWatchDeletedVideo,h=D.shortsPipActivation,K=D.playlistSuggestionsShelfActivation,N=D.productDetailsPageActivation,k=D.miniAppPageActivation,T=D.playablesDestPageActivation;return!D.miniplayerButtonActivation&&!V&&!K&&!N&&!k&&!T&&!b&&!a&&!t&&!H&&!e&&!h||w};var oyX;_.xS=_.FK("FEwhat_to_watch","/",3854);_.P3V=_.FK("FEdownloads","/feed/downloads",42352);oyX=_.FK("FEmusic_offline","browse/FEmusic_offline",42352);var Vk=function(D,t){t=t===void 0?[]:t;var H=H===void 0?[]:H;t=g1V.apply(null,[J2D.apply(null,_.A6(t))].concat(_.A6(H)));this.store=plu(D,void 0,t)};
Vk.prototype.getState=function(){return this.store.getState()};
Vk.prototype.dispatch=function(D){return this.store.dispatch(D)};
Vk.prototype.subscribe=function(D){return this.store.subscribe(D)};
Vk.prototype.replaceReducer=function(D){return this.store.replaceReducer(D)};
Vk.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Rj=function(D,t,H){var e=t(D.getState());return D.subscribe(function(){var V=t(D.getState());if(V!==e){var b=e;e=V;H(V,b)}})};var wKA;_.nf=function(D,t,H){return _.hV({type:"REPLACE_ENTITY",payload:{entityPayload:H,entityType:D,key:t}})};
wKA=function(D){return _.hV({type:"REPLACE_ENTITIES",payload:D})};
_.LP=function(D,t,H,e){return _.hV({type:"UPDATE_ENTITY",payload:{entityPayload:H,entityType:D,key:t,mergeOption:e}})};var MzT=function(D){var t=this;D=D===void 0?[]:D;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;D.forEach(function(H){t.append(H)})};
_.q=MzT.prototype;_.q.getLength=function(){return this.totalLength};
_.q.append=function(D){var t=this.arrays.length===0?!1:(t=this.arrays[this.arrays.length-1])&&t.buffer===D.buffer&&t.byteOffset+t.length===D.byteOffset;t?(t=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(t.buffer,t.byteOffset,t.length+D.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(D);this.totalLength+=D.length};
_.q.split=function(D){for(var t=new MzT,H=new MzT,e=_.F(this.arrays),V=e.next();!V.done;V=e.next())V=V.value,D>=V.length?(t.append(V),D-=V.length):D?(t.append(new Uint8Array(V.buffer,V.byteOffset,D)),H.append(new Uint8Array(V.buffer,V.byteOffset+D,V.length-D)),D=0):H.append(V);return{headView:t,tailView:H}};
_.q.isFocused=function(D){return D>=this.arrayPos&&D<this.arrayPos+this.arrays[this.arrayIdx].length};
_.q.focus=function(D){if(!this.isFocused(D))for(D<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=D&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var A9n=function(D,t){D.focus(t);return D.arrays[D.arrayIdx][t-D.arrayPos]};(function(){var D=function(e){return new Uint8Array(e)},t=function(e){for(var V=new Uint8Array(e.length),b=0;b<e.length;b++)V[b]=e[b];
return V},H=new Uint8Array([1]);
return H.length===1&&H[0]===1?D:t})();
var UaX=Array(1024),OSD=window.TextDecoder?new TextDecoder:void 0,PqX=window.TextEncoder?new TextEncoder:void 0;var maV=function(D){this.arrayView=D;this.pos=0;this.pendingTagAndType=-1},Gu=function(D){var t=A9n(D.arrayView,D.pos);
++D.pos;if(t<128)return t;for(var H=t&127,e=1;t>=128;)t=A9n(D.arrayView,D.pos),++D.pos,e*=128,H+=(t&127)*e;return H},SnA=function(D,t){var H=D.pendingTagAndType;
for(D.pendingTagAndType=-1;D.pos+1<=D.arrayView.totalLength;){H<0&&(H=Gu(D));var e=H>>3,V=H&7;if(e===t)return!0;if(e>t){D.pendingTagAndType=H;break}H=-1;switch(V){case 0:Gu(D);break;case 1:D.pos+=8;break;case 2:e=Gu(D);D.pos+=e;break;case 5:D.pos+=4}}return!1};var fLR=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=CqX(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},Tu=function(D,t){t=D.pos+t;
if(!(D.buf.length>=t)){for(var H=D.buf.length*2;H<t;)H*=2;D.buf=CqX(H,D.wasm,D.buf.subarray(0,D.pos));D.view=new DataView(D.buf.buffer,D.buf.byteOffset,D.buf.byteLength)}},ke=function(D,t){if(t>268435455){Tu(D,4);
for(var H=t&1073741823,e=0;e<4;e++)D.view.setUint8(D.pos,H&127|128),H>>=7,D.pos+=1;t=Math.floor(t/268435456)}for(Tu(D,4);t>127;)D.view.setUint8(D.pos,t&127|128),t>>=7,D.pos+=1;D.view.setUint8(D.pos,t);D.pos+=1};for(var LvR={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},XuA={},gsn=_.F(Object.entries(LvR)),J94=gsn.next();!J94.done;J94=gsn.next()){var YvQ=_.F(J94.value),l6B=YvQ.next().value,vsV=YvQ.next().value,pVn=l6B,dif=vsV;dif&&(XuA[dif]=pVn)};var gqk=function(D,t){D=D===void 0?{}:D;switch(t.type){case "ENTITY_LOADED":return t.payload.reduce(function(e,V){var b,a=(b=V.options)==null?void 0:b.persistenceOption;if(a&&a!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&a!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return e;if(!V.entityKey)return _.gT(Error("Ff")),e;if(V.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!V.payload)return V=new _.nZ("REPLACE entity mutation is missing a payload",{entityKey:V.entityKey}),_.gT(V),e;var w=(0,_.J$.getAnyKey)(V.payload);
return YnR(e,w,V.entityKey,V.payload[w])}if(V.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{V=V.entityKey;try{var h=_.NQ(V).entityType;w=YnR(e,h,V);break a}catch(k){if(k instanceof Error){V=new _.nZ("Failed to deserialize entity key",{entityKey:V,originalMessage:k.message});_.gT(V);w=e;break a}throw k;}w=void 0}return w}if(V.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!V.payload)return V=new _.nZ("UPDATE entity mutation is missing a payload",{entityKey:V.entityKey}),_.gT(V),e;w=(0,_.J$.getAnyKey)(V.payload);
var K,N;return lLX(e,w,V.entityKey,V.payload[w],(K=V.fieldMask)==null?void 0:(N=K.mergeOptions)==null?void 0:N.repeatedFieldsMergeOption)}return e},D);
case "REPLACE_ENTITY":var H=t.payload;return YnR(D,H.entityType,H.key,H.entityPayload);case "REPLACE_ENTITIES":return Object.keys(t.payload).reduce(function(e,V){var b=t.payload[V];return Object.keys(b).reduce(function(a,w){return YnR(a,V,w,b[w])},e)},D);
case "UPDATE_ENTITY":return H=t.payload,lLX(D,H.entityType,H.key,H.entityPayload,H.mergeOption);default:return D}};var vqK;var xin=!1,u2,WK,Ij,QQ,yQ,Rif=function(D){_.mg.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!xin){var t,H=new Uint8Array(256),e=new Uint8Array(256);var V=1;for(t=0;t<256;t++)H[V]=t,e[t]=V,V^=V<<1^(V>>7&&283);u2=new Uint8Array(256);WK=$e(256);Ij=$e(256);QQ=$e(256);yQ=$e(256);for(var b=0;b<256;b++){V=b?e[255^H[b]]:0;V^=V<<1^V<<2^V<<3^V<<4;V=V&255^V>>>8^99;u2[b]=V;t=V<<1^(V>>7&&283);var a=t^V;WK[b]=t<<24|V<<16|V<<8|a;Ij[b]=a<<24|WK[b]>>>8;QQ[b]=V<<24|Ij[b]>>>
8;yQ[b]=V<<24|QQ[b]>>>8}xin=!0}V=$e(44);for(H=0;H<4;H++)V[H]=D[4*H]<<24|D[4*H+1]<<16|D[4*H+2]<<8|D[4*H+3];for(e=1;H<44;H++)D=V[H-1],H%4||(D=(u2[D>>16&255]^e)<<24|u2[D>>8&255]<<16|u2[D&255]<<8|u2[D>>>24],e=e<<1^(e>>7&&283)),V[H]=V[H-4]^D;this.key=V};
_.P(Rif,_.mg);
Rif.prototype.encrypt=function(D){var t=D.length;D=new Uint8Array(D.buffer.slice(D.byteOffset,D.byteOffset+t));for(var H=this.cipherBlock,e=0;e<t&&this.blockOffset<16;)D[e++]^=H[this.blockOffset++];for(var V=t-(t-e)%16;e<V;)uo9(this),D[e++]^=H[0],D[e++]^=H[1],D[e++]^=H[2],D[e++]^=H[3],D[e++]^=H[4],D[e++]^=H[5],D[e++]^=H[6],D[e++]^=H[7],D[e++]^=H[8],D[e++]^=H[9],D[e++]^=H[10],D[e++]^=H[11],D[e++]^=H[12],D[e++]^=H[13],D[e++]^=H[14],D[e++]^=H[15];if(e<t)for(uo9(this),this.blockOffset=0;e<t;)D[e++]^=
H[this.blockOffset++];return D};
var uo9=function(D){for(var t=D.key,H=D.counter[0]^t[0],e=D.counter[1]^t[1],V=D.counter[2]^t[2],b=D.counter[3]^t[3],a=3;a>=0&&!(D.counter[a]=-~D.counter[a]);a--);for(var w,h,K=4;K<40;)a=WK[H>>>24]^Ij[e>>16&255]^QQ[V>>8&255]^yQ[b&255]^t[K++],w=WK[e>>>24]^Ij[V>>16&255]^QQ[b>>8&255]^yQ[H&255]^t[K++],h=WK[V>>>24]^Ij[b>>16&255]^QQ[H>>8&255]^yQ[e&255]^t[K++],b=WK[b>>>24]^Ij[H>>16&255]^QQ[e>>8&255]^yQ[V&255]^t[K++],H=a,e=w,V=h;D=D.cipherBlock;a=t[40];D[0]=u2[H>>>24]^a>>>24;D[1]=u2[e>>16&255]^a>>16&255;D[2]=
u2[V>>8&255]^a>>8&255;D[3]=u2[b&255]^a&255;a=t[41];D[4]=u2[e>>>24]^a>>>24;D[5]=u2[V>>16&255]^a>>16&255;D[6]=u2[b>>8&255]^a>>8&255;D[7]=u2[H&255]^a&255;a=t[42];D[8]=u2[V>>>24]^a>>>24;D[9]=u2[b>>16&255]^a>>16&255;D[10]=u2[H>>8&255]^a>>8&255;D[11]=u2[e&255]^a&255;a=t[43];D[12]=u2[b>>>24]^a>>>24;D[13]=u2[H>>16&255]^a>>16&255;D[14]=u2[e>>8&255]^a>>8&255;D[15]=u2[V&255]^a&255};var W8o=!1;(function(){var D=function(e){return new Uint8Array(e)},t=function(e){for(var V=new Uint8Array(e.length),b=0;b<e.length;b++)V[b]=e[b];
return V},H=new Uint8Array([1]);
return H.length===1&&H[0]===1?D:t})();
var BK;var y9Q=function(D){a:{if(!W8o&&!eE){if(BK){var t=BK;break a}BK=(t=window.crypto)==null?void 0:t.subtle;var H,e,V;if(((H=BK)==null?0:H.importKey)&&((e=BK)==null?0:e.sign)&&((V=BK)==null?0:V.encrypt)){t=BK;break a}BK=void 0}t=void 0}t&&(this.nativeEncryptor=new I69(D,t));this.encryptorPolyfill=new Qgw(D)};
y9Q.prototype.encrypt=function(D,t){var H=this,e;return _.Z(function(V){switch(V.nextAddress){case 1:if(!H.nativeEncryptor){V.jumpTo(2);break}_.$p(V,3);return V.yield(H.nativeEncryptor.encrypt(D,t),5);case 5:return V.return(V.yieldResult);case 3:e=_.Pv(V),_.Yw(e),W8o=!0,H.nativeEncryptor=void 0;case 2:return V.return(H.encryptorPolyfill.encrypt(D,t))}})};
y9Q.prototype.decrypt=function(D,t){return this.encrypt(D,t)};
var I69=function(D,t){this.JSC$12692_aesKey=D;this.subtleCrypto=t};
I69.prototype.encrypt=function(D,t){var H=this,e;return _.Z(function(V){if(V.nextAddress==1)return _.$p(V,2),V.yield(BdQ(H,D,t),4);if(V.nextAddress!=2)return V.return(V.yieldResult);e=_.Pv(V);_.Yw(e);W8o=!0;throw e;})};
var BdQ=function(D,t,H){var e,V;return _.Z(function(b){switch(b.nextAddress){case 1:if(D.cryptoKey){b.jumpTo(2);break}return b.yield(D.subtleCrypto.importKey("raw",D.JSC$12692_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:D.cryptoKey=b.yieldResult;case 2:return e={name:"AES-CTR",counter:H,length:128},b.yield(D.subtleCrypto.encrypt(e,D.cryptoKey,t),4);case 4:return V=b.yieldResult,b.return(new Uint8Array(V))}})},Qgw=function(D){this.JSC$12695_aesKey=D};
Qgw.prototype.encrypt=function(D,t){this.encryptor||(this.encryptor=new Rif(this.JSC$12695_aesKey));for(var H=this.encryptor,e=0;e<4;e++)H.counter[e]=t[e*4]<<24|t[e*4+1]<<16|t[e*4+2]<<8|t[e*4+3];H.blockOffset=16;return this.encryptor.encrypt(D)};
Qgw.prototype.decrypt=function(D,t){return this.encrypt(D,t)};var ziB={},xaT=FU("yt-idb-pref-storage",{objectStores:(ziB.prefs={addedAtVersion:1},ziB),shared:!1,upgrade:function(D,t){t(1)&&ug(RP(D,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.z6=function(D){this.token=D};
_.z6.getInstance=function(){return _.Z(function(D){return D.return(new Promise(function(t){_.qO().then(function(H){H?(_.z6.instance||(_.z6.instance=new _.z6(H)),t(_.z6.instance)):t(void 0)})}))})};
_.z6.prototype.get=function(D){var t=this,H,e,V;return _.Z(function(b){if(b.nextAddress==1)return b.yield(R_R(t.token),2);if(b.nextAddress!=3)return H=b.yieldResult,b.yield(H.get("prefs",D),3);e=b.yieldResult;if(!e)return b.return();V=(0,_.aP)();return e.expirationTimestampMs<=V?b.return():b.return(e.value)})};
_.z6.prototype.set=function(D,t,H){H=H===void 0?31536E3:H;var e=this,V,b,a;return _.Z(function(w){if(w.nextAddress==1)return V=(0,_.aP)(),b={key:D,value:t,expirationTimestampMs:V+H*1E3},w.yield(R_R(e.token),2);a=w.yieldResult;return w.yield(a.put("prefs",b),0)})};
_.z6.prototype.remove=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(R_R(t.token),2);H=e.yieldResult;return e.yield(H.delete("prefs",D),0)})};var Dw={},D5f=(Dw.INVALID_ENCODER_VERSION="Invalid encoder version",Dw.KEY_CREATION_FAILED="Failed to create encoder key",Dw.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Dw.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Dw.WRONG_DATA_TYPE="Encoder cannot process the data type",Dw),iG=function(D,t){t=t===void 0?{}:t;_.nZ.call(this,D5f[D],Object.assign({},{name:"PESEncoderError",type:D},t));this.type=D;this.level="WARNING";Object.setPrototypeOf(this,iG.prototype)};
_.P(iG,_.nZ);var tU=function(){};
tU.prototype.encode=function(D,t){try{return this.encodeImpl(D,t)}catch(H){QWR(H,Wv6)}};
tU.prototype.decode=function(D,t){try{return this.decodeImpl(D,t)}catch(H){QWR(H,ILu)}};
var t3B=function(D,t,H){var e;return _.Z(function(V){if(V.nextAddress==1)return _.$p(V,2),V.yield(D.decodeAsyncImpl(t,H),4);if(V.nextAddress!=2)return V.return(V.yieldResult);e=_.Pv(V);QWR(e,ILu);_.n2(V)})};
tU.prototype.decodeAsyncImpl=function(D,t){return Promise.resolve(this.decodeImpl(D,t))};var HM=function(D,t){this.aesEncryptor=D;this.aesEncryptorAsync=t};
_.P(HM,tU);HM.prototype.encodeImpl=function(D,t){t=yzV(t);D=(new TextEncoder).encode(JSON.stringify(D));return this.aesEncryptor.encrypt(D,t)};
HM.prototype.decodeImpl=function(D,t){if(!(D instanceof Uint8Array))throw u_K(1);var H=new TextDecoder;t=yzV(t);D=this.aesEncryptor.decrypt(D,t);return JSON.parse(H.decode(D))};
HM.prototype.decodeAsyncImpl=function(D,t){var H=this,e,V,b;return _.Z(function(a){if(a.nextAddress==1){if(!(D instanceof Uint8Array))throw u_K(1);e=new TextDecoder;V=yzV(t);return a.yield(H.aesEncryptorAsync.decrypt(D,V),2)}b=a.yieldResult;return a.return(JSON.parse(e.decode(b)))})};var BrX={accountLinkStatusEntity:WLo,booleanEntity:OvV,buttonEntity:GGa,captionTrack:yz4,channelHandle:z0w,chipEntity:pPV,commerceAcquisitionClientPayloadEntity:gTB,commerceCartListEntity:Jf4,contextNoteFeedEntityPayload:hfB,contextNoteUserRatingEntityPayload:Gaf,continuationTokenEntity:Mn6,downloadQualityPickerEntity:j0a,downloadsPageRefreshTokenEntity:iLa,downloadsPageViewConfigurationEntity:luf,downloadStatusEntity:$4w,dismissState:dK4,sfvAudioItemCurrentlyPlayingEntity:C2f,emojiFountainDataEntity:Zco,
emojiCustomizationSetEntity:wwn,fakeChannel:P5a,fakePlaylist:nIf,fakePlaylistEntryCollection:C5o,fakeVideo:Mgn,fakeVideoDescription:Syo,featuredProductsEntity:Fva,flowStateEntity:dMQ,iconBadgeEntity:Ydm,interstitialInteractionStateEntity:ZUo,likeButtonAnimationEntity:vkm,liveChatPollStateEntity:TI6,dataFreshnessEntity:aMf,liveViewerLeaderboardChatEntryPointStateEntity:sjn,liveViewerLeaderboardPointsEntity:hPV,liveReactionsDataEntity:syo,logoEntity:aXB,macroMarkerEntity:pOw,mainDownloadsLibraryEntity:r76,
mainDownloadsListEntity:OLQ,mainPlaylistDownloadStateEntity:okv,mainPlaylistEntity:SAf,mainPlaylistVideoEntity:XO4,mainVideoDownloadStateEntity:P9f,mainVideoEntity:gkn,markersEngagementPanelSyncEntity:d46,markersVisibilityOverrideEntity:x4V,musicAlbumReleaseDetail:cza,musicAlbumReleaseDownloadMetadataEntity:Eq6,musicAlbumRelease:Trm,musicAlbumReleaseUserDetail:jWn,musicArtistDetail:iS3,musicArtist:$ao,musicArtistUserDetail:rzm,musicDownloadsLibraryEntity:Kva,musicLibraryEdit:OSm,musicLibraryStatusEntity:Ua6,
musicPlaylist:oqf,musicPlaylistDownloadMetadataEntity:Nr6,musicShare:nqn,musicTrackDetail:maf,musicTrackDownloadMetadataEntity:kz3,musicTrack:Cq6,musicTrackUserDetail:Mz3,offlineOrchestrationActionWrapperEntity:Br6,offlineVideoPolicy:z_Q,offlineVideoStreams:DBw,offlineabilityEntity:nko,orchestrationWebSamplingEntity:C9a,pageHeaderEntity:DD9,pdpStateEntity:lMf,pinnedProductEntity:aLn,playbackData:ttm,playerStateEntity:RT6,quantityIncrementerEntity:vT9,refresh:Him,saveToPlaylistListEntity:y16,selectedChipIndexEntityPayload:ugn,
settingEntity:TfB,stringEntity:UMm,suggestedFeedbackChipStateEntity:Wj9,transfer:ePw,trendingOfferEntity:wua,videoDownloadContextEntity:Vtw,videoOverviewAsyncDataEntity:sMv,videoPlaybackPositionEntity:NB6,votingEntity:VXv,ytMainChannelEntity:J7w,youchatPendingResponseEntity:IuB,ytMainDownloadedVideoEntity:m49,ytMainVideoEntity:YAf};var H3B,V3V,PH,qzX,Fe8,FRw,wzo,ara,qRo;H3B=function(D,t){this.JSC$12714_wrapped=D;this.JSC$12714_encoderRegistry=t;this.changedKeys={}};
V3V=function(D,t){return e9Q(D.JSC$12714_encoderRegistry,t.version).decode(t.data,t.key)};
_.b3n=function(D,t,H){return D.JSC$12714_wrapped.objectStore("EntityStore").get(t).then(function(e){if(e){if(H&&e.entityType!==H)throw Error("Gf");return V3V(D,e)}})};
PH=function(D,t,H){return H?(H=H.map(function(e){return _.b3n(D,e,t)}),RA.all(H)):D.JSC$12714_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(t)).then(function(e){return e.map(function(V){return V3V(D,V)})})};
_.biV=function(D,t,H){var e=AzD(t),V=e9Q(D.JSC$12714_encoderRegistry,1),b=Object.assign({},t);return D.JSC$12714_wrapped.objectStore("EntityStore").get(e).then(function(a){if(a){if(a.entityType!==H)throw Error("Gf");b.entityMetadata||(a=V3V(D,a),b.entityMetadata=a.entityMetadata)}}).then(function(){var a={key:e,
entityType:H,data:V.encode(b,e),version:1};return RA.all([D.JSC$12714_wrapped.objectStore("EntityStore").put(a),qRo(D,b,H)])}).then(function(){FRw(D,e,H);
return e})};
qzX=function(D,t){var H=_.NQ(t).entityType;return RA.all([D.JSC$12714_wrapped.objectStore("EntityStore").delete(t),ara(D,t)]).then(function(){FRw(D,t,H)})};
Fe8=function(D,t,H,e){var V=e9Q(D.JSC$12714_encoderRegistry,1);return _.b3n(D,t,e).then(function(b){if(b){b=rzD(b,H);var a={key:t,entityType:e,data:V.encode(b,t),version:1};return RA.all([D.JSC$12714_wrapped.objectStore("EntityStore").put(a),qRo(D,b,e)])}}).then(function(){FRw(D,t,e);
return t})};
FRw=function(D,t,H){var e=D.changedKeys[H];e||(e=new Set,D.changedKeys[H]=e);e.add(t)};
wzo=function(D,t,H){var e=AzD(t);H=z_K(H);if(!H)return RA.resolve([]);H=new H(t);D=D.JSC$12714_wrapped.objectStore("EntityAssociationStore");t=[];H=_.F(H.getAssociations());for(var V=H.next();!V.done;V=H.next())t.push(D.put({parentEntityKey:e,childEntityKey:V.value}));return RA.all(t).then(function(b){return b.map(function(a){return a[1]})})};
ara=function(D,t){return D.JSC$12714_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(t))};
qRo=function(D,t,H){var e=AzD(t);return ara(D,e).then(function(){return wzo(D,t,H)})};var Z33=function(){};
_.P(Z33,tU);Z33.prototype.encodeImpl=function(D){return D};
Z33.prototype.decodeImpl=function(D){if(D instanceof Uint8Array)throw u_K(0);return D};var HiD=function(){this.cacheMap={};this.cacheMap[0]=new Z33;if(!_.r("aes_pes_encoder_killswitch")){var D=this.cacheMap;try{var t=_.oA();var H=yzV(t);var e=new HM(new Qgw(H),new y9Q(H))}catch(V){throw D=V instanceof Error?new iG("KEY_CREATION_FAILED",{originalMessage:V.message}):new iG("KEY_CREATION_FAILED"),_.gT(D),D;}D[1]=e}},e9Q=function(D,t){t=t===void 0?0:t;
D=D.cacheMap[t];if(!D)throw t=new iG("INVALID_ENCODER_VERSION",{encoderVersion:t}),_.gT(t),t;return D};var OO=function(D,t){_.mg.call(this);this.token=D;this.JSC$12728_encoderRegistry=t;this.observers=[];D=new _.VA.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.oA());D.onmessage=this.handleMessage.bind(this);this.channel=D};
_.P(OO,_.mg);_.of=function(D,t,H){var e,V,b,a;return _.Z(function(w){if(w.nextAddress==1)return w.yield(daK(D.token),2);if(w.nextAddress!=3)return e=w.yieldResult,w.yield(_.D4(e,["EntityStore","EntityAssociationStore"],t,function(h){V=new H3B(h,D.JSC$12728_encoderRegistry);return H(V)}),3);
b=w.yieldResult;V&&(a=V.changedKeys,Object.keys(a).length>0&&(D.channel.postMessage(a),sio(D,a)));return w.return(b)})};
OO.prototype.observe=function(D){var t=this;this.observers.push(D);return function(){var H=t.observers.indexOf(D);H>=0&&t.observers.splice(H,1)}};
var JS6=function(D){var t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(_.of(D,{mode:"readonly",enableRetries:!0},function(e){return e.JSC$12714_wrapped.objectStore("EntityStore").getAll()}),2);
t=H.yieldResult;return H.return(Promise.all(t.filter(function(e){return!!e}).map(function(e){var V,b;
return _.Z(function(a){if(a.nextAddress==1){V=e.key;b=e.entityType;var w=a.yield;var h=t3B(e9Q(D.JSC$12728_encoderRegistry,e.version),e.data,e.key);return w.call(a,h,2)}return a.return({key:V,entityType:b,data:a.yieldResult})})})))})};
OO.prototype.handleMessage=function(D){sio(this,D.data)};
var sio=function(D,t){D=_.F(D.observers);for(var H=D.next();!H.done;H=D.next())H=H.value,H(t)};
OO.prototype.disposeInternal=function(){this.channel.close()};
var DBu;var ei,G_o,oSX;ei={};_.h9v=(ei.mainVideoEntity="mainVideoEntityActionMetadata",ei.mainPlaylistEntity="mainPlaylistEntityActionMetadata",ei.musicTrack="musicTrackEntityActionMetadata",ei.musicPlaylist="musicPlaylistEntityActionMetadata",ei);G_o=new _.kI("DOWNLOADS_ENTITY_TYPE_MAP");_.LC=_.cH("","downloadsPageViewConfigurationEntity");oSX=_.cH("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.qKD=_.cH("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.cH("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.cH("SMART_DOWNLOADS_ENABLED","settingEntity");_.cH("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var hPA=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var c1$=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.Er3={isLeaderTab:!0};var WeV={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var VN=window,If=VN.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",urA=VN.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||Q6,zWV=VN.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||cm,aP3=VN.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||FMm,bb9=VN.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||cja,Lq$=VN.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||UTm;var RW6;D2({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 hI8=DKA(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(D){return D}}}),E_V=DKA(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(D){return D}}}),V8D=new Map;var E7$=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],wPV;var KRB=function(D){return _.hV({type:"SET_EPHEMERAL_ACTION",payload:D})};_.NAv={ephemeralAction:null};var k_3=function(D){return _.hV({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:D})};_.TAf={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var NBX={sharedUi:function(D,t){D=D===void 0?_.TAf:D;switch(t.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},D,{animatedThumbnailEnabled:t.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},D,{inlinePreviewEnabled:t.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},D,{currentPageType:t.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},D,{currentPageSubType:t.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
D,{persistentPanelVisible:t.payload});default:return D}},
a11y:rZ({ephemeralAction:function(D,t){D=D===void 0?_.NAv.ephemeralAction:D;switch(t.type){case "SET_EPHEMERAL_ACTION":return t.payload;default:return D}}}),
entities:Jz$};_.yXR={playlistId:"",inviteLinkURL:""};_.cDm={continuationCommand:{}};var aMV=rZ({continuationCommand:function(D,t){D=D===void 0?_.cDm.continuationCommand:D;switch(t.type){case "SET_CONTINUATION_COMMAND":return t.payload.continuationCommand;default:return D}}});_.zIu={currentFormId:"",commandsMap:{}};var wwD=rZ({isLeaderTab:function(D,t){D=D===void 0?_.Er3.isLeaderTab:D;switch(t.type){case "SET_IS_LEADER_TAB":var H,e;return(e=t==null?void 0:(H=t.payload)==null?void 0:H.isLeaderTab)!=null?e:D;default:return D}}});var $5o;_.jif=function(D){return _.hV({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:D}})};
$5o=function(D){return _.hV({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:D}})};_.bS={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var K2V=rZ({isDesktopSmallWidth:function(D,t){D=D===void 0?_.bS.isDesktopSmallWidth:D;switch(t.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return t.payload.isDesktopSmallWidth;default:return D}},
isShortsActive:function(D,t){D=D===void 0?_.bS.isShortsActive:D;switch(t.type){case "SET_IS_SHORTS_ACTIVE":return t.payload.isShortsActive;default:return D}},
isWatchWhileMode:function(D,t){D=D===void 0?_.bS.isWatchWhileMode:D;switch(t.type){case "SET_IS_WATCH_WHILE_MODE":return t.payload.isWatchWhileMode;default:return D}},
playerState:function(D,t){D=D===void 0?_.bS.playerState:D;switch(t.type){case "SET_PLAYER_STATE":return t.payload.playerState;default:return D}},
isFullscreen:function(D,t){D=D===void 0?_.bS.isFullscreen:D;switch(t.type){case "SET_IS_FULLSCREEN":return t.payload.isFullscreen;default:return D}},
isSmallScreenSqueezeback:function(D,t){D=D===void 0?_.bS.isSmallScreenSqueezeback:D;switch(t.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return t.payload.isSmallScreenSqueezeback;default:return D}},
isShortsPipActive:function(D,t){D=D===void 0?_.bS.isShortsPipActive:D;switch(t.type){case "SET_IS_SHORTS_PIP_ACTIVE":return t.payload.isShortsPipActive;default:return D}},
isPlaybackStarted:function(D,t){D=D===void 0?_.bS.isPlaybackStarted:D;switch(t.type){case "SET_IS_PLAYBACK_STARTED":return t.payload.isPlaybackStarted;default:return D}}});_.tXV={currentMode:"canvas-hidden"};var TB8=function(){return function(D){return function(t){var H=D(t);_.ET(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[t],!0);return H}}};var i39,m8K;i39=new _.TK;_.h5=new _.kI("WATCH_PLAYER_PROMISE_TOKEN");_.rD9=new _.TK;_.O3n=new _.kI("SHORTS_PLAYER_PROMISE_TOKEN");m8K=new _.kI("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var cf$=function(){return function(D){return function(t){t.type==="ENTITY_LOADED"&&_.qS().resolve(_.h5).then(function(H){var e;(e=H.dispatchReduxAction)==null||e.call(H,t)});
return D(t)}}};_.U59={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var Zc6=rZ({additionalContext:function(D,t){D=D===void 0?_.U59.additionalContext:D;switch(t.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var H;return(H=t.payload)!=null?H:"";default:return D}},
impersonatedChannelUrl:function(D,t){D=D===void 0?_.U59.impersonatedChannelUrl:D;switch(t.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var H;return(H=t.payload)!=null?H:"";default:return D}},
selectedVideoIds:function(D,t){D=D===void 0?_.U59.selectedVideoIds:D;switch(t.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var H={};return Object.assign({},D,(H[t.payload]=!0,H));case "VIDEO_UNSELECTED":return t=t.payload,D=Object.assign({},D),delete D[t],D;default:return D}}});_.oro={parentClickTrackingParams:""};var sy6=rZ({parentClickTrackingParams:function(D,t){D=D===void 0?_.oro.parentClickTrackingParams:D;switch(t.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return t.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return D}}});var PHV=function(D){return _.hV({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:D})};_.nrB={stepStates:{}};var hv6=rZ({stepStates:function(D,t){D=D===void 0?_.nrB.stepStates:D;switch(t.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var H=D,e=t.payload,V,b,a;D={};t={selectionStates:Object.assign({},(a=(V=H[e.stepId])==null?void 0:V.selectionStates)!=null?a:{},(D[e.token]={isSelected:e.isSelected},D)),userQuery:(b=H[e.stepId])==null?void 0:b.userQuery};V={};return Object.assign({},H,(V[e.stepId]=t,V));case "TALK_TO_RECS_UPDATE_USER_QUERY":return V=D,b=t.payload,
a={selectionStates:Object.assign({},(e=(H=V[b.stepId])==null?void 0:H.selectionStates)!=null?e:{}),userQuery:{userQuery:b.userQuery,token:b.userQueryToken}},H={},Object.assign({},V,(H[b.stepId]=a,H));default:return D}}});var CH6,m5V,SRQ;CH6=function(D){return _.hV({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:D})};
m5V=function(D){return _.hV({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:D})};
_.mT=function(D){return _.hV({type:"SET_CURRENT_PAGE_TYPE",payload:D})};
_.M3a=function(D){return _.hV({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:D})};
SRQ=function(D){return _.hV({type:"SET_CHIP_BAR_IS_STICKY",payload:D})};_.evK={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"};_.Xz6=function(D){return _.hV({type:"SET_PLAYER_STATE",payload:{playerState:D}})};_.qC={isWatchActive:!1,isLearningJourneyActive:!1,isTheaterMode:bcD(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var GG8=rZ({isTheaterMode:function(D,t){D=D===void 0?bcD():D;switch(t.type){case "SET_IS_THEATER_MODE":return t.payload.isTheaterMode;default:return D}},
isWatchActive:function(D,t){D=D===void 0?_.qC.isWatchActive:D;switch(t.type){case "SET_IS_WATCH_ACTIVE":return t.payload.isWatchActive;default:return D}},
isLearningJourneyActive:function(D,t){D=D===void 0?_.qC.isLearningJourneyActive:D;switch(t.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return t.payload.isLearningJourneyActive;default:return D}},
isWatchFullscreen:function(D,t){D=D===void 0?_.qC.isWatchFullscreen:D;switch(t.type){case "SET_IS_WATCH_FULLSCREEN":return t.payload.isWatchFullscreen;default:return D}},
isWatchNarrowWidth:function(D,t){D=D===void 0?_.qC.isWatchNarrowWidth:D;switch(t.type){case "SET_IS_WATCH_NARROW_WIDTH":return t.payload.isWatchNarrowWidth;default:return D}},
isWatchRetroMode:function(D,t){D=D===void 0?_.qC.isWatchRetroMode:D;switch(t.type){case "SET_IS_WATCH_RETRO_MODE":return t.payload.isWatchRetroMode;default:return D}},
isLiveChatCollapsed:function(D,t){D=D===void 0?_.qC.isLiveChatCollapsed:D;switch(t.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return t.payload.isLiveChatCollapsed;default:return D}},
openEngagementPanels:function(D,t){D=D===void 0?_.qC.openEngagementPanels:D;var H=[].concat(_.A6(D));switch(t.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return H.push(t.payload.panelToAdd),H;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return H.splice(H.indexOf(t.payload.panelToRemove),1),H;default:return D}},
playerState:function(D,t){D=D===void 0?_.qC.playerState:D;switch(t.type){case "SET_PLAYER_STATE":return t.payload.playerState;default:return D}},
watchScrollTop:function(D,t){D=D===void 0?_.qC.watchScrollTop:D;switch(t.type){case "SET_WATCH_SCROLL_TOP":return t.payload.watchScrollTop;default:return D}},
watchWindowSize:function(D,t){D=D===void 0?_.qC.watchWindowSize:D;switch(t.type){case "SET_WATCH_WINDOW_SIZE":return t.payload.watchWindowSize;default:return D}}});_.frB={surveyFeedbackData:{feedbackTokens:[]}};var ETA=rZ({surveyFeedbackData:function(D,t){D=D===void 0?_.frB.surveyFeedbackData:D;switch(t.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return t.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},D,t.payload);default:return D}}});_.qd$={};var $DV=void 0;_.r("web_enable_redux_store_on_demand")||($DV=jyV());var LRv=function(D,t,H){var e=this;this.listId=D;this.JSC$12871_updateCallback=t;this.isOfflineVideoCallback=H;_.b_().subscribe(function(){e.handleUpdate()})};
LRv.prototype.getPlaylistData=function(){var D=_.b_().getState().entities;if(this.listId&&this.listId!=="PPSV"){var t=A1V(D,this.listId,!0),H=_.cH(this.listId,"mainPlaylistEntity"),e,V;D=D==null?void 0:(e=D.mainPlaylistEntity)==null?void 0:(V=e[H])==null?void 0:V.title;return ic6(t,D,this.listId)}t=_.jj8(hWV(D));D=_.jj8(_.AV(D));D=t.concat(D);return ic6(D)};
LRv.prototype.getPlaylistId=function(){return this.listId};
LRv.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12871_updateCallback(this.listId,this.getPlaylistData(),{})};var Fr=function(D,t,H,e){e=e===void 0?[]:e;this.JSC$12874_playlistNetworkManager=D;this.listId=t;this.JSC$12874_updateCallback=H;this.videoIds=e;this.pendingUpdates=[];this.currentIndex=0};
Fr.prototype.JSC$12874_setCurrentIndex=function(D){this.currentIndex=D};
Fr.prototype.setListId=function(D){this.listId=D};
var ADB=function(D,t){D.currentCreateRequest&&D.currentCreateRequest.cancel(t);D.currentUpdateRequest&&D.currentUpdateRequest.cancel(t);D.currentRefreshRequest&&D.currentRefreshRequest.cancel(t)};
Fr.prototype.delete=function(){ADB(this,"PROXY DELETED")};
Fr.prototype.addVideos=function(D,t,H){var e=this;H!==void 0?this.videoIds.splice.apply(this.videoIds,[H,0].concat(_.A6(D))):this.videoIds.push.apply(this.videoIds,_.A6(D));this.listId||this.currentCreateRequest?(D.forEach(function(V,b){V={addedVideoId:V,action:"ACTION_ADD_VIDEO"};H&&(V.addedVideoPosition=H+b);e.pendingUpdates.push(V)}),am(this)):grB(this,t.onCreateListCommand)};
var JDf=function(D,t,H,e,V){JT8(D.videoIds,t,H);t>D.currentIndex&&H<=D.currentIndex?D.JSC$12874_setCurrentIndex(D.currentIndex+1):t===D.currentIndex?D.JSC$12874_setCurrentIndex(H):t<D.currentIndex&&H>=D.currentIndex&&D.JSC$12874_setCurrentIndex(D.currentIndex-1);D.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:e,movedSetVideoIdPredecessor:V});am(D)},grB=function(D,t){ADB(D,"OBSOLETE");
D.currentCreateRequest=YRm(D.JSC$12874_playlistNetworkManager,t,D.videoIds);_.pr(D.currentCreateRequest,function(){D.currentCreateRequest=void 0}).then(function(H){D.setListId(H.playlistId);
D.pendingUpdates.length>0?am(D):lrv(D)})},am=function(D){if(D.pendingUpdates.length!==0&&(D.currentRefreshRequest&&D.currentRefreshRequest.cancel("OBSOLETE"),!D.currentUpdateRequest&&!D.currentCreateRequest)){var t=D.pendingUpdates.splice(0,D.pendingUpdates.length);
D.currentUpdateRequest=D.JSC$12874_playlistNetworkManager.updatePlaylist(D.listId,t);_.pr(D.currentUpdateRequest,function(){D.currentUpdateRequest=void 0}).then(function(){D.pendingUpdates.length>0?am(D):lrv(D)}).thenCatch(function(){D.pendingUpdates.unshift.apply(D.pendingUpdates,_.A6(t))})}},lrv=function(D){D.currentRefreshRequest=_.vrn(D.JSC$12874_playlistNetworkManager,D.listId,D.currentIndex,D.videoIds[D.currentIndex]);
_.pr(D.currentRefreshRequest,function(){D.currentRefreshRequest=void 0}).then(function(t){D.JSC$12874_updateCallback(t.playlistId,t.playlistPanelRenderer,t.autoplayRenderer)})};
Fr.prototype.size=function(){return this.videoIds.length};var pz6=function(D,t,H,e){e=e===void 0?[]:e;Fr.call(this,D,t,H,e);this.JSC$12874_playlistNetworkManager=D;this.listId=t;this.JSC$12874_updateCallback=H;this.videoIds=e};
_.P(pz6,Fr);_.wf=function(D,t,H,e,V,b,a){V=V===void 0?[]:V;a=a===void 0?iV:a;Fr.call(this,D,t,H,V);this.JSC$12874_playlistNetworkManager=D;this.listId=t;this.JSC$12874_updateCallback=H;this.onAuthChange=e;this.videoIds=V;this.storage=b;this.cookieReader=a;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.kX(_.Jy,this.checkLoggedInStatusChange.bind(this),1E3)};
_.P(_.wf,Fr);_.q=_.wf.prototype;_.q.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.kX(_.Jy,this.checkLoggedInStatusChange.bind(this),1E3)};
_.q.JSC$12874_setCurrentIndex=function(D){Fr.prototype.JSC$12874_setCurrentIndex.call(this,D);this.store()};
_.q.delete=function(){_.Jy.cancelJob(this.queueSapisIdJob);Fr.prototype.delete.call(this)};
_.q.setListId=function(D){Fr.prototype.setListId.call(this,D);this.store()};
_.q.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var d5m=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],x5o=["playerResponse","videoDetails"],R9Q=["response","currentVideoEndpoint","watchEndpoint","videoId"],uiV=["response","currentVideoEndpoint","watchEndpoint","playlistId"],WRa=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Ir4=["response","contents","twoColumnWatchNextResults","playlist","playlist"],Qiv=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
yDQ=["response","contents","twoColumnWatchNextResults"];var Zw={},PPV=(Zw.WEB_UNPLUGGED="^unplugged/",Zw.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Zw.WEB_UNPLUGGED_OPS="^unplugged/",Zw.WEB_UNPLUGGED_PUBLIC="^unplugged/",Zw.WEB_CREATOR="^creator/",Zw.WEB_KIDS="^kids/",Zw.WEB_EXPERIMENTS="^experiments/",Zw.WEB_MUSIC="^music/",Zw.WEB_REMIX="^music/",Zw.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Zw.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Zw);var hzA,YRm;hzA=function(D,t){this.networkManager=D;this.innertubeTransportService=t};
YRm=function(D,t,H){if(!_.O(t,_.sz))return _.Aj(Error("Kf"));_.O(t,_.sz).videoIds=H;H={create_playlist_title:_.OT("QUEUE",void 0,"Queue")};return UD3(_.BZ(D.innertubeTransportService,t,H),rf8)};
_.vrn=function(D,t,H,e){t={videoId:e,playlistId:t,playlistIndex:H};H=_.qF(yr6);return UD3(_.sK(D.innertubeTransportService,t,H),oTA)};
hzA.prototype.updatePlaylist=function(D,t){return UD3(_.BZ(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:D,actions:t}}),OcV)};var BAf=function(D){this.storage=D},z96;
BAf.prototype.store=function(D,t){t=t===void 0?0:t;if(this.storage&&D.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",D),this.storage.set("TLPQindex",String(t)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(H){}};
BAf.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
BAf.prototype.getPlaylistId=function(){if(!this.storage)return null;var D=null;try{D=this.storage.get("TLPQplaylist")}catch(t){}return D};var MXD=["navigationEndpoint","watchEndpoint","videoId"],mDX=["nextButtonVideo","watchEndpoint","videoId"];_.dn=new _.kI("NETWORK_TOKEN");_.bO=new _.kI("PAGE_TOKEN");_.hU=new _.kI("PLAYLIST_TOKEN");var Dnn;Dnn=new _.kI("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.xg=new _.kI("INNERTUBE_TRANSPORT_TOKEN");var t96,Gi,e1B,V93,qov,Fan;t96=new Set(["ci","cr","carml"]);Gi=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12921_parkedJobs=new Map;this.parkedProcessors=new Map};
_.EK=function(){Gi.instance||(Gi.instance=new Gi);return Gi.instance};
Gi.prototype.onAny=function(D){return _.HF9(this,D,2)};
Gi.prototype.parkOrScheduleJob=function(D,t,H,e,V){_.Kp(this,H)?_.Cs().addJob(D,t,e):(V&&(D=e1B(D),V93(this,D,t,H,V)),V=this.JSC$12921_parkedJobs.get(H),V||(this.JSC$12921_parkedJobs.set(H,[]),V=this.JSC$12921_parkedJobs.get(H)),V.push({job:D,priority:t,delay:e}))};
Gi.prototype.addListener=function(D,t,H){H&&(t=e1B(t),V93(this,t,0,D,H));H=this.parkedProcessors.get(D);H||(this.parkedProcessors.set(D,[]),H=this.parkedProcessors.get(D));H.push(t)};
Gi.prototype.processSignal=function(D){if(!_.Kp(this,D)){this.inProgressSignals.add(D);var t=this.JSC$12921_parkedJobs.get(D);if(t){t=_.F(t);for(var H=t.next();!H.done;H=t.next())H=H.value,_.Cs().addJob(H.job,H.priority,H.delay);this.JSC$12921_parkedJobs.delete(D)}if(t=this.parkedProcessors.get(D)){t=_.F(t);for(H=t.next();!H.done;H=t.next())H=H.value,H();this.parkedProcessors.delete(D)}this.signals.push(D);this.inProgressSignals.delete(D)}};
_.Kp=function(D,t){return t96.has(t)||_.lh("IS_HOMEPAGE_COLD")||_.lh("IS_RESULTS_PAGE_COLD")||_.lh("IS_WATCH_PAGE_COLD")?D.signals.indexOf(t)>=0:!0};
e1B=function(D){var t=!1;return function(){t||(t=!0,D())}};
V93=function(D,t,H,e,V){if(bFV.has(e))_.Cs().addJob(t,H,V);else{var b=D.compoundSignals.get(e);b&&_.Cs().addJob(function(){_.Kp(D,e)||(b.isTimeoutConditionSatisfied?_.Cs().addJob(t,H):b.timeoutConditionObservers.push(function(){_.Cs().addJob(t,H)}))},H,V)}};
_.HF9=function(D,t,H){if(t.length>1){var e=[],V=Object.create(null);t=_.F(t);for(var b=t.next();!b.done;b=t.next())b=b.value,V[b]||(e.push(b),V[b]=!0);t=e}if(t.length===1)return t[0];b=t;e="";V=H===2?"|":"&";b.sort();b=_.F(b);for(var a=b.next();!a.done;a=b.next())e+=a.value+V;if(!D.compoundSignals.get(e)){V=0;b=[];a=_.F(t);for(var w=a.next();!w.done;w=a.next())w=w.value,V++,_.Kp(D,w)||b.push(w);(H=H===2)&&V>b.length||!H&&!b.length?D.signals.push(e):qov(D,e,H,t,b)}return e};
qov=function(D,t,H,e,V){var b=V.length,a=function(){H||--b===0?D.processSignal(t):Fan(D,t)};
V=_.F(V);for(var w=V.next();!w.done;w=V.next())D.addListener(w.value,a);D.compoundSignals.set(t,{signals:e,isOnAny:H,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});Fan(D,t)};
Fan=function(D,t){if(!_.Kp(D,t)){var H=D.compoundSignals.get(t);if(H&&!H.isTimeoutConditionSatisfied){for(var e=!1,V=0,b=0,a=_.F(H.signals),w=a.next();!w.done;w=a.next()){var h=w.value;w=!_.Kp(D,h);bFV.has(h)?e=!0:(h=D.compoundSignals.get(h))?w&&!h.isTimeoutConditionSatisfied&&(b++,H.isInitialized||h.timeoutConditionObservers.push(function(){Fan(D,t)})):w&&V++}H.isInitialized=!0;
H.isOnAny?e&&(H.isTimeoutConditionSatisfied=!0):V===0&&b===0&&(H.isTimeoutConditionSatisfied=!0);if(H.isTimeoutConditionSatisfied)for(H=_.F(H.timeoutConditionObservers),e=H.next();!e.done;e=H.next())e=e.value,e()}}};
Gi.prototype.processSignal=Gi.prototype.processSignal;Gi.prototype.parkOrScheduleJob=Gi.prototype.parkOrScheduleJob;Gi.prototype.onAny=Gi.prototype.onAny;_.bg("ytsignals.getInstance",_.EK);Gi.prototype.onAny=Gi.prototype.onAny;Gi.prototype.parkOrScheduleJob=Gi.prototype.parkOrScheduleJob;Gi.prototype.processSignal=Gi.prototype.processSignal;var bFV=new Set(["eop","eocs","dl","pcl"]);_.dL=new _.kI("MINIPLAYER_SERVICE");var NC,aJm,wWV;NC=function(D,t,H){var e=_.Qa.getInstance();if(!z96){var V=new geX;var b=void 0,a=_.YC("ID_TOKEN");a&&V.isAvailable()&&(b=new Sc(V,"yt-queue"+a));z96=new BAf(b)}V=z96;b=_.EK();this.JSC$12928_actionRouter=e;this.pageManager=D;this.playlistManager=t;this.JSC$12928_playlistNetworkManager=H;this.storage=V;this.signals=b;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.k$=function(){if(!aJm){var D=_.qS(),t=D.resolve(_.by(_.bO)),H=D.resolve(_.by(_.dn)),e=D.resolve(_.by(_.hU));D=D.resolve(_.xg);aJm=new NC(t,e,new hzA(H,D))}return aJm};
wWV=function(D,t,H){if(H){var e;if(((e=D.responsePlaylistData)==null?void 0:e.playlistId)!==H)return}D.responsePlaylistData&&(H=gT$(t,D.responsePlaylistData),D.responsePlaylistData=(0,_.J$.unsafeClone)(D.responsePlaylistData),YdD(D.responsePlaylistData,H));H=D.temporaryItems.findIndex(function(V){return V.videoId===t});
H>-1&&D.temporaryItems.splice(H,1);_.Ti(D,_.cM(D,D.response?D.response.autoplayRenderer:void 0))};
_.ZFQ=function(D,t){if(D.responsePlaylistData){var H=JfV(t,D.responsePlaylistData);YdD(D.responsePlaylistData,H);if(D.queueProxy){var e=D.queueProxy;H<0||(e.videoIds.splice(H,1),H<e.currentIndex&&e.JSC$12874_setCurrentIndex(e.currentIndex-1),e.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:t}),am(e))}}_.Ti(D,_.cM(D,D.response?D.response.autoplayRenderer:void 0))};
NC.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.Ti(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
NC.prototype.setPlaylistData=function(D,t,H){this.temporaryItems=[];this.listId=D;this.responsePlaylistData=t;_.Ti(this,_.cM(this,H))};
var s9B=function(D){return(D==null?0:D.playlistId)?D.playlistId:"PPSV"},h1a=function(D){return D&&D.playlistId?D.playlistId==="PPSV"?!0:fBV(_.b_().getState().entities,D.playlistId):!1};
NC.prototype.isPlayingOfflineVideo=function(){return this.response?h1a(this.response):!1};
NC.prototype.closeMiniplayer=function(D){var t=this.queueProxy&&this.queueProxy.size()<=1,H=_.qS().resolve(_.dL);if(!this.queueProxy||t)this.queueProxy&&this.clearQueue(),H.close(!0);else{H.pipController.getWindow()&&window.focus();t=this.responsePlaylistData;var e=this.temporaryItems.length+(t&&t.contents?t.contents.length:0);t=_.OT("QUEUE_CLEARED_UNPLURALIZED")||_.UT("QUEUE_CLEARED",e);t=_.ah(t);H=_.OT("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");e=_.OT("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.UT("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",e);var V=_.OT("MINIPLAYER_CLOSE",void 0,"Close"),b=_.OT("CANCEL",void 0,"Cancel");_.zB(this.JSC$12928_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.H7(H),dialogMessages:[_.H7(e)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.H7(V),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
t]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.H7(b)}}}}}}],D)}};
_.cM=function(D,t){var H={},e=D.response;H.autoplayRenderer=t;if(!D.responsePlaylistData&&!D.temporaryItems.length)return!e||!e.hasRelatedVideoData&&_.r("kevlar_prefetch_data_augments_network_data")||(H.playerData={rvs:e.relatedVideoArgs,endScreenRenderer:e.endScreenRenderer}),H;H.playerData={};if(D.index===void 0)return _.gT(Error("Mf")),H;H.panel=D.responsePlaylistData?(0,_.J$.unsafeClone)(D.responsePlaylistData):{titleText:_.H7(_.OT("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
t=H.panel;if(t.contents)for(var V=_.F(D.temporaryItems),b=V.next();!b.done;b=V.next())t.contents.push({playlistPanelVideoRenderer:b.value});D.queueProxy&&e&&e.playingVideo&&e.playingVideoId&&!AfD(e.playingVideoId,H.panel)&&(t=e.playingVideo,V=H.panel,b=D.index,V.contents&&V.contents.splice(b===void 0?0:b,0,{playlistPanelVideoRenderer:t}));e&&e.playingVideoId&&(t=D.index,V=H.panel,t=!V.contents||t>=V.contents.length?void 0:V.contents[t].playlistPanelVideoRenderer,t&&t.videoId===e.playingVideoId||(t=
gT$(e.playingVideoId,H.panel),D.index=t!==-1?t:D.index?D.index-1:0));t=L2R(D.index+1,H.panel);V=void 0;D.index>0&&(V=L2R(D.index-1,H.panel));if(V||t)H.autoplayRenderer=Sd6(t,V,H.autoplayRenderer);!t&&(e==null?0:e.relatedVideoArgs)&&(H.playerData.rvs=e.relatedVideoArgs);e=e?e.playlistIndexOffset:0;D.queueProxy?pw$(H.panel,D.index,e,fMV,!0,!0,!0):pw$(H.panel,D.index,e);H.playerData.playlistPanelRenderer=H.panel;return H};
NC.prototype.openToast=function(D){_.qS().resolve(_.dL).openToast(D,_.OT("ADDED_TO_QUEUE",void 0,"Added to queue"))};
NC.prototype.isMiniplayerActive=function(){return _.qS().resolve(_.dL).isMiniplayerActive()};
_.Ti=function(D,t){D.playlistManager.setAutoplayRenderer(t.autoplayRenderer||null);D.playlistManager.setPlaylistData(t.panel||null);t.playerData&&D.playlistManager.setPlayerPlaybackControlData(t.playerData)};var xDk="#";var GSm={},EE9={},Kav={},N9B={},kSV={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:(GSm.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",GSm),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:(EE9.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",EE9),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:(Kav.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",Kav),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:(N9B.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",N9B),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 Pk$=[{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:kSV},{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:kSV}}];var kIK;_.kg=[[["amtpbmQjdnIybndza2hsemE=","dmFsdWUjbHpmdGVsazh3b3hy"],"U1RBUlQjODM5c3U5cHh6N3czQURfUExBQ0VNRU5UX0tJTkRf"]];
kIK=[[["aW1hcnkjdTlubW1reGV0b3czcHI=",null,null],[null,["ZGVyZXIjMXdvNjZyNzJ4d2o5eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVu","c2NvcGUjZHRibmUxZ20yc2Q4c3R5bGUt"],null],["YWQtYWQjNnhrMjhoeHhlaWtwbWFzdGhl",["ZGVyZXIjY3Rld3ZocmNtdnl1eXRkLXJpY2gtZ3JpZC1yZW4="],null],[null,["ZGVyZXIjbXlvbGw0aTgxbzBveXRkLXJpY2gtZ3JpZC1yZW4=","c2NvcGUjMTRpOW5lbGswbXIwc3R5bGUt"],null],[null,["ZGVyZXIjZXp5dThiOGxlemc2eXRkLWJhbm5lci1wcm9tby1yZW4=","c2NvcGUjeHE0cmZhaHhwNGR2c3R5bGUt"],null],[null,["ZGVyZXIjYmZpeTUwaWJ6ZGQ3eXRkLWFkLXNsb3QtcmVu"],
null]],[["ci1hZHMjNWV1b2hzNXU5ejF5cGxheWU=",null,null]]];_.NF=["YmFja3MjYmtqZW9zeTltdnJ6Z2xvYmFsQ2FsbA==","ZWN0ZWQjZXZrYmVqZnk4azBkb25BYm5vcm1hbGl0eURldA==","ZFNraXAjbmo1eGFja2JvdWVpb25B","cG9uc2UjZDgyZXhjcDlia2s4cmF3X3BsYXllcl9yZXM=","U2xvdHMjOGdhcGU0djQxOXE3YWQ="];_.ji="YmFja3MjYmtqZW9zeTltdnJ6Z2xvYmFsQ2FsbA== ZWN0ZWQjZXZrYmVqZnk4azBkb25BYm5vcm1hbGl0eURldA== ZFNraXAjbmo1eGFja2JvdWVpb25B cG9uc2UjZDgyZXhjcDlia2s4cmF3X3BsYXllcl9yZXM= cHNfa3MjbmxxZHJyeXBndGFhd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraQ== c2FfZWYjOWVxeWNuMTM5eWplYWJf U2xvdHMjOGdhcGU0djQxOXE3YWQ=".split(" ");var $$;$$=function(D,t,H){this.cef=D;this.isAsync=t;this.tSr=H};
_.Yx6=[new $$("b.f_",!1,0),new $$("j.s_",!1,2),new $$("r.s_",!1,4),new $$("e.h_",!1,6),new $$("i.s_",!0,8),new $$("s.t_",!1,10),new $$("p.h_",!1,12),new $$("s.i_",!1,14),new $$("f.i_",!1,16),new $$("a.b_",!1,18),new $$("a.o_",!1),new $$("g.o_",!1,22),new $$("p.i_",!1,24),new $$("p.m_",!1),new $$("n.k_",!0,20),new $$("i.f_",!1),new $$("a.s_",!0),new $$("m.c_",!1),new $$("n.h_",!1,26),new $$("o.p_",!1),new $$("m.p_",!0,28),new $$("o.a_",!1),new $$("d.p_",!1),new $$("e.i_",!1)].reduce(function(D,t){D[t.cef]=
t;return D},{});var T9m=function(){};
T9m.prototype.flush=function(D,t){D=D===void 0?[]:D;t=t===void 0?!1:t;if(_.r("enable_client_streamz_web")){D=_.F(D);for(var H=D.next();!H.done;H=D.next())H=i26(H.value),this.rootSpec&&_.oE(H,2,this.rootSpec),H={serializedIncrementBatch:_.XF(H.JSC$9611_serializeBinary())},_.L7("streamzIncremented",H,{sendIsolatedPayload:t})}};
var QyV=function(){};
_.P(QyV,T9m);var cif=function(D){var t=new KuV;var H=new hDf;H=_.M3(H,1,"botguard");D=_.M3(H,2,D);this.rootSpec=_.PU(t,1,NNm,D)};
_.P(cif,T9m);var GK,j9B=new Map;var $g$,BBK,FyX,tL8,VLR,Ky6,rkA,GI$;$g$=2;BBK=2;FyX=2;tL8=2;VLR=2;Ky6=2;rkA=2;GI$=new N_6;var iFf,ri4,OFB;iFf=function(){this.ongoingFlowNonces=new Map};
_.$g=function(){ri4||(ri4=new iFf);return ri4};
_.c7=function(D,t,H){return{eventType:{flowEventNamespace:D,flowEventType:t},metadata:H,statusCode:void 0,csn:void 0,can:void 0}};
_.vnR=function(D,t){var H=_.$g(),e=OFB(H,t,!0);_.jo(H,D,t,e)};
_.jo=function(D,t,H,e){D={flowNonce:e||OFB(D,H),flowType:H,flowEventType:t.eventType};t.metadata&&(D.flowMetadata=t.metadata);t.statusCode!==void 0&&(D.flowEventStatus=t.statusCode);t.csn&&(D.csn=t.csn);t.can&&(D.can=t.can);_.L7("flowEvent",D,void 0)};
OFB=function(D,t,H){H=H===void 0?!1:H;var e=D.ongoingFlowNonces.get(t);if(!e||H)e=JK(16),D.ongoingFlowNonces.set(t,e);return e};_.Un6=new KGQ;var unV={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var iS=function(D,t,H,e,V,b,a){H=H===void 0?!1:H;e=e===void 0?!1:e;b=b===void 0?_.k$():b;this.hasRun=!1;this.coW=D;this.mWA=t;this.zSB=H;this.fromHistory=e;this.previousVideoId=V;this.gl7=b;this.tempData=a;this.qtR=new _.kpw};
_.P(iS,oj);iS.prototype.validate=function(D){return!(!D.data.playerResponse||D.data.page!=="watch"&&D.data.page!=="learning_journey_watch"&&D.data.page!=="shorts"||this.hasRun)};
iS.prototype.handle=function(D){var t=this,H=_.O(D.endpoint,_.Hh),e=_.O(D.endpoint,_.C_);if(_.r("kevlar_continue_playback_without_player_response")&&(H==null?0:H.videoId)&&this.previousVideoId&&(H==null?void 0:H.videoId)===this.previousVideoId&&(H==null?0:H.continuePlayback)&&!this.fromHistory)this.coW.resolve();else{var V={};H?V.watch_endpoint=H:e&&(V.watch_endpoint=e,e.endTimeSeconds&&(V.end=e.endTimeSeconds));D.data.page==="watch"?(D.data.filler||this.zSB||(_.pl("cfg"),_.Qa.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(V,oE3(this,D.endpoint)),_.r("enable_masthead_quartile_ping_fix")&&Object.assign(V,Pr3(this)),Object.assign(V,void 0),D.data.forceExternalPlaylist&&(V.external_list=!0)):D.data.page==="shorts"?_.Qa.getInstance().triggerAction("yt-start-loading-shorts"):D.data.page==="learning_journey_watch"&&_.Qa.getInstance().triggerAction("yt-start-loading-learning-journey");if(H=this.mWA()){try{H.loadVideoWithPlayerResponse(D.data.playerResponse,V),H.getPlayerPromise().then(this.coW.resolve)}catch(b){_.gT(b),
this.coW.resolve()}this.hasRun=!0;H.getPlayerPromise().then(function(b){b.addEventListener("onAbnormalityDetected",function(){var a=D.data.playerResponse,w=b.getVideoData().cpn;rkA=0;_.$n4=w;if(w=Jk$(a))t.qtR.increment("IN_PLAYER"),_.rn(5),_.r("ab_st_vid_ks")?b.pauseVideo(!0):b.stopVideo(),a.playabilityStatus=Object.assign({},a.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:w}}),a.videoDetails=void 0,_.Qa.getInstance().triggerOptionalAction("yt-updated-playability-status",
a.playabilityStatus)})})}else _.Yw(Error("Pf"))}};
var oE3=function(D,t){var H=_.O(t,_.Hh);if(t&&H&&H.playlistId&&H.videoId&&(D=D.gl7,D.queueProxy?(D=D.queueProxy,H=D.listId===H.playlistId?D.attributionData.get(H.videoId):void 0):H=void 0,H))return{queue_info:H}},Pr3=function(D){var t;
if((t=D.tempData)==null?0:t.adpings)return{adpings:D.tempData.adpings}};var rf=function(D,t,H){this.hasRun=!1;this.c79=D;this.tCc=t;this.pvI=H};
_.P(rf,oj);rf.prototype.validate=function(D){return!!_.J$.getValueByKeys.apply(null,[D.data].concat(_.A6(yDQ)))};
rf.prototype.handle=function(D){var t=this;this.c79.promise.then(function(){var H=D.data;var e=_.J$.getValueByKeys.apply(null,[H].concat(_.A6(d5m))),V=_.J$.getValueByKeys.apply(null,[H].concat(_.A6(Ir4))),b=_.J$.getValueByKeys.apply(null,[H].concat(_.A6(R9Q)));var a=(a=_.J$.getValueByKeys.apply(null,[H].concat(_.A6(x5o))))?{videoId:a.videoId,thumbnail:a.thumbnail,title:a.title?_.H7(a.title):void 0,shortBylineText:a.author?_.H7(a.author):void 0}:void 0;var w=void 0;_.r("web_get_playlist_id_from_current_endpoint_ks")||
(w=_.J$.getValueByKeys.apply(null,[H].concat(_.A6(uiV))));var h=_.J$.getValueByKeys.apply(null,[H].concat(_.A6(Qiv))),K=_.J$.getValueByKeys.apply(null,[H].concat(_.A6(WRa))),N=!!h||!!K&&!!K.results&&K.results.length>0,k=0;V&&V.currentIndex&&V.localCurrentIndex&&(k=V.currentIndex-V.localCurrentIndex);V&&V.playlistId&&(w=V.playlistId);H={rawResponse:H,autoplayRenderer:e,hasRelatedVideoData:N,playingVideo:a,playingVideoId:b,playlistPanelRenderer:V,playlistId:w,playlistIndex:V&&V.currentIndex,relatedVideoArgs:h,
endScreenRenderer:K,playlistIndexOffset:k};a:{e=t.pvI;V=t.tCc;e.response=H;if(h1a(H))e.downloadPlaylistProxy&&e.downloadPlaylistProxy.getPlaylistId()===s9B(H)||(e.downloadPlaylistProxy=new LRv(s9B(H),e.setPlaylistData.bind(e),e.isPlayingOfflineVideo.bind(e))),e.responsePlaylistData=e.downloadPlaylistProxy.getPlaylistData(),e.listId=s9B(H),e.index=0;else if(H.playlistPanelRenderer&&H.playlistId&&H.autoplayRenderer)H.playlistId.startsWith("TLPQ")?e.queueProxy?e.listId===H.playlistId?(e.index=H.playlistIndex,
e.responsePlaylistData=H.playlistPanelRenderer,e.queueProxy.JSC$12874_setCurrentIndex(e.index)):H.playingVideoId&&e.index!==void 0&&V.clientParams.autoSaveToQueue&&(e.index+=1,e.queueProxy.JSC$12874_setCurrentIndex(e.index),e.queueProxy.addVideos([H.playingVideoId],{},e.index)):(e.queueProxy=new _.wf(e.JSC$12928_playlistNetworkManager,H.playlistId,e.setPlaylistData.bind(e),e.clearQueue.bind(e),_.lMV(H.playlistPanelRenderer),e.storage),e.responsePlaylistData=H.playlistPanelRenderer,e.listId=H.playlistId,
e.index=H.playlistIndex):(e.index=H.playlistIndex,e.listId!==H.playlistId&&e.clearQueue(),e.responsePlaylistData=H.playlistPanelRenderer,e.listId=H.playlistId,e.playlistProxy=new pz6(e.JSC$12928_playlistNetworkManager,H.playlistId,e.setPlaylistData.bind(e),_.lMV(H.playlistPanelRenderer)));else if(!e.queueProxy)e.responsePlaylistData=void 0;else if(H.playingVideoId&&V.clientParams.autoSaveToQueue){if(e.index===void 0){_.gT(Error("Lf"));e.clearQueue();break a}e.queueProxy.videoIds.includes(H.playingVideoId)||
(e.index+=1,e.queueProxy.JSC$12874_setCurrentIndex(e.index),e.queueProxy.addVideos([H.playingVideoId],{},e.index))}_.Ti(e,_.cM(e,e.response.autoplayRenderer))}})};var nEm=function(D,t){t=t===void 0?_.k$():t;vK.call(this);this.ea.push(new rf(this.yS,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},t));this.ea.push(new iS(this.yS,D,!1,!1));_.r("web_response_commands_chunk_processor")&&this.ea.push(new pi)};
_.P(nEm,vK);nEm.prototype.processChunk=function(D){D&&D.data.player===void 0&&this.yS.resolve();vK.prototype.processChunk.call(this,D)};var OK=function(D,t){D=D===void 0?{layer:0}:D;this.hasRun=!1;this.createScreenConfig=D;this.dc9=t};
_.P(OK,oj);OK.prototype.validate=function(D){return!(this.hasRun||!D.endpoint)};
OK.prototype.handle=function(D){var t=_.Pc(),H,e,V=(e=_.O((H=D.endpoint)==null?void 0:H.commandMetadata,_.i1))==null?void 0:e.rootVe;this.dc9&&V?_.Li(t,V,this.dc9,this.createScreenConfig):kg4(t,D.endpoint,this.createScreenConfig);this.hasRun=!0};var UK=function(D,t){this.hasRun=!1;this.dEB=D;this.previousVideoId=t};
_.P(UK,oj);UK.prototype.validate=function(D){return _.r("kevlar_continue_playback_without_player_response")&&(D=_.O(D.endpoint,_.Hh),(D==null?0:D.videoId)&&this.previousVideoId&&(D==null?void 0:D.videoId)===this.previousVideoId&&(D==null?0:D.continuePlayback))?!1:this.dEB.sLI===0};
UK.prototype.handle=function(D){_.Qa.getInstance().triggerAction("yt-stop-old-player",D.data,!0)};var Cr4=function(D){D=D===void 0?{layer:0}:D;vK.call(this);this.ea.push(new UK(this));this.ea.push(new OK(D));this.ea.push(new l2(D))};
_.P(Cr4,vK);var om=function(){oj.apply(this,arguments)};
_.P(om,oj);om.prototype.validate=function(D){return!!D.data.preconnect};
om.prototype.handle=function(D){_.vh("bc");D=_.F(D.data.preconnect);for(var t=D.next();!t.done;t=D.next())t=t.value,(new Image).src=t};var mn6=function(D,t,H,e,V,b,a){H=H===void 0?{layer:0}:H;b=b===void 0?_.k$():b;vK.call(this);if(e)if(V){V=b;this.ea.push(new rf(this.yS,t,V));this.ea.push(new om);var w,h;this.ea.push(new iS(this.yS,D,!1,!((w=t.clientParams)==null||!w.fromHistory),(h=t.clientParams)==null?void 0:h.previousVideoId,V,t.tempData));var K;this.ea.push(new UK(this,(K=t.clientParams)==null?void 0:K.previousVideoId));var N;(N=t.clientParams)!=null&&N.fromHistory||(H.layer||(H=Object.assign({},H,{layer:0})),this.ea.push(new OK(H,
a)),this.ea.push(new l2(H)))}else this.ea.push(new rf(this.yS,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},b)),this.ea.push(new iS(this.yS,D,!1,!1));else this.ea.push(new UK(this)),this.ea.push(new OK(H)),this.ea.push(new l2(H));_.r("web_response_commands_chunk_processor")&&e&&this.ea.push(new pi)};
_.P(mn6,vK);mn6.prototype.processChunk=function(D){D&&D.data.player===void 0&&this.yS.resolve();vK.prototype.processChunk.call(this,D)};var M94=function(){this.hasRun=this.hasRun=!1};
_.P(M94,oj);M94.prototype.validate=function(D){return!this.hasRun&&!(!D.data.csn||!D.data.rootVe)};
M94.prototype.handle=function(D){this.hasRun=!0;_.dZ(D.data.csn,D.data.rootVe,3)};var Son=function(D,t,H){H=H===void 0?{layer:0}:H;vK.call(this);this.ea.push(new iS(this.yS,D));this.ea.push(new OK(H));this.ea.push(new l2(H))};
_.P(Son,vK);var XWV=function(D,t,H,e,V){H=H===void 0?{layer:0}:H;e=e===void 0?_.k$():e;vK.call(this);var b=!!t&&!!t.clientParams&&!!t.clientParams.miniplayer;b&&this.ea.push(new M94);this.ea.push(new rf(this.yS,t,e));this.ea.push(new om);var a,w;this.ea.push(new iS(this.yS,D,b,!((a=t.clientParams)==null||!a.fromHistory),(w=t.clientParams)==null?void 0:w.previousVideoId,e,t.tempData));var h;this.ea.push(new UK(this,(h=t.clientParams)==null?void 0:h.previousVideoId));var K;(K=t.clientParams)!=null&&K.fromHistory||
(H.layer||(H=Object.assign({},H,{layer:b?3:0})),this.ea.push(new OK(H,V)),this.ea.push(new l2(H)));_.r("web_response_commands_chunk_processor")&&this.ea.push(new pi)};
_.P(XWV,vK);var PM,Aio;PM={};
_.fJf=(PM["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},PM["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},PM["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},PM["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},PM["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},PM["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},PM["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},PM);_.np=new _.dk("yt-edu");_.Laa=function(){this.JSC$13026_eduDisplayedThisLoad_={}};
Aio=function(D){var t=_.Laa.getInstance();var H=_.ZU("kevlar_tooltip_impression_cap");t=H&&parseInt(_.np.get(D+"-impression")||0,10)>=H||_.np.get(D+"-dismissed")?!1:(H=_.fJf[D])&&!t.JSC$13026_eduDisplayedThisLoad_[H.setKey||D]&&(H.titleText&&_.OT(H.titleText)||H.bodyText&&_.OT(H.bodyText))?!0:!1;if(!t)return null;t=_.fJf[D];if(!t)return null;H=t.bodyText?_.OT(t.bodyText):void 0;var e=t.titleText?_.OT(t.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:t.position,popup:{bubbleHintRenderer:{text:e?
_.H7(e):void 0,detailsText:H?_.H7(H):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.H7(_.OT("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:D}}]}}}}}}}},{eduImpressionAction:{key:D}}]};
_.ak(_.Laa);var pJV=!1;for(var gEm="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),Ji9=[],Cp=6;Cp>=1;Cp--)Ji9.push({columnCount:Cp,query:Cp==1?0:Cp*2*107-4+32,className:"grid-"+Cp+"-columns",width:Cp*2*107+"px"});_.mO=function(D){this.actionRouter_=D=D===void 0?_.Qa.getInstance():D;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.YoB(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.YoB=function(D){var t=D.documentWidth_-(D.miniGuideVisible_?72:0)-(D.guidePersistentAndVisible_?240:0)-(D.persistentPanelVisible_?400:0);return Ji9.find(function(H){return t>H.query})};
_.ak(_.mO);var lJv=function(){var D=this;this.JSC$13038_keyboardInUse=!1;document.addEventListener("keydown",function(){D.onKeydown()});
document.addEventListener("mousedown",function(){D.JSC$13038_keyboardInUse=!1})},vE6;
lJv.prototype.isKeyBoardInUse=function(){return this.JSC$13038_keyboardInUse};
lJv.prototype.onKeydown=function(){this.JSC$13038_keyboardInUse=!0};var pWn,Xr;_.MC=new _.dk("yt-mentions");_.Si=function(){};
pWn=function(D,t){return Xr(t,"drag-to-reorder-edu-displayed")};
Xr=function(D,t,H,e,V,b){H=H===void 0?"OPEN_POPUP_POSITION_TOP":H;if(t){if(_.MC.get(t))return;_.MC.set(t,!0,e)}if(V&&b!==void 0){t=Number(_.MC.get(V)||0);if(t>=b)return;_.MC.set(V,t+1)}return[{openPopupAction:{popupType:"HINT",position:H,popup:{bubbleHintRenderer:{detailsText:D,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.ak(_.Si);var dnn,xnV,R19;dnn=function(D,t,H,e){this.JSC$13048_taskManager_=D;this.onFulfilled_=typeof t==="function"?t:null;this.onRejected_=typeof H==="function"?H:null;this.JSC$13048_context_=e};
xnV=function(D,t){D.onFulfilled_&&_.Mx(D.JSC$13048_taskManager_,function(){D.onFulfilled_.call(D.JSC$13048_context_,t)})};
R19=function(D,t){D.onRejected_&&_.Mx(D.JSC$13048_taskManager_,function(){D.onRejected_.call(D.JSC$13048_context_,t)})};
_.fp=function(D){this.JSC$13051_taskManager_=D;this.callbacks_=[]};
_.fp.prototype.then=function(D,t,H){this.callbacks_.push(new dnn(this.JSC$13051_taskManager_,D,t,H));return this};
_.fp.prototype.onSuccess=function(D){this.callbacks_.forEach(function(t){xnV(t,D)})};
_.fp.prototype.onFailure=function(D){this.callbacks_.forEach(function(t){R19(t,D)})};
_.fp.prototype.cancel=function(){this.callbacks_.length=0};
U3Q(_.fp);_.IGD=null;_.mM=new _.kI("ACTIVITY_TOKEN");var Lp=function(D,t){this.serviceId=new US6(D,t)};
Lp.prototype.toString=function(){return this.serviceId.toString()};var u$o=function(){this.internalMap={}};
_.q=u$o.prototype;_.q.contains=function(D){return Object.prototype.hasOwnProperty.call(this.internalMap,D)};
_.q.get=function(D){if(this.contains(D))return this.internalMap[D]};
_.q.set=function(D,t){this.internalMap[D]=t};
_.q.getKeys=function(){return Object.keys(this.internalMap)};
_.q.remove=function(D){delete this.internalMap[D]};var AU=function(){this.mappings=new u$o;this.errorCallbacks=new Set};
AU.prototype.getModuleId=function(D){return D.serviceId.getModuleId()};
AU.prototype.get=function(D){var t=this.mappings.get(D.toString());return Wam(this,t,D)};
AU.prototype.getMultipleAsync=function(){var D=_.RE.apply(0,arguments),t=this,H=D.map(function(h){return t.getModuleId(h)}),e=D.map(function(h){return t.mappings.get(h.toString())}).filter(function(h){return h});
if(e.length===D.length)return _.Tf(e.map(function(h,K){return Wam(t,h,D[K])}));
var V=Ae().loadMultiple(H);e=_.vl(H.map(function(h){return V[h]}));
var b=document.hidden,a=-1,w=_.ZU("get_async_timeout_ms",-1);w>-1&&(a=setTimeout(function(){_.Yw(new _.nZ("Module timeout.",H,b,document.hidden))},w));
return _.pr(e.then(function(){return D.map(function(h){return Wam(t,t.mappings.get(h.toString()),h)})}).thenCatch(function(h){for(var K=_.F(t.errorCallbacks),N=K.next();!N.done;N=K.next())N=N.value,N(h);
throw h;}),function(){clearTimeout(a)})};
AU.prototype.registerService=function(D,t){this.mappings.set(D.toString(),{type:"mapping",value:t});return D};
var Wam=function(D,t,H){switch(t.type){case "mapping":return t.value;case "factory":return t=t.value(),D.mappings.set(H.toString(),{type:"mapping",value:t}),t;default:return _.xv(t)}};
AU.prototype.onLoadError=function(D){var t=this;this.errorCallbacks.add(D);return function(){t.errorCallbacks.delete(D)}};
_.gf=new AU;var DY6=/^[a-zA-Z0-9_\-]{11}$/;var tCX=_.LJ(function(){var D,t;return(t=(D=window).matchMedia)==null?void 0:t.call(D,"(prefers-reduced-motion: reduce)").matches});var IJf=_.LJ(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 D=_.RD("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");D||(D=_.OH("VIDEO"),_.bg("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
D));return!!(D&&D.canPlayType&&D.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var FZV=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var JU;JU=function(){this.tokenJars={};if(this.cookiesEnabled=_.Ua()){var D=_.ri.get("CONSISTENCY",void 0);D&&Q94(this,{encryptedTokenJarContents:D})}};
_.wpV=function(){JU.instance||(JU.instance=new JU);return JU.instance};
JU.prototype.handleResponse=function(D,t){if(!t)throw Error("Vf");var H,e;t=((H=t.innerTubeRequest.context)==null?void 0:(e=H.request)==null?void 0:e.consistencyTokenJars)||[];var V;(D=(V=D.responseContext)==null?void 0:V.consistencyTokenJar)&&this.replace(t,D)};
JU.prototype.replace=function(D,t){D=_.F(D);for(var H=D.next();!H.done;H=D.next())delete this.tokenJars[H.value.encryptedTokenJarContents];Q94(this,t)};
var Q94=function(D,t){if(t.encryptedTokenJarContents&&(D.tokenJars[t.encryptedTokenJarContents]=t,typeof t.expirationSeconds==="string")){var H=Number(t.expirationSeconds);setTimeout(function(){delete D.tokenJars[t.encryptedTokenJarContents]},H*1E3);
D.cookiesEnabled&&_.Oa("CONSISTENCY",t.encryptedTokenJarContents,H,void 0,!0)}};var yiQ,Y$;yiQ=window.location.hostname.split(".").slice(-2).join(".");_.gn=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var D=_.YC("LOCATION_PLAYABILITY_TOKEN");_.YC("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=B94(this))&&(D=this.localStorage.get("yt-location-playability-token"));D&&(this.locationPlayabilityToken=D,this.mostRecentPosition=void 0)};
_.gn.getInstance=function(){Y$=_.RD("yt.clientLocationService.instance");Y$||(Y$=new _.gn,_.bg("yt.clientLocationService.instance",Y$));return Y$};
_.gn.prototype.setLocationOnInnerTubeContext=function(D){D.client||(D.client={});if(this.mostRecentPosition)D.client.locationInfo||(D.client.locationInfo={}),D.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),D.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),D.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),D.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)D.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.gn.prototype.handleResponse=function(D){var t;D=(t=D.responseContext)==null?void 0:t.locationPlayabilityToken;D!==void 0&&(this.locationPlayabilityToken=D,this.mostRecentPosition=void 0,_.YC("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=B94(this))&&this.localStorage.set("yt-location-playability-token",D,15552E3):_.Oa("YT_CL",JSON.stringify({loctok:D}),15552E3,yiQ,!0))};
var B94=function(D){return D.localStorage===void 0?new _.dk("yt-client-location"):D.localStorage};
_.gn.prototype.clearLocationPlayabilityToken=function(D){D==="TVHTML5"?(this.localStorage=B94(this))&&this.localStorage.remove("yt-location-playability-token"):_.CGV("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.gn.prototype.getCurrentPositionFromGeolocation=function(){var D=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Wf"));var t=!1,H=1E4;_.YC("INNERTUBE_CLIENT_NAME")==="MWEB"&&(t=!0,H=15E3);return new Promise(function(e,V){navigator.geolocation.getCurrentPosition(function(b){D.mostRecentPosition=b;e(b)},function(b){V(b)},{enableHighAccuracy:t,
maximumAge:0,timeout:H})})};
_.gn.prototype.createUnpluggedLocationInfo=function(D){var t={};D=D.coords;if(D==null?0:D.latitude)t.latitudeE7=Math.floor(D.latitude*1E7);if(D==null?0:D.longitude)t.longitudeE7=Math.floor(D.longitude*1E7);if(D==null?0:D.accuracy)t.locationRadiusMeters=Math.round(D.accuracy);return t};
_.gn.prototype.createLocationInfo=function(D){var t={};D=D.coords;if(D==null?0:D.latitude)t.latitudeE7=Math.floor(D.latitude*1E7);if(D==null?0:D.longitude)t.longitudeE7=Math.floor(D.longitude*1E7);return t};var z1Q=function(){};
_.q=z1Q.prototype;
_.q.JSC$13118_getRequest=function(D,t,H){t=t===void 0?{}:t;H=H===void 0?Cva:H;var e=t;if(this.isNavigationCommand()){var V,b=(V=_.O(D==null?void 0:D.commandMetadata,_.i1))==null?void 0:V.url;e=_.Z8V(D.clickTrackingParams,!0,!1,b,this.JSC$13118_getClientScreen(e))}else e=_.Z8V(D.clickTrackingParams,!1,this.includeCsn);e={context:e};if(V=this.getExtension(D))return this.JSC$13118_buildRequest(e,V,t),V=this.getApiUrl(D),b=Object.assign({},{command:D},this.getRequestConfig(D,t)),e={input:V,requestShell:Dk(V),
innerTubeRequest:e,config:b},e.config.authStrategy?e.config.authStrategy.identity=H:e.config.authStrategy={identity:H},(D=this.JSC$13118_getRequestKey(D,t))&&!e.config.requestKey&&(e.config.requestKey=D),e;D=new _.nZ("Error: Failed to create Request from Command.",D);_.gT(D)};
_.q.getApiUrl=function(D){var t=_.qF(this.getApiPaths(D)),H;(D=(H=_.O(D.commandMetadata,_.i1))==null?void 0:H.apiUrl)&&(t=D);return mL3(CAV(t))};
_.q.isNavigationCommand=function(){return!1};
_.q.JSC$13118_getClientScreen=function(){};
_.q.JSC$13118_getRequestKey=function(){};
_.q.getRequestConfig=function(){};
_.ql.Object.defineProperties(z1Q.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var lS=function(){};
_.P(lS,z1Q);lS.prototype.JSC$13125_getStoreKey=function(){};
lS.prototype.JSC$13118_getRequestKey=function(D,t){t=t===void 0?{}:t;return this.JSC$13125_getStoreKey(D,t)};_.JG={getLocalStorage:_.LJ(function(){try{var D=new AVV;var t=D.isAvailable()?D:null}catch(H){return null}return t?new _.KG(t):null}),
getSessionStorage:_.LJ(function(){var D=new geX;return D.isAvailable()?new _.KG(D):null})};var a6=new _.kI("ENTITY_STATE_TOKEN"),vM=new _.kI("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var D$o=XMLHttpRequest.prototype.fetch,tuf=D$o&&D$o.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!eE?!0:!1;var pp=function(D){this.JSC$13131_storeWithEntities=D};
_.P(pp,lS);_.q=pp.prototype;_.q.getApiPaths=function(){return cr6};
_.q.getExtension=function(D){return _.O(D,_.Hh)||_.O(D,_.C_)||_.O(D,N3B)};
_.q.isNavigationCommand=function(){return!0};
_.q.JSC$13125_getStoreKey=function(D){if((_.r("kevlar_cache_on_ttl_player")||_.r("mweb_enable_shorts_innertube_player_prefetch")||_.r("mweb_use_new_history_manager")||_.r("web_shorts_prefetch_service_enabled"))&&(D=this.getExtension(D))&&D.videoId){var t={videoId:D.videoId};D.playlistId&&(t.playlistId=D.playlistId);D.playerParams&&(t.params=D.playerParams);return _.tE("player",t)}};
_.q.JSC$13118_getClientScreen=function(D){var t;return((t=D.contentPlaybackContext)==null?void 0:t.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.q.JSC$13118_buildRequest=function(D,t,H){if(_.r("enable_interstitial_entity_check")){var e=this.JSC$13131_storeWithEntities;if(t.videoId)for(var V=_.F(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),b=V.next();!b.done;b=V.next()){b=b.value;var a;var w=void 0,h=void 0,K=t.videoId,N=b;(a=e)?(K=_.cH(K+N,"interstitialInteractionStateEntity"),a=(w=(h=_.jR(a.getState().entities,"interstitialInteractionStateEntity",K))==null?void 0:h.primaryButtonClicked)!=null?w:!1):a=!1;if(a)switch(b){case "CONTENT_CHECK_REQUIRED":t.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":t.racyCheckOk=!0}}}t.videoId&&(D.videoId=t.videoId);t.playlistId&&(D.playlistId=t.playlistId);t.index!==void 0&&(D.playlistIndex=t.index+1);t.playerParams&&(D.params=t.playerParams);"startTimeSeconds"in t&&t.startTimeSeconds&&(_.r("enable_player_request_builder_start_time_floor")?D.startTimeSecs=Math.floor(t.startTimeSeconds):D.startTimeSecs=t.startTimeSeconds);H.contentPlaybackContext&&(D.playbackContext={contentPlaybackContext:H.contentPlaybackContext});H.prefetchPlaybackContext&&
(D.playbackContext=Object.assign({},D.playbackContext,{prefetchPlaybackContext:H.prefetchPlaybackContext}),D.context.request||(D.context.request={}),D.context.request.isPrefetch=!0);D.playbackContext||(D.playbackContext={});e=IJf();D.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!e,supportXhr:tuf};H.overrideMutedAtStart&&(D.overrideMutedAtStart=H.overrideMutedAtStart);D.racyCheckOk=!!t.racyCheckOk;D.contentCheckOk=!!t.contentCheckOk;!_.r("captions_prefs_killswitch")&&(H=(H=_.l_("yt-player-caption-language-preferences"))?
H:[],H==null?0:H.length)&&(D.captionParams={viewerSelectedCaptionLangs:H})};
_.q.getRequestConfig=function(D){D=this.JSC$13125_getStoreKey(D);var t;D&&(t={storeStrategy:{storeKey:D}});_.r("web_log_player_watch_next_ticks")&&(t=t||{},t.requestTick="ps_s",t.responseTick="ps_r");return t};
pp[Fc]=[a6];var df=function(){};
_.P(df,lS);_.q=df.prototype;_.q.getApiPaths=function(){return yr6};
_.q.getExtension=function(D){return _.O(D,_.Hh)};
_.q.isNavigationCommand=function(){return!0};
_.q.JSC$13125_getStoreKey=function(D){if((D=this.getExtension(D))&&D.videoId){var t={videoId:D.videoId};D.playlistId&&(t.playlistId=D.playlistId);D.index&&(t.index=D.index);D.params&&(t.params=D.params);return _.tE("next",t)}};
_.q.JSC$13118_getClientScreen=function(D){var t;return((t=D.contentPlaybackContext)==null?void 0:t.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.q.JSC$13118_buildRequest=function(D,t,H){t.videoId&&(D.videoId=t.videoId);t.playlistId&&(D.playlistId=t.playlistId);t.params&&(D.params=t.params);t.index!==void 0&&(D.playlistIndex=t.index);D.racyCheckOk=!(!H.racyCheckOk&&!t.racyCheckOk);D.contentCheckOk=!!t.contentCheckOk;H.contentPlaybackContext&&(D.autonavState=H.contentPlaybackContext.autonavState,D.playbackContext={vis:H.contentPlaybackContext.vis,lactMilliseconds:H.contentPlaybackContext.lactMilliseconds});H.prefetchPlaybackContext&&(D.context.request||
(D.context.request={}),D.context.request.isPrefetch=!0);_.r("captions_hats_killswitch")||(t=_.Ph().getFlag(65),t=t!=null?!t:!1,H=!!_.l_("yt-player-sticky-caption"),D.captionsRequested=t&&H)};
_.q.getRequestConfig=function(D){D=this.JSC$13125_getStoreKey(D);var t;D&&(t={storeStrategy:{storeKey:D}});_.r("web_log_player_watch_next_ticks")&&(t=t||{},t.requestTick="wn_s",t.responseTick="wn_r");return t};
var x$=function(){};
_.P(x$,lS);x$.prototype.getApiPaths=function(){return yr6};
x$.prototype.getExtension=function(D){return _.O(D,_.RH)};
x$.prototype.JSC$13118_buildRequest=function(D,t){t.token&&(D.continuation=t.token)};var Rm=function(D,t){this.playerRequestBuilder=D;this.watchNextRequestBuilder=t};
_.P(Rm,lS);Rm.prototype.getApiPaths=function(){return aZa};
Rm.prototype.getExtension=function(D){return _.O(D,_.Hh)};
Rm.prototype.isNavigationCommand=function(){return!0};
Rm.prototype.JSC$13118_buildRequest=function(D,t,H){D.playerRequest={};this.playerRequestBuilder.JSC$13118_buildRequest(D.playerRequest,t,H);_.r("web_streaming_watch")&&(D.watchNextRequest={},this.watchNextRequestBuilder.JSC$13118_buildRequest(D.watchNextRequest,t,H))};
Rm[Fc]=[pp,df];var HBm;_.uS=new _.kI("SHORTS_CONTROLLER_TOKEN");HBm=new _.kI("SHORTS_STATE_STORE_TOKEN");var WM=function(D,t){var H=_.RE.apply(2,arguments);D=D===void 0?0:D;_.nZ.call(this,t,H);this.errorType=D;Object.setPrototypeOf(this,this.constructor.prototype)};
_.P(WM,_.nZ);var eYw,Vu4,qj6,cYu,uI,gJV,ZBV,ws3,NGm,Gwf,hY9;eYw=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(D){return D+"="}).join("|"));
Vu4=RegExp(".*\\?.*playnext=1.*");_.Im=function(D,t,H,e){this.watchEndpointMap=D;this.reelWatchEndpointMap=t;this.innerTubeTransportService=H;this.fetchPbj=e};
qj6=function(D,t,H){var e=_.qS().resolve(_.by(bBa));_.Im.instance=new _.Im(D,t,H,e)};
_.F53=function(D,t){var H=_.ZU("web_pbj_log_warning_rate",0);H=H>0&&Math.random()<H;var e;if((e=_.O(t.commandMetadata,_.i1))==null||!e.rootVe)return H&&_.Yw(Error("Yf")),!1;var V;e=(V=_.O(t.commandMetadata,_.i1))==null?void 0:V.url;if(!e)return H&&_.Yw(Error("Zf")),!1;if(Vu4.test(e))return!0;if(eYw.test(e))return H&&_.Yw(Error("$f`"+e)),!1;if(_.O(t,_.Hh)){if(!(D.watchEndpointMap.watchNext&&D.watchEndpointMap.player||_.r("kevlar_fetch_initial_data_op_watch_client")))return H&&_.Yw(Error("Rf")),!1;
D=_.ZU("web_pbj_log_warning_rate",0);D=D>0&&Math.random()<D;_.O(t,_.Hh)?Btu(t)?t=!0:(D&&_.Yw(Error("Sf")),t=!1):(D&&_.Yw(Error("Rf")),t=!1);return t}if(_.O(t,_.C_))return zA3(t);if(_.O(t,_.qB))return!0;D=_.yL(D.innerTubeTransportService,t);!D&&H&&_.gT(Error("ag"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(t)});return D};
cYu=function(D,t,H,e,V,b){t={url:t};if(H==null?0:H.itct)t.parentTrackingParams=H.itct;var a=_.qF(nDV);return _.sK(D.innerTubeTransportService,t,a).then(function(w){(w=w.endpoint)||(w=_.xS);(H==null?0:H.itct)&&w&&!w.trackingParams&&(w.trackingParams=H.itct);var h=P7(w);return uI(D,w,H,e,h,V,b)})};
uI=function(D,t,H,e,V,b,a,w){w=w===void 0?{}:w;if(D.fetchPbj&&!_.F53(D,t)&&!_.r("force_one_platform")){w=D.fetchPbj(t);var h=_.Tf(w.then(function(u){if(!u)throw Error("bg");a(h)||b(t,u);return u}));
return h}var K,N,k={rootVe:(K=_.O(t.commandMetadata,_.i1))==null?void 0:K.rootVe,url:(N=_.O(t.commandMetadata,_.i1))==null?void 0:N.url,endpoint:t,page:V};if(_.O(t,_.Hh)){var T,c={contentPlaybackContext:_.So(H,(T=_.O(t.commandMetadata,_.i1))==null?void 0:T.url,e)},U=_.z3();_.r("web_streaming_watch")&&window.TextDecoderStream?(w=acB(D.innerTubeTransportService,t,c,function(u){!k.response&&u.content&&(k.response=u.content);!k.playerResponse&&u.player&&(k.playerResponse=u.player);b(t,k)}),K=MYR(t),K.length&&
(k.preconnect=K,b(t,k)),ws3(w,U,k).catch(function(u){u instanceof WM&&u.errorType===2&&_.r("web_streaming_watch_fallback")&&ZBV(D,t,c,k,b,a,U)})):ZBV(D,t,c,k,b,a,U);
return U.promise}if(_.O(t,_.C_)){var S;if(((S=_.O(t,_.C_))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var L=_.z3();_.s_v(_.qS().resolve(_.uS),t).then(function(u){hY9(D,H,e,V,b,L,u)});
return L.promise}w=_.Tf();var J;K={contentPlaybackContext:_.So(H,(J=_.O(t.commandMetadata,_.i1))==null?void 0:J.url,e)};(J=D.reelWatchEndpointMap.player)&&(J=J().JSC$13118_getRequest(t,K))&&(w=_.sK(D.innerTubeTransportService,J.innerTubeRequest,J.input,t.clickTrackingParams,J.config));J=_.Tf();(N=D.reelWatchEndpointMap.reelItemWatch)&&(N=N().JSC$13118_getRequest(t))&&(J=_.sK(D.innerTubeTransportService,N.innerTubeRequest,N.input,t.clickTrackingParams,N.config));N=_.Tf();_.r("web_enable_delay_shorts_sequence_call_extra")&&
(N=new _.c$(function(u){setTimeout(function(){u(void 0)},200)}));
(!_.r("web_enable_delay_shorts_sequence_call_new")||_.r("web_enable_delay_shorts_sequence_call_forget"))&&(T=D.reelWatchEndpointMap.reelWatchSequence)&&_.O(t,_.C_).sequenceParams&&(K=T().JSC$13118_getRequest(t,K))&&(_.r("web_enable_delay_shorts_sequence_call_forget")?_.sK(D.innerTubeTransportService,K.innerTubeRequest,K.input,t.clickTrackingParams,K.config):N=_.sK(D.innerTubeTransportService,K.innerTubeRequest,K.input,t.clickTrackingParams,K.config));K=_.Tf(k);T=_.z3();Gwf(t,K,w,J,N,b,a,T);return T.promise}var g;
if(_.O(t,WyA)&&((g=_.O(t.commandMetadata,_.i1))==null?0:g.url))return w=aZ8(_.IK(v_().location.href),_.IK(_.O(t.commandMetadata,_.i1).url)).toString(),cYu(D,w,H,e,b,function(){return!1});
if(_.O(t,_.qB))return b(t,k),_.Tf(k);if(_.yL(D.innerTubeTransportService,t)){w=Object.assign({},{tempData:H,disableCache:H.disableCache},w);var Q=_.BZ(D.innerTubeTransportService,t,w).then(function(u){k.response=u;a(Q)||b(t,k);return k});
return Q}return _.Tf(k)};
_.K5f=function(D,t,H,e){if(_.O(t,_.Hh)||_.O(t,_.C_)&&(_.r("mweb_enable_shorts_innertube_player_prefetch")||_.r("kevlar_enable_shorts_prefetch_in_sequence"))||_.O(t,N3B)&&_.r("web_enable_prefetching_videos_on_home")){var V,b={contentPlaybackContext:_.So(H,(V=_.O(t.commandMetadata,_.i1))==null?void 0:V.url,e),prefetchPlaybackContext:ezD(H)},a,w,h;if(((a=_.O(t,_.Hh))==null?void 0:(w=a.watchEndpointSupportedPrefetchConfig)==null?void 0:(h=w.prefetchHintConfig)==null?void 0:h.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(H=
D.watchEndpointMap.watchNext)if(b=H().JSC$13118_getRequest(t,b))return Promise.resolve(_.sK(D.innerTubeTransportService,b.innerTubeRequest,b.input,void 0,b.config).then(function(k){return k}))}else if(H=D.watchEndpointMap.player)if(b=H().JSC$13118_getRequest(t,b))return Promise.resolve(_.sK(D.innerTubeTransportService,b.innerTubeRequest,b.input,void 0,b.config).then(function(k){return k}))}else if(_.yL(D.innerTubeTransportService,t)){var K={tempData:H},N=EW9(D.innerTubeTransportService,t);
return N?new Promise(function(k,T){var c,U;return _.Z(function(S){if(S.nextAddress==1)return S.yield(N,2);if(S.nextAddress!=4)return c=S.yieldResult,c.JSC$13125_getStoreKey(t,K)?S.yield(_.BZ(D.innerTubeTransportService,t,K),4):(T(new _.nZ("Prefetching request builder with no store key.",t)),S.jumpTo(0));U=S.yieldResult;k(U);_.n2(S)})}):Promise.reject(new _.nZ("Prefetching unregistered request builder.",t))}return Promise.reject(new _.nZ("No request builder available to prefetch endpoint.",t))};
gJV=function(D,t){var H,e,V;if(_.O(t,_.Hh)){var b=D.watchEndpointMap.watchNext;b&&(H=b());(D=D.watchEndpointMap.player)&&(e=D())}else if(_.O(t,_.C_))(b=D.reelWatchEndpointMap.reelItemWatch)&&(H=b()),(b=D.reelWatchEndpointMap.player)&&(e=b()),(D=D.reelWatchEndpointMap.reelWatchSequence)&&(V=D());else{a:{D=Dh8(t,D.innerTubeTransportService.endpointMap);if(D!==void 0)if(typeof D.then==="function")_.gT(new _.nZ("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",t));else break a;
D=void 0}D&&(H=D)}var a,w,h;return{content:(a=H)==null?void 0:a.JSC$13125_getStoreKey(t),player:(w=e)==null?void 0:w.JSC$13125_getStoreKey(t),reelSequence:(h=V)==null?void 0:h.JSC$13125_getStoreKey(t)}};
ZBV=function(D,t,H,e,V,b,a){var w=_.Tf(),h=D.watchEndpointMap.player;_.r("web_streaming_player")&&(h=MF(Rm));h&&(h=h().JSC$13118_getRequest(t,H))&&(w=_.sK(D.innerTubeTransportService,h.innerTubeRequest,h.input,t.clickTrackingParams,h.config));h=_.Tf();var K=D.watchEndpointMap.watchNext;K&&(H=K().JSC$13118_getRequest(t,H))&&(h=_.sK(D.innerTubeTransportService,H.innerTubeRequest,H.input,t.clickTrackingParams,H.config));D=_.Tf(e);NGm(t,D,w,h,V,b,a)};
ws3=function(D,t,H){return _.Z(function(e){if(e.nextAddress==1)return e.yield(D,2);t.resolve(H);_.n2(e)})};
NGm=function(D,t,H,e,V,b,a){var w,h,K,N,k;_.Z(function(T){switch(T.nextAddress){case 1:return T.yield(t,2);case 2:w=T.yieldResult;if(b(a.promise))return a.resolve(w),T.return();V(D,w);h=MYR(D);if(!h.length){T.jumpTo(3);break}return T.yield(t,4);case 4:w.preconnect=h,V(D,w);case 3:return _.$p(T,5),T.yield(H,7);case 7:K=T.yieldResult;_.yM(T,6);break;case 5:return N=_.Pv(T),a.reject(N),T.return();case 6:if(K===void 0)return w.reload=!0,V(D,w),a.resolve(w),T.return();if(b(a.promise))return a.resolve(w),
T.return();w.playerResponse=K;V(D,w);_.$p(T,8);return T.yield(e,10);case 10:k=T.yieldResult;_.yM(T,9);break;case 8:_.Pv(T);case 9:if(k===void 0)return w.response={responseContext:{}},a.resolve(w),T.return();if(b(a.promise))return a.resolve(w),T.return();w.response=k;V(D,w);a.resolve(w);_.n2(T)}})};
Gwf=function(D,t,H,e,V,b,a,w){var h,K,N,k,T,c;_.Z(function(U){switch(U.nextAddress){case 1:return U.yield(t,2);case 2:h=U.yieldResult;if(a(w.promise))return w.resolve(h),U.return();b(D,h);K=MYR(D);if(!K.length){U.jumpTo(3);break}return U.yield(t,4);case 4:h.preconnect=K,b(D,h);case 3:return _.$p(U,5),U.yield(H,7);case 7:N=U.yieldResult;_.yM(U,6);break;case 5:return k=_.Pv(U),w.reject(k),U.return();case 6:if(N===void 0)return h.reload=!0,b(D,h),w.resolve(h),U.return();if(a(w.promise))return w.resolve(h),
U.return();h.playerResponse=N;b(D,h);_.$p(U,8);return U.yield(e,10);case 10:T=U.yieldResult;_.yM(U,9);break;case 8:_.Pv(U);case 9:if(T===void 0)return h.response={responseContext:{}},w.resolve(h),U.return();if(a(w.promise))return w.resolve(h),U.return();h.response=T;b(D,h);_.$p(U,11);return U.yield(V,13);case 13:c=U.yieldResult;_.yM(U,12);break;case 11:_.Pv(U);case 12:if(a(w.promise))return w.resolve(h),U.return();c&&(h.reelWatchSequenceResponse=c);b(D,h);w.resolve(h);_.n2(U)}})};
hY9=function(D,t,H,e,V,b,a){var w,h,K,N,k,T;_.Z(function(c){if((w=a)==null||!w.replacementEndpoint)return b.reject(),c.return();h=a.replacementEndpoint;(K=_.O(h,_.C_))?(a.sequenceContinuation&&(K.sequenceParams=a.sequenceContinuation),N=_.qS().resolve(_.uS),k=K.sequenceParams,kwm(N,h)&&delete K.sequenceParams,T=uI(D,h,t,H,e,V,function(){return!1}),T.then(function(U){return _.Z(function(S){if(S.nextAddress==1)return TG6(N,{reelWatchEndpoint:{sequenceParams:k}},U),S.yield(0,2);
b.resolve(U);_.n2(S)})})):b.reject();
_.n2(c)})};_.ct9=function(D){if(D.validatedFragments_.length==0)return null;if(!D.mergedPrefetchedData_){for(var t=[],H=_.F(D.validatedFragments_),e=H.next();!e.done;e=H.next()){e=_.F(D.fragmentConfiguration_[e.value].graftedKeys);for(var V=e.next();!V.done;V=e.next())(V=D.prefetchedData_[V.value].trackingParams)&&t.push(V)}D.mergedPrefetchedData_={};Object.assign(D.mergedPrefetchedData_,D.prefetchedData_,{clientSideGrafts:t})}return D.mergedPrefetchedData_};var j_f;_.QN=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
j_f=function(D,t,H){if(_.QMV(t))return D.prefetchCache_.get(_.yk6(t,H))};_.yN=new _.kI("NAVIGATION_TOKEN");var $$v=function(D){var t=this;var H=H===void 0?GsV():H;var e=e===void 0?_.qS().resolve(_.yN):e;this.onePickCommand=D;this.JSC$13229_playlistNetworkManager=H;this.navigationManager=e;this.videoPickerBuilder=_.swu("yt-addtoplaylist");_.RE3(Jpf(Ypm(gwf(this.videoPickerBuilder.setTitle(D.modalTitle).setSize(1E3).addView(vxa()).addView(lUo())).addView("youtube"),D.selectButtonLabel)),function(V){t.handleAction(V)})};
$$v.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
$$v.prototype.handleAction=function(D){var t=this;if(D&&this.onePickCommand.listId&&D.action==="picked"&&D.docs){var H=[];D.docs.forEach(function(e){H.push({addedVideoId:e.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13229_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,H).then(function(){_.r("playlist_add_video_hard_reload_killswitch")?t.navigationManager.reload():iBn(t.navigationManager)})}};var rtf=function(){if(this.constructor===rtf)throw new TypeError("cg");};
_.q=rtf.prototype;_.q.dispose=function(){};
_.q.disconnect=function(){};
_.q.reconnect=function(){};
_.q.observe=function(D,t,H){return{element:D,option:H}};
_.q.unobserveByKey=function(){};var EDA=function(D,t){t=t===void 0?0:t;rtf.call(this);this.viewroot=D;this.defaultPrescanHeight=t;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),D?{root:D,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.P(EDA,rtf);_.q=EDA.prototype;_.q.dispose=function(){this.disconnect();this.handlers.clear()};
_.q.disconnect=function(D){this.isConnected=!1;this.pauseObservingUntilReconnect=D===void 0?!1:D;this.observer.disconnect();D=_.F(this.prescanObservers.values());for(var t=D.next();!t.done;t=D.next())t.value.disconnect()};
_.q.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var D=_.F(this.handlers),t=D.next();!t.done;t=D.next()){var H=_.F(t.value);t=H.next().value;var e=H.next().value;H=!1;e=_.F(e.keys());for(var V=e.next();!V.done;V=e.next())if((V=V.value)&&V.state==="prescan"){H=!0;break}H&&OBn(this,t).observe(t);this.observer.observe(t)}}};
_.q.handleObserveEvent=function(D){D=_.F(D);for(var t=D.next();!t.done;t=D.next()){t=t.value;var H=this.handlers.get(t.target);if(H){var e=t.isIntersecting;H=_.F(H);for(var V=H.next();!V.done;V=H.next()){var b=_.F(V.value);V=b.next().value;b=b.next().value;V&&(V.state==="visible"&&e||V.state==="hidden"&&!e)&&(b(t.target,V.state),V.calledOnce&&this.unobserveByKey({element:t.target,option:V}))}}}};
_.q.handlePrescanEvent=function(D){D=_.F(D);for(var t=D.next();!t.done;t=D.next()){t=t.value;var H=this.handlers.get(t.target);if(H&&t.isIntersecting){H=_.F(H);for(var e=H.next();!e.done;e=H.next()){var V=_.F(e.value);e=V.next().value;V=V.next().value;e&&e.state==="prescan"&&(V(t.target,e.state),e.calledOnce&&this.unobserveByKey({element:t.target,option:e}))}}}};
_.q.observe=function(D,t,H){var e=(e=this.handlers.get(D))&&e.has(H)?{element:D,option:H}:void 0;if(e)return e;e={element:D,option:H};this.handlers.has(D)||this.handlers.set(D,new Map);var V=this.handlers.get(D);V&&!V.has(H)&&V.set(H,t);this.pauseObservingUntilReconnect||(H.state==="prescan"&&OBn(this,D).observe(D),this.observer.observe(D));return e};
_.q.unobserveByKey=function(D){var t=this.handlers.get(D.element);if(t&&t.has(D.option)){t.delete(D.option);if(D&&D.option.state==="prescan")for(var H=_.F(this.prescanObservers.values()),e=H.next();!e.done;e=H.next())e.value.unobserve(D.element);t.size===0&&(this.handlers.delete(D.element),this.observer.unobserve(D.element))}};
var OBn=function(D,t){var H=D.defaultPrescanHeight;t.hasAttribute("prescan-height")&&(t=Number(t.getAttribute("prescan-height")),isNaN(t)||(H=t));if(D.prescanObservers.has(H))return D.prescanObservers.get(H);t="-0.1px -0.1px "+H+"px -0.1px";t=new IntersectionObserver(D.handlePrescanEvent.bind(D),D.viewroot?{root:D.viewroot,rootMargin:t}:{rootMargin:t});D.prescanObservers.set(H,t);return t};var U$f=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],oWv=function(){var D,t=this;this.JSC$13246_actionRouter=D=D===void 0?_.Qa.getInstance():D;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return t.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return t.visibilityObservedElementHandlerKeys}}},Pwa,Cwf,Sjf;
oWv.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.r("kevlar_use_vimio_behavior")&&_.YC("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=KZD())};
oWv.prototype.dispose=function(){this.visibilityMonitor&&_.g8(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
oWv.prototype.handleVisibilityRefreshed=function(){for(var D=_.F(this.targetMap.entries()),t=D.next();!t.done;t=D.next()){var H=_.F(t.value);t=H.next().value;H=H.next().value;_.nWv(this,t,H)}};
_.MuB=function(D,t,H){Cwf(D,H);var e=_.m$n(D,t);e.element=H;D.targetedElements.set(H,t);_.nWv(D,t,e)};
Cwf=function(D,t){var H=D.targetedElements.get(t);if(H){var e=D.targetMap.get(H);e&&(delete e.element,D.targetMap.set(H,e));D.targetedElements.delete(t);D.visibilityObserver&&D.visibilityObservedElementHandlerKeys&&(H=D.visibilityObservedElementHandlerKeys.get(t))&&(D.visibilityObserver.unobserveByKey(H),D.visibilityObservedElementHandlerKeys.delete(t))}};
_.nWv=function(D,t,H){var e=H.action,V=H.element;V&&e&&(U$f.includes(t)||_.YC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||D.visibilityMonitor&&D.visibilityMonitor.isNodeVisible(V)?Sjf(D,t,H):D.visibilityObserver&&(D.visibilityObservedElementHandlerKeys||(D.visibilityObservedElementHandlerKeys=new WeakMap),e=D.visibilityObserver.observe(V,function(){Sjf(D,t,H);D.visibilityObservedElementHandlerKeys.delete(V)},{calledOnce:!0,
state:"visible"}),D.visibilityObservedElementHandlerKeys.set(V,e)))};
Sjf=function(D,t,H){var e=H.action;(H=H.element)&&e&&(_.zB(D.JSC$13246_actionRouter,[e],H),D.targetMap.delete(t),D.targetedElements.delete(H),D.triggeredTargets.add(t))};
_.m$n=function(D,t){var H=D.targetMap.get(t);H||(H={},D.targetMap.set(t,H));return H};
_.BM=function(){Pwa||(Pwa=new oWv);return Pwa};var Xsw=document.createElement("div");Xsw.style.touchAction="pan-down";var N7D=Xsw.style.touchAction==="pan-down";var fcQ,L5n;fcQ=function(){this.hammerFn=dxw();this.JSC$13254_screenManager=_.Pc();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Nx(83615);_.g3(this.JSC$13254_screenManager,this.ve);ksu()};
_.zi=function(){L5n||(L5n=new fcQ);return L5n};
fcQ.prototype.registerTouchEvents=function(D,t,H){var e=_.RE.apply(3,arguments),V=this.hammerFn(D,{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}]]});H&&V.set({touchAction:H});this.nodeManagerMapping.set(D,V);var b=
T7V(t);e=_.F(e);for(var a=e.next();!a.done;a=e.next()){a=a.value;if(a.includes("swipe")||a.includes("pinch")||a.includes("pan"))a.includes("swipe")?V.get("swipe").set({enable:!0,direction:b,velocity:.2}):a.includes("pinch")?V.get("pinch").set({enable:!0}):a.includes("pan")&&(V.get("pan").set({enable:!0,direction:b}),V.get("swipe").set({enable:!0,direction:b,velocity:.2}),V.get("swipe").recognizeWith("pan"));Atn(this,D,V,a)}};
var Atn=function(D,t,H,e){H.on(e,function(V){if(e.includes("pinch"))D.lastPinchTime=Date.now();else if(e.includes("swipe")&&Date.now()-D.lastPinchTime<400)return;V.pointerType!=="mouse"&&(V=e==="doubletap"?{coordinates:V.center}:e.includes("pan")?V:e.includes("swipe")?{target:V.target}:{},t.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0,detail:V})))})};
fcQ.prototype.unregisterTouchEvents=function(D){var t=_.RE.apply(1,arguments),H=this.nodeManagerMapping.get(D);if(H){t=_.F(t);for(var e=t.next();!e.done;e=t.next())H.off(e.value);this.nodeManagerMapping.delete(D);D.style.touchAction="unset"}};var gWQ=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var crX=null;var JtV=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},gD8=function(){JtV.instance||(JtV.instance=new JtV);
return JtV.instance},JrD=function(D){var t=D.networkEvents;
D.networkEvents=[];return _.r("enable_network_monitoring")?t:[]};var Yj9;Yj9={};_.lco=FU("yt-serviceworker-metadata",{objectStores:(Yj9.auth={addedAtVersion:1},Yj9["resource-manifest-assets"]={addedAtVersion:2},Yj9),shared:!0,upgrade:function(D,t){t(1)&&RP(D,"resource-manifest-assets");t(2)&&RP(D,"auth")},
version:2});var UYX=self.location.origin+"/";oDV([/\.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\//]);oDV([/purge_shell=1/]);var vWf=void 0;vWf=vWf===void 0?[]:vWf;for(var pso=[],d$n=_.F(inm),x$9=d$n.next();!x$9.done;x$9=d$n.next())pso.push({key:x$9.value});for(var RYm=_.F(vWf),uG4=RYm.next();!uG4.done;uG4=RYm.next())pso.push(uG4.value);var W5f,Rh=_.VA==null?void 0:(W5f=_.VA.performance)==null?void 0:W5f.memory,CU3=!1,Yb3={},SbV={},u_={},W7=navigator;var DQ=function(D){this.JSC$13298_expiringStorage=new mh(D)};
DQ.prototype.set=function(D,t,H){H=H!==void 0?Date.now()+H:void 0;this.JSC$13298_expiringStorage.set(D,t,H)};
DQ.prototype.get=function(D){return this.JSC$13298_expiringStorage.get(D)};
DQ.prototype.remove=function(D){this.JSC$13298_expiringStorage.remove(D)};var WZR=_.zk(["https://www.youtube.com/",""]),IZV=_.zk(["https://studio.youtube.com/",""]),Di8="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",yrX=null,b08;var Ic3=_.zk(["https://www.youtube.com/iframe_api"]),tX=function(){this.playerResolver_=_.z3();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.fJ;this.playbackDurationSeconds_=0},Q_f=function(D){var t=function(){return window.YT&&typeof window.YT.ready==="function"};
if(t())return _.Tf(window.YT);var H=_.z3(),e=_.OH("SCRIPT");e.onload=e.onreadystatechange=function(){e.readyState&&e.readyState!="loaded"&&e.readyState!="complete"||(e.onload=_.fJ,e.onreadystatechange=_.fJ,e.onerror=_.fJ,t()?H.resolve(window.YT):H.reject(new _.nZ("Failed to load the iframe player library","script.onload",e.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
e.onerror=function(V){e.onload=_.fJ;e.onreadystatechange=_.fJ;e.onerror=_.fJ;H.reject(new _.nZ("Failed to load the iframe player library","script.onerror",V&&V.target&&V.target.src))};
_.qd(e,_.E5(Ic3));D.insertBefore(e,D.firstChild);return H.promise},yt6=function(D,t,H){var e,V;
_.Z(function(b){switch(b.nextAddress){case 1:return D.playbackEndedCallback_=H,_.$p(b,2),b.yield(Q_f(t.parentElement||null),4);case 4:e=b.yieldResult;_.yM(b,3);break;case 2:return V=_.Pv(b),V instanceof _.nZ&&V.args&&V.args[0]=="script.onerror"?_.Yw(V):_.gT(V),b.return();case 3:e.ready(function(){return new e.Player(t,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:D.onPlayerReady_.bind(D),onStateChange:D.onPlayerStateChange_.bind(D),
onCueRangeExit:D.onCueRangeExit_.bind(D)}})}),_.n2(b)}})};
_.q=tX.prototype;_.q.getPlayerPromise=function(){return this.playerPromise_};
_.q.onPlayerReady_=function(D){this.playerResolver_.resolve(D.target)};
_.q.onPlayerStateChange_=function(D){if(D.data==YT.PlayerState.PLAYING){D=D.target;var t=D.getCurrentTime();D.addCueRange("playback",t,t+this.playbackDurationSeconds_)}};
_.q.onCueRangeExit_=function(D){D.data=="playback"&&(D.target.stopVideo(),this.playbackEndedCallback_())};
_.q.stopVideo=function(){this.playerPromise_.then(function(D){D.stopVideo()})};
var BGn=function(D){D.playerVars_&&D.playerPromise_.then(function(t){typeof t.cueVideoByPlayerVars!="function"?_.Yw(new _.nZ("vmh: player API not ready","cueVideoByPlayerVars",typeof t.cueVideoByPlayerVars)):t.cueVideoByPlayerVars(D.playerVars_)})};
tX.prototype.playVideo=function(){var D=this;this.playerVars_&&this.playerPromise_.then(function(t){typeof t.loadVideoByPlayerVars!="function"?(t=new _.nZ("vmh: player API not ready","loadVideoByPlayerVars",typeof t.loadVideoByPlayerVars),_.gT(t)):t.loadVideoByPlayerVars(D.playerVars_)})};
var zY3=function(D,t,H,e,V){t&&(H===void 0&&(H=0),e===void 0&&(e=0),D.playbackDurationSeconds_=e/1E3,D.playerVars_={adformat:"17_8",videoId:t,suggestedQuality:"hd720",startSeconds:H/1E3,player_params:V})};
tX.prototype.mute=function(){this.playerPromise_.then(function(D){D.mute()})};
tX.prototype.unMute=function(){this.playerPromise_.then(function(D){D.unMute()})};var DW4=function(D,t){var H=W3();D||(D="unknown");t||(t="unknown");D="MAIN_APP_WEB_PAGE_TYPE_"+D.toUpperCase();D in ZLo||(D="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");t="MAIN_APP_WEB_REQUEST_TYPE_"+t.toUpperCase();t in s0o||(t="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.Gk(H,{mainAppWeb:{pageType:D,requestType:t,isShellLoad:_.lh("IS_SHELL_LOAD",!1)}})},tU6={start:function(){_.Gk(KKK(),{mainAppWeb:_.th()})},
success:function(){_.EG(KKK(),"SUCCESS")},
failure:function(){_.EG(KKK(),"FAILURE")},
cancelled:function(){_.EG(KKK(),"CANCELLED")}};var Hmn,eaf,hi6;Hmn=_.zk(["/sw.js"]);eaf=_.zk(["/sw.js?0"]);_.VUn=_.E5(Hmn);hi6=_.E5(eaf);var bm6=function(){var D=Error.apply(this,arguments);this.message=D.message;"stack"in D&&(this.stack=D.stack)};
_.P(bm6,Error);_.Vb.prototype.load=function(D){this.megabloxUrl_=_.YC("YPC_MB_URL");_.Iz(this.megabloxUrl_,(0,_.Mc)(function(){D&&D()},this))};
_.EuK=function(D,t,H,e,V,b,a,w,h,K,N){_.Esk(h);D.load((0,_.Mc)(function(){try{var k=b?b:_.YC("HL"),T=_.YC("SESSION_INDEX");_.WKD("client",function(){CDo("59",{helpCenterPath:"/youtube",locale:k,window:window}).JSC$9979_loadChatSupport({authuser:String(T)})})}catch(c){throw HT(10,N,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),V&&V(c),_.gT(c),c;
}q39(this,t,H,e,V,b,a,w,h,K,N)},D))};
_.Vb.prototype.openFixFlowDialog=function(D,t,H,e){this.load((0,_.Mc)(function(){try{FUV(this,_.RD("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(D).withIntegratorCallback(t).load(H,e)}catch(V){throw _.gT(V),V;}},this))};
var FUV=function(D,t,H,e){var V=t.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.r("enable_window_constrained_buy_flow_dialog")&&(V=V.usingPopupStyle(_.RD("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));e&&(V=V.usingCloseCallback(e));t.bootstrap.fromPaymentsUrl(D.megabloxUrl_);D=t.bootstrap.asMashupMode(V);H=H?H:_.YC("HL");D.usingGaiaIndex(_.YC("SESSION_INDEX")).usingLocale(H).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.r("enable_google_payments_buyflow_material2_style_web")?
D.usingStyle(":m2;pc=#444;ac=#065fd4"):D.usingStyle(":md;pc=#444;ac=#065fd4");return D},q39=function(D,t,H,e,V,b,a,w,h,K,N){try{var k=_.RD("payments.business.integration");
if(!k)throw new bm6("payments.business.integration is undefined");var T=k.standaloneContextAuthId.forUserId(),c=FUV(D,k,b,function(){NdD(!1);w&&w()});
a&&c.usingServerAnalyticsEventHandler(a);var U=c.inStandaloneContext(T).buyFlow(function(S){if(S&&(!S.integratorData||S.integratorData===""||S.error))if(S.error!=null)if(String(S.error)==="-1")_.K8D(h);else{var L=String(S.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";HT(10,N,L,S.debugCode);_.eZ(L,h,S.debugCode);L=new _.nZ("PAYMENT_ERROR_MESSAGE::"+S.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+S.internalErrorDetails);
_.gT(L)}else HT(10,N,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.eZ("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",h,"EMPTY_INTEGRATOR_DATA"),_.gT(Error("hg"));H&&(NdD(!1),H(S))}).withEncryptedParameters(t);
K&&U.withClientParameters(CBD(_.h3A(K)));U.load(function(){HT(24,N);_.dE("ttc",void 0,"commerce_transaction");Y0("commerce_transaction");e&&(e(),NdD(!0))},function(S){if(S==null?0:S.debugCode)var L=S==null?void 0:S.debugCode;
else if(!S||(S==null?0:S.debugCode))L="EMPTY_LOAD_FAILURE_ERROR",_.gT(Error(L));else{L="EMPTY_LOAD_FAILURE_DEBUG_CODE";var J=new _.nZ("LOAD_FAILURE:"+S.message," DEBUG_CODE:"+L);_.gT(J)}HT(10,N,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",L);_.eZ("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",h,L);_.gT(S);V&&V(S)})}catch(S){throw S instanceof bm6&&(HT(10,N,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),V&&V(S)),_.gT(S),S;
}};var anw;anw=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.s86=function(D,t){t=t===void 0?!1:t;D=anw.test(D)?_.MN(D):null;!t&&window.payments||!D?(D=_.z3(),t=D.promise,D.resolve()):t=_.Nkn(D,{attributes:{"data-payments-main":"",id:"payment-lib"}});return t};var wRn;wRn=_.zk(["//www.googletagmanager.com/gtm.js?id=",""]);_.HP=function(D,t){_.wF(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:t}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.YC("GL")}),t=_.OH("SCRIPT"),t.async=!0,_.qd(t,_.E5(wRn,D)),t.id="gtm",D=document.getElementsByTagName("script"),D.length==0?document.head.appendChild(t):(D=D[0],D.parentNode.insertBefore(t,D)))};
_.e8=function(D){if(D=JSON.parse(D))window.dataLayer=window.dataLayer||[],window.dataLayer.push(D)};var Zm6,sd3;Zm6=_.zk(["https://clients2.google.com/gr/gr_sync.js"]);_.wCT=function(){};
_.wCT.prototype.init=function(){if(sd3()){var D=_.z3();D.resolve();return D.promise}return _.Nkn(_.E5(Zm6)).then(function(){if(!sd3())throw Error("ig");},function(){throw Error("jg");
})};
_.Z1A=function(){if(!sd3())return"";var D=window.google.gr;D.init({async:{schedule:"sync"},merchantId:"youtube"});D.start();D=D.finish();return D==null?"":D};
sd3=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.X=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.P(_.X,PolymerFakeBaseClassWithoutHtml);_.ng=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.P(_.ng,PolymerFakeBaseClassWithoutHtml);var kgV=window.ShadyDOM;var BdK,Qgu,D5V,t3$,e9K,V3A,VW,Es;BdK=_.r("enable_shadydom_free_scoped_query_methods");Qgu=_.r("enable_shadydom_free_scoped_node_methods");D5V=_.r("enable_shadydom_free_scoped_readonly_properties_batch_one");t3$=_.r("enable_shadydom_free_parent_node");e9K=_.r("enable_shadydom_free_children");V3A=_.r("enable_shadydom_free_last_child");VW=window.ShadyDOM;_.cT=VW&&VW.noPatch&&VW.wrap?VW.wrap:VW?function(D){return VW.patch(D)}:function(D){return D};
Es=function(D){if(D instanceof ShadowRoot)this.host=(0,_.cT)(D.host),this.root=D;else if(D.$$){this.host=(0,_.cT)(D);var t;this.root=(t=D.root)!=null?t:this.host}else if(D.polymerController){this.host=(0,_.cT)(D);var H;this.root=(H=this.host.shadowRoot)!=null?H:this.host}else this.root=this.host=(0,_.cT)(D)};
y9K();zi$();b3R();qR6();H3$();var ham={querySelector:function(D,t){t=c9R(t,a5(D));D=_.wx(D);return Z9(D).prototype.querySelector.call(D,t)},
querySelectorAll:function(D,t){t=c9R(t,a5(D));D=_.wx(D);return Z9(D).prototype.querySelectorAll.call(D,t)}},Gjf={appendChild:function(D,t){var H=a5(D),e=_.Fd(t);
return _.W86(_.wx(D),H?_.hh(t,H,e):t)},
cloneNode:function(D,t){var H=_.Fd(D);D=_.wx(D);t=Z9(D).prototype.cloneNode.call(D,t);return H?G1(t,H):t},
contains:function(D,t){var H=a5(D),e=_.Fd(t);return H!==e?!1:I6k(D,t)},
insertBefore:function(D,t,H){var e=a5(D),V=_.Fd(t);D=_.wx(D);t=e?_.hh(t,e,V):t;return Z9(D).prototype.insertBefore.call(D,t,H)},
removeChild:function(D,t){var H=a5(D);D=_.wx(D);t=H?G1(t,H):t;return Z9(D).prototype.removeChild.call(D,t)},
replaceChild:function(D,t,H){var e=a5(D),V=_.Fd(t);t=e?_.hh(t,e,V):V?G1(t,V):t;H=e?G1(H,e):H;D=_.wx(D);return Z9(D).prototype.replaceChild.call(D,t,H)},
getRootNode:function(D,t){t=t===void 0?{composed:!0}:t;var H;if(((H=t)!=null?H:{}).composed)D=miV(D);else{t=D;for(D=$i8(D);D;)t=D,D=r9D(D);D=t}return D}},ar8=D5V?{firstChild:vsA,
nextSibling:J9V,previousSibling:l6$,firstElementChild:pVR,lastElementChild:xiR,nextElementSibling:gsD,previousElementSibling:YvK,childNodes:RiV}:{};t3$&&(ar8.parentNode=A9D);e9K&&(ar8.children=uok);V3A&&(ar8.lastChild=diV);BdK&&FRu(ham);Qgu&&FRu(Gjf);wz6();var Z3T=function(D){this.node=D instanceof ShadowRoot?D.host:D};
si6();h93();var KR$=new WeakMap;var k_T=Symbol("Ad");var i3k=new Set(["tap","track","down","up"]),rDk=_.r("pbcm_fi_query_decorators");var bj=function(){return _.ng.apply(this,arguments)||this};
_.P(bj,_.ng);_.q=bj.prototype;_.q.getState=function(){return this.store.getState()};
_.q.dispatch=function(D){this.store.dispatch(D)};
_.q.beforeRegister=function(){if(this&&typeof this==="object"){var D;var t=!!this.useSignals||!((D=this.polymerController)==null||!D.useSignals)}else t=!1;if(!t&&this.properties)for(t=_.F(Object.keys(this.properties)),D=t.next();!D.done;D=t.next()){var H=D.value;D=this.properties[H];if(D.selector){if(D.computed)throw Error("pg");H=["reduxPropertiesRecomputeTrigger",'"'+H+'"'].concat(_.A6(D.selectorArgs||[])).join(",");D.computed="recomputeReduxSelector("+H+")"}}};
_.q.attached=function(){var D=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){D.reduxPropertiesRecomputeTrigger++}));
_.r("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.q.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.q.recomputeReduxSelector=function(D,t){var H=_.RE.apply(2,arguments),e=this.properties[t].selector;if(!e)throw Error("ng`"+t);return e.apply(null,[this.store.getState()].concat(_.A6(H)))};
_.q.select=function(D){var t=_.RE.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return D.apply(null,[this.store.getState()].concat(_.A6(t)))};
_.ql.Object.defineProperties(bj.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("og");}}});
bj.prototype.recomputeReduxSelector=bj.prototype.recomputeReduxSelector;_.d([_.M(),_.x("design:type",Number)],bj.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.d([_.Cg()],bj);var qK=[],PHA={},dx=function(){return az.apply(this,arguments)||this};
_.P(dx,az);dx.prototype._addPropertyEffect=function(D,t,H){if(t==="__observeEffects"&&H){var e,V=(e=H.info.method)!=null?e:H.info.methodName;if(V){var b=this[V];this[V]=function(){qK.push(V);try{b==null||b.apply(this,arguments)}finally{qK.pop()}}}}_.vb._addPropertyEffect.apply(this,[D,
t,H])};
dx.prototype._setPendingProperty=function(D,t,H){if(qK.length){var e=qK[qK.length-1],V;(V=PHA[this.is])!=null&&V.has(e)||(nr$(this.is,e),_.L7("polymerPropertyChangedInObserver",{componentName:this.is,observerName:e}))}return _.vb._setPendingProperty.apply(this,[D,t,H])};
_.d([QS8()],dx);var CHX=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),M38,SZ={};_.r("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=SZ);var Lg=function(){return _.ng.apply(this,arguments)||this};
_.P(Lg,_.ng);Lg.prototype._setUnmanagedPropertyToNode=function(D,t,H){D.loggingStatus&&(D.loggingStatus.isDeclarativeExternal=!0);if(H!==D[t]||typeof H==="object")D[t]=H;D.is&&D.polymerController&&D.polymerController!==D&&Xd(D.is,t,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");D.loggingStatus&&(D.loggingStatus.isDeclarativeExternal=!1)};
_.d([_.Cg()],Lg);m5A()&&(WF.prototype._setUnmanagedPropertyToNode=(new Lg)._setUnmanagedPropertyToNode);_.R9K={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(D){},set polymerController(D){}}]};var pg=function(){var D=az.apply(this,arguments)||this;D.json=function(){};
return D};
_.P(pg,az);pg.prototype.equals=function(D,t){return D===t};
pg.prototype.isEmpty=function(D){var t;(t=!D)||(t=_.d6(D)&&D.length===0);return t};
_.d([QS8()],pg);var Ej9=function(D){D=uL3(D);ez.call(this,D)};
_.P(Ej9,ez);Ej9.prototype.addProvider=function(D){D=D.key?D:uL3([D])[0];var t=this.keyIdToIndex.get(D.key.id);if(t){if(AD$(D,this.providers[t]))throw Error("qg`"+D.key.displayName);}else ez.prototype.addProvider.call(this,D)};
var KUB=new Ej9([]);var Ns4=!1;var pzX={};Ns4||(vrD(),Ns4=!0);
pzX.InjectBehavior={initializeInjection:function(){var D=this.provide;try{if((D=D!=null?D:[])&&D.length>0)for(var t=uL3(D),H=_.F(t),e=H.next();!e.done;e=H.next())KUB.addProvider(e.value);var V=new Set;gr$(this.behaviors||[],V);t={};for(var b=_.F(V),a=b.next();!a.done;a=b.next()){var w=a.value;w.inject&&Object.assign(t,w.inject)}this.inject&&Object.assign(t,this.inject);for(var h=_.F(Object.keys(t)),K=h.next();!K.done;K=h.next()){var N=K.value,k=t[N];try{this[N]=KUB.resolve(k)}catch(T){throw T;}}}catch(T){throw Error(T.message);
}}};var x56;var uiA=/\bclass\b/.test(function(){}.toString()),Qi3=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var kjn=function(D){this.wasDefined=!0;Array.isArray(D)||D instanceof Array?(this.JSC$13427_getImpl=D[0],this.JSC$13427_setImpl=D[1]):this.JSC$13427_getImpl=D};
_.q=kjn.prototype;_.q.getWithPath=function(D){return z9X(this.JSC$13427_getImpl(),D)};
_.q.setWithPath=function(D,t){var H=this;if(D.length)throw Error("rg");if(!this.JSC$13427_setImpl)throw Error("sg");$M(function(){H.JSC$13427_setImpl(t)})};
_.q.notifyPath=function(){throw Error("tg");};
_.q.notifySplices=function(){throw Error("ug");};
_.q.getChangeRecordSignal=function(D,t){var H=this;if(D.length)throw Error("vg");return function(){var e=H.getWithPath(D);return{path:t!=null?t:"",base:e,value:e}}};
_.q.getSplicesSignal=function(){throw Error("wg");};
_.q.getPathMutationSignal=function(){throw Error("xg");};
_.q.pop=function(){throw Error("yg");};
_.q.push=function(){throw Error("zg");};
_.q.splice=function(){throw Error("Ag");};
_.q.unshift=function(){throw Error("Bg");};var FW=function(D){var t=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(D)||D instanceof Array?(this.JSC$13432_getImpl=D[0],this.JSC$13432_setImpl=D[1]):this.JSC$13432_getImpl=D;this.wasDefined=!1;_.EP(function(){t.wasDefined=t.JSC$13432_getImpl()!==void 0})};
FW.prototype.getWithPath=function(D){return z9X(this.JSC$13432_getImpl(),D)};
FW.prototype.setWithPath=function(D,t){var H=this;if(D[D.length-1]!=="*"&&D[D.length-1]!=="splices"){var e=_.EP(function(){return H.getWithPath([])});
if(D.length===0){if(!this.JSC$13432_setImpl)throw Error("Cg");if(e===t)return;this.wasDefined||(this.wasDefined=t!==void 0);$M(function(){H.JSC$13432_setImpl(t)})}else{for(var V=0;V<D.length-1;V++){if(!e)return;
e=e[D[V]]}V=D[D.length-1];e&&(e[V]=t);this.wasDefined||(this.wasDefined=D.length>1||t!==void 0)}TsQ(this,D,{pathComponents:D,value:t})}};
FW.prototype.notifyPath=function(D,t){D.length===0?t&&this.setWithPath(D,t.value):TsQ(this,D,{pathComponents:D,value:t==null?void 0:t.value,fallbackWhenUndefined:t==null?void 0:t.value})};
var TsQ=function(D,t,H,e){if(D.setMutationSignal){var V=++D.mutationIndex,b=[D.observedPath],a=D.observedPath,w;t.length===0&&(w=a);for(var h=0;h<t.length;h++){var K=a.subPaths[t[h]];if(!K)break;b.push(K);a=K;h===t.length-1&&(w=K)}for(t=!1;b.length;)a=b.shift(),a.data={index:V,mutation:H,spliceMutationIndex:e},t||(t=a===w),t&&b.push.apply(b,_.A6(Object.values(a.subPaths)));$M(function(){D.setMutationSignal(V)})}};
FW.prototype.notifySplices=function(D,t){var H=this,e=_.EP(function(){return H.getWithPath(D)}),V=[].concat(_.A6(D),["splices"]);
TsQ(this,V,{pathComponents:V,value:{indexSplices:t}});if(e==null?0:e.length)t=this.mutationIndex,V=[].concat(_.A6(D),["length"]),TsQ(this,V,{pathComponents:V,value:e.length},t)};
var cc9=function(D,t,H,e,V,b){D.notifySplices(H,[{index:e,addedCount:V,removed:b,object:t,type:"splice"}])},jda=function(D,t){D=D.observedPath;
for(var H=0;H<t.length;H++){var e=t[H],V=D.subPaths[e];V||(V={pathComponents:t.slice(0,H+1),subPaths:{}},D.subPaths[e]=V);D=V}},imo=function(D,t,H){jda(D,t);
if(!D.getMutationSignal){var e=_.F(_.KR(D.mutationIndex,void 0,"sNBMCd"));D.getMutationSignal=e.next().value;D.setMutationSignal=e.next().value}var V=D.getMutationSignal;return _.jj(function(){V();return H($Wf(D,t))},void 0,"zvsXEd")};
FW.prototype.getChangeRecordSignal=function(D,t){var H=this,e=this.mutationIndex,V;return imo(this,D,function(b){if(b&&b.index>e){var a=b.mutation;e=b.index;V=void 0}b=_.EP(function(){return H.getWithPath(D)});
if(a){var w=a.pathComponents[a.pathComponents.length-1],h=[].concat(_.A6(a.pathComponents));if(w==="splices"||w==="length")return{base:b,path:(t?[t].concat(_.A6(h)):h).join("."),value:a.value};var K=D.length>h.length?D:h,N;return{base:b!=null?b:a.fallbackWhenUndefined,path:(t?[t].concat(_.A6(K)):K).join("."),value:(N=_.EP(function(){return H.getWithPath(K)}))!=null?N:a.fallbackWhenUndefined}}V||(V={base:b,
path:(t?[t].concat(_.A6(D)):D).join("."),value:b});return V})};
FW.prototype.getSplicesSignal=function(D){var t=this.mutationIndex,H;return imo(this,D,function(e){if(e&&e.index>t&&e.spliceMutationIndex!==t){var V=e.mutation;t=e.index;H=void 0}return V&&V.pathComponents[V.pathComponents.length-1]==="splices"?H=e=V.value:H})};
FW.prototype.getPathMutationSignal=function(D){var t=this;jda(this,D);if(!this.getMutationSignal){var H=_.F(_.KR(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=H.next().value;this.setMutationSignal=H.next().value}var e=this.getMutationSignal,V=this.mutationIndex,b;return _.jj(function(){e();var a=$Wf(t,D);if(a&&a.index>V&&a.mutation&&DnR(a.mutation.pathComponents,D)){var w=a.mutation;V=a.index}if(!b||V!==b.index){var h,K;a=(K=_.EP(function(){return t.getWithPath(D)}))!=null?K:(h=w)==null?
void 0:h.fallbackWhenUndefined;
b={index:V,value:a}}return b},void 0,"RXYC9b")};
var $Wf=function(D,t){D=D.observedPath;t=_.F(t);for(var H=t.next();!H.done;H=t.next())D=D.subPaths[H.value];return D.data};
FW.prototype.pop=function(D){var t=this,H=_.EP(function(){return t.getWithPath(D)});
if(!(H instanceof Array))throw Error("Dg");var e=H.length>0,V=H.pop();e&&cc9(this,H,D,H.length,0,[V]);return V};
FW.prototype.push=function(D){var t=_.RE.apply(1,arguments),H=this,e=_.EP(function(){return H.getWithPath(D)});
if(!(e instanceof Array))throw Error("Eg");var V=e.length,b=e.push.apply(e,_.A6(t));t.length&&cc9(this,e,D,V,t.length,[]);return b};
FW.prototype.splice=function(D,t,H){var e=_.RE.apply(3,arguments),V=this,b=_.EP(function(){return V.getWithPath(D)});
if(!(b instanceof Array))throw Error("Fg");t<0?t=b.length-Math.floor(-t):t&&(t=Math.floor(t));var a=b.splice.apply(b,[t,H].concat(_.A6(e)));(e.length||a.length)&&cc9(this,b,D,t,e.length,a);return a};
FW.prototype.unshift=function(D){var t=_.RE.apply(1,arguments),H=this,e=_.EP(function(){return H.getWithPath(D)});
if(!(e instanceof Array))throw Error("Gg");var V=e.unshift.apply(e,_.A6(t));t.length&&cc9(this,e,D,0,t.length,[]);return V};var aT=function(D,t,H){this.model=D;this.unknownSignalResolver=t;this.options=H;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];t=_.F(wWA());D=t.next().value;t=t.next().value;this.owner=D;this.disposeImpl=t};
aT.prototype.dispose=function(){if(!this.isDisposed){for(var D=_.F(this.childSignalProxies),t=D.next();!t.done;t=D.next())t.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var rcv=function(D,t){D=_.ej(D.owner);try{t()}finally{_.ej(D)}};
aT.prototype.effect=function(D){rcv(this,function(){_.LR(D,"f")})};
var Omv=function(D,t){D.options!=null||(D.options={});var H;(H=D.options).immutableProps!=null||(H.immutableProps=new Set);D.options.immutableProps.add(t)},fJV=function(D,t){t=""+t;
UW6(D,t);var H,e;if((H=D.options)==null?0:(e=H.immutableProps)==null?0:e.has(t))return!0;var V;if((V=D.model.__signalCache)==null?0:V.has(t))H=D.model.__signalCache.get(t),Array.isArray(H)&&Omv(D,t);var b,a,w;return(w=(b=D.options)==null?void 0:(a=b.immutableProps)==null?void 0:a.has(t))!=null?w:!1},ojm=function(D,t){var H;
D.unknownSignalResolver&&(H=D.unknownSignalResolver(t));var e,V;((e=D.options)==null?0:(V=e.immutableProps)==null?0:V.has(t))?H!=null||(H=new kjn(_.KR(D.model[t],void 0,"By5iP"))):H!=null||(H=new FW(_.KR(D.model[t],void 0,"CXghNc")));var b=D.model.hostElement;Object.defineProperty(D.model,t,{get:function(){XzX(b,t);return H.getWithPath([])},
set:function(a){fg(b,t);D.setWithPath([t],a)},
configurable:!0});return H},UW6=function(D,t){var H,e,V;
((H=D.model.__signalCache)==null||!H.has(t))&&((e=D.options)==null?0:(V=e.externalSignalProps)==null?0:V.has(t))&&D.model[t]},WT=function(D,t){t=""+t;
var H=D.signalCache[t];if(H!==void 0)return H;H=!1;UW6(D,t);var e;if((e=D.model.__signalCache)==null?0:e.has(t))if(H=D.model.__signalCache.get(t),Array.isArray(H))H=!0,Omv(D,t);else return D.signalCache[t]=D.model.__signalCache.get(t).signal,D.signalCache[t];var V,b;e=(b=(V=D.options)==null?void 0:V.reactivityMode)!=null?b:0;var a,w;if(!((a=D.options)==null?0:(w=a.reactiveProps)==null?0:w.has(t))&&!H&&e===1)throw Error("Hg`"+t);V=H?P6n(D,t):ojm(D,t);return D.signalCache[t]=V},P6n=function(D,t){var H=
Object.getOwnPropertyDescriptor(D.model.constructor.prototype,t),e=function(){return D.model[t]};
return new kjn(H&&H.get&&!H.set?e:[e,function(V){D.model[t]=V}])};
aT.prototype.getWithPath=function(D){var t=_.F(D);D=t.next().value;t=D_(t);XzX(this.model.hostElement,""+D);return WT(this,D).getWithPath(t)};
aT.prototype.setWithPath=function(D,t){if(D.length){fg(this.model.hostElement,D.join("."));var H=_.F(D);D=H.next().value;H=D_(H);WT(this,D).setWithPath(H,t)}};
aT.prototype.getPathMutationSignal=function(D){var t=_.F(D);D=t.next().value;t=D_(t);return WT(this,D).getPathMutationSignal(t)};
aT.prototype.notifyPath=function(D,t){var H=_.F(D);D=H.next().value;H=D_(H);WT(this,D).notifyPath(H,t)};
var njf=function(D,t){if(t.type==="literal")return function(){return{rootWasDefined:!0,value:t.value}};
var H=R5(t.path),e=_.F(H),V=e.next().value;e=D_(e);var b,a;if(t.type==="path"&&(H.length===1||((b=D.options)==null?0:(a=b.immutableProps)==null?0:a.has(V))))return function(){var k=D.getWithPath(H.slice(0,1));k=z9X(k,H.slice(1));return{rootWasDefined:WT(D,H[0]).wasDefined,value:k}};
var w=WT(D,V);if(t.type==="path"){var h=w.getPathMutationSignal(e);return function(){var k,T=(k=h())==null?void 0:k.value;return{rootWasDefined:w.wasDefined,value:T}}}if(t.type==="splices"){var K=w.getSplicesSignal(e);
return function(){var k=K();return{rootWasDefined:w.wasDefined,value:k}}}var N=w.getChangeRecordSignal(e,""+V);
return function(){var k=N();return{rootWasDefined:w.wasDefined,value:k}}},qo3=function(D,t,H){var e=H.map(function(w){return njf(D,w)}),V=H.length===0,b=[],a=H.length!==1||H[0].type!=="path"?!1:!0;
D.effect(function(){for(var w=e.length,h=[],K=!!b.length,N=0;N<w;N++){var k=e[N](),T=k.rootWasDefined;k=k.value;V||(V=T);h[N]=k;a&&(h[N+w]=K?b[N]:h[N],b[N]=k)}V&&AL(D.owner,function(){return void t.apply(null,_.A6(h))})})},t9X=function(D,t,H,e,V){var b=WT(D,t);
V!==void 0&&b.setWithPath([],V);qo3(D,function(){var a=_.RE.apply(0,arguments);fg(D.model.hostElement,t,!0);b.setWithPath([],H.apply(null,_.A6(a)))},e)};
aT.prototype.arrayPush=function(D){var t=_.RE.apply(1,arguments),H=_.F(D),e=H.next().value;H=D_(H);e=WT(this,e);return e.push.apply(e,[H].concat(_.A6(t)))};
aT.prototype.arraySplice=function(D,t,H){var e=_.RE.apply(3,arguments),V=_.F(D),b=V.next().value;V=D_(V);b=WT(this,b);return b.splice.apply(b,[V,t,H].concat(_.A6(e)))};
aT.prototype.arrayUnshift=function(D){var t=_.RE.apply(1,arguments),H=_.F(D),e=H.next().value;H=D_(H);e=WT(this,e);return e.unshift.apply(e,[H].concat(_.A6(t)))};
aT.prototype.notifySplices=function(D,t){var H=_.F(D);D=H.next().value;H=D_(H);WT(this,D).notifySplices(H,t)};var C6f=!0,mWV=!1,L5D=!1,MUw=!1,S3f=0;MUw=!1;S3f=0;C6f=!0;mWV=L5D=!1;var Ka3=/([^\s]+?)\(([\s\S]*)\)/,h18=/\.([^.]+)$/,kSA=/\\,/g,ZFK=/&comma;/g,s9$=/\\(.)/g,N9$=[],GSD={"*":"wildcard",splices:"splices"};var PrT=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"),riV=/[A-Z]/,XRn=["class","hidden","id","on-dom-change"],CrV=new Set([].concat(_.A6(XRn),
["if","notify-dom-change","restamp"])),mnX=new Set([].concat(_.A6(XRn),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),M9V=new Set(["restamp"]);var MUu=new Set(["className","id"]);var Ai6=Symbol(),dnD=window;var B9V=window;var bB8=0,tuV=0,I5=[],VuV=0,D$6=!1,eYu=document.createTextNode("");(new window.MutationObserver(HBD)).observe(eYu,{characterData:!0});var yb=new Map,Qb=0,fnV=function(D){this.mappedHandleId=D},F5T=function(D,t,H,e){this.mappedHandleId=D;
var V=this;this.mappedHandleId=D;this.callback=t;this.waitTime=H;this.schedulerPriority=e;this.handleId=_.Jy.addJob(function(){V.callback();yb.delete(V.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.P(F5T,fnV);F5T.prototype.cancel=function(){_.Jy.cancelJob(this.handleId);yb.delete(this.mappedHandleId)};
var ac$=function(D,t){this.mappedHandleId=D;var H=this;this.mappedHandleId=D;this.callback=t;this.handleId=qjX(function(){H.callback();yb.delete(H.mappedHandleId)})};
_.P(ac$,fnV);ac$.prototype.cancel=function(){var D=this.handleId-tuV;D<0||I5.length<=D||(I5[D]=null);yb.delete(this.mappedHandleId)};var hYk=function(){};
hYk.prototype.cancel=function(){this.jobHandle!==void 0&&(wsT(this.jobHandle),this.jobHandle=void 0)};
hYk.prototype.run=function(D,t,H){var e=this;this.cancel();this.callback=D;this.jobHandle=_.BT(function(){D();e.callback=void 0},t,H)};
hYk.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var ZBA=new WeakMap;var LUo=KU(function(D){for(var t=D,H=0;H<3;H++)t=Object.getPrototypeOf(t);delete t.prototype.connectedCallback;var e=function(){return D.apply(this,arguments)||this};
_.P(e,D);e.prototype._attachDom=function(V){if(!V)return null;var b=(0,_.cT)(this.hostElement);b.attachShadow({mode:"open",shadyUpgradeFragment:V});b.shadowRoot.appendChild(V);return b.shadowRoot};
e.prototype._takeAttributes=function(){for(var V=this.hostElement.attributes,b=0;b<V.length;b++){var a=V[b],w=void 0,h=void 0;(h=(w=this).__attributeReaction)==null||h.call(w,a.name,null,a.value)}};
e.prototype._readyClients=function(){D.prototype._readyClients.call(this);this.root=this};
e.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);D.prototype.connectedCallback.call(this)};
_.ql.Object.defineProperties(e,{template:{configurable:!0,enumerable:!0,get:function(){return e.prototype._template}}});
return e}),Ac9=KU(function(D){var t=function(){return D.apply(this,arguments)||this};
_.P(t,D);t.prototype.created=function(){if(this.__notifyEffects)for(var H=_.F(Object.values(this.__notifyEffects)),e=H.next();!e.done;e=H.next()){e=_.F(e.value);for(var V=e.next();!V.done;V=e.next())V.value.fn=NGD}if(this.__reflectEffects)for(H=_.F(Object.values(this.__reflectEffects)),e=H.next();!e.done;e=H.next())for(e=_.F(e.value),V=e.next();!V.done;V=e.next())V.value.fn=kwD};
t.prototype._addEventListenerToNode=function(H,e,V){H=Dt(H);Jn(H,e,V)||D.prototype._addEventListenerToNode.call(this,H,e,V)};
t.prototype._removeEventListenerFromNode=function(H,e,V){H=Dt(H);Yo(H,e,V)||D.prototype._removeEventListenerFromNode.call(this,H,e,V)};
t.prototype._propertiesChanged=function(H,e,V){if(this.__dataToNotify&&this.__notifyEffects)for(var b=_.F(Object.keys(this.__dataToNotify)),a=b.next();!a.done;a=b.next()){a=a.value;var w=K5V(a);this.__notifyEffects[w]||delete this.__dataToNotify[a]}else this.__dataToNotify=null;D.prototype._propertiesChanged.call(this,H,e,V)};
t.prototype.fire=function(H,e,V){e=e===void 0?{}:e;var b;return _.Gf(Dt((b=V==null?void 0:V.node)!=null?b:this),H,e,V)};
t.prototype._ensureAttribute=function(H,e){var V=Dt(this);V.hasAttribute(H)||uK(V,e,H)};
t.prototype.isLightDescendant=function(H){var e=Dt(this);return Dt(e)!==H&&_.Kg(e).contains(H)&&_.Kg(e).getRootNode()===_.Kg(H).getRootNode()};
return t});
_.vO.ready=function(){var D;((D=this.hostElement)!=null?D:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var t;((t=this.hostElement)!=null?t:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.QI._subscribeIronResize=function(D){var t;((t=D.hostElement)!=null?t:D).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.QI._unsubscribeIronResize=function(D){var t;((t=D.hostElement)!=null?t:D).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var j_V=[Array,Boolean,Date,Number,Object,String],Hc=function(D,t,H,e){this.polySiInfo=D;this.polySiParams=t;this.polySiContext=H;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;e||this instanceof HTMLElement&&(e=this);if(!e)throw Error("Og");this.allowedProps=t.allowedProps;this.hostElement=e;this.is=D.is;this.upgradeDisabled=!!t.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");D=new Set(t.reactiveSchemas.filter(function(V){return V.type!==
"observe"}).map(function(V){return V.propertyKey}));
this.signalProxy=new aT(this,void 0,{reactiveProps:D,reactivityMode:t.reactivityMode});this.__dataHasAccessor={};t=_.F(t.reactiveSchemas);for(D=t.next();!D.done;D=t.next())D=D.value,D.type==="signal"&&(this.__dataHasAccessor[D.propertyKey]=!0);this.upgradeDisabled||gjf(this)};
Hc.prototype.getExtraMethodsToForward=function(){return[]};
var gjf=function(D){D.polySiContext.didRegister||(D.registered(),D.polySiContext.didRegister=!0);D.polySiContext.finalizedTemplate||(D.polySiContext.finalizedTemplate={},D.polySiParams.templateGetter&&(D.polySiContext.finalizedTemplate.processedTemplate=z1K(D.polySiParams.templateGetter,D.polySiParams.is)));Jc4(D);var t=D.hostElement;t.loggingStatus!=null||(t.loggingStatus={});t.loggingStatus.isInitializing=!0;_.EP(function(){return void D.created()});
t.loggingStatus.isInitializing=!1;D.isPolySiElementConnected&&Y3B(D)},Y3B=function(D){D.didCallReady||(_.EP(function(){return void D.ready()}),D.didCallReady=!0);
D.isAttached=!0;D.attached()};
_.q=Hc.prototype;_.q.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||Y3B(this)};
_.q.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.q.attributeChangedCallback=function(D,t,H){if(this.upgradeDisabled)D==="disable-upgrade"&&H===null&&(this.upgradeDisabled=!1,gjf(this));else if(t!==H){var e=_.oz(D),V=this.polySiContext.typesForSignals[e];if(V&&(!this.reflecting||_.r("polysi_attribute_changed_serializing_killswitch"))){switch(V){case Object:try{var b=JSON.parse(H)}catch(w){b=H}break;case Array:try{b=JSON.parse(H)}catch(w){b=null}break;case Date:b=isNaN(H)?String(H):Number(H);b=new Date(b);break;case Boolean:b=H!==null;break;case Number:b=
Number(H);break;default:b=H}this[e]=b}e=_.F(this.polySiParams.behaviors);for(V=e.next();!V.done;V=e.next())b=void 0,(b=V.value.attributeChanged)==null||b.call(this,D,t,H);var a;(a=this.attributeChanged)==null||a.call(this,D,t,H)}};
_.q.attributeChangedCallbackWrapper=function(D,t,H){this.attributeChangedCallback(D,t,H)};
_.q.setPropertiesFromInitialAttributeValues=function(){for(var D=0;D<this.hostElement.attributes.length;D++){var t=this.hostElement.attributes[D];(t.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(t.name))&&this.attributeChangedCallback(t.name,null,t.value)}};
_.q.created=function(){this.provide=this.polySiParams.provide;var D;(D=this.initializeInjection)==null||D.call(this);D=_.F(this.polySiParams.reactiveSchemas);for(var t=D.next();!t.done;t=D.next())t=t.value,t.type==="signal"&&(this.mutablePropNames.add(t.propertyKey),WT(this.signalProxy,t.propertyKey));ctk(this,this.polySiInfo,this.polySiParams.behaviors);D=_.F(this.polySiParams.reactiveSchemas);for(t=D.next();!t.done;t=D.next())t=t.value,t.type==="signal"&&t.value!==void 0&&(this.signalProxy.model[t.propertyKey]=
typeof t.value==="function"?t.value.call(this):t.value);if(this.polySiParams.signalProperties)for(D=_.F(this.polySiParams.signalProperties),t=D.next();!t.done;t=D.next()){t=t.value;var H=void 0;((H=this.__signalCache)==null?0:H.has(t))||(this.signalProxy.model[t]=void 0)}MUw||lnQ(this);TGX(this);D=_.F(this.polySiParams.behaviors);for(t=D.next();!t.done;t=D.next())H=void 0,(H=t.value.created)==null||H.call(this);var e;(e=this.polySiInfo.created)==null||e.call(this)};
_.q.registered=function(){var D=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var t=Object.getPrototypeOf(this);t.addReactiveSchema=function(w){D.polySiParams.reactiveSchemas.push(w)};
for(var H=_.F(this.polySiParams.behaviors),e=H.next();!e.done;e=H.next()){var V=void 0;(V=e.value.beforeRegister)==null||V.call(t)}var b;(b=this.polySiInfo.beforeRegister)==null||b.call(t);t.addReactiveSchema=iBD;H=_.F(this.polySiParams.behaviors);for(e=H.next();!e.done;e=H.next())V=void 0,(V=e.value.registered)==null||V.call(t);var a;(a=this.polySiInfo.registered)==null||a.call(t)};
_.q.ready=function(){var D;(D=this.beforeReady)==null||D.call(this);MUw&&lnQ(this);var t;if(D=(t=this.polySiContext.finalizedTemplate)==null?void 0:t.processedTemplate){D=yiK(D.template,D.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:D.hasInsertionPoint,thisCtx:this});t=D.nodesById;D=D.root;var H=this.hostElement;var e=e===void 0?!1:e;H=(0,_.cT)(H);if(!H.attachShadow)throw Error("Gd");if(!H.shadowRoot||e)H.attachShadow({mode:"open",shadyUpgradeFragment:D}),H.shadowRoot.appendChild(D);
this.root=H.shadowRoot;this.$=t}vjm(this);e=_.F(this.polySiParams.behaviors);for(t=e.next();!t.done;t=e.next())D=void 0,(D=t.value.ready)==null||D.call(this);var V;(V=this.polySiInfo.ready)==null||V.call(this)};
_.q.attached=function(){for(var D=_.F(this.polySiParams.behaviors),t=D.next();!t.done;t=D.next()){var H=void 0;(H=t.value.attached)==null||H.call(this)}var e;(e=this.polySiInfo.attached)==null||e.call(this)};
_.q.detached=function(){for(var D=_.F(this.polySiParams.behaviors),t=D.next();!t.done;t=D.next()){var H=void 0;(H=t.value.detached)==null||H.call(this)}var e;(e=this.polySiInfo.detached)==null||e.call(this)};
var Jc4=function(D){for(var t=_.F(D.polySiParams.behaviors),H=t.next();!H.done;H=t.next())if(H=H.value,H.listeners)for(var e in H.listeners)Q9V(D,D.hostElement,e,H.listeners[e]);if(D.polySiInfo.listeners)for(var V in D.polySiInfo.listeners)Q9V(D,D.hostElement,V,D.polySiInfo.listeners[V])},Q9V=function(D,t,H,e,V){D=BAV(D,e,V);
Jn(t,H,D)||t.addEventListener(H,D);return D},lnQ=function(D){for(var t=_.F(D.polySiParams.reactiveSchemas),H=t.next();!H.done;H=t.next())H=H.value,H.type==="compute"||H.type==="computeWithMethod"?HFk(D.signalProxy,H,D):H.type==="redux"?bFA(D.signalProxy,H,D.store):H.type==="signal"&&H.readOnly&&V9T(D.signalProxy,H)},vjm=function(D){for(var t=_.F(D.polySiParams.reactiveSchemas),H=t.next(),e={};!H.done;e={schema$jscomp$12:void 0},H=t.next())e.schema$jscomp$12=H.value,e.schema$jscomp$12.type==="notify"?
FaR(D.signalProxy,e.schema$jscomp$12,D.hostElement):e.schema$jscomp$12.type==="observe"?aJD(D.signalProxy,e.schema$jscomp$12,D):e.schema$jscomp$12.type==="reflect"&&D.signalProxy.effect(function(b){return function(){var a=D.signalProxy.getWithPath([b.schema$jscomp$12.propertyKey]);
D.reflecting=!0;ciV(D.hostElement,b.schema$jscomp$12.propertyKey,a,!0);D.reflecting=!1}}(e));
if(D.reflectedAttributes)for(t=_.F(Object.entries(D.reflectedAttributes)),e=t.next(),H={};!e.done;H={key$jscomp$932:void 0,value$jscomp$9830:void 0},e=t.next()){var V=_.F(e.value);e=V.next().value;V=V.next().value;H.key$jscomp$932=e;H.value$jscomp$9830=V;D.signalProxy.effect(function(b){return function(){D.reflecting=!0;ciV(D.hostElement,b.key$jscomp$932,(0,b.value$jscomp$9830)(),!0);D.reflecting=!1}}(H))}};
_.q=Hc.prototype;_.q._setPendingProperty=function(D,t){this.set(D,t);return!1};
_.q._enableProperties=function(){};
_.q._setPendingPropertyOrPath=function(D,t){this.notifyPath(D,t);return!1};
_.q._addPropertyEffect=function(){};
_.q._stampTemplate=function(){throw Error("Pg");};
_.q.fire=function(D,t,H){t=t===void 0?{}:t;H=H===void 0?{}:H;var e,V,b={bubbles:(e=H.bubbles)!=null?e:!0,cancelable:!!H.cancelable,composed:(V=H.composed)!=null?V:!0},a;return _.Gf(rtV((a=H.node)!=null?a:this.hostElement),D,t,b)};
_.q.get=function(D,t){var H=R5(D);return t?z9X(t,H):D==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(H)};
_.q.linkPaths=function(){};
_.q.listen=function(D,t,H){D=rtV(D);this.boundListeners!=null||(this.boundListeners=new WeakMap);var e=this.boundListeners.get(D);e||(e={},this.boundListeners.set(D,e));var V=t+H;e[V]||(e[V]=Q9V(this,D,t,H))};
_.q.notifyPath=function(D,t){this.signalProxy.notifyPath(R5(D),arguments.length===2?{value:t}:void 0)};
_.q.canNotifyPath=function(D){return this.mutablePropNames.has(D)&&!fJV(this.signalProxy,D)};
_.q.notifySplices=function(D,t){this.signalProxy.notifySplices(R5(D),t)};
_.q.pop=function(D){var t=this.signalProxy;D=R5(D);var H=_.F(D);D=H.next().value;H=D_(H);return WT(t,D).pop(H)};
_.q.push=function(D){var t=_.RE.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[R5(D)].concat(_.A6(t)))};
_.q.set=function(D,t,H){if(H)throw Error("Qg");D==="hidden"?this.hostElement.hidden=!!t:this.signalProxy.setWithPath(R5(D),t)};
_.q.setProperties=function(D){D=_.F(Object.entries(D));for(var t=D.next();!t.done;t=D.next()){var H=_.F(t.value);t=H.next().value;H=H.next().value;this[t]=H}};
_.q.splice=function(D,t,H){var e=_.RE.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[R5(D),t,H].concat(_.A6(e)))};
_.q.unlinkPaths=function(){};
_.q.unlisten=function(D,t,H){D=rtV(D);if(this.boundListeners){var e=this.boundListeners.get(D);if(e){H=t+H;var V=e[H];V&&(Yo(D,t,V)||D.removeEventListener(t,V),delete e[H])}}};
_.q.unshift=function(D){var t=_.RE.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[R5(D)].concat(_.A6(t)))};
_.ql.Object.defineProperties(Hc.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 fcK=[Array,Boolean,Date,Number,Object,String];var gWK=!1;var wW=function(){var D=HTMLElement.apply(this,arguments)||this;D.restamp=!1;D.notifyDomChange=!1;D.JSC$13540_didCallConnected=!1;D.JSC$13540_renderDebouncer=null;D.disableTemplateUpdateSignalImpl=ea()?void 0:_.KR(!1,void 0,"Ofhkwb");var t;D.getDisableTemplateUpdate=(t=D.disableTemplateUpdateSignalImpl)==null?void 0:t[0];var H;D.setDisableTemplateUpdate=(H=D.disableTemplateUpdateSignalImpl)==null?void 0:H[1];return D};
_.P(wW,HTMLElement);var pRQ=function(D){D.conditionSignalImpl!=null||(D.conditionSignalImpl=new FW(_.KR(!1,void 0,"gE52Fb")));return D.conditionSignalImpl};
_.q=wW.prototype;_.q.showHideChildren=function(D){dWn(this,D,this.if)};
_.q.attributeChangedCallback=function(D,t,H){if(this.JSC$13540_didCallConnected)throw Error("Ug`"+D);D==="notify-dom-change"?this.notifyDomChange=H!==null:D==="restamp"&&(this.restamp=H!==null)};
_.q.debounceRender=function(){this.JSC$13540_renderDebouncer=_.oc(this.JSC$13540_renderDebouncer,dv,this.JSC$13540_renderImpl.bind(this));_.Pb(this.JSC$13540_renderDebouncer)};
_.q.disconnectedCallback=function(){var D=(0,_.cT)(this).parentNode;(!D||D.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in D&&!D.host)&&xWw(this)};
_.q.connectedCallback=function(){var D=this;this.JSC$13540_didCallConnected=!0;C6f?JtA():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.r("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){pRQ(D).getWithPath([]);D.debounceRender()})};
_.q.render=function(){_.ML()};
_.q.JSC$13540_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var D=this.if,t=!1;if(D){this.hasInstance()||(Ran(this),t=!0);a:{var H=(0,_.cT)(this).parentNode;if(this.hasInstance()){var e=this.instance.children;if((e==null?0:e.length)&&(0,_.cT)(this).previousSibling!==e[e.length-1])for(var V=0;V<e.length;V++)(0,_.cT)(H).insertBefore(e[V],this)}else{if(!H){H=!1;break a}uSQ(this,H)}H=!0}if(!H)return}else this.restamp&&xWw(this);dWn(this,!1,D);D&&!t&&Ran(this);mWV&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.q.hasInstance=function(){return!!this.instance};
var uSQ=function(D,t){var H=D.parentSignalProxy;if(ea()){var e=_.F(_.KR(!0,void 0,"dkzufd"));var V=e.next().value;e=e.next().value;H=D.parentSignalProxy}else{var b;var a=new aT((b=WU9(D))!=null?b:{},function(h){var K=WT(D.parentSignalProxy,h).getChangeRecordSignal([]);h=_.KR(void 0,void 0,"iG8Uwe");var N=new FW(h);a.effect(function(){if(D.getDisableTemplateUpdate&&!D.getDisableTemplateUpdate()){var k=K();N.notifyPath(R5(k.path),{value:k.value})}});
return N});
D.parentSignalProxy.childSignalProxies.push(a);var w=H=a}H=yiK(D.templateInfo,D.templateInfo.nodeInfoList,H,{eventListenerHost:D.eventListenerHost,hasInsertionPoint:D.templateInfo.hasInsertionPoint,thisCtx:D.eventListenerHost,enabledSignal:ea()?V:void 0,getModel:function(){return WU9(D)}}).root;
D.instance={root:H,children:[],hidden:!1,signalProxy:w,getTemplateUpdatesEnabled:V,setTemplateUpdatesEnabled:e};w=_.F(H.childNodes);for(V=w.next();!V.done;V=w.next())D.instance.children.push(V.value);(0,_.cT)(t).insertBefore(D.instance.root,D)},WU9=function(D){if((D=D.parentSignalProxy.model)&&!D.hostElement){var t={},H;
for(H in D)D.hasOwnProperty(H)&&(t[H]=D[H]);return t}},xWw=function(D){if(D.instance){var t=D.instance.children;
if(t.length){var H=(0,_.cT)(t[0]).parentNode;if(H){H=(0,_.cT)(H);for(var e=0;e<t.length;e++)H.removeChild(t[e])}}ea()?D.instance.setTemplateUpdatesEnabled(!1):D.instance.signalProxy.dispose();D.instance=void 0}},dWn=function(D,t,H){t=t||!H;
D.instance&&D.instance.hidden!==t&&(D.instance.hidden=t,AtR(t,D.instance.children))},Ran=function(D){if(ea()){var t=D.instance;
t&&AL(D.parentSignalProxy.owner,function(){return!t.getTemplateUpdatesEnabled()})&&t.setTemplateUpdatesEnabled(!0)}else D.setDisableTemplateUpdate(!1)};
_.ql.Object.defineProperties(wW.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var D=this;return AL(this.parentSignalProxy.owner,function(){return pRQ(D).getWithPath([])})},
set:function(D){D||(ea()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));pRQ(this).setWithPath([],!!D)}}});
_.ql.Object.defineProperties(wW,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",wW);var InB=[],ZQ=function(){var D=HTMLElement.apply(this,arguments)||this;D.as="item";D.indexAs="index";D.itemsIndexAs="itemsIndex";D.targetFramerate=20;D.notifyDomChange=!1;D.isDetached=!1;D.JSC$13547_renderDebouncer=null;D.instances=[];D.chunkingId=null;D.chunkCount=null;D.shouldMeasureChunk=!1;D.shouldContinueChunking=!1;D.renderStartTime=null;D.JSC$13547_didCallConnected=!1;return D};
_.P(ZQ,HTMLElement);var Qdn=function(D){D.itemSignalImpl!=null||(D.itemSignalImpl=new FW(_.KR(InB,void 0,"YBrqgf")));return D.itemSignalImpl},ycv=function(D,t){Array.isArray(t)||(t=InB);
Qdn(D).setWithPath([],t)};
_.q=ZQ.prototype;_.q.showHideChildren=function(D){for(var t=_.F(this.instances),H=t.next();!H.done;H=t.next())AtR(D,H.value.children)};
_.q.notifyPath=function(D,t){D=R5(D);D[0]==="items"&&(D.length===1?ycv(this,t):Qdn(this).setWithPath(D.slice(1),t))};
_.q.canNotifyPath=function(D){return D==="items"};
_.q.attributeChangedCallback=function(D,t,H){if(this.JSC$13547_didCallConnected)throw Error("Vg`"+D);D==="as"?this.as=H:D==="index-as"?this.indexAs=H:D==="items-index-as"?this.itemsIndexAs=H:D==="initial-count"?this.initialCount=Number(H):D==="notify-dom-change"?this.notifyDomChange=H!==null:D==="target-framerate"&&(this.targetFramerate=Number(H))};
_.q.disconnectedCallback=function(){this.isDetached=!0;for(var D=0;D<this.instances.length;D++)BsQ(this,D);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.q.connectedCallback=function(){var D=this,t=Qdn(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var V=t(),b=R5(V.path);if(b[0]===void 0||b[0]==="splices"||b[0]==="length")D.debounceRender();else{var a=b[0];if(a=D.instances[typeof a==="string"?Math.floor(Number(a)):a])b=[D.as].concat(_.A6(b.slice(1))),a.signalProxy.notifyPath(b,V)}});
this.JSC$13547_didCallConnected=!0;C6f?JtA():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var H=(0,_.cT)((0,_.cT)(this).parentNode),e=0;e<this.instances.length;e++)H.insertBefore(this.instances[e].root,this);this.chunkingId&&this.render()}};
_.q.debounceRender=function(){this.JSC$13547_renderDebouncer=_.oc(this.JSC$13547_renderDebouncer,dv,this.JSC$13547_renderImpl.bind(this));_.Pb(this.JSC$13547_renderDebouncer)};
_.q.render=function(){this.debounceRender();_.ML()};
_.q.JSC$13547_renderImpl=function(){var D=this;if(!this.parentSignalProxy.isDisposed){var t=this.items,H=za3(this,t.length);Djv(this,t,H);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){D.chunkingId=null;if(D.shouldMeasureChunk){var e=performance.now()-D.renderStartTime;D.chunkCount=Math.round(Math.ceil(1E3/D.targetFramerate)/e*D.chunkCount)||1}D.shouldContinueChunking&&D.debounceRender()}));
mWV&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var za3=function(D,t){var H=t,e=D.instances.length;if(D.initialCount){if(D.chunkCount){var V=Math.min(Math.max(t-e,0),D.chunkCount);H=Math.min(e+V,t)}else H=Math.min(t,D.initialCount),V=Math.max(H-e,0),D.chunkCount=V||1;D.shouldMeasureChunk=V===D.chunkCount;D.shouldContinueChunking=H<t;D.renderStartTime=performance.now()}return H},Djv=function(D,t,H){for(var e=0;e<H;e++){var V=D.instances[e],b=t[e];
V?(V.signalProxy.setWithPath([D.as],b),V.signalProxy.setWithPath([D.indexAs],e)):tFa(D,b,e)}for(t=D.instances.length-1;t>=e;t--)H=D,V=t,BsQ(H,V),_.F(H.instances.splice(V,1)).next().value.signalProxy.dispose()},BsQ=function(D,t){D=D.instances[t];
t=(0,_.cT)(D.root);for(var H=0;H<D.children.length;H++)t.appendChild(D.children[H])},tFa=function(D,t,H){var e={};
t=Object.assign({},HkB(D),(e[D.as]=t,e[D.indexAs]=H,e[D.itemsIndexAs]=H,e));var V=new aT(t,function(a){if(a!==D.as&&a!==D.indexAs){if(a===D.itemsIndexAs)return WT(V,D.indexAs);var w=WT(D.parentSignalProxy,a).getChangeRecordSignal([]);a=_.KR(void 0,void 0,"T21Pqc");var h=new FW(a);V.effect(function(){var K=w();h.notifyPath(R5(K.path),{value:K.value})});
return h}});
D.parentSignalProxy.childSignalProxies.push(V);e=yiK(D.templateInfo,D.templateInfo.nodeInfoList,V,{eventListenerHost:D.eventListenerHost,getModel:function(){var a={};return Object.assign({},HkB(D),(a[D.as]=V.model[D.as],a[D.indexAs]=V.model[D.indexAs],a[D.itemsIndexAs]=V.model[D.indexAs],a))},
hasInsertionPoint:D.templateInfo.hasInsertionPoint,thisCtx:D.eventListenerHost,methodInvocationRequirement:S3f,enabledSignal:D.stampingEnabled}).root;t={root:e,children:[],signalProxy:V};e=_.F(e.childNodes);for(var b=e.next();!b.done;b=e.next())t.children.push(b.value);e=(e=D.instances[H+1])?e.children[0]:D;(0,_.cT)((0,_.cT)(D).parentNode).insertBefore(t.root,e);D.instances[H]=t},HkB=function(D){if((D=D.parentSignalProxy.model)&&!D.hostElement){var t={},H;
for(H in D)D.hasOwnProperty(H)&&(t[H]=D[H]);return t}};
ZQ.prototype.itemForElement=function(D){var t=this,H=this.instances.find(function(e){return e.children.includes(D)});
if(H)return AL(this.parentSignalProxy.owner,function(){return H.signalProxy.getWithPath([t.as])})};
ZQ.prototype.indexForElement=function(D){var t=this.instances.findIndex(function(H){return H.children.includes(D)});
return t>=0?t:void 0};
_.ql.Object.defineProperties(ZQ.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var D=this;return AL(this.parentSignalProxy.owner,function(){return Qdn(D).getWithPath([])})},
set:function(D){ycv(this,D)}},
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}}});
_.ql.Object.defineProperties(ZQ,{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",ZQ);var ecV,VFn;_.sg=new _.kI("STATE_STORE_TOKEN");ecV=new _.kI("SELECT_TOKEN");VFn=new _.kI("DISPATCH_TOKEN");var x$k={getSelectFn:function(){var D;return(D=_.qS().resolve(_.by(ecV)))!=null?D:Yjk},
getDispatchFn:function(){var D;return(D=_.qS().resolve(_.by(VFn)))!=null?D:_.V_().dispatch.bind(_.V_())},
getAppStore:function(){return _.qS().resolve(_.sg)}},lc6,d$D=!1;var IcT,r9n={traceAllComponents:_.r("web_tracing_all_components"),exportToCsi:_.r("web_tracing_export_to_csi"),exportBreadcrumbs:_.r("web_enable_tracing"),bufferSize:_.ZU("web_max_tracing_events"),enabledSpansArray:_.hW("web_tracing_enabled_spans"),exportToDevTools:_.r("web_tracing_export_to_devtools")};IcT=new O03;var DWV=function(){};var ytX=void 0;var bk3=function(){};
bk3.prototype.hasAttribute=function(D){if(D==="dir")return!1;if(D==="disable-upgrade"){var t,H;return(H=(t=this.hostElement)==null?void 0:t.hasAttribute("disable-upgrade"))!=null?H:!1}throw Error("Wg`"+D);};
bk3.prototype.attributeChangedCallbackWrapper=function(D,t,H){if(D==="disable-upgrade"&&this.__isUpgradeDisabled&&H===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var e;((e=this.hostElement)!=null?e:this).isConnected&&this.connectedCallback()}else t===H||this.__isReflecting||this.attributeChangedCallback(D,t,H)};
bk3.prototype.getExtraMethodsToForward=function(){for(var D=this,t=[],H=_.F(qJv),e=H.next(),V={};!e.done;V={tagName$jscomp$54:void 0,name$jscomp$598:void 0},e=H.next())V.name$jscomp$598=e.value,e=void 0,V.name$jscomp$598==="_setPendingProperty"?(V.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),e=function(b){return function(a,w,h){Xd(b.tagName$jscomp$54,a,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return D._setPendingProperty(a,w,h)}}(V)):e=function(b){return function(){return D[b.name$jscomp$598].apply(D,
_.A6(_.RE.apply(0,arguments)))}}(V),t.push([V.name$jscomp$598,
e]);return t};
for(var eaV=Ac9(LUo((0,_.lA)(bk3))),FUA=["disabled","disable-upgrade"],F44=(0,_.lA)(function(){}),aqv=new Set(Object.getOwnPropertyNames(F44.prototype)),haD=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.A6(aqv))),wRR=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),qJv=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),wDw=new Set([].concat(_.A6(wRR),_.A6(qJv),_.A6(aqv))),Zk4=_.F(wDw),s2m=Zk4.next();!s2m.done;s2m=Zk4.next())CHX.add(s2m.value);var sdT={created:function(){TGX(this);this.initializeInjection()}};var $WV=!1,s_=window.ShadyDOM,C6V=["appendChild","insertBefore","removeChild","replaceChild"],njV=[Node];s_&&njV.push(s_.Wrapper);var Ack,gjV,lnK={};var hj,GL=new Set;var In$=new Set("context didCallReady is info params signalProxy".split(" ")),yc3="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),BsK="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var hc4=rZ({entities:Jz$}),G$V=new Vk(hc4);var El3=function(){return _.ng.apply(this,arguments)||this};
_.P(El3,_.ng);_.ql.Object.defineProperties(El3.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return G$V}}});
_.d([_.Cg()],El3);_.hX=[bj.prototype,El3.prototype];_.Gq={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var D=this,t={};setTimeout(function(){var H;return _.Gf((H=D.hostElement)!=null?H:D,"yt-live-chat-add-tooltip-target",t)},0);
this.handler_=t.handler},
detached:function(){if(this.handler_){var D;this.handler_.removeElementFromSupportingTooltips((D=this.hostElement)!=null?D:this)}this.handler_=null}}};_.ja=new _.kI("ICON_MANAGER_TOKEN");var K43=[48,20,18,16,15,13,12],j2k=new Map,ElT=new Set,s2D=new Set,G$A=new Set,ZkV=new Set,hcV=new Set,N2D=new Promise(function(D){var t=!1,H=!1,e=!1,V=[],b=function(a){if("detail"in a)if(a=a.detail,a.name==="yt-icons")K4T(a),t=!0;else if(a.name==="yt-sys-icons")K4T(a),H=!0;else{var w;((w=a.name)==null?0:w.includes("yt-sys-icons"))&&a.size!==24&&(K4T(a,!0),V.push(a.size),V.length===K43.length&&(e=!0))}t&&H&&e&&(window.removeEventListener("iron-iconset-added",b),D())};
window.addEventListener("iron-iconset-added",b)}),T26=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"]]);_.Eg={};_.Eg.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.eo,computeHref_:function(D,t){t=t===void 0?!1:t;if(!D||D.commandExecutorCommand)return null;var H=aT3(D,t);return t||H!==null?H?_.r("enable_polymer_resin")?_.dw(H).toString():H:null:(_.Yw(new _.nZ("computeHref was null",this.is,D)),null)},
computeOptionalHref_:function(D){return this.computeHref_(D,!0)},
computeNofollow_:function(D){return D?zoV(D)?"nofollow":null:null},
computeIcon_:function(D){return D&&D.iconType?_.cc(D.iconType):""},
resolveCommand:function(D,t,H){t=t===void 0?{}:t;return _.rj(D,this.hostElement,t,H===void 0?!1:H)}};var k$4,KE;_.N2n={};k$4=null;
KE={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_=KZD(this.viewroot));_.BT(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var D=this;this.unobserve_();if(_.r("kevlar_vimio_use_shared_monitor"))UjD(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var t=[];this.visibilityOptionVisible_&&t.push(this.visibilityObserver.observe(this.hostElement,function(){return D.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&t.push(this.visibilityObserver.observe(this.hostElement,function(){return D.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&t.push(this.visibilityObserver.observe(this.hostElement,function(){return D.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=t}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){$jk(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 D=_.xz(this.parentNode,function(H){var e,V=(e=H.polymerController)!=null?e:H;return!!V.getVisibilityObserverForChild&&V.getVisibilityObserverForChild()},!0);
if(D){var t;this.localVisibilityObserver_=((t=D.polymerController)!=null?t:D).getVisibilityObserverForChild()}else k$4||(k$4=KZD()),this.localVisibilityObserver_=k$4;return this.localVisibilityObserver_},visibilityCallback:function(D){D?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.r("kevlar_use_vimio_behavior")||(KE={});KE&&!_.r("kevlar_use_vimio_behavior")&&(delete KE.attached,delete KE.detached);_.N2n.YtVisibilityObserverBehavior=[KE];var T2o={};T2o.YtVisualElementBehavior=[_.N2n.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.r("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.r("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var D=this.getScreenLayer&&this.getScreenLayer(),t=this.getVisibilityLogger();t&&t.reportShown(this,void 0,D)}},
onHidden:function(){if(_.r("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.r("kevlar_vimio_use_shared_monitor")){var D=this.getScreenLayer&&this.getScreenLayer(),t=this.getVisibilityLogger();t&&t.reportHidden(this,void 0,D)}},
getVisibilityLogger:function(){return _.r("kevlar_use_vimio_behavior")?_.U_():null},
shouldSkipLogging:function(){if(_.YC("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var D=this.getParentRenderer&&this.getParentRenderer();if(!D)return!1;var t,H=(t=D.polymerController)!=null?t:D;if(!H.data)return!1;D=this.data.trackingParams;D=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:D;var e;t=(e=H.data)==null?void 0:e.trackingParams;var V,b;t=((V=H.data)==null?0:V.loggingDirectives)?(b=H.data)==null?void 0:b.loggingDirectives.trackingParams:t;return D&&t&&D===
t}}];var nlV=new Map,XQ;var bTD=function(D){this.layer=D},Ks=function(D){return D.layer!==void 0?D.layer:D.parent?Ks(D.parent):D.layer=0};var fqD;_.y={};fqD=0;_.y.YtRendererBehavior=[_.Eg.YtComponentBehavior,T2o.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_:_.r("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var D,t;(t=(D=this.monitorScrollElement)!=null?D:this.hostElement)==null||t.removeEventListener("scroll",_.iK(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();olD(this.hostElement);Cwf(_.BM(),this.hostElement);V6.delete(this.hostElement)},
registerRenderer:function(D){var t;((t=D.polymerController)!=null?t:D).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(D),this.markDirty())},
unregisterRenderer_:function(D){this.useVimio_||(this.childCache_.delete(D),this.markDirty())},
attached:function(){var D=this,t=this.getParentRenderer();if(t){var H,e,V;(e=(H=(V=t.polymerController)!=null?V:t).registerRenderer)==null||e.call(H,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var b,a;(a=(b=this.monitorScrollElement)!=null?b:this.hostElement)==null||a.addEventListener("scroll",_.iK(this,this.onScroll))}_.Jy.addJob(function(){CpR(D.hostElement)},8);
H=new bTD(this.screenLayer||void 0);(t=V6.get(t))&&t.layerNode&&(H.parent=t.layerNode);t={};wu8(this.hostElement,(t.isRenderer=!0,t.layerNode=H,t[q0V]=this.data,t))},
getParentRenderer:function(){for(var D=this.hostElement.parentNode,t,H;D&&((t=V6.get(D))==null||!t.isRenderer)&&!((H=D.polymerController)!=null?H:D).isRenderer_;)D=D.parentNode||D.host;return D},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.r("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.lh("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.r("debug_web_ve_data")&&this.data.trackingParams){var D="";try{D=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(H){_.gT(H)}if(D){var t=UQu(D,1);t!==void 0&&(this.hostElement.dataset.veIndex=String(t));D=UQu(D,2);
D!==void 0&&(this.hostElement.dataset.ve=String(D))}}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,_.r("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Sa(this.data.loggingDirectives.trackingParams)),this.visualElement=_.oQ(_.Pc(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var D=this.data.targetId;_.MuB(_.BM(),D,this.hostElement)}else Cwf(_.BM(),this.hostElement)},
onScroll:function(){var D=Date.now();D-this.lastHandledScroll_<50||(this.lastHandledScroll_=D,this.markDirty())},
markDirty:function(){_.r("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():L4k(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var D=this.getParentRenderer();if(D&&(D=V6.get(D))&&D.layerNode)return Ks(D.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.A6(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var D=0;D<this.data.impressionEndpoints.length;D++)this.sendImpression(this.data.impressionEndpoints[D]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(D){D.clickTrackingParams&&delete D.clickTrackingParams;var t,H;(D==null?0:(t=D.commandMetadata)==null?0:(H=t.webCommandMetadata)==null?0:H.sendPost)?_.NJ(this.hostElement,[D,{impression:!0}]):_.k0(this.hostElement,[D],this.hostElement)},
logExplicitClick:function(D){var t=_.v3(this.getScreenLayer());if(t){var H,e=(H=D.polymerController)!=null?H:D;D=e.visualElement;e=e.trackingParams||e.clickTrackingParams;!D&&e&&(D=_.Sa(e));D&&_.tV(t,D)}}}];var cP4={},NK=function(){return _.ng.apply(this,arguments)||this};
_.P(NK,_.ng);NK.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
NK.prototype.onPdgItemBehaviorClick=NK.prototype.onPdgItemBehaviorClick;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],NK.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],NK.prototype,"data",void 0);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],NK.prototype,"onPdgItemBehaviorClick",null);_.d([_.Cg()],NK);cP4.YtPdgLiveChatItemBehavior=[NK.prototype,_.y.YtRendererBehavior];var j29;var $j9;_.k7={};_.k7.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Tq=function(){var D=az.apply(this,arguments)||this;D.switchTemplateAtRegistration=!1;return D};
_.P(Tq,az);Tq.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||YJV(this),_.GwV(this,"doRender"),this.doRender())};
Tq.prototype.debounceRender=function(){this.templatingFn&&_.z1(this,"doRender",this.doRender)};
Tq.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.gT(Error("fh"))};
Tq.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.d([QS8()],Tq);var ik9=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,cP={},dj6=(cP[1]={filterString:null,isUnwrappable:null,unwrap:null},cP[2]={filterString:function(D,t,H){return Kf(H)},
isUnwrappable:function(D){return D instanceof IE},
unwrap:function(D){return BU(D)}},cP[3]={filterString:function(D,t,H){return ik9.test(H)?H:pM.toString()},
isUnwrappable:function(D){return gw(D)},
unwrap:function(D){return _.JA(D)}},cP[4]={filterString:function(){return pM.toString()},
isUnwrappable:function(D){return D instanceof md},
unwrap:function(D){return _.X7(D).toString()}},cP[5]={filterString:function(D,t,H){return H},
isUnwrappable:function(D){return typeof D==="string"},
unwrap:function(D){return D.toString()}},cP[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(D){return D instanceof _.e2},
unwrap:function(D){return G7V(D)}},cP[8]={filterString:function(D,t,H){H=String(H).toLowerCase();
return U1u(D,t,H)?H:"zClosurez"},
isUnwrappable:null,unwrap:null},cP[10]={filterString:null,isUnwrappable:null,unwrap:null},cP);q1[lD["default"]]=RcT;var uNV=[];(function(){var D=tZ;tZ=function(t){D==null||D(t);gj(function(){for(var H=0;H<t.length;H++)W4V(t[H])})}})();var rP6=function(){var D=_.ng.apply(this,arguments)||this;D.hasUnmounted=!1;return D};
_.P(rP6,_.ng);_.q=rP6.prototype;_.q.beforeRegister=function(){var D=this.doIdomRender;this.templatingFn?_.gT(Error("eh")):(this.templatingFn=D,this.switchTemplateAtRegistration=!0,pDA(this))};
_.q.attached=function(){};
_.q.detached=function(){W4V(this.hostElement)};
_.q.renderIdom=function(){throw Error("hh");};
_.q.doIdomRender=function(){var D=this;jsk(this.hostElement,function(){D.renderIdom()})};
_.d([_.Cg()],rP6);var Okf=[Tq.prototype,rP6.prototype];var Ujm,olm=function(){return Ujm!==void 0?Ujm:Ujm=document.createElement("template")};
document.head.appendChild(olm().content);var Ppf;var nlf,Cpn=function(){return nlf!==void 0?nlf:nlf=document.createElement("template")};
document.head.appendChild(Cpn().content);var mjQ;var MFa=document.head,SJ9=MFa.appendChild,XDw;if(mjQ===void 0){var fqm=document.createElement("template");_.n(fqm,"\x3c!--css-build:shady--\x3e");fqm.content.insertBefore(Cpn().content.cloneNode(!0),fqm.content.firstChild);mjQ=fqm}XDw=mjQ;SJ9.call(MFa,XDw.content);var L49,APv=function(){return L49!==void 0?L49:L49=document.createElement("template")};
document.head.appendChild(APv().content);var gl6;var JPn=document.head,YJ4=JPn.appendChild,lqQ;if(gl6===void 0){var vlo=document.createElement("template");_.n(vlo,"\x3c!--css-build:shady--\x3e");vlo.content.insertBefore(APv().content.cloneNode(!0),vlo.content.firstChild);gl6=vlo}lqQ=gl6;YJ4.call(JPn,lqQ.content);var pDV=document.head,djo=pDV.appendChild,xjV;if(Ppf===void 0){var Rc3=document.createElement("template");_.n(Rc3,"\x3c!--css-build:shady--\x3e");Rc3.content.insertBefore(olm().content.cloneNode(!0),Rc3.content.firstChild);Ppf=Rc3}xjV=Ppf;djo.call(pDV,xjV.content);var uN4,W4f=function(){return uN4!==void 0?uN4:uN4=document.createElement("template")};
document.head.appendChild(W4f().content);var IqV;_.tB=new _.kI("DARK_THEME_TOKEN");var Aa3=new _.NM("accessibilityProperties");var Lzu=new _.NM("layoutProperties");var ga3=new _.NM("imageType");var Q23={};if("ytAttributedStringLinkHoverColor"in Q23)throw Error("kh`ytAttributedStringLinkHoverColor");(function(D,t){Q23[D]="value"in t&&"unit"in t?DsA(D,t):function(H){try{return t(H)}catch(e){throw Error("ih`"+D+"`"+e.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var yPV=function(D){var t=this;this.holdTime=D===void 0?500:D;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(H){var e=new CustomEvent("LONG_PRESS"),V;(V=H.changedTouches[0].target)==null||V.dispatchEvent(e)};
this.ontouchstart=function(H){t.longPressTimeout=_.NP(_.Jy,function(){t.onlongpress(H);t.longPressOccurred=!0},t.holdTime)};
this.ontouchmove=function(){_.Jy.cancelJob(t.longPressTimeout);t.longPressTimeout=NaN;t.longPressOccurred=!1;t.moveOccurred=!0};
this.ontouchend=function(H){if(t.longPressTimeout&&!t.longPressOccurred&&!t.moveOccurred){var e;(e=H.changedTouches[0].target)==null||e.dispatchEvent(new Event("click"))}_.Jy.cancelJob(t.longPressTimeout);t.longPressTimeout=NaN;t.longPressOccurred=!1;t.moveOccurred=!1}};var TyD=function(D,t){yPV.call(this,t);var H=this;this.callback=D;this.onlongpress=function(e){var V;(V=H.callback)==null||V.call(H,e)}};
_.P(TyD,yPV);var caK=function(D,t){var H=Object.assign({},t);D=_.F(new Map([["ontouchstart",D.ontouchstart],["ontouchend",D.ontouchend],["ontouchmove",D.ontouchmove]]));for(var e=D.next(),V={};!e.done;V={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},e=D.next()){var b=_.F(e.value);e=b.next().value;b=b.next().value;V.eventName$jscomp$101=e;V.eventHandler$jscomp$1=b;t[V.eventName$jscomp$101]=function(a){return function(w){var h;(h=H[a.eventName$jscomp$101])==null||h.call(H,w);(0,a.eventHandler$jscomp$1)(w)}}(V)}};_.aA=new _.kI("COMMAND_HANDLER_TOKEN");var HqX=new _.NM("parallelCommand");var bqV=new _.NM("performOnceCommand");var V0V=new _.NM("serialCommand");var qVk=void 0;var B2V=function(){this.data=[];this.consumer=null};
B2V.prototype.push=function(D){this.consumer?this.consumer(D):this.data.push(D)};var zm={};_.KR(zm,void 0,"sgPmTd");_.KR(null,void 0,"jypsq");_.KR(null,void 0,"mWiOof");var hZ6=new B2V;var EaK=[tfw,HQm,en3,bQw,Vf3,Dwf,qmV,Fn9];var X83=new _.NM("bracketTextDecorator");var zL=new _.NM("highlightTextDecorator");_.eQ=new _.kI("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var naA=function(){},zcn;
(zcn=window.requestIdleCallback)==null||zcn.bind(window);var msk={calledOnce:!1,state:"visible"},CXX={calledOnce:!1,state:"hidden"};var DsV=new _.kI("ICON_WIZ_COMPONENT_TOKEN");_.U7=_.l(function(D){var t=D.icon;var H=D.active;var e=D.className;var V=D.style;var b=D.dataSelected;var a=D.dataDisabled;var w=D.role;var h=D.animateIcon;var K=D.themeOverride;var N=D.ariaHidden;var k=D.ariaExpanded;var T=D.ariaLabel;var c=D.tabindex;var U=D.id;var S=D.size;var L=D.iconFilter;var J=D.onKeydown;return _.G(_.E,{cond:t,then:function(){var g=_.qS().resolve(DsV);return _.G(g,{icon:t,dataSelected:b,dataDisabled:a,animateIcon:h,themeOverride:K,ariaExpanded:k,tabindex:c,id:U,active:H,size:S,
role:w,className:e,ariaHidden:N,ariaLabel:T,style:function(){return V!=null&&V()||S==null||!S()?V==null?void 0:V():"width: "+(S==null?void 0:S())+"px;height: "+((S==null?void 0:S())+"px;")},
iconFilter:L,onKeydown:J})}})},"j");
_.U7.idomCompat={callbacks:{onKeydown:!0}};var D7u=window.devicePixelRatio||1;var VK6=new Map([["yt_outline_bag_black_24","bag"]]);var j8=function(D){var t=this;this.margin=.1;this.whenInViewportWithMargin=D;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){t.requestScan()});
window.addEventListener("touchend",function(){t.requestScan()});
window.addEventListener("updateui",function(){t.requestScan()});
var H=new _.W5((0,_.Mc)(this.requestScan,this),100);window.addEventListener("scroll",function(){H.fire()},!0);
window.addEventListener("resize",(0,_.Mc)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){t.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Mc)(this.requestScan,this))};
j8.prototype.observe=function(D){this.observationTargets.includes(D)||this.observationTargets.push(D)};
j8.prototype.unobserve=function(D){this.observationTargets=this.observationTargets.filter(function(t){return t!==D})};
j8.prototype.requestScan=function(){var D=this;this.scanRequested||(gj(function(){t0n(D)}),this.scanRequested=!0)};
var t0n=function(D){var t=(1+D.margin)*(document.documentElement.clientHeight||window.innerHeight);D.observationTargets=D.observationTargets.filter(function(H){var e=H.getBoundingClientRect();(e=t>e.top&&!!e.height)&&D.whenInViewportWithMargin(H);return!e&&H.parentNode});
D.scanRequested=!1};
j8.prototype.disconnect=function(){this.observationTargets=[]};var Hq6,V0f;Hq6=_.F(_.KR(w6K(),void 0,"O3X2wd"));_.eSV=Hq6.next().value;V0f=Hq6.next().value;window.addEventListener("resize",function(){V0f(w6K())});var bqf={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},qV9=void 0,Fzo=window.innerWidth,abn=window.innerHeight;window.addEventListener("resize",function(){qV9=void 0});var w8B;if("IntersectionObserver"in window)w8B=hk3();else{if(qV9===void 0){var Zqn;Zqn="matchMedia"in window?window.matchMedia(bqf.landscape+","+bqf.portrait).matches:void 0;qV9=Zqn!==void 0?Zqn:Fzo>=930&&abn>=550||Fzo>=550&&abn>=930}w8B=qV9?{observe:function(D){gj(function(){var t;(t=D.onViewportEntered)==null||t.call(D)})},
unobserve:function(){}}:new j8(function(D){gj(function(){var t;
(t=D.onViewportEntered)==null||t.call(D)})})}var ZOV=w8B;var srv=_.l(function(D){var t=!1,H=_.DY("img",function(e){_.Sj(function(){t=!0;e.onload=null})});
_.Mp(function(){var e,V=(e=D.data)==null?void 0:e.call(D),b,a=(b=D.getSrc)==null?void 0:b.call(D).cb,w;e=(w=D.config)==null?void 0:w.call(D);if(w=H.value)if(b=function(K,N){if(!t)return a?a(K,N):K},KoV(w,e),_.r("web_image_dont_reload_same_src")&&E9V(w,V,b))_.r("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 h;GC3(w,V||null,b,e,(h=D.lazy)==null?void 0:h.call(D))}},"zS0jKb");
return _.G("img",{el:H})},"l");
srv.idomCompat=!0;_.bi=_.l(function(D){var t=function(){var H,e=D.data(),V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u,R,I,tT,ZV,ED,o$,jV,i8,g6,Mu,LQ,DO;var fQ={contentMode:(V=D.contentMode)==null?void 0:V.call(D),loadedClass:(b=D.loadedClass)==null?void 0:b.call(D),isPreloaded:(a=D.isPreloaded)==null?void 0:a.call(D),notifyOnLoaded:(w=D.notifyOnLoaded)==null?void 0:w.call(D),notifyOnUnloaded:(h=D.notifyOnUnloaded)==null?void 0:h.call(D),preferredThumbnail:(K=D.preferredThumbnail)==null?void 0:K.call(D),preserveHeight:(N=D.preserveHeight)==
null?void 0:N.call(D),preserveWidth:(k=D.preserveWidth)==null?void 0:k.call(D),objectPosition:(T=D.objectPosition)==null?void 0:T.call(D),targetWidth:(c=D.targetWidth)==null?void 0:c.call(D),targetHeight:(U=D.targetHeight)==null?void 0:U.call(D),shouldShowPlaceholder:(S=D.shouldShowPlaceholder)==null?void 0:S.call(D),useWidth:(L=D.useWidth)==null?void 0:L.call(D),isToggled:(J=D.isToggled)==null?void 0:J.call(D),alt:(g=D.alt)==null?void 0:g.call(D),className:(Q=D.className)==null?void 0:Q.call(D),
onerror:D.onerror,onload:D.onload,style$:((u=D.style$)==null?void 0:u.call(D))||((R=D.style)==null?void 0:R.call(D)),color:(I=D.color)==null?void 0:I.call(D),width:(tT=D.width)==null?void 0:tT.call(D),height:(ZV=D.height)==null?void 0:ZV.call(D),"aria-hidden$":(LQ=(ED=D["aria-hidden$"])==null?void 0:ED.call(D))!=null?LQ:(o$=D.ariaHidden)==null?void 0:o$.call(D),draggable:(jV=D.draggable)==null?void 0:jV.call(D),"data-disabled$":(DO=(i8=D["data-disabled$"])==null?void 0:i8.call(D))!=null?DO:(g6=D.dataDisabled)==
null?void 0:g6.call(D),size:(Mu=D.size)==null?void 0:Mu.call(D)};return TYT(e,fQ,(H=D.hideOn404)==null?void 0:H.call(D))};
return _.G(_.CY,null,_.G(_.oD,{when:function(){var H;return((H=t())==null?void 0:H.type)==="image"}},function(){return _.G(srv,{data:function(){return t().image},
getSrc:{cb:function(H,e){var V=t().image.sources,b=t().config.isPreloaded,a=t().config.useWidth,w=t().config.targetWidth,h=t().config.targetHeight,K=t().config.preferredThumbnail;return _.tKR(e,V,b,a,w,h,K)||""}},
config:function(){var H=t().config,e;for(e in H)H[e]===void 0&&delete H[e];return H},
lazy:D.renderLazy})}),_.G(_.oD,{when:function(){var H;
return((H=t())==null?void 0:H.type)==="icon"}},function(){return _.G(_.U7,{icon:function(){return t().iconName},
role:function(){return t().config.role},
className:function(){return t().config.className},
style:function(){return t().config.style$+";width: "+(t().config.width+"px;height: ")+(t().config.height+"px;color: ")+(t().config.color+";")},
ariaLabel:function(){return t().config["aria-label$"]},
ariaHidden:function(){return t().config["aria-hidden$"]},
dataDisabled:function(){return t().config["data-disabled$"]},
active:function(){return t().config.isToggled},
size:function(){return t().config.size}})}))},"m");
_.bi.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var hSf=function(D){return function(t){return _.G(gG6,null,function(){var H=t.data(),e=_.fR(t.config);return _.G(V9,null,function(){return void D(H,e)})})}}(rgV),$7u=_.l(function(D){var t=function(e){var V,b=_.FI(function(T){V=X2(function(){for(var c=_.F(N()),U=c.next();!U.done;U=c.next()){U=OOK(U.value);
U=typeof U==="string"?document.createTextNode(U):U;if(!(U instanceof Node)){c=new _.nZ("Part is not a node",U,typeof U);_.gT(c);break}T.appendChild(U)}})}),a=aH(function(){return YVD(e())},{isEqual:jYV}),w=_.qT(D.config),h=function(){var T,c=a();
return!((T=w())==null||!T.ariaLabel)||!(c.commandRuns&&c.commandRuns.length!==0||c.paragraphStyleRuns&&c.paragraphStyleRuns.length!==0)},K=aH(w,{isEqual:o9A}),N=function(){var T=JaT(a(),K());
va3(T,K());return a().content?WzV(a().content,T).parts:[]},k=!0;
_.Mp(function(){a();K();if(k)k=!1;else{var T=N();Promise.resolve().then(function(){var c=b.value;if(c){c.innerText="";var U;(U=V)==null||U();V=_.M2(c,function(){return _.G(U7D,{parts:T})},"n")}})}},"YlhjWd");
return _.G("span",{el:b,class:function(){return a()&&Oq8(a(),w())},
dir:function(){var T;return((T=w())==null?0:T.userInput)?"auto":void 0},
"aria-label":function(){var T;return h()?(T=w())==null?void 0:T.ariaLabel:void 0},
role:function(){return h()?"text":void 0}})},H;
return((H=D.config)==null?0:H.renderedFromFormattedString)?t(D.text):_.G(_.E,{cond:D.text,then:t})},"p");
$7u.idomCompat=!0;_.$7=_.l(function(D){var t=_.qT(D.text),H=Pdk(D);D.renderedFromFormattedString!==void 0&&(H.renderedFromFormattedString=!0);return _.r("attr_string_reactive")?_.G($7u,{text:t,config:H}):_.G(_.E,{cond:function(){var e;return t()&&((e=YVD(t()))==null?void 0:e.content)},
then:function(){return _.G(hSf,{data:D.text,config:H})},
debugInstance:"Apcuac"})},"q");
_.$7.idomCompat=!0;var fIK="";YW$({beforeVisit:function(D){D.type.TAG_NAME&&(fIK=D.type.TAG_NAME)},
afterRender:function(D,t){var H;fIK=(H=t==null?void 0:t.type)!=null?H:""},
didPatch:function(){fIK=""}});var n9D=function(D,t,H){t=t===void 0?"unknown":t;H=H===void 0?{}:H;_.nZ.call(this,D+" ("+t+")",Object.assign({},{name:"YtWcwError",tagName:t},H));Object.setPrototypeOf(this,this.constructor.prototype)};
_.P(n9D,_.nZ);_.s7=new WeakMap;_.ZP=!1;var X6R,LoD,SXD;_.ij=Symbol("mh");_.wm=Symbol("nh");X6R=Symbol("oh");LoD=new Set(Object.getOwnPropertyNames(Element.prototype));SXD=Symbol("ph");var GMQ=_.l(function(D){return _.G("yt-attributed-string",{"aria-label":D.ariaLabel,hidden:D.hidden,id:D.id,class:D.className,"force-default-style":D.forceDefaultStyle},_.G(_.$7,{text:D.data,ariaLabel:D.ariaLabel,ellipsisTruncate:D.ellipsisTruncate,isOverlay:D.isOverlay,linkInheritColor:D.linkInheritColor,noPreWrap:D.noPreWrap,noWrap:D.noWrap,userInput:D.userInput,noEndpoints:D.noEndpoints,headerRuns:D.headerRuns,isHeadline:D.isHeadline}))},"r");
_.r("web_wiz_attributed_string")&&_.hB(GMQ,"yt-attributed-string",{props:{ariaHidden:_.ij,ariaLabel:_.ij,className:_.ij,ellipsisTruncate:_.ij,isOverlay:_.ij,linkInheritColor:_.ij,noEndpoints:_.ij,noStyleRuns:_.ij,noLinkColor:_.ij,noPreWrap:_.ij,noWrap:_.ij,skipOnClick:_.ij,userInput:_.ij,headerRuns:_.ij,isHeadline:_.ij,id:_.ij,data:_.ij,hidden:_.ij,forceDefaultStyle:_.ij,text:_.wm,disableUpgrade:_.wm,disable:_.wm,slot:_.wm}});var rW=function(){return _.X.apply(this,arguments)||this};
_.P(rW,_.X);rW.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},rgV(this.data,this.config))};
_.d([_.C(Okf),_.x("design:type",Object)],rW.prototype,"ytIdomTemplatingBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],rW.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],rW.prototype,"ariaLabel",void 0);_.d([_.M(),_.x("design:type",Boolean)],rW.prototype,"disable",void 0);_.d([_.M(),_.x("design:type",Boolean)],rW.prototype,"ellipsisTruncate",void 0);_.d([_.M(),_.x("design:type",Boolean)],rW.prototype,"isOverlay",void 0);
_.d([_.M(),_.x("design:type",Boolean)],rW.prototype,"linkInheritColor",void 0);_.d([_.M(),_.x("design:type",Boolean)],rW.prototype,"noPreWrap",void 0);_.d([_.M(),_.x("design:type",Boolean)],rW.prototype,"noWrap",void 0);_.d([_.M(),_.x("design:type",Boolean)],rW.prototype,"userInput",void 0);_.d([_.M(),_.x("design:type",Boolean)],rW.prototype,"noEndpoints",void 0);_.d([_.M(),_.x("design:type",Array)],rW.prototype,"headerRuns",void 0);
_.d([_.xL({is:"yt-attributed-string",disableElementRegistration:!0})],rW);
_.r("web_wiz_attributed_string")||_.p(rW,"yt-attributed-string",function(){if(IqV===void 0){var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
D.content.insertBefore(W4f().content.cloneNode(!0),D.content.firstChild);IqV=D}D=IqV;return D},{mode:2});var EaQ,KzB,p6R;EaQ=function(){this.firstThumbnailLoaded=!1};
_.Nyf=function(){KzB||(KzB=new EaQ);return KzB};
p6R=function(D){var t=_.Nyf();t.firstThumbnailLoaded||(t.firstThumbnailLoaded=!0,_.vh("ftl",D))};
EaQ.prototype.reset=function(){this.firstThumbnailLoaded=!1};var g9T=0,v93=new WeakMap,YXR=0,Kb=new Set;var kMn,Tym=function(){return kMn!==void 0?kMn:kMn=document.createElement("template")};
document.head.appendChild(Tym().content);var caQ;var up3,IIV,Og;_.T3=_.VA.caches;Og=function(){};
Og.prototype.open=function(D){return _.T3.open(jrv(D))};
Og.prototype.has=function(D){return _.T3.has(jrv(D))};
Og.prototype.delete=function(D){return _.T3.delete(jrv(D))};
Og.prototype.match=function(D,t){var H=this,e,V,b,a,w,h;return _.Z(function(K){switch(K.nextAddress){case 1:return K.yield(H.keys(),2);case 2:e=K.yieldResult,V=_.F(e),b=V.next();case 3:if(b.done){K.jumpTo(5);break}a=b.value;return K.yield(H.open(a),6);case 6:return w=K.yieldResult,K.yield(w.match(D,t),7);case 7:if(h=K.yieldResult)return K.return(h);b=V.next();K.jumpTo(3);break;case 5:return K.return()}})};
var QYR=function(){};
_.P(QYR,Og);var jrv=function(D){if(D.includes(":"))throw Error("sh`"+D);return D+":"+_.oA("CacheStorage get")};
QYR.prototype.keys=function(){var D,t,H,e,V,b,a,w,h;return _.Z(function(K){if(K.nextAddress==1)return D=[],t=_.oA("CacheStorage keys"),K.yield(_.T3.keys(),2);H=K.yieldResult;e=_.F(H);for(V=e.next();!V.done;V=e.next())b=V.value,a=_.Rkk(b),w=a.originalName,h=a.datasyncId,h===t&&D.push(w);return K.return(D)})};var Ug=function(){var D=_.X.apply(this,arguments)||this;D.objectURL=null;D.loadTime=Infinity;return D};
_.P(Ug,_.X);_.q=Ug.prototype;_.q.renderIdom=function(){x7K(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("vh");this.setConfig();this.config&&NY3(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.q.objectFitToContentMode=function(D){switch(D){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.q.logThumbnailFailureVe=function(){var D=_.Nx(197497);_.A1(_.Pc(),D);var t=_.v3();t&&D&&t&&_.zf(t,[D])};
_.q.loadImageFromCacheIfExists=function(D){var t=this,H=D.target;(H==null?0:H.src)&&BYu(H.src).then(function(e){t.objectURL=_.xh(e).toString();t.setSrc(H,t.objectURL)}).catch(function(){})};
_.q.onError=function(D){var t=this;if(_.r("web_use_cache_for_image_fallback")){var H=D.target;H&&BYu(H.src).then(function(e){t.objectURL=_.xh(e).toString();t.setSrc(H,t.objectURL)}).catch(function(){_.r("kevlar_woffle_log_thumbnail_failure_ve")&&t.logThumbnailFailureVe();
_.r("kevlar_woffle_fallback_image")&&t.setSrc(H,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.q.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.q.setConfig=function(){var D=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(t){D.loadImageFromCacheIfExists(t);D.revokeObjectURL();d78(D.hostElement)},
onerror:function(t){D.onError(t)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.r("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.q.setSrc=function(D,t){t&&(D.src=t)};
_.d([_.C(Okf),_.x("design:type",Object)],Ug.prototype,"ytIdomTemplatingBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ug.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],Ug.prototype,"alt",void 0);_.d([_.M(),_.x("design:type",Boolean)],Ug.prototype,"ftlEligible",void 0);_.d([_.M(),_.x("design:type",Number)],Ug.prototype,"height",void 0);_.d([_.M(),_.x("design:type",Boolean)],Ug.prototype,"notifyOnLoaded",void 0);
_.d([_.M(),_.x("design:type",Boolean)],Ug.prototype,"notifyOnUnloaded",void 0);_.d([_.M(),_.x("design:type",String)],Ug.prototype,"objectFit",void 0);_.d([_.M(),_.x("design:type",String)],Ug.prototype,"objectPosition",void 0);_.d([_.M(),_.x("design:type",String)],Ug.prototype,"preferredThumbnail",void 0);_.d([_.M(),_.x("design:type",Boolean)],Ug.prototype,"preserveHeight",void 0);_.d([_.M(),_.x("design:type",Boolean)],Ug.prototype,"preserveWidth",void 0);
_.d([_.M({value:!0}),_.x("design:type",Boolean)],Ug.prototype,"useWidth",void 0);_.d([_.M({value:function(){return!_.lh("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.x("design:type",Boolean)],Ug.prototype,"shouldRenderLazy",void 0);_.d([_.M(),_.x("design:type",Number)],Ug.prototype,"width",void 0);_.d([_.xL({is:"yt-image",disableElementRegistration:!0})],Ug);
_.p(Ug,"yt-image",function(){if(caQ===void 0){var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);D.content.insertBefore(Tym().content.cloneNode(!0),D.content.firstChild);
caQ=D}D=caQ;return D},{mode:2});var oT=function(){return _.X.apply(this,arguments)||this};
_.P(oT,_.X);oT.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var D=_.xP(this.data.onVisibleCommand);D&&this.ytComponentBehavior.resolveCommand(D)}};
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],oT.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.k7.YtVisibilityBehavior),_.x("design:type",Object)],oT.prototype,"ytVisibilityBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],oT.prototype,"data",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],oT);
_.p(oT,"yt-bumper-user-edu-content-view-model",function(){if($j9===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;j29===void 0&&(j29=document.createElement("template"));var e=j29;H.call(t,e.content.cloneNode(!0),D.content.firstChild);$j9=D}D=$j9;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var $sB;var iqQ,raf=function(){if(iqQ!==void 0)return iqQ;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;$sB===void 0&&($sB=document.createElement("template"));var e=$sB;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return iqQ=D};var Oqa;_.PP={};Oqa=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"]);_.PP.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var D=this.getContext_();return D?D.getTaskManager():_.Jy},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var D=_.Gf(this.hostElement,"yt-get-context-provider",{});D.detail&&D.detail.contextProvider?this.cachedProviderNode_=D.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return Oqa.has(this.hostElement.localName)},
getNetworkManager:function(){var D=this.getContext_();if(D)return D.getNetworkManager()}};var VhV,Usn,PXm,oaQ;_.nE=function(D){var t=Usn.get(D);if(t&&(t=t.pop()))return oaQ++,t;PXm++;try{var H=document.createElement(D)}catch(e){throw new _.nZ("ElementPool failed to create element",D,e.message);}return H};
VhV=function(D){var t=D.is;if(t){var H=Usn.get(t);H||(H=[],Usn.set(t,H));var e=_.YC("ELEMENT_POOL_CONFIG")||{};H.length>=(e[t]!==void 0?e[t]:_.YC("ELEMENT_POOL_DEFAULT_CAP",0))||H.push(D)}else _.Yw(new _.nZ("Element pool should only handle custom elements:",D.nodeName))};
Usn=new Map;PXm=0;oaQ=0;var cZ=new WeakMap,epk=new WeakMap;var CX6;_.CE=function(D,t,H){H=H===void 0?_.Cs():H;this.JSC$13813_defaultPriority=D;this.signal=t;this.scheduler=H;this.nextJobDescriptor=0;this.JSC$13813_parkedJobs=[];this.scheduledJobs=new Map};
_.mX=function(D,t){if(t){var H=_.EK();D.signal&&!_.Kp(H,D.signal)?(H.addListener(D.signal,function(){D.processSignal()}),D.JSC$13813_parkedJobs.push({job:t,
priority:void 0})):naV(D,t)}};
CX6=function(D,t){if(t!==D.JSC$13813_defaultPriority){D.JSC$13813_defaultPriority=t;for(var H=_.F(D.scheduledJobs.values()),e=H.next();!e.done;e=H.next())e=e.value,D.scheduler.cancelJob(e.jobId),e.jobId=D.scheduler.addJob(e.jobWrapper,t)}};
_.CE.prototype.flushJobs=function(){CX6(this,10);this.processSignal()};
_.CE.prototype.cancel=function(){for(var D=_.F(this.scheduledJobs),t=D.next();!t.done;t=D.next()){var H=_.F(t.value);t=H.next().value;H=H.next().value;this.scheduler.cancelJob(H.jobId);this.scheduledJobs.delete(t)}this.JSC$13813_parkedJobs=[]};
_.CE.prototype.processSignal=function(){for(var D=_.F(this.JSC$13813_parkedJobs),t=D.next();!t.done;t=D.next())t=t.value,naV(this,t.job,t.priority);this.JSC$13813_parkedJobs=[]};
var naV=function(D,t,H){H=H||D.JSC$13813_defaultPriority;if(H===10)NX(t);else{var e=D.nextJobDescriptor++,V=function(){t();D.scheduledJobs.delete(e)},b=D.scheduler.addJob(V,H);
D.scheduledJobs.set(e,{jobWrapper:V,jobId:b,priority:H})}};var ms9;_.MK={};ms9={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.MK.YtRendererstamperBehavior=[_.PP.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 D in this.stampDom){var t=this.stampDom[D];t&&t.id&&this.addReactiveSchema({type:"observe",method:{methodName:Dq$(t.id),args:[{type:"wildcard",path:D}]}})}else{(D=(this.constructor.generatedFrom||this).observers)||(D=[]);for(t in this.stampDom){var H=this.stampDom[t];H&&H.id&&D.push(Dq$(H.id)+"("+t+".*)")}this.constructor.generatedFrom.observers=D}},
addStampDomObserverFns_:function(){for(var D in this.stampDom){var t=this.stampDom[D];t.id?(this[Dq$(t.id)]=this.rendererStamperObserver_.bind(this,D,t.id),this.hasDataPath_[D]=!1):(t=new _.nZ("Bad rendererstamper config",this.is+":"+D),_.gT(t))}},
rendererStamperObserver_:function(D,t,H){if(H.path==D){if(H.value===void 0&&!this.hasDataPath_[D])return;this.hasDataPath_[D]=H.value!==void 0}this.rendererStamperApplyChangeRecord_(D,t,H)},
rendererStamperApplyChangeRecord_:function(D,t,H){var e=this.renderJobsMap_[t],V=null;D==H.path?(H=H.value,_.d6(H)||(H=H===void 0||H===null?[]:[H]),D=this.stampDom[D],D.mapping&&(V=this.stampDomArray_.bind(this,H,t,D.mapping,D.reuseComponents,D.events,D.stamperStableList)),e&&e.cancel(),H=D.usePageScheduler?this.getTaskManager():void 0,e||D.initialRenderPriority==void 0)?D.renderPriority==void 0||e||(e=new _.CE(D.renderPriority,D.waitForSignal,H),this.renderJobsMap_[t]=e):(e=new _.CE(D.initialRenderPriority,
D.waitForSignal,H),this.renderJobsMap_[t]=e,V=function(b,a){b();CX6(a,10)}.bind(this,V,e)):V=D+".splices"==H.path?this.stampDomArraySplices_.bind(this,D,t,H.value):this.forwardRendererStamperChanges_.bind(this,D,t,H);
e?_.mX(e,V):V()},
forwardRendererStamperChanges_:function(D,t,H){var e=H.path.slice(D.length+1),V=this.getStampContainer_(t),b=e.indexOf("."),a=e.substring(0,b),w=!1,h=0,K=parseInt(a,0);if(a[0]=="#"){w=parseInt(a.substring(1),0);K=this.get(D);var N=this.get([D,a]);K[w]==N?h=w:h=K.indexOf(N);w=!0}else isNaN(K)||(h=K,w=!0);w&&(e=e.substring(a.length+1),b=e.indexOf("."));a=_.Xu(V).children[h];var k;if(V=(k=a==null?void 0:a.polymerController)!=null?k:a)e="data"+e.slice(b),typeof V.notifyPath!=="function"?_.Yw(new _.nZ("notifyPath missing",
this.is+": "+D+", "+t)):H.value?V.notifyPath(e,H.value):V.notifyPath(e)},
stampDomArraySplices_:function(D,t,H){if(H&&H.indexSplices){var e=this.getStampContainer_(t);if(e){for(var V=_.Xu(e),b=HDX(this.stampDom[D].reuseComponents),a=H.indexSplices.length,w=0;w<a;w++){for(var h=H.indexSplices[w],K=V.children[h.index],N=h.removed.length;N>0;N--)K&&K.parentElement&&(_.Xu(K.parentElement).removeChild(K),b&&VhV(K),K=V.children[h.index]);N=this.stampDom[D].mapping;for(var k=h.index+h.addedCount,T=document.createDocumentFragment(),c=b,U=h.index;U<k;U++){var S=h.object[U],L=zkV(N,
S);if(L){var J=N[L];S=S[L];L=this.getComponentName_(J,S);var g=K?cZ.has(K):!1;c&&K&&K.is==L&&g?(L=K,this.telemetry_.reuse++,K=K.nextElementSibling):c&&K&&g?(L=this.createComponent_(J,S,b),g=_.Xu(K).nextElementSibling,V.insertBefore(L,g),q$3(this.is,V,K,b),K=g):(c=!1,L=this.createComponent_(J,S,b),T.appendChild(L));this.deferRenderStamperBinding_(L,J,S)}else J=new _.nZ("Unimplemented type",D,t,e.tagName,Object.keys(S)[0]),_.gT(J)}V.insertBefore(T,K)}this.flushRenderStamperComponentBindings_();this.stampDom[D].events&&
_.Gf(this.hostElement,"yt-rendererstamper-finished",{container:e})}else D=new _.nZ("Container object not found",t,this.hostElement?this.hostElement.is:""),_.gT(D)}},
stampDomArray_:function(D,t,H,e,V,b){var a=this.getStampContainer_(t);if(a)if(t=_.Xu(a),e=HDX(e),D){var w=0,h=0,K;if(b=b===void 0?_.lh("STAMPER_STABLE_LIST",!1):b||!1)for(K=t.firstElementChild;K&&!cZ.has(K)&&D.length>h;){b=D[h];var N=zkV(H,b);if(N){if(this.getComponentName_(H[N],b[N])!=K.is){var k=this.createComponent_(H[N],b[N],e),T=_.Xu(K).nextElementSibling;T?t.insertBefore(k,T):t.appendChild(k);q$3(this.is,t,K,e);K=k}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(K,H[N],b[N]);w++;
h++;K=_.Xu(K).nextElementSibling}else h++}F7u(this.is,t,w,e);w=K;if(D.length>h){b=document.createDocumentFragment();for(N=D.length;h<N;h++)if(k=D[h],T=zkV(H,k))K=this.createComponent_(H[T],k[T],e),this.deferRenderStamperBinding_(K,H[T],k[T]),b.appendChild(K);w&&_.Xu(w).parentNode&&K&&!cZ.has(K)?t.insertBefore(b,w):t.appendChild(b)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();V&&_.Gf(this.hostElement,"yt-rendererstamper-finished",{container:a})}else F7u(this.is,t,0,
e);else D=new _.nZ("Container object not found",t,this.hostElement?this.hostElement.is:""),_.gT(D)},
getStampContainer_:function(D){return this.$&&this.$[D]||_.Kg(this.hostElement).querySelector("#"+D)},
getComponentName_:function(D,t){return typeof D==="string"?D:D.matcher?D.matcher.call(this,t):D.component},
createComponent_:function(D,t,H){D=this.getComponentName_(D,t);try{var e=GL.has(D);if(H&&!e){var V=_.nE(D);try{_.jZ(V)}catch(b){H="Failed to clear styles for "+D+".",b.message&&(H+=" Original error: "+b.message),_.Yw(new _.nZ(H))}}else V=document.createElement(D)}catch(b){return V="YtRendererStamperBehavior failed to create "+D+".",b.message&&(V+=" Original description: "+b.message),b.message="YtRendererStamperBehavior failed to create element",_.lm(b,V),ms9.hasOwnProperty(D)?_.Yw(b):_.gT(b),document.createElement("SPAN")}this.telemetry_.create++;
return V},
deferRenderStamperBinding_:function(D,t,H){this.deferredBindingTasks_.push({component:D,typeOrConfig:t,data:H})},
flushRenderStamperComponentBindings_:function(){for(var D=0,t=this.deferredBindingTasks_.length;D<t;D++){var H=this.deferredBindingTasks_[D];if(!H)break;var e=void 0,V=void 0,b=void 0,a=void 0,w=H.component,h=H.typeOrConfig;H=H.data;var K=(a=w.polymerController)!=null?a:w;a=w.loggingStatus;try{a&&(a.isRendererStamper=!0);if(typeof h!=="string"){for(b in h.attributes)h.attributes[b]===!0?w.setAttribute(b,""):h.attributes[b]===!1?w.removeAttribute(b):w.setAttribute(b,h.attributes[b]);for(V in h.params)K[V]=
h.params[V],w!==K&&Xd(w.localName,V,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(e in h.properties){var N=h.properties[e];if(N){var k=thR(N);K[e]=this.get(k);w!==K&&Xd(w.localName,e,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(e==="on-tap"||e==="on-click"){var T=this.get(k);w.addEventListener("click",T);epk.set(w,{property:e,listener:{type:"element",eventName:"click",handler:T}})}}else{var c=new _.nZ("Undefined property binding",e);_.gT(c)}}}if(h.classListBinding){var U=thR(h.classListBinding),
S=U?this[U]:null;if(S)for(e=0;e<S.length;e++)_.kL(w,S[e],!0)}K.data=H}finally{a&&(a.isRendererStamper=!1)}if(e=cZ.get(w))w.hidden=!1,cZ.delete(w),_.Jy.cancelJob(e)}this.deferredBindingTasks_.length=0}}];_.hB(_.l(function(D){function t(){H().seconds&&b(pM8({seconds:Number(H().seconds)-Date.now()/1E3}))}
var H=D.targetTimestamp;D=D.className;var e=_.F(_.KR("",void 0,"TM9kjd")),V=e.next().value,b=e.next().value;_.SG(function(){t();var a=setInterval(function(){t()},1E3);
_.Sj(function(){clearInterval(a)})});
return _.G("yt-countdown",{class:_.jQ("ytCountDownHost",D)},_.G("div",null,V))},"s"),"yt-countdown",{props:{targetTimestamp:_.ij,
className:_.wm}});_.S8=new _.kI("KEY_MANAGER_TOKEN");var aW6={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"};_.XW=_.l(function(D){var t=_.DY("a",D.ref),H=D.aTagConfig?D.aTagConfig:_.jj(function(){var e,V,b,a,w;var h=(w=_.xP((b=D.command)==null?void 0:b.call(D)))!=null?w:(a=D.command)==null?void 0:a.call(D);return _.uf({innertubeCommand:h,skipOnClick:(e=D.skipOnClick)==null?void 0:e.call(D),defaultTarget:(V=D.target)==null?void 0:V.call(D)})||{}},void 0,"TAvz0");
_.Mp(function(){_.r("mweb_enable_keto_batch_pages")||(t.value._data=H()._data,t.value.params=H().params)},"dcjvAe");
return _.G("a",{el:t,href:function(){return H().href$},
rel:function(){return H().rel$},
class:function(){var e,V;return(V=H().className)!=null?V:(e=D.className)==null?void 0:e.call(D)},
style:function(){var e;if((e=D.style)==null?0:e.call(D))return D.style();var V;return((V=D.disabled)==null?0:V.call(D))?"pointer-events:none":""},
"aria-haspopup":function(){return!!H()["aria-haspopup$"]},
"force-new-state":ii(function(){return H()["force-new-state$"]}),
title:ii(function(){var e,V;return(V=H().title$)!=null?V:(e=D.title)==null?void 0:e.call(D)}),
role:ii(function(){var e;return((e=D.role)==null?void 0:e.call(D))||H().role$}),
target:ii(function(){return H().target$}),
dir:ii(function(){var e;return((e=D.dir)==null?void 0:e.call(D))||H().dir}),
tabindex:function(){var e;return H().tabindex$?Number(H().tabindex$):(e=D.tabIndex)==null?void 0:e.call(D)},
"aria-hidden":function(){var e,V;return(V=H()["aria-hidden$"])!=null?V:(e=D.ariaHidden)==null?void 0:e.call(D)},
"aria-label":function(){var e,V;return(V=H()["aria-label$"])!=null?V:(e=D.ariaLabel)==null?void 0:e.call(D)},
"aria-current":D.ariaCurrent,"aria-disabled":D.disabled,"aria-labelledby":D.ariaLabelledby,"aria-describedby":D.ariaDescribedby,"aria-selected":D.ariaSelected,"tab-identifier":D.tabIdentifier,"on:pointerdown":_.$X(function(e){var V,b;return void((b=(V=H()).onpointerdown)==null?void 0:b.call(V,e))}),
"on:click":_.$X(function(e){var V,b;(b=(V=H()).onclick)==null||b.call(V,e);var a;(a=D.onClick)==null||a.call(D,e)}),
"on:focusin":_.$X(function(e){var V;(V=D.onFocusin)==null||V.call(D,e)}),
"on:focusout":_.$X(function(e){var V;(V=D.onFocusout)==null||V.call(D,e)})},D.children)},"u");var N$D={duration:1E3,easing:"ease",fill:"forwards"};K7u.componentType=PI;var cNV={duration:1E3,easing:"ease",fill:"forwards"},X8v=_.l(function(D){var t=_.DY("animated-rolling-character"),H=void 0,e=function(){var w,h;return V$((w=D.character)==null?void 0:w.call(D))||V$((h=D.previousCharacter)==null?void 0:h.call(D))},V=_.F(_.KR(0,void 0,"Dgrnr")),b=V.next().value,a=V.next().value;
_.SG(function(){if(window.ResizeObserver&&_.r("web_fix_rolling_numbers_zoom_safari")){var w=new ResizeObserver(function(){var h,K,N=Math.round(((K=(h=t.value.querySelector("div"))==null?void 0:h.getBoundingClientRect().height)!=null?K:0)*100)/100;N&&a(N)});
w.observe(t.value);_.Sj(function(){w.disconnect()})}});
_.Mp(function(){var w=_.r("web_fix_rolling_numbers_zoom_safari")?b:D.marginMultiplier;if(w()){var h;(h=H)==null||h.cancel();if(e()){var K;h=((K=D.previousCharacter)==null?0:K.call(D))?Number(D.previousCharacter())+10:D.rollUp()?0:30;var N;if((N=D.shouldAnimate)==null||!N.call(D)){var k,T;h-=T$V((k=D.character)==null?void 0:k.call(D),(T=D.previousCharacter)==null?void 0:T.call(D),D.rollUp(),h)}}else{h=D.rollUp()?0:2;var c;(c=D.shouldAnimate)!=null&&c.call(D)||(K=h,N=D.rollUp()?-1:1,h=K-N)}t.value.style.marginTop=
"-"+h*w()+"px";var U;if((U=D.shouldAnimate)==null?0:U.call(D)){var S,L;H=jaV(t.value,(S=D.character)==null?void 0:S.call(D),(L=D.previousCharacter)==null?void 0:L.call(D),D.rollUp(),h,e(),w())}else{var J;t.value.style.display=((J=D.character)==null?0:J.call(D))?"":"none"}}},"jKjMhe");
return _.G("animated-rolling-character",{el:t,class:"animatedRollingCharacterHost"},_.G(_.E,{cond:e,then:function(){return _.G(M0f,null)},
else:function(){return _.G(SVf,{character:D.character})}}))},"w");
X8v.idomCompat=!0;var $qV=_.r("web_enable_sink_animated_rolling_character_and_number")?X8v:K7u,fbm=_.r("web_enable_sink_animated_rolling_character_and_number")?X8v:kRD(K7u),M0f=_.l(function(){for(var D=[],t=1;t<30;t++)D.push(_.G("div",null,t%10));return _.G(_.FH,null,_.G("div",null,"\u00a0"),D,_.G("div",null,"\u00a0"))},"x"),SVf=_.l(function(D){var t=D.character;
return _.G(_.FH,null,_.G("div",null,"\u00a0"),_.G(_.E,{cond:function(){return!(t==null?0:t())||_.sD(t==null?void 0:t())},
then:function(){return _.G("div",null,"\u00a0")},
else:function(){return _.G("div",null,t)}}),_.G("div",null,"\u00a0"))},"y");iDD.componentType=PI;var Lzw=_.l(function(D){var t=void 0,H=void 0,e=function(){var b;return((b=D.fontSizeMultiplier)==null?0:b.call(D))?D.heightPx()*D.fontSizeMultiplier():D.heightPx()},V=_.jj(function(){if(!D.numberText())return[];
var b,a,w=((b=D.forceRollUp)==null?void 0:b.call(D))||!H||!((a=D.numberValue)==null?0:a.call(D))||H<D.numberValue(),h,K=D.numberText();b=e();a=!((h=D.shouldAnimate)==null||!h.call(D));h=[];var N=0,k=0,T=(t?t.replace(/\D/g,"").length:0)-(K?K.replace(/\D/g,"").length:0),c=t?t.split(/(\d)/).filter(Boolean):[];for(K=K.split(/(\d)/).filter(Boolean);T<0;){var U=K[k];h.push({character:U,rollUp:w,marginMultiplier:b,shouldAnimate:a});k++;V$(U)&&T++}for(;N<T;)U=c[N],h.push({previousCharacter:U,rollUp:w,marginMultiplier:b,
shouldAnimate:a}),N++,V$(U)||T++;for(;k<K.length;)T=K[k],U=c[N],V$(T)===V$(U)?(k++,N++):V$(T)?(N++,T=void 0):V$(U)&&(k++,U=void 0),h.push({character:T,previousCharacter:U,rollUp:w,marginMultiplier:b,shouldAnimate:a});t=D.numberText();var S;H=(S=D.numberValue)==null?void 0:S.call(D);return h},void 0,"kWiBv");
return _.G("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return D.numberText()?["height: "+e()+"px;","line-height: "+D.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.G(_.nY,{each:V,keyBy:"INDEX"},function(b){return _.G(fbm,{character:function(){return b().character},
previousCharacter:function(){return b().previousCharacter},
marginMultiplier:function(){return b().marginMultiplier},
rollUp:function(){return b().rollUp},
shouldAnimate:function(){return b().shouldAnimate}})}))},"z");
Lzw.idomCompat=!0;_.Aav=_.r("web_enable_sink_animated_rolling_character_and_number")?Lzw:kRD(iDD);var gav=function(D,t){this.fillAnimation=new Animation(oUA(D),document.timeline);this.strokeAnimation=new Animation(PWV(t),document.timeline)};
gav.prototype.play=function(){var D,t;(t=(D=this.fillAnimation).play)==null||t.call(D);var H,e;(e=(H=this.strokeAnimation).play)==null||e.call(H)};
gav.prototype.cancel=function(){var D,t;(t=(D=this.fillAnimation).cancel)==null||t.call(D);var H,e;(e=(H=this.strokeAnimation).cancel)==null||e.call(H)};_.fE=_.l(function(D){var t=D.model;var H=D.pointerDownEvent;var e=D.pointerUpEvent;var V=D.pointerLeaveEvent;var b=D.hovered;D=_.DY("yt-touch-feedback-shape");var a=_.DY("div"),w=_.DY("div"),h=_.F(_.rm(function(){return(e==null?0:e())||(V==null?0:V())?!1:!(H==null||!H())||!1})),K=h.next().value,N=h.next().value,k=void 0,T=function(){!k&&w.value&&a.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(k=new gav(w.value,a.value));
var g;(g=k)==null||g.play()},c=function(){var g;
(g=k)==null||g.cancel()},U=function(){var g;
(g=k)==null||g.cancel()};
_.Mp(function(){(e==null?0:e())&&T()},"bg756c");
_.Mp(function(){(H==null?0:H())&&c()},"QAes8c");
_.Mp(function(){(V==null?0:V())&&U()},"YaFbrc");
h=_.$X(function(){T();N(!1)});
var S=_.$X(function(){c();N(!0)}),L=_.$X(function(){U();
N(!1)});
_.Sj(function(){if(k){var g;(g=k)==null||g.cancel();k=void 0}});
var J={};K=_.jQ("yt-spec-touch-feedback-shape",function(){return nUD(t().color)},function(){return CWT(t().thumbnailSize,!!t().isExtended)},(J["yt-spec-touch-feedback-shape--focused"]=function(){return!!t().focused&&!t().disabled},J["yt-spec-touch-feedback-shape--circular"]=function(){return!!t().circular},J["yt-spec-touch-feedback-shape--down"]=K,J["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!t().triggerEvents},J["yt-spec-touch-feedback-shape--hovered"]=function(){return b==
null?void 0:b()},J));
return _.G("yt-touch-feedback-shape",{el:D,class:K,style:_.O7({"margin-top":function(){return t().customTopExtend?"-"+t().customTopExtend+"px":void 0}}),
"on:mousedown":S,"on:mouseup":h,"on:pointerleave":L,"on:touchstart":S,"on:touchend":h,"aria-hidden":!0},_.G(_.E,{cond:function(){return!!t().hoverEffect},
then:function(){return _.G("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.O7({"border-radius":function(){return t().borderRadius},
background:function(){var g;if(g=t().hoverEffect){for(var Q=[],u=_.F((g==null?void 0:g.lightingTechniques)||[]),R=u.next();!R.done;R=u.next())switch(R.value){case 2:var I=R=void 0;Q.push("linear-gradient(135deg, "+((R=g)==null?void 0:(I=R.palette)==null?void 0:I.keyLight)+",transparent)")}var tT,ZV;Q.push((tT=t().hoverEffect)==null?void 0:(ZV=tT.palette)==null?void 0:ZV.background);g=Q.join(", ")}else g=void 0;return g}})})}}),_.G("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.O7({"border-radius":function(){return t().borderRadius},
"border-color":function(){var g,Q;return(g=t().touchEffect)==null?void 0:(Q=g.palette)==null?void 0:Q.background}}),
el:a}),_.G("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.O7({"border-radius":function(){return t().borderRadius},
"background-color":function(){var g,Q;return(g=t().touchEffect)==null?void 0:(Q=g.palette)==null?void 0:Q.background}}),
el:w}))},"D");
_.fE.idomCompat=!0;var Ja3={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 LE=_.TV();LE=LE.toLowerCase();if(_.hT(LE,"android")){var YVn=LE.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);YVn&&parseFloat(YVn[1])<100||LE.match("("+Object.keys(Ja3).join("|")+")")};var lbn=_.l(function(D){return _.G(_.E,{cond:D.aTagConfig,then:function(t){return _.G(_.XW,{aTagConfig:t,disabled:D.disabled,className:D.className,style:D.style,title:D.title,ariaLabel:D.ariaLabel,ariaCurrent:function(){var H,e;return((H=D.toggleable)==null?void 0:H.call(D))&&((e=D.toggled)==null?void 0:e.call(D))},
ref:D.ref},D.children)},
else:function(){return _.G("button",{el:_.FI(D.ref),"on:click":_.$X(function(t){var H;return(H=D.onClick)==null?void 0:H.call(D,t)}),
class:D.className,title:D.title,style:D.style,disabled:D.disabled,"aria-pressed":function(){var t,H;return((t=D.toggleable)==null?0:t.call(D))?!((H=D.toggled)==null||!H.call(D)):void 0},
"aria-label":D.ariaLabel,"aria-disabled":D.visiblyDisabled,"aria-hidden":D.ariaHidden,tabindex:D.tabIndex},D.children)}})},"E"),p8m=_.l(function(D){var t=D.data;
var H=D.hasIconLeading;var e=D.hasIconLeadingTrailing;var V=D.hasIconTrailing;var b=D.iconButton;var a=D.iconClassName;var w=D.secondaryIconClassName;var h=D.icon;var K=D.secondaryIcon;var N=D.textContentClassName;return _.G(AX,{className:"",style:"display: inherit; justify-content: center"},_.G(_.E,{debugInstance:"V4z1Uc",cond:function(){return h&&(H()||e()||(b==null?void 0:b()))},
then:function(){return _.G(AX,null,_.G("div",{class:a,"aria-hidden":"true"},h==null?void 0:h()))}}),_.G(_.E,{debugInstance:"ok3btb",
cond:function(){return(t().buttonText||t().animatedTextProps||t().formattedButtonText)&&!(b==null?0:b())},
then:function(){return _.G(AX,null,_.G(vav,{className:N,iconPosition:function(){return t().iconPosition},
text:function(){return t().buttonText},
oneOffCustomTextWrap:function(){return t().oneOffCustomTextWrap},
formattedButtonText:function(){return t().formattedButtonText},
animatedTextProps:function(){return t().animatedTextProps}}))}}),_.G(_.E,{debugInstance:"DO5Rz",
cond:V,then:function(){return _.G(AX,null,_.G("div",{class:a},h==null?void 0:h()))}}),_.G(_.E,{debugInstance:"bnojSc",
cond:e,then:function(){return _.G(AX,null,_.G("div",{class:w},K==null?void 0:K()))}}),_.G(_.E,{debugInstance:"HN3kad",
cond:function(){return!t().disabled&&!0},
then:function(){return _.G(_.fE,{model:function(){var k=t();return{color:k.style==="overlay-dark"?4:k.style==="overlay"?k.type==="filled"?4:3:k.type==="filled"||k.style==="call-to-action-inverse"||k.style==="mono-inverse"?2:1}}})}}))},"F"),vav=_.l(function(D){var t=function(){var H,e;
return((H=D.iconPosition)==null?void 0:H.call(D))==="icon-with-label"||((e=D.oneOffCustomTextWrap)==null?void 0:e.call(D))};
return _.G("div",{class:D.className,"aria-hidden":function(){var H,e,V;return((H=D.ariaHidden)==null?void 0:H.call(D))&&(!((e=D.animatedTextProps)==null||!e.call(D))||!((V=D.formattedButtonText)==null||!V.call(D)))}},_.G(_.CY,null,_.G(_.oD,{when:function(){var H;
return(H=D.animatedTextProps)==null?void 0:H.call(D)}},function(){return _.G(_.Aav,{numberText:function(){return D.animatedTextProps().numberText},
numberValue:function(){return D.animatedTextProps().numberValue},
heightPx:function(){return D.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return D.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return D.animatedTextProps().shouldAnimate},
forceRollUp:function(){return D.animatedTextProps().forceRollUp}})}),_.G(_.oD,{when:function(){var H;
return(H=D.formattedButtonText)==null?void 0:H.call(D)}},function(){return _.G(_.$7,{text:function(){return Object.assign({},D.formattedButtonText(),{lineBreakMode:t()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":D.formattedButtonText().lineBreakMode,
alignment:t()?"TEXT_ALIGNMENT_CENTER":D.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!t()}})}),_.G(_.oD,{when:function(){var H,e;
return((H=D.iconPosition)==null?void 0:H.call(D))==="icon-with-label"&&((e=D.text)==null?void 0:e.call(D))}},function(){return _.G(_.$7,{text:function(){return{content:D.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.G(_.Pn,null,function(){return D.text})))},"G"),dsV=_.l(function(D){return _.G(_.E,{debugInstance:"kM7Sgc",
cond:D.hasLabel,then:function(){var t;return _.G("label",{class:D.className},D.children,(t=D.textContent)==null?void 0:t.call(D))},
else:function(){return D.children}})},"H"),AX=_.l(function(D){return D.children},"I");var xs6=_.l(function(D){var t=_.FI(),H=_.F(_.KR(void 0,void 0,"Ug77pc")),e=H.next().value,V=H.next().value;H=_.F(_.KR(void 0,void 0,"XGf7Zb"));var b=H.next().value,a=H.next().value;H=_.F(_.KR(0,void 0,"Ygnx7b"));var w=H.next().value,h=H.next().value;H=_.$X(function(){switch(w()){case 1:h(2);break;case 3:var N,k;(k=(N=t.value).hidePopover)==null||k.call(N);h(0);V(void 0);a(void 0)}});
_.Mp(function(){if(D.show()){var N;V((N=D.children)==null?void 0:N.call(D));var k;a((k=D.location)==null?void 0:k.call(D));switch(w()){case 0:var T,c;(c=(T=t.value).showPopover)==null||c.call(T);h(1);break;case 3:h(1);var U,S;(S=(U=t.value).hidePopover)==null||S.call(U);var L,J;(J=(L=t.value).showPopover)==null||J.call(L)}}else switch(w()){case 2:h(3);break;case 1:var g,Q;(Q=(g=t.value).hidePopover)==null||Q.call(g);V(void 0);a(void 0);h(0)}},"lOyibf");
_.XH(function(){});
var K={};return _.G("yt-popover",{popover:"manual",el:t,style:_.O7({left:function(){var N;return(N=b())==null?void 0:N.left},
top:function(){var N;return(N=b())==null?void 0:N.top},
bottom:function(){var N;return(N=b())==null?void 0:N.bottom},
right:function(){var N;return(N=b())==null?void 0:N.right}}),
class:_.jQ("ytPopoverComponentHost",D.classNames,(K.ytPopoverComponentHostClosing=function(){return w()===3},K.ytPopoverComponentHostSeeThrough=function(){var N;
return((N=D.seeThrough)==null?void 0:N.call(D))===!0},K)),
"on:animationend":H},e)},"K");var RSB={left:"0px",right:"auto",top:"0px",bottom:"auto"},utv=function(){var D=this;this.registerTooltipElement=function(H){var e;D.tooltipElement=(e=H.querySelector("yt-popover"))!=null?e:void 0};
var t=_.F(_.KR(void 0,void 0,"z4iHWd"));this.state=t.next().value;this.setState=t.next().value;t=_.F(_.KR(void 0,void 0,"uKDcaf"));this.schedulerJobID=t.next().value;this.setSchedulerJobID=t.next().value},JN8=function(D,t){var H=PZ,e=_.Jy.addJob(function(){var V=Wz4(H,D,t);
H.setState({text:t.text,location:V,anchor:D,offset:t.offset})},4,t.delay);
H.setSchedulerJobID(e)},Y$$=function(){var D=PZ,t=D.schedulerJobID();
t&&(_.Jy.cancelJob(t),D.setSchedulerJobID(void 0));D.setState(void 0)};
utv.prototype.notify=function(D,t){var H;((H=this.state())==null?void 0:H.anchor)===D&&(H=Wz4(this,D,t),this.setState({text:t.text,location:H,anchor:D,offset:t.offset}))};
var Wz4=function(D,t,H){var e=t.getBoundingClientRect();t=window.innerWidth;var V=window.innerHeight,b=H.location,a=H.offset;H=H.text;if(D=D.tooltipElement){var w=getComputedStyle(D);D=w.font;var h=oH(w.lineHeight),K=oH(w.paddingLeft),N=oH(w.paddingRight),k=oH(w.paddingTop);w=oH(w.paddingBottom);var T=document.createElement("canvas").getContext("2d");T.font=D;H={width:T.measureText(H).width+K+N,height:h+k+w}}else H=void 0;D=H;if(!D)return RSB;H=D.width;D=D.height;K=a+D;k=a+H;h=e.top>=K;K=V-e.bottom>=
K;N=e.left>=k;k=t-e.right>=k;w=b;switch(b){case "top":!h&&K&&(w="bottom");break;case "bottom":!K&&h&&(w="top");break;case "left":!N&&k&&(w="right");break;case "right":!k&&N&&(w="left")}switch(w){case "top":b=e.left+e.width/2-H/2;e=e.top-D-a;break;case "bottom":b=e.left+e.width/2-H/2;e=e.bottom+a;break;case "left":b=e.left-H-a;e=e.top+e.height/2-D/2;break;case "right":b=e.right+a;e=e.top+e.height/2-D/2;break;default:b=e.left+e.width/2-H/2,e=e.bottom+a}a=Object.assign({},RSB);b+H>t?(a.right="0px",a.left=
"auto"):(a.left=Math.round(Math.max(0,b)+window.scrollX)+"px",a.right="auto");e+D>V?(a.bottom="0px",a.top="auto"):(a.top=Math.round(Math.max(0,e)+window.scrollY)+"px",a.bottom="auto");return a};var PZ;PZ=new utv;_.IbQ=_.l(function(){var D=_.jj(function(){var H;return(H=PZ.state())==null?void 0:H.text},void 0,"jgLmfd"),t=_.jj(function(){var H;
return(H=PZ.state())==null?void 0:H.location},void 0,"zV1Udb");
return _.G("yt-tooltip",{class:"ytTooltipContainerHost",el:_.FI(PZ.registerTooltipElement),"aria-hidden":"true"},_.G(xs6,{classNames:"ytTooltipContainerContent",location:t,show:function(){return!!D()},
seeThrough:!0},D))},"L");var SED=bD("stamper-context");_.gW=_.l(function(D){var t=D.data;var H=D.icon;var e=D.iconName;var V=D.animateIcon;var b=D.secondaryIcon;var a=D.secondaryIconName;var w=D.focusedOverride;var h=D.clientOnlyWizTooltipsEnabled;vUV();var K=mq3(t),N=K.size,k=K.style;D=K.disabled;var T=K.onTap,c=K.alignByText,U=K.aTagConfig,S=K.customColors,L=K.segmentedPosition,J=K.toggled,g=K.toggleable,Q=K.accessibilityLabel,u=K.onToggle,R=K.iconPosition,I=K.oneOffCustomTextWrap,tT=K.disableTextEllipsis,ZV=K.disableBackdropFilter,ED=K.tooltipText,
o$=K.ariaHidden,jV=K.tabIndex,i8=K.buttonText,g6=K.formattedButtonText,Mu=K.animatedTextProps,LQ=K.onClickRateLimitMs,DO=fWR(t,H,b,e,a,w,V),fQ=DO.type;H=DO.shouldFocus;e=DO.hasIconLeading;V=DO.hasIconTrailing;var yA=DO.hasIconLeadingTrailing,T4=DO.hasIconOnly;b=DO.hasIconOnly40;var Mw=DO.hasIconWithLabel;a=DO.iconButton;var X6=DO.visiblyDisabled;w=DO.overrideSmallSizeIcon;K=DO.iconToRender;DO=DO.secondaryIconToRender;var yZ=_.F(lWK(ED)).next().value,kQ=function(Nw){T==null||T(Nw);g()&&(u==null||u(Nw))},
FX=_.jj(function(){return LQ==null?void 0:LQ()},void 0,"wrF7V"),qw=_.jj(function(){return FX()?Wnm(kQ,FX()):kQ},void 0,"fG5dyf"),oB={},ZO={};
return _.G(dsV,{className:_.jQ("yt-spec-button-shape-with-label",(oB["yt-spec-button-shape-with-label--is-overlay"]=function(){return k()==="overlay"||k()==="overlay-dark"},oB)),
hasLabel:Mw,textContent:function(){return _.G(vav,{text:i8,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:I,iconPosition:R,formattedButtonText:g6,animatedTextProps:Mu})}},_.G(lbn,{aTagConfig:U,
className:_.jQ("yt-spec-button-shape-next",function(){return L7T(fQ())},function(){return X6()?void 0:AN$(k())},function(){return gU6(N())},(ZO["yt-spec-button-shape-next--disabled"]=X6,ZO["yt-spec-button-shape-next--focused"]=H,ZO["yt-spec-button-shape-next--icon-trailing"]=V,ZO["yt-spec-button-shape-next--icon-leading"]=e,ZO["yt-spec-button-shape-next--icon-leading-trailing"]=yA,ZO["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return yA()&&!(i8()||g6())},ZO["yt-spec-button-shape-next--icon-button"]=
function(){return T4()||Mw()},ZO["yt-spec-button-shape-next--icon-only-default"]=b,ZO["yt-spec-button-shape-next--align-by-text"]=c,ZO["yt-spec-button-shape-next--segmented-start"]=function(){return L()==="start"},ZO["yt-spec-button-shape-next--segmented-end"]=function(){return L()==="end"},ZO["yt-spec-button-shape-next--override-small-size-icon"]=w,ZO["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=I,ZO["yt-spec-button-shape-next--disable-text-ellipsis"]=tT,ZO["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!ZV()&&!_.r("web_disable_backdrop_filter")},ZO)),
style:function(){var Nw=S();if(Nw){var bY=Nw.color;var P_=Nw.backgroundColor;Nw=Nw.borderColor;var QV="";bY&&(QV+="color: "+bY+";");P_&&(QV+="background-color: "+P_+";");Nw&&(QV+="border-color: "+Nw+";");bY={style:QV}}else bY={};return bY.style},
onClick:function(Nw){qw()(Nw)},
disabled:D,ariaLabel:Q,toggleable:g,toggled:J,title:function(){return(h==null?0:h())||!ED()?"":ED()},
visiblyDisabled:X6,ariaHidden:o$,tabIndex:jV,ref:function(Nw){(h==null?0:h())&&yZ(Nw)}},_.G(p8m,{data:t,
hasIconLeading:e,hasIconLeadingTrailing:yA,hasIconTrailing:V,iconButton:a,icon:K,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:DO})))},"N");
_.gW.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.JX=_.l(function(D){var t=D.data;var H=D.className;var e=D.style;var V=D.useOutlinedIcon;var b=D.buttonOverrides;var a=D.animatedTextProps;var w=D.onClick;var h=D.target;var K=_.DY("button-view-model",function(g){g.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var Q=t().targetId;Q&&_.MuB(_.BM(),Q,g);return function(){Cwf(_.BM(),g)}}),N=function(){return t().iconName},k,T=(k=_.qS().resolve(_.by(_.tB)))==null?void 0:k(),c=function(){var g=t();
var Q=b==null?void 0:b(),u=a==null?void 0:a(),R=h==null?void 0:h();if(g){var I=IWV(g.type);var tT=!!g.title||!!g.titleFormatted;var ZV=!(!g.iconName&&!g.iconImage);tT=ZV&&!tT?"icon-only":ZV?g.iconTrailing||g.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;tT==="icon-only-40"&&(I="text");var ED;ZV=(ED=Q==null?void 0:Q.state)!=null?ED:Qa8(g.state);var o$,jV=(o$=Q==null?void 0:Q.disabled)!=null?o$:g.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||g.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.r("web_button_vm_refactor_disabled")){var i8;jV=(i8=Q==null?void 0:Q.disabled)!=null?i8:ZV==="disabled"}u=u&&u.numberText&&!isNaN(Number(u.numberValue))?u:void 0;o$=Object;i8=o$.assign;ED=g.title;var g6=g.titleFormatted,Mu=g.accessibilityText,LQ=W7V(g.style),DO=yNV(g.buttonSize);R=ue$(g,K,jV,w,R);jV=jV&&!g.onDisabledTap;var fQ=xqT(g,K),yA=g.customFontColor,T4=g.customBackgroundColor;var Mw=g.customBorderColor;var X6=g.customDarkThemeFontColor,yZ=g.customDarkThemeBackgroundColor,kQ=g.customDarkThemeBorderColor;
yA=T&&X6?X6:yA;T4=T&&yZ?yZ:T4;Mw=T&&kQ?kQ:Mw;Mw={color:yA?_.Qk(yA):void 0,backgroundColor:T4?_.Qk(T4):void 0,borderColor:Mw?_.Qk(Mw):void 0};g=i8.call(o$,{},{buttonText:ED,formattedButtonText:g6,animatedTextProps:u,accessibilityLabel:Mu,style:LQ,type:I,state:ZV,size:DO,iconPosition:tT,onTap:R,disabled:jV,aTagConfig:fQ,customColors:Mw,tooltipText:g.tooltip},Q)}else g={style:"mono",type:"text",state:"active",size:"M"};g.focused=L();return g},U=function(){return S$X(c(),!!t().iconName)};
D=_.F(_.KR(!1,void 0,"WVXhrd"));k=D.next().value;var S=D.next().value,L=k;D=_.$X(function(){var g=_.qS().resolve(_.by(_.S8));g&&S(g.isKeyBoardInUse());return!1});
k=_.$X(function(){S(!1);return!1});
_.Mp(function(){var g,Q=_.O(t==null?void 0:(g=t())==null?void 0:g.onVisible,_.dj);Q&&_.RQ(Q,{disableClickTracking:!0})},"w0lGYc");
var J=_.r("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.G("button-view-model",{el:K,class:_.jQ("ytSpecButtonViewModelHost",H),"on:focusin":D,"on:focusout":k},_.G(_.E,{cond:function(){var g;return(t==null?0:(g=t())==null?0:g.iconImage)?{sources:[t().iconImage]}:void 0},
then:function(g){return _.G(_.gW,{data:c,icon:function(){return _.G(_.bi,{data:g,alt:"",targetWidth:U,targetHeight:U,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:J})},
else:function(){return _.G(_.gW,{data:c,icon:function(){return _.G(_.U7,{icon:N,active:function(){return(V==null?0:V())?!1:c().toggled},
animateIcon:function(){var g;return!!(e==null?0:(g=e())==null?0:g.animateIcon)},
size:U})},
clientOnlyWizTooltipsEnabled:J})}}))},"P");
_.JX.idomCompat={callbacks:{onClick:!0}};_.hB(_.l(function(D){return _.G("yt-button-view-model",{id:D.id,class:_.jQ(D.scopingClassName,D.classes),icon:function(){var t;return(t=D.icon)==null?void 0:t.call(D)},
"dialog-dismiss":function(){var t;return((t=D.dialogDismiss)==null?0:t.call(D))?"":void 0}},_.G(_.JX,{data:function(){var t;
return(t=D.data)==null?void 0:t.call(D)},
className:function(){var t;return(t=D.className)==null?void 0:t.call(D)},
style:function(){var t;return(t=D.style)==null?void 0:t.call(D)},
useOutlinedIcon:function(){var t;return(t=D.useOutlinedIcon)==null?void 0:t.call(D)},
buttonOverrides:function(){var t;return(t=D.buttonOverrides)==null?void 0:t.call(D)},
animatedTextProps:function(){var t;return(t=D.animatedTextProps)==null?void 0:t.call(D)},
onClick:function(t){var H;return(H=D.onClick)==null?void 0:H.call(D,t)}}))},"Q"),"yt-button-view-model",{props:{data:_.ij,
className:_.ij,style:_.ij,useOutlinedIcon:_.ij,buttonOverrides:_.ij,animatedTextProps:_.ij,onClick:_.wm,scopingClassName:_.ij,id:_.ij,icon:_.ij,dialogDismiss:_.ij,classes:_.ij,target:_.wm}});_.hB(_.l(function(D){var t=D.data;var H=D.id;var e=D.className;var V=D.iconName;var b=D.animateIcon;var a=D.secondaryIconName;D=_.F(_.KR(!1,void 0,"TtJl8"));var w=D.next().value,h=D.next().value,K=function(){var k=_.qS().resolve(_.by(_.S8));k&&h(k.isKeyBoardInUse())},N=function(){h(!1)};
D=_.DY("yt-button-shape",function(k){if(_.qS().resolve(_.by(_.S8)))return k.addEventListener("focusin",K),k.addEventListener("focusout",N),function(){k.removeEventListener("focusin",K);k.removeEventListener("focusout",N)}});
return _.G("yt-button-shape",{el:D,id:H,class:e},_.G(_.E,{cond:t,then:function(){return _.G(_.gW,{data:t,iconName:V,secondaryIconName:a,focusedOverride:w,animateIcon:b})}}))},"R"),"yt-button-shape",{props:{data:_.ij,
id:_.ij,className:_.ij,iconName:_.ij,animateIcon:_.ij,secondaryIconName:_.ij,clientOnlyWizTooltipsEnabled:_.ij,disableUpgrade:_.ij},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var Y7=function(){var D=_.X.apply(this,arguments)||this;D.isGoalActive=!0;return D};
_.P(Y7,_.X);Y7.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Y7.prototype.progressBarChanged=function(){var D=_.Kg(this.hostElement).querySelector("#progress-bar-progress"),t,H,e,V=(e=Number((t=this.creatorGoalState)==null?void 0:t.currentGoalCount)/Number((H=this.creatorGoalState)==null?void 0:H.totalGoalCount)*100)!=null?e:0,b;D.style.width=((b=Math.min(V,100))!=null?b:0)+"%"};
Y7.prototype.goalStateChanged=function(){var D;this.isGoalActive=((D=this.creatorGoalState)==null?void 0:D.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var t;D={"--yt-progress-bar-color":AP3((t=this.creatorGoalState)==null?void 0:t.progressBarColor)};_.jZ(this.hostElement,D)};
Y7.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.ql.Object.defineProperties(Y7.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var D;return this.isGoalActive&&!((D=this.creatorGoalState)==null||!D.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.creatorGoalState)==null?0:D.endTimestampMs){var t;D=Number((t=this.creatorGoalState)==null?void 0:t.endTimestampMs)/1E3;return{seconds:String(D)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.creatorGoalState)==null?0:D.themedTargetImage){var t;D=_.O((t=this.creatorGoalState)==null?void 0:t.themedTargetImage,W2m);return this.isAppDarkTheme()?D==null?void 0:D.imageDark:D==null?void 0:D.imageLight}}}});
_.ql.Object.defineProperties(Y7,{template:{configurable:!0,enumerable:!0,get:function(){return raf()}}});
Y7.prototype.goalStateChanged=Y7.prototype.goalStateChanged;Y7.prototype.progressBarChanged=Y7.prototype.progressBarChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Y7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.hX),_.x("design:type",Object)],Y7.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);
_.d([_.M({selectorArgs:["data.creatorGoalEntityKey"],selector:function(D,t){return _.jR(D.entities,"creatorGoalEntity",t)}}),
_.x("design:type",Object)],Y7.prototype,"creatorGoalState",void 0);_.d([_.M(),_.x("design:type",Object)],Y7.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Y7.prototype,"isGoalActive",void 0);_.d([_.m("creatorGoalState","isGoalActive"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Y7.prototype,"shouldShowCountdown",null);_.d([_.m("creatorGoalState"),_.x("design:type",Object),_.x("design:paramtypes",[])],Y7.prototype,"endTimestamp",null);
_.d([_.m("creatorGoalState"),_.x("design:type",Object),_.x("design:paramtypes",[])],Y7.prototype,"targetIconThemedImage",null);_.d([_.Os("creatorGoalState.currentGoalCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Y7.prototype,"progressBarChanged",null);_.d([_.Os("creatorGoalState.creatorGoalState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Y7.prototype,"goalStateChanged",null);
_.d([_.xL({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Y7);_.p(Y7,"yt-creator-goal-progress-flow-view-model",function(){return raf()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Qr6;var yaV;var lj=function(){return _.X.apply(this,arguments)||this};
_.P(lj,_.X);lj.prototype.attached=function(){var D,t,H;if(this==null?0:(D=this.data)==null?0:(t=D.pdgPurchasedBumperLoggingDirectives)==null?0:(H=t.loggingDirectives)==null?0:H.trackingParams){var e,V,b;DbA(this==null?void 0:(e=this.data)==null?void 0:(V=e.pdgPurchasedBumperLoggingDirectives)==null?void 0:(b=V.loggingDirectives)==null?void 0:b.trackingParams)}};
lj.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],lj.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],lj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],lj.prototype,"data",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],lj);
_.p(lj,"yt-live-chat-item-bumper-view-model",function(){if(yaV===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Qr6===void 0&&(Qr6=document.createElement("template"));var e=Qr6;H.call(t,e.content.cloneNode(!0),D.content.firstChild);yaV=D}D=yaV;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var By3;var zSv;_.H5=function(D,t){this.data=D;this.actions=t;this.data=D;this.actions=t};
_.WZ=function(){};_.vP={};_.vP.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(D,t){tsR(this.hostElement,D,t)},
getNavigationEndpointPopupAction:function(D){return HID(D,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(D,t){e$8(this.hostElement,D,t,this.openPopupConfig)}};var GPR=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.pE={};
_.pE.YtEndpointBehavior=[_.vP.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.YC("openPopupConfig");(this.useClickHandler=_.lh("useClickHandler",!1))?this.hostElement.addEventListener("click",$L(this,this.onEndpointClick_)):(Jn(this.hostElement,"tap",$L(this,this.onEndpointTap_)),Jn(this.hostElement,"touchend",$L(this,this.onEndpointTouchEnd_)));Jn(this.hostElement,"touchstart",$L(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
$L(this,this.onEndpointTapStart_))},
onEndpointClick_:function(D){qQA(this.hostElement,D,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(D){var t=this.hostElement,H=this.openPopupConfig,e=this.disableCommandHandlerOverride;e=e===void 0?!1:e;var V=Vs$(D);if(V){V.href&&zK(V.href);var b=D.detail;var a=b.sourceEvent;b=b.preventer;a=a.button!==void 0?a.button===0&&!Cb(a):b?!Cb(b):!0;V.data&&a&&bIV(t,V,D,H,e)}},
onEndpointTouchEnd_:function(D){Cb(D)||Vs$(D)&&D.preventDefault()},
onEndpointTapStart_:function(D){sqV(D)}}];_.dW={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(D){for(var t=_.Qa.getInstance(),H=_.F(Object.keys(D)),e=H.next();!e.done;e=H.next()){var V=e.value;e=D[V];if(this&&this[e]){var b=t.actionRoutingMap.get(V);b||(b=new Map,t.actionRoutingMap.set(V,b));t.registerActionHandler(this,V,this[e].bind(this),b)}else V=Error("ld"),V.params=e,_.vn(V)}},
unregisterActionMap:function(D){_.B$(_.Qa.getInstance(),D,this)}}]};var SQ=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_"+(_.r("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.r("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.r("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.r("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.r("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.r("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var MX;var XI=new Map;var PsR=window.matchMedia("(forced-colors: active)").matches;var D7w;var tKn;var HOo=new _.kI("LOTTIE_LOADER_TOKEN");_.x7=_.l(function(D){var t=D.data;var H=D.className;var e=D.animationName;var V=D.animationRef;var b=D.elRefForInterop;var a=_.ep("lottie-component"),w;_.Sj(function(){var K;return void((K=w)==null?void 0:K.destroy())});
var h;_.Mp(function(){var K=_.fR(e);if(K!==h){h=K;var N=Object.assign({},{animationName:K,animationRef:_.fR(V)},_.fR(t));try{_.qS().resolve(HOo)().then(function(c){var U;(U=w)==null||U.destroy();var S,L;U=(L=b==null?void 0:(S=b())==null?void 0:S.value)!=null?L:a.value;S=N.animationRef;L=N.listeners;c=c.loadAnimation(Object.assign({},{container:U},N.animationConfig));S&&(S.lottieEl=c);if(L)for(U=_.F(Object.entries(L)),S=U.next();!S.done;S=U.next())L=_.F(S.value),S=L.next().value,(L=L.next().value)&&
c.addEventListener(S,L);w=c})}catch(c){K=c;
var k="LottieComponent error.";K.message&&(k+=" Original description: "+K.message);_.lm(K,k);_.Yw(K);var T;((T=N.listeners)==null?0:T.error)&&N.listeners.error(K)}}},"nrJISd");
return _.G(qTD,{cond:function(){return!(b==null?0:b())},
then:function(){return _.G("lottie-component",{class:_.jQ("ytLottieComponentHost",H),el:a})}})},"T");_.hB(_.l(function(D){return _.G("ytd-lottie-player",{id:D.id,hidden:D.hidden,class:D.className,"aria-label":D.ariaLabel,style:"display: block;"},_.G(_.x7,{data:D.data,animationName:function(){var t;return((t=D.data().animationConfig)==null?void 0:t.name)||""},
animationRef:function(){return D.data().animationRef}}))},"U"),"ytd-lottie-player",{props:{data:_.ij,
id:_.ij,hidden:_.ij,className:_.ij,ariaLabel:_.ij}});var RT=function(){var D=_.X.apply(this,arguments)||this;D.animationRef={};D.delhiIconsEnabled=_.r("enable_web_delhi_icons");return D};
_.P(RT,_.X);_.q=RT.prototype;
_.q.handlePropertyChange=function(){var D=this.animatedIcon,t=this.active,H=this.isDarkTheme;if(D){var e=this.previousActive!==t;this.previousActive=t;this.animationRef.lottieEl?e&&this.toggleAnimation(t,D.totalFrames):t?this.initializeAnimationAsToggled(D.lottiePlayerProps,D.totalFrames):this.initializeAnimationAsUntoggled(D.lottiePlayerProps);D.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=D.type;this.lottiePlayerProps=this.computeLottiePlayerProps(D,H)}};
_.q.computeLottiePlayerProps=function(D,t){var H=this.deepCloneLottiePlayerProps(D);t?(t=D.nameDarkTheme,D=D.pathDarkTheme):(t=D.name,D=D.path);H.animationConfig.name=t;(t=XI.get(D))?H.animationConfig.animationData=t:H.animationConfig.path=D;return H};
_.q.initializeAnimationAsToggled=function(D,t){D.animationConfig.initialSegment=[t-1,t]};
_.q.initializeAnimationAsUntoggled=function(D){D.animationConfig.initialSegment=void 0};
_.q.toggleAnimation=function(D,t){if(D){var H;(H=this.animationRef.lottieEl)==null||H.playSegments([0,t],!0)}else{var e;(e=this.animationRef.lottieEl)==null||e.playSegments([0,1],!0)}};
_.q.deepCloneLottiePlayerProps=function(D){var t=Object.assign({},D.lottiePlayerProps.animationConfig);D=Object.assign({},D.lottiePlayerProps);D.animationConfig=t;return D};
RT.prototype.handlePropertyChange=RT.prototype.handlePropertyChange;_.d([_.M(),_.x("design:type",Object)],RT.prototype,"animatedIcon",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],RT.prototype,"active",void 0);_.d([_.M(),_.x("design:type",Boolean)],RT.prototype,"isDarkTheme",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],RT.prototype,"animatedIconType",void 0);_.d([_.M(),_.x("design:type",Boolean)],RT.prototype,"previousActive",void 0);
_.d([_.M(),_.x("design:type",Object)],RT.prototype,"lottiePlayerProps",void 0);_.d([_.M(),_.x("design:type",Object)],RT.prototype,"animationRef",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],RT.prototype,"delhiIconsEnabled",void 0);_.d([_.Os("animatedIcon","active","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RT.prototype,"handlePropertyChange",null);_.d([_.xL({is:"yt-animated-icon",disableElementRegistration:!0})],RT);
_.p(RT,"yt-animated-icon",function(){if(tKn===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;D7w===void 0&&(D7w=document.createElement("template"));var e=D7w;H.call(t,e.content.cloneNode(!0),D.content.firstChild);tKn=D}D=tKn;return D},{mode:2});var ekQ;var VKo;var X4k=_.l(function(D){var t=_.ep("span"),H=fY(function(){return{value:null,cancelled:!1}});
_.Sj(function(){H.cancelled=!0});
var e=_.jj(D.data,{equals:function(V,b){return V.iconName===b.iconName&&V.iconStyle===b.iconStyle&&V.iconSize===b.iconSize&&V.iconSetName===b.iconSetName&&V.iconSelected===b.iconSelected}},"AoOoyf");
_.Mp(function(){var V,b=(V=D.options)==null?void 0:V.call(D);SQR(t,H,e(),b)},"Tie9e");
return _.G("span",{class:"yt-icon-shape",el:t})},"W");
X4k.idomCompat=!0;var XiT=["youtube_fill","youtube_outline"];var bOB=new _.R0({type:"iconset",value:void 0}),uj=function(){var D=_.X.apply(this,arguments)||this;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.iconName="";D.iconsetName="yt-icons";D.iconset=null;D.missingIconSet=!1;D.iconType=null;D.iconShapeDataSignal=_.KR(void 0,void 0,"b0v7Ac");D.renderingOptionsSignal=_.KR({iconWidth:"100%",iconHeight:"100%",iconFilter:D.iconFilter},void 0,"Ls6l3e");D.wizHasRendered=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.P(uj,_.X);uj.prototype.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D)};
uj.prototype.handlePropertyChange=function(){var D=this,t,H,e,V,b,a,w,h,K,N,k,T,c,U,S,L,J;return _.Z(function(g){switch(g.nextAddress){case 1:if(t=!D.icon&&!D.iconName||!D.isAttached)return g.return();H=D;e=H.icon;V=H.size;b=H.defaultToFilled;a=H.active;w=H.targetContainer;D.toggleContainerClass(w);_.r("kevlar_use_wil_icons")&&e&&(h=wDu(e),D.iconType=h.length?h[1]:null);if(e){g.jumpTo(2);break}D.iconsetName="";D.iconName="";return g.yield(D.renderIcon(w,e),3);case 3:return g.return();case 2:K=qXn(e);
N=wDu(K);N.length&&(D.iconsetName=N[0],D.iconName=N[1]);if(!_.r("kevlar_use_wil_icons")){g.jumpTo(4);break}k=uj;T=Foa;c=D.iconType;U=D.active;S=D.defaultToFilled;L=D.size;J=D.iconsetName;return g.yield(aI9(),6);case 6:return g.yield(T.call(k,c,U,S,L,J,g.yieldResult),5);case 5:D.iconShapeData=g.yieldResult;case 4:if(D.shouldRenderIconShape(w)){g.jumpTo(7);break}return g.yield(D.determineIconSet(K,a,b,V,w),7);case 7:return g.yield(D.renderIcon(w,e),0)}})};
uj.prototype.toggleContainerClass=function(D){D?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var qXn=function(D){return!_.r("default_to_innertube_icon")||D.indexOf(":")>0?D:_.cc(D)};
_.q=uj.prototype;_.q.determineIconSet=function(D,t,H,e){var V=this;return _.Z(function(b){return b.nextAddress==1?_.r("kevlar_system_icons")||_.YC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.YC("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?b.yield(V.switchToYtSysIconset(D,t,H,e),3):b.jumpTo(2):b.nextAddress!=2?b.return():b.yield(V.useYtSysIconsetForMissingIcons(D,t,H,e),0)})};
_.q.switchToYtSysIconset=function(D,t,H,e){var V=this,b,a,w,h,K,N,k;return _.Z(function(T){switch(T.nextAddress){case 1:if(!D||V.iconsetName!=="yt-icons"&&V.iconsetName!=="yt-sys-icons"){T.jumpTo(0);break}b=wDu(D);a=b[1];a=_.cPV(a);_.r("enable_polymer_icons_replace_underscores_dash")&&a.includes("_filled")&&(a=a.replace(/_filled/g,"-filled"));return T.yield(TL(a,!0),3);case 3:return w=T.yieldResult,T.yield(TL(a,!1),4);case 4:if((h=T.yieldResult)||t&&w)V.iconsetName="yt-sys-icons";V.iconName=V.getIconName(a,
t,H,h,w);if(e===24){T.jumpTo(0);break}K="yt-sys-icons"+e+":"+V.iconName;return T.yield(TL(K,!1,!0),6);case 6:return N=T.yieldResult,T.yield(TL(K,!0,!0),7);case 7:k=T.yieldResult;V.iconName=V.getIconName(a,t,H,N,k);if(!t&&N||t&&k)V.iconsetName="yt-sys-icons"+e;_.n2(T)}})};
_.q.getIconName=function(D,t,H,e,V){D.includes("-filled")&&(D=D.replace("-filled",""));return V&&(t||H)?D+"-filled":D};
_.q.useYtSysIconsetForMissingIcons=function(D,t,H,e){var V=this,b,a;return _.Z(function(w){if(w.nextAddress==1)return V.iconsetName!=="yt-icons"?w.jumpTo(0):w.yield(TL(V.iconName,!1,!1,!0),3);if(w.nextAddress!=4)return b=w.yieldResult,w.yield(TL(V.iconName,!1),4);a=w.yieldResult;if(b||!a)return w.jumpTo(0);V.iconsetName="yt-sys-icons";return w.yield(V.switchToYtSysIconset(D,t,H,e),0)})};
_.q.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var aI9=function(){return _.Z(function(D){try{return D.return(_.qS().resolve(_.ja))}catch(t){return D.return(new Promise(function(H){_.EK().parkOrScheduleJob(function(){H(_.qS().resolve(_.ja))},2,"ci")}))}})},Foa=function(D,t,H,e,V,b){e=e===void 0?24:e;
if(D){D=D.toLowerCase();var a=D.endsWith("_filled")||D.endsWith("-filled");t={iconName:D,iconStyle:(t===void 0?0:t)||(H===void 0?0:H)||a?"youtube_fill":"youtube_outline",iconSize:e,iconSetName:V===void 0?"yt-icons":V};H=!!b.resolveIcon(t);H||(t.iconSize=void 0,H=!!b.resolveIcon(t));!H&&a&&(t.iconName=D.substring(0,D.length-7),t.iconSize=e,H=!!b.resolveIcon(t),H||(t.iconSize=void 0,H=!!b.resolveIcon(t)));H||(t.iconStyle=void 0,H=!!b.resolveIcon(t));H||_.Yw(new _.nZ("Icon not supported",{iconName:t.iconName,
iconStyle:t.iconStyle,iconSize:t.iconSize,iconType:D}));return H?t:void 0}};
_.q=uj.prototype;_.q.shouldRenderIconShape=function(D){if(!_.r("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;D=this.getContainer(D);return!ncA(D,this.icon)};
_.q.renderIcon=function(D,t){var H=this,e,V,b,a,w,h,K,N;return _.Z(function(k){switch(k.nextAddress){case 1:if(t&&H.icon!==t)return k.return();e=H.getContainer(D);V=ncA(e,H.icon);if(H.shouldRenderIconShape(D)&&H.iconType)return H.applyIconShape(V,e),k.return();H.removeIconShape();if(!e)return k.return();H.iconName===""&&H.iconset&&e&&(H.removeStaticIcon(H.iconset,e),V&&H.removeAnimatedIcon(e));if(H.iconName===""&&H.iconset||!H.iconsetName||!bOB)return k.return();H.iconset=bOB.byKey(H.iconsetName);
if(!H.iconset)return H.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.iK(H,H.onIconsetAdded)),k.return();H.missingIconSet&&(H.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.iK(H,H.onIconsetAdded)));a=(b=V||H.isAnimatedIcon?UbD(H.icon):void 0)&&!b.lazyLoad;h=b&&((w=b)==null?void 0:w.lazyLoad)&&(b.lottiePlayerProps.animationConfig.animationData?!0:XI.get(H.isDarkTheme?b.pathDarkTheme:b.path)?!0:!1);if(a||h)return H.applyAnimatedIcon(e,b,H.iconset),k.return();if(h||
(K=b)==null||!K.lazyLoad){k.jumpTo(2);break}N=mbR(b,H.isDarkTheme);H.applyStaticIcon(H.iconset,e,H.iconName,D,V);return k.yield(N,3);case 3:return k.yield(H.renderIcon(H.targetContainer,H.icon),4);case 4:return k.return();case 2:H.applyStaticIcon(H.iconset,e,H.iconName,D,V),_.n2(k)}})};
_.q.getContainer=function(D){var t,H=(t=miV(this.hostElement))==null?void 0:t.host;t=!!H&&!!H.polymerController;if(!D||t)return D?this.getTargetContainer(D,H):this.hostElement};
_.q.getTargetContainer=function(D,t){var H=_.Kg(t).querySelector("#"+D);H||(D=new _.nZ("yt-icon container missing",t.is,D),_.gT(D));return H};
_.q.applyStaticIcon=function(D,t,H,e,V){V&&this.removeAnimatedIcon(t);this.removeIconShape();V=V&&!!this.iconType&&!!this.iconShapeData&&_.r("kevlar_use_wil_icons");try{V?this.applyIconShape(!1,t):D.applyIcon(t,H)}catch(b){this.handleError(b,e,t)}};
_.q.applyIconShape=function(D,t){this.iconset&&t&&(this.removeStaticIcon(this.iconset,t),D&&this.removeAnimatedIcon(t));D={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var H=_.F(this.iconShapeDataSignal);t=H.next().value;H=H.next().value;var e=_.F(this.renderingOptionsSignal),V=e.next().value;e=e.next().value;H(this.iconShapeData);e(D);if(!this.wizHasRendered)for(this.wizHasRendered=!0,D=_.F(fHV(t,V)).next().value;D.firstChild;)_.Kg(this.hostElement).appendChild(D.firstChild)};
_.q.removeIconShape=function(){if(_.r("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.q.removeStaticIcon=function(D,t){D.removeIcon(t)};
_.q.applyAnimatedIcon=function(D,t,H){this.removeStaticIcon(H,D);this.removeIconShape();var e;H=this.animatedIconElement&&((e=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:e.type)===t.type;if(this.animatedIconElement&&H){this.animatedIconElement.polymerController.animatedIcon=t;var V;((V=this.animatedIconElement)==null?void 0:V.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(D),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=t,this.animatedIconElement.polymerController.active=this.active,_.r("delhi_modern_web_player_icons")?(t=ocV(D,this.icon)&&D.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=t?t.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.r("kevlar_use_wil_icons")?
D.insertBefore(this.animatedIconElement,D.childNodes[0]):(D=_.Kg(D),D.insertBefore(this.animatedIconElement,D.childNodes[0]))};
_.q.removeAnimatedIcon=function(D){_.r("kevlar_use_wil_icons")?this.animatedIconElement&&D.contains(this.animatedIconElement)&&D.removeChild(this.animatedIconElement):(D=_.Kg(D),this.animatedIconElement&&D.contains(this.animatedIconElement)&&D.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.q.handleError=function(D,t,H){_.lm(D,this.iconName,t,H);t=ncA(H,this.icon);var e=!1;window.location.href.includes("JpymaW6Lh2w")?e=!0:H._svgIcon&&(H=(H=H._svgIcon.parentNode)?H.tagName:"unknown",_.lm(D,H),H==="YT-ICON"&&D.name==="NotFoundError"?e=!0:D.name==="NotFoundError"&&t&&(e=!0));e?_.Yw(D):_.gT(D)};
_.ql.Object.defineProperties(uj,{template:{configurable:!0,enumerable:!0,get:function(){if(VKo===void 0){var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;
ekQ===void 0&&(ekQ=document.createElement("template"));var e=ekQ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);VKo=D}D=VKo;return D}}});
uj.prototype.handlePropertyChange=uj.prototype.handlePropertyChange;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],uj.prototype,"actionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",String)],uj.prototype,"icon",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],uj.prototype,"active",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],uj.prototype,"defaultToFilled",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],uj.prototype,"isAnimatedIcon",void 0);
_.d([_.M({value:24}),_.x("design:type",Number)],uj.prototype,"size",void 0);_.d([_.M({value:""}),_.x("design:type",String)],uj.prototype,"targetContainer",void 0);_.d([_.M(),_.x("design:type",Object)],uj.prototype,"animatedIconElement",void 0);_.d([_.M(),_.x("design:type",Object)],uj.prototype,"isDarkTheme",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],uj.prototype,"ariaHidden",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],uj.prototype,"ariaLabel",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],uj.prototype,"role",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],uj.prototype,"tabindex",void 0);_.d([_.M(),_.x("design:type",String)],uj.prototype,"style",void 0);_.d([_.M(),_.x("design:type",String)],uj.prototype,"iconFilter",void 0);
_.d([_.Os("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],uj.prototype,"handlePropertyChange",null);_.d([_.xL({is:"yt-icon",noInjection:!0})],uj);var LQ3="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),gcK=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var w6Q={};w6Q.YtPlaintextBehavior=[_.l9,{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(D){D.preventDefault();D=D.clipboardData.getData("text/plain");document.execCommand("insertText",!1,D)},
preventRichTextFormatting_:function(D){_.cg&&(D=D.detail.keyboardEvent,D.stopImmediatePropagation(),D.preventDefault())}}];var ZOf;var sYf;var WP=function(){var D=_.X.apply(this,arguments)||this;D.ignoreShadyDom=!1;D.hasChange_=!1;D.hasSetTitle_=!1;D.useIOObserverForVisibilityLogging_=_.r("kevlar_use_vimio_behavior")&&_.YC("INNERTUBE_CLIENT_NAME")==="WEB";D.ytFormattedStringObserverHandlerKeys_=void 0;return D};
_.P(WP,_.X);_.q=WP.prototype;_.q.created=function(){this.useIOObserverForVisibilityLogging_=_.r("kevlar_use_vimio_behavior")&&_.YC("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.q.ready=function(){_.YC("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_()};
_.q.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.q.detached=function(){this.unobserveIOObservers_()};
_.q.clearContents_=function(){for(var D=this.getRoot(),t=D.lastChild;t&&t.tagName!=="STYLE";){try{D.removeChild(t)}catch(H){break}t=D.lastChild}};
_.q.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var D=_.F(this.ytFormattedStringObserverHandlerKeys_),t=D.next();!t.done;t=D.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(t.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.q.resetForAttributedString=function(){var D=this.getRoot();!D.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),D.appendChild(this.ytAttributedStringElementRef))};
_.q.resetForFormattedString=function(){var D=this.getRoot(),t=D.querySelector("yt-attributed-string");t&&(this.ytAttributedStringElementRef=D.removeChild(t))};
_.q.textChanged=function(){this.textChanged_(this.text)};
_.q.textChanged_=function(D){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!D||!D.runs&&!D.simpleText;if(_.r("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var t=this.hostElement.firstChild;t&&t.nodeName==="FONT";){var H=t;t=t.nextSibling;this.hostElement.removeChild(H)}t=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
H=D.simpleText;var e;!H&&((e=D.runs)==null?void 0:e.length)===1&&this.isSimpleString_(D.runs[0])&&(H=D.runs[0].text);H!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.YC("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(H!==void 0){try{t.textContent=H}catch(V){}t.textContent||(this.isEmpty=!0)}else D=D.runs,H!==void 0&&(D=[{text:H}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),D&&this.updateText_(D),
t.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.q.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)};
_.q.computeAriaLabel_=function(D){return D};
_.q.computeEllipsisTruncateStyling=function(D,t){return D&&!t};
_.q.computeUseAttributedString=function(D){return _.r("web_replace_formatted_with_attributed_string")&&zcR(D)&&!this.disableAttributedString&&!this.enableContentEditable};
_.q.setNodeStyle_=function(D,t){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.r("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?t.removeAttribute("dir"):t.setAttribute("dir","auto");t.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");t.style.color="";var H=null;this.noStyles||(D.bold&&(t.classList.add("bold"),H="bold"),D.deemphasize&&(t.classList.add("deemphasize"),H="deemphasize"),D.italics&&t.classList.add("italic"),
D.strikethrough&&t.classList.add("strikethrough"),D.errorUnderline&&(t.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),D.bracket&&t.classList.add("bracket"),D.textColor&&(t.style.color=_.Ih(D.textColor)));H!==t.getAttribute("style-target")&&(H?t.setAttribute("style-target",H):t.removeAttribute("style-target"))};
_.q.setUpVisibilityLogging_=function(D,t){var H=this;this.setNodeTrackingParams_(D,t);var e;((e=t.data)==null?0:e.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(D=this.ytRendererBehavior.visibilityObserver.observe(t,function(V){var b=H.ytRendererBehavior.getVisibilityLogger();b&&b.reportShown(V)},this.ytRendererBehavior.visibilityOptionVisible_),t=this.ytRendererBehavior.visibilityObserver.observe(t,function(V){var b=H.ytRendererBehavior.getVisibilityLogger();
b&&b.reportHidden(V)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(D),this.ytFormattedStringObserverHandlerKeys_.push(t))};
_.q.setNodeTrackingParams_=function(D,t){t.data||(t.data={});if((D=D.loggingDirectives?D.loggingDirectives.trackingParams:null)||t.data.trackingParams)t.data.trackingParams=D};
_.q.computeHasLinkOnly_=function(D){return!(!D||D.length!==1||this.noEndpoints||!D[0].navigationEndpoint)};
_.q.getRoot=function(){var D=this.buildScopeDomOptions();return this.enableContentEditable?_.Kg(_.Kg(this.hostElement,D).querySelector("[contenteditable]")):_.Kg(this.hostElement,D)};
_.q.fixContenteditableScope=function(){var D=function(t){t&&(t.nodeType===1&&t.classList&&(t.classList.add("style-scope"),t.classList.add("yt-formatted-string")),t.childNodes&&t.childNodes.forEach(function(H){D(H)}))};
D(this.getRoot())};
_.q.updateText_=function(D){for(var t=D.length,H=this.getRoot(),e=H.firstChild;e&&e.nodeName==="STYLE";)e=e.nextSibling;for(var V=0;V<t&&e;){var b=D[V],a=_.r("remove_cr_char")&&b.text?b.text.replace("\r",""):b.text;if(this.isSimpleString_(b)&&!this.useMixedDirectionFormattedStrings)if(e.nodeName==="#text"){e.textContent!=a&&(e.textContent=a);V++;e=e.nextSibling;continue}else break;if(_.O(b,vc))break;else if(!this.noEndpoints&&b.navigationEndpoint){if(e.nodeName!=="A")break;this.setDataOnAnchor_(e,
b.navigationEndpoint)}else if(e.nodeName!=="SPAN")break;this.setNodeStyle_(b,e);this.setUpVisibilityLogging_(b,e);e.textContent!=a&&(e.textContent=a);V++;e=e.nextSibling}if(e)for(b=H.lastChild,e=V?e.previousSibling:null;b&&b!=e;){try{H.removeChild(b)}catch(w){break}b=H.lastChild}V!==t&&this.addTextNodes_(D,V)};
_.q.addTextNodes_=function(D,t){for(var H=document.createDocumentFragment(),e=D.length;t<e;t++){var V=D[t],b=_.r("remove_cr_char")&&V.text?V.text.replace("\r",""):V.text;if(this.isSimpleString_(V)&&!this.useMixedDirectionFormattedStrings)H.appendChild(document.createTextNode(b));else{var a=_.O(V,vc);if(a){if(a.image){var w=document.createElement("img");a.isCustomEmoji||w.classList.add("small-emoji");w.classList.add("emoji");a.isCustomEmoji&&(w.dataset.emojiId=a.emojiId);w.src=_.G3(a.image.thumbnails,
this.emojiSize);(V=this.get("image.accessibility.accessibilityData.label",a))?w.alt=V:a.shortcuts&&a.shortcuts.length>0?w.alt=a.shortcuts[0]:a.emojiId&&(w.alt=a.emojiId);H.appendChild(w);this.hasEmoji=!0}}else!this.noEndpoints&&V.navigationEndpoint?(w=document.createElement("a"),w.classList.add("yt-simple-endpoint"),w.setAttribute("spellcheck","false"),this.setDataOnAnchor_(w,V.navigationEndpoint)):w=document.createElement("span"),this.setNodeStyle_(V,w),this.setUpVisibilityLogging_(V,w),w.appendChild(document.createTextNode(b)),
H.appendChild(w)}}this.getRoot().appendChild(H)};
_.q.isSimpleString_=function(D){return(this.noEndpoints||!D.navigationEndpoint)&&!_.O(D,vc)&&(this.noStyles||!(D.bold||D.deemphasize||D.italics||D.strikethrough||D.errorUnderline||D.bracket||D.textColor))&&!D.loggingDirectives};
_.q.getRawText=function(){return _.eo(this.text)};
_.q.getFirstRunText=function(){var D;if(((D=this.text)==null?0:D.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.q.setFirstRunText=function(D){var t;((t=this.text)==null?0:t.runs)&&this.text.runs[0]&&(this.text.runs[0].text=D,this.textChanged_(this.text))};
_.q.setDataOnAnchor_=function(D,t){var H=this;!_.r("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(t)||this.isSignalServiceEndpoint_(t)?(D.onclick=this.serviceEndpointHandler_(t),WU(D,"#")):y5K({text:this.text,command:t},function(){wm6(D,t,H.target)})};
_.q.isServiceEndpoint_=function(D){var t;return!((t=_.O(D==null?void 0:D.commandMetadata,_.i1))==null||!t.sendPost)};
_.q.isSignalServiceEndpoint_=function(D){return!!_.O(D,_.$0)};
_.q.serviceEndpointHandler_=function(D){var t=this;return function(H){_.NJ(t.hostElement,[D]);H.preventDefault()}};
_.q.overrideAriaLabelChanged_=function(){var D=this.getRoot();this.enableContentEditable&&D&&D.setAttribute("aria-label",this.overrideAriaLabel)};
_.q.enableContentEditableChanged_=function(){var D=this,t=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),t=_.Kg(this.hostElement,t),!t.lastChild||t.lastChild instanceof HTMLElement&&t.lastChild.id!=="contenteditable-root"){var H=document.createElement("div");H.id="contenteditable-root";H.setAttribute("contenteditable","true");H.setAttribute("dir","auto");H.onfocus=function(){D.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
t.appendChild(H);this.overrideAriaLabel&&H.setAttribute("aria-label",this.overrideAriaLabel)}}else H=_.Ny(this.hostElement).firstChild,H instanceof HTMLElement&&H.id==="contenteditable-root"&&_.Kg(this.hostElement,t).removeChild(H)};
_.q.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.q.getNodesForVisibilityLogging_=function(){return _.hM(this.getRoot().childNodes,function(D){var t;return!((t=D.data)==null||!t.trackingParams)})};
_.q.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.q.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var D=this.ytRendererBehavior.getVisibilityLogger();D&&this.getNodesForVisibilityLogging_().forEach(function(t){D.reportShown(t)})}};
_.q.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var D=this.ytRendererBehavior.getVisibilityLogger();D&&this.getNodesForVisibilityLogging_().forEach(function(t){D.reportHidden(t)})}};
_.ql.Object.defineProperties(WP.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.r("enable_mixed_direction_formatted_strings")}}});
WP.prototype.enableContentEditableChanged_=WP.prototype.enableContentEditableChanged_;WP.prototype.overrideAriaLabelChanged_=WP.prototype.overrideAriaLabelChanged_;WP.prototype.ellipsisTruncateChanged_=WP.prototype.ellipsisTruncateChanged_;WP.prototype.textChanged=WP.prototype.textChanged;_.d([_.C(w6Q.YtPlaintextBehavior),_.x("design:type",Object)],WP.prototype,"ytPlaintextBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],WP.prototype,"ytComponentBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],WP.prototype,"text",void 0);_.d([_.M(),_.x("design:type",Boolean)],WP.prototype,"noEndpoints",void 0);_.d([_.M(),_.x("design:type",Boolean)],WP.prototype,"noStyles",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],WP.prototype,"isDarkTheme",void 0);
_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],WP.prototype,"splitLines",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],WP.prototype,"forceDefaultStyle",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],WP.prototype,"ellipsisTruncate",void 0);_.d([_.M(),_.x("design:type",Object)],WP.prototype,"ignoreShadyDom",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.x("design:type",Boolean)],WP.prototype,"ellipsisTruncateStyling",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.x("design:type",String)],WP.prototype,"ariaLabel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],WP.prototype,"isEmpty",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.x("design:type",Boolean)],WP.prototype,"hasLinkOnly_",void 0);_.d([_.M(),_.x("design:type",Boolean)],WP.prototype,"hasEmoji",void 0);_.d([_.M(),_.x("design:type",Boolean)],WP.prototype,"disableAttributedString",void 0);_.d([_.M(),_.x("design:type",Boolean)],WP.prototype,"isOverlay",void 0);_.d([_.M(),_.x("design:type",Boolean)],WP.prototype,"linkInheritColor",void 0);
_.d([_.M(),_.x("design:type",Boolean)],WP.prototype,"noPreWrap",void 0);_.d([_.M(),_.x("design:type",Boolean)],WP.prototype,"userInput",void 0);_.d([_.M({value:16}),_.x("design:type",Number)],WP.prototype,"emojiSize",void 0);_.d([_.M(),_.x("design:type",String)],WP.prototype,"target",void 0);_.d([_.M(),_.x("design:type",Boolean)],WP.prototype,"enableContentEditable",void 0);_.d([_.M(),_.x("design:type",String)],WP.prototype,"overrideAriaLabel",void 0);
_.d([_.M(),_.x("design:type",Boolean)],WP.prototype,"respectHtmlDir",void 0);_.d([_.M(),_.x("design:type",Boolean)],WP.prototype,"respectLangDir",void 0);_.d([_.m("plaintextOnly"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],WP.prototype,"useMixedDirectionFormattedStrings",null);_.d([_.M({computed:"computeUseAttributedString(text)"}),_.x("design:type",Boolean)],WP.prototype,"useYtAttributedString",void 0);
_.d([_.Os("text"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WP.prototype,"textChanged",null);_.d([_.Os("ellipsisTruncate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WP.prototype,"ellipsisTruncateChanged_",null);_.d([_.Os("overrideAriaLabel"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WP.prototype,"overrideAriaLabelChanged_",null);
_.d([_.Os("enableContentEditable"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WP.prototype,"enableContentEditableChanged_",null);_.d([_.xL({is:"yt-formatted-string",disableElementRegistration:!0})],WP);
_.p(WP,"yt-formatted-string",function(){if(sYf===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;ZOf===void 0&&(ZOf=document.createElement("template"));var e=ZOf;H.call(t,e.content.cloneNode(!0),D.content.firstChild);sYf=D}D=sYf;return D});var hkv;var GCv;var E94;var Kof;var IT=function(){var D=_.X.apply(this,arguments)||this;D.focused=!1;D.disabled=!1;D.isOverlay=!1;return D};
_.P(IT,_.X);IT.prototype.triggerDown=function(){if(!this.disabled){_.kL(this.hostElement,"down",!0);var D;(D=this.currentAnimation)==null||D.cancel()}};
IT.prototype.triggerUp=function(){if(!this.disabled){_.kL(this.hostElement,"down",!1);var D=this.fillElement;var t=this.strokeElement;typeof GroupEffect==="function"?(D=new GroupEffect([oUA(D),PWV(t)]),D=new Animation(D,document.timeline)):D=new gav(D,t);this.currentAnimation=D;var H;(H=this.currentAnimation)==null||H.play()}};
_.d([_.o5(".stroke"),_.x("design:type",HTMLElement)],IT.prototype,"strokeElement",void 0);_.d([_.o5(".fill"),_.x("design:type",HTMLElement)],IT.prototype,"fillElement",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],IT.prototype,"focused",void 0);_.d([_.M(),_.x("design:type",Object)],IT.prototype,"disabled",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],IT.prototype,"isOverlay",void 0);_.d([_.xL({is:"yt-interaction",disableElementRegistration:!0})],IT);
_.p(IT,"yt-interaction",function(){if(Kof===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;E94===void 0&&(E94=document.createElement("template"));var e=E94;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Kof=D}D=Kof;return D},{mode:2});var QW=function(){return _.X.apply(this,arguments)||this};
_.P(QW,_.X);_.q=QW.prototype;_.q.ready=function(){var D=this,t=_.Kg(this.hostElement).querySelector("#button");t.addEventListener("focus",function(){vE6||(vE6=new lJv);D.keyboardFocused=vE6.isKeyBoardInUse()});
t.addEventListener("blur",function(){D.keyboardFocused=!1;D.rippleUp_()})};
_.q.computeTabIndex_=function(D){return D?-1:0};
_.q.computeButtonAriaPressed_=function(D){if(this.toggleable)return D?"true":"false"};
_.q.rippleDown_=function(){_.Kg(this.hostElement).querySelector("#interaction").triggerDown()};
_.q.rippleUp_=function(){_.Kg(this.hostElement).querySelector("#interaction").triggerUp()};
_.q.onPressedChanged_=function(){var D=_.Ny(_.Kg(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Ny(_.Kg(this.hostElement).querySelector("#button")).children[0];D&&(D.active=this.pressed)};
QW.prototype.onPressedChanged_=QW.prototype.onPressedChanged_;QW.prototype.rippleUp_=QW.prototype.rippleUp_;QW.prototype.rippleDown_=QW.prototype.rippleDown_;_.d([_.M(),_.x("design:type",String)],QW.prototype,"label",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],QW.prototype,"disabled",void 0);_.d([_.M(),_.x("design:type",Boolean)],QW.prototype,"pressed",void 0);_.d([_.M(),_.x("design:type",Object)],QW.prototype,"toggleable",void 0);
_.d([_.M(),_.x("design:type",Boolean)],QW.prototype,"untabbable",void 0);_.d([_.M(),_.x("design:type",Boolean)],QW.prototype,"keyboardFocused",void 0);_.d([_.rx("down"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QW.prototype,"rippleDown_",null);_.d([_.rx("up"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QW.prototype,"rippleUp_",null);
_.d([_.Os("pressed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QW.prototype,"onPressedChanged_",null);_.d([_.xL({is:"yt-icon-button",disableElementRegistration:!0})],QW);
_.p(QW,"yt-icon-button",function(){if(GCv===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;hkv===void 0&&(hkv=document.createElement("template"));var e=hkv;H.call(t,e.content.cloneNode(!0),D.content.firstChild);GCv=D}D=GCv;return D},{mode:2});var NYv;var kCa=function(){var D=document.body,t=D.appendChild;if(NYv===void 0){var H=document.createElement("template");_.n(H,'\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>');
NYv=H}H=NYv;t.call(D,H.content)};
document.body?kCa():window.addEventListener("DOMContentLoaded",kCa);var TY3=_.zk(["aria-"]),yW={};yW.YtRenderButtonBehavior=[_.y.YtRendererBehavior,_.pE.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!!_.qS().resolve(_.by(_.S8))&&_.r("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 D=this.computeHref_(this.endpoint,!0);D?WU(this.elements_.endpoint,D):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){D=this.buttonClass.split(" ");D=_.F(D);for(var t=D.next();!t.done;t=D.next())t=t.value,_.kL(this.hostElement,t,!0),this.elements_.button&&_.kL(this.elements_.button,t,!0),this.elements_.text&&_.kL(this.elements_.text,t,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(D=null,this.buttonAccessibility&&(D=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=D:D?_.ax([_.Zi(TY3)],this.elements_.button,"aria-label",D):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var D=_.qS().resolve(_.by(_.S8));D&&(this.keyboardFocused=D.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.nE("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,_.Xu(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.Xu(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(D,t){if(t)for(D=t.split(" "),D=_.F(D),t=D.next();!t.done;t=D.next())t=t.value,_.kL(this.hostElement,t,!1),this.elements_.button&&_.kL(this.elements_.button,t,!1),this.elements_.text&&_.kL(this.elements_.text,t,!1)},
buttonIconChanged_:function(D){this.elements_.icon?D?(this.elements_.icon.icon=D,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.Xu(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.T1(this.hostElement,"is-paper-button-with-icon",!1)):D&&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"&&_.Xu(this.elements_.button).appendChild(this.elements_.icon):_.Xu(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.T1(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(D){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,D){var t=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(D){case "yt_icon_button_with_label":t=!0;_.kL(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();D=_.Xu(this.elements_.button).firstElementChild;
this.elements_.icon=D;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.Xu(this.elements_.endpoint).appendChild(this.elements_.button);_.Xu(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.nE("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;_.Xu(this.elements_.button).appendChild(this.elements_.text);_.Xu(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":t=!0,this.elements_.button=this.getYtIconButton_(),D=_.Xu(this.elements_.button).firstElementChild,this.elements_.icon=D,this.setIconActive_(this.elements_.icon),
_.Xu(this.elements_.endpoint).appendChild(this.elements_.button)}_.T1(this.hostElement,"is-icon-button",t);_.T1(this.hostElement,"is-paper-button",!t);_.T1(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 H;_.Kg((H=this.container.hostElement)!=null?H:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.Xu(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(D){if(D!=void 0||this.disabled)this.disabled=D,this.elements_.button&&(this.elements_.button.disabled=D)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(D){_.r("kevlar_system_icons")&&D&&this.data&&(this.data.isSelected!==void 0?D.active=this.data.isSelected:this.data.isToggled!==void 0&&(D.active=this.data.isToggled))},
observeBasicPalette_:function(D){_.fb(this.hostElement,D)},
disabledChanged_:function(D){this.data&&this.set("data.isDisabled",D)},
onYtButtonTap_:function(D){if(this.disabled)D.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.NJ(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(D=this.disableCommandHandlerOverride,!this.data||!this.data.command||D||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.r("handle_service_request_actions")||_.NJ(this.hostElement,[this.serviceEndpoint]),
_.Gf(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.r("handle_service_request_actions")?(D=[],this.serviceEndpoint&&D.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&D.push(this.data.command),D.length&&_.k0(this.hostElement,D,this.hostElement)):this.data&&this.data.command&&(D=this.data.command,D.accountUnlinkCommand||D.accountLinkCommand||D.insertAdCommand||D.insertHighlightMarkerCommand||
D.createLivestreamHighlightClipCommand||D.getVideoUploadFeedbackCommand||D.musicDeletePrivatelyOwnedEntityCommand||D.ypcCancelRecurrenceEndpoint||D.getMultiSelectCommandEndpoint?_.NJ(this.hostElement,[D]):_.k0(this.hostElement,[D],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 D,t=_.Kg((D=this.container.hostElement)!=null?D:this.container);t.lastChild&&t.lastChild.tagName!="STYLE";)try{t.removeChild(t.lastChild)}catch(H){break}},
getYtIconButton_:function(){var D=this.reuseEnabled_()?_.nE("yt-icon-button"):document.createElement("yt-icon-button"),t=_.Xu(D).firstElementChild;if(t&&t.is!="yt-icon"){for(t=_.Xu(D);t.lastChild;)t.removeChild(t.lastChild);t=null}t||(t=this.getIcon_(),this.setIconActive_(t),_.Xu(D).appendChild(t));return D},
reuseEnabled_:function(){return _.r("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.nE("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.nE("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.cg6={};
_.cg6.YtButtonBehavior=[yW.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var D=this.data;D&&(this._setEndpoint(this.computeEndpoint_(D)),this._setServiceEndpoint(this.computeServiceEndpoint_(D)),this._setCommand(this.computeCommand_(D)),this._setButtonIcon(this.computeButtonIcon_(D)),this._setButtonText(this.computeButtonText_(D,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(D)),this._setButtonTooltip(this.computeTooltip_(D)),this._setButtonClass(this.computeButtonClass_(D)),this._setIconPositionType(this.computeIconPositionType_(D)),this.updateRenderedElements())},
setPressedState:function(D){var t;if((t=this.elements_)==null?0:t.button)this.elements_.button.pressed=!!D},
computeIconPositionType_:function(D){return D&&D.iconPosition||null},
computeEndpoint_:function(D){var t=D&&D.navigationEndpoint,H=this.get("data.command.commandMetadata.webCommandMetadata.url"),e=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return t?t:D&&D.command&&D.command.modalEndpoint?D.command:H&&!e&&D.command?D.command:null},
computeServiceEndpoint_:function(D){var t=D&&D.serviceEndpoint,H=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return t?t:H&&D.command?D.command:null},
computeCommand_:function(D){return D&&D.command||null},
computeButtonIcon_:function(D){return D&&D.icon&&D.icon.iconType?_.cc(D.icon.iconType):null},
computeButtonText_:function(D,t){return!t&&D&&D.text||null},
computeAccessibility_:function(D){return this.get("accessibilityData.accessibilityData",D)||D&&D.accessibility||(D&&D.text?{label:this.getSimpleString(D.text)}:null)},
computeTooltip_:function(D){return D?D.isDisabled&&D.disabledTooltip||D.tooltip||null:null},
computeButtonClass_:function(D){var t=D&&D.style?D.style.toLowerCase().replace(/_/g,"-")+" ":"";t+=D&&D.size?D.size.toLowerCase().replace(/_/g,"-")+" ":"";D.colorData&&D.colorData.basicColorPaletteData&&D.colorData.basicColorPaletteData.borderColor&&(t+="palette-with-border");return t.trim()}}];var Lb={};var jYf;var $7w;var iOf,rgf=function(){return iOf!==void 0?iOf:iOf=document.createElement("template")};
document.head.appendChild(rgf().content);var OOQ;var U7n,o9V=function(){return U7n!==void 0?U7n:U7n=document.createElement("template")};
document.head.appendChild(o9V().content);var Pd9;var n9m,CdV=function(){return n9m!==void 0?n9m:n9m=document.createElement("template")};
document.head.appendChild(CdV().content);var m7B;var MKV=document.head,SXm=MKV.appendChild,X6n;if(m7B===void 0){var fIQ=document.createElement("template");_.n(fIQ,"\x3c!--css-build:shady--\x3e");fIQ.content.insertBefore(CdV().content.cloneNode(!0),fIQ.content.firstChild);m7B=fIQ}X6n=m7B;SXm.call(MKV,X6n.content);var Lon=document.head,AgB=Lon.appendChild,g93;if(Pd9===void 0){var Jgm=document.createElement("template");_.n(Jgm,"\x3c!--css-build:shady--\x3e");Jgm.content.insertBefore(o9V().content.cloneNode(!0),Jgm.content.firstChild);Pd9=Jgm}g93=Pd9;AgB.call(Lon,g93.content);var YXn=document.head,lI4=YXn.appendChild,v9v;if(OOQ===void 0){var p6n=document.createElement("template");_.n(p6n,"\x3c!--css-build:shady--\x3e");p6n.content.insertBefore(rgf().content.cloneNode(!0),p6n.content.firstChild);OOQ=p6n}v9v=OOQ;lI4.call(YXn,v9v.content);var d7a;_.AB("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");d7a=_.r("web_button_rework")&&_.lh("BUTTON_REWORK")||_.r("web_button_rework_with_live");_.DM=function(){return _.X.apply(this,arguments)||this};
_.P(_.DM,_.X);_.DM.prototype.created=function(){this.openPopupConfig=_.YC("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.DM.prototype.onYtNavigate_=function(D){var t=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);t&&(this.ytOpenPopupBehavior.openPopup(t),D.stopPropagation(),D.preventDefault())};
_.ql.Object.defineProperties(_.DM,{template:{configurable:!0,enumerable:!0,get:function(){if($7w===void 0){var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
var t=D.content,H=t.insertBefore;jYf===void 0&&(jYf=document.createElement("template"));var e=jYf;H.call(t,e.content.cloneNode(!0),D.content.firstChild);$7w=D}D=$7w;return D}}});
_.DM.prototype.onYtNavigate_=_.DM.prototype.onYtNavigate_;_.d([_.C(_.vP.YtOpenPopupBehavior),_.x("design:type",Object)],_.DM.prototype,"ytOpenPopupBehavior",void 0);_.d([_.C(_.cg6.YtButtonBehavior),_.x("design:type",Object)],_.DM.prototype,"ytButtonBehavior",void 0);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],_.DM.prototype,"onYtNavigate_",null);
_.d([_.xL({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:d7a})],_.DM);var x7Q;var Rk9=_.r("web_button_rework")&&_.lh("BUTTON_REWORK")||_.r("web_button_rework_with_live"),tf=function(){var D=_.X.apply(this,arguments)||this;D.isPressed=!1;D.forceIconButton=!1;D.forceIconOnly=!1;D.forceModernIconButton=!1;D.skipCommandHandling=!1;D.alignByText=!1;D.fitToVisibleBounds=!0;D.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};D.onTap=function(t){_.Gf(D.hostElement,"yt-service-request-sent-button-renderer",t)};
return D};
_.P(tf,_.X);_.q=tf.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.q.onClick=function(D){var t,H=this.disabled||((t=this.data)==null?void 0:t.isDisabled);t=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");H&&t&&D.stopPropagation()};
_.q.computeIcon=function(){var D,t,H=(D=this.data)==null?void 0:(t=D.icon)==null?void 0:t.iconType;if(H)return _.cc(H)};
_.q.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.q.handleUpdateButtonAction=function(D){D=_.O(D,JRf);var t=_.O(D==null?void 0:D.updatedButton,_.aj);if(this.data&&D&&t){var H=this.data;H.targetId&&D.targetId&&H.targetId===D.targetId&&(this.data=t)}};
_.ql.Object.defineProperties(tf.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var D=this;if(this.data){var t=dbD({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Gf(D.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Gf(D.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});t.alignByText=this.alignByText;return t}}}});
_.ql.Object.defineProperties(tf,{template:{configurable:!0,enumerable:!0,get:function(){if(x7Q===void 0){var D=document.createElement("template");_.n(D,'\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>');x7Q=D}D=x7Q;return D}}});
tf.prototype.onClick=tf.prototype.onClick;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],tf.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],tf.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],tf.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],tf.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],tf.prototype,"isPressed",void 0);
_.d([_.M(),_.x("design:type",Object)],tf.prototype,"forceIconButton",void 0);_.d([_.M(),_.x("design:type",Object)],tf.prototype,"forceIconOnly",void 0);_.d([_.M(),_.x("design:type",Object)],tf.prototype,"forceModernIconButton",void 0);_.d([_.M(),_.x("design:type",Object)],tf.prototype,"skipCommandHandling",void 0);_.d([_.M(),_.x("design:type",Object)],tf.prototype,"alignByText",void 0);_.d([_.M(),_.x("design:type",Object)],tf.prototype,"buttonTooltipPosition",void 0);
_.d([_.M(),_.x("design:type",Object)],tf.prototype,"fitToVisibleBounds",void 0);_.d([_.M({computed:"computeTooltip(data)"}),_.x("design:type",Object)],tf.prototype,"tooltip",void 0);_.d([_.M(),_.x("design:type",Object)],tf.prototype,"overrides",void 0);_.d([_.M(),_.x("design:type",Boolean)],tf.prototype,"disabled",void 0);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],tf.prototype,"onClick",null);
_.d([_.m("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.x("design:type",Object),_.x("design:paramtypes",[])],tf.prototype,"computedButtonShape",null);_.d([_.xL({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Rk9,cssBuildOptOut:!0}),_.xL({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Rk9,cssBuildOptOut:!0})],tf);var upv;var Wo6;var Hw=function(){var D=_.X.apply(this,arguments)||this;D.empty_=!0;D.loadTime=Infinity;D.pendingPaint=!1;D.hasChange_=!1;D.oldThumbnail_=null;D.oldDelayedSrc_="";D.objectURL_=null;return D};
_.P(Hw,_.X);_.q=Hw.prototype;_.q.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.q.ready=function(){var D=this.shouldShowPlaceholder_();_.kL(this.hostElement,"no-transition",!0);D&&this.hostElement.classList.add("with-placeholder")};
_.q.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.q.isThumbPreloaded_=function(D){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",D)};
_.q.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||II4};
_.q.computeThumbnailSrc_=function(D){return D&&D.thumbnails?_.G3(D.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.q.computeAlt_=function(){var D=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&D||""};
_.q.thumbnailChanged_=function(){var D=_.F([this.thumbnail,this.oldThumbnail_]),t=D.next().value;D=D.next().value;this.oldThumbnail_=t;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(D=this.computeThumbnailSrc_(D),this.computeThumbnailSrc_(t)===D))return;_.r("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(t)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):t&&_.lh("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.Vi(this,this.onReload_):_.Vi(this,this.onShow_):this.resetImage_();t&&(this.hostElement.style.opacity=""+t.opacity)}};
_.q.delayedSrcChanged_=function(){var D=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===D||this.resetImage_()};
_.q.setSrc_=function(D){D?(_.Kg(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Kg(this.hostElement).querySelector("#img").src=D):(_.Kg(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.q.resetImage_=function(){x7K(this.hostElement);this.empty_=!0;this.setSrc_(II4);this.ytRendererBehavior.invalidate(!1)};
_.q.observePlaceholderColor_=function(){var D=this.thumbnail&&this.thumbnail.placeholderColor;D?this.hostElement.style.backgroundColor=_.Ih(D):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.q.onLoad_=function(){_.Kg(this.hostElement).querySelector("#img").src&&_.Kg(this.hostElement).querySelector("#img").src!==II4&&(d78(this.hostElement),this.notifyOnLoaded&&_.Gf(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.q.onError_=function(){var D=this;if(_.r("web_use_cache_for_image_fallback"))BYu(_.Kg(this.hostElement).querySelector("#img").src).then(function(t){D.objectURL_=_.xh(t).toString();D.setSrc_(D.objectURL_)}).catch(function(){_.r("kevlar_woffle_fallback_image")&&D.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.q.onPrescanVisible=function(){this.onShow_()};
_.q.onVisible=function(){if(_.r("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.q.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var D=this.computeSrc_();D!==_.Kg(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(D))}};
_.q.onReload_=function(){this.empty_=!1;var D=this.computeSrc_();D!==_.Kg(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(D))};
_.q.shouldShowPlaceholder_=function(){return _.r("kevlar_thumbnail_bg")};
Hw.prototype.observePlaceholderColor_=Hw.prototype.observePlaceholderColor_;Hw.prototype.delayedSrcChanged_=Hw.prototype.delayedSrcChanged_;Hw.prototype.thumbnailChanged_=Hw.prototype.thumbnailChanged_;_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],Hw.prototype,"alt",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Hw.prototype,"ariaHidden",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],Hw.prototype,"ariaLabel",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hw.prototype,"hidden",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],Hw.prototype,"id",void 0);_.d([_.C(_.k7.YtVisibilityBehavior),_.x("design:type",Object)],Hw.prototype,"ytVisibilityBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",String)],Hw.prototype,"delayedSrc",void 0);
_.d([_.M(),_.x("design:type",Object)],Hw.prototype,"thumbnail",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Hw.prototype,"loaded",void 0);_.d([_.M(),_.x("design:type",Boolean)],Hw.prototype,"notifyOnLoaded",void 0);_.d([_.M(),_.x("design:type",Number)],Hw.prototype,"height",void 0);_.d([_.M(),_.x("design:type",Number)],Hw.prototype,"width",void 0);_.d([_.M({value:function(){return"width"}}),
_.x("design:type",String)],Hw.prototype,"dimension",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hw.prototype,"fit",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hw.prototype,"fitHeight",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hw.prototype,"fitWidth",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],Hw.prototype,"objectFit",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],Hw.prototype,"objectPosition",void 0);_.d([_.M(),_.x("design:type",String)],Hw.prototype,"preferredThumbnail",void 0);_.d([_.M({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.x("design:type",String)],Hw.prototype,"alt_",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],Hw.prototype,"sharedTooltipText",void 0);
_.d([_.M(),_.x("design:type",Boolean)],Hw.prototype,"ftlEligible",void 0);_.d([_.M({value:void 0}),_.x("design:type",String)],Hw.prototype,"observeHiddenOption",void 0);_.d([_.M({value:"observe_once"}),_.x("design:type",String)],Hw.prototype,"observePrescanOption",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hw.prototype,"roundedContainer",void 0);
_.d([_.mx("thumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hw.prototype,"thumbnailChanged_",null);_.d([_.mx("delayedSrc"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hw.prototype,"delayedSrcChanged_",null);_.d([_.Os("thumbnail.placeholderColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hw.prototype,"observePlaceholderColor_",null);
_.d([_.xL({is:"yt-img-shadow",disableElementRegistration:!0})],Hw);var II4=_.lh("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.E_()(Hw,"yt-img-shadow",function(){if(Wo6===void 0){var D=document.createElement("template");_.n(D,'\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">');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;upv===void 0&&(upv=document.createElement("template"));var e=upv;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Wo6=D}D=Wo6;return D},{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 $fT;_.eX=new _.kI("SCREEN_MANAGER_TOKEN");$fT=new _.kI("LOG_INITIAL_SCREEN_TOKEN");var QYn=_.JB({entities:{}});var ygm=_.YX(QYn)(QYn.entities,{selectSfvAudioItemPlaybackState:function(D,t){var H,e;D=(e=_.jR(D,"sfvAudioItemCurrentlyPlayingEntity",t))!=null?e:void 0;return(H=D==null?void 0:D.sfvAudioItemPlaybackState)!=null?H:void 0},
playlistLoopStateEntitySelector:function(D,t){var H;return(H=_.jR(D,"playlistLoopStateEntity",t))!=null?H:void 0}});_.VC=_.l(function(D){function t(tT){return _.O(tT,_.h1)}
function H(){var tT=e().isTogglingDisabled||S()&&e().toggledIsTogglingDisabled,ZV=tT||T()?S():!S();L(ZV);g(!1);if(!tT){var ED;(ED=a)==null||ED(!!ZV)}var o$;((o$=b)==null?0:o$())||_.YS(_.qS().resolve(_.eX),e().trackingParams);var jV;if(!ZV||!t(e().defaultButtonViewModel)||(jV=b)!=null&&jV()){var i8;!t(e().toggledButtonViewModel)||((i8=b)==null?0:i8())||_.YS(_.qS().resolve(_.eX),t(e().toggledButtonViewModel).trackingParams)}else _.YS(_.qS().resolve(_.eX),t(e().defaultButtonViewModel).trackingParams)}
var e=D.data,V=D.buttonShapeOverrides,b=D.disableExplicitClickLogging,a=D.onToggle,w=D.style,h=D.useOutlinedIcon,K=D.className,N=function(){var tT,ZV;return S()?(tT=D.animatedTextPropsToggled)==null?void 0:tT.call(D):(ZV=D.animatedTextPropsDefault)==null?void 0:ZV.call(D)},k=_.jj(function(){return N()?Object.assign({},N(),{shouldAnimate:J()}):void 0},void 0,"Zp4uoe"),T=function(){var tT;
return((tT=R())==null?void 0:tT.isToggled)!==void 0},c=_.F(_.rm(function(){var tT,ZV,ED;
return T()?(tT=R())==null?void 0:tT.isToggled:(ED=V==null?void 0:(ZV=V())==null?void 0:ZV.toggled)!=null?ED:e().isToggled})),U=c.next().value;
c=c.next().value;var S=U,L=c;c=_.F(_.rm(function(){var tT,ZV;return(tT=D.animatedTextPropsToggled)==null?void 0:(ZV=tT.call(D))==null?void 0:ZV.shouldAnimate}));
U=c.next().value;c=c.next().value;var J=U,g=c;U=_.F(_.KR(!1,void 0,"mq3Zfe"));var Q=U.next().value,u=U.next().value,R=_.dm(function(tT){a:{var ZV=e().entityKey,ED=e().toggledStateEntitySelectorType;if(ED)switch(ED){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!ZV)break;tT=ygm.selectSfvAudioItemPlaybackState(tT,ZV);if(tT==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){tT={isToggled:!0};break a}if(tT){tT={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":tT=
{isToggled:_.WQV(tT).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":tT={isToggled:_.WQV(tT).includes("engagement-panel-live-chat-item-section")};break a;default:_.Yw(new _.nZ("Error: entitySelectorType defined but not matched in selector.",tT,ED))}tT=void 0}return tT}),I=function(){return Object.assign({},V==null?void 0:V(),{onToggle:H,
toggleable:!0,toggled:S(),focused:Q()})};
return _.G("toggle-button-view-model",{"on:focusin":_.$X(function(){var tT=_.qS().resolve(_.by(_.S8));tT&&u(tT.isKeyBoardInUse());return!1}),
"on:focusout":_.$X(function(){u(!1);return!1})},_.G(_.E,{cond:function(){return S()?t(e().toggledButtonViewModel):t(e().defaultButtonViewModel)},
then:function(tT){return _.G(_.JX,{data:tT,className:K,style:w,useOutlinedIcon:h,buttonOverrides:I,animatedTextProps:k})}}))},"Y");
_.VC.idomCompat={callbacks:{onToggle:!0}};_.hB(_.l(function(D){return _.G("yt-toggle-button-view-model",{class:function(){var t;return(t=D.scopingClassName)==null?void 0:t.call(D)}},_.G(_.VC,{data:function(){var t;
return(t=D.data)==null?void 0:t.call(D)},
buttonShapeOverrides:function(){var t;return(t=D.overrides)==null?void 0:t.call(D)},
animatedTextPropsDefault:function(){var t;return(t=D.animatedTextPropsDefault)==null?void 0:t.call(D)},
animatedTextPropsToggled:function(){var t;return(t=D.animatedTextPropsToggled)==null?void 0:t.call(D)},
disableExplicitClickLogging:function(){var t;return(t=D.disableExplicitClickLogging)==null?void 0:t.call(D)},
onToggle:function(t){var H;return(H=D.onToggle)==null?void 0:H.call(D,t)},
style:function(){var t;return(t=D.style)==null?void 0:t.call(D)},
useOutlinedIcon:function(){var t;return(t=D.useOutlinedIcon)==null?void 0:t.call(D)},
className:function(){var t;return(t=D.className)==null?void 0:t.call(D)}}))},"Z"),"yt-toggle-button-view-model",{props:{data:_.ij,
buttonShapeOverrides:_.ij,overrides:_.ij,animatedTextPropsDefault:_.ij,animatedTextPropsToggled:_.ij,disableExplicitClickLogging:_.ij,onToggle:_.wm,style:_.ij,useOutlinedIcon:_.ij,className:_.ij,scopingClassName:_.ij}});var bP=function(){return _.X.apply(this,arguments)||this};
_.P(bP,_.X);bP.prototype.onTap=function(D){D.stopPropagation();D=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.LP("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:D})):this.ytLiveChatReduxBehavior.dispatch(_.nf("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:D}))};
_.ql.Object.defineProperties(bP.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.engagementState)==null?void 0:D.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=_.O(this.data.toggleButton,_.Ez),t;if(Number(((t=this.likeCountState)==null?void 0:t.likeCountIfIndifferentNumber)||"0")===0){var H;t=((H=this.data.likeCountPlaceholder)==null?void 0:H.content)||""}else{var e,V,b;t=((e=this.likeCountState)==null?void 0:(V=e.likeCountIfIndifferent)==null?void 0:V.content)||((b=this.data.likeCountPlaceholder)==null?void 0:b.content)||""}var a,w;H=((a=this.likeCountState)==null?void 0:(w=
a.likeCountIfLiked)==null?void 0:w.content)||"1";a=_.O(D.toggledButtonViewModel,_.h1);return Object.assign({},D,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.O(D.defaultButtonViewModel,_.h1),{title:t})},toggledButtonViewModel:{buttonViewModel:Object.assign({},a,{title:H})}})}}}});
bP.prototype.onTap=bP.prototype.onTap;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],bP.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.hX),_.x("design:type",Object)],bP.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],bP.prototype,"data",void 0);
_.d([_.M({selectorArgs:["data.likeCountEntityKey"],selector:IHT}),_.x("design:type",Object)],bP.prototype,"likeCountState",void 0);_.d([_.M({selectorArgs:["data.engagementStateKey"],selector:B$8}),_.x("design:type",Object)],bP.prototype,"engagementState",void 0);_.d([_.m("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],bP.prototype,"isLiked",null);
_.d([_.m("data","likeCountState","isLiked"),_.x("design:type",Object),_.x("design:paramtypes",[])],bP.prototype,"toggleButton",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],bP.prototype,"onTap",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],bP);
_.p(bP,"yt-live-chat-like-button-view-model",function(){if(zSv===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;By3===void 0&&(By3=document.createElement("template"));var e=By3;H.call(t,e.content.cloneNode(!0),D.content.firstChild);zSv=D}D=zSv;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var BYw;var zkf;var qD=function(){return _.X.apply(this,arguments)||this};
_.P(qD,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],qD.prototype,"data",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],qD);
_.p(qD,"yt-live-chat-paid-message-footer-renderer",function(){if(zkf===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;BYw===void 0&&(BYw=document.createElement("template"));var e=BYw;H.call(t,e.content.cloneNode(!0),D.content.firstChild);zkf=D}D=zkf;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var DqB;var thn;var HD6;var ep9,Vhf=function(){if(ep9!==void 0)return ep9;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;HD6===void 0&&(HD6=document.createElement("template"));var e=HD6;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return ep9=D};var Fh=function(){return _.X.apply(this,arguments)||this};
_.P(Fh,_.X);Fh.prototype.onTap=function(D){D.stopPropagation()};
_.ql.Object.defineProperties(Fh.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=_.O(this.data.replyButton,_.h1),t,H,e,V,b,a,w,h=Number(((t=this.replyCountState)==null?void 0:t.replyCountNumber)||"0")===0?(H=this.data)==null?void 0:(e=H.replyCountPlaceholder)==null?void 0:e.content:((V=this.replyCountState)==null?void 0:(b=V.replyCount)==null?void 0:b.content)||((a=this.data)==null?void 0:(w=a.replyCountPlaceholder)==null?void 0:w.content)||"",K;return Object.assign({},
D,{title:h,accessibilityText:(K=this.replyCountState)==null?void 0:K.replyButtonAccessibilityText})}}}});
_.ql.Object.defineProperties(Fh,{template:{configurable:!0,enumerable:!0,get:function(){return Vhf()}}});
Fh.prototype.onTap=Fh.prototype.onTap;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Fh.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Fh.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.hX),_.x("design:type",Object)],Fh.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Fh.prototype,"data",void 0);
_.d([_.M({selectorArgs:["data.replyCountEntityKey"],selector:function(D,t){return _.jR(D.entities,"replyCountEntity",t)}}),
_.x("design:type",Object)],Fh.prototype,"replyCountState",void 0);_.d([_.m("data","replyCountState"),_.x("design:type",Object),_.x("design:paramtypes",[])],Fh.prototype,"buttonViewModel",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Fh.prototype,"onTap",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Fh);
_.p(Fh,"yt-live-chat-reply-button-view-model",function(){return Vhf()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var bDB;var q$v;var ay=function(){var D=_.X.apply(this,arguments)||this;D.ariaLabel="";return D};
_.P(ay,_.X);
ay.prototype.dataChanged=function(){for(var D=(0,_.cT)(_.Kg(this.hostElement).querySelector("#image"));D.firstChild;)D.removeChild(D.firstChild);if(this.data)if(this.data.icon){var t=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(t.polymerController.icon="yt-sys-icons:shield-filled",t.polymerController.defaultToFilled=!0):t.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();D.appendChild(t)}else if(this.data.customThumbnail){t=document.createElement("img");
var H=_.Ag$(this.data.customThumbnail.thumbnails,16);H?(t.src=H,D.appendChild(t),t.setAttribute("alt",this.hostElement.ariaLabel||"")):_.Yw(new _.nZ("Could not compute URL for thumbnail",this.data.customThumbnail))}};
ay.prototype.identity=function(D){return D};
ay.prototype.computeType=function(D){return NT(D||void 0)};
ay.prototype.dataChanged=ay.prototype.dataChanged;_.d([_.M(),_.x("design:type",Object)],ay.prototype,"data",void 0);_.d([_.M({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.x("design:type",Object)],ay.prototype,"ariaLabel",void 0);_.d([_.M({computed:"computeType(data)",reflectToAttribute:!0}),_.x("design:type",String)],ay.prototype,"type",void 0);
_.d([_.M({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.x("design:type",String)],ay.prototype,"sharedTooltipText",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("live_chat_enable_new_moderator_badge")}}),
_.x("design:type",Boolean)],ay.prototype,"enableNewModeratorBadge",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ay.prototype,"dataChanged",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],ay);
_.p(ay,"yt-live-chat-author-badge-renderer",function(){if(q$v===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;bDB===void 0&&(bDB=document.createElement("template"));var e=bDB;H.call(t,e.content.cloneNode(!0),D.content.firstChild);q$v=D}D=q$v;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var F7w;var aWo;var wB=function(){return _.X.apply(this,arguments)||this};
_.P(wB,_.X);_.q=wB.prototype;_.q.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"}}}}};
_.q.computeBadgesInsideChip=function(D){return D?D.filter(function(t){return NT(t.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.q.computeBadgesOutsideChip=function(D){return this.prependChatBadges||!D?[]:D.filter(function(t){t=NT(t.liveChatAuthorBadgeRenderer);return t!=="verified"&&t!=="owner"})};
_.q.computeBadgesBeforeChip=function(D){return this.prependChatBadges&&D?D.filter(function(t){t=NT(t.liveChatAuthorBadgeRenderer);return t!=="verified"&&t!=="owner"}):[]};
_.q.computeIsHighlighted=function(D,t){var H=!!tF8(D,"owner"),e=!!tF8(D,"verified");D=!!tF8(D,"moderator");return(H||e&&!D)&&!t};
_.q.computeAuthorType=function(D){return Dj3(D)};
_.q.computeAuthorClass=function(D,t){return t?(D?D+" ":"")+"single-line":D};
_.q.onSeedColorChanged=function(){_.r("live_chat_author_name_color_usernames")||_.r("live_chat_seed_color_usernames")||_.r("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):_.r("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
wB.prototype.onSeedColorChanged=wB.prototype.onSeedColorChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],wB.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],wB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],wB.prototype,"authorName",void 0);_.d([_.M(),_.x("design:type",Array)],wB.prototype,"authorBadges",void 0);
_.d([_.M({computed:"computeAuthorType(authorBadges)"}),_.x("design:type",String)],wB.prototype,"authorType",void 0);_.d([_.M({computed:"computeAuthorClass(authorType, singleLine)"}),_.x("design:type",String)],wB.prototype,"authorClass",void 0);_.d([_.M({computed:"computeBadgesInsideChip(authorBadges)"}),_.x("design:type",Array)],wB.prototype,"badgesInsideChip",void 0);_.d([_.M({computed:"computeBadgesOutsideChip(authorBadges)"}),_.x("design:type",Array)],wB.prototype,"badgesOutsideChip",void 0);
_.d([_.M({computed:"computeBadgesBeforeChip(authorBadges)"}),_.x("design:type",Array)],wB.prototype,"badgesBeforeChip",void 0);_.d([_.M({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.x("design:type",Boolean)],wB.prototype,"isHighlighted",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],wB.prototype,"singleLine",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],wB.prototype,"disableHighlighting",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],wB.prototype,"dashboardMoneyFeed",void 0);_.d([_.M({value:_.r("live_chat_prepend_badges"),reflectToAttribute:!0}),_.x("design:type",Boolean)],wB.prototype,"prependChatBadges",void 0);_.d([_.M(),_.x("design:type",String)],wB.prototype,"authorNameColor",void 0);_.d([_.o5("#author-name"),_.x("design:type",HTMLDivElement)],wB.prototype,"username",void 0);
_.d([_.Os("authorNameColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wB.prototype,"onSeedColorChanged",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],wB);
_.p(wB,"yt-live-chat-author-chip",function(){if(aWo===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;F7w===void 0&&(F7w=document.createElement("template"));var e=F7w;H.call(t,e.content.cloneNode(!0),D.content.firstChild);aWo=D}D=aWo;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var wEn;var ZDn;var ZM=function(){var D=_.X.apply(this,arguments)||this;D.debounceCommand=_.A_(function(t){D.ytComponentBehavior.resolveCommand(t)},1500);
return D};
_.P(ZM,_.X);ZM.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var D=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",t,H,e=this.isHearted?(t=this.data)==null?void 0:t.unheartCommand:(H=this.data)==null?void 0:H.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.LP("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:D}));(D=_.xP(e))&&this.debounceCommand(D)}};
_.ql.Object.defineProperties(ZM.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var D,t;if(!((D=this.data)==null?0:(t=D.creatorThumbnail)==null?0:t.sources))return{};D={thumbnails:[]};t={};t.url=this.data.creatorThumbnail.sources[0].url;D.thumbnails.push(t);return D}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return((D=this.engagementState)==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((t=this.engagementState)==null?void 0:t.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((H=this.engagementState)==null?void 0:H.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}}});
ZM.prototype.onTap=ZM.prototype.onTap;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],ZM.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ZM.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.hX),_.x("design:type",Object)],ZM.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ZM.prototype,"data",void 0);
_.d([_.M({selectorArgs:["data.engagementStateKey"],selector:B$8}),_.x("design:type",Object)],ZM.prototype,"engagementState",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ZM.prototype,"thumbnailDetails",null);_.d([_.m("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ZM.prototype,"isHearted",null);_.d([_.m("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ZM.prototype,"isEditable",null);
_.d([_.m("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ZM.prototype,"showCreatorView",null);_.d([_.m("data","engagementState"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ZM.prototype,"showButton",null);_.d([_.m("data","isHearted"),_.x("design:type",String),_.x("design:paramtypes",[])],ZM.prototype,"label",null);_.d([_.m("data","isHearted"),_.x("design:type",Object),_.x("design:paramtypes",[])],ZM.prototype,"heartHoverText",null);
_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZM.prototype,"onTap",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],ZM);
_.p(ZM,"yt-live-chat-creator-heart-view-model",function(){if(ZDn===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;wEn===void 0&&(wEn=document.createElement("template"));var e=wEn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);ZDn=D}D=ZDn;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var sd=function(){};
_.P(sd,lS);sd.prototype.JSC$13118_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:Dk("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
sd.prototype.getApiPaths=function(){return[]};
sd.prototype.getExtension=function(){};
sd.prototype.JSC$13118_buildRequest=function(){};var sa3={},hpn=(sa3.GET_DATASYNC_IDS=mP(sd),sa3);var GRB,EUn,K7w,acB,hf,T$4,EW9,kRn,N$m;GRB="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");EUn=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.QL=function(D,t,H,e,V,b,a,w,h){this.endpointMap=D;this.networkManager=t;this.authService=H;this.responseProcessorMap=e;this.innertubeResponseStore=V;this.contextProcessors=b;this.asyncContextProcessors=a;this.localInnertubeRouter=w;this.requestSequencer=h;this.inflightRequests=new Map;D.signalEndpointMap||(D.signalEndpointMap={});D.signalEndpointMap=Object.assign({},hpn,D.signalEndpointMap)};
K7w=function(D,t,H,e,V,b,a,w,h){if(_.QL.instance!==void 0){if(e=_.QL.instance,D=[D!==e.endpointMap,t!==e.networkManager,H!==e.authService,V!==e.innertubeResponseStore,b!==e.contextProcessors,a!==e.asyncContextProcessors,w!==e.localInnertubeRouter],D.some(function(K){return K}))throw new _.nZ("InnerTubeTransportService is already initialized",D);
}else _.QL.instance=new _.QL(D,t,H,e,V,b,a,w,h)};
_.BZ=function(D,t,H){var e=e===void 0?Cva:e;var V=EW9(D,t);return V?new _.c$(function(b,a){var w,h,K,N,k;return _.Z(function(T){switch(T.nextAddress){case 1:return T.yield(V,2);case 2:w=T.yieldResult;h=w.JSC$13118_getRequest(t,H,e);if(!h){a(new _.nZ("Error: Failed to build request for command.",t));T.jumpTo(0);break}zK(h.input);N=((K=h.requestShell)==null?void 0:K.mode)==="cors"?"cors":void 0;if(D.authService.syncHeaders){k=N$m(h.config,N);T.jumpTo(4);break}return T.yield(kRn(h.config,N),5);case 5:k=
T.yieldResult;case 4:b(T$4(D,h,k)),_.n2(T)}})}):_.Aj(new _.nZ("Error: No request builder found for command.",t))};
acB=function(D,t,H,e){var V=V===void 0?Cva:V;var b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u,R,I;return _.Z(function(tT){switch(tT.nextAddress){case 1:b=z$D(t,D.endpointMap);if(!b)throw new _.nZ("Error: No streaming request builder found for command",t);a=b.JSC$13118_getRequest(t,H,V);if(!a)throw new _.nZ("Failed to build YtRequest for streaming Command",t);if((w=D.localInnertubeRouter)==null||!w.shouldPreferLocalResponse(a.input,a.innerTubeRequest)){tT.jumpTo(2);break}return tT.yield(D.localInnertubeRouter.localInnertubeResponse(a.input,
a.innerTubeRequest),3);case 3:return h=tT.yieldResult,K={},h.playerResponse&&(hf(D,h.playerResponse,a),K.player=h.playerResponse,(N=e)==null||N(K,h)),h.watchNextResponse&&(hf(D,h.watchNextResponse,a),K.content=h.watchNextResponse,(k=e)==null||k(K,h)),tT.return(K);case 2:c=((T=a.requestShell)==null?void 0:T.mode)==="cors"?"cors":void 0;if(D.authService.syncHeaders){U=N$m(a.config,c);tT.jumpTo(4);break}return tT.yield(kRn(a.config,c),5);case 5:U=tT.yieldResult;case 4:return J=(L=(S=a.requestShell)==
null?void 0:S.headers)!=null?L:{},a.requestShell=Object.assign({},a.requestShell,{headers:Object.assign({},J,U)}),g=Object.assign({},a.requestShell),Q=JSON.stringify(a.innerTubeRequest),a.requestShell.method==="POST"&&(g=Object.assign({},g,{body:Q})),u=function(ZV,ED){hf(D,ED.playerResponse||ED.watchNextResponse||ED.reelItemWatchResponse||ED.reelWatchSequenceResponse,a);e==null||e(ZV,ED)},R={},tT.yield(cN4(D.networkManager,a.input,g,u),6);
case 6:return R=tT.yieldResult,((I=a.config)==null?0:I.responseTick)&&_.vh(a.config.responseTick),tT.return(R)}})};
_.sK=function(D,t,H,e,V){V=V===void 0?{authStrategy:{identity:Cva}}:V;var b=b===void 0?!0:b;var a=function(){};
a=pOu(luV(H));t.context||(t.context=_.Z8V(e,b));return new _.c$(function(w){var h,K,N,k,T;return _.Z(function(c){if(c.nextAddress==1)return h=CAV(H),K=_.zA(h),D.authService.syncHeaders?(N=N$m(V,K),c.jumpTo(2)):c.yield(kRn(V,K),3);c.nextAddress!=2&&(N=c.yieldResult);k=mL3(CAV(H));T={input:k,requestShell:Dk(k),innerTubeRequest:t,config:V};w(T$4(D,T,N,a));_.n2(c)})})};
hf=function(D,t,H){var e;if(t&&!(t==null?0:(e=t.sequenceMetaData)==null?0:e.skipProcessing)&&D.responseProcessorMap){e=_.F(GRB);for(var V=e.next();!V.done;V=e.next())V=V.value,D.responseProcessorMap[V]&&D.responseProcessorMap[V].handleResponse(t,H)}};
T$4=function(D,t,H,e){e=e===void 0?function(){}:e;
var V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u,R,I,tT,ZV,ED,o$,jV,i8,g6,Mu,LQ,DO,fQ,yA,T4,Mw,X6,yZ,kQ,FX,qw,oB,ZO;return _.Z(function(Nw){switch(Nw.nextAddress){case 1:a=(V=t.config)==null?void 0:(b=V.storeStrategy)==null?void 0:b.storeKey;if(!(a&&D.innertubeResponseStore&&D.innertubeResponseStore.has(a))||((w=t.config)==null?0:(h=w.storeStrategy)==null?0:h.disableCache)){Nw.jumpTo(2);break}return Nw.yield(D.innertubeResponseStore.get(a),3);case 3:if((K=Nw.yieldResult)&&!K.isExpired())return Nw.return(Promise.resolve(_.qP(K)));
case 2:if(!((N=t)==null?0:(k=N.innerTubeRequest)==null?0:k.context)){Nw.jumpTo(4);break}T=t.innerTubeRequest.context;if(!(D.asyncContextProcessors&&D.asyncContextProcessors.length>0)){Nw.jumpTo(5);break}c=[];U=_.F(D.asyncContextProcessors);for(S=U.next();!S.done;S=U.next())L=S.value,J=L.processContext(t),J.wrappedPromise_&&c.push(J.wrappedPromise_);if(!(c.length>0)){Nw.jumpTo(5);break}return Nw.yield(Promise.all(c),5);case 5:g=_.F(D.contextProcessors||[]),Q=g.next();case 8:if(Q.done){Nw.jumpTo(4);
break}u=Q.value;return Nw.yield(u.processContext(T),9);case 9:Q=g.next();Nw.jumpTo(8);break;case 4:if((R=D.localInnertubeRouter)==null||!R.shouldPreferLocalResponse(t.input,t.innerTubeRequest)){Nw.jumpTo(12);break}return Nw.yield(D.localInnertubeRouter.localInnertubeResponse(t.input,t.innerTubeRequest),13);case 13:return I=Nw.yieldResult,hf(D,I,t),Nw.return(I);case 12:return(ED=(ZV=t.config)==null?void 0:ZV.requestKey)&&D.inflightRequests.has(ED)?tT=D.inflightRequests.get(ED):(o$=JSON.stringify(t.innerTubeRequest),
g6=(i8=(jV=t.requestShell)==null?void 0:jV.headers)!=null?i8:{},t.requestShell=Object.assign({},t.requestShell,{headers:Object.assign({},g6,H)}),Mu=Object.assign({},t.requestShell),t.requestShell.method==="POST"&&(Mu=Object.assign({},Mu,{body:o$})),((LQ=t.config)==null?0:LQ.requestTick)&&_.vh(t.config.requestTick),DO=function(){return D.networkManager.fetch(t.input,Mu,t.config)},tT=D.requestSequencer?jaf(D.requestSequencer,t,DO):DO(),ED&&D.inflightRequests.set(ED,tT)),Nw.yield(tT,14);
case 14:(fQ=Nw.yieldResult)&&_.r("web_streaming_player")&&Array.isArray(fQ)&&(fQ=fQ[0].playerResponse);if(fQ&&"error"in fQ&&((yA=fQ)==null?0:(T4=yA.error)==null?0:T4.details))for(Mw=fQ.error.details,X6=_.F(Mw),yZ=X6.next();!yZ.done;yZ=X6.next())kQ=yZ.value,(FX=kQ["@type"])&&EUn.indexOf(FX)>-1&&(delete kQ["@type"],fQ=kQ);ED&&D.inflightRequests.has(ED)&&D.inflightRequests.delete(ED);((qw=t.config)==null?0:qw.responseTick)&&_.vh(t.config.responseTick);if(fQ||(oB=D.localInnertubeRouter)==null||!oB.canProvideFallbackResponse(t.input,
t.innerTubeRequest)){Nw.jumpTo(15);break}return Nw.yield(D.localInnertubeRouter.localFallbackInnertubeResponse(t.input,t.innerTubeRequest),16);case 16:fQ=Nw.yieldResult;case 15:return hf(D,fQ,t),((ZO=t.config)==null?0:ZO.processorTick)&&_.vh(t.config.processorTick),e(),Nw.return(fQ||void 0)}})};
_.yL=function(D,t){return BeD(t,D.endpointMap)};
EW9=function(D,t){D=Dh8(t,D.endpointMap);if(D!==void 0)return Promise.resolve(D)};
kRn=function(D,t){var H,e,V,b;return _.Z(function(a){if(a.nextAddress==1){V=(H=D)==null?void 0:(e=H.authStrategy)==null?void 0:e.sessionIndex;var w=a.yield;var h=_.Tf(dFA({sessionIndex:V}));return w.call(a,h,2)}b=a.yieldResult;return a.return(Promise.resolve(Object.assign({},t6$(t),b)))})};
N$m=function(D,t){var H;D=D==null?void 0:(H=D.authStrategy)==null?void 0:H.sessionIndex;H=dFA({sessionIndex:D});return Object.assign({},t6$(t),H)};var $qf,iDn,rNa,ODa,Uq3,oUV,CW3,mqv,Kc,MhB,S$6,nUm,XE4;$qf=0;iDn=/tone[1-5]/;rNa=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");ODa="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
Uq3=Number.MAX_SAFE_INTEGER;oUV=RegExp("\ufe0f","g");_.GG=function(D){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;D&&_.PWf(this,D)};
_.PWf=function(D,t){try{_.cY(t,{context:D,onSuccess:function(e,V){Array.isArray(V)?D.load(V):(e=new _.nZ("Emoji manager JSON response was not an array!",{response:V}),_.gT(e))},
onError:function(e){e=new _.nZ("Failed to retrieve emoji manager initial JSON data!",{url:t,statusCode:_.Ea(e).toString()});_.Yw(e)}})}catch(e){var H=new _.nZ("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:t});
_.Yw(H)}};
_.GG.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.GG.prototype.load=function(D,t){if(t)if(D.length)D=D.concat(t.emojis);else{this.emojis=t.emojis;this.emojiMap=t.emojiMap;this.emojiShortcutMap=t.emojiShortcutMap;this.emojiShortcutCharMap=nUm(t);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=t.emojiRegex;return}this.emojis=[].concat(_.A6(new Set(this.emojis.concat(D))));this.hasInitializedShortcutCharMap=!1;D=Array(this.emojis.length);for(t=0;t<this.emojis.length;t++){var H=this.emojis[t];if(H.emojiId){this.emojiMap[H.emojiId]=H;this.emojiMap[H.emojiId].index=
t;for(var e=0;H.shortcuts&&e<H.shortcuts.length;e++)this.emojiShortcutMap[H.shortcuts[e].toLocaleLowerCase()]=H;D[t]=H.isCustomEmoji&&H.shortcuts?H.shortcuts[0]:H.emojiId}}D.sort(function(V,b){return b.length-V.length});
if(D.length)try{this.emojiRegex=new RegExp(D.join("|").replace("*","\\*"),"gi")}catch(V){this.emojiRegex=/$./}else this.emojiRegex=/$./};
CW3=function(D,t){t=_.F(t);for(var H=t.next();!H.done;H=t.next()){var e=H.value;if(e.emojiId&&D.emojiMap[e.emojiId]){H=Object.assign({},D.emojiMap[e.emojiId],e);D.emojiMap[e.emojiId]=H;var V=void 0;H.index&&((V=D.emojis[H.index])==null?void 0:V.emojiId)===e.emojiId&&(D.emojis[H.index]=H);e=void 0;if((e=H.shortcuts)==null?0:e.length)for(D.hasInitializedShortcutCharMap=!1,e=_.F(H.shortcuts),V=e.next();!V.done;V=e.next())D.emojiShortcutMap[V.value.toLocaleLowerCase()]=H}}};
mqv=function(D){var t,H;_.Z(function(e){if(e.nextAddress==1)return e.yield(_.z6.getInstance(),2);if(e.nextAddress!=3)return(t=e.yieldResult)?e.yield(t.get("ytlc-emoji-pref"),3):e.return();(H=e.yieldResult)&&CW3(D,Object.keys(H).map(function(V){return{emojiId:V,stickyPrefId:H[V]}}).filter(function(V){return!!V.emojiId&&!!V.stickyPrefId}));
_.n2(e)})};
_.Ed=function(D,t,H){return(D=D.emojiMap[t])&&(!D.isLocked||H!==void 0&&H)?D:void 0};
Kc=function(D,t,H){H=_.Ed(D,t,H===void 0?!1:H);var e=t.match("\u200d");H&&D.skinTone!==0&&(D=(e==null?void 0:e.length)===1?_.Ed(D,t.replace("\u200d",rNa[D.skinTone]+"\u200d")):_.Ed(D,t+rNa[D.skinTone]))&&(H=D);return H};
MhB=function(D,t){var H=D.emojiMap[t];return(H==null?0:H.stickyPrefId)?D.emojiMap[H.stickyPrefId]:Kc(D,t)};
_.hl=function(D,t){D=D.emojiShortcutMap[t.toLocaleLowerCase()];return!D||D.isLocked?null:D};
S$6=function(D,t,H){return nUm(D,H===void 0?!1:H)[t]||{}};
nUm=function(D,t){t=t===void 0?!1:t;if(!D.hasInitializedShortcutCharMap){D.hasInitializedShortcutCharMap=!0;for(var H=0;H<D.emojis.length;H++){var e=D.emojis[H];if(!(e.isLocked||t&&e.isCustomEmoji&&e.emojiId&&!D.pickerCustomEmojiIds.includes(e.emojiId)))for(var V=0;e.shortcuts&&V<e.shortcuts.length;V++){var b=e.shortcuts[V];b.startsWith(":_")&&e.isCustomEmoji&&(D.emojiShortcutCharMap[":_"]==null&&(D.emojiShortcutCharMap[":_"]=Object.create(null)),D.emojiShortcutCharMap[":_"][b]=e);if(!(b.length<3||
!e.isCustomEmoji&&iDn.test(b))){var a=b.substr(0,3).toLocaleLowerCase();D.emojiShortcutCharMap[a]==null&&(D.emojiShortcutCharMap[a]=Object.create(null));D.emojiShortcutCharMap[a][b]=e}}}}return D.emojiShortcutCharMap};
_.GG.prototype.createEmoji=function(D,t){t=t===void 0?!0:t;var H=document.createElement("img");D.isCustomEmoji||H.classList.add("small-emoji");H.classList.add("emoji");H.classList.add("yt-formatted-string");H.src=D.image?_.G3(D.image.thumbnails,this.emojiSize)||"":"";var e=void 0;D.image&&D.image.accessibility&&D.image.accessibility.accessibilityData&&(e=D.image.accessibility.accessibilityData.label);H.alt=e?e:(D.isCustomEmoji&&D.shortcuts?D.shortcuts[0]:D.emojiId)||"";D.isCustomEmoji&&(H.dataset.emojiId=
D.emojiId);_.Et&&(H.setAttribute("contenteditable","false"),H.setAttribute("unselectable","on"));t&&(D.shortcuts&&D.shortcuts.length&&H.setAttribute("shared-tooltip-text",D.shortcuts[0]),H.id="emoji-"+$qf++);return H};
_.GG.prototype.createDocumentFragment=function(D,t,H,e){t=t===void 0?!1:t;H=H===void 0?!0:H;e=e===void 0?!1:e;D=D.replace(oUV,"");for(var V=document.createDocumentFragment(),b=0,a,w=0;(a=this.emojiRegex.exec(D))!=null;){var h=_.Ed(this,a[0])||_.hl(this,a[0]);!h||h.isCustomEmoji&&!t||(h=this.createEmoji(h,H),b!==a.index&&V.appendChild(document.createTextNode(D.substring(b,a.index))),V.appendChild(h),b=a.index+a[0].length,w++)}if(!e||w)return V.appendChild(document.createTextNode(D.substr(b))),V};
XE4=function(D,t,H){var e,V,b,a,w,h,K,N,k;return _.Z(function(T){if(T.nextAddress==1){if(!t.emojiId||!D.emojiMap[t.emojiId])return T.return();e=Object.assign({},D.emojiMap[t.emojiId],{stickyPrefId:H});D.emojiMap[t.emojiId]=e;t.index&&((V=D.emojis[t.index])==null?void 0:V.emojiId)===t.emojiId&&(D.emojis[t.index]=e);if((b=t.shortcuts)==null?0:b.length)for(D.hasInitializedShortcutCharMap=!1,a=_.F(t.shortcuts),w=a.next();!w.done;w=a.next())h=w.value,D.emojiShortcutMap[h.toLocaleLowerCase()]=e;return T.yield(_.z6.getInstance(),
2)}if(T.nextAddress!=4)return(K=T.yieldResult)?T.yield(K.get("ytlc-emoji-pref"),4):T.jumpTo(0);k=(N=T.yieldResult)!=null?N:{};k[t.emojiId]=H;return T.yield(K.set("ytlc-emoji-pref",k,Uq3),0)})};
_.ND=new _.GG;var ANB;_.kT={};
ANB={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.r("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:_.r("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 tG(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 D=_.Kg(this.hostElement||this).querySelector("#inline-action-button-container");D&&D.setAttribute("aria-hidden","true");this.menuButton=_.Kg(this.hostElement).querySelector("#menu-button")},
attached:function(){var D=this.menuButton;D&&(D.addEventListener("focusin",_.iK(this,this.onMenuButtonFocus_)),D.addEventListener("focusout",_.iK(this,this.onMenuButtonBlur_)))},
detached:function(){var D=this.menuButton;D&&(D.removeEventListener("focusin",_.iK(this,this.onMenuButtonFocus_)),D.removeEventListener("focusout",_.iK(this,this.onMenuButtonBlur_)))},
identity:_.AT,truthy:function(D){return!!D},
computeTimestampString:function(D){return D?D.timestampText?this.getSimpleString(D.timestampText):this.TIME_FORMATTER.format(new Date(D.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(D){return D},
computeMenuVisible_:function(D,t){return D||t},
computeHasInlineActionButtons:function(D){if(!D)return!1;var t,H;return!((t=D.inlineActionButtons)==null||!t.length)||!((H=D.additionalInlineActionButtons)==null||!H.length)},
createDocumentFragmentFromString:function(D){var t=_.ND.createDocumentFragment.bind(_.ND),H;if((H=this.participantsManager)==null||!H.viewerRegex)return t(D);H=document.createDocumentFragment();for(var e=0,V;(V=this.participantsManager.viewerRegex.exec(D))!=null;){if(V.index>0){var b=":"+V[0]+":";if((_.Ed(_.ND,b)||_.hl(_.ND,b))&&D.indexOf(b)===V.index-1)continue}H.appendChild(t(D.substring(e,V.index)));e=document.createElement("span");e.appendChild(t(V[0]));e.classList.add("mention");H.appendChild(e);
e=V.index+V[0].length}H.appendChild(t(D.substring(e)));return H},
createDocumentFragment:function(D){var t=document.createDocumentFragment();if(D.simpleText)return t.appendChild(this.createDocumentFragmentFromString(D.simpleText)),t;if(!D.runs)return t;for(var H=0;H<D.runs.length;H++){var e=D.runs[H];if(e.emoji)t.appendChild(_.ND.createEmoji(e.emoji));else if(e.text)if(e.navigationEndpoint){var V=document.createElement("a");V.classList.add("yt-simple-endpoint");wm6(V,e.navigationEndpoint);_.Kg(V).appendChild(this.createDocumentFragmentFromString(e.text));t.appendChild(V)}else t.appendChild(this.createDocumentFragmentFromString(e.text))}return t},
hasModerationOverlayVisible:function(){var D;return((D=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:D.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(D){D.composedPath().some(function(t){return(t=t instanceof Element?t:null)?t.tagName&&(t.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||t.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.r("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(D)},
colorFromDecimal:function(D){return AP3(D)},
markAsDeleted:function(D,t){this.set("data.deletedStateMessage",D);this.set("data.showOriginalContentMessage",t)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(D){if(this.data.contextMenuEndpoint){var t=_.qS().resolve(_.dn),H=this.data.contextMenuEndpoint,e;(e=_.QL.instance)&&_.yL(e,H)?(t=fWn(t,H),e=_.sK(e,{},t)):e=_.L73(t,H);e.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);D&&D.stopPropagation()}},
handleGetContextMenuResponse_:function(D){var t=_.QL.instance;t&&_.yL(t,{liveChatEndpoint:{}})||(D=D.response);D.liveChatItemContextMenuSupportedRenderers&&D.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(D.liveChatItemContextMenuSupportedRenderers.menuRenderer);D.actions&&_.ET(this.hostElement,"yt-live-chat-actions",[D.actions])},
handleGetContextMenuError:function(D){if(D instanceof Error||D instanceof Object||D instanceof String)var t=D;_.gT(new _.nZ("Error encountered calling GetLiveChatItemContextMenu",t))},
showContextMenu_:function(D){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:D}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Gf(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Gf(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.kT.YtLiveChatItemBehavior=[ANB,_.Eg.YtComponentBehavior,_.vP.YtOpenPopupBehavior];_.TG=function(){};var gUo;var JNa;var Y$B;var lWQ;var cw=function(){var D=_.X.apply(this,arguments)||this;D.active=!1;D.identity=_.AT;return D};
_.P(cw,_.X);cw.prototype.dataChanged=function(){this.active=!1};
cw.prototype.onClick=function(){_.Gf(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
cw.prototype.dataChanged=cw.prototype.dataChanged;_.d([_.M(),_.x("design:type",Object)],cw.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],cw.prototype,"active",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cw.prototype,"dataChanged",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],cw);
_.p(cw,"yt-live-chat-text-input-field-suggestion",function(){if(lWQ===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;Y$B===void 0&&(Y$B=document.createElement("template"));var e=Y$B;H.call(t,e.content.cloneNode(!0),D.content.firstChild);lWQ=D}D=lWQ;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});_.jX=function(D,t,H){return CustomEvent.call(this,D,{detail:{value:t,path:H}})||this};
_.P(_.jX,CustomEvent);_.$T=function(){var D=_.X.apply(this,arguments)||this;D.viewerName=null;D.actionMap={"yt-live-chat-actions":"onChatMessage_"};D.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];D.PARTICIPANT_TIME_USEC_=3E8;return D};
_.P(_.$T,_.X);_.q=_.$T.prototype;_.q.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.q.addParticipant=function(D){var t=_.ATk(this.participants,D,function(e,V){e=e[Object.keys(e)[0]];V=V[Object.keys(V)[0]];e=String(_.eo(e.authorName)).toLowerCase();V=String(_.eo(V.authorName)).toLowerCase();return e<V?-1:e==V?0:1}.bind(this));
if(t>=0){var H=this.participants[t];H[Object.keys(H)[0]].timestampUsec&&this.splice("participants",t,1,D)}else this.splice("participants",-t-1,0,D);D=D[Object.keys(D)[0]];t=_.eo(D.authorName).toLocaleLowerCase();H=t.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(H)||(this.allParticipantsCharMap_[H]={});this.allParticipantsCharMap_[H][t]=D};
_.q.getAuthorsFromPrefix=function(D){return this.allParticipantsCharMap_.hasOwnProperty(D)?this.allParticipantsCharMap_[D]:null};
_.q.computeViewerRegex_=function(D){if(!D)return null;D=D.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var t=D.indexOf("@")===0&&_.r("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(t+D.replace(/ /g,"\\s*")+"|^"+D.replace(/ /g,"\\s*")+"$|^"+D.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+D.replace(/ /g,"\\s*")+"$|(?<=\\s)"+D.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.q.checkForStaleParticipants_=function(){var D=this;this.trimOldParticipants_();this.asyncHandle_&&wsT(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.BT(function(){D.checkForStaleParticipants_()},3E4))};
_.q.onChatMessage_=function(D){var t=this,H=Date.now()*1E3;D.forEach(function(e){if(e=_.O(e,EZV)){e=e.item;var V=Object.keys(e)[0];t.SUPPORTED_ITEM_TYPES_.indexOf(V)!=-1&&e[V].timestampUsec>=H-t.PARTICIPANT_TIME_USEC_&&t.addParticipant(e)}},this);
this.checkForStaleParticipants_()};
_.q.trimOldParticipants_=function(){for(var D=Date.now()*1E3,t=this.participants.length-1;t>=0;t--){var H=this.participants[t];H=H[Object.keys(H)[0]];H.timestampUsec&&H.timestampUsec<D-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",t,1)}};
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],_.$T.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],_.$T.prototype,"viewerName",void 0);_.d([_.M({computed:"computeViewerRegex_(viewerName)"}),_.x("design:type",Object)],_.$T.prototype,"viewerRegex",void 0);_.d([_.M({value:function(){return[]},
notify:!0}),_.x("design:type",Array)],_.$T.prototype,"participants",void 0);_.d([_.xL({is:"yt-live-chat-participants-manager",noInjection:!0})],_.$T);var vUf=/.*([:@#].*?)$/,iP=/\u00a0/g,pEB=String.fromCharCode(160),dqQ={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"},rB=function(){var D=_.X.apply(this,arguments)||this;D.disabled=!1;D.liveChatRichMessageInput=null;D.messageInput=null;D.isValidWithNoInputText=!1;D.suggestions=[];D.emojiManager=_.ND;D.inputMethodEditorActive=
!1;D.suggestionIndex=-1;D.JSC$14116_lastSuggestionRange=null;return D};
_.P(rB,_.X);_.q=rB.prototype;_.q.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.q.attached=function(){_.Ka&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.q.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.q.dataChanged=function(){if(!this.ignoreColorMapping){var D=!1,t={},H;for(H in dqQ)this.data&&this.data.hasOwnProperty(H)&&(t[dqQ[H]]=this.colorFromDecimal(this.data[H]),D=!0);D&&_.jZ(this.hostElement,t)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.q.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.q.colorFromDecimal=function(D){D=Math.floor(Number(D));return"rgba("+[D>>16&255,D>>8&255,D&255,(D>>24&255)/255].join()+")"};
_.q.preventDrag=function(D){D.dataTransfer&&(D.dataTransfer.dropEffect="none");D.preventDefault()};
_.q.preventResize=function(D){D.returnValue=!1};
_.q.onInputChange=function(){var D=this.characterCount,t=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&t&&t.remove();if(!t&&this.characterCount>this.maxCharacterLimit){var H=window.getSelection();if(H){var e=H.getRangeAt(0);H.removeAllRanges();H.addRange(e)}}if(H=this.getCurrentRange())e=this.calculateTextBeforeRange(H),this.completeEmojisInRange(H,e,!0)||this.updateSuggestions(H,e);e=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(e);
_.Gf(this.hostElement,"yt-live-chat-message-input-change",e);t&&this.characterCount===0&&t.remove();H&&H.commonAncestorContainer.parentElement.id==="input"&&H.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>D):H&&!H.collapsed&&H.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(D=this.input.childNodes.length-1;D>=0;D--)this.input.childNodes[D].nodeName==="BR"&&this.input.childNodes[D].remove()};
_.q.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.q.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var D=this.getCurrentRange();D&&D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.q.mergeOverflowText=function(D){if(D){var t=document.createRange();t.selectNodeContents(D);t=t.extractContents();this.input.insertBefore(t,D)}};
_.q.checkRangeAtEndOfInput=function(){var D=this.getCurrentRange();if(D){var t=_.Kg(this.hostElement).querySelector("#overflow-text"),H=document.createRange();t&&t.previousSibling?t.previousSibling instanceof HTMLImageElement?H.selectNode(t.previousSibling):H.selectNodeContents(t.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?H.selectNode(this.input.lastChild):H.selectNodeContents(this.input.lastChild));H.collapse(!1);return H.isPointInRange(D.startContainer,
D.startOffset)}return!1};
_.q.handleOverflowText=function(D){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var t=_.Kg(this.hostElement).querySelector("#overflow-text"),H=this.getCurrentRange();this.input.normalize();D=this.checkRangeAtEndOfInput()&&D;this.mergeOverflowText(t);for(var e,V=0,b=0,a,w=this.input.childNodes,h=0;h<w.length;h++){var K=w[h];K instanceof Text?(b+=K.textContent.length,b>this.maxCharacterLimit&&(e=K,V=this.maxCharacterLimit+K.textContent.length-b)):K instanceof HTMLImageElement&&
(e=void 0,b=K.dataset.emojiId&&((e=this.data)==null?0:e.emojiCharacterCount)?b+this.data.emojiCharacterCount:b+K.alt.length,e=this.input,V=h);if(b>this.maxCharacterLimit&&e){a=document.createRange();a.collapse(!1);t?(b=this.input.lastChild.previousSibling,b instanceof Text?a.setEnd(this.input.lastChild.previousSibling,b.textContent.length):b instanceof HTMLImageElement&&a.setEnd(this.input,this.input.childNodes.length-1)):a.selectNodeContents(this.input);a.setStart(e,V);break}}a&&(e=!1,H&&(D=a.isPointInRange(H.startContainer,
H.startOffset-1)),t||(t=document.createElement("span"),t.id="overflow-text",t.textContent="",t.setAttribute("contenteditable","true"),_.Kg(_.Kg(this.hostElement).querySelector("#input")).appendChild(t),e=!0),t&&(H=a.extractContents(),t.insertBefore(H,t.firstChild),D&&t.firstChild&&(H=document.createRange(),e?H.setStartAfter(t.lastChild):H.setStartAfter(t.firstChild),H.collapse(!0),t=window.getSelection(),t.removeAllRanges(),t.addRange(H))))}};
_.q.checkForDuplicateSpans=function(){for(var D=0;D<this.input.childNodes.length;D++){var t=this.input.childNodes[D];if(t.nodeName==="SPAN"){var H=document.createRange();H.selectNodeContents(t);H=H.extractContents();this.input.insertBefore(H,t);t.remove()}}this.handleOverflowText(!0)};
_.q.getCurrentRange=function(){var D=window.getSelection();return D&&D.rangeCount?D.getRangeAt(0).cloneRange():null};
_.q.getInputRange=function(){var D=this.getCurrentRange();if(D){for(var t=D.commonAncestorContainer,H=!1,e=_.Kg(this.hostElement).querySelector("#input");t;){if(t===e){H=!0;break}t=t.parentNode}H||(D=null)}D||(D=this.getRangeAtEnd());return D};
_.q.getRangeAtEnd=function(){var D=document.createRange(),t=_.Kg(this.hostElement).querySelector("#input").lastChild;!t||t.nodeName!=="#text"&&t.nodeName!=="SPAN"?(D.selectNodeContents(_.Kg(this.hostElement).querySelector("#input")),D.collapse(!1)):t.nodeName==="#text"?D.setStart(t,t.textContent.length):D.setStart(t,t.childNodes.length);return D};
_.q.getChatParticipantSuggestions=function(D,t,H,e){var V=_.r("live_chat_enable_handles_web_text_input_update");if(t)for(var b in t)if(b.indexOf(D)===0||V&&b.indexOf(H+D)===0){var a=t[b],w=_.eo(a.authorName);e.push({suggestion:{author:!0,authorType:H,image:a.authorPhoto,alt:w,text:w}});if(e.length>=64)break}};
_.q.getSuggestions=function(D){var t=[],H=D.substring(0,3),e=S$6(_.ND,H,!0);if(e)for(var V in e)if(V.toLocaleLowerCase().indexOf(D)===0){var b=e[V];if(b&&b.emojiId){if(b=MhB(_.ND,b.emojiId)){var a=void 0,w=void 0,h=void 0,K=void 0,N=((a=b.image)==null?0:(w=a.accessibility)==null?0:(h=w.accessibilityData)==null?0:h.label)||b.isCustomEmoji?(K=b.shortcuts)==null?void 0:K[0]:b.emojiId;t.push({suggestion:{emoji:!0,image:b.image,alt:N,text:V,textToInsertWhenSelected:b.isCustomEmoji?V:N}})}if(t.length>=
64)break}}if(!this.participantsManager)return null;if(H.indexOf("@")===0||H.indexOf("#")===0)e=H.charAt(0),D=D.substring(1),V=_.r("live_chat_enable_handles_web_text_input_update"),H.indexOf("@")===0&&V&&(V=this.participantsManager.getAuthorsFromPrefix(H.substring(0,2)),this.getChatParticipantSuggestions(D,V,e,t)),H=H.substring(1),H=this.participantsManager.getAuthorsFromPrefix(H),this.getChatParticipantSuggestions(D,H,e,t);return t?t.sort(function(k,T){return T.suggestion.text<k.suggestion.text?-1:
T.suggestion.text===k.suggestion.text?0:1}):null};
_.q.insertSuggestion=function(D){var t=_.r("live_chat_enable_handles_web_text_input_update"),H=D.authorType;t=D.text.indexOf(H)===0&&t?D.text+pEB:H+D.text+pEB;D.emoji?this.insertTextAtRange(this.JSC$14116_lastSuggestionRange,D.textToInsertWhenSelected||""):D.author&&this.insertTextAtRange(this.JSC$14116_lastSuggestionRange,t)};
_.q.updateSuggestionsAtCaret=function(){var D=this.getCurrentRange();D&&this.updateSuggestions(D,this.calculateTextBeforeRange(D))};
_.q.offsetStartOfRangeBy=function(D,t){for(;t>0;)if(D.startOffset-t>=0){D.setStart(D.startContainer,D.startOffset-t);break}else{t=D.startContainer instanceof HTMLImageElement?t-D.startContainer.alt.length:t-D.startOffset;var H=D.startContainer.previousSibling;if(!H){D.setStart(D.startContainer,0);break}if(_.r("live_chat_require_space_for_autocomplete_emoji")){var e=void 0,V=void 0;D.setStart(H,((e=H)==null?void 0:(V=e.textContent)==null?void 0:V.length)||0)}else D.setStart(H,H.childNodes.length||
0)}};
_.q.updateSuggestions=function(D,t){var H=this;this.JSC$14116_lastSuggestionRange&&(this.JSC$14116_lastSuggestionRange.detach(),this.JSC$14116_lastSuggestionRange=null);if((t=vUf.exec(t))&&t.length&&(t=t[t.length-1].toLocaleLowerCase(),t.length>2&&(this.offsetStartOfRangeBy(D,t.length),this.JSC$14116_lastSuggestionRange=D,(D=this.getSuggestions(t))&&D.length))){this.suggestions=D;_.Vi(this,function(){_.Kg(H.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(D.length-1);return}this.dropdown.opened=!1};
_.q.completeEmojisInRange=function(D,t,H){var e=t.replace(/[\s\xa0]+$/,"");t=t.length-e.length;e=e.split(" ");e=e[e.length-1].trim().toLocaleLowerCase();var V=e.lastIndexOf(":");if(H&&!t&&V!==e.length-1)return!1;V!==-1&&(H=e.lastIndexOf(":",V-1),H!==-1&&(e=e.substring(H)));if((H=_.hl(_.ND,e))&&H.emojiId){H=MhB(_.ND,H.emojiId)||null;this.offsetStartOfRangeBy(D,e.length+t);var b,a,w,h;e=(((b=H)==null?0:b.isCustomEmoji)?(a=H)==null?void 0:(w=a.shortcuts)==null?void 0:w[0]:(h=H)==null?void 0:h.emojiId)||
"";t&&(e+=pEB);this.insertTextAtRange(D,e);this.dropdown.opened=!1;return!0}return!1};
_.q.onSuggestion=function(D){this.insertSuggestion(D.detail);this.dropdown.opened=!1};
_.q.onKeyPress=function(D){D.keyCode===13&&(D.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Gf(this.hostElement,"yt-live-chat-send-message"))};
_.q.completeEmojis=function(){var D=document.createRange(),t=_.Kg(this.hostElement).querySelector("#input").lastChild;t?D.setStart(t,t.childNodes.length):(D.selectNodeContents(_.Kg(this.hostElement).querySelector("#input")),D.collapse(!1));this.completeEmojisInRange(D,this.calculateTextBeforeRange(D),_.r("live_chat_require_space_for_autocomplete_emoji"))};
_.q.maybePreventTextFormatting=function(D){!_.cg||!D.ctrlKey&&!D.metaKey||D.keyCode!==66&&D.keyCode!==73||(D.stopImmediatePropagation(),D.preventDefault())};
_.q.onKeyDown=function(D){this.maybePreventTextFormatting(D);if(this.dropdown.opened)switch(D.keyCode){case 27:this.dropdown.opened=!1;D.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;D.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);D.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),D.preventDefault()}};
_.q.onKeyUp=function(D){switch(D.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Et)this.onInputChange()};
_.q.changeSuggestionIndex=function(D){if(this.dropdown.opened){var t=_.Kg(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<t.children.length&&(t.children[this.suggestionIndex].active=!1);var H=this.suggestions.length;this.suggestionIndex=(D+H)%H;D=t.children[this.suggestionIndex];D.active=!0;t.scrollTop=D.offsetTop}};
_.q.onInputPaste=function(D){D.preventDefault();(D=D.clipboardData)&&D.types&&(D=D.getData("text/plain")||"",D=D.replace(/\n/g,""),this.insertText(D));(D=this.getCurrentRange())&&D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.q.onFocus=function(){this._setFocused(!0)};
_.q.onBlur=function(){this._setFocused(!1)};
_.q.insertText=function(D){this.insertTextAtRange(this.getInputRange(),D)};
_.q.insertTextAtRange=function(D,t){if(D&&(D.collapsed||D.deleteContents(),t=_.ND.createDocumentFragment(t,!0,!1))){for(var H=_.F((t==null?void 0:t.childNodes)||[]),e=H.next();!e.done;e=H.next()){e=e.value;var V=void 0,b=void 0,a=void 0,w=void 0,h=void 0;(a=(V=window)==null?void 0:(b=V.ShadyCSS)==null?void 0:b.ScopingShim)==null||(h=(w=a).scopeNode)==null||h.call(w,e,this.hostElement.localName)}H=t.lastChild;D.insertNode(t);this.focused||this.input.focus();if(this.focused){D=D.cloneRange();D.selectNodeContents(H);
D.collapse(!1);if(t=window.getSelection())t.removeAllRanges(),t.addRange(D);D.commonAncestorContainer.parentElement.id==="input"&&D.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}D=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(D);_.Gf(this.hostElement,"yt-live-chat-message-input-change",D)}};
_.q.setLiveChatRichMessageInput=function(D){_.Kg(_.Kg(this.hostElement).querySelector("#input")).textContent="";if(D&&D.textSegments){for(var t=0;t<D.textSegments.length;t++){var H=D.textSegments[t];H.text?_.Kg(_.Kg(this.hostElement).querySelector("#input")).appendChild(_.ND.createDocumentFragment(H.text,!0,!1)):H.emojiId&&(H=_.Ed(_.ND,H.emojiId))&&_.Kg(_.Kg(this.hostElement).querySelector("#input")).appendChild(_.ND.createEmoji(H,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.q.setText=function(D){this.setLiveChatRichMessageInput(D?{textSegments:[{text:D}]}:null)};
_.q.calculateTextBeforeRange=function(D){var t="",H=D.startContainer;if(H&&H instanceof Text){var e;t=((e=H.textContent)==null?void 0:e.substring(0,D.startOffset))||"";H=H.previousSibling}for(;H&&H instanceof Text;)t=H.textContent+t,H=H.previousSibling;return t.replace(iP," ")};
_.q.calculateLiveChatRichMessageInput=function(){for(var D=[],t="",H=_.Kg(_.Kg(this.hostElement).querySelector("#input")).childNodes,e=0;e<H.length;e++){var V=H[e];V instanceof Text?t+=V.textContent:V instanceof HTMLImageElement&&(V.dataset.emojiId?(t&&(D.push({text:t.replace(iP," ")}),t=""),D.push({emojiId:V.dataset.emojiId})):t+=V.alt)}t&&D.push({text:t.replace(iP," ")});if(H=_.Kg(this.hostElement).querySelector("#overflow-text")){t="";H=H.childNodes;for(e=0;e<H.length;e++)V=H[e],V instanceof Text?
t+=V.textContent:V instanceof HTMLImageElement&&(V.dataset.emojiId?(t&&(D.push({text:t.replace(iP," ")}),t=""),D.push({emojiId:V.dataset.emojiId})):t+=V.alt);t&&D.push({text:t.replace(iP," ")})}return{textSegments:D}};
_.q.computeCharacterCount=function(D){if(!D||!D.textSegments)return 0;for(var t=0,H=0;H<D.textSegments.length;H++){var e=D.textSegments[H];if(e.text)t+=e.text.length;else if(e.emojiId){var V=void 0;if((V=this.data)==null?0:V.emojiCharacterCount)t+=this.data.emojiCharacterCount;else{var b=V=void 0,a=void 0;t+=((b=_.Ed(_.ND,(V=e)==null?void 0:V.emojiId))==null?void 0:(a=b.shortcuts)==null?void 0:a[0].length)||0}}}return t};
_.q.characterCountChanged=function(){_.Gf(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.q.focusedChanged=function(){this.hostElement.dispatchEvent(new _.jX("focused-changed",this.focused))};
_.q.focus=function(){this.setFocus(!1)};
_.q.focusAtEnd=function(){this.setFocus(!0)};
_.q.setFocus=function(D){D=D?this.getRangeAtEnd():this.getInputRange();_.Kg(this.hostElement).querySelector("#input").focus();var t=window.getSelection();t&&(t.removeAllRanges(),t.addRange(D))};
_.q.insertEmoji=function(D){var t,H=((D==null?0:D.isCustomEmoji)?(t=D.shortcuts)==null?void 0:t[0]:D==null?void 0:D.emojiId)||"";this.insertText(H)};
_.q.computeText=function(D){if(!D||!D.textSegments)return"";for(var t="",H=0;H<D.textSegments.length;H++){var e=D.textSegments[H];if(e.text)t+=e.text;else if(e.emojiId){var V=void 0,b=void 0,a=void 0;t+=((b=_.Ed(_.ND,(V=e)==null?void 0:V.emojiId))==null?void 0:(a=b.shortcuts)==null?void 0:a[0])||""}}return t};
_.q.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.ql.Object.defineProperties(rB.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.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}}});
rB.prototype.focusedChanged=rB.prototype.focusedChanged;rB.prototype.characterCountChanged=rB.prototype.characterCountChanged;rB.prototype.onSuggestion=rB.prototype.onSuggestion;rB.prototype.onMessageSet=rB.prototype.onMessageSet;rB.prototype.dataChanged=rB.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],rB.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],rB.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],rB.prototype,"disabled",void 0);_.d([_.m("disabled"),_.x("design:type",Number),_.x("design:paramtypes",[])],rB.prototype,"inputTabIndex",null);_.d([_.m("data.maxCharacterLimit"),_.M({readOnly:!0,notify:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],rB.prototype,"maxCharacterLimit",null);
_.d([_.m("liveChatRichMessageInput"),_.M({readOnly:!0,notify:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],rB.prototype,"characterCount",null);_.d([_.m("maxCharacterLimit, characterCount"),_.M({readOnly:!0,notify:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],rB.prototype,"remainingCharacterCount",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],rB.prototype,"isChatMessageInput",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],rB.prototype,"inputExpanded",void 0);_.d([_.M({readOnly:!0,notify:!0}),_.x("design:type",Object)],rB.prototype,"liveChatRichMessageInput",void 0);_.d([_.M(),_.x("design:type",Object)],rB.prototype,"messageInput",void 0);_.d([_.M(),_.x("design:type",Boolean)],rB.prototype,"ignoreColorMapping",void 0);_.d([_.m("characterCount"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rB.prototype,"hasText",null);
_.d([_.M(),_.x("design:type",Object)],rB.prototype,"isValidWithNoInputText",void 0);_.d([_.m("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.M(),_.x("design:type",Boolean),_.x("design:paramtypes",[])],rB.prototype,"isInputValid",null);_.d([_.M({readOnly:!0,value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],rB.prototype,"focused",void 0);_.d([_.M(),_.x("design:type",Array)],rB.prototype,"suggestions",void 0);
_.d([_.M(),_.x("design:type",_.GG)],rB.prototype,"emojiManager",void 0);_.d([_.M(),_.x("design:type",_.$T)],rB.prototype,"participantsManager",void 0);_.d([_.M(),_.x("design:type",Boolean)],rB.prototype,"noUnderline",void 0);_.d([_.M(),_.x("design:type",Object)],rB.prototype,"inputMethodEditorActive",void 0);_.d([_.o5("#dropdown"),_.x("design:type",Object)],rB.prototype,"dropdown",void 0);_.d([_.o5("#input"),_.x("design:type",HTMLElement)],rB.prototype,"input",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rB.prototype,"dataChanged",null);_.d([_.Os("messageInput"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rB.prototype,"onMessageSet",null);_.d([_.rx("yt-live-chat-select-suggestion"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],rB.prototype,"onSuggestion",null);
_.d([_.Os("characterCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rB.prototype,"characterCountChanged",null);_.d([_.Os("focused"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rB.prototype,"focusedChanged",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],rB);
_.xq3=_.p(rB,"yt-live-chat-text-input-field-renderer",function(){if(JNa===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;gUo===void 0&&(gUo=document.createElement("template"));var e=gUo;H.call(t,e.content.cloneNode(!0),D.content.firstChild);JNa=D}D=JNa;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Od=function(){var D=_.X.apply(this,arguments)||this;D.buttonOverrides={style:"overlay",type:"filled"};D.allowAnimations=!1;D.modern=_.r("web_button_rework_with_live");D.noPadding=!1;return D};
_.P(Od,_.X);_.q=Od.prototype;_.q.shouldSupportInlineActionButtons=function(){return!0};
_.q.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"}}}}};
_.q.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.q.attached=function(){this.allowAnimations=!1};
_.q.dataChanged=function(){if(this.data){var D={"--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)};_.jZ(this.hostElement,D);this.allowAnimations=!0}};
_.q.messageChanged=function(){var D,t=(D=this.data)==null?void 0:D.message;D=_.Kg(_.Kg(this.hostElement).querySelector("#message"));D.textContent="";t&&D.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(t))};
_.q.computeShowOnlyHeader=function(D,t){return!D||D.pdgLikeButton||D.replyButton||D.buyFlowButton?!1:this.isEmpty(D,t)&&!D.footer};
_.q.computeShowFooterDivider=function(D,t,H){return D?!!D.footer&&!this.isEmpty(D,t)&&!H:!1};
_.q.computeIsUserEditable=function(D){return!!D.inputField};
_.q.computeHasHeartButton=function(D){return(D==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(D==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(D==null?void 0:D.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.q.computeNoveltyImage=function(D){if(D.headerOverlayImage&&D.headerOverlayImage.thumbnails.length){var t=D.headerOverlayImage.thumbnails[0],H,e;if((H=D.pdgPurchasedNoveltyLoggingDirectives)==null?0:(e=H.loggingDirectives)==null?0:e.trackingParams){var V,b;DbA((V=D.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(b=V.loggingDirectives)==null?void 0:b.trackingParams)}return t.width||0}return 0};
_.q.computeAuthorPhotoSize=function(D){return(D==null?0:D.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.q.inputFocus=function(){var D=_.Kg(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");D&&D.focus()};
_.q.inputInsertEmoji=function(D){var t=_.Kg(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");t&&t.insertEmoji(D)};
_.q.inputMessage=function(){var D=_.Kg(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),t;return D&&((t=this.data)==null?0:t.inputField)?(D.completeEmojis(),_.ui(D.liveChatRichMessageInput)):null};
_.q.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.q.isEmpty=function(D,t){return D?D.empty||!(D.message||D.inputField||t):!0};
_.q.onLowerBuyButtonClick=function(){var D,t=_.O((D=this.data)==null?void 0:D.buyButton,_.aj);t&&t.trackingParams&&!JPR(t.command)&&(D=_.Sa(t.trackingParams))&&(t=_.v3())&&_.tV(t,D)};
_.q.shouldSupportWholeItemClick=function(){return!0};
_.ql.Object.defineProperties(Od.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Od.prototype.isDeletedChanged=Od.prototype.isDeletedChanged;Od.prototype.messageChanged=Od.prototype.messageChanged;Od.prototype.dataChanged=Od.prototype.dataChanged;_.d([_.C(cP4.YtPdgLiveChatItemBehavior),_.x("design:type",Object)],Od.prototype,"ytPdgLiveChatItemBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Od.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.hX),_.x("design:type",Object)],Od.prototype,"ytLiveChatReduxBehavior",void 0);
_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],Od.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Od.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Od.prototype,"data",void 0);_.d([_.M({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:B$8}),_.x("design:type",Object)],Od.prototype,"engagementState",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.x("design:type",Boolean)],Od.prototype,"isUserEditable",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.x("design:type",Boolean)],Od.prototype,"hasHeartButton",void 0);_.d([_.M({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Od.prototype,"showOnlyHeader",void 0);
_.d([_.M({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Od.prototype,"showFooterDivider",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Object)],Od.prototype,"allowAnimations",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Od.prototype,"dashboardMoneyFeed",void 0);_.d([_.M({computed:"computeNoveltyImage(data)"}),_.x("design:type",Number)],Od.prototype,"noveltyWidth",void 0);
_.d([_.M({computed:"computeAuthorPhotoSize(data)"}),_.x("design:type",Number)],Od.prototype,"authorPhotoSize",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Od.prototype,"modern",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Od.prototype,"noPadding",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Od.prototype,"dataChanged",null);
_.d([_.Os("data.message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Od.prototype,"messageChanged",null);_.d([_.m("data","dashboardMoneyFeed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Od.prototype,"hideLowerBumper",null);_.d([_.Os("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Od.prototype,"isDeletedChanged",null);
_.d([_.Y({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Od);
_.p(Od,"yt-live-chat-paid-message-renderer",function(){if(thn===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;DqB===void 0&&(DqB=document.createElement("template"));var e=DqB;H.call(t,e.content.cloneNode(!0),D.content.firstChild);thn=D}D=thn;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Rpf;var ueB;var Ud=function(){var D=_.ng.apply(this,arguments)||this;D._noAccessors=!0;return D};
_.P(Ud,_.ng);Ud.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.YC("openPopupConfig")};
_.d([_.C(_.vP.YtOpenPopupBehavior),_.x("design:type",Object)],Ud.prototype,"ytOpenPopupBehavior",void 0);_.d([_.Cg()],Ud);_.oy=[_.vP.YtOpenPopupBehavior,Ud.prototype];var W7f;var Dg=[_.UL,Wfn,_.b2,_.oh,_.Hh,_.NKa,_.C_,_.B3a,_.XC,$hX];_.r("web_watch_get_updated_metadata_response_processing")&&Dg.push(_.kim);_.r("web_continuation_response_processing")&&Dg.push(_.RH);var dRA=new _.kI("RESPONSE_RECEIVED_COMMANDS"),k8u=new _.kI("RESPONSE_RECEIVED_COMMANDS");var ZyD="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),wq8=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],aSR=["GET_UNSEEN_NOTIFICATION_COUNT"];var Pw=function(){var D=_.ng.apply(this,arguments)||this;D._noAccessors=!0;D.serviceEndpointHandlers=[];return D};
_.P(Pw,_.ng);Pw.prototype.created=function(){var D=this;this.endpointHandlerActionMap={"yt-service-request":function(t,H,e,V){var b;return FCu(D.hostElement,t,H,e,V,D.serviceEndpointHandlers,(b=D.onEntitiesUpdated)==null?void 0:b.bind(D))}}};
Pw.prototype.attached=function(){_.ya(_.Qa.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
Pw.prototype.detached=function(){_.B$(_.Qa.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.d([_.Cg()],Pw);_.IWf=[Pw.prototype];var Qaa,yNf=function(){return Qaa!==void 0?Qaa:Qaa=document.createElement("template")};
document.head.appendChild(yNf().content);var B$a;var zp3=document.head,DbV=zp3.appendChild,tsn;if(B$a===void 0){var HIn=document.createElement("template");_.n(HIn,"\x3c!--css-build:shady--\x3e");HIn.content.insertBefore(yNf().content.cloneNode(!0),HIn.content.firstChild);B$a=HIn}tsn=B$a;DbV.call(zp3,tsn.content);var e$a,VsB=function(){return e$a!==void 0?e$a:e$a=document.createElement("template")};
document.head.appendChild(VsB().content);var bIf;var qQV=document.head,FQ4=qQV.appendChild,aHf;if(bIf===void 0){var w4o=document.createElement("template");_.n(w4o,"\x3c!--css-build:shady--\x3e");w4o.content.insertBefore(VsB().content.cloneNode(!0),w4o.content.firstChild);bIf=w4o}aHf=bIf;FQ4.call(qQV,aHf.content);var ZI9;_.AB("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.AB("sharingRendererButtons","buttonRenderer","ytd-button-renderer");ZI9=_.r("web_button_rework")&&_.lh("BUTTON_REWORK")||_.r("web_button_rework_with_live");_.nc=function(){var D=_.X.apply(this,arguments)||this;D.isPressed=!1;D.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return D};
_.P(_.nc,_.X);_.q=_.nc.prototype;_.q.created=function(){this.showTooltips=!0};
_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.onHintIdChanged=function(){var D=this,t,H,e=(t=this.ytButtonBehavior.data)==null?void 0:(H=t.hint)==null?void 0:H.hintRenderer;if(e&&e.hintId){t=_.Kl(this.hostElement,"yt-get-opened-popups-action");t=(t&&t.length===1?t[0]:[]).length>0;var V=null;e.hintId!=="sponsor-pre-purchase"||t?e.hintId.startsWith("sponsor-post-purchase")&&!t?V=Aio("membership-manage"):e.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!t&&(V=Aio("membership-freebie-join")):V=Aio("membership-join");V&&_.Jy.addLowPriorityJob(function(){for(var b=
_.F(V),a=b.next();!a.done;a=b.next())D.ytComponentBehavior.resolveCommand(a.value)})}};
_.q.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.q.onYtNavigate=function(D){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);t&&(D.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(t))};
_.q.onYtServiceRequestSent=function(D,t){this.handleServiceRequestActions(t);_.Gf(this.hostElement,"yt-service-request-sent-button-renderer")};
_.q.onServiceRequestCompleted=function(D,t){this.handleServiceRequestActions(t);_.Gf(this.hostElement,"yt-service-request-completed-button-renderer")};
_.q.updateButton=function(D){var t;if(D=(t=_.O(D,JRf))==null?void 0:t.updatedButton)this.ytButtonBehavior.data=_.O(D,_.aj)};
_.q.handleUpdateButtonAction=function(D){var t=this.ytButtonBehavior.data;t.targetId&&D.updateButtonAction.targetId&&t.targetId===D.updateButtonAction.targetId&&this.updateButton(D)};
_.q.handleServiceRequestActions=function(D){if(D=D.actions)for(var t=0;t<D.length;t++)this.updateButton(D[t])};
_.ql.Object.defineProperties(_.nc,{template:{configurable:!0,enumerable:!0,get:function(){if(W7f===void 0){var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);W7f=D}D=W7f;return D}}});
_.nc.prototype.onServiceRequestCompleted=_.nc.prototype.onServiceRequestCompleted;_.nc.prototype.onYtServiceRequestSent=_.nc.prototype.onYtServiceRequestSent;_.nc.prototype.onYtNavigate=_.nc.prototype.onYtNavigate;_.nc.prototype.onPressedStateChanged=_.nc.prototype.onPressedStateChanged;_.nc.prototype.onHintIdChanged=_.nc.prototype.onHintIdChanged;_.d([_.M(),_.x("design:type",Object)],_.nc.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],_.nc.prototype,"isPressed",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],_.nc.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.cg6.YtButtonBehavior),_.x("design:type",Object)],_.nc.prototype,"ytButtonBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],_.nc.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],_.nc.prototype,"ytComponentBehavior",void 0);
_.d([_.C(yW.YtRenderButtonBehavior),_.x("design:type",Object)],_.nc.prototype,"ytRenderButtonBehavior",void 0);_.d([_.Os("data.hint.hintRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],_.nc.prototype,"onHintIdChanged",null);_.d([_.Os("isPressed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],_.nc.prototype,"onPressedStateChanged",null);
_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],_.nc.prototype,"onYtNavigate",null);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],_.nc.prototype,"onYtServiceRequestSent",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],_.nc.prototype,"onServiceRequestCompleted",null);_.d([_.Y({is:"ytd-button-renderer",disableElementRegistration:ZI9})],_.nc);var Cc=function(){var D=_.X.apply(this,arguments)||this;D.modern=_.r("web_button_rework_with_live");D.buttonOverrides={style:"overlay",type:"filled"};return D};
_.P(Cc,_.X);_.q=Cc.prototype;_.q.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"}}}}};
_.q.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.q.dataChanged=function(){if(this.data&&this.data.sticker){var D=_.G3(this.data.sticker.thumbnails,this.stickerWidth);D||_.Oyk(D).thenCatch(function(){_.Yw(new _.nZ("Failed to load Super Sticker with url",D))})}};
_.q.computeAuthorPhotoSize=function(D){return(D==null?0:D.isV2Style)?32:40};
_.q.computeIsV2Style=function(D){return(D==null?0:D.isV2Style)?!0:!1};
_.q.onStickerLoaded=function(D){var t,H,e;(t=_.qy(D))==null||(H=t.parentNode)==null||(e=H.classList)==null||e.add("sticker-loaded")};
_.q.computeNoveltyImageWidth=function(D){var t,H;if(D==null?0:(t=D.headerOverlayImage)==null?0:(H=t.thumbnails)==null?0:H.length){t=D.headerOverlayImage.thumbnails[0];var e,V;if((e=D.pdgPurchasedNoveltyLoggingDirectives)==null?0:(V=e.loggingDirectives)==null?0:V.trackingParams){var b,a;DbA((b=D.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(a=b.loggingDirectives)==null?void 0:a.trackingParams)}return t.width||0}return 0};
_.q.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.q.updateStickerStyles=function(){var D=this.data;D&&(D={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(D.authorNameTextColor)},
_.jZ(this.hostElement,D))};
_.q.onBuyButtonClick=function(){var D,t=_.O((D=this.data)==null?void 0:D.buyButton,_.aj);t&&!JPR(t.command)&&this.ytRendererBehavior.logExplicitClick(t)};
_.q.shouldSupportWholeItemClick=function(){return!0};
_.ql.Object.defineProperties(Cc.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 D;return((D=this.data)==null?0:D.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Cc.prototype.updateStickerStyles=Cc.prototype.updateStickerStyles;Cc.prototype.isDeletedChanged=Cc.prototype.isDeletedChanged;Cc.prototype.onStickerLoaded=Cc.prototype.onStickerLoaded;Cc.prototype.dataChanged=Cc.prototype.dataChanged;_.d([_.C(cP4.YtPdgLiveChatItemBehavior),_.x("design:type",Object)],Cc.prototype,"ytPdgLiveChatItemBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Cc.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],Cc.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Cc.prototype,"data",void 0);
_.d([_.M({computed:"computeAuthorPhotoSize(data)"}),_.x("design:type",Number)],Cc.prototype,"authorPhotoSize",void 0);_.d([_.M(),_.x("design:type",Boolean)],Cc.prototype,"isDeleted",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Cc.prototype,"dashboardMoneyFeed",void 0);_.d([_.M({computed:"computeNoveltyImageWidth(data)"}),_.x("design:type",Number)],Cc.prototype,"noveltyWidth",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Cc.prototype,"modern",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.x("design:type",Boolean)],Cc.prototype,"isV2Style",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cc.prototype,"dataChanged",null);_.d([_.rx("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Cc.prototype,"onStickerLoaded",null);
_.d([_.m("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Cc.prototype,"stickerWidth",null);_.d([_.m("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Cc.prototype,"stickerHeight",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Cc.prototype,"hasHeartButton",null);_.d([_.m("data","dashboardMoneyFeed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Cc.prototype,"hideLowerBumper",null);
_.d([_.Os("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cc.prototype,"isDeletedChanged",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cc.prototype,"updateStickerStyles",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],Cc);
_.p(Cc,"yt-live-chat-paid-sticker-renderer",function(){if(ueB===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;Rpf===void 0&&(Rpf=document.createElement("template"));var e=Rpf;H.call(t,e.content.cloneNode(!0),D.content.firstChild);ueB=D}D=ueB;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var sqf;var h$n;var GPn,Ecn=function(){return GPn!==void 0?GPn:GPn=document.createElement("template")};
document.head.appendChild(Ecn().content);var KQv,Nev=function(){return KQv!==void 0?KQv:KQv=document.createElement("template")};
document.head.appendChild(Nev().content);var kPo;var Te4,cm4=function(){return Te4!==void 0?Te4:Te4=document.createElement("template")};
document.head.appendChild(cm4().content);var jq9;var $b9=document.head,iIQ=$b9.appendChild,rmn;if(jq9===void 0){var OIV=document.createElement("template");_.n(OIV,"\x3c!--css-build:shady--\x3e");OIV.content.insertBefore(cm4().content.cloneNode(!0),OIV.content.firstChild);jq9=OIV}rmn=jq9;iIQ.call($b9,rmn.content);var Ubn=document.head,ocf=Ubn.appendChild,Psn;if(kPo===void 0){var m2=document.createElement("template");_.n(m2,"\x3c!--css-build:shady--\x3e");m2.content.insertBefore(Nev().content.cloneNode(!0),m2.content.firstChild);m2.content.insertBefore(Ecn().content.cloneNode(!0),m2.content.firstChild);kPo=m2}Psn=kPo;ocf.call(Ubn,Psn.content);var MD=function(){var D=_.ng.apply(this,arguments)||this;D.focusedIndex=0;D.verticalOffset=0;D.verticalAlign="top";D.dynamicAlign=!0;return D};
_.P(MD,_.ng);MD.prototype.emojiUrl=function(D){D=_.Ed(this.emojiManager,D);if(!D)return"";var t;D=(t=D.image)==null?void 0:t.thumbnails;return _.G3(D,24)||""};
var ncV=function(D){var t;D.emojiVariants&&(t=D.data)!=null&&t.target&&_.Vi(D,function(){D.set("verticalOffset",-1*D.hostElement.clientHeight);var H=_.Kg(D.hostElement).querySelector("img");H&&H.focus()})};
_.q=MD.prototype;_.q.onKeyboardEnter=function(){};
_.q.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.q.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.q.onKeyDown=function(D){switch(D.keyCode){case 13:this.onKeyboardEnter();D.preventDefault();break;case 40:this.changeFocus(1);D.preventDefault();break;case 38:this.changeFocus(-1);D.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.q.onYtEmojiSelect=function(D){var t=this,H,e,V,b,a,w,h,K;return _.Z(function(N){if(N.nextAddress==1)return e=(H=t.data)==null?void 0:H.emoji,a=((V=e)==null?void 0:V.stickyPrefId)||((b=e)==null?void 0:b.emojiId),h=(w=D.detail)==null?void 0:w.emojiId,a&&h&&a!==h?N.yield((K=t.emojiManager)==null?void 0:XE4(K,e,h),2):N.return();_.ET(t.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[e,h]);_.n2(N)})};
_.q.changeFocus=function(D){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+D+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(D=_.Kg(this.hostElement).querySelector("#variants"))&&D.children[this.focusedIndex].focus())};
_.ql.Object.defineProperties(MD.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
MD.prototype.onYtEmojiSelect=MD.prototype.onYtEmojiSelect;MD.prototype.onKeyDown=MD.prototype.onKeyDown;MD.prototype.onEmojiVariantsChanged=MD.prototype.onEmojiVariantsChanged;MD.prototype.onVerticalOffsetOrPositionTargetChanged=MD.prototype.onVerticalOffsetOrPositionTargetChanged;_.d([_.C(_.sn),_.x("design:type",Object)],MD.prototype,"ironOverlayBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],MD.prototype,"data",void 0);_.d([_.M(),_.x("design:type",_.GG)],MD.prototype,"emojiManager",void 0);
_.d([_.M(),_.x("design:type",Object)],MD.prototype,"emojiVariants",void 0);_.d([_.M(),_.x("design:type",Object)],MD.prototype,"focusedIndex",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],MD.prototype,"positionTarget",null);_.d([_.M({reflectToAttribute:!0}),_.m("verticalOffset","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],MD.prototype,"isPositioned",null);_.d([_.M(),_.x("design:type",Object)],MD.prototype,"verticalOffset",void 0);
_.d([_.M(),_.x("design:type",Object)],MD.prototype,"verticalAlign",void 0);_.d([_.M(),_.x("design:type",Object)],MD.prototype,"dynamicAlign",void 0);_.d([_.Os("verticalOffset","positionTarget"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],MD.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.d([_.Os("emojiVariants"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],MD.prototype,"onEmojiVariantsChanged",null);
_.d([_.rx("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],MD.prototype,"onKeyDown",null);_.d([_.rx("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype",Promise)],MD.prototype,"onYtEmojiSelect",null);_.d([_.Cg()],MD);var CsB=[MD.prototype];var mbn;var MsB;var SQn=/medium-light|medium-dark|light|medium|dark/,X49=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,fH4=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),SX=function(){var D=_.X.apply(this,arguments)||this;D.userSelection={left:null,right:null};D.scrollAction="lock";D.isEmojiDraftInProgress=!1;return D};
_.P(SX,_.X);_.q=SX.prototype;_.q.onClick=function(D){D=_.qy(D);D instanceof HTMLImageElement&&this.selectOrUpdateEmoji(D)};
_.q.selectOrUpdateEmoji=function(D){var t=D.getAttribute("selection");t&&(t==="default"?_.Gf(this.hostElement,"yt-emoji-select",_.Ed(this.emojiManager,D.id)):t==="left"?this.userSelection=Object.assign({},this.userSelection,{left:D.src}):t==="right"?this.userSelection=Object.assign({},this.userSelection,{right:D.src}):t==="user"&&this.userSelection.left&&this.userSelection.right&&_.Gf(this.hostElement,"yt-emoji-select",_.Ed(this.emojiManager,D.id)))};
_.q.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.q.onMultiSelectorThumbnailRowChanged=function(){var D,t,H;((D=this.data)==null?0:(t=D.emoji)==null?0:(H=t.multiSelectorThumbnailRow)==null?0:H.length)&&this.openSelector()};
_.q.getThumbnailFromEmojiRow=function(D){var t,H;return(D==null?void 0:(t=D.thumbnails)==null?void 0:(H=t[0])==null?void 0:H.url)||""};
_.q.getEmojiAltTextForPartialSelector=function(D){var t;return((t=this.getThumbnailFromEmojiRow(D).match(X49))==null?void 0:t[0])||""};
_.q.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.q.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.q.getRowSelection=function(D){return["left","right"][D]};
_.q.getIdFromComposedEmoji=function(D){return(D==null?void 0:D.emojiId)||""};
_.q.getEmojiFromPartialSelections=function(D,t){if(!D&&!t)return null;var H,e,V=(H=this.data)==null?void 0:(e=H.emoji)==null?void 0:e.variantIds;if(!V||!V.length)return null;var b;D=(b=D.match(SQn))==null?void 0:b[0];var a;t=(a=t.match(SQn))==null?void 0:a[0];if(!D||!t)return null;var w=fH4.get(D);a=fH4.get(t);if(w===a){a=Array.from(fH4.values()).filter(function(K){return K!==w}).join("|");
var h=new RegExp("^((?!("+a+")).)*"+w+"$")}else h=new RegExp(w+".*"+a);return(V=V.find(function(K){return h.test(K)}))&&_.Ed(this.emojiManager,V)||null};
_.q.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var D,t=this.ytEmojiSelectorBehavior.emojiUrl(((D=this.data.emoji)==null?void 0:D.emojiId)||"");_.Kg(this.hostElement).querySelector('[selection="user"]').src.includes(t)||(this.isEmojiDraftInProgress=!0)}};
_.q.onDomChange=function(){ncV(this.ytEmojiSelectorBehavior)};
_.q.getFocusableElements=function(){return _.Kg(this.hostElement).querySelectorAll("img").filter(function(D){return D.getAttribute("role")==="option"})};
_.q.changeFocus=function(D){var t=this.getFocusableElements();t!=null&&t.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+D+t.length)%t.length,this.ytEmojiSelectorBehavior.focusedIndex<t.length&&(D=t[this.ytEmojiSelectorBehavior.focusedIndex])&&D.focus())};
_.q.onKeyboardEnter=function(){var D=this.getFocusableElements();D!=null&&D.length&&(D=D[this.ytEmojiSelectorBehavior.focusedIndex])&&D instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(D),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.ql.Object.defineProperties(SX.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var D=this,t,H,e;return this.emojiManager&&((t=this.data)==null?0:(H=t.emoji)==null?0:(e=H.variantIds)==null?0:e.length)?this.data.emoji.variantIds.map(function(V){return!!V&&_.Ed(D.emojiManager,V)}).filter(function(V){return!!V}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var D,t=(D=this.userSelection)==null?void 0:D.left,H;D=(H=this.userSelection)==null?void 0:H.right;return t&&D?this.getEmojiFromPartialSelections(t,D):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.composedEmojiSelection)==null?0:D.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var t;D=(t=this.userSelection)==null?void 0:t.left;var H;t=(H=this.userSelection)==null?void 0:H.right;if(!D&&!t){var e;return this.ytEmojiSelectorBehavior.emojiUrl(((e=this.data.emoji)==null?void 0:e.emojiId)||"")}return D&&!t?D:!D&&t?t:""}}});
SX.prototype.onMultiSelectorThumbnailRowChanged=SX.prototype.onMultiSelectorThumbnailRowChanged;SX.prototype.onClick=SX.prototype.onClick;_.d([_.C(_.sn),_.x("design:type",Object)],SX.prototype,"ironOverlayBehavior",void 0);_.d([_.C(CsB),_.x("design:type",Object)],SX.prototype,"ytEmojiSelectorBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],SX.prototype,"data",void 0);_.d([_.M(),_.x("design:type",_.GG)],SX.prototype,"emojiManager",void 0);
_.d([_.M(),_.x("design:type",Object)],SX.prototype,"userSelection",void 0);_.d([_.M(),_.x("design:type",Object)],SX.prototype,"scrollAction",void 0);_.d([_.M(),_.x("design:type",Object)],SX.prototype,"isEmojiDraftInProgress",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],SX.prototype,"emojiVariants",null);_.d([_.m("data","userSelection"),_.x("design:type",Object),_.x("design:paramtypes",[])],SX.prototype,"composedEmojiSelection",null);
_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[MouseEvent]),_.x("design:returntype")],SX.prototype,"onClick",null);_.d([_.Os("data.emoji.multiSelectorThumbnailRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SX.prototype,"onMultiSelectorThumbnailRowChanged",null);_.d([_.m("data","userSelection","composedEmojiSelection"),_.x("design:type",String),_.x("design:paramtypes",[])],SX.prototype,"draftEmojiUrl",null);
_.d([_.xL({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],SX);
_.p(SX,"yt-emoji-multi-person-selector",function(){if(MsB===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;mbn===void 0&&(mbn=document.createElement("template"));var e=mbn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);MsB=D}D=MsB;return D},{mode:2});var LQv;var AmQ;var Xh=function(){var D=_.X.apply(this,arguments)||this;D.tooltip_=null;return D};
_.P(Xh,_.X);_.q=Xh.prototype;_.q.dataChanged_=function(){var D;if((D=this.data)==null?0:D.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Kg(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.cT)(this.tooltip_).textContent=this.data.tooltip};
_.q.computeTargetId=function(){var D;return((D=this.data)==null?void 0:D.targetId)||""};
_.q.computeId_=function(D){return D};
_.q.computeIcon_=function(D){return _.cc(D)};
_.q.onTap_=function(){this.active=!this.active;_.Gf(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.q.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("active-changed",this.active))};
_.ql.Object.defineProperties(Xh.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var D,t;if((D=this.data)==null?0:(t=D.icon)==null?0:t.iconType)return this.data.icon.iconType==="SUPER_STICKER";var H,e;return((H=this.data)==null?void 0:(e=H.icon)==null?void 0:e.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
Xh.prototype.activeChangedForBinding=Xh.prototype.activeChangedForBinding;Xh.prototype.dataChanged_=Xh.prototype.dataChanged_;_.d([_.C(_.Gq.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],Xh.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Xh.prototype,"data",void 0);_.d([_.M({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.x("design:type",String)],Xh.prototype,"id",void 0);
_.d([_.M({computed:"computeTargetId(data.targetId)"}),_.x("design:type",String)],Xh.prototype,"targetId",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Xh.prototype,"active",void 0);_.d([_.M({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.x("design:type",String)],Xh.prototype,"icon",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xh.prototype,"dataChanged_",null);
_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Xh.prototype,"iconFilled",null);_.d([_.Os("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xh.prototype,"activeChangedForBinding",null);_.d([_.xL({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],Xh);
_.p(Xh,"yt-emoji-picker-category-button-renderer",function(){if(AmQ===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;LQv===void 0&&(LQv=document.createElement("template"));var e=LQv;H.call(t,e.content.cloneNode(!0),D.content.firstChild);AmQ=D}D=AmQ;return D},{mode:2});var gcQ;var Jma;var fc=function(){var D=_.X.apply(this,arguments)||this;D.ariaLabel=null;D.ariaActivedescendant=null;D.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};D.JSC$14181_ignoreNextFocus_=!1;D.longPressTimeoutId=-1;return D};
_.P(fc,_.X);_.q=fc.prototype;_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.q.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.q.emojiChanged_=function(){this.changeFocus_(0,!1);for(var D=_.Pc(),t=0;t<this.emoji.length;t++){var H={veType:88013,elementIndex:t},e=this.emoji[t];e.isCustomEmoji&&(e=document.querySelector(("#"+e.emojiId).replace("/","\\/")))&&(H=_.oQ(D,H))&&(e.visualElement=H)}};
_.q.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.q.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.q.emojiSkinToneChanged_=function(D){this.skinTone=D};
_.q.dataChanged=function(){this.data&&this.data.emojiData&&CW3(this.emojiManager,this.data.emojiData)};
_.q.emojiUrl=function(D){D=this.getEmoji(D);if(!D)return"";var t;D=(t=D.image)==null?void 0:t.thumbnails;return _.G3(D,24)||""};
_.q.emojiAlt=function(D){var t=this.get("image.accessibility.accessibilityData.label",D);return t?t:D.isCustomEmoji?D.shortcuts[0]:D.emojiId};
_.q.emojiAriaLabel=function(D){return D.shortcuts?D.shortcuts[0]:""};
_.q.emojiAriaSelected=function(D,t,H){return D&&H==t?"true":"false"};
_.q.getEmoji=function(D){if(this.emojiManager)return this.shouldUseStickyPreferences?MhB(this.emojiManager,D):Kc(this.emojiManager,D)};
_.q.computeId_=function(D){return D.categoryId||""};
_.q.computeEmoji=function(D){var t=this;return this.emojiManager?D.emojiIds?D.emojiIds.map(function(H){return H?_.Ed(t.emojiManager,H):null}).filter(UhA):D.emojiData?D.emojiData.map(function(H){var e=!!H.emojiId&&_.Ed(t.emojiManager,H.emojiId);
return e?Object.assign({},e,H):null}).filter(UhA):[]:[]};
_.q.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.q.computeAriaLabel_=function(D){return _.eo(D)};
_.q.computeAriaActivedescendant_=function(D,t){return D&&D[t]?D[t].emojiId||"":""};
_.q.handleLongPressEmojiWithVariants=function(D,t){this.changeFocusToEmoji(D.emojiId,!1);this.openVariantSelector(D,t)};
_.q.onMouseDown=function(D){var t=this;this.hostElement!==document.activeElement&&(this.JSC$14181_ignoreNextFocus_=!0);if(D.button===0){var H=_.qy(D);if(H instanceof HTMLImageElement){var e=_.Kg(this.hostElement).querySelector("#repeat").itemForElement(H);this.emojiContainsVariants(e)&&(this.longPressTimeoutId=setTimeout(function(){t.handleLongPressEmojiWithVariants(e,H)},500))}}};
_.q.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.q.onFocus=function(){this.JSC$14181_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14181_ignoreNextFocus_=!1};
_.q.onBlur_=function(){this.showFocus=!1};
_.q.emojiContainsVariants=function(D){return!!(D&&D.variantIds&&D.variantIds.length)};
_.q.onClick=function(D){clearTimeout(this.longPressTimeoutId);D=_.qy(D);if(D instanceof HTMLImageElement){var t=D.id;this.changeFocusToEmoji(t,!1);var H=this.getEmoji(t),e;if(e=this.shouldUseStickyPreferences&&this.emojiContainsVariants(H)){var V;e=!((V=this.emojiManager.emojiMap[t])!=null&&V.stickyPrefId)}e?(V=_.Kg(this.hostElement).querySelector("#repeat").itemForElement(D),this.openVariantSelector(V,D)):_.Gf(this.hostElement,"yt-emoji-select",H)}};
_.q.isActiveEmojiWithVariants=function(D,t){return D&&t?t.stickyPrefId?D===t.stickyPrefId:D===t.emojiId:!1};
_.q.onCloseEmojiVariantSelector=function(D){this.activeEmojiWithVariantsId===D&&(this.activeEmojiWithVariantsId="")};
_.q.onMouseOver_=function(D){D=_.qy(D);D instanceof HTMLImageElement&&_.Gf(this.hostElement,"yt-emoji-hover",_.Ed(this.emojiManager,D.id))};
_.q.changeFocus_=function(D,t){this.focusedIndex=(this.focusedIndex+D+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(D=this.emoji[this.focusedIndex],t&&(this.showFocus=!0,_.Kg(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Gf(this.hostElement,"yt-emoji-hover",D)))};
_.q.changeFocusToEmoji=function(D,t){if(D){var H=this.emoji.findIndex(function(e){return e.emojiId===D});
H!==-1&&this.changeFocus_(H-this.focusedIndex,t)}};
_.q.onKeyDown_=function(D){switch(D.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var t=this.emoji[this.focusedIndex];if(t&&t.emojiId){if(this.emojiContainsVariants(t)){var H=_.Kg(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(t,H)}else _.Gf(this.hostElement,"yt-emoji-select",Kc(this.emojiManager,t.emojiId)),this.hostElement.focus();D.preventDefault()}}break;case 40:this.changeFocus_(1,!0);D.preventDefault();break;case 38:this.changeFocus_(-1,!0),
D.preventDefault()}};
_.q.onEmojiStickyPreferenceChanged=function(D,t){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&D.emojiId&&D.variantIds&&D.variantIds.includes(t)&&this.activeEmojiWithVariantsId!==t&&this.setStickyEmojiPreference(D.emojiId,t)};
_.q.openVariantSelector=function(D,t){this.activeEmojiWithVariantsId=D.stickyPrefId||D.emojiId||"";_.Gf(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:D,target:t})};
_.q.setStickyEmojiPreference=function(D,t){if(this.data){var H=this.emoji.findIndex(function(V){return V.emojiId===D});
if(H!==-1){var e=this.emoji[H];e.stickyPrefId=t;this.set("emoji."+H,Object.assign({},e));this.activeEmojiWithVariantsId=t}}};
fc.prototype.onKeyDown_=fc.prototype.onKeyDown_;fc.prototype.onMouseOver_=fc.prototype.onMouseOver_;fc.prototype.onClick=fc.prototype.onClick;fc.prototype.onBlur_=fc.prototype.onBlur_;fc.prototype.onFocus=fc.prototype.onFocus;fc.prototype.onMouseUp=fc.prototype.onMouseUp;fc.prototype.onMouseDown=fc.prototype.onMouseDown;fc.prototype.dataChanged=fc.prototype.dataChanged;fc.prototype.disableIncrementalLoadingChanged_=fc.prototype.disableIncrementalLoadingChanged_;fc.prototype.emojiManagerChanged_=fc.prototype.emojiManagerChanged_;
fc.prototype.emojiChanged_=fc.prototype.emojiChanged_;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],fc.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],fc.prototype,"data",void 0);_.d([_.M({computed:"computeId_(data)"}),_.x("design:type",String)],fc.prototype,"id",void 0);_.d([_.M({computed:"computeEmoji(data)"}),_.x("design:type",Array)],fc.prototype,"emoji",void 0);_.d([_.M(),_.x("design:type",Number)],fc.prototype,"skinTone",void 0);
_.d([_.M(),_.x("design:type",_.GG)],fc.prototype,"emojiManager",void 0);_.d([_.M(),_.x("design:type",Boolean)],fc.prototype,"disableIncrementalLoading",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],fc.prototype,"focusedIndex",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],fc.prototype,"showFocus",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.x("design:type",Object)],fc.prototype,"ariaLabel",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.x("design:type",Object)],fc.prototype,"ariaActivedescendant",void 0);_.d([_.M({value:60}),_.x("design:type",Number)],fc.prototype,"domRepeatTargetFramerate",void 0);_.d([_.M({value:1}),_.x("design:type",Number)],fc.prototype,"domRepeatInitialCount",void 0);_.d([_.M({value:""}),_.x("design:type",String)],fc.prototype,"activeEmojiWithVariantsId",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],fc.prototype,"shouldUseStickyPreferences",void 0);_.d([_.Os("emoji"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fc.prototype,"emojiChanged_",null);_.d([_.Os("emojiManager"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fc.prototype,"emojiManagerChanged_",null);
_.d([_.Os("disableIncrementalLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fc.prototype,"disableIncrementalLoadingChanged_",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fc.prototype,"dataChanged",null);_.d([_.rx("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],fc.prototype,"onMouseDown",null);
_.d([_.rx("mouseup"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fc.prototype,"onMouseUp",null);_.d([_.rx("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fc.prototype,"onFocus",null);_.d([_.rx("blur"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fc.prototype,"onBlur_",null);
_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],fc.prototype,"onClick",null);_.d([_.rx("mouseover"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],fc.prototype,"onMouseOver_",null);_.d([_.rx("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],fc.prototype,"onKeyDown_",null);
_.d([_.xL({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],fc);
_.p(fc,"yt-emoji-picker-category-renderer",function(){if(Jma===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;gcQ===void 0&&(gcQ=document.createElement("template"));var e=gcQ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Jma=D}D=Jma;return D},{mode:2});var YQV;var lH6;var vcn;var p43;var Lc=function(){var D=_.X.apply(this,arguments)||this;D.ariaLabel=null;D.ariaActivedescendant=null;D.getFormattedStringRawText=_.eo;D.JSC$14187_ignoreNextFocus_=!1;return D};
_.P(Lc,_.X);_.q=Lc.prototype;_.q.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")};
_.q.emojiUrl=function(D){var t,H;D=(t=Kc(this.emojiManager,D,!0))==null?void 0:(H=t.image)==null?void 0:H.thumbnails;return _.G3(D,24)||""};
_.q.emojiAlt=function(D){var t=this.get("image.accessibility.accessibilityData.label",D);return t?t:D.isCustomEmoji?D.shortcuts[0]:D.emojiId};
_.q.emojiId=function(D){return"emoji"+D};
_.q.computeId_=function(D){return D.categoryId||""};
_.q.computeAriaActivedescendant_=function(D){return this.emoji&&D<this.emoji.length?this.emojiId(D):""};
_.q.emojiChanged_=function(){this.changeFocus_(0,!1);for(var D=_.Pc(),t=0;t<this.emoji.length;t++){var H={veType:88013,elementIndex:t},e=this.emoji[t];e.isCustomEmoji&&(e=document.querySelector(("#"+e.emojiId).replace("/","\\/")))&&(H=_.oQ(D,H))&&(e.visualElement=H)}};
_.q.computeEmoji_=function(D){var t=this;return this.emojiManager?D.emojiIds.map(function(H){return _.Ed(t.emojiManager,H,!0)}).filter(omR):[]};
_.q.titleOffsetChanged_=function(){var D=this.hostElement.getBoundingClientRect(),t=_.Kg(this.hostElement).querySelector("#title").getBoundingClientRect();D=Math.max(0,Math.min(this.titleOffset,D.height-t.height));_.Kg(this.hostElement).querySelector("#title").style.top=D+"px"};
_.q.onEmojiMouseOver_=function(D){_.Gf(this.hostElement,"yt-emoji-hover",D.model.item)};
_.q.onEmojiTap_=function(D){this.data.command&&(D=aHV(_.qS().resolve(_.by(RR)),this.data.command,D),_.Gf(this.hostElement,"yt-navigate",D))};
_.q.emojiAriaLabel=function(D){return D.shortcuts[0]};
_.q.emojiAriaSelected=function(D,t,H){return D&&H==t?"true":"false"};
_.q.changeFocus_=function(D,t){var H=this.emoji.length;this.focusedIndex=(this.focusedIndex+D+H)%H;D=this.emoji[this.focusedIndex];if(t){var e;(e=_.Kg(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||e.scrollIntoView(!1);_.Gf(this.hostElement,"yt-emoji-hover",D)}};
_.q.onMouseDown_=function(){this.JSC$14187_ignoreNextFocus_=!0};
_.q.onFocus_=function(){this.JSC$14187_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14187_ignoreNextFocus_=!1};
_.q.onBlur_=function(){this.showFocus=!1};
_.q.onKeyDown_=function(D){switch(D.keyCode){case 13:this.onEmojiTap_(D);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);D.preventDefault();break;case 38:this.changeFocus_(-1,!0),D.preventDefault()}};
Lc.prototype.onKeyDown_=Lc.prototype.onKeyDown_;Lc.prototype.onBlur_=Lc.prototype.onBlur_;Lc.prototype.onFocus_=Lc.prototype.onFocus_;Lc.prototype.onMouseDown_=Lc.prototype.onMouseDown_;Lc.prototype.onEmojiTap_=Lc.prototype.onEmojiTap_;Lc.prototype.titleOffsetChanged_=Lc.prototype.titleOffsetChanged_;Lc.prototype.emojiChanged_=Lc.prototype.emojiChanged_;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Lc.prototype,"ytComponentBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Lc.prototype,"data",void 0);_.d([_.M({computed:"computeId_(data)"}),_.x("design:type",String)],Lc.prototype,"id",void 0);_.d([_.M({computed:"computeEmoji_(data)"}),_.x("design:type",Array)],Lc.prototype,"emoji",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],Lc.prototype,"titleOffset",void 0);_.d([_.M({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.x("design:type",Object)],Lc.prototype,"ariaLabel",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.x("design:type",Object)],Lc.prototype,"ariaActivedescendant",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Lc.prototype,"showFocus",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],Lc.prototype,"focusedIndex",void 0);_.d([_.M(),_.x("design:type",_.GG)],Lc.prototype,"emojiManager",void 0);
_.d([_.Os("emoji"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lc.prototype,"emojiChanged_",null);_.d([_.Os("titleOffset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lc.prototype,"titleOffsetChanged_",null);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Lc.prototype,"onEmojiTap_",null);
_.d([_.rx("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lc.prototype,"onMouseDown_",null);_.d([_.rx("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lc.prototype,"onFocus_",null);_.d([_.rx("blur"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lc.prototype,"onBlur_",null);
_.d([_.rx("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Lc.prototype,"onKeyDown_",null);_.d([_.xL({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],Lc);
_.p(Lc,"yt-emoji-picker-upsell-category-renderer",function(){if(p43===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;vcn===void 0&&(vcn=document.createElement("template"));var e=vcn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);p43=D}D=p43;return D},{mode:2});var dbn;var xbV;var Af=function(){var D=_.X.apply(this,arguments)||this;D.scrollAction="lock";D.verticalAlign="top";return D};
_.P(Af,_.X);_.q=Af.prototype;_.q.onClick=function(D){D=_.qy(D);D instanceof HTMLImageElement&&_.Gf(this.hostElement,"yt-emoji-select",_.Ed(this.emojiManager,D.id))};
_.q.openSelector=function(){this.ironOverlayBehavior.open()};
_.q.onDomChange=function(){ncV(this.ytEmojiSelectorBehavior)};
_.q.computeIsFamilySelector=function(D){var t;return(D==null?void 0:(t=D.emoji)==null?void 0:t.emojiId)==="\ud83d\udc6a"};
_.q.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var D=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];D&&D.emojiId&&(_.Gf(this.hostElement,"yt-emoji-select",_.Ed(this.emojiManager,D.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.ql.Object.defineProperties(Af.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var D=this,t,H,e;return this.emojiManager&&((t=this.data)==null?0:(H=t.emoji)==null?0:(e=H.variantIds)==null?0:e.length)?this.data.emoji.variantIds.map(function(V){return!!V&&_.Ed(D.emojiManager,V)}).filter(function(V){return!!V}):[]}}});
Af.prototype.onClick=Af.prototype.onClick;_.d([_.C(_.sn),_.x("design:type",Object)],Af.prototype,"ironOverlayBehavior",void 0);_.d([_.C(CsB),_.x("design:type",Object)],Af.prototype,"ytEmojiSelectorBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Af.prototype,"data",void 0);_.d([_.M(),_.x("design:type",_.GG)],Af.prototype,"emojiManager",void 0);_.d([_.M(),_.x("design:type",Object)],Af.prototype,"scrollAction",void 0);_.d([_.M(),_.x("design:type",Object)],Af.prototype,"verticalAlign",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.x("design:type",Boolean)],Af.prototype,"isFamilySelector",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Af.prototype,"emojiVariants",null);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[MouseEvent]),_.x("design:returntype")],Af.prototype,"onClick",null);_.d([_.xL({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Af);
_.p(Af,"yt-emoji-variant-selector",function(){if(xbV===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;dbn===void 0&&(dbn=document.createElement("template"));var e=dbn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);xbV=D}D=xbV;return D},{mode:2});var R$B=/:/g,u84=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],gB=function(){var D=_.X.apply(this,arguments)||this;D.emojiVariantSelector=null;D.emojiMultiPersonSelector=null;D.identity=_.AT;D.lastAnimationTime_=0;D.animationStart_=null;D.animationEnd_=null;return D};
_.P(gB,_.X);_.q=gB.prototype;
_.q.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}}};
_.q.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.ND)};
_.q.attached=function(){_.Et&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&mqv(this.emojiManager)};
_.q.dataChanged=function(){var D;if((D=this.data)==null?0:D.categories){D=this.emojiManager;var t=this.getCustomEmojiIds();D.pickerCustomEmojiIds=[].concat(_.A6(ODa),_.A6(t))}};
_.q.getCustomEmojiIds=function(){var D,t=(D=this.data.categories)==null?void 0:D.find(function(b){var a;return((a=b.emojiPickerCategoryRenderer)==null?void 0:a.categoryId)&&u84.includes(b.emojiPickerCategoryRenderer.categoryId)}),H;
D=(H=this.data.categories)==null?void 0:H.find(function(b){return b.emojiPickerUpsellCategoryRenderer});
var e,V;return[t==null?void 0:(e=t.emojiPickerCategoryRenderer)==null?void 0:e.emojiIds,D==null?void 0:(V=D.emojiPickerUpsellCategoryRenderer)==null?void 0:V.emojiIds].flat().filter(function(b){return!!b})};
_.q.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.q.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.q.updateCategoriesAndPlaceholderInternal=function(D,t){var H=this;D&&t&&(this.categories=D.categories||[],this.categoryButtons=D.categoryButtons||[],this.resetPlaceholder(),this.search="",_.BT(function(){H.updateButtons_()}))};
_.q.computeId_=function(D){return D.id||""};
_.q.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(D){return D.emojiPickerCategoryRenderer&&D.emojiPickerCategoryRenderer.emojiData}):!1};
_.q.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.q.onShowEmojiVariantSelector=function(D){var t=D.detail.emojiData;t.variantIds&&t.variantIds.length&&(t.multiSelectorThumbnailRow&&t.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:t,target:D.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:t,target:D.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.q.onIronOverlayClosed=function(D){var t=MhB(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");t&&D.composedPath&&(D.composedPath().includes(_.Kg(this.hostElement).querySelector("#emoji-variant-selector"))||D.composedPath().includes(_.Kg(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.ET(this.hostElement,"yt-close-emoji-variant-selector",[t.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.q.onEmojiVariantSelectorMouseup=function(D){var t=D.target.firstChild;this.variantSelectorOpened&&t&&_.BT(function(){t.noCancelOnOutsideClick=!1},100)};
_.q.onEmojiVariantSelectorMousedown=function(D){D=D.target.firstChild;this.variantSelectorOpened&&D&&(D.noCancelOnOutsideClick=!1)};
_.q.onSelectCategory_=function(D){var t=this.search!="";this.search="";for(var H=_.Kg(this.hostElement).querySelector("#categories").children,e=0;e<H.length;e++){var V=H[e];if(V.id==D.detail.categoryId){t?(_.Kg(this.hostElement).querySelector("#categories").scrollTop=V.offsetTop,this.updateButtons_()):(this.animationStart_=_.Kg(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=V.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.q.onEmojiHover_=function(D){this.placeholder=D.detail.shortcuts?D.detail.shortcuts[0]:""};
_.q.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.q.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.q.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.q.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.q.computeSearchCategory_=function(D){D=D.replace(R$B,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();D=D.split(" ");for(var t=[],H=this.emojiManager.emojis,e=0;e<H.length;e++){var V=H[e];if(V.searchTerms)for(var b=0;b<V.searchTerms.length;b++){for(var a=V.searchTerms[b].toLocaleLowerCase(),w=!1,h=0;h<D.length;h++)if(a.indexOf(D[h])!=-1){w=!0;break}if(w&&(!V.isCustomEmoji||!V.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(V.emojiId))){t.push(V.emojiId);
break}}}return{categoryId:-1,emojiIds:t}};
_.q.computeSearchEmptyMessage_=function(D,t){return D&&t&&t.emojiIds&&t.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.q.computeSearching_=function(D){return this.emojiManager&&D.replace(R$B,"").length>1};
_.q.computeSkinToneHidden=function(){var D;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((D=this.data)==null||!D.hideSkinTonePicker)};
_.q.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.q.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.q.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.q.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.q.selectSkinTone_=function(D){D=Number(D.target.getAttribute("tone"));this.set("emojiManager.skinTone",D);_.ET(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[D]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.q.skinToneChanged_=function(){_.Kg(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var D=_.Kg(this.hostElement).querySelector("#dropdown-content").children,t=0;t<D.length;t++)t===this.skinTone?D[t].setAttribute("selected",""):D[t].removeAttribute("selected")};
_.q.animateScroll_=function(D){this.lastAnimationTime_||(this.lastAnimationTime_=D);D-=this.lastAnimationTime_;D<200?(_.Kg(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*D/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Kg(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.q.searchChanged_=function(){this.updateButtons_()};
_.q.updateButtons_=function(){var D=null;if(!this.search)for(var t=_.Kg(this.hostElement).querySelector("#categories").scrollTop,H=_.Kg(this.hostElement).querySelector("#categories").children,e=0;e<H.length;e++){var V=H[e];V.offsetTop<=t&&(D=V.id)}t=_.Kg(this.hostElement).querySelector("#category-buttons").children;for(H=0;H<t.length;H++)e=t[H],e.active=e.id===D};
gB.prototype.searchChanged_=gB.prototype.searchChanged_;gB.prototype.skinToneChanged_=gB.prototype.skinToneChanged_;gB.prototype.onEmojiHover_=gB.prototype.onEmojiHover_;gB.prototype.onSelectCategory_=gB.prototype.onSelectCategory_;gB.prototype.onShowEmojiVariantSelector=gB.prototype.onShowEmojiVariantSelector;gB.prototype.updateCategoriesAndPlaceholder_=gB.prototype.updateCategoriesAndPlaceholder_;gB.prototype.dataChanged=gB.prototype.dataChanged;
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],gB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],gB.prototype,"data",void 0);_.d([_.M({value:function(){return[]}}),
_.x("design:type",Array)],gB.prototype,"categories",void 0);_.d([_.M({value:function(){return[]}}),
_.x("design:type",Array)],gB.prototype,"categoryButtons",void 0);_.d([_.M({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.x("design:type",Boolean)],gB.prototype,"disableScroll",void 0);_.d([_.M({computed:"computeId_(data)",reflectToAttribute:!0}),_.x("design:type",String)],gB.prototype,"id",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],gB.prototype,"selected",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],gB.prototype,"disableIncrementalLoading",void 0);_.d([_.M(),_.x("design:type",String)],gB.prototype,"placeholder",void 0);_.d([_.M({value:""}),_.x("design:type",String)],gB.prototype,"search",void 0);_.d([_.M({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.x("design:type",Boolean)],gB.prototype,"searching",void 0);_.d([_.M({computed:"computeSearchCategory_(search)"}),_.x("design:type",Object)],gB.prototype,"searchCategory",void 0);
_.d([_.M({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.x("design:type",Object)],gB.prototype,"searchEmptyMessage",void 0);_.d([_.M({computed:"identity(emojiManager.skinTone)"}),_.x("design:type",Number)],gB.prototype,"skinTone",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],gB.prototype,"skinToneOpened",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],gB.prototype,"variantSelectorOpened",void 0);
_.d([_.M({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.x("design:type",Boolean)],gB.prototype,"skinToneHidden",void 0);_.d([_.M(),_.x("design:type",_.GG)],gB.prototype,"emojiManager",void 0);_.d([_.M(),_.x("design:type",Object)],gB.prototype,"emojiVariantSelector",void 0);_.d([_.M(),_.x("design:type",Object)],gB.prototype,"emojiMultiPersonSelector",void 0);
_.d([_.M({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.x("design:type",Boolean)],gB.prototype,"shouldUseStickyPreferences",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gB.prototype,"dataChanged",null);_.d([_.Os("data","selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gB.prototype,"updateCategoriesAndPlaceholder_",null);
_.d([_.rx("yt-show-emoji-variant-selector"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],gB.prototype,"onShowEmojiVariantSelector",null);_.d([_.rx("yt-emoji-picker-select-category"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],gB.prototype,"onSelectCategory_",null);_.d([_.rx("yt-emoji-hover"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],gB.prototype,"onEmojiHover_",null);
_.d([_.Os("skinTone"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gB.prototype,"skinToneChanged_",null);_.d([_.Os("search"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gB.prototype,"searchChanged_",null);_.d([_.xL({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],gB);
_.p(gB,"yt-emoji-picker-renderer",function(){if(lH6===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;YQV===void 0&&(YQV=document.createElement("template"));var e=YQV;H.call(t,e.content.cloneNode(!0),D.content.firstChild);lH6=D}D=lH6;return D},{mode:2});var Jf=function(){var D=_.X.apply(this,arguments)||this;D.emojiManager=_.ND;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.selectedIndex=1;D.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return D};
_.P(Jf,_.X);_.q=Jf.prototype;_.q.handleEmojiCustomizationVisible=function(D){this.emojiPickerRenderer.selected=D;this.selectedIndex=1;D?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.q.emojiCustomizationSetChanged=function(){var D;(D=this.data)!=null&&D.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.QA(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.q.updateSaveButtonState=function(D){var t;(t=this.data)!=null&&t.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.nf("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:D}))};
_.q.emojiUrl=function(D){D=_.Ed(this.emojiManager,D);if(!D)return"";var t;D=(t=D.image)==null?void 0:t.thumbnails;return _.G3(D,24)||""};
_.q.emojiAlt=function(D){var t=_.Ed(this.emojiManager,D);if(!t)return D;var H,e,V,b=(t==null?void 0:(H=t.image)==null?void 0:(e=H.accessibility)==null?void 0:(V=e.accessibilityData)==null?void 0:V.label)||"";return b?b:t.isCustomEmoji?t.shortcuts[0]:t.emojiId||D};
_.q.emojiAriaLabel=function(D){var t,H;return((t=_.Ed(this.emojiManager,D))==null?void 0:(H=t.shortcuts)==null?void 0:H[0])||D};
_.q.onEmojiClick=function(D){D.model.index!==0&&(this.selectedIndex=D.model.index)};
_.q.onEmojiSelect=function(D){D=D.detail;var t,H;((t=this.data)==null?0:t.emojiCustomizationSetEntityKey)&&((H=this.emojiCustomizationSet)==null?0:H.emojiId)&&D.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,D.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.nf("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,D.emojiId,this.selectedIndex)}))};
_.q.canEditEmoji=function(D,t,H){D=D.indexOf(t);return D===H||D===0||H===0?!1:!0};
_.q.getUpdatedEmojiIdList=function(D,t,H){var e=D.indexOf(t);D=[].concat(_.A6(D));e>=0&&(D[e]=D[H]);D[H]=t;return D};
_.ql.Object.defineProperties(Jf,{template:{configurable:!0,enumerable:!0,get:function(){if(h$n===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;sqf===void 0&&(sqf=document.createElement("template"));var e=sqf;H.call(t,e.content.cloneNode(!0),D.content.firstChild);h$n=D}D=h$n;return D}}});
Jf.prototype.onEmojiSelect=Jf.prototype.onEmojiSelect;_.d([_.C(_.hX),_.x("design:type",Object)],Jf.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Jf.prototype,"ytActionHandlerBehavior",void 0);_.d([_.o5("yt-emoji-picker-renderer"),_.x("design:type",Object)],Jf.prototype,"emojiPickerRenderer",void 0);
_.d([_.M({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(D,t){return _.jR(D.entities,"emojiCustomizationSetEntity",t)},
observer:"emojiCustomizationSetChanged"}),_.x("design:type",Object)],Jf.prototype,"emojiCustomizationSet",void 0);_.d([_.M(),_.x("design:type",Object)],Jf.prototype,"originalEmojiSet",void 0);_.d([_.M(),_.x("design:type",_.GG)],Jf.prototype,"emojiManager",void 0);_.d([_.M(),_.x("design:type",Object)],Jf.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Jf.prototype,"isDarkTheme",void 0);_.d([_.M(),_.x("design:type",Object)],Jf.prototype,"selectedIndex",void 0);
_.d([_.rx("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Jf.prototype,"onEmojiSelect",null);_.d([_.xL({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],Jf);var WQf;var IH3;var Qqn;var ymw;var lP=function(){var D=_.X.apply(this,arguments)||this;D.authorBadges=[];return D};
_.P(lP,_.X);_.q=lP.prototype;_.q.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.q.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]]"}}}}}};
_.q.dataChanged=function(){var D=Dj3(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",D)};
_.q.updateMessage=function(){var D=this.data.message,t=_.Kg(_.Kg(this.hostElement).querySelector("#message"));t.textContent="";D&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D))};
_.q.shouldSupportWholeItemClick=function(){return!0};
_.q.onShowOriginalClick=function(D){D.preventDefault();this.showOriginal=!0};
_.q.computeShowBar=function(D,t,H){return D&&t||H};
_.q.computeAuthorBadges=function(D){return D.authorBadges||[]};
_.q.computeAuthorIsOwner=function(D){return!!tF8(D.authorBadges,"owner")};
_.q.computeAuthorNameColor=function(D){var t;if(_.r("live_chat_author_name_color_usernames")&&(D==null?0:(t=D.authorName)==null?0:t.simpleText))return _.F4V(_.aq3(D.authorName.simpleText));if(_.r("live_chat_seed_color_usernames")&&(D==null?0:D.authorSeedColorArgb))return _.F4V(_.kP(D.authorSeedColorArgb));if(_.r("live_chat_colored_usernames"))return"#cc0000";var H;return _.r("live_chat_simple_color_usernames")&&(D==null?0:(H=D.authorName)==null?0:H.simpleText)&&(D==null?0:D.authorUsernameColorLight)&&
(D==null?0:D.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.kP(D.authorUsernameColorDark):_.kP(D.authorUsernameColorLight):""};
lP.prototype.updateMessage=lP.prototype.updateMessage;lP.prototype.dataChanged=lP.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],lP.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],lP.prototype,"data",void 0);
_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],lP.prototype,"showOriginal",void 0);_.d([_.M({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.x("design:type",Boolean)],lP.prototype,"isDimmed",void 0);_.d([_.M({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.x("design:type",Boolean)],lP.prototype,"showBar",void 0);
_.d([_.M({computed:"computeAuthorBadges(data)"}),_.x("design:type",Array)],lP.prototype,"authorBadges",void 0);_.d([_.M({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],lP.prototype,"authorIsOwner",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],lP.prototype,"inCollapsedBanner",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],lP.prototype,"inBanner",void 0);
_.d([_.M({value:_.r("live_chat_hide_avatars"),reflectToAttribute:!0}),_.x("design:type",Boolean)],lP.prototype,"avatarHidden",void 0);_.d([_.M({computed:"computeAuthorNameColor(data)"}),_.x("design:type",String)],lP.prototype,"authorNameColor",void 0);_.d([_.M(),_.x("design:type",_.$T)],lP.prototype,"participantsManager",void 0);_.d([_.M({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.x("design:type",Object)],lP.prototype,"filledButtonOverrides",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lP.prototype,"dataChanged",null);_.d([_.Os("data.message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lP.prototype,"updateMessage",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],lP);
_.p(lP,"yt-live-chat-text-message-renderer",function(){if(ymw===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Qqn===void 0&&(Qqn=document.createElement("template"));var e=Qqn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);ymw=D}D=ymw;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var vw=function(){var D=_.X.apply(this,arguments)||this;D.tonalButtonOverrides={type:"tonal",style:"overlay"};return D};
_.P(vw,_.X);
vw.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]]"}}}}}};
vw.prototype.shouldSupportInlineActionButtons=function(){return!0};
vw.prototype.shouldSupportWholeItemClick=function(){return!0};
_.ql.Object.defineProperties(vw.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],vw.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],vw.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],vw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],vw.prototype,"data",void 0);_.d([_.M(),_.x("design:type",_.$T)],vw.prototype,"participantsManager",void 0);
_.d([_.M(),_.x("design:type",Object)],vw.prototype,"tonalButtonOverrides",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data.infoDialogButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],vw.prototype,"hasInfoDialogButton",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],vw);
_.p(vw,"yt-live-chat-auto-mod-message-renderer",function(){if(IH3===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;WQf===void 0&&(WQf=document.createElement("template"));var e=WQf;H.call(t,e.content.cloneNode(!0),D.content.firstChild);IH3=D}D=IH3;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Ben;var z$n;var Dha;var t6B=function(){return _.X.apply(this,arguments)||this};
_.P(t6B,_.X);_.d([_.M(),_.x("design:type",Object)],t6B.prototype,"data",void 0);_.d([_.Y({is:"ytd-factoid-renderer",disableElementRegistration:!0})],t6B);
_.p(t6B,"ytd-factoid-renderer",function(){if(Dha!==void 0)return Dha;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Dha=D},{mode:1});var pc=function(){return _.X.apply(this,arguments)||this};
_.P(pc,_.X);pc.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.d([_.M(),_.x("design:type",Object)],pc.prototype,"data",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],pc);
_.p(pc,"yt-live-chat-channel-activity-reputation-renderer",function(){if(z$n===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Ben===void 0&&(Ben=document.createElement("template"));var e=Ben;H.call(t,e.content.cloneNode(!0),D.content.firstChild);z$n=D}D=z$n;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Hyf;var euv;var dB=function(){return _.X.apply(this,arguments)||this};
_.P(dB,_.X);dB.prototype.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Boolean)],dB.prototype,"menuFocused",void 0);_.d([_.M(),_.x("design:type",Object)],dB.prototype,"data",void 0);_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],dB.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],dB);
_.p(dB,"yt-live-chat-donation-announcement-renderer",function(){if(euv===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;Hyf===void 0&&(Hyf=document.createElement("template"));var e=Hyf;H.call(t,e.content.cloneNode(!0),D.content.firstChild);euv=D}D=euv;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var V6o;var by9,qUa=function(){if(by9!==void 0)return by9;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;V6o===void 0&&(V6o=document.createElement("template"));var e=V6o;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return by9=D};var xT=function(){return _.X.apply(this,arguments)||this};
_.P(xT,_.X);_.ql.Object.defineProperties(xT,{template:{configurable:!0,enumerable:!0,get:function(){return qUa()}}});
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],xT.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],xT.prototype,"data",void 0);_.d([_.xL({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],xT);_.p(xT,"yt-live-chat-empty-feed-view-model",function(){return qUa()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var FCw;var aSn;var Ry=function(){return _.X.apply(this,arguments)||this};
_.P(Ry,_.X);Ry.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"}}}}}};
_.ql.Object.defineProperties(Ry.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var D,t;return{runs:[{text:(D=this.data)==null?void 0:(t=D.channelName)==null?void 0:t.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var D=[],t;if((t=this.data)==null||!t.channelBadges)return D;var H;t=_.F((H=this.data)==null?void 0:H.channelBadges);for(H=t.next();!H.done;H=t.next()){H=_.O(H.value,WKm);var e=void 0,V=void 0;if((e=H)==null?0:(V=e.badgeImage)==null?0:V.sources)e=void 0,V={liveChatAuthorBadgeRenderer:{tooltip:H.tooltip,accessibility:{accessibilityData:{label:(e=_.O(H.rendererContext,_.Pm))==null?void 0:e.label}}}},H.badgeImage.sources[0].clientResource?V.liveChatAuthorBadgeRenderer.icon=
{iconType:H.badgeImage.sources[0].clientResource.imageName}:V.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:H.badgeImage.sources},D.push(V)}return D}}});
_.d([_.M(),_.x("design:type",Object)],Ry.prototype,"data",void 0);_.d([_.m("data.channelName"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ry.prototype,"channelName",null);_.d([_.m("data.channelBadges"),_.x("design:type",Array),_.x("design:paramtypes",[])],Ry.prototype,"channelBadges",null);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ry.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],Ry);
_.p(Ry,"yt-live-chat-identity-view-model",function(){if(aSn===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;FCw===void 0&&(FCw=document.createElement("template"));var e=FCw;H.call(t,e.content.cloneNode(!0),D.content.firstChild);aSn=D}D=aSn;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var wqa;var Zyn;var sFn;var hum;var uP=function(){var D=_.X.apply(this,arguments)||this;D.hidden=!1;D.supportsInlineActionButtons=!0;return D};
_.P(uP,_.X);uP.prototype.ready=function(){var D;((D=document.querySelector("yt-live-chat-app"))==null?0:D.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
uP.prototype.dataChanged=function(D){var t=(0,_.cT)(_.Kg(this.hostElement).querySelector("#detail-text"));t.textContent="";(D==null?0:D.detailText)&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D.detailText))};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],uP.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],uP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M({observer:"dataChanged"}),_.x("design:type",Object)],uP.prototype,"data",void 0);
_.d([_.M({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.x("design:type",Object)],uP.prototype,"hidden",void 0);_.d([_.Y({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],uP);
_.p(uP,"yt-live-chat-legacy-paid-message-renderer",function(){if(hum===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;sFn===void 0&&(sFn=document.createElement("template"));var e=sFn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);hum=D}D=hum;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var G86;var Ema;var KCf={},Ww=function(){return _.ng.apply(this,arguments)||this};
_.P(Ww,_.ng);Ww.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Ww.prototype.onLiveChatMembershipItemBehaviorClick=Ww.prototype.onLiveChatMembershipItemBehaviorClick;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ww.prototype,"data",void 0);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Ww.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.d([_.Cg()],Ww);
KCf.YtLiveChatMembershipItemBehavior=[Ww.prototype,_.y.YtRendererBehavior];var Iy=function(){var D=_.X.apply(this,arguments)||this;D.supportsInlineActionButtons=!0;D.hasPrimaryHeaderText=!1;D.showOnlyHeader=!1;D.authorBadges=[];D.modern=_.r("web_button_rework_with_live");D.buttonOverrides={style:"overlay",type:"filled"};return D};
_.P(Iy,_.X);_.q=Iy.prototype;_.q.shouldSupportInlineActionButtons=function(){return!0};
_.q.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.q.ready=function(){var D=document.querySelector("yt-live-chat-app");D&&D.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.q.messageChanged=function(){var D=this.data.message,t=(0,_.cT)(_.Kg(this.hostElement).querySelector("#message"));t.textContent="";D&&t.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(D))};
_.q.computeHasPrimaryHeaderText=function(D){return!(!D||!D.headerPrimaryText)};
_.q.computeShowOnlyHeader=function(D,t){return this.isMessageEmpty(D,t)};
_.q.computeAuthorBadges=function(D){return D.authorBadges||[]};
_.q.isMessageEmpty=function(D,t){return!D||D.empty?!0:!D.message&&!D.inputField&&!t};
_.q.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.q.getInputElement=function(){return _.Kg(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.q.inputFocus=function(){var D=this.getInputElement();D&&D.focus()};
_.q.inputInsertEmoji=function(D){var t=this.getInputElement();t&&t.insertEmoji(D)};
_.q.inputMessage=function(){var D=this.getInputElement();return D&&this.data.inputField?(D.completeEmojis(),_.ui(D.liveChatRichMessageInput)):null};
_.q.onFooterButtonClick=function(){this.data.footerButton&&_.Gf(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.q.shouldSupportWholeItemClick=function(){return!0};
Iy.prototype.isDeletedChanged=Iy.prototype.isDeletedChanged;Iy.prototype.messageChanged=Iy.prototype.messageChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],Iy.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.C(KCf.YtLiveChatMembershipItemBehavior),_.x("design:type",Object)],Iy.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Iy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Iy.prototype,"data",void 0);_.d([_.M({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Iy.prototype,"hasPrimaryHeaderText",void 0);_.d([_.M({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.x("design:type",Object)],Iy.prototype,"showOnlyHeader",void 0);
_.d([_.M({computed:"computeAuthorBadges(data)"}),_.x("design:type",Array)],Iy.prototype,"authorBadges",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Iy.prototype,"modern",void 0);_.d([_.Os("data.message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iy.prototype,"messageChanged",null);_.d([_.Os("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Iy.prototype,"isDeletedChanged",null);
_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Iy);
_.p(Iy,"yt-live-chat-membership-item-renderer",function(){if(Ema===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;G86===void 0&&(G86=document.createElement("template"));var e=G86;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Ema=D}D=Ema;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Nb4;var k8w;var QC=function(){return _.X.apply(this,arguments)||this};
_.P(QC,_.X);QC.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],QC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],QC.prototype,"data",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],QC);
_.p(QC,"yt-live-chat-mode-change-message-renderer",function(){if(k8w===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Nb4===void 0&&(Nb4=document.createElement("template"));var e=Nb4;H.call(t,e.content.cloneNode(!0),D.content.firstChild);k8w=D}D=k8w;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Tbw;var cJ9;var yC=function(){return _.X.apply(this,arguments)||this};
_.P(yC,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yC.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],yC.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],yC.prototype,"data",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],yC);
_.p(yC,"yt-live-chat-moderation-message-renderer",function(){if(cJ9===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;Tbw===void 0&&(Tbw=document.createElement("template"));var e=Tbw;H.call(t,e.content.cloneNode(!0),D.content.firstChild);cJ9=D}D=cJ9;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var jFn;var $h6;var Bw=function(){var D=_.X.apply(this,arguments)||this;D.modern=_.r("web_button_rework");return D};
_.P(Bw,_.X);Bw.prototype.onClick=function(){var D;if((D=this.data)!=null&&D.onClickCommand){var t;_.$P.instance.resolveCommand((t=this.data)==null?void 0:t.onClickCommand)}};
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Bw.prototype,"modern",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.hX),_.x("design:type",Object)],Bw.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],Bw.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Bw.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Bw.prototype,"data",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],Bw);
_.p(Bw,"yt-live-chat-offer-click-count-message-renderer",function(){if($h6===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;jFn===void 0&&(jFn=document.createElement("template"));var e=jFn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);$h6=D}D=$h6;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var iyw;var rJ4=function(){return _.X.apply(this,arguments)||this};
_.P(rJ4,_.X);_.d([_.M(),_.x("design:type",Object)],rJ4.prototype,"data",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],rJ4);
_.p(rJ4,"yt-live-chat-placeholder-item-renderer",function(){if(iyw===void 0){var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);iyw=D}D=iyw;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var Oy9;var UhV;var omn=new tG(7),zG=function(){var D=_.X.apply(this,arguments)||this;D.data={};return D};
_.P(zG,_.X);zG.prototype.dataChanged=function(){var D;((D=this.data)==null?0:D.class)&&_.kL(this.hostElement,this.data.class,!0);var t;((t=this.oldData)==null?0:t.class)&&_.kL(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
zG.prototype.computeTimestampString=function(D){return omn.format(new Date(D/1E3))};
zG.prototype.dataChanged=zG.prototype.dataChanged;_.d([_.M(),_.x("design:type",Object)],zG.prototype,"data",void 0);_.d([_.M({computed:"computeTimestampString(data.timestampUsec)"}),_.x("design:type",String)],zG.prototype,"timestampString",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zG.prototype,"dataChanged",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],zG);
_.p(zG,"yt-live-chat-server-error-message",function(){if(UhV===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;Oy9===void 0&&(Oy9=document.createElement("template"));var e=Oy9;H.call(t,e.content.cloneNode(!0),D.content.firstChild);UhV=D}D=UhV;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var PNf;var nm6;var DG=function(){var D=_.X.apply(this,arguments)||this;D.defaultToFilledIcon=!1;return D};
_.P(DG,_.X);DG.prototype.computeHasPrimaryColorIcon=function(D){return D==="SPARK"||D==="SPONSORSHIP_STAR"};
DG.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],DG.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],DG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],DG.prototype,"defaultToFilledIcon",void 0);_.d([_.M(),_.x("design:type",Object)],DG.prototype,"data",void 0);
_.d([_.M({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.x("design:type",Boolean)],DG.prototype,"hasPrimaryColorIcon",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],DG);
_.p(DG,"yt-live-chat-viewer-engagement-message-renderer",function(){if(nm6===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;PNf===void 0&&(PNf=document.createElement("template"));var e=PNf;H.call(t,e.content.cloneNode(!0),D.content.firstChild);nm6=D}D=nm6;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var CNa;var tk=function(){var D=_.X.apply(this,arguments)||this;D.modernUpdate=!1;D.buttonStyle="overlay";D.buttonType="filled";return D};
_.P(tk,_.X);tk.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
tk.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],tk.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],tk.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],tk.prototype,"modernUpdate",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],tk.prototype,"buttonStyle",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],tk.prototype,"buttonType",void 0);
_.d([_.Y({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],tk);
_.p(tk,"ytd-ad-hover-text-button-renderer",function(){if(CNa!==void 0)return CNa;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return CNa=D},{mode:1});var mhm;var HJ=function(){var D=_.X.apply(this,arguments)||this;D.buttonOverrides={size:"XS"};D.modern=_.r("web_button_rework");return D};
_.P(HJ,_.X);HJ.prototype.onHelpTap=function(D){this.data&&this.data.informationDialog&&(_.Gf(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),D.preventDefault(),D.stopPropagation())};
_.d([_.M(),_.x("design:type",Object)],HJ.prototype,"buttonOverrides",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],HJ.prototype,"modern",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],HJ.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],HJ);
_.p(HJ,"ytd-live-chat-purchased-product-message-renderer",function(){if(mhm!==void 0)return mhm;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return mhm=D},{mode:1});var M6f;var SUB;var eL=function(){var D=_.X.apply(this,arguments)||this;D.isContainerDeleted=!1;return D};
_.P(eL,_.X);eL.prototype.onContextMenuClick=function(D){this.ytLiveChatItemBehavior.showContextMenu(D)};
eL.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))};
eL.prototype.isContainerDeletedChanged=eL.prototype.isContainerDeletedChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],eL.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],eL.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],eL.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],eL.prototype,"isContainerDeleted",void 0);
_.d([_.M(),_.x("design:type",String)],eL.prototype,"deletedStateMessage",void 0);_.d([_.Os("isContainerDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eL.prototype,"isContainerDeletedChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],eL);
_.p(eL,"ytd-sponsorships-live-chat-header-renderer",function(){if(SUB!==void 0)return SUB;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return SUB=D},{mode:1});var Vx=function(){var D=_.X.apply(this,arguments)||this;D.modern=_.r("web_button_rework_with_live");D.buttonOverrides={style:"overlay",type:"filled"};return D};
_.P(Vx,_.X);Vx.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]]"}}}}}};
Vx.prototype.onCtaButtonClick=function(){var D,t=_.O((D=this.data)==null?void 0:D.optInPrompt,_.aj);if(D=this.maybeGetButtonCommand(t)){var H;(H=_.Pc())==null||H.clickCommand(D)}};
Vx.prototype.maybeGetButtonCommand=function(D){return!D||!D.command||_.O(D.command,n$n)===void 0&&_.O(D.command,PSv)===void 0?null:D.command};
Vx.prototype.shouldHideOptinPrompt=function(D,t){return!D||t};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Vx.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],Vx.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Vx.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Vx.prototype,"modern",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Vx);
_.p(Vx,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(M6f!==void 0)return M6f;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return M6f=D},{mode:1});var Xqv;var bk=function(){return _.X.apply(this,arguments)||this};
_.P(bk,_.X);bk.prototype.onContextMenuClick=function(D){this.ytLiveChatItemBehavior.showContextMenu(D)};
bk.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))};
bk.prototype.isDeletedChanged=bk.prototype.isDeletedChanged;_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],bk.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],bk.prototype,"data",void 0);_.d([_.Os("isDeleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bk.prototype,"isDeletedChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],bk);
_.p(bk,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(Xqv!==void 0)return Xqv;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Xqv=D},{mode:1});var qg=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return D};
_.P(qg,_.X);_.q=qg.prototype;
_.q.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"}}}};
_.q.handleLiveChatAction=function(D){_.O(D,NIV)?this.handleMarkChatItemAsDeletedAction(_.O(D,NIV)):_.O(D,KKQ)&&this.handleRemoveChatItemAction(_.O(D,KKQ))};
_.q.handleLiveChatActions=function(D){D.forEach(this.handleLiveChatAction,this)};
_.q.handleMarkChatItemAsDeletedAction=function(D){var t=this,H;((H=this.data)==null?0:H.items)&&this.data.items.forEach(function(e,V){var b=Object.keys(e)[0];Object.values(e)[0].id===D.targetItemId&&t.markAsDeleted("data.items",V,b,D.deletedStateMessage,D.showOriginalContentMessage)})};
_.q.handleRemoveChatItemAction=function(D){var t=this,H;((H=this.data)==null?0:H.items)&&this.data.items.forEach(function(e,V){Object.values(e)[0].id===D.targetItemId&&t.splice("data.items",V,1)})};
_.q.markAsDeleted=function(D,t,H,e,V){D=[D,t,H].join(".");this.set(D+".deletedStateMessage",e);this.set(D+".showOriginalContentMessage",V)};
_.d([_.M(),_.x("design:type",Object)],qg.prototype,"data",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],qg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],qg.prototype,"ytActionHandlerBehavior",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],qg);
_.p(qg,"yt-live-chat-item-display-list-renderer",function(){if(Zyn===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;wqa===void 0&&(wqa=document.createElement("template"));var e=wqa;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Zyn=D}D=Zyn;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var fSf;var LCm,AJ3=function(){if(LCm!==void 0)return LCm;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;fSf===void 0&&(fSf=document.createElement("template"));var e=fSf;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return LCm=D};var Fn=function(){var D=_.X.apply(this,arguments)||this;D.isHeader=!1;return D};
_.P(Fn,_.X);Fn.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.ql.Object.defineProperties(Fn,{template:{configurable:!0,enumerable:!0,get:function(){return AJ3()}}});
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Fn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Fn.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Fn.prototype,"isHeader",void 0);_.d([_.xL({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Fn);_.p(Fn,"yt-live-chat-item-display-renderer",function(){return AJ3()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var gmv,JJf,dh9,pqQ;
gmv={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}};JJf={home:"eohps",search:"eosps",watch:"eowps"};_.YUV=["watch","search","home"];
_.aM=function(){this.JSC$14298_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14298_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.YC("PRECONSTRUCTION_DELAY",0);this.signals_=_.EK();this.targetPage_=""};
_.aM.prototype.init=function(D,t){D=D===void 0?"":D;t=t===void 0?null:t;if(this.JSC$14298_isInitialized_)this.abort();else if(this.JSC$14298_isInitialized_=!0,D&&_.lS3(this,D),t){var H=_.Kp(this.signals_,"pcl")?0:10,e=function(){for(var V=0,b;b=_.YUV[V++];)b!=D&&b!=t&&this.pendingPages_.push(b);_.vm3(this)}.bind(this);
this.signals_.parkOrScheduleJob(e,H,"pcl")}};
_.aM.prototype.abort=function(){this.fragmentJobId_&&(_.Jy.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);pqQ(this)};
_.lS3=function(D,t){D.JSC$14298_isInitialized_&&!D.targetPage_&&(D.targetPage_=t,dh9(D,t),D.isInitialPass_=!1,dh9(D,t),D.signals_.processSignal(JJf[D.targetPage_]),pqQ(D),_.vm3(D))};
_.vm3=function(D){D.pendingPages_.length&&!D.pagePreparerJobId_&&(D.pagePreparerJobId_=_.C7(_.Jy,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.lS3(this,this.pendingPages_.shift())}.bind(D),D.DEFAULT_DELAY_))};
dh9=function(D,t){if(t=gmv[t])for(var H in t){var e=!1,V=H;H.charAt(0)=="~"&&(e=!0,V=H.substring(1));var b=t[H];b=typeof b=="object"?b:{count:b};t[H]=b;b.componentName=V;b.count>0&&(D.isInitialPass_?e||D.isSeenDuringInitialPass_[V]||(D.JSC$14298_queue_.push({componentName:V,count:1,signals:b.signals}),D.isSeenDuringInitialPass_[V]=!0,b.count--):D.JSC$14298_queue_.push(b))}};
pqQ=function(D){D.JSC$14298_queue_.length=0;D.targetPage_="";D.isInitialPass_=!0;D.signals_.processSignal("eop")};
_.aM.getInstance=function(){return _.Vd(_.aM)};var xh4=function(){this.signals=_.EK();this.init()};
xh4.prototype.startPreconstruction=function(){_.aM.getInstance().init(_.lh("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
xh4.prototype.init=function(){RuQ(this);window.Polymer&&Eow&&dgD();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var D=_.VA.ytcsi;if(D&&D.gt&&(D=D.gt())&&D.tick&&(D.tick.aft>0||D.tick.pbs>0)&&(_.lh("IS_HOMEPAGE_COLD")||_.lh("IS_RESULTS_PAGE_COLD")||_.lh("IS_WATCH_PAGE_COLD"))){uT3(this);break a}Lxu(MnX,this.onNotifications,this)}};
var RuQ=function(D){var t=function(){D.signals.processSignal("dl")};
document.readyState==="complete"?(_.uh(Error("yh"),"WARNING"),t()):_.sHX(window,"load",t)};
xh4.prototype.onNotifications=function(D){D.timer||(_.lh("IS_HOMEPAGE_COLD")||_.lh("IS_RESULTS_PAGE_COLD")||_.lh("IS_WATCH_PAGE_COLD"))&&uT3(this)};
var uT3=function(D){D.signals.parkOrScheduleJob(function(){D.signals.processSignal("eocs")},10,"eor")};
new xh4;var wt,WCf=function(){return _.ng.apply(this,arguments)||this};
_.P(WCf,_.ng);_.q=WCf.prototype;_.q.enableActiveViewMeasurement=function(D){if(this.isActiveViewEnabled(D)){var t=this.getUrlPrefixesFromCommand(D.viewableCommands);D=this.getUrlPrefixesFromCommand(D.endOfSessionCommands);if(!wt){var H=_.ZU("custom_active_view_tos_timeout_ms");wt=H>0&&H!==36E5?new $_R(this.getVersion(),H):new $_R(this.getVersion())}rvX(wt,this.hostElement);O$u(wt,this.hostElement,t,D)}};
_.q.stopActiveViewMeasurement=function(){wt&&rvX(wt,this.hostElement)};
_.q.isActiveViewEnabled=function(D){return!!D&&(this.hasAtLeastOneUrl(D.viewableCommands)||this.hasAtLeastOneUrl(D.endOfSessionCommands))};
_.q.hasAtLeastOneUrl=function(D){return!!D&&D.length>0&&D[0].loggingUrls!=null&&D[0].loggingUrls.length>0};
_.q.getVersion=function(){var D=_.YC("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(D==null?void 0:D.length)===2?D[1]:null};
_.q.getUrlPrefixesFromCommand=function(D){if(!D)return[];var t=[];D=_.F(D);for(var H=D.next();!H.done;H=D.next())if(H=H.value,H.loggingUrls){H=_.F(H.loggingUrls);for(var e=H.next();!e.done;e=H.next())e=e.value,e.baseUrl&&t.push(e.baseUrl)}return t};
_.d([_.Cg()],WCf);var ZG=[WCf.prototype];var ISv=function(){return _.ng.apply(this,arguments)||this};
_.P(ISv,_.ng);_.ql.Object.defineProperties(ISv.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_entity_store_from_dependency_injection")?_.V_():_.b_()}}});
_.d([_.Cg()],ISv);_.sx=[bj.prototype,ISv.prototype];var QFm=["ytd-rich-shelf-renderer"],hk=function(){var D=_.ng.apply(this,arguments)||this;D._noAccessors=!0;D.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";D.followUpDialogPromise=null;D.followUpDialogPromiseResolve=null;D.followUpDialogPromiseReject=null;return D};
_.P(hk,_.ng);_.q=hk.prototype;_.q.dismissibleItemIsDismissedChanged_=function(D){_.r("kevlar_fluid_dismiss")&&(D?_.Gf(this.hostElement,"yt-dismissible-item-dismissed"):_.Gf(this.hostElement,"yt-dismissible-item-undismissed"))};
_.q.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.q.dismissibleItemReset_=function(){var D=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 _.c$(function(t,H){D.followUpDialogPromiseResolve=t;D.followUpDialogPromiseReject=H});
_.Gf(this.hostElement,"yt-enable-lockup-interaction")};
_.q.dismissibleItemOnYtServiceRequestSent_=function(D,t){t.actions&&this.dismissibleItemProcessActions(t.actions,D)};
_.q.dismissibleItemOnRequestSent=function(D){if(_.r("web_button_rework"))for(var t=_.F(D.detail),H=t.next();!H.done;H=t.next()){var e=void 0;(H=(e=_.O(H.value,_.$0))==null?void 0:e.actions)&&this.dismissibleItemProcessActions(H,D)}};
_.q.dismissibleItemOnCommandSent=function(D,t){t&&this.dismissibleItemProcessActions(t,D)};
_.q.setAndGetDismissedContentId=function(D){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+D};
_.q.replayDismissAction=function(D){this.dismissibleItemProcessActions([D])};
_.q.dismissibleItemProcessActions=function(D,t){for(var H=0;H<D.length;H++){var e=D[H],V=void 0;((V=_.O(e,_.ch))==null?0:V.commands)&&this.dismissibleItemProcessActions(_.O(e,_.ch).commands,t);if(_.O(e,_.vu)){if(V=_.O(e,_.vu),!V.replaceParentSection||QFm.includes(this.hostElement.nodeName.toLowerCase()))V.groupDismissal&&PNV(this,V.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(V),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.nf("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:e})),e=void 0,(e=t)==null||e.stopPropagation()}else if(_.O(e,E1V))this.dismissibleItemHandleHideEnclosingAction_(),e=void 0,(e=t)==null||e.stopPropagation();else if(_.O(e,gY9))e=_.O(e,gY9),V=void 0,((V=e)==null?0:V.targetGroupId)&&PNV(this,{targetGroupId:e.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.nf("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
e=void 0,(e=t)==null||e.stopPropagation();else if(_.O(e,_.$0))(e=_.O(e,_.$0).actions)&&_.k0(this.hostElement,e,this.hostElement),e=void 0,(e=t)==null||e.stopPropagation();else{var b=V=void 0;((V=_.O(e,_.xw))==null?void 0:V.signal)!=="TELL_US_WHY"||((b=_.O(e,_.xw))==null?0:b.targetId)&&_.r("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),e=void 0,(e=t)==null||e.stopPropagation())}}};
_.q.dismissibleItemOnYtServiceRequestCompleted_=function(D,t){var H=this.get("feedbackResponses.0.followUpDialog",t.data);H?this.followUpDialogPromiseResolve(H):t.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(t.actions,D)};
_.q.dismissibleItemHandleReplaceEnclosingAction_=function(D){this.dismissedRenderer=D.item;this.isDismissed=!0;var t=null;(t=_.Kg(this.hostElement).querySelector("#dismissed"))&&_.Vi(this,function(){_.tp(t)});
_.Gf(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.q.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.q.dismissibleItemHandleUndoFeedbackAction_=function(){_.Gf(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.q.dismissibleItemHandleTellUsWhySignalAction_=function(){var D=this;this.followUpDialogPromise.then(function(t){D.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:t}})})};
hk.prototype.dismissibleItemOnYtServiceRequestCompleted_=hk.prototype.dismissibleItemOnYtServiceRequestCompleted_;hk.prototype.dismissibleItemOnCommandSent=hk.prototype.dismissibleItemOnCommandSent;hk.prototype.dismissibleItemOnRequestSent=hk.prototype.dismissibleItemOnRequestSent;hk.prototype.dismissibleItemOnYtServiceRequestSent_=hk.prototype.dismissibleItemOnYtServiceRequestSent_;hk.prototype.dismissibleItemDataChanged_=hk.prototype.dismissibleItemDataChanged_;
hk.prototype.dismissibleItemIsDismissedChanged_=hk.prototype.dismissibleItemIsDismissedChanged_;_.d([_.C(_.oy),_.x("design:type",Object)],hk.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],hk.prototype,"ytdReduxBehavior",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],hk.prototype,"isDismissed",void 0);_.d([_.M(),_.x("design:type",Object)],hk.prototype,"dismissedRenderer",void 0);
_.d([_.Os("isDismissed"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean]),_.x("design:returntype")],hk.prototype,"dismissibleItemIsDismissedChanged_",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hk.prototype,"dismissibleItemDataChanged_",null);
_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],hk.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.d([_.rx("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],hk.prototype,"dismissibleItemOnRequestSent",null);
_.d([_.rx("yt-dismissible-item-action"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Array]),_.x("design:returntype")],hk.prototype,"dismissibleItemOnCommandSent",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],hk.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.d([_.Cg()],hk);_.GI=[_.oy,_.sx,hk.prototype];var Ex=function(){var D=_.ng.apply(this,arguments)||this;D.disableGridStateAware=!1;D.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};D.currentGridClass="";return D};
_.P(Ex,_.ng);Ex.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.Vi(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var D=this.gridStateAwareGetElement();_.kL(D,"grid",!0)}};
Ex.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Ex.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Kg(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Ex.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var D="grid-disabled";else{D=_.mO.getInstance();var t=this.get("pageSubtype");D=t&&gEm.includes(t)?"grid-disabled":D.currentSnapState_?D.currentSnapState_.className:null}(t=this.gridStateAwareGetElement())&&D!==this.currentGridClass&&(D&&_.kL(t,D,!0),this.currentGridClass&&_.kL(t,this.currentGridClass,!1),this.currentGridClass=D)};
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Ex.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",String)],Ex.prototype,"gridStateAwareSizingElementSelector",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ex.prototype,"disableGridStateAware",void 0);_.d([_.Cg()],Ex);_.Ko=[Ex.prototype,_.dW.YtActionHandlerBehavior];_.Ng=new _.kI("GUIDE_TOKEN");var TI;_.kn={};TI=function(){var D=_.ng.apply(this,arguments)||this;D.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 D};
_.P(TI,_.ng);_.q=TI.prototype;_.q.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.q.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var D=_.qS().resolve(_.by(_.Ng));D&&(this.guidePersistentAndVisible=D.getGuidePersistentAndVisible(),this.activeEndpoint=D.getActiveEndpoint(),this.guideOpened=D.getGuideOpened(),this.miniGuideVisible=D.getMiniGuideVisible())};
_.q.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.q.handleGuideStateAction=function(D){this.guidePersistentAndVisible=D};
_.q.handleMiniGuideStateAction=function(D){this.miniGuideVisible=D};
_.q.handleGuideOpenedAction=function(D){this.guideOpened=D};
_.q.handleActiveEndpointAction=function(D){this.activeEndpoint=D};
TI.prototype.onActiveEndpointChange=TI.prototype.onActiveEndpointChange;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],TI.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],TI.prototype,"guidePersistentAndVisible",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],TI.prototype,"miniGuideVisible",void 0);_.d([_.M(),_.x("design:type",Object)],TI.prototype,"activeEndpoint",void 0);
_.d([_.Os("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TI.prototype,"onActiveEndpointChange",null);_.d([_.M(),_.x("design:type",Boolean)],TI.prototype,"guideOpened",void 0);_.d([_.Cg()],TI);_.kn.YtdGuideStateAwareBehavior=[];_.kn.YtdGuideStateAwareBehavior.push(TI.prototype,_.dW.YtActionHandlerBehavior);var yJn=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],cJ=function(){var D=_.ng.apply(this,arguments)||this;D.hoverJobId=0;D.JSC$14329_touched=!1;return D};
_.P(cJ,_.ng);_.q=cJ.prototype;_.q.created=function(){this.useExpandableTooltip=!yJn.includes(this.is)};
_.q.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.q.detached=function(){this.useExpandableTooltip=!1};
_.q.lockupOnDown=function(D){this.interactionElement&&!_.ed(_.bK(D),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.q.lockupOnUp=function(D){this.interactionElement&&!_.ed(_.bK(D),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.q.onTouchStart=function(){this.JSC$14329_touched=!0};
_.q.lockupOnMouseEnter=function(){var D=this,t=_.ZU("kevlar_lockup_hover_delay",-1);this.JSC$14329_touched&&t>=0?(_.Jy.cancelJob(this.hoverJobId),this.hoverJobId=_.Jy.addJob(function(){D.lockupIsHovered=!0},8,t),this.JSC$14329_touched=!1):this.lockupIsHovered=!0};
_.q.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Jy.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.q.lockupOnPopupClosed=function(D,t){var H;((H=t.popupRenderer)==null?void 0:H.is)==="ytd-menu-popup-renderer"&&(D=t.popupRenderer.veData,t=_.v3(),D&&t&&_.D8(t,[D]))};
_.q.lockupOnLockupRequested=function(D){var t=D.detail.videoIds[0],H;D.detail&&t===((H=this.data)==null?void 0:H.videoId)&&(D.detail.returnValue=[this.data])};
_.q.lockupOnYtServiceRequestSent=function(D,t){if(D=t.actions)for(var H=0;H<D.length;H++){var e=D[H];if(e.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&t.ajaxPromise){var V=void 0,b=(V=_.O(t.endpoint,_.b2))==null?void 0:V.playlistId;V=void 0;e=(V=e.removedVideoId)!=null?V:"";wWV(_.k$(),e,b)}else e.action==="ACTION_REMOVE_VIDEO"&&t.ajaxPromise&&(b=void 0,e=(b=e.setVideoId)!=null?b:"",_.ZFQ(_.k$(),e))}};
_.q.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.q.lockupOnLockupEnabled=function(){if(!this.$){var D=_.qS().resolve(_.bO).getCurrentPage(),t=this.getParentRenderer?this.getParentRenderer():void 0;_.Yw(new _.nZ("component not ready",this.is,this.isAttached,D==null?void 0:D.is,t==null?void 0:t.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
cJ.prototype.lockupOnLockupEnabled=cJ.prototype.lockupOnLockupEnabled;cJ.prototype.lockupOnLockupDisabled=cJ.prototype.lockupOnLockupDisabled;cJ.prototype.lockupOnYtServiceRequestSent=cJ.prototype.lockupOnYtServiceRequestSent;cJ.prototype.lockupOnLockupRequested=cJ.prototype.lockupOnLockupRequested;cJ.prototype.lockupOnPopupClosed=cJ.prototype.lockupOnPopupClosed;cJ.prototype.lockupOnMouseLeave=cJ.prototype.lockupOnMouseLeave;cJ.prototype.lockupOnMouseEnter=cJ.prototype.lockupOnMouseEnter;
cJ.prototype.onTouchStart=cJ.prototype.onTouchStart;cJ.prototype.lockupOnUp=cJ.prototype.lockupOnUp;cJ.prototype.lockupOnDown=cJ.prototype.lockupOnDown;_.d([_.M(),_.x("design:type",Object)],cJ.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],cJ.prototype,"lockupIsHovered",void 0);_.d([_.M(),_.x("design:type",Boolean)],cJ.prototype,"lockupTouchTriggered",void 0);_.d([_.M(),_.x("design:type",Boolean)],cJ.prototype,"useExpandableTooltip",void 0);
_.d([_.o5("#interaction"),_.x("design:type",Object)],cJ.prototype,"interactionElement",void 0);_.d([_.rx("down"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],cJ.prototype,"lockupOnDown",null);_.d([_.rx("up"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],cJ.prototype,"lockupOnUp",null);
_.d([_.rx("touchstart"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cJ.prototype,"onTouchStart",null);_.d([_.rx("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cJ.prototype,"lockupOnMouseEnter",null);_.d([_.rx("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cJ.prototype,"lockupOnMouseLeave",null);
_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],cJ.prototype,"lockupOnPopupClosed",null);_.d([_.rx("yt-lockup-requested"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],cJ.prototype,"lockupOnLockupRequested",null);
_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],cJ.prototype,"lockupOnYtServiceRequestSent",null);_.d([_.rx("yt-disable-lockup-interaction"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cJ.prototype,"lockupOnLockupDisabled",null);
_.d([_.rx("yt-enable-lockup-interaction"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cJ.prototype,"lockupOnLockupEnabled",null);_.d([_.Cg()],cJ);_.jL=[cJ.prototype];_.Bb6={YtdReduxBehavior:[]};_.Bb6.YtdReduxBehavior.push.apply(_.Bb6.YtdReduxBehavior,_.sx);var $n=function(){var D=_.ng.apply(this,arguments)||this;D._noAccessors=!0;D.disableNowPlaying=!1;D.disableTooltips=!1;D.useHoveredProperty=!1;D.hovered=!1;D.isThumbnailHovered_=!1;D.addBackground=_.r("kevlar_thumbnail_bg");D.nowPlaying=!1;D.disableRounding=!1;D.size="small";return D};
_.P($n,_.ng);_.q=$n.prototype;_.q.computeThumbnailOverlaySidePanelWidth_=function(D,t){return D-t};
_.q.computeSize=function(D,t){if(!this.disableRounding){if(!D&&!t)return"small";D=Math.max(D||0,t||0);return D>=256?"large":D>=96?"medium":"small"}};
_.q.computeFinalHoveredState_=function(D,t,H){return this.nowPlaying?!1:_.r("kevlar_thumbnail_fluid")&&D?t:H};
_.q.computeHoverOverlays_=function(D,t){return D&&t?t:void 0};
_.q.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.q.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.q.checkMiniplayer_=function(){var D;if(((D=this.data)==null?0:D.playlistSetVideoId)&&_.r("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{D=_.d3();var t=D.currentEndpoint;!this.disableNowPlaying&&t&&_.O(t,_.Hh)&&this.data?(t=_.O(t,_.Hh),this.nowPlaying=this.data.playlistId?t.playlistId===this.data.playlistId:t.videoId===this.data.videoId,this.isVideoPlaying=D==null?void 0:D.isVideoPlaying):this.nowPlaying=!1}};
$n.prototype.checkMiniplayer_=$n.prototype.checkMiniplayer_;$n.prototype.onMouseLeave_=$n.prototype.onMouseLeave_;$n.prototype.onMouseEnter_=$n.prototype.onMouseEnter_;$n.prototype.computeHoverOverlays_=$n.prototype.computeHoverOverlays_;$n.prototype.computeFinalHoveredState_=$n.prototype.computeFinalHoveredState_;$n.prototype.computeSize=$n.prototype.computeSize;$n.prototype.computeThumbnailOverlaySidePanelWidth_=$n.prototype.computeThumbnailOverlaySidePanelWidth_;
_.d([_.C(_.sx),_.x("design:type",Object)],$n.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$n.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Number)],$n.prototype,"height",void 0);_.d([_.M(),_.x("design:type",Boolean)],$n.prototype,"bottomSidePanel",void 0);_.d([_.M(),_.x("design:type",Number)],$n.prototype,"width",void 0);_.d([_.M(),_.x("design:type",Object)],$n.prototype,"disableNowPlaying",void 0);
_.d([_.M({selector:_.vH}),_.x("design:type",Boolean)],$n.prototype,"miniplayerIsActive",void 0);_.d([_.M(),_.x("design:type",Object)],$n.prototype,"disableTooltips",void 0);_.d([_.M(),_.x("design:type",Object)],$n.prototype,"useHoveredProperty",void 0);_.d([_.M(),_.x("design:type",Object)],$n.prototype,"hovered",void 0);_.d([_.M(),_.x("design:type",Object)],$n.prototype,"isThumbnailHovered_",void 0);
_.d([_.M({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.x("design:type",Boolean)],$n.prototype,"finalHoveredState_",void 0);_.d([_.M({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.x("design:type",Number)],$n.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],$n.prototype,"addBackground",void 0);
_.d([_.M({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.x("design:type",Object)],$n.prototype,"hoverOverlays_",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],$n.prototype,"nowPlaying",void 0);_.d([_.M(),_.x("design:type",Boolean)],$n.prototype,"isVideoPlaying",void 0);_.d([_.M(),_.x("design:type",Object)],$n.prototype,"disableRounding",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.x("design:type",Object)],$n.prototype,"size",void 0);_.d([_.rx("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$n.prototype,"onMouseEnter_",null);_.d([_.rx("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$n.prototype,"onMouseLeave_",null);
_.d([_.Os("data","disableNowPlaying","miniplayerIsActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$n.prototype,"checkMiniplayer_",null);_.d([_.Cg()],$n);var zua=[$n.prototype];_.ik={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(D,t){return D+":"+_.I$(t)},
getPlayerListener_:function(D,t,H){D=this.getPlayerListenerKey_(D,t);t=this.playerListeners_.get(D);H&&this.playerListeners_.delete(D);return t},
savePlayerListener_:function(D,t){var H=t.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(D,t),H);return H},
listenToPlayerEvent:function(D,t,H){H=this.savePlayerListener_(t,H);D.addEventListener(t,H)},
listenToPlayerEvents:function(D,t){t.forEach(function(H,e){this.listenToPlayerEvent(D,e,H)}.bind(this))},
unlistenFromPlayerEvent:function(D,t,H){H=this.getPlayerListener_(t,H,!0);D.removeEventListener(t,H)},
unlistenFromPlayerEvents:function(D,t){t.forEach(function(H,e){this.unlistenFromPlayerEvent(D,e,H)}.bind(this))}}};
_.rt=function(){};_.D8v=new _.kI("PLAYER_API_TOKEN");var M6V=!1,LCD,Xq3=!1,gm3;var Zg=function(D,t,H,e,V){_.mg.call(this);var b=this;this.playerId=t;this.webPlayerContextConfig=e;this.q0R=V;this.hIQ=!1;this.api={};this.yx6=this.pJI=null;this.pS6=new _.$x;this.jW={};this.hrr=this.i66=this.elementId=this.bIU=this.config=null;this.er4=!1;this.lK=this.lEI=null;this.lcU={};this.vuR=["onReady"];this.lastError=null;this.eYI=NaN;this.d6U={};this.gD5=0;this.d1=this.targetElement=D;_.c1(this,this.pS6);tlf(this);H?this.gD5=setTimeout(function(){b.loadNewVideoConfig(H)},0):e&&(H5a(this),
erf(this))};
_.P(Zg,_.mg);Zg.prototype.getId=function(){return this.playerId};
Zg.prototype.loadNewVideoConfig=function(D){if(!this.isDisposed()){this.gD5&&(clearTimeout(this.gD5),this.gD5=0);var t=D||{};t instanceof kIQ||(t=new kIQ(t));this.config=t;this.setConfig(D);erf(this);this.isReady()&&Vlf(this)}};
var H5a=function(D){var t;D.webPlayerContextConfig?t=D.webPlayerContextConfig.rootElementId:t=D.config.attrs.id;D.elementId=t||D.elementId;D.elementId==="video-player"&&(D.elementId=D.playerId,D.webPlayerContextConfig?D.webPlayerContextConfig.rootElementId=D.playerId:D.config.attrs.id=D.playerId);var H;((H=D.d1)==null?void 0:H.id)===D.elementId&&(D.elementId+="-player",D.webPlayerContextConfig?D.webPlayerContextConfig.rootElementId=D.elementId:D.config.attrs.id=D.elementId)};
Zg.prototype.setConfig=function(D){this.bIU=D;this.config=b5Q(D);H5a(this);if(!this.i66){var t;this.i66=q6a(this,((t=this.config.args)==null?void 0:t.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var H;if((H=this.config)==null?0:H.attrs)D=this.config.attrs,(t=D.width)&&this.d1&&(this.d1.style.width=zN(Number(t)||t,!0)),(D=D.height)&&this.d1&&(this.d1.style.height=zN(Number(D)||D,!0))};
Zg.prototype.getConfig=function(){return this.bIU};
var Vlf=function(D){if(D.config&&D.config.loaded!==!0)if(D.config.loaded=!0,!D.config.args||D.config.args.autoplay!=="0"&&D.config.args.autoplay!==0&&D.config.args.autoplay!==!1){var t;D.api.loadVideoByPlayerVars((t=D.config.args)!=null?t:null)}else D.api.cueVideoByPlayerVars(D.config.args)},a5o=function(D){var t=!0,H=D.getPlayerElement();
H&&D.config&&(t=H.dataset.version===FAm(D));return t&&!!_.RD("yt.player.Application.create")},erf=function(D){if(!D.isDisposed()&&!D.er4){var t=a5o(D);
if(t&&(D.getPlayerElement()?"html5":null)==="html5")D.hrr="html5",D.isReady()||w2v(D);else if(Z5B(D),D.hrr="html5",t&&D.lK&&D.targetElement)D.targetElement.appendChild(D.lK),w2v(D);else{D.config&&(D.config.loaded=!0);var H=!1;D.lEI=function(){H=!0;var e=sbo(D,"player_bootstrap_method")?_.RD("yt.player.Application.createAlternate")||_.RD("yt.player.Application.create"):_.RD("yt.player.Application.create");var V=D.config?b5Q(D.config):void 0;e&&e(D.targetElement,V,D.webPlayerContextConfig,D.q0R);w2v(D)};
D.er4=!0;t?D.lEI():(_.Iz(FAm(D),D.lEI),(t=hrv(D))&&BIA(t||""),GJw(D)&&!H&&_.bg("yt.player.Application.create",null))}}};
Zg.prototype.getPlayerElement=function(){var D=_.wF(document,this.elementId);!D&&this.d1&&this.d1.querySelector&&(D=this.d1.querySelector("#"+this.elementId));return D};
var w2v=function(D){if(!D.isDisposed()){var t=D.getPlayerElement(),H=!1;t&&t.getApiInterface&&t.getApiInterface()&&(H=!0);if(H){D.er4=!1;if(!sbo(D,"html5_remove_not_servable_check_killswitch")){var e;if((t==null?0:t.isNotServable)&&D.config&&(t==null?0:t.isNotServable((e=D.config.args)==null?void 0:e.video_id)))return}EAB(D)}else D.eYI=setTimeout(function(){w2v(D)},50)}},EAB=function(D){tlf(D);
D.hIQ=!0;var t=D.getPlayerElement();if(t){D.pJI=KAw(D,t,"addEventListener");D.yx6=KAw(D,t,"removeEventListener");var H=t.getApiInterface();H=H.concat(t.getInternalApiInterface());for(var e=D.api,V=0;V<H.length;V++){var b=H[V];e[b]||(e[b]=KAw(D,t,b))}}for(var a in D.jW)D.jW.hasOwnProperty(a)&&D.pJI&&D.pJI(a,D.jW[a]);Vlf(D);D.i66&&D.i66(D.api);D.pS6.publish("onReady",D.api)},KAw=function(D,t,H){var e=t[H];
return function(){var V=_.RE.apply(0,arguments);try{return D.lastError=null,e.apply(t,V)}catch(b){if(H!=="sendAbandonmentPing")throw b.params=H,D.lastError=b,V=new _.nZ("PlayerProxy error in method call",{error:b,method:H,playerId:D.playerId}),V.level="WARNING",V;}}},tlf=function(D){D.hIQ=!1;
if(D.yx6)for(var t in D.jW)D.jW.hasOwnProperty(t)&&D.yx6(t,D.jW[t]);for(var H in D.d6U)D.d6U.hasOwnProperty(H)&&clearTimeout(Number(H));D.d6U={};D.pJI=null;D.yx6=null;t=D.api;for(var e in t)t.hasOwnProperty(e)&&(t[e]=null);t.addEventListener=function(V,b){D.addEventListener(V,b)};
t.removeEventListener=function(V,b){D.removeEventListener(V,b)};
t.destroy=function(){D.dispose()};
t.getLastError=function(){return D.getLastError()};
t.getPlayerType=function(){return D.getPlayerType()};
t.getCurrentVideoConfig=function(){return D.getConfig()};
t.loadNewVideoConfig=function(V){D.loadNewVideoConfig(V)};
t.isReady=function(){return D.isReady()}};
Zg.prototype.isReady=function(){return this.hIQ};
Zg.prototype.addEventListener=function(D,t){var H=this;this.isDisposed();var e=q6a(this,t);e&&(_.l8(this.vuR,D)||this.jW[D]||(t=Na4(this,D),this.pJI&&this.pJI(D,t)),this.pS6.subscribe(D,e),D==="onReady"&&this.isReady()&&setTimeout(function(){e(H.api)},0))};
Zg.prototype.removeEventListener=function(D,t){this.isDisposed()||(t=q6a(this,t))&&this.pS6.unsubscribe(D,t)};
var q6a=function(D,t){var H=t;if(typeof t==="string"){if(D.lcU[t])return D.lcU[t];H=function(){var e=_.RE.apply(0,arguments),V=_.RD(t);if(V)try{V.apply(_.VA,e)}catch(b){throw e=new _.nZ("PlayerProxy error when executing callback",{error:b}),e.level="ERROR",e;}};
D.lcU[t]=H}return H?H:null},Na4=function(D,t){var H=function(e){var V=function(){D.isDisposed();
if(!D.isDisposed())try{D.pS6.publish(t,e!=null?e:void 0)}catch(w){var a=new _.nZ("PlayerProxy error when creating global callback",{error:w.message,event:t,playerId:D.playerId,data:e,originalStack:w.stack,componentStack:w.componentStack});a.level="WARNING";throw a;}};
if(sbo(D,"web_player_publish_events_immediately"))V();else{var b=setTimeout(function(){V();_.J$.remove(D.d6U,String(b))},0);
_.J$.add(D.d6U,String(b),!0)}};
return D.jW[t]=H};
Zg.prototype.getPlayerType=function(){return this.hrr||(this.getPlayerElement()?"html5":null)};
Zg.prototype.getLastError=function(){return this.lastError};
var Z5B=function(D){D.cancel();tlf(D);D.hrr=null;D.config&&(D.config.loaded=!1);var t=D.getPlayerElement();t&&(a5o(D)||!GJw(D)?D.lK=t:(t&&t.destroy&&t.destroy(),D.lK=null));D.targetElement&&_.RS(D.targetElement)};
Zg.prototype.cancel=function(){this.lEI&&_.oZX(FAm(this),this.lEI);clearTimeout(this.eYI);this.er4=!1};
Zg.prototype.disposeInternal=function(){Z5B(this);if(this.lK&&this.config&&this.lK.destroy)try{this.lK.destroy()}catch(t){var D=new _.nZ("PlayerProxy error during disposal",{error:t});D.level="ERROR";throw D;}this.lcU=null;for(D in this.jW)this.jW.hasOwnProperty(D)&&delete this.jW[D];this.bIU=this.config=this.api=null;delete this.targetElement;delete this.d1;_.mg.prototype.disposeInternal.call(this)};
var GJw=function(D){var t,H;D=(t=D.config)==null?void 0:(H=t.args)==null?void 0:H.fflags;return!!D&&D.indexOf("player_destroy_old_version=true")!==-1},FAm=function(D){return D.webPlayerContextConfig?D.webPlayerContextConfig.jsUrl:(D=D.config.assets)?D.js:""},hrv=function(D){return D.webPlayerContextConfig?D.webPlayerContextConfig.cssUrl:(D=D.config.assets)?D.css:""},sbo=function(D,t){if(D.webPlayerContextConfig)var H=D.webPlayerContextConfig.serializedExperimentFlags;
else{var e;if((e=D.config)==null?0:e.args)H=D.config.args.fflags}return(H||"").split("&").includes(t+"=true")},b5Q=function(D){for(var t={},H=_.F(Object.keys(D)),e=H.next();!e.done;e=H.next()){e=e.value;
var V=D[e];t[e]=typeof V==="object"?_.J$.clone(V):V}return t};var pqK={},vmT="player_uid_"+(Math.random()*1E9>>>0);var Ox=function(D,t,H,e,V,b){t=t===void 0?document.createElement("div"):t;this.webPlayerContextConfig=D;this.container=t;this.commandResolver=H;this.apiResolver=RuK();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.TK;e||b?kJw(this):Taa(this);this.pendingPlayerResponse=e;this.pendingWatchNextResponse=V;this.pendingPlayerVars=b;c4f(this)};
Ox.prototype.loadVideoWithPlayerResponse=function(D,t,H){this.loadVideo(D,t,H)};
Ox.prototype.loadVideoWithPlayerVars=function(D){return this.loadVideo(void 0,void 0,D)};
Ox.prototype.destroy=function(D){if(D=_.wF(document,D))D=vmT+"_"+_.I$(D),(D=pqK[D])&&D.dispose()};
var $8a=function(D,t){var H;_.Z(function(e){if(e.nextAddress==1)return D.pendingWatchNextResponse=t,D.synchronousApi?(H=D.synchronousApi,e.jumpTo(2)):e.yield(D.api,3);e.nextAddress!=2&&(H=e.yieldResult);if(!jbv(D,H))return e.return();D.pendingWatchNextResponse&&(H.updateVideoData({raw_watch_next_response:D.pendingWatchNextResponse}),D.pendingWatchNextResponse=void 0);_.n2(e)})},jbv=function(D,t){var H;
if(!(t==null?0:(H=t.isReady)==null?0:H.call(t))){var e;_.Yw(new _.nZ("playerApi is falsey",{synchronousApi:D.synchronousApi,apiResolved:D.apiResolver.resolved,playerApiUndefined:t===void 0,playerApiNull:t===null,playerApiReady:(t==null?void 0:(e=t.isReady)==null?void 0:e.call(t))===!0,playerApiMethods:t?Object.keys(t):[]}));return!1}return!0},i56=function(D,t){if(typeof D[t]==="function")return D[t]()},r4v=function(D){var t=window,H,e=(H=t.ytplayer)==null?void 0:H.bootstrapPlayerContainer;
if((H=e==null?void 0:e.firstElementChild)&&_.bu(H,"html5-video-player")){var V,b,a=(V=t.ytplayer)==null?void 0:(b=V.bootstrapWebPlayerContextConfig)==null?void 0:b.contextId;V=D.webPlayerContextConfig.contextId;if(a&&a===V){e!==D.container&&(e=!1,i56(H,"getPlayerState")===2&&(e=!0),D.container.appendChild(H),e||i56(H,"playVideo"));var w;if((w=t.ytplayer)==null?0:w.bootstrapPlayerResponse)D.bootstrapPlayerResponse=t.ytplayer.bootstrapPlayerResponse}}},c4f=function(D){var t,H,e,V,b;
_.Z(function(a){if(a.nextAddress==1)return D.pageReadyOrDataAvailable?a.jumpTo(2):a.yield(D.pageReadyOrDataAvailableResolver.promise,2);if(a.nextAddress!=4)return!_.r("kevlar_player_unified_player_loading")||SU$()&&fSV()?a.jumpTo(4):a.yield(YUA(),4);r4v(D);if(D.pendingPlayerResponse||D.pendingPlayerVars)t=lST(D.pendingPlayerResponse,D.pendingWatchNextResponse,D.pendingPlayerVars),D.pendingPlayerResponse&&D.pendingPlayerResponse===D.bootstrapPlayerResponse&&(t.loaded=!0),D.bootstrapPlayerResponse=
void 0;H=xhV(D.container,t,D.webPlayerContextConfig);((e=t)==null?0:e.loaded)&&D.pendingWatchNextResponse?($8a(D,D.pendingWatchNextResponse),D.pendingPlayerResponse=void 0,D.pendingPlayerVars=void 0):O5Q(D);V=function(w){H.removeEventListener("onReady",V);D.synchronousApi=w;D.apiResolver.resolve(w)};
H.addEventListener("onReady",V);D.commandResolver!==void 0&&(b=D.commandResolver,H.addEventListener("innertubeCommand",function(w){b(w)}));
_.n2(a)})};
Ox.prototype.loadVideo=function(D,t,H){var e=this,V,b,a,w,h,K,N,k,T;return _.Z(function(c){if(c.nextAddress==1)return e.pendingPlayerResponse=D,e.pendingWatchNextResponse=t,e.pendingPlayerVars=H,kJw(e),e.synchronousApi?(V=e.synchronousApi,c.jumpTo(2)):c.yield(e.api,3);c.nextAddress!=2&&(V=c.yieldResult);if(!jbv(e,V))return c.return(new Promise(function(){}));
a=new Promise(function(U){b=U});
w=function(){var U=V.getPlayerResponse();U&&(V.removeEventListener("onVideoDataChange",w),b(U))};
V.addEventListener("onVideoDataChange",w);if(e.pendingPlayerResponse||e.pendingPlayerVars)e.pendingPlayerResponse&&e.pendingPlayerResponse===e.bootstrapPlayerResponse?(b(e.pendingPlayerResponse),e.pendingWatchNextResponse&&$8a(e,e.pendingWatchNextResponse)):(h=lST(e.pendingPlayerResponse,e.pendingWatchNextResponse,e.pendingPlayerVars),(T=(K=e.pendingPlayerResponse)==null?void 0:(N=K.playerConfig)==null?void 0:(k=N.playbackStartConfig)==null?void 0:k.startPaused)?V.cueVideoByPlayerVars(h.args):V.loadVideoByPlayerVars(h.args)),
O5Q(e),e.bootstrapPlayerResponse=void 0;return c.return(a)})};
var Taa=function(D){if(document.readyState==="complete"||document.readyState==="interactive")kJw(D);else{var t=function(){document.removeEventListener("DOMContentLoaded",t);kJw(D)};
document.addEventListener("DOMContentLoaded",t)}},kJw=function(D){D.pageReadyOrDataAvailable=!0;
D.pageReadyOrDataAvailableResolver.resolve()},O5Q=function(D){D.pendingPlayerResponse=void 0;
D.pendingWatchNextResponse=void 0;D.pendingPlayerVars=void 0};
_.ql.Object.defineProperties(Ox.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Ux=function(D){yB.call(this,D===void 0?"document_active":D);var t=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(H){t.transition("document_disposed",{event:H})});
window.addEventListener("beforeunload",function(H){t.transition("document_disposed_preventable",{event:H})});
window.addEventListener("unload",function(H){t.transition("document_disposed",{event:H});t.hasRun=new Map})};
_.P(Ux,yB);
Ux.prototype.runPreventableDispose=function(D,t){if(!this.hasRun.get("document_disposed_preventable")){D(t==null?void 0:t.event);var H,e;if((t==null?0:(H=t.event)==null?0:H.defaultPrevented)||(t==null?0:(e=t.event)==null?0:e.returnValue)){t.event.returnValue||(t.event.returnValue=!0);t.event.defaultPrevented||t.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
Ux.prototype.runDispose=function(D,t){this.hasRun.get("document_disposed")?this.transition("document_active"):(D(t==null?void 0:t.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Ux.prototype.runFlush=function(D,t){D(t==null?void 0:t.event);this.transition("document_active")};
Ux.prototype.runActive=function(){};var oM=function(D){yB.call(this,D===void 0?"document_visibility_unknown":D);var t=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(H){document.visibilityState==="visible"?t.transition("document_visible",{event:H}):t.transition("document_hidden",
{event:H})});
_.r("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(H){t.transition("document_backgrounded",{event:H})}),window.addEventListener("focus",function(H){t.transition("document_foregrounded",{event:H})}))};
_.P(oM,yB);oM.prototype.runVisible=function(D,t){D(t==null?void 0:t.event);_.r("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
oM.prototype.runHidden=function(D,t){D(t==null?void 0:t.event);_.r("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
oM.prototype.runBackgrounded=function(D,t){D(t==null?void 0:t.event)};
oM.prototype.runForegrounded=function(D,t){D(t==null?void 0:t.event)};var PJ=function(){this.teardownLifecycle=new Ux;this.visibilityLifecycle=new oM};
PJ.prototype.install=function(){var D=_.RE.apply(0,arguments),t=this;D.forEach(function(H){t.teardownLifecycle.install(H)});
D.forEach(function(H){t.visibilityLifecycle.install(H)})};var no=function(){PJ.call(this);var D={};this.install((D.document_disposed={callback:this.abortSlisAndFlush},D));_.r("combine_ve_grafts")&&(D={},this.install((D.document_disposed={callback:this.flushInteractionLoggingAttachVes},D)));D={};this.install((D.flush_logs={callback:this.logFinalPayload},D));_.r("web_log_cfg_cee_ks")||_.C7(_.Jy,U89)};
_.P(no,PJ);var uTT=function(){no.loggingInstance||(no.loggingInstance=new no);return no.loggingInstance};
no.prototype.logFinalPayload=function(){if(_.r("web_fp_via_jspb")){var D=new p3n,t=_.v3();t&&_.M3(D,1,t);t=_.r("jspb_sparse_encoded_pivot")?new n7([{}]):new n7;_.PU(t,380,dl9,D);NJT("finalPayload",t);_.r("web_fp_via_jspb_and_json")&&_.L7("finalPayload",{csn:_.v3()})}else _.L7("finalPayload",{csn:_.v3()})};
no.prototype.abortSlisAndFlush=function(){Hon(NB);kS!=null&&kS.flush()};
no.prototype.flushInteractionLoggingAttachVes=function(){$ia(_.Pc())};
var U89=function(){var D=_.YC("CLIENT_EXPERIMENT_EVENTS");if(D){var t=enT();D=_.F(D);for(var H=D.next();!H.done;H=D.next())H=H.value,t(H)&&_.L7("genericClientExperimentEvent",{eventType:H});delete _.g1.CLIENT_EXPERIMENT_EVENTS}};var oAQ={};
oAQ.YtPlayerBehavior=[_.ik.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 D=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.TK;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;WCV(function(){D.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.pn(this,"pan-down"),_.r("kevlar_pinch_fullscreen")&&_.zi().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.r("kevlar_pinch_fullscreen")&&_.zi().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(D,t,H){var e=this;sI(this.useUnifiedPlayer_());if(this.mainAppPlayer_)sI(!1,"MainAppPlayer already created.");else{var V=_.r("kevlar_player_container_query_killswitch")?this.$.container:_.Kg(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Ox(this.getWebPlayerContextConfig_(),V,function(b){return _.rj(b,e.hostElement)},D,t,H);
this.mainAppPlayer_.api.then(function(b){e.player_=b;e.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&i39.resolve(b)})}},
loadVideoWithPlayerResponse:function(D,t){var H=this;if(this.useUnifiedPlayer_()){var e=this.watchNextData,V,b=(V=D.videoDetails)==null?void 0:V.videoId,a,w,h;(V=(a=this.watchNextData)==null?void 0:(w=a.currentVideoEndpoint)==null?void 0:(h=w.watchEndpoint)==null?void 0:h.videoId)&&b!=V&&(e=void 0,_.r("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(D,e,t):this.createMainAppPlayer_(D,e,t);this.mainAppPlayer_.api.then(function(){_.Gf(H.hostElement,
"yt-player-updated")})}else this.update(nmX(D,t))},
loadVideoWithPlayerVars:function(D){var t=this;this.useUnifiedPlayer_()?(_.r("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(D):this.createMainAppPlayer_(void 0,void 0,D),this.mainAppPlayer_.api.then(function(){_.Gf(t.hostElement,"yt-player-updated")})):this.update({args:D})},
update:function(D){var t=this;if(this.useUnifiedPlayer_())sI(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(D);var H=LKV(D.args);H&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==H&&Object.assign(D.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(D).then(function(e){_.Gf(t.hostElement,"yt-player-updated",_.r("kevlar_player_updated_obsolete_player_killswitch")?
e:void 0)})}_.Jp(new _.nZ("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(t.getPlayerPromise(),2);H=e.yieldResult;if(!H)throw Error("Ah");D&&t.updatePlayerPlaylist_(D);_.n2(e)})},
acquireApi_:function(D){var t=this;if(this.useUnifiedPlayer_())sI(!1,"Invalid method call in kevlar_unified_player.");else return _.Jy.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(sI(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(H){t.shouldAutoplay_(D)?H.loadVideoByPlayerVars(D.args):H.cueVideoByPlayerVars(D.args)})):this.initPlayerPromise_=this.initPlayerContainer_(D),this.initPlayerPromise_},
initPlayerContainer_:function(D){var t=this;if(this.useUnifiedPlayer_())sI(!1,"Invalid method call in kevlar_unified_player.");else return sI(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.Yw(Error("Bh")),sI(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.r("kevlar_player_container_query_killswitch")?this.$.container:_.Kg(this.hostElement).querySelector("#container"),YUA().then(function(){var H=t.initPlayer_(D);t.playerResolver_.resolve(H);
return H})},
onPlayerReady_:function(D,t){this.useUnifiedPlayer_()?sI(!1,"Invalid method call in kevlar_unified_player."):(D.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&i39.resolve(D),t(D))},
maybeCallApiMethodOnElement_:function(D,t){if(typeof D[t]==="function")return D[t]()},
maybeAdoptBootstrapPlayer_:function(){var D=window,t,H=(t=D.ytplayer)==null?void 0:t.bootstrapPlayerContainer;if((t=H==null?void 0:H.firstElementChild)&&t.classList.contains("html5-video-player")){var e,V,b=(e=D.ytplayer)==null?void 0:(V=e.bootstrapWebPlayerContextConfig)==null?void 0:V.contextId;e=this.getWebPlayerContextConfig_().contextId;if(b&&b===e){H!==this.playerContainer_&&(H=!1,this.maybeCallApiMethodOnElement_(t,"getPlayerState")===2&&(H=!0),this.playerContainer_.appendChild(t),H||this.maybeCallApiMethodOnElement_(t,
"playVideo"));var a;if((a=D.ytplayer)==null?0:a.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=D.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(D){var t=this;if(this.useUnifiedPlayer_())sI(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(H){t.maybeAdoptBootstrapPlayer_();var e=D?CN8(D):void 0;e&&e==t.bootstrapPlayerResponse_&&(D.loaded=!0);e=t.playerContainer_;var V=t.getWebPlayerContextConfig_();e=xhV(e,D,V);t.player_=e;t.onPlayerReadyEvent_=t.onPlayerReady_.bind(t,t.player_,H);t.player_.addEventListener("onReady",t.onPlayerReadyEvent_);t.player_.addEventListener("innertubeCommand",
t.onPlayerInnerTubeCommand_.bind(t))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(D){D.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(D){D.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var D=_.qS().resolve(_.bO).getCurrentPage();D&&D.getScrollTop()<=0?_.pn(this,"pan-down"):_.pn(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(D){D.isFullscreen()||D.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(D){D.isFullscreen()&&D.toggleFullscreen()})},
updatePlayerPlaylist_:function(D){var t=this,H,e,V;return _.Z(function(b){if(b.nextAddress==1)return H=_.qS().resolve(_.by(_.hU)),e=!!(H&&H.playlistComponent&&H.playlistComponent.loopOn),b.yield(t.getPlayerPromise(),2);var a=V=b.yieldResult,w=a.updatePlaylist,h=[];if(_.r("kevlar_player_playlist_use_local_index")){var K,N;var k=(N=(K=D.localCurrentIndex)!=null?K:D.currentIndex)!=null?N:0}else{var T;k=(T=D.currentIndex)!=null?T:0}if(D.contents)for(K=0;K<D.contents.length;K++)if((N=D.contents[K])&&N.playlistPanelVideoRenderer)if(XwV(N)){N=
N.playlistPanelVideoRenderer;T="";N.shortBylineText&&(T=_.eo(N.shortBylineText));var c="";N.title?c=_.eo(N.title):N.unplayableText&&(c=_.eo(N.unplayableText));h.push({author:T,title:c,encrypted_id:N.videoId})}else K<k&&--k;w.call(a,{index:k,list:D.playlistId?D.playlistId:"",loop:e,playlist_title:D.title,playlist_length:h.length,video:h,fetch:0,external_list:"1",title:D.title?D.title:"",playlist_author:D.ownerName?_.eo(D.ownerName):void 0});_.n2(b)})},
focusOnPlayer:function(){_.Vi(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var D=this.playerContainer_.querySelector(".html5-video-player");D&&(_.Co(_.qS().resolve(_.mM)),D.focus())}})},
preparePlayer:function(){var D=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(t){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")t();else{var H=function(){document.removeEventListener("DOMContentLoaded",H);t()};
document.addEventListener("DOMContentLoaded",H)}})).then(function(){return YUA()}).then(function(){D.initPlayerPromise_||D.preparePlayerJobId_||(D.preparePlayerJobId_=_.C7(_.Jy,function(){D.initPlayerPromise_||(D.initPlayerPromise_=D.initPlayerContainer_())}))}):_.Jp(new _.nZ("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(D){this.useUnifiedPlayer_()?sI(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(D)||(D.args.autoplay="0")},
shouldAutoplay_:function(D){if(this.useUnifiedPlayer_())sI(!1,"Invalid method call in kevlar_unified_player.");else{var t=this.get("args.el",D);return t&&t!="detailpage"&&this.isMiniplayerActive_()||t&&(t=="sponsorshipsoffer"||t=="handlesclaiming")&&this.get("args.autoplay",D)=="0"?!1:(D=CN8(D))&&this.get("playerConfig.playbackStartConfig.startPaused",D)?!1:!0}},
isMiniplayerActive_:function(){return _.qS().resolve(_.dL).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var D=this.getPlayer();if(D){var t=D.getPlayerState();_.r("kevlar_player_check_ad_state_on_stop")&&(t=D.getPlayerState(D.getPresentingPlayerType()));t!=5&&D.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(D,t,H){H=H===void 0?!1:H;var e=this,V,b,a,w;return _.Z(function(h){if(h.nextAddress==1)return t||(t=e.hostElement),V=e.useUnifiedPlayer_()?!!e.mainAppPlayer_:!!e.initPlayerPromise_,V?h.yield(e.getPlayerPromise(),2):(H?D.insertBefore(t,D.firstChild):D.appendChild(t),h.return());b=h.yieldResult;a=b.getPlayerState(b.getPresentingPlayerType());w=!1;if(a==-1||a==1||a==3)w=!0;H?D.insertBefore(t,D.firstChild):D.appendChild(t);w&&b.playVideo();b.setSize(NaN,NaN);_.n2(h)})},
watchNextDataChanged_:function(D){var t=this;D&&(this.useUnifiedPlayer_()&&_.r("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&$8a(this.mainAppPlayer_,D):this.getPlayerPromise().then(function(H){H.updateVideoData(t.computeWatchNextPlayerVars_(D))}))},
computeWatchNextPlayerVars_:function(D){if(this.useUnifiedPlayer_()&&_.r("kevlar_unified_player_update_watch_next_killswitch"))sI(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:D}},
maybeSendAbandonmentPing_:function(){var D=this.getPlayer();D&&D.getPlayerState()!=5&&D.getPlayerState()!=0&&D.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var D=_.YC("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(D=Object.assign({},D),D.rootElementId=this.playerId);D.serializedExperimentIds&&D.serializedExperimentFlags||_.Yw(Error("Ch"));return D},
hasWebPlayerContextConfig_:function(){return!!_.YC("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(D){this.useUnifiedPlayer_()?sI(!1,"Invalid method call in kevlar_unified_player."):_.rj(D,this.hostElement)},
useUnifiedPlayer_:function(){var D=_.r("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.r("kevlar_unified_player")||D}}];var PTa={};PTa.YtPlaylistPanelBehavior=[_.y.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(D){D=D.detail;if(D.actions.loop!=void 0||D.actions["yt-icons:loop"]!=void 0)this.loopOn=D.actions.loop||D.actions["yt-icons:loop"];if(D.actions.shuffle!=void 0||D.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=D.actions.shuffle||D.actions["yt-icons:shuffle"]},
setMenuData_:function(D){if(!D||!D.playlistButtons||D.isInfinite)return null;for(var t=D.playlistButtons.menuRenderer.topLevelButtons,H=t.length,e=0;e<H;e++)if(t[e].toggleButtonRenderer){var V=t[e].toggleButtonRenderer;V.defaultIcon.iconType=="LOOP"&&this.loopOn?V.isToggled=this.loopOn:V.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(V.isToggled=this.shuffleOn)}return D.playlistButtons}}];var nAa=function(D){EW.call(this,D,132);this.isDocument=D===document.documentElement};
_.P(nAa,EW);nAa.prototype.calculateScrollDelta=function(D,t,H){var e=0;D<t?e=D<t-100?-48:-8:D>t+H&&(e=D>t+H+100?48:8);return e};
nAa.prototype.JSC$11399_onMouseMove=function(D){this.isDocument||(D.clientX=D.event_.pageX,D.clientY=D.event_.pageY);EW.prototype.JSC$11399_onMouseMove.call(this,D)};var my=function(){var D=_.ng.apply(this,arguments)||this;D._noAccessors=!0;D.scrollElement=document.documentElement;D.JSC$14388_dragListGroup=null;D.dragScrollSupport=null;D.onDraggerCreated=function(t){var H=t.JSC$11395_dragger;H.scrollTarget_=D.scrollElement;t=t.draggerEl;H&&t.menuOpened&&H.setEnabled(!1)};
D.onDragStart=function(t){var H=t.draggerEl;t=t.currDragItem;var e=Object.assign({},t==null?void 0:t.data);e.trackingParams=void 0;H.data=e;H.style.position="absolute";H.style.width=(t==null?void 0:t.clientWidth)+"px";H.style.zIndex="2030";H.onDrag&&H.onDrag();_.r("web_owner_document_fallback_killswitch")?(t=document.querySelector("ytd-app"))&&_.Kg(t).appendChild(H):(t=_.pW(H),(e=t.querySelector("ytd-app"))?_.Kg(e).appendChild(H):t.body.appendChild(H));D.dragScrollSupport=new nAa(D.scrollElement);
D.dragScrollSupport.horizontalScrolling_=!1;H=D.dragScrollSupport;H.constrainScroll_=!!H.margin_&&!1};
D.onDrop=function(t){D.handleDrop(t);D.dragScrollSupport&&(_.qc(D.dragScrollSupport),D.dragScrollSupport=null)};
D.onReorderableScroll=function(){if(D.JSC$14388_dragListGroup){var t=D.JSC$14388_dragListGroup;vLn(t,t.currDragItem_)}};
return D};
_.P(my,_.ng);my.prototype.detached=function(){_.CTm(this)};
_.CTm=function(D){D.JSC$14388_dragListGroup&&(_.g8(D.JSC$14388_dragListGroup,Ss9,D.onDragStart),_.g8(D.JSC$14388_dragListGroup,AhV,D.onDragStart),D.JSC$14388_dragListGroup.dispose(),D.JSC$14388_dragListGroup=null);D.dragScrollSupport&&(_.qc(D.dragScrollSupport),D.dragScrollSupport=null);D.scrollElement.removeEventListener("scroll",D.onReorderableScroll)};
_.m8Q=function(D,t,H,e){e=e===void 0?"":e;_.CTm(D);H&&(D.scrollElement=H);D.JSC$14388_dragListGroup=new VI;D.JSC$14388_dragListGroup.hysteresisDistance_=2;Jho(D.JSC$14388_dragListGroup,t);D.JSC$14388_dragListGroup.draggerElClasses_=KK("dragging").split(" ");e&&Ysn(D.JSC$14388_dragListGroup,function(V){var b=V||document,a=null;b.getElementsByClassName?a=b.getElementsByClassName(e)[0]:a=cF9("*",e,V);return a||V});
_.fz(D.JSC$14388_dragListGroup,myn,D.onDraggerCreated);_.fz(D.JSC$14388_dragListGroup,Ss9,D.onDragStart);_.fz(D.JSC$14388_dragListGroup,AhV,D.onDrop);D.JSC$14388_dragListGroup.init();D.scrollElement.addEventListener("scroll",D.onReorderableScroll,{passive:!0})};
my.prototype.handleDrop=function(){};
_.ql.Object.defineProperties(my.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.d([_.M({value:100}),_.x("design:type",Number)],my.prototype,"scrollMargin",void 0);_.d([_.Cg()],my);_.Ml6=[my.prototype];_.Mg={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(D,t,H){var e=this.getClickTarget_(t);if(e&&this.isClickAllowed_(e)){t.preventDefault();D=(0,_.J$.unsafeClone)(D);var V=this.getContainerBoundingRect();t=this.getRelativeClickXy_(t,V);this.expandEndpointUrlMacros_(D,{NX:t[0],NY:t[1],NB:e.code});H&&this.truncateWebCommendMetadataUrl_(D);_.Gf(this.hostElement,"yt-navigate",{endpoint:D})}},
getClickTarget_:function(D){if(!this.clickTargetMap)return null;D=_.bK(D)||[];D=_.F(D);for(var t=D.next();!t.done;t=D.next()){t=t.value;if(t===_.Kg(this.hostElement).querySelector("#menu"))break;if(t=this.clickTargetMap.get(t.id))return t}return null},
getRelativeClickXy_:function(D,t){var H=D.detail.x,e=D.detail.y;_.r("use_on_click_for_desktop_display_ad")&&D.clientX!=null&&D.clientY!=null&&(H=D.clientX,e=D.clientY);D=Math.round(H-t.left);t=Math.round(e-t.top);return D<0||t<0?[null,null]:[D,t]},
getContainerBoundingRect:function(){return _.Kg(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(D,t){for(var H=_.F(D.loggingUrls||[]),e=H.next();!e.done;e=H.next())e=e.value,e.baseUrl&&(e.baseUrl=wIV(e.baseUrl,t));D.urlEndpoint&&D.urlEndpoint.url&&(D.urlEndpoint.url=wIV(D.urlEndpoint.url,t));D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.url&&(D.commandMetadata.webCommandMetadata.url=wIV(D.commandMetadata.webCommandMetadata.url,t))},
truncateWebCommendMetadataUrl_:function(D){if(D.commandMetadata&&D.commandMetadata.webCommandMetadata&&D.commandMetadata.webCommandMetadata.url){var t=D.commandMetadata.webCommandMetadata.url,H=t.indexOf("&pp=");if(H>0){var e=t.indexOf("&",H+1);D.commandMetadata.webCommandMetadata.url=e>H&&e<t.length?t.slice(0,H)+t.slice(e):t.slice(0,H)}}},
configureClickTargets:function(D,t,H){this.containerId=D;this.clickTargetMap=new Map;D=_.F(t);for(t=D.next();!t.done;t=D.next())if(t=t.value,t.location){var e=H.get(t.location);e&&(_.kL(_.Kg(this.hostElement).querySelector("#"+e),"yt-simple-endpoint",this.isClickAllowed_(t)),this.clickTargetMap.set(e,t))}},
isClickAllowed_:function(D){return D.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||D.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||D.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||D.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.SL={};
_.SL.YtLazyListBehavior=[_.PP.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 D=(this.constructor.generatedFrom||this).observers;D||(D=[]);D.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
D}},
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 D=this.renderElementsOutsideVisibleArea_;D&&(CX6(D,4),D.processSignal())},
deepLazyListObserver_:function(D){var t=this;if(D){var H=D.value||[];if(this.itemsPath==D.path){var e=this.nonDeferredItemCount;D=0;e>-1&&H.length>e&&(D=_.YC("REMAINING_DOVA_DEFERRED_CHUNKS",-1));D>0?(e>0&&(e=H.slice(0,e),this.setInitialItemsOnDataChanged(e)),(e=this.renderElementsOutsideVisibleArea_)?e.cancel():(e=this.renderElementsOutsideVisibleArea_=new _.CE(2,"eocs"),_.sHX(window,"scroll",function(){return t.renderDeferredElements()})),_.mX(e,function(){t.setInitialItemsOnDataChanged(H)}),_.JZ("REMAINING_DOVA_DEFERRED_CHUNKS",
D-1)):this.setInitialItemsOnDataChanged(H)}else if(this.itemsPath+".splices"==D.path)this.onItemsUpdated_(H);
else e="shownItems"+D.path.substr(this.itemsPath.length),this.useSignals&&e==="shownItems.length"||this.notifyPath(e,D.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(D){D&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(D),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(D){D=D.indexSplices;for(var t=0,H=D.length;t<H;t++){var e=D[t];if(e.index<this.shownCount&&(e.removed&&this.splice("shownItems",e.index,e.removed.length),e.addedCount)){var V=e.object.slice(e.index,e.index+e.addedCount);e=["shownItems",e.index,0];e.push.apply(e,V);this.splice.apply(this,e)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(D){this.cancelPendingTasks_();D||(D=[]);this.items_=D;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&&(_.lh("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.Vi(this,this.tryRenderChunk_)))},
fillRange_:function(D,t){this.canShowMore&&this.items_&&(D=this.items_.slice(D,t),D.unshift("shownItems"),this.push.apply(this,D),this.shownCount=t,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var D=this;this.canShowMore&&_.z1(this,"renderChunk",function(){D.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.lh("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.Mx(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var D=this.renderElementsOutsideVisibleArea_;D&&(D.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var D=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(D-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=D;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(D){return Math.ceil(1E3/D)},
onCanShowMoreUpdated_:function(D){this.data&&this.items_!==null&&(D?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(D){!this.shouldUseTaskManager()&&this.data&&(!D&&this.canShowMore?(_.GwV(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):D&&this.partiallyRenderedItems_.has(this.items_)&&(_.r("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Lo;_.Xn={};
Lo=function(){var D=_.ng.apply(this,arguments)||this;D.atStart=!0;D.atEnd=!0;D.startIndex=0;D.endIndex=0;D.scrollCount=0;D.initialStartIndex=0;D.disableScrollEventListener=!1;D.useFloorScrolling=!1;D.isSearch=!1;D.dragging=!1;D.dragMouseStart=0;D.dragOffsetStart=0;D.disableWheelScroll=!1;D.centerListItems=!1;D.offset=0;D.minComponentWidth=0;D.marginWidthRight=0;D.marginWidthLeft=0;D.setButtonsStateRequested=!1;D.itemsVisibilityObserver=null;D.fullyVisibleItemsIndices=[];D.JSC$14399_onWheelScroll=function(t){if(D.isSearch&&
!D.disableWheelScroll&&_.r("desktop_enable_dmpanel_wheel_scroll")){var H=t.shiftKey?Math.abs(t.deltaY)>Math.abs(t.deltaX)?t.deltaY:t.deltaX:t.deltaX;H!==0&&(t.preventDefault(),D.ytLazyListBehavior.fillRemainingListItems(),D.offset+=H,fo(D),D.reposition_())}};
D.onPointerDown=function(t){S6f(D)&&(D.dragMouseStart=t.clientX,D.dragOffsetStart=D.offset,D.dragging=!0)};
D.onPointerMove=function(t){S6f(D)&&D.dragging&&(D.ytLazyListBehavior.fillRemainingListItems(),D.offset=D.dragOffsetStart-(t.clientX-D.dragMouseStart),fo(D),D.reposition_())};
D.onPointerUp=function(){S6f(D)&&(D.dragging=!1)};
return D};
_.P(Lo,_.ng);var X2o=function(D){var t=_.Kg(D.hostElement).querySelector("#items").children;if(!t)return 0;var H=0;D=_.F(D.fullyVisibleItemsIndices);for(var e=D.next();!e.done;e=D.next())H+=t[e.value].clientWidth;return H},S6f=function(D){return D.isSearch&&_.r("desktop_enable_dmpanel_click_drag_scroll")};
Lo.prototype.created=function(){this.cachedViewportWidth=_.YC("initialInnerWidth")||window.innerWidth;this.JSC$14399_cachedViewportHeight=_.YC("initialInnerHeight")||window.innerHeight;_.YC("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.JZ("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Lo.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.r("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();f5a(this)};
Lo.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.r("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var D;(D=this.itemsVisibilityObserver)==null||D.disconnect();this.itemsVisibilityObserver=null;var t;(t=this.itemsObserver)==null||t.disconnect()};
var f5a=function(D){var t=_.Kg(D.hostElement).querySelector("#scroll-container");if(t){if(!D.itemsVisibilityObserver){var H=window.getComputedStyle(t).marginRight;D.itemsVisibilityObserver=new IntersectionObserver(function(e){LA9(D,e)},{root:t,
rootMargin:H,threshold:.98})}if(t=_.Kg(D.hostElement).querySelector("#items"))D.itemsObserver=new cGn(t,function(e){A4a(D,e)})}},A4a=function(D,t){gAw(D)&&(Array.from(t.addedNodes).filter(function(H){return H.nodeType===Node.ELEMENT_NODE}).forEach(function(H){D.itemsVisibilityObserver&&D.itemsVisibilityObserver.observe(H)}),Array.from(t.removedNodes).filter(function(H){return H.nodeType===Node.ELEMENT_NODE}).forEach(function(H){D.itemsVisibilityObserver&&D.itemsVisibilityObserver.unobserve(H)}))},
LA9=function(D,t){var H=new Set(D.fullyVisibleItemsIndices);
t=_.F(t);for(var e=t.next();!e.done;e=t.next()){e=e.value;var V=e.target.parentElement;V?(V=Array.from(V.children).indexOf(e.target),e.isIntersecting?H.add(V):H.has(V)&&H.delete(V)):_.Yw(new _.nZ("Parent element not found",e.target.nodeName))}D.fullyVisibleItemsIndices=Array.from(H).sort(function(b,a){return b-a});
H.size===0?_.Yw(new _.nZ("No visible entries in horizontal list")):(D.startIndex=D.fullyVisibleItemsIndices[0],D.endIndex=D.fullyVisibleItemsIndices[D.fullyVisibleItemsIndices.length-1])},gAw=function(D){D.data?D=(D=D.data)&&D.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===D.itemSizeConstraint:!1:D=!1;
return D};
_.q=Lo.prototype;_.q.addScrollEventListeners=function(){var D=_.Kg(this.hostElement).querySelector("#scroll-container");D.style.touchAction="pan-y";D.addEventListener("wheel",this.JSC$14399_onWheelScroll);D.addEventListener("pointerdown",this.onPointerDown);D.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.q.removeScrollEventListeners=function(){var D=_.Kg(this.hostElement).querySelector("#scroll-container");D.removeEventListener("wheel",this.JSC$14399_onWheelScroll);D.removeEventListener("pointerdown",this.onPointerDown);D.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.q.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.Vi(this,this.setStartIndex,[this.initialStartIndex])};
_.q.reposition_=function(){var D=_.YC("HTML_DIR")=="rtl"?"":"-",t=_.Kg(this.hostElement).querySelector("#items");t&&(t.style.transform="translateX("+D+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.q.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.Vi(this,this.setButtonsState_))};
_.q.setButtonsState_=function(){this.setButtonsStateRequested=!1;var D=_.Kg(this.hostElement).querySelector("#items").firstElementChild;if(D){this.minComponentWidth||(this.minComponentWidth=J4o(this,D));D=_.Kg(this.hostElement).querySelector("#scroll-container").clientWidth;var t=_.Kg(this.hostElement).querySelector("#items");t=_.r("kevlar_horizontal_list_scroll_width_killswitch")?t.clientWidth:t.scrollWidth;var H=this.get(this.ytLazyListBehavior.itemsPath,this);if(H){var e=Math.round(D/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+e,H.length)-1)}this.ytLazyListBehavior.canShowMore?t+this.minComponentWidth>=this.offset+D&&(this.atEnd=!1):this.atEnd=this.offset+D>=t-20?!0:!1;this.atStart=this.offset<=20}};
_.q.setStartIndex=function(D){if(!this.minComponentWidth){var t=_.Kg(this.hostElement).querySelector("#items").firstElementChild;if(!t)return;this.minComponentWidth=J4o(this,t)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*D;fo(this);this.reposition_()};
_.q.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.ML();var D=_.Kg(this.hostElement).querySelector("#scroll-container").clientWidth;_.r("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=J4o(this,_.Kg(this.hostElement).querySelector("#items").firstElementChild));D=this.useFloorScrolling?Math.floor(D/this.minComponentWidth)||1:Math.round(D/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&Y6v(this);this.offset+=gAw(this)?
X2o(this):D*this.minComponentWidth;fo(this);this.reposition_();this.scrollCount++};
_.q.prevClick_=function(){var D=_.Kg(this.hostElement).querySelector("#scroll-container").clientWidth;D=this.useFloorScrolling?Math.floor(D/this.minComponentWidth)||1:Math.round(D/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=gAw(this)?X2o(this):this.minComponentWidth*this.scrollCount-1):this.offset-=gAw(this)?X2o(this):D*this.minComponentWidth;this.centerListItems&&Y6v(this);fo(this);this.reposition_()};
_.q.onIronResize_=function(){this.resizeSupportEnabled&&_.Vi(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.q.onItemsTransitionEnd_=function(D){_.qy(D)===_.Kg(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.q.onChildElementFocus_=function(D){D=D.target.closest("#items > *");var t=_.Kg(this.hostElement).querySelector("#scroll-container");if(t.contains(D)){if(_.r("web_horizontal_list_behavior_focus_killswitch"))if(D.offsetLeft<this.offset)this.offset=Math.abs(D.offsetLeft)<D.clientWidth?0:D.offsetLeft;else if(D.offsetLeft+D.clientWidth>this.offset+t.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.ML(),this.offset=D.offsetLeft+D.clientWidth-t.clientWidth;else return;else{var H=_.Kg(this.hostElement).querySelector("#items"),
e=_.YC("HTML_DIR")==="rtl",V=e?H.clientWidth-D.offsetLeft:D.offsetLeft;H=e?H.clientWidth-(D.offsetLeft+D.clientWidth):D.offsetLeft+D.clientWidth;var b=e?V>this.offset+t.clientWidth:V<this.offset,a=e?H<this.offset:H>this.offset+t.clientWidth,w=e?b:a;if(e?a:b)t=e?H:V,this.offset=Math.abs(t)<D.clientWidth?0:t;else if(w)this.ytLazyListBehavior.fillRemainingListItems(),_.ML(),this.offset=(e?V:H)-t.clientWidth;else return}fo(this);this.reposition_()}};
_.q.observeShownItems_=function(){this.reset()};
_.q.checkComponentWidthResize=function(){var D=_.Kg(this.hostElement).querySelector("#items").firstElementChild;D&&(D=J4o(this,D),this.centerListItems||D!==this.minComponentWidth)&&(this.minComponentWidth=D,this.offset=D*this.scrollCount,this.centerListItems&&Y6v(this),fo(this),this.reposition_())};
var J4o=function(D,t){var H=window.getComputedStyle(t).marginRight;H=Math.floor(Number(H.replace("px","")));var e=window.getComputedStyle(t).marginLeft;e=Math.floor(Number(e.replace("px","")));D.centerListItems&&!D.marginWidthRight&&(D.marginWidthRight=H,D.marginWidthLeft=e);return D.resizeSupportEnabled?t.getBoundingClientRect().width+H:t.offsetWidth+H},fo=function(D){var t=_.Kg(D.hostElement).querySelector("#scroll-container").clientWidth,H=_.Kg(D.hostElement).querySelector("#items").clientWidth;
D.offset<0?D.offset=0:D.offset+t>=H&&(D.offset=H-t)},Y6v=function(D){D.offset-=(_.Kg(D.hostElement).querySelector("#scroll-container").clientWidth+D.marginWidthRight-D.minComponentWidth)/2-D.marginWidthLeft};
_.ql.Object.defineProperties(Lo.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var D=_.YC("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(D==-1)D=this.JSC$14399_cachedViewportHeight,D=D>1320?5:D>1020?4:D>730?3:D>430?2:1;else if(D==0)return 0;_.JZ("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",D-1);D=_.YC("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(D>-1)return D;D=this.cachedViewportWidth;D=D>1600?6:D>1400?5:D>1300?4:D>1090?5:D>870?4:D>660?3:2;_.JZ("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
D);return D},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.r("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Lo.prototype.observeShownItems_=Lo.prototype.observeShownItems_;Lo.prototype.onChildElementFocus_=Lo.prototype.onChildElementFocus_;Lo.prototype.onItemsTransitionEnd_=Lo.prototype.onItemsTransitionEnd_;Lo.prototype.onIronResize_=Lo.prototype.onIronResize_;Lo.prototype.prevClick_=Lo.prototype.prevClick_;Lo.prototype.nextClick_=Lo.prototype.nextClick_;Lo.prototype.setButtonsState_=Lo.prototype.setButtonsState_;Lo.prototype.requestButtonsStateUpdate_=Lo.prototype.requestButtonsStateUpdate_;
Lo.prototype.reposition_=Lo.prototype.reposition_;Lo.prototype.reset=Lo.prototype.reset;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.SL.YtLazyListBehavior),_.x("design:type",Object)],Lo.prototype,"ytLazyListBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Lo.prototype,"atStart",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Lo.prototype,"atEnd",void 0);_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"startIndex",void 0);_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"endIndex",void 0);_.d([_.M({value:6}),_.x("design:type",Number)],Lo.prototype,"initialCount",void 0);_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"scrollCount",void 0);_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"initialStartIndex",void 0);
_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"disableScrollEventListener",void 0);_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"supportComponentResize",void 0);_.d([_.M({value:function(){var D=this;return function(){return D.prevClick_()}}}),
_.x("design:type",Function)],Lo.prototype,"boundPrevClick",void 0);_.d([_.M({value:function(){var D=this;return function(){return D.nextClick_()}}}),
_.x("design:type",Function)],Lo.prototype,"boundNextClick",void 0);_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"useFloorScrolling",void 0);_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"isSearch",void 0);_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"dragging",void 0);_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"dragMouseStart",void 0);_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"dragOffsetStart",void 0);
_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"disableWheelScroll",void 0);_.d([_.M(),_.x("design:type",Object)],Lo.prototype,"centerListItems",void 0);_.d([_.rx("iron-resize"),_.Os("guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lo.prototype,"onIronResize_",null);_.d([_.rx("transitionend"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Lo.prototype,"onItemsTransitionEnd_",null);
_.d([_.rx("focusin"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Lo.prototype,"onChildElementFocus_",null);_.d([_.Os("shownItems"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lo.prototype,"observeShownItems_",null);_.d([_.Cg()],Lo);_.Xn.YtdHorizontalListBehavior=[];_.Xn.YtdHorizontalListBehavior.push(_.QI,_.y.YtRendererBehavior,_.SL.YtLazyListBehavior,_.kn.YtdGuideStateAwareBehavior,Lo.prototype);var QFD=["APP_STATE","PI"];var l5f=_.zk(["about:blank"]),vAV={pushState:window.history.pushState,replaceState:window.history.replaceState};var Ak=function(D){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=D;this.internalPushState=D.pushState.bind(D);this.internalReplaceState=D.replaceState.bind(D)};
Ak.prototype.init=function(){this.initialized=!0};
Ak.prototype.pushState=function(D,t){this.initialized||this.init();this.internalPushState&&this.internalPushState(D,"",t)};
Ak.prototype.replaceState=function(D,t){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(D,"",t)};
Ak.prototype.getState=function(){return this.history&&this.history.state};var p2V=function(D){var t=function(){var H=D.apply(this,arguments)||this;H.boundHistoryPushState=!1;H.boundHistoryReplaceState=!1;H.debugInfo={};return H};
_.P(t,D);t.prototype.init=function(){var H=_.OH("IFRAME");_.zF(H,_.E5(l5f));H.sandbox="allow-same-origin";H.style.display="none";this.iframe=H;document.body.appendChild(H);this.bindHistoryStateFunctions();D.prototype.init.call(this)};
t.prototype.bindHistoryStateFunctions=function(){var H=this,e=[],V;this.iframe&&((V=this.iframe.contentWindow)==null?0:V.history)&&(V=this.iframe.contentWindow.history)&&(e.push(V),Object.getPrototypeOf(V)&&e.push(Object.getPrototypeOf(V)));window.history&&e.push(window.history);V=window.history;Object.getPrototypeOf(V)&&e.push(Object.getPrototypeOf(V));e.push(vAV);V=function(a){for(var w=null,h=0;h<e.length;h++){var K=e[h][a];if(typeof K==="function"){w=K.bind(window.history);H.debugInfo[a]=h;break}}return w};
if(!this.boundHistoryReplaceState){var b=V("replaceState");b&&(this.internalReplaceState=b,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(V=V("pushState"))&&(this.internalPushState=V,this.boundHistoryPushState=!0)};
return t}(Ak),d83=function(){return p2V.call(this,window.history)||this};
_.P(d83,p2V);d83.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var gt=function(D){this.browserHistory=D;this.initialized=!1};
gt.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
gt.prototype.pushState=function(D,t){this.initialized||this.init();this.browserHistory.pushState(D,t)};
gt.prototype.replaceState=function(D,t){this.initialized||this.init();this.browserHistory.replaceState(D,t)};
gt.prototype.handlePopstate=function(D){return D.state};_.x8V=function(D,t,H,e,V){this.endpoint=D;this.forward=t;this.historyEntry=H;this.JSC$30172_savedComponentState=e;this.legacyBorder=V===void 0?!1:V};var Rr3=function(D,t){this.rootData=D;this.scrollTop=t};var o6=new _.kI("PAGE_REQUEST_TOKEN"),bBa=new _.kI("FETCH_PBJ_TOKEN");_.Jk=new _.kI("EPHEMERAL_STORE_TOKEN");_.Yn=function(D){this.data=Object.assign({},D);var t;(t=this.data.innertubeResponse)==null||delete t.frameworkUpdates};
_.Yn.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.aP)()};
_.qP=function(D){return Object.assign({},D.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var uRo=function(){this.maxSize=100;this.timeToDataCache=new Map};
uRo.prototype.get=function(D){var t=this.timeToDataCache.get(D);t&&(this.timeToDataCache.delete(D),this.timeToDataCache.set(D,t));if(t&&t.rootData&&(_.r("web_use_response_store_for_history_cache")||_.r("mweb_use_new_history_manager"))){var H=_.qS().resolve(_.Jk),e=WA4(t),V=!!e;if(e){if(e.content){var b=lk(H,e.content);V&&b?t.rootData.response=_.qP(b):V=!1}e.player&&(b=lk(H,e.player),V&&b?t.rootData.playerResponse=_.qP(b):V=!1);e.reelSequence&&(H=lk(H,e.reelSequence),V&&H?t.rootData.reelWatchSequenceResponse=
_.qP(H):V=!1)}V||(this.timeToDataCache.delete(D),t=void 0)}return t};
uRo.prototype.set=function(D,t){if(t.rootData&&(_.r("web_use_response_store_for_history_cache")||_.r("mweb_use_new_history_manager"))){var H=WA4(t),e=Object.assign({},t.rootData);H&&(H.content&&t.rootData.response&&(I5v(this,H.content,t.rootData.response),e.response=null),H.player&&t.rootData.playerResponse&&(I5v(this,H.player,t.rootData.playerResponse),e.playerResponse=null),H.reelSequence&&t.rootData.reelWatchSequenceResponse&&(I5v(this,H.reelSequence,t.rootData.reelWatchSequenceResponse),e.reelWatchSequenceResponse=
null));t=new Rr3(e,t.scrollTop)}this.timeToDataCache.has(D)?this.timeToDataCache.delete(D):this.timeToDataCache.size>=this.maxSize&&(H=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(H.value));this.maxSize!==0&&this.timeToDataCache.set(D,t)};
uRo.prototype.clear=function(){this.timeToDataCache.clear()};
var WA4=function(D){var t=_.qS().resolve(_.by(o6)),H;if((H=D.rootData)==null?0:H.endpoint)return t==null?void 0:gJV(t,D.rootData.endpoint);var e;_.Yw(new _.nZ("History snapshot response data does not contain endpoint",(e=D.rootData)==null?void 0:e.url));return null},I5v=function(D,t,H){if(D.maxSize>0){var e;
(D=(e=H.responseContext)==null?void 0:e.maxAgeSeconds)&&Number(D)>0&&(e=_.qS().resolve(_.Jk),H=EI(H,D),e.put(t,new _.Yn(H)))}};var Qbm=function(D,t,H){this.endpoint=t;this.JSC$30177_savedComponentState=H===void 0?null:H;this.entryTime=D};var H58=1;var vJ=function(D){var t=function(){var H=D.apply(this,[].concat(_.A6(_.RE.apply(0,arguments))))||this;H.historyEntryTime=0;H.historySnapshotCache=H.createHistoryCache();return H};
_.P(t,D);t.prototype.createHistoryCache=function(){return new uRo};
t.prototype.saveAndReplace=function(H,e,V){var b=window.location.href;var a=a===void 0?{}:a;var w=(w=this.browserHistory.getState())&&w.entryTime?w.entryTime:erV();H=this.createNewHistoryEntry(H,a,w);this.saveSnapshot(w,e,V);this.replaceState(H,b||window.location.href)};
t.prototype.saveAndPush=function(H,e,V,b,a){a=a===void 0?{}:a;this.saveSnapshot(this.historyEntryTime,V,b);V=this.historySnapshotCache;b=this.historyEntryTime;var w=V.timeToDataCache.keys();w=_.F(w);for(var h=w.next();!h.done;h=w.next())h=h.value,h>b&&V.timeToDataCache.delete(h);e=this.createNewHistoryEntry(e,a);this.pushState(e,H)};
t.prototype.saveSnapshot=function(H,e,V){this.historySnapshotCache.set(H,new Rr3(e,V))};
t.prototype.createNewHistoryEntry=function(H,e,V){V=V===void 0?erV():V;return new Qbm(V,H,e)};
t.prototype.handlePopstate=function(H){var e=D.prototype.handlePopstate.call(this,H),V=null,b=null,a=!1,w=null;e&&e.entryTime&&(w=this.historySnapshotCache.get(e.entryTime)||null,a=e.entryTime>this.historyEntryTime,this.historyEntryTime=e.entryTime,V=e.endpoint,b=e.JSC$30177_savedComponentState);this.handleHistoryCacheLoad(new _.x8V(V,a,w,b),H);return e};
t.prototype.pushState=function(H,e){Number(H==null?void 0:H.entryTime)>=0&&(this.historyEntryTime=H.entryTime);D.prototype.pushState.call(this,H,e)};
t.prototype.replaceState=function(H,e){Number(H==null?void 0:H.entryTime)>=0&&(this.historyEntryTime=H.entryTime);D.prototype.replaceState.call(this,H,e)};
t.prototype.handleHistoryCacheLoad=function(){};
return t}(gt),y4v=function(){var D=vJ.call(this,new d83)||this;
D.dispatchElement=null;D.entryIndex=0;return D};
_.P(y4v,vJ);_.q=y4v.prototype;_.q.init=function(D){D=D===void 0?!0:D;vJ.prototype.init.call(this);this.initialized||(D||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.q.handlePopstate=function(D){var t=null;D.state||(t="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return vJ.prototype.handlePopstate.call(this,D);var H=new CustomEvent("yt-history-pop",{cancelable:!0});_.ET(this.dispatchElement,"yt-history-pop",[H,{errorMsg:t}]);_.Kl(this.dispatchElement,"yt-close-all-popups-action");if(!H.defaultPrevented){H=_.qS().resolve(_.bO);t=H.getCurrentData();var e=H.getCurrentPage();H=0;e?(e=_.ET(this.dispatchElement,"yt-get-page-offset",
[e]),e.length>0&&(H=e[0])):_.Yw(new _.nZ("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:t?t.page:"undefined"}));t&&(t.csn=_.v3());this.saveSnapshot(this.historyEntryTime,t,H)}return vJ.prototype.handlePopstate.call(this,D)};
_.q.handleHistoryCacheLoad=function(D,t){D.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.F(_.Kl(this.dispatchElement,"yt-history-will-navigate",[t])).next().value||_.ET(this.dispatchElement,"yt-history-load",[t,D]))};
_.q.pushState=function(D,t){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var H=new _.nZ("history.pushState is not a function",this.getDebugString());_.gT(H)}vJ.prototype.pushState.call(this,D,t)};
_.q.replaceState=function(D,t){if(!this.browserHistory.boundHistoryReplaceState){var H=new _.nZ("history.replaceState is not a function",this.getDebugString());_.gT(H)}vJ.prototype.replaceState.call(this,D,t)};
_.q.saveAndPush=function(D,t,H,e,V){V=V===void 0?{}:V;H&&(H.csn=_.v3());vJ.prototype.saveAndPush.call(this,D,t,H,e,V)};
_.q.getDebugString=function(){var D=[];this.initialized&&D.push("i");this.browserHistory.boundHistoryReplaceState&&D.push("bhr");this.browserHistory.boundHistoryPushState&&D.push("bhs");"replaceState"in this.browserHistory.debugInfo&&D.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&D.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&D.push("ei:"+String(this.entryIndex));return D.join(",")};
_.po=function(D,t){D.init(!0);var H=D.browserHistory.getState();D.replaceState(H,Gm(t))};
y4v.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.dt=new _.kI("DESKTOP_HISTORY_MANAGER_TOKEN");var Baw=[10,20,30,40,50,60],xn=function(){this.currentPartitionIndex=0},zr6=function(D){Zo6({mainAppWeb:_.th(),
survivalSli:{partitionMinute:D,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},DtB=function(D){Zo6({mainAppWeb:_.th(),
survivalSli:{partitionMinute:D,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},t1f=function(D){return D.currentPartitionIndex>=0&&D.currentPartitionIndex<Baw.length?Baw[D.currentPartitionIndex]:-1},HVa=function(D){return D.currentPartitionIndex>0&&D.currentPartitionIndex-1<Baw.length?Baw[D.currentPartitionIndex-1]:-1};
xn.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var D=HVa(this);D>0&&DtB(D);D=t1f(this);D>0&&zr6(D);eJ6(this)}};
var eJ6=function(D){var t=t1f(D);if(t>0){var H=HVa(D);H<0&&(H=0);D.intervalId=_.Jy.addJob(function(){var e=HVa(D);e>0&&DtB(e);e=t1f(D);e>0&&zr6(e);eJ6(D)},3,(t-H)*6E4);
D.currentPartitionIndex+=1}else D.currentPartitionIndex=-1};var V1f=function(){this.skipNextNavigation=!1},bVw=function(D,t,H){if(!t)return!1;
if(D.skipNextNavigation)return D.skipNextNavigation=!1;if(_.O(H,_.um))return!1;var e,V,b;if((e=_.O(H,_.UL))==null?0:(V=e.browseEndpointContextSupportedConfigs)==null?0:(b=V.browseEndpointContextMainConfig)==null?0:b.skipConfirmation)return!1;var a;return((a=_.O(t.commandMetadata,_.i1))==null?void 0:a.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
V1f.prototype.showConfirmationDialog=function(D,t){this.navigateParams=t;this.customConfirmationCommand?_.qS().resolve(_.aA).resolveCommand(this.customConfirmationCommand):(t={openPopupAction:{popup:{confirmDialogRenderer:{title:_.H7(_.OT("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.H7(_.OT("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.H7(_.OT("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.H7(_.OT("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.Qa.getInstance().triggerAction("yt-open-popup-action",t,D))};
V1f.prototype.cancelPendingNavigation=function(){var D;((D=this.navigateParams)==null?void 0:D.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var qCo=function(){},aKf=function(D,t,H,e,V,b,a){H=H===void 0?{}:H;
a=a===void 0?{}:a;var w=_.Im.instance,h,K=(h=_.O(t,_.um))==null?void 0:h.url;return K?cYu(w,K,H,window.location.href,function(N,k){Fp6(D,N,k,!1,!0,H,b,e)},function(){return!1}):uI(w,t,H,window.location.href,P7(t),function(N,k){Fp6(D,N,k,!1,!0,H,b,e)},V,a)},Fp6=function(D,t,H,e,V,b,a,w){if(!D.JSC$14457_chunkHandler)if(H.page==="learning_journey_watch"&&_.r("web_enable_canvas_on_learning_journey")){var h=!_.O(w,_.UL);
V=V||e;if(h)if(V){if(_.r("kevlar_continue_playback_without_player_response")){var K;var N=(K=_.O(w,_.Hh))==null?void 0:K.videoId}e={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:e,previousVideoId:N},tempData:b}}else e={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else e={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};D.JSC$14457_chunkHandler=new mn6(_.FA,e,a,h,V)}else if(H.page==="watch"||H.page==="learning_journey_watch")if(V||e){if(_.r("kevlar_continue_playback_without_player_response")){var k;
h=(k=_.O(w,_.Hh))==null?void 0:k.videoId}D.JSC$14457_chunkHandler=new XWV(_.FA,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:e,previousVideoId:h},tempData:b},a)}else D.JSC$14457_chunkHandler=new nEm(_.FA);else H.page==="shorts"&&V&&!e?D.JSC$14457_chunkHandler=new Son(_.FA,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:b},a):D.JSC$14457_chunkHandler=new Cr4(a);D.JSC$14457_chunkHandler.processChunk({endpoint:t,data:H});return D.JSC$14457_chunkHandler.yS.promise},
wAw=function(D,t,H,e,V){(H=_.ct9(H))&&Fp6(D,t,H,!1,!0,e,void 0,V)};_.ZV3=new _.kI("NAVIGATION_SERVICE_TOKEN");var sV9=function(){this.pendingNavigationPromise=null};
_.q=sV9.prototype;_.q.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.q.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.q.addEventListener=function(){throw Error("Dh");};
_.q.dispatchEvent=function(){throw Error("Dh");};
_.q.removeEventListener=function(){throw Error("Dh");};var hJQ=new _.kI("APP_ROOT");var b5K=null;var Ghw=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],RM=function(){_.J2.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];E84(this)};
_.P(RM,_.J2);RM.prototype.verifyUser=function(){var D=E84(this),t=D.logout;if(!D.sessionChange)return!0;this.dispatchEvent("ytsessionchange");t&&this.dispatchEvent("ytuserinvalid");return!1};
var E84=function(D){var t=Ghw.map(function(V){var b;return(b=_.ri.get(V))!=null?b:""}),H=t.some(function(V,b){return D.sessionCookies&&D.sessionCookies[b]!==""&&V===""}),e=t.some(function(V,b){return D.sessionCookies&&D.sessionCookies[b]!==V});
D.sessionCookies=t;return{logout:H,sessionChange:e}};
RM.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Jy.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var sb6=new _.kI("POSTMESSAGE_TUNNEL_TOKEN");var a56=["/parent_tools","/file_download","/artist_roster"],EA$=[tfw,HQm,en3,bQw,Vf3,Dwf,qmV,Fn9];var uk=new _.kI("NAVIGATION_CONFIRMATION_SERVICE");var Kp3="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),N5B=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],WJ=function(D,t){this.pendingNavigationPromise=null;this.JSC$14480_clientRoot=D;this.historyManager=t;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new qCo;this.debugString=D.is;D={"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};_.ya(_.Qa.getInstance(),D,this.JSC$14480_clientRoot)},$tn,iVv,roo,OVa,jVf;
_.P(WJ,sV9);WJ.prototype.reload=function(){_.D9(window.location.href)};
var iBn=function(D){D.currentEndpoint&&_.O(D.currentEndpoint,_.C_)?D.reload():D.currentEndpoint&&D.navigate(D.currentEndpoint,!0,void 0,{disableCache:!0})};
WJ.prototype.navigate=function(D,t,H,e,V,b,a,w){t=t===void 0?!1:t;H=H===void 0?{}:H;e=e===void 0?{}:e;var h=_.qS().resolve(uk),K;if(!a&&bVw(h,(K=this.currentEndpoint)!=null?K:void 0,D))return h.showConfirmationDialog(this.JSC$14480_clientRoot.parentElement,{endpoint:D,reload:t,params:H,tempData:e,requestType:V,createScreenConfig:b}),!1;var N=_.EK();_.Kp(N,"eocs")||N.parkOrScheduleJob(function(){N.processSignal("eocs")},10,"eor");
q68();a=P7(D);h=e.autonav==="1";K=_.v3();RM.instance||(RM.instance=new RM);var k=RM.instance.verifyUser(),T;if(_.r("enable_dark_theme_only_on_shorts")){var c=document.documentElement.hasAttribute("dark"),U=_.f_(!0)==="USER_INTERFACE_THEME_DARK";if(a==="shorts"){if(!c)if(_.r("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var S;_.D9((S=_.O(D==null?void 0:D.commandMetadata,_.i1))==null?void 0:S.url,void 0,void 0,window.top)}}else{var L;_.D9(_.Bn((L=_.O(D==
null?void 0:D.commandMetadata,_.i1))==null?void 0:L.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.r("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!c){var J;_.D9(_.Bn((J=_.O(D==null?void 0:D.commandMetadata,_.i1))==null?void 0:J.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(U!==c){var g;_.D9(_.Bn((g=_.O(D==null?void 0:D.commandMetadata,_.i1))==null?void 0:g.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(a==="watch"){if(khn(_.qS().resolve(_.dL),
D)&&(k||_.r("fix_miniplayer_navigation_killswitch")))return!1;_.r("block_all_player_prefetch_requests")||(T=j_f(_.Vd(_.QN),D,h))}else{var Q,u=(Q=_.O(this.currentEndpoint,_.Hh))==null?void 0:Q.videoId;u&&_.z6.getInstance().then(function(g6){g6&&g6.set("yt-miniplayer-shown-video-id",u)})}T&&(H.frags=T.missingFragments_.join(","));
S=null;var R;L=(R=_.O(D==null?void 0:D.commandMetadata,_.i1))==null?void 0:R.ignoreNavigation;if(!L)if(_.r("kevlar_command_url")){var I;S=(I=_.O(D==null?void 0:D.commandMetadata,_.i1))==null?void 0:I.url}else S=_.BFK(D,H);if(S&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&S==this.lastNavigationUrl)return _.JE({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.EG(W3(),"CANCELLED")}S&&(this.lastNavigationUrl=S);lGD();_.JZ("IS_HOMEPAGE_COLD",
!1);_.JZ("IS_RESULTS_PAGE_COLD",!1);_.JZ("IS_WATCH_PAGE_COLD",!1);D.loggingUrls&&D.loggingUrls.forEach(function(g6){g6.baseUrl&&_.IP(g6.baseUrl)});
_.Ta8(D,b?b.layer:0)&&_.r("kevlar_flush_logs_on_away_navigation")&&_.Ap();if(KAu(D))return!1;DW4(a,V);if(!S)return L||_.Yw(new _.nZ("Can't construct url for endpoint",D)),_.EG(W3(),"FAILURE"),!1;_.FAD();R=D&&_.O(D,_.UL)&&_.O(D,_.UL).browseId.startsWith("UC");H=(I=_.r("enable_dark_theme_only_on_shorts")&&a==="shorts"?!1:_.L_()&&document.documentElement.hasAttribute("dark")!==_.XO())?{themeRefresh:1}:{};I&&!_.Ua()&&_.f_()==="USER_INTERFACE_THEME_DARK"&&(H.theme="dark");R=I||T5V(S)&&!R&&!_.r("kevlar_disable_url_allowlist");
k||(R=!0);if(R||_.YC("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var tT;var ZV=(tT=window.top)==null?void 0:tT.location.href}catch(g6){var ED;ZV=(ED=g6)==null?void 0:ED.message}_.Yw(new _.nZ("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:ZV}))}D=_.r("kevlar_redirect_on_window_killswitch")?window.top:window;zK(S);_.D9(_.Bn(S,H),void 0,void 0,D);_.EG(W3(),"ABORTED");return!1}_.r("kevlar_early_popup_close")&&_.ET(this.JSC$14480_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14457_chunkHandler=void 0;var o$;ZV=P7((o$=this.currentEndpoint)!=null?o$:void 0);(o$=a==="shorts"&&ZV==="shorts")||_.LjV();_.pY($4u)("nr",void 0);h&&_.JE({webInfo:{navigationReason:"an"}});D.clickTrackingParams&&(e.itct=D.clickTrackingParams,e.csn=K);zzT(e);e.endpoint=JSON.stringify(D);_.r("enable_unknown_lact_fix_on_html5")&&(_.qS().resolve(_.mM),e.lact=_.aR());_.J$.isEmpty(e)||_.qJ(S,e);!_.r("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(b=Object.assign({},{layer:0},b,{parentLayer:3}));this.pendingNavigationPromise=b=aKf(this.pageFetcher,D,e,this.currentEndpoint,this.JSC$14480_isNetworkPromiseStale.bind(this),b,w);b=b.then(this.handleNavigateSuccess.bind(this,b,D,T,e),this.handleNavigateFail.bind(this,b,D));_.d3().navigationFinishPromise=b;t={endpoint:D,pageType:a,url:Gm(S),reload:!!t,noProgressBar:o$};V&&(t.type=V);var jV;V=_.OL((jV=this.currentEndpoint)!=null?jV:null);jV=_.OL(D!=null?D:null);this.fireEvent("yt-navigate-start",
t);var i8;(i8=_.qS().resolve(_.by(_.ZV3)))==null||i8.publish("navigation-start",{sourcePageSubtype:V,destinationPageSubtype:jV});T&&wAw(this.pageFetcher,D,T,e,this.currentEndpoint);return!0};
WJ.prototype.JSC$14480_isNetworkPromiseStale=function(D){return D!=this.pendingNavigationPromise};
var co9=function(D,t,H,e,V){var b=P7(t);t={endpoint:t,pageType:b};V&&(t.errorMessage=V);_.Yw(H);t.navigationDoneMs=_.vh("nd");t.navigationErrorReason=e;D.fireEvent("yt-navigate-error",t)};
WJ.prototype.handleNavigateFail=function(D,t,H){var e=void 0;H instanceof _.dg&&(e=H,QnX(H));if(this.JSC$14480_isNetworkPromiseStale(D))return _.Aj(e);_.EG(W3(),"FAILURE");co9(this,t,H,"101");return _.Aj(H)};
WJ.prototype.handleNavigateSuccess=function(D,t,H,e,V){if(this.JSC$14480_isNetworkPromiseStale(D))return _.Tf();this.pendingNavigationPromise=null;if(!V)return t=new _.nZ("Missing data in response for navigation endpoint",t),_.Aj(t);if(V.reload)return window.location.reload(!0),_.Tf();H&&(D={},_.J$.extend(D,_.ct9(H),V),V=D);var b,a;H=(b=V)==null?void 0:(a=b.timing)==null?void 0:a.responseStart;H!=null&&_.vh("srt",H);_.vh("pdc");var w,h;b=(w=V)==null?void 0:(h=w.timing)==null?void 0:h.info;b!=null&&
(w=_.pY(_.U48)(b),_.JE(w));_.EG(W3(),"SUCCESS");jVf(this,t,V,1,e);return _.Tf()};
var T5V=function(D){var t=D;_.r("kevlar_no_redirect_to_classic_2_ks")||(t=(new _.eP(D)).getPath());if(t==="/"||t==="/red")return!1;var H=!0;Kp3.forEach(function(e){D.indexOf(e)===0&&(H=!1)});
N5B.forEach(function(e){var V=e.url;_.r(e.expFlag)&&D.indexOf(V)===0&&(H=!1)});
return H};
WJ.prototype.publishPageData=function(D){this.fireEvent("yt-page-data-fetched",{pageData:D})};
$tn=function(D,t,H,e,V,b){var a=null;t.page!=="watch"&&t.page!=="learning_journey_watch"||e?t.filler||_.ET(D.JSC$14480_clientRoot,"yt-stop-old-player",[t]):a=Fp6(D.pageFetcher,V,t,H,!1,b,void 0,D.currentEndpoint);if(a)return a.then(D.publishPageData.bind(D,t));D.publishPageData(t);return _.Tf()};
iVv=function(D,t,H){var e=null;if(!H)return e=new _.nZ("Empty data",D.debugString,t);var V=H.response;if(!V)return e;var b={endpointType:P7(t)||"unknown"};V.responseContext?(V=V.responseContext.errors)&&(e=new _.nZ("Errors in response context",D.debugString,t,V,b)):e=V.error||V.errorMetadata?new _.nZ("Errors in response",D.debugString,t,V.error,V.errorMetadata,b):new _.nZ("responseContext missing",D.debugString,t,Object.keys(V).sort().join(","),b);var a,w,h,K;if(D=H==null?void 0:(a=H.response)==null?
void 0:(w=a.responseContext)==null?void 0:(h=w.webResponseContextExtensionData)==null?void 0:(K=h.webResponseContextDebugData)==null?void 0:K.debugErrorMessages)for(a=0;a<D.length;a++);return e};
roo=function(D){var t,H,e,V;return D==null?void 0:(t=D.response)==null?void 0:(H=t.responseContext)==null?void 0:(e=H.errors)==null?void 0:(V=e.error)==null?void 0:V["0"]};
OVa=function(D,t){var H;if(H=t.url&&!t.url.startsWith("/clip"))H=t.url,H=!_.r("webfe_parse_debug_param_in_resolveurl_service")&&D.searchDebugUrlMatcher.test(H)||VRA(H)?!0:!1;if(H)VRA(t.url)&&_.yc(window.location.href).themeRefresh?(t=_.Fy(t.url,"themeRefresh"),_.po(D.historyManager,t)):t.url&&!D83(t.url)&&_.po(D.historyManager,t.url);else if(t.endpoint){var e,V,b;(H=(e=t.endpoint)==null?void 0:(V=e.commandMetadata)==null?void 0:(b=V.webCommandMetadata)==null?void 0:b.url)&&!D83(H)&&_.po(D.historyManager,
H);H&&t.url&&H!=t.url&&!t.url.match("playnext=1")&&new _.nZ("Response url mismatch in response data",D.debugString,H,t.url)}};
_.Utn=function(D,t,H,e,V,b,a,w){b=b===void 0?!1:b;var h=_.qS().resolve(uk),K;if(!w&&bVw(h,(K=D.currentEndpoint)!=null?K:void 0,t))return h.showConfirmationDialog(D.JSC$14480_clientRoot.parentElement,{endpoint:t,data:H,navigationType:e,tempData:V,isMiniplayer:b,isForwardHistoryNavigation:a==null?void 0:a.forward}),_.Tf();D.pageFetcher.JSC$14457_chunkHandler=void 0;return jVf(D,t,H,e,V,b)};
jVf=function(D,t,H,e,V,b){b=b===void 0?!1:b;D.isMiniplayerExpansion=b;var a=e===2;D.currentEndpoint=t;D.numNavigations++;D.numNavigations&&(Yb3.navigationCount=D.numNavigations);_.JZ("NUM_NAV",D.numNavigations);var w=iVv(D,t,H);if(w)return co9(D,t,w,"102",roo(H)),_.Aj(w);var h,K,N,k;w=H.rootVe||(H==null?void 0:(h=H.response)==null?void 0:(K=h.responseContext)==null?void 0:(N=K.webResponseContextExtensionData)==null?void 0:(k=N.ytConfigData)==null?void 0:k.rootVisualElementType);!a&&H&&OVa(D,H);var T,
c;h=H==null?void 0:(T=H.response)==null?void 0:(c=T.responseContext)==null?void 0:c.maxAgeSeconds;if(!a&&!isNaN(h)){var U;_.r("kevlar_use_response_ttl_to_invalidate_cache")?U=(0,_.aP)()+1E3*h:_.r("kevlar_always_invalidate_cache")&&(U=0);isNaN(U)||(H.expirationTime=U)}_.Vd(_.QN).prefetchCache_.clear();a||H.page!=="watch"||H.type!=="reduced"&&e!==1?e=$tn(D,H,a,!!b,t,V):(D.publishPageData(H),e=_.Tf());V=e.then(function(){var S=P7(t);S={endpoint:t,pageType:S,fromHistory:a,response:H};S.navigationDoneMs=
_.vh("nd");D.fireEvent("yt-navigate-finish",S);var L;(L=_.qS().resolve(_.by(_.ZV3)))==null||L.publish("navigation-end")});
H.csn&&w&&H.clientSideGrafts&&e.then(D.attachClientSideGrafts.bind(D,H,_.lo()));return V};
_.q=WJ.prototype;_.q.attachClientSideGrafts=function(D,t){D.clientSideGrafts&&t&&D.clientSideGrafts.forEach(function(H){if(t&&H){var e=_.Sa(H);_.r("combine_ve_grafts")?_.Pc().graftServerVe(H,t):_.Q$(D.csn,t,e)}})};
_.q.handleSignalActionHistoryBack=function(){window.history.back()};
_.q.handleSignalActionCloseWindow=function(){window.close()};
_.q.handleSignalActionReloadPage=function(){this.reload()};
_.q.handleSignalActionSoftReloadPage=function(){iBn(this)};
_.q.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.q.fireEvent=function(D,t){D=new CustomEvent(D,{bubbles:!0,cancelable:!1,composed:!0,detail:t});this.dispatchEvent(D)};
_.q.addEventListener=function(D,t){this.JSC$14480_clientRoot.addEventListener(D,t)};
_.q.dispatchEvent=function(D){return this.JSC$14480_clientRoot.dispatchEvent(D)};
_.q.removeEventListener=function(D,t){this.JSC$14480_clientRoot.removeEventListener(D,t)};
WJ[Fc]=[hJQ,_.dt];_.iHT=new Lp("browse","h8y2qb");_.rx3=new Lp("search","JzFVk");_.OHD=new Lp("shorts","xwEKAe");_.URk=new Lp("watchFixie","nmfa2d");_.oJV=new Lp("watchFlexy","CF909");_.PnV=new Lp("watchGrid","Tm0L3c");_.nJT=new Lp("watchLearningJourney","L3n37");var o8a;var PJn=function(){return _.X.apply(this,arguments)||this};
_.P(PJn,_.X);_.ql.Object.defineProperties(PJn,{template:{configurable:!0,enumerable:!0,get:function(){if(o8a===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);o8a=D}D=o8a;return D}}});
_.d([_.C(oAQ.YtPlayerBehavior),_.x("design:type",Object)],PJn.prototype,"ytPlayerBehavior",void 0);_.d([_.Y({is:"ytd-player"})],PJn);var n8v;var CJ3;var mta;var IM=function(){var D=_.X.apply(this,arguments)||this;D.forceModernIconButton=!1;D.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return D};
_.P(IM,_.X);IM.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]]"}}}}}};
IM.prototype.handleAccountLinkingStateChangedCommand=function(D){if(D=_.O(D,ub3)){var t,H=(t=this.data)==null?void 0:t.providerKey;t=D.providerKey;H&&t&&H.id===t.id&&H.subject===t.subject&&(D=D.linked,D!==void 0&&(this.set("data.linked",D),this.notifyPath("data.linked"),_.r("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(D)))}};
IM.prototype.setPlayerAccountLinkState=function(D){var t=new auf;wO9(t,qAQ(new bLn,D));var H=_.FA();H&&H.getPlayerPromise().then(function(e){e.setAccountLinkState(_.XF(t.JSC$12174_serializeBinary(),4));e.updateAccountLinkingConfig(D)})};
IM.prototype.handleShowAccountLinkDialog=function(){var D=this.get("button.buttonRenderer.command");D&&_.jP([D],this.hostElement)};
_.ql.Object.defineProperties(IM.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}}}});
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],IM.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],IM.prototype,"ytRendererBehavior",void 0);_.d([_.C([_.dW.YtActionHandlerBehavior]),_.x("design:type",Object)],IM.prototype,"actionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],IM.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],IM.prototype,"overrides",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],IM.prototype,"forceModernIconButton",void 0);_.d([_.M({value:"bottom"}),_.x("design:type",String)],IM.prototype,"buttonTooltipPosition",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],IM.prototype,"forceIconButton",void 0);_.d([_.M(),_.x("design:type",Boolean)],IM.prototype,"disableTextTransform",void 0);
_.d([_.m("data","data.linked","data.isWarning"),_.x("design:type",Object),_.x("design:paramtypes",[])],IM.prototype,"button",null);_.d([_.Y({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],IM);
_.p(IM,"ytd-account-link-button-renderer",function(){if(mta!==void 0)return mta;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return mta=D},{mode:1});var M14;var SCf=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Qx=function(){return _.X.apply(this,arguments)||this};
_.P(Qx,_.X);Qx.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Qx.prototype.updateButtonActiveState=function(){var D=this,t=!!SCf.find(function(H){return D.currentState===H});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.r("enable_web_delhi_icons")&&(t=!1);this.button&&(this.button.isPressed=t)};
_.ql.Object.defineProperties(Qx.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.playlistLoopStateEntity)==null?void 0:D.state)||((t=this.data)==null?void 0:t.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var D=void 0,t;if(this.currentState&&((t=this.data)==null?0:t.states)){t=_.F(this.data.states);for(var H=t.next();!H.done;H=t.next()){H=_.O(H.value,_.hwm);var e=void 0;if(((e=H)==null?void 0:e.state)===this.currentState){D=H;break}}}return D}}});
Qx.prototype.updateButtonActiveState=Qx.prototype.updateButtonActiveState;_.d([_.C(_.sx),_.x("design:type",Object)],Qx.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Qx.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.U8k}),_.x("design:type",Object)],Qx.prototype,"playlistLoopStateEntity",void 0);_.d([_.M(),_.x("design:type",Object)],Qx.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],Qx.prototype,"forceIconOnly",void 0);_.d([_.o5("ytd-button-renderer"),_.x("design:type",_.nc)],Qx.prototype,"button",void 0);
_.d([_.m("data","playlistLoopStateEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qx.prototype,"currentState",null);_.d([_.Os("currentButtonStateRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qx.prototype,"updateButtonActiveState",null);_.d([_.m("currentState"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qx.prototype,"currentButtonStateRenderer",null);
_.d([_.Y({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Qx);
_.p(Qx,"ytd-playlist-loop-button-renderer",function(){if(M14!==void 0)return M14;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return M14=D},
{mode:1});var XAn;var fKw=_.OT("DOWNLOAD",{},"Download"),LpV=_.OT("DOWNLOADING",{},"Downloading"),AoQ=_.OT("DOWNLOADED",{},"Downloaded"),g8f=_.OT("RETRY",{},"Retry"),yx=function(){var D=_.X.apply(this,arguments)||this;D.forceIconButton=!1;D.forceIconOnly=!1;D.overrides=!1;D.buttonTooltipPosition=!1;D.styleActionButton=!1;D.disableTextTransform=!1;D.downloadProgress=0;D.isDownloadComplete=!1;D.isHidden=!0;D.transferState="TRANSFER_STATE_UNKNOWN";D.isVideoDeletedByUser=!1;D.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return D};
_.P(yx,_.X);_.q=yx.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.dataChanged=function(){var D;(D=this.data)!=null&&D.text||(D=_.xe(_.b_().getState(),this.videoId),this.updateButtonState(D))};
_.q.computeVideoId=function(D){return D};
_.q.computePlayerStateEntityKey=function(D){return D};
_.q.showHideButton=function(){this.updateButtonVisibility()};
_.q.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var D;((D=this.playerStateEntity)==null?void 0:D.adsState)==="ADS_STATE_PLAYING"?this.isHidden=!0:this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.q.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.q.updateButtonState=function(D){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==LpV||!_.CC(D))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(D){case "TRANSFER_STATE_UNKNOWN":D=fKw;var t="OFFLINE_DOWNLOAD";var H="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":D=g8f;t="OFFLINE_DOWNLOAD";H="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":D=AoQ;t="OFFLINE_PIN";H="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":D=
LpV;t="OFFLINE_DOWNLOADING_ZERO";H="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":D=g8f;t="OFFLINE_DOWNLOAD";H="ACTION_RETRY";break;default:D=fKw,t="OFFLINE_DOWNLOAD",H="ACTION_ADD"}this.isVideoDeletedByUser&&(D=fKw,t="OFFLINE_DOWNLOAD",H="ACTION_ADD");var e=Object.assign({},this.data);e.text=_.H7(D);e.tooltip=D;e.icon={iconType:t};e.size="SIZE_DEFAULT";e.style="STYLE_DEFAULT";_.O(e.command,_.$i)&&(_.O(e.command,_.$i).action=H);this.set("data",e)}};
_.q.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var D="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?D="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?D="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?D="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?D="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?D="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(D="OFFLINE_PIN",this.isDownloadComplete=!0);var t;D!==((t=this.data.icon)==null?void 0:t.iconType)&&(t=Object.assign({},this.data),t.text=_.H7(LpV),t.tooltip=LpV,t.icon={iconType:D},_.O(t.command,_.$i)&&(_.O(t.command,_.$i).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",t))}};
yx.prototype.updateProgress=yx.prototype.updateProgress;yx.prototype.onTransferStateChanged=yx.prototype.onTransferStateChanged;yx.prototype.showHideButton=yx.prototype.showHideButton;yx.prototype.dataChanged=yx.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],yx.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],yx.prototype,"forceIconButton",void 0);
_.d([_.M(),_.x("design:type",Object)],yx.prototype,"forceIconOnly",void 0);_.d([_.M(),_.x("design:type",Object)],yx.prototype,"overrides",void 0);_.d([_.M(),_.x("design:type",Object)],yx.prototype,"buttonTooltipPosition",void 0);_.d([_.M(),_.x("design:type",Object)],yx.prototype,"styleActionButton",void 0);_.d([_.M(),_.x("design:type",Object)],yx.prototype,"disableTextTransform",void 0);
_.d([_.M({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.x("design:type",String)],yx.prototype,"videoId",void 0);_.d([_.M({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.x("design:type",String)],yx.prototype,"playerStateEntityKey",void 0);_.d([_.M(),_.x("design:type",Object)],yx.prototype,"data",void 0);_.d([_.M({selector:uG,selectorArgs:["videoId"]}),_.x("design:type",Object)],yx.prototype,"downloadProgress",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yx.prototype,"isDownloadComplete",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yx.prototype,"isHidden",void 0);_.d([_.M({selector:_.xe,selectorArgs:["videoId"]}),_.x("design:type",String)],yx.prototype,"transferState",void 0);_.d([_.M({selector:_.g$D,selectorArgs:["videoId"]}),_.x("design:type",Object)],yx.prototype,"isVideoDeletedByUser",void 0);
_.d([_.M({selector:Miu,selectorArgs:["videoId"]}),_.x("design:type",Object)],yx.prototype,"offlineabilityState",void 0);_.d([_.M({selector:KQ3,selectorArgs:["playerStateEntityKey"]}),_.x("design:type",Object)],yx.prototype,"playerStateEntity",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],yx.prototype,"showTooltips",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],yx.prototype,"sendCommandWhenDisabled",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],yx.prototype,"disabled",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yx.prototype,"dataChanged",null);_.d([_.mx("offlineabilityState","playerStateEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yx.prototype,"showHideButton",null);
_.d([_.mx("transferState","isVideoDeletedByUser"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yx.prototype,"onTransferStateChanged",null);_.d([_.mx("downloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yx.prototype,"updateProgress",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],yx);
_.p(yx,"ytd-download-button-renderer",function(){if(XAn!==void 0)return XAn;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return XAn=D},{mode:2});var Jof;var YCm,lKo=function(){if(YCm!==void 0)return YCm;var D=document.createElement("template");_.n(D,'\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 YCm=D};var v89=_.r("web_button_rework")&&_.lh("BUTTON_REWORK")||_.r("web_button_rework_with_live"),pAQ=_.ZU("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,BJ=function(){var D=_.X.apply(this,arguments)||this;D.isPressed=!1;D.forceIconButton=!1;D.forceIconOnly=!1;D.forceModernIconButton=!1;D.alignByText=!1;D.isShorts=!1;D.animatedText=!1;D.shouldAnimate=!1;D.JSC$14519_browserSupportsAnimation=_.r("web_supports_animations_api");D.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};D.onTap=function(){var t;if((t=D.data)==null||!t.defaultNavigationEndpoint){var H;t=!((H=D.data)==null?0:H.isToggled);var e;if((e=D.data)==null||!e.preventAutoToggle){D.shouldAnimate=!1;D.disableTextUpdateJobId&&_.Jy.cancelJob(D.disableTextUpdateJobId);D.disableTextUpdateJobId=_.Jy.addLowPriorityJob(function(){D.disableTextUpdateJobId=void 0},pAQ);
var V;D.set("data.isToggled",!((V=D.data)==null?0:V.isToggled));H=D.getInnertubeIcon();e={toggled:t,actions:{}};H&&(e.actions[H.toLowerCase()]=t);_.Gf(D.hostElement,"yt-toggle-button",e)}}};
return D};
_.P(BJ,_.X);_.q=BJ.prototype;_.q.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Jy.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.toggle=function(D){var t;this.set("data.isToggled",D!==void 0?D:!((t=this.data)==null?0:t.isToggled))};
_.q.handleUpdateToggleButtonStateCommand=function(D){if(this.data){D=_.O(D,ewQ);var t,H,e,V=(t=this.data)==null?void 0:(H=t.toggleButtonSupportedData)==null?void 0:(e=H.toggleButtonIdData)==null?void 0:e.id;V&&D&&V===(D==null?void 0:D.buttonId)&&this.set("data.isToggled",D.toggled)}};
_.q.handleUpdateToggleButtonTextAction=function(D){if(this.data){D=_.O(D,TBa);var t,H,e,V=(t=this.data)==null?void 0:(H=t.toggleButtonSupportedData)==null?void 0:(e=H.toggleButtonIdData)==null?void 0:e.id;V&&D&&V===(D==null?void 0:D.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=D.defaultNumericalValue,this.set("data.defaultText",D.defaultText),this.set("data.toggledText",D.toggledText),this.shouldAnimate=!1)}};
_.q.getInnertubeIcon=function(){var D=this.data;if(D){var t,H,e=((t=D.defaultIcon)==null?0:t.iconType)?(H=D.defaultIcon)==null?void 0:H.iconType:null,V,b;t=((V=D.toggledIcon)==null?0:V.iconType)?(b=D.toggledIcon)==null?void 0:b.iconType:e;return D.isToggled?t:e}};
_.q.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.ql.Object.defineProperties(BJ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D={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$14519_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var t=D.renderer;var H=D.element;var e=D.toggled;var V=D.onTapCallback;var b=D.commandClientArgs;var a=D.overrides;var w=D.forceIcon;var h=D.forceModernIconButton;var K=D.forceDisabled;var N=D.useAnimatedText;var k=D.animatedTextProps;D=CTD(t,e);w=!t.defaultIcon||!w&&t.defaultText?t.defaultIcon?"leading":void 0:h?"icon-only":"icon-only-40";w==="icon-only-40"&&(D.type="text");var T;h=Object;var c=h.assign,U;a:switch((U=
t.style)==null?void 0:U.styleType){case "STYLE_COMPACT_GRAY":U={size:"S"};break a;default:U={size:"M"}}var S=!!e;var L=(L=e&&t.toggledText||t.defaultText)?_.lf(L):void 0;N?(N=_.eo(e&&t.toggledText||t.defaultText))&&k&&!isNaN(Number(k.numberValue))?(k.numberText=N,e&&(k.numberValue+=1),N=k):N=void 0:N=void 0;var J,g,Q,u;var R=(k=((g=e?t.toggledAccessibilityData||((R=t.toggledText)==null?void 0:R.accessibility):t.accessibilityData||((J=t.defaultText)==null?void 0:J.accessibility))==null?void 0:(Q=g.accessibilityData)==
null?void 0:Q.label)||((u=t.accessibility)==null?void 0:u.label))?k:_.eo(e&&t.toggledText||t.defaultText);K=K===void 0?t.isDisabled:K;H=nA8(t,e,V,H,b);e=PT8(t,e);e!=null&&e.length?(e=_.uf({innertubeCommand:hSV(e),forceNewState:!0}),e=Wc(e)?e:void 0):e=void 0;t=c.call(h,{},D,U,{iconPosition:w},a,{focused:!1,toggled:S,toggleable:!0,formattedButtonText:L,animatedTextProps:N,accessibilityLabel:R,disabled:K,onTap:H,aTagConfig:e},Jm8((T=t.colorData)==null?void 0:T.basicColorPaletteData));t.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(t.type="filled");return t}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var D=this.getInnertubeIcon();if(D)return _.cc(D)}}});
BJ.prototype.resetAnimation=BJ.prototype.resetAnimation;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],BJ.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],BJ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],BJ.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],BJ.prototype,"isPressed",void 0);_.d([_.M(),_.x("design:type",Object)],BJ.prototype,"forceIconButton",void 0);_.d([_.M(),_.x("design:type",Object)],BJ.prototype,"forceIconOnly",void 0);_.d([_.M(),_.x("design:type",Object)],BJ.prototype,"forceModernIconButton",void 0);_.d([_.M(),_.x("design:type",Object)],BJ.prototype,"alignByText",void 0);_.d([_.M(),_.x("design:type",Object)],BJ.prototype,"overrides",void 0);
_.d([_.M(),_.x("design:type",Boolean)],BJ.prototype,"disabled",void 0);_.d([_.M(),_.x("design:type",Object)],BJ.prototype,"isShorts",void 0);_.d([_.M(),_.x("design:type",Object)],BJ.prototype,"buttonTooltipPosition",void 0);_.d([_.M(),_.x("design:type",Object)],BJ.prototype,"animatedText",void 0);_.d([_.M(),_.x("design:type",String)],BJ.prototype,"textNumberValue",void 0);_.d([_.M({computed:"computeTooltip(data, data.isToggled)"}),_.x("design:type",Object)],BJ.prototype,"tooltip",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BJ.prototype,"resetAnimation",null);_.d([_.m("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.x("design:type",Object),_.x("design:paramtypes",[])],BJ.prototype,"computedButtonShape",null);_.d([_.m("data.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],BJ.prototype,"computedIcon",null);
_.d([_.Y({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],BJ);v89&&_.p(BJ,"ytd-toggle-button-renderer",lKo,{mode:_.Kz("kevlar_poly_si_batch_j081")?1:2});var dtf=_.l(function(D){function t(K){var N;return _.Z(function(k){if(k.nextAddress==1)return(N=!MlX(K,w())||!w().enabled)?k.jumpTo(2):k.yield(A48(),3);k.nextAddress!=2&&(N=k.yieldResult);if(N)return k.return();H();setTimeout(function(){a(!1)},1500);
_.n2(k)})}
function H(){setTimeout(function(){a(!0);var K;(K=e.lottieEl)==null||K.goToAndPlay(0)},150)}
var e=_.c5(),V=_.F(_.KR(!1,void 0,"UfUosc")),b=V.next().value,a=V.next().value,w=_.qT(D.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.XH(function(){var K,N;((K=D.settings)==null?void 0:(N=K.call(D))==null?void 0:N.uniqueId)==="this is not intended behavior"&&_.Yw(new _.nZ("Smartimation Settings is undefined"))});
_.Mp(function(){w().experimentEnabled&&(w().enabled?S6V(t):(a(!1),X26(t)),_.Sj(function(){X26(t)}))},"IHhVmc");
_.Mp(function(){w().timings.join("");w().experimentEnabled&&(f58(w()),_.Sj(function(){LAk(w())}))},"fsfhOe");
var h=_.jj(function(){var K=e,N=w().uniqueId+"-border",k,T;var c="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((T=(k=_.qS().resolve(_.by(_.tB)))==null?void 0:k())!=null&&T?"dark":"light")+"_v2.json";return{animationRef:K,animationConfig:{name:N,autoplay:!1,loop:!1,path:c}}},void 0,"UWvUGe");
V={};return _.G("yt-smartimation",{class:_.jQ(D.className,"smartimation",(V["smartimation--experiment-enabled"]=function(){return w().experimentEnabled},V["smartimation--active-border"]=b,V["smartimation--enable-masking"]=gAu(),V))},_.G(_.E,{cond:function(){return w().experimentEnabled},
then:function(){return _.G("div",{class:"smartimation__border"},_.G(_.x7,{className:"smartimation__border-gradient",data:h,animationName:function(){return h().animationConfig.name}}))}}),_.G("div",{class:"smartimation__content"},D.children))},"ba");
dtf.idomCompat=!0;_.hB(dtf,"yt-smartimation",{props:{className:_.ij,settings:_.ij}});var zI=function(){var D=_.X.apply(this,arguments)||this;D.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};D.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};D.shouldEnableSmartimation=!1;return D};
_.P(zI,_.X);zI.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
zI.prototype.onDataChanged=function(){var D,t;this.shouldEnableSmartimation=(((D=this.data)==null?void 0:(t=D.timedAnimationData)==null?void 0:t.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
zI.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var D=_.O(this.data.likeButton,_.w3),t=_.O(this.data.dislikeButton,_.w3);return!!((D==null?0:D.isToggled)||(t==null?0:t.isToggled))};
zI.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]]"}}}}}};
_.ql.Object.defineProperties(zI.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var D,t,H=((D=this.data)==null?void 0:(t=D.timedAnimationData)==null?void 0:t.animationTiming)||[];return{uniqueId:"like-dislike",timings:H,enabled:this.shouldEnableSmartimation,experimentEnabled:H.length>0}}}});
zI.prototype.onDataChanged=zI.prototype.onDataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],zI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],zI.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],zI.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],zI.prototype,"likeButtonOverride",void 0);_.d([_.M(),_.x("design:type",Object)],zI.prototype,"dislikeButtonOverride",void 0);
_.d([_.m("shouldEnableSmartimation"),_.x("design:type",Object),_.x("design:paramtypes",[])],zI.prototype,"smartimationSettings",null);_.d([_.Os("data"),_.rx("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zI.prototype,"onDataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],zI);
_.p(zI,"ytd-segmented-like-dislike-button-renderer",function(){if(Jof!==void 0)return Jof;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Jof=D},{mode:1});var xtn;var RJB;(RJB=document.body)==null||RJB.setAttribute("rounded-container","");var uZ4={};uZ4.YtToggleButtonBehavior=[_.dW.YtActionHandlerBehavior,yW.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 D=this.data.isToggled;if(!this.isModal_(D)){if(!this.data.preventAutoToggle){this.toggle();var t={toggled:this.data.isToggled,actions:{}};t.actions[this.buttonIcon]=this.data.isToggled;_.Gf(this.hostElement,"yt-toggle-button",t)}t=this.data.defaultServiceEndpoint||null;var H=this.data.toggledServiceEndpoint||null;if(t&&H||t&&this.data.preventAutoToggle)D=D?H:t,t=this.disableCommandHandlerOverride,_.r("killswitch_toggle_button_behavior_resolve_command")||t?_.NJ(this.hostElement,
[D]):_.rj(D,this.hostElement),_.Gf(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:D})}},
stateChanged_:function(){var D=this.data;if(D){var t=D.isToggled;this._setEndpoint(this.computeEndpoint_(D));this._setServiceEndpoint(this.computeServiceEndpoint_(D));this._setButtonIcon(this.computeButtonIcon_(D,t));this._setButtonText(this.computeButtonText_(D,t));this._setButtonAccessibility(this.computeAccessibility_(D,t));this._setButtonTooltip(this.computeTooltip_(D,t));this._setButtonClass(this.computeButtonClass_(D,t));this._setIconPositionType(this.computeIconPositionType_(D));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=t):this.elements_.button.setAttribute("aria-pressed",t));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=t)}},
shouldSetIconActiveState_:function(){return _.r("kevlar_system_icons")},
toggle:function(D){this.set("data.isToggled",D!==void 0?D:!this.data.isToggled);_.r("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(D){if(D){var t,H;return!!((t=this.data)==null?0:(H=t.toggledServiceEndpoint)==null?0:H.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(D){return D&&D.defaultNavigationEndpoint||null},
computeButtonIcon_:function(D,t){var H=D&&D.defaultIcon?_.cc(D.defaultIcon.iconType):null;D=D&&D.toggledIcon?_.cc(D.toggledIcon.iconType):H;return t?D:H},
handleUpdateToggleButtonStateCommand_:function(D){D=D.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==D.buttonId&&this.toggle(D.toggled)},
computeButtonText_:function(D,t){return D?t&&D.toggledText||D.defaultText||null:null},
computeAccessibility_:function(D,t){return D?(t?this.get("toggledAccessibilityData.accessibilityData",D):this.get("accessibilityData.accessibilityData",D))||D.accessibility||null:null},
computeTooltip_:function(D,t){return D?t&&D.toggledTooltip||D.defaultTooltip||null:null},
computeButtonClass_:function(D,t){if(!D)return"";var H="",e=D.toggledStyle||D.style;if(t=t?e:D.style){t.styleType&&(t=t.styleType);try{H+=t.toLowerCase().replace(/_/g,"-")+" "}catch(V){_.lm(V,t,typeof t),_.Yw(V)}}if(D=D.size){D.sizeType&&(D=D.sizeType);try{H+=D.toLowerCase().replace(/_/g,"-")+" "}catch(V){_.lm(V,D,typeof D),_.Yw(V)}}return H.trim()},
computeIconPositionType_:function(D){return D&&D.iconPosition||null},
computeServiceEndpoint_:function(D){var t=D&&D.serviceEndpoint,H=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return t?t:H&&D.command?D.command:null},
handleUpdateToggleButtonTextAction_:function(D){D=D.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==D.buttonId&&(this.set("data.defaultText",D.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",D.toggledText),this.notifyPath("data.toggledText"))}}];_.AB("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Wpa=_.r("web_button_rework")&&_.lh("BUTTON_REWORK")||_.r("web_button_rework_with_live"),DZ=function(){var D=_.X.apply(this,arguments)||this;D.systemIcons=_.r("kevlar_system_icons");D.roundedContainer=!0;return D};
_.P(DZ,_.X);DZ.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
DZ.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var D=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var t={toggled:!!this.data.isToggled,actions:{}};t.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var H,e;t.actions.playlistId=(H=this.data.defaultServiceEndpoint)==null?void 0:(e=H.playlistEditEndpoint)==null?void 0:e.playlistId;_.Gf(this.hostElement,"yt-toggle-button",t)}(D=D?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(D)}};
DZ.prototype.onYtNavigate=function(D){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);t&&(D.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(t))};
_.ql.Object.defineProperties(DZ,{template:{configurable:!0,enumerable:!0,get:function(){if(xtn===void 0){var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);xtn=D}D=xtn;return D}}});
DZ.prototype.onYtNavigate=DZ.prototype.onYtNavigate;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],DZ.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],DZ.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],DZ.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(uZ4.YtToggleButtonBehavior),_.x("design:type",Object)],DZ.prototype,"ytToggleButtonBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],DZ.prototype,"data",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],DZ.prototype,"showTooltips",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],DZ.prototype,"systemIcons",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],DZ.prototype,"roundedContainer",void 0);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],DZ.prototype,"onYtNavigate",null);
_.d([_.Y({is:"ytd-toggle-button-renderer",disableElementRegistration:Wpa})],DZ);var IKv,QV6;_.tr=new _.kI("PANEL_CONTROLLER_TOKEN");_.Hp=new _.kI("SHEET_CONTROLLER_TOKEN");_.eC=new _.kI("DIALOG_CONTROLLER_TOKEN");IKv=new _.kI("DIALOG_CONTAINER_TOKEN");QV6=new _.kI("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.VD=new _.kI("PERSISTENT_PANEL_CONTROLLER_TOKEN");var uR6=_.OT("DOWNLOAD",{},"Download"),WAV=_.OT("DOWNLOADING",{},"Downloading"),I53=_.OT("DOWNLOADED",{},"Downloaded"),QbD=_.OT("RETRY",{},"Retry");var yoQ=_.l(function(D){var t=t1V,H=function(){return""},e=y43(D.data),V=Bau(D.data),b=zrX(D.data),a=Dt$(D.data);
t=function(){var w=D.data(),h=x8A(w,e(),V(),b(),a()),K=!!w.videoId,N=h.text;return{title:K?N:void 0,tooltip:K?void 0:N,accessibilityText:N,onTap:h.onTap,iconName:h.iconType,style:w.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:h.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:w.buttonSize}};
H={};H=_.jQ("ytDownloadButtonViewModelHost",(H.ytDownloadButtonViewModelIsHidden=function(){var w=D.data(),h=a();return w.playlistId||h()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||h()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},H));
return _.G("download-button-view-model",{class:H},_.G(_.JX,{data:t}))},"ca");
yoQ.idomCompat=!0;var ZVT=new _.kI("SUBMIT_API_SERVICE_TOKEN");var FpX,aKV,sVk={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var o88=new _.kI("RENDERER_LOGGER_TOKEN");var iV3=new _.kI("RENDERER_STAMPER_OPTIONS_TOKEN");var hJK;_.UI=new rBo;hJK=new Map;var ro6="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),UtR=["notificationTextRenderer","notificationMultiActionRenderer"],
OV8="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),$tR=Ghu(function(D){return _.fR(D==null?void 0:D.targetId)}).useUpdatableData;var jVV=0;_.P5.debugName="EjJbCe";var B5n=_.l(function(D){var t=D.data;D=D.className;_.SG(function(){t().formId||_.gT(Error("Hh"))});
var H=_.qC6(function(){return t().formId},function(){return t().beforeSubmitCommand},function(){return t().afterSubmitCommand}),e=H.submitForm,V=H.isValid,b=H.isSubmitting,a=function(){return{state:t().isDisabled||!V()||b()?"disabled":"active"}};
return _.G("yt-submit-button-view-model",{class:_.jQ("ytSubmitButtonViewModelHost",D)},_.G(_.P5,{data:function(){return t().button}},{buttonViewModel:function(w){return _.G(_.JX,{data:w.data,
buttonOverrides:a,onClick:e})}}))},"ea");var D9m=_.l(function(D){var t=D.backgroundLottieRef;var H=D.foregroundLottieRef;var e=D.children;var V=D.wrapperClass;var b=D.disableAnimation;D=function(){return(_.r("web_animated_actions")||_.r("web_animated_actions_v2"))&&!(b==null?0:b())};
return _.G("yt-animated-action",{class:_.jQ("ytAnimatedActionHost",V)},_.G("div",{class:"ytAnimatedActionContentWithBackground"},_.G(_.E,{cond:D,then:function(){return _.G(zJ4,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:t==null?void 0:t(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(PJR()?"dark":"light")+"_v5.json"}}}})}}),e),_.G(_.E,{cond:D,
then:function(){return _.G(zJ4,{lottiePlayerProps:function(){return{animationRef:H==null?void 0:H(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(PJR()?"dark":"light")+"_v4.json"}}}})}}))},"fa");
D9m.idomCompat=!0;var zJ4=_.l(function(D){var t=D.wrapperClass;var H=D.lottieClass;var e=D.lottiePlayerProps;return _.G("div",{class:_.jQ("ytAnimatedActionLottie",t),"aria-hidden":"true"},_.G(_.x7,{className:H,data:e,animationName:function(){return e().animationConfig.name}}))},"ga");var n83={isOpen:!1};var mt8={isAllowed:!1};var SCV={errorMessage:"",title:"",privacy:"",isDisabled:!0};var fKu={isOpen:!1};var AoK={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var tIQ={response:void 0};var JoV=function(D,t){D=D===void 0?tIQ:D;switch(t.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},D,{response:t.payload});default:return D}};var H4Q={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var YCD=function(D,t){D=D===void 0?H4Q:D;switch(t.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},D,{nextDisabled:t.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},D,{nextCommand:t.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},D,{footerSubmissionData:t.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},D,{isImpersonationValid:t.payload});default:return D}};var eOo={reportFormData:void 0,reportDetailsFormData:void 0};var lK6=function(D,t){D=D===void 0?eOo:D;switch(t.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},D,{reportFormData:t.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},D,{reportDetailsFormData:t.payload});default:return D}};var VIV=void 0;_.r("mweb_enable_redux_store_on_demand")||(VIV=new Vk(v8k()));var bU=_.r("enable_web_delhi_icons");var b4Q=_.l(function(D){D=_.FQ(D,{themeOverride:void 0,animationRef:{}});var t=D.animatedIconType,H=D.active,e=D.themeOverride,V=D.animationRef;D=D.staticIconFn;var b=_.F(_.KR(void 0,void 0,"l48agc")),a=b.next().value,w=b.next().value,h=function(){a:{var L=t();var J=e==null?void 0:e();var g;J=(J==null?void 0:J.useDarkTheme)||((g=_.qS().resolve(_.by(_.tB)))==null?void 0:g());switch(L){case "LIKE":VIV||(VIV=new Vk(v8k()));L=(L=$bk(VIV.getState()))&&L.animationLightUrl&&L.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:J?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:J?L.animationDarkUrl:L.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(L){J=L;break a}J="animated_like_icon_"+(J?"dark":"light")+"_"+(bU?"v5":"v4");J={lottiePlayerProps:{animationConfig:{name:J,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+J+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(bU?" animated-like-icon-delhi":"")}}},totalFrames:bU?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":J={lottiePlayerProps:{animationConfig:{name:J?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(J?"dark":"light")+(bU?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(bU?" animated-subscribe-icon-delhi":"")}}},totalFrames:bU?120:79,lazyLoad:!1};break a}J=
void 0}return J},K=function(){var L,J;
return(J=(L=h())==null?void 0:L.lottiePlayerProps.animationConfig.name)!=null?J:""},N=function(){if(h()){var L=h().lottiePlayerProps.animationConfig.path;
return XI.get(L)||a()}};
b=_.F(_.KR(!1,void 0,"sDrGId"));var k=b.next().value;b=b.next().value;var T=dtV(b),c=function(){var L=h(),J,g,Q;return(Q=L==null?void 0:(J=L.lottiePlayerProps.animationConfig)==null?void 0:(g=J.rendererSettings)==null?void 0:g.className)!=null?Q:""},U=void 0,S=void 0;
_.Mp(function(){var L=h(),J=K(),g=N(),Q=k(),u=H();if(L&&(S!==J&&(S=J,U=u,J=V(),T.animationConfig=L.lottiePlayerProps.animationConfig,T.animationRef=J,g&&(T.animationConfig.animationData=g,T.animationConfig.path=void 0),J=L.lottiePlayerProps.animationConfig.path,!XI.get(J)&&L.lazyLoad&&J&&pAK(J,w)),!(Q||L.lazyLoad&&!g))){if(g=!V().lottieEl)u?(Q=L.totalFrames,T.animationConfig.initialSegment=[Q-1,Q]):T.animationConfig.initialSegment=void 0;if(U!==u&&!g)if(g=V(),u){var R;(R=g.lottieEl)==null||R.playSegments([0,
L.totalFrames],!0)}else{var I;(I=g.lottieEl)==null||I.playSegments([0,1],!0)}U=u}},"RQVZ1d");
return _.G("animated-icon",{class:"ytAnimatedIconHost"},_.G(_.E,{cond:function(){var L,J;return!((L=h())==null||!L.lottiePlayerProps.animationConfig.path||((J=h())==null?0:J.lazyLoad)&&!N()||k())},
then:function(){return _.G(_.x7,{data:T,animationName:K,className:c,animationRef:V})},
else:D}))},"ia");_.qY=_.l(function(D){var t=_.DY("yt-subscribe-button-view-model"),H=_.DY("div"),e=_.DY("div"),V=_.c5(),b=_.c5(),a=_.c5(),w=_.rF(c4V,function(){return D.data().stateEntityStoreKey}),h=_.rF(jb3,function(){var yA,T4;
return(T4=(yA=D.data().notificationStateEntityStoreKeys)==null?void 0:yA.subsNotificationStateKey)!=null?T4:""}),K=function(){return!D.data().enableSubscribeButtonPostClickAnimation},N=_.F(_.KR(0,void 0,"YtsSKb")),k=N.next().value,T=N.next().value;
N=_.F(_.KR(0,void 0,"V6JxRe"));var c=N.next().value,U=N.next().value;N=_.F(_.KR(!1,void 0,"JUCSZ"));var S=N.next().value,L=N.next().value;N=_.F(_.KR(!1,void 0,"oV6jwf"));var J=N.next().value,g=N.next().value;N=_.F(_.KR(!1,void 0,"hK1Whe"));var Q=N.next().value,u=N.next().value,R;N=_.F(_.KR(!1,void 0,"Asaolf"));var I=N.next().value,tT=N.next().value,ZV=function(){g(!0);_.Mx(_.Jy,function(){g(!1)},1500)};
_.Mp(function(){var yA=J();_.EP(function(){yA&&!K()&&w()&&D9D(V,b,a)})},"Qq6Hsf");
_.Mp(function(){var yA=w();_.EP(function(){if(!K()&&yA){var T4;((T4=D.animateWidth)==null?0:T4.call(D))&&zJV(t.value,!!yA.subscribed,k(),c());var Mw,X6;((Mw=R)==null?0:Mw.subscribed)||!yA.subscribed||yA.key!==((X6=R)==null?void 0:X6.key)||ZV();R=yA}})},"hog8te");
N=_.jj(function(){var yA,T4,Mw,X6=D.data(),yZ=!((yA=w())==null||!yA.subscribed);yA=!((T4=D.isOverlay)==null||!T4.call(D));T4=S()?t:void 0;var kQ=(Mw=h())==null?void 0:Mw.state;Mw=I();B5D(X6,kQ);return uZV({model:X6,subscribed:yZ,isOverlay:yA,element:T4,notificationState:kQ,disableTextEllipsis:!0,focused:Mw})},void 0,"hc1PRd");
var ED=function(){var yA;if(!K()&&((yA=D.animateWidth)==null?0:yA.call(D))&&(H==null?0:H.value)&&(e==null?0:e.value)&&!Q()){yA=w();var T4=_.F((yA==null?0:yA.subscribed)?[H,e]:[e,H]),Mw=T4.next().value;T4=T4.next().value;Mw=Math.ceil(Mw.value.getBoundingClientRect().width);T4=Math.ceil(T4.value.getBoundingClientRect().width);T(Mw);U(T4);zJV(t.value,!(yA==null||!yA.subscribed),Mw,T4);u(!0)}},o$=_.$X(function(yA){ED();
var T4=w();T4&&(yA.detail.endpoint.subscribeEndpoint||yA.detail.endpoint.unsubscribeEndpoint)&&IK3(t.value,!T4.subscribed,T4)}),jV=function(){var yA=_.qS().resolve(_.by(_.S8));
yA&&tT(yA.isKeyBoardInUse())},i8=function(){tT(!1)};
_.z0("yt-player-subscribe",function(yA){var T4=w();T4&&yA===D.data().channelId&&IK3(t.value,!0,T4)});
_.z0("yt-player-unsubscribe",function(yA){var T4=w();T4&&yA===D.data().channelId&&IK3(t.value,!1,T4)});
_.z0("yt-update-subscribe-button-action",function(yA){yA=_.O(yA,Yro);var T4=w();T4&&yA&&yA.channelId===D.data().channelId&&IK3(t.value,!!yA.subscribed,T4)});
_.XH(function(){t.value&&(t.value.addEventListener("focusin",jV),t.value.addEventListener("focusout",i8));var yA=_.C7(_.Jy,function(){ED()});
L(!0);_.Sj(function(){_.Jy.cancelJob(yA);t.value&&(t.value.removeEventListener("focusin",jV),t.value.removeEventListener("focusout",i8))})});
var g6=function(){var yA,T4,Mw;if(Mw=!((yA=w())==null||!yA.subscribed))yA=!!D.data().disableNotificationBell,Mw=(T4=h())==null?void 0:T4.state,Mw=!yA&&!!Mw;return Mw},Mu=function(){var yA;
return!((yA=w())==null?0:yA.subscribed)},LQ=function(){var yA,T4;
if(T4=Mu()){T4=!!D.data().disableNotificationBell;var Mw=(yA=h())==null?void 0:yA.state;T4=!T4&&!!Mw}return T4},DO={},fQ={};
return _.G("yt-subscribe-button-view-model",{class:_.jQ(D.className,"ytSubscribeButtonViewModelHost",(DO.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var yA,T4;return!((yA=w())==null||!yA.subscribed)&&((T4=D.animateWidth)==null?void 0:T4.call(D))&&J()},DO.ytSubscribeButtonViewModelHostHidden=function(){var yA;
return!((yA=w())==null?0:yA.subscribed)&&D.data().hideWhenUnsubscribed},DO)),
el:t,"on:yt-service-request-sent":o$},_.G(D9m,{backgroundLottieRef:V,foregroundLottieRef:b,wrapperClass:_.jQ("ytSubscribeButtonViewModelAnimatedActionWrapper",(fQ.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var yA;return((yA=D.animateWidth)==null?void 0:yA.call(D))&&J()},fQ.ytSubscribeButtonViewModelStaticWidth=function(){var yA;
return!((yA=D.animateWidth)==null?0:yA.call(D))},fQ)),
disableAnimation:K},_.G("div",{el:H,class:"ytSubscribeButtonViewModelContainer"},_.G(_.gW,{data:N,icon:function(){return _.G(_.E,{cond:g6,then:function(){var yA=function(){var T4;return Wp8((T4=h())==null?void 0:T4.state)};
return _.G(_.E,{cond:function(){return K()||yA()!=="NOTIFICATIONS_NONE"},
then:function(){return _.G(_.U7,{icon:yA})},
else:function(){return _.G(b4Q,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:a})}})}})},
secondaryIconName:function(){return g6()?"EXPAND":void 0}}))),_.G("div",{el:e,
class:"ytSubscribeButtonViewModelInvisible"},_.G(_.E,{cond:function(){var yA;return((yA=D.animateWidth)==null?void 0:yA.call(D))&&!K()&&!Q()},
then:function(){return _.G(_.gW,{data:_.jj(function(){var yA;return uZV({model:D.data(),subscribed:Mu(),isOverlay:!((yA=D.isOverlay)==null||!yA.call(D)),element:t,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var yA;return LQ()?Wp8((yA=h())==null?void 0:yA.state):void 0},
secondaryIconName:function(){return LQ()?"EXPAND":void 0}})}})))},"la");
_.qY.idomCompat=!0;var qSm=_.l(function(D){var t=D.data;var H=_.rF(c4V,function(){return t().subscriptionStateEntityKey});
return _.G(_.E,{cond:function(){var e=t(),V=H();return!e.hideWhenUnsubscribed||(V==null?0:V.subscribed)?_.O(t().button,_.h1):void 0},
then:function(e){return _.G("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.G(_.JX,{data:e,buttonOverrides:function(){return{toggled:!0}}}))}})},"ma");
qSm.idomCompat=!0;var F_f,FD;F_f=_.l(function(D){return _.G(_.P5,{data:function(){return D.actionRow().actions}},{buttonViewModel:function(t){var H=t.data;
return _.G(FD,{isRow:D.isRow,isIconOnlyButton:function(){return tIK(H())},
useIntrinsicWidth:D.useIntrinsicWidth},_.G(_.JX,{data:H}))},
subscribeButtonViewModel:function(t){return _.G(FD,{isRow:D.isRow},_.G(_.qY,{data:t.data,isOverlay:!1,animateWidth:function(){return!D.isRow()}}))},
downloadButtonViewModel:function(t){var H=t.data;return _.G(FD,{isRow:D.isRow,isIconOnlyButton:function(){return!!H().playlistId}},_.G(yoQ,{data:H}))},
submitButtonViewModel:function(t){var H=t.data;return _.G(FD,{isRow:D.isRow,isIconOnlyButton:function(){var e=H();return tIK(_.O(e==null?void 0:e.button,_.h1))}},_.G(B5n,{data:H}))},
toggleButtonViewModel:function(t){var H=t.data;return _.G(FD,{isRow:D.isRow,isIconOnlyButton:function(){var e=H();return tIK(_.O(e.isToggled?e.toggledButtonViewModel:e.defaultButtonViewModel,_.h1))}},_.G(_.VC,{data:H}))},
subscribePlusButtonViewModel:function(t){return _.G(FD,{isRow:D.isRow},_.G(qSm,{data:t.data}))}})},"na");
FD=_.l(function(D){var t={};return _.G("div",{class:_.jQ("ytFlexibleActionsViewModelAction",(t.ytFlexibleActionsViewModelActionRowAction=D.isRow,t.ytFlexibleActionsViewModelActionIntrinsicWidth=D.useIntrinsicWidth,t.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,t.ytFlexibleActionsViewModelActionIconOnlyButton=D.isIconOnlyButton,t))},D.children)},"oa");
_.aw=_.l(function(D){var t=function(){var e;return((e=D.layout)==null?void 0:e.call(D))===1},H={};
return _.G("yt-flexible-actions-view-model",{class:_.jQ("ytFlexibleActionsViewModelHost",D.className,(H.ytFlexibleActionsViewModelInline=function(){return!t()},H.ytFlexibleActionsViewModelScrollable=function(){return D.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},H))},_.G(_.nY,{each:function(){return D.data().actionsRows||[]}},function(e){return _.G(_.E,{cond:t,
then:function(){return _.G("div",{class:"ytFlexibleActionsViewModelActionRow"},_.G(F_f,{actionRow:e,isRow:t,useIntrinsicWidth:function(){return!!D.data().respectActionIntrinsicWidth}}))},
else:function(){return _.G(F_f,{actionRow:e,isRow:t})}})}))},"pa");_.hB(_.aw,"yt-flexible-actions-view-model",{props:{data:_.ij,layout:_.ij,justifyContentOverride:_.ij,className:_.ij}});_.w7=_.l(function(D){var t=_.rF(xX,function(){var V;return(V=D.data().dislikeEntityKey)!=null?V:""}),H=_.jj(function(){var V=t();
return V?V.likeStatus==="DISLIKE":_.O(D.data().toggleButtonViewModel,_.Ez).isToggled},void 0,"fNr9he"),e=_.jj(function(){return Object.assign({},_.O(D.data().toggleButtonViewModel,_.Ez),{isToggled:H()})},void 0,"AezoCc");
return _.G("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.G(_.VC,{data:e,buttonShapeOverrides:D.buttonShapeOverrideables,onToggle:function(V){var b=t();b&&V!==(b.likeStatus==="DISLIKE")&&b.key&&_.bf(_.LP("likeStatusEntity",b.key,{likeStatus:V?"DISLIKE":"INDIFFERENT",hadUserInteraction:V}))}}))},"qa");
_.w7.idomCompat=!0;_.ZZ=_.l(function(D){var t=_.r("web_supports_animations_api"),H=aH(function(T){var c=K();if(!T){var U,S;return{numberText:(S=c==null?void 0:(U=c.likeCountIfIndifferent)==null?void 0:U.content)!=null?S:"",numberValue:Number(c==null?void 0:c.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var L;U=(c==null?void 0:(L=c.likeCountIfIndifferent)==null?void 0:L.content)!==T.numberText;if(w()||!U)return T;var J;return{numberText:(c==null?void 0:(J=c.likeCountIfIndifferent)==null?void 0:J.content)||
"",numberValue:Number(c==null?void 0:c.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!c}}),e=aH(function(T){var c=K();
if(!T){var U,S;return{numberText:(S=c==null?void 0:(U=c.likeCountIfLiked)==null?void 0:U.content)!=null?S:"",numberValue:Number(c==null?void 0:c.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var L;U=(c==null?void 0:(L=c.likeCountIfIndifferent)==null?void 0:L.content)!==T.numberText;if(w()||!U)return T;var J;return{numberText:(c==null?void 0:(J=c.likeCountIfLiked)==null?void 0:J.content)||"",numberValue:Number(c==null?void 0:c.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!c}}),V=_.F(_.KR(void 0,
void 0,"xldjge")),b=V.next().value,a=V.next().value,w=b,h=_.rF(xX,function(){var T,c;
return(c=(T=D.data())==null?void 0:T.likeStatusEntityKey)!=null?c:""}),K=_.rF(IHT,function(){var T,c;
return((T=D.likeCountEntity)==null?void 0:(c=T.call(D))==null?void 0:c.key)||""}),N=_.jj(function(){var T;
return((T=h())==null?void 0:T.likeStatus)==="LIKE"},void 0,"B3od5e"),k=function(){var T;
return t&&!((T=D.likeCountEntity)==null||!T.call(D))};
return _.G("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.G(_.VC,{data:function(){var T=Object,c=T.assign,U;var S=_.O((U=D.data())==null?void 0:U.toggleButtonViewModel,_.Ez);return c.call(T,{},S||{},{isToggled:N()})},
buttonShapeOverrides:D.buttonShapeOverrideables,animatedTextPropsDefault:function(){return k()?H():void 0},
animatedTextPropsToggled:function(){return k()?e():void 0},
onToggle:function(T){H4K(T,h(),w(),a)},
style:function(){var T;return((T=D.disableIconAnimation)==null?0:T.call(D))?void 0:{animateIcon:"true"}}}))},"ra");
_.ZZ.idomCompat=!0;var aRn=_.l(function(D){var t=function(){return _.O(D.data().likeButtonViewModel,_.et)},H=function(){var V;
return((V=t())==null?void 0:V.likeStatusEntityKey)||""},e=_.jj(function(){var V,b;
var a=(b=_.rF(xX,H)())!=null?b:(V=t())==null?void 0:V.likeStatusEntity;V=D.data();var w;V=(V==null?void 0:(w=V.timedAnimationData)==null?void 0:w.animationTiming)||[];return{uniqueId:"like-dislike",timings:V,enabled:(a==null?void 0:a.likeStatus)==="INDIFFERENT"&&V.length>0,experimentEnabled:V.length>0}},void 0,"zZ3GQb");
return _.G("segmented-like-dislike-button-view-model",{class:_.jQ("ytSegmentedLikeDislikeButtonViewModelHost",D.className),"button-renderer":!0},_.G(dtf,{settings:e},_.G("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.G(_.E,{cond:t,then:function(V){return _.G(_.ZZ,{data:V,likeCountEntity:function(){return D.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.r("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.G(_.E,{cond:function(){return _.O(D.data().dislikeButtonViewModel,_.HK)},
then:function(V){return _.G(_.w7,{data:V,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"sa");
aRn.idomCompat=!0;_.hB(aRn,"segmented-like-dislike-button-view-model",{props:{data:_.ij,className:_.ij}});var wLf=_.l(function(D){var t=D.data;var H=D.className;var e=D.setMinWidth;var V=D.forceIconOnly;var b=_.DY("account-link-button-view-model"),a=_.rF(_.eO6,function(){var T;return(T=t().accountLinkStatusEntityKey)!=null?T:""}),w=_.rF(_.eO6,function(){var T;
return(T=t().accountLinkStatusSecondaryEntityKey)!=null?T:""}),h=function(){if(!_.r("web_account_link_secondary_killswitch")){var T,c;
return((T=a())==null?void 0:T.linked)||((c=w())==null?void 0:c.linked)}var U;return(U=a())==null?void 0:U.linked};
_.Mp(function(){var T=a();if(T){var c=wO9(new auf,qAQ(new bLn,!!T.linked));_.ki().then(function(U){U&&(U.setAccountLinkState(_.XF(c.JSC$12174_serializeBinary(),4)),U.updateAccountLinkingConfig(!!T.linked))})}},"IvZF7");
var K=function(){return _.O(t().toggleButtonViewModel,_.Ez)};
_.z0("yt-signal-action-show-account-link-dialog",function(){if(K()){var T=h()?K().toggledButtonViewModel:K().defaultButtonViewModel;T=_.O(T,_.h1);var c;if((c=a())==null?0:c.isWarning){c=_.O(t().warningButtonViewModel,_.h1);if(!c){_.uh(Error("Ih"));return}T=c}var U;(c=_.xP((U=T)==null?void 0:U.onTap))&&_.jP([c],b.value)}else _.uh(Error("Jh"))});
var N=function(){var T=K();return Object.assign({},T,{isToggled:h()})},k=function(){return(V==null?0:V())?{iconPosition:"icon-only"}:{}};
return _.G("account-link-button-view-model",{class:_.jQ("ytwAccountLinkButtonViewModelHost",H,function(){return(e==null?0:e())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:b,"button-renderer":!0},_.G("div",null,_.G(_.E,{cond:function(){var T;if((T=a())==null?0:T.isWarning)return(T=_.O(t().warningButtonViewModel,_.h1))||_.uh(Error("Ih")),T},
then:function(T){return _.G(_.JX,{data:T,buttonOverrides:k})},
else:function(){return _.G(_.VC,{data:N,buttonShapeOverrides:k})}})))},"ua");_.hB(wLf,"account-link-button-view-model",{props:{data:_.ij,className:_.wm,setMinWidth:_.wm,forceIconOnly:_.wm}});_.AB("menuRenderer","menuRenderer","ytd-menu-renderer");
var Z4a={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"}},
sG3=_.r("web_fix_missing_action_buttons")?100:200,sb=function(){var D=_.X.apply(this,arguments)||this;D.safeArea=!_.r("kevlar_flex_menu_safe_area_killswitch");D.tonalOverride=!1;D.threeDotSize="M";D.isOverlay=!1;D.useOverlayDark=!1;D.topLevelIconsOnly=!1;D.JSC$14651_lastWidth=0;D.maybeUpdateFlexibleMenu=function(){_.r("web_fix_missing_action_buttons")?requestAnimationFrame(D.maybeUpdateFlexibleMenuImpl):D.maybeUpdateFlexibleMenuImpl()};
D.maybeUpdateFlexibleMenuImpl=function(){var t;if((t=D.data)!=null&&t.flexibleItems){D.maybeFlushDebouncer();t=D.hostElement.clientWidth;var H=t>D.JSC$14651_lastWidth,e,V=((e=D.topLevelButtonsContainer)==null?void 0:e.scrollHeight)||0,b;e=((b=D.flexibleItemButtonsContainer)==null?void 0:b.scrollHeight)||0;b=D.hostElement.scrollHeight>Math.max(V,e)+8;H?(D.resetFlexibleItems(),D.JSC$14651_lastWidth=D.hostElement.clientWidth,D.maybeUpdateFlexibleMenu()):b&&(D.shrinkFlexibleMenu(),D.JSC$14651_lastWidth=
t)}};
D.computeThreeDotButtonShape=function(){if(D.tonalOverride)return Object.assign({},{onTap:function(){D.onOverflowTap()},
iconPosition:"icon-only",style:D.isOverlay?D.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:D.threeDotSize,state:"active",accessibilityLabel:D.computeAccessibilityLabel(D.data)},D.threeDotButtonOverride)};
D.onOverflowTap=function(){if(D.data.fetchMenuCommand)_.qS().resolve(_.aA).resolveCommand(D.data.fetchMenuCommand,{form:{element:D.hostElement}});else if(D.data.isDisabled&&D.data.disabledCommand)_.rj(D.data.disabledCommand,D.hostElement);else{var t=D.createMenuRendererVe(),H={items:D.items};D.data.menuPopupAccessibility&&(H.menuPopupAccessibility=D.data.menuPopupAccessibility);D.data.footer&&(H.footer=D.data.footer);t={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:H},veData:t}};
_.qS().resolve(_.Hp).openSheet({openPopupActionCommand:t},D.hostElement)}};
return D};
_.P(sb,_.X);_.q=sb.prototype;_.q.updateButtonOverrides=function(){if(!_.r("menu_renderer_label_update_upkillswitch")){var D=_.Kg(this.hostElement).querySelector("yt-button-view-model");D&&(D.buttonOverrides=this.buttonOverrides)}};
_.q.computeHasItems=function(){var D;return((D=this.topLevelButtonData)==null?void 0:D.length)||this.hasFlexibleItems};
_.q.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.q.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.jZ(this.hostElement,{"--ytd-menu-renderer-button-color":_.Ih(this.data.iconColor)}))};
_.q.onStamperFinished=function(){this.JSC$14651_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.q.setupFlexibleMenu=function(){var D=this,t;(t=this.data)!=null&&t.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.W5(this.maybeUpdateFlexibleMenu,sG3,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){D.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))};
_.q.maybeFlushDebouncer=function(){if(_.r("web_replace_formatted_with_attributed_string")){var D;(D=this.topLevelButtons)==null||D.forEach(function(H){var e;(H=(e=H.getElementsByTagName("yt-attributed-string"))==null?void 0:e[0])&&EWk(H)});
var t;(t=this.flexibleItemButtons)==null||t.forEach(function(H){var e;(H=(e=H.getElementsByTagName("yt-attributed-string"))==null?void 0:e[0])&&EWk(H)})}};
_.q.resetFlexibleItems=function(){var D;if((D=this.data)!=null&&D.flexibleItems){_.r("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var t;this.flexAsTopLevelButtons=(t=this.data.flexibleItems)==null?void 0:t.map(function(H){return _.O(H,_.Yzw).topLevelButton});
_.r("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.q.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.q.shrinkFlexibleMenu=function(){var D;(D=this.flexAsTopLevelButtons)!=null&&D.length&&(this.flexAsTopLevelButtons=[].concat(_.A6(this.flexAsTopLevelButtons.slice(0,-1))))};
_.q.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:Z4a,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:Z4a,events:!0}}};
_.q.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.q.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.q.detached=function(){this.icon="MORE_VERT"};
_.q.computeTopLevelButtonData=function(D){if(!D)return[];var t;D=(t=D==null?void 0:D.topLevelButtons)!=null?t:[];return _.J$.unsafeClone([].concat(_.A6(D)))};
_.q.computeItems=function(D,t){if(!D)return[];var H=[];if(t){var e=(D.flexibleItems||[]).map(function(a){return _.O(a,_.Yzw)});
e=_.F(e);for(var V=e.next();!V.done;V=e.next())V=V.value,t.includes(V.topLevelButton)||(V=V.menuItem)&&H.push(V)}var b;D=(b=D==null?void 0:D.items)!=null?b:[];return[].concat(_.A6(H),_.A6(D))};
_.q.computeMenuActive=function(D,t){return D||t};
_.q.onPopupOpened=function(){this.overlayOpen=!0;_.Gf(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.q.onPopupClosed=function(){this.overlayOpen=!1;_.Gf(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.q.onPopupCanceled=function(){this.overlayOpen=!1;_.Gf(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.q.computeAccessibilityLabel=function(D){return this.get("accessibility.accessibilityData.label",D)};
_.q.isHidden=function(D,t){return this.tonalOverride||!D?!0:D.fetchMenuCommand||D.isDisabled&&D.disabledCommand?!1:!(t==null?0:t.length)};
_.q.isModernOverflowHidden=function(D,t){return this.tonalOverride&&D?D.fetchMenuCommand?!1:!(t==null?0:t.length):!0};
_.q.createMenuRendererVe=function(){var D=this.data.trackingParams,t=_.v3(),H=_.lo();return D&&t&&H?(D=_.Sa(D),H=_.Nx(7591),_.r("combine_ve_grafts")?_.A1(_.Pc(),H,D):_.Q$(t,D,H),H):null};
_.ql.Object.defineProperties(sb.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.flexAsTopLevelButtons)==null||!D.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
sb.prototype.onPopupCanceled=sb.prototype.onPopupCanceled;sb.prototype.onPopupClosed=sb.prototype.onPopupClosed;sb.prototype.onPopupOpened=sb.prototype.onPopupOpened;sb.prototype.tonalOverrideChanged=sb.prototype.tonalOverrideChanged;sb.prototype.resetFlexibleItems=sb.prototype.resetFlexibleItems;sb.prototype.setupFlexibleMenu=sb.prototype.setupFlexibleMenu;sb.prototype.iconButtonColorChanged=sb.prototype.iconButtonColorChanged;sb.prototype.updateButtonOverrides=sb.prototype.updateButtonOverrides;
_.d([_.C(_.oy),_.x("design:type",Object)],sb.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],sb.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],sb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.o5("#button-shape"),_.x("design:type",HTMLElement)],sb.prototype,"buttonShape",void 0);_.d([_.o5("#button"),_.x("design:type",Object)],sb.prototype,"button",void 0);
_.d([_.M(),_.x("design:type",Object)],sb.prototype,"data",void 0);_.d([_.M({computed:"computeTopLevelButtonData(data)"}),_.x("design:type",Array)],sb.prototype,"topLevelButtonData",void 0);_.d([_.M(),_.x("design:type",Array)],sb.prototype,"flexAsTopLevelButtons",void 0);_.d([_.M({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.x("design:type",Array)],sb.prototype,"items",void 0);_.d([_.M({value:"MORE_VERT"}),_.x("design:type",String)],sb.prototype,"icon",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sb.prototype,"safeArea",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.x("design:type",Boolean)],sb.prototype,"menuActive",void 0);_.d([_.M(),_.x("design:type",Boolean)],sb.prototype,"menuFocused",void 0);_.d([_.M({value:"bottom"}),_.x("design:type",String)],sb.prototype,"buttonTooltipPosition",void 0);_.d([_.M(),_.x("design:type",Boolean)],sb.prototype,"overlayOpen",void 0);
_.d([_.M({value:!0}),_.x("design:type",Boolean)],sb.prototype,"forceIconButton",void 0);_.d([_.M(),_.x("design:type",Boolean)],sb.prototype,"styleActionButton",void 0);_.d([_.M(),_.x("design:type",Boolean)],sb.prototype,"disableTextTransformOnButtons",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sb.prototype,"tonalOverride",void 0);_.d([_.M(),_.x("design:type",Object)],sb.prototype,"threeDotSize",void 0);
_.d([_.M(),_.x("design:type",Object)],sb.prototype,"threeDotButtonOverride",void 0);_.d([_.M(),_.x("design:type",Object)],sb.prototype,"isOverlay",void 0);_.d([_.M(),_.x("design:type",Object)],sb.prototype,"useOverlayDark",void 0);_.d([_.M({computed:"computeButtonOverride(tonalOverride)"}),_.x("design:type",Object)],sb.prototype,"buttonOverride",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],sb.prototype,"hasCustomIconColor",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("flexAsTopLevelButtons"),_.x("design:type",Object),_.x("design:paramtypes",[])],sb.prototype,"hasFlexibleItems",null);_.d([_.M({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.x("design:type",Boolean)],sb.prototype,"hasItems",void 0);_.d([_.M(),_.x("design:type",Object)],sb.prototype,"topLevelIconsOnly",void 0);
_.d([_.Os("topLevelIconsOnly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sb.prototype,"updateButtonOverrides",null);_.d([_.m("topLevelIconsOnly"),_.x("design:type",Object),_.x("design:paramtypes",[])],sb.prototype,"buttonOverrides",null);_.d([_.o5("#top-level-buttons-computed"),_.x("design:type",HTMLElement)],sb.prototype,"topLevelButtonsContainer",void 0);_.d([_.PT(".top-level-buttons > *"),_.x("design:type",Array)],sb.prototype,"topLevelButtons",void 0);
_.d([_.o5("#flexible-item-buttons"),_.x("design:type",HTMLElement)],sb.prototype,"flexibleItemButtonsContainer",void 0);_.d([_.PT("#flexible-item-buttons > *"),_.x("design:type",Array)],sb.prototype,"flexibleItemButtons",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sb.prototype,"iconButtonColorChanged",null);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sb.prototype,"setupFlexibleMenu",null);_.d([_.mx("topLevelIconsOnly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sb.prototype,"resetFlexibleItems",null);_.d([_.Os("tonalOverride"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sb.prototype,"tonalOverrideChanged",null);
_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sb.prototype,"onPopupOpened",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sb.prototype,"onPopupClosed",null);_.d([_.rx("yt-popup-canceled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sb.prototype,"onPopupCanceled",null);
_.p(sb,"ytd-menu-renderer",function(){if(CJ3===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);CJ3=D}D=CJ3;return D},{mode:2});var hOQ;var GD4;_.hr=_.l(function(D){var t=D.data;var H=function(){if(t().icon)a:{var V={iconName:t().icon};for(var b=_.qS().resolve(_.ja),a=_.F([12,24]),w=a.next();!w.done;w=a.next()){var h=w.value;w=Object.assign({},V,{iconStyle:"youtube_fill",iconSize:h});h=Object.assign({},V,{iconStyle:"youtube_outline",iconSize:h});if(b.resolveIcon(w)){V=w;break a}if(b.resolveIcon(h)){V=h;break a}}V=void 0}else V=void 0;return V};
D={};var e={};return _.G("badge-shape",{class:_.jQ("yt-badge-shape",function(){return wLV(t().type)},(D["yt-badge-shape--overlay"]=function(){return t().isOverlay},D["yt-badge-shape--ads-include-dot"]=function(){return t().adsIncludeDot},D["yt-badge-shape--thumbnail-badge"]=function(){a:switch(t().type){case 17:case 18:case 19:var V=!0;
break a;default:V=!1}return V},D["yt-badge-shape--status-badge"]=function(){a:switch(t().type){case 12:case 13:case 14:case 15:case 16:var V=!0;
break a;default:V=!1}return V},D["yt-badge-shape--no-text"]=function(){return!t().text},D["yt-badge-shape--modern"]=function(){return t().modern||_.r("web_modern_badge_shape")},D)),
style:_.O7({"background-color":function(){var V;return(V=t().customColors)==null?void 0:V.backgroundColor}}),
role:function(){return t().accessibilityText?"img":void 0},
"aria-label":function(){return t().accessibilityText}},_.G(_.E,{cond:function(){return t().animation},
then:function(V){return _.G(_.x7,{className:"yt-badge-shape__icon",data:V,animationName:function(){return V().animationConfig.name||""}})}}),_.G(_.E,{cond:function(){var V;
return H()&&!((V=t())==null?0:V.animation)},
then:function(){return _.G("div",{class:"yt-badge-shape__icon"},_.G(X4k,{data:function(){return H()}}))}}),_.G("div",{class:_.jQ("yt-badge-shape__text",(e["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(t().numBadgesInRow||0)>1},e))},function(){var V;
return(V=t())==null?void 0:V.text}))},"va");
_.hr.idomCompat=!0;_.hB(_.hr,"badge-shape",{props:{data:_.ij}});var Gs=function(){var D=_.X.apply(this,arguments)||this;D.systemIcons=_.r("kevlar_system_icons");D.animated=_.r("animated_live_badge_icon");D.useBadgeShape=_.r("web_badge_shape_defrag");return D};
_.P(Gs,_.X);_.q=Gs.prototype;_.q.addTooltips=function(){for(var D=_.Kg(this.hostElement).querySelectorAll(".badge"),t=0,H;H=D[t++];){var e=this.repeatElement.itemForElement(H);H=_.Kg(H);H.lastChild&&H.lastChild.is==="tp-yt-paper-tooltip"&&H.removeChild(H.lastChild);if(e=e.metadataBadgeRenderer&&e.metadataBadgeRenderer.tooltip){var V=_.nE("tp-yt-paper-tooltip");(0,_.cT)(V).textContent=e;V.setAttribute("position","top");V.setAttribute("aria-hidden","true");H.appendChild(V)}}};
_.q.badgesChanged=function(){var D=this;_.EK().parkOrScheduleJob(function(){D.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.q.standaloneRoundedBadgeChanged=function(){var D=this.useRoundedBadge?this.useRoundedBadge:void 0;D&&(this.useRoundedBadge=D)};
_.q.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.q.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.q.computeStyle=function(D){_.r("enable_html5_teal_ad_badge")&&D==="BADGE_STYLE_TYPE_AD"&&(D="badge-style-type-ad-alternate");_.r("kevlar_ytb_live_badges")&&D==="BADGE_STYLE_TYPE_LIVE_NOW"&&(D="badge-style-type-live-now-alternate");return D?D.toLowerCase().replace(/_/g,"-"):""};
_.q.computeRole=function(D){return this.computeAriaLabel(D)?"img":"status"};
_.q.computeAriaLabel=function(D){var t;return(D==null?void 0:(t=D.accessibilityData)==null?void 0:t.label)||(D==null?void 0:D.label)};
_.q.computeBadgeShape=function(D){if(D){var t,H;var e=F_V(D.style);var V=aRD(D.style),b=D.label,a=((t=D.accessibilityData)==null?void 0:t.label)||D.label;a:switch(D.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":t=!0;break a;default:t=!1}var w=(H=D.icon)==null?void 0:H.iconType;a:switch(D.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":D=!0;break a;default:D=!1}e={type:e,brNzRatingBadgeType:V,text:b,accessibilityText:a,
isOverlay:t,icon:w!=="PREMIUM"?w:void 0,modern:_.r("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:D}}else e={};return e};
_.q.updateComputedBadges=function(D,t,H){var e=this;(t=t?[t]:H?[H]:void 0)?this.computedBadges=t:this.computedBadges=D==null?void 0:D.filter(function(V){var b;if((b=V.metadataBadgeRenderer)==null?0:b.groups){b=!1;V=_.F(V.metadataBadgeRenderer.groups);for(var a=V.next();!a.done;a=V.next()){a=a.value;var w=void 0;b=b||((w=e.hiddenBadgeGroups)==null?void 0:w.includes(a))}return!b}return!0})};
_.q.useFilledIcons=function(D){return _.r("kevlar_system_icons")&&(D==="AUDIO_BADGE"||D==="CHECK_CIRCLE_THICK"||D==="OFFICIAL_ARTIST_BADGE"||D==="SPONSORSHIP_STAR"||D==="PERSON_RADAR_FILLED"||D==="PERSON_RADAR")};
_.q.computeBadgeShapeStyle=function(D){return this.useBadgeShape?D==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||D==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.q.computeIcon=function(D){var t,H;D=D==null?void 0:(t=D.metadataBadgeRenderer)==null?void 0:(H=t.icon)==null?void 0:H.iconType;if(D!=="PREMIUM"&&D)return _.cc(D)};
_.q.computeStandaloneBadge=function(D){var t;D=D==null?void 0:(t=D.icon)==null?void 0:t.iconType;return D==="PREMIUM_STANDALONE"||D==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Gs.prototype.hiddenBadgeGroupsChanged=Gs.prototype.hiddenBadgeGroupsChanged;Gs.prototype.standaloneBadgeChanged=Gs.prototype.standaloneBadgeChanged;Gs.prototype.standaloneRoundedBadgeChanged=Gs.prototype.standaloneRoundedBadgeChanged;Gs.prototype.badgesChanged=Gs.prototype.badgesChanged;_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gs.prototype,"hidden",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Gs.prototype,"componentBehavior",void 0);
_.d([_.M(),_.x("design:type",Array)],Gs.prototype,"badges",void 0);_.d([_.M(),_.x("design:type",Object)],Gs.prototype,"topStandaloneBadge",void 0);_.d([_.M(),_.x("design:type",Object)],Gs.prototype,"bottomStandaloneBadge",void 0);_.d([_.M(),_.x("design:type",Object)],Gs.prototype,"computedBadges",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gs.prototype,"mediumFontAdBadge",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gs.prototype,"useRoundedBadge",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gs.prototype,"largeFontAdBadge",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gs.prototype,"overlayAd",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gs.prototype,"overlayPremium",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gs.prototype,"noDotAdBadge",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gs.prototype,"collectionTruncate",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gs.prototype,"isThumbnailBadge",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gs.prototype,"wrapBadges",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Number)],Gs.prototype,"numBadgesInRow",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Gs.prototype,"systemIcons",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Gs.prototype,"animated",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Gs.prototype,"useBadgeShape",void 0);_.d([_.M({value:[]}),_.x("design:type",Array)],Gs.prototype,"hiddenBadgeGroups",void 0);_.d([_.o5("#repeat"),_.x("design:type",lK)],Gs.prototype,"repeatElement",void 0);_.d([_.mx("badges"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gs.prototype,"badgesChanged",null);
_.d([_.mx("useRoundedBadge"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gs.prototype,"standaloneRoundedBadgeChanged",null);_.d([_.mx("topStandaloneBadge","bottomStandaloneBadge"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gs.prototype,"standaloneBadgeChanged",null);_.d([_.mx("hiddenBadgeGroups"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gs.prototype,"hiddenBadgeGroupsChanged",null);
_.d([_.Y({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Gs);
var E_f=_.E_()(Gs,"ytd-badge-supported-renderer",function(){if(GD4===void 0){var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);GD4=D}D=GD4;return D},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Kz("kevlar_poly_si_batch_j053")?1:2});var Eb=function(){var D=_.X.apply(this,arguments)||this;D.iconType="STAR";D.standardizeIconSize=_.r("kevlar_system_icons");D.mediaHoverOverlayInitialVisibility=_.r("enable_top_landscape_image_button_command_web");D.noBottomMargin=!1;D.thumbnailObjectFit="CONTAIN";D.thumbnailFitHeight=!0;D.actionMap={"yt-mute-ad-action":"handleMuteAd"};return D};
_.P(Eb,_.X);_.q=Eb.prototype;
_.q.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"}}}};
_.q.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",Eb.JSC$14663_DEFAULT_CLICK_LOCATION_BEHAVIOR,Eb.JSC$14663_CLICK_LOCATION_ID_MAP))};
_.q.onTap=function(D){if(!_.r("use_on_click_for_desktop_display_ad"))this.onTapOrClick(D)};
_.q.onClick=function(D){if(_.r("use_on_click_for_desktop_display_ad"))this.onTapOrClick(D)};
_.q.onTapOrClick=function(D){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,D,!1)};
_.q.updateMediaBackgroundImage=function(){var D=this.get("data.image.thumbnail.thumbnails");D&&(D=_.G3(D,0))&&_.jZ(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+D+")"})};
_.q.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var D=0;D<this.data.impressionEndpoints.length;D++){var t=this.data.impressionEndpoints[D];t.clickTrackingParams&&delete t.clickTrackingParams;_.qS().resolve(_.aA).resolveCommand(t,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var H;((H=this.data)==null?0:H.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.q.handleMuteAd=function(){};
_.q.attached=function(){var D=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.q.detached=function(){_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.ql.Object.defineProperties(Eb.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.titleText)return"";var t;return _.OT("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((t=this.data)==null?void 0:t.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.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 D;return!((D=this.data)==null||!D.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"}}});
Eb.prototype.onClick=Eb.prototype.onClick;Eb.prototype.onTap=Eb.prototype.onTap;Eb.prototype.dataChanged=Eb.prototype.dataChanged;
Eb.JSC$14663_CLICK_LOCATION_ID_MAP=_.r("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"]]);
Eb.JSC$14663_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.r("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"}];_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Eb.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Eb.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.GI),_.x("design:type",Object)],Eb.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Eb.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.Mg.YtSparklesClickLocationBehavior),_.x("design:type",Object)],Eb.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.C(ZG),_.x("design:type",Object)],Eb.prototype,"ytdActiveViewBehavior",void 0);_.d([_.C([_.dW.YtActionHandlerBehavior]),_.x("design:type",Object)],Eb.prototype,"actionHandlerBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Eb.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Eb.prototype,"clickCommand",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.Ye}),_.x("design:type",Boolean)],Eb.prototype,"miniMode",void 0);_.d([_.M(),_.x("design:type",String)],Eb.prototype,"iconType",void 0);_.d([_.m("data.titleText"),_.x("design:type",String),_.x("design:paramtypes",[])],Eb.prototype,"titleAriaLabel",null);
_.d([_.m("data.rating"),_.x("design:type",Object),_.x("design:paramtypes",[])],Eb.prototype,"getRating",null);_.d([_.m("data.price"),_.x("design:type",Object),_.x("design:paramtypes",[])],Eb.prototype,"getPrice",null);_.d([_.m("data.thirdLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],Eb.prototype,"getThirdLine",null);_.d([_.m("data.fourthLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],Eb.prototype,"getFourthLine",null);
_.d([_.m("data.fifthLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],Eb.prototype,"getFifthLine",null);_.d([_.m("getRating"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Eb.prototype,"computeRatingHidden",null);_.d([_.m("getPrice"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Eb.prototype,"computePriceHidden",null);_.d([_.m("getThirdLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Eb.prototype,"computeThirdLineHidden",null);
_.d([_.m("getFourthLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Eb.prototype,"computeFourthLineHidden",null);_.d([_.m("getFifthLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Eb.prototype,"computeFifthLineHidden",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.energyIcon"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Eb.prototype,"hasEnergyIcon",null);
_.d([_.m("computePriceHidden","computeRatingHidden"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Eb.prototype,"computeSecondaryTextHidden",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Eb.prototype,"standardizeIconSize",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Eb.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Eb.prototype,"noBottomMargin",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("data.layout"),_.x("design:type",String),_.x("design:paramtypes",[])],Eb.prototype,"layout",null);_.d([_.m("data.layout"),_.x("design:type",Object),_.x("design:paramtypes",[])],Eb.prototype,"mediaThumbnailWidth",null);_.d([_.m("layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Eb.prototype,"useRoundedBadge",null);_.d([_.M(),_.x("design:type",String)],Eb.prototype,"thumbnailObjectFit",void 0);
_.d([_.M(),_.x("design:type",Object)],Eb.prototype,"thumbnailFitHeight",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Eb.prototype,"dataChanged",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Eb.prototype,"onTap",null);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Eb.prototype,"onClick",null);
_.d([_.Y({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Eb);
_.p(Eb,"ytd-display-ad-renderer",function(){if(hOQ!==void 0)return hOQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return hOQ=D},{mode:1});var K_v;var NuB;var kDw;var Z48=new Map;var Tuf=!1;var K8=function(){var D=_.X.apply(this,arguments)||this;D.DEFAULT_TOOLTIP_OFFSET="10";D.TOOLTIP_OFFSET_NO_BANNER="-8";D.badges=null;D.noEndpoints=!1;D.wrapText=!1;D.forceVerified=!1;D.tooltipPosition="top";D.compactStyle=!1;D.height=0;D.lineHeight=0;return D};
_.P(K8,_.X);_.q=K8.prototype;_.q.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.q.attached=function(){var D=this;this.observer=new MutationObserver(function(t,H){D.handleResized();H.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.q.detached=function(){this.observer&&this.observer.disconnect()};
_.q.logTooltipEvent=function(){_.r("kevlar_wiz_tooltip_event_killswitch")||Tuf||(_.sGT("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),Tuf=!0)};
_.q.handleWindowResized=function(){this.handleResized()};
_.q.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")))};
_.q.onHeightChanged=function(){if(this.verified){var D=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.YC("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=D:this.textContainerEl.style.marginRight=D}};
_.q.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.YC("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.q.handleResized=function(){var D=this;this.verified&&_.Jy.addLowPriorityJob(function(){D.fitBackgroundToText();var t=getComputedStyle(D.hostElement).lineHeight;t&&(t=t.match(/\d+/))&&t.length&&(D.lineHeight=Number(t[0]));D.height=D.lineHeight&&!D.wrapText?D.lineHeight:D.textEl.offsetHeight})};
_.q.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var D=document.createRange(),t=_.Kg(this.textEl).children;t.length>0?D.selectNodeContents(t[0]):D.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(D.getBoundingClientRect().width)+"px"}};
_.q.computeChannelBadgeStyle=function(D){var t;if((D==null?0:(t=D.runs)==null?0:t.length)&&D.runs[0].textColor)return"--ytd-badge-icon-color:"+_.Ih(D.runs[0].textColor)+";"};
_.ql.Object.defineProperties(K8.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"?_.H7(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var D=this.get("badges.0.metadataBadgeRenderer.tooltip");if(D)return D}return _.eo(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
K8.prototype.onLineHeightChanged=K8.prototype.onLineHeightChanged;K8.prototype.onHeightChanged=K8.prototype.onHeightChanged;K8.prototype.onChannelNameChanged=K8.prototype.onChannelNameChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],K8.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],K8.prototype,"badges",void 0);_.d([_.M(),_.x("design:type",Object)],K8.prototype,"channelName",void 0);
_.d([_.M(),_.x("design:type",Object)],K8.prototype,"noEndpoints",void 0);_.d([_.M(),_.x("design:type",Object)],K8.prototype,"wrapText",void 0);_.d([_.M(),_.x("design:type",Object)],K8.prototype,"forceVerified",void 0);_.d([_.M(),_.x("design:type",Object)],K8.prototype,"tooltipPosition",void 0);_.d([_.M(),_.x("design:type",String)],K8.prototype,"tooltip",void 0);_.d([_.M(),_.x("design:type",Boolean)],K8.prototype,"hasChannelArt",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],K8.prototype,"compactStyle",void 0);_.d([_.o5("#text-container"),_.x("design:type",HTMLElement)],K8.prototype,"textContainerEl",void 0);_.d([_.o5("#text"),_.x("design:type",Object)],K8.prototype,"textEl",void 0);_.d([_.o5("#verified-tooltip"),_.x("design:type",HTMLElement)],K8.prototype,"verifiedTooltip",void 0);_.d([_.M(),_.x("design:type",Object)],K8.prototype,"height",void 0);
_.d([_.M(),_.x("design:type",Object)],K8.prototype,"lineHeight",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("badges","forceVerified"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],K8.prototype,"verified",null);_.d([_.m("badges","verified"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],K8.prototype,"hideBadges",null);_.d([_.m("channelName"),_.x("design:type",Object),_.x("design:paramtypes",[])],K8.prototype,"formattedName",null);
_.d([_.m("badges","verified","formattedName"),_.x("design:type",String),_.x("design:paramtypes",[])],K8.prototype,"tooltipText",null);_.d([_.m("hasChannelArt"),_.x("design:type",String),_.x("design:paramtypes",[])],K8.prototype,"tooltipOffset",null);_.d([_.Os("channelName"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K8.prototype,"onChannelNameChanged",null);
_.d([_.Os("height"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K8.prototype,"onHeightChanged",null);_.d([_.Os("lineHeight","height"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K8.prototype,"onLineHeightChanged",null);_.d([_.Y({is:"ytd-channel-name",disableElementRegistration:!0})],K8);
_.p(K8,"ytd-channel-name",function(){if(kDw!==void 0)return kDw;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return kDw=D},{mode:_.Kz("kevlar_poly_si_batch_j036")?1:2});var NY=function(){var D=_.X.apply(this,arguments)||this;D.standardizeIconSize=_.r("kevlar_system_icons");return D};
_.P(NY,_.X);NY.prototype.basicPaletteChanged=function(){var D;(D=this.data.color)!=null&&D.basicColorPaletteData&&_.fb(this.hostElement,this.data.color.basicColorPaletteData)};
NY.prototype.useFilledIcons=function(D){return _.r("kevlar_system_icons")&&(D==="CHECK_CIRCLE_THICK"||D==="OFFICIAL_ARTIST_BADGE")};
_.ql.Object.defineProperties(NY.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return this.data.authorCreator||((D=this.data)==null?void 0:(t=D.color)==null?void 0:(H=t.basicColorPaletteData)==null?void 0:H.backgroundColor)}}});
NY.prototype.basicPaletteChanged=NY.prototype.basicPaletteChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],NY.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],NY.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],NY.prototype,"standardizeIconSize",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data.authorUnifiedVerified"),_.x("design:type",Object),_.x("design:paramtypes",[])],NY.prototype,"verified",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],NY.prototype,"creator",null);_.d([_.Os("data.color.basicColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NY.prototype,"basicPaletteChanged",null);_.d([_.Y({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],NY);
_.p(NY,"ytd-author-comment-badge-renderer",function(){if(NuB!==void 0)return NuB;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return NuB=D},{mode:1});var cua;var kD=function(){return _.X.apply(this,arguments)||this};
_.P(kD,_.X);kD.prototype.computeThumbnailWidth=function(D){if(D==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],kD.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],kD.prototype,"data",void 0);_.d([_.M({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],kD.prototype,"icon",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],kD.prototype,"surface",void 0);
_.d([_.M({reflectToAttribute:!0,value:_.r("enable_shrink_image_size_on_web_posts_singleton")}),_.x("design:type",Boolean)],kD.prototype,"searchSxsUx",void 0);_.d([_.M({reflectToAttribute:!0,value:_.r("enable_community_page_on_desktop")}),_.x("design:type",Boolean)],kD.prototype,"useSmallerPostImageAttachments",void 0);_.d([_.Y({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],kD);
_.p(kD,"ytd-backstage-image-renderer",function(){if(cua!==void 0)return cua;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return cua=D},{mode:1});var jG9;var Ts=function(){var D=_.X.apply(this,arguments)||this;D.isLoading=!1;D.selectedItemIndex=-1;return D};
_.P(Ts,_.X);_.q=Ts.prototype;_.q.computeIsChannelOwner=function(D){if(!D)return!0;D=D[0];return!(D&&(D.signinEndpoint||D.selectServiceEndpoint))};
_.q.computeIsImagePoll=function(D){return(D==null?void 0:D.type)==="POLL_TYPE_IMAGE"};
_.q.computeIsTotalVotesDisabled=function(D){return!(D==null?0:D.totalVotes)};
_.q.thumbnailSrc=function(D){var t,H,e,V;return(D==null?0:(t=D.thumbnails)==null?0:(H=t[0])==null?0:H.url)?_.dw((e=D.thumbnails)==null?void 0:(V=e[0])==null?void 0:V.url):void 0};
_.q.progressWidth=function(D){return"width:"+(D?D*100:0)+"%;"};
_.q.textAreaWidth=function(D){return this.isImagePoll?null:"width:"+(D?D*100:0)+"%;"};
_.q.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.q.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var D=this.data.choices,t=0;t<D.length;t++)if(D[t].selected){this.selectedItemIndex=t;break}};
_.q.onPopupClosed=function(D,t){D=Number(this.pollVotes.selected);t.confirmed&&(this.selectChoice(D,!1),_.ET(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.q.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.q.onYtCommentPollRevert=function(D,t){t&&(this.selectChoice(t.selectedChoiceIndex,!0),this.set("data.totalVotes",t.totalVotes))};
_.q.onYtServiceRequestSent=function(D,t){if(t.actions)for(D=0;D<t.actions.length;D++){var H=t.actions[D];_.O(H,xq)&&this.set("data.totalVotes",_.O(H,xq).totalVotes)}};
_.q.onYtServiceRequestCompleted=function(D){var t=this.get("detail.data.actionResults.0.feedback",D);D=this.get("detail.data.actionResults.0.status",D);if(t==="FEEDBACK_DESELECT"||t==="FEEDBACK_SELECT")this.isLoading=!1,D==="STATUS_FAILED"?_.Gf(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.q.getEndpoint=function(D,t){return t===D?this.data.choices[t].deselectServiceEndpoint||null:this.data.choices[D].selectServiceEndpoint||null};
_.q.selectChoice=function(D,t){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var H=0;H<this.data.choices.length;H++){var e;if(D===this.selectedItemIndex){var V=!1;var b=e=null}else e=(V=H===D)?this.data.choices[H].voteRatioIfSelected:this.data.choices[H].voteRatioIfNotSelected,b=V?this.data.choices[H].votePercentageIfSelected:this.data.choices[H].votePercentageIfNotSelected;this.set("data.choices."+H+".voteRatio",e);
this.set("data.choices."+H+".votePercentage",b);this.set("data.choices."+H+".selected",V)}t||(this.isLoading=!0,(t=this.getEndpoint(D,this.selectedItemIndex))&&_.qS().resolve(_.aA).resolveCommand(t,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===D?-1:D};
_.ql.Object.defineProperties(Ts.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Ts.prototype.onYtServiceRequestCompleted=Ts.prototype.onYtServiceRequestCompleted;Ts.prototype.onYtServiceRequestSent=Ts.prototype.onYtServiceRequestSent;Ts.prototype.onYtCommentPollRevert=Ts.prototype.onYtCommentPollRevert;Ts.prototype.onPopupClosed=Ts.prototype.onPopupClosed;Ts.prototype.dataChanged=Ts.prototype.dataChanged;_.d([_.C(_.En),_.x("design:type",Object)],Ts.prototype,"paperItemBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ts.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],Ts.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ts.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Ts.prototype,"isLoading",void 0);_.d([_.M({computed:"computeIsChannelOwner(data.choices)"}),_.x("design:type",Boolean)],Ts.prototype,"isChannelOwner",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.x("design:type",Boolean)],Ts.prototype,"isImagePoll",void 0);_.d([_.M({computed:"computeIsTotalVotesDisabled(data)"}),_.x("design:type",Boolean)],Ts.prototype,"isTotalVotesDisabled",void 0);_.d([_.M(),_.x("design:type",Object)],Ts.prototype,"previousPollInfo",void 0);_.d([_.M(),_.x("design:type",Object)],Ts.prototype,"selectedItemIndex",void 0);_.d([_.o5("#poll-votes"),_.x("design:type",Object)],Ts.prototype,"pollVotes",void 0);
_.d([_.m("isChannelOwner"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ts.prototype,"endpointStyle",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ts.prototype,"dataChanged",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Ts.prototype,"onPopupClosed",null);
_.d([_.rx("yt-comment-poll-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Ts.prototype,"onYtCommentPollRevert",null);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],Ts.prototype,"onYtServiceRequestSent",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ts.prototype,"onYtServiceRequestCompleted",null);_.d([_.Y({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Ts);
_.p(Ts,"ytd-backstage-poll-renderer",function(){if(jG9!==void 0)return jG9;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return jG9=D},{mode:2});var $9V;var i4f={autoplay:!1,loop:!1},ruw={simpleText:""},cp=function(){var D=_.X.apply(this,arguments)||this;D.isLoading=!1;D.usesPanelLockup=!1;D.selectedItemIndex=-1;D.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},i4f,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});D.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},i4f,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});D.correctnessAnimationProps=[];D.correctnessAnimationRefs=[];return D};
_.P(cp,_.X);_.q=cp.prototype;_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.q.computeIsChannelOwner=function(D){if(!D)return!0;D=D[0];return!(D&&(D.signinEndpoint||D.selectServiceEndpoint))};
_.q.computeIsTotalVotesDisabled=function(D){return!(D==null?0:D.totalVotes)};
_.q.computeIsImageQuiz=function(D){return(D==null?void 0:D.type)==="POLL_TYPE_IMAGE"};
_.q.onExplanationChanged=function(){this.expander.reset()};
_.q.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var D=this.data.choices;if(D){this.maybeInitializeQuizLotties(D);for(var t=0;t<D.length;t++)if(D[t].isSelected||this.isChannelOwner&&D[t].isCorrect){this.selectedItemIndex=t;return}this.selectedItemIndex=-1}}};
_.q.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var D=this.selectedItemIndex,t=Number(this.quizVotes.selected);this.selectChoice(t);this.sendVoteAction(t,D);this.quizVotes.selected=-1;var H;D=!((H=this.data)==null?0:H.enableAnimation);this.maybePlayAnswerAnimations(D)}};
_.q.onYtCommentPollRevert=function(D,t){t&&(this.selectChoice(t.selectedChoiceIndex),this.set("data.totalVotes",t.totalVotes))};
_.q.onYtServiceRequestSent=function(D,t){if(t.actions)for(D=_.F(t.actions),t=D.next();!t.done;t=D.next())(t=_.O(t.value,xq))&&this.set("data.totalVotes",t.totalVotes)};
_.q.onYtServiceRequestCompleted=function(D){var t=this.get("detail.data.actionResults.0.feedback",D);D=this.get("detail.data.actionResults.0.status",D);if(t==="FEEDBACK_DESELECT"||t==="FEEDBACK_SELECT")this.isLoading=!1,D==="STATUS_FAILED"?_.Gf(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.q.getAnimationPropsForChoiceIndex=function(D,t){return t[D]};
_.q.maybePlayAnswerAnimations=function(D){D=D===void 0?!1:D;var t;if((t=this.data)!=null&&t.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){t=_.F(this.correctnessAnimationRefs);for(var H=t.next();!H.done;H=t.next()){var e=void 0,V=void 0;(e=H.value)==null||(V=e.lottieEl)==null||V.stop()}if(!(this.selectedItemIndex<0)){t=0;D&&(t=this.isCorrect?37:25);var b,a;(b=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(a=b.lottieEl)==null||a.goToAndPlay(D?t:0,!0);if(!(this.isCorrect||
(b=this.data.choices.findIndex(function(N){return N.isCorrect}),b<0))){var w,h;
(h=(w=this.correctnessAnimationRefs[b])==null?void 0:w.lottieEl)==null||h.goToAndPlay(37,!0);var K;w=(K=this.fadeContainers)==null?void 0:K.item(b);!D&&w&&this.fadeIn(w)}}}};
_.q.thumbnailSrc=function(D){var t,H,e,V;return(D==null?0:(t=D.thumbnails)==null?0:(H=t[0])==null?0:H.url)?_.dw((e=D.thumbnails)==null?void 0:(V=e[0])==null?void 0:V.url):void 0};
_.q.a11yVotedText=function(D,t){var H,e,V=((H=this.data)==null?void 0:(e=H.correctVotedText)==null?void 0:e.simpleText)||"",b,a;H=((b=this.data)==null?void 0:(a=b.votedText)==null?void 0:a.simpleText)||"";if(!t)return"";var w,h;if((w=this.data)==null?0:(h=w.choices)==null?0:h[D].isCorrect)return V;var K,N;return((K=this.data)==null?0:(N=K.choices)==null?0:N[D].isSelected)?H:""};
_.q.getEndpoint=function(D,t){return t===D?this.data.choices[D].deselectServiceEndpoint||null:this.data.choices[D].selectServiceEndpoint||null};
_.q.sendVoteAction=function(D,t){if(D=this.getEndpoint(D,t))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(D)};
_.q.selectChoice=function(D){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var t=0;t<this.data.choices.length;t++)this.set("data.choices."+t+".isSelected",D===this.selectedItemIndex?!1:t===D);this.selectedItemIndex=this.selectedItemIndex===D?-1:D};
_.q.maybeInitializeQuizLotties=function(D){var t=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=D.map(function(H){return{animationConfig:H.isCorrect?t.baseCorrectLottiePlayerAnimationConfig:t.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){t.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(H){return H.animationRef||{}})};
_.q.fadeIn=function(D){D.classList.add("fade-in");_.kX(_.Jy,function(){D.classList.remove("fade-in")},900)};
_.ql.Object.defineProperties(cp.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.eo(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 D,t;return((D=this.data)==null?void 0:(t=D.choices)==null?void 0:t.some(function(H){return H.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null||!D.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?ruw:this.data.choices[this.selectedItemIndex].explanation||ruw}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null||!D.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
cp.prototype.onYtServiceRequestCompleted=cp.prototype.onYtServiceRequestCompleted;cp.prototype.onYtServiceRequestSent=cp.prototype.onYtServiceRequestSent;cp.prototype.onYtCommentPollRevert=cp.prototype.onYtCommentPollRevert;cp.prototype.dataChanged=cp.prototype.dataChanged;cp.prototype.onExplanationChanged=cp.prototype.onExplanationChanged;_.d([_.C(_.En),_.x("design:type",Object)],cp.prototype,"paperItemBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],cp.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.PP.YtTaskEmitterBehavior),_.x("design:type",Object)],cp.prototype,"ytTaskEmitterBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],cp.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],cp.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],cp.prototype,"isLoading",void 0);_.d([_.M(),_.x("design:type",Object)],cp.prototype,"usesPanelLockup",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.x("design:type",Boolean)],cp.prototype,"isChannelOwner",void 0);_.d([_.M({computed:"computeIsTotalVotesDisabled(data)"}),_.x("design:type",Boolean)],cp.prototype,"isTotalVotesDisabled",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.x("design:type",Boolean)],cp.prototype,"isImageQuiz",void 0);_.d([_.M(),_.x("design:type",Object)],cp.prototype,"previousQuizInfo",void 0);_.d([_.M(),_.x("design:type",Object)],cp.prototype,"selectedItemIndex",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data","usesPanelLockup"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cp.prototype,"shouldUseModernUi",null);
_.d([_.PT(".fade-container"),_.x("design:type",Object)],cp.prototype,"fadeContainers",void 0);_.d([_.M(),_.x("design:type",Array)],cp.prototype,"correctnessAnimationProps",void 0);_.d([_.m("explanation","showCorrectAnswer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cp.prototype,"showExplanation",null);_.d([_.m("isChannelOwner","isAttempted"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cp.prototype,"showCorrectAnswer",null);
_.d([_.m("isChannelOwner","isAttempted","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cp.prototype,"isQuizAnsweringDisabled",null);_.d([_.m("isQuizAnsweringDisabled"),_.x("design:type",Object),_.x("design:paramtypes",[])],cp.prototype,"endpointStyle",null);_.d([_.m("data","selectedItemIndex"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cp.prototype,"isAttempted",null);
_.d([_.m("data","selectedItemIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],cp.prototype,"explanation",null);_.d([_.m("data","selectedItemIndex"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cp.prototype,"isCorrect",null);_.d([_.o5("ytd-expander"),_.x("design:type",Object)],cp.prototype,"expander",void 0);_.d([_.o5("#quiz-votes"),_.x("design:type",Object)],cp.prototype,"quizVotes",void 0);
_.d([_.Os("explanation"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cp.prototype,"onExplanationChanged",null);_.d([_.Os("data","isChannelOwner"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cp.prototype,"dataChanged",null);_.d([_.rx("yt-comment-quiz-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],cp.prototype,"onYtCommentPollRevert",null);
_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],cp.prototype,"onYtServiceRequestSent",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],cp.prototype,"onYtServiceRequestCompleted",null);_.d([_.Y({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],cp);
_.p(cp,"ytd-backstage-quiz-renderer",function(){if($9V!==void 0)return $9V;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return $9V=D},{mode:1});var O4B;var jC=function(){return _.X.apply(this,arguments)||this};
_.P(jC,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],jC.prototype,"data",void 0);_.d([_.Y({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],jC);
_.p(jC,"ytd-post-uploaded-video-renderer",function(){if(O4B!==void 0)return O4B;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return O4B=D},{mode:1});var U9n;var $D=function(){return _.X.apply(this,arguments)||this};
_.P($D,_.X);$D.prototype.useFilledIcons=function(D){return D==="SPONSORSHIP_STAR"};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$D.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$D.prototype,"data",void 0);_.d([_.Y({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],$D);
var o_6=_.E_()($D,"ytd-sponsors-only-badge-renderer",function(){if(U9n===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);U9n=D}D=U9n;return D},{allowedProps:["data"],
mode:1});var Pco;var iU=function(){return _.X.apply(this,arguments)||this};
_.P(iU,_.X);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],iU.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],iU.prototype,"data",void 0);_.d([_.Y({is:"ytd-child-video-renderer",disableElementRegistration:!0})],iU);
_.p(iU,"ytd-child-video-renderer",function(){if(Pco!==void 0)return Pco;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Pco=D},{mode:1});var n_V;var Cc6;var r7=function(){var D=_.X.apply(this,arguments)||this;D.size=0;D.enableWebModernCollectionsV2=_.r("web_modern_collections_v2");D.fallbackImageSize={height:void 0,width:9999};D.webModernCollections=!1;return D};
_.P(r7,_.X);_.q=r7.prototype;_.q.computeBlurredImageSize=function(D){return D?{height:D*2,width:D*2}:this.fallbackImageSize};
_.q.computeImageSize=function(D){return D?{height:D,width:D}:this.fallbackImageSize};
_.q.computeObjectFit=function(D){return D?"FILL":"CONTAIN"};
_.q.computePreserve=function(D){return D?!0:!1};
_.q.setBackground=function(){var D,t;_.r("web_modern_collections_v2")&&((D=this.data)==null?0:(t=D.thumbnail)==null?0:t.sampledThumbnailColor)&&(D=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+D.red+","+D.green+","+D.blue+",1)")};
r7.prototype.setBackground=r7.prototype.setBackground;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],r7.prototype,"watchFeedThumbnail",void 0);_.d([_.M(),_.x("design:type",Object)],r7.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],r7.prototype,"size",void 0);
_.d([_.M({computed:"computeBlurredImageSize(size)"}),_.x("design:type",Object)],r7.prototype,"blurredImageSize",void 0);_.d([_.M({computed:"computeImageSize(size)"}),_.x("design:type",Object)],r7.prototype,"imageSize",void 0);_.d([_.M({computed:"computePreserve(size)"}),_.x("design:type",String)],r7.prototype,"preserve",void 0);_.d([_.M({computed:"computeObjectFit(size)"}),_.x("design:type",String)],r7.prototype,"objectFit",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],r7.prototype,"enableWebModernCollectionsV2",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],r7.prototype,"webModernCollections",void 0);_.d([_.Os("data.thumbnail.sampledThumbnailColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],r7.prototype,"setBackground",null);_.d([_.Y({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],r7);
_.p(r7,"ytd-playlist-custom-thumbnail-renderer",function(){if(Cc6!==void 0)return Cc6;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Cc6=D},{mode:1});var m9a;var Ob=function(){return _.X.apply(this,arguments)||this};
_.P(Ob,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ob.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ob.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Number)],Ob.prototype,"width",void 0);_.d([_.Y({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Ob);
_.p(Ob,"ytd-playlist-video-thumbnail-renderer",function(){if(m9a!==void 0)return m9a;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return m9a=D},{mode:1});var MIa;var Ub=function(){return _.X.apply(this,arguments)||this};
_.P(Ub,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ub.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ub.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Number)],Ub.prototype,"width",void 0);_.d([_.Y({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],Ub);
_.p(Ub,"ytd-show-custom-thumbnail-renderer",function(){if(MIa!==void 0)return MIa;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return MIa=D},{mode:1});var SS6;var ow=function(){return _.X.apply(this,arguments)||this};
_.P(ow,_.X);ow.prototype.useFilledIcons=function(D){return D==="MUSIC"||D==="COURSE"};
ow.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=yk(this.overlayColor,"0.8");else if(this.overlayColor){var D=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+D.red+","+D.green+","+D.blue+",0.8)"}};
_.ql.Object.defineProperties(ow.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)}}});
ow.prototype.overlayColorChanged=ow.prototype.overlayColorChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ow.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],ow.prototype,"overlayColor",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data.icon","data.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],ow.prototype,"overlayStyle",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data.icon","data.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],ow.prototype,"overlayTextStyle",null);_.d([_.Os("overlayColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ow.prototype,"overlayColorChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],ow);
_.p(ow,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(SS6!==void 0)return SS6;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return SS6=D},{mode:1});var XLn;var Pp=function(){var D=_.X.apply(this,arguments)||this;D.active=!1;return D};
_.P(Pp,_.X);Pp.prototype.computeIsSpinnerHidden=function(D){return(D==null?void 0:D.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
Pp.prototype.computeOverlayIcon=function(D){return(D==null?void 0:D.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(D==null?void 0:D.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Pp.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Pp.prototype,"active",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],Pp);
_.p(Pp,"ytd-thumbnail-overlay-downloading-renderer",function(){if(XLn!==void 0)return XLn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return XLn=D},{mode:1});var fRv;var n8=function(){return _.X.apply(this,arguments)||this};
_.P(n8,_.X);_.ql.Object.defineProperties(n8.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],n8.prototype,"data",void 0);_.d([_.m("data.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],n8.prototype,"text",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],n8);
_.p(n8,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(fRv!==void 0)return fRv;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return fRv=D},{mode:1});var L_w,Aun=function(){if(L_w!==void 0)return L_w;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return L_w=D};var C8=function(){return _.X.apply(this,arguments)||this};
_.P(C8,_.X);_.ql.Object.defineProperties(C8,{template:{configurable:!0,enumerable:!0,get:function(){return Aun()}}});
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],C8.prototype,"animateEqualizer",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],C8);_.E_()(C8,"ytd-thumbnail-overlay-equalizer",function(){return Aun()},{allowedProps:["animateEqualizer"],
mode:1});var g_6;var mZ=function(){var D=_.X.apply(this,arguments)||this;D.nowPlayingBadge=_.r("web_now_playing_badge");D.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return D};
_.P(mZ,_.X);mZ.prototype.activeChanged=function(){var D=this;_.r("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.Vi(this,function(){_.Gf(D.hostElement,"yt-playlist-lockup-now-playing-active",D)})};
mZ.prototype.onMiniplayerPlayStateChanged=function(D){var t,H=(t=_.O(_.d3().currentEndpoint,_.Hh))==null?void 0:t.videoId;this.isVideoPlaying=D&&(_.r("web_limit_now_playing_animation_killswitch")||this.videoId===H)};
mZ.prototype.activeChanged=mZ.prototype.activeChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],mZ.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],mZ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],mZ.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],mZ.prototype,"isVideoPlaying",void 0);_.d([_.M(),_.x("design:type",String)],mZ.prototype,"videoId",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],mZ.prototype,"equalizerOnly",void 0);_.d([_.M(),_.x("design:type",Boolean)],mZ.prototype,"isActive",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],mZ.prototype,"nowPlayingBadge",void 0);_.d([_.Os("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mZ.prototype,"activeChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],mZ);
_.p(mZ,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(g_6!==void 0)return g_6;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return g_6=D},{mode:1});var Jua;var MY=function(){return _.X.apply(this,arguments)||this};
_.P(MY,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],MY.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],MY.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],MY);
_.p(MY,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Jua!==void 0)return Jua;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Jua=D},{mode:_.Kz("kevlar_poly_si_batch_j025")?1:2});var YS4;var SC=function(){return _.X.apply(this,arguments)||this};
_.P(SC,_.X);SC.prototype.onDurationChanged=function(){var D,t;_.Kg(this.hostElement).querySelector("#progress").style.width=((t=(D=this.data)==null?void 0:D.percentDurationWatched)!=null?t:0)+"%"};
SC.prototype.onDurationChanged=SC.prototype.onDurationChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],SC.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],SC.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],SC.prototype,"isLive",void 0);_.d([_.Os("data.percentDurationWatched"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SC.prototype,"onDurationChanged",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],SC);
_.p(SC,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(YS4!==void 0)return YS4;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return YS4=D},{mode:1});var lRB;var XD=function(){var D=_.X.apply(this,arguments)||this;D.bottomPanel=!1;D.richGridOverlay=!1;D.watchFeedOverlay=!1;D.isCompact=!1;return D};
_.P(XD,_.X);XD.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.ql.Object.defineProperties(XD.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?void 0:(t=D.icon)==null?void 0:t.iconType)==="PLAY_ALL"&&_.r("kevlar_system_icons")}}});
XD.prototype.widthChanged=XD.prototype.widthChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],XD.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Number)],XD.prototype,"width",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],XD.prototype,"bottomPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],XD.prototype,"richGridOverlay",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],XD.prototype,"watchFeedOverlay",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],XD.prototype,"isCompact",void 0);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],XD.prototype,"isIconFilled",null);_.d([_.Os("width","watchFeedOverlay"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XD.prototype,"widthChanged",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],XD);
_.p(XD,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(lRB!==void 0)return lRB;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return lRB=D},{mode:1});var v_f;var pLV=["CLIP","SHORTS"],f8=function(){var D=_.X.apply(this,arguments)||this;D.animated=_.r("animated_live_badge_icon");D.hasIcon=!1;D.updateTimerIntervalId=0;D.timeSinceLive=0;return D};
_.P(f8,_.X);_.q=f8.prototype;_.q.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.q.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.q.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.q.hasIconOrText=function(){var D,t;return!!(((D=this.data)==null?0:D.icon)||((t=this.data)==null?0:t.text))};
_.q.initializeLiveBadgeTimer=function(){var D=this,t,H=(t=this.liveBadgeData)==null?void 0:t.startTimestampSec;if(H&&this.canShowLiveBadgeTimer()){var e;t=Number((e=this.liveBadgeData)==null?void 0:e.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(H);this.updateTimerIntervalId=_.NS(function(){D.canShowLiveBadgeTimer()?D.timeSinceLive++:(D.timeSinceLive=0,window.clearInterval(D.updateTimerIntervalId))},t)}else this.timeSinceLive=0};
_.q.canShowLiveBadgeTimer=function(){var D=Date.now(),t,H;return D<(Number((t=this.liveBadgeData)==null?void 0:t.endTimestampSec)-1)*1E3&&D>Number((H=this.liveBadgeData)==null?void 0:H.startTimestampSec)*1E3};
_.ql.Object.defineProperties(f8.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=this.data;var t=this.timeSinceLive;var H,e,V,b;a:{var a=D.style;if(a===void 0)a=17;else switch(a){case "LIVE":a=18;break a;default:a=17}}t={type:a,text:t?pM8({seconds:t}):_.eo(D.text),accessibilityText:(H=D.text)==null?void 0:(e=H.accessibility)==null?void 0:(V=e.accessibilityData)==null?void 0:V.label,icon:(b=D.icon)==null?void 0:b.iconType}}else t={};return t}},
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 D;return(D=this.data)==null?void 0:D.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 pLV.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
f8.prototype.initializeLiveBadgeTimer=f8.prototype.initializeLiveBadgeTimer;f8.prototype.dataChanged=f8.prototype.dataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],f8.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],f8.prototype,"data",void 0);_.d([_.M({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],f8.prototype,"icon",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],f8.prototype,"animated",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.x("design:type",Boolean)],f8.prototype,"hideTimeStatus",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],f8.prototype,"hasIcon",void 0);_.d([_.M(),_.x("design:type",Object)],f8.prototype,"timeSinceLive",void 0);_.d([_.m("data","timeSinceLive"),_.x("design:type",Object),_.x("design:paramtypes",[])],f8.prototype,"badgeShapeData",null);
_.d([_.m("data","overlayType"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],f8.prototype,"hideBadgeShape",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f8.prototype,"dataChanged",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.style"),_.x("design:type",Object),_.x("design:paramtypes",[])],f8.prototype,"overlayStyle",null);
_.d([_.m("data.liveBadgeData"),_.x("design:type",Object),_.x("design:paramtypes",[])],f8.prototype,"liveBadgeData",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.type"),_.x("design:type",Object),_.x("design:paramtypes",[])],f8.prototype,"overlayType",null);_.d([_.m("overlayType","overlayStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],f8.prototype,"useFilledIcon",null);
_.d([_.mx("liveBadgeData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f8.prototype,"initializeLiveBadgeTimer",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],f8);
_.p(f8,"ytd-thumbnail-overlay-time-status-renderer",function(){if(v_f!==void 0)return v_f;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return v_f=D},{mode:_.Kz("kevlar_poly_si_batch_j035")?1:2});var d9Q;var L8=function(){return _.X.apply(this,arguments)||this};
_.P(L8,_.X);L8.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"}}}}};
L8.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(D){if(this.hasPlaybackProgressBar)return{percentDurationWatched:D.percentDurationWatched}};
L8.prototype.computeHasPlaybackProgressBar=function(D){return!!D.percentDurationWatched&&D.percentDurationWatched>0};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],L8.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],L8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],L8.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.x("design:type",Boolean)],L8.prototype,"hasPlaybackProgressBar",void 0);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],L8);
_.p(L8,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(d9Q!==void 0)return d9Q;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return d9Q=D},{mode:1});var x9V;var ROf=_.l(function(D){var t=D.data;var H=D.children;var e=function(){return!!t().doubleStack},V=function(){return!!t().includeStackHeight};
return _.G("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!t().experimentEnabled}},_.G(_.E,{cond:t,
then:function(){var b={};return _.G(_.FH,null,_.G(_.E,{cond:V,then:function(){var a={};return _.G("div",{class:_.jQ("ytCollectionsStackSpacer",(a.ytCollectionsStackSpacerDoubleStack=e,a))})}}),_.G("div",{class:_.jQ((b.ytCollectionsStackRelativeStack=V,b))},_.G(_.E,{cond:e,
then:function(){var a={};return _.G("div",{class:_.jQ("ytCollectionsStackCollectionStack2",function(){return t().customClassName2ndStack},(a.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return t().enableResponsiveMode},a)),
style:_.O7({"background-color":function(){return GDV(t())}})})}}),_.G("div",{class:_.jQ("ytCollectionsStackCollectionStack1",function(){return t().customClassName1stStack},function(){return hOK(t().thumbnailSize?t().thumbnailSize:"medium")}),
style:_.O7({"background-color":function(){return GDV(t())}})}),H))}}))},"wa");_.hB(ROf,"yt-collections-stack",{props:{data:_.ij}});var Ar=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};D.webModernCollections=!1;D.isSearch=!1;D.isDoubleStack=!1;D.thumbnailSize="medium";D.enableWebModernCollectionsV2=_.r("web_modern_collections_v2");return D};
_.P(Ar,_.X);_.q=Ar.prototype;
_.q.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]]"}}}}}};
_.q.getThumbnailDetails=function(D){if(D!=null&&D.thumbnailRenderer){var t=D.thumbnailRenderer,H;if((H=t.playlistVideoThumbnailRenderer)==null?0:H.thumbnail)return t.playlistVideoThumbnailRenderer.thumbnail;var e;if((e=t.playlistCustomThumbnailRenderer)==null?0:e.thumbnail)return t.playlistCustomThumbnailRenderer.thumbnail;D=D.thumbnailRenderer;var V;if((V=D.showCustomThumbnailRenderer)==null?0:V.thumbnail)return D.showCustomThumbnailRenderer.thumbnail}};
_.q.computeOverlayColor=function(D){var t,H;if((t=this.getThumbnailDetails(D))==null?0:(H=t.darkColorPalette)==null?0:H.section2Color)return this.getThumbnailDetails(D).darkColorPalette.section2Color;var e;return(e=this.getThumbnailDetails(D))==null?void 0:e.sampledThumbnailColor};
_.q.computeWebModernCollections=function(D){if(D==null||!D.thumbnailOverlays)return!1;D=_.F(D.thumbnailOverlays);for(var t=D.next();!t.done;t=D.next()){var H=void 0;if((H=t.value)==null?0:H.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.q.computeNavigationEndpoint=function(D){return $a6(D==null?void 0:D.navigationEndpoint)};
_.ql.Object.defineProperties(Ar.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var D=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:D==null?void 0:D.sampledThumbnailColor,vibrantColorPalette:D==null?void 0:D.vibrantColorPalette,darkColorPalette:D==null?void 0:D.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Ar.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ar.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(zua),_.x("design:type",Object)],Ar.prototype,"ytdThumbnailBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Ar.prototype,"componentBehavior",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],Ar.prototype,"watchFeedThumbnail",void 0);_.d([_.M(),_.x("design:type",Number)],Ar.prototype,"customThumbnailSize",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],Ar.prototype,"hideAria",void 0);_.d([_.M(),_.x("design:type",Object)],Ar.prototype,"data",void 0);_.d([_.M({computed:"computeOverlayColor(data)"}),_.x("design:type",Object)],Ar.prototype,"overlayColor",void 0);
_.d([_.M({computed:"computeWebModernCollections(data)"}),_.x("design:type",Object)],Ar.prototype,"webModernCollections",void 0);_.d([_.M({computed:"computeNavigationEndpoint(data)"}),_.x("design:type",Object)],Ar.prototype,"computedNavigationEndpoint",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ar.prototype,"isSearch",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ar.prototype,"isDoubleStack",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],Ar.prototype,"thumbnailSize",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ar.prototype,"enableWebModernCollectionsV2",void 0);_.d([_.m("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ar.prototype,"collectionStack",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Ar);
_.p(Ar,"ytd-playlist-thumbnail",function(){if(x9V!==void 0)return x9V;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return x9V=D},{mode:_.Kz("kevlar_poly_si_batch_j025")?1:2});var uVo;var g7=function(){var D=_.X.apply(this,arguments)||this;D.noEndpoints=!1;D.amsterdamPostMvp=_.r("web_amsterdam_post_mvp_playlists");D.badges=[];D.transferState="TRANSFER_STATE_UNKNOWN";return D};
_.P(g7,_.X);_.q=g7.prototype;_.q.getMetadata=function(D){if(!D)return[];var t=[],H=D.shortViewCountText||D.viewCountText;H&&t.push(_.eo(H));D.publishedTimeText&&t.push(_.eo(D.publishedTimeText));D.upcomingEventData&&D.upcomingEventData.upcomingEventText&&t.push(_.Sd(_.eo(D.upcomingEventData.upcomingEventText),Number(D.upcomingEventData.startTime)));return t};
_.q.observeDataForBylineSeparator=function(){this.data&&_.kL(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.q.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.Ih(this.metadataColor)};
_.q.getSimpleString=function(D){return _.eo(D)};
_.q.isBylineHidden=function(D){return this.noByline||!((D==null?0:D.longBylineText)||(D==null?0:D.shortBylineText))};
_.q.isMetadataHidden=function(D){var t;return((t=this.getMetadata(D))==null?void 0:t.length)===0};
_.q.isBylineMetadataSeparatorHidden=function(D){return this.isMetadataHidden(D)||!this.shouldShowVideoInfo};
_.q.isLongByline=function(D,t){return t&&!(D==null||!D.longBylineText)};
_.ql.Object.defineProperties(g7.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var D;return this.amsterdamPostMvp&&!((D=this.data)==null||!D.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 _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
g7.prototype.metadataColorChanged=g7.prototype.metadataColorChanged;g7.prototype.observeDataForBylineSeparator=g7.prototype.observeDataForBylineSeparator;_.d([_.C(_.sx),_.x("design:type",Object)],g7.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],g7.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],g7.prototype,"noEndpoints",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],g7.prototype,"isSlimShort",void 0);
_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],g7.prototype,"radioMeta",void 0);_.d([_.M({selector:_.pb}),_.x("design:type",Object)],g7.prototype,"isGridViewEnabled",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],g7.prototype,"richMeta",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],g7.prototype,"amsterdamPostMvp",void 0);_.d([_.M(),_.x("design:type",Boolean)],g7.prototype,"noByline",void 0);
_.d([_.M({computed:"isLongByline(data, radioMeta)"}),_.x("design:type",Boolean)],g7.prototype,"longByline",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],g7.prototype,"truncateMetadataLine",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],g7.prototype,"miniMode",void 0);_.d([_.M(),_.x("design:type",Number)],g7.prototype,"metadataColor",void 0);_.d([_.M(),_.x("design:type",Array)],g7.prototype,"badges",void 0);
_.d([_.M({selector:_.xe,selectorArgs:["data.videoId"]}),_.x("design:type",String)],g7.prototype,"transferState",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],g7.prototype,"isDownloading",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],g7.prototype,"typographyBump",void 0);_.d([_.o5("#metadata-line"),_.x("design:type",HTMLElement)],g7.prototype,"metadataLine",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],g7.prototype,"observeDataForBylineSeparator",null);_.d([_.Os("metadataColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],g7.prototype,"metadataColorChanged",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],g7.prototype,"shouldShowVideoInfo",null);
_.d([_.m("badges"),_.x("design:type",String),_.x("design:paramtypes",[])],g7.prototype,"inlineBadgeClass",null);_.d([_.m("longByline"),_.x("design:type",String),_.x("design:paramtypes",[])],g7.prototype,"longBylineClass",null);_.d([_.m("data","longByline"),_.x("design:type",Object),_.x("design:paramtypes",[])],g7.prototype,"bylineText",null);_.d([_.m("isGridViewEnabled","data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],g7.prototype,"watchFeedBigThumbs",null);
_.d([_.Y({is:"ytd-video-meta-block",disableElementRegistration:!0})],g7);
_.p(g7,"ytd-video-meta-block",function(){if(uVo!==void 0)return uVo;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return uVo=D},{mode:_.Kz("kevlar_poly_si_batch_j080")?1:2});_.AB("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var Jr=function(){var D=_.X.apply(this,arguments)||this;D.displayItemCount=2;D.isBackstagePlaylist=!1;D.isPostCompactPlaylist=!1;D.shouldShowChannelThumbnail=!1;D.useModernCollectionsV2=_.r("web_modern_collections_v2");return D};
_.P(Jr,_.X);_.q=Jr.prototype;_.q.computeFirstVideos=function(D,t){return D===void 0||t===void 0?[]:D.slice(0,t)};
_.q.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var D=this.data.thumbnailRenderer;D.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",D.playlistVideoThumbnailRenderer.thumbnail);D.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",D.playlistCustomThumbnailRenderer.thumbnail)}};
_.q.computeThumbnailHeight=function(D,t,H,e,V){return e?V==="BIG"?280:V==="MASSIVE"?337:234:H?240:t?72:D?118:138};
_.q.computeThumbnailWidth=function(D,t,H,e,V){return e?V==="MEDIUM"?450:V==="BIG"?500:V==="MASSIVE"?600:420:H?360:t?128:D?210:246};
_.q.computeUseBiggerThumbs=function(D){return D&&_.r("enable_desktop_search_bigger_thumbs")};
_.q.computeShouldShowChannelThumbnail=function(D,t){return D&&!(t==null||!t.channelThumbnail)};
_.ql.Object.defineProperties(Jr.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
Jr.prototype.dataChanged=Jr.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Jr.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],Jr.prototype,"ytdLockupBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Jr.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Jr.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Jr.prototype,"displayItemCount",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Jr.prototype,"isBackstagePlaylist",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Jr.prototype,"isPostCompactPlaylist",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Jr.prototype,"isSearch",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.x("design:type",Boolean)],Jr.prototype,"useBiggerThumbs",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.sa("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],Jr.prototype,"biggerThumbsStyle",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Jr.prototype,"isDownloads",void 0);_.d([_.M({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.x("design:type",Object)],Jr.prototype,"shouldShowChannelThumbnail",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Jr.prototype,"useModernCollectionsV2",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jr.prototype,"dataChanged",null);_.d([_.m("isSearch"),_.x("design:type",String),_.x("design:paramtypes",[])],Jr.prototype,"stackThumbnailSize",null);_.d([_.Y({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Jr);
_.p(Jr,"ytd-playlist-renderer",function(){if(n_V===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);n_V=D}D=n_V;return D},{mode:1});var W_B;var IRf;var YD=function(){var D=_.X.apply(this,arguments)||this;D.collections=!!_.r("web_modern_collections_v2");D.startX=0;return D};
_.P(YD,_.X);YD.prototype.onEndpointMouseDown=function(D){this.startX=D.clientX};
YD.prototype.onEndpointClick=function(D){this.startX!==D.clientX&&(D.preventDefault(),D.stopPropagation())};
YD.prototype.computeObjectFit=function(D){return D==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||D==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||D==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
YD.prototype.computeCardStyle=function(D){return D?D.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.ql.Object.defineProperties(YD.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var D,t;return this.collections&&((D=this.data)==null?void 0:(t=D.searchRefinementCardRendererStyle)==null?void 0:t.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],YD.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],YD.prototype,"data",void 0);_.d([_.M({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.x("design:type",Number)],YD.prototype,"objectFit",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.x("design:type",String)],YD.prototype,"cardStyle",void 0);
_.d([_.M({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],YD.prototype,"roundContainer",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],YD.prototype,"collections",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],YD.prototype,"isAlbumCard",null);_.d([_.m("data","collections","isAlbumCard"),_.x("design:type",Object),_.x("design:paramtypes",[])],YD.prototype,"collectionStack",null);
_.d([_.Y({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],YD);
_.p(YD,"ytd-search-refinement-card-renderer",function(){if(IRf!==void 0)return IRf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return IRf=D},{mode:1});var QG9;var lU=function(){var D=_.X.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.P(lU,_.X);_.d([_.M(),_.x("design:type",Object)],lU.prototype,"data",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],lU.prototype,"componentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],lU.prototype,"ytdReduxBehavior",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],lU.prototype,"isRichGrid",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.Ye}),_.x("design:type",Boolean)],lU.prototype,"miniMode",void 0);
_.d([_.Y({is:"ytd-game-details-renderer",disableElementRegistration:!0})],lU);
_.p(lU,"ytd-game-details-renderer",function(){if(QG9!==void 0)return QG9;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return QG9=D},{mode:1});var yu3;var BuV;var vp=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return D};
_.P(vp,_.X);_.q=vp.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.currentStateData=function(D){var t=D||this.data;return t&&t.states&&t.currentStateId!=null?t.states.find(function(H){return H.stateId===t.currentStateId})||null:null};
_.q.currentStateRendererData=function(D){return(D=this.currentStateData(D))&&D.state&&D.state.buttonRenderer?D.state.buttonRenderer:null};
_.q.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())};
_.q.computeButtonIcon=function(D){D=this.currentStateRendererData(D);var t;return(D==null?0:(t=D.icon)==null?0:t.iconType)?D.icon.iconType.toLowerCase():null};
_.q.computeAccessibility=function(D){return(D=this.currentStateRendererData(D))&&D.accessibilityData?D.accessibilityData.accessibilityData||null:null};
_.q.computeButtonClass=function(D){var t=this.currentStateRendererData(D);if(!t)return"";D="";var H=t.style;H&&(D+=H.toLowerCase().replace(/_/g,"-")+" ");(t=t.size)&&(D+=t.toLowerCase().replace(/_/g,"-")+" ");return D.trim()};
_.q.computeServiceEndpoint=function(D){if(!D)return null;var t=D&&D.serviceEndpoint,H=this.get("command.commandMetadata.webCommandMetadata.sendPost",D);return t?t:H&&D.command?D.command:null};
_.q.computeBellMenuItemParams=function(D){var t;D=(t=_.O(D==null?void 0:D.command,_.ch))==null?void 0:t.commands;if(!D||D.length===0)return null;t=_.O(D[0],_.RW);var H,e;return(t==null?0:(H=t.popup)==null?0:(e=H.menuPopupRenderer)==null?0:e.items)?t.popup.menuPopupRenderer.items.map(function(V){return V.menuServiceItemRenderer.trackingParams}):null};
_.q.handleBellMenuOpenSelectedAction=function(D){var t=D.trackingParams,H=this.computeBellMenuItemParams(this.data);this.data&&t&&H&&H.includes(t)&&this.ytRenderButtonBehavior._setButtonIcon(D.icon.iconType.toLowerCase())};
_.q.onYtServiceRequestCompleted=function(D,t){(D=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",t))&&this.set("data",D)};
_.q.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.q.resetState=function(){this.set("data.currentStateId",3)};
_.q.onYtButtonTapHandler=function(){if(this.data){var D=this.currentStateRendererData(this.data);D&&this.ytRendererBehavior.logExplicitClick(D)}};
vp.prototype.onYtServiceRequestError=vp.prototype.onYtServiceRequestError;vp.prototype.onYtServiceRequestCompleted=vp.prototype.onYtServiceRequestCompleted;vp.prototype.stateChanged=vp.prototype.stateChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],vp.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C(yW.YtRenderButtonBehavior),_.x("design:type",Object)],vp.prototype,"ytRenderButtonBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],vp.prototype,"data",void 0);_.d([_.mx("data","data.currentStateId"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vp.prototype,"stateChanged",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],vp.prototype,"onYtServiceRequestCompleted",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],vp.prototype,"onYtServiceRequestError",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],vp);
_.p(vp,"ytd-subscription-notification-toggle-button-renderer",function(){if(BuV!==void 0)return BuV;var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return BuV=D},{mode:1});var zOm;var p8=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};D.tapHandler=function(){if(D.data){var t=D.currentStateRendererData();t&&D.ytRendererBehavior.logExplicitClick(t)}};
return D};
_.P(p8,_.X);_.q=p8.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.currentStateData=function(){var D=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(t){return t.stateId===D.data.currentStateId})||null:null};
_.q.currentStateRendererData=function(){var D=this.currentStateData();return D&&D.state&&D.state.buttonRenderer?D.state.buttonRenderer:null};
_.q.computeAccessibilityLabel=function(){var D,t,H;return(D=this.currentStateRendererData())==null?void 0:(t=D.accessibilityData)==null?void 0:(H=t.accessibilityData)==null?void 0:H.label};
_.q.computeBellMenuItemParams=function(){var D,t,H=(t=_.O((D=this.data)==null?void 0:D.command,_.ch))==null?void 0:t.commands;if(!H||H.length===0)return null;D=_.O(H[0],_.RW);var e,V;return(D==null?0:(e=D.popup)==null?0:(V=e.menuPopupRenderer)==null?0:V.items)?D.popup.menuPopupRenderer.items.map(function(b){return b.menuServiceItemRenderer.trackingParams}):null};
_.q.handleBellMenuOpenSelectedAction=function(D){var t=D.trackingParams,H=this.computeBellMenuItemParams();if(this.data&&t&&H&&H.includes(t)&&(D==null||!D.isDisabled)){var e;((e=_.O(D.serviceEndpoint,_.$0))==null?void 0:e.signal)!=="CLIENT_SIGNAL"&&(this.icon=D.icon.iconType)}};
_.q.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.q.onYtServiceRequestCompleted=function(D,t){if(D=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",t))this.icon=void 0,this.set("data",D)};
_.q.onYtServiceRequestError=function(){this.icon=void 0};
_.ql.Object.defineProperties(p8.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=this.data,t=this.textLabel,H=this.hostElement,e=this.computeAccessibilityLabel(),V=this.tapHandler,b=this.isOverlay?"overlay":"mono",a=(D==null?0:D.disableButton)?"disabled":"active";t=t?_.lf(t):void 0;return{style:b,type:"tonal",state:a,size:"M",focused:!1,formattedButtonText:t,iconPosition:"leading-trailing",onTap:K_3(D,V,H),accessibilityLabel:e}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var D=this.currentStateRendererData(),t,H,e=(H=this.icon)!=null?H:D==null?void 0:(t=D.icon)==null?void 0:t.iconType;if(e)return _.cc(e)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var D,t,H=(D=this.data)==null?void 0:(t=D.secondaryIcon)==null?void 0:t.iconType;if(H)return _.cc(H)}}});
p8.prototype.onYtServiceRequestError=p8.prototype.onYtServiceRequestError;p8.prototype.onYtServiceRequestCompleted=p8.prototype.onYtServiceRequestCompleted;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],p8.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],p8.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],p8.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],p8.prototype,"textLabel",void 0);
_.d([_.M(),_.x("design:type",String)],p8.prototype,"icon",void 0);_.d([_.M(),_.x("design:type",Boolean)],p8.prototype,"isOverlay",void 0);_.d([_.m("data.*","textLabel"),_.x("design:type",Object),_.x("design:paramtypes",[])],p8.prototype,"computedButtonShape",null);_.d([_.m("data.*","icon"),_.x("design:type",Object),_.x("design:paramtypes",[])],p8.prototype,"computedIcon",null);_.d([_.m("computedIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],p8.prototype,"computedAnimateIcon",null);
_.d([_.m("data.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],p8.prototype,"computedSecondaryIcon",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],p8.prototype,"onYtServiceRequestCompleted",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],p8.prototype,"onYtServiceRequestError",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],p8);
_.p(p8,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(zOm!==void 0)return zOm;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return zOm=D},{mode:_.Kz("kevlar_poly_si_batch_j081")?1:2});var D6a;_.hB(D9m,"yt-animated-action",{props:{backgroundLottieRef:_.ij,foregroundLottieRef:_.ij,wrapperClass:_.ij,disableAnimation:_.ij},unsafeExternallySettableAttributes:new Set(["key"])});var d7=function(){var D=_.X.apply(this,arguments)||this;D.animatedActionEnabled=_.r("web_animated_actions");D.foregroundLottieRef={};D.backgroundLottieRef={};D.forceIconOnly=!1;D.showTextWhileAnimating=!1;D.keyboardFocused=!1;D.isAnimating=!1;D.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return D};
_.P(d7,_.X);_.q=d7.prototype;_.q.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.q.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]]"}}}}}};
_.q.attached=function(){this.keyboardFocused=!1};
_.q.onYtServiceRequestSent=function(D,t){(this.get("endpoint.subscribeEndpoint",t)||this.get("endpoint.unsubscribeEndpoint",t))&&this.updateSubscriptionState(!this.subscribed)};
_.q.onYtServiceRequestCompleted=function(D,t){(D=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",t.data))&&this.bellButton&&(this.bellButton.data=D)};
_.q.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.jZ(this.hostElement)};
_.q.onPlayerSubscribe=function(D){this.isCompactRed()||D!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.q.onPlayerUnsubscribe=function(D){this.isCompactRed()||D!==this.data.channelId||this.updateSubscriptionState(!1)};
_.q.handleUpdateSubscribeButtonAction=function(D){D=_.O(D,Yro);var t;D&&D.channelId===((t=this.data)==null?void 0:t.channelId)&&this.updateSubscriptionState(!!D.subscribed)};
_.q.computeButtonStyle=function(D){return this.get("style.styleType",D)||null};
_.q.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.q.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.q.updateSubscriptionState=function(D){if(D!==this.subscribed){this.set("data.subscribed",D);var t,H=(t=this.data)==null?void 0:t.subscribedEntityKey;H&&this.ytdReduxBehavior.dispatch(_.nf("subscriptionStateEntity",H,{key:H,subscribed:D}));this.isCompactRed()||_.Gf(this.hostElement,"yt-subscription-changed",D);D||(_.ET(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!D),D&&this.hasBellButton&&this.startAnimation())}};
_.q.startAnimation=function(){var D=this;if(!this.isAnimating){var t=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var H;(H=this.backgroundLottieRef.lottieEl)==null||H.goToAndPlay(0);var e;(e=this.foregroundLottieRef.lottieEl)==null||e.goToAndPlay(0);_.Jy.addJob(function(){D.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Jy.addJob(function(){D.updateContainerToFitContent(!!D.subscribed,!0)},2,1500);
_.Jy.addJob(function(){D.isAnimating=!1},2,t)}};
_.q.maybeAnimateBellIcon=function(){var D=_.Ny(this.hostElement).querySelector("yt-animated-icon");if(D){var t;(t=D.animationRef.lottieEl)==null||t.goToAndPlay(0)}};
_.q.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.q.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.q.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var D;this.unsubscribedWidth=(D=this.subscribeButtonShape)==null?void 0:D.getBoundingClientRect().width}var t;this.subscribedWidth=(t=this.bellButton)==null?void 0:t.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.q.updateContainerToFitContent=function(D,t){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(D?(D=this.subscribedWidth,t=this.isAnimating&&!t,this.subscribedIconOnlyWidth===void 0||t||(D=this.subscribedIconOnlyWidth),this.hostElement.style.width=D+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.q.clearContainerSize=function(){this.hostElement.style.width=""};
_.q.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.q.maybeSetSubscribedButtonIconOnlyWidth=function(){var D=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var t;D.subscribedIconOnlyWidth=(t=D.bellButton)==null?void 0:t.getBoundingClientRect().width;requestAnimationFrame(function(){if(D.bellButton){var H;D.bellButton.textLabel=
(H=D.data)==null?void 0:H.subscribedButtonText}})})))};
_.ql.Object.defineProperties(d7.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 D;return(D=this.data)==null?void 0:D.subscribedButtonText}var t;return this.forceIconOnly?void 0:(t=this.data)==null?void 0:t.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var D,t,H=((D=this.data)==null?void 0:(t=D.timedAnimationData)==null?void 0:t.animationTiming)||[];return{uniqueId:"subscribe",timings:H,enabled:H.length>0&&!this.subscribed,experimentEnabled:H.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var D;return!this.subscribed&&((D=this.data)==null?void 0:D.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 D={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var t=D.renderer;var H=D.element;var e=D.subscribed;var V=D.commandController;var b=D.isOverlay;D=D.stopPropagation;var a=cu8(t,e);b&&(a.style="overlay");b=Object;var w=b.assign,h;a:switch((h=t.style)==null?void 0:h.styleType){case "COMPACT_GRAY":case "COMPACT_RED":h={size:"S"};break a;default:h={size:"M"}}var K=TuV(t,
e);var N=(N=e?t.subscribedButtonText:t.unsubscribedButtonText)?_.lf(N):void 0;return w.call(b,{},a,h,{focused:!1,toggled:e,accessibilityLabel:K,formattedButtonText:N,onTap:kDu(t,e,H,V,D)})}}}});
d7.prototype.onMouseDown=d7.prototype.onMouseDown;d7.prototype.onDataChanged=d7.prototype.onDataChanged;d7.prototype.observedSubscribed=d7.prototype.observedSubscribed;d7.prototype.onYtServiceRequestCompleted=d7.prototype.onYtServiceRequestCompleted;d7.prototype.onYtServiceRequestSent=d7.prototype.onYtServiceRequestSent;d7.prototype.maybeUpdateBellButtonText=d7.prototype.maybeUpdateBellButtonText;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],d7.prototype,"ytComponentBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],d7.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],d7.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],d7.prototype,"data",void 0);
_.d([_.M({selectorArgs:["data.subscribedEntityKey"],selector:c4V}),_.x("design:type",Object)],d7.prototype,"subscriptionStateEntity",void 0);_.d([_.M({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.x("design:type",Boolean)],d7.prototype,"subscribed",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],d7.prototype,"branded",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],d7.prototype,"animatedActionEnabled",void 0);
_.d([_.M(),_.x("design:type",Object)],d7.prototype,"foregroundLottieRef",void 0);_.d([_.M(),_.x("design:type",Object)],d7.prototype,"backgroundLottieRef",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],d7.prototype,"overlayButton",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.x("design:type",Object)],d7.prototype,"buttonStyle",void 0);_.d([_.M(),_.x("design:type",Object)],d7.prototype,"forceIconOnly",void 0);
_.d([_.M(),_.x("design:type",Object)],d7.prototype,"showTextWhileAnimating",void 0);_.d([_.M({value:function(){return!!_.qS().resolve(_.by(_.S8))&&_.r("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.x("design:type",Boolean)],d7.prototype,"useKeyboardFocused",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],d7.prototype,"keyboardFocused",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],d7.prototype,"isAnimating",void 0);_.d([_.m("data.notificationPreferenceButton.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],d7.prototype,"hasBellButton",null);
_.d([_.Os("subscribedButtonText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],d7.prototype,"maybeUpdateBellButtonText",null);_.d([_.m("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],d7.prototype,"subscribedButtonText",null);_.d([_.m("data.timedAnimationData.animationTiming","subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],d7.prototype,"smartimationSettings",null);
_.d([_.M({reflectToAttribute:!0}),_.m("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],d7.prototype,"subscribeButtonHidden",null);_.d([_.M({reflectToAttribute:!0}),_.m("subscribed","hasBellButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],d7.prototype,"subscribeButtonInvisible",null);
_.d([_.M({reflectToAttribute:!0}),_.m("subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],d7.prototype,"unsubscribeButtonHidden",null);_.d([_.o5("ytd-subscription-notification-toggle-button-renderer-next"),_.x("design:type",Object)],d7.prototype,"bellButton",void 0);_.d([_.o5("#subscribe-button-shape"),_.x("design:type",HTMLElement)],d7.prototype,"subscribeButtonShape",void 0);
_.d([_.m("overlayButton","subscribed","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],d7.prototype,"buttonShape",null);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],d7.prototype,"onYtServiceRequestSent",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],d7.prototype,"onYtServiceRequestCompleted",null);
_.d([_.Os("subscribed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],d7.prototype,"observedSubscribed",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],d7.prototype,"onDataChanged",null);_.d([_.rx("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],d7.prototype,"onMouseDown",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],d7);
_.p(d7,"ytd-subscribe-button-renderer",function(){if(D6a!==void 0)return D6a;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return D6a=D},{mode:1});var xD=function(){var D=_.X.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.P(xD,_.X);xD.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"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],xD.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],xD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],xD.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],xD.prototype,"isRichGrid",void 0);_.d([_.Y({is:"ytd-game-card-renderer",disableElementRegistration:!0})],xD);
_.p(xD,"ytd-game-card-renderer",function(){if(yu3!==void 0)return yu3;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return yu3=D},{mode:1});var Rw={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.r("defer_menus")&&!gWQ?0:void 0,waitForSignal:"eocs"};var tmn;var Hj3;var uU=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return D};
_.P(uU,_.X);_.q=uU.prototype;_.q.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.q.onSeriesReminderStateEntityChange=function(){var D,t,H;((D=this.eventReminderStateEntity)==null?0:D.key)&&((t=this.seriesReminderStateEntity)==null?void 0:t.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((H=this.eventReminderStateEntity)==null?void 0:H.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.nf("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.q.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.q.onYtServiceRequestError=function(){var D;this.updateReminderStateEntitiesFromButtonState((D=this.data)==null?void 0:D.currentState)};
_.q.handleUpdateUpcomingEventReminderButtonStateCommand=function(D){if(D=_.O(D,fQ6)){var t,H=(t=this.data)==null?void 0:t.targetId;H&&D.targetId===H&&_.BT(this.updateReminderStateEntitiesFromButtonState.bind(this,D.state))}};
_.q.getButtonStateFromReminderState=function(){var D;if(((D=this.seriesReminderStateEntity)==null?void 0:D.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var t;if(((t=this.eventReminderStateEntity)==null?void 0:t.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var H,e;if(((H=this.seriesReminderStateEntity)==null?void 0:H.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((e=this.eventReminderStateEntity)==
null?void 0:e.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var V;return(V=this.data)==null?void 0:V.currentState};
_.q.updateReminderStateEntitiesFromButtonState=function(D){if(D){switch(D){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":D="UPCOMING_EVENT_REMINDER_STATE_NONE";var t="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":D="UPCOMING_EVENT_REMINDER_STATE_SINGLE";t="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":D="UPCOMING_EVENT_REMINDER_STATE_NONE";t="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var H;
((H=this.eventReminderStateEntity)==null?0:H.key)&&this.ytdReduxBehavior.dispatch(_.nf("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:D})));var e;((e=this.seriesReminderStateEntity)==null?0:e.key)&&this.ytdReduxBehavior.dispatch(_.nf("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:t})))}};
_.ql.Object.defineProperties(uU.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var D=this.getButtonStateFromReminderState(),t,H;if(D&&((t=this.data)==null?0:(H=t.states)==null?0:H.length))for(t=_.F(this.data.states),H=t.next();!H.done;H=t.next()){H=H.value;var e=void 0;if(((e=_.O(H,LXo))==null?void 0:e.state)===D)return _.O(H,LXo)}}}});
uU.prototype.onYtServiceRequestError=uU.prototype.onYtServiceRequestError;uU.prototype.onYtServiceRequestCompleted=uU.prototype.onYtServiceRequestCompleted;uU.prototype.onSeriesReminderStateEntityChange=uU.prototype.onSeriesReminderStateEntityChange;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],uU.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],uU.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],uU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],uU.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],uU.prototype,"data",void 0);_.d([_.M({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:$88}),_.x("design:type",Object)],uU.prototype,"eventReminderStateEntity",void 0);
_.d([_.M({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(D,t){return _.jR(D.entities,"sportsSeriesReminderStateEntity",t)}}),
_.x("design:type",Object)],uU.prototype,"seriesReminderStateEntity",void 0);_.d([_.m("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],uU.prototype,"currentButtonStateRenderer",null);_.d([_.Os("seriesReminderStateEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uU.prototype,"onSeriesReminderStateEntityChange",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uU.prototype,"onYtServiceRequestCompleted",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uU.prototype,"onYtServiceRequestError",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],uU);
_.p(uU,"ytd-upcoming-event-reminder-button-renderer",function(){if(Hj3!==void 0)return Hj3;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
return Hj3=D},{mode:1});var e2a;var Wp=function(){return _.X.apply(this,arguments)||this};
_.P(Wp,_.X);Wp.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.ql.Object.defineProperties(Wp.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(_.r("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Wp.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Wp.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Wp.prototype,"shelfDismissal",void 0);_.d([_.m("data.responseText"),_.x("design:type",Object),_.x("design:paramtypes",[])],Wp.prototype,"text",null);
_.d([_.m("data.responseText"),_.x("design:type",Object),_.x("design:paramtypes",[])],Wp.prototype,"textAriaLabel",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Wp);
_.p(Wp,"ytd-notification-multi-action-renderer",function(){if(e2a!==void 0)return e2a;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return e2a=D},{mode:1});var VmQ;var Iw=function(){return _.X.apply(this,arguments)||this};
_.P(Iw,_.X);Iw.prototype.ready=function(){var D=this;_.Kg(this.hostElement).querySelector("#undo").addEventListener("tap",function(){D.onUndoTap()})};
Iw.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.qS().resolve(_.aA).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Iw.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],Iw);
_.p(Iw,"ytd-notification-text-renderer",function(){if(VmQ!==void 0)return VmQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return VmQ=D},{mode:1});var bjo;var QD=function(){var D=_.X.apply(this,arguments)||this;D.mouseOverDelayJobId=0;D.fadeInImageDelayJobId=0;D.startTimeMs=-1;D.loadingStartTimeMs=-1;D.loadingEndTimeMs=-1;D.hasVideoPreview=!1;return D};
_.P(QD,_.X);_.q=QD.prototype;_.q.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.q.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.q.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.q.showThumbnail=function(){var D=this;this.csn=_.v3();_.pl("fmth");_.Jy.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.kX(_.Jy,function(){D.loadingStartTimeMs=(0,_.aP)();var t=_.Kg(D.hostElement).querySelector("#thumbnail");t.complete?D.displayMouseOverImage():t.addEventListener("load",_.iK(D,D.displayMouseOverImage))},150):_.kL(_.Kg(this.hostElement).querySelector("#play"),"show",!0)};
_.q.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.q.onTap=function(){this.removeVideoPreview()};
_.q.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var D=this.videoId,t=this.csn,H=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,e=this.startTimeMs,V=this.hasVideoPreview,b=_.Sa(this.trackingParams),a={isMovingThumbnail:V};V&&e>0&&(H>0&&(a.movingThumbnailLoadingDurationMs=Math.round(H)),a.durationHoveredMs=Math.round((0,_.aP)()-e));D&&(a.videoId=D);_.HH(t,b,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:a});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.q.removeVideoPreview=function(){_.Jy.cancelJob(this.mouseOverDelayJobId);_.Jy.cancelJob(this.fadeInImageDelayJobId);var D=_.Kg(this.hostElement).querySelector("#thumbnail");_.kL(D,"fade-in",!1);D.removeEventListener("load",_.iK(this,this.displayMouseOverImage));D=_.Kg(this.hostElement).querySelector("#play");_.kL(D,"fade-in",!1);_.kL(D,"show",!1)};
_.q.displayMouseOverImage=function(){var D=_.Kg(this.hostElement).querySelector("#thumbnail"),t=_.Kg(this.hostElement).querySelector("#play");this.isImageAvailable(D)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.aP)(),this.startTimeMs=(0,_.aP)(),this.fadeInImageDelayJobId=_.kX(_.Jy,function(){_.kL(D,"fade-in",!0)},50)):_.kL(t,"fade-in",!0)};
_.q.computeThumbnail=function(D,t){var H;D&&D.movingThumbnailDetails&&D.movingThumbnailDetails.thumbnails&&t?H=_.G3(D.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):H=t?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(H)return _.dw(H)};
_.q.isImageAvailable=function(D){return!(!D.src||D.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||D.naturalWidth===120)};
QD.prototype.onTap=QD.prototype.onTap;QD.prototype.dataChanged=QD.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],QD.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],QD.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],QD.prototype,"csn",void 0);_.d([_.M(),_.x("design:type",Object)],QD.prototype,"trackingParams",void 0);
_.d([_.M(),_.x("design:type",String)],QD.prototype,"videoId",void 0);_.d([_.M(),_.x("design:type",Boolean)],QD.prototype,"isAttachedAndDataSet",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QD.prototype,"dataChanged",null);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QD.prototype,"onTap",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],QD);
_.p(QD,"ytd-moving-thumbnail-renderer",function(){if(bjo!==void 0)return bjo;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return bjo=D},{mode:1});var qew;_.Zm=function(D){this.hostElement=D;this.eventSink=null;this.eventList=[]};
_.Zm.prototype.shouldForward=function(){var D,t;return(t=(D=this.eventSink)==null?void 0:D.isConnected)!=null?t:document.body.contains(this.eventSink)};
_.Zm.prototype.start=function(D,t){this.eventSink&&this.stop();for(var H=0;H<D.length;H++)this.hostElement.addEventListener(D[H],_.iK(this,this.forwardEvent));var e;this.eventSink=(e=t.hostElement)!=null?e:t;this.eventList=D};
_.Zm.prototype.stop=function(){for(var D=0;D<this.eventList.length;D++)this.hostElement.removeEventListener(this.eventList[D],_.iK(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.Zm.prototype.forwardEvent=function(D,t){this.shouldForward()&&(D.stopPropagation(),this.eventSink instanceof Element?_.Gf(this.eventSink,D.type,t):_.Yw(new _.nZ("eventSink is not an element")))};_.yD={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.Zm(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(D,t){this.forwarder_.start(D,t)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var Bp=function(){return _.X.apply(this,arguments)||this};
_.P(Bp,_.X);_.q=Bp.prototype;_.q.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=_.YC("HTML_DIR")==="rtl"?"right":"left"};
_.q.dataChanged=function(){this.popupOpen=!1};
_.q.computeAriaLabel=function(D){return _.O(D,FfB).label};
_.q.onTap=function(D){D.stopPropagation();D.preventDefault();this.data.command&&_.qS().resolve(_.aA).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.q.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.q.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
Bp.prototype.onPopupClosed=Bp.prototype.onPopupClosed;Bp.prototype.onPopupOpened=Bp.prototype.onPopupOpened;Bp.prototype.onTap=Bp.prototype.onTap;Bp.prototype.dataChanged=Bp.prototype.dataChanged;_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],Bp.prototype,"eventForwardingBehavior",void 0);_.d([_.C(_.BO),_.x("design:type",Object)],Bp.prototype,"ironButtonState",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Bp.prototype,"componentBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Bp.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:-1}),_.x("design:type",Number)],Bp.prototype,"tabindex",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.x("design:type",Object)],Bp.prototype,"ariaLabel",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Bp.prototype,"disableTooltips",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Bp.prototype,"popupOpen",void 0);
_.d([_.M(),_.x("design:type",Element)],Bp.prototype,"eventSink",void 0);_.d([_.o5("#tooltip"),_.x("design:type",Object)],Bp.prototype,"tooltip",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bp.prototype,"dataChanged",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Bp.prototype,"onTap",null);
_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bp.prototype,"onPopupOpened",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bp.prototype,"onPopupClosed",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],Bp);
_.p(Bp,"ytd-thumbnail-overlay-button-renderer",function(){if(qew!==void 0)return qew;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return qew=D},{mode:1});var F34;var zs=function(){return _.X.apply(this,arguments)||this};
_.P(zs,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],zs.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],zs.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],zs.prototype,"disableAnimation",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],zs.prototype,"rounded",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],zs.prototype,"transparentBackground",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],zs.prototype,"noPadding",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],zs);
_.p(zs,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(F34!==void 0)return F34;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return F34=D},{mode:1});var ae6;var D6=function(){return _.X.apply(this,arguments)||this};
_.P(D6,_.X);D6.prototype.computeIconPosition=function(D){return this.get("iconPosition",D)||null};
D6.prototype.computeIconStyle=function(D){return this.get("iconStyle",D)||null};
D6.prototype.computeIsIconStyleFilled=function(D){if(!D)return!1;var t;return D.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((t=D.icon)==null?void 0:t.iconType)==="ERROR_BLACK"};
_.d([_.M(),_.x("design:type",Object)],D6.prototype,"data",void 0);_.d([_.M({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.x("design:type",Object)],D6.prototype,"iconPosition",void 0);_.d([_.M({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.x("design:type",Object)],D6.prototype,"iconStyle",void 0);_.d([_.M({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],D6.prototype,"iconStyleFilled",void 0);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],D6);
_.p(D6,"ytd-thumbnail-overlay-icon-renderer",function(){if(ae6!==void 0)return ae6;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ae6=D},{mode:1});var wx9;var t9=function(){return _.X.apply(this,arguments)||this};
_.P(t9,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],t9.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],t9);
_.p(t9,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(wx9!==void 0)return wx9;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return wx9=D},{mode:1});var Zj6;var HV=function(){var D=_.X.apply(this,arguments)||this;D.isPreviewLoading=!1;return D};
_.P(HV,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],HV.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],HV.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],HV.prototype,"isPreviewLoading",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],HV);
_.p(HV,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(Zj6!==void 0)return Zj6;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Zj6=D},{mode:1});var sN9;var e_=function(){return _.X.apply(this,arguments)||this};
_.P(e_,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],e_.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],e_);
_.p(e_,"ytd-thumbnail-overlay-pinking-renderer",function(){if(sN9!==void 0)return sN9;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return sN9=D},{mode:1});var h2n;var V1=function(){var D=_.X.apply(this,arguments)||this;D.disableTooltips=!1;D.isLoading=!1;D.useExpandableTooltip=!1;D.toggled=!1;D.hovered=!1;D.mouseoverDelayJobId=0;D.toggleDelayJobId=0;D.expandAnimationDelayJobId=0;return D};
_.P(V1,_.X);_.q=V1.prototype;_.q.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");_.Kg(this.hostElement).querySelector("#tooltip").position=_.YC("HTML_DIR")==="rtl"?"right":"left"};
_.q.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Jy.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Jy.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Jy.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.q.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Jy.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Jy.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Jy.cancelJob(this.expandAnimationDelayJobId)};
_.q.computeIcon=function(D,t,H){return(D=H?t:D)&&D.iconType?_.cc(D.iconType):void 0};
_.q.computeAriaLabel=function(D,t,H){return _.O(H?t:D,FfB).label};
_.q.computeTooltip=function(D,t,H){return H?t:D};
_.q.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.q.computeIconOnHover=function(D,t){if((D==null?0:D.iconType)&&!t)return _.cc(D.iconType)};
_.q.onTap=function(D){var t=this;D.stopPropagation();D.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(D=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(D),this.useExpandableTooltip&&(this.toggleDelayJobId=_.kX(_.Jy,function(){t.hovered=!1;t.data&&!t.data.toggledServiceEndpoint&&(t.expandAnimationDelayJobId=_.kX(_.Jy,function(){t.set("data.isToggled",
!1)},200))},2E3))};
_.q.onMouseenter=function(){var D=this;this.mouseoverDelayJobId=_.kX(_.Jy,function(){D.hovered=!0},300)};
_.q.onMouseleave=function(){_.Jy.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.q.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.q.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.q.onServiceRequestCompleted=function(D,t){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(t)||this.set("data.isToggled",!this.data.isToggled)};
_.q.serviceRequestWasSuccessful=function(D){return _.O(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.b2)?D.data.status==="STATUS_SUCCEEDED":!0};
V1.prototype.onServiceRequestCompleted=V1.prototype.onServiceRequestCompleted;V1.prototype.onPopupClosed=V1.prototype.onPopupClosed;V1.prototype.onPopupOpened=V1.prototype.onPopupOpened;V1.prototype.onMouseleave=V1.prototype.onMouseleave;V1.prototype.dataChanged=V1.prototype.dataChanged;_.d([_.C(_.BO),_.x("design:type",Object)],V1.prototype,"ironButtonState",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],V1.prototype,"ytComponentBehavior",void 0);
_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],V1.prototype,"ytEventForwardingBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],V1.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.x("design:type",Object)],V1.prototype,"ariaLabel",void 0);_.d([_.M(),_.x("design:type",Object)],V1.prototype,"disableTooltips",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],V1.prototype,"popupOpen",void 0);_.d([_.M(),_.x("design:type",Object)],V1.prototype,"isLoading",void 0);_.d([_.M(),_.x("design:type",Element)],V1.prototype,"eventSink",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],V1.prototype,"useExpandableTooltip",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.x("design:type",Object)],V1.prototype,"toggled",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],V1.prototype,"hovered",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.x("design:type",Object)],V1.prototype,"iconOnHover",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],V1.prototype,"dataChanged",null);
_.d([_.rx("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],V1.prototype,"onMouseleave",null);_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],V1.prototype,"onPopupOpened",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],V1.prototype,"onPopupClosed",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],V1.prototype,"onServiceRequestCompleted",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],V1);
_.p(V1,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(h2n!==void 0)return h2n;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return h2n=D},{mode:_.Kz("kevlar_poly_si_batch_j053")?1:2});var Gon;var EH6=_.l(function(D){var t=D.data;var H=D.thumbnailSize;var e=function(){return t().enableSegmentView};
return _.G("yt-thumbnail-overlay-progress-bar-view-model",{class:_.jQ("ytThumbnailOverlayProgressBarHost",function(){return jGk(H==null?void 0:H())})},_.G(_.E,{cond:e,
then:function(){return _.G("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.G("div",{class:_.ff("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+t().startPercent+"%"}}),_.G("div",{class:_.ff("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+t().segmentDurationPercent+"%"}},_.G("div",{class:_.ff("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.G("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.G("div",null," ",function(){return t().segmentLabel})),_.G("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.G("div",{class:_.ff("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.G(_.E,{cond:function(){return!e()&&t().startPercent},
then:function(){var V={};return _.G("div",{class:_.ff("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(V.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.r("web_enable_modern_progress_bar_overlay"),V))},_.G("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+t().startPercent+"%"}}))}}))},"xa");
EH6.idomCompat=!0;var K3f=_.l(function(D){var t=_.c5(),H=_.dm(function(V){var b,a,w;a:{var h=(b=D.data())==null?void 0:b.animationActivationTargetId;b=((a=D.data())==null?void 0:a.animationActivationEntityKey)||"";a=(w=D.data())==null?void 0:w.animationActivationEntitySelectorType;if(b&&h)switch(a){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":V=KQ3(V,b);w=_.qS().resolve(_.by(_.dL));h=!!(V&&V.videoId===h&&(w==null?0:w.isMiniplayerActive()));h={activated:h,playAnimation:h&&V.playerState==="PLAYER_STATE_PLAYING"};
break a}h=void 0}return h});
_.Mp(function(){var V;if((V=H())==null?0:V.activated){var b;if((b=H())==null?0:b.playAnimation){var a;(a=t.lottieEl)==null||a.goToAndPlay(0)}else{var w;(w=t.lottieEl)==null||w.goToAndStop(0)}}},"DbQiXd");
var e=function(){var V,b=!((V=H())==null||!V.activated);if(D.data()){V=D.data();var a=void 0;V.icon&&(a=_.ByT(V.icon),a=bO$(a));var w=void 0,h;if((h=V.backgroundColor)==null?0:h.lightTheme){var K;w={backgroundColor:yk((K=V.backgroundColor)==null?void 0:K.lightTheme,"0.8")}}if(V.text||a||b){if(b&&V.lottieData&&t){K=V.lottieData;var N,k,T;h={animationConfig:{name:K.url,path:K.url,autoplay:(N=K.settings)==null?void 0:N.autoplay,loop:(T=(k=K.settings)==null?void 0:k.loop)!=null?T:!0},animationRef:t}}else h=
void 0;if(b)N=17;else b:switch(V.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":N=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":N=19;break b;default:N=17}b={type:N,text:b&&V.animatedText?V.animatedText:V.text,icon:a,customColors:w,animation:h}}else b=void 0}else b=void 0;return b};
return _.G("yt-thumbnail-badge-view-model",{class:_.jQ("ytThumbnailBadgeViewModelHost",D.class)},_.G(_.E,{cond:e,then:function(){return _.G(_.hr,{data:function(){return e()}})}}))},"za");var NRf=_.l(function(D){var t={},H={};return _.G("yt-thumbnail-bottom-overlay-view-model",{class:_.jQ("ytThumbnailBottomOverlayViewModelHost",(t.ytThumbnailBottomOverlayViewModelHostBackground=function(){return D.data().enableGradientBackground},t))},_.G(_.P5,{data:function(){return D.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(e){return _.G(EH6,{data:e.data,
thumbnailSize:D.thumbnailSize})}}),_.G("div",{class:_.jQ("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var e;
return $9A((e=D.thumbnailSize)==null?void 0:e.call(D))},(H.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var e;
return(e=D.isClip)==null?void 0:e.call(D)},H.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var e;
return!_.r("web_enable_modern_progress_bar_overlay")&&((e=D.thumbnailSize)==null?void 0:e.call(D))==="small"},H))},_.G(_.P5,{data:function(){return D.data().badge}},{thumbnailBadgeViewModel:function(e){return _.G(K3f,{data:e.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.G(_.P5,{data:function(){return D.data().badges}},{thumbnailBadgeViewModel:function(e){return _.G(K3f,{data:e.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Aa");
NRf.idomCompat=!0;_.hB(NRf,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.wm,thumbnailSize:_.wm,isClip:_.wm}});var MI8={calledOnce:!1,state:"visible"},SSX={calledOnce:!1,state:"hidden"};var b4=_.l(function(D){var t=D.data;var H=D.className;D=D.alwaysShow;var e=_.O4$(),V={};return _.G("thumbnail-hover-overlay-view-model",{el:_.FI(_.Yi(function(){return t().rendererContext})),
class:_.jQ("ytThumbnailHoverOverlayViewModelHost",H,(V.ytThumbnailHoverOverlayViewModelHostForceHover=D,V)),"aria-label":function(){var b;return(b=_.O(t().rendererContext,_.Pm))==null?void 0:b.label},
role:function(){return _.gF(t().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.gF(t().rendererContext)!==void 0?0:void 0},
"on:keypress":e},_.G("div",{class:_.jQ("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(t().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var b="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:b="ytThumbnailHoverOverlayViewModelStyleCover"}return b})},_.G(_.E,{cond:function(){return t().icon},
then:function(b){return _.G(_.bi,{data:b,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.G(_.E,{cond:function(){return t().text},
then:function(b){return _.G(_.$7,{text:b,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ca");
b4.idomCompat=!0;var koo=_.l(function(D){var t=D.data;return _.G(_.P5,{data:function(){return t==null?void 0:t().overlays}},{thumbnailHoverOverlayViewModel:b4})},"Da");
koo.idomCompat=!0;var TRQ={};var cQ6=_.l(function(D){var t=D.data;var H=D.image;var e=D.state;var V=D.iconType;var b=D.overlays;var a=D.isOverlay;var w=_.ep("div");D=_.F(_.KR(!0,void 0,"AA4e7b"));var h=D.next().value,K=D.next().value,N=function(){return!!t().onTap},k=_.qT(V,"LIVE");
_.Mp(function(){var c=t();requestAnimationFrame(function(){if(w.value===null)var U=!0;else{var S=w.value;U=c.badgeText;var L=L_u(c.size);U in TRQ?S=TRQ[U]:(S=S.clientWidth,TRQ[U]=S);(U=S>L)?w.value.style.display="none":w.value.style.visibility="visible"}K(U)})},"vNdN8b");
var T=function(){var c={};return c["yt-spec-avatar-shape__image"]=!0,c["yt-spec-avatar-shape__image--ads-app"]=t().type===1,c["yt-spec-avatar-shape__image--inscribed-square"]=t().type===2,c};
return _.G("yt-avatar-shape",null,_.G("div",{el:_.FI(g_X(N,{keydown:function(c){if(c.key==="Enter"){var U;(U=c.currentTarget)==null||U.click()}},
click:function(c){var U,S;return void((S=(U=t()).onTap)==null?void 0:S.call(U,c))}})),
class:function(){var c={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},U=t();c=(c[U.clusterLayoutConfig?lR$(U.clusterLayoutConfig):v_V(U.size)]=!0,c["yt-spec-avatar-shape__button--tappable"]=N(),c);(U=t().avatarButtonCustomClassName)&&(c[U]=!0);return _.ff(c)},
"aria-label":function(){return N()?t().accessibilityText:""},
role:function(){return N()?"button":void 0},
tabindex:function(){return N()?0:void 0}},_.G("div",{class:function(){var c,U=t(),S=e==null?void 0:e(),L=a==null?void 0:a(),J=!((c=U.decorations)==null||!c.includes(2)||U.size!=="medium"&&U.size!=="large"),g=U.size==="tiny"||U.size==="extra-small",Q,u,R,I,tT={};
c=(tT["yt-spec-avatar-shape--live-ring"]=!!(((Q=U.decorations)==null?0:Q.includes(0))&&d9K(U.size)),tT["yt-spec-avatar-shape--stories-watched"]=J&&!(S==null||!S.storiesWatched),tT["yt-spec-avatar-shape--stories-unwatched"]=J&&!(S==null?0:S.storiesWatched),tT["yt-spec-avatar-shape--background-border"]=x9A(U.decorations)&&!g,tT["yt-spec-avatar-shape--background-border-thin"]=x9A(U.decorations)&&g,tT["yt-spec-avatar-shape__on-select-border"]=!((u=U.decorations)==null||!u.includes(4)),tT["yt-spec-avatar-shape__white-border"]=
!((R=U.decorations)==null||!R.includes(5)),tT["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((I=U.decorations)==null?0:I.includes(5))&&g),tT["yt-spec-avatar-shape--is-overlay"]=!!L,tT);return _.ff(c)},
style:function(){a:{var c=t().clusterLayoutConfig;if(c){b:{var U=c.numAvatarsInCluster;var S=c.avatarIndex;if(S!==U-1){switch(c.clusterSize){case "small":c="32";break;case "medium":c="36";break;case "40":c="40";break;default:U=void 0;break b}U="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+c+"x"+c+"_avatars_"+U+"_index_"+S+".svg"}else U=void 0}if(U){U=_.O7({"-webkit-mask-image":"url("+U+")","mask-image":"url("+U+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}U=void 0}return U}},_.G("div",{class:function(){var c={};
var U=t();c=(c[U.clusterLayoutConfig?Ju8(U.clusterLayoutConfig):YSV(U.size)]=!0,c["yt-spec-avatar-shape--no-margin"]=x9A(t().decorations),c["yt-spec-avatar-shape--square"]=t().type===2,c);return _.ff(c)}},_.G(_.bi,{data:H,
alt:function(){return!N()&&t().accessibilityText?t().accessibilityText:""},
targetWidth:function(){return pLA(t().size)},
targetHeight:function(){return pLA(t().size)},
className:function(){return _.ff(T())}}),_.G(_.E,{cond:function(){var c;
return((c=t().decorations)==null?void 0:c.includes(0))&&d9K(t().size)},
then:function(){return _.G("div",{class:function(){var c={};c=(c["yt-spec-avatar-shape__live-badge"]=!0,c["yt-spec-avatar-shape__live-badge--badge-small"]=t().size==="small",c["yt-spec-avatar-shape__live-badge--badge-medium"]=t().size==="medium"||t().size==="48",c["yt-spec-avatar-shape__live-badge--badge-large"]=t().size==="large",c["yt-spec-avatar-shape__live-badge--badge-extra-large"]=t().size==="extra-large"||t().size==="extra-extra-large"||t().size==="giant",c);return _.ff(c)}},_.G(_.E,{cond:function(){return t().badgeText},
then:function(c){return _.G("div",{class:"yt-spec-avatar-shape__badge-text",el:w},c)}}),_.G(_.E,{cond:h,
then:function(){return _.G("div",{class:"yt-spec-avatar-shape__badge-icon"},_.G(_.U7,{icon:k,size:function(){a:switch(t().size){case "extra-large":var c=16;break a;default:c=13}return c}}))}}))}}),_.G(_.E,{cond:function(){var c,U;
return((c=t().decorations)==null?void 0:c.includes(1))||((U=t().decorations)==null?void 0:U.includes(0))&&!d9K(t().size)},
then:function(){return _.G("div",{class:function(){var c=t(),U,S,L={};var J=(L["yt-spec-avatar-shape__live-dot"]=!((U=c.decorations)==null||!U.includes(0)||d9K(c.size)),L["yt-spec-avatar-shape__new-content"]=!((S=c.decorations)==null||!S.includes(1)),L);return _.ff(J)}})}}),_.G(_.E,{cond:function(){return!!b},
then:function(){return _.G("div",{class:function(){var c={};c=Object.assign((c["yt-spec-avatar-shape__image-overlays"]=!0,c),T());return _.ff(c)}},b==null?void 0:b())}})))))},"Ga");
cQ6.idomCompat={callbacks:{overlays:!0}};_.qi=_.l(function(D){function t(){H().endpoint&&_.IQ(H().endpoint)}
var H=D.data;var e=D.decorations;var V=D.avatarButtonCustomClassName;var b=D.isOverlay;var a=D.clusterLayoutConfig;return _.G("avatar-view-model",null,_.G(_.E,{cond:function(){return H().image},
then:function(w){return _.G(cQ6,{data:function(){return uV6({data:H(),onTap:H().endpoint?t:void 0,decorations:e==null?void 0:e(),badgeText:void 0,accessibilityText:H().accessibilityText,avatarButtonCustomClassName:V==null?void 0:V(),clusterLayoutConfig:a==null?void 0:a()})},
image:w,iconType:"RADAR_LIVE",overlays:function(){return _.G(koo,{data:H})},
isOverlay:b})}}))},"Ha");
_.qi.idomCompat=!0;_.Fo=_.l(function(D){var t=D.data;D=D.className;var H=_.ep("yt-decorated-avatar-view-model"),e=function(){return _.O(t().avatar,_.lO)},V=_.jj(function(){var b,a=t(),w=e(),h=_.gF(t().rendererContext),K=(b=H.value)!=null?b:void 0,N;
if(w){K={data:a,avatar:w,onTap:h,element:K};b=K.data;a=K.avatar;w=K.onTap;h=K.element;K=K.commandController;w=w?yuT(w,h,K):void 0;h=[];b.liveData&&h.push(0);var k;K=(k=b.liveData)==null?void 0:k.liveBadgeText;k=(N=_.O(b.rendererContext,_.Pm))==null?void 0:N.label;N=uV6({data:a,onTap:w,decorations:h,badgeText:K,accessibilityText:k?k:b.a11yLabel})}else N={size:"medium"};return N},void 0,"c00kWd");
return _.G("yt-decorated-avatar-view-model",{class:_.jQ("ytDecoratedAvatarViewModelHost",D),el:H},_.G(_.E,{cond:function(){var b;return(b=e())==null?void 0:b.image},
then:function(b){return _.G(cQ6,{data:V,image:b,iconType:"RADAR_LIVE",overlays:function(){return _.G(koo,{data:e})}})}}))},"Ia");
_.Fo.idomCompat=!0;_.ag=_.l(function(D){var t=function(){var w;return Object.assign({},D.data(),(w=D.overrides)==null?void 0:w.call(D))},H=function(){return _.J5(t().rendererContext)},e=function(){var w=t().avatars,h,K;
return(K=(h=(w==null?0:w[0])?_.O(w[0],_.lO):void 0)==null?void 0:h.avatarImageSize)!=null?K:"AVATAR_SIZE_UNKNOWN"},V=function(){return QGk(t())},b=function(){if(t().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var w=void 0;
else if((w=D.decorations)==null?0:w.call(D))w=D.decorations();else{w=t();var h=0;w.avatars&&(h+=w.avatars.length);w.decoratedText&&(h+=1);w=h>1?[3]:[]}return w},a={};
return _.G("yt-avatar-stack-view-model",{el:_.FI(_.Yi(function(){return t().rendererContext})),
class:_.jQ("yt-avatar-stack-view-model",D.className,(a["yt-avatar-stack-view-model--tappable"]=H,a["yt-avatar-stack-view-model--is-overlay"]=D.isOverlay,a["yt-avatar-stack-view-model--medium-text"]=D.useMediumText,a)),tabindex:function(){return H()?0:void 0},
role:function(){return H()?"link":void 0},
"aria-label":function(){var w,h;return(h=(w=_.O(t().rendererContext,_.Pm))==null?void 0:w.label)!=null?h:""}},_.G(_.E,{cond:function(){var w;
return t().avatars&&!((w=D.hideAvatar)==null?0:w.call(D))},
then:function(){return _.G("div",{class:"yt-avatar-stack-view-model__avatars"},_.G(_.E,{cond:function(){return t().decoratedText},
then:function(w){var h={};return _.G("div",{class:_.jQ("yt-avatar-stack-view-model__text-container",(h["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return e()==="AVATAR_SIZE_XXS"||e()==="AVATAR_SIZE_XS"},h["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var K;
return((K=D.isOverlay)==null?void 0:K.call(D))&&(e()==="AVATAR_SIZE_XXS"||e()==="AVATAR_SIZE_XS")},h)),
style:_.O7({width:function(){return V().avatarSizeInPx+"px"},
height:function(){return V().avatarSizeInPx+"px"}})},_.G(_.$7,{text:w,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.G("div",{style:function(){return _.O7(V().avatarStackStyle)()},
class:function(){return V().avatarStackClass}},_.G(_.P5,{data:function(){return V().avatars.reverse()}},{avatarViewModel:function(w,h){return _.G("div",{style:function(){var K,N;
return _.O7((N=(K=V()).avatarStyle)==null?void 0:N.call(K,h()))()},
class:function(){return V().avatarClass}},_.G(_.qi,{data:w.data,
decorations:b,avatarButtonCustomClassName:function(){return V().avatarButtonCustomClassName},
isOverlay:D.isOverlay,clusterLayoutConfig:function(){var K,N;return(N=(K=V()).clusterLayoutConfig)==null?void 0:N.call(K,h())}}))},
decoratedAvatarViewModel:function(w,h){return _.G("div",{style:function(){var K,N;return _.O7((N=(K=V()).avatarStyle)==null?void 0:N.call(K,h()))()},
class:function(){return V().avatarClass}},_.G(_.Fo,{data:w.data}))}})))}}),_.G(_.E,{cond:function(){return t().text},
then:function(w){return _.G(_.$7,{text:w,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Ja");
_.ag.idomCompat=!0;_.hB(_.l(function(D){var t=D.data;var H=D.thumbnailSize;return _.G("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.G("div",{class:_.jQ("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return BuA(H==null?void 0:H())})},_.G(_.P5,{data:function(){return t().avatarStack}},{avatarStackViewModel:function(e){return _.G(_.ag,{data:e.data,
decorations:[5]})}})))},"Ka"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.ij,
thumbnailSize:_.ij}});var jNV=_.l(function(D){D=_.FQ(D,{hidden:!1});var t=D.data;return _.G("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:D.hidden},_.G(_.$7,{text:function(){return t().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.G(_.E,{cond:function(){return t().subtitle},
then:function(){return _.G(_.$7,{text:function(){return t().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"La");
jNV.idomCompat=!0;_.hB(jNV,"yt-thumbnail-overlay-title-view-model",{props:{data:_.ij,hidden:_.ij}});var $66=_.l(function(D){D=_.FQ(D,{isClip:!1});var t=D.data,H=D.thumbnailSize,e={};return _.G("yt-thumbnail-overlay-badge-view-model",{class:_.jQ("yt-thumbnail-overlay-badge-view-model",function(){a:switch(t().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var V="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:V="yt-thumbnail-overlay-badge-view-model--bottom-end"}return V},function(){return zOD(H==null?void 0:H())},(e["yt-thumbnail-overlay-badge-view-model--clip"]=D.isClip,
e))},_.G(_.P5,{data:function(){return t().thumbnailBadges}},{thumbnailBadgeViewModel:function(V){return _.G(K3f,{data:V.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ma");
$66.idomCompat=!0;_.hB($66,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.ij,thumbnailSize:_.ij,isClip:_.ij}});var ijB=_.l(function(D){var t=D.data;D=D.hidden;var H=_.jj(function(){return t().indicatorCount||0},void 0,"AbKnMc"),e={};
return _.G("yt-page-indicator-view-model",{class:_.jQ("ytPageIndicatorViewModelHost",(e.ytPageIndicatorViewModelIndicatorHidden=function(){return!t().indicatorCount},e)),
hidden:D},_.G(_.nY,{each:function(){return Array(H())}},function(V,b){var a={};
return _.G("div",{class:_.jQ("ytPageIndicatorViewModelIndicator",(a.ytPageIndicatorViewModelIndicatorSelected=function(){return t().selectedIndex===b()},a))})}))},"Na");
ijB.idomCompat=!0;_.hB(ijB,"yt-page-indicator-view-model",{props:{data:_.ij,hidden:_.ij}});var wd=function(){var D=_.X.apply(this,arguments)||this;D.eventSink=function(){return D};
D.disableInteraction=!1;D.noRoundedCorners=!1;D.isPreviewLoading=!1;D.isOriginalAspectRatio=!1;D.computedObjectFit=!1;D.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return D};
_.P(wd,_.X);_.q=wd.prototype;
_.q.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:_.r("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"}}};
_.q.onImageLoaded=function(){this.loaded=!0};
_.q.onImageUnloaded=function(){this.loaded=!1};
_.q.computeRichThumbnail=function(D,t,H,e){if(D&&t&&!e&&!_.r("disable_moving_thumbs_handling")&&!H)return t};
_.q.computeImageWidth=function(D,t){return t||9999};
_.q.computeIsOriginalAspectRatio=function(D){return D};
_.q.computeIsLive=function(D){if(D==null?0:D.badges)for(var t=0;t<D.badges.length;t++){var H=D.badges[t];if(H.metadataBadgeRenderer&&H.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(D==null?0:D.thumbnailOverlays)for(t=0;t<D.thumbnailOverlays.length;t++)if(H=D.thumbnailOverlays[t],H.thumbnailOverlayTimeStatusRenderer&&H.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.q.computeObjectFit=function(D,t){return t||(D?"CONTAIN":"")};
_.q.computeNavigationEndpoint=function(D,t,H){return D?t:H};
_.q.computeHasClip=function(D){D=_.F(D||[]);for(var t=D.next();!t.done;t=D.next())if(t.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.q.computeOverlayColor=function(D){var t;return(D==null?0:(t=D.darkColorPalette)==null?0:t.section2Color)?D.darkColorPalette.section2Color:D==null?void 0:D.sampledThumbnailColor};
_.ql.Object.defineProperties(wd.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return OD8(this.width)}}});
wd.prototype.onImageUnloaded=wd.prototype.onImageUnloaded;wd.prototype.onImageLoaded=wd.prototype.onImageLoaded;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],wd.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],wd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(zua),_.x("design:type",Object)],wd.prototype,"ytdThumbnailBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],wd.prototype,"componentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],wd.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],wd.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],wd.prototype,"circular",void 0);
_.d([_.M({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.x("design:type",Object)],wd.prototype,"richThumbnail",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.x("design:type",Boolean)],wd.prototype,"hasClip",void 0);_.d([_.M(),_.x("design:type",Object)],wd.prototype,"eventSink",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],wd.prototype,"queued",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],wd.prototype,"richGridThumbnail",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],wd.prototype,"useExpandableTooltip",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],wd.prototype,"useUntranslatedNavigationEndpoint",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],wd.prototype,"disableInteraction",void 0);
_.d([_.M({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.x("design:type",Object)],wd.prototype,"computedNavigationEndpoint",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],wd.prototype,"nowPlayingEqualizerOnly",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],wd.prototype,"hidePlaybackStatus",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],wd.prototype,"objectFit",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],wd.prototype,"noRoundedCorners",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],wd.prototype,"watchFeedThumbnail",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],wd.prototype,"isPreviewLoading",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.x("design:type",Object)],wd.prototype,"isOriginalAspectRatio",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.x("design:type",Object)],wd.prototype,"computedObjectFit",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.x("design:type",Boolean)],wd.prototype,"isLiveVideo",void 0);
_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],wd.prototype,"loaded",void 0);_.d([_.M({computed:"computeOverlayColor(data.thumbnail)"}),_.x("design:type",Object)],wd.prototype,"overlayColor",void 0);_.d([_.M({selector:_.jmX}),_.x("design:type",Boolean)],wd.prototype,"inlinePreviewIsEnabled",void 0);_.d([_.M(),_.x("design:type",Number)],wd.prototype,"width",void 0);
_.d([_.m("inlinePreviewIsEnabled"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],wd.prototype,"isPreviewDisabled",null);_.d([_.m("width"),_.x("design:type",String),_.x("design:paramtypes",[])],wd.prototype,"thumbnailSize",null);_.d([_.rx("image-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wd.prototype,"onImageLoaded",null);
_.d([_.rx("image-unloaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wd.prototype,"onImageUnloaded",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-thumbnail"})],wd);
var rQf=_.E_()(wd,"ytd-thumbnail",function(){if(Gon===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);Gon=D}D=Gon;return D},{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 HjT=function(D){var t=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14923_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14923_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(H){Oj3(t,H)};
this.onLockupMouseLeaveFn=function(H){H=H.relatedTarget;var e,V;((e=document.getElementsByTagName("ytd-video-preview"))==null?0:(V=e.item(0))==null?0:V.contains(H))||(t.terminateVideoPreview(),Z6(t))};
this.onThumbnailMouseDownFn=function(){t.terminateVideoPreview();Z6(t)};
this.onTouchStart=function(){t.JSC$14923_touched=!0};
this.mediaRenderer=D.mediaRenderer;this.thumbnailElement=D.thumbnailElement;this.lockupElement=D.lockupElement;this.videoPreviewOptsInput=D.videoPreviewOpts;U6B(this);sv(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)):
_.Yw(Error("Kh")):_.Yw(Error("Lh")):oH9(this)},t8=function(D){oH9(D);
var t;(t=D.lockupElement)==null||t.removeEventListener("mouseenter",D.onMouseMoveFn);var H;(H=D.lockupElement)==null||H.removeEventListener("mouseleave",D.onLockupMouseLeaveFn);var e;(e=D.lockupElement)==null||e.removeEventListener("touchstart",D.onTouchStart);var V;(V=D.thumbnailElement)==null||V.removeEventListener("mousedown",D.onThumbnailMouseDownFn);Z6(D)},U6B=function(D){D.inlinePreviewIsEnabledForUser=_.b_().getState().ui.inlinePreviewIsEnabled;
D.unsubscribeFromInlinePreviewIsEnabled=_.Rj(_.b_(),_.jmX,function(t){(D.inlinePreviewIsEnabledForUser=t)||Z6(D)});
D.JSC$14923_unsubscribeFromInlinePreviewIsActive=_.Rj(_.b_(),_.cUV,function(t){(D.inlinePreviewIsActive=t)||Z6(D)})},oH9=function(D){D.unsubscribeFromInlinePreviewIsEnabled();
D.unsubscribeFromInlinePreviewIsEnabled=function(){};
D.JSC$14923_unsubscribeFromInlinePreviewIsActive();D.JSC$14923_unsubscribeFromInlinePreviewIsActive=function(){}},Oj3=function(D,t){t.buttons>0||(t=_.ZU("kevlar_lockup_hover_delay",-1),D.JSC$14923_touched&&t>=0?(_.Jy.cancelJob(D.videoPreviewJobId),D.videoPreviewJobId=_.kX(_.Jy,function(){P0Q(D)},t),D.JSC$14923_touched=!1):P0Q(D))},ldV=function(D){D.videoPreviewJobId=_.kX(_.Jy,function(){return _.Z(function(t){return t.yield(nHa(D,{isAutoplay:!0}),0)})})},P0Q=function(D){!D.previewTriggered&&sv(D)&&
(D.inlinePreviewIsActive&&D.terminateVideoPreview(),D.previewTriggered=!0,D.mediaRenderer.isInlinePreviewTriggered=!0,_.Jy.cancelJob(D.videoPreviewJobId),D.videoPreviewJobId=_.kX(_.Jy,function(){return _.Z(function(t){return t.yield(nHa(D),0)})}))},nHa=function(D,t){t=t===void 0?{}:t;
var H=t.isAutoplay===void 0?!1:t.isAutoplay;var e,V,b,a;return _.Z(function(w){if(w.nextAddress==1){if(!sv(D))return w.return();e=D.getVideoPreviewOpts();if(!e)return w.return();H&&(e.isAutoplay=!0);return(b=(V=_.Kl(D.mediaRenderer.hostElement,"yt-open-video-preview-action",[e]))&&V[0])?w.yield(V[0],3):w.jumpTo(2)}w.nextAddress!=2&&(b=w.yieldResult===1);if(b){var h=(a=D.mediaRenderer)==null?void 0:a.data;h&&(tmR(h)?delete h.inlinePlayerData:"inlinePlaybackEndpoint"in h&&delete h.inlinePlaybackEndpoint)}_.n2(w)})};
HjT.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var D,t;if((t=(D=this.videoPreviewOptsInput)==null?void 0:D.videoPreviewData)!=null)D=t;else if(D=this.mediaRenderer.data)if(tmR(D))D={inlinePlaybackEndpoint:_.xP(D.inlinePlayerData.onVisible),navigationEndpoint:_.xP(D.onTap),thumbnail:"image"in D?D.image:D.thumbnail,thumbnailOverlays:void 0,accessibilityText:D68(D)};else if("multipleInlinePlaybackEndpoint"in D){var H=_.O(_.O(D.multipleInlinePlaybackEndpoint,$M4),ivf);if(H!=
null&&H.playerDescriptors){t=[];H=_.F(H.playerDescriptors);for(var e=H.next();!e.done;e=H.next())e=e.value,t.push({inlinePlaybackEndpoint:e.inlinePlaybackEndpoint,navigationEndpoint:e.navigationEndpoint,thumbnail:e.thumbnail,thumbnailOverlays:e.thumbnailOverlays,accessibilityText:D68(D)});D=t}else D=void 0}else D={inlinePlaybackEndpoint:D.inlinePlaybackEndpoint,navigationEndpoint:D.navigationEndpoint,thumbnail:D.thumbnail,thumbnailOverlays:D.thumbnailOverlays,accessibilityText:D68(D)};else D=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:D,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var sv=function(D){var t;if(t=D.inlinePreviewIsEnabledForUser)t=(D=D.mediaRenderer.data)?"inlinePlaybackEndpoint"in D&&D.inlinePlaybackEndpoint||tmR(D)&&D.inlinePlayerData||"multipleInlinePlaybackEndpoint"in D&&D.multipleInlinePlaybackEndpoint?!0:!1:!1;return t};
HjT.prototype.terminateVideoPreview=function(){_.ET(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Z6=function(D){_.Jy.cancelJob(D.videoPreviewJobId);D.inlinePreviewIsActive=!1;D.previewTriggered=!1;D.mediaRenderer.isInlinePreviewTriggered=!1};var C0a=_.zk(["#"]),h9=function(){var D=_.X.apply(this,arguments)||this;D.isDisabled=!1;return D};
_.P(h9,_.X);_.q=h9.prototype;_.q.configureRendererStamper=function(){return{"data.menu":Rw,"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"}}}};
_.q.attached=function(){this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.getMetadata=function(D){var t=[];if(D.metadataText&&Object.keys(D.metadataText).length>0){var H=this.ytRendererBehavior.getSimpleString(D.metadataText);D.upcomingEventData&&D.upcomingEventData.upcomingEventText&&(H=_.Sd(H,Number(D.upcomingEventData.startTime)));t.push(H)}else D.shortViewCountText&&t.push(this.ytRendererBehavior.getSimpleString(D.shortViewCountText)),D.publishedTimeText&&t.push(this.ytRendererBehavior.getSimpleString(D.publishedTimeText)),D.upcomingEventData&&D.upcomingEventData.upcomingEventText&&
(H=this.ytRendererBehavior.getSimpleString(D.upcomingEventData.upcomingEventText),t.push(_.Sd(H,Number(D.upcomingEventData.startTime))));return t};
_.q.calculateBylineText=function(D){return D.shortBylineText?D.shortBylineText:D.bylineText?D.bylineText:null};
_.q.calculateIsDisabled=function(D){return!!D.isDisabled};
_.q.computeHrefWithDefault=function(D){return this.ytComponentBehavior.computeHref_(D)||_.qk6(C0a)};
_.q.onDetailsTap=function(D){var t=this.data&&this.data.navigationEndpoint;t&&!_.ed(_.bK(D)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.r("kevlar_grid_video_renderer_killswitch")?_.Gf(this.hostElement,"yt-navigate",{endpoint:t}):this.ytComponentBehavior.resolveCommand(t))};
_.q.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14930_inlinePreviewHoverListener=v5({mediaRenderer:this,lockupElement:_.Kg(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Kg(this.hostElement).querySelector("ytd-thumbnail")})};
_.q.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$14930_inlinePreviewHoverListener)==null||t8(D)};
_.q.computeThumbnailWidth=function(D,t){return t&&t>0?t:D?360:210};
_.q.computeNumBadgesInRow=function(D){var t;return((t=D.badges)==null?void 0:t.length)||0};
_.q.computeShowChannelThumbnail=function(D,t){var H;return t&&!!(D==null?0:(H=D.channelThumbnailSupportedRenderers)==null?0:H.channelThumbnailWithLinkRenderer)};
_.ql.Object.defineProperties(h9.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$14930_inlinePreviewHoverListener)==null?0:sv(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
h9.prototype.dataChanged=h9.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],h9.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],h9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],h9.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.C(_.jL),_.x("design:type",Object)],h9.prototype,"ytdLockupBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],h9.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],h9.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],h9.prototype,"noEndpoints",void 0);_.d([_.M({computed:"calculateBylineText(data)"}),_.x("design:type",Object)],h9.prototype,"bylineText",void 0);
_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],h9.prototype,"isSearch",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],h9.prototype,"isDownloading",void 0);_.d([_.M({reflectToAttribute:!0,value:0}),_.x("design:type",Number)],h9.prototype,"width",void 0);_.d([_.M({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.x("design:type",Object)],h9.prototype,"isDisabled",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],h9.prototype,"dataChanged",null);_.d([_.m("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],h9.prototype,"isHovered",null);_.d([_.Y({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],h9);
_.p(h9,"ytd-grid-video-renderer",function(){if(tmn!==void 0)return tmn;var D=document.createElement("template");_.n(D,'\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]]" num-badges-in-row="[[computeNumBadgesInRow(data)]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return tmn=D},{mode:_.Kz("kevlar_poly_si_batch_j047")?1:2});var m6m;var Gg=function(){var D=_.X.apply(this,arguments)||this;D.roundedContainer=!0;D.skipRoundingTop=!1;D.disableTopPadding=!1;D.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");D.extractOverlay=!1;return D};
_.P(Gg,_.X);Gg.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Gg.prototype.onClick=function(D){var t,H=(t=this.data)==null?void 0:t.sourceEndpoint;!_.ed(_.bK(D),this.hostElement,["A".toString()])&&H&&_.Gf(this.hostElement,"yt-navigate",{endpoint:H})};
_.ql.Object.defineProperties(Gg.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 D;return!((D=this.data)==null||!D.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var D,t;return(t=(D=this.data)==null?void 0:D.paragraphMaxLines)!=null?t:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Gg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Gg.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Gg.prototype,"showVerticalDividers",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Gg.prototype,"roundedContainer",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Gg.prototype,"skipRoundingTop",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Gg.prototype,"disableTopPadding",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gg.prototype,"amsterdamEnabled",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Gg.prototype,"extractOverlay",void 0);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gg.prototype,"showMetadataAtTop",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gg.prototype,"showMetadataBelowTitle",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.menu"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gg.prototype,"hasMenu",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data.truncateParagraphs"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gg.prototype,"truncateParagraphs",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.paragraphMaxLines"),_.x("design:type",Number),_.x("design:paramtypes",[])],Gg.prototype,"paragraphMaxLines",null);
_.d([_.M({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.m("data.background"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gg.prototype,"background",null);_.d([_.Y({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Gg);
_.p(Gg,"ytd-info-panel-content-renderer",function(){if(m6m!==void 0)return m6m;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return m6m=D},{mode:_.Kz("kevlar_poly_si_batch_j076")?1:2});var MmB;var Sef;var XxQ;var fe4;var Ev=function(){return _.X.apply(this,arguments)||this};
_.P(Ev,_.X);Ev.prototype.computeStyle=function(D){return D};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ev.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ev.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],Ev.prototype,"style_",void 0);_.d([_.xL({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Ev);
_.p(Ev,"yt-channel-thumbnail-with-link-renderer",function(){if(fe4===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;XxQ===void 0&&(XxQ=document.createElement("template"));var e=XxQ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);fe4=D}D=fe4;return D},{mode:2});var K0=function(){return _.X.apply(this,arguments)||this};
_.P(K0,_.X);K0.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"}}}};
K0.prototype.computeTitleStyle=function(D){return D||null};
K0.prototype.computeAvatarStyle=function(D){return D||null};
K0.prototype.computeShowNavigationButton=function(D,t){return!(D==null||!D.navigationButton||t)};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],K0.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],K0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],K0.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.x("design:type",String)],K0.prototype,"titleStyle",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.x("design:type",String)],K0.prototype,"avatarStyle",void 0);_.d([_.M(),_.x("design:type",Boolean)],K0.prototype,"hideNavigationButton",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],K0.prototype,"isModernSd",void 0);_.d([_.Y({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],K0);
_.p(K0,"ytd-rich-list-header-renderer",function(){if(Sef!==void 0)return Sef;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Sef=D},{mode:_.Kz("kevlar_poly_si_batch_j058")?1:2});var Ni=function(){return _.X.apply(this,arguments)||this};
_.P(Ni,_.X);Ni.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]]"}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ni.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ni.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Ni.prototype,"isSearch",void 0);_.d([_.Y({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],Ni);
_.p(Ni,"ytd-preview-card-renderer",function(){if(MmB!==void 0)return MmB;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return MmB=D},{mode:1});var L3a;var ks=function(){return _.X.apply(this,arguments)||this};
_.P(ks,_.X);ks.prototype.configureRendererStamper=function(){return{"data.menu":Rw}};
ks.prototype.dataChanged=function(){var D=this.get("colorExtractionPalette.section1Color",this.data);D=_.Ih(D);_.jZ(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":D})};
ks.prototype.computeCardStyle=function(D){return this.get("style.value",D)||null};
ks.prototype.dataChanged=ks.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ks.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ks.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],ks.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ks.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.x("design:type",String)],ks.prototype,"cardStyle",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ks.prototype,"dataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],ks);
_.p(ks,"ytd-compact-channel-recommendation-card-renderer",function(){if(L3a!==void 0)return L3a;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return L3a=D},{mode:1});var AQ3;var gHQ;var Tg=function(){var D=_.X.apply(this,arguments)||this;D.alignAuto=!1;D.collapsed=!0;D.isToggled=!1;D.alwaysCollapsed=!1;D.canToggle=!0;D.collapsedHeight=80;D.disableToggle=!1;D.alwaysToggleable=!1;D.reversed=!1;D.shouldUseNumberOfLines=!1;D.recomputeOnResize=!1;D.canToggleJobId=0;D.lastReversed=!1;return D};
_.P(Tg,_.X);_.q=Tg.prototype;_.q.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.q.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.q.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var D=_.Kg(this.hostElement),t=D.childNodes,H=document.createDocumentFragment(),e=D.childNodes.length-1;e>=0;e--)_.Kg(H).appendChild(t[e]);_.r("enable_shadydom_free_scoped_node_methods")?_.Ny(this.hostElement).appendChild(H):D.appendChild(H)}};
_.q.ready=function(){var D=this;_.BT(function(){D.initChildrenObserver()},1)};
_.q.attached=function(){var D;(D=this.resizeObserver)==null||D.observe(this.content)};
_.q.detached=function(){this.detachObserver()};
_.q.toggle=function(D,t){this.canToggle&&(this.isToggled=t,_.Gf(this.hostElement,"yt-refit"),D&&D.stopPropagation())};
_.q.reset=function(){this.childrenChanged()};
_.q.onIronResize=function(){this.recomputeOnResize&&!_.r("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.q.computeIsMoreVisible=function(D,t){return D&&!t};
_.q.computeShouldUseNumberOfLines=function(D){try{return!!D&&window.CSS.supports("-webkit-line-clamp","1")}catch(t){}return!1};
_.q.computeIsLessVisible=function(D,t){return D&&t};
_.q.observeCollapsedHeightAndMaxLines=function(){var D=this.collapsedHeight,t=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.jZ(this.hostElement,{"--ytd-expander-max-lines":""+t,"--ytd-expander-collapsed-height":""}):_.jZ(this.hostElement,{"--ytd-expander-collapsed-height":D+"px","--ytd-expander-max-lines":""})};
_.q.handleMoreTap=function(D){this.disableToggle||(_.Gf(this.hostElement,"yt-expander-more-tapped"),this.toggle(D,!0))};
_.q.handleLessTap=function(D){_.Gf(this.hostElement,"yt-expander-less-tapped");this.toggle(D,!1)};
_.q.initChildrenObserver=function(){var D=this;this.observer=new MutationObserver(function(){D.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.r("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.W5(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var t;(t=D.resizeThrottle)==null||t.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.q.childrenChanged=function(){var D=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){NX(function(){D.canToggleJobId=0;D.calculateCanCollapse()})}))};
_.q.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};
_.q.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.q.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("collapsed-changed",this.collapsed))};
_.q.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("is-toggled-changed",this.isToggled))};
_.q.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("can-toggle-changed",this.canToggle))};
_.ql.Object.defineProperties(Tg.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Tg.prototype.canToggleChangedForBinding=Tg.prototype.canToggleChangedForBinding;Tg.prototype.isToggledChangedForBinding=Tg.prototype.isToggledChangedForBinding;Tg.prototype.collapsedChangedForBinding=Tg.prototype.collapsedChangedForBinding;Tg.prototype.observeCollapsedHeightAndMaxLines=Tg.prototype.observeCollapsedHeightAndMaxLines;Tg.prototype.onIronResize=Tg.prototype.onIronResize;Tg.prototype.reversedChanged=Tg.prototype.reversedChanged;Tg.prototype.toggledChanged=Tg.prototype.toggledChanged;
Tg.prototype.alwaysToggleableChanged=Tg.prototype.alwaysToggleableChanged;_.d([_.C(_.QI),_.x("design:type",Object)],Tg.prototype,"ironResizableBehavior",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Tg.prototype,"alignAuto",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Tg.prototype,"collapsed",void 0);_.d([_.M(),_.x("design:type",Object)],Tg.prototype,"isToggled",void 0);_.d([_.M(),_.x("design:type",Object)],Tg.prototype,"alwaysCollapsed",void 0);
_.d([_.M(),_.x("design:type",Object)],Tg.prototype,"canToggle",void 0);_.d([_.M(),_.x("design:type",Object)],Tg.prototype,"collapsedHeight",void 0);_.d([_.M(),_.x("design:type",Object)],Tg.prototype,"disableToggle",void 0);_.d([_.M(),_.x("design:type",Object)],Tg.prototype,"alwaysToggleable",void 0);_.d([_.M(),_.x("design:type",Object)],Tg.prototype,"reversed",void 0);_.d([_.M(),_.x("design:type",Number)],Tg.prototype,"maxNumberOfLines",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.x("design:type",Object)],Tg.prototype,"shouldUseNumberOfLines",void 0);_.d([_.M(),_.x("design:type",Object)],Tg.prototype,"recomputeOnResize",void 0);_.d([_.o5("#content"),_.x("design:type",HTMLDivElement)],Tg.prototype,"content",void 0);_.d([_.mx("alwaysToggleable"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tg.prototype,"alwaysToggleableChanged",null);
_.d([_.mx("isToggled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tg.prototype,"toggledChanged",null);_.d([_.m("canToggleJobId"),_.x("design:type",Object),_.x("design:paramtypes",[])],Tg.prototype,"isResetting",null);_.d([_.Os("reversed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tg.prototype,"reversedChanged",null);
_.d([_.rx("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tg.prototype,"onIronResize",null);_.d([_.Os("maxNumberOfLines","collapsedHeight"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tg.prototype,"observeCollapsedHeightAndMaxLines",null);_.d([_.Os("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tg.prototype,"collapsedChangedForBinding",null);
_.d([_.Os("isToggled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tg.prototype,"isToggledChangedForBinding",null);_.d([_.Os("canToggle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tg.prototype,"canToggleChangedForBinding",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-expander"})],Tg);
_.p(Tg,"ytd-expander",function(){if(gHQ!==void 0)return gHQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return gHQ=D},{mode:1});var cV=function(){return _.X.apply(this,arguments)||this};
_.P(cV,_.X);cV.prototype.computeIsCarousel=function(D){return!!D.isCarousel};
cV.prototype.observeLightsourcePalette=function(){var D,t=(D=this.data)==null?void 0:D.vibrantsourceColorPaletteData;t&&_.fb(this.hostElement,t)};
cV.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
cV.prototype.observeLightsourcePalette=cV.prototype.observeLightsourcePalette;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],cV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],cV.prototype,"data",void 0);_.d([_.M({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],cV.prototype,"isCarousel",void 0);
_.d([_.Os("data.vibrantsourceColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cV.prototype,"observeLightsourcePalette",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],cV);
_.p(cV,"ytd-media-upsell-renderer",function(){if(AQ3!==void 0)return AQ3;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return AQ3=D},{mode:2});var JQf;var j_=function(){var D=_.X.apply(this,arguments)||this;D.JSC$14957_playerEvents=new Map;D.listeningToPlayer=!1;D.startX=0;D.active=!1;D.shouldShowButtons=_.r("web_buttons_hidden_killswitch");D.isHighlighted=!1;D.useHighlightStyling=_.r("web_enable_deeper_metadata_highlight_styling");D.modern=_.r("kevlar_modern_sd");D.enableProblemWalkthrough=_.r("problem_walkthrough_sd");return D};
_.P(j_,_.X);_.q=j_.prototype;
_.q.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}}}}}};
_.q.created=function(){this.JSC$14957_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.q.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.iK(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.iK(this,this.onActiveUpdate))};
_.q.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.iK(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.iK(this,this.onActiveUpdate))};
_.q.onDataChanged=function(){this.removePlayerListeners()};
_.q.onColorPaletteChange=function(){var D={},t;if(_.f_()==="USER_INTERFACE_THEME_DARK"&&((t=this.data)==null?0:t.darkColorPalette)){var H=this.data.darkColorPalette;D["--ytd-macro-markers-list-item-background-color"]=_.Qk(this.get("section2Color",H))}else{var e;_.f_()==="USER_INTERFACE_THEME_LIGHT"&&((e=this.data)==null?0:e.lightColorPalette)&&(H=this.data.lightColorPalette,D["--ytd-macro-markers-list-item-background-color"]=_.Qk(this.get("section3Color",H)))}H?(D["--ytd-macro-markers-list-item-title-color"]=
_.Qk(this.get("primaryTitleColor",H)),D["--ytd-macro-markers-list-item-secondary-color"]=_.Qk(this.get("secondaryTitleColor",H)),D["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Qk(this.get("section1Color",H)),this.customButtonProperties={customColors:{color:_.Qk(this.get("primaryTitleColor",H))}},this.useColorSampling=!0):(D["--ytd-macro-markers-list-item-background-color"]="initial",D["--ytd-macro-markers-list-item-title-color"]="initial",D["--ytd-macro-markers-list-item-secondary-color"]=
"initial",D["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.jZ(this.hostElement,D)};
_.q.onEndpointMouseDown=function(D){this.startX=D.clientX};
_.q.onEndpointClick=function(D){var t=this,H,e,V;return _.Z(function(b){if(b.nextAddress==1){if(t.startX!==D.clientX)return D.preventDefault(),b.return();t.data&&t.ytRendererBehavior.logExplicitClick(t.data);if(!t.seekWithAnimationOnClick)return b.jumpTo(0);if(D.button!==0||D.shiftKey||D.altKey||D.metaKey||D.ctrlKey||_.ed(_.bK(D),t.hostElement,["BUTTON".toString()]))return b.return();D.stopPropagation();D.preventDefault();return t.data?b.yield(_.an().getPlayerPromise(),3):b.return()}H=b.yieldResult;
V=(e=_.O(t.data.onTap,_.Hh))==null?void 0:e.startTimeSeconds;V!==void 0&&H.seekToTimeWithAnimation(V*1E3,_.eo(t.data.title));_.n2(b)})};
_.q.computeLayout=function(D){return D};
_.q.computeIsHighlighted=function(D){return!!D};
_.q.computeCarouselType=function(D){return D};
_.q.hideModernCarousel=function(D){return this.modern&&this.hideThumbnail(D)};
_.q.hideThumbnail=function(D){return this.enableProblemWalkthrough&&D!==null&&D==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.q.onRepeatButtonToggle=function(D){var t=this;D.detail.toggled&&_.an().getPlayerPromise().then(function(H){t.ytPlayerListenerBehavior.listenToPlayerEvents(H,t.JSC$14957_playerEvents);t.listeningToPlayer=!0})};
_.q.onLoopRangeChange=function(D){var t=_.Kg(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(t){var H=t.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",t.polymerController.data);if(H){var e=Number(H.endTimeMs);if(Number(H.startTimeMs)!==(D==null?void 0:D.startTimeMs)||e!==(D==null?void 0:D.endTimeMs))t.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.q.removePlayerListeners=function(){var D=this;this.listeningToPlayer&&_.an().getPlayerPromise().then(function(t){D.ytPlayerListenerBehavior.unlistenFromPlayerEvents(t,D.JSC$14957_playerEvents);D.listeningToPlayer=!1})};
_.q.onActiveUpdate=function(D){this.active=D.detail.active};
j_.prototype.onColorPaletteChange=j_.prototype.onColorPaletteChange;j_.prototype.onDataChanged=j_.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",_.rt)],j_.prototype,"ytPlayerListenerBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],j_.prototype,"data",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],j_.prototype,"useCustomColors",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],j_.prototype,"active",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],j_.prototype,"shouldShowButtons",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.x("design:type",String)],j_.prototype,"layout",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.x("design:type",Object)],j_.prototype,"isHighlighted",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],j_.prototype,"useHighlightStyling",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],j_.prototype,"modern",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],j_.prototype,"enableProblemWalkthrough",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.x("design:type",String)],j_.prototype,"carouselType",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],j_.prototype,"useColorSampling",void 0);_.d([_.M(),_.x("design:type",Boolean)],j_.prototype,"seekWithAnimationOnClick",void 0);_.d([_.M(),_.x("design:type",Object)],j_.prototype,"customButtonProperties",void 0);
_.d([_.o5("#repeat-button"),_.x("design:type",HTMLElement)],j_.prototype,"repeatButton",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j_.prototype,"onDataChanged",null);_.d([_.Os("data.lightColorPalette","data.darkColorPalette"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j_.prototype,"onColorPaletteChange",null);_.d([_.Y({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],j_);
_.p(j_,"ytd-macro-markers-list-item-renderer",function(){if(JQf!==void 0)return JQf;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return JQf=D},{mode:1});var Ye3;var len;var $s=function(){return _.X.apply(this,arguments)||this};
_.P($s,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$s.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$s.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],$s);
_.p($s,"ytd-title-and-button-list-header-renderer",function(){if(len!==void 0)return len;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return len=D},{mode:1});var vH4;var pxw=new _.kI("BUTTON_RENDERER_WIZ_TOKEN"),d6o=new _.kI("BUTTON_RENDERER_TOKEN");_.i4=_.l(function(D){var t=_.qS().resolve(_.by(pxw));if(t)return _.G(t,Object.assign({},D,{overrides:D.buttonOverrides}));var H=_.qS().resolve(d6o);return H?_.G(gG6,null,function(){return _.G(V9,null,function(){var e,V,b,a,w,h,K,N,k,T,c,U;return void H(D.data(),{onButtonClickCallback:D.onButtonClickCallback,shouldShowIcons:(e=D.shouldShowIcons)==null?void 0:e.call(D),icon:(V=D.icon)==null?void 0:V.call(D),processAllEndpoints:(b=D.processAllEndpoints)==null?void 0:b.call(D),preventDefault:(a=D.preventDefault)==
null?void 0:a.call(D),stopPropagation:(w=D.stopPropagation)==null?void 0:w.call(D),disableButtonRendererClickHandling:(h=D.disableButtonRendererClickHandling)==null?void 0:h.call(D),className:(K=D.className)==null?void 0:K.call(D),buttonOverrides:(N=D.buttonOverrides)==null?void 0:N.call(D),forceModernIconButton:(k=D.forceModernIconButton)==null?void 0:k.call(D),isSubscribe:(T=D.isSubscribe)==null?void 0:T.call(D),alignByText:(c=D.alignByText)==null?void 0:c.call(D),forceDisabled:(U=D.forceDisabled)==
null?void 0:U.call(D)})})}):_.G(_.FH,null)},"Oa");
_.i4.idomCompat=!0;var x6m=_.l(function(D){var t=D.data,H=_.qT(D.useSquareAspectRatio,!1);return _.G("dismissed-mini-game-card-view-model",null,_.G(_.E,{cond:function(){var e,V;return(e=t().responseText)==null?void 0:(V=e.runs)==null?void 0:V.length},
then:function(){var e={};return _.G("div",{class:_.jQ("yt-mini-game-card-view-model__dismissed-card",(e["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!H()},e["yt-mini-game-card-view-model--dismissed-square-card"]=H,e))},_.G("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.G(_.E,{cond:function(){return t().responseText.runs[0].text},
then:function(V){return _.G("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:V},V)}}),_.G(_.P5,{data:function(){return t().buttons}},{buttonRenderer:_.i4,
buttonViewModel:_.JX})))}}))},"Pa");var BRw=_.l(function(D){D=_.FQ(D,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var t=D.data,H=D.useFullWidth,e=D.isDesktopWeb,V=D.addSearchResultTopMargin,b=function(){return t().layout},a=function(){return t().title},w=function(){return t().metadataText?t().metadataText:t().genre},h=function(){return t().channelName},K=function(){return t().image},N=function(){return t().colorPalette},k=function(){return t().actionButton},T=function(){return t().overflowButton},
c=function(){return t().avatar},U=function(){var g={};
g=_.jQ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(g["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return e()},g));
return _.G("div",{class:g},_.G(R2m,{imageData:K,colorPalette:N}),_.G(ufn,{onTap:function(){return t().onTap},
imageData:K,accessibilityText:function(){return t().accessibilityText},
overlayBadgeText:function(){return t().overlayBadgeText},
iconName:function(){return t().iconName},
unplayableInlinePlaybackIconName:function(){return t().unplayableInlinePlaybackIconName},
isDesktopWeb:e}),_.G(_.E,{cond:function(){return!e()},
then:function(){return _.G(_.FH,null,_.G(W39,{layout:b,colorPalette:N,isDesktopWeb:e,overflowButton:T,avatar:c,onTap:function(){return t().onTap},
genre:w,title:a,channelName:h}),_.G(Iem,{actionButton:k}))}}))},S=function(){var g={};
g=_.jQ((g["yt-mini-game-card-view-model--search-result-desktop"]=function(){return e()},g["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!e()},g["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return V()},g));
return _.G("div",{class:g},U(),_.G(QNB,{description:function(){return t().description},
isDesktopWeb:e,title:a,genre:w,onTap:function(){return t().onTap},
actionButton:k,overflowButton:T,avatar:c,channelName:h}))},L=function(){var g={};
g=_.jQ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(g["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return e()},g["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return e()&&t().width===135},g["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return e()},g["yt-mini-game-card-view-model--big-metadata-font"]=function(){return t().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},g["yt-mini-game-card-view-model--use-full-width"]=
function(){return H()},g["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!k()},g));
return _.G("div",{class:g},_.G(yQf,{colorPalette:N,isDesktopWeb:e,onTap:function(){return t().onTap},
accessibilityText:function(){return t().accessibilityText},
overlayBadgeText:function(){return t().overlayBadgeText},
iconName:function(){return t().iconName},
unplayableInlinePlaybackIconName:function(){return t().unplayableInlinePlaybackIconName},
actionButton:k,imageData:K}),_.G(W39,{layout:b,colorPalette:N,isDesktopWeb:e,overflowButton:T,avatar:c,onTap:function(){return t().onTap},
genre:w,title:a,channelName:h}))},J=function(){var g={};
g=_.jQ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(g["yt-mini-game-card-view-model--square-card-desktop"]=function(){return e()},g["yt-mini-game-card-view-model--use-full-width"]=function(){return H()},g));
return _.G("div",{class:g},_.G(ufn,{onTap:function(){return t().onTap},
imageData:K,accessibilityText:function(){return t().accessibilityText},
overlayBadgeText:function(){return t().overlayBadgeText},
iconName:function(){return t().iconName},
unplayableInlinePlaybackIconName:function(){return t().unplayableInlinePlaybackIconName},
isDesktopWeb:e}),_.G(W39,{layout:b,colorPalette:N,isDesktopWeb:e,overflowButton:T,avatar:c,onTap:function(){return t().onTap},
genre:w,title:a,channelName:h}))};
return _.G("mini-game-card-view-model",{class:D.className},_.G(_.CY,null,_.G(_.oD,{when:function(){return b()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return L()}),_.G(_.oD,{when:function(){return b()==="MINI_APP_LAYOUT_SQUARE"}},function(){return J()}),_.G(_.oD,{when:function(){return b()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return S()})))},"Qa");
BRw.idomCompat=!0;var Iem=_.l(function(D){var t=_.qT(D.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.G(_.P5,{data:D.actionButton},{buttonViewModel:function(H){return _.G("div",{class:t},_.G(_.JX,{data:H.data}))}})},"Ra"),ufn=_.l(function(D){var t=D.onTap;
var H=D.imageData;var e=D.accessibilityText;var V=D.overlayBadgeText;var b=D.iconName;var a=D.unplayableInlinePlaybackIconName;D=D.isDesktopWeb;return _.G(_.XW,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:t},_.G(_.bi,{data:H,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(e==null?void 0:e())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.G(z2n,{overlayBadgeText:V,iconName:b,unplayableInlinePlaybackIconName:a,isDesktopWeb:D}))},"Sa"),z2n=_.l(function(D){var t=D.overlayBadgeText;
var H=D.iconName;var e=D.unplayableInlinePlaybackIconName;var V=D.isDesktopWeb;return _.G("div",{class:"yt-mini-game-card-view-model__badge-container"},_.G(_.E,{cond:H,then:function(b){return _.G("div",{class:"yt-mini-game-card-view-model__badge"},_.G("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.G(_.U7,{icon:b,className:"yt-mini-game-card-view-model__icon",size:12}),_.G("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},t)))}}),_.G(_.E,{cond:function(){return!H()&&
t()},
then:function(){return _.G("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},t)}}),_.G(_.E,{cond:function(){return e()&&V()},
then:function(){return _.G("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.G(_.U7,{icon:e,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"Ta"),R2m=_.l(function(D){var t=D.colorPalette;
var H=D.imageData;var e=function(){return t().vibrantColorPalette?t().vibrantColorPalette.section2Color:t().sectionTwoColor};
return _.G(_.FH,null,_.G("div",{class:"yt-mini-game-card-view-model__background-base",style:_.O7({"background-color":function(){return yk(e(),"1")}})}),_.G("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.O7({"background-image":function(){return"url("+H().sources[0].url+")"}})}),_.G("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.O7({background:function(){return"linear-gradient(180deg,\n    "+yk(e(),".8")+" 0%,\n    "+yk(e(),".4")+" 25%,\n    "+yk(t().vibrantColorPalette?t().vibrantColorPalette.section4Color:t().sectionFourColor,".8")+" 100%)"}})}))},"Ua"),W39=_.l(function(D){var t=D.layout;
var H=D.colorPalette;var e=D.overflowButton;var V=D.avatar;var b=D.onTap;var a=D.title;var w=D.channelName;var h=D.genre;var K=function(){var N;return t()!=="MINI_APP_LAYOUT_SQUARE"&&((N=H())==null?0:N.textPrimaryColor)?"color: "+yk(H().textPrimaryColor,".7"):""};
return _.G("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.G(_.E,{cond:V,then:function(){return _.G("div",{class:"yt-mini-game-card-view-model__avatar"},_.G(_.P5,{data:V},{avatarViewModel:_.qi}))}}),_.G(_.XW,{command:b,
className:"yt-mini-game-card-view-model__metadata-details"},_.G("h3",{class:"yt-mini-game-card-view-model__title",title:a},a),_.G(_.E,{cond:V,then:function(){return _.G("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.G("span",{class:"yt-mini-game-card-view-model__genre",title:w,style:K},w),_.G("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:K},h))},
else:function(){return _.G("span",{class:"yt-mini-game-card-view-model__genre",title:h},h)}})),_.G("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.G(_.P5,{data:e},{buttonViewModel:function(N){var k=N.data;
return _.G(_.JX,{data:function(){return Object.assign({},k(),{customFontColor:t()==="MINI_APP_LAYOUT_SINGLETON"?k().customFontColor:void 0})}})}})))},"Va"),yQf=_.l(function(D){var t=D.colorPalette;
var H=D.isDesktopWeb;var e=D.onTap;var V=D.accessibilityText;var b=D.overlayBadgeText;var a=D.iconName;var w=D.unplayableInlinePlaybackIconName;var h=D.actionButton;D=D.imageData;return _.G("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.G(R2m,{imageData:D,colorPalette:t}),_.G(ufn,{onTap:e,imageData:D,accessibilityText:V,overlayBadgeText:b,iconName:a,unplayableInlinePlaybackIconName:w,isDesktopWeb:H}),_.G(_.E,{cond:function(){return h==null?void 0:h()},
then:function(){return _.G(Iem,{actionButton:h})}}))},"Wa"),QNB=_.l(function(D){var t=D.description;
var H=D.isDesktopWeb;var e=D.title;var V=D.genre;var b=D.onTap;var a=D.actionButton;var w=D.overflowButton;var h=D.avatar;D=D.channelName;var K={};K=_.jQ("yt-mini-game-card-view-model--search-result-metadata-wrapper",(K["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=H,K["yt-mini-game-card-view-model--show-unplayable-on-hover"]=H,K["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!H()},K));
var N={};N=_.jQ("yt-mini-game-card-view-model__search-result-info-row",(N["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!H()},N));
return _.G("div",{class:K},_.G("div",{class:N},_.G(_.XW,{command:b,className:"yt-mini-game-card-view-model__metadata-details"},_.G("h3",{class:"yt-mini-game-card-view-model__title",title:e},e),_.G("span",{class:"yt-mini-game-card-view-model__genre",title:V},V)),_.G(Iem,{actionButton:a,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.G("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.G(_.P5,{data:w},{buttonViewModel:_.JX}))),_.G("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.G("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.G("div",{class:"yt-mini-game-card-view-model__avatar"},_.G(_.P5,{data:h},{avatarViewModel:function(k){var T=k.data;return _.G(_.qi,{data:function(){return Object.assign({},T(),{avatarImageSize:H()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.G(_.XW,{command:b,
className:"yt-mini-game-card-view-model__description"},_.G("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},D)),_.G(_.XW,{command:b,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.G("div",null)))),_.G(_.E,{cond:H,then:function(){return _.G(_.XW,{command:b,className:"yt-mini-game-card-view-model__description"},t)}}))},"Xa");_.hB(BRw,"mini-game-card-view-model",{props:{data:_.ij,className:_.ij,useFullWidth:_.ij,isDesktopWeb:_.ij,addSearchResultTopMargin:_.ij}});_.hB(x6m,"dismissed-mini-game-card-view-model",{props:{data:_.ij,useSquareAspectRatio:_.ij}});var rd=function(){var D=_.X.apply(this,arguments)||this;D.isSearch=!1;D.isRichGrid=!1;return D};
_.P(rd,_.X);_.q=rd.prototype;_.q.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.q.dismissibleItemOnYtServiceRequestSent=function(D,t){t.actions&&this.dismissibleItemProcessActions(D,t.actions)};
_.q.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.q.dataChanged=function(){this.dismissibleItemReset()};
_.q.dismissibleItemProcessActions=function(D,t){for(var H=0;H<t.length;H++){var e=t[H];_.O(e,_.vu)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.O(e,_.vu)),D.stopPropagation())}};
_.q.dismissibleItemHandleReplaceEnclosingAction=function(D){this.dismissedRenderer=D.item;this.isDismissed=!0};
_.ql.Object.defineProperties(rd.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var D;return!!this.data&&!((D=this.dismissedRenderer)==null?0:D.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.dismissedRenderer)==null||!D.notificationMultiActionRenderer)}}});
rd.prototype.dataChanged=rd.prototype.dataChanged;rd.prototype.dismissibleItemOnRequestSent=rd.prototype.dismissibleItemOnRequestSent;rd.prototype.dismissibleItemOnYtServiceRequestSent=rd.prototype.dismissibleItemOnYtServiceRequestSent;_.d([_.M(),_.x("design:type",Object)],rd.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],rd.prototype,"isSearch",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],rd.prototype,"isDismissed",void 0);
_.d([_.M(),_.x("design:type",Object)],rd.prototype,"dismissedRenderer",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],rd.prototype,"isRichGrid",void 0);_.d([_.m("data.layout"),_.x("design:type",Object),_.x("design:paramtypes",[])],rd.prototype,"useSquareAspectRatio",null);_.d([_.m("data","dismissedRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],rd.prototype,"showCard",null);
_.d([_.m("data","dismissedRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],rd.prototype,"showDismissed",null);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],rd.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.d([_.rx("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],rd.prototype,"dismissibleItemOnRequestSent",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rd.prototype,"dataChanged",null);_.d([_.xL({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],rd);
_.p(rd,"ytd-mini-game-card-view-model",function(){if(vH4!==void 0)return vH4;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return vH4=D},{mode:_.Kz("kevlar_poly_si_batch_j081")?1:2});var D_m;var tJn;var Ov=function(){return _.Fu.apply(this,arguments)||this};
_.P(Ov,_.Fu);Ov.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
Ov.prototype.getContinuationUrl=function(D){var t={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(t.itct=this.data.clickTrackingParams);return _.z5(D,t)};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ov.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ov.prototype,"data",void 0);_.d([_.xL({is:"yt-reload-continuation",noInjection:!0})],Ov);var H$6;var eqf;var Uv=function(){var D=_.X.apply(this,arguments)||this;D.notificationData={};return D};
_.P(Uv,_.X);_.q=Uv.prototype;_.q.isMenuExpanded=function(D){return D&&D.length<=1?"undefined":"false"};
_.q.dataChanged_=function(){this.selected=void 0;var D=this.computeSelectedIndex_(this.data);D>=0&&(this.selected=D);D=this.data&&this.data.length>1;_.kL(this.hostElement,"has-items",D);_.Kg(this.hostElement).querySelector("#label").tabIndex=D?0:-1};
_.q.onDropdownOpen=function(){var D=_.v3();if(this.parentTrackingParams&&this.data){var t=_.Sa(this.parentTrackingParams);this.data.forEach(function(H){D&&t&&H.trackingParams&&(H=_.Sa(H.trackingParams),_.Q$(D,t,H),_.zf(D,[H]))})}else this.parentTrackingParams||_.Yw(new _.nZ("No parent tracking params passed in for yt-dropdown-menu."))};
_.q.hasNotification=function(D){var t;if(D.targetId&&((t=this.notificationData)==null?0:t.targetId)){var H;return D.targetId===((H=this.notificationData)==null?void 0:H.targetId)}};
_.q.computeSelectedIndex_=function(D){if(D)for(var t=0,H=D.length;t<H;t++)if(D[t].selected)return t;return-1};
_.q.computeLabel_=function(D){return this.data&&D!=void 0?this.data[D].title:""};
_.q.computeShowIcon_=function(D,t){return!t&&!!D};
_.q.computeVerticalOffset_=function(D){return D?36:0};
_.q.computeEndpoint_=function(D){return D.endpoint||D.navigationEndpoint};
_.q.onLabelClick_=function(D){this.data&&this.data.length<=1?D.stopPropagation():this.menuExpanded="true"};
_.q.onIronActivate_=function(D){D=D.detail.item;var t=_.Kg(this.hostElement).querySelector("#repeat").itemForElement(D);if(t&&t.trackingParams){var H=_.v3(),e=_.Sa(t.trackingParams);H&&_.tV(H,e)}if(t&&t.serviceEndpoint)_.r("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(t.serviceEndpoint):_.NJ(this.hostElement,[t.serviceEndpoint]),_.Gf(this.hostElement,"yt-playlist-reloading");else a:{if((t=D.querySelector("yt-supported-renderers"))&&
(t=t.rendererElement)&&t.is=="yt-reload-continuation"){t.trigger();break a}(D=D.querySelector("yt-reload-continuation"))&&D.trigger()}};
_.q.onTap_=function(D){D.preventDefault()};
_.q.onItemTap_=function(D){this.ytEndpointBehavior.onEndpointTap_(D)};
_.q.onLinkFocus_=function(D){try{var t=D.target}catch(e){}if(t){var H=t.querySelector("tp-yt-paper-item");H&&_.z1(this,"focus",function(){H.focus()})}};
_.q.onMenuClose_=function(){this.menuExpanded="false"};
_.q.isLabelIconActive_=function(D){return D==="true"};
_.q.computeHasSubtitle_=function(D){return!!D};
_.q.computeHrefForItem_=function(D){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(D))};
_.q.updateSelectedFromBinding=function(D){this.selected=D.detail.value};
_.ql.Object.defineProperties(Uv.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
Uv.prototype.onMenuClose_=Uv.prototype.onMenuClose_;Uv.prototype.onTap_=Uv.prototype.onTap_;Uv.prototype.onIronActivate_=Uv.prototype.onIronActivate_;Uv.prototype.onDropdownOpen=Uv.prototype.onDropdownOpen;Uv.prototype.dataChanged_=Uv.prototype.dataChanged_;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Uv.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.pE.YtEndpointBehavior),_.x("design:type",Object)],Uv.prototype,"ytEndpointBehavior",void 0);
_.d([_.M(),_.x("design:type",Array)],Uv.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Uv.prototype,"parentTrackingParams",void 0);_.d([_.M(),_.x("design:type",Object)],Uv.prototype,"selected",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Uv.prototype,"useLabel",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Uv.prototype,"useComputedAriaLabel",void 0);_.d([_.M(),_.x("design:type",String)],Uv.prototype,"icon",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],Uv.prototype,"iconLabel",void 0);_.d([_.M(),_.x("design:type",String)],Uv.prototype,"ariaLabel",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Uv.prototype,"disabled",void 0);_.d([_.M({computed:"isMenuExpanded(data)"}),_.x("design:type",String)],Uv.prototype,"menuExpanded",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Uv.prototype,"closeOnActivate",void 0);
_.d([_.M({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.x("design:type",Boolean)],Uv.prototype,"modernButtons",void 0);_.d([_.M(),_.x("design:type",Object)],Uv.prototype,"notificationData",void 0);_.d([_.m("ariaLabel, selected"),_.M(),_.x("design:type",String),_.x("design:paramtypes",[])],Uv.prototype,"computedAriaLabel",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uv.prototype,"dataChanged_",null);
_.d([_.rx("paper-dropdown-open"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Uv.prototype,"onDropdownOpen",null);_.d([_.rx("iron-activate"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Uv.prototype,"onIronActivate_",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Uv.prototype,"onTap_",null);
_.d([_.rx("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Uv.prototype,"onMenuClose_",null);_.d([_.xL({is:"yt-dropdown-menu",disableElementRegistration:!0})],Uv);
_.p(Uv,"yt-dropdown-menu",function(){if(eqf===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;H$6===void 0&&(H$6=document.createElement("template"));var e=H$6;H.call(t,e.content.cloneNode(!0),D.content.firstChild);eqf=D}D=eqf;return D},{mode:2});var og=function(){var D=_.X.apply(this,arguments)||this;D.hasNotification=!1;return D};
_.P(og,_.X);og.prototype.computeId=function(D){return D};
og.prototype.computeHorizontalAlign=function(D){return D?"right":"left"};
og.prototype.computeAccessibilityLabel=function(D){var t,H;return((t=D.accessibility)==null?void 0:(H=t.accessibilityData)==null?void 0:H.label)||null};
og.prototype.notificationDataChanged=function(){var D;this.hasNotification=!!this.notificationData&&!((D=this.data)==null?0:D.icon)};
og.prototype.notificationDataChanged=og.prototype.notificationDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Gq.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],og.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],og.prototype,"data",void 0);_.d([_.M({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",String)],og.prototype,"id",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],og.prototype,"isRightAligned",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],og.prototype,"disabled",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],og.prototype,"closeOnActivate",void 0);_.d([_.M(),_.x("design:type",Object)],og.prototype,"notificationData",void 0);_.d([_.M(),_.x("design:type",Object)],og.prototype,"hasNotification",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],og.prototype,"useComputedAriaLabel",void 0);_.d([_.Os("notificationData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],og.prototype,"notificationDataChanged",null);_.d([_.xL({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],og);
_.p(og,"yt-sort-filter-sub-menu-renderer",function(){if(tJn===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;D_m===void 0&&(D_m=document.createElement("template"));var e=D_m;H.call(t,e.content.cloneNode(!0),D.content.firstChild);tJn=D}D=tJn;return D},{mode:2});var VJw=_.l(function(D){var t=D.data;var H=_.$X(function(){var b=t().onTap;(b=_.O(b,_.dj))&&_.qS().resolve(_.aA).resolveCommand(b);return!1}),e=function(){return{sources:[{url:t().thumbnailUrl,
width:120,height:90}]}},V=function(){return t().rating&&t().ratingA11yLabel&&t().reviewsCount&&t().reviewsCountA11yLabel};
return _.G("place-data-view-model",null,_.G(_.E,{cond:function(){return t().placeName&&t().placeCategory},
then:function(){return _.G("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":H},_.G(_.bi,{data:e,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.G(_.XW,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return t().onTap}},_.G("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return t().placeName}},function(){return t().placeName})),_.G("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.G(_.E,{cond:V,
then:function(){return _.G("div",{class:_.jQ("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.G("span",{class:"score",title:function(){return t().ratingA11yLabel}},function(){return t().rating}),_.G("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.G(_.U7,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.G("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return t().reviewsCountA11yLabel}},function(){return t().reviewsCount}))},
else:function(){return _.G("div",{class:_.jQ("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.G("div",{class:_.jQ("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.G("span",{class:"category",
title:function(){return t().placeCategory}},function(){return t().placeCategory}))))}}))},"Ya");
VJw.idomCompat=!0;_.hB(VJw,"place-data-view-model",{props:{data:_.ij}});var b$B=new _.kI("INLINE_PLAYBACK_HOOK_TOKEN");var qMn=_.JB({sharedUi:_.TAf});_.uO=_.YX(qMn)(qMn.sharedUi,{animatedThumbnailEnabledSelector:function(D){return D.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(D){return D.inlinePreviewEnabled},
currentPageTypeSelector:function(D){return D.currentPageType},
currentPageSubTypeSelector:function(D){return D.currentPageSubType},
persistentPanelVisibleSelector:function(D){return D.persistentPanelVisible}});var Fla=function(D){this.setActiveSlideIndex=D;this.jobIds=[];this.isSlideshowPlaying=!1},Z$3=function(D,t){D.isSlideshowPlaying||(D.isSlideshowPlaying=!0,a0m(D),wjn(D,t,0))},a0m=function(D){_.kX(_.Jy,function(){D.setActiveSlideIndex(0)},1)},wjn=function(D,t,H){D.jobIds.push(_.kX(_.Jy,function(){var e=H<t-1?H+1:0;
D.setActiveSlideIndex(e);wjn(D,t,e)},1800))};var sXm=new _.kI("IMAGE_ON_LOAD_HANDLER_TOKEN");var hq6=_.l(function(D){return _.G("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.G(_.E,{cond:function(){var t;return(t=D.data())==null?void 0:t.thumbnail},
then:function(t){return _.G(_.bi,{data:t,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"Za");_.GZa=_.l(function(D){var t=D.data;var H=D.lockupExperiments;D={};return _.G("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.G("div",{class:_.jQ("ytThumbnailOverlayButtonViewModelButton",(D.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var e;return H&&((e=H())==null?void 0:e.useLegacySizedIconButton)},D))},_.G(_.P5,{data:function(){return t().overlayButton}},{buttonViewModel:function(e){return _.G(_.JX,{data:e.data,
buttonOverrides:function(){var V;return H&&((V=H())==null?0:V.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"$a");
_.GZa.idomCompat=!0;var ENa=_.l(function(D){return _.G("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.$X(function(t){t.preventDefault();return!1})},_.G(_.P5,{data:function(){return D.data().buttons}},{toggleButtonViewModel:function(t){return _.G("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.G(_.VC,{data:t.data}))}}))},"ab");
ENa.idomCompat=!0;var Kl3=_.l(function(D){var t=function(){var H;return((H=_.O(D.data().rendererContext,_.Pm))==null?void 0:H.label)||""};
return _.G("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.G(_.E,{cond:function(){return D.data().image},
then:function(){return _.G("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.G(_.bi,{data:function(){return D.data().image},
alt:t}))}}),_.G(_.E,{cond:function(){return D.data().text},
then:function(){return _.G("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return D.data().text})}}))},"bb");var NpV;NpV=_.uO.animatedThumbnailEnabledSelector;_.PV=_.l(function(D){var t=[],H=function(){var T,c;return OD8((T=D.width)==null?void 0:T.call(D),(c=D.height)==null?void 0:c.call(D))},e=_.qS().resolve(_.by(sXm)),V=_.DY("yt-thumbnail-view-model",function(){t.push("elRef.value set");
var T;(T=D.playbackRef)==null||T.call(D,{thumbnailElRef:V,thumbnail:D.data().image,thumbnailOverlays:D.data().overlays,thumbnailSize:H()})});
_.XH(function(){t.push("onInit");_.Sj(function(){t.push("onCleanup")})});
var b=_.dm(NpV),a=function(){var T,c;return(c=(T=D.aspectRatio)==null?void 0:T.call(D))!=null?c:0},w=function(){return(D.data().image?_.yaA(D.data().image):a())<=1&&a()===0},h=function(){return w()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},K=function(){V.value||_.Yw(new _.nZ("Thumbnail elRef.value is null",t.join("\n")));
e&&V.value&&e(V.value)},N=function(){var T,c;
return((T=D.hovered)==null?void 0:T.call(D))&&H()!=="large"&&((c=D.data().overlays)==null?void 0:c.some(function(U){return _.O(U,evQ)}))},k={};
return _.G("yt-thumbnail-view-model",{class:_.jQ("ytThumbnailViewModelHost",D.className,function(){return VmK(a())},function(){var T,c;
a:{var U=H(),S=(T=D.disableRounding)==null?void 0:T.call(D);T=(c=D.isClip)==null?void 0:c.call(D);if(!S&&!T)switch(U){case "large":c="ytThumbnailViewModelLarge";break a;case "small":c="ytThumbnailViewModelSmall";break a;default:c="ytThumbnailViewModelMedium";break a}c=void 0}return c},(k.ytThumbnailViewModelCinematic=w,k)),
style:_.O7({"background-color":function(){var T,c=w()?(T=D.data().backgroundColor)==null?void 0:T.lightTheme:void 0;return c?yk(c,"1"):void 0}}),
el:V},_.G(_.E,{cond:w,then:function(){return _.G("div",{class:"ytThumbnailViewModelBlurredImage"},_.G(_.bi,{data:function(){return D.data().image},
alt:"",contentMode:h,targetWidth:D.width,onload:K}))}}),_.G("div",{class:"ytThumbnailViewModelImage"},_.G(_.bi,{data:function(){return D.data().image},
alt:"",contentMode:h,targetWidth:D.width,onload:K}),null),_.G(_.P5,{data:function(){return N()?void 0:D.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:jNV,thumbnailOverlayBadgeViewModel:function(T){return _.G($66,{data:T.data,thumbnailSize:H,isClip:D.isClip})},
thumbnailBottomOverlayViewModel:function(T){return _.G(NRf,{data:T.data,thumbnailSize:H,isClip:D.isClip})},
thumbnailOverlayFullViewModel:Kl3,thumbnailOverlayButtonViewModel:function(T){return _.G(_.GZa,{data:T.data,lockupExperiments:D.lockupExperiments})}}),_.G(_.P5,{data:function(){var T;
return((T=D.hovered)==null?0:T.call(D))?D.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(T){return _.G(b4,{data:T.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:ENa}),_.G(_.P5,{data:function(){var T;return((T=D.hovered)==null?0:T.call(D))&&b()?D.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:hq6}),_.G(_.E,{cond:D.isClip,then:function(){return _.G("div",{class:"ytPinkingNsHost"},_.G("svg",{class:"ytPinkingNsPinkingLeft"},_.G("defs",null,_.G("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.G("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.G("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.G("svg",{class:"ytPinkingNsPinkingRight"},_.G("defs",null,_.G("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.G("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.G("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"cb");
_.PV.idomCompat={callbacks:{playbackRef:!0}};var kZV=_.l(function(D){var t=_.F(_.KR(-1,void 0,"RW2Ole")),H=t.next().value,e=t.next().value;_.XH(function(){var V=new Fla(e);Z$3(V,D.data().thumbnails.length);_.Sj(function(){if(V.isSlideshowPlaying){V.isSlideshowPlaying=!1;for(var b=V.jobIds,a=0,w=b.length;a<w;a++)_.Jy.cancelJob(b[a]);V.jobIds.length=0}})});
return _.G("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.G(_.P5,{data:function(){return D.data().thumbnails}},{thumbnailViewModel:function(V,b){return _.G("div",{class:function(){var a=!D.data().primaryThumbnail,w=b(),h=H(),K=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
a&&w===0&&K.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");w<=h&&K.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return K.join(" ")}},_.G(_.PV,{data:V.data,
disableRounding:D.disableRounding}))}}))},"db");
kZV.idomCompat=!0;var bj6=new _.kI("DWELL_DETECTOR_REGISTRY_TOKEN");var cv6=_.l(function(D){var t=qeu(D.triggeringElement),H=function(){return!!D.data().primaryThumbnail},e=function(){var b,a=(b=D.data())==null?void 0:b.maxHeight,w;
b=(w=D.maxHeight)==null?void 0:w.call(D);return a!=null&&b!=null?Math.min(a,b):b!=null?b:a},V=function(){var b=e();
if(b){var a;if(H()&&(a=D.includeStackHeight)!=null&&a.call(D)){var w;a=((w=D.doubleStack)==null?0:w.call(D))?8:4}else a=0;b=b-a-1;if(!(b<0)){w=Math;a=w.ceil;var h,K;var N=rN8((K=(h=D.aspectRatio)==null?void 0:h.call(D))!=null?K:0);return a.call(w,b*N)}}};
return _.G("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.O7({height:function(){return e()?e()+"px":void 0},
width:function(){return V()?V()+"px":void 0}})},_.G(Tp4,{stackEnabled:H,
thumbnailSize:function(){var b,a;return OD8((b=D.width)==null?void 0:b.call(D),(a=D.height)==null?void 0:a.call(D))},
doubleStack:D.doubleStack,stackColor:function(){return D.data().stackColor},
includeStackHeight:D.includeStackHeight},_.G(_.P5,{data:function(){return D.data().primaryThumbnail}},{thumbnailViewModel:function(b){var a={};
return _.G(_.PV,{data:b.data,width:D.width,height:D.height,aspectRatio:D.aspectRatio,disableRounding:D.disableRounding,className:_.jQ((a.ytCollectionThumbnailViewModelHostHasStacks=H,a)),hovered:D.hovered,playbackRef:D.playbackRef})}}),_.G(_.E,{cond:function(){var b;
return t()&&((b=D.data().thumbnails)==null?void 0:b.length)},
then:function(){return _.G("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.G(kZV,{data:D.data,disableRounding:function(){return!H()}}))}})))},"eb");
cv6.idomCompat={callbacks:{playbackRef:!0}};
var Tp4=_.l(function(D){var t=D.children;var H=D.stackEnabled;var e=D.thumbnailSize;var V=D.doubleStack;var b=D.stackColor;var a=D.includeStackHeight;var w,h=(w=_.qS().resolve(_.by(_.tB)))==null?void 0:w();return _.G(_.E,{cond:H,then:function(){return _.G(ROf,{data:function(){var K,N;return{experimentEnabled:!0,thumbnailSize:e(),doubleStack:V==null?void 0:V(),color:h?b==null?void 0:(K=b())==null?void 0:K.darkTheme:b==null?void 0:(N=b())==null?void 0:N.lightTheme,enableResponsiveMode:!1,includeStackHeight:a==
null?void 0:a()}}},t)},
else:function(){return t}})},"fb");var jXB=new _.kI("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var C0;_.n0={calledOnce:!0,state:"visible"};C0={calledOnce:!0,state:"hidden"};_.m8=_.l(function(D){var t=D.data;var H=D.customCommandResolver;var e=D.className;var V=D.delayedClassName;var b=D.animationEntityKey;var a=D.isCompactWidth;var w=D.isContentWidth;D=_.F(_.KR(!1,void 0,"pC3tUb"));var h=D.next().value,K=D.next().value,N=_.qT(b,""),k=_.rF(cmV,N),T=function(){var i8,g6;return(g6=(i8=k())==null?void 0:i8.value)!=null?g6:!1},c=function(){_.bf(_.nf("booleanEntity",N(),{key:N(),
value:!0}));R=void 0};
b=_.F(_.rm(T));var U=b.next().value,S=b.next().value;b=_.F(_.rm(T));var L=b.next().value,J=b.next().value;b=_.F(_.rm(function(){var i8;return T()?(i8=t().styleTransitionConfig)==null?void 0:i8.destinationStyle:void 0}));
var g=b.next().value,Q=b.next().value,u=function(){var i8=Object.assign({},t(),g()&&{style:g()});var g6,Mu,LQ=i8.label,DO=(g6=i8.interaction)==null?void 0:(Mu=g6.accessibility)==null?void 0:Mu.label;g6=i8.iconImage?i8.label&&i8.label.content?i8.iconLeading?"leading":"trailing":"icon-only":void 0;i8={formattedButtonText:LQ,accessibilityLabel:DO,style:ZjX(i8.style),type:sNk(i8.style),state:"active",size:wxk(i8.size),iconPosition:g6,disabled:!1,aTagConfig:aeX(i8,H)};_.r("enable_desktop_vdcbg_components")&&
(i8.focused=h());return i8},R;
b=_.wv({visibilityCallback:function(i8){var g6,Mu=(g6=t().interaction)==null?void 0:g6.onFirstVisible;i8&&Mu&&_.IQ(Mu)},
showOption:_.n0});var I=function(){return S$X(u(),!!t().iconImage)};
D={};var tT={};e=_.jQ(function(){return"ytwAdButtonViewModelHost"},function(){return t().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var i8=!!t().delayedAppearanceConfig,g6=U();
return i8?g6?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var i8=!!t().delayedAppearanceConfig,g6=L();
return i8?g6?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!t().delayedAppearanceConfig||U()?V==null?void 0:V():""},(D.ytwAdButtonViewModelHostCompactWidth=function(){return a==null?void 0:a()},D),(tT.ytwAdButtonViewModelHostContentWidth=function(){return w==null?void 0:w()},tT),e!=null?e:"");
var ZV=function(){var i8,g6=(i8=t().delayedAppearanceConfig)==null?void 0:i8.delayedInvisibleSeconds;g6&&(R=_.Mx(_.Jy,function(){S(!0);ED()},g6*1E3))},ED=function(){var i8,g6=(i8=t().delayedAppearanceConfig)==null?void 0:i8.delayedVisibleSeconds;
g6&&(R=_.Mx(_.Jy,function(){J(!0);o$()},g6*1E3))},o$=function(){var i8,g6=(i8=t().styleTransitionConfig)==null?void 0:i8.styleTransitionSeconds,Mu,LQ=(Mu=t().styleTransitionConfig)==null?void 0:Mu.destinationStyle;
g6&&LQ?R=_.Mx(_.Jy,function(){Q(LQ);c()},g6*1E3):c()},jV=function(){var i8;
return(i8=t().delayedAppearanceConfig)==null?void 0:i8.transitionDurationSeconds};
_.XH(function(){ZV()});
_.Sj(function(){R&&_.Jy.cancelJob(R)});
return _.G("ad-button-view-model",{"on:focusin":_.$X(_.r("enable_desktop_vdcbg_components")?function(){var i8=_.qS().resolve(_.by(_.S8));i8&&K(i8.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.$X(_.r("enable_desktop_vdcbg_components")?function(){K(!1);return!1}:void 0),
class:e,el:_.FI(b),style:_.O7({"transition-duration":function(){return jV()?jV()+"s":void 0}})},_.G(_.E,{cond:u,
then:function(){return _.G(_.gW,{data:u,icon:function(){return _.G(_.E,{cond:function(){return t().iconImage},
then:function(i8){return _.G(_.bi,{data:i8,alt:"",targetWidth:I,targetHeight:I,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"hb");var $_n=_.l(function(D){var t=D.data;D=function(){return t().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var H=_.wv({visibilityCallback:function(b){var a,w=(a=t().interaction)==null?void 0:a.onFirstVisible;b&&w&&_.IQ(w)},
showOption:_.n0}),e={},V={};return _.G("ad-button-group-view-model",{class:_.jQ("ytwAdButtonGroupViewModelHost",(e.ytwAdButtonGroupViewModelHostCompactWidth=D,e)),el:_.FI(H)},_.G("div",{class:_.jQ("ytwAdButtonGroupViewModelHostSecondaryButton",(V.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=D,V))},_.G(_.P5,{data:function(){return t().secondaryAdButton}},{adButtonViewModel:function(b){return _.G(_.m8,{data:b.data})}})),_.G("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.G(_.P5,
{data:function(){return t().primaryAdButton}},{adButtonViewModel:function(b){return _.G(_.m8,{data:b.data})}})))},"ib");var i$n=_.l(function(D){var t=function(){var H;return((H=D.data())==null?void 0:H.answers)||[]};
return _.G("yt-survey-icons",{class:"ytSurveyIconsHost"},_.G("div",{class:"ytSurveyIconsHeader"},_.G("div",{class:"ytSurveyIconsTitle"},function(){var H;return(H=D.data())==null?void 0:H.text}),_.G("div",null,_.G(_.gW,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var H;(H=D.onDismiss)==null||H.call(D)}}},
iconName:"DISMISSAL"}))),_.G("div",null,_.G("div",{class:"ytSurveyIconsAnswers"},_.G(_.nY,{each:function(){return t()},
keyBy:"INDEX"},function(H,e){return _.G("div",null,_.G(_.gW,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var V;(V=D.onSelect)==null||V.call(D,H(),e)}}},
icon:function(){return _.G(_.U7,{icon:function(){var V,b;return(V=H())==null?void 0:(b=V.icon)==null?void 0:b.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.G("div",{class:"ytSurveyIconsAnswersText"},_.G("div",null,function(){return t().length?t()[0].text:""}),_.G("div",null,function(){return t().length?t()[t().length-1].text:""}))))},"jb");var rv6=_.l(function(D){var t=_.FI(_.Yi(function(){var h;return(h=D.data())==null?void 0:h.rendererContext},void 0,void 0,void 0,!0)),H=_.F(_.KR(!1,void 0,"GW0yjf")),e=H.next().value,V=H.next().value,b=_.rF(VIA,function(){var h;
return(h=D.data().keys)==null?void 0:h.surveyEntityKey}),a=_.rF(b4K,function(){var h;
return(h=D.data().keys)==null?void 0:h.surveyStateEntityKey});
_.z0("ytd-slimline-survey-show-action",function(){V(!1)});
var w=function(){var h,K;var N=(h=a())==null?void 0:(K=h.questionStack)==null?void 0:K[0];if(N!==void 0){var k,T;return(k=b())==null?void 0:(T=k.questions)==null?void 0:T[N]}};
H={};return _.G("yt-slimline-survey-view-model",{el:t,class:_.jQ("ytSlimlineSurveyViewModelHost",(H.ytSlimlineSurveyViewModelCollapsed=function(){return e()},H))},_.G("div",{class:"ytSlimlineSurveyViewModelContainer"},_.G(_.E,{cond:function(){var h;
return((h=w())==null?void 0:h.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.G(i$n,{data:function(){return w()},
onSelect:function(h,K){var N,k;return _.Z(function(T){V(!0);if(k=(N=D.data())==null?void 0:N.onSelectRating)_.IQ(k),_.bf(CH6(K));_.n2(T)})},
onDismiss:function(){V(!0);var h;var K=(h=b())==null?void 0:h.dismissalFeedbackToken;h=K?{feedbackEndpoint:{feedbackToken:K}}:void 0;h&&_.RQ(h,{form:{element:t.value}})}})}})))},"kb");var O$w=_.l(function(D){return _.G("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.G(_.P5,{data:function(){var t;return(t=D.data())==null?void 0:t.attachments}},{flexibleActionsViewModel:function(t){return _.G("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.G(_.aw,{data:t.data,
layout:function(){var H;return((H=D.lockupStyle())==null?void 0:H.arrangement)===1?0:1},
justifyContentOverride:function(){var H;return((H=D.lockupStyle())==null?void 0:H.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(t){return _.G("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.G(rv6,{data:t.data}))},
expandableMetadataViewModel:function(t){t=t.data;var H;return _.G("div",{class:_.jQ("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(H=_.qS().resolve(_.by(jXB)))==null?void 0:H({data:t}))},
adButtonGroupViewModel:function(t){return _.G("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.G($_n,{data:t.data}))},
adButtonViewModel:function(t){return _.G("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.G(_.m8,{data:t.data,isCompactWidth:!0}))}}))},"lb");var ko6=_.ZU("rich_grid_min_item_width",310),K3V=_.ZU("rich_grid_max_item_width",500);var U_a=_.l(function(D){var t=D.data;return _.G("br-nz-badge-shape",{class:_.jQ(function(){return U6$(t().brNzRatingBadgeType)}),
role:function(){return t().accessibilityText?"img":void 0},
"aria-label":function(){return t().accessibilityText}},function(){var H;
return(H=t())==null?void 0:H.text})},"mb");_.Mi=_.l(function(D){var t=function(){var H=D.data(),e,V,b;if(H){var a=!((e=D.workaroundShortsIsThumbnailBadge)==null||!e.call(D));e=(V=D.modern)==null?void 0:V.call(D);V=(b=D.numBadgesInRow)==null?void 0:b.call(D);var w;a:switch(H.badgeStyle){case "BADGE_OVERLAY":b=!0;break a;default:b=!1}H={type:a?17:oHk(H.badgeStyle),brNzRatingBadgeType:P0K(H.badgeStyle),text:H.badgeText,icon:H.iconName,isOverlay:b,modern:e||_.r("web_modern_badge_view_model"),numBadgesInRow:V,accessibilityText:H.accessibilityLabel||
((w=_.O(H.rendererContext,_.Pm))==null?void 0:w.label)}}else H=void 0;return H};
return _.G("yt-badge-view-model",{class:_.jQ("ytBadgeViewModelHost",D.class)},_.G(_.CY,null,_.G(_.oD,{when:function(){var H;return!((H=t())==null||!H.brNzRatingBadgeType)}},function(){return _.G(U_a,{data:function(){return t()}})}),_.G(_.oD,{when:function(){return!!t()&&!t().brNzRatingBadgeType}},function(){return _.G(_.hr,{data:function(){return t()}})})))},"nb");
_.Mi.idomCompat=!0;var C08,nH8;C08=16/9;nH8=2/3;_.S_=_.l(function(D){var t=D.data;var H=D.className;var e=D.imageSizeConfig;var V=D.notifyOnLoaded;var b=function(){return t().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},a=function(){var T;
return _.J5((T=t())==null?void 0:T.rendererContext)};
D={};D=(D.ytContentPreviewImageViewModelHost=!0,D.ytContentPreviewImageViewModelCircleImage=function(){return b()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},D.ytContentPreviewImageViewModelTappable=function(){return a()},D);
var w=function(){var T,c;return(c=(T=_.O(t().rendererContext,_.Pm))==null?void 0:T.label)!=null?c:""},h=function(){return Mm$(t())},K=function(){var T=m6D(b(),t().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",e==null?void 0:e(),SeV(h()),t().layoutWidth,t().layoutHeight),c=Object.assign({},T);
T.width&&(c.width=Math.round(T.width));T.height&&(c.height=Math.round(T.height));T.maxWidth&&(c.maxWidth=Math.round(T.maxWidth));T.maxHeight&&(c.maxHeight=Math.round(T.maxHeight));return c},N=_.jj(function(){return K().height},void 0,"CxFlJb"),k=_.jj(function(){return K().width},void 0,"lb8Jhd");
return _.G("yt-content-preview-image-view-model",{el:_.FI(_.Yi(function(){var T;return(T=t())==null?void 0:T.rendererContext})),
role:function(){return a()?"link":void 0},
tabindex:function(){return a()?0:void 0},
class:_.jQ(H,D,function(){var T=b();var c=e==null?void 0:e();T=T==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||T==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||T==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||T==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(c==null?void 0:c.size)!=null&&c.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(c==null?void 0:c.size)!=null&&c.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return T}),
style:function(){var T=K(),c=[];T.width&&c.push("width: "+T.width+"px");T.height&&c.push("height: "+T.height+"px");T.maxWidth&&c.push("max-width: "+T.maxWidth+"px");T.maxHeight&&c.push("max-height: "+T.maxHeight+"px");T.fullWidth&&c.push("width: 100%");return c.join(";")}},_.G(_.E,{cond:h,
then:function(T){return _.G(_.bi,{data:T,alt:w,"data-disabled$":function(){return!w()},
notifyOnLoaded:V,targetWidth:k,targetHeight:N,preserveWidth:function(){return!!k()},
preserveHeight:function(){return!!N()}})}}),_.G(_.P5,{data:function(){var T;
return(T=t())==null?void 0:T.overlays}},{thumbnailHoverOverlayViewModel:b4,
thumbnailOverlayButtonViewModel:_.GZa}))},"ob");
_.S_.idomCompat=!0;var PLo=_.l(function(D){var t=D.data;var H=D.className;var e=D.useSmallLayout;D=D.useMediumText;var V={};return _.G("yt-attribution-view-model",{el:_.FI(_.Yi(function(){var b;return(b=t())==null?void 0:b.rendererContext})),
class:_.jQ(H,(V.ytAttributionViewModelHost=!0,V.ytAttributionViewModelMediumText=D,V))},_.G(_.E,{cond:function(){return _.J5(t().rendererContext)},
then:function(){return _.G("button",{class:"ytAttributionViewModelTappable"},_.G(oNw,{data:t,useSmallLayout:e}))},
else:function(){return _.G(oNw,{data:t,useSmallLayout:e})}}))},"pb"),oNw=_.l(function(D){var t=D.data;
var H=D.useSmallLayout;var e=function(){return{size:(H==null?0:H())?16:24}};
return _.G(_.FH,null,_.G(_.P5,{data:function(){return t().contentPreviewImage}},{contentPreviewImageViewModel:function(V){return _.G(_.S_,{data:V.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:e})}}),_.G(_.P5,{data:function(){return t().badge}},{badgeViewModel:function(V){return _.G(_.Mi,{data:V.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.G(_.E,{cond:function(){return t().text},
then:function(){return _.G(_.$7,{text:function(){return t().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.G(_.E,{cond:function(){return t().suffix},
then:function(){return _.G(_.$7,{text:function(){return t().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"qb");
PLo.idomCompat=!0;var nNv,CLw,m_3,MJw,SMn;nNv=_.l(function(D){var t=D.delimiter;var H=D.max;var e=D.index;var V=D.isStandalone;return _.G(_.E,{cond:function(){return H()-1>e()},
then:function(){var b={};return _.G("span",{class:_.jQ("yt-content-metadata-view-model__delimiter",(b["yt-content-metadata-view-model__delimiter--standalone"]=V,b)),"aria-hidden":!0},t)}})},"rb");
CLw=_.l(function(D){var t=D.metadataPart;var H=D.maxLines;return _.G(_.$7,{text:function(){return t().text},
linkInheritColor:!0,className:function(){return XxK(H())},
userInput:!0})},"sb");
m_3=_.l(function(D){var t=D.metadataPart;var H=D.maxLines;return _.G(_.E,{cond:function(){return t().tooltip},
then:function(e){return _.G("span",{title:e,role:"tooltip"},_.G(CLw,{metadataPart:t,maxLines:H}))},
else:function(){return _.G(CLw,{metadataPart:t,maxLines:H})}})},"tb");
MJw=_.l(function(D){var t=D.metadataPart;var H=D.isOverlay;var e=D.useMediumText;var V=D.hideAvatar;var b=function(){return t().maxLines!==void 0?t().maxLines:1};
return _.G(_.FH,null,_.G(_.P5,{data:function(){return t().avatarStack}},{avatarStackViewModel:function(a){return _.G(_.ag,{data:a.data,
isOverlay:H,useMediumText:e,hideAvatar:V})},
badgeViewModel:_.Mi}),_.G(_.E,{cond:function(){return t().leadingIcon},
then:function(a){return _.G(_.U7,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return a().name},
size:function(){return a().width}})}}),_.G(_.E,{cond:function(){return t().text},
then:function(){return _.G(m_3,{metadataPart:t,maxLines:b})}}),_.G(_.E,{cond:function(){return t().icon},
then:function(a){return _.G(_.U7,{className:"yt-content-metadata-view-model__icon",icon:function(){return a().name},
size:function(){return a().width}})}}))},"ub");
SMn=_.l(function(D){var t=D.metadataRow;var H=D.isInline;var e=D.delimiter;var V=D.isOverlay;var b=D.useMediumText;var a=D.extensions;var w=function(){var K,N=a==null?void 0:(K=a())==null?void 0:K.lockupMetadata;K=t();var k,T;return!!((N==null?0:(k=N.byline)==null?0:k.hideAvatar)&&((T=_.O(K,IQf))==null?void 0:T.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},h=function(){return t().metadataParts||[]};
D={};return _.G("div",{class:_.jQ("yt-content-metadata-view-model__metadata-row",(D["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=H,D["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var K,N=a==null?void 0:(K=a())==null?void 0:K.lockupMetadata;K=t();var k,T;return!!((N==null?0:(k=N.byline)==null?0:k.addPadding)&&((T=_.O(K,IQf))==null?void 0:T.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},D["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var K;
return!!(a==null?0:(K=a())==null?0:K.lockupMetadata)&&t().badges&&!t().metadataParts},D))},_.G(_.P5,{data:function(){return t().badges}},{badgeViewModel:function(K){return _.G("div",{class:"yt-content-metadata-view-model__badge"},_.G(_.Mi,{data:K.data,
numBadgesInRow:function(){var N,k;return((N=t())==null?void 0:(k=N.badges)==null?void 0:k.length)||0}}))}}),_.G(_.nY,{each:h},function(K,N){return _.G(_.FH,null,_.G(MJw,{metadataPart:K,
isOverlay:V,useMediumText:b,hideAvatar:w}),_.G(nNv,{delimiter:e,max:function(){return h().length},
index:N,isStandalone:!1}))}),_.G(_.E,{cond:function(){return t().isSpacerRow&&!H()},
then:function(){return _.G("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"vb");
_.Xo=_.l(function(D){D=_.FQ(D,{layout:0,isOverlay:!1});var t=D.data,H=D.layout,e=D.isOverlay,V=D.useMediumText,b=D.extensions,a=function(){return H()===0},w=function(){var K;
return((K=t().metadataRows)==null?void 0:K.filter(function(N){var k,T=b==null?void 0:(k=b())==null?void 0:k.lockupMetadata,c,U;k=!!((T==null?0:(c=T.description)==null?0:c.hideDescription)&&((U=_.O(N,IQf))==null?void 0:U.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var S,L;return!((T==null?0:(S=T.spacer)==null?0:S.hideSpacer)&&((L=_.O(N,IQf))==null?void 0:L.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||k)}))||[]},h={};
return _.G("yt-content-metadata-view-model",{class:_.jQ(D.className,"yt-content-metadata-view-model",(h["yt-content-metadata-view-model--inline"]=a,h["yt-content-metadata-view-model--tappable"]=function(){return _.J5(t().rendererContext)},h["yt-content-metadata-view-model--medium-text"]=V,h)),
el:_.FI(_.Yi(function(){return t().rendererContext}))},_.G(_.nY,{each:w},function(K,N){return _.G(_.FH,null,_.G(SMn,{metadataRow:K,
isInline:a,delimiter:function(){return t().delimiter},
isOverlay:e,useMediumText:V,extensions:b}),_.G(_.E,{cond:function(){return a()&&!K.isSpacerRow},
then:function(){return _.G(nNv,{delimiter:function(){return t().delimiter},
max:function(){return w().length},
index:N,isStandalone:!0})}}))}))},"wb");
_.Xo.idomCompat=!0;var Xja=_.l(function(D){var t=_.qS().resolve(_.by(_.tB)),H={};return _.G("yt-lockup-metadata-view-model",{class:_.jQ("yt-lockup-metadata-view-model",function(){a:{var e=D.lockupStyle();if(e==null?0:e.isOverlay)e="yt-lockup-metadata-view-model--overlay";else switch(e==null?void 0:e.arrangement){case 1:e="yt-lockup-metadata-view-model--horizontal";break a;default:e="yt-lockup-metadata-view-model--vertical"}}return e},function(){a:{var e=D.lockupStyle();
if(e==null?0:e.isTiny)e="yt-lockup-metadata-view-model--tiny";else switch(e==null?void 0:e.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":e="yt-lockup-metadata-view-model--compact";break a;default:e="yt-lockup-metadata-view-model--standard"}}return e},(H["yt-lockup-metadata-view-model--overlay"]=function(){var e;
return(e=D.lockupStyle())==null?void 0:e.isOverlay},H["yt-lockup-metadata-view-model--card"]=function(){var e;
return(e=D.lockupStyle())==null?void 0:e.isCard},H["yt-lockup-metadata-view-model--centered"]=function(){var e;
return(e=D.lockupStyle())==null?void 0:e.isCentered},H["yt-lockup-metadata-view-model--typography-bump"]=function(){var e;
return(e=D.lockupStyle())==null?void 0:e.typographyBump},H["yt-lockup-metadata-view-model--legacy-typography"]=function(){var e;
return(e=D.lockupStyle())==null?void 0:e.useLegacyTypography},H["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var e;
return(e=D.lockupStyle())==null?void 0:e.useRichGridLegacyTypography},H))},_.G(_.P5,{data:function(){return D.data().image}},{avatarStackViewModel:function(e){return _.G("div",{class:"yt-lockup-metadata-view-model__avatar"},_.G(_.ag,{data:e.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(e){return _.G("div",{class:"yt-lockup-metadata-view-model__avatar"},_.G(_.qi,{data:e.data}))},
decoratedAvatarViewModel:function(e){return _.G("div",{class:"yt-lockup-metadata-view-model__avatar"},_.G(_.Fo,{data:e.data}))}}),_.G("div",{class:"yt-lockup-metadata-view-model__text-container"},_.G("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var e;return(e=D.data().title)==null?void 0:e.content}},_.G(_.E,{cond:function(){return D.data().title},
then:function(e){return _.G(_.XW,{command:D.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.O7({color:function(){var V;a:{var b=D.lockupStyle();var a=(V=D.hovered)==null?void 0:V.call(D);V=!(t==null||!t());var w;if((b==null?0:(w=b.onFocusEffect)==null?0:w.textPrimaryColor)&&a&&(b=V?b.onFocusEffect.textPrimaryColor.darkTheme:b.onFocusEffect.textPrimaryColor.lightTheme)){b=_.Ih(b);break a}b=void 0}return b}}),
ariaLabel:D.lockupAccessibilityLabel},_.G(_.$7,{text:e,userInput:!0}))}})),_.G("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.O7({color:function(){var e;a:{var V=D.lockupStyle();var b=(e=D.hovered)==null?void 0:e.call(D);e=!(t==null||!t());var a;if((V==null?0:(a=V.onFocusEffect)==null?0:a.textSecondaryColor)&&b&&(V=e?V.onFocusEffect.textSecondaryColor.darkTheme:V.onFocusEffect.textSecondaryColor.lightTheme)){V=_.Ih(V);break a}V=void 0}return V}})},_.G(_.P5,{data:function(){return D.data().metadata}},{contentMetadataViewModel:function(e){return _.G(_.Xo,{data:e.data,
layout:1,useMediumText:function(){var V,b;return((V=D.lockupStyle())==null?void 0:V.typographyBump)||((b=D.lockupStyle())==null?void 0:b.useRichGridLegacyTypography)},
extensions:function(){var V,b,a,w;return{lockupMetadata:{byline:{hideAvatar:((V=D.lockupStyle())==null?void 0:V.arrangement)===0,addPadding:((b=D.lockupStyle())==null?void 0:b.arrangement)===1},description:{hideDescription:!((a=D.lockupStyle())==null||!a.compactMetadata)},spacer:{hideSpacer:!((w=D.lockupStyle())==null||!w.compactMetadata)}}}}})}})),_.G(_.P5,{data:function(){return D.data().attribution}},{attributionViewModel:function(e){return _.G("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.G(PLo,{data:e.data,
useSmallLayout:!0}))}})),_.G("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.G(_.P5,{data:function(){return D.data().menuButton}},{buttonViewModel:function(e){return _.G(_.JX,{data:e.data,
buttonOverrides:function(){var V;return((V=D.lockupStyle())==null?0:V.isOverlay)?{style:"overlay"}:void 0}})}})))},"xb");
Xja.idomCompat=!0;var f0n=_.l(function(D){var t=_.DY("notification-multi-action-renderer");_.SG(function(){requestAnimationFrame(function(){_.tp(t.value)})});
var H={},e={},V={};return _.G("notification-multi-action-renderer",{class:_.jQ("ytNotificationMultiActionRendererHost",(H.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var b;return(b=D.useLegacyShelfStyle)==null?void 0:b.call(D)},H)),
el:t},_.G("span",{"aria-live":"polite",class:_.jQ("ytNotificationMultiActionRendererTextContainer",(e.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var b;return(b=D.useLegacyShelfStyle)==null?void 0:b.call(D)},e))},_.G(_.$7,{text:function(){return D.data().responseText}})),_.G("div",{class:_.jQ("ytNotificationMultiActionRendererButtonContainer",(V.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var b;
return(b=D.useLegacyShelfStyle)==null?void 0:b.call(D)},V))},_.G(_.P5,{data:function(){var b;
return(b=D.data().buttons)==null?void 0:b.map(function(a){if(a=a.buttonRenderer){var w,h=Object,K=h.assign,N=(w=a.icon)==null?void 0:w.iconType;w=(w=a.command||a.serviceEndpoint||a.navigationEndpoint)?{innertubeCommand:w}:void 0;a={buttonViewModel:K.call(h,{},{iconName:N,onTap:w,trackingParams:a.trackingParams,titleFormatted:a.text?_.lf(a.text):void 0},L38(a))}}else a=void 0;return a}).filter(function(a){return!!a})}},{buttonViewModel:function(b,a){return _.G("div",null,_.G(_.JX,{data:b.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var w;return((w=D.useModernStyles)==null?0:w.call(D))?{type:a()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"yb");var Llv=_.l(function(D){var t=_.DY("notification-text-renderer");_.SG(function(){requestAnimationFrame(function(){_.tp(t.value)})});
return _.G("notification-text-renderer",{el:t,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.G(_.$7,{text:function(){return D.data().successResponseText}}))},"zb");_.f0=_.l(function(D){var t=_.rF(oAK,function(){var e;return AQT((e=D.contentId)==null?void 0:e.call(D))}),H=function(){var e;
return _.O((e=t())==null?void 0:e.command,_.vu)};
return _.G(_.E,{cond:function(){var e;if(!(e=H())){var V;e=_.O((V=t())==null?void 0:V.command,E1V)}return e},
then:function(){return _.G(_.E,{cond:H,then:function(){var e={};return _.G("div",{class:_.jQ("ytDismissibleItemReplacedContent",function(){var V;return gHK((V=D.aspectRatio)==null?void 0:V.call(D))})},_.G("div",{class:_.jQ((e.ytDismissibleItemAspectRatioContainer=function(){var V;
return((V=D.aspectRatio)==null?void 0:V.call(D))!==void 0},e))},_.G(_.P5,{data:function(){var V;
return(V=H())==null?void 0:V.item}},{notificationMultiActionRenderer:function(V){return _.G(f0n,{data:V.data,
useModernStyles:D.useModernStyle,useLegacyShelfStyle:D.useLegacyShelfStyle})},
notificationTextRenderer:Llv})))}})},
else:D.children})},"Ab");_.AvV=_.l(function(D){var t=D.data;var H=D.customCommandResolver;D=_.FI(_.wv({visibilityCallback:function(b){var a,w=(a=t().interaction)==null?void 0:a.onFirstVisible;b&&w&&_.IQ(w)},
showOption:_.n0}));var e=function(){var b;return((b=t().interaction)==null?0:b.onTap)?function(a){var w;F3V(a,(w=t().interaction)==null?void 0:w.onTap,H)}:void 0},V=function(){var b,a=t(),w=e(),h=(b=_.O(t().rendererContext,_.Pm))==null?void 0:b.label;
a:switch(a.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":b=1;break a;default:b=0}return{size:leD(a.size),type:b,onTap:w,accessibilityText:h}};
return _.G("ad-avatar-view-model",{class:function(){var b;return((b=t().interaction)==null?0:b.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:D},_.G(_.E,{cond:function(){return t().image},
then:function(b){return _.G(cQ6,{data:V,image:b})}}))},"Bb");_.L0=_.l(function(D){var t=_.FQ(D,{hasDot:!1,usedInMasthead:!1}),H=Object.assign({},t),e=t.data,V=t.hasDot;D=t.customCommandResolver;var b=t.usedInMasthead,a=(delete H.data,delete H.hasDot,delete H.customCommandResolver,delete H.usedInMasthead,H);t=function(){return e().style};
t!==void 0&&t!==null||_.uh(Error("Mh"));D=_.dF(function(){return e().interaction},D);
return _.G("ad-badge-view-model",{class:_.jQ(function(){var w;return((w=e().interaction)==null?0:w.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var w=a.adRenderingContextType(),h=b();
e();return w!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||h?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.FI(D)},_.G(_.hr,{data:function(){var w;e();return{type:2,text:(w=e().label)==null?void 0:w.content,adsIncludeDot:V(),isOverlay:e().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Cb");var gNo;_.A9=_.l(function(D){var t=D.data;var H=D.customCommandResolver;var e=D.adRenderingContextType;return _.G("ad-details-line-view-model",{class:function(){var V;return((V=t().interaction)==null?0:V.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.FI(_.wv({visibilityCallback:function(V){var b,a=(b=t().interaction)==null?void 0:b.onFirstVisible;V&&a&&_.IQ(a)},
showOption:_.n0}),_.dF(function(){return t().interaction},H))},_.G(_.E,{cond:function(){return t().style},
then:function(V){return _.G(_.nY,{each:function(){var b;return((b=t())==null?void 0:b.attributes)||[]},
keyBy:"INDEX"},function(b){return _.G(gNo,{attribute:b,style:V,adRenderingContextType:function(){return e()}})})}}))},"Db");
gNo=_.l(function(D){var t=D.attribute;var H=D.style;var e=D.adRenderingContextType;return _.G(_.E,{cond:function(){return t().text},
then:function(V){return _.G(_.$7,{text:V,className:function(){var b=e();H();return b==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Eb");var Jv9=_.l(function(D){var t=D.data;var H=D.typographyBump;var e=function(){return t().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
D={};return _.G(_.FH,null,_.G("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.G(_.$7,{text:function(){return t().headline},
className:_.jQ("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(D.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return e==null?void 0:e()},D.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(H==null?void 0:H())&&!(e==null?0:e())},D)),
linkInheritColor:!0}),_.G(_.E,{cond:function(){return t().description},
then:function(V){var b={};return _.G(_.$7,{text:V,className:_.jQ("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(b.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return e==null?void 0:e()},b.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(H==null?void 0:H())&&!(e==null?0:e())},b)),
linkInheritColor:!0})}}),_.G(_.E,{cond:function(){return t().secondaryDescription},
then:function(V){var b={};return _.G(_.$7,{text:V,className:_.jQ("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(b.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return H==null?void 0:H()},b)),
linkInheritColor:!0})}}),_.G("div",{class:function(){return e()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.G(_.E,{cond:function(){return t().adAvatar},
then:function(){return _.G("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.G(_.P5,{data:function(){return t().adAvatar}},{adAvatarViewModel:_.AvV}))}}),_.G(_.P5,{data:function(){return t().adBadge}},{adBadgeViewModel:function(V){return _.G(_.L0,{data:V.data,
hasDot:function(){return!!t().adDetailsLine},
adRenderingContextType:function(){return t().adRenderingContextType}})}}),_.G(_.P5,{data:function(){return t().adDetailsLine}},{adDetailsLineViewModel:function(V){return _.G(_.A9,{data:V.data,
adRenderingContextType:function(){return t().adRenderingContextType}})}}))),_.G("div",{class:function(){return e()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.G(_.P5,{data:function(){return t().menu}},{buttonViewModel:function(V){return _.G(_.JX,{data:V.data,
buttonOverrides:function(){a:switch(t().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var b="S";break a;default:b="M"}return{size:b}}})}})))},"Fb"),YMa=_.l(function(D){var t=D.data;
var H=D.noBottomMargin;var e=D.useVideoLockupTopPadding;var V=D.typographyBump;D={};D=_.jQ("ytwFeedAdMetadataViewModelHostMetadata",(D.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return H==null?void 0:H()},D.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return e==null?void 0:e()},D));
var b=function(){return t().adBadge};
b!==void 0&&b!==null||_.uh(Error("Nh"));b={};var a={};return _.G(_.FH,null,_.G(_.E,{cond:function(){return t().adAvatar},
then:function(){return _.G("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.G(_.P5,{data:function(){return t().adAvatar}},{adAvatarViewModel:function(w){return _.G(_.AvV,{data:w.data})}}))}}),_.G("div",{class:D},_.G("div",{class:_.jQ("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(b.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return V==null?void 0:V()},b.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(V==
null?void 0:V())&&_.r("web_enable_typography_bump_v2")},b))},_.G(_.$7,{text:function(){return t().headline},
linkInheritColor:!0})),_.G(_.E,{cond:function(){return t().description},
then:function(w){return _.G(_.$7,{text:w,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.G("div",{class:function(){return t().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.r("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.G(_.P5,{data:function(){return t().adBadge}},
{adBadgeViewModel:function(w){return _.G(_.L0,{data:w.data,
hasDot:function(){return!!t().adDetailsLine},
adRenderingContextType:function(){return t().adRenderingContextType}})}}),_.G(_.P5,{data:function(){return t().adDetailsLine}},{adDetailsLineViewModel:function(w){return _.G(_.A9,{data:w.data,
adRenderingContextType:function(){return t().adRenderingContextType}})}})),_.G(_.E,{cond:function(){return t().secondaryDescription},
then:function(w){return _.G(_.$7,{text:w,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.G("div",{class:_.jQ("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(a.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return e==null?void 0:e()},a))},_.G(_.P5,{data:function(){return t().menu}},{buttonViewModel:_.JX})))},"Gb"),gd=_.l(function(D){var t=D.data;
var H=D.noBottomMargin;var e=D.listenToTapEvent;var V=D.setTouchEndHandler;var b=D.useVideoLockupTopPadding;var a=D.typographyBump;D=_.wv({visibilityCallback:function(k){var T,c=(T=t().interaction)==null?void 0:T.onFirstVisible;k&&c&&_.IQ(c)},
showOption:_.n0});var w=_.dF(function(){return t().interaction},void 0,function(){return e==null?void 0:e()}),h=_.F(_.KR(!1,void 0,"a2FSrb")),K=h.next().value,N=h.next().value;
h=_.$X(function(k){(V==null?0:V())&&!K()&&(k.currentTarget.click(),N(!0),setTimeout(function(){N(!1)},100));
return!1});
return _.G("feed-ad-metadata-view-model",{class:function(){var k;return((k=t().interaction)==null?0:k.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.FI(D,w),"on:touchend":h},_.G(_.CY,null,_.G(_.oD,{when:function(){return t().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.G(Jv9,{data:t,
typographyBump:a})}),_.G(_.oD,{when:function(){return t().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.G(YMa,{data:t,
noBottomMargin:H,useVideoLockupTopPadding:b,typographyBump:a})})))},"Hb");var l06,vNQ;l06=_.uO.inlinePreviewEnabledSelector;_.J9=_.l(function(D){return _.G("yt-lockup-view-model",{class:_.jQ(D.className)},_.G(_.f0,{contentId:function(){return D.data().contentId},
useModernStyle:!0,aspectRatio:function(){var t,H;return((t=D.containerType)==null?void 0:t.call(D))!==3?rQV(D.data().contentType,(H=D.force16By9ThumbnailAspectRatio)==null?void 0:H.call(D)):void 0}},function(){return _.G(vNQ,Object.assign({},D))}))},"Ib");
vNQ=_.l(function(D){D=_.FQ(D,{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 t=D.data,H=D.containerLayoutConfig,e=D.containerType,V=D.sizing,b=D.protectBackground,a=D.typographyBump,w=D.force16By9ThumbnailAspectRatio,h=D.thumbnailFixedWidth,K=D.thumbnailTargetWidth,N=D.lockupExperiments,k=D.elementsPerRow,
T=_.qS().resolve(_.by(_.tB));D=_.FI(_.Yi(function(){var Mu;return(Mu=t())==null?void 0:Mu.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var c=_.dm(l06),U=_.qS().resolve(_.by(b$B)),S=U?{}:void 0,L=function(){var Mu,LQ,DO;return(DO=(LQ=_.O((Mu=t())==null?void 0:Mu.rendererContext,_.Pm))==null?void 0:LQ.label)!=null?DO:void 0},J=function(){var Mu;
return(Mu=_.O(t().metadata,_.QT6))==null?void 0:Mu.endorsement},g=function(){var Mu=H==null?void 0:H(),LQ;
if(Mu==null?0:Mu.containerType){var DO=(LQ=t())==null?void 0:LQ.contentType;LQ=N();var fQ=a(),yA=K(),T4=b();Mu=Object.assign({},OjT(jNA(Mu),TRK(Mu.responsiveSize),fQ,DO,Mu.force16By9ThumbnailAspectRatio,yA,T4,LQ),{thumbnailFixedWidth:Mu.contentPreviewWidth})}else Mu=OjT(e(),V(),a(),(DO=t())==null?void 0:DO.contentType,w(),K(),b(),N());return Mu};
U&&S&&U({enabled:function(){return c()},
itemPlaybackModel:function(){return t().itemPlayback},
thumbnailElRef:function(){return S.thumbnailElRef},
containerElRef:D,options:function(){var Mu=S.thumbnailOverlays||[],LQ=J(),DO;!LQ||((DO=N())==null?0:DO.onFocusEffect)||Mu.push(LQ);var fQ,yA;return{thumbnail:S.thumbnail,thumbnailOverlays:Mu,accessibilityText:L(),thumbnailSize:S.thumbnailSize,enableRounding:g().isCollection,containPlayerWithinThumbnail:g().isCollection,mouseleaveCallback:function(){R(!1)},
trackingParams:(fQ=_.O(t().rendererContext,_.nz))==null?void 0:(yA=fQ.loggingDirectives)==null?void 0:yA.trackingParams}}});
var Q=0;U=_.F(_.KR(!1,void 0,"JThLqe"));var u=U.next().value,R=U.next().value;U=_.F(_.KR(!1,void 0,"SSE3E"));var I=U.next().value,tT=U.next().value;U=_.$X(function(){I()?(_.Jy.cancelJob(Q),Q=_.Jy.addJob(function(){R(!0)},8,32)):R(!0);
return!0});
var ZV=_.$X(function(Mu){Mu=Mu.relatedTarget;var LQ=document.querySelector("ytd-video-preview");Mu&&LQ&&LQ.contains(Mu)||(Q&&(_.Jy.cancelJob(Q),Q=0),R(!1))});
_.Sj(function(){Q&&(_.Jy.cancelJob(Q),Q=0)});
var ED=YeT(function(){tT(!0)}),o$=ED.touchFeedbackEvents,jV=ED.touchFeedbackOnPointerUp,i8=ED.touchFeedbackOnPointerDown;
ED=ED.touchFeedbackOnPointerLeave;var g6={};return _.G(_.FH,null,_.G("div",{el:D,class:_.jQ("yt-lockup-view-model",function(){a:{var Mu=g();if(Mu.isOverlay)Mu="yt-lockup-view-model--overlay";else switch(Mu.arrangement){case 1:Mu="yt-lockup-view-model--horizontal";break a;default:Mu="yt-lockup-view-model--vertical"}}return Mu},function(){a:{var Mu=g();
if(Mu.isOverlay)Mu="yt-lockup-view-model--overlay";else{switch(Mu.collectionStackNumber){case 1:Mu="yt-lockup-view-model--collection-stack-1";break a;case 2:Mu="yt-lockup-view-model--collection-stack-2";break a}Mu=void 0}}return Mu},function(){var Mu;
return _.feV((Mu=t())==null?void 0:Mu.contentId)},(g6["yt-lockup-view-model--card"]=function(){return g().isCard},g6["yt-lockup-view-model--compact"]=function(){return g().isTiny||g().sizing!=="STANDARD"},g6["yt-lockup-view-model--protect-background"]=b,g6["yt-lockup-view-model--add-margins"]=function(){return g().addMarginForFullbleed},g6["yt-lockup-view-model--centered"]=function(){return g().isCentered},g6["yt-lockup-view-model--fullbleed"]=function(){return g().fullbleed},g6["yt-lockup-view-model--single-column-grid"]=
function(){return k()===1&&e()===2},g6["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var Mu;
return(Mu=N())==null?void 0:Mu.useRichGridLegacyMargin},g6)),
"on:mousedown":i8,"on:mouseleave":ZV,"on:mouseup":jV,"on:mouseover":U,"on:touchstart":i8,"on:touchend":jV,"on:pointerleave":ED},_.G(_.fE,{model:function(){var Mu,LQ=Object,DO=LQ.assign,fQ=(S==null?void 0:S.thumbnailSize)||"small";a:{var yA=g();if(J())yA=12;else{switch(yA.collectionStackNumber){case 1:yA=8;break a;case 2:yA=12;break a}yA=void 0}}fQ={thumbnailSize:fQ,triggerEvents:!0,customTopExtend:yA};var T4;yA=(Mu=N())==null?void 0:Mu.onFocusEffect;var Mw=!(T==null||!T());if(yA){var X6,yZ;Mu=Mw?
(X6=yA.onFocusColor)==null?void 0:X6.darkTheme:(yZ=yA.onFocusColor)==null?void 0:yZ.lightTheme;var kQ,FX;X6=Mw?(kQ=yA.keyLightColor)==null?void 0:kQ.darkTheme:(FX=yA.keyLightColor)==null?void 0:FX.lightTheme;var qw;kQ=Mw?(T4=yA.touchResponseColor)==null?void 0:T4.darkTheme:(qw=yA.touchResponseColor)==null?void 0:qw.lightTheme;T4={background:Mu!==void 0?_.Ih(Mu):void 0,keyLight:X6!==void 0?_.Ih(X6):void 0};qw=[];yA=_.F(yA.lightingTechniques||[]);for(FX=yA.next();!FX.done;FX=yA.next())switch(FX.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":qw.push(2);
break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":qw.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":qw.push(3)}T4={hoverEffect:{palette:T4,lightingTechniques:qw},touchEffect:{palette:{background:kQ!==void 0?_.Ih(kQ):void 0}}}}else T4={};return DO.call(LQ,{},fQ,T4)},
hovered:function(){return u()},
pointerDownEvent:o$.pointerDownEvent,pointerUpEvent:o$.pointerUpEvent,pointerLeaveEvent:o$.pointerLeaveEvent}),_.G(_.XW,{command:function(){var Mu;return _.gF((Mu=t())==null?void 0:Mu.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return h()&&g().arrangement===1?"width: "+h():""}},_.G(_.P5,{data:function(){var Mu;
return(Mu=t())==null?void 0:Mu.contentImage}},{thumbnailViewModel:function(Mu){return _.G(_.PV,{data:Mu.data,
aspectRatio:function(){return g().aspectRatio},
disableRounding:function(){return g().disableRounding},
width:K,hovered:function(){return u()&&!(c()&&t().itemPlayback)},
isClip:function(){var LQ;return((LQ=t())==null?void 0:LQ.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:e28(S),lockupExperiments:function(){return N()}})},
collectionThumbnailViewModel:function(Mu){return _.G(cv6,{data:Mu.data,aspectRatio:function(){return g().aspectRatio},
disableRounding:function(){return g().disableRounding},
width:K,doubleStack:function(){return g().collectionStackNumber===2},
hovered:function(){return u()&&!(c()&&t().itemPlayback)},
playbackRef:e28(S)})},
decoratedAvatarViewModel:_.Fo})),_.G("div",{class:"yt-lockup-view-model__metadata"},_.G(_.P5,{data:function(){var Mu;return(Mu=t())==null?void 0:Mu.metadata}},{lockupMetadataViewModel:function(Mu){return _.G(Xja,{data:Mu.data,
hovered:u,lockupStyle:g,lockupCommand:function(){var LQ;return _.gF((LQ=t())==null?void 0:LQ.rendererContext)},
lockupAccessibilityLabel:function(){return L()}})},
feedAdMetadataViewModel:function(Mu){return _.G(gd,{data:Mu.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:a})}}),_.G(_.P5,{data:function(){var Mu;
return(Mu=t())==null?void 0:Mu.attachmentSlot}},{lockupAttachmentsViewModel:function(Mu){return _.G(O$w,{data:Mu.data,
lockupStyle:g})}}))),_.G(_.P5,{data:function(){var Mu;
return(Mu=t())==null?void 0:Mu.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(Mu){return _.G(O$w,{data:Mu.data,
lockupStyle:g})}}))},"Jb");
_.J9.idomCompat=!0;_.hB(_.J9,"yt-lockup-view-model",{props:{data:_.ij,containerLayoutConfig:_.ij,containerType:_.ij,sizing:_.ij,protectBackground:_.ij,typographyBump:_.ij,thumbnailFixedWidth:_.ij,thumbnailTargetWidth:_.ij,force16By9ThumbnailAspectRatio:_.ij,className:_.ij,lockupExperiments:_.ij,elementsPerRow:_.ij}});var x6D,pj9=_.l(function(D){var t=_.FQ(D,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),H=t.text,e=t.alwaysShowTruncationText;D=t.truncationText;var V=t.onTextClick,b=t.maxLines,a=t.disableTextMask,w=t.textStyle,h=t.accessibilityLabel,K=t.textSize,N=t.alwaysTruncateAtMaxLines,k=t.expandOnClick;t=_.F(_.KR(!1,void 0,"EzA1q"));var T=t.next().value,c=t.next().value;t=_.$X(function(){k()&&c(!T());V==null||V()});
var U=function(){a:switch(K()){case "medium":var I=2;break a;case "large":I=2.2;break a;default:I=1.8}return I},S=W3k(H,function(){return T()?Infinity:b()},U,a,N,T),L=S.isTruncated;
H=S.displayText;N=S.contentRef;var J=S.hiddenRef,g=S.placeholderTruncationTextRef,Q=S.hiddenTruncationTextRef;S=S.truncationTextRef;var u={},R={};return _.G("truncated-text",{class:_.jQ((u["yt-truncated-text"]=!0,u["yt-truncated-text--overlay"]=function(){return w()==="overlay"},u["yt-truncated-text--medium-text"]=function(){return K()==="medium"},u["yt-truncated-text--large-text"]=function(){return K()==="large"},u["yt-truncated-text--primary-text"]=function(){return w()==="primary-text"},u)),
"on:click":t,style:function(){return"line-height: "+U()+"rem;"}},_.G("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:N,style:function(){return T()?"":"max-height: "+b()*U()+"rem;"}},_.G(_.$7,{text:H}),_.G("button",{"aria-disabled":!0,
disabled:!0,class:"yt-truncated-text__inline-button",el:g,style:function(){return"line-height: "+U()+"rem;"}},_.G(_.$7,{text:D}))),_.G("truncated-text-content",{class:_.jQ("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:J,style:function(){return T()?"":"max-height: "+b()*U()+"rem;"},
"aria-hidden":"true"},_.G(_.$7,{text:H}),_.G("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:Q,style:function(){return"line-height: "+U()+"rem;"}},_.G(_.$7,{text:D}))),_.G("button",{"aria-label":h,
class:_.jQ((R["yt-truncated-text__absolute-button"]=function(){return!a()},R["yt-truncated-text__bottom-button"]=function(){return a()},R["yt-truncated-text--hidden"]=function(){return!(!T()&&(e!=null&&e()||L()))},R)),
el:S,style:function(){return"line-height: "+U()+"rem;"}},_.G(_.$7,{text:D})))},"Lb");
pj9.idomCompat={callbacks:{onTextClick:!0}};var Rqv=_.l(function(D){var t=D.data;D=D.className;var H=_.jj(function(){return QN$(t())},void 0,"uDhDke"),e=_.G(_.FH,null,_.G(_.E,{cond:function(){return t().heroText||t().image},
then:function(){return _.G(d_n,{data:t})}}),_.G(x_B,{data:t,
sizeSmall:function(){return t().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.G("yt-video-attribute-view-model",{class:D},_.G("div",{class:function(){var V=t();a:switch(V.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var b="yt-video-attribute-view-model--vertical";break a;default:b="yt-video-attribute-view-model--horizontal"}a:switch(V.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var a="yt-video-attribute-view-model--image-small";break a;default:a="yt-video-attribute-view-model--image-large"}a:switch(V.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var w=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":w="yt-video-attribute-view-model--image-avatar";break a;default:w=""}a:switch(V.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var h="yt-video-attribute-view-model--metadata-header";break a;default:h=""}a:switch(V.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var K="yt-video-attribute-view-model--container-card";break a;default:K=""}return["yt-video-attribute-view-model",b,a,
w,h,K,QN$(V)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.O7({"background-color":function(){var V=t();if(V.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var b="";else{b=V.lightColorPalette;V=V.darkColorPalette;var a,w=((a=_.qS().resolve(_.by(_.tB)))==null?0:a())&&V?V:b;b=(b=w==null?void 0:w.section2Color)?_.Qk(b):""}return b}})},_.G(_.E,{cond:H,
then:function(){return _.G(_.XW,{className:"yt-video-attribute-view-model__content-container",command:H,role:"group",ariaLabel:function(){return t().title}},e)},
else:function(){return _.G("div",{class:"yt-video-attribute-view-model__content-container"},e)}})))},"Mb");
Rqv.idomCompat=!0;var d_n=_.l(function(D){var t=D.data;var H,e=(H=_.qS().resolve(_.by(_.tB)))==null?void 0:H(),V=function(){return e&&t().darkThemeImage?t().darkThemeImage:t().image},b=_.jj(function(){return yQV(t())},void 0,"UDqj0b");
return _.G("div",{class:"yt-video-attribute-view-model__hero-section"},_.G(_.CY,null,_.G(_.oD,{when:V},function(){return _.G(_.bi,{data:function(){return V()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.G(_.oD,{when:function(){return t().heroText}},function(){return _.G("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.G("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return t().heroText}))})),_.G(_.E,{cond:function(){return t().overflowMenuOnTap},
then:function(){return _.G("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.G(_.gW,{data:b,iconName:"MORE_VERT"}))}}))},"Nb");
d_n.idomCompat=!0;var x_B=_.l(function(D){var t=D.data;D=D.sizeSmall;var H=function(){return t().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},e=_.jj(function(){return Wc(_.uf({innertubeCommand:QN$(t())}))?"link":QN$(t())?"button":"group"},void 0,"e2MmYe"),V={};
return _.G("div",{class:_.jQ("yt-video-attribute-view-model__metadata",(V["yt-video-attribute-view-model--small-font"]=D,V)),role:e},_.G("h1",{class:"yt-video-attribute-view-model__title"},function(){return t().title}),_.G(_.E,{cond:function(){return t().subtitle},
then:function(){return _.G("h4",{class:"yt-video-attribute-view-model__subtitle"},_.G(_.E,{cond:H,then:function(){return _.G(pj9,{text:function(){return IeD(t().subtitle)},
truncationText:function(){return IeD(t().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.G("span",null,function(){return t().subtitle})}}))}}),_.G(_.E,{cond:function(){return t().secondarySubtitle},
then:function(b){return _.G("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.G(_.$7,{text:function(){var a=b();if(a!=null&&a.attachmentRuns){for(var w=[],h=_.F(a.attachmentRuns),K=h.next();!K.done;K=h.next())K=K.value,K.element&&w.push(Object.assign({},K,{element:Object.assign({},K.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));a=Object.assign({},a,{attachmentRuns:w})}return a}}))}}),_.G(_.P5,
{data:function(){return t().buttonViewModel}},{buttonViewModel:function(b){return _.G(_.JX,{data:b.data,
className:"yt-video-attribute-view-model__button"})}}))},"Ob");
x_B.idomCompat=!0;_.hB(Rqv,"yt-video-attribute-view-model",{props:{data:_.ij,className:_.ij}});var Ys=function(){var D=_.X.apply(this,arguments)||this;D.useHighlightStyling=_.r("web_enable_deeper_metadata_highlight_styling");D.isSearch=!1;D.JSC$15164_lastScrollContainerWidth=NaN;D.pageLoadingFromNavigation=!1;D.currentIndex=0;D.supportComponentResize=!1;return D};
_.P(Ys,_.X);_.q=Ys.prototype;
_.q.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}}}}}};
_.q.attached=function(){document.addEventListener("yt-page-type-changed",_.iK(this,this.onPageChange))};
_.q.detached=function(){document.removeEventListener("yt-page-type-changed",_.iK(this,this.onPageChange))};
_.q.getItemsPath=function(){return"data.cards"};
_.q.onIronResize=function(){this.updateListStyles()};
_.q.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var D;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(D=this.data)==null?void 0:D.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.r("problem_walkthrough_sd")&&!!this.centerItems};
_.q.computeCardListStyle=function(D){return D||null};
_.q.computeEmpty=function(D){return!this.get("cards.length",D)};
_.q.computeThumbnailStyle=function(D){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",D)||null};
_.q.computeHasSubtitle=function(D){return!!this.get("header.richListHeaderRenderer.subtitle",D)};
_.q.computeInitialCountNumber=function(D){return this.hasSquareMiniApp&&D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.q.computeUseFloorScrolling=function(D){return D==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.q.computeHasGameCard=function(D){return(D=this.get("cards",D))?D.some(function(t){return t.gameCardRenderer}):!1};
_.q.computeCenterHeaderTitle=function(D){return!(D==null||!D.centerHeaderTitle)};
_.q.computeHasPortraitMiniApp=function(D){return(D=D==null?void 0:D.cards)?D.some(function(t){return t.miniGameCardViewModel&&t.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.q.computeHasSquareMiniApp=function(D){return(D=D==null?void 0:D.cards)?D.some(function(t){return t.miniGameCardViewModel&&t.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.q.computeHasSkinnyWidthPortraitMiniApp=function(D){return(D=D==null?void 0:D.cards)?D.some(function(t){return t.miniGameCardViewModel&&t.miniGameCardViewModel.width===135}):!1};
_.q.computeCenterItems=function(D){return!!D};
_.q.computeHasInfoPanel=function(D){var t;return D==null?void 0:(t=D.cards)==null?void 0:t.some(function(H){return H.infoPanelContentRenderer})};
_.q.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.q.getItemByIndex=function(D){var t=this.items.children;return t&&t.length>D?t[D]:void 0};
_.q.onPageChange=function(){var D=this;this.pageLoadingFromNavigation=!0;_.Jy.addJob(function(){D.pageLoadingFromNavigation=!1;_.Kl(D.hostElement,"yt-terminate-video-preview-action")},8)};
_.q.updateListStyles=function(){if(_.r("problem_walkthrough_sd")&&this.JSC$15164_scrollContainer!==void 0){var D=this.JSC$15164_scrollContainer.clientWidth;D!==this.JSC$15164_lastScrollContainerWidth&&(this.JSC$15164_lastScrollContainerWidth=D,_.jZ(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(D*.8,415)+"px"}),_.Gf(this.hostElement,"iron-resize"))}};
_.ql.Object.defineProperties(Ys.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.r("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return!!((D=this.data)==null?0:(t=D.cards)==null?0:(H=t[0])==null?0:H.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return!!((D=this.data)==null?0:(t=D.cards)==null?0:(H=t[0])==null?0:H.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return _.r("enable_desktop_amsterdam_info_panels")&&!!((D=this.data)==null?0:(t=D.cards)==null?0:(H=t[0])==null?0:H.infoPanelContentRenderer)}}});
Ys.prototype.dataChanged=Ys.prototype.dataChanged;Ys.prototype.onIronResize=Ys.prototype.onIronResize;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ys.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ys.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Xn.YtdHorizontalListBehavior),_.x("design:type",Object)],Ys.prototype,"ytdHorizontalListBehavior",void 0);
_.d([_.C(_.GI),_.x("design:type",Object)],Ys.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ys.prototype,"data",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Ys.prototype,"useCustomColors",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ys.prototype,"useHighlightStyling",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.x("design:type",Object)],Ys.prototype,"cardListStyle",void 0);_.d([_.M({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.x("design:type",Boolean)],Ys.prototype,"empty",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.x("design:type",Boolean)],Ys.prototype,"hasSubtitle",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.x("design:type",Boolean)],Ys.prototype,"thumbnailStyle",void 0);_.d([_.M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.x("design:type",Boolean)],Ys.prototype,"hasGameCard",void 0);_.d([_.M({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.x("design:type",Boolean)],Ys.prototype,"centerHeaderTitle",void 0);
_.d([_.M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.x("design:type",Boolean)],Ys.prototype,"hasPortraitMiniApp",void 0);_.d([_.M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.x("design:type",Boolean)],Ys.prototype,"hasSquareMiniApp",void 0);_.d([_.M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.x("design:type",Boolean)],Ys.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.d([_.M({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.x("design:type",Boolean)],Ys.prototype,"hasInfoPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ys.prototype,"isSearch",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ys.prototype,"inlineStructuredDescription",void 0);_.d([_.o5("#scroll-container"),_.x("design:type",HTMLDivElement)],Ys.prototype,"JSC$15164_scrollContainer",void 0);
_.d([_.M({computed:"computeInitialCountNumber(data.style.type)"}),_.x("design:type",Number)],Ys.prototype,"initialCount",void 0);_.d([_.M({computed:"computeUseFloorScrolling(data.style.type)"}),_.x("design:type",Boolean)],Ys.prototype,"useFloorScrolling",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.x("design:type",Boolean)],Ys.prototype,"centerItems",void 0);_.d([_.M(),_.x("design:type",Object)],Ys.prototype,"pageLoadingFromNavigation",void 0);
_.d([_.M(),_.x("design:type",Object)],Ys.prototype,"currentIndex",void 0);_.d([_.M(),_.x("design:type",Number)],Ys.prototype,"scrollCount",void 0);_.d([_.M(),_.x("design:type",Object)],Ys.prototype,"supportComponentResize",void 0);_.d([_.o5("#items"),_.x("design:type",HTMLDivElement)],Ys.prototype,"items",void 0);_.d([_.rx("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ys.prototype,"onIronResize",null);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ys.prototype,"dataChanged",null);_.d([_.M({reflectToAttribute:!0}),_.m("inlineStructuredDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ys.prototype,"hideNavigationButton",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ys.prototype,"modernChapters",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ys.prototype,"hasVideoAttributeViewModels",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ys.prototype,"modernInfoPanels",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Ys);
_.p(Ys,"ytd-horizontal-card-list-renderer",function(){if(Ye3!==void 0)return Ye3;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Ye3=D},{mode:_.Kz("kevlar_poly_si_batch_j072")?1:2});var uk6=_.l(function(D){var t=D.data;var H={};return _.G("video-summary-content-view-model",{class:_.jQ("videoSummaryContentViewModelHost",D.className,(H.videoSummaryContentViewModelHostIsSearch=D.isSearch,H))},_.G(_.nY,{each:function(){var e=[],V=t().paragraphs;if(V==null||!V.length)return[];for(var b=0;b<V.length;b++){var a=_.O(V[b],y73),w=void 0;b>0&&(w=_.O(V[b-1],y73));w&&!!w.marker===!!a.marker?e[e.length-1].paragraphs.push(a):e.push({isList:!!a.marker,paragraphs:[a]})}return e},
keyBy:"INDEX"},function(e){return _.G(_.E,{cond:function(){return e().isList},
then:function(){return _.G("ul",{class:"videoSummaryContentViewModelList"},_.G(_.nY,{each:function(){return e().paragraphs},
keyBy:"INDEX"},function(V){return _.G("li",{class:"videoSummaryContentViewModelListItem"},_.G(_.$7,{text:function(){return V().text}}))}))},
else:function(){return _.G("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.G(_.nY,{each:function(){return e().paragraphs},
keyBy:"INDEX"},function(V){return _.G("p",{class:"videoSummaryContentViewModelParagraph"},_.G(_.$7,{text:function(){return V().text}}))}))}})}),_.G(_.E,{cond:function(){return!!_.O(t().likeButtonViewModel,_.et)&&!!_.O(t().dislikeButtonViewModel,_.HK)},
then:function(){return _.G("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.G("div",{class:"videoSummaryContentViewModelLikeButton"},_.G(_.ZZ,{data:function(){return _.O(t().likeButtonViewModel,_.et)},
disableIconAnimation:!0})),_.G(_.w7,{data:function(){return _.O(t().dislikeButtonViewModel,_.HK)}}))}}))},"Pb");
uk6.idomCompat=!0;_.hB(uk6,"video-summary-content-view-model",{props:{data:_.ij,isSearch:_.ij,className:_.ij}});var l4=function(){var D=_.X.apply(this,arguments)||this;var t,H;D.isExpanded=(H=(t=D.data)==null?void 0:t.isExpanded)!=null?H:!1;D.disableExpand=!1;D.showProminentLabel=!1;D.showRightSideLabel=!0;D.toggleExpandableContent=function(e){D.disableExpand||(e.stopPropagation(),_.V2(_.bK(e),D.hostElement,["info","expanded-subtitle"])||(D.isExpanded=!D.isExpanded,D.ytRendererBehavior.logExplicitClick(D.data),D.JSC$15175_cardList&&!_.r("expandable_metadata_a11y_fix_ks")&&_.Vi(D,function(){_.Dx(D.hostElement)})))};
D.useSquareThumbnail=!1;D.startX=0;return D};
_.P(l4,_.X);_.q=l4.prototype;_.q.computeUseSquareThumbnail=function(){var D;return(D=this.data)==null?void 0:D.useSquareThumbnail};
_.q.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"}}}}};
_.q.dataChanged=function(){if(this.data){var D,t;this.isExpanded=(t=(D=this.data)==null?void 0:D.isExpanded)!=null?t:!1;var H,e,V,b;if(D=this.isDarkTheme()?(H=this.data)==null?void 0:(e=H.colorData)==null?void 0:e.darkColorPalette:(V=this.data)==null?void 0:(b=V.colorData)==null?void 0:b.lightColorPalette){var a,w;if((a=this.data)==null?0:(w=a.colorData)==null?0:w.vibrantColorPalette)D.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.fb(this.hostElement,D)}}};
_.q.isExpandedChanged=function(){this.isExpanded&&this.JSC$15175_cardList&&_.Gf(this.JSC$15175_cardList,"iron-resize")};
_.q.computeIsExpanded=function(D){return!!D.isExpanded};
_.q.computeShowProminentLabel=function(D,t){var H;return!!(D==null?0:(H=D.header)==null?0:H.showLeadingCollapsedLabel)&&!t};
_.q.computeShowRightSideLabel=function(D,t){var H;return!(D==null?0:(H=D.header)==null?0:H.showLeadingCollapsedLabel)&&!t};
_.q.captureContentClick=function(D){if(!this.disableExpand)if(_.r("expandable_metadata_fix_killswitch")){var t=D.target;_.dHV(t,"ytd-macro-markers-list-item-renderer")||D.stopPropagation();(t==null?void 0:t.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.V2(_.bK(D),this.hostElement,["items"])||_.ed(_.bK(D),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.q.timestampClick=function(D){D.stopPropagation();var t,H;(D=(t=this.data)==null?void 0:(H=t.header)==null?void 0:H.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(D)};
_.q.onDown=function(D){D.stopPropagation();this.startX=D.detail?D.detail.x:0};
_.q.onUp=function(D){this.skipKeyInteraction(D)&&D.stopPropagation()};
_.q.skipKeyInteraction=function(D){var t=D.target;if((t==null?void 0:t.id)==="scroll-container"||(t==null?void 0:t.id)==="items"||D.detail&&D.detail.x!==this.startX)return!0;D=_.bK(D);D=_.F(D);for(t=D.next();!t.done;t=D.next()){t=t.value;if(t===this.hostElement)break;if(t.hasAttribute&&t.hasAttribute("skip-key-interaction"))return!0}return!1};
_.q.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.ql.Object.defineProperties(l4.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.O((D=this.data)==null?void 0:D.expandedContent,Q0n)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.O((D=this.data)==null?void 0:D.expandedContent,_.yXn)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var D,t;return!((D=this.data)==null||!D.useCustomColors)&&!((t=this.data)==null||!t.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var D,t;return!!((D=this.data)==null?0:(t=D.header)==null?0:t.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var D,t;return!!((D=this.data)==null?0:(t=D.header)==null?0:t.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var D,t;return!!((D=this.data)==null?0:(t=D.header)==null?0:t.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
l4.prototype.onUp=l4.prototype.onUp;l4.prototype.onDown=l4.prototype.onDown;l4.prototype.isExpandedChanged=l4.prototype.isExpandedChanged;l4.prototype.dataChanged=l4.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],l4.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],l4.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],l4.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],l4.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],l4.prototype,"isExpanded",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],l4.prototype,"disableExpand",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],l4.prototype,"isSearch",void 0);
_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],l4.prototype,"isWatch",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.x("design:type",Object)],l4.prototype,"showProminentLabel",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.x("design:type",Object)],l4.prototype,"showRightSideLabel",void 0);
_.d([_.M({value:!1,reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],l4.prototype,"hasVideoSummary",null);_.d([_.M({value:!1,reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],l4.prototype,"hasLockupViewModel",null);_.d([_.M({reflectToAttribute:!0}),_.m("data","isWatch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],l4.prototype,"useCustomColors",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],l4.prototype,"showInfoButton",null);_.d([_.m("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],l4.prototype,"showTimestamp",null);_.d([_.m("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],l4.prototype,"showExpandedSubtitle",null);
_.d([_.m("data","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],l4.prototype,"showThumbnail",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],l4.prototype,"useVppShoppingDestinationStyle",null);_.d([_.M(),_.x("design:type",Object)],l4.prototype,"toggleExpandableContent",void 0);_.d([_.o5("ytd-horizontal-card-list-renderer"),_.x("design:type",Object)],l4.prototype,"JSC$15175_cardList",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.x("design:type",Object)],l4.prototype,"useSquareThumbnail",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],l4.prototype,"dataChanged",null);_.d([_.Os("isExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],l4.prototype,"isExpandedChanged",null);
_.d([_.rx("down"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],l4.prototype,"onDown",null);_.d([_.rx("up"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],l4.prototype,"onUp",null);_.d([_.Y({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],l4);
_.p(l4,"ytd-expandable-metadata-renderer",function(){if(W_B!==void 0)return W_B;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!isExpanded]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return W_B=D},{mode:1});var WlQ,I0f=function(){if(WlQ!==void 0)return WlQ;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return WlQ=D};_.hB(_.ag,"yt-avatar-stack-view-model",{props:{className:_.ij,data:_.ij,overrides:_.ij,isOverlay:_.ij,useMediumText:_.ij,decorations:_.ij,hideAvatar:_.ij}});_.AB("itemSectionRenderer","videoRenderer","ytd-video-renderer");var vV=function(){var D=_.X.apply(this,arguments)||this;D.disableExpand=!1;D.shouldShowChannelInfo=!1;D.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return D};
_.P(vV,_.X);_.q=vV.prototype;_.q.computeUseSearchUi=function(){var D,t;return this.isSearch||((D=this.data)==null?void 0:(t=D.style)==null?void 0:t.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.q.computeUseThreeLineTitle=function(){var D;return((D=this.data)==null?void 0:D.maxTitleLines)===3};
_.q.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.r("polymer_video_renderer_defer_menu")&&!gWQ?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"}}}};
_.q.attached=function(){_.kL(this.hostElement,"blue-links",_.r("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.T1(_.Kg(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var D=this.get("data.buttons.buttonRenderer.serviceEndpoint"),t;D&&((t=_.O(D.commandMetadata,_.uq))==null?0:t.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(D);this.updateInlinePreviewHoverListeners()};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15180_inlinePreviewHoverListener=v5({mediaRenderer:this,lockupElement:this.JSC$15180_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.q.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15180_inlinePreviewHoverListener)==null||t8(D)};
_.q.onTextWrapperClick=function(D){var t,H,e=this.hideTranslation?(t=this.data)==null?void 0:t.untranslatedNavigationEndpoint:(H=this.data)==null?void 0:H.navigationEndpoint;t=_.V2(_.bK(D),this.hostElement,["expandable-metadata"]);!e||t&&!_.r("expandable_metadata_fix_killswitch")||_.ed(_.bK(D),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Gf(this.hostElement,"yt-navigate",{endpoint:e})};
_.q.computeThumbnailWidth=function(D,t,H,e,V){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:e?V==="MASSIVE"?600:V==="BIG"?500:V==="MEDIUM"?450:420:H?360:t?128:D?210:246};
_.q.computeUseBiggerThumbs=function(D){return D&&_.r("enable_desktop_search_bigger_thumbs")};
_.q.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.q.computeVideoStyle=function(){if(_.r("enable_video_style")){var D,t;return(D=this.data)==null?void 0:(t=D.style)==null?void 0:t.value}};
_.q.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.q.handleHideItemSectionVideosByIdCommand=function(D){var t;D=(t=_.O(D,TJ4))==null?void 0:t.videoId;this.data&&this.data.videoId===D&&(this.isHidden=!0)};
_.q.getMetadataSnippetContainerClass=function(D){return D?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.q.computeTitleText=function(D,t,H){return D?H:t};
_.q.computeDescriptionSnippet=function(D,t,H){return D?H:t};
_.q.computeSnippetText=function(D,t,H){return D?H:t};
_.q.computeNavigationEndpoint=function(D,t){return D?t==null?void 0:t.untranslatedNavigationEndpoint:t==null?void 0:t.navigationEndpoint};
_.q.hideInlineTitleIcon=function(D,t){return D||!t};
_.ql.Object.defineProperties(vV.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 D;return(D=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?D:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return!!(this==null?0:(D=this.data)==null?0:(t=D.channelThumbnailSupportedRenderers)==null?0:(H=t.channelThumbnailWithLinkRenderer)==null?0:H.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.O((D=this.data)==null?void 0:D.avatar,BWV)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15180_inlinePreviewHoverListener)==null?0:sv(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.ql.Object.defineProperties(vV,{template:{configurable:!0,enumerable:!0,get:function(){return I0f()}}});
vV.prototype.dataChanged=vV.prototype.dataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],vV.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],vV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],vV.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.C(_.jL),_.x("design:type",Object)],vV.prototype,"ytdLockupBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],vV.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],vV.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],vV.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],vV.prototype,"isBackstageVideo",void 0);
_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],vV.prototype,"isPostCompactVideo",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],vV.prototype,"isHistory",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],vV.prototype,"isRichGridVideoPost",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],vV.prototype,"isHidden",void 0);
_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],vV.prototype,"isSearch",void 0);_.d([_.M({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.x("design:type",Boolean)],vV.prototype,"useSearchUi",void 0);_.d([_.M({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.x("design:type",Boolean)],vV.prototype,"useThreeLineTitle",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.x("design:type",Boolean)],vV.prototype,"useBiggerThumbs",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.x("design:type",Object)],vV.prototype,"videoStyle",void 0);_.d([_.M({computed:"computeDisableExpand(videoStyle)"}),_.x("design:type",Object)],vV.prototype,"disableExpand",void 0);
_.d([_.M({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.x("design:type",Object)],vV.prototype,"shouldShowChannelInfo",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.sa("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],vV.prototype,"biggerThumbsStyle",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.x("design:type",String)],vV.prototype,"inlineTitleIcon",void 0);_.d([_.M({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.x("design:type",Object)],vV.prototype,"computedNavigationEndpoint",void 0);_.d([_.M({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(D,t){return _.jR(D.entities,"searchVideoResultEntity",t)}}),
_.x("design:type",Object)],vV.prototype,"searchVideoResultEntity",void 0);_.d([_.o5("ytd-thumbnail"),_.x("design:type",HTMLElement)],vV.prototype,"thumbnail",void 0);_.d([_.o5("#dismissible"),_.x("design:type",HTMLElement)],vV.prototype,"JSC$15180_dismissibleMedia",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vV.prototype,"dataChanged",null);
_.d([_.m("searchVideoResultEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vV.prototype,"hideTranslation",null);_.d([_.m("searchVideoResultEntity"),_.x("design:type",Array),_.x("design:paramtypes",[])],vV.prototype,"hiddenBadgeGroups",null);_.d([_.m("data","useAvatar"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vV.prototype,"shouldShowChannelThumbnail",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vV.prototype,"useAvatar",null);
_.d([_.m("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vV.prototype,"isHovered",null);_.d([_.Y({is:"ytd-video-renderer",disableElementRegistration:!0})],vV);_.p(vV,"ytd-video-renderer",function(){return I0f()},{mode:_.Kz("kevlar_poly_si_batch_j047")?1:2});var p0=function(){var D=_.X.apply(this,arguments)||this;D.editDialog=null;D.roundedContainer=!0;D.isLoading=!1;D.isRichGrid=!1;D.isRichGridRepost=!1;D.reduceSidePaddings=_.r("reduce_side_paddings_in_shelf");D.JSC$15187_spinnerEl=null;return D};
_.P(p0,_.X);_.q=p0.prototype;
_.q.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"}}}};
_.q.contentTextChanged=function(){this.expander.reset()};
_.q.dataChanged=function(){var D=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var t=0,H=this.data.actions&&this.data.actions.length;t<H;t++)this.openEditDialog(_.O(this.data.actions[t],qrm));if((t=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(t=this.get("buttonRenderer.hint.hintRenderer.hintId",t))&&t.startsWith("share-post-hint")){var e=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(e){_.Si.getInstance();var V=Xr(_.H7(_.OT("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Jy.addLowPriorityJob(function(){_.k0(D.hostElement,V,e)})}}}};
_.q.updatePoll=function(D){D>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.q.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15187_spinnerEl||(this.JSC$15187_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Kg(this.hostElement).appendChild(this.JSC$15187_spinnerEl));this.JSC$15187_spinnerEl&&(this.JSC$15187_spinnerEl.active=this.isLoading)};
_.q.onYtNavigate=function(D){var t=this.get("updateCommentDialogEndpoint",D.detail.endpoint);t&&(this.openEditDialog(t),D.stopPropagation())};
_.q.onYtCommentboxDismiss=function(){this.editDialog=null};
_.q.onYtCommentPollRevert=function(D,t){t&&this.updatePoll(t.selectedChoiceIndex)};
_.q.onYtServiceRequestSent=function(D,t){var H;t.endpoint&&(_.O(t.endpoint,awn)||_.O(t.endpoint,FOQ)&&((H=_.O(t.endpoint,FOQ))==null||!H.clientActions))&&(this.isLoading=!0);if(t.actions)for(D=0;D<t.actions.length;D++)H=t.actions[D],_.O(H,xq)&&(H=this.get("updateBackstagePollAction.selectedChoiceIndex",H),H==void 0&&(H=-1),this.updatePoll(H))};
_.q.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.q.openEditDialog=function(D){D&&D.dialog&&(this.editDialog=D.dialog,D=this.editDialogEl.firstElementChild)&&(D.focus(),D.openDialog&&D.openDialog())};
_.q.computeIsPostHidden=function(D,t){return!!D||t};
_.q.computeSurfaceType=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.q.computeUsesCompactLockup=function(D){return D==="BACKSTAGE_SURFACE_TYPE_HOME"||D==="BACKSTAGE_SURFACE_TYPE_SEARCH"||D==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||D==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||D==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||D==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.q.computeShowWithoutToolbar=function(D){return!D.actionButtons&&!D.actionMenu};
_.q.computePostAttachment=function(D){if(D.backstageAttachment){if(_.O(D.backstageAttachment,lBo))return"poll";if(_.O(D.backstageAttachment,Oia))return"quiz";if(_.O(D.backstageAttachment,_.ZB))return"video";if(_.O(D.backstageAttachment,UB4))return"uploaded-videos";if(_.O(D.backstageAttachment,mk6))return D.contentText?"image":"image-only";if(_.O(D.backstageAttachment,jja))return"playlist"}return"none"};
_.q.computePostTabIndex=function(D){return D?0:-1};
_.q.computeButtonTooltipPosition=function(D){return this.computeUsesCompactLockup(D)?"top":"bottom"};
_.q.computeHasText=function(D){return!(D==null||!D.contentText)};
_.q.onTap=function(D){var t,H;if(((t=this.data)==null?0:t.navigationEndpoint)&&((H=this.data)==null?void 0:H.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var e;((e=this.data)==null?0:e.navigationEndpoint)&&!_.ed(_.bK(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.ql.Object.defineProperties(p0.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.voteCount)||_.H7("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.O(this.data.backstageAttachment,lBo))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.O(this.data.backstageAttachment,UB4))}}});
p0.prototype.onYtServiceRequestCompleted=p0.prototype.onYtServiceRequestCompleted;p0.prototype.onYtServiceRequestSent=p0.prototype.onYtServiceRequestSent;p0.prototype.onYtCommentPollRevert=p0.prototype.onYtCommentPollRevert;p0.prototype.onYtCommentboxDismiss=p0.prototype.onYtCommentboxDismiss;p0.prototype.onYtNavigate=p0.prototype.onYtNavigate;p0.prototype.isLoadingChanged=p0.prototype.isLoadingChanged;p0.prototype.dataChanged=p0.prototype.dataChanged;p0.prototype.contentTextChanged=p0.prototype.contentTextChanged;
_.d([_.C(_.GI),_.x("design:type",Object)],p0.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],p0.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],p0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],p0.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],p0.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],p0.prototype,"editDialog",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],p0.prototype,"roundedContainer",void 0);_.d([_.M(),_.x("design:type",Object)],p0.prototype,"isLoading",void 0);_.d([_.M({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.x("design:type",String)],p0.prototype,"surface",void 0);
_.d([_.M({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.x("design:type",Boolean)],p0.prototype,"usesCompactLockup",void 0);_.d([_.M({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],p0.prototype,"showWithoutToolbar",void 0);_.d([_.M({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.x("design:type",String)],p0.prototype,"attachment",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],p0.prototype,"isRichGrid",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],p0.prototype,"isRichGridRepost",void 0);_.d([_.M({reflectToAttribute:!0,value:_.r("use_better_post_dismissals")}),_.x("design:type",Boolean)],p0.prototype,"useBetterPostDismissals",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],p0.prototype,"reduceSidePaddings",void 0);
_.d([_.M({computed:"computeHasText(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],p0.prototype,"hasText",void 0);_.d([_.o5("#expander"),_.x("design:type",Object)],p0.prototype,"expander",void 0);_.d([_.o5("#action-buttons"),_.x("design:type",Object)],p0.prototype,"actionButtons",void 0);_.d([_.o5("#edit-dialog"),_.x("design:type",HTMLElement)],p0.prototype,"editDialogEl",void 0);
_.d([_.Os("data.contentText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p0.prototype,"contentTextChanged",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p0.prototype,"dataChanged",null);_.d([_.Os("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p0.prototype,"isLoadingChanged",null);
_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],p0.prototype,"onYtNavigate",null);_.d([_.rx("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],p0.prototype,"onYtCommentboxDismiss",null);_.d([_.rx("yt-comment-poll-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],p0.prototype,"onYtCommentPollRevert",null);
_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],p0.prototype,"onYtServiceRequestSent",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],p0.prototype,"onYtServiceRequestCompleted",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],p0.prototype,"voteCount",null);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],p0.prototype,"commentCount",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],p0.prototype,"hasPoll",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],p0.prototype,"hasUploadedVideo",null);_.d([_.Y({is:"ytd-post-renderer",disableElementRegistration:!0})],p0);
_.p(p0,"ytd-post-renderer",function(){if(K_v!==void 0)return K_v;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return K_v=D},{mode:1});var QXn;var yvn;var dd=function(){return _.X.apply(this,arguments)||this};
_.P(dd,_.X);dd.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],dd.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],dd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Xn.YtdHorizontalListBehavior),_.x("design:type",Object)],dd.prototype,"ytdHorizontalListBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],dd.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],dd.prototype,"data",void 0);
_.d([_.M({value:"$.items.children"}),_.x("design:type",String)],dd.prototype,"itemsPath",void 0);_.d([_.M({value:1}),_.x("design:type",Number)],dd.prototype,"initialCount",void 0);_.d([_.M({reflectToAttribute:!0,value:_.r("enable_community_page_on_desktop")}),_.x("design:type",Boolean)],dd.prototype,"useSmallerPostImageAttachments",void 0);_.d([_.M(),_.x("design:type",String)],dd.prototype,"surface",void 0);_.d([_.Y({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],dd);
_.p(dd,"ytd-post-multi-image-renderer",function(){if(yvn!==void 0)return yvn;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return yvn=D},{mode:_.Kz("kevlar_poly_si_batch_j079")?1:2});var BpQ={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},authorCommentBadge:{id:"author-comment-badge",mapping:{renderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},xs=function(){var D=_.X.apply(this,arguments)||this;D.hasInlineCommentSection=!1;D.editDialog=null;D.isLoading=!1;D.shouldHideAuthor=!1;D.shouldShowVideoTime=!1;
D.isInEngagementPanel=!1;D.hideBorder=!1;D.usesFullLockup=!1;D.shouldShowMenuInCompactView=!1;D.JSC$15202_spinnerEl=null;D.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return D};
_.P(xs,_.X);_.q=xs.prototype;_.q.configureRendererStamper=function(){return BpQ};
_.q.computeIsPollHeaderEnabled=function(D){return(D==null?void 0:D.pollMetadataIcon)!=null};
_.q.getPublishTimeStampString=function(D,t){t=new Date((Number(t)-60*((new Date).getTimezoneOffset()-(new Date(Number(t)*1E3)).getTimezoneOffset()))*1E3);t=(new tG(10)).format(t);if(D&&D.runs&&D.runs.length)for(var H=0;H<D.runs.length;H++)D.runs[H].text&&(D.runs[H].text=D.runs[H].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",t));return D};
_.q.created=function(){this.JSC$15202_spinnerEl=null};
_.q.contentTextChanged=function(){this.expander.reset()};
_.q.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var D;if((D=this.data)==null?0:D.actions){D=_.F(this.data.actions);for(var t=D.next();!t.done;t=D.next())this.openEditDialog(_.O(t.value,qrm))}};
_.q.handleSignalActionOpenPostCommentDialogAction=function(){_.Kg(this.hostElement).querySelector("#action-buttons").reply()};
_.q.updatePoll=function(D,t){t&&this.set("data.pollMetadataVoteCountText",t);this.hasInlineCommentSection&&(D=D>=0,t=_.Kg(this.hostElement).querySelector("#action-buttons"),D?t.reply():t.hideReplyDialog())};
_.q.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15202_spinnerEl||(this.JSC$15202_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Kg(this.hostElement).appendChild(this.JSC$15202_spinnerEl));this.JSC$15202_spinnerEl&&(this.JSC$15202_spinnerEl.active=this.isLoading)};
_.q.onYtNavigate=function(D){var t=this.get("updateCommentDialogEndpoint",D.detail.endpoint);t&&(this.openEditDialog(t),D.stopPropagation())};
_.q.onYtCommentboxDismiss=function(){this.editDialog=null};
_.q.onYtCommentPollRevert=function(D,t){t&&this.updatePoll(t.selectedChoiceIndex,t.totalVotes)};
_.q.onYtServiceRequestSent=function(D,t){D.stopPropagation();D=_.O(t.endpoint,FOQ);if(_.O(t.endpoint,awn)||D&&!D.clientActions)this.isLoading=!0;if(t.actions)for(D=0;D<t.actions.length;D++){var H=t.actions[D],e=_.O(H,xq);e&&(H=this.get("updateBackstagePollAction.selectedChoiceIndex",H),H===void 0&&(H=-1),this.updatePoll(H,e.totalVotes))}};
_.q.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.q.openEditDialog=function(D){D&&D.dialog&&(this.editDialog=D.dialog,D=this.editDialogElement.firstElementChild)&&(D.focus(),D.openDialog&&D.openDialog())};
_.q.computeIsBodyHidden=function(D,t){return!!D||t};
_.ql.Object.defineProperties(xs.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var D=this.data,t=D.showPostAuthorBackgroundHighlight,H=D.postAuthorBadgeType,e=D.authorEndpoint;if(!t&&H!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&H!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var V,b,a;D=_.H7(((V=D.authorText)==null?void 0:(b=V.runs)==null?void 0:(a=b[0])==null?void 0:a.text)||"");V=void 0;switch(H){case "POST_AUTHOR_BADGE_TYPE_ARTIST":V={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":V={iconType:t?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:D,authorEndpoint:e,authorCreator:t,icon:V}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var D,t;if((D=this.data)==null?0:(t=D.pollMetadataIcon)==null?0:t.iconType)return _.cc(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.voteCount)||_.H7("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.O(this.data.backstageAttachment,lBo))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.O(this.data.backstageAttachment,Oia))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.O(this.data.backstageAttachment,UB4))}}});
xs.prototype.onYtServiceRequestCompleted=xs.prototype.onYtServiceRequestCompleted;xs.prototype.onYtServiceRequestSent=xs.prototype.onYtServiceRequestSent;xs.prototype.onYtCommentPollRevert=xs.prototype.onYtCommentPollRevert;xs.prototype.onYtCommentboxDismiss=xs.prototype.onYtCommentboxDismiss;xs.prototype.onYtNavigate=xs.prototype.onYtNavigate;xs.prototype.isLoadingChanged=xs.prototype.isLoadingChanged;xs.prototype.dataChanged=xs.prototype.dataChanged;xs.prototype.contentTextChanged=xs.prototype.contentTextChanged;
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],xs.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],xs.prototype,"rendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],xs.prototype,"rendererstamperBehavior",void 0);_.d([_.o5("#contentTextExpander"),_.x("design:type",Object)],xs.prototype,"expander",void 0);
_.d([_.o5("#edit-dialog"),_.x("design:type",Element)],xs.prototype,"editDialogElement",void 0);_.d([_.M(),_.x("design:type",Object)],xs.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],xs.prototype,"hasInlineCommentSection",void 0);_.d([_.M(),_.x("design:type",Object)],xs.prototype,"editDialog",void 0);_.d([_.M(),_.x("design:type",Object)],xs.prototype,"isLoading",void 0);
_.d([_.M({computed:"computeIsPollHeaderEnabled(data)"}),_.x("design:type",Boolean)],xs.prototype,"isPollHeaderEnabled",void 0);_.d([_.M(),_.x("design:type",Object)],xs.prototype,"shouldHideAuthor",void 0);_.d([_.M(),_.x("design:type",Object)],xs.prototype,"shouldShowVideoTime",void 0);_.d([_.M(),_.x("design:type",Object)],xs.prototype,"isInEngagementPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],xs.prototype,"hideBorder",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],xs.prototype,"usesFullLockup",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],xs.prototype,"shouldShowMenuInCompactView",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],xs.prototype,"authorCommentBadge",null);_.d([_.m("isInEngagementPanel"),_.x("design:type",Number),_.x("design:paramtypes",[])],xs.prototype,"postTextMaxLines",null);
_.d([_.m("data.icon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],xs.prototype,"pollIcon",null);_.d([_.Os("data.contentText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xs.prototype,"contentTextChanged",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xs.prototype,"dataChanged",null);
_.d([_.Os("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xs.prototype,"isLoadingChanged",null);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],xs.prototype,"onYtNavigate",null);_.d([_.rx("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xs.prototype,"onYtCommentboxDismiss",null);
_.d([_.rx("yt-comment-poll-revert"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],xs.prototype,"onYtCommentPollRevert",null);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],xs.prototype,"onYtServiceRequestSent",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],xs.prototype,"onYtServiceRequestCompleted",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],xs.prototype,"voteCount",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],xs.prototype,"commentCount",null);
_.d([_.m("data.backstageAttachment"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xs.prototype,"hasPoll",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xs.prototype,"hasQuiz",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xs.prototype,"hasUploadedVideo",null);_.d([_.Y({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],xs);
_.p(xs,"ytd-backstage-post-renderer",function(){if(QXn!==void 0)return QXn;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return QXn=D},{mode:1});var zqm;var Rg=function(){var D=_.X.apply(this,arguments)||this;D.editDialog=null;D.showExpandButton=!1;D.isRichGrid=!1;D.usesFullLockup=!1;return D};
_.P(Rg,_.X);_.q=Rg.prototype;_.q.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"}}}};
_.q.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.q.computeShowExpandButton=function(D){return this.usesCompactLockup||D&&D.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.q.computeUsesCompactLockup=function(D){return!!D.condensedContent};
_.q.computeShowFullContentText=function(D){return!D};
_.q.onYtNavigate=function(D){D=this.get("updateCommentDialogEndpoint",D.detail.endpoint);this.openEditDialog(D)};
_.q.onYtCommentboxDismiss=function(){this.editDialog=null};
_.q.openEditDialog=function(D){D&&D.dialog&&(this.editDialog=D.dialog,D=this.repostEditDialogEl.firstElementChild)&&(D.focus(),D.openDialog&&D.openDialog())};
_.q.onTap=function(D){if(this.data){var t=null;this.usesCompactLockup&&!_.ed(_.bK(D)||[],this.hostElement,["YT-IMG-SHADOW"])?t=this.get("navigationEndpoint",this.data):D.target===this.moreButtonEl&&(t=this.get("navigationEndpoint",D.target.data));t&&_.Gf(this.hostElement,"yt-navigate",{endpoint:t})}};
Rg.prototype.onYtCommentboxDismiss=Rg.prototype.onYtCommentboxDismiss;Rg.prototype.onYtNavigate=Rg.prototype.onYtNavigate;Rg.prototype.dataChanged=Rg.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Rg.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Rg.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],Rg.prototype,"editDialog",void 0);_.d([_.M({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Rg.prototype,"usesCompactLockup",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Rg.prototype,"showExpandButton",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Rg.prototype,"isRichGrid",void 0);
_.d([_.M({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Rg.prototype,"showFullContentText",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Rg.prototype,"usesFullLockup",void 0);_.d([_.o5("#more"),_.x("design:type",Object)],Rg.prototype,"moreButtonEl",void 0);_.d([_.o5("#repost-content-text"),_.x("design:type",HTMLElement)],Rg.prototype,"repostContentTextEl",void 0);
_.d([_.o5("#repost-edit-dialog"),_.x("design:type",HTMLElement)],Rg.prototype,"repostEditDialogEl",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rg.prototype,"dataChanged",null);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Rg.prototype,"onYtNavigate",null);
_.d([_.rx("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Rg.prototype,"onYtCommentboxDismiss",null);_.d([_.Y({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],Rg);
_.p(Rg,"ytd-shared-post-renderer",function(){if(zqm!==void 0)return zqm;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return zqm=D},{mode:1});var DEa;var tAB;var u4=function(){return _.X.apply(this,arguments)||this};
_.P(u4,_.X);u4.prototype.attached=function(){var D=this;this.networkStatusManager||(this.networkStatusManager=new _.yp,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){D.onlineHandler()}))};
u4.prototype.detached=function(){var D=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){D.onlineHandler()}),delete this.networkStatusManager)};
u4.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],u4.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],u4.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],u4);
_.p(u4,"ytd-reload-page-button-renderer",function(){if(tAB!==void 0)return tAB;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
return tAB=D},{mode:1});var Hu4={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"},WV=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.P(WV,_.X);_.q=WV.prototype;_.q.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.q.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.q.computeHasBodyText=function(D){return!!D.bodyText};
_.q.computeButtons=function(D){var t=[];D.ctaButton&&t.push(D.ctaButton);D.secondaryButton&&t.push(D.secondaryButton);return t};
_.q.computeRendererStyle=function(D){return D.style?D.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():D.icon?"":"no-icon"};
_.q.getIconName=function(D,t){t=t===void 0?!1:t;if(D===void 0)return"";D=this.get("icon.iconType",D);var H;_.r("enable_hlp_client_icon_pick")?H=this.getThemedIcon(D,t):H=D;(t=Hu4[H])||(t="yt-icons");return[t,H].join(":")};
_.q.getThemedIcon=function(D,t){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(D)?t?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(D)?t?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":D};
_.q.isThumbnail=function(D){return!!D.thumbnail};
_.q.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.q.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],WV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],WV.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],WV.prototype,"data",void 0);
_.d([_.M({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],WV.prototype,"rendererStyle",void 0);_.d([_.M({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.x("design:type",String)],WV.prototype,"iconName",void 0);_.d([_.M({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],WV.prototype,"thumbnail",void 0);_.d([_.M({computed:"computeButtons(data)"}),_.x("design:type",Array)],WV.prototype,"buttons",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],WV.prototype,"isDarkTheme",void 0);_.d([_.M({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],WV.prototype,"hasBodyText",void 0);_.d([_.Y({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],WV);
_.p(WV,"ytd-background-promo-renderer",function(){if(DEa!==void 0)return DEa;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return DEa=D},{mode:1});var eyV;var Ig=function(){var D=_.X.apply(this,arguments)||this;D.collections=_.r("web_modern_collections_v2");return D};
_.P(Ig,_.X);_.ql.Object.defineProperties(Ig.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e,V,b;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(D=this.data)==null?void 0:(t=D.thumbnail)==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:(H=this.data)==null?void 0:(e=H.thumbnail)==null?void 0:e.vibrantColorPalette,darkColorPalette:(V=this.data)==null?void 0:(b=V.thumbnail)==null?void 0:b.darkColorPalette,experimentEnabled:this.collections}}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ig.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ig.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ig.prototype,"collections",void 0);_.d([_.m("data","collections"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ig.prototype,"collectionStack",null);_.d([_.Y({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Ig);
_.p(Ig,"ytd-compact-station-renderer",function(){if(eyV!==void 0)return eyV;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return eyV=D},{mode:1});var VAn;var Q1=function(){var D=_.X.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.P(Q1,_.X);Q1.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]]"}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Q1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Q1.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Q1.prototype,"isRichGrid",void 0);_.d([_.Y({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],Q1);
_.p(Q1,"ytd-grid-channel-renderer",function(){if(VAn!==void 0)return VAn;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return VAn=D},{mode:1});var buV;var y1=function(){return _.X.apply(this,arguments)||this};
_.P(y1,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],y1.prototype,"data",void 0);_.d([_.Y({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],y1);
_.p(y1,"ytd-grid-movie-playlist-renderer",function(){if(buV!==void 0)return buV;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return buV=D},{mode:1});var q8B;var BV=function(){var D=_.X.apply(this,arguments)||this;D.downloadProgress=0;D.transferState="TRANSFER_STATE_UNKNOWN";D.modernButtons=_.r("web_modern_buttons");D.useModernCollectionsV2=_.r("web_modern_collections_v2");return D};
_.P(BV,_.X);BV.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
BV.prototype.configureRendererStamper=function(){return{"data.menu":Rw}};
BV.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
BV.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.r("woffle_playlist_renderer_killswitch")){var D,t=IQV(this.entityInfo,this.transferState,this.downloadProgress,(D=this.data)==null?void 0:D.playlistId,this.isOnline);D=t.viewPlaylistText;var H=t.badges;t=t.thumbnailOverlays;this.isDownloads=!!D||!!H;this.set("data.viewPlaylistText",D);H&&H.length>0&&this.set("data.badges",H);t&&t.length>0&&this.set("data.thumbnailOverlays",
t)}};
_.ql.Object.defineProperties(BV.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 D;return!((D=this.data)==null?0:D.menu)}}});
BV.prototype.transferStateChanged=BV.prototype.transferStateChanged;BV.prototype.dataChanged=BV.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],BV.prototype,"ytdLockupBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],BV.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],BV.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M({selector:_.n$R,selectorArgs:["data.playlistId"]}),_.x("design:type",Object)],BV.prototype,"downloadProgress",void 0);_.d([_.M({selector:_.Rf,selectorArgs:["data.playlistId"]}),_.x("design:type",Object)],BV.prototype,"transferState",void 0);_.d([_.M({selector:PS3,selectorArgs:["data.playlistId"]}),_.x("design:type",Object)],BV.prototype,"entityInfo",void 0);_.d([_.M({selector:_.dO}),_.x("design:type",Boolean)],BV.prototype,"isOnline",void 0);
_.d([_.M(),_.x("design:type",Object)],BV.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],BV.prototype,"downloadRenderData",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],BV.prototype,"modernButtons",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],BV.prototype,"isDownloads",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],BV.prototype,"useModernCollectionsV2",void 0);
_.d([_.m("transferState"),_.M({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],BV.prototype,"downloadState",null);_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BV.prototype,"menuHidden",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BV.prototype,"dataChanged",null);
_.d([_.mx("transferState","downloadProgress","isOnline"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BV.prototype,"transferStateChanged",null);_.d([_.Y({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],BV);
_.p(BV,"ytd-grid-playlist-renderer",function(){if(q8B!==void 0)return q8B;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return q8B=D},{mode:1});var Frn;var zg=function(){var D=_.X.apply(this,arguments)||this;D.collections=_.r("web_modern_collections_v2");return D};
_.P(zg,_.X);zg.prototype.configureRendererStamper=function(){return{"data.menu":Rw,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.ql.Object.defineProperties(zg.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e,V,b;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(D=this.data)==null?void 0:(t=D.thumbnail)==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:(H=this.data)==null?void 0:(e=H.thumbnail)==null?void 0:e.vibrantColorPalette,darkColorPalette:(V=this.data)==null?void 0:(b=V.thumbnail)==null?void 0:b.darkColorPalette,experimentEnabled:this.collections}}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],zg.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],zg.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],zg.prototype,"ytdLockupBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],zg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],zg.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],zg.prototype,"collections",void 0);_.d([_.m("data","collections"),_.x("design:type",Object),_.x("design:paramtypes",[])],zg.prototype,"collectionStack",null);_.d([_.Y({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],zg);
_.p(zg,"ytd-grid-radio-renderer",function(){if(Frn!==void 0)return Frn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Frn=D},{mode:1});var aof;var Dr=function(){var D=_.X.apply(this,arguments)||this;D.useModernCollectionsV2=_.r("web_modern_collections_v2");return D};
_.P(Dr,_.X);Dr.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Dr.prototype.computeNavigationEndpoint=function(D){return $a6(D==null?void 0:D.navigationEndpoint)};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Dr.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],Dr.prototype,"ytdLockupBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Dr.prototype,"data",void 0);_.d([_.M({computed:"computeNavigationEndpoint(data)"}),_.x("design:type",Object)],Dr.prototype,"computedNavigationEndpoint",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Dr.prototype,"useModernCollectionsV2",void 0);_.d([_.Y({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Dr);
_.p(Dr,"ytd-grid-show-renderer",function(){if(aof!==void 0)return aof;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return aof=D},{mode:1});var wSf;_.tD=function(D){this.playerClient=D};
_.ZuQ=function(D,t,H){H=H===void 0?{}:H;return D.playerClient.setOption("ad",t,H)};
_.tD.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.tD.prototype.executeCommand=function(D,t){this.getOptions().includes("executeCommand")?_.ZuQ(this,"executeCommand",{command:D,layoutId:t}):_.Q2("Calling executeCommand when adModule is not loaded")};var Hz=function(){return _.X.apply(this,arguments)||this};
_.P(Hz,_.X);Hz.prototype.getLayoutId=function(){var D=_.RD("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
Hz.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var D=_.FA(),t=this.getLayoutId(),H=this.data.clickthroughEndpoint;D&&t&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?D.getPlayerPromise().then(function(e){(new _.tD(e)).executeCommand(H,t)}):_.Gf(this.hostElement,"yt-navigate",{endpoint:H})}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Hz.prototype,"data",void 0);_.d([_.Y({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],Hz);
_.p(Hz,"ytd-shopping-companion-item-renderer",function(){if(wSf!==void 0)return wSf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return wSf=D},{mode:1});var hy3;var e3=function(){var D=_.X.apply(this,arguments)||this;D.isExpandableContent=!1;return D};
_.P(e3,_.X);_.ql.Object.defineProperties(e3.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return((D=this.data)==null?void 0:D.price)||((t=this.data)==null?void 0:(H=t.dealsData)==null?void 0:H.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var D,t;if((D=this.data)!=null&&D.dealsData&&((t=this.data)==null||!t.priceReplacementText)){D=this.data.dealsData;var H,e,V;return((H=D.salesData)==null?void 0:H.originalPrice)||((e=D.priceDropData)==null?void 0:e.referencePrice)||((V=D.promotionData)==null?void 0:V.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var D,t;return(D=this.data)==null?void 0:(t=D.dealsData)==null?void 0:t.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],e3.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],e3.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],e3.prototype,"isExpandableContent",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"showCta",null);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"ctaText",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"hasPriceTopPosition",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"hasPriceBottomPosition",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"useNewStyle",null);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"showPriceReplacementText",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"priceValue",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"showDeal",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"showAffiliateDisclaimer",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"useSaleStyle",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"useFromBrandCtaStyle",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"useFromVendorCtaStyle",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],e3.prototype,"useShoppingCollectionCtaStyle",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],e3);
_.p(e3,"ytd-vertical-product-card-renderer",function(){if(hy3!==void 0)return hy3;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return hy3=D},{mode:1});var Gev;var VF=function(){return _.X.apply(this,arguments)||this};
_.P(VF,_.X);VF.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],VF.prototype,"ytdLockupBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],VF.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],VF);
_.p(VF,"ytd-grid-movie-renderer",function(){if(Gev!==void 0)return Gev;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Gev=D},{mode:1});var Eyv;var bH=function(){var D=_.X.apply(this,arguments)||this;D.roundedFix=_.r("web_enable_merch_item_rounding_fix");D.itemStyle="small-item";return D};
_.P(bH,_.X);bH.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var D,t,H,e,V=(t=_.O((D=this.data)==null?void 0:D.buttonCommand,_.lq))==null?void 0:(H=t.item)==null?void 0:(e=H.notificationTextRenderer)==null?void 0:e.successResponseText;V&&_.BRu(this.hostElement,V)}};
_.ql.Object.defineProperties(bH.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?void 0:D.isProductPlaceholder)!==void 0&&((t=this.data)==null?void 0:t.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.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}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],bH.prototype,"roundedFix",void 0);_.d([_.M(),_.x("design:type",Object)],bH.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],bH.prototype,"itemStyle",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bH.prototype,"hasPrice",null);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bH.prototype,"hasPriceReplacementText",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bH.prototype,"hasAdditionalFeesText",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bH.prototype,"hasAffiliateDisclaimer",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bH.prototype,"isProductPlaceholder",null);
_.d([_.M(),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bH.prototype,"hideOpenInNewIcon",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],bH.prototype,"ariaLabel",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],bH);
_.p(bH,"ytd-merch-shelf-item-renderer",function(){if(Eyv!==void 0)return Eyv;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Eyv=D},{mode:1});var Kr4=_.l(function(D){return _.G("button-card-view-model",{el:_.FI(_.Yi(function(){return D.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return D.data().title},
role:"button"},_.G(_.fE,{model:{}}),_.G("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.G("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.G(_.E,{cond:function(){return D.data().image},
then:function(t){return _.G(_.bi,{data:t,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.G("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return D.data().title})))},"Qb");_.r("web_button_view_model_wcw_registration_killswitch")||_.hB(Kr4,"button-card-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){D=_.FQ(D,{className:void 0});var t=D.data;D=D.className;var H=_.jj(function(){return t().onTapCommand},void 0,"SXkP9e");
return _.G("ytd-shopping-item-card",{class:_.jQ("ytdShoppingItemCardHost",D)},_.G(_.XW,{command:H,className:"ytdShoppingItemCardHostLink"},_.G("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.G(_.P5,{data:function(){return t().thumbnailViewModel}},{thumbnailViewModel:function(e){return _.G(_.PV,{data:e.data,
aspectRatio:3})}})),_.G("div",null,_.G("p",{class:"ytdShoppingItemCardHostItemTitle"},_.G(_.$7,{text:function(){return t().itemTitle}})),_.G("p",{class:"ytdShoppingItemCardHostPrice"},_.G(_.$7,{text:function(){return t().priceOrStatus}})))))},"Rb"),"ytd-shopping-item-card",{props:{data:_.ij,
className:_.ij}});var NQ3={isAdsVideo:!0},kea={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},TQn={showPlayerControls:!1,videoPreviewDurationMs:15E3},cHV={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var B5=null,z2R={};var H$X="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(" "),q5={},eqV=(q5.FEwhat_to_watch="home",q5.FEhashtag="hashtag",q5.FEtrending="trending",q5.FEhistory="history",q5.SPunlimited="premium",q5.FEmemberships_and_purchases="paid_memberships",q5.SPredeem_code="redeem",q5.SPverify_location="locate",q5.SPminor_moment="minor_moment",
q5.FEmini_app_container="mini_app",q5.FEnews_destination="news",q5.SPopen_in_app="open_in_app",q5.FEexplore="explore",q5.FEsubscriptions="subscriptions",q5.FEsfv_audio_pivot="sfv_audio_pivot",q5.FEplaylist_aggregation="playlist_aggregation",q5);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");_.Tf("init");var jp3=function(){},Ouo=_.l(function(D){var t=D.data;
var H=D.inlineMetadata;var e=D.aspectRatio;var V=D.scrimStyle;var b=D.className;var a=D.useDefaultStyle;var w=D.titleStyle;var h=new jp3,K=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",N=_.jj(function(){return(a==null?0:a())?K==="SHORTS_LOCKUP_STYLE_SLIM":t().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),k=_.jj(function(){return _.fR(H)||N()||!1},void 0,"neizSe"),T=function(){return(V==null?void 0:V())!==void 0?V==null?void 0:V():1},
c=_.jj(function(){return t().belowThumbnailMetadata||!k()},void 0,"HdmMMe");
D=_.wv({visibilityCallback:function(ZV){var ED=t().onFirstVisible;ZV&&ED&&_.IQ(ED)},
showOption:{calledOnce:!0,state:"visible"}});var U=_.FI(),S={},L=_.jQ(function(){return N(),"shortsLockupViewModelHostThumbnailContainer"},(S.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.fR(e)===1},S.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.fR(e)===2},S.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.r("web_shorts_2_by_3_lockups_study")&&!_.r("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
S)),J=_.jj(function(){if(_.fR(e)===1)return 1;
_.fR(e);return 2},void 0,"ZRUa3c"),g,Q=function(){if(h){var ZV;
(ZV=g)==null||t8(ZV);var ED;if(h.hostElement&&((ED=h.data)==null?0:ED.inlinePlayerData)){ZV=Object.assign({},cHV);var o$,jV;((o$=h.data)==null?void 0:(jV=o$.inlinePlayerData)==null?void 0:jV.maxPlaybackLengthSec)!==void 0&&(ZV.videoPreviewDurationMs=h.data.inlinePlayerData.maxPlaybackLengthSec*1E3);g=v5({mediaRenderer:h,lockupElement:h.hostElement,thumbnailElement:U.value,videoPreviewOpts:ZV})}}};
_.Mp(function(){h&&(h.data=t(),Q())},"c4oj4d");
var u=_.jj(function(){return t().thumbnail},void 0,"CJHyHc");
S=_.jj(function(){return t().badge},void 0,"g31PIe");
var R=_.jj(function(){return t().onTap},void 0,"CJCUBc"),I={},tT={};
return _.G("ytm-shorts-lockup-view-model",{el:_.FI(function(ZV){h&&(h.hostElement=ZV)},Q,D),
class:_.jQ("shortsLockupViewModelHost",b)},_.G(_.FH,null,_.G(_.XW,{command:R,className:_.jQ("shortsLockupViewModelHostEndpoint",(I.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!c()},I),"reel-item-endpoint",""),
ariaHidden:function(){return!k()},
tabIndex:function(){return k()?0:-1}},_.G("div",{el:U,
class:_.jQ("shortsLockupViewModelHostThumbnailParentContainer",(tT.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!N()},tT))},_.G(_.E,{cond:u,
then:function(){return _.G("div",{class:L},_.G(_.bi,{data:function(){var ZV;return(ZV=u==null?void 0:u())!=null?ZV:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.G(_.P5,{data:function(){return t().thumbnailViewModel}},{thumbnailViewModel:function(ZV){return _.G(_.PV,{data:ZV.data,
aspectRatio:function(){return J()},
disableRounding:function(){return N()}})}}),null),_.G(_.E,{cond:k,
then:function(){return _.G($EQ,{data:t,scrimStyle:T,useDefaultStyle:a,titleStyle:w})}}),_.G(_.P5,{data:S},{badgeViewModel:function(ZV){return _.G(_.Mi,{data:ZV.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.G(_.E,{cond:function(){return k()&&t().menuOnTap},
then:function(){return _.G(iu4,{data:t,inlineMetadata:!0})}}),_.G(_.E,{cond:c,
then:function(){return _.G(rH3,{data:t,useDefaultStyle:a,inlineMetadata:k})}})))},"Tb"),$EQ=_.l(function(D){var t=D.data;
var H=D.scrimStyle;var e=D.useDefaultStyle;var V=D.titleStyle;var b=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",a=e&&_.r("web_hide_primary_text_for_pivot_panel"),w=_.jj(function(){return(e==null?0:e())?b==="SHORTS_LOCKUP_STYLE_SLIM":t().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
D={};D=_.jQ("shortsLockupViewModelHostInlineMetadata",(D.shortsLockupViewModelHostMetadataRounded=function(){return!w()},D.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(H==null?void 0:H())===3&&!_.r("enable_shorts_lockup_new_scrim")},D.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(H==null?void 0:H())===3&&_.r("enable_shorts_lockup_new_scrim")},D.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(H==null?void 0:H())===2||(H==null?void 0:
H())===4},D.shortsLockupViewModelHostShowOverPlayer=function(){return!0},D),"image-overlay-text");
var h={};return _.G("div",{class:D},_.G("h3",{class:_.jQ("shortsLockupViewModelHostMetadataTitle",(h.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(H==null?void 0:H())===4},h.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return t().belowThumbnailMetadata},h.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(V==null?void 0:V())===1},h.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(V==null?void 0:V())===2},h)),
"aria-label":function(){return t().accessibilityText}},_.G(_.E,{cond:function(){var K;
return!((K=t().overlayMetadata)==null||!K.primaryText)&&!a},
then:function(){return _.G(_.$7,{text:function(){var K;return(K=t().overlayMetadata)==null?void 0:K.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.G(_.E,{cond:function(){var K;
return(K=t().overlayMetadata)==null?void 0:K.secondaryText},
then:function(){return _.G(UEm,{data:t,scrimStyle:H,className:void 0})}}))},"Ub"),rH3=_.l(function(D){var t=D.data;
var H=D.useDefaultStyle;var e=D.inlineMetadata;var V=_.r("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",b=_.jj(function(){return(H==null?0:H())?V==="SHORTS_LOCKUP_STYLE_SLIM":t().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),a=_.FI(),w;
D=_.$X(function(c){if(_.A5(_.Lf(c),a.value,["AVATAR-VIEW-MODEL"]))return!1;var U;(U=w)==null||U.click();return!1});
var h=_.jj(function(){return t().belowThumbnailMetadata||t().overlayMetadata},void 0,"yJVuMb"),K=function(){return t().menuOnTap&&!e()},N=function(){var c;
return(c=h())==null?void 0:c.avatar},k={},T={};
return _.G("div",{class:_.jQ(function(){return b()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(k.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!N()},k.shortsLockupViewModelHostOutsideMetadataHasMenu=K,k)),
"on:click":D,el:a,role:"presentation"},_.G(_.P5,{data:N},{avatarViewModel:function(c){return _.G("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.G(_.qi,{data:c.data}))}}),_.G("div",null,_.G("h3",{class:_.jQ("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(T.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var c,U;
return!((c=h())==null?0:(U=c.primaryText)==null?0:U.content)},T.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=e,T)),
role:"presentation"},_.G(_.XW,{ref:function(c){return void(w=c)},
command:function(){return t().onTap},
className:_.jQ("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var c,U;return(c=h())==null?void 0:(U=c.primaryText)==null?void 0:U.content},
"aria-label":function(){return t().accessibilityText}},_.G(_.E,{cond:function(){var c;
return(c=h())==null?void 0:c.primaryText},
then:function(c){return _.G(_.$7,{text:c,noEndpoints:!0,noStyleRuns:!0})}}))),_.G(_.E,{cond:function(){var c;
return(c=h())==null?void 0:c.secondaryText},
then:function(c){return _.G("div",{class:_.jQ("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.G(_.$7,{text:c,noStyleRuns:!0}))}})),_.G(_.E,{cond:K,
then:function(){return _.G(iu4,{data:t,inlineMetadata:!1})}}))},"Vb"),UEm=_.l(function(D){var t=D.data;
var H=D.scrimStyle;D=D.className;var e={};return _.G("div",{class:_.jQ((e.shortsLockupViewModelHostMetadataSubhead=function(){return(H==null?void 0:H())!==4},e.shortsLockupViewModelHostMetadataSubheadNew=_.r("enable_shorts_lockup_new_scrim"),e.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(H==null?void 0:H())===4},e),D),
"aria-hidden":"true"},_.G(_.$7,{text:function(){var V;return(V=t().overlayMetadata)==null?void 0:V.secondaryText},
noStyleRuns:!0}))},"Wb"),iu4=_.l(function(D){var t=D.data;
var H=D.inlineMetadata;D={};D=_.jQ((D.shortsLockupViewModelHostInlineMetadataMenu=function(){return H()},D.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!H()},D.shortsLockupViewModelHostShowOverPlayer=function(){return!0},D),"image-overlay-text");
return _.G("div",{class:D},_.G(_.gW,{data:function(){return{style:H()?"overlay":"mono",accessibilityLabel:t().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(e){e.preventDefault();e.stopPropagation();var V=_.uf({elementsCommand:t().menuOnTap,forceNewState:!0});if(V==null?0:V.onclick)V.onclick(e)}}},
iconName:"MORE_VERT"}))},"Xb");var oy6=_.l(function(D){var t=D.data;var H=D.inlineMetadata;var e=D.aspectRatio;var V=D.scrimStyle;var b=D.className;var a=D.useDefaultStyle;D=_.jj(function(){var w=t().entityId;return w?w.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.G("ytm-shorts-lockup-view-model-v2",{class:_.jQ("shortsLockupViewModelHost",b)},_.G(_.f0,{contentId:D,aspectRatio:function(){return(e==null?void 0:e())===1?1:(e==null?void 0:e())===2?2:4}},function(){return _.G(Ouo,{data:t,
inlineMetadata:H,aspectRatio:e,scrimStyle:V,className:b,useDefaultStyle:a})}))},"Yb");_.hB(oy6,"ytm-shorts-lockup-view-model-v2",{props:{data:_.wm,inlineMetadata:_.wm,aspectRatio:_.wm,scrimStyle:_.wm,className:_.wm,useDefaultStyle:_.wm,titleStyle:_.wm}});var P3f=16/9*210,Fi=function(){var D=_.X.apply(this,arguments)||this;D.isExpandableContent=!1;D.hideShelfHeader=!1;D.engagementPanel=!1;D.buttonClasses=["arrow"];D.isSearch=!1;D.disableScrollEventListener=!1;D.containsLockup=!1;D.overrideArrowPositionForProductCard=!1;D.overrideArrowPositionForShoppingItemCard=!1;D.overrideArrowPositionForReelItems=!1;D.overrideArrowPositionForGridMovie=!1;D.overrideArrowPositionToCenter=!1;D.isSearchPostShelf=!1;D.overrideArrowPositionForMixedShelf=!1;D.overrideArrowPositionForMixedShelfShortsOnly=
!1;D.hasBigThumbsReelItems=!1;D.shouldUseMixedListHeight=!1;D.shouldUseShortsListHeight=!1;D.gridVideoWidth=0;D.isSearchVodShelf=!1;D.disableWheelScroll=!1;D.sizing="COMPACT";D.shortsLockupAspectRatio=0;return D};
_.P(Fi,_.X);_.q=Fi.prototype;
_.q.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]]"}}}}};
_.q.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.r("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.q.computeInitialCountNumber=function(D){if(!D)return 6;var t=D.items.some(function(b){return!!b.topicRecommendationsChipRenderer}),H=D.items.some(function(b){return!!b.displayAdRenderer}),e=this.computeShouldListItemsHaveEqualHeight(D),V=D.items.some(function(b){return!!b.gridPlaylistRenderer});
D=D.items.some(function(b){return!!b.shoppingItemCardViewModel});
return t?9:H?8:V||e?10:D?7:6};
_.q.computeContainsPost=function(D){return!!D&&!!D.items&&D.items.some(function(t){return!!t.postRenderer})};
_.q.computeContainsLockup=function(){if(_.r("web_horizontal_list_lockup_arrow_killswitch"))return!1;var D,t;return(D=this.data)==null?void 0:(t=D.items)==null?void 0:t.some(function(H){return!!H.lockupViewModel})};
_.q.maybeUpdateLockupAspectRatio=function(){var D,t;if(this.computeContainsLockup()&&((D=this.data)==null?0:(t=D.items)==null?0:t.length)){var H;D=rQV((H=this.data.items[0].lockupViewModel)==null?void 0:H.contentType,this.data.force16By9ThumbnailAspectRatio);H=UqT(D);H=this.computeLockupWidth()/H;_.jZ(this.hostElement,{"--yt-horizontal-list-content-height":H+"px"})}};
_.q.computeOverrideArrowPositionForProductCard=function(D){if(this.isExpandableContent)return!1;var t;return!!(D==null?0:(t=D.items)==null?0:t.some(function(H){return!!H.verticalProductCardRenderer}))};
_.q.computeOverrideArrowPositionForShoppingItemCard=function(D){var t;return!!(D==null?0:(t=D.items)==null?0:t.some(function(H){return!!H.shoppingItemCardViewModel}))};
_.q.computeOverrideArrowPositionForReelItemRenderer=function(D){return this.containsReelItemRenderer(D)};
_.q.computeHasBigThumbsReelItems=function(D,t){return D&&this.containsReelItemRenderer(t)};
_.q.computeShouldListItemsHaveEqualHeight=function(D){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(D==null?void 0:D.itemSizeConstraint)};
_.q.computeShouldListItemsHaveShortsHeight=function(D){return this.computeShouldListItemsHaveEqualHeight(D)&&!this.containsGridVideoRenderer(D)};
_.q.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.q.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.q.containsReelItemRenderer=function(D){var t;return!!(D==null?0:(t=D.items)==null?0:t.some(function(H){return!(!H.reelItemRenderer&&!H.shortsLockupViewModel)}))};
_.q.containsGridVideoRenderer=function(D){var t;return!!(D==null?0:(t=D.items)==null?0:t.some(function(H){return!!H.gridVideoRenderer||!!H.lockupViewModel}))};
_.q.computeContainsGridMovieRenderer=function(D){var t;return!!(D==null?0:(t=D.items)==null?0:t.some(function(H){return!!H.gridMovieRenderer}))};
_.q.computeOverrideArrowPositionToCenter=function(D){return this.computeIsSearchPostShelf(D)};
_.q.computeIsSearchPostShelf=function(D){var t;return!!(D==null?0:(t=D.items)==null?0:t.some(function(H){var e,V;return((V=(e=H.postRenderer)==null?void 0:e.surface)!=null?V:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.q.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(D){var t;return!!(D==null?0:(t=D.items)==null?0:t.some(function(H){var e,V,b;return((b=(e=H.backgroundPromoRenderer)==null?void 0:(V=e.style)==null?void 0:V.value)!=null?b:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.q.computeIsSearchVodShelf=function(D,t){return D&&this.containsGridVideoRenderer(t)};
_.q.computeDisableWheelScroll=function(D,t){return this.computeIsSearchVodShelf(D,t)};
_.q.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.q.computeShortsLockupAspectRatio=function(){return 1};
_.q.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.jZ(this.hostElement,{"--ytd-reel-item-thumbnail-height":P3f+"px"})};
Fi.prototype.dataChanged=Fi.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Fi.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Fi.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Xn.YtdHorizontalListBehavior),_.x("design:type",Object)],Fi.prototype,"ytdHorizontalListBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Fi.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],Fi.prototype,"isExpandableContent",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"hideShelfHeader",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"engagementPanel",void 0);_.d([_.M(),_.x("design:type",Array)],Fi.prototype,"buttonClasses",void 0);_.d([_.M(),_.x("design:type",Object)],Fi.prototype,"isSearch",void 0);
_.d([_.M(),_.x("design:type",Object)],Fi.prototype,"disableScrollEventListener",void 0);_.d([_.M({computed:"computeInitialCountNumber(data)"}),_.x("design:type",Number)],Fi.prototype,"initialCount",void 0);_.d([_.M({computed:"computeContainsPost(data)"}),_.x("design:type",Boolean)],Fi.prototype,"supportComponentResize",void 0);_.d([_.M({computed:"computeContainsPost(data)"}),_.x("design:type",Boolean)],Fi.prototype,"containsPost",void 0);
_.d([_.M({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"containsLockup",void 0);_.d([_.M({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Fi.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.d([_.M({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"overrideArrowPositionForProductCard",void 0);_.d([_.M({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.d([_.M({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"overrideArrowPositionForReelItems",void 0);_.d([_.M({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"overrideArrowPositionForGridMovie",void 0);
_.d([_.M({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"overrideArrowPositionToCenter",void 0);_.d([_.M({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"isSearchPostShelf",void 0);_.d([_.M({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.d([_.M({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.d([_.M({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"hasBigThumbsReelItems",void 0);
_.d([_.M({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"shouldUseMixedListHeight",void 0);_.d([_.M({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"shouldUseShortsListHeight",void 0);_.d([_.M({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"gridVideoWidth",void 0);
_.d([_.M({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"isSearchVodShelf",void 0);_.d([_.M({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.x("design:type",Object)],Fi.prototype,"disableWheelScroll",void 0);_.d([_.M({computed:"computeSizing(isSearch)"}),_.x("design:type",Object)],Fi.prototype,"sizing",void 0);
_.d([_.M({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.x("design:type",Object)],Fi.prototype,"shortsLockupAspectRatio",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fi.prototype,"dataChanged",null);
_.p(Fi,"yt-horizontal-list-renderer",function(){if(n8v===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);n8v=D}D=n8v;return D},{mode:1});var nym=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
nym.prototype.subscribe=function(D,t){var H=this.subscriptions.get(D);if(!H)return function(){};
H.add(t);return function(){H.delete(t)}};
nym.prototype.unsubscribe=function(D,t){(D=this.subscriptions.get(D))&&D.delete(t)};
nym.prototype.publish=function(D,t){t=t===void 0?{}:t;(D=this.subscriptions.get(D))&&D.forEach(function(H){H(t)})};var C3o;var mEm=[10,12,14,16,18,20,24,28,32,36],MAn=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],ai=function(){var D=_.X.apply(this,arguments)||this;D.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";D.hideOverflow=!1;D.useRoboto=!1;D.fontClass="";D.overflown=!1;D.actionMap={"yt-window-resized":"resize"};return D};
_.P(ai,_.X);_.q=ai.prototype;
_.q.attached=function(){var D=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();_.Vi(this,function(){D.resize()});
if(!_.Et){var t,H,e;(t=document)==null||(H=t.fonts)==null||(e=H.ready)==null||e.then(function(){D.resize()})}};
_.q.dataChanged=function(){this.resize()};
_.q.guideIsExpandedChanged=function(){this.resize()};
_.q.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 D=this.getMaxNumLines(),t=this.getMinFont(),H=this.getMaxFont(),e=this.useRoboto?mEm:MAn;for(e=e.filter(function(b){return b<=H&&b>=t});e.length>1;){var V=Math.floor(e.length/2);
this.updateFontSize(e[V]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=D)e=e.slice(V,e.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>D)e=e.slice(0,V);else break}this.updateFontSize(e[e.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(D)}};
_.q.handleOverflow=function(D){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>D&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",D.toString()))};
_.q.updateFontSize=function(D){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+D;this.textNode.classList.add(this.fontClass)};
_.q.getMaxFont=function(){var D=this.useRoboto?mEm:MAn;D=D[D.length-1];return this.maxFontSize&&this.maxFontSize<=D?this.maxFontSize:D};
_.q.getMinFont=function(){var D=(this.useRoboto?mEm:MAn)[0];return this.minFontSize&&this.minFontSize>=D?this.minFontSize:D};
_.q.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.q.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.q.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.eo(this.text).split("\n").length-1:Infinity};
_.q.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("Oh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
ai.prototype.guideIsExpandedChanged=ai.prototype.guideIsExpandedChanged;ai.prototype.dataChanged=ai.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],ai.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],ai.prototype,"actionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ai.prototype,"text",void 0);
_.d([_.M(),_.x("design:type",String)],ai.prototype,"fontFamily",void 0);_.d([_.M(),_.x("design:type",Number)],ai.prototype,"maxWidth",void 0);_.d([_.M(),_.x("design:type",Number)],ai.prototype,"maxHeight",void 0);_.d([_.M(),_.x("design:type",Number)],ai.prototype,"maxFontSize",void 0);_.d([_.M(),_.x("design:type",Number)],ai.prototype,"minFontSize",void 0);_.d([_.M(),_.x("design:type",Number)],ai.prototype,"maxLines",void 0);_.d([_.M(),_.x("design:type",Object)],ai.prototype,"hideOverflow",void 0);
_.d([_.M({selector:_.KOk}),_.x("design:type",Boolean)],ai.prototype,"guideIsExpanded",void 0);_.d([_.o5("#container"),_.x("design:type",HTMLElement)],ai.prototype,"containerNode",void 0);_.d([_.o5("#text"),_.x("design:type",HTMLElement)],ai.prototype,"textNode",void 0);_.d([_.mx("text"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ai.prototype,"dataChanged",null);
_.d([_.mx("guideIsExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ai.prototype,"guideIsExpandedChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],ai);
_.p(ai,"yt-dynamic-sizing-formatted-string",function(){if(C3o!==void 0)return C3o;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return C3o=D},{mode:1});var S8w;_.XS6=function(D){_.Hk.call(this,D)};
_.P(_.XS6,_.Hk);var fo3=function(D){_.Hk.call(this,D)};
_.P(fo3,_.XS6);var wA=function(){return _.X.apply(this,arguments)||this};
_.P(wA,_.X);wA.prototype.onTapSuspendedChannel=function(){var D;if((D=this.data)!=null&&D.serviceEndpoint){var t,H;(D=(H=_.O((t=this.data)==null?void 0:t.serviceEndpoint,_.um))==null?void 0:H.url)?_.D9(D,void 0,void 0,window.top):(t=new fo3("Did not handle suspended account tap. No appealUrl."),_.gT(t))}else t=new fo3("Did not handle suspended account tap. No serviceEndpoint."),_.gT(t)};
wA.prototype.onTap=function(){var D=this,t=_.Pc(),H,e=(H=_.oQ(t,{veType:7116}))!=null?H:void 0;_.IH(t,{visualElement:e});_.B7();this.saveRoleText();var V;if((V=this.data)==null?0:V.youtubeSuspended)this.onTapSuspendedChannel();else{var b=!1,a,w;(t=(w=_.O((a=this.data)==null?void 0:a.serviceEndpoint,_.E$n))==null?void 0:w.supportedTokens)&&t.forEach(function(h){if(h.accountSigninToken)if(b=!0,D.onAccountItemTap)D.onAccountItemTap(h.accountSigninToken.signinUrl);else _.D9(h.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!b){if(a=this.get("serviceEndpoint",this.data))b=!0,this.ytComponentBehavior.resolveCommand(a);b||_.Jp(new fo3("Did not handle account switch tap. No token."))}}};
wA.prototype.saveRoleText=function(){if(this.data){var D=this.data,t=D.channelDelegationRole;if(t){var H,e=(H=_.O(D==null?void 0:D.serviceEndpoint,_.E$n))==null?void 0:H.supportedTokens;if(!e){var V,b,a,w;e=(V=_.O(D==null?void 0:D.serviceEndpoint,_.RW))==null?void 0:(b=V.popup)==null?void 0:(a=b.confirmDialogRenderer)==null?void 0:(w=a.confirmButton)==null?void 0:w.buttonRenderer;var h;e=(h=_.O(e==null?void 0:e.command,_.ch))==null?void 0:h.commands;if(!e)return;var K;e=(K=_.O(e[1],_.E$n))==null?
void 0:K.supportedTokens}if(e){h=void 0;K=_.F(e);for(e=K.next();!e.done;e=K.next())if(e=e.value,e.datasyncIdToken){h=e.datasyncIdToken.datasyncIdToken;break}if(h){var N;a:{if(_.RzD()&&(K=_.JVD(h+"::pom"))){K=new DQ(K);break a}K=void 0}(N=K)==null||N.set("role_text",t);if((b08?b08:window.location).href.indexOf("studio")!==-1&&(N=uD8())){K=N.src?(new URL(N.src)).origin:"*";var k;(k=N.contentWindow)==null||k.postMessage({action:"save_pom_role",datasyncId:h,roleText:t},K)}}}}}};
_.ql.Object.defineProperties(wA.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var D,t,H=(D=this.data)==null?void 0:(t=D.accountPhoto)==null?void 0:t.thumbnails;return H&&H.length>0&&(H[0].height===36||H[0].height===48)?H[0].height:40}}});
wA.prototype.onTap=wA.prototype.onTap;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],wA.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],wA.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!1}),_.x("design:type",Function)],wA.prototype,"onAccountItemTap",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],wA.prototype,"enableRingForActiveAccount",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],wA.prototype,"thumbnailSize",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wA.prototype,"onTap",null);_.d([_.Y({is:"ytd-account-item-renderer",disableElementRegistration:!0})],wA);
_.p(wA,"ytd-account-item-renderer",function(){if(S8w!==void 0)return S8w;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return S8w=D},{mode:1});var Lrf;var Zr=function(){return _.X.apply(this,arguments)||this};
_.P(Zr,_.X);Zr.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.qS().resolve(_.aA).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Zr.prototype,"data",void 0);_.d([_.Y({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Zr);
_.p(Zr,"ytd-identity-chip-renderer",function(){if(Lrf!==void 0)return Lrf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Lrf=D},{mode:1});var AHn;var gyf;var JHo;var Y8v;var sR=function(){var D=_.X.apply(this,arguments)||this;D.richItemMinWidth=_.ZU("wn_grid_min_item_width",310);D.isShorts=!1;D.isWatchNext=!1;D.isExploreHub=!1;return D};
_.P(sR,_.X);_.ql.Object.defineProperties(sR.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var D=[],t=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.jZ(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var H;if(((H=this.data)==null?0:H.rows)&&t)for(t*=this.data.rows,H=0;H<t;H++)D.push({});return D}}});
_.d([_.C(_.sx),_.x("design:type",Object)],sR.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],sR.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.lG,value:3}),_.x("design:type",Number)],sR.prototype,"itemsPerRow",void 0);_.d([_.M({selector:_.E$R,value:6}),_.x("design:type",Number)],sR.prototype,"slimItemsPerRow",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Number)],sR.prototype,"richItemMinWidth",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.Ye}),_.x("design:type",Boolean)],sR.prototype,"miniMode",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sR.prototype,"isShorts",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sR.prototype,"isWatchNext",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sR.prototype,"isExploreHub",void 0);
_.d([_.m("isExploreHub"),_.M({reflectToAttribute:!0}),_.x("design:type",Object),_.x("design:paramtypes",[])],sR.prototype,"shimmerAnimation",null);_.d([_.m("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.x("design:type",Array),_.x("design:paramtypes",[])],sR.prototype,"cardItems",null);_.d([_.Y({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],sR);
_.loV=_.E_()(sR,"ytd-ghost-grid-renderer",function(){if(Y8v===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);Y8v=D}D=Y8v;return D},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.hB(_.l(function(D){var t=_.FQ(D,{numberOfComments:3}).numberOfComments,H=_.FQ(D,{isInitialLoad:!1}).isInitialLoad,e=_.FQ(D,{engagementPanel:!1}).engagementPanel,V=function(){return Math.min(Number(t==null?void 0:t())||20,20)};
return _.G("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.G(_.E,{cond:function(){return!(e==null?0:e())&&(H==null?void 0:H())},
then:function(){return _.G("div",{class:"ytGhostCommentsComments"},_.G("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.G("div",{class:_.jQ("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.G("div",{class:_.jQ("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.G("div",{class:"ytGhostCommentsGhostCard"},_.G("div",{class:"ytGhostCommentsAvatar"},_.G("div",{class:"ytGhostCommentsCircle"})),_.G("div",{class:"ytGhostCommentsComments"},_.G("div",{class:"ytGhostCommentsMeta"},
_.G("div",{class:_.jQ("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.G("div",{class:_.jQ("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.G("div",{class:"ytGhostCommentsComments"},_.G(_.nY,{each:function(){return Array((V==null?void 0:V())||3)}},function(){return _.G("div",{class:"ytGhostCommentsGhostCard"},_.G("div",{class:"ytGhostCommentsAvatar"},_.G("div",{class:"ytGhostCommentsCircle"})),_.G("div",{class:"ytGhostCommentsHost"},_.G("div",{class:"ytGhostCommentsMeta"},
_.G("div",{class:_.jQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.G("div",{class:_.jQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.G("div",{class:_.jQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.G("div",{class:"ytGhostCommentsGhostLikeDislike"},_.G("div",{class:_.jQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.G("div",{class:_.jQ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"Zb"),"yt-ghost-comments",{props:{numberOfComments:_.ij,
isInitialLoad:_.ij,engagementPanel:_.ij}});_.AB("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var hD=function(){var D=_.X.apply(this,arguments)||this;D.isOverridable=!1;D.spinnerActive=!1;D.showButton=!1;D.isCommentsSection=!1;D.engagementPanel=!0;D.isShortsGrid=!1;D.isShortsPage=!1;D.isWatchPage=!1;D.ghostCardExperimentEnabled=_.r("show_ghost_comments_shorts_watch")||_.r("show_ghost_comments_desktop_watch");D.originalShowButton=!1;D.endOfList=!1;return D};
_.P(hD,_.X);_.q=hD.prototype;_.q.resetIntersectionObserver=function(){var D;(D=this.observer)==null||D.disconnect();this.observer=void 0};
_.q.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var D,t;((D=this.data)==null?void 0:D.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((t=this.data)==null?0:t.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.q.initializeIntersectionObserver=function(){var D=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(t){t=_.F(t);for(var H=t.next();!H.done;H=t.next())H.value.isIntersecting&&(D.triggerContinuation(),D.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.q.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]]"}}}}}};
_.q.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var D;((D=this.data)==null?0:D.continuationEndpoint)&&(D=_.O(this.data.continuationEndpoint,_.RH))&&this.ytdReduxBehavior.dispatch(_.hV({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:D}}))};
_.q.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.q.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.q.onServiceRequestCompleted=function(D,t){if(!_.r("kevlar_hide_spinner_on_empty_continuation_killswitch")){var H;(H=t.actions)!=null&&H.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.q.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.q.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.q.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.q.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var D=3;if(this.engagementPanel){var t,H,e;D=Math.floor(((((t=this.hostElement)==null?void 0:(H=t.parentElement)==null?void 0:(e=H.parentElement)==null?void 0:e.scrollHeight)||108)-108)/108);D=this.isInitialLoad?Math.max(D,3):3}t=[].concat(_.A6(this.hostElement.querySelectorAll("yt-ghost-comments")));t=_.F(t);for(H=t.next();!H.done;H=t.next())H=H.value,H.numberOfComments=D,H.isInitialLoad=this.isInitialLoad,H.engagementPanel=
this.engagementPanel}};
_.q.detached=function(){this.resetIntersectionObserver()};
_.ql.Object.defineProperties(hD.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.r("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.r("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
hD.prototype.numberOfGhostCommentsChanged=hD.prototype.numberOfGhostCommentsChanged;hD.prototype.continuationTriggerOffsetChanged=hD.prototype.continuationTriggerOffsetChanged;hD.prototype.showButtonChanged=hD.prototype.showButtonChanged;hD.prototype.onYtServiceRequestCompletedForButtonRenderer=hD.prototype.onYtServiceRequestCompletedForButtonRenderer;hD.prototype.onServiceRequestCompleted=hD.prototype.onServiceRequestCompleted;hD.prototype.onYtServiceRequestSentForButtonRenderer=hD.prototype.onYtServiceRequestSentForButtonRenderer;
hD.prototype.observeData=hD.prototype.observeData;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],hD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.k7.YtVisibilityBehavior),_.x("design:type",Object)],hD.prototype,"ytVisibilityBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],hD.prototype,"ytComponentBehavior",void 0);
_.d([_.C(_.sx),_.x("design:type",Object)],hD.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],hD.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],hD.prototype,"isOverridable",void 0);_.d([_.M(),_.x("design:type",Object)],hD.prototype,"spinnerActive",void 0);_.d([_.M(),_.x("design:type",Object)],hD.prototype,"showButton",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],hD.prototype,"isCommentsSection",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],hD.prototype,"engagementPanel",void 0);_.d([_.M(),_.x("design:type",Object)],hD.prototype,"isShortsGrid",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.Tf$}),_.x("design:type",Object)],hD.prototype,"isShortsPage",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.kiD}),_.x("design:type",Object)],hD.prototype,"isWatchPage",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],hD.prototype,"ghostCardExperimentEnabled",void 0);
_.d([_.M(),_.x("design:type",Number)],hD.prototype,"continuationTriggerOffset",void 0);_.d([_.M(),_.x("design:type",Object)],hD.prototype,"endOfList",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],hD.prototype,"isInitialLoad",void 0);_.d([_.o5("ytd-button-renderer"),_.x("design:type",_.nc)],hD.prototype,"buttonRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],hD.prototype,"buttonOverrides",void 0);
_.d([_.M(),_.m("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.x("design:type",Object),_.x("design:paramtypes",[])],hD.prototype,"isShortsCommentsSection",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hD.prototype,"observeData",null);
_.d([_.rx("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hD.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],hD.prototype,"onServiceRequestCompleted",null);
_.d([_.rx("yt-service-request-completed-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hD.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.d([_.mx("showButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hD.prototype,"showButtonChanged",null);
_.d([_.mx("continuationTriggerOffset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hD.prototype,"continuationTriggerOffsetChanged",null);_.d([_.Os("isInitialLoad","engagementPanel"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hD.prototype,"numberOfGhostCommentsChanged",null);_.d([_.Y({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],hD);
_.p(hD,"ytd-continuation-item-renderer",function(){if(JHo!==void 0)return JHo;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return JHo=D},{mode:1});var vyn;var G_=function(){var D=_.X.apply(this,arguments)||this;D.downloadProgress=0;D.transferState="TRANSFER_STATE_UNKNOWN";D.downloadState="DOWNLOAD_STATE_UNKNOWN";D.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";D.offlineVideoPolicyExpirationTimestamp=0;D.downloadedVideoPlaybackPosition=0;return D};
_.P(G_,_.X);G_.prototype.dataChanged=function(){var D;this.videoData=_.O((D=this.data)==null?void 0:D.renderer,RP3);this.transferStateChanged()};
G_.prototype.downloadProgressChanged=function(){if(this.entityInfo){var D=Object.assign({},this.videoData),t=QTX(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),H=t.publishedTimeText,e=t.badges;D.shortViewCountText=t.shortViewCountText;D.publishedTimeText=H;D.badges=e;this.set("videoData",D)}};
G_.prototype.transferStateChanged=function(){if(this.entityInfo){var D=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",t=_.CC(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!nC(this.entityInfo.policyEntity),H=Object.assign({},this.videoData),e=QTX(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),V=e.publishedTimeText,b=e.badges;H.shortViewCountText=
e.shortViewCountText;H.publishedTimeText=V;H.badges=b;H.isDisabled=t;H.isWatched=this.downloadedVideoPlaybackPosition>0;H.navigationEndpoint=t?void 0:cz8(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var a;D&&((a=this.videoData)==null?0:a.videoId)&&!_.r("dl_resume_click_killswitch")&&(H.isDisabled=!1,H.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});H.thumbnailOverlays=WXX(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",H)}};
G_.prototype.transferStateChanged=G_.prototype.transferStateChanged;G_.prototype.downloadProgressChanged=G_.prototype.downloadProgressChanged;G_.prototype.dataChanged=G_.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],G_.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],G_.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],G_.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],G_.prototype,"videoData",void 0);_.d([_.M({selector:uG,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],G_.prototype,"downloadProgress",void 0);_.d([_.M(),_.x("design:type",Number)],G_.prototype,"relativeDateReference",void 0);_.d([_.M({selector:_.xe,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],G_.prototype,"transferState",void 0);
_.d([_.M({selector:JUR,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],G_.prototype,"downloadState",void 0);_.d([_.M({selector:rU8,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],G_.prototype,"offlinePolicyAction",void 0);_.d([_.M({selector:Opu,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],G_.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.d([_.M({selector:WH,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],G_.prototype,"downloadedVideoPlaybackPosition",void 0);_.d([_.M({selector:o$V,selectorArgs:["videoData.videoId"]}),_.x("design:type",Object)],G_.prototype,"entityInfo",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],G_.prototype,"isDownloading",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G_.prototype,"dataChanged",null);
_.d([_.mx("downloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G_.prototype,"downloadProgressChanged",null);_.d([_.mx("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G_.prototype,"transferStateChanged",null);
_.d([_.Y({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],G_);
_.p(G_,"ytd-downloaded-video-grid-video-renderer",function(){if(vyn!==void 0)return vyn;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return vyn=D},{mode:_.Kz("kevlar_poly_si_batch_j025")?1:2});var pSn;var ER=function(){};
ER.prototype.resolve=function(D,t){var H=this;return _.Z(function(e){return e.yield(H.resolveCommand(D,t),0)})};var dEv,K3;dEv=Ghu(function(D){return D.targetId},{shouldPersist:!1});
K3=dEv.updateData;_.xEm=dEv.useUpdatableData;var Ry3,uM9;Ry3=Ghu(function(D){return D.targetId});
uM9=Ry3.updateData;_.Wr6=Ry3.useUpdatableData;var Io4=Fl8.bind(null,K3),Qpf=Fl8.bind(null,uM9);(function(D,t,H){var e=_.O(H==null?void 0:H.updatedRenderer,_.$B3);return e?D({targetId:t},function(){return e}):!1}).bind(null,K3);var N5=function(){};
_.P(N5,ER);N5.prototype.resolveCommand=function(D){var t;return _.Z(function(H){t=_.O(D,_.cJk);if(!t)return H.return();Io4(t.targetId,t);_.n2(H)})};var kr=function(){var D=_.ng.apply(this,arguments)||this;D.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return D};
_.P(kr,_.ng);_.q=kr.prototype;_.q.configureContinuationPathMap=function(){return{}};
_.q.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.q.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.q.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.q.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.q.handleAppendContinuationItemsAction=function(D){var t=_.O(D,_.$oQ);if(this.data&&this.data.targetId&&t&&this.continuationPathMap&&t.targetId===this.data.targetId){var H=HPV(D),e=H&&this.continuationPathMap[H];if(e&&H)if(D=this.get(e,this.data)){a:{for(H=0;H<D.length;H++){var V=D[H],b=void 0,a=!!_.O((b=_.O(V,ahv))==null?void 0:b.content,_.vSQ);if(_.O(V,_.HX)||a)break a}H=D.length}e="data."+e;t.continuationItems?H===D.length-1?(this.pop(e),this.push.apply(this,[e].concat(_.A6(t.continuationItems)))):
H===D.length?this.push.apply(this,[e].concat(_.A6(t.continuationItems))):this.splice.apply(this,[e,H,1].concat(_.A6(t.continuationItems))):this.splice(e,H,1);(_.r("web_enable_voting_animation")||_.r("enable_music_web_cairo_voting_animation"))&&_.Gf(this.hostElement,"yt-append-continuation-items-action-finished");_.Gf(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.Yw(new _.nZ("append continuation items does not exist",H));else _.Yw(new _.nZ("append continuation path does not exist",
H))}};
_.q.handleReloadContinuationItemsCommand=function(D){var t=_.O(D,_.cJk);if(this.data&&t){if(_.r("web_client_explore_hub")||_.r("web_explore_hub_on_hover")||_.r("web_client_explore_hub_on_hover"))try{_.qS().resolve(N5).resolveCommand(D)}catch(b){}if(this.data.targetId&&this.continuationPathMap&&t.targetId===this.data.targetId&&(!_.r("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||t.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var H,e=(H=t.slot)==null?void 0:
H.replace("RELOAD_CONTINUATION_SLOT_","");H=(D=HPV(D)+"-"+(e==null?void 0:e.toLowerCase()))&&this.continuationPathMap[D];if(!H||!D||!e)_.Yw(new _.nZ("reload continuation path does not exist",D));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(t)){if(t.replaceWithFirstItem){var V;this.set("data."+H,((V=t.continuationItems)==null?0:V.length)?t.continuationItems[0]:{})}else this.set("data."+H,t.continuationItems?t.continuationItems:[]);this.continuationIsReloading=
!1;_.Gf(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.q.handleShowReloadUiCommand=function(D){D=_.O(D,ARn);var t;((t=this.data)==null?0:t.targetId)&&(D==null?0:D.targetId)&&D.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
kr.prototype.observeData=kr.prototype.observeData;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],kr.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],kr.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],kr.prototype,"data",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],kr.prototype,"continuationIsReloading",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kr.prototype,"observeData",null);_.d([_.Cg()],kr);_.T_=[_.Eg.YtComponentBehavior,_.dW.YtActionHandlerBehavior,kr.prototype];_.cz={};_.cz.YtNextContinuationBehavior=[_.PP.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",_.iK(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.iK(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(D,t){D.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,t,{}):(D={locationRetrieved:function(H){this.makeNextContinuationRequest_(H,t,{})}.bind(this)},_.Gf(this.hostElement,"yt-retrieve-location",D))},
makeNextContinuationRequest_:function(D,t,H){_.pl("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();D=t(D);var e;this.canUseContextualNetworkManager_()&&(e=this.getNetworkManager());e||(e=_.qS().resolve(_.dn));t=_.QL.instance;if(_.YC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&t){e=_.qF([D.startsWith("/")?D.substr(1):D]);var V,b;H=_.sK(t,{},e,H==null?void 0:(V=H.context)==null?void 0:(b=V.clickTracking)==null?void 0:b.clickTrackingParams).then(function(a){return{response:a}})}else H=
this.nextContinuation.usePost?e.postData(D,H):e.fetchData(D);
H.then(this.updateNextContinuationData_.bind(this,D));this.pendingContinuationRequest_=H;this.startListeningForNavigate_()},
updateNextContinuationData_:function(D,t){var H=this;_.pl("ncl");this.pendingContinuationRequest_=void 0;if(t){var e={};this.nextContinuation&&(e=this.nextContinuation);if(t.response&&t.response.continuationContents&&t.response.continuationContents[e.continuationType]){D=t.response.continuationContents[e.continuationType];var V=e.header||"data.header",b=D[e.responseHeaderKey||"header"];b&&this.set(V,b);V=e.contentsArray||"data.contents";b=this.getContents_(D,e.responseContentsKey||"contents")||[];
this.pathExists_(V)?(b.unshift(V),this.push.apply(this,b)):this.set(V,b);b&&(a0D(_.Pc(),t.response,this.hostElement,function(a){_.ET(H.hostElement,"yt-store-grafted-ve-action",[a])}),_.Gf(this.hostElement,"yt-next-continuation-data-updated",{continuationData:t,
page:this,contentsArray:V}));this.set(e.continuationsArray||"data.continuations",D[e.responseContinuationsKey||"continuations"]||[])}else t.reload?_.Yw(new _.nZ("Reloading from continuation is unsupported")):t.responseContext&&t.responseContext.errors||(delete t.xsrf_token,delete t.timing,delete t.endpoint,delete t.csn,t.responseContext&&delete t.responseContext.serviceTrackingParams,V={request:_.Bn(D,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(t).sort()},t.response&&(V.responseContentKeys=
Object.keys(t.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(V.continuationType=this.nextContinuation.continuationType.substr(0,256)),t=new _.nZ("Malformed continuation",V),D.indexOf("/comment_service_ajax")==0?_.Yw(t):_.gT(t)),this.set(e.continuationsArray||"data.continuations",[])}else _.Jp(new _.nZ("Missing continuation response",D))},
getContents_:function(D,t){t=t.split(".");return _.J$.getValueByKeys(D,t)},
pathExists_:function(D){var t=this;D=D.toString().split(".");for(var H=0;H<D.length;H++)if(t=t[D[H]],t===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var yHo;var BQm;var j3=function(){var D=_.X.apply(this,arguments)||this;D.triggered_=!1;return D};
_.P(j3,_.X);_.q=j3.prototype;_.q.attached=function(){this.maybeTriggerAutoload()};
_.q.detached=function(){this.hasBeenTriggered_=!1};
_.q.onPrescanVisible=function(){this.onShow()};
_.q.onShow=function(){this.showButton||this.trigger()};
_.q.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Gf(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.q.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.q.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.q.computeLabel_=function(D,t){return D===void 0?null:D.label||!t?D.label:this.showMoreText_};
_.q.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.q.getContinuationUrl=function(D){var t={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(t.itct=this.data.clickTrackingParams);return _.z5(D,t)};
_.q.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
j3.prototype.showButtonChanged_=j3.prototype.showButtonChanged_;j3.prototype.observeData_=j3.prototype.observeData_;_.d([_.C(_.k7.YtVisibilityBehavior),_.x("design:type",Object)],j3.prototype,"ytVisibilityBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],j3.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],j3.prototype,"showButton",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],j3.prototype,"showIcon",void 0);_.d([_.M({computed:"computeLabel_(data, showButton)"}),_.x("design:type",Object)],j3.prototype,"label",void 0);_.d([_.M({value:_.H7(_.OT("SHOW_MORE",void 0,"Show More"))}),_.x("design:type",Object)],j3.prototype,"showMoreText_",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],j3.prototype,"spinnerActive_",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],j3.prototype,"hasBeenTriggered_",void 0);
_.d([_.M({value:void 0}),_.x("design:type",String)],j3.prototype,"observeVisibleOption",void 0);_.d([_.M({value:void 0}),_.x("design:type",String)],j3.prototype,"observeHiddenOption",void 0);_.d([_.M({value:"observe_once"}),_.x("design:type",Object)],j3.prototype,"observePrescanOption",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j3.prototype,"observeData_",null);
_.d([_.Os("showButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j3.prototype,"showButtonChanged_",null);_.d([_.xL({is:"yt-next-continuation",disableElementRegistration:!0})],j3);
_.p(j3,"yt-next-continuation",function(){if(BQm===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;yHo===void 0&&(yHo=document.createElement("template"));var e=yHo;H.call(t,e.content.cloneNode(!0),D.content.firstChild);BQm=D}D=BQm;return D},{mode:2});var zyf;var DU3;var $r=function(){return _.X.apply(this,arguments)||this};
_.P($r,_.X);$r.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$r.prototype,"data",void 0);_.d([_.xL({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],$r);
_.p($r,"yt-music-pass-small-feature-info-renderer",function(){if(DU3===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;zyf===void 0&&(zyf=document.createElement("template"));var e=zyf;H.call(t,e.content.cloneNode(!0),D.content.firstChild);DU3=D}D=DU3;return D},{mode:2});_.AB("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var iH=function(){var D=_.X.apply(this,arguments)||this;D.isCollapsible=!1;D.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return D};
_.P(iH,_.X);_.q=iH.prototype;_.q.computeIsCollapsible=function(D){return!!(((D==null?0:D.showMoreText)||(D==null?0:D.visibleRowCount))&&(D==null?0:D.isCollapsible))};
_.q.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"}}}};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.q.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.q.onIronResize=function(){var D=this;_.z1(this,"updateGridInitItems",function(){D.maybeUpdateInitialItemsDisplayed()})};
_.q.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var D=this.getVisibleWidth();D!==0&&(D=Math.floor(D/214)*(this.data.visibleRowCount||2),D!==this.initialCount&&(this.initialCount=D,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.q.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.q.computeExpandVisible=function(D,t,H,e){return D&&t&&H&&!!e&&!!e.showMoreText};
_.q.computeShowMoreButton=function(D){return{text:D,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.q.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.q.initCollapsed=function(){var D=this;this.ytLazyListBehavior.canShowMore=!1;var t;(this.collapsed=!((t=this.data)==null||!t.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.Vi(this,function(){_.Kl(D.hostElement,"yt-refit-popups-action")})};
_.q.fillRestIfNotCollapsible=function(){var D=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!D||this.ytLazyListBehavior.fillRemainingListItems()};
_.q.computeViewAllHidden=function(D,t){return D||!t.viewAllEndpoint};
iH.prototype.fillRestIfNotCollapsible=iH.prototype.fillRestIfNotCollapsible;iH.prototype.initCollapsed=iH.prototype.initCollapsed;iH.prototype.onIronResize=iH.prototype.onIronResize;iH.prototype.persistentGuideChanged=iH.prototype.persistentGuideChanged;_.d([_.C(_.QI),_.x("design:type",Object)],iH.prototype,"ironResizableBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.SL.YtLazyListBehavior),_.x("design:type",Object)],iH.prototype,"ytLazyListBehavior",void 0);_.d([_.C(_.cz.YtNextContinuationBehavior),_.x("design:type",Object)],iH.prototype,"ytNextContinuationBehavior",void 0);_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],iH.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.C(_.T_),_.x("design:type",Object)],iH.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],iH.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],iH.prototype,"collapsed",void 0);_.d([_.M(),_.x("design:type",Number)],iH.prototype,"initialCount",void 0);_.d([_.M({computed:"computeShowMoreButton(data.showMoreText)"}),_.x("design:type",Object)],iH.prototype,"showMoreButton",void 0);
_.d([_.M({computed:"computeIsCollapsible(data)"}),_.x("design:type",Object)],iH.prototype,"isCollapsible",void 0);_.d([_.o5("#items"),_.x("design:type",HTMLElement)],iH.prototype,"items",void 0);_.d([_.mx("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iH.prototype,"persistentGuideChanged",null);_.d([_.rx("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iH.prototype,"onIronResize",null);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iH.prototype,"initCollapsed",null);_.d([_.mx("canShowMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iH.prototype,"fillRestIfNotCollapsible",null);_.d([_.Y({is:"ytd-grid-renderer",disableElementRegistration:!0})],iH);
_.p(iH,"ytd-grid-renderer",function(){if(pSn!==void 0)return pSn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return pSn=D},{mode:_.Kz("kevlar_poly_si_batch_j025")?1:2});var rA=function(){return _.X.apply(this,arguments)||this};
_.P(rA,_.X);
rA.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"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],rA.prototype,"data",void 0);_.d([_.Y({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],rA);
_.p(rA,"ytd-carousel-ad-renderer",function(){if(gyf!==void 0)return gyf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return gyf=D},{mode:1});var tWm;var OR=function(){return _.X.apply(this,arguments)||this};
_.P(OR,_.X);_.q=OR.prototype;_.q.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"}}}};
_.q.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,OR.JSC$15384_CLICK_LOCATION_ID_MAP))};
_.q.onSitelinkTap=function(D){D.stopPropagation();var t,H,e=D==null?void 0:(t=D.model)==null?void 0:(H=t.item)==null?void 0:H.onTap;e&&this.ytSparklesClickLocationBehavior.handleClick(e,D,!1)};
_.q.onTap=function(D){var t=this.data&&this.data.content&&this.data.content.navigationEndpoint;t&&this.ytSparklesClickLocationBehavior.handleClick(t,D,!1)};
_.q.sendImpression=function(){if(this.data&&this.data.content)for(var D=_.F(this.data.content.impressionEndpoints||[]),t=D.next();!t.done;t=D.next()){t=_.F(t.value.loggingUrls||[]);for(var H=t.next();!H.done;H=t.next())H=H.value,H.baseUrl&&Qp(H.baseUrl,H.attributionSrcMode)}};
OR.prototype.onTap=OR.prototype.onTap;OR.prototype.dataChanged=OR.prototype.dataChanged;OR.JSC$15384_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"]]);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],OR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Mg.YtSparklesClickLocationBehavior),_.x("design:type",Object)],OR.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],OR.prototype,"data",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OR.prototype,"dataChanged",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],OR.prototype,"onTap",null);_.d([_.Y({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],OR);
_.p(OR,"ytd-promoted-sparkles-text-search-renderer",function(){if(tWm!==void 0)return tWm;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return tWm=D},{mode:1});var H6Q;var UR=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-mute-ad-action":"handleMuteAd"};return D};
_.P(UR,_.X);_.q=UR.prototype;
_.q.configureRendererStamper=function(){return{"data.menu":{id:_.r("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]]"}}}}}};
_.q.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.q.computeHasAdBadge=function(D){return!(D==null||!D.adBadge)};
_.q.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",UR.JSC$15393_DEFAULT_AD_BADGE_RENDERER),_.kL(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,UR.JSC$15393_CLICK_LOCATION_ID_MAP))};
_.q.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var D;(((D=this.data)==null?void 0:D.impressionCommands)||[]).forEach(function(t){t=_.F(t.loggingUrls||[]);for(var H=t.next();!H.done;H=t.next())H=H.value,H.baseUrl&&Qp(H.baseUrl,H.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.q.onTap=function(D){var t,H=(t=this.data)==null?void 0:t.navigationEndpoint,e;(t=(e=this.data)==null?void 0:e.thumbnailNavigationEndpoint)&&_.V2(_.bK(D),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(t,D,!1):H&&this.ytSparklesClickLocationBehavior.handleClick(H,D,!1)};
_.q.handleMuteAd=function(){this.collapsed=!0};
_.q.attached=function(){var D=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.q.detached=function(){_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.ql.Object.defineProperties(UR.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var D;return!(((D=this.data)==null?void 0:D.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var D;return!(((D=this.data)==null?void 0:D.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.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}}});
UR.prototype.dataChanged=UR.prototype.dataChanged;
UR.JSC$15393_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"]]);
UR.JSC$15393_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.OT("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],UR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);_.d([_.C(ZG),_.x("design:type",Object)],UR.prototype,"ytdActiveViewBehavior",void 0);
_.d([_.C([_.dW.YtActionHandlerBehavior]),_.x("design:type",Object)],UR.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.Mg.YtSparklesClickLocationBehavior),_.x("design:type",Object)],UR.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],UR.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],UR.prototype,"collapsed",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],UR.prototype,"useBiggerThumbs",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.sa("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],UR.prototype,"biggerThumbsStyle",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.x("design:type",Boolean)],UR.prototype,"fixAlignmentSmallScreens",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs_square")}}),
_.x("design:type",Boolean)],UR.prototype,"useBiggerThumbsSquare",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data.mediaHoverOverlay"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UR.prototype,"hideHoverOverlay",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.promotedSparklesWebStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UR.prototype,"webSearchLayout",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UR.prototype,"webSearchLayoutLandscape",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UR.prototype,"webSearchLayoutSquare",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data.promotedSparklesWebStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UR.prototype,"sparklesCtaNoBackground",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.actionButton"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UR.prototype,"hideActionButton",null);_.d([_.M({computed:"computeButtonOverride(uiUpdate)"}),_.x("design:type",Object)],UR.prototype,"buttonOverride",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.x("design:type",Boolean)],UR.prototype,"hasNewAdBadge",void 0);_.d([_.m("data.promotedSparklesWebStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],UR.prototype,"useRoundedBadge",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UR.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],UR);
_.p(UR,"ytd-promoted-sparkles-web-renderer",function(){if(H6Q!==void 0)return H6Q;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return H6Q=D},{mode:1});var esV;var oi=function(){var D=_.X.apply(this,arguments)||this;D.isInlinePreviewTriggered=!1;D.enableMonoStyle=_.r("enable_default_mono_cta_migration_web_client");return D};
_.P(oi,_.X);_.q=oi.prototype;_.q.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]]"}}}}}};
_.q.computeShowCta=function(D){return!(D==null||!D.ctaRenderer)};
_.q.onCtaClick=function(){var D,t,H,e=(D=this.data)==null?void 0:(t=D.ctaRenderer)==null?void 0:(H=t.buttonRenderer)==null?void 0:H.command;e&&this.ytComponentBehavior.resolveCommand(e)};
_.q.onWatchButtonClick=function(){var D,t,H,e=(D=this.data)==null?void 0:(t=D.watchButtonRenderer)==null?void 0:(H=t.buttonRenderer)==null?void 0:H.command;e&&this.ytComponentBehavior.resolveCommand(e)};
_.q.onTap=function(){};
_.q.dataChanged=function(){if(this.data){var D;_.r("enable_inline_muted_playback_on_web_search")&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",oi.JSC$15397_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",oi.JSC$15397_DEFAULT_CLICK_LOCATION_BEHAVIOR,oi.JSC$15397_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&D.removeAttribute("href"));var t;if(((t=this.data)==null?0:t.forceImpAutoplay)&&_.r("enable_force_imp_autoplay_on_desktop_search")){var H;(H=this.JSC$15398_inlinePreviewHoverListener)==null||ldV(H)}}};
_.q.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var D=_.F(this.data.impressionUrls),t=D.next();!t.done;t=D.next())t=t.value,Y_6(t,vPA(t));this.data.impressionsFired=!0}};
_.q.maybeComputeHref=function(){return null};
_.q.computeIsShortDR=function(D){return!(D==null||!D.watchButtonRenderer)&&!(D==null||!D.ctaRenderer)&&!!this.enableShortDR};
_.q.computeIsNewUiOrShortDr=function(D){return!!this.enableUiUpdate||this.computeIsShortDR(D)};
_.q.computeIsNewUiAndNotShortDr=function(D){return!!this.enableUiUpdate&&!this.computeIsShortDR(D)};
_.q.computeHideAvatar=function(D){return!((D==null?0:D.channelThumbnail)&&this.computeIsNewUiOrShortDr(D))};
_.q.onClick=function(D){var t,H=(t=this.data)==null?void 0:t.navigationEndpoint;if(this.enableShortDR&&H&&(_.O(H,_.Hh)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(H,D,!!_.O(H,_.Hh)),D.stopPropagation();else if(H&&_.O(H,_.Hh))this.ytSparklesClickLocationBehavior.handleClick(H,D,!0),D.stopPropagation();else if(H){var e,V;((e=this.data)==null?0:e.navigationEndpoint)&&((V=this.data)==null?0:V.adPlaybackContextParams)&&(t=this.data.navigationEndpoint,D=this.data.adPlaybackContextParams,
t.commandMetadata&&_.O(t.commandMetadata,_.i1)&&_.O(t.commandMetadata,_.i1).url&&(t=_.yc(_.O(t.commandMetadata,_.i1).url).adurl)&&_.v0V(t)&&_.qJ(_.yi(t),{encoded_ad_playback_context:D}));this.ytComponentBehavior.resolveCommand(H)}};
_.q.computeButtonOverride=function(D){if(this.computeIsNewUiOrShortDr(D))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.q.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.q.onThumbnailContainerClick=function(D){this.onClick(D)};
_.q.computeThumbnailWidth=function(D,t){return D?t==="MASSIVE"?600:t==="BIG"?500:t==="MEDIUM"?450:420:360};
_.q.attached=function(){var D=this,t;_.r("enable_inline_muted_playback_on_web_search")&&((t=this.data)==null?0:t.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.q.detached=function(){var D;_.r("enable_inline_muted_playback_on_web_search")&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15398_inlinePreviewHoverListener=v5({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:NQ3})};
_.q.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15398_inlinePreviewHoverListener)==null||t8(D)};
oi.prototype.dataChanged=oi.prototype.dataChanged;oi.prototype.onTap=oi.prototype.onTap;oi.JSC$15397_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.OT("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};oi.JSC$15397_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
oi.JSC$15397_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"}];_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);_.d([_.C(ZG),_.x("design:type",Object)],oi.prototype,"ytdActiveViewBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],oi.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.Mg.YtSparklesClickLocationBehavior),_.x("design:type",Object)],oi.prototype,"ytSparklesClickLocationBehavior",void 0);
_.d([_.o5("#main-container"),_.x("design:type",HTMLElement)],oi.prototype,"mainContainer",void 0);_.d([_.M(),_.x("design:type",Object)],oi.prototype,"isInlinePreviewTriggered",void 0);_.d([_.M(),_.x("design:type",Object)],oi.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],oi.prototype,"useBiggerThumbs",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("enable_video_display_compact_button_group_for_desktop_search")}}),
_.x("design:type",Boolean)],oi.prototype,"enableShortDR",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("enable_vac_ui_update_for_desktop_search")}}),
_.x("design:type",Boolean)],oi.prototype,"enableUiUpdate",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.sa("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],oi.prototype,"biggerThumbsStyle",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.x("design:type",Boolean)],oi.prototype,"showCta",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.x("design:type",Boolean)],oi.prototype,"isShortDr",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.x("design:type",Boolean)],oi.prototype,"isShortDrOrNewUi",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.x("design:type",Boolean)],oi.prototype,"isNewUiAndNotShortDr",void 0);_.d([_.M({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],oi.prototype,"buttonOverride",void 0);_.d([_.M({computed:"computeSecondaryButtonOverride(data)"}),_.x("design:type",Object)],oi.prototype,"secondaryButtonOverride",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],oi.prototype,"enableMonoStyle",void 0);
_.d([_.o5("ytd-thumbnail"),_.x("design:type",HTMLElement)],oi.prototype,"thumbnail",void 0);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oi.prototype,"onTap",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oi.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],oi);
_.p(oi,"ytd-promoted-video-renderer",function(){if(esV!==void 0)return esV;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return esV=D},{mode:1});var VWa;var Pz=function(){var D=_.X.apply(this,arguments)||this;D.useRoundedBadge=!0;D.sitelinkIds=[];return D};
_.P(Pz,_.X);_.q=Pz.prototype;
_.q.configureRendererStamper=function(){return{"data.menu":{id:_.r("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]]"}}}}}};
_.q.dataChanged=function(){var D;(D=this.data)!=null&&D.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Pz.JSC$15403_CLICK_LOCATION_ID_MAP)};
_.q.onTap=function(D){var t,H=(t=this.data)==null?void 0:t.navigationCommand;H&&!_.V2(_.bK(D),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(H,D,!1)};
_.q.onSitelinkTap=function(D){var t,H,e=D==null?void 0:(t=D.model)==null?void 0:(H=t.item)==null?void 0:H.onTap;e&&this.ytSparklesClickLocationBehavior.handleClick(e,D,!1)};
_.q.configureSitelinkClickTargets=function(){var D=this,t,H,e=(t=this.data)==null?void 0:(H=t.clickLocationTargets)==null?void 0:H.find(function(V){return V.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
e&&_.Kg(this.hostElement).querySelectorAll(".sitelink").forEach(function(V){_.kL(V,"yt-simple-endpoint",!0);D.sitelinkIds.push(V.id);var b,a;(b=D.ytSparklesClickLocationBehavior)==null||(a=b.clickTargetMap)==null||a.set(V.id,e)})};
_.q.sendImpression=function(){var D,t,H=((D=this.data)==null?void 0:(t=D.impressionCommand)==null?void 0:t.loggingUrls)||[];D=_.F(H);for(t=D.next();!t.done;t=D.next())t=t.value,t.baseUrl&&Qp(t.baseUrl,t.attributionSrcMode)};
_.q.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.ql.Object.defineProperties(Pz.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Pz.prototype.onTap=Pz.prototype.onTap;Pz.prototype.dataChanged=Pz.prototype.dataChanged;Pz.JSC$15403_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"]]);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Mg.YtSparklesClickLocationBehavior),_.x("design:type",Object)],Pz.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Pz.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pz.prototype,"showFavicon",null);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],Pz.prototype,"useBiggerThumbs",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.sa("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],Pz.prototype,"biggerThumbsStyle",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.x("design:type",Boolean)],Pz.prototype,"enableThumbnailScalingFix",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pz.prototype,"dataChanged",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Pz.prototype,"onTap",null);_.d([_.Y({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Pz);
_.p(Pz,"ytd-text-image-no-button-layout-renderer",function(){if(VWa!==void 0)return VWa;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return VWa=D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var b69;var n3=function(){var D=_.X.apply(this,arguments)||this;D.isInlinePlaybackState=!1;D.uiUpdate=_.r("web_modern_buttons");D.hideCta=_.r("hide_cta_for_home_web_video_ads");D.noBottomMargin=!1;D.animateInTimeStamp=_.ZU("hide_cta_for_home_web_video_ads_animate_in_time");D.animateInCta=!1;D.isHovered=!1;D.enableMonoStyle=_.r("enable_default_mono_cta_migration_web_client");D.player=null;D.JSC$15410_playerEvents=new Map;D.JSC$15410_preventProgressSaveTimer=null;D.delayedCtaJobId=null;return D};
_.P(n3,_.X);_.q=n3.prototype;_.q.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]]"}}}}}};
_.q.attached=function(){this.JSC$15410_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15410_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.r("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.q.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15410_playerEvents)};
_.q.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",n3.JSC$15409_DEFAULT_CLICK_LOCATION_BEHAVIOR,n3.JSC$15409_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.q.hoverChanged=function(){var D=this;this.delayedCtaJobId&&(_.Jy.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.r("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.Mx(_.Jy,function(){D.buttonContainer.classList.add("show-delayed-buttons")},_.ZU("delayed_cta_on_web_delay_milliseconds")))};
_.q.setPlayer=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return(t=_.Kl(D.hostElement,"yt-get-inline-preview-player-action"))&&t[0]?H.yield(t[0].getPlayerPromise(),3):H.jumpTo(0);D.player=H.yieldResult;D.ytPlayerListenerBehavior.listenToPlayerEvents(D.player,D.JSC$15410_playerEvents);_.n2(H)})};
_.q.onPlaybackStart=function(){var D=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15410_preventProgressSaveTimer=_.kX(_.Jy,function(){D.JSC$15410_preventProgressSaveTimer=null},1E4))};
_.q.onVideoProgress=function(D){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&D>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.q.resetPreventProgressSaveTimer=function(){_.Jy.cancelJob(this.JSC$15410_preventProgressSaveTimer);this.JSC$15410_preventProgressSaveTimer=null};
_.q.getSimpleString=function(D){return _.eo(D)};
_.q.onClick=function(D){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var t,H=(t=this.data)==null?void 0:t.navigationEndpoint,e;t=(e=this.data)==null?void 0:e.channelEndpoint;var V,b;((b=_.O((V=this.data)==null?void 0:V.adCtaButton,_.aj))==null?0:b.command)&&_.V2(_.bK(D),this.hostElement,["call-to-action"])||(t&&_.V2(_.bK(D),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(t,D,!1):!_.V2(_.bK(D),this.hostElement,
["secondary-button"])&&H&&(_.r("enable_short_dr_for_desktop_launchable")?(e=!!_.O(H,_.Hh),this.isInlinePlaybackState&&e&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(H,D,e)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(H,D,!0))))}};
_.q.updateWatchEndpointStartTime=function(){var D,t;this.player&&((D=this.data)==null?0:D.inlinePlaybackEndpoint)&&((t=this.data)==null?0:t.navigationEndpoint)&&!this.JSC$15410_preventProgressSaveTimer&&(D=Math.floor(this.player.getCurrentTime()),_.O(this.data.navigationEndpoint,_.Hh).startTimeSeconds=D,_.O(this.data.inlinePlaybackEndpoint,_.Hh).startTimeSeconds=D)};
_.q.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.q.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.ql.Object.defineProperties(n3.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.r("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var D,t;return!((D=this.data)==null||!D.watchButton)&&!((t=this.data)==null||!t.adCtaButton)}}});
n3.prototype.hoverChanged=n3.prototype.hoverChanged;n3.prototype.dataChanged=n3.prototype.dataChanged;
n3.JSC$15409_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"]]);
n3.JSC$15409_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"}];
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],n3.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],n3.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.Mg.YtSparklesClickLocationBehavior),_.x("design:type",Object)],n3.prototype,"ytSparklesClickLocationBehavior",void 0);
_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",_.rt)],n3.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],n3.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],n3.prototype,"isInlinePlaybackState",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],n3.prototype,"miniMode",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],n3.prototype,"uiUpdate",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],n3.prototype,"hideCta",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],n3.prototype,"noBottomMargin",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],n3.prototype,"animateInCta",void 0);_.d([_.M({computed:"computeButtonOverride(uiUpdate)"}),_.x("design:type",Object)],n3.prototype,"buttonOverride",void 0);
_.d([_.M({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.x("design:type",Object)],n3.prototype,"secondaryButtonOverride",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],n3.prototype,"isHovered",void 0);_.d([_.o5("#button-container"),_.x("design:type",HTMLElement)],n3.prototype,"buttonContainer",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],n3.prototype,"typographyBump",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("typographyBump"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],n3.prototype,"typographyBumpV2",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],n3.prototype,"enableMonoStyle",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n3.prototype,"dataChanged",null);
_.d([_.Os("isHovered"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],n3.prototype,"hoverChanged",null);_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],n3.prototype,"isButtonGroup",null);_.d([_.Y({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],n3);
_.p(n3,"ytd-ad-inline-playback-meta-block",function(){if(b69!==void 0)return b69;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return b69=D},{mode:_.Kz("kevlar_poly_si_batch_j065")?1:2});var quV;var C3=function(){var D=_.X.apply(this,arguments)||this;D.noBottomMargin=!1;D.isInlinePreviewTriggered=!1;D.JSC$15415_activeViewMeasurementDataResolver=_.z3();return D};
_.P(C3,_.X);_.q=C3.prototype;_.q.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.q.attached=function(){var D=this;this.updateInlinePreviewHoverListeners();this.JSC$15415_activeViewMeasurementDataResolver.promise.then(function(t){D.ytdActiveViewBehavior.enableActiveViewMeasurement(t,15)});
_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.q.detached=function(){this.clearInlinePreviewHoverListeners();_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15415_inlinePreviewHoverListener=v5({mediaRenderer:this,lockupElement:this.JSC$15415_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:NQ3})};
_.q.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15415_inlinePreviewHoverListener)==null||t8(D)};
_.q.onDataChanged=function(){var D;((D=this.data)==null?0:D.activeView)&&this.JSC$15415_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",C3.JSC$15414_DEFAULT_CLICK_LOCATION_BEHAVIOR,C3.JSC$15414_CLICK_LOCATION_ID_MAP);this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&D.removeAttribute("href"));var t;if((t=this.data)==
null?0:t.forceImpAutoplay){var H;(H=this.JSC$15415_inlinePreviewHoverListener)==null||ldV(H)}};
_.q.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.q.onThumbnailContainerClick=function(D){if(this.data&&this.data.navigationEndpoint){var t,H=(t=this.data)==null?void 0:t.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(H,D,!!_.O(H,_.Hh));D.stopPropagation()}};
_.q.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.q.impressionLog=function(){var D=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var t,H,e=(H=_.O((t=this.data)==null?void 0:t.onImpression,_.ch))==null?void 0:H.commands;e&&(e.forEach(function(V){V.clickTrackingParams&&delete V.clickTrackingParams;D.ytComponentBehavior.resolveCommand(V)}),this.data.impressionsFired=!0)}};
_.ql.Object.defineProperties(C3.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15415_inlinePreviewHoverListener)==null?0:sv(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
C3.prototype.onTypographyBumpChanged=C3.prototype.onTypographyBumpChanged;C3.prototype.onDataChanged=C3.prototype.onDataChanged;C3.JSC$15414_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);C3.JSC$15414_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"}];
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],C3.prototype,"ytComponentBehavior",void 0);_.d([_.C(ZG),_.x("design:type",Object)],C3.prototype,"ytdActiveViewBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],C3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],C3.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.C(_.jL),_.x("design:type",Object)],C3.prototype,"ytdLockupBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],C3.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.Mg.YtSparklesClickLocationBehavior),_.x("design:type",Object)],C3.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],C3.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],C3.prototype,"noBottomMargin",void 0);
_.d([_.M(),_.x("design:type",Object)],C3.prototype,"isInlinePreviewTriggered",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.Ye}),_.x("design:type",Boolean)],C3.prototype,"miniMode",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],C3.prototype,"typographyBump",void 0);_.d([_.o5("ytd-thumbnail"),_.x("design:type",HTMLElement)],C3.prototype,"thumbnail",void 0);_.d([_.o5("#dismissible"),_.x("design:type",HTMLElement)],C3.prototype,"JSC$15415_dismissibleMedia",void 0);
_.d([_.o5("ytd-ad-inline-playback-meta-block"),_.x("design:type",HTMLElement)],C3.prototype,"adInlinePlaybackMetaBlock",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C3.prototype,"onDataChanged",null);_.d([_.mx("typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C3.prototype,"onTypographyBumpChanged",null);
_.d([_.m("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],C3.prototype,"isHovered",null);_.d([_.Y({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],C3);
_.p(C3,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(quV!==void 0)return quV;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return quV=D},{mode:1});var Fwf;var mR=function(){var D=_.X.apply(this,arguments)||this;D.isInlinePreviewTriggered=!1;D.JSC$15418_activeViewMeasurementDataResolver=_.z3();return D};
_.P(mR,_.X);_.q=mR.prototype;_.q.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.q.attached=function(){var D=this;this.updateInlinePreviewHoverListeners();this.JSC$15418_activeViewMeasurementDataResolver.promise.then(function(t){D.ytdActiveViewBehavior.enableActiveViewMeasurement(t,15)})};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15418_inlinePreviewHoverListener=v5({mediaRenderer:this,lockupElement:this.JSC$15418_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:NQ3})};
_.q.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$15418_inlinePreviewHoverListener)==null||t8(D)};
_.q.onDataChanged=function(){var D;((D=this.data)==null?0:D.activeView)&&this.JSC$15418_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",mR.JSC$15417_DEFAULT_CLICK_LOCATION_BEHAVIOR,mR.JSC$15417_CLICK_LOCATION_ID_MAP);this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&D.removeAttribute("href"))};
_.q.onThumbnailContainerClick=function(D){if(this.data&&this.data.navigationEndpoint){var t,H=(t=this.data)==null?void 0:t.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(H,D,!0);D.stopPropagation()}};
_.q.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.q.impressionLog=function(){var D=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var t,H,e=(H=_.O((t=this.data)==null?void 0:t.onImpression,_.ch))==null?void 0:H.commands;e&&(e.forEach(function(V){V.clickTrackingParams&&delete V.clickTrackingParams;_.qS().resolve(_.aA).resolveCommand(V,{form:{element:D.hostElement}})}),this.data.impressionsFired=!0)}};
_.ql.Object.defineProperties(mR.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$15418_inlinePreviewHoverListener)==null?0:sv(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
mR.prototype.onDataChanged=mR.prototype.onDataChanged;mR.JSC$15417_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);mR.JSC$15417_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"}];_.d([_.C(ZG),_.x("design:type",Object)],mR.prototype,"ytdActiveViewBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],mR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],mR.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],mR.prototype,"ytdLockupBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],mR.prototype,"ytdReduxBehavior",void 0);
_.d([_.C(_.Mg.YtSparklesClickLocationBehavior),_.x("design:type",Object)],mR.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],mR.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],mR.prototype,"isInlinePreviewTriggered",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.Ye}),_.x("design:type",Boolean)],mR.prototype,"miniMode",void 0);_.d([_.o5("ytd-thumbnail"),_.x("design:type",HTMLElement)],mR.prototype,"thumbnail",void 0);
_.d([_.o5("#dismissible"),_.x("design:type",HTMLElement)],mR.prototype,"JSC$15418_dismissibleMedia",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mR.prototype,"onDataChanged",null);_.d([_.m("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],mR.prototype,"isHovered",null);_.d([_.Y({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],mR);
_.p(mR,"ytd-video-display-full-buttoned-renderer",function(){if(Fwf!==void 0)return Fwf;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Fwf=D},{mode:1});var be=function(D,t,H,e){e=e===void 0?!1:e;_.Hk.call(this,D);this.adsClientErrorMessage=H;this.aggressivelySample=e;this.args=[];t&&this.args.push(t)};
_.P(be,_.Hk);var eN=function(D,t,H,e){e=e===void 0?!1:e;_.Hk.call(this,D);this.adsClientErrorMessage=H;this.aggressivelySample=e;this.args=[];t&&this.args.push(t)};
_.P(eN,_.Hk);var a3m=function(D){_.mg.call(this);var t=this;this.initializationFunction=D;this.instance=null;this.addOnDisposeCallback(function(){_.qc(t.instance);t.instance=null})};
_.P(a3m,_.mg);a3m.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Q2("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var NpA=function(){var D=new Map;[].forEach(function(t){D.set(t.JSC$30480_getType(),t)});
this.getters=D};new Promise(function(){});var sXD=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"]]),wjR=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"}]]),wfv=function(D){this.experimentApiProvider=D;D=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=D<.1};var M5=function(D,t,H,e){_.mg.call(this);this.adsControlFlowEventListeners=t;this.adEventLogger=H;this.experimentApiProvider=e;this.adsControlFlowManagerHelper=D(this,this,this,this,this);_.c1(this,this.adsControlFlowManagerHelper);D=_.F(t);for(t=D.next();!t.done;t=D.next())_.c1(this,t.value)};
_.P(M5,_.mg);var Z6V=function(D,t,H,e){S3(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",t,H,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e);D=_.F(D.adsControlFlowEventListeners);for(e=D.next();!e.done;e=D.next())Z6V(e.value,t,H)};
_.q=M5.prototype;_.q.onOpportunityProcessedExternallyManaged=function(D,t,H,e){S3(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",D,H,t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,e)};
_.q.onSlotReceivedExternallyManaged=function(D,t){Xi(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",D,t)};
_.q.onSlotEntered=function(D){if(f3(this.adsControlFlowManagerHelper,D)!=null){Xi(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",D);this.adsControlFlowManagerHelper.onSlotEntered(D);for(var t=_.F(this.adsControlFlowEventListeners),H=t.next();!H.done;H=t.next())H.value.onSlotEntered(D);if(f3(this.adsControlFlowManagerHelper,D)!=null&&f3(this.adsControlFlowManagerHelper,D).isOccupyingSlotType()&&L3(this.adsControlFlowManagerHelper,D)&&!so4(this.adsControlFlowManagerHelper,D)){var e;AD(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",D,(e=L3(this.adsControlFlowManagerHelper,D))!=null?e:void 0);D=f3(this.adsControlFlowManagerHelper,D);D.slotLifecycleStage!=="entered"&&gA(D.slot,D.slotLifecycleStage,"enterLayoutForSlot");D.slotLifecycleStage="rendering";D.registeredLayoutRenderingAdapter.startRendering(D.layout)}}};
_.q.onSlotExited=function(D){if(f3(this.adsControlFlowManagerHelper,D)!=null){Xi(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",D);this.adsControlFlowManagerHelper.onSlotExited(D);for(var t=_.F(this.adsControlFlowEventListeners),H=t.next();!H.done;H=t.next())H.value.onSlotExited(D);f3(this.adsControlFlowManagerHelper,D)!=null&&f3(this.adsControlFlowManagerHelper,D).markedForUnscheduleAfterOutboundAdapterRequests&&hsm(this,D)}};
_.q.onLayoutReceivedExternallyManaged=function(D,t,H){D.managerLayer!=="core"&&AD(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",D,t,H)};
var GUf=function(D,t,H){if(f3(D.adsControlFlowManagerHelper,t)!=null){AD(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",t,H);D=_.F(D.adsControlFlowEventListeners);for(var e=D.next();!e.done;e=D.next())GUf(e.value,t,H)}};
M5.prototype.onLayoutExited=function(D,t,H){if(f3(this.adsControlFlowManagerHelper,D)!=null){AD(this.adEventLogger,Z$T(H),D,t);this.adsControlFlowManagerHelper.onLayoutExited(D,t);for(var e=_.F(this.adsControlFlowEventListeners),V=e.next();!V.done;V=e.next())V.value.onLayoutExited(D,t,H);(H=L3(this.adsControlFlowManagerHelper,D))&&t.layoutId===H.layoutId&&E63(this,D)}};
M5.prototype.disposeInternal=function(){var D=Kwm(this.adsControlFlowManagerHelper);D=_.F(D);for(var t=D.next();!t.done;t=D.next())hsm(this,t.value);_.mg.prototype.disposeInternal.call(this)};
var hsm=function(D,t){if(f3(D.adsControlFlowManagerHelper,t)!=null)if(f3(D.adsControlFlowManagerHelper,t).JSC$30510_isSlotExitRequested()||f3(D.adsControlFlowManagerHelper,t).JSC$30510_isLayoutExitRequested())f3(D.adsControlFlowManagerHelper,t).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(f3(D.adsControlFlowManagerHelper,t).isOccupyingSlotType())f3(D.adsControlFlowManagerHelper,t).markedForUnscheduleAfterOutboundAdapterRequests=!0,E63(D,t);else if(f3(D.adsControlFlowManagerHelper,t).JSC$30510_isSlotFillRequested())f3(D.adsControlFlowManagerHelper,
t).markedForUnscheduleAfterOutboundAdapterRequests=!0,f3(D.adsControlFlowManagerHelper,t)!=null&&(Xi(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",t),t=f3(D.adsControlFlowManagerHelper,t),t.fulfillmentLifecycleStage="fill_cancel_requested",t.registeredFulfillmentAdapter.cancelSlotFilling());else{var H=L3(D.adsControlFlowManagerHelper,t),e;D.experimentApiProvider.get();(e=_.r("h5_enable_layout_unscheduling_events"))&&(H?NHB(D,t,H):_.Q2(Error("Qh"),t,H,void 0,!1));Xi(D.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",t);var V=f3(D.adsControlFlowManagerHelper,t),b=t.slotEntryTrigger,a=V.registeredSlotEntryTriggerAdapters.get(b.triggerId);a&&(a.unregisterTrigger(b),V.registeredSlotEntryTriggerAdapters.delete(b.triggerId));b=_.F(t.slotFulfillmentTriggers);for(a=b.next();!a.done;a=b.next()){a=a.value;var w=V.registeredFulfillmentTriggerAdapters.get(a.triggerId);w&&(w.unregisterTrigger(a),V.registeredFulfillmentTriggerAdapters.delete(a.triggerId))}b=_.F(t.slotExpirationTriggers);
for(a=b.next();!a.done;a=b.next())if(a=a.value,w=V.registeredExpirationTriggerAdapters.get(a.triggerId))w.unregisterTrigger(a),V.registeredExpirationTriggerAdapters.delete(a.triggerId);V.hasLayout()&&(b=V.layout,JD(V,b.layoutExitNormalTriggers),JD(V,b.layoutExitSkipTriggers),JD(V,b.layoutExitMuteTriggers),JD(V,b.layoutExitUserInputSubmittedTriggers),JD(V,b.layoutExitUserCancelledTriggers));V.registeredFulfillmentAdapter=void 0;V.registeredSlotAdapter!=null&&(V.registeredSlotAdapter.release(),V.registeredSlotAdapter=
void 0);V.registeredLayoutRenderingAdapter!=null&&(V.registeredLayoutRenderingAdapter.release(),V.registeredLayoutRenderingAdapter=void 0);V=D.adsControlFlowManagerHelper;f3(V,t)&&(V=kU3(V,t.slotType+"_"+t.slotPhysicalPosition))&&V.delete(t.slotId);Xi(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",t);D=_.F(D.adsControlFlowEventListeners);for(V=D.next();!V.done;V=D.next())V=V.value,V.onSlotUnscheduled(t),H&&!e&&NHB(V,t,H)}},NHB=function(D,t,H){AD(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
t,H);
AD(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",t,H);D=_.F(D.adsControlFlowEventListeners);for(var e=D.next();!e.done;e=D.next())e=e.value,H&&NHB(e,t,H)},E63=function(D,t){if(f3(D.adsControlFlowManagerHelper,t)!=null&&f3(D.adsControlFlowManagerHelper,t).isOccupyingSlotType()){var H=L3(D.adsControlFlowManagerHelper,t);
if(H&&so4(D.adsControlFlowManagerHelper,t)){if(f3(D.adsControlFlowManagerHelper,t)!=null){var e=D.adEventLogger,V;var b=((V=wjR.get("abandoned"))==null?void 0:V.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";AD(e,b,t,H);D=f3(D.adsControlFlowManagerHelper,t);D.slotLifecycleStage!=="rendering"&&gA(D.slot,D.slotLifecycleStage,"exitLayout");D.slotLifecycleStage="rendering_stop_requested";D.registeredLayoutRenderingAdapter.stopRendering(H,"abandoned")}}else{Xi(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
t);try{e=f3(D.adsControlFlowManagerHelper,t);if(!e)throw new eN("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");e.slotLifecycleStage!=="enter_requested"&&e.slotLifecycleStage!=="entered"&&e.slotLifecycleStage!=="rendering"&&gA(e.slot,e.slotLifecycleStage,"exitSlot");e.slotLifecycleStage="exit_requested";if(e.registeredSlotAdapter===void 0)throw e.slotLifecycleStage="scheduled",new eN("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
e.registeredSlotAdapter.exit()}catch(a){a instanceof eN&&a.adsClientErrorMessage?(THf(D.adEventLogger,a.adsClientErrorMessage,t),_.Q2(a,t,void 0,void 0,a.aggressivelySample)):(THf(D.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",t),_.Q2(a,t))}}}};var Yr=function(D,t,H,e,V,b){_.mg.call(this);this.registry=D;this.experimentApiProvider=b;this.slotMap=new Map};
_.P(Yr,_.mg);var kU3=function(D,t){return(D=D.slotMap.get(t))?D:new Map},f3=function(D,t){return kU3(D,t.slotType+"_"+t.slotPhysicalPosition).get(t.slotId)},Kwm=function(D){var t=[];
D.slotMap.forEach(function(H){H=_.F(H.values());for(var e=H.next();!e.done;e=H.next())t.push(e.value.slot)});
return t};
Yr.prototype.onSlotEntered=function(D){D=f3(this,D);D.slotLifecycleStage!=="enter_requested"&&gA(D.slot,D.slotLifecycleStage,"onSlotEntered");D.slotLifecycleStage="entered"};
var so4=function(D,t){D=f3(D,t);return D.hasLayout()&&D.isRendering()},L3=function(D,t){(D=f3(D,t))?D.hasLayout()&&!D.layout&&_.Q2("Unexpected empty layout",t):_.Q2("Unexpected undefined slotState",t);
return(D==null?void 0:D.layout)||null};
Yr.prototype.onSlotExited=function(D){D=f3(this,D);D.slotLifecycleStage!=="exit_requested"&&gA(D.slot,D.slotLifecycleStage,"onSlotExited");D.slotLifecycleStage="scheduled"};
Yr.prototype.onLayoutExited=function(D,t){D=f3(this,D);D.isPrimaryLayout(t)&&(D.slotLifecycleStage!=="rendering_stop_requested"&&gA(D.slot,D.slotLifecycleStage,"onLayoutExited"),D.slotLifecycleStage="entered")};
var JD=function(D,t){t=_.F(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;var e=D.registeredLayoutExitTriggerAdapters.get(H.triggerId);e&&(e.unregisterTrigger(H),D.registeredLayoutExitTriggerAdapters.delete(H.triggerId))}},gA=function(D,t,H){_.Q2("Slot stage was "+t+" when calling method "+H,D)};var jo3=function(D){_.mg.call(this);this.deps=D;this.JSC$15468_adsControlFlowManager=c04(this)};
_.P(jo3,_.mg);var c04=function(D){var t=new M5(function(H,e,V,b){return new Yr(D.deps.registry,H,e,V,b,D.deps.experimentApiProvider)},new Set(KlT(D.deps.registry).concat(D.deps.listeners)),D.deps.adEventLogger,D.deps.experimentApiProvider);
_.c1(D,t);return t};var uyu=function(){};var $Un=function(D,t){_.mg.call(this);this.experimentApiProvider=D;this.eventLoggingSettingsProvider=t;this.eventCount=0;this.premiumAdSeenEventLogger=W$A()()};
_.P($Un,_.mg);$Un.prototype.logEvent=function(D){S3(this,D)};
var Xi=function(D,t,H,e){S3(D,t,void 0,void 0,void 0,H,void 0,void 0,void 0,H.adSlotLoggingData,void 0,void 0,e)},AD=function(D,t,H,e,V){S3(D,t,void 0,void 0,void 0,H,e?e:void 0,void 0,void 0,H.adSlotLoggingData,e?e.adLayoutLoggingData:void 0,void 0,V);
H=_.qS().resolve(_.by(mE))==null?void 0:Mz();t=H==null?void 0:H.adsSeenHotConfig;H=H==null?void 0:H.adsHotConfig;(t==null?0:t.logOnAdsSeen)&&(H==null?0:H.webEnablePremiumAdsSeenLogging)&&i66(D,e?e:void 0,V)},THf=function(D,t,H){S3(D,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,H,void 0,void 0,void 0,H.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:t})},S3=function(D,t,H,e,V,b,a,w,h,K,N,k,T){T=T===void 0?0:T;
r0v(D.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+t,"slot:",b,"layout:",a,"ping:",w,"Opportunity:",{opportunityType:H,associatedSlotId:e,slotsFromOpportunity:V,triggerBundle:h,adSlotLoggingData:K,adLayoutLoggingData:N});try{var c=function(){D.experimentApiProvider.get();if(t!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){t||_.Q2("Empty PACF event type",b,a);var U=D.eventLoggingSettingsProvider.get();var S;(S=U.alwaysIncludeDebugData)||(U.experimentApiProvider.get(),S=
!1);U=S;S={eventType:t,eventOrder:++D.eventCount};var L={};b&&(L.slotData=GZ8(U,b));if(a){var J={type:a.layoutType,controlFlowManagerLayer:sXD.get(a.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};U&&(J.debugData={layoutId:a.layoutId});L.layoutData=J}w&&(L.pingData={pingDispatchStatus:w.dispatchStatus,serializedAdPingMetadata:w.ping.serializedAdPingMetadata,pingIndex:w.index});h&&(L.triggerData=hqX(h.trigger,h.category));H&&(L.opportunityData=EN8(U,H,e,V));S.adClientData=L;K&&(S.serializedSlotAdServingData=
K.serializedSlotAdServingDataEntry);N&&(S.serializedAdServingData=N.serializedAdServingDataEntry);k&&(S.errorInfo=k);_.L7("adsClientStateChange",{adsClientEvent:S})}};
T&&T>0?_.C7(_.Cs(),function(){return c()},T):c()}catch(U){r0v(D.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.C7(_.Cs(),function(){_.Q2(U instanceof Error?U:String(U),b,a,{pacf_message:"exception during pacf logging"})})}},i66=function(D,t,H){if(t){var e=t.adLayoutLoggingData;
_.C7(_.Cs(),function(){D.premiumAdSeenEventLogger!=null&&e&&_.L7("adsSeenClientLogging",{serializedAdServingDataEntry:e.serializedAdServingDataEntry})},H!=null?H:0)}};var O6a=function(D,t){$Un.call(this,D,t)};
_.P(O6a,$Un);var UU4=function(){},r0v=function(D,t){return _.r(t)};var Pl4=function(){var D=new o6m;this.JSC$15493_adsControlFlowManager=(new jo3(D)).JSC$15468_adsControlFlowManager},o6m=function(){_.mg.call(this);
var D=this;this.experimentApiProvider=new a3m(function(){return new UU4});
var t=new a3m(function(){return new wfv(D.experimentApiProvider)});
this.adEventLogger=new O6a(this.experimentApiProvider,t);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.P(o6m,_.mg);var n66=function(){},Clf,lH=function(){Clf||(Clf=new n66);
return Clf},vz=function(D){if(!D.JSC$15504_externallyManagedSlotAdapterCallback){var t=(new Pl4).JSC$15493_adsControlFlowManager;
D.JSC$15504_externallyManagedSlotAdapterCallback=t}return D.JSC$15504_externallyManagedSlotAdapterCallback},mUm=function(D,t,H){var e=t.opportunityType,V=Error("Rh");
if(e!==void 0){var b=vz(D);Z6V(b,e,void 0,H)}else _.Q2(V,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});b=[];if(t.adSlotAndLayoutMetadata!==void 0){t=_.F(t.adSlotAndLayoutMetadata);for(var a=t.next();!a.done;a=t.next()){var w=a.value;if(a=w.adSlotMetadata)if(b.push(a),D.onSlotReceivedExternallyManaged(a,H),w.adLayoutMetadata){w=_.F(w.adLayoutMetadata);for(var h=w.next();!h.done;h=w.next())D.onLayoutReceivedExternallyManaged(a,h.value,H)}else H>0&&_.Q2("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
e,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else H>0&&_.Q2("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+e,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else H>0&&_.Q2("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+e,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(e!==void 0)D.onOpportunityProcessedExternallyManaged(e,b,void 0,H);else _.Q2(V,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
n66.prototype.onSlotReceivedExternallyManaged=function(D,t){D=Vm(D);if(D instanceof eN)_.Q2(D,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else vz(this).onSlotReceivedExternallyManaged(D,t)};
n66.prototype.onLayoutReceivedExternallyManaged=function(D,t,H){D=Vm(D);t=kZA(t);if(D instanceof eN)_.Q2(D,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(t instanceof be)_.Q2(t,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else vz(this).onLayoutReceivedExternallyManaged(D,t,H)};
n66.prototype.onOpportunityProcessedExternallyManaged=function(D,t,H,e){var V=[];t=_.F(t);for(var b=t.next();!b.done;b=t.next())b=Vm(b.value),b instanceof eN?_.Q2(b,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):V.push(b);vz(this).onOpportunityProcessedExternallyManaged(D,V,H,e)};
var MWm=function(D,t){t=Vm(t);if(t instanceof eN)_.Q2(t,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var H=vz(D);Xi(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",t);H=_.F(H.adsControlFlowEventListeners);for(var e=H.next();!e.done;e=H.next())e=f3(e.value,t),e.slotLifecycleStage!=="not_scheduled"&&gA(e.slot,e.slotLifecycleStage,"onSlotScheduled"),e.slotLifecycleStage="scheduled";D=vz(D);Xi(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",t);D=_.F(D.adsControlFlowEventListeners);
for(H=D.next();!H.done;H=D.next())H.value.onSlotEntered(t)}},Sua=function(D,t){t=Vm(t);
if(t instanceof eN)_.Q2(t,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var H=vz(D);Xi(H.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",t);H=_.F(H.adsControlFlowEventListeners);for(var e=H.next();!e.done;e=H.next())e.value.onSlotExited(t);D=vz(D);Xi(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",t);D=_.F(D.adsControlFlowEventListeners);for(H=D.next();!H.done;H=D.next())H.value.onSlotUnscheduled(t)}},Xfn=function(D,t,H){t=Vm(t);
H=kZA(H);if(t instanceof eN)_.Q2(t,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(H instanceof be)_.Q2(H,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var e=vz(D);AD(e.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",t,H);e=_.F(e.adsControlFlowEventListeners);for(var V=e.next();!V.done;V=e.next())V.value.onLayoutScheduled(t,H);D=vz(D);AD(D.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",t,H);D=_.F(D.adsControlFlowEventListeners);
for(e=D.next();!e.done;e=D.next())GUf(e.value,t,H)}},p3=function(D,t,H){t=Vm(t);
H=kZA(H);if(t instanceof eN)_.Q2(t,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(H instanceof be)_.Q2(H,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var e=vz(D);AD(e.adEventLogger,Z$T("normal"),t,H);e=_.F(e.adsControlFlowEventListeners);for(var V=e.next();!V.done;V=e.next())V.value.onLayoutExited(t,H,"normal");D=vz(D);D=_.F(D.adsControlFlowEventListeners);for(e=D.next();!e.done;e=D.next())NHB(e.value,t,H)}};_.dA=_.l(function(D){var t=_.FQ(D,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});D=Object.assign({},t);var H=t.data;t=t.customCommandResolver;var e=(delete D.data,delete D.customCommandResolver,D);D=_.wv({visibilityCallback:function(w,h){var K,N=(K=H().interaction)==null?void 0:K.onFirstVisible;w&&(N&&_.IQ(N),e.setOnErrorHandler()&&TpV(h))},
showOption:_.n0});t=_.dF(function(){return H().interaction},t,function(){var w;
return(w=e.listenToTapEvent)==null?void 0:w.call(e)});
var V=_.F(_.KR(!1,void 0,"wAC0Lc")),b=V.next().value,a=V.next().value;V=_.$X(function(w){var h;((h=e.setTouchEndHandler)==null?0:h.call(e))&&!b()&&(w.currentTarget.click(),a(!0),setTimeout(function(){a(!1)},100));
return!1});
return _.G("ad-image-view-model",{class:function(){var w,h=[((w=H().interaction)==null?0:w.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],K;((K=e.isGridViewEnabled)==null?0:K.call(e))&&h.push("ytwAdImageViewModelHostInGridView");return h.join(" ")},
el:_.FI(D,t),"on:touchend":V},_.G("div",{class:"ytwAdImageViewModelHostImageContainer"},_.G(_.bi,{data:function(){var w;return{sources:H().imageSources,contentMode:(w=H().imageProperties)==null?void 0:w.contentMode}},
alt:function(){var w,h;return((w=H().interaction)==null?void 0:(h=w.accessibility)==null?void 0:h.label)||""},
targetHeight:e.targetHeight,targetWidth:e.targetWidth,preserveHeight:e.preserveHeight,preserveWidth:e.preserveWidth,useWidth:e.useWidth,style:function(){var w,h;return"vertical-align: bottom;"+(((w=H().background)==null?0:w.color)?"background-color:"+_.Ih((h=H().background)==null?void 0:h.color)+";":"")},
className:function(){return e.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var w,h;return(h=(w=e.setDraggable)==null?void 0:w.call(e))!=null?h:void 0}})))},"$b");var f3m=_.l(function(D){var t=D.data,H=D.listenToTapEvent,e=function(){};
return _.G("ad-button-hover-overlay-view-model",{"on:click":_.$X(function(V){if(_.r("enable_web_home_top_landscape_image_layout_legacy_click_command")){var b,a=(b=t().interaction)==null?void 0:b.onTap;a&&_.Gf(V.currentTarget,"yt-navigate",{endpoint:_.xP(a)})}}),
class:function(){var V;return((V=t().interaction)==null?0:V.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.FI(_.wv({visibilityCallback:function(V){var b,a=(b=t().interaction)==null?void 0:b.onFirstVisible;V&&a&&_.IQ(a)},
showOption:_.n0}),_.dF(function(){return t().interaction},void 0,function(){return!_.r("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(H==null?void 0:H())}))},function(){return _.r("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.G(_.P5,{data:function(){return t().button}},{adButtonViewModel:function(V){return _.G(_.m8,{data:V.data,
customCommandResolver:e})}}):_.G(_.P5,{data:function(){return t().button}},{adButtonViewModel:_.m8})}())},"ac");var qI;_.hB(_.l(function(D){var t=D.data;D=_.wv({visibilityCallback:function(w,h){if(w){var K;(w=(K=t().interaction)==null?void 0:K.onFirstVisible)&&_.IQ(w);var N;if(K=(N=t().adLayoutData)==null?void 0:N.activeViewData)FJ(h,K),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&as(h)})}else _.r("stop_av_measurement_on_detach")&&as(h)},
showOption:_.n0,hideOption:C0});var H=_.dF(function(){return t().interaction},void 0,function(){return!0}),e=_.F(_.KR(!1,void 0,"VNDDT")),V=e.next().value,b=e.next().value;
e=_.$X(function(){b(!0)});
var a=_.$X(function(){b(!1)});
return _.G("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.FI(D,U_8,H),"on:mouseenter":e,"on:mouseleave":a},_.G("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.O7({"max-width":function(){return _.r("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.G("div",{class:function(){var w;
a:{var h;switch((w=_.O(t().thumbnailImage,o1V))==null?void 0:(h=w.imageProperties)==null?void 0:h.renderingAspect){case "RENDERING_ASPECT_SQUARE":w="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":w="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}w=void 0}return w}},_.G(_.P5,{data:function(){return t().thumbnailImage}},{adImageViewModel:function(w){return _.G(_.dA,
{data:w.data,
listenToTapEvent:!0,setTouchEndHandler:_.r("enable_top_landscape_image_experiment_dom_id_web")})}})),_.G("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.G(_.E,{cond:function(){var w,h,K;
return(w=_.O(t().thumbnailImage,o1V))==null?void 0:(h=w.imageProperties)==null?void 0:(K=h.overlayIcon)==null?void 0:K.iconImage},
then:function(w){return _.G(_.bi,{data:w,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.G("div",{class:function(){return V()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.G(_.P5,{data:function(){return t().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(w){return _.G(f3m,
{data:w.data,
listenToTapEvent:!0})}}))),_.G("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.G(_.P5,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:function(w){return _.G(gd,{data:w.data,
listenToTapEvent:!0,setTouchEndHandler:_.r("enable_top_landscape_image_experiment_dom_id_web")})}})))},"bc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){var t=D.data;D=_.wv({visibilityCallback:function(w,h){if(w){var K;(w=(K=t().interaction)==null?void 0:K.onFirstVisible)&&_.IQ(w);var N;if(K=(N=t().adLayoutData)==null?void 0:N.activeViewData)FJ(h,K),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&as(h)})}else _.r("stop_av_measurement_on_detach")&&as(h)},
showOption:_.n0,hideOption:C0});var H=_.dm(_.pb),e=_.dF(function(){return t().interaction}),V={},b={},a={};
return _.G("square-image-layout-view-model",{class:_.jQ("ytwSquareImageLayoutViewModelHost",(V.ytwSquareImageLayoutViewModelHostColumn=H,V)),el:_.FI(D,oNu,e)},_.G("div",{class:_.jQ("ytwSquareImageLayoutViewModelHostImage",(b.ytwSquareImageLayoutViewModelHostColumnImage=H,b))},function(){return _.G(_.P5,{data:function(){return t().adImage}},{adImageViewModel:function(w){return _.G(_.dA,{data:w.data,
isGridViewEnabled:H,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.G("div",{class:_.jQ("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(a.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=H,a))},_.G(_.P5,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:gd}),function(){return _.G(_.P5,{data:function(){return t().adButton}},{adButtonViewModel:function(w){var h={};
return _.G(_.m8,{data:w.data,className:_.jQ((h.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,h.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=H,h))})}})}()))},"cc"),"square-image-layout-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){var t=D.data;var H=D.noBottomMargin;var e=D.typographyBump;D=_.wv({visibilityCallback:function(k,T){if(k){var c;(k=(c=t().interaction)==null?void 0:c.onFirstVisible)&&_.IQ(k);var U;if(c=(U=t().adLayoutData)==null?void 0:U.activeViewData)FJ(T,c),_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&as(T)})}else _.r("stop_av_measurement_on_detach")&&as(T)},
showOption:_.n0,hideOption:C0});var V=_.dF(function(){return t().interaction},void 0,function(){return _.r("enable_web_home_top_landscape_image_layout_level_click")}),b=function(){return t().interaction};
b!==void 0&&b!==null||_.uh(Error("Sh"));var a=function(){var k,T,c;return(k=_.O(t().thumbnailImage,o1V))==null?void 0:(T=k.background)==null?void 0:(c=T.backgroundImageSource)==null?void 0:c.imageSources};
b=_.F(_.KR(!1,void 0,"NFjwje"));var w=b.next().value,h=b.next().value;b=_.$X(function(){h(!0)});
var K=_.$X(function(){h(!1)}),N=function(){return w()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.G("top-landscape-image-layout-view-model",{class:function(){var k;return((k=t().interaction)==null?0:k.onTap)&&_.r("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.FI(D,PL6,V),"on:mouseenter":b,"on:mouseleave":K},_.G("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.G(_.E,{cond:function(){return a()&&a().length>0},
then:function(){return _.G("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.O7({top:"0","background-image":function(){return"url("+String(a()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.G(_.E,{cond:function(){return!!t().adButtonHoverOverlay},
then:function(){return _.G("div",{class:N},_.G(_.P5,{data:function(){return t().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:f3m}))}}),_.G("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.G(_.P5,{data:function(){return t().thumbnailImage}},{adImageViewModel:function(k){return _.G(_.dA,{data:k.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.r("enable_web_home_top_landscape_image_layout_level_click")})}})),_.G("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.G(_.bi,{data:{sources:[{clientResource:{imageName:_.r("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.G("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.G(_.P5,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:function(k){return _.G(gd,{data:k.data,
noBottomMargin:function(){return H==null?void 0:H()},
listenToTapEvent:function(){return _.r("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return e==null?void 0:e()}})}})))},"dc"),"top-landscape-image-layout-view-model",{props:{data:_.ij,
noBottomMargin:_.ij,typographyBump:_.ij}});var Lw9=_.l(function(D){var t=D.data,H=_.wv({visibilityCallback:function(V){var b,a=(b=t().interaction)==null?void 0:b.onFirstVisible;V&&a&&_.IQ(a)},
showOption:_.n0});D=_.dF(function(){return t().interaction},D.customCommandResolver);
var e={};return _.G("ad-text-image-view-model",{class:_.jQ("ytwAdTextImageViewModelHost",(e.ytwAdTextImageViewModelHostDarkBackground=function(){return t().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},e)),
el:_.FI(H,D),"aria-label":function(){var V,b;return(V=t().interaction)==null?void 0:(b=V.accessibility)==null?void 0:b.label}},_.G("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.G(_.$7,{text:function(){return t().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0})),_.G(_.E,{cond:function(){return t().overlayIcon},
then:function(V){return _.G("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.G(_.bi,{data:V,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"ec");var A0V=_.l(function(D){var t=D.data;return _.G("feed-ad-sitelink-view-model",{class:function(){var H;return((H=t().interaction)==null?0:H.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.FI(_.dF(function(){return t().interaction},D.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var H,e;return(H=t().interaction)==null?void 0:(e=H.accessibility)==null?void 0:e.label},
role:"link",tabindex:0},_.G(_.$7,{text:function(){return t().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"fc");var g6f=_.l(function(D){var t=D.data;D={};return _.G("feed-ad-sitelinks-carousel-view-model",{el:_.FI(_.wv({visibilityCallback:function(H){var e,V=(e=t().interaction)==null?void 0:e.onFirstVisible;H&&V&&_.IQ(V)},
showOption:_.n0})),class:_.jQ("ytwFeedAdSitelinksCarouselViewModelHost",(D.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return t().style==="FEED_AD_SITELINKS_STYLE_NONE"},D))},_.G(_.P5,{data:function(){return t().sitelinks}},{feedAdSitelinkViewModel:A0V}))},"gc");_.hB(_.l(function(D){var t=D.data;D=_.wv({visibilityCallback:function(a,w){if(a){var h;(a=(h=t().interaction)==null?void 0:h.onFirstVisible)&&_.IQ(a);var K;(h=(K=t().adLayoutData)==null?void 0:K.activeViewData)&&FJ(w,h)}},
showOption:_.n0});var H=_.F(_.KR(!1,void 0,"BzPhl")),e=H.next().value,V=H.next().value;H=_.$X(function(){V(!0)});
var b=_.$X(function(){V(!1)});
return _.G("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.FI(D),"on:mouseenter":H,"on:mouseleave":b},_.G("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.G("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.G(_.P5,{data:function(){return t().textImage}},{adTextImageViewModel:Lw9})),_.G("div",{class:function(){return e()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.G(_.P5,{data:function(){return t().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(a){return _.G(f3m,{data:a.data,
listenToTapEvent:!0})}}))),_.G("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.G(_.P5,{data:function(){return t().feedAdMetadata}},{feedAdMetadataViewModel:function(a){return _.G(gd,{data:a.data,
listenToTapEvent:!0})}}),_.G(_.P5,{data:function(){return t().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:g6f})))},"hc"),"text-image-no-button-layout-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){var t=D.data;var H=D.typographyBump;return _.G("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.FI(_.wv({visibilityCallback:function(e,V){if(e){var b;(e=(b=t().interaction)==null?void 0:b.onFirstVisible)&&_.IQ(e);var a;(b=(a=t().adLayoutData)==null?void 0:a.activeViewData)&&FJ(V,b)}},
showOption:_.n0,hideOption:C0}))},_.G("div",null,_.G(_.P5,{data:function(){return t().videoLockup}},{lockupViewModel:function(e){return _.G(_.J9,{data:e.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:H})}})))},"ic"),"video-display-button-group-layout-view-model",{props:{data:_.ij,
noBottomMargin:_.ij,typographyBump:_.ij}});_.hB(_.l(function(D){var t=D.data;var H=D.className;var e=D.typographyBump;return _.G("video-display-compact-button-group-layout-view-model",{el:_.FI(_.wv({visibilityCallback:function(V,b){if(V){var a;(V=(a=t().interaction)==null?void 0:a.onFirstVisible)&&_.IQ(V);var w;(a=(w=t().adLayoutData)==null?void 0:w.activeViewData)&&FJ(b,a)}},
showOption:_.n0})),class:_.jQ("videoDisplayCompactButtonGroupLayoutViewModelHost",H)},_.G(_.P5,{data:function(){return t().videoLockup}},{lockupViewModel:function(V){return _.G(_.J9,{data:V.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:e})}}))},"jc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.ij,
className:_.ij,typographyBump:_.ij}});_.hB(_.l(function(D){var t=D.data;var H=D.className;var e=D.typographyBump;return _.G("video-display-compact-buttoned-layout-view-model",{el:_.FI(_.wv({visibilityCallback:function(V,b){if(V){var a;(V=(a=t().interaction)==null?void 0:a.onFirstVisible)&&_.IQ(V);var w;(a=(w=t().adLayoutData)==null?void 0:w.activeViewData)&&FJ(b,a)}},
showOption:_.n0})),class:_.jQ("videoDisplayCompactButtonedLayoutViewModelHost",H)},_.G(_.P5,{data:function(){return t().videoLockup}},{lockupViewModel:function(V){return _.G(_.J9,{data:V.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:e})}}))},"kc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.ij,
className:_.ij,typographyBump:_.ij}});_.hB(_.l(function(D){var t=D.data;var H=D.className;var e=D.typographyBump;var V=function(){return t().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},b=_.dm(_.pb);
D=_.wv({visibilityCallback:function(K,N){if(K){var k=t();K=k.adLayoutData;var T;(k=(T=k.interaction)==null?void 0:T.onFirstVisible)&&_.IQ(k);(T=K==null?void 0:K.activeViewData)&&FJ(N,T)}},
showOption:_.n0});var a=_.jj(function(){return{containerType:V()&&b()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),w=_.jj(function(){return V()&&b()?"":V()?"168px":"50%"},void 0,"qNDzkb"),h=_.jj(function(){return V()&&b()?9999:void 0},void 0,"Ikn8Kb");
return _.G("video-display-compact-layout-view-model",{el:_.FI(D),class:_.jQ("videoDisplayCompactLayoutViewModelHost",H)},_.G(_.P5,{data:function(){return t().videoLockup}},{lockupViewModel:function(K){return _.G(_.J9,{data:K.data,
containerLayoutConfig:a,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:w,thumbnailTargetWidth:h,typographyBump:e})}}))},"lc"),"video-display-compact-layout-view-model",{props:{data:_.ij,
className:_.ij,typographyBump:_.ij}});_.hB(_.l(function(D){var t=D.data;var H=D.typographyBump;return _.G("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.FI(_.wv({visibilityCallback:function(e,V){if(e){var b;(e=(b=t().interaction)==null?void 0:b.onFirstVisible)&&_.IQ(e);var a;(b=(a=t().adLayoutData)==null?void 0:a.activeViewData)&&FJ(V,b)}},
showOption:_.n0,hideOption:C0}))},_.G("div",null,_.G(_.P5,{data:function(){return t().videoLockup}},{lockupViewModel:function(e){return _.G(_.J9,{data:e.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:H})}})))},"mc"),"video-display-full-layout-view-model",{props:{data:_.ij,
noBottomMargin:_.ij,typographyBump:_.ij}});_.J0B=_.l(function(D){var t=D.data;D=_.DY("ad-card-badge-view-model");return _.G("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:D},_.G(_.E,{cond:function(){return t().imageBadge},
then:function(H){return _.G(_.bi,{data:H,alt:""})}}))},"nc");var Yu6=_.l(function(D){var t=D.data;var H=D.customCommandResolver;return _.G("carousel-ad-card-image-view-model",{class:function(){var e;return((e=t().interaction)==null?0:e.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.FI(_.wv({visibilityCallback:function(e){var V,b=(V=t().interaction)==null?void 0:V.onFirstVisible;e&&b&&_.IQ(b)},
showOption:_.n0}),_.dF(function(){return t().interaction},H)),
"aria-label":function(){var e,V;return(e=t().interaction)==null?void 0:(V=e.accessibility)==null?void 0:V.label}},_.G(_.P5,{data:function(){return t().adImage}},{adImageViewModel:function(e){return _.G(_.dA,{data:e.data,
customCommandResolver:H})}}),_.G("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.G(_.P5,{data:function(){return t().badge}},{adCardBadgeViewModel:_.J0B})),_.G(_.fE,{model:{color:4}}))},"oc");var l3v=_.l(function(D){var t=_.F(_.KR(0,void 0,"JJ0QQc")),H=t.next().value;t.next();var e=t.next().value,V=_.F(_.KR(!1,void 0,"f6YICe"));t=V.next().value;var b=V.next().value,a;_.Sj(function(){clearTimeout(a)});
V=_.$X(function(){var K;((K=D.animate)==null?0:K.call(D))?(b(!0),a=setTimeout(function(){b(!1);w()},200)):w();
return!1});
var w=function(){e(function(K){return(K+D.numShownItems())%D.data().length})},h={};
return _.G("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.G("div",{class:_.jQ("ytwHorizontalCarouselCarouselWrapper")},_.G("div",{class:_.jQ("ytwHorizontalCarouselCarouselInnerWrapper",(h.ytwHorizontalCarouselAnimating=t,h))},_.G(_.nY,{each:D.data,keyBy:"INDEX"},function(K,N){return _.G("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.O7({"flex-basis":function(){return"calc((100% - (8px * "+(D.numShownItems()-1)+")) / "+D.numShownItems()+")"},
order:function(){var k=N-H();k<0&&(k+=D.data().length);return k}})},D.children(K,N))}))),_.G("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":V},D.nextButton()))},"pc");var v6n=_.l(function(D){var t=D.data;var H=D.customCommandResolver;var e=D.expansive;return _.G("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.FI(_.wv({visibilityCallback:function(V){var b,a=(b=t().interaction)==null?void 0:b.onFirstVisible;V&&a&&_.IQ(a)},
showOption:_.n0}))},_.G(l3v,{data:function(){var V;return((V=t())==null?void 0:V.carouselAdCards)||[]},
nextButton:function(){return _.G(_.P5,{data:function(){return t().nextButton}},{buttonViewModel:function(V){var b=V.data;
return _.G(_.JX,{data:function(){return(e==null?0:e())?Object.assign({},b(),{style:"mono"}):b()},
className:_.r("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(V){return _.G(_.P5,{data:V},{carouselAdCardImageViewModel:function(b){return _.G(Yu6,{data:b.data,customCommandResolver:H})}})}))},"qc");var pfB=_.l(function(D){var t=D.data;var H=D.customCommandResolver;var e=D.className;var V=D.buttonClassName;var b=D.animationEntityKey;var a=D.expansive;return _.G("carousel-button-view-model",{class:_.jQ("ytwCarouselButtonViewModelHost",e)},_.G(_.P5,{data:function(){return t().carousel}},{carouselAdCardCollectionViewModel:function(w){return _.G(v6n,{data:w.data,
customCommandResolver:H,expansive:a})}}),_.G(_.P5,{data:function(){return t().button}},{adButtonViewModel:function(w){var h=w.data;
return _.G(_.m8,{data:function(){return(a==null?0:a())?Object.assign({},h(),{style:"AD_BUTTON_STYLE_TONAL"}):h()},
className:V,customCommandResolver:H,animationEntityKey:b})}}))},"rc");_.dUo=_.l(function(D){var t=D.data;D=D.className;var H=_.DY("pivot-button-view-model");_.XH(function(){var e;((e=t())==null?0:e.backgroundColor)&&H.value.setAttribute("data-background-color",String(t().backgroundColor))});
return _.G("pivot-button-view-model",{el:H,class:_.jQ("ytwPivotButtonViewModelHost",D)},_.G(_.XW,{command:function(){var e=t();e=e.onClickCommand?_.xP(e.onClickCommand):e.contentDescription?_.ah(e.contentDescription):void 0;return e},
ariaLabel:function(){return t().contentDescription}},_.G(_.E,{cond:function(){return t().thumbnail},
then:function(e){return _.G(_.bi,{data:e,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.G(_.E,{cond:function(){return t().icon},
then:function(e){return _.G(_.U7,{icon:function(){return e().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"sc");_.xUV=_.l(function(D){var t=D.data;var H=D.buttonShapeOverrideables;return _.G("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.G(_.P5,{data:function(){return t().buttonViewModels}},{buttonViewModel:function(e){return _.G(_.JX,{data:e.data,
buttonOverrides:H})},
likeButtonViewModel:function(e){return _.G(_.ZZ,{data:e.data,buttonShapeOverrideables:H})},
dislikeButtonViewModel:function(e){return _.G(_.w7,{data:e.data,buttonShapeOverrideables:H})},
toggleButtonViewModel:function(e){return _.G(_.VC,{data:e.data,buttonShapeOverrides:H})}}))},"tc");var Rsa=_.l(function(D){var t=D.avatar;var H=D.headline;var e=D.badge;var V=D.description;var b=D.expansive;D={};return _.G("yt-ad-metadata-shape",{class:_.jQ("ytAdMetadataShapeHost",(D.ytAdMetadataShapeHostLarge=b,D))},_.G("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.G(_.E,{cond:t,then:function(a){return _.G(_.AvV,{data:function(){return(b==null?0:b())?Object.assign({},a(),{size:"AD_AVATAR_SIZE_M"}):a()}})}}),_.G("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.G(_.$7,{text:H,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.G(_.E,{cond:e,then:function(a){return _.G(_.L0,{data:function(){return(b==null?0:b())?Object.assign({},a(),{style:"AD_BADGE_STYLE_STARK"}):a()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.G("h2",{class:"ytAdMetadataShapeHostDescription"},_.G(_.$7,{text:V,
linkInheritColor:!0,isHeadline:function(){return b==null?void 0:b()}})))},"uc");var umQ=_.l(function(D){var t=D.data;var H=D.onShow;var e=D.expansive;D=_.dF(function(){return t().interaction});
_.XH(function(){var b,a=(b=t().animatedRenderingConfig)==null?void 0:b.delayedSecondsToVisible;if(a){var w=setTimeout(H,a*1E3);_.Sj(function(){clearTimeout(w)})}});
var V={};return _.G("reels-ad-card-buttoned-view-model",{class:_.jQ(function(){var b;return((b=t().interaction)==null?0:b.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(V.ytwReelsAdCardButtonedViewModelHostExpansive=e,V)),
el:_.FI(D)},_.G(Rsa,{avatar:function(){return _.O(t().avatar,r2a)},
headline:function(){return t().headline},
badge:function(){return _.O(t().adBadge,Ora)},
description:function(){return t().description},
expansive:e}),_.G(_.P5,{data:function(){return t().ctaButton}},{adButtonViewModel:function(b){var a=b.data;
return _.G(_.m8,{data:function(){return(e==null?0:e())?Object.assign({},a(),{style:"AD_BUTTON_STYLE_FILLED"}):a()}})}}))},"vc");var Wwf=_.l(function(D){var t=D.data;D=D.expansive;var H=_.r("web_ad_metadata_clickable")?_.dF(function(){return t().interaction},void 0,function(){return _.r("web_ad_metadata_clickable")}):void 0,e={};
e=_.ff("ytwReelsAdMetadataViewModelHost",(e.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.r("web_ad_metadata_clickable"),e));return _.G("reels-ad-metadata-view-model",{class:e,el:_.FI(H)},_.G(Rsa,{avatar:function(){return _.O(t().avatar,r2a)},
headline:function(){return t().headline},
badge:function(){return _.O(t().adBadge,Ora)},
description:function(){return t().description},
expansive:D}))},"wc");var I3o={iconPosition:"icon-with-label",size:"L"},Qon=_.l(function(D){var t=D.data;var H=D.overlayDensity;var e=D.extractOverlay;var V=D.extractActionBar;D=_.DY("reels-player-overlay-layout-view-model");var b=_.qT(H,0),a=function(){var c;return(c=t().reelsAdCardButtonedEntityKey)!=null?c:""},w=function(){return a()+"/ad_button"},h=_.rF(cmV,a),K=function(){var c,U;
return(U=(c=h())==null?void 0:c.value)!=null?U:!1},N=_.dm(nN3),k=function(){var c;
return Object.assign({},I3o,(N()||!((c=V==null?void 0:V())!=null&&c))&&{style:"overlay-dark"})};
H={};var T={};return _.G("reels-player-overlay-layout-view-model",{class:_.jQ("ytwReelsPlayerOverlayLayoutViewModelHost",(H.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!t().extension},H.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},H.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return b()===1&&!(e==null?0:e())},H.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var c;
return(c=e==null?void 0:e())!=null?c:!1},H.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var c;
return(c=V==null?void 0:V())!=null?c:!1},H)),
"overlay-density":function(){return String(b())},
el:D},_.G("div",{class:_.jQ("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(T.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},T))},_.G("div",{"aria-hidden":function(){return K()},
class:_.jQ("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return K()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.O7({"transition-duration":function(){return SMD(t())}})},_.G(_.P5,{data:function(){return t().adMetadata}},{reelsAdMetadataViewModel:function(c){return _.G(Wwf,{data:c.data,
expansive:function(){return b()===1}})}}),_.G(_.E,{cond:function(){return t().extension},
then:function(c){return _.G("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.G(_.P5,{data:c},{adButtonViewModel:function(U){return _.G(_.m8,{data:U.data,animationEntityKey:w,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(U){return _.G(pfB,{data:U.data,animationEntityKey:w,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return b()===1}})}}))}})),_.G("div",{"aria-hidden":function(){return!K()},
class:_.jQ("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return K()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.O7({"transition-duration":function(){return SMD(t())}})},_.G(_.P5,{data:function(){return t().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(c){return _.G(umQ,{data:c.data,
onShow:function(){_.bf(_.nf("booleanEntity",a(),{key:a(),value:!0}))},
expansive:function(){return b()===1}})}}))),_.G("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.G(_.P5,{data:function(){return t().actions}},{reelActionBarViewModel:function(c){return _.G(_.xUV,{data:c.data,
buttonShapeOverrideables:k})}}),_.G(_.P5,{data:function(){return t().menu}},{buttonViewModel:function(c){return _.G(_.JX,{data:c.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},k(),{type:"tonal"})}})}}),_.G(_.P5,{data:function(){return t().pivotButton}},{pivotButtonViewModel:function(c){return _.G(_.dUo,{data:c.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"xc");_.hB(Qon,"reels-player-overlay-layout-view-model",{props:{data:_.ij,overlayDensity:_.ij,extractOverlay:_.ij,extractActionBar:_.ij}});var xr=function(){var D=_.X.apply(this,arguments)||this;D.noBottomMargin=!1;D.overlayDensity=0;D.extractOverlay=!1;D.extractActionBar=!1;return D};
_.P(xr,_.X);_.q=xr.prototype;
_.q.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.r("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},
textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.q.ready=function(){var D=this;WCV(function(){D.isAttached&&tl(D.JSC$15548_storedAdSlotMetadata,D.JSC$15548_storedAdLayoutMetadata,D.adSlotMetadata,D.adLayoutMetadata)&&p3(lH(),D.JSC$15548_storedAdSlotMetadata,D.JSC$15548_storedAdLayoutMetadata)})};
_.q.attached=function(){tl(this.JSC$15548_storedAdSlotMetadata,this.JSC$15548_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Xfn(lH(),this.JSC$15548_storedAdSlotMetadata,this.JSC$15548_storedAdLayoutMetadata)};
_.q.detached=function(){tl(this.JSC$15548_storedAdSlotMetadata,this.JSC$15548_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&p3(lH(),this.JSC$15548_storedAdSlotMetadata,this.JSC$15548_storedAdLayoutMetadata)};
_.q.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.q.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15548_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15548_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15548_storedAdLayoutMetadata!==void 0&&this.JSC$15548_storedAdSlotMetadata!==void 0&&p3(lH(),this.JSC$15548_storedAdSlotMetadata,this.JSC$15548_storedAdLayoutMetadata),Xfn(lH(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15548_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15548_storedAdSlotMetadata=this.adSlotMetadata)};
_.ql.Object.defineProperties(xr.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.adLayoutMetadata}}});
xr.prototype.onAdMetadataChanged=xr.prototype.onAdMetadataChanged;xr.prototype.onTypographyBumpChanged=xr.prototype.onTypographyBumpChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],xr.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],xr.prototype,"rendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],xr.prototype,"ytComponentBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],xr.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],xr.prototype,"noBottomMargin",void 0);_.d([_.M(),_.x("design:type",Object)],xr.prototype,"overlayDensity",void 0);_.d([_.M(),_.x("design:type",Object)],xr.prototype,"extractOverlay",void 0);_.d([_.M(),_.x("design:type",Object)],xr.prototype,"extractActionBar",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],xr.prototype,"typographyBump",void 0);
_.d([_.m("data.adLayoutMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],xr.prototype,"adLayoutMetadata",null);_.d([_.M(),_.x("design:type",Object)],xr.prototype,"adSlotMetadata",void 0);_.d([_.o5("ytd-video-display-full-buttoned-and-button-group-renderer"),_.x("design:type",HTMLElement)],xr.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.d([_.Os("typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xr.prototype,"onTypographyBumpChanged",null);_.d([_.Os("adLayoutMetadata","adSlotMetadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xr.prototype,"onAdMetadataChanged",null);_.d([_.Y({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],xr);
_.p(xr,"ytd-in-feed-ad-layout-renderer",function(){if(AHn!==void 0)return AHn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return AHn=D},
{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var y06;var BH6;_.hB(_.L0,"ad-badge-view-model",{props:{data:_.ij,hasDot:_.ij,customCommandResolver:_.wm,adRenderingContextType:_.wm,usedInMasthead:_.wm}});_.hB(_.m8,"ad-button-view-model",{props:{data:_.ij,customCommandResolver:_.wm,className:_.wm,delayedClassName:_.wm,animationEntityKey:_.wm,isCompactWidth:_.wm,isContentWidth:_.wm}});var Ri=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return D};
_.P(Ri,_.X);_.q=Ri.prototype;_.q.computeHasLiveDescription=function(D){return!(D==null||!D.liveDescription)};
_.q.computeHasByline=function(D){return!(D==null||!D.byline)};
_.q.computeUsesAdButtonViewModel=function(D){return!!_.O(D==null?void 0:D.cta,Uko)};
_.q.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]",usedInMasthead:"[[isMasthead]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isContentWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.q.onYtToggleButton=function(D){var t,H=(t=this.data)==null?void 0:t.videoReminderEntityKey;H&&this.ytdReduxBehavior.dispatch(_.nf("upcomingEventReminderStateEntity",H,{key:H,state:D.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.q.attached=function(){this.updateChannelBanner()};
_.q.dataChanged=function(){this.updateChannelBanner()};
_.q.videoReminderStateChanged=function(){var D;this.videoReminderState&&_.O((D=this.data)==null?void 0:D.cta,_.w3)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.q.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var D=_.G3(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);D&&(D.startsWith("//")&&(D="https:"+D),this.hostElement.classList.add("channel-banner"),_.jZ(this.hostElement,{"--ytvmh-channel-banner":"url("+D+")"}))}else _.r("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.q.onPlayerReady=function(){this.onIronResize()};
_.q.maybeFlushDebouncer=function(){_.r("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(D){var t;D=(t=D.getElementsByTagName("yt-attributed-string"))==null?void 0:t[0];EWk(D==null?void 0:D.polymerController)})};
_.q.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var D=_.Kg(this.hostElement).querySelector("#live-description"),t;D&&((t=this.data)==null?0:t.shortLiveDescription)&&D.clientWidth<D.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
Ri.prototype.onIronResize=Ri.prototype.onIronResize;Ri.prototype.videoReminderStateChanged=Ri.prototype.videoReminderStateChanged;Ri.prototype.dataChanged=Ri.prototype.dataChanged;Ri.prototype.onYtToggleButton=Ri.prototype.onYtToggleButton;_.d([_.C(_.QI),_.x("design:type",Object)],Ri.prototype,"ironResizableBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Ri.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Ri.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ri.prototype,"data",void 0);_.d([_.M({selectorArgs:["data.videoReminderEntityKey"],selector:$88}),_.x("design:type",Object)],Ri.prototype,"videoReminderState",void 0);
_.d([_.M({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.x("design:type",Boolean)],Ri.prototype,"rounded",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.x("design:type",Boolean)],Ri.prototype,"hasLiveDescription",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.x("design:type",Boolean)],Ri.prototype,"hasByline",void 0);
_.d([_.M({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.x("design:type",String)],Ri.prototype,"adRenderingContextType",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],Ri.prototype,"isMasthead",void 0);_.d([_.M({computed:"computeUsesAdButtonViewModel(data)"}),_.x("design:type",Boolean)],Ri.prototype,"usesAdButtonViewModel",void 0);
_.d([_.M({reflectToAttribute:!0,value:_.r("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.x("design:type",Boolean)],Ri.prototype,"resizableAdBannerSafariFix",void 0);_.d([_.PT("yt-formatted-string"),_.x("design:type",Array)],Ri.prototype,"formattedStrings",void 0);_.d([_.o5("#cta-button"),_.x("design:type",HTMLElement)],Ri.prototype,"ctaButton",void 0);
_.d([_.rx("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ri.prototype,"onYtToggleButton",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ri.prototype,"dataChanged",null);_.d([_.Os("videoReminderState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ri.prototype,"videoReminderStateChanged",null);
_.d([_.rx("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ri.prototype,"onIronResize",null);_.d([_.Y({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],Ri);
_.p(Ri,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(BH6!==void 0)return BH6;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return BH6=D},{mode:1});var zsf;var uH=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};D.isLocked=!1;return D};
_.P(uH,_.X);_.q=uH.prototype;_.q.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.q.onExpandedChanged=function(){this.expanded&&_.Kl(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.q.onMouseOver=function(){this.maybeExpand()};
_.q.onTap=function(){this.maybeExpand()};
_.q.onExpandableTileExpanding=function(D){D!==this&&(this.expanded=!1)};
_.q.onExpandableTileLockAndCollapse=function(D){this.isLocked=!0;D!==this&&(this.expanded=!1)};
_.q.onExpandableTileUnlock=function(){this.isLocked=!1};
uH.prototype.onTap=uH.prototype.onTap;uH.prototype.onMouseOver=uH.prototype.onMouseOver;uH.prototype.onExpandedChanged=uH.prototype.onExpandedChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],uH.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],uH.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],uH.prototype,"expanded",void 0);_.d([_.mx("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uH.prototype,"onExpandedChanged",null);_.d([_.rx("mouseover"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uH.prototype,"onMouseOver",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uH.prototype,"onTap",null);
_.d([_.Y({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],uH);
_.p(uH,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(zsf!==void 0)return zsf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return zsf=D},{mode:1});var DmB;var Wz=function(){var D=_.X.apply(this,arguments)||this;D.buttonOverrides={style:"overlay"};D.useYtdPlayer=_.r("use_ytd_player_for_desktop_masthead");D.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};D.playbackFinished=!1;D.JSC$15562_playerManager=null;D.JSC$15562_mastheadCounter=new Gp4;return D};
_.P(Wz,_.X);_.q=Wz.prototype;_.q.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"}}}};
_.q.created=function(){this.JSC$15562_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15562_playerManager=new tX)};
_.q.ready=function(){var D=this;this.JSC$15562_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var t=_.Kg(this.hostElement).querySelector("#player");this.useYtdPlayer?t.style.display="none":(this.ytdPlayer.style.display="none",yt6(this.JSC$15562_playerManager,t,function(){D.onPlaybackEnded()}),_.Kg(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var H;
((H=D.data)==null?0:H.navigationEndpoint)&&_.Gf(D.hostElement,"yt-navigate",{endpoint:D.data.navigationEndpoint})}))};
_.q.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15562_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.q.attached=function(){var D=this;_.BT(function(){D.maybePlayVideo()})};
_.q.maybePlayVideo=function(){var D=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$15562_playerManager.playVideo(),this.getPlayerPromise().then(function(){D.JSC$15562_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.q.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15562_playerManager.stopVideo()};
_.q.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var D,t={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((D=this.data.playbackStartMs)!=null?D:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(t);this.setupYtdPlayer()}else zY3(this.JSC$15562_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(BGn(this.JSC$15562_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.q.getPlayerPromise=function(){return this.JSC$15562_playerManager.getPlayerPromise()};
_.q.onYtToggleButton=function(D){this.useYtdPlayer?this.toggleMute(D.detail.toggled):D.detail.toggled?this.JSC$15562_playerManager.mute():this.JSC$15562_playerManager.unMute()};
_.q.onYtNavigate=function(D){var t=F8V(D.detail.endpoint),H=a6D(this.data.clickthroughReportingData);t&&H&&(D.detail.endpoint.watchEndpoint?D.detail.tempData=H:_.qJ(t,H,30))};
_.q.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.q.onExpandedChanged=function(){this.expanded?(_.Kl(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.q.onMouseOver=function(){this.maybeExpand()};
_.q.onTap=function(){this.maybeExpand()};
_.q.onExpandableTileExpanding=function(D){D!==this&&(this.stopVideo(),this.expanded=!1)};
_.q.onExpandableTileLockAndCollapse=function(D){D!==this&&(this.isLocked=!0,this.expanded=!1)};
_.q.onExpandableTileUnlock=function(){this.isLocked=!1};
_.q.lockAndCollapseExpandableTiles=function(){_.ET(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.q.unlockExpandableTiles=function(){_.ET(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.q.setupYtdPlayer=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(D.ytdPlayer.getPlayerPromise(),2);t=H.yieldResult;t.addEventListener("onStateChange",function(e){D.onPlayerStateChange(e)});
t.addEventListener("onCueRangeExit",function(e){D.onCueRangeExit(e)});
_.n2(H)})};
_.q.onPlayerStateChange=function(D){if(D===1&&(D=this.ytdPlayer.getPlayer())){var t=D.getCurrentTime(),H,e,V=t+((e=(H=this.data)==null?void 0:H.playbackDurationMs)!=null?e:0)/1E3;D.addCueRange("playback",t,V);this.JSC$15562_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.q.onCueRangeExit=function(D){D==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.q.toggleMute=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(t.ytdPlayer.getPlayerPromise(),2);H=e.yieldResult;D?H.mute():H.unMute();_.n2(e)})};
Wz.prototype.onTap=Wz.prototype.onTap;Wz.prototype.onMouseOver=Wz.prototype.onMouseOver;Wz.prototype.onExpandedChanged=Wz.prototype.onExpandedChanged;Wz.prototype.onYtNavigate=Wz.prototype.onYtNavigate;Wz.prototype.onYtToggleButton=Wz.prototype.onYtToggleButton;Wz.prototype.dataChanged=Wz.prototype.dataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Wz.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Wz.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Wz.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Wz.prototype,"expanded",void 0);_.d([_.M(),_.x("design:type",Object)],Wz.prototype,"buttonOverrides",void 0);
_.d([_.M(),_.x("design:type",Object)],Wz.prototype,"useYtdPlayer",void 0);_.d([_.o5("#ytd-player"),_.x("design:type",Object)],Wz.prototype,"ytdPlayer",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wz.prototype,"dataChanged",null);_.d([_.rx("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Wz.prototype,"onYtToggleButton",null);
_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Wz.prototype,"onYtNavigate",null);_.d([_.mx("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wz.prototype,"onExpandedChanged",null);_.d([_.rx("mouseover"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wz.prototype,"onMouseOver",null);
_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wz.prototype,"onTap",null);_.d([_.Y({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],Wz);
_.p(Wz,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(DmB!==void 0)return DmB;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return DmB=D},{mode:1});var tqQ;var Ii=function(){return _.X.apply(this,arguments)||this};
_.P(Ii,_.X);Ii.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ii.prototype.onShow=function(){var D=_.Kg(this.hostElement).querySelector("#live-description"),t;D&&((t=this.data)==null?0:t.shortLiveDescription)&&D.clientWidth<D.scrollWidth&&this.hostElement.classList.add("short-live-description")};
Ii.prototype.onYtToggleButton=function(D){var t,H=(t=this.data)==null?void 0:t.videoReminderEntityKey;H&&this.ytdReduxBehavior.dispatch(_.nf("upcomingEventReminderStateEntity",H,{key:H,state:D.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
Ii.prototype.videoReminderStateChanged=function(){var D;this.videoReminderState&&_.O((D=this.data)==null?void 0:D.cta,_.w3)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
Ii.prototype.videoReminderStateChanged=Ii.prototype.videoReminderStateChanged;Ii.prototype.onYtToggleButton=Ii.prototype.onYtToggleButton;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ii.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ii.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Ii.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ii.prototype,"data",void 0);
_.d([_.M({selectorArgs:["data.videoReminderEntityKey"],selector:$88}),_.x("design:type",Object)],Ii.prototype,"videoReminderState",void 0);_.d([_.rx("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ii.prototype,"onYtToggleButton",null);_.d([_.Os("videoReminderState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ii.prototype,"videoReminderStateChanged",null);
_.d([_.Y({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],Ii);
_.p(Ii,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(tqQ!==void 0)return tqQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return tqQ=D},{mode:_.Kz("kevlar_poly_si_batch_j065")?1:2});var HAQ;var QF=function(){var D=_.X.apply(this,arguments)||this;D.useYtdPlayer=_.r("use_ytd_player_for_desktop_masthead");D.buttonOverrides={style:"overlay"};D.JSC$15570_playerManager=null;D.JSC$15570_mastheadCounter=new Gp4;D.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return D};
_.P(QF,_.X);_.q=QF.prototype;_.q.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"}}}};
_.q.created=function(){this.JSC$15570_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15570_playerManager=new tX)};
_.q.ready=function(){var D=this;this.JSC$15570_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var t;(t=this.embeddedPlayer)==null||t.remove()}else{var H;(H=this.ytdPlayer)==null||H.remove();yt6(this.JSC$15570_playerManager,this.embeddedPlayer,function(){D.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){D.data&&D.data.navigationEndpoint&&_.Gf(D.hostElement,"yt-navigate",{endpoint:D.data.navigationEndpoint})})}};
_.q.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15570_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.q.dataChanged=function(){var D=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var t=!this.data.disableAutoPlayback,H,e={autoplay:t,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((H=this.data.playbackStartMs)!=null?H:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(t?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(e);this.setupYtdPlayer()}else zY3(this.JSC$15570_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(BGn(this.JSC$15570_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15570_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.ET(D.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");D.JSC$15570_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.q.getPlayerPromise=function(){return this.JSC$15570_playerManager.getPlayerPromise()};
_.q.onYtToggleButton=function(D){this.useYtdPlayer?this.toggleMute(D.detail.toggled):D.detail.toggled?this.JSC$15570_playerManager.mute():this.JSC$15570_playerManager.unMute()};
_.q.onYtNavigate=function(D){var t=F8V(D.detail.endpoint),H=a6D(this.data.clickthroughReportingData);t&&H&&(D.detail.endpoint.watchEndpoint?D.detail.tempData=H:_.qJ(t,H,30))};
_.q.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15570_playerManager.stopVideo()};
_.q.setupYtdPlayer=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(D.ytdPlayer.getPlayerPromise(),2);t=H.yieldResult;t.addEventListener("onStateChange",function(e){D.onPlayerStateChange(e)});
t.addEventListener("onCueRangeExit",function(e){D.onCueRangeExit(e)});
_.n2(H)})};
_.q.onPlayerStateChange=function(D){if(D===1&&(D=this.ytdPlayer.getPlayer())){var t=D.getCurrentTime(),H,e,V=t+((e=(H=this.data)==null?void 0:H.playbackDurationMs)!=null?e:0)/1E3;D.addCueRange("playback",t,V);_.ET(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15570_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.q.onCueRangeExit=function(D){D==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.q.toggleMute=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(t.ytdPlayer.getPlayerPromise(),2);H=e.yieldResult;D?H.mute():H.unMute();_.n2(e)})};
_.ql.Object.defineProperties(QF.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var D,t;if(!((D=this.data)==null?0:(t=D.accessibilityData)==null?0:t.label))return"Ad primary link";var H,e;return _.OT("AD_TITLE",{title:(H=this.data)==null?void 0:(e=H.accessibilityData)==null?void 0:e.label})}}});
QF.prototype.onYtMastheadHidden=QF.prototype.onYtMastheadHidden;QF.prototype.onYtNavigate=QF.prototype.onYtNavigate;QF.prototype.onYtToggleButton=QF.prototype.onYtToggleButton;QF.prototype.dataChanged=QF.prototype.dataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],QF.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],QF.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],QF.prototype,"useYtdPlayer",void 0);_.d([_.o5("ytd-toggle-button-renderer"),_.x("design:type",Object)],QF.prototype,"muteButton",void 0);_.d([_.M(),_.x("design:type",Object)],QF.prototype,"buttonOverrides",void 0);
_.d([_.m("data.accessibilityData.label"),_.x("design:type",String),_.x("design:paramtypes",[])],QF.prototype,"titleAriaLabel",null);_.d([_.o5("#replay-button"),_.x("design:type",Object)],QF.prototype,"replayButton",void 0);_.d([_.o5("#player-container"),_.x("design:type",Object)],QF.prototype,"playerContainer",void 0);_.d([_.o5("#player"),_.x("design:type",Object)],QF.prototype,"embeddedPlayer",void 0);_.d([_.o5("#ytd-player"),_.x("design:type",Object)],QF.prototype,"ytdPlayer",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QF.prototype,"dataChanged",null);_.d([_.rx("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],QF.prototype,"onYtToggleButton",null);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],QF.prototype,"onYtNavigate",null);
_.d([_.rx("yt-masthead-hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QF.prototype,"onYtMastheadHidden",null);_.d([_.Y({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],QF);
_.p(QF,"ytd-video-masthead-ad-primary-video-renderer",function(){if(HAQ!==void 0)return HAQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return HAQ=D},{mode:2});var eZQ;var yF=function(){var D=_.X.apply(this,arguments)||this;D.collapsed=!1;D.impressionResolver=_.z3();D.JSC$15574_activeViewMeasurementDataResolver=_.z3();D.actionMap={"yt-mute-ad-action":"handleMuteAd"};return D};
_.P(yF,_.X);_.q=yF.prototype;_.q.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"}}}};
_.q.ready=function(){var D=this;_.Kg(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){D.expandAd()});
this.hostElement.addEventListener("yt-action",function(t){if(t.detail.actionName==="yt-service-request"){var H=t.detail.args[1];H.videoMastheadAdMuteCommand&&(D.collapseAd(H.videoMastheadAdMuteCommand.encryptedMastheadId),t.stopPropagation())}})};
_.q.attached=function(){var D=this;_.BT(function(){D.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(t){if(!D.collapsed){t=_.F(t);for(var H=t.next();!H.done;H=t.next())H=H.value,Qp(H.baseUrl,H.attributionSrcMode);D.data.impressionCommand=void 0}});
this.JSC$15574_activeViewMeasurementDataResolver.promise.then(function(t){D.ytdActiveViewBehavior.enableActiveViewMeasurement(t,15)});
_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.q.dataChanged=function(){var D;((D=this.data.impressionCommand)==null?0:D.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var t;((t=this.data)==null?0:t.activeView)&&this.JSC$15574_activeViewMeasurementDataResolver.resolve(this.data.activeView);(D=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(D.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.q.computeWidescreen=function(D){var t;return!!(D&&((t=_.O(D,T86))==null?0:t.isWidescreen))};
_.q.computeExpandable=function(D){return!!(D&&D.length>0)};
_.q.onIronResize=function(){if(this.expandable){var D=_.Kg(this.hostElement).querySelector("#expandable-tile-container :first-child");D&&!D.expanded&&(D.expanded=!0)}};
_.q.handleMuteAd=function(){this.collapseAd(null)};
_.q.restoreCollapsedState=function(D){this.collapsed=_.Ph().get("HIDDEN_MASTHEAD_ID")===D};
_.q.collapseAd=function(D){if(D){var t=_.Ph();t.set("HIDDEN_MASTHEAD_ID",D);t.save()}(D=_.Kg(this.hostElement).querySelector("#video"))&&_.Gf(D,"yt-masthead-hidden");this.collapsed=!0};
_.q.expandAd=function(){var D=_.Ph();D.set("HIDDEN_MASTHEAD_ID",!1);D.save();location.reload()};
_.q.detached=function(){_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
yF.prototype.onIronResize=yF.prototype.onIronResize;yF.prototype.dataChanged=yF.prototype.dataChanged;_.d([_.C(_.QI),_.x("design:type",Object)],yF.prototype,"ironResizableBehavior",void 0);_.d([_.C(ZG),_.x("design:type",Object)],yF.prototype,"ytdActiveViewBehavior",void 0);_.d([_.C(_.Ko),_.x("design:type",Object)],yF.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],yF.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yF.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],yF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],yF.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.x("design:type",Boolean)],yF.prototype,"widescreen",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.x("design:type",Boolean)],yF.prototype,"expandable",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yF.prototype,"collapsed",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yF.prototype,"dataChanged",null);
_.d([_.rx("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yF.prototype,"onIronResize",null);_.d([_.Y({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],yF);
_.p(yF,"ytd-video-masthead-ad-v3-renderer",function(){if(eZQ!==void 0)return eZQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return eZQ=D},{mode:2});var Bz=function(){return _.X.apply(this,arguments)||this};
_.P(Bz,_.X);_.q=Bz.prototype;_.q.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.q.ready=function(){var D=this;WCV(function(){D.isAttached&&tl(D.JSC$15579_storedAdSlotMetadata,D.JSC$15579_storedAdLayoutMetadata,D.adSlotMetadata,D.adLayoutMetadata)&&p3(lH(),D.JSC$15579_storedAdSlotMetadata,D.JSC$15579_storedAdLayoutMetadata)})};
_.q.attached=function(){tl(this.JSC$15579_storedAdSlotMetadata,this.JSC$15579_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&Xfn(lH(),this.JSC$15579_storedAdSlotMetadata,this.JSC$15579_storedAdLayoutMetadata)};
_.q.detached=function(){tl(this.JSC$15579_storedAdSlotMetadata,this.JSC$15579_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&p3(lH(),this.JSC$15579_storedAdSlotMetadata,this.JSC$15579_storedAdLayoutMetadata)};
_.q.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15579_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15579_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15579_storedAdLayoutMetadata!==void 0&&this.JSC$15579_storedAdSlotMetadata!==void 0&&p3(lH(),this.JSC$15579_storedAdSlotMetadata,this.JSC$15579_storedAdLayoutMetadata),Xfn(lH(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15579_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15579_storedAdSlotMetadata=this.adSlotMetadata)};
_.ql.Object.defineProperties(Bz.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.adLayoutMetadata}}});
Bz.prototype.onAdMetadataChanged=Bz.prototype.onAdMetadataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Bz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Bz.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Bz.prototype,"data",void 0);_.d([_.m("data.adLayoutMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bz.prototype,"adLayoutMetadata",null);
_.d([_.M(),_.x("design:type",Object)],Bz.prototype,"adSlotMetadata",void 0);_.d([_.Os("adLayoutMetadata","adSlotMetadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bz.prototype,"onAdMetadataChanged",null);_.d([_.Y({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],Bz);
_.p(Bz,"ytd-page-top-ad-layout-renderer",function(){if(y06!==void 0)return y06;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return y06=
D},{mode:_.Kz("kevlar_poly_si_batch_j070")?1:2});var Vqn;var z_=function(){var D=_.X.apply(this,arguments)||this;D.noBottomMargin=!1;D.overlayDensity=0;D.typographyBump=!1;D.extractOverlay=!1;D.extractActionBar=!1;return D};
_.P(z_,_.X);_.q=z_.prototype;
_.q.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",
properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}}}}};
_.q.ready=function(){var D=this;WCV(function(){D.isAttached&&D.adSlotMetadata&&Sua(lH(),D.adSlotMetadata)})};
_.q.attached=function(){if(this.adSlotMetadata){var D;if(this.adSlotMetadata===((D=this.data)==null?void 0:D.adSlotMetadata))MWm(lH(),this.adSlotMetadata);else{var t;_.Yw(Error("Th`"+this.adSlotMetadata+"`"+((t=this.data)==null?void 0:t.adSlotMetadata)))}}};
_.q.detached=function(){this.adSlotMetadata&&Sua(lH(),this.adSlotMetadata)};
_.q.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.q.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&Sua(lH(),this.adSlotMetadata),MWm(lH(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.ql.Object.defineProperties(z_.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var D,t,H=_.O((D=this.data)==null?void 0:(t=D.fulfillmentContent)==null?void 0:t.fulfilledLayout,_.jun),e;return(D=(e=_.O(H==null?void 0:H.renderingContent,c2f))==null?void 0:e.layout)?D.toLowerCase().replace(/_/g,"-"):""}}});
z_.prototype.onAdSlotMetadataChanged=z_.prototype.onAdSlotMetadataChanged;z_.prototype.onTypographyBumpChanged=z_.prototype.onTypographyBumpChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],z_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],z_.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],z_.prototype,"rendererBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],z_.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],z_.prototype,"noBottomMargin",void 0);_.d([_.M(),_.x("design:type",Object)],z_.prototype,"overlayDensity",void 0);_.d([_.M(),_.x("design:type",Object)],z_.prototype,"typographyBump",void 0);_.d([_.M(),_.x("design:type",Object)],z_.prototype,"extractOverlay",void 0);_.d([_.M(),_.x("design:type",Object)],z_.prototype,"extractActionBar",void 0);
_.d([_.o5("ytd-in-feed-ad-layout-renderer"),_.x("design:type",HTMLElement)],z_.prototype,"inFeedAdLayoutRenderer",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",String),_.x("design:paramtypes",[])],z_.prototype,"layout",null);_.d([_.Os("typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],z_.prototype,"onTypographyBumpChanged",null);
_.d([_.Os("data.adSlotMetadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],z_.prototype,"onAdSlotMetadataChanged",null);_.d([_.Y({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],z_);
_.p(z_,"ytd-ad-slot-renderer",function(){if(Vqn!==void 0)return Vqn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Vqn=D},{mode:_.Kz("kevlar_poly_si_batch_j077")?
1:2});var bAB;var br=function(){return _.X.apply(this,arguments)||this};
_.P(br,_.X);_.q=br.prototype;_.q.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"}}}};
_.q.maybeComputeHref=function(){return null};
_.q.onTap=function(){};
_.q.onThumbnailContainerClick=function(D){this.onClick(D)};
_.q.onClick=function(D){var t,H=(t=this.data)==null?void 0:t.navigationEndpoint;H&&_.O(H,_.Hh)&&(this.ytSparklesClickLocationBehavior.handleClick(H,D,!1),D.stopPropagation())};
_.q.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var D=_.F(this.data.impressionUrls),t=D.next();!t.done;t=D.next())t=t.value,Y_6(t,vPA(t));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",br.JSC$15587_DEFAULT_CLICK_LOCATION_BEHAVIOR,br.JSC$15587_CLICK_LOCATION_ID_MAP);this.thumbnail&&(D=this.thumbnail.getElementsByTagName("a"),D.length>0&&(D=D.namedItem("thumbnail"))&&
D.removeAttribute("href"))}};
_.q.attached=function(){var D=this;_.r("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&D.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.q.detached=function(){_.r("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.ql.Object.defineProperties(br.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
br.prototype.dataChanged=br.prototype.dataChanged;br.prototype.onTap=br.prototype.onTap;br.JSC$15587_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
br.JSC$15587_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"}];_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],br.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.d([_.C(ZG),_.x("design:type",Object)],br.prototype,"ytdActiveViewBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],br.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],br.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.Mg.YtSparklesClickLocationBehavior),_.x("design:type",Object)],br.prototype,"ytSparklesClickLocationBehavior",void 0);
_.d([_.M({selector:_.pb}),_.x("design:type",Object)],br.prototype,"isGridViewEnabled",void 0);_.d([_.m("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],br.prototype,"watchFeedBigThumbs",null);_.d([_.m("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],br.prototype,"thumbnailWidth",null);_.d([_.M(),_.x("design:type",Object)],br.prototype,"data",void 0);
_.d([_.o5("ytd-thumbnail"),_.x("design:type",HTMLElement)],br.prototype,"thumbnail",void 0);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],br.prototype,"onTap",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],br.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],br);
_.p(br,"ytd-compact-promoted-video-renderer",function(){if(bAB!==void 0)return bAB;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return bAB=D},{mode:1});var qcf;_.AB("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var qn=function(){return _.X.apply(this,arguments)||this};
_.P(qn,_.X);qn.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],qn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],qn.prototype,"data",void 0);_.d([_.Y({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],qn);
_.p(qn,"ytd-search-pyv-renderer",function(){if(qcf!==void 0)return qcf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return qcf=D},{mode:1});var Fqn;_.AB("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var F$=function(){var D=_.X.apply(this,arguments)||this;D.roundedContainer=!0;D.JSC$15595_handleOpenPostCommentDialogActionAfterStamp=!1;D.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return D};
_.P(F$,_.X);_.q=F$.prototype;
_.q.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}}};
_.q.onStampFinished=function(){this.JSC$15595_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.q.handleSignalActionOpenPostCommentDialogAction=function(){var D=_.Kg(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");D?D.openDialog():this.JSC$15595_handleOpenPostCommentDialogActionAfterStamp=!0};
_.q.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.q.computeHideBorder=function(){return this.isInEngagementPanel};
_.q.computeIsCompact=function(){return this.isInEngagementPanel};
_.q.computeUsesCompactLockup=function(D){return D==="BACKSTAGE_SURFACE_TYPE_HOME"||D==="BACKSTAGE_SURFACE_TYPE_SEARCH"||D==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||D==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||D==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||D==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.q.computeUsesFullLockup=function(){var D,t=(D=this.data)==null?void 0:D.post,H;D=(H=_.O(t,Mxn))==null?void 0:H.surface;var e;H=(e=_.O(t,fEn))==null?void 0:e.originalPost;var V;if(e=D||((V=_.O(H,Mxn))==null?void 0:V.surface))return!this.computeUsesCompactLockup(e)&&this.useUpdatedRepostUi;var b;return((b=_.O(t,fEn))==null?void 0:b.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.ql.Object.defineProperties(F$.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var D,t;return((t=_.O((D=this.data)==null?void 0:D.post,Mxn))==null?void 0:t.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.useUpdatedRepostUi}}});
F$.prototype.onYtCommentModerationPanelEmpty=F$.prototype.onYtCommentModerationPanelEmpty;F$.prototype.onStampFinished=F$.prototype.onStampFinished;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],F$.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],F$.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],F$.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],F$.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],F$.prototype,"roundedContainer",void 0);_.d([_.M({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.x("design:type",Boolean)],F$.prototype,"hideBorder",void 0);_.d([_.M({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.x("design:type",Boolean)],F$.prototype,"isCompact",void 0);
_.d([_.M({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.x("design:type",Boolean)],F$.prototype,"usesFullLockup",void 0);_.d([_.rx("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F$.prototype,"onStampFinished",null);
_.d([_.rx("ytd-comment-moderation-panel-empty"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],F$.prototype,"onYtCommentModerationPanelEmpty",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],F$.prototype,"isInEngagementPanel",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],F$.prototype,"useUpdatedRepostUi",null);
_.d([_.Y({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],F$);
_.p(F$,"ytd-backstage-post-thread-renderer",function(){if(Fqn!==void 0)return Fqn;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Fqn=D},{mode:1});var aN9;var a9=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.P(a9,_.X);a9.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
a9.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var D=this.data.thumbnail.thumbnails;this.isDarkTheme&&(D=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(D=_.G3(D,24,void 0,"height"))?D:void 0}};
a9.prototype.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
a9.prototype.computeHasText=function(){var D;return!((D=this.data)==null||!D.text)};
_.ql.Object.defineProperties(a9.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.dw(this.bannerImageUrl))+'");'}}});
a9.prototype.computeHasText=a9.prototype.computeHasText;a9.prototype.computeBannerImageUrl=a9.prototype.computeBannerImageUrl;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],a9.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],a9.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],a9.prototype,"ytRendererBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],a9.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],a9.prototype,"isDarkTheme",void 0);_.d([_.M(),_.x("design:type",String)],a9.prototype,"bannerImageUrl",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.x("design:type",Boolean)],a9.prototype,"hasText",void 0);_.d([_.Os("data","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],a9.prototype,"computeBannerImageUrl",null);
_.d([_.Os("data.text"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],a9.prototype,"computeHasText",null);_.d([_.m("bannerImageUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],a9.prototype,"bannerStyle",null);_.d([_.Y({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],a9);
_.p(a9,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(aN9!==void 0)return aN9;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return aN9=D},{mode:1});var wBa;var w9=function(){return _.X.apply(this,arguments)||this};
_.P(w9,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],w9.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],w9.prototype,"data",void 0);_.d([_.Y({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],w9);
_.p(w9,"ytd-backstage-zero-state-renderer",function(){if(wBa!==void 0)return wBa;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return wBa=D},{mode:1});var ZA6;var ZJ=function(){return _.X.apply(this,arguments)||this};
_.P(ZJ,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ZJ.prototype,"data",void 0);_.d([_.M({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],ZJ.prototype,"icon",void 0);_.d([_.Y({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],ZJ);
_.p(ZJ,"ytd-post-filter-zero-state-renderer",function(){if(ZA6!==void 0)return ZA6;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ZA6=D},{mode:1});var s1o;var hZo={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},so=function(){return _.X.apply(this,arguments)||this};
_.P(so,_.X);so.prototype.configureRendererStamper=function(){return hZo};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],so.prototype,"rendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],so.prototype,"data",void 0);_.d([_.M({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],so.prototype,"icon",void 0);_.d([_.Y({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],so);
_.p(so,"ytd-post-scheduling-zero-state-renderer",function(){if(s1o!==void 0)return s1o;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return s1o=D},{mode:1});var GYf;var hi=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return D};
_.P(hi,_.X);hi.prototype.onTabsActivate=function(D){this.data&&this.data.tabs&&_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[D.detail.selected].navigationEndpoint})};
hi.prototype.shouldShowTotalCount=function(D){return D&&D.totalCount!==void 0};
hi.prototype.handleUpdatePostsTotalCountAction=function(D){var t=this.get(["data.tabs",1,"totalCount"]),H=this.get("updatePostsTotalCountAction.updateType",D);D=this.get("updatePostsTotalCountAction.number",D);t!==void 0&&H!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&D&&(H==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(t)+D):H==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(t)-D))};
_.ql.Object.defineProperties(hi.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var D=0,t=this.data.tabs.length;D<t;D++)if(this.data.tabs[D].selected)return D;return 0}}});
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],hi.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],hi.prototype,"rendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],hi.prototype,"data",void 0);_.d([_.m("data.tabs"),_.x("design:type",Number),_.x("design:paramtypes",[])],hi.prototype,"selected",null);_.d([_.Y({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],hi);
_.p(hi,"ytd-post-stream-filter-renderer",function(){if(GYf!==void 0)return GYf;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return GYf=D},{mode:1});var E44;var GS=function(){return _.X.apply(this,arguments)||this};
_.P(GS,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],GS.prototype,"kevlarBehaviors",void 0);_.d([_.M(),_.x("design:type",Object)],GS.prototype,"data",void 0);_.d([_.Y({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],GS);
_.p(GS,"ytd-channel-age-gate-renderer",function(){if(E44!==void 0)return E44;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return E44=D},{mode:1});var Kqo;_.AB("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var Eo=function(){var D=_.X.apply(this,arguments)||this;D.data=null;return D};
_.P(Eo,_.X);Eo.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ql.Object.defineProperties(Eo.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return((D=this.data)==null?0:(t=D.title)==null?0:(H=t.runs)==null?0:H.length)?147:160}}});
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Eo.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Eo.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Eo.prototype,"imageSizePx",null);_.d([_.Y({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],Eo);
_.p(Eo,"ytd-channel-owner-empty-state-renderer",function(){if(Kqo!==void 0)return Kqo;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Kqo=D},{mode:1});var Ncn;var kYV;var KF=function(){var D=_.X.apply(this,arguments)||this;D.boundSubmitSearch=function(){D.submitSearch()};
D.boundClearSearch=function(){D.clearSearch()};
return D};
_.P(KF,_.X);_.q=KF.prototype;_.q.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]]"}}}}}};
_.q.toggleClearButton=function(){this.hideClearButton=ywD||!this.input.value};
_.q.submitOnEnterKeyUp=function(D){D.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.q.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.q.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.q.submit=function(){_.Gf(this.hostElement,"search-query-changed",this.input.value)};
KF.prototype.toggleClearButton=KF.prototype.toggleClearButton;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],KF.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],KF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],KF.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],KF.prototype,"hideClearButton",void 0);_.d([_.M(),_.x("design:type",Object)],KF.prototype,"boundSubmitSearch",void 0);_.d([_.M(),_.x("design:type",Object)],KF.prototype,"boundClearSearch",void 0);_.d([_.o5("#input"),_.x("design:type",Object)],KF.prototype,"input",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KF.prototype,"toggleClearButton",null);
_.d([_.Y({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],KF);
_.p(KF,"ytd-channel-switcher-search-box-renderer",function(){if(kYV!==void 0)return kYV;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return kYV=D},{mode:1});var Tc3;var Nn=function(){var D=_.X.apply(this,arguments)||this;D.boundSubmit=function(){D.submit()};
return D};
_.P(Nn,_.X);_.q=Nn.prototype;_.q.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"}}}}};
_.q.ready=function(){var D=this;this.form.addEventListener("submit",function(t){return D.onSubmit(t)})};
_.q.onSubmit=function(D){D.preventDefault();return!1};
_.q.toggleClearButton=function(){this.hideClearButton=ywD||!this.input.value};
_.q.submitOnEnterKeyUp=function(D){D.keyCode===13&&this.submit()};
_.q.submit=function(){var D=this.data.endpoint,t=(0,_.J$.unsafeClone)(D);_.O(t,_.UL)?_.O(t,_.UL).query=this.input.value:_.O(t,_.oh)&&(_.O(t,_.oh).query=this.input.value);var H=_.O(t.commandMetadata,_.i1);(H==null?0:H.url)?(H.url=_.p7(H.url,"query",this.input.value),_.Gf(this.hostElement,"yt-navigate",{endpoint:t})):_.O(t,GTn)?(_.O(t,GTn).channelSwitcherQuery=this.input.value,_.qS().resolve(_.aA).resolveCommand(t,{form:{element:this.hostElement}})):(D=Error("Uh`"+JSON.stringify(D)),_.gT(D))};
_.q.getUrl=function(D){return this.get("commandMetadata.webCommandMetadata.url",D)};
Nn.prototype.toggleClearButton=Nn.prototype.toggleClearButton;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Nn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Nn.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Nn.prototype,"hideClearButton",void 0);
_.d([_.M(),_.x("design:type",Object)],Nn.prototype,"boundSubmit",void 0);_.d([_.o5("#form"),_.x("design:type",HTMLFormElement)],Nn.prototype,"form",void 0);_.d([_.o5("#input"),_.x("design:type",Object)],Nn.prototype,"input",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nn.prototype,"toggleClearButton",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],Nn);
_.p(Nn,"ytd-search-box-renderer",function(){if(Tc3!==void 0)return Tc3;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Tc3=D},{mode:2});var kE=function(){var D=_.X.apply(this,arguments)||this;D.showSearchBox=!0;return D};
_.P(kE,_.X);kE.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],kE.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],kE.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kE.prototype,"showSearchBox",void 0);_.d([_.Y({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],kE);
_.p(kE,"ytd-channel-switcher-header-renderer",function(){if(Ncn!==void 0)return Ncn;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Ncn=D},{mode:1});var cda;var j13;var TS=function(){var D=_.X.apply(this,arguments)||this;D.isDisplayed=!0;return D};
_.P(TS,_.X);_.q=TS.prototype;_.q.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.dataChanged=function(){this.isDisplayed=!0};
_.q.computeType=function(D){return D||"UNKNOWN"};
_.q.onYtServiceRequestCompleted=function(D){D.stopPropagation();this.isDisplayed=!1};
_.q.onClose=function(){this.isDisplayed=!1};
TS.prototype.onYtServiceRequestCompleted=TS.prototype.onYtServiceRequestCompleted;TS.prototype.dataChanged=TS.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],TS.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],TS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],TS.prototype,"data",void 0);
_.d([_.M({computed:"computeType(data.type)",reflectToAttribute:!0}),_.x("design:type",String)],TS.prototype,"type",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],TS.prototype,"isDisplayed",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TS.prototype,"dataChanged",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],TS.prototype,"onYtServiceRequestCompleted",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],TS);
_.p(TS,"ytd-alert-with-button-renderer",function(){if(j13!==void 0)return j13;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return j13=D},{mode:1});var cW=function(){var D=_.X.apply(this,arguments)||this;D.noResult=!1;D.enableAlertBanner=!1;D.dismissedAlertBanner=!1;D.hideCreateChannelButton=!1;D.boundDismissAlertBanner=function(){D.dismissAlertBanner()};
D.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return D};
_.P(cW,_.X);_.q=cW.prototype;_.q.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.q.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.q.updateChannelSwitcherAction=function(D){var t;D=(t=_.O(D,FLf))==null?void 0:t.page;_.O(D,qyV)!==void 0&&(this.data=_.O(D,qyV))};
_.q.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]]"}}}}}};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.q.searchQueryChanged=function(D,t){if(this.data&&this.data.contents&&this.data.contents.length){D=[];var H=[];this.hideCreateChannelButton=this.noResult=!1;for(var e=document.querySelectorAll("ytd-account-item-renderer"),V=_.F(e),b=V.next();!b.done;b=V.next())b=b.value,H.push(b),b.style.display="block";this.resetRightBorder(H);if(t){this.hideCreateChannelButton=!0;for(H=1;H<this.data.contents.length;H++)if(b=this.data.contents[H],_.O(b,Zrn)){var a=void 0,w=void 0;V=(a=_.O(b,Zrn))==null?void 0:(w=
a.accountName)==null?void 0:w.simpleText;w=a=void 0;b=(a=_.O(b,Zrn))==null?void 0:(w=a.channelHandle)==null?void 0:w.simpleText;(a=e[H-1])&&V&&_.GV(V,t)?D.push(a):_.r("enable_handle_search_on_channel_switcher")&&a&&b&&_.GV(b.toString(),t.toString())?D.push(a):a.style.display="none"}D.length===0&&(this.noResult=!0);this.resetRightBorder(D)}}};
_.q.resetRightBorder=function(D){for(var t=0;t<D.length;t++)D[t].style.borderRight=!this.hideCreateChannelButton&&(t+2)%3===0||this.hideCreateChannelButton&&(t+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.q.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.q.setShowSearchBox=function(D){if(D&&D.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var t=0;t<D.contents.length;t++)_.O(D.contents[t],_.HX)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.q.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.ql.Object.defineProperties(cW.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.contents)}}});
cW.prototype.onContinuationItemsUpdated=cW.prototype.onContinuationItemsUpdated;cW.prototype.searchQueryChanged=cW.prototype.searchQueryChanged;cW.prototype.onDataChanged=cW.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],cW.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.T_),_.x("design:type",Object)],cW.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],cW.prototype,"data",void 0);_.d([_.o5("ytd-channel-switcher-header-renderer"),_.x("design:type",Object)],cW.prototype,"channelSwitcherHeaderRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],cW.prototype,"noResult",void 0);
_.d([_.M(),_.x("design:type",Object)],cW.prototype,"enableAlertBanner",void 0);_.d([_.M(),_.x("design:type",Object)],cW.prototype,"dismissedAlertBanner",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],cW.prototype,"hideCreateChannelButton",void 0);_.d([_.m("data.contents"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cW.prototype,"isLoading",null);_.d([_.M(),_.x("design:type",Object)],cW.prototype,"boundDismissAlertBanner",void 0);
_.d([_.M({computed:"computeButtonOverride()"}),_.x("design:type",Object)],cW.prototype,"buttonOverride",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cW.prototype,"onDataChanged",null);_.d([_.rx("search-query-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,String]),_.x("design:returntype")],cW.prototype,"searchQueryChanged",null);
_.d([_.rx("yt-next-continuation-data-updated"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],cW.prototype,"onContinuationItemsUpdated",null);_.d([_.Y({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],cW);
_.p(cW,"ytd-channel-switcher-page-renderer",function(){if(cda!==void 0)return cda;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return cda=D},{mode:1});var $mf;var iAm;var j9=function(){var D=_.X.apply(this,arguments)||this;D.images=[];D.selectedImageIndex=0;return D};
_.P(j9,_.X);_.q=j9.prototype;
_.q.ready=function(){_.fz(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.fz(this.JSC$15640_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.fz(this.JSC$15640_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.fz(this.JSC$15640_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.q.onThumbnailClick=function(D){if(D=D.event_.detail)this.selectedImageIndex=this.images.indexOf(D)};
_.q.updateImageThumbnails=function(D){D=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:D.event_.detail});this.images.splice(this.selectedImageIndex,1,D);this.images=[].concat(_.A6(this.images))};
_.q.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Gf(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.q.saveImageRepositions=function(){this.selectedImageIndex=0;_.Gf(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.ql.Object.defineProperties(j9.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var D=this;return(this.images||[]).map(function(t,H){return{image:t,selected:H===D.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],j9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.o5("ytd-backstage-image-preview-renderer"),_.x("design:type",Object)],j9.prototype,"JSC$15640_imagePreviewContainer",void 0);_.d([_.o5(".thumbnail-images-container"),_.x("design:type",HTMLElement)],j9.prototype,"thumbnailImagesContainer",void 0);_.d([_.M(),_.x("design:type",Array)],j9.prototype,"images",void 0);
_.d([_.M(),_.x("design:type",Object)],j9.prototype,"repositionInstructions",void 0);_.d([_.M(),_.x("design:type",Object)],j9.prototype,"selectedImageIndex",void 0);_.d([_.m("images","selectedImageIndex"),_.x("design:type",Array),_.x("design:paramtypes",[])],j9.prototype,"thumbnailRendererDatas",null);_.d([_.m("images","selectedImageIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],j9.prototype,"selectedImageData",null);
_.d([_.Y({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],j9);
_.p(j9,"ytd-backstage-multi-image-reposition-renderer",function(){if(iAm!==void 0)return iAm;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return iAm=D},{mode:1});var $E=function(D,t){_.J2.call(this);this.uploadUrl=D;this.channelId=t;this.imagesUploadData=[]};
_.P($E,_.J2);$E.prototype.getAllUploadStatuses=function(){var D=this,t,H,e;return _.Z(function(V){if(V.nextAddress==1)return V.yield(rdo(D),2);t=V.yieldResult;H=t.get("succeed");e=t.get("failed");return V.return(H.concat(e))})};
var Uma=function(D){var t,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(rdo(D),2);t=e.yieldResult;H=t.get("failed");H.length>0&&OAV(D,H);return e.return(D.getAllUploadStatuses())})},rdo=function(D){var t,H,e,V,b,a,w;
return _.Z(function(h){if(h.nextAddress==1)return t=new Map,h.yield(Promise.allSettled(D.imagesUploadData.map(function(K){return K.uploadPromise})),2);
H=h.yieldResult;e=[];V=_.F(H);for(b=V.next();!b.done;b=V.next())a=b.value,a.status==="fulfilled"&&e.push(a.value);w=D.imagesUploadData.map(function(K){return K.image}).filter(function(K){return e.every(function(N){return N.id!==K.id})});
t.set("succeed",e);t.set("failed",w);return h.return(t)})},OAV=function(D,t){t=_.F(t);
for(var H=t.next();!H.done;H=t.next()){var e=D;H=H.value;o4n(e,H.id)>=0&&e.cancel(H.id);var V=new P$B(H),b=_.Bqo(e.uploadUrl,{"X-YouTube-ChannelId":e.channelId},H.imageBlob);V.transfer=b;V.uploadPromise=n4Q(b,H);e.imagesUploadData.push(V);b.run()}};
$E.prototype.cancel=function(D){var t=o4n(this,D);t!==-1&&((t=this.imagesUploadData[t].transfer)&&t.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(H){return H.image.id!==D}))};
var o4n=function(D,t){return D.imagesUploadData.findIndex(function(H){return H.image.id===t})},n4Q=function(D,t){return new Promise(function(H,e){D.listen("l",function(){var V=D.getResponseText();
V?(V=JSON.parse(V).encryptedBlobId,t.encryptedBlobId=V,H(t)):e("upload failed")});
D.listen("n",function(){e("upload failed")})})},P$B=function(D){this.image=D};var Xj8=function(D,t,H,e,V){this.id=D;this.imageBlob=t;this.localImageSrc=H;this.naturalWidth=e;this.naturalHeight=V;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 C$m=[".jpeg",".jpg",".png"],ir=function(){var D=_.X.apply(this,arguments)||this;D.showImagesPreview=!1;D.pollOptions=[];D.errorMessage="";D.optionPlaceholderText="";D.optionDefaultText="";D.JSC$15651_imageId=0;D.maxFileSizeMb=0;D.maxAspectRatio=0;D.invalidFileSizeError="";D.invalidAspectRatioError="";D.invalidFileTypeError="";D.imageSelector=new Sz(null,"single_file",C$m);return D};
_.P(ir,_.X);_.q=ir.prototype;_.q.ready=function(){_.fz(this.imageSelector,"j",this.onImageSelect,!1,this);_.fz(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.fz(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.q.dataChanged=function(){var D,t,H=_.O((D=this.data)==null?void 0:(t=D.cellTemplate)==null?void 0:t.onEmptyCellTap,fLn);if(H&&H.uploadUrl&&H.channelId){var e;this.maxFileSizeMb=((e=H.imageValidationInfo)==null?void 0:e.maxFileSizeMb)||0;var V;this.maxAspectRatio=((V=H.imageValidationInfo)==null?void 0:V.allowedMaxAspectRatio)||0;var b;this.invalidFileSizeError=this.getSimpleString((b=this.data)==null?void 0:b.invalidFileSizeError);var a;this.invalidAspectRatioError=this.getSimpleString((a=this.data)==
null?void 0:a.invalidAspectRatioError);var w;this.invalidFileTypeError=this.getSimpleString((w=this.data)==null?void 0:w.invalidFileTypeError);this.uploadManager=new $E(H.uploadUrl,H.channelId)}};
_.q.onEditorInfoChange=function(){this.optionPlaceholderText=_.eo(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.eo(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.q.observeAddImageError=function(){this.errorMessage!==""&&_.Gf(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.q.onPollOptionsChange=function(){for(var D=!1,t=[],H=0;H<this.pollOptions.length;H++){var e=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(H+1);this.pollOptions[H].placeholderText!==e?(D=!0,t.push(Object.assign({},this.pollOptions[H],{placeholderText:e}))):t.push(this.pollOptions[H])}D&&(this.pollOptions=t);this.isValid()?_.Gf(this.hostElement,"yt-commentbox-post-enable"):_.Gf(this.hostElement,"yt-commentbox-post-disable")};
_.q.createPollOptions=function(D){var t=[],H;D=(H=D==null?void 0:D.minPollOptions)!=null?H:0;for(H=0;H<D;H++)t.push(this.createPollOption());return t};
_.q.onImageSelect=function(D){var t=this,H,e,V,b,a,w;return _.Z(function(h){if(h.nextAddress==1){if(t.selectedImageIndex===void 0)return h.jumpTo(0);H=D.files[0];t.errorMessage="";e=t.validateImage(H);if(e!=="")return t.errorMessage=e,h.return();V=new jt(t.maxAspectRatio,!1,!0);return h.yield(V.transform(H),3)}if(h.nextAddress!=4)return b=h.yieldResult,b.transformedData?b.invalidAspectRatio?(t.errorMessage=t.invalidAspectRatioError,h.return()):h.yield(f0R(t.JSC$15651_imageId,D.files[0],b.transformedData),
4):(t.errorMessage=t.invalidFileTypeError,h.return());a=h.yieldResult;t.JSC$15651_imageId++;OAV(t.uploadManager,[a]);w=Object.assign({},t.pollOptions[t.selectedImageIndex],{image:a});t.pollOptions.splice(t.selectedImageIndex,1,w);t.refreshPollOptions();_.Gf(t.hostElement,"yt-backstage-poll-image-select");_.n2(h)})};
_.q.validateImage=function(D){return D.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.q.refreshPollOptions=function(){this.pollOptions=[].concat(_.A6(this.pollOptions))};
_.q.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.A6(this.pollOptions),[this.createPollOption()]))};
_.q.onRemovePollOption=function(D){var t=this.pollOptions[D.model.index];t&&t.image&&this.uploadManager.cancel(t.image.id);this.pollOptions.splice(D.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Gf(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.q.onTextInput=function(){this.refreshPollOptions()};
_.q.onImageButtonClick=function(D){this.selectedImageIndex=D.model.index;this.imageSelector.click()};
_.q.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.q.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.q.saveImageRepositions=function(D){D=D.event_.detail;for(var t=0,H=[],e=_.F(this.pollOptions),V=e.next();!V.done;V=e.next())V=V.value,V.image!==void 0?(V=Object.assign({},V,{image:D[t]}),H.push(V),t++):H.push(V);this.showImagesPreview=!1;this.pollOptions=[].concat(_.A6(H))};
_.q.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 D=0,t=_.F(this.pollOptions),H=t.next();!H.done;H=t.next())if(H=H.value,H.optionText.trim()!==""||H.image!==void 0){if(!H.image||this.hasCustomOptionText&&H.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;D++}return D>=Number(this.editorInfo.minPollOptions)};
_.q.getAllUploadStatuses=function(){var D=this,t,H,e,V;return _.Z(function(b){if(b.nextAddress==1)return b.yield(D.uploadManager.getAllUploadStatuses(),2);t=b.yieldResult;H=_.F(t);for(e=H.next();!e.done;e=H.next())if(V=e.value,V.encryptedBlobId===void 0)return b.return(Uma(D.uploadManager));return b.return(t)})};
_.q.getPostCreateOptions=function(){for(var D=[],t=_.F(this.pollOptions),H=t.next();!H.done;H=t.next())H=H.value,H.image!==void 0&&D.push({text:this.hasCustomOptionText?H.optionText:H.placeholderText,image:H.image});return D};
_.q.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.q.createButtonRenderer=function(D,t){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:D,accessibilityData:{accessibilityData:{label:this.getSimpleString(D)}},isDisabled:t}};
_.q.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.q.computeThumbnailRendererData=function(D){return D?{image:D,selected:!1}:void 0};
_.q.getSimpleString=function(D){return _.eo(D)};
_.q.updateOptionTextFromBinding=function(D){if(D.target){var t=Array.from(_.Kg(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(D.target);if(t>=0){var H;this.pollOptions[t].optionText=(H=D.detail.value)!=null?H:""}}};
_.ql.Object.defineProperties(ir.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var D,t;return this.pollOptions.length<((t=(D=this.editorInfo)==null?void 0:D.maxPollOptions)!=null?t:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(D){return D.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(D){return D.image}).map(function(D){return D.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(D){return D.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var D,t=(D=this.data)==null?void 0:D.addOptionButtonText;return t?this.createButtonRenderer(t,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var D,t=(D=this.data)==null?void 0:D.repositionImagesButtonLabel;return t?this.createButtonRenderer(t,!this.hasImages):void 0}}});
ir.prototype.onPollOptionsChange=ir.prototype.onPollOptionsChange;ir.prototype.observeAddImageError=ir.prototype.observeAddImageError;ir.prototype.onEditorInfoChange=ir.prototype.onEditorInfoChange;ir.prototype.dataChanged=ir.prototype.dataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ir.prototype,"ytRendererstamperBehavior",void 0);_.d([_.o5("ytd-backstage-multi-image-reposition-renderer"),_.x("design:type",Object)],ir.prototype,"imageRepositionContainer",void 0);
_.d([_.M(),_.x("design:type",Object)],ir.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],ir.prototype,"editorInfo",void 0);_.d([_.M(),_.x("design:type",$E)],ir.prototype,"uploadManager",void 0);_.d([_.M(),_.x("design:type",Object)],ir.prototype,"showImagesPreview",void 0);_.d([_.M(),_.x("design:type",Array)],ir.prototype,"pollOptions",void 0);_.d([_.M(),_.x("design:type",Object)],ir.prototype,"errorMessage",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ir.prototype,"dataChanged",null);_.d([_.mx("editorInfo"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ir.prototype,"onEditorInfoChange",null);_.d([_.Os("errorMessage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ir.prototype,"observeAddImageError",null);
_.d([_.mx("pollOptions"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ir.prototype,"onPollOptionsChange",null);_.d([_.m("pollOptions","editorInfo"),_.x("design:type",Object),_.x("design:paramtypes",[])],ir.prototype,"isAllowedToAddOption",null);_.d([_.m("pollOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],ir.prototype,"hasImages",null);
_.d([_.m("pollOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],ir.prototype,"imagesToReposition",null);_.d([_.m("pollOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],ir.prototype,"hasCustomOptionText",null);_.d([_.m("data","isAllowedToAddOption"),_.x("design:type",Object),_.x("design:paramtypes",[])],ir.prototype,"addOptionButton",null);_.d([_.m("data","hasImages"),_.x("design:type",Object),_.x("design:paramtypes",[])],ir.prototype,"repositionImagesButton",null);
_.d([_.Y({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],ir);
_.p(ir,"ytd-backstage-image-poll-editor-renderer",function(){if($mf!==void 0)return $mf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return $mf=D},{mode:2});var mmf={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 Mqn;var r9=function(){var D=_.X.apply(this,arguments)||this;D.a11yConfig=mmf;D.imageDisplayOffsetTop=0;D.imageDisplayOffsetLeft=0;D.pickerDisplayOffsetTop=0;D.pickerDisplayOffsetLeft=0;D.showPreviewContainer=!0;D.startPicker=!1;D.repositionOptional=!1;D.editOnlyMode=!1;D.savedImageDisplayOffsetTop=0;D.savedImageDisplayOffsetLeft=0;return D};
_.P(r9,_.X);_.q=r9.prototype;_.q.created=function(){_.bq.requestAvailability()};
_.q.ready=function(){};
_.q.onArrowKeysDown=function(D){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){D.detail.keyboardEvent.preventDefault();var t=0,H=0,e="";switch(D.detail.keyboardEvent.key){case "ArrowUp":Ll3(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?e=this.a11yConfig.reachBottomOfImage:t=this.imageHeight*.05*-1;break;case "ArrowDown":Ll3(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?e=this.a11yConfig.reachTopOfImage:
t=this.imageHeight*.05;break;case "ArrowLeft":Ll3(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?e=this.a11yConfig.reachRightOfImage:H=this.imageWidth*.05*-1;break;case "ArrowRight":Ll3(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?e=this.a11yConfig.reachLeftOfImage:H=this.imageWidth*.05}e&&_.OT(e)&&_.Gf(this.hostElement,"iron-announce",{text:_.OT(e)});if(H||t)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+t)),D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),D=_.OT(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+H)),D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),D=_.OT(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})),D&&_.Gf(this.hostElement,"iron-announce",{text:D})}};
_.q.getPreviewPosition=function(D,t,H,e){return Math.round(100*(D+t*.5-H)/e)};
_.q.calculateDisplayPosition=function(){var D=this.imageData.naturalWidth,t=this.imageData.naturalHeight;this.displayScale=Math.max(200/D,200/t);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var H=D*this.displayScale*this.imageData.previewCoordinates.left,e=t*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=t>D?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-H;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=D>t?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-e;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=D*this.displayScale;this.imageHeight=t*this.displayScale};
_.q.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.q.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.q.getSignedPosition=function(D,t,H){return t==="X"&&_.YC("HTML_DIR")==="rtl"?H==="-"?D+"px":D*-1+"px":H==="-"?D*-1+"px":D+"px"};
_.q.pickerMove=function(D){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var t=this.pickerOffsetX-D.clientX,H=this.pickerOffsetY-D.clientY;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
H)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-t))}};
_.q.pickerMoveStart=function(D){this.startPicker=!0;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY};
_.q.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var D=this.generateCropPreview();D&&_.Gf(this.hostElement,"ytd-backstage-image-preview-coordinates-update",D)};
_.q.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Gf(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.q.deleteImage=function(){_.Gf(this.hostElement,"ytd-backstage-image-preview-delete")};
_.q.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.q.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var D=this.generateCropPreview();D&&_.Gf(this.hostElement,"ytd-backstage-image-preview-coordinates-save",D)};
_.q.getPreviewOffset=function(D,t,H){return t&&D?(H==="X"&&_.YC("HTML_DIR")==="rtl"?300/t*D:300/t*D*-1)+"px":"0px"};
_.q.getSimpleText=function(D){return D?_.eo(D):""};
_.q.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}};
_.ql.Object.defineProperties(r9.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.OT(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.OT(this.a11yConfig.verticalRepositionInstruction)}D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.OT(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.OT(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 D,t,H=(D=this.instruction)==null?void 0:(t=D.previewInstruction)==null?void 0:t.editButtonLabel;return H?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:H,accessibilityData:{accessibilityData:{label:this.getSimpleText(H)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e,V=this.editOnlyMode?(D=this.instruction)==null?void 0:(t=D.editInstruction)==null?void 0:t.saveImagesButtonLabel:(H=this.instruction)==null?void 0:(e=H.editInstruction)==null?void 0:e.saveButtonLabel;return V?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:V,accessibilityData:{accessibilityData:{label:this.getSimpleText(V)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var D,t,H=(D=this.instruction)==null?void 0:(t=D.previewInstruction)==null?void 0:t.deleteButtonLabel;return H?{size:"SIZE_SMALL",text:H,accessibilityData:{accessibilityData:{label:this.getSimpleText(H)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var D,t,H=(D=this.instruction)==null?void 0:(t=D.editInstruction)==null?void 0:t.cancelButtonLabel;D=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return H?{style:D,size:"SIZE_SMALL",text:H,accessibilityData:{accessibilityData:{label:this.getSimpleText(H)}}}: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"}}});
r9.prototype.onEditOnlyModeUpdate=r9.prototype.onEditOnlyModeUpdate;r9.prototype.onImageChange=r9.prototype.onImageChange;_.d([_.M(),_.x("design:type",Xj8)],r9.prototype,"imageData",void 0);_.d([_.M(),_.x("design:type",Object)],r9.prototype,"instruction",void 0);_.d([_.M(),_.x("design:type",Object)],r9.prototype,"a11yConfig",void 0);_.d([_.M(),_.x("design:type",Number)],r9.prototype,"imageWidth",void 0);_.d([_.M(),_.x("design:type",Number)],r9.prototype,"imageHeight",void 0);
_.d([_.M(),_.x("design:type",Number)],r9.prototype,"displayScale",void 0);_.d([_.M(),_.x("design:type",Object)],r9.prototype,"imageDisplayOffsetTop",void 0);_.d([_.M(),_.x("design:type",Object)],r9.prototype,"imageDisplayOffsetLeft",void 0);_.d([_.M(),_.x("design:type",Object)],r9.prototype,"pickerDisplayOffsetTop",void 0);_.d([_.M(),_.x("design:type",Object)],r9.prototype,"pickerDisplayOffsetLeft",void 0);_.d([_.M(),_.x("design:type",Object)],r9.prototype,"showPreviewContainer",void 0);
_.d([_.M(),_.x("design:type",Object)],r9.prototype,"startPicker",void 0);_.d([_.M(),_.x("design:type",Number)],r9.prototype,"pickerOffsetX",void 0);_.d([_.M(),_.x("design:type",Number)],r9.prototype,"pickerOffsetY",void 0);_.d([_.M(),_.x("design:type",Object)],r9.prototype,"repositionOptional",void 0);_.d([_.M(),_.x("design:type",Object)],r9.prototype,"editOnlyMode",void 0);_.d([_.o5("#picker-container"),_.x("design:type",HTMLElement)],r9.prototype,"JSC$15664_pickerContainer",void 0);
_.d([_.o5("#picker"),_.x("design:type",HTMLElement)],r9.prototype,"picker",void 0);_.d([_.o5("#preview-clipper"),_.x("design:type",HTMLElement)],r9.prototype,"previewClipper",void 0);_.d([_.o5("#image-in-picker-background"),_.x("design:type",HTMLImageElement)],r9.prototype,"JSC$15664_imageInBackground",void 0);_.d([_.o5("#image-in-picker"),_.x("design:type",HTMLImageElement)],r9.prototype,"JSC$15664_imageInPicker",void 0);
_.d([_.o5("#image-in-preview-clipper"),_.x("design:type",HTMLImageElement)],r9.prototype,"JSC$15664_imageInPreviewClipper",void 0);_.d([_.m("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],r9.prototype,"altLabelForImage",null);_.d([_.m("imageHeight","imageWidth"),_.x("design:type",Number),_.x("design:paramtypes",[])],r9.prototype,"pickerSize",null);
_.d([_.m("imageHeight","imageWidth"),_.x("design:type",Object),_.x("design:paramtypes",[])],r9.prototype,"imageOrientationStyle",null);_.d([_.m("instruction"),_.x("design:type",Object),_.x("design:paramtypes",[])],r9.prototype,"editButton",null);_.d([_.m("instruction","editOnlyMode"),_.x("design:type",Object),_.x("design:paramtypes",[])],r9.prototype,"saveButton",null);_.d([_.m("instruction"),_.x("design:type",Object),_.x("design:paramtypes",[])],r9.prototype,"deleteButton",null);
_.d([_.m("instruction","editOnlyMode"),_.x("design:type",Object),_.x("design:paramtypes",[])],r9.prototype,"cancelButton",null);_.d([_.m("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.x("design:type",Number),_.x("design:paramtypes",[])],r9.prototype,"cropOffsetTop",null);_.d([_.m("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.x("design:type",Number),_.x("design:paramtypes",[])],r9.prototype,"cropOffsetLeft",null);
_.d([_.m("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],r9.prototype,"pickerBackgroundStyle",null);_.d([_.m("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],r9.prototype,"pickerDisplayStyle",null);_.d([_.m("cropOffsetLeft","cropOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],r9.prototype,"imageInPickerStyle",null);
_.d([_.m("cropOffsetLeft","cropOffsetTop","pickerSize"),_.x("design:type",String),_.x("design:paramtypes",[])],r9.prototype,"previewClipperStyle",null);_.d([_.mx("imageData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],r9.prototype,"onImageChange",null);_.d([_.mx("editOnlyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],r9.prototype,"onEditOnlyModeUpdate",null);
_.d([_.m("showPreviewContainer"),_.x("design:type",String),_.x("design:paramtypes",[])],r9.prototype,"pickerModeStyle",null);_.d([_.Y({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],r9);
_.p(r9,"ytd-backstage-image-preview-renderer",function(){if(Mqn!==void 0)return Mqn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Mqn=D},{mode:1});var ScQ;var XBm={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 fNv;var LqB;var Oo=function(){var D=_.X.apply(this,arguments)||this;D.a11yConfig=XBm;D.imageDisplayOffsetTop=0;D.imageDisplayOffsetLeft=0;D.pickerDisplayOffsetTop=0;D.pickerDisplayOffsetLeft=0;D.cropCoordinatesSaved=!1;D.previewSize=0;D.startPicker=!1;D.repositionOptional=!1;return D};
_.P(Oo,_.X);_.q=Oo.prototype;_.q.created=function(){_.bq.requestAvailability()};
_.q.ready=function(){};
_.q.onArrowKeysDown=function(D){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){D.detail.keyboardEvent.preventDefault();var t=0,H=0,e="";switch(D.detail.keyboardEvent.key){case "ArrowUp":AvA(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?e=this.a11yConfig.reachBottomOfImage:t=this.imageHeight*.05*-1;break;case "ArrowDown":AvA(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?e=this.a11yConfig.reachTopOfImage:
t=this.imageHeight*.05;break;case "ArrowLeft":AvA(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?e=this.a11yConfig.reachRightOfImage:H=this.imageWidth*.05*-1;break;case "ArrowRight":AvA(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?e=this.a11yConfig.reachLeftOfImage:H=this.imageWidth*.05}e&&_.OT(e)&&_.Gf(this.hostElement,"iron-announce",{text:_.OT(e)});if(H||t)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+t)),D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),D=_.OT(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+H)),D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),D=_.OT(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})),D&&_.Gf(this.hostElement,"iron-announce",{text:D})}};
_.q.getPreviewPosition=function(D,t,H,e){return Math.round(100*(D+t*.5-H)/e)};
_.q.displayImage=function(){var D=this.JSC$15675_pickerContainer.getBoundingClientRect().width,t=this.JSC$15675_pickerContainer.getBoundingClientRect().height,H=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),e=this.JSC$15675_imageInBackground.naturalWidth,V=this.JSC$15675_imageInBackground.naturalHeight;this.displayScale=Math.max(H/e,H/V);this.imageWidth=e*this.displayScale;this.imageHeight=V*this.displayScale;this.pickerDisplayOffsetLeft=(D-H)/2;this.pickerDisplayOffsetTop=
(t-H)/2;this.imageDisplayOffsetLeft=V>e?this.pickerDisplayOffsetLeft:(D-this.imageWidth)/2;this.imageDisplayOffsetTop=e>V?this.pickerDisplayOffsetTop:(t-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.q.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15675_imageInBackground.src=this.imageData.toString(),this.JSC$15675_imageInPicker.src=this.imageData.toString(),this.JSC$15675_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.q.getSignedPosition=function(D,t,H){return t==="X"&&_.YC("HTML_DIR")==="rtl"?H==="-"?D+"px":D*-1+"px":H==="-"?D*-1+"px":D+"px"};
_.q.pickerMove=function(D){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var t=this.pickerOffsetX-D.clientX,H=this.pickerOffsetY-D.clientY;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
H)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-t))}};
_.q.pickerMoveStart=function(D){this.startPicker=!0;this.pickerOffsetX=D.clientX;this.pickerOffsetY=D.clientY};
_.q.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.q.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Gf(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.q.getPreviewOffset=function(D,t,H,e){return t&&D&&H?(e==="X"&&_.YC("HTML_DIR")==="rtl"?H/t*D:H/t*D*-1)+"px":"0px"};
_.q.getSimpleText=function(D){return D?_.eo(D):""};
_.q.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var D=this.cropOffsetTop/this.imageHeight,t=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,H=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,e=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Kg(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Gf(this.hostElement,"yt-img-crop-coordinates-update",{top:D,right:t,bottom:H,left:e})}};
_.ql.Object.defineProperties(Oo.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var D=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.OT(this.a11yConfig.imageVerticalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.OT(this.a11yConfig.verticalRepositionInstruction)}D=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.OT(this.a11yConfig.imageHorizontalPosition,{x_percent:""+D,y_percent:""+(100-D)})+"\n"+_.OT(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 D,t=(D=this.learnMore.runs[0])==null?void 0:D.navigationEndpoint,H;return((H=_.O(t,_.um))==null?void 0:H.url)||void 0}}}});
Oo.prototype.onImageDataChange=Oo.prototype.onImageDataChange;_.d([_.M(),_.x("design:type",Object)],Oo.prototype,"imageData",void 0);_.d([_.M(),_.x("design:type",Object)],Oo.prototype,"instruction",void 0);_.d([_.M(),_.x("design:type",Object)],Oo.prototype,"a11yConfig",void 0);_.d([_.M(),_.x("design:type",Number)],Oo.prototype,"imageWidth",void 0);_.d([_.M(),_.x("design:type",Number)],Oo.prototype,"imageHeight",void 0);_.d([_.M(),_.x("design:type",Number)],Oo.prototype,"displayScale",void 0);
_.d([_.M(),_.x("design:type",Object)],Oo.prototype,"imageDisplayOffsetTop",void 0);_.d([_.M(),_.x("design:type",Object)],Oo.prototype,"imageDisplayOffsetLeft",void 0);_.d([_.M(),_.x("design:type",Object)],Oo.prototype,"pickerDisplayOffsetTop",void 0);_.d([_.M(),_.x("design:type",Object)],Oo.prototype,"pickerDisplayOffsetLeft",void 0);_.d([_.M(),_.x("design:type",Object)],Oo.prototype,"cropCoordinatesSaved",void 0);_.d([_.M(),_.x("design:type",Object)],Oo.prototype,"previewSize",void 0);
_.d([_.M(),_.x("design:type",Object)],Oo.prototype,"startPicker",void 0);_.d([_.M(),_.x("design:type",Number)],Oo.prototype,"pickerOffsetX",void 0);_.d([_.M(),_.x("design:type",Number)],Oo.prototype,"pickerOffsetY",void 0);_.d([_.M(),_.x("design:type",Object)],Oo.prototype,"repositionOptional",void 0);_.d([_.o5("#picker-container"),_.x("design:type",HTMLElement)],Oo.prototype,"JSC$15675_pickerContainer",void 0);_.d([_.o5("#picker"),_.x("design:type",HTMLElement)],Oo.prototype,"picker",void 0);
_.d([_.o5("#image-in-picker-background"),_.x("design:type",HTMLImageElement)],Oo.prototype,"JSC$15675_imageInBackground",void 0);_.d([_.o5("#image-in-picker"),_.x("design:type",HTMLImageElement)],Oo.prototype,"JSC$15675_imageInPicker",void 0);_.d([_.o5("#image-in-preview-clipper"),_.x("design:type",HTMLImageElement)],Oo.prototype,"JSC$15675_imageInPreviewClipper",void 0);_.d([_.o5("#full-image-as-preview"),_.x("design:type",HTMLImageElement)],Oo.prototype,"imageAsPreview",void 0);
_.d([_.m("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],Oo.prototype,"altLabelForImage",null);_.d([_.m("imageHeight","imageWidth"),_.x("design:type",Number),_.x("design:paramtypes",[])],Oo.prototype,"pickerSize",null);_.d([_.m("imageHeight","imageWidth"),_.x("design:type",Object),_.x("design:paramtypes",[])],Oo.prototype,"imageOrientationStyle",null);
_.d([_.m("instruction.previewInstruction.editButtonLabel"),_.x("design:type",Object),_.x("design:paramtypes",[])],Oo.prototype,"editButton",null);_.d([_.m("instruction.editInstruction.saveButtonLabel"),_.x("design:type",Object),_.x("design:paramtypes",[])],Oo.prototype,"saveButton",null);_.d([_.m("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.x("design:type",Number),_.x("design:paramtypes",[])],Oo.prototype,"cropOffsetTop",null);
_.d([_.m("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.x("design:type",Number),_.x("design:paramtypes",[])],Oo.prototype,"cropOffsetLeft",null);_.d([_.m("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],Oo.prototype,"pickerBackgroundStyle",null);_.d([_.m("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],Oo.prototype,"pickerDisplayStyle",null);
_.d([_.m("cropOffsetLeft","cropOffsetTop"),_.x("design:type",String),_.x("design:paramtypes",[])],Oo.prototype,"imageInPickerStyle",null);_.d([_.m("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.x("design:type",String),_.x("design:paramtypes",[])],Oo.prototype,"previewClipperStyle",null);_.d([_.Os("imageData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oo.prototype,"onImageDataChange",null);
_.d([_.m("cropCoordinatesSaved"),_.x("design:type",String),_.x("design:paramtypes",[])],Oo.prototype,"pickerModeStyle",null);_.d([_.m("instruction.editInstruction.learnMore"),_.x("design:type",Object),_.x("design:paramtypes",[])],Oo.prototype,"learnMore",null);_.d([_.m("learnMore"),_.x("design:type",Object),_.x("design:paramtypes",[])],Oo.prototype,"learnMoreUrl",null);_.d([_.xL({is:"yt-img-crop-picker",disableElementRegistration:!0})],Oo);
_.p(Oo,"yt-img-crop-picker",function(){if(LqB===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;fNv===void 0&&(fNv=document.createElement("template"));var e=fNv;H.call(t,e.content.cloneNode(!0),D.content.firstChild);LqB=D}D=LqB;return D},{mode:2});var Uo=function(){var D=_.X.apply(this,arguments)||this;D.errorMessage="";D.hasPreview=!1;D.isBackstagePost=!1;D.dismissButtonOverrides={size:"XS"};return D};
_.P(Uo,_.X);_.q=Uo.prototype;_.q.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"}}}};
_.q.detached=function(){this.removeOverlay()};
_.q.setPreview=function(D){_.Kg(this.hostElement).querySelector("#preview-picker").imageData=D;this.hasPreview=!0;_.Gf(this.hostElement,"yt-backstage-image-select-preview")};
_.q.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var D=_.Kg(this.hostElement).querySelector("#dropzone");D.classList.remove("dragover");D.classList.remove("error");_.Gf(this.hostElement,"yt-backstage-image-select-cancel")};
_.q.setupOverlay=function(){var D=this.imageUploadEndpoint;this.removeOverlay();if(D&&D.imageValidationInfo){var t=_.Kg(this.hostElement).querySelector("#dropzone"),H=_.Kg(this.hostElement).querySelector("#select");this.overlay=new i2(D.uploadUrl,D.channelId,D.imageValidationInfo.maxFileSizeMb,D.imageValidationInfo.allowedMaxAspectRatio,t,H,!0);_.fz(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.fz(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.fz(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.fz(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.fz(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.q.removeOverlay=function(){this.overlay&&(_.g8(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.g8(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.g8(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.g8(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.g8(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.q.onDragOver=function(D){var t=_.Kg(this.hostElement).querySelector("#dropzone");_.kL(t,"dragover",D.value)};
_.q.onPreview=function(D){this.setPreview(D.value)};
_.q.onImageError=function(D){if(D.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var t;D=(t=this.data)==null?void 0:t.fileSizeError}else if(D.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var H;D=(H=this.data)==null?void 0:H.invalidError}else if(D.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var e;D=(e=this.data)==null?void 0:e.invalidAspectRatioError}else return;this.errorMessage=_.eo(D);_.Kg(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.q.onImageAlert=function(D){this.onImageError(D)};
_.q.uploadPromise=function(){var D=this,t=this.overlay&&this.overlay.uploadPromise();if(t)return t.catch(function(){throw Error(D.data?_.eo(D.data.uploadFailureError):"");})};
_.ql.Object.defineProperties(Uo.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var D,t;if((D=this.data)==null?0:(t=D.icon)==null?0:t.iconType)return _.cc(this.data.icon.iconType)}}});
Uo.prototype.setupOverlay=Uo.prototype.setupOverlay;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Uo.prototype,"rendererStamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Uo.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Uo.prototype,"imageUploadEndpoint",void 0);_.d([_.M(),_.x("design:type",Object)],Uo.prototype,"errorMessage",void 0);
_.d([_.M(),_.x("design:type",i2)],Uo.prototype,"overlay",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Uo.prototype,"hasPreview",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Uo.prototype,"isBackstagePost",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Uo.prototype,"selectionCancel",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Uo.prototype,"previewCancel",null);
_.d([_.m("data.icon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],Uo.prototype,"icon",null);_.d([_.M(),_.x("design:type",Object)],Uo.prototype,"dismissButtonOverrides",void 0);_.d([_.Os("imageUploadEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uo.prototype,"setupOverlay",null);_.d([_.Y({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Uo);
_.p(Uo,"ytd-backstage-image-select-renderer",function(){if(ScQ!==void 0)return ScQ;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return ScQ=D},{mode:1});var Adf;var g4V;var o9=function(){var D=_.X.apply(this,arguments)||this;D.selected=!1;return D};
_.P(o9,_.X);_.q=o9.prototype;_.q.computeSelected=function(D){return D==null?void 0:D.selected};
_.q.computeTransform=function(D,t,H){var e,V,b=(V=(e=this.imageContainer)==null?void 0:e.getBoundingClientRect())!=null?V:{width:0,height:0};e=Math.max(b.width/t,b.height/H);H=H*e*D.top;return"translateX("+this.getSignedPosition(t*e*D.left,"X","-")+") translateY("+this.getSignedPosition(H,"Y","-")+")"};
_.q.getSignedPosition=function(D,t,H){return t==="X"&&_.YC("HTML_DIR")==="rtl"?H==="-"?D+"px":D*-1+"px":H==="-"?D*-1+"px":D+"px"};
_.q.onClick=function(){var D;_.Gf(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(D=this.data)==null?void 0:D.image)};
_.q.onKeyPress=function(D){if(D.keyCode===13)this.onClick()};
_.ql.Object.defineProperties(o9.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?void 0:(t=D.image)==null?void 0:t.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)!=null&&D.image){var t;D=(t=this.data)==null?void 0:t.image;return D.previewCoordinates.top!==0||D.previewCoordinates.left!==0?(t=this.computeTransform(D.previewCoordinates,D.naturalWidth,D.naturalHeight),D.naturalHeight>=D.naturalWidth?"width:inherit;transform:"+t+";":"height:inherit;transform:"+t+";"):D.naturalHeight>=D.naturalWidth?"width:inherit;":"height:inherit;"}}}});
o9.prototype.onKeyPress=o9.prototype.onKeyPress;_.d([_.o5(".image-container"),_.x("design:type",HTMLElement)],o9.prototype,"imageContainer",void 0);_.d([_.M(),_.x("design:type",Object)],o9.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.x("design:type",Object)],o9.prototype,"selected",void 0);_.d([_.m("data.image"),_.x("design:type",Object),_.x("design:paramtypes",[])],o9.prototype,"thumbnailUrl",null);
_.d([_.m("data.image","data.image.previewCoordinates"),_.x("design:type",Object),_.x("design:paramtypes",[])],o9.prototype,"thumbnailStyle",null);_.d([_.rx("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],o9.prototype,"onKeyPress",null);_.d([_.Y({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],o9);
_.p(o9,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(g4V!==void 0)return g4V;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return g4V=D},{mode:2});var PW=function(D,t,H){H=H===void 0?!1:H;_.J2.call(this);var e=this;this.dropZoneOverlay=new Ma(D);this.selectOverlay=H?new Sz(t,"multiple_file",["image/*"]):new Sz(t,"single_file",["image/*"]);this.handler=new _.GA(this);_.c1(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(t,"click",function(){e.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.P(PW,_.J2);PW.prototype.onChange=function(D){var t;(t=D.files)!=null&&t.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:D.files}))};var nF=function(){var D=_.X.apply(this,arguments)||this;D.addImageErrorMessage="";D.errorMessage="";D.images=[];D.selectedImageIndex=0;D.modern=_.r("web_modern_buttons");D.maxNumImagesPerPost=_.ZU("max_num_images_per_post_web_ui");D.JSC$15690_imageId=0;return D};
_.P(nF,_.X);_.q=nF.prototype;_.q.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Gf(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.q.observeDragToReorder=function(){var D=this;if(this.showImagesPreview){var t,H=pWn(_.Si.getInstance(),(t=this.data)==null?void 0:t.dragToReorderTooltip);_.Jy.addLowPriorityJob(function(){_.k0(D.hostElement,H,D.thumbnailDragDropArea)})}};
_.q.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}}};
_.q.computeThumbnail=function(D){return(D==null?void 0:D.localImageSrc)||void 0};
_.q.onRendererstamperFinished=function(){_.m8Q(this.ytReorderableBehavior,_.Kg(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Kg(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.q.handleDrop=function(D){var t=D.currDragItem;if(t!=null&&t.data){D=this.images[this.selectedImageIndex];var H=t.data.image,e=this.images.indexOf(H)||0;t=_.JT(t.parentNode.children,t);this.images.splice(e,1);this.images.splice(t,0,H);this.images=[].concat(_.A6(this.images));this.selectedImageIndex=this.images.indexOf(D)}};
_.q.setUpImagePicker=function(){var D=this.imageUploadEndpoint;D&&D.imageValidationInfo&&(this.uploadManager=new $E(D.uploadUrl,D.channelId),this.initialPicker||(this.initialPicker=new PW(this.dropzone,this.selectLink,!0),_.fz(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new PW(this.addImageButtonContainer,this.addImageSelectButton),_.fz(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.fz(this.JSC$15690_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.fz(this.JSC$15690_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.fz(_.Kg(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.q.detached=function(){this.initialPicker&&(_.g8(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.g8(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.q.onInitialSelectImages=function(D){var t=this;return _.Z(function(H){return H.yield(t.onSelectImages(D,!1),0)})};
_.q.onAddImage=function(D){var t=this;return _.Z(function(H){return H.yield(t.onSelectImages(D,!0),0)})};
_.q.onSelectImages=function(D,t){var H=this,e,V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u,R,I;return _.Z(function(tT){switch(tT.nextAddress){case 1:t?H.addImageErrorMessage="":(H.images=[],H.errorMessage="");e=D.detail;V=H.validateImages([].concat(_.A6(e)));if(V!=="")return t?H.addImageErrorMessage=V:H.errorMessage=V,tT.return();b=[].concat(_.A6(e)).map(function(ZV){return(new jt(H.maxAspectRatio,!1,!0)).transform(ZV)});
return tT.yield(Promise.allSettled(b),2);case 2:a=tT.yieldResult,w=_.F(a.entries()),h=w.next();case 3:if(h.done){tT.jumpTo(5);break}K=h.value;N=_.F(K);k=N.next().value;T=N.next().value;c=k;U=T;if(U.status!=="fulfilled"){J=L=S=void 0;t?H.addImageErrorMessage=_.eo((S=H.data)==null?void 0:S.invalidError):H.errorMessage=H.errorMessage===""?_.eo((L=H.data)==null?void 0:L.invalidError):_.eo((J=H.data)==null?void 0:J.multiFileError);tT.jumpTo(4);break}g=U.value;g.cropped&&_.Gf(H.hostElement,"yt-backstage-multi-image-cropped");
if(g.invalidAspectRatio){R=u=Q=void 0;t?H.addImageErrorMessage=_.eo((Q=H.data)==null?void 0:Q.invalidAspectRatioError):H.errorMessage=H.errorMessage===""?_.eo((u=H.data)==null?void 0:u.invalidAspectRatioError):_.eo((R=H.data)==null?void 0:R.multiFileError);tT.jumpTo(4);break}return tT.yield(f0R(H.JSC$15690_imageId,D.detail[c],g.transformedData),8);case 8:I=tT.yieldResult,H.images.push(I),H.JSC$15690_imageId++;case 4:h=w.next();tT.jumpTo(3);break;case 5:if(H.errorMessage!==""||H.addImageErrorMessage!==
"")return tT.return();t?OAV(H.uploadManager,[H.images[H.images.length-1]]):OAV(H.uploadManager,H.images);H.images=[].concat(_.A6(H.images));H.selectedImageIndex=t?Math.max(H.images.length-1,0):0;_.Gf(H.hostElement,"yt-backstage-multi-image-select");_.n2(tT)}})};
_.q.onThumbnailClick=function(D){if(D=D.event_.detail)this.selectedImageIndex=this.images.indexOf(D)};
_.q.validateImages=function(D){if(D.length>this.maxNumImagesPerPost){var t;return _.eo((t=this.data)==null?void 0:t.multiImageExceedMaxImageCountError)}var H=1048576*this.maxFileSizeMb;D=D.filter(function(b){return b.size>H}).length;
if(D===0)return"";var e,V;D=D>1?(e=this.data)==null?void 0:e.multiFileError:(V=this.data)==null?void 0:V.fileSizeError;return _.eo(D)};
_.q.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.A6(this.images));this.selectedImageIndex=0};
_.q.repositionImage=function(D){this.images[this.selectedImageIndex].previewCoordinates=D.event_.detail;this.images=[].concat(_.A6(this.images))};
_.q.getAllUploadStatuses=function(){var D=this,t,H,e,V;return _.Z(function(b){if(b.nextAddress==1)return b.yield(D.uploadManager.getAllUploadStatuses(),2);t=b.yieldResult;H=_.F(t);for(e=H.next();!e.done;e=H.next())if(V=e.value,V.encryptedBlobId===void 0)return b.return(Uma(D.uploadManager));return b.return(t)})};
_.q.hasImages=function(){return this.images.length>0};
_.q.cancel=function(){for(var D=this.uploadManager,t=_.F(D.imagesUploadData),H=t.next();!H.done;H=t.next())D.cancel(H.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Gf(this.hostElement,"yt-backstage-multi-image-cancel")};
_.ql.Object.defineProperties(nF.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.imageUploadEndpoint)==null?void 0:(t=D.imageValidationInfo)==null?void 0:t.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.imageUploadEndpoint)==null?void 0:(t=D.imageValidationInfo)==null?void 0:t.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var D,t;if((D=this.data)==null?0:(t=D.icon)==null?0:t.iconType)return _.cc(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.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 D=this;return(this.images||[]).map(function(t,H){return{renderer:{image:t,selected:H===D.selectedImageIndex}}})}}});
nF.prototype.setUpImagePicker=nF.prototype.setUpImagePicker;nF.prototype.onRendererstamperFinished=nF.prototype.onRendererstamperFinished;nF.prototype.observeDragToReorder=nF.prototype.observeDragToReorder;nF.prototype.observeAddImageError=nF.prototype.observeAddImageError;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],nF.prototype,"rendererStamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.Ml6),_.x("design:type",Object)],nF.prototype,"ytReorderableBehavior",void 0);_.d([_.o5("#dropzone"),_.x("design:type",HTMLElement)],nF.prototype,"dropzone",void 0);_.d([_.o5("#select-link"),_.x("design:type",HTMLElement)],nF.prototype,"selectLink",void 0);_.d([_.o5("#thumbnail-drag-drop-area"),_.x("design:type",HTMLElement)],nF.prototype,"thumbnailDragDropArea",void 0);_.d([_.o5("#add-image-button-container"),_.x("design:type",HTMLElement)],nF.prototype,"addImageButtonContainer",void 0);
_.d([_.o5("#add-image-button"),_.x("design:type",HTMLElement)],nF.prototype,"addImageSelectButton",void 0);_.d([_.o5("#image-preview-container"),_.x("design:type",Object)],nF.prototype,"JSC$15690_imagePreviewContainer",void 0);_.d([_.M(),_.x("design:type",Object)],nF.prototype,"addImageErrorMessage",void 0);_.d([_.M(),_.x("design:type",Object)],nF.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],nF.prototype,"errorMessage",void 0);
_.d([_.M(),_.x("design:type",Object)],nF.prototype,"imageUploadEndpoint",void 0);_.d([_.M(),_.x("design:type",Array)],nF.prototype,"images",void 0);_.d([_.M(),_.x("design:type",PW)],nF.prototype,"initialPicker",void 0);_.d([_.M(),_.x("design:type",PW)],nF.prototype,"addImagePicker",void 0);_.d([_.M(),_.x("design:type",$E)],nF.prototype,"uploadManager",void 0);_.d([_.M(),_.x("design:type",Object)],nF.prototype,"selectedImageIndex",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nF.prototype,"modern",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nF.prototype,"maxNumImagesPerPost",void 0);_.d([_.m("imageUploadEndpoint"),_.x("design:type",Number),_.x("design:paramtypes",[])],nF.prototype,"maxAspectRatio",null);_.d([_.m("imageUploadEndpoint"),_.x("design:type",Number),_.x("design:paramtypes",[])],nF.prototype,"maxFileSizeMb",null);
_.d([_.m("data.icon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],nF.prototype,"dropIcon",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],nF.prototype,"selectionCancel",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],nF.prototype,"previewCancel",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],nF.prototype,"dataForAddImageButton",null);
_.d([_.m("errorMessage"),_.x("design:type",String),_.x("design:paramtypes",[])],nF.prototype,"dropzoneClass",null);_.d([_.m("images"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],nF.prototype,"showImagesPreview",null);_.d([_.m("images"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],nF.prototype,"containMaxImages",null);_.d([_.Os("addImageErrorMessage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nF.prototype,"observeAddImageError",null);
_.d([_.Os("showImagesPreview"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nF.prototype,"observeDragToReorder",null);_.d([_.m("images","selectedImageIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],nF.prototype,"selectedImageData",null);_.d([_.m("images","selectedImageIndex"),_.x("design:type",Array),_.x("design:paramtypes",[])],nF.prototype,"thumbnailRenderers",null);
_.d([_.rx("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nF.prototype,"onRendererstamperFinished",null);_.d([_.Os("imageUploadEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nF.prototype,"setUpImagePicker",null);_.d([_.Y({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],nF);
_.p(nF,"ytd-backstage-multi-image-select-renderer",function(){if(Adf!==void 0)return Adf;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Adf=D},{mode:1});var Jd4;var Ycf;var lNa;var CF=function(){var D=_.X.apply(this,arguments)||this;D.boundCaptureFocus=function(t){D.onCaptureFocus(t)};
return D};
_.P(CF,_.X);_.q=CF.prototype;_.q.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.q.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.q.onCaptureFocus=function(D){_.bK(D).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.q.getIconType=function(D){return D?"yt-icons:"+D.toLowerCase():null};
_.q.onSelect=function(){var D;if((D=this.data)==null?0:D.onSelectCommand)if(_.r("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var t;((t=_.O(this.data.onSelectCommand.commandMetadata,_.i1))==null?0:t.url)?_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.qS().resolve(_.aA).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.ql.Object.defineProperties(CF.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.eo(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}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],CF.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],CF.prototype,"data",void 0);_.d([_.o5("#item"),_.x("design:type",HTMLElement)],CF.prototype,"item",void 0);_.d([_.m("data.label"),_.x("design:type",String),_.x("design:paramtypes",[])],CF.prototype,"label",null);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],CF.prototype,"value",null);_.d([_.Y({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],CF);
_.p(CF,"ytd-privacy-dropdown-item-renderer",function(){if(lNa!==void 0)return lNa;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return lNa=D},{mode:1});var ma=function(){var D=_.X.apply(this,arguments)||this;D.value="";D.label="";D.disabled=!1;return D};
_.P(ma,_.X);_.q=ma.prototype;_.q.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"}}}};
_.q.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.q.dataChanged=function(){this.reset()};
_.q.valueChanged=function(){var D;if(this.value&&(D=this.data)!=null&&D.entries){D=_.F(this.data.entries);for(var t=D.next();!t.done;t=D.next())if((t=this.getRendererForEntry(t.value))&&this.getItemRendererValue(t)===this.value){this.label=this.ytComponentBehavior.getSimpleString(t.label);break}}};
_.q.setInitialLabel=function(){if(this.data&&this.data.entries)for(var D=_.F(this.data.entries),t=D.next();!t.done;t=D.next())if(t=this.getRendererForEntry(t.value)){if(t.isSelected){this.label=this.ytComponentBehavior.getSimpleString(t.label);break}this.data.label&&(this.label=this.data.label)}};
_.q.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var D=_.F(this.data.entries),t=D.next();!t.done;t=D.next()){t=this.getRendererForEntry(t.value);var H=void 0;if((H=t)==null?0:H.isSelected)return this.getItemRendererValue(t)||-1}return-1};
_.q.getItemRendererValue=function(D){return"stringValue"in D||"int32Value"in D?D.stringValue||D.int32Value||null:null};
_.q.getRendererForEntry=function(D){return D.dropdownItemRenderer||D.privacyDropdownItemRenderer||D.navigationDropdownItemRenderer||null};
_.q.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("value-changed",this.value))};
_.q.updateValueFromBinding=function(D){this.value=D.detail.value};
ma.prototype.valueChangedForBinding=ma.prototype.valueChangedForBinding;ma.prototype.valueChanged=ma.prototype.valueChanged;ma.prototype.dataChanged=ma.prototype.dataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],ma.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ma.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ma.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],ma.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],ma.prototype,"value",void 0);_.d([_.M(),_.x("design:type",Object)],ma.prototype,"label",void 0);_.d([_.o5("#entries"),_.x("design:type",Object)],ma.prototype,"entries",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ma.prototype,"disabled",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ma.prototype,"dataChanged",null);
_.d([_.mx("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ma.prototype,"valueChanged",null);_.d([_.Os("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ma.prototype,"valueChangedForBinding",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],ma);
_.p(ma,"ytd-flat-dropdown-renderer",function(){if(Ycf!==void 0)return Ycf;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Ycf=D},{mode:1});var v4a;var Mn=function(){var D=_.X.apply(this,arguments)||this;D.quizOptions=[];D.explanationPlaceholderText="";D.optionPlaceholderText="";D.correctAnswerIndex=-1;D.isMarkAnswerTooltipShown=!1;D.timer=0;return D};
_.P(Mn,_.X);_.q=Mn.prototype;_.q.dataChanged=function(){this.optionPlaceholderText=_.eo(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.eo(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.q.onMarkCorrectAnswer=function(D){var t,H=((t=this.quizOptions[this.correctAnswerIndex])==null?void 0:t.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[D.model.index]=Object.assign({},this.quizOptions[D.model.index],{explanationText:H,isCorrect:!0});this.correctAnswerIndex=D.model.index;this.quizOptions=[].concat(_.A6(this.quizOptions))};
_.q.updatePlaceholderTexts=function(){for(var D=!1,t=[],H=0;H<this.quizOptions.length;H++){var e=this.optionPlaceholderText+" "+(H+1),V=void 0;((V=this.quizOptions[H])==null?void 0:V.placeholderText)!==e?(D=!0,t.push(Object.assign({},this.quizOptions[H],{placeholderText:e}))):t.push(this.quizOptions[H])}D&&(this.quizOptions=t);this.isValid()?_.Gf(this.hostElement,"yt-commentbox-post-enable"):_.Gf(this.hostElement,"yt-commentbox-post-disable")};
_.q.getSimpleString=function(D){return _.eo(D)};
_.q.createQuizOptions=function(D){var t=[],H;D=(H=D==null?void 0:D.minQuizOptions)!=null?H:0;for(H=0;H<D;H++)t.push(this.createQuizOption());return t};
_.q.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.A6(this.quizOptions),[this.createQuizOption()]))};
_.q.onInput=function(){this.quizOptions=[].concat(_.A6(this.quizOptions))};
_.q.onExplanationInput=function(){_.Gf(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.q.onRemoveQuizOption=function(D){this.quizOptions.splice(D.model.index,1);D.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:D.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.A6(this.quizOptions));this.quizOptions.length===0&&_.Gf(this.hostElement,"yt-quiz-attachment-dismiss")};
_.q.updateHintRenderer=function(){var D=this;clearTimeout(this.timer);this.timer=setTimeout(function(){D.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.q.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var D=0,t=0,H=_.F(this.quizOptions),e=H.next();!e.done;e=H.next()){e=e.value;var V=void 0;if(((V=e.optionText)==null?void 0:V.trim())!==""||e.isCorrect){e.isCorrect&&t++;V=void 0;if(this.hasCustomOptionText&&((V=e.optionText)==null?void 0:V.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;D++}}return D>=
Number(this.editorInfo.minQuizOptions)&&t===1};
_.q.getPostCreateOptions=function(){for(var D=[],t=_.F(this.quizOptions),H=t.next();!H.done;H=t.next()){H=H.value;var e=void 0;((e=H.optionText)==null?void 0:e.trim())!==""&&D.push({pollOption:{text:H.optionText,explanation:H.explanationText},isCorrect:H.isCorrect})}return D};
_.q.getExplanationText=function(){var D;return((D=this.quizOptions[this.correctAnswerIndex])==null?void 0:D.explanationText)||""};
_.q.maybeDisplayMarkAnswerEduToolTip=function(){var D,t,H,e,V,b,a;this.shouldShowMarkAnswerTooltip()&&((D=this.editorInfo)==null?0:(t=D.markAnswerButton)==null?0:(H=t.buttonRenderer)==null?0:(e=H.hint)==null?0:(V=e.hintRenderer)==null?0:(b=V.content)==null?0:(a=b.bubbleHintRenderer)==null?0:a.text)&&(_.Si.getInstance(),D=Xr(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,(D==null?void 0:D.length)>0&&this.optionSelectors&&_.rj(D[0],this.optionSelectors[0]))};
_.q.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var D=0,t=_.F(this.quizOptions),H=t.next();!H.done;H=t.next()){H=H.value;var e=void 0;((e=H.optionText)==null?void 0:e.trim())!==""&&D++;if(H.isCorrect)return!1}return D<2?!1:!0};
_.q.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.q.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.q.updateOptionTextFromBinding=function(D){if(D.target){var t=Array.from(_.Kg(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(D.target);if(t>=0){var H;this.quizOptions[t].optionText=(H=D.detail.value)!=null?H:""}}};
_.ql.Object.defineProperties(Mn.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var D,t,H=(D=this.editorInfo)==null?void 0:(t=D.addOptionButton)==null?void 0:t.buttonRenderer;H&&(H.style="STYLE_SUGGESTIVE",H.size="SIZE_SMALL",H.isDisabled=!this.isAllowedToAddOption);return(H==null?0:H.text)?H:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var D,t;return this.quizOptions.length<((t=(D=this.editorInfo)==null?void 0:D.maxQuizOptions)!=null?t:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(D){var t;return(t=D.optionText)==null?void 0:t.trim()})}}});
Mn.prototype.updatePlaceholderTexts=Mn.prototype.updatePlaceholderTexts;Mn.prototype.dataChanged=Mn.prototype.dataChanged;_.d([_.M(),_.x("design:type",Object)],Mn.prototype,"editorInfo",void 0);_.d([_.M(),_.x("design:type",Array)],Mn.prototype,"quizOptions",void 0);_.d([_.M(),_.x("design:type",Object)],Mn.prototype,"explanationPlaceholderText",void 0);_.d([_.PT(".option-selector-button"),_.x("design:type",Array)],Mn.prototype,"optionSelectors",void 0);
_.d([_.mx("editorInfo"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mn.prototype,"dataChanged",null);_.d([_.m("editorInfo","isAllowedToAddOption","quizOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mn.prototype,"addAnswerButton",null);_.d([_.m("editorInfo","quizOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mn.prototype,"isAllowedToAddOption",null);
_.d([_.mx("quizOptions"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mn.prototype,"updatePlaceholderTexts",null);_.d([_.m("quizOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mn.prototype,"hasCustomOptionText",null);_.d([_.Y({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],Mn);
_.p(Mn,"ytd-backstage-quiz-editor-renderer",function(){if(v4a!==void 0)return v4a;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return v4a=D},{mode:2});var pBa;var dm6=(cm.FIRSTDAYOFWEEK+1)%7;var xmv;var RZ6=[],u1o=0,Wqa=0;u1o=0;Wqa=24;if(.25*(Wqa-u1o)<0)xmv=[];else{for(var INn=u1o;INn<Wqa;INn+=.25)RZ6.push(INn);xmv=RZ6}var Q1m=xmv.map(function(D){D=D*60*60;return{secondsSinceMidnight:D,text:(new tG(7)).format(new Date(0,0,0,0,0,D))}});var yd4;var S9=function(){var D=_.X.apply(this,arguments)||this;D.skipNextOpenDialog=!1;D.errorMessage="";D.previousMonthLabel=_.OT("PREVIOUS_MONTH_LABEL");D.nextMonthLabel=_.OT("NEXT_MONTH_LABEL");return D};
_.P(S9,_.X);_.q=S9.prototype;_.q.attached=function(){var D=this,t=new MutationObserver(function(){D.JSC$15732_calendarMain.scrollHeight>0&&(t.disconnect(),D.calendarConfig&&D.calendarConfig.selectedDate&&D.scrollToDate())});
t.observe(this.JSC$15732_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){t.disconnect()},1E3)};
_.q.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.q.onDateTextChange=function(){if(this.calendarConfig){var D=this.validateDateText();D.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(D.details)):this.textbox.setAttribute("invalid","")}};
_.q.handleDayClick=function(D){D.model.day.date&&(this.commitDate(D.model.day.date),this.dialog.close())};
_.q.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var D=Rq3(this.calendarConfig.selectedDate,this.renderData);D!==void 0&&this.JSC$15732_calendarMain.scrollToIndex(D)}};
_.q.scrollToNextMonth=function(){this.JSC$15732_calendarMain.scrollToIndex(this.JSC$15732_calendarMain.firstVisibleIndex+1)};
_.q.scrollToPrevMonth=function(){this.JSC$15732_calendarMain.firstVisibleIndex===0&&this.JSC$15732_calendarMain.scrollTo(0,0);this.JSC$15732_calendarMain.scrollToIndex(this.JSC$15732_calendarMain.firstVisibleIndex-1)};
_.q.onFormSubmit=function(D){D.preventDefault();this.calendarConfig&&(D=this.validateDateText(),D.isValid&&(this.commitDate(D.details),this.dialog.close()))};
_.q.onEscOrClickingOutside=function(D){D=D.detail.path&&!!D.detail.path.length&&D.detail.path[0];if(D.classList.contains("ytd-calendar-date-picker")){D===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var t=0;t<this.dropdownButton.children.length;t++)this.dropdownButton.children[t]===D&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}D=this.textbox.value!==this.dateText;t=this.validateDateText();D&&t.isValid&&this.commitDate(t.details);this.dialog.close();this.textbox.value=
this.dateText};
_.q.commitDate=function(D){this.calendarConfig&&(this.set("calendarConfig.selectedDate",D),_.Gf(this.hostElement,"ytd-calendar-date-selected",D))};
_.q.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var D=this.textbox.value;var t=new Date;D=(new spV(2)).parse(D,t,{validate:!0})===D.length?d_R(t):void 0;if(!D)return this.errorMessage=_.OT("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};t=this.calendarConfig.start;var H=this.calendarConfig.end;if(Jvk(D,t))return this.errorMessage=_.OT("ENTER_DATE_OR_LATER",{allowed_date:pjk(t)}),{isValid:!1,details:void 0};if(Jvk(H,D))return this.errorMessage=
_.OT("ENTER_DATE_OR_EARLIER",{allowed_date:pjk(H)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:D}};
_.ql.Object.defineProperties(S9.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?pjk(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var D=this.calendarConfig,t=[],H=0;H<7;H++)t.push(cm.NARROWWEEKDAYS[(H+dm6)%7]);H=[];for(var e=new Date(D.start.year,D.start.month);e.getFullYear()<D.end.year||e.getFullYear()===D.end.year&&e.getMonth()<=D.end.month;){var V=H,b=V.push,a=e.getFullYear(),w=e.getMonth(),h=D,K=void 0,N=[],k=Object.freeze({extraCssClass:"invisible",debugClass:""}),T=new Date(a,w),c=d_R(T);T=T.getDay();for(var U=d_R(new Date);c.month===
w;){T!==dm6&&K||(K=Array.from({length:7}).fill(k),N.push(K));var S={date:{year:a,month:w,day:c.day},extraCssClass:"",debugClass:""};h.selectedDate&&S.date&&gN6(S.date,h.selectedDate)&&(S.extraCssClass+=" selected");if(Jvk(c,h.start)||Jvk(h.end,c))S.extraCssClass+=" disabled";gN6(c,U)&&(S.extraCssClass+=" today");S.extraCssClass=S.extraCssClass.trim();K[(T-dm6+7)%7]=S;c=l0X(c);T=(T+1)%7}b.call(V,{weeks:N,monthLabel:cm.SHORTMONTHS[w]+" "+a,year:a,month:w,monthLabelExtraCssClass:N[0][2]===k?"shift-down-label":
""});e.setMonth(e.getMonth()+1)}return{months:H,daysOfWeekLabel:t}}}}});
S9.prototype.onEscOrClickingOutside=S9.prototype.onEscOrClickingOutside;S9.prototype.scrollToDate=S9.prototype.scrollToDate;_.d([_.M(),_.x("design:type",Object)],S9.prototype,"calendarConfig",void 0);_.d([_.M(),_.x("design:type",Object)],S9.prototype,"skipNextOpenDialog",void 0);_.d([_.M(),_.x("design:type",Object)],S9.prototype,"errorMessage",void 0);_.d([_.M(),_.x("design:type",Object)],S9.prototype,"previousMonthLabel",void 0);
_.d([_.M(),_.x("design:type",Object)],S9.prototype,"nextMonthLabel",void 0);_.d([_.o5("#textbox"),_.x("design:type",HTMLInputElement)],S9.prototype,"textbox",void 0);_.d([_.o5("#calendar-dialog"),_.x("design:type",Object)],S9.prototype,"dialog",void 0);_.d([_.o5("#calendar-main"),_.x("design:type",Object)],S9.prototype,"JSC$15732_calendarMain",void 0);_.d([_.o5("#date-picker"),_.x("design:type",HTMLElement)],S9.prototype,"dropdownButton",void 0);
_.d([_.m("calendarConfig.selectedDate"),_.x("design:type",String),_.x("design:paramtypes",[])],S9.prototype,"dateText",null);_.d([_.m("calendarConfig","calendarConfig.selectedDate"),_.x("design:type",Object),_.x("design:paramtypes",[])],S9.prototype,"renderData",null);_.d([_.Os("renderData","calendarConfig.selectedDate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S9.prototype,"scrollToDate",null);
_.d([_.rx("iron-overlay-canceled"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],S9.prototype,"onEscOrClickingOutside",null);_.d([_.xL({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],S9);
_.p(S9,"ytd-calendar-date-picker",function(){if(yd4!==void 0)return yd4;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return yd4=D},{mode:2});var Bcf=_.OT("UTC_OFFSET_FORMAT",{utc_offset:(new tG("Z")).format(new Date)}),zZV=(new Date).getTimezoneOffset()*-60,DVw=new Date,t5w,Hw4=D2(DVw.getTimezoneOffset());t5w=zlo(taB(Hw4,DVw));var e3o=_.OT("LOCAL_TIME_GMT_LABEL",{gmt_text:t5w.replace("+0","+").replace("-0","-").replace(":00","")}),X$=function(){var D=_.X.apply(this,arguments)||this;D.selectedTimeIndex=0;D.selectedTimezoneIndex=0;D.timeOfDayOptions=Q1m;return D};
_.P(X$,_.X);_.q=X$.prototype;_.q.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var D=vNK();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=D,this.selectedTimeIndex=0;else{var t=x_$(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},D,{selectedDate:t.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(H){return H.secondsSinceMidnight===t.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.q.onDatePicked=function(D){this.selectedDate=D.detail};
_.q.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Gf(this.hostElement,"ytd-date-time-selection-cancelled")};
_.q.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var D=this.selectedDate;D=new Date(D.year,D.month,D.day);_.Gf(this.hostElement,"ytd-date-time-selection-update",Math.floor(D.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+D.getTimezoneOffset()*60))}};
_.q.getTimezoneFormat=function(D){return D.localizedDisplayText?D.localizedDisplayText:_.OT("TIMEZONE_FORMAT",{utc_offset_text:""+D.localizedUtcOffset,city_name:""+D.localizedName})};
_.q.updateSelectedTimeIndexFromBinding=function(D){this.selectedTimeIndex=D.detail.value};
_.q.updateSelectedTimezoneIndexFromBinding=function(D){this.selectedTimezoneIndex=D.detail.value};
_.ql.Object.defineProperties(X$.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var D=this.data.timezoneOptions;var t={name:"Etc/Unknown",localizedName:_.OT("LOCAL_TIME_LABEL"),localizedUtcOffset:Bcf,utcOffsetSec:""+zZV,localizedDisplayText:e3o};D?D.length&&D[0].name!==t.name&&(D[0].localizedDisplayText||(t.localizedDisplayText=""),D.unshift(t)):D=[t];return D}}},
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]}}});
X$.prototype.onDateTimeTimezoneChange=X$.prototype.onDateTimeTimezoneChange;X$.prototype.onDatePicked=X$.prototype.onDatePicked;X$.prototype.updateDefaultSelectedValue=X$.prototype.updateDefaultSelectedValue;_.d([_.M(),_.x("design:type",Object)],X$.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],X$.prototype,"calendarConfig",void 0);_.d([_.M(),_.x("design:type",Object)],X$.prototype,"selectedDate",void 0);_.d([_.M(),_.x("design:type",Object)],X$.prototype,"selectedTimeIndex",void 0);
_.d([_.M(),_.x("design:type",Object)],X$.prototype,"selectedTimezoneIndex",void 0);_.d([_.o5("#time-listbox"),_.x("design:type",Object)],X$.prototype,"timeListBox",void 0);_.d([_.o5("#timezone-listbox"),_.x("design:type",Object)],X$.prototype,"timezoneListBox",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],X$.prototype,"rendererStamperBehavior",void 0);_.d([_.m("data.timezoneOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],X$.prototype,"timeZones",null);
_.d([_.mx("data","timeZones"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],X$.prototype,"updateDefaultSelectedValue",null);_.d([_.m("selectedTimezoneIndex","timeZones"),_.x("design:type",Object),_.x("design:paramtypes",[])],X$.prototype,"selectedTimezone",null);_.d([_.m("selectedTimeIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],X$.prototype,"selectedTime",null);
_.d([_.rx("ytd-calendar-date-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],X$.prototype,"onDatePicked",null);_.d([_.Os("selectedTimezone","selectedTime","selectedDate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],X$.prototype,"onDateTimeTimezoneChange",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],X$);
_.p(X$,"ytd-date-time-picker-renderer",function(){if(pBa!==void 0)return pBa;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return pBa=D},{mode:1});var V56;var fF=function(){var D=_.X.apply(this,arguments)||this;D.boundOnTapDismissButton=function(){D.dismissTapHandler()};
D.dismissButtonOverrides={size:"XS"};return D};
_.P(fF,_.X);fF.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}}}}}};
fF.prototype.dismissTapHandler=function(){_.Gf(this.hostElement,"yt-backstage-attachment-dismissed")};
fF.prototype.computeAttachmentType=function(D){return D?D.backstageImageRenderer?"image":D.videoRenderer?"video":"none":"none"};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],fF.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],fF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],fF.prototype,"attachmentPreview",void 0);_.d([_.M(),_.x("design:type",Object)],fF.prototype,"dismissButton",void 0);_.d([_.M(),_.x("design:type",Object)],fF.prototype,"boundOnTapDismissButton",void 0);
_.d([_.M(),_.x("design:type",Object)],fF.prototype,"dismissButtonOverrides",void 0);_.d([_.M({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.x("design:type",String)],fF.prototype,"attachmentType",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],fF);
_.p(fF,"ytd-backstage-dismissable-attachment",function(){if(V56!==void 0)return V56;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return V56=D},{mode:1});var bwB;var LF=function(){var D=_.X.apply(this,arguments)||this;D.selectedVideoId=void 0;D.picker=void 0;D.dismissButtonOverrides={size:"XS"};D.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return D};
_.P(LF,_.X);_.q=LF.prototype;_.q.onServiceRequestCompleted=function(D){D.stopPropagation()};
_.q.handleAddVideoPreviewAction=function(D){D=this.get("addVideoPreviewAction",D);this.onGetVideoPreviewSuccess(D)};
_.q.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}}}}}};
_.q.onLaunchVideoPicker=function(D){var t=this,H=_.eo(this.get("addVideoLinkAction.title",D)),e=this.get("addVideoLinkAction.onePickHostId",D);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",D);e&&(this.picker||(H=_.RE3(_.swu(e).setTitle(H).addView(vxa()).addView(lUo()),function(V){t.onPickVideo(V)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",D)||H.addView("youtube"),this.picker=H.build()),this.picker.setVisible(!0))};
_.q.onPickVideo=function(D){if(D)if(D.action==="cancel")_.Gf(this.hostElement,"yt-video-link-button-cancel");else if(D.action==="picked"){D=D.docs;if(!D||D.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(D=(D==null?0:D.length)?D[0]:void 0)?D.id:void 0;this.setVideoPreview()}};
_.q.setVideoPreview=function(){var D=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){D.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.q.onGetVideoPreviewSuccess=function(D){if(D&&D.videoPreview&&D.cancelButton)this.videoPreview=D.videoPreview,this.cancelButton=D.cancelButton,_.Gf(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.q.onGetVideoPreviewError=function(){this.cancel()};
_.q.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Gf(this.hostElement,"yt-video-link-cancel")};
_.q.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
LF.prototype.onServiceRequestCompleted=LF.prototype.onServiceRequestCompleted;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],LF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],LF.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],LF.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],LF.prototype,"videoPreview",void 0);_.d([_.M(),_.x("design:type",Object)],LF.prototype,"cancelButton",void 0);_.d([_.M(),_.x("design:type",Object)],LF.prototype,"getVideoPreviewCommand",void 0);_.d([_.M(),_.x("design:type",Object)],LF.prototype,"dismissButtonOverrides",void 0);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],LF.prototype,"onServiceRequestCompleted",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],LF);
_.p(LF,"ytd-backstage-video-link-attachment",function(){if(bwB!==void 0)return bwB;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return bwB=D},{mode:1});var qN9;var FSv;var adf;var Ai=function(){return _.X.apply(this,arguments)||this};
_.P(Ai,_.X);Ai.prototype.dataChanged=function(){this.active=!1};
Ai.prototype.onTap=function(){_.Gf(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Ai.prototype.identity=function(D){return D};
_.ql.Object.defineProperties(Ai.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e;if((D=this.data)==null?0:(t=D.image)==null?0:(H=t.thumbnails)==null?0:(e=H[0])==null?0:e.url)return D=this.data.image.thumbnails[0].url,D.startsWith("data:image/svg+xml")?AA(D):_.dw(D)}}});
Ai.prototype.dataChanged=Ai.prototype.dataChanged;_.d([_.M(),_.x("design:type",Object)],Ai.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ai.prototype,"active",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ai.prototype,"dataChanged",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ai.prototype,"imageSrc",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Ai);
_.p(Ai,"ytd-emoji-suggestion",function(){if(adf!==void 0)return adf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return adf=D},{mode:1});var wiv=/.*([:@#].*?)$/,g9=function(){var D=_.X.apply(this,arguments)||this;D.suggestions=[];D.suggestionIndex=-1;D.JSC$15760_lastSuggestionRange=null;return D};
_.P(g9,_.X);_.q=g9.prototype;_.q.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.q.getSuggestions=function(D){var t=[],H=S$6(this.emojiManager,D.substr(0,3));if(H)for(var e in H)if(e.toLocaleLowerCase().indexOf(D)===0){var V=H[e];if(V&&V.emojiId){V=Kc(this.emojiManager,V.emojiId);var b=void 0,a=void 0,w=void 0,h=void 0,K=((b=V)==null?0:b.isCustomEmoji)?(a=V)==null?void 0:(w=a.shortcuts)==null?void 0:w[0]:(h=V)==null?void 0:h.emojiId;b=void 0;t.push({suggestion:{image:(b=V)==null?void 0:b.image,alt:K,text:e}});if(t.length>=64)break}}return t?t.sort(function(N,k){return k.suggestion.text<
N.suggestion.text?-1:k.suggestion.text===N.suggestion.text?0:1}):null};
_.q.insertSuggestion=function(D){_.Gf(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15760_lastSuggestionRange,text:D.alt});this.dropdown.opened=!1};
_.q.updateSuggestionsAtCaret=function(D){this.updateSuggestions(D,this.retrieveTextBeforeRange(D))};
_.q.offsetStartOfRangeBy=function(D,t){D.startOffset>=t&&D.setStart(D.startContainer,D.startOffset-t)};
_.q.updateSuggestions=function(D,t){var H=this;this.JSC$15760_lastSuggestionRange&&(this.JSC$15760_lastSuggestionRange.detach(),this.JSC$15760_lastSuggestionRange=null);if((t=wiv.exec(t))&&t.length&&(t=t[t.length-1].toLocaleLowerCase(),t.length>2||t===":_")&&(this.offsetStartOfRangeBy(D,t.length),this.JSC$15760_lastSuggestionRange=D,(D=this.getSuggestions(t))&&D.length)){this.suggestions=D;_.Vi(this,function(){H.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(D.length-1);return}this.dropdown.opened=!1};
_.q.onKeyDown=function(D){if(this.dropdown.opened)switch(D.key){case "Escape":this.dropdown.opened=!1;D.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);D.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);D.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),D.preventDefault()}};
_.q.onKeyUp=function(D,t){switch(D.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(t);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(t)}};
_.q.onKeyPress=function(D){D.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),D.preventDefault())};
_.q.changeSuggestionIndex=function(D){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(D+this.suggestions.length)%this.suggestions.length,D=this.dropdownContent.children[this.suggestionIndex],D.active=!0,this.dropdownContent.scrollTop=D.offsetTop)};
_.q.retrieveTextBeforeRange=function(D){var t=D.startContainer;return t&&t.nodeType===Node.TEXT_NODE?t.textContent.substr(0,D.startOffset):""};
g9.prototype.onKeyPress=g9.prototype.onKeyPress;g9.prototype.onKeyUp=g9.prototype.onKeyUp;g9.prototype.onKeyDown=g9.prototype.onKeyDown;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],g9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Array)],g9.prototype,"suggestions",void 0);_.d([_.M(),_.x("design:type",_.GG)],g9.prototype,"emojiManager",void 0);_.d([_.M(),_.x("design:type",Number)],g9.prototype,"verticalSuggestionsOffset",void 0);
_.d([_.o5("#dropdown"),_.x("design:type",Object)],g9.prototype,"dropdown",void 0);_.d([_.o5("#dropdown-content"),_.x("design:type",HTMLDivElement)],g9.prototype,"dropdownContent",void 0);_.d([_.rx("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],g9.prototype,"onKeyDown",null);_.d([_.rx("keyup"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent,Range]),_.x("design:returntype")],g9.prototype,"onKeyUp",null);
_.d([_.rx("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],g9.prototype,"onKeyPress",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-emoji-input"})],g9);
_.p(g9,"ytd-emoji-input",function(){if(FSv!==void 0)return FSv;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return FSv=D},{mode:2});var Zw4;var Ji=function(){var D=_.X.apply(this,arguments)||this;D.hasMaxOptions=!1;return D};
_.P(Ji,_.X);_.q=Ji.prototype;_.q.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.q.setPrefilledChoices=function(D){var t=this;this.set("pollOptions",[]);var H;for(H=0;H<Math.min(D.length,this.data.maxPollOptions);H++)this.push("pollOptions",D[H].substring(0,this.data.maxPollOptionChars));for(;H<this.data.minPollOptions;H++)this.push("pollOptions","");this.hasMaxOptions=H>=this.data.maxPollOptions;_.Vi(this,function(){for(var e=t.pollOptions,V=_.Kg(t.hostElement).querySelectorAll(".poll-option-input"),b=0;b<V.length;b++)V[b].value=e[b]})};
_.q.focusChanged=function(){_.jZ(this.hostElement)};
_.q.onInput=function(){var D=this;_.z1(this,"onInput",function(){D.isValid()?_.Gf(D.hostElement,"yt-commentbox-post-enable"):_.Gf(D.hostElement,"yt-commentbox-post-disable")},300)};
_.q.setPollOptions=function(){var D=[],t,H=((t=this.data)==null?0:t.minPollOptions)?this.data.minPollOptions:0;for(t=0;t<H;t++)D.push("");return D};
_.q.addPollOption=function(){var D=this;_.Gf(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Jy.addLowPriorityJob(function(){var t;(t=_.Kg(D.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||t.focus()})};
_.q.onRemovePollOption=function(D){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Gf(this.hostElement,"yt-poll-attachment-dismiss")):(D=this.repeat.indexForElement(D.target.parentNode),D!==null&&(this.splice("pollOptions",D,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Gf(this.hostElement,"yt-commentbox-post-enable"))))};
_.q.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.q.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var D=0,t=this.pollOptions.length;D<t;D++)if(this.pollOptions[D].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.q.getPollOptions=function(){return this.pollOptions};
_.q.setPollOptionsFromInputs=function(){for(var D=_.Kg(this.hostElement).querySelectorAll(".poll-option-input"),t=0;t<D.length;t++)this.pollOptions[t]=D[t].value.trim()};
_.q.clearPollOptions=function(){var D=_.Kg(this.hostElement).querySelectorAll(".poll-option-input");D=_.F(D);for(var t=D.next();!t.done;t=D.next())t.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.q.getSimpleString=function(D){return _.eo(D)};
_.q.updateValueFromBinding=function(D){if(D.target&&this.pollOptions){var t=Array.from(_.Kg(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(D.target);if(t>=0){var H;this.pollOptions[t]=(H=D.detail.value)!=null?H:"";this.notifyPath("pollOptions."+t)}}};
Ji.prototype.dataChanged=Ji.prototype.dataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ji.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ji.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Array)],Ji.prototype,"pollOptions",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ji.prototype,"hasMaxOptions",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ji.prototype,"enableCreationBox",void 0);
_.d([_.o5("#repeat"),_.x("design:type",lK)],Ji.prototype,"repeat",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ji.prototype,"dataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Ji);
_.p(Ji,"ytd-poll-attachment",function(){if(Zw4!==void 0)return Zw4;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Zw4=D},{mode:2});var sOn;var h3V;var G2f;var Ebv;var YE=function(){return _.X.apply(this,arguments)||this};
_.P(YE,_.X);_.ql.Object.defineProperties(YE.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],YE.prototype,"rendererBehaviors",void 0);_.d([_.M(),_.x("design:type",Object)],YE.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],YE.prototype,"focused",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("focused"),_.x("design:type",Object),_.x("design:paramtypes",[])],YE.prototype,"ariaSelected",null);_.d([_.xL({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],YE);
_.p(YE,"yt-user-mention-suggestion-renderer",function(){if(Ebv===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;G2f===void 0&&(G2f=document.createElement("template"));var e=G2f;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Ebv=D}D=Ebv;return D},{mode:2});var KSf;var N0n;var lr=function(){var D=_.X.apply(this,arguments)||this;D.focusedSuggestionIndex=-1;return D};
_.P(lr,_.X);_.q=lr.prototype;_.q.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.q.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.q.setFocusedSuggestionIndex=function(D){!this.data||!this.data.suggestions||D<0||D>=this.data.suggestions.length||(this.focusedSuggestionIndex=D,D=this.getSuggestionId(D),this._setFocusedSuggestionId(D))};
_.q.advanceSuggestion=function(D){this.focusedSuggestionIndex===-1||D!==-1&&D!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+D),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.q.ensureSuggestionVisible=function(D){D=this.getSuggestionId(D);D=_.Kg(this.hostElement).querySelector("[id="+D+"]");D!=null&&(D.offsetTop<this.hostElement.scrollTop?D.scrollIntoView(!0):D.offsetTop+D.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&D.scrollIntoView(!1))};
_.q.getSuggestionId=function(D){return"user-mention-suggestion-"+D};
_.q.onSuggestionTap=function(D){var t=_.O(D.model.item,o$f);this.ytRendererBehavior.logExplicitClick(t);_.Gf(this.hostElement,"yt-user-mention-suggestion-selected",{data:t,index:D.model.index})};
_.q.onSuggestionMouseMove=function(D){D.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(D.model.index)};
_.q.isSuggestionFocused=function(D,t){return D===t};
_.q.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.q.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("focused-suggestion-id-changed",this.focusedSuggestionId))};
lr.prototype.focusedSuggestionIdChangedForBinding=lr.prototype.focusedSuggestionIdChangedForBinding;lr.prototype.onDomChange=lr.prototype.onDomChange;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],lr.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],lr.prototype,"focusedSuggestionIndex",void 0);_.d([_.M({readOnly:!0}),_.x("design:type",String)],lr.prototype,"focusedSuggestionId",void 0);
_.d([_.rx("dom-change"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],lr.prototype,"onDomChange",null);_.d([_.Os("focusedSuggestionId"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lr.prototype,"focusedSuggestionIdChangedForBinding",null);_.d([_.xL({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],lr);
_.p(lr,"yt-user-mention-suggestions-dropdown",function(){if(N0n===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;KSf===void 0&&(KSf=document.createElement("template"));var e=KSf;H.call(t,e.content.cloneNode(!0),D.content.firstChild);N0n=D}D=N0n;return D},{mode:2});var vW=function(){var D=_.X.apply(this,arguments)||this;D.suggestionsResponse=null;D.activeMention=null;D.selectionChangeListener=D.onSelectionChange.bind(D);D.handlesEnabled=_.r("enable_handles_in_mention_suggest_posts");D.handlesInMentionSuggestionsEnabled=_.r("handles_in_mention_suggest_posts");D.zeroPrefixMentionSuggestionEnabled=_.r("enable_zero_prefix_mention_suggestion_web");D.pendingQuery=null;D.flowNonce=null;return D};
_.P(vW,_.X);_.q=vW.prototype;_.q.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.q.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.q.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.q.hasSuggestions=function(D){return!!(D&&D.suggestions&&D.suggestions.length>0)};
_.q.onInput=function(){var D=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var t=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),H=this.activeMention.JSC$11351_getText().slice(-1)===" ",e=this.activeMention.JSC$11351_getText().slice(-2,-1)===" ",V="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11351_getText().slice(-2,
-1))>=0;V=this.zeroPrefixMentionSuggestionEnabled&&V;if(this.activeMention.isCollapsed()||(t||e||V)&&H)this.cancelActiveMention();else{var b=this.activeMention.JSC$11351_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.z1(this,"requestSuggestions",function(){D.requestSuggestions(b)},100)}}}};
_.q.onServiceRequestSent=function(D){D.stopPropagation()};
_.q.onServiceRequestCompleted=function(D){D.stopPropagation();D=D.detail.data;D.query&&(!this.pendingQuery||this.pendingQuery!==D.query)||!this.zeroPrefixMentionSuggestionEnabled&&D.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=D,this.hasSuggestions(D)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.q.onServiceRequestError=function(D){D.stopPropagation()};
_.q.onUserMentionSuggestionSelected=function(D){this.selectSuggestion(D.detail.data,D.detail.index)};
_.q.onSelectionChange=function(){if(this.activeMention){var D=_.EE(),t=this.activeMention.JSC$11351_containsRange(D);D=D&&this.containsHelper(this.dropdown,D.getContainer());t||D||this.cancelActiveMention()}};
_.q.containsHelper=function(D,t){var H;if(((H=window.ShadyDOM)==null?void 0:H.noPatch)===!0)return D.contains(t);for(;t;){if(t===D)return!0;t=t instanceof ShadowRoot?t.host:t.parentNode}return!1};
_.q.maybeStartSuggest=function(){var D=_.EE();if(D&&D.isCollapsed()){var t=D.JSC$11351_getStartNode(),H=D.JSC$11351_getStartOffset();if(t instanceof Text&&!(H<1)){var e=t.textContent;!(e=e&&e.charAt(H-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(e)<0||(this.activeMention=_.HO(t,H-1,D.JSC$11351_getEndNode(),D.JSC$11351_getEndOffset()),this.flowNonce=JK(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.q.updateActiveMention=function(){if(this.activeMention){var D=_.EE();D&&D.isCollapsed()&&(this.activeMention=_.HO(this.activeMention.JSC$11351_getStartNode(),this.activeMention.JSC$11351_getStartOffset(),D.JSC$11351_getEndNode(),D.JSC$11351_getEndOffset()))}};
_.q.requestSuggestions=function(D){if(this.activeMention){var t={suggestions_query:D};this.pendingQuery=D;_.NJ(this.hostElement,[this.suggestionsEndpoint,t])}};
_.q.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()};
_.q.focusPreviousSuggestion=function(D){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),D.preventDefault())};
_.q.focusNextSuggestion=function(D){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),D.preventDefault())};
_.q.selectFocusedSuggestion=function(D){if(this.hasSuggestions(this.suggestionsResponse)){var t=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.O(t,o$f)&&(this.selectSuggestion(_.O(t,o$f),this.dropdown.focusedSuggestionIndex),D.preventDefault())}};
_.q.selectSuggestion=function(D,t){if(D){var H=this.activeMention;if(H){var e=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&D.handle?_.Qs(e,"\u00a0\u2068@"+D.handle+"\u2069\u00a0"):this.handlesEnabled?_.Qs(e,"\u00a0"+D.displayName+"\u00a0"):_.Qs(e,"\u00a0@"+D.displayName+"\u00a0");WU(e,"/channel/"+D.channelId);e.classList.add("yt-formatted-string","yt-simple-endpoint");e.setAttribute("spellcheck","false");H.isCollapsed()||H.JSC$11351_removeContents();H.insertNode(e,!0);D=document.createTextNode(" ");
e.parentNode.insertBefore(D,e.nextSibling);window.getSelection().collapse(D,1);t={suggestionSelected:{suggestionIndex:t}};if(this.zeroPrefixMentionSuggestionEnabled){var V;t.suggestionSelected.isZeroPrefix=((V=this.suggestionsResponse)==null?void 0:V.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",t);this.cancelActiveMention();_.Gf(this.hostElement,"yt-mention-inserted")}}};
_.q.getPositionTarget=function(D){return D&&D.getBrowserRangeObject()};
_.q.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.q.onFocusedSuggestionIdChanged=function(D){var t=_.ErT(this.hostElement)[0];t&&(D.detail.value?t.setAttribute("aria-activedescendant",D.detail.value):t.removeAttribute("aria-activedescendant"))};
_.q.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.q.logGELEvent=function(D,t){D={eventType:D,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};t&&(D=Object.assign(D,t));_.L7("userMentionAutoCompleteBoxEvent",D)};
vW.prototype.onDomChange=vW.prototype.onDomChange;vW.prototype.onUserMentionSuggestionSelected=vW.prototype.onUserMentionSuggestionSelected;vW.prototype.onServiceRequestError=vW.prototype.onServiceRequestError;vW.prototype.onServiceRequestCompleted=vW.prototype.onServiceRequestCompleted;vW.prototype.onServiceRequestSent=vW.prototype.onServiceRequestSent;vW.prototype.onInput=vW.prototype.onInput;_.d([_.C(_.l9),_.x("design:type",Object)],vW.prototype,"ironA11yKeysBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],vW.prototype,"suggestionsEndpoint",void 0);_.d([_.M(),_.x("design:type",Object)],vW.prototype,"suggestionsResponse",void 0);_.d([_.M(),_.x("design:type",Object)],vW.prototype,"activeMention",void 0);_.d([_.o5("#dropdown"),_.x("design:type",Object)],vW.prototype,"dropdown",void 0);_.d([_.o5("#iron-dropdown"),_.x("design:type",Object)],vW.prototype,"ironDropdown",void 0);
_.d([_.rx("input"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],vW.prototype,"onInput",null);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],vW.prototype,"onServiceRequestSent",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],vW.prototype,"onServiceRequestCompleted",null);
_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],vW.prototype,"onServiceRequestError",null);_.d([_.rx("yt-user-mention-suggestion-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],vW.prototype,"onUserMentionSuggestionSelected",null);
_.d([_.rx("dom-change"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],vW.prototype,"onDomChange",null);_.d([_.xL({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],vW);
_.p(vW,"yt-user-mention-autosuggest-input",function(){if(h3V===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;sOn===void 0&&(sOn=document.createElement("template"));var e=sOn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);h3V=D}D=h3V;return D},{mode:2});var pF=null;
_.gx({is:"ytd-commentbox",_template:function(){if(qN9!==void 0)return qN9;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return qN9=D},
behaviors:[_.R9K.YtHostElementBehavior,_.l9,_.dW.YtActionHandlerBehavior,_.Eg.YtComponentBehavior,_.MK.YtRendererstamperBehavior,_.Bb6.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(D,t){return _.jR(D.entities,"aadcGuidelinesStateEntityPayload",t)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(D,t){return _.jR(D.entities,"commentboxStateEntity",t)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.ND}},
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:_.r("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.r("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",_.iK(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(D){this.fire(D?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(D){this.set("submitButtonDisabled",void 0);this.clear();D&&this.computeIsEmojiButtonDisplayed_(D)&&(D=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&D.updateEmojiCategories()},
observePrefilledImage_:function(D,t,H){this.isValidPrefilledImage_(D,t,H)&&(this.prefilledAttachment_="image",this.prefilledImageData_=t,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(D,t){this.isValidPrefilledVideo_(D,t)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(D){D&&D.pollData&&D.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(D.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.ML();this.focus()},
detached:function(){document.removeEventListener("tap",_.iK(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(D){D=D.detail;D=D.isCustomEmoji?D.shortcuts[0]:D.emojiId;var t=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(t,D);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var D=_.EE();if(D){D=D.getBrowserRangeObject();for(var t=D.commonAncestorContainer;t;){if(t===this.getEditableTextArea_())return D;t=t.parentNode}}D=this.getEditableTextArea_();D=_.t7(D,D.childNodes.length);D.select();return D.getBrowserRangeObject()},
insertTextWithEmojis_:function(D,t,H){(t=this.emojiManager.createDocumentFragment(t,!0,!1,H===void 0?!0:H))&&t.childNodes.length!==0&&(D.collapsed||D.deleteContents(),H=t.lastChild,D.insertNode(t),_.j5w(H).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var D=_.EE();if(D){var t=D.JSC$11351_getStartNode(),H=D.JSC$11351_getEndNode();if(ukX(t)&&ukX(H)){var e=D.JSC$11351_getStartOffset(),V;if(_.TE&&t.nodeType===Node.ELEMENT_NODE&&(V=_.jvn(t)))_.t7(V,0).select();else{V=sE(t)?t:_.xz(t,sE);var b=sE(H)?H:_.xz(H,sE);if(V||b)if(D.isCollapsed()){if(t.nodeType===Node.TEXT_NODE){D=!0;e===t.length&&(D=!1);if(pF==="end"||pF==="right")D=!1;t=t.parentNode;D=[].concat(_.A6(t.parentNode.childNodes)).indexOf(t)+(D?0:1);_.t7(t.parentNode,
D).select()}}else V?V.previousSibling&&V.previousSibling.length>0?_.HO(H,D.JSC$11351_getEndOffset(),V.previousSibling,V.previousSibling.length-1).select():(t=document.createTextNode("\u200b"),V.parentNode.insertBefore(t,V),_.HO(H,D.JSC$11351_getEndOffset(),t,0).select()):b&&(b.nextSibling&&b.nextSibling.length>0?_.HO(t,D.JSC$11351_getStartOffset(),b.nextSibling,1).select():(H=document.createTextNode("\u200b"),b.parentNode.insertBefore(H,b.nextSibling),_.HO(t,D.JSC$11351_getStartOffset(),H,H.length).select()));
pF=null}}else pF=null}else pF=null},
leftKeyPressed_:function(){pF="left"},
rightKeyPressed_:function(){pF="right"},
endKeyPressed_:function(){pF="end"},
maybeDeleteChip_:function(){var D=zqD(!0);if(D){var t=_.EE(),H=t.JSC$11351_getStartNode();t=t.JSC$11351_getStartOffset();_.QO(H,t,D,D.childNodes.length).select()}},
maybeBackspaceChip_:function(){var D=zqD(!1);if(D){var t=_.EE(),H=t.JSC$11351_getStartNode();t=t.JSC$11351_getStartOffset();_.QO(H,t,D,0).select()}},
maybeBackspaceChipWordMode_:function(D){var t=_.EE();if(t.isCollapsed()){var H=t.JSC$11351_getStartNode();t=t.JSC$11351_getStartOffset();var e=DE8(H,t,!0);e&&(_.QO(H,t,e,0).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(D){var t=_.EE();if(t.isCollapsed()){var H=t.JSC$11351_getStartNode();t=t.JSC$11351_getStartOffset();var e=DE8(H,t,!1);e&&(_.QO(H,t,e,e.childNodes.length).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
onTap_:function(D){if(!D.defaultPrevented&&(D.currentTarget.tagName==="YTD-COMMENTBOX"&&sE(D.target)&&D.preventDefault(),this.isEmojiPickerDisplayed)){var t=this.$$("#emojis"),H=this.$$("#emoji-button"),e=this.getEditableTextArea_();if((D=D.path?D.path:D.composedPath&&D.composedPath())&&!D.includes(t)&&!D.includes(e)&&!D.includes(H))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(D,t,H){return D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&t!==void 0&&t.encryptedBlobId!==null&&t.sourceExternalVideoId!==null&&H!==void 0&&H.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(D,t){return D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!t&&!!t.videoRenderer&&!!t.videoRenderer.videoId},
isValidPrefilledAttachment_:function(D,t,H){return this.isValidPrefilledImage_(D,t,H)||this.isValidPrefilledVideo_(D,H)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.r("enable_multi_image_post_creation")){var D=this.$$("ytd-backstage-multi-image-select-renderer");D&&D.hasImages()&&D.cancel()}else(D=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&D.cancel();(D=this.$["poll-attachment"])&&this.hasPoll_&&D.clearPollOptions();(D=this.$["image-poll-attachment"])&&this.hasImagePoll_&&D.resetPollOptions();(D=this.$["quiz-attachment"])&&this.hasQuiz_&&D.resetQuizOptions();
(D=this.$["video-link-attachment"])&&this.hasVideo_&&D.cancel();(D=this.$["access-restrictions-selector"].firstElementChild)&&D.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 _.Kg(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Kg(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(D,t){D=I0V(D,this.emojiManager,t).cloneNode(!0);for(t=D.firstChild;t;)if(t.nodeType!==1)t=t.nextSibling;else switch(t.tagName){case "BR":var H=_.dq();_.nQm(H,t);t=H.nextSibling;break;case "DIV":(H=t.lastChild)&&t.nextSibling&&_.Wr(_.dq(),H);t.previousSibling&&(t.previousSibling.nodeType===1||t.previousSibling.nodeType===3&&!t.previousSibling.textContent.endsWith("\n"))&&_.ut(_.dq(),t);H&&H.nodeName==="BR"&&_.UH(H);H=t;t.hasChildNodes()?(t=t.firstChild,
_.CY3(H)):(t=t.nextSibling,_.UH(H));break;default:t=t.nextSibling}return tA$(D)},
onAddImageError_:function(D){D.stopPropagation();this.errorMessage_=_.H7(D.detail)},
setTextAreaValue_:function(D){D||(D="");var t=this.getEditableFormattedString_();t.text="";this.getEditableTextArea_().innerText="";typeof D==="string"&&(D={runs:[{text:D}]});t.text=D},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();pF=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var D=this.getEditableTextArea_();D&&(_.t7(D,D.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.YC("HTML_DIR")==="rtl"){var D=this.getEditableTextArea_(),t=this.getTextAreaValue()!==""?"auto":"rtl";D.setAttribute("dir",t)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var D;return pNK((D=this.$["quiz-attachment"])==null?void 0:D.getExplanationText())||pNK(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var D=null;if(this.isEmojiButtonDisplayed){var t=this.getInputRange_();t&&(D=this.emojiInput.retrieveTextBeforeRange(t))}this.insertText_(D,!0);this.updateCharCount_();this.setSubmitButton_();D=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=D.scrollHeight>D.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var D=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:D})},
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(D){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(D)},
onPasteEmoji_:function(D){D.preventDefault();D.stopImmediatePropagation();D=D.clipboardData.getData("text/plain");this.insertText_(D,!1,!1)},
insertText_:function(D,t,H){t=t===void 0?!1:t;H=H===void 0?!0:H;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&D){var e=this.getInputRange_().cloneRange();this.emojiManager&&e&&(t&&this.emojiInput.offsetStartOfRangeBy(e,D.length),this.insertTextWithEmojis_(e,D,H),WlK(this.getEditableTextArea_().lastChild)||(e=this.getInputRange_().cloneRange()),e&&(this.emojiInput.updateSuggestions(e,D),this.updateSuggestionOffset_(e)))}},
setSubmitButton_:function(){if(this.data){var D=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",t=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(D||t){var H=this.getTextAreaValue().trim();t=H===this.previousText_;H=!H||this.aboveCharLimit_;D&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(H=this.aboveCharLimit_);this.submitButtonDisabled=
t||H||!this.getTextLength();D&&_.r("enable_post_scheduling")&&(this.submitButtonDisabled=t&&!this.scheduledPublishTimeSec_||H)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.eo,computeCreationBoxClass_:function(D){return D?"focused":"not-focused"},
computeFooterMessageClass_:function(D,t){return t?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(D,t){return t?t:D},
computeFooterMessageHidden_:function(D,t){return!t&&!D},
computePlaceholderText_:function(D,t,H){return(H==="video"||H==="image")&&(D==null?0:D.prefilledPlaceholderText)?D==null?void 0:D.prefilledPlaceholderText:t==="poll"||t==="image-poll"?D==null?void 0:D.pollPostPlaceholderText:t==="quiz"?D==null?void 0:D.quizPostPlaceholderText:t==="image"?D==null?void 0:D.imagePostPlaceholderText:D==null?void 0:D.placeholderText},
computeHideAttachmentButtons_:function(D,t,H,e){return D===void 0?!1:e&&this.getSimpleString(e)===this.getSimpleString(D.rateLimitErrorMessage)?!0:t!=="none"||H!=="none"||!D.videoLinkButton&&!D.pollButton&&!D.imagePollButton&&!D.quizButton&&!D.imageButton},
computeHideDismissableAttachment_:function(D){return D!=="image"&&D!=="video"},
computeHasVideo_:function(D){return D==="video"},
computeHasImage_:function(D){return D==="image"},
computeHasPoll_:function(D){return D==="poll"},
computeHasImagePoll_:function(D){return D==="image-poll"},
computeHasQuiz_:function(D){return D==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(D){return D&&D.backstageAttachment?D.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!D.backstageAttachment.quizRenderer&&!D.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(D){if(this.isValidPrefilledAttachment_(D.purpose,D.prefilledImageData,D.backstageAttachment))return D.backstageAttachment},
computeEditAttachment_:function(D){if(this.computePrefilledContent_(D)===void 0)return D.backstageAttachment},
computeAuthorThumbnailDimension_:function(D,t){return D&&!t?24:40},
computeImageUploadEndpoint_:function(D){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",D)},
computeRateLimitErrorCommands_:function(D){var t,H;return D==null?void 0:(t=D.advancedTierFeatures)==null?void 0:(H=t.rateLimit)==null?void 0:H.rateLimitCommands},
computeIsBackstageComment_:function(D){return!(!D||D!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(D){return this.get("submitButton.buttonRenderer.serviceEndpoint",D)||this.get("replyButton.buttonRenderer.serviceEndpoint",D)||this.get("postButton.buttonRenderer.serviceEndpoint",D)},
computeSubmitButtonOverride:function(){if(_.r("web_modern_buttons")){var D,t;return{segmentedPosition:this.dropdownSchedulePanel_||!((D=this.data)==null?0:(t=D.postOptionsMenu)==null?0:t.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.r("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(D,t){D=this.get("submitButton.buttonRenderer",D)||this.get("replyButton.buttonRenderer",D)||this.get("postButton.buttonRenderer",D);t&&(D=t);D&&(D=Object.assign({},D),D.serviceEndpoint=void 0,D.isDisabled=this.submitButtonDisabled);return D},
computeHasExternalLinksAccess_:function(D){if(_.r("enable_rfa_external_links")){var t,H,e;return(e=D==null?void 0:(t=D.advancedTierFeatures)==null?void 0:(H=t.externalLinks)==null?void 0:H.allowExternalLinks)!=null?e:!0}return!0},
computeIsEmojiButtonDisplayed_:function(D){return D.emojiButton&&D.emojiPicker&&D.emojiPicker.emojiPickerRenderer&&D.emojiPicker.emojiPickerRenderer.categories?D.emojiPicker.emojiPickerRenderer.categories.find(function(t){return t.emojiPickerCategoryRenderer?t.emojiPickerCategoryRenderer.emojiIds&&t.emojiPickerCategoryRenderer.emojiIds.length>0:t.emojiPickerUpsellCategoryRenderer?t.emojiPickerUpsellCategoryRenderer.emojis&&t.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(D){return D.charLimit?D.charLimit:null},
computeDropdownSchedulingPanel_:function(D,t){if(D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&t)return t},
computeInlineSchedulingPanel_:function(D,t){if(D==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&t)return t},
computeHideAuthorThumbnail_:function(D,t){return D||this.computeUseIdentityChip_(t)},
computeHideIdentityChipRenderer_:function(D,t){return D||!this.computeUseIdentityChip_(t)},
computeUseIdentityChip_:function(D){return!!D&&!!D.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(D){var t,H,e,V;(D==null?0:(t=D.detail)==null?0:(H=t.endpoint)==null?0:H.ypcGetOffersEndpoint)||(D==null?0:(e=D.detail)==null?0:(V=e.endpoint)==null?0:V.ypcOffersEndpoint)?(D.stopPropagation(),_.NJ(this,[D.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",D)&&(D.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(D){this.addedAttachment="video";this.selectedVideoId_=D.detail.videoId},
commentboxStateEntityChanged_:function(D){var t=this;(D==null?void 0:D.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(D==null?void 0:D.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){t.focus()})},
onYtServiceRequestSent_:function(D,t){if(t.actions)for(D=_.F(t.actions),t=D.next();!t.done;t=D.next())t.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(D){this.isLoading=!1;var t=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",D),H,e,V,b=D==null?void 0:(H=D.detail)==null?void 0:(e=H.data)==null?void 0:(V=e.actionResult)==null?void 0:V.commentboxStateEntityKey;if(t)this.errorMessage_=t;else if(b){var a;this.dismissData_=D==null?void 0:(a=D.detail)==null?void 0:a.data;this.commentboxStateKey_=b}else{this.clear();var w;this.fire("yt-commentbox-dismiss",D==null?void 0:(w=D.detail)==
null?void 0:w.data)}},
onYtServiceRequestError_:function(D){D.stopPropagation();this.isLoading=!1;var t,H;if(((t=this.data)==null?void 0:t.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((H=this.data)==null?void 0:H.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(t=this.get("detail.error.args",D)||[],t.length>1&&t[1].message){this.handlePostsServiceRequestError_(t[1].message);return}(D=this.get("detail.error.message",D))?this.errorMessage_=this.data.errorMessage||_.H7(D):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(D){if(_.r("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var t=_.F(this.rateLimitErrorCommands),H=t.next();!H.done;H=t.next())if(H=H.value,H.errorLabel===D){_.rj(H.command,this.hostElement);return}this.errorMessage_=_.H7(D)},
submitIfNotBackstagePost_:function(D){if(!this.isBackstagePost)this.onSubmit_(D)},
onSubmit_:function(D){var t=this,H,e,V,b,a,w,h,K,N,k,T,c,U,S,L;return _.Z(function(J){switch(J.nextAddress){case 1:D.stopPropagation();if(!t.serviceEndpoint||!t.isValidInput_())return J.return();if(t.shouldShowPostAadcNotice_())return t.showPostAadcNotice_(),J.return();if(t.shouldShowCommentAadcNotice_())return t.showCommentAadcNotice_(),J.return();if(!(t.$$("ytd-backstage-multi-image-select-renderer")&&t.hasImage_&&_.r("enable_multi_image_post_creation"))){J.jumpTo(2);break}H=t.$$("ytd-backstage-multi-image-select-renderer");
return J.yield(H.getAllUploadStatuses(),3);case 3:e=J.yieldResult;if(!e)return J.return();V=_.F(e);for(b=V.next();!b.done;b=V.next())if(a=b.value,a.encryptedBlobId===void 0)return t.isLoading=!1,h=w=void 0,t.errorMessage_=(h=(w=t.imageUploadEndpoint_)==null?void 0:w.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?h:null,J.return();return J.return(t.submitForm_(void 0,void 0,void 0,void 0,H.images,t.taggedVideoId_));case 2:if(!t.hasImagePoll_||!t.$["image-poll-attachment"]){J.jumpTo(4);
break}return J.yield(t.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:K=J.yieldResult;if(!K)return J.return();N=_.F(K);for(k=N.next();!k.done;k=N.next())if(T=k.value,!T.encryptedBlobId)return t.isLoading=!1,c=void 0,t.errorMessage_=(c=t.data.errorMessage)!=null?c:null,J.return();case 4:S=(U=t.$$("ytd-backstage-image-select-renderer"))&&U.uploadPromise(),L=t.getSharedPostId_(),S?S.then(function(){t.submitForm_.apply(t,_.A6(_.RE.apply(0,arguments)))}).catch(function(g){t.isLoading=!1;
t.errorMessage_=_.H7(g.message)}):t.selectedVideoId_?t.submitForm_(void 0,t.selectedVideoId_):t.prefilledAttachment_==="image"?t.submitForm_(t.prefilledImageData_.encryptedBlobId,void 0,void 0,t.prefilledImageData_.sourceExternalVideoId,void 0,t.taggedVideoId_):t.prefilledAttachment_==="video"?t.submitForm_(void 0,t.data.backstageAttachment.videoRenderer.videoId):L?t.submitForm_(void 0,void 0,L):t.taggedVideoId_!==void 0?t.submitForm_(void 0,void 0,void 0,void 0,void 0,t.taggedVideoId_):t.submitForm_(),
_.n2(J)}})},
openSchedulingPanel:function(D){D&&D.scheduleButton&&D.scheduleButton.buttonRenderer&&(this.scheduleButton_=D.scheduleButton.buttonRenderer);D&&D.dateTimePicker&&this.set("data.schedulingDateTimePicker",D.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(D){D.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(D){D.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(D){D.stopPropagation();D.detail.alertMessage&&(this.alertMessage_=D.detail.alertMessage)},
onImageSelected_:function(D){D.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(D){D.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(D){D.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(D.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(D){D.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(D){var t=this.$["video-link-attachment"];t&&t.onLaunchVideoPicker(D)},
onAttachmentDismiss_:function(D){D.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"&&_.r("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.r("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 D;if(this.addedAttachment==="image-poll"&&((D=this.$["image-poll-attachment"])==null||!D.isValid()))return!1;var t;if(this.addedAttachment==="quiz"&&((t=this.$["quiz-attachment"])==null||!t.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;D=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(D=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")D=!0;return D||!!this.getTextAreaValue().trim()},
submitForm_:function(D,t,H,e,V,b){var a=this.getTextAreaValue().trim(),w={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&a===this.previousText_&&(a=void 0);a!==void 0&&(w.comment_text=a);this.isLoading=!0;b!=void 0&&(w.tagged_video_id=b);D?(w.image_blob_id=D,this.imagePreviewCoordinates_&&(w.image_preview_coordinates=this.imagePreviewCoordinates_)):t?w.attached_video_id=t:H?w.shared_post_id=H:V&&V.length>0&&(w.images_data=V.map(function(h){return{encryptedBlobId:h.encryptedBlobId,
previewCoordinates:h.previewCoordinates}}));
e&&(w.source_video_id=e);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());_.r("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(w.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.r("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(w.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.NJ(this,[this.serviceEndpoint,w])},
onIsInputFocusChanged_:function(D,t){D?this.fire("yt-autonav-pause-focus"):t!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(D){var t=this.getEditableTextArea_();[].concat(_.A6(D.dataTransfer.items)).forEach(function(H){H.kind==="string"&&H.type.match("^text/plain")&&H.getAsString(function(e){t.appendChild(document.createTextNode(e))})});
D.preventDefault()},
preventDefault_:function(D){D.preventDefault()},
onSuggestionInsert_:function(D){this.insertTextWithEmojis_(D.detail.range,D.detail.text)},
onEmojiSuggestionClick_:function(D){this.emojiInput.insertSuggestion(D.detail)},
computeSubmitButtonClass_:function(D,t){return!t||D?"":"with-options"},
updateSuggestionOffset_:function(D){if(this.emojiInput&&_.Kg(this.emojiInput).querySelector("#dropdown")){var t=this.getEditableTextArea_().getBoundingClientRect().bottom,H=D.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(t-H)+5;t=this.getEditableTextArea_().getBoundingClientRect().left;D=D.getBoundingClientRect().left-t;_.Kg(this.emojiInput).querySelector("#dropdown").style.marginLeft=D+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(D){if(_.r("enable_post_scheduling")&&this.data&&this.data.purpose){D=D.detail;if(Math.floor(Date.now()/1E3)>=D)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var t=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(t)||t!==D?this.scheduledPublishTimeSec_=D:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=D;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var D=["image-button","image-poll-button","poll-button"];_.r("enable_quiz_creation")&&D.push("quiz-button");_.r("auto_convert_posts_video_tag")||D.push("video-link-button");return D},
getButtonRenderer:function(D,t){if(D)switch(t){case "video-link-button":var H;return((H=D.videoLinkButton)==null?void 0:H.buttonRenderer)||void 0;case "image-button":var e;return((e=D.imageButton)==null?void 0:e.buttonRenderer)||void 0;case "poll-button":var V;return((V=D.pollButton)==null?void 0:V.buttonRenderer)||void 0;case "image-poll-button":var b;return((b=D.imagePollButton)==null?void 0:b.buttonRenderer)||void 0;case "quiz-button":var a;return((a=D.quizButton)==null?void 0:a.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var D;return(D=this.data)==null||!D.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var D,t;return!((D=this.data)==null||!D.openAadcDialog)&&!((t=this.aadcGuidelinesState_)==null||!t.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.YC("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var D;((D=this.data)==null?0:D.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.dk("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(D){D.clickTrackingParams&&_.Pc().clickCommand(D);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.ET(this,"yt-close-popup-action")},
onHideIdentityChip:function(D){var t;this.set("data.placeholderText",(t=D.hideIdentityChipAction)==null?void 0:t.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var d9=function(){var D=_.X.apply(this,arguments)||this;D.isOpen=!1;D.modern=_.r("web_modern_buttons");D.roundedContainer=!0;D.dropdownButtonOverride=_.r("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;D.inPopupContainer=!1;D.isCommentboxLoading=!1;var t=["image-button","image-poll-button","poll-button"];_.r("enable_quiz_creation")&&t.push("quiz-button");_.r("auto_convert_posts_video_tag")||t.push("video-link-button");D.attachmentButtonIds=t;D.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 D};
_.P(d9,_.X);_.q=d9.prototype;_.q.computeButtonOverride=function(){var D;return((D=this.data)==null?0:D.postOptionsMenu)&&_.r("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.q.configureRendererStamper=function(){var D={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.r("auto_convert_posts_video_tag")||(D["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return D};
_.q.ready=function(){var D=this,t=_.Kg(this.hostElement).querySelector("#placeholder-area"),H=function(e){D.onOpen(e)};
t.addEventListener("tap",H);t.addEventListener("keypress",H)};
_.q.showButtonEduTooltip=function(){var D,t,H,e,V,b,a;if(_.r("enable_quiz_creation")&&((D=this.data)==null?0:(t=D.quizButton)==null?0:(H=t.buttonRenderer)==null?0:(e=H.hint)==null?0:(V=e.hintRenderer)==null?0:(b=V.content)==null?0:(a=b.bubbleHintRenderer)==null?0:a.text)&&(_.Si.getInstance(),D=Xr(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(D==null?void 0:
D.length)>0)){this.ytComponentBehavior.resolveCommand(D[0],{form:{element:this.quizButton}});return}var w;if((w=this.data)==null?0:w.imagePollButtonTooltip)if(_.Si.getInstance(),w=Xr(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 h;_.r("enable_multi_image_post_creation")&&
((h=this.data)==null?0:h.multiImageButtonTooltip)&&(_.Si.getInstance(),h=Xr(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(h==null?void 0:h.length)>0&&this.ytComponentBehavior.resolveCommand(h[0],{form:{element:this.imageButton}}))};
_.q.onCreatePollAction=function(D){_.O(D,Vem)&&(this.JSC$15815_commentbox.addedAttachment="poll",this.openDialog())};
_.q.onAddVideoLinkAction=function(D){if(_.O(D,Dov))this.JSC$15815_commentbox.onAddVideoLink(D)};
_.q.onShowSchedulingPanelCommand=function(D){(D=_.O(D,n19))&&this.openSchedulingPanel(D)};
_.q.onCreateImagePollCommand=function(D){_.O(D,iia)&&(this.JSC$15815_commentbox.openImagePollComponent(),this.openDialog())};
_.q.onCreateQuizCommand=function(D){_.O(D,r1o)&&(this.JSC$15815_commentbox.openQuizComponent(),this.openDialog())};
_.q.openSchedulingPanel=function(D){_.r("enable_post_scheduling")&&(this.openDialog(),this.JSC$15815_commentbox.openSchedulingPanel(D))};
_.q.onCreateCommentAction=function(D){this.get("createCommentAction.contents",D)&&(this.JSC$15815_commentbox.clear(),this.closeDialog())};
_.q.onOpen=function(D){D instanceof KeyboardEvent&&D.type==="keypress"&&D.keyCode!==13&&D.keyCode!==32||(this.data.prepareAccountEndpoint?_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.q.onYtCommentboxDismiss=function(){this.closeDialog()};
_.q.onYtCommentboxLoadingStart=function(D){D.stopPropagation();this.isCommentboxLoading=!0};
_.q.onYtCommentboxLoadingEnd=function(D){D.stopPropagation();this.isCommentboxLoading=!1};
_.q.onYtVideoLinkButtonCancel=function(D){D.stopPropagation();this.onOpen(D)};
_.q.onYtVideoLinkSelected=function(D){D.stopPropagation();this.onOpen(D)};
_.q.onIronSelect=function(D){D.stopPropagation();D.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=D.detail.item.value&&(this.accessRestriction?(this.accessRestriction=D.detail.item.value,this.onOpen(D)):this.accessRestriction=D.detail.item.value)};
_.q.onYtNavigate=function(D){this.get("detail.endpoint.backstageImageUploadEndpoint",D)&&(this.JSC$15815_commentbox.addedAttachment="image",this.JSC$15815_commentbox.submitButtonDisabled=!0,this.onOpen(D))};
_.q.onRequestSent=function(D){if(_.r("web_button_rework"))for(var t=_.F(D.detail),H=t.next();!H.done;H=t.next())_.O(H.value,fLn)&&(this.JSC$15815_commentbox.addedAttachment="image",this.JSC$15815_commentbox.submitButtonDisabled=!0,this.onOpen(D))};
_.q.openDialog=function(){var D;(D=this.data)!=null&&D.isIneligibleForCommunityPagePostCreation||(this.JSC$15815_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$15815_commentbox.focus())};
_.q.onPopupClosed=function(){_.Si.getInstance()};
_.q.computeCreationDisabled=function(D){return!!D};
_.q.computeIsCreationDialog=function(D){return!!D&&D==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.q.computeDisabledPostButton=function(D){if(!D)return null;D.isDisabled=!0;return D};
_.q.computeIsCreationDialogWithHeader=function(D){return!this.inPopupContainer&&!!D&&!!D.authorText&&D.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.q.computeIsHeaderHidden=function(D,t){return!D||t};
_.q.computeDropdownRendererClasses=function(D){return D?["text-secondary-style"]:[]};
_.q.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var D=_.Kg(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;D&&D.reset()};
d9.prototype.onPopupClosed=d9.prototype.onPopupClosed;d9.prototype.onRequestSent=d9.prototype.onRequestSent;d9.prototype.onYtNavigate=d9.prototype.onYtNavigate;d9.prototype.onIronSelect=d9.prototype.onIronSelect;d9.prototype.onYtVideoLinkSelected=d9.prototype.onYtVideoLinkSelected;d9.prototype.onYtVideoLinkButtonCancel=d9.prototype.onYtVideoLinkButtonCancel;d9.prototype.onYtCommentboxLoadingEnd=d9.prototype.onYtCommentboxLoadingEnd;d9.prototype.onYtCommentboxLoadingStart=d9.prototype.onYtCommentboxLoadingStart;
d9.prototype.onYtCommentboxDismiss=d9.prototype.onYtCommentboxDismiss;d9.prototype.showButtonEduTooltip=d9.prototype.showButtonEduTooltip;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],d9.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],d9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],d9.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],d9.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],d9.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],d9.prototype,"isOpen",void 0);_.d([_.M({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],d9.prototype,"buttonOverride",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],d9.prototype,"modern",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],d9.prototype,"roundedContainer",void 0);_.d([_.M(),_.x("design:type",Object)],d9.prototype,"dropdownButtonOverride",void 0);_.d([_.M({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.x("design:type",Boolean)],d9.prototype,"creationDisabled",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],d9.prototype,"enableCreationBox",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.x("design:type",Boolean)],d9.prototype,"isCreationDialog",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],d9.prototype,"inPopupContainer",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.x("design:type",Boolean)],d9.prototype,"isCreationDialogWithHeader",void 0);_.d([_.M(),_.x("design:type",Object)],d9.prototype,"accessRestriction",void 0);
_.d([_.M({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.x("design:type",Array)],d9.prototype,"dropdownRendererClasses",void 0);_.d([_.M(),_.x("design:type",Object)],d9.prototype,"isCommentboxLoading",void 0);_.d([_.M(),_.x("design:type",Array)],d9.prototype,"attachmentButtonIds",void 0);_.d([_.o5("#image-button"),_.x("design:type",HTMLElement)],d9.prototype,"imageButton",void 0);
_.d([_.o5("#image-poll-button"),_.x("design:type",HTMLElement)],d9.prototype,"imagePollButton",void 0);_.d([_.o5("#quiz-button"),_.x("design:type",HTMLElement)],d9.prototype,"quizButton",void 0);_.d([_.o5("#commentbox"),_.x("design:type",Object)],d9.prototype,"JSC$15815_commentbox",void 0);_.d([_.Os("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],d9.prototype,"showButtonEduTooltip",null);
_.d([_.rx("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],d9.prototype,"onYtCommentboxDismiss",null);_.d([_.rx("yt-commentbox-loading-start"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],d9.prototype,"onYtCommentboxLoadingStart",null);
_.d([_.rx("yt-commentbox-loading-end"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],d9.prototype,"onYtCommentboxLoadingEnd",null);_.d([_.rx("yt-video-link-button-cancel"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],d9.prototype,"onYtVideoLinkButtonCancel",null);
_.d([_.rx("yt-video-link-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],d9.prototype,"onYtVideoLinkSelected",null);_.d([_.rx("iron-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],d9.prototype,"onIronSelect",null);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],d9.prototype,"onYtNavigate",null);
_.d([_.rx("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],d9.prototype,"onRequestSent",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],d9.prototype,"onPopupClosed",null);_.d([_.Y({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],d9);
_.p(d9,"ytd-backstage-post-dialog-renderer",function(){if(Jd4!==void 0)return Jd4;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n    [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer"></yt-formatted-string>\n    <div class="visibility-container style-scope ytd-backstage-post-dialog-renderer" hidden="[[data.isIneligibleForCommunityPagePostCreation]]">\n      <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n      <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n      <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      </yt-formatted-string>\n    </div>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" hidden="[[data.isIneligibleForCommunityPagePostCreation]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div class="ytd-commentbox-slot-repost-preview style-scope ytd-backstage-post-dialog-renderer" slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Jd4=D},{mode:1});var k2m;var T0f;var xE=function(){return _.X.apply(this,arguments)||this};
_.P(xE,_.X);_.q=xE.prototype;_.q.computeHeartButtonStyle=function(D){return(D==null?0:D.styleType)?D.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.q.onYtButtonTap=function(){if(this.data.isEnabled){var D=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(D=this.getEndpoint(D))&&_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}})}else(D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(D)};
_.q.toggle=function(D){this.set("data.isHearted",D!==void 0?D:!this.data.isHearted)};
_.q.getEndpoint=function(D){var t,H=(t=this.data)==null?void 0:t.heartEndpoint,e;t=(e=this.data)==null?void 0:e.unheartEndpoint;if(H&&t)return D?t:H};
_.q.computeButtonAccessibility=function(D,t){var H,e,V=D==null?void 0:(H=D.heartedAccessibility)==null?void 0:(e=H.accessibilityData)==null?void 0:e.label,b,a;D=D==null?void 0:(b=D.unheartedAccessibility)==null?void 0:(a=b.accessibilityData)==null?void 0:a.label;return t?V:D};
_.ql.Object.defineProperties(xE.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 D;return _.r("kevlar_system_icons")&&!((D=this.data)==null||!D.isHearted)}}});
xE.prototype.onYtButtonTap=xE.prototype.onYtButtonTap;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],xE.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],xE.prototype,"data",void 0);_.d([_.m("data.isHearted"),_.x("design:type",Object),_.x("design:paramtypes",[])],xE.prototype,"heartTooltip",null);
_.d([_.m("data.isHearted"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],xE.prototype,"iconFilled",null);_.d([_.M({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.x("design:type",String)],xE.prototype,"buttonAccessibility",void 0);_.d([_.M({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],xE.prototype,"heartButtonStyle",void 0);
_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xE.prototype,"onYtButtonTap",null);_.d([_.Y({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],xE);
_.p(xE,"ytd-creator-heart-renderer",function(){if(T0f!==void 0)return T0f;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return T0f=D},{mode:1});var R9=function(){var D=_.X.apply(this,arguments)||this;D.hasCreatorReply=!1;D.buttonOverrides={size:"S",iconPosition:"icon-only"};D.replyButtonOverrides={size:"S",type:"text"};D.forceIconButton=!_.r("web_modern_buttons");D.modern=_.r("web_modern_buttons");D.buttonTooltipPosition="bottom";D.systemIcons=_.r("kevlar_system_icons");D.replyDialog=null;return D};
_.P(R9,_.X);_.q=R9.prototype;
_.q.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]]"}}}}}};
_.q.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.q.dataChange=function(){this.replyDialog&&_.Kg(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var D,t,H;this.isLiked=this.systemIcons&&!!((D=this.data)==null?0:(t=D.likeButton)==null?0:(H=t.toggleButtonRenderer)==null?0:H.isToggled)};
_.q.computeShowVoteCountBeginning=function(D,t){return D===void 0||t===void 0?!0:D.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!t&&this.ytRendererBehavior.getSimpleString(t)!=="0"};
_.q.computeShowVoteCountEnd=function(D,t){return D===void 0||t===void 0?!0:D.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!t&&this.ytRendererBehavior.getSimpleString(t)!=="0"};
_.q.computeShowCommentCount=function(D,t){return D===void 0||t===void 0?!0:D.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!t&&this.ytRendererBehavior.getSimpleString(t)!=="0"};
_.q.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.q.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.q.showReplyDialog=function(D){D&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Kg(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=D,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.q.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.q.onRequestSent=function(D){if(_.r("web_button_rework")){D=_.F(D.detail);for(var t=D.next();!t.done;t=D.next())(t=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",t.value))&&this.showReplyDialog(t)}};
_.q.onYtNavigate=function(D){var t,H;(D=(t=_.O(D.detail.endpoint,_.Azn))==null?void 0:(H=t.dialog)==null?void 0:H.commentReplyDialogRenderer)&&this.showReplyDialog(D)};
_.q.onYtServiceRequestSent=function(D,t){D.stopPropagation();if(t.actions)for(D=0;D<t.actions.length;D++){var H=_.O(t.actions[D],ZxV);H&&this.handleUpdateCommentVoteAction(H)}};
_.q.handleUpdateCommentVoteAction=function(D){this.voteCount=D.voteCount||_.H7("0");D.voteStatus==="LIKE"?this.JSC$15827_ytdDislikeToggleButtonRenderer.toggle(!1):D.voteStatus==="DISLIKE"?this.JSC$15827_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15827_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15827_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.q.computeReplyButtonHidden=function(D){return D};
_.q.computeReplyButtonBeginning=function(D){return(D==null?0:D.replyButton)&&D.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?D.replyButton:void 0};
_.q.computeReplyButtonEnd=function(D){return(D==null?0:D.replyButton)&&D.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?D.replyButton:void 0};
_.q.computeActionButtonStyle=function(D){return(D==null?0:D.style)?D.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.q.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.q.onYtToggleButton=function(D){var t,H;this.isLiked=this.systemIcons&&!!((t=D.detail)==null?0:(H=t.actions)==null?0:H.like)};
R9.prototype.onYtToggleButton=R9.prototype.onYtToggleButton;R9.prototype.onButtonTooltipPositionChanged=R9.prototype.onButtonTooltipPositionChanged;R9.prototype.onYtServiceRequestSent=R9.prototype.onYtServiceRequestSent;R9.prototype.onYtNavigate=R9.prototype.onYtNavigate;R9.prototype.onRequestSent=R9.prototype.onRequestSent;R9.prototype.onYtCommentboxDismiss=R9.prototype.onYtCommentboxDismiss;R9.prototype.dataChange=R9.prototype.dataChange;
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],R9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],R9.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],R9.prototype,"voteCount",void 0);_.d([_.M(),_.x("design:type",Object)],R9.prototype,"commentCount",void 0);_.d([_.M(),_.x("design:type",Object)],R9.prototype,"replyThumbnail",void 0);
_.d([_.M(),_.x("design:type",Object)],R9.prototype,"hasCreatorReply",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],R9.prototype,"enableCreationBox",void 0);_.d([_.M({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],R9.prototype,"actionButtonsStyle",void 0);_.d([_.M({computed:"computeReplyButtonBeginning(data)"}),_.x("design:type",Object)],R9.prototype,"replyButtonBeginning",void 0);
_.d([_.M({computed:"computeReplyButtonEnd(data)"}),_.x("design:type",Object)],R9.prototype,"replyButtonEnd",void 0);_.d([_.M(),_.x("design:type",Object)],R9.prototype,"buttonOverrides",void 0);_.d([_.M(),_.x("design:type",Object)],R9.prototype,"replyButtonOverrides",void 0);_.d([_.M(),_.x("design:type",Object)],R9.prototype,"forceIconButton",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],R9.prototype,"useCommentIcon",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],R9.prototype,"modern",void 0);_.d([_.M(),_.x("design:type",Object)],R9.prototype,"buttonTooltipPosition",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],R9.prototype,"systemIcons",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],R9.prototype,"isLiked",void 0);_.d([_.o5("ytd-button-renderer"),_.x("design:type",Object)],R9.prototype,"ytdReplyButtonRenderer",void 0);
_.d([_.o5("#like-button"),_.x("design:type",Object)],R9.prototype,"JSC$15827_ytdLikeToggleButtonRenderer",void 0);_.d([_.o5("#dislike-button"),_.x("design:type",Object)],R9.prototype,"JSC$15827_ytdDislikeToggleButtonRenderer",void 0);_.d([_.o5("#reply-dialog"),_.x("design:type",HTMLElement)],R9.prototype,"replyDialogElement",void 0);_.d([_.o5("#reply-button"),_.x("design:type",HTMLElement)],R9.prototype,"replyButtonElement",void 0);
_.d([_.o5("#reply-button-end"),_.x("design:type",HTMLElement)],R9.prototype,"replyButtonEndElement",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R9.prototype,"dataChange",null);_.d([_.rx("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],R9.prototype,"onYtCommentboxDismiss",null);
_.d([_.rx("yt-service-request-sent-button-renderer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],R9.prototype,"onRequestSent",null);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],R9.prototype,"onYtNavigate",null);
_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],R9.prototype,"onYtServiceRequestSent",null);_.d([_.Os("buttonTooltipPosition"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R9.prototype,"onButtonTooltipPositionChanged",null);
_.d([_.rx("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],R9.prototype,"onYtToggleButton",null);_.d([_.Y({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],R9);
_.p(R9,"ytd-comment-action-buttons-renderer",function(){if(k2m!==void 0)return k2m;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return k2m=D},{mode:1});var cb9;var ur=function(){return _.X.apply(this,arguments)||this};
_.P(ur,_.X);ur.prototype.focus=function(){_.Kg(this.hostElement).querySelector("#commentbox").focus()};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ur.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],ur.prototype,"zeroStepChannelCreationRenderer",void 0);_.d([_.Y({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],ur);
_.p(ur,"ytd-comment-dialog-renderer",function(){if(cb9!==void 0)return cb9;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return cb9=D},{mode:1});var jO3;var WW=function(){var D=_.X.apply(this,arguments)||this;D.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.r("enable_web_delhi_icons")};D.replyButtonOverrides={size:"S",type:"text"};return D};
_.P(WW,_.X);_.q=WW.prototype;_.q.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.q.detached=function(){this.replyBox&&this.replyBox.remove()};
_.q.showReplyDialog=function(D){if(D){var t=this.replyBox;t||(t=document.createElement("ytd-comment-reply-dialog-renderer"),t.id="replybox",_.Kg(this.replyDialogDiv).appendChild(t));t.data=D;this.replyDialogDiv.hidden=!1;t.openDialog()}};
_.q.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.q.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var D,t=_.O((D=this.toolbarSurface)==null?void 0:D.subscribersOnlyDisclaimerSnackbarCommand,_.dj);t&&_.Gf(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:t})}};
_.q.onYtServiceRequestSent=function(D,t){D.stopPropagation();if(t.actions)for(var H=0;H<t.actions.length;H++){var e=_.O(t.actions[H],ZxV);e?this.handleUpdateCommentVoteAction(e):D.target===this.heartButton&&this.toggleHeartState()}};
_.q.handleUpdateCommentVoteAction=function(D){var t;(t=this.toolbarState)!=null&&t.key&&this.ytdReduxBehavior.dispatch(_.LP("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:D.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":D.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.q.toggleHeartState=function(){var D;(D=this.toolbarState)!=null&&D.key&&this.ytdReduxBehavior.dispatch(_.LP("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.ql.Object.defineProperties(WW.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return(((D=this.toolbarState)==null?void 0:D.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(t=this.toolbarData)==null?void 0:t.likeCountLiked:(H=this.toolbarData)==null?void 0:H.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.toolbarSurface)==null?void 0:D.prepareAccountCommand)!==void 0&&!_.r("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D,t=_.O((D=this.toolbarSurface)==null?void 0:D.prepareAccountCommand,_.dj),H,e,V,b,a,w,h,K,N;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((H=this.toolbarSharedData)==null||!H.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((e=this.toolbarState)==null?void 0:e.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:t!=null?t:_.O((V=this.toolbarSurface)==null?void 0:V.likeCommand,_.dj),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:t!=null?t:_.O((b=this.toolbarSurface)==null?void 0:b.unlikeCommand,_.dj),defaultCommand:this.isVisiblyDisabled?_.O((a=this.toolbarSurface)==null?void 0:a.commentDisabledActionCommand,_.dj):void 0,defaultTooltip:(w=this.toolbarData)==null?void 0:w.likeInactiveTooltip,toggledTooltip:(h=this.toolbarData)==null?void 0:h.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(K=this.toolbarData)==null?void 0:K.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(N=this.toolbarSharedData)==null?void 0:N.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D,t=_.O((D=this.toolbarSurface)==null?void 0:D.prepareAccountCommand,_.dj),H,e,V,b,a,w,h,K,N,k;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((H=this.toolbarSharedData)==null||!H.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((e=this.toolbarState)==null?void 0:e.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:t!=null?t:_.O((V=this.toolbarSurface)==null?void 0:V.dislikeCommand,_.dj),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:t!=null?t:_.O((b=this.toolbarSurface)==null?void 0:b.undislikeCommand,_.dj),defaultCommand:this.isVisiblyDisabled?_.O((a=this.toolbarSurface)==null?void 0:a.commentDisabledActionCommand,_.dj):void 0,defaultTooltip:(w=this.toolbarData)==null?void 0:w.dislikeInactiveTooltip,toggledTooltip:(h=this.toolbarData)==null?void 0:
h.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(K=this.toolbarSharedData)==null?void 0:K.dislikeReplyButtonA11y:(N=this.toolbarSharedData)==null?void 0:N.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(k=this.toolbarSharedData)==null?void 0:k.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var D,t,H;if(((D=this.toolbarState)==null?void 0:D.heartState)!==void 0&&((t=this.toolbarState)==null?void 0:t.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((H=this.toolbarState)==null?void 0:H.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var e,V,b,a,w,h,K,N,k,T,c,U,S,L;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(e=this.toolbarData)==null?void 0:e.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((V=this.toolbarState)==null?void 0:V.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((b=this.toolbarState)==null?void 0:b.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((a=this.toolbarState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((w=this.toolbarState)==null?void 0:w.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.O((h=this.toolbarSurface)==null?void 0:h.heartCommand,
_.dj),unheartEndpoint:this.isVisiblyDisabled?void 0:_.O((K=this.toolbarSurface)==null?void 0:K.unheartCommand,_.dj),disabledEndpoint:this.isVisiblyDisabled?_.O((N=this.toolbarSurface)==null?void 0:N.commentDisabledActionCommand,_.dj):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(k=this.toolbarData)==null?void 0:k.heartActiveTooltip,unheartedTooltip:(T=this.toolbarData)==null?void 0:T.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((c=
this.toolbarState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(U=this.toolbarSharedData)==null?void 0:U.unheartButtonA11y:(S=this.toolbarSharedData)==null?void 0:S.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(L=this.toolbarSharedData)==null?void 0:L.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.toolbarSurface)==null||!D.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(D=this.commentStrings)==null?void 0:D.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.O((t=this.toolbarSurface)==null?void 0:t.replyCommand,_.dj),command:this.isVisiblyDisabled?_.O((H=this.toolbarSurface)==null?
void 0:H.commentDisabledActionCommand,_.dj):this.isSubsOnlyCommentsIneligibleUser?_.O((e=this.toolbarSurface)==null?void 0:e.subscribersOnlySnackbarCommand,_.dj):void 0}}}});
WW.prototype.onYtServiceRequestSent=WW.prototype.onYtServiceRequestSent;WW.prototype.hideReplyDialogDiv=WW.prototype.hideReplyDialogDiv;_.d([_.M(),_.x("design:type",Object)],WW.prototype,"commentStrings",void 0);_.d([_.M(),_.x("design:type",Boolean)],WW.prototype,"isReply",void 0);_.d([_.M(),_.x("design:type",Object)],WW.prototype,"toolbarData",void 0);_.d([_.M(),_.x("design:type",Object)],WW.prototype,"toolbarSharedData",void 0);
_.d([_.M(),_.x("design:type",String)],WW.prototype,"toolbarStateKey",void 0);_.d([_.M(),_.x("design:type",String)],WW.prototype,"toolbarSurfaceKey",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],WW.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],WW.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],WW.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.oy),_.x("design:type",Object)],WW.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.o5("#reply-dialog"),_.x("design:type",HTMLElement)],WW.prototype,"replyDialogDiv",void 0);_.d([_.o5("#replybox"),_.x("design:type",Object)],WW.prototype,"replyBox",void 0);_.d([_.o5("ytd-creator-heart-renderer"),_.x("design:type",Object)],WW.prototype,"heartButton",void 0);_.d([_.M({selector:function(D,t){return _.jR(D.entities,"engagementToolbarStateEntityPayload",t)},
selectorArgs:["toolbarStateKey"]}),_.x("design:type",Object)],WW.prototype,"toolbarState",void 0);_.d([_.M({selector:i5X,selectorArgs:["toolbarSurfaceKey"]}),_.x("design:type",Object)],WW.prototype,"toolbarSurface",void 0);_.d([_.M(),_.x("design:type",Object)],WW.prototype,"buttonOverrides",void 0);_.d([_.rx("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WW.prototype,"hideReplyDialogDiv",null);
_.d([_.m("toolbarData","toolbarState"),_.x("design:type",String),_.x("design:paramtypes",[])],WW.prototype,"likeCount",null);_.d([_.m("likeCount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],WW.prototype,"showLikeCount",null);_.d([_.m("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],WW.prototype,"isVisiblyDisabled",null);_.d([_.m("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],WW.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.d([_.m("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],WW.prototype,"isSubsOnlyCommentsEligibleUser",null);_.d([_.m("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],WW.prototype,"hasPrepareAccountCommand",null);_.d([_.m("toolbarData","toolbarState","toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],WW.prototype,"likeToggleButtonRenderer",null);
_.d([_.m("isReply","toolbarData","toolbarState","toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],WW.prototype,"dislikeToggleButtonRenderer",null);_.d([_.m("toolbarData","toolbarState","toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],WW.prototype,"creatorHeartSupportedRenderer",null);_.d([_.m("toolbarSurface"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],WW.prototype,"hasReplyCommand",null);
_.d([_.m("toolbarSurface","commentStrings","isVisiblyDisabled"),_.x("design:type",Object),_.x("design:paramtypes",[])],WW.prototype,"replyButtonRenderer",null);_.d([_.M(),_.x("design:type",Object)],WW.prototype,"replyButtonOverrides",void 0);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],WW.prototype,"onYtServiceRequestSent",null);_.d([_.Y({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],WW);
_.p(WW,"ytd-comment-engagement-bar",function(){if(jO3!==void 0)return jO3;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return jO3=D},{mode:1});var $Vn;var I9=function(){return _.X.apply(this,arguments)||this};
_.P(I9,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],I9.prototype,"data",void 0);_.d([_.Y({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],I9);
_.p(I9,"ytd-comment-inline-thumbnail-renderer",function(){if($Vn!==void 0)return $Vn;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return $Vn=D},{mode:1});var iwn;var QR=function(){return _.X.apply(this,arguments)||this};
_.P(QR,_.X);QR.prototype.onMessageTap=function(){if(this.onTapCommand){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);D&&this.ytdOpenPopupBehavior.openPopup(D)}};
_.ql.Object.defineProperties(QR.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return(D=this.data)==null?void 0:(t=D.button)==null?void 0:(H=t.buttonRenderer)==null?void 0:H.command}}});
_.d([_.C(_.oy),_.x("design:type",Object)],QR.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],QR.prototype,"data",void 0);_.d([_.m("data.button.buttonRenderer.command"),_.x("design:type",Object),_.x("design:paramtypes",[])],QR.prototype,"onTapCommand",null);_.d([_.Y({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],QR);
_.p(QR,"ytd-comment-pause-composer-renderer",function(){if(iwn!==void 0)return iwn;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return iwn=D},{mode:1});var rbw;var Owo;var yR=function(){var D=_.X.apply(this,arguments)||this;D.isOpen=!1;return D};
_.P(yR,_.X);_.q=yR.prototype;_.q.dataChanged=function(){this.isOpen=!1};
_.q.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.q.focus=function(){this.JSC$15857_commentbox.focus()};
_.q.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.q.openDialog=function(){this.isOpen=!0;this.JSC$15857_commentbox.focus();this.JSC$15857_commentbox.maybeHeightChanged()};
yR.prototype.onYtCommentboxDismiss=yR.prototype.onYtCommentboxDismiss;yR.prototype.dataChanged=yR.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yR.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],yR.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],yR.prototype,"isOpen",void 0);_.d([_.o5("#commentbox"),_.x("design:type",Object)],yR.prototype,"JSC$15857_commentbox",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yR.prototype,"dataChanged",null);_.d([_.rx("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],yR.prototype,"onYtCommentboxDismiss",null);_.d([_.Y({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],yR);
_.p(yR,"ytd-comment-reply-dialog-renderer",function(){if(Owo!==void 0)return Owo;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Owo=D},{mode:1});var UVB;var BW=function(){return _.X.apply(this,arguments)||this};
_.P(BW,_.X);_.ql.Object.defineProperties(BW.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var D,t,H=(D=this.data)==null?void 0:(t=D.icon)==null?void 0:t.iconType;return H?"yt-icons:"+H.toLowerCase():null}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],BW.prototype,"data",void 0);_.d([_.M(),_.m("data.icon"),_.x("design:type",Object),_.x("design:paramtypes",[])],BW.prototype,"icon",null);_.d([_.Y({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],BW);
_.p(BW,"ytd-pinned-comment-badge-renderer",function(){if(UVB!==void 0)return UVB;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return UVB=D},{mode:1});var oba;var Pbf={},nba={input:!0,meta:!0,br:!0,link:!0,img:!0},zS=null;Pbf.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(){zS==null&&(zS=document.createElement("tp-yt-paper-tooltip"),zS.offset=8,zS.fitToVisibleBounds=!0)},
onMouseOver_:function(D){if(D=_.xz(D.target,function(V){return V==this||V.getAttribute&&V.getAttribute("shared-tooltip-text")}.bind(this),!0)){var t=D.getAttribute("shared-tooltip-text");
if(t){var H=this,e=null;D!=this&&(D.tagName.toLowerCase()in nba?H=D.parentElement:H=D,D.id&&(e=D.id));this.polymerController.createTooltipIfRequired_();if(zS.parentElement!=H||zS.for!=e)(0,_.cT)(zS).textContent=t,_.Kg(H).appendChild(zS),zS.for=e,zS.animationDelay=this.polymerController.sharedTooltipAnimationDelay,zS.position=this.polymerController.sharedTooltipPosition}}}};var Dc=function(){return _.X.apply(this,arguments)||this};
_.P(Dc,_.X);Dc.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]]"}}}}}};
Dc.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var D;((D=this.data)==null?0:D.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Dc.prototype.colorChanged=function(){var D,t,H,e=(D=this.data)==null?void 0:(t=D.color)==null?void 0:(H=t.basicColorPaletteData)==null?void 0:H.foregroundBodyColor;e&&(this.rgbBadgeColor=_.Ih(e));_.Kg(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Dc.prototype.tooltipChanged=function(){var D;((D=this.data)==null?0:D.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Dc.prototype.tooltipChanged=Dc.prototype.tooltipChanged;Dc.prototype.colorChanged=Dc.prototype.colorChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(Pbf.YtSharedTooltipBehavior),_.x("design:type",Object)],Dc.prototype,"ytSharedTooltipBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Dc.prototype,"data",void 0);
_.d([_.M({value:"#4285F4"}),_.x("design:type",String)],Dc.prototype,"rgbBadgeColor",void 0);_.d([_.Os("data.color"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dc.prototype,"colorChanged",null);_.d([_.Os("data.tooltip"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dc.prototype,"tooltipChanged",null);_.d([_.Y({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Dc);
_.p(Dc,"ytd-sponsor-comment-badge-renderer",function(){if(oba!==void 0)return oba;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return oba=D},{mode:1});var CbQ;var mVn;var tt=function(){return _.X.apply(this,arguments)||this};
_.P(tt,_.X);tt.prototype.computeState=function(D){switch(D==null?void 0:D.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"}};
tt.prototype.updateStateIdentifier=function(D){if(this.viewModel.triStateKey){var t=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.LP("triStateButtonStateEntityPayload",t,{key:t,stateIdentifier:D}))}};
tt.prototype.onClick=function(){var D=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(){D.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){D.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.ql.Object.defineProperties(tt.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 D;return((D=this.data)==null?void 0:D.buttonText)||""}}});
_.d([_.M(),_.x("design:type",Object)],tt.prototype,"viewModel",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],tt.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],tt.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.d([_.M({selector:r43,selectorArgs:["viewModel.triStateKey"]}),_.x("design:type",Object)],tt.prototype,"triStateButtonStateEntity",void 0);
_.d([_.M({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.x("design:type",String)],tt.prototype,"state",void 0);_.d([_.m("viewModel","state"),_.x("design:type",Object),_.x("design:paramtypes",[])],tt.prototype,"data",null);_.d([_.m("data"),_.x("design:type",String),_.x("design:paramtypes",[])],tt.prototype,"buttonText",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],tt);
_.p(tt,"ytd-tri-state-button-view-model",function(){if(mVn!==void 0)return mVn;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return mVn=D},{mode:1});var M5w;var SNa;var Hs=function(){var D=_.X.apply(this,arguments)||this;D.defaultIconToFilled=!_.r("kevlar_fill_comment_chip_icon_killswitch");return D};
_.P(Hs,_.X);Hs.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
Hs.prototype.dataChanged=function(){if(this.data){var D,t;((D=this.data.chipColorPalette)==null?0:D.backgroundColor)&&((t=this.data.chipColorPalette)==null?0:t.foregroundTitleColor)&&_.jZ(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Qk(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Qk(this.data.chipColorPalette.foregroundTitleColor)});var H;((H=this.data)==null?0:H.command)?(_.jZ(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.jZ(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}};
Hs.prototype.onTap=function(){var D;if(this.data&&(D=this.data)!=null&&D.command){var t;this.ytComponentBehavior.resolveCommand((t=this.data)==null?void 0:t.command)}};
Hs.prototype.getIconSize=function(){return _.r("kevlar_fill_comment_chip_icon_killswitch")?24:12};
Hs.prototype.onTap=Hs.prototype.onTap;Hs.prototype.dataChanged=Hs.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Hs.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Hs.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.l9),_.x("design:type",Object)],Hs.prototype,"ironA11yKeysBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Hs.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],Hs.prototype,"basePriceText",void 0);_.d([_.M(),_.x("design:type",Object)],Hs.prototype,"chipIcon",void 0);_.d([_.M(),_.x("design:type",Object)],Hs.prototype,"defaultIconToFilled",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hs.prototype,"dataChanged",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hs.prototype,"onTap",null);
_.d([_.xL({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],Hs);
_.p(Hs,"yt-pdg-comment-chip-renderer",function(){if(SNa===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;M5w===void 0&&(M5w=document.createElement("template"));var e=M5w;H.call(t,e.content.cloneNode(!0),D.content.firstChild);SNa=D}D=SNa;return D},{mode:2});var eu=function(){var D=_.X.apply(this,arguments)||this;D.useSmallAvatars=_.r("small_avatars_for_comments");D.webWatchCompactComments=_.r("web_watch_compact_comments");D.editDialog=null;return D};
_.P(eu,_.X);_.q=eu.prototype;_.q.onShow=function(){_.pl("cmv",void 0,"wn_comments")};
_.q.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"}}}};
_.q.detached=function(){this.editDialog=null;this.expander.reset()};
_.q.updateBackgroundColor=function(){if(this.backgroundColor){var D={"--ytd-comment-paid-background-color":_.Qk(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.jZ(this.hostElement,D)}else _.jZ(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.q.resetExpander=function(){var D;(D=this.expander)==null||D.reset()};
_.q.openEditDialog=function(D){D.dialog&&(this.editDialog=D.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.q.onYtNavigate=function(D){var t=D.detail.endpoint;if(t=_.O(t,_.gq9)||_.O(t,_.JzB))D.stopPropagation(),this.openEditDialog(t)};
_.q.onYtCommentboxDismiss=function(){this.editDialog=null;_.jZ(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.q.onAuthorThumbnailClicked=function(){_.r("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.q.onYtCommentboxResize=function(D){var t;(D==null?0:(t=D.detail)==null?0:t.height)&&_.jZ(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":D.detail.height+"px"})};
_.ql.Object.defineProperties(eu.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 D,t=(D=this.commentEntity)==null?void 0:D.author;return t&&(t.isCreator||t.isVerified||t.isArtist)?{renderer:{authorEndpoint:t.channelPageEndpoint?_.O(t.channelPageEndpoint,_.dj):_.O(t.channelCommand,_.dj),authorText:{runs:[{text:t.displayName}]},color:t.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:t.isArtist?{iconType:"AUDIO_BADGE"}:
t.isVerified?{iconType:t.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:t.isArtist||t.isVerified?t.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var D,t=(D=this.commentEntity)==null?void 0:D.author;return t!=null&&t.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:t.sponsorBadgeUrl}]},tooltip:t.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var D;return _.O((D=this.commentSurfaceEntity)==null?void 0:D.pdgCommentChip,_.G6v)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var D;return this.voiceReplyContainerViewModel&&((D=this.voiceReplyContainerViewModel)==null?void 0:D.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var D;return _.O((D=this.commentSurfaceEntity)==null?void 0:D.voiceReplyContainerViewModel,cR4)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var D;return this.voiceReplyContainerViewModel&&(D=this.voiceReplyContainerViewModel)!=null&&D.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var D,t;return(t=(D=this.commentSurfaceEntity)==null?void 0:D.commentBackgroundColor)!=null?t:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.r("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var D,t;return(((D=this.commentEntity)==null?void 0:(t=D.properties)==null?void 0:t.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var D,t;if(_.r("enable_profile_cards_on_comments")&&((D=this.commentEntity)==null?0:(t=D.author)==null?0:t.profileCardEndpoint)&&this.viewModel.allowProfileCard){var H,e;return _.O((H=this.commentEntity)==null?void 0:(e=H.author)==null?void 0:e.profileCardEndpoint,_.dj)}var V,b;return _.O((V=this.commentEntity)==null?void 0:(b=V.avatar)==null?void 0:b.endpoint,_.dj)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var D,t;if(_.r("enable_profile_cards_on_comments")&&((D=this.commentEntity)==null?0:(t=D.author)==null?0:t.channelPageEndpoint)){var H,e;return _.O((H=this.commentEntity)==null?void 0:(e=H.author)==null?void 0:e.channelPageEndpoint,_.dj)}var V,b;return _.O((V=this.commentEntity)==null?void 0:(b=V.avatar)==null?void 0:b.endpoint,_.dj)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e,V=(D=this.commentEntity)==null?void 0:(t=D.avatar)==null?void 0:(H=t.image)==null?void 0:(e=H.sources)==null?void 0:e[0];return V?{thumbnails:[{url:V.url,width:V.width,height:V.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.commentEntity)==null?0:(t=D.author)==null?0:t.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.commentEntity)==null?void 0:(t=D.author)==null?void 0:t.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.commentEntity)==null?void 0:(t=D.properties)==null?void 0:t.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var D;return _.O((D=this.commentSurfaceEntity)==null?void 0:D.publishedTimeCommand,_.dj)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var D,t;if(((D=this.commentEntity)==null?0:D.translatedContent)&&((t=this.translateButtonState)==null?void 0:t.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var H;if((H=this.voiceReplyContainerViewModel)==null?0:H.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var e,V;return((e=this.commentEntity)==null?void 0:(V=e.properties)==null?void 0:V.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.commentSharedEntity)==null?void 0:(t=D.strings)==null?void 0:t.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.commentSharedEntity)==null?void 0:(t=D.strings)==null?void 0:t.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.commentEntity)==null||!D.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var D,t,H=(t=_.O((D=this.viewModel)==null?void 0:D.translateButton,Th3))!=null?t:{},e,V,b,a,w,h,K,N,k,T,c;return Object.assign({},H,{untoggledStateData:Object.assign({},H.untoggledStateData,{buttonText:(e=this.commentEntity)==null?void 0:(V=e.translateData)==null?void 0:V.text}),togglingStateData:Object.assign({},H.togglingStateData,{buttonText:(b=this.commentSharedEntity)==null?
void 0:(a=b.strings)==null?void 0:a.translatingText}),toggledStateData:Object.assign({},H.toggledStateData,{buttonText:(w=this.commentSharedEntity)==null?void 0:(h=w.strings)==null?void 0:h.seeOriginalText}),transitionCommand:((K=this.commentEntity)==null?0:K.translatedContent)?void 0:_.O((N=this.commentEntity)==null?void 0:(k=N.translateData)==null?void 0:k.translateComment,_.dj),triStateKey:(T=this.commentEntity)==null?void 0:(c=T.properties)==null?void 0:c.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return((t=_.O(_.O((D=this.toolbarSurface)==null?void 0:D.menuCommand,_.dj),Ynn))==null?void 0:(H=t.menu)==null?void 0:H.menuRenderer)||null}}});
eu.prototype.onYtCommentboxResize=eu.prototype.onYtCommentboxResize;eu.prototype.onYtCommentboxDismiss=eu.prototype.onYtCommentboxDismiss;eu.prototype.onYtNavigate=eu.prototype.onYtNavigate;eu.prototype.resetExpander=eu.prototype.resetExpander;eu.prototype.updateBackgroundColor=eu.prototype.updateBackgroundColor;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],eu.prototype,"ytdReduxBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],eu.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.d([_.o5("#author-thumbnail > button"),_.x("design:type",HTMLElement)],eu.prototype,"authorThumbnailAnchor",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("viewModel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eu.prototype,"linked",null);
_.d([_.m("viewModel","linked"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"linkedCommentBadge",null);_.d([_.M({reflectToAttribute:!0}),_.m("viewModel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eu.prototype,"pinned",null);_.d([_.m("viewModel","pinned"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"pinnedCommentBadge",null);
_.d([_.m("commentEntity","commentSharedEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"authorCommentBadge",null);_.d([_.M({reflectToAttribute:!0}),_.m("authorCommentBadge"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"hasAuthorBadge",null);_.d([_.m("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"sponsorCommentBadge",null);
_.d([_.M({reflectToAttribute:!0}),_.m("sponsorCommentBadge"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"hasSponsorBadge",null);_.d([_.m("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"pdgCommentChipRenderer",null);_.d([_.M({reflectToAttribute:!0}),_.m("voiceReplyContainerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"hasVoiceReply",null);
_.d([_.m("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"voiceReplyContainerViewModel",null);_.d([_.m("voiceReplyContainerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"voiceReplyUnavailableText",null);_.d([_.M(),_.x("design:type",Object)],eu.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"viewModel",null);
_.d([_.M({selector:function(D,t){return _.jR(D.entities,"commentSharedEntityPayload",t)},
selectorArgs:["viewModel.sharedKey"]}),_.x("design:type",Object)],eu.prototype,"commentSharedEntity",void 0);_.d([_.M({selector:function(D,t){return _.jR(D.entities,"commentEntityPayload",t)},
selectorArgs:["viewModel.commentKey"]}),_.x("design:type",Object)],eu.prototype,"commentEntity",void 0);_.d([_.M({selector:function(D,t){return _.jR(D.entities,"commentSurfaceEntityPayload",t)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.x("design:type",Object)],eu.prototype,"commentSurfaceEntity",void 0);_.d([_.M({selector:i5X,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.x("design:type",Object)],eu.prototype,"toolbarSurface",void 0);_.d([_.M({selector:r43,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.x("design:type",Object)],eu.prototype,"translateButtonState",void 0);
_.d([_.m("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"backgroundColor",null);_.d([_.M({reflectToAttribute:!0}),_.m("viewModel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eu.prototype,"optimalReadingWidthComments",null);_.d([_.o5("ytd-expander"),_.x("design:type",Object)],eu.prototype,"expander",void 0);
_.d([_.Os("backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eu.prototype,"updateBackgroundColor",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],eu.prototype,"useSmallAvatars",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],eu.prototype,"webWatchCompactComments",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"isReply",null);
_.d([_.m("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"authorThumbnailEndpoint",null);_.d([_.m("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"authorNameEndpoint",null);_.d([_.m("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"authorThumbnail",null);_.d([_.m("commentEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],eu.prototype,"authorTextClass",null);
_.d([_.m("commentEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],eu.prototype,"authorChannelName",null);_.d([_.m("commentEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"publishedTime",null);_.d([_.m("commentSurfaceEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"publishedTimeCommand",null);
_.d([_.m("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"contentText",null);_.d([_.Os("contentText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eu.prototype,"resetExpander",null);_.d([_.m("commentEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eu.prototype,"shouldShowReadMoreInitially",null);
_.d([_.m("commentSharedEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],eu.prototype,"expandText",null);_.d([_.m("commentSharedEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],eu.prototype,"collapseText",null);_.d([_.m("commentEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],eu.prototype,"shouldShowTranslateButton",null);
_.d([_.m("commentEntity","commentSharedEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"translateButton",null);_.d([_.m("toolbarSurface"),_.x("design:type",Object),_.x("design:paramtypes",[])],eu.prototype,"overflowMenuRenderer",null);_.d([_.M(),_.x("design:type",Object)],eu.prototype,"editDialog",void 0);_.d([_.o5("ytd-comment-dialog-renderer"),_.x("design:type",Object)],eu.prototype,"editCommentDialogContainer",void 0);
_.d([_.o5("ytd-comment-reply-dialog-renderer"),_.x("design:type",Object)],eu.prototype,"editReplyDialogContainer",void 0);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],eu.prototype,"onYtNavigate",null);_.d([_.rx("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],eu.prototype,"onYtCommentboxDismiss",null);
_.d([_.rx("yt-commentbox-resize"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],eu.prototype,"onYtCommentboxResize",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-comment-view-model"})],eu);
_.p(eu,"ytd-comment-view-model",function(){if(CbQ!==void 0)return CbQ;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return CbQ=D},{mode:_.Kz("kevlar_poly_si_batch_j025")?1:2});_.hB(_.l(function(D){var t={};return _.G("yt-sub-thread",{class:_.jQ("ytSubThreadHost",(t.ytSubThreadHasButton=D.isButton,t))},_.G("div",{class:"ytSubThreadThreadline"},_.G("div",{class:"ytSubThreadConnection"}),_.G("div",{class:"ytSubThreadContinuation"}),_.G("div",{class:"ytSubThreadShadow"})),_.G("div",{class:"ytSubThreadSubThreadContent"},D.children))},"yc"),"yt-sub-thread",{props:{isButton:_.ij}});var Vg=function(){var D=_.X.apply(this,arguments)||this;D.modern=_.r("web_modern_buttons");D.commentThreadingEnabled=_.r("web_delhi_comment_threads");D.isWatchGrid=_.r("kevlar_watch_grid");D.buttonOverrides=D.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};D.JSC$15903_spinnerEl=null;return D};
_.P(Vg,_.X);_.q=Vg.prototype;_.q.configureContinuationPathMap=function(){return _.r("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.q.shouldShowExpandedThreads=function(D,t){return this.commentThreadingEnabled&&t&&(D==null?void 0:D.length)>0};
_.q.shouldShowCollapsedThreads=function(D,t){return this.commentThreadingEnabled&&!t&&D};
_.q.computeThreadRenderer=function(D){return _.O(D,sIn)};
_.q.computeIsContinuationItem=function(D){return!!this.computeContinuationItemRenderer(D)};
_.q.computeButtonRenderer=function(D){return _.O(D,_.aj)};
_.q.computeContinuationItemRenderer=function(D){return _.O(D,_.HX)};
_.q.computeShowButton=function(D){var t;return!((t=this.computeContinuationItemRenderer(D))==null||!t.button)};
_.q.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]]"}}}}}};
_.q.attached=function(){this.isShowRepliesVisible=!0};
_.q.dataChanged=function(){var D=this.expanderContents;D&&(D.hidden=!0);this.isLoading=!1};
_.q.endsInContinuation=function(D){return!!D&&D.length>0&&!!this.computeContinuationItemRenderer(D[D.length-1])};
_.q.computeShouldShowHideRepliesButton=function(D,t){return!D&&t};
_.q.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.q.isLoadingChanged=function(){this.isLoading&&!this.JSC$15903_spinnerEl&&(this.JSC$15903_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Kg(this.expanderContents).appendChild(this.JSC$15903_spinnerEl));this.JSC$15903_spinnerEl&&(this.JSC$15903_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var D;(D=this.contents)==null||D.classList.remove("reloading")}};
_.q.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var D=_.O(this.data.viewReplies,_.aj);D&&this.ytRendererBehavior.logExplicitClick(D);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.q.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var D=_.O(this.data.hideReplies,_.aj);D&&this.ytRendererBehavior.logExplicitClick(D);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.q.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var D=_.Kg(this.hostElement).querySelector("#expander-contents");D&&(D.hidden=this.isShowRepliesVisible)}};
_.q.computeAlign=function(){if(this.modern){var D;return!((D=this.data)==null?0:D.viewRepliesCreatorThumbnail)}};
_.ql.Object.defineProperties(Vg.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var D,t;return this.endsInContinuation((D=this.data)==null?void 0:D.contents)||this.commentThreadingEnabled&&this.endsInContinuation((t=this.data)==null?void 0:t.subThreads)}}});
Vg.prototype.isShowMoreChanged=Vg.prototype.isShowMoreChanged;Vg.prototype.isLoadingChanged=Vg.prototype.isLoadingChanged;Vg.prototype.triggerFirstContinuation=Vg.prototype.triggerFirstContinuation;Vg.prototype.dataChanged=Vg.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Vg.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.T_),_.x("design:type",Object)],Vg.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Vg.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Vg.prototype,"modern",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Vg.prototype,"commentThreadingEnabled",void 0);_.d([_.M(),_.x("design:type",Boolean)],Vg.prototype,"expanded",void 0);
_.d([_.M(),_.x("design:type",Function)],Vg.prototype,"toggleExpanded",void 0);_.d([_.M(),_.x("design:type",Array)],Vg.prototype,"teasers",void 0);_.d([_.M(),_.x("design:type",Boolean)],Vg.prototype,"isLoading",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],Vg.prototype,"isShowRepliesVisible",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Vg.prototype,"useNewFormatting",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Vg.prototype,"isWatchGrid",void 0);
_.d([_.M(),_.x("design:type",Object)],Vg.prototype,"buttonOverrides",void 0);_.d([_.o5("#expander-contents"),_.x("design:type",HTMLElement)],Vg.prototype,"expanderContents",void 0);_.d([_.o5("ytd-continuation-item-renderer"),_.x("design:type",Object)],Vg.prototype,"continuationItemRenderer",void 0);_.d([_.o5("#contents"),_.x("design:type",HTMLElement)],Vg.prototype,"contents",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vg.prototype,"dataChanged",null);_.d([_.m("data.contents","data.subThreads.*"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Vg.prototype,"hasContinuation",null);_.d([_.rx("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vg.prototype,"triggerFirstContinuation",null);
_.d([_.Os("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vg.prototype,"isLoadingChanged",null);_.d([_.Os("isShowRepliesVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vg.prototype,"isShowMoreChanged",null);_.d([_.Y({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Vg);
_.p(Vg,"ytd-comment-replies-renderer",function(){if(rbw!==void 0)return rbw;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[teasers]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread class="style-scope ytd-comment-replies-renderer">\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </div>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n    <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, expanded)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="[[computeIsContinuationItem(item)]]" class="style-scope ytd-comment-replies-renderer">\n      <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread is-button="" class="style-scope ytd-comment-replies-renderer">\n      <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </yt-sub-thread>\n  </template>\n</div>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return rbw=D},{mode:1});var Xi3;var bw=function(){var D=_.X.apply(this,arguments)||this;D.isOpen=!1;D.commentDialog=null;D.useSmallAvatars=_.r("small_avatars_for_comments");D.useSmallAvatarsEngagementPanelOnly=_.r("small_avatars_for_comments_ep");D.placeholderFocusListener=null;D.hasOpenedDialog=!1;D.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return D};
_.P(bw,_.X);_.q=bw.prototype;_.q.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]]"}}}}}};
_.q.ready=function(){var D=this,t=_.Kg(this.hostElement).querySelector("#placeholder-area"),H=_.Kg(this.hostElement).querySelector("#simplebox-placeholder"),e=function(V){V.stopPropagation();V instanceof KeyboardEvent&&V.type==="keypress"&&V.keyCode!==13&&V.keyCode!==32||D.openDialog()};
this.placeholderFocusListener=e;H.addEventListener("focus",this.placeholderFocusListener);t.addEventListener("tap",e);t.addEventListener("keypress",e)};
_.q.maybeRemoveFocusEventListener=function(){var D;(D=this.data)!=null&&D.prepareAccountEndpoint&&!_.r("web_comments_simplebox_modal_focus_on_tap_ks")&&(D=_.Kg(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(D.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.q.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.q.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.r("web_comment_simplebox_resolve_polymer_command_ks")?_.$P.instance.resolveCommand(this.data.prepareAccountEndpoint):_.rj(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);D&&this.ytdOpenPopupBehavior.openPopup(D);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.Kg(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.q.onYtCommentboxDismiss=function(D){D.stopPropagation();this.isOpen=!1};
_.q.onCreateCommentAction=function(D){this.get("createCommentAction.contents",D)&&(this.isOpen=!1)};
_.q.computeCommentDialog=function(D){return{placeholderText:D.placeholderText,authorThumbnail:D.authorThumbnail,submitButton:D.submitButton,imageButton:D.imageButton,cancelButton:D.cancelButton,emojiButton:D.emojiButton,emojis:D.emojis,emojiPicker:D.emojiPicker,aadcGuidelinesStateEntityKey:D.aadcGuidelinesStateEntityKey,openAadcDialog:D.openAadcDialog,unicodeEmojisUrl:D.unicodeEmojisUrl}};
_.q.onHideIdentityChip=function(D){_.O(D,bxn)&&this.set("data.placeholderText",_.O(D,bxn).placeholderText)};
bw.prototype.onYtCommentboxDismiss=bw.prototype.onYtCommentboxDismiss;bw.prototype.dataChanged=bw.prototype.dataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],bw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],bw.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],bw.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],bw.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],bw.prototype,"isOpen",void 0);_.d([_.M(),_.x("design:type",Object)],bw.prototype,"commentDialog",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],bw.prototype,"engagementPanel",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],bw.prototype,"useSmallAvatars",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],bw.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],bw.prototype,"enableCreationBox",void 0);_.d([_.M(),_.x("design:type",Boolean)],bw.prototype,"showCreateDialog",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bw.prototype,"dataChanged",null);_.d([_.rx("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],bw.prototype,"onYtCommentboxDismiss",null);_.d([_.Y({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],bw);
_.p(bw,"ytd-comment-simplebox-renderer",function(){if(Xi3!==void 0)return Xi3;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Xi3=D},{mode:1});var fd4;_.AB("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var q$=function(){var D=_.X.apply(this,arguments)||this;D.addHoverEffect=_.r("swatcheroo_comments_hover_effect");D.useSmallAvatars=_.r("small_avatars_for_comments");D.scrollingEnabled=_.r("web_comment_threading_scroll_on_collapse");D.threadHovered=!1;D.expanded=!1;D.removed=!1;D.teasers=[];D.actionMap=D.configureActionMap();D.toggleExpanded=function(){D.expanded=!D.expanded;!D.expanded&&D.scrollingEnabled&&_.ET(D.hostElement,"yt-scroll-to-comment-element",[D.commentElement])};
return D};
_.P(q$,_.X);_.q=q$.prototype;_.q.configureActionMap=function(){return _.r("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.q.createCommentReplyAction=function(D){D=_.O(D,ef3);if(D!=null&&D.contents){var t=D.replyToCommentId,H=D.parentCommentId,e,V=(e=this.commentViewModel)==null?void 0:e.commentId;(V===t||V===H&&!t)&&this.attachReply(D.contents)}};
_.q.attachReply=function(D){var t;((t=this.data)==null?0:t.replies)?(t=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+t+".continuationItemRenderer")?t===0?this.push("teasers",D):this.splice("data.replies.commentRepliesRenderer.subThreads",t,0,D):this.push("data.replies.commentRepliesRenderer.subThreads",D)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[D],viewReplies:{buttonRenderer:{text:_.wO(_.OT("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.q.onAppendContinuationItemsActionFinished=function(){this.teasers.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.A6(this.teasers))),this.set("teasers",[]))};
_.q.removeCommentAction=function(D){D=_.O(D,aDf);var t=D==null?void 0:D.commentId,H;t&&((H=this.commentViewModel)==null?void 0:H.commentId)===t&&this.maybeRemoveComment(D.actionResult)};
_.q.banAuthorAction=function(D){D=_.O(D,te9);var t=D==null?void 0:D.commentId,H;t&&((H=this.commentViewModel)==null?void 0:H.commentId)===t&&this.maybeRemoveComment(D.actionResult)};
_.q.hideReportedCommentAction=function(D){D=_.O(D,rR3);var t=D==null?void 0:D.commentId,H;t&&((H=this.commentViewModel)==null?void 0:H.commentId)===t&&this.maybeRemoveComment(D.actionResult)};
_.q.maybeRemoveComment=function(D){D&&D.status==="STATUS_SUCCEEDED"&&(this.feedbackText=D.feedbackText||_.wO("Reply removed"),this.removed=!0)};
_.q.onTap=function(D){if(this.addHoverEffect&&!this.engagementPanel&&!_.ed(_.bK(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;((t=window.getSelection())==null?0:t.toString().length)||_.rj({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.q.attached=function(){var D=this;this.isSubThread&&(this.expanded=!0);var t;(t=this.commentThreadHitbox)==null||t.addEventListener("mouseover",function(){D.threadHovered=!0});
var H;(H=this.commentThreadHitbox)==null||H.addEventListener("mouseout",function(){D.threadHovered=!1});
var e;(e=this.commentThreadHitbox)==null||e.addEventListener("click",function(){D.maybeToggleExpanded()})};
_.q.maybeToggleExpanded=function(){var D,t,H,e=(D=this.data)==null?void 0:(t=D.replies)==null?void 0:(H=t.commentRepliesRenderer)==null?void 0:H.subThreads,V;(e==null?void 0:e.length)===1&&((V=_.O(e[0],_.HX))==null?0:V.button)&&this.expanded||this.toggleExpanded()};
_.ql.Object.defineProperties(q$.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)!=null&&D.commentViewModel)return _.O(this.data.commentViewModel,ka3)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return _.r("web_delhi_comment_threads")&&!!((D=this.data)==null?0:(t=D.replies)==null?0:(H=t.commentRepliesRenderer)==null?0:H.subThreads)}}});
q$.prototype.onTap=q$.prototype.onTap;q$.prototype.onAppendContinuationItemsActionFinished=q$.prototype.onAppendContinuationItemsActionFinished;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],q$.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],q$.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],q$.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],q$.prototype,"addHoverEffect",void 0);_.d([_.M(),_.x("design:type",Object)],q$.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],q$.prototype,"useSmallAvatars",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],q$.prototype,"scrollingEnabled",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],q$.prototype,"isSubThread",void 0);
_.d([_.o5(".thread-hitbox"),_.x("design:type",HTMLElement)],q$.prototype,"commentThreadHitbox",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],q$.prototype,"threadHovered",void 0);_.d([_.o5("#comment"),_.x("design:type",HTMLElement)],q$.prototype,"commentElement",void 0);_.d([_.M(),_.x("design:type",Object)],q$.prototype,"expanded",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],q$.prototype,"removed",void 0);
_.d([_.M(),_.x("design:type",Object)],q$.prototype,"feedbackText",void 0);_.d([_.M(),_.x("design:type",Array)],q$.prototype,"teasers",void 0);_.d([_.rx("yt-append-continuation-items-action-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],q$.prototype,"onAppendContinuationItemsActionFinished",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],q$.prototype,"commentViewModel",null);
_.d([_.m("data.replies"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],q$.prototype,"hasSubThreading",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],q$.prototype,"engagementPanel",void 0);_.d([_.rx("tap"),_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],q$.prototype,"onTap",null);_.d([_.Y({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],q$);
_.p(q$,"ytd-comment-thread-renderer",function(){if(fd4!==void 0)return fd4;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer data="[[data.replies.commentRepliesRenderer]]" expanded="[[expanded]]" teasers="[[teasers]]" toggle-expanded="[[toggleExpanded]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return fd4=D},{mode:_.Kz("kevlar_poly_si_batch_j025")?1:2});var LSf;var FG=function(){var D=_.X.apply(this,arguments)||this;D.compactHeader=_.r("web_watch_compact_comments_header");D.hidePanelButton=!1;D.isPostSchedulingEnabled=_.r("enable_post_scheduling");D.hasFinishedStamping=!1;D.JSC$15926_handleOpenPostCommentDialogActionAfterStamp=!1;D.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return D};
_.P(FG,_.X);_.q=FG.prototype;
_.q.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"}}}};
_.q.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.q.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15926_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.q.onYtServiceRequestSent=function(D,t){if(!_.r("kevlar_command_handler")&&t.actions)for(D=0;D<t.actions.length;D++){var H=t.actions[D];_.O(H,n19)&&_.Kg(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.O(H,n19))}};
_.q.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var D;if(this.getPrefilledBackstagePostDialog((D=this.data)==null?void 0:D.actions)){_.Kg(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var t=_.Kg(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;t&&_.Vi(this,function(){t.focus();t.openDialog&&t.openDialog()})}}else this.hasActionsChange=!0};
_.q.computeIsBackstage=function(D){return D};
_.q.onYtCommentboxDismiss=function(){_.Kg(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.q.removePrefilledDialog=function(D){if(D==null?0:D.actions){for(var t=D.actions.length-1;t>=0;t--){var H=void 0;((H=_.O(D.actions[t],Lvn))==null?0:H.dialog)&&delete D.actions[t]}this.set("data",void 0);this.set("data",D)}};
_.q.getPrefilledBackstagePostDialog=function(D){if(D)for(var t=0;t<D.length;t++){var H=D[t],e=void 0;if((e=_.O(H,Lvn))==null?0:e.dialog)return _.O(H,Lvn).dialog}return null};
_.q.computeBackstagePostDialog=function(D){return D&&(this.getPrefilledBackstagePostDialog(D.actions)||D.createRenderer)};
_.q.dataChanged=function(){if(this.data){var D=this.data.customEmojis,t=this.data.unicodeEmojisUrl;_.ND.clear();t&&_.PWf(_.ND,t);D&&_.ND.load(D)}};
_.q.handleSignalActionOpenPostCommentDialogAction=function(){var D=_.Kg(this.hostElement).querySelector("ytd-comment-simplebox-renderer");D?D.openDialog():this.JSC$15926_handleOpenPostCommentDialogActionAfterStamp=!0};
_.q.onPostHeaderTap=function(){var D;((D=this.data)==null?0:D.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.ql.Object.defineProperties(FG.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.r("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e,V,b,a;return!this.hidePanelButton&&_.r("kevlar_watch_comments_panel_button")&&((a=_.O((D=this.data)==null?void 0:(t=D.sortMenu)==null?void 0:(H=t.sortFilterSubMenuRenderer)==null?void 0:(e=H.subMenuItems)==null?void 0:(V=e[0])==null?void 0:(b=V.serviceEndpoint)==null?void 0:b.commandMetadata,_.i1))==null?void 0:a.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.OT("MINIPLAYER_EXPAND_LABEL"),text:_.H7(_.OT("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
FG.prototype.dataChanged=FG.prototype.dataChanged;FG.prototype.onYtCommentboxDismiss=FG.prototype.onYtCommentboxDismiss;FG.prototype.observePrefilledBackstagePostDialog=FG.prototype.observePrefilledBackstagePostDialog;FG.prototype.onYtServiceRequestSent=FG.prototype.onYtServiceRequestSent;FG.prototype.onStampFinished=FG.prototype.onStampFinished;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],FG.prototype,"ytComponentBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],FG.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],FG.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],FG.prototype,"compactHeader",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],FG.prototype,"engagementPanel",void 0);_.d([_.M(),_.x("design:type",Object)],FG.prototype,"hidePanelButton",void 0);_.d([_.M({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.x("design:type",Boolean)],FG.prototype,"isBackstage",void 0);_.d([_.M({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.x("design:type",Object)],FG.prototype,"backstagePostDialog",void 0);
_.d([_.M(),_.x("design:type",Object)],FG.prototype,"isPostSchedulingEnabled",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data","showCommentsPanelButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],FG.prototype,"useSpaceBetween",null);_.d([_.M({reflectToAttribute:!0}),_.m("data","hidePanelButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],FG.prototype,"showCommentsPanelButton",null);
_.d([_.m("data","showCommentsPanelButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],FG.prototype,"commentsPanelButtonData",null);_.d([_.rx("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FG.prototype,"onStampFinished",null);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],FG.prototype,"onYtServiceRequestSent",null);
_.d([_.Os("data.actions"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FG.prototype,"observePrefilledBackstagePostDialog",null);_.d([_.rx("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],FG.prototype,"onYtCommentboxDismiss",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FG.prototype,"dataChanged",null);
_.d([_.Y({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],FG);
_.p(FG,"ytd-comments-header-renderer",function(){if(LSf!==void 0)return LSf;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" on-click="onPostHeaderTap" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return LSf=D},{mode:1});var Abn;var a_=function(){return _.X.apply(this,arguments)||this};
_.P(a_,_.X);_.d([_.M(),_.x("design:type",Object)],a_.prototype,"data",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.d([_.Y({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],a_);
_.p(a_,"ytd-destination-button-renderer",function(){if(Abn!==void 0)return Abn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Abn=D},{mode:1});var gbf;var wG=function(){var D=_.X.apply(this,arguments)||this;D.isRichGrid=!1;D.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return D};
_.P(wG,_.X);_.q=wG.prototype;_.q.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.q.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.q.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.q.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var D;if((D=this.data)==null||!D.isExpanded){D=this.hostElement.clientWidth;var t;if(D&&(t=this.data)!=null&&t.destinationButtons){t=Math.floor((D+4)/214);D=this.data.destinationButtons.length;var H=Math.ceil(D/t);this.fullyVisibleRows=D%t===1&&H===2?1:Math.min(H,2);this.isShowMoreVisible=this.fullyVisibleRows<H}}}};
_.q.updateRichGridDestinationButtonsVisibility=function(){var D,t;if(this.isRichGrid&&((D=this.data)==null||!D.isExpanded)&&(t=this.data)!=null&&t.destinationButtons){D=this.richGridItemsPerRow+1;t=this.data.destinationButtons.length;var H=Math.ceil(t/D);this.fullyVisibleRows=t%D===1&&H===2?1:Math.min(H,2);this.isShowMoreVisible=this.fullyVisibleRows<H}};
_.q.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
wG.prototype.updateRichGridDestinationButtonsVisibility=wG.prototype.updateRichGridDestinationButtonsVisibility;_.d([_.M(),_.x("design:type",Object)],wG.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Number)],wG.prototype,"fullyVisibleRows",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],wG.prototype,"isShowMoreVisible",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],wG.prototype,"isRichGrid",void 0);
_.d([_.M({selector:_.lG,value:0}),_.x("design:type",Number)],wG.prototype,"richGridItemsPerRow",void 0);_.d([_.M(),_.x("design:type",Object)],wG.prototype,"gridStateActionMap",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],wG.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],wG.prototype,"ytdReduxBehavior",void 0);_.d([_.Os("data","richGridItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wG.prototype,"updateRichGridDestinationButtonsVisibility",null);_.d([_.Y({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],wG);
_.p(wG,"ytd-destination-shelf-renderer",function(){if(gbf!==void 0)return gbf;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return gbf=D},{mode:1});var Jba;var Zc=function(){return _.X.apply(this,arguments)||this};
_.P(Zc,_.X);Zc.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"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Zc.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Zc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Zc.prototype,"data",void 0);_.d([_.Y({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],Zc);
_.p(Zc,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(Jba!==void 0)return Jba;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Jba=D},{mode:1});var YN9;var sj=function(){var D=_.X.apply(this,arguments)||this;D.disableAnimation=!1;D.isSlimlineSurvey=!1;D.isSlimlineSurveyFollowUp=!1;D.isShortsStyle=!1;return D};
_.P(sj,_.X);sj.prototype.onTap=function(D){D.preventDefault();this.data&&_.Gf(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.ql.Object.defineProperties(sj.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 D,t,H,e,V;return((D=this.data)==null?0:D.checked)?(t=this.data)==null?void 0:(H=t.onStateIcon)==null?void 0:H.iconType:(e=this.data)==null?void 0:(V=e.defaultStateIcon)==null?void 0:V.iconType}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],sj.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],sj.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],sj.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],sj.prototype,"disableAnimation",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sj.prototype,"isSlimlineSurvey",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sj.prototype,"isSlimlineSurveyFollowUp",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sj.prototype,"isShortsStyle",void 0);_.d([_.m("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sj.prototype,"isAnimatedIcon",null);
_.d([_.m("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.x("design:type",Number),_.x("design:paramtypes",[])],sj.prototype,"iconSize",null);_.d([_.m("isShortsStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sj.prototype,"isDarkTheme",null);_.d([_.m("data.checked"),_.x("design:type",Object),_.x("design:paramtypes",[])],sj.prototype,"icon",null);_.d([_.Y({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],sj);
_.p(sj,"ytd-rating-survey-option-renderer",function(){if(YN9!==void 0)return YN9;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return YN9=D},{mode:2});var ld4;var ht=function(){var D=_.X.apply(this,arguments)||this;D.firstResponseText=null;D.lastResponseText=null;D.selectedNonStarOption=null;D.hideOptions=!1;D.hideUndoButton=!0;D.disableAnimation=!1;D.showResponseRangeText=!1;D.selectedRatingIndex=-1;D.isSlimlineSurvey=!1;D.isSlimlineSurveyFollowUp=!1;D.isShortsStyle=!1;D.slimlineSurveyRatingSelectedIndex=-1;return D};
_.P(ht,_.X);_.q=ht.prototype;_.q.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.q.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.q.onOptionChange=function(D,t){var H=this;D=t.onStateIcon&&t.defaultStateIcon&&t.onStateIcon.iconType===t.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(a,w){a.responseText===t.responseText?H.isSlimlineSurvey?(H.selectedRatingIndex=w,H.ytdReduxBehavior.dispatch(CH6(w))):(H.setSurveyOptionValue(w,!0,"checked"),H.setSurveyOptionValue(w,!0,"selected")):(H.setSurveyOptionValue(w,!1,"checked"),H.setSurveyOptionValue(w,
!1,"selected"))});
else if(D)this.selectedNonStarOption=t,this.hideOptions=!0;else{var e=this.ytRendererBehavior.getSimpleString(t.responseText),V=!0;this.getOptionRenderers().forEach(function(a,w){H.setSurveyOptionValue(w,V,"checked");H.setSurveyOptionValue(w,!1,"selected");H.ytRendererBehavior.getSimpleString(a.responseText)===e&&(V=!1,H.setSurveyOptionValue(w,!0,"selected"))})}D=t.responseEndpoint;
var b;t.followUpCommand&&(b=_.O(t.followUpCommand,fh9));this.isSlimlineSurvey?(this.resetComponent(),_.ET(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.ET(this.hostElement,"ytd-inline-survey-rating-select-action",[D,b])};
_.q.showSelectedOption=function(){var D=this;_.Jy.addJob(function(){var t=D.getOptionRenderers()[D.slimlineSurveyRatingSelectedIndex];D.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),t)},8,100)};
_.q.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(D){var t;return(t=_.O(D,ACf))!=null?t:{}}):[]};
_.q.onUndoClick=function(){this.resetComponent();_.ET(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.q.setSurveyOptionValue=function(D,t,H){this.notifyPath("data.ratings."+D+".ratingSurveyOptionRenderer."+H);this.set("data.ratings."+D+".ratingSurveyOptionRenderer."+H,t)};
_.q.resetComponent=function(){var D=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var t=this.getOptionRenderers(),H,e;this.firstResponseText=(e=(H=t[0])==null?void 0:H.responseText)!=null?e:null;var V,b;this.lastResponseText=(b=(V=t[t.length-1])==null?void 0:V.responseText)!=null?b:null;t.forEach(function(a,w){D.setSurveyOptionValue(w,!1,"checked");D.setSurveyOptionValue(w,!1,"selected")})};
_.ql.Object.defineProperties(ht.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
ht.prototype.onOptionChange=ht.prototype.onOptionChange;ht.prototype.dataChanged=ht.prototype.dataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],ht.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ht.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],ht.prototype,"firstResponseText",void 0);_.d([_.M(),_.x("design:type",Object)],ht.prototype,"lastResponseText",void 0);_.d([_.M(),_.x("design:type",Object)],ht.prototype,"selectedNonStarOption",void 0);_.d([_.M(),_.x("design:type",Object)],ht.prototype,"hideOptions",void 0);_.d([_.M(),_.x("design:type",Object)],ht.prototype,"hideUndoButton",void 0);_.d([_.M(),_.x("design:type",Object)],ht.prototype,"disableAnimation",void 0);
_.d([_.M(),_.x("design:type",Object)],ht.prototype,"showResponseRangeText",void 0);_.d([_.M(),_.x("design:type",Object)],ht.prototype,"selectedRatingIndex",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ht.prototype,"isSlimlineSurvey",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ht.prototype,"isSlimlineSurveyFollowUp",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ht.prototype,"isShortsStyle",void 0);_.d([_.M({selector:function(D){return D.ui.slimlineSurveyRatingSelectedIndex}}),
_.x("design:type",Object)],ht.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.d([_.m("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ht.prototype,"isSingleSelect",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ht.prototype,"dataChanged",null);
_.d([_.rx("ytd-rating-survey-option-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],ht.prototype,"onOptionChange",null);_.d([_.Y({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],ht);
_.p(ht,"ytd-rating-survey-renderer",function(){if(ld4!==void 0)return ld4;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ld4=D},{mode:1});var vb3;var pi9;var dVn;var aoV=(cm.FIRSTDAYOFWEEK+1)%7,xV3=function(D,t,H,e){var V="";if(e.selection&&VAD(e.selection))NI(D,e.selection)&&(V+=" selected");else if(e.selection&&buA(e.selection)){var b=e.selection.selectionState||"START_DATE";NI(D,e.selection.start)&&(V+=" period-start ",b==="START_DATE"&&(V+="selected"));NI(D,e.selection.end)&&(V+=" period-end ",b==="END_DATE"&&(V+="selected"));kG(D,e.selection.start)||kG(e.selection.end,D)||(V+=" highlighted")}if(kG(t,e.start)||kG(e.end,t))V+=" disabled";e.circleToday&&
NI(t,H)&&(V+=" today");return V};var Gw=function(){return _.X.apply(this,arguments)||this};
_.P(Gw,_.X);_.q=Gw.prototype;_.q.attached=function(){var D=this;_.Vi(this,function(){D.JSC$15960_calendarMain.scrollHeight>0&&(D.calendarConfig.selection?D.scrollToDate(q8$(D.calendarConfig.selection)):D.scrollToDate(D.calendarConfig.end))})};
_.q.updateSelection=function(D){D=wSV(Object.assign({},this.calendarConfig,{selection:D}),xV3);this.splice.apply(this,["renderData.months",0,D.length].concat(_.A6(D)))};
_.q.scrollToDate=function(D){this.renderData&&(D=ZuK(D,this.renderData),D!==void 0&&this.JSC$15960_calendarMain.scrollToIndex(D))};
_.q.scrollToNextMonth=function(){this.JSC$15960_calendarMain.scrollToIndex(this.JSC$15960_calendarMain.firstVisibleIndex+1)};
_.q.scrollToPrevMonth=function(){this.JSC$15960_calendarMain.firstVisibleIndex===0&&this.JSC$15960_calendarMain.scrollTo(0,0);this.JSC$15960_calendarMain.scrollToIndex(this.JSC$15960_calendarMain.firstVisibleIndex-1)};
_.q.handleDayClick=function(D){_.ET(this.hostElement,"ytd-calendar-date-clicked",[D.model.day.date])};
_.q.handleDayMouseDown=function(D){D.preventDefault();_.ET(this.hostElement,"ytd-calendar-date-mousedown",[D.model.day.date])};
_.q.handleDayMouseUp=function(D){_.ET(this.hostElement,"ytd-calendar-date-mouseup",[D.model.day.date])};
_.q.handleDayMouseEnter=function(D){D.preventDefault();_.ET(this.hostElement,"ytd-calendar-date-mouseenter",[D.model.day.date])};
_.q.handleDayMouseLeave=function(D){_.ET(this.hostElement,"ytd-calendar-date-mouseleave",[D.model.day.date])};
_.ql.Object.defineProperties(Gw.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var D=this.calendarConfig,t=xV3;t=t===void 0?xV3:t;for(var H=[],e=0;e<7;e++)H.push(cm.NARROWWEEKDAYS[(e+aoV)%7]);return{months:wSV(D,t),daysOfWeekLabel:H}}}});
_.d([_.M(),_.x("design:type",Object)],Gw.prototype,"calendarConfig",void 0);_.d([_.o5("#calendar-main"),_.x("design:type",Object)],Gw.prototype,"JSC$15960_calendarMain",void 0);_.d([_.m("calendarConfig"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gw.prototype,"renderData",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],Gw);
_.p(Gw,"ytd-scrollable-calendar",function(){if(dVn!==void 0)return dVn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return dVn=D},{mode:2});var R34;var u3a;var Ej=function(){var D=_.X.apply(this,arguments)||this;D.hideCharCounter=!1;D.hideLabel=!1;D.noLabelFloat=!1;D.autoValidate=!0;D.invalid=!1;D.disabled=!1;D.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return D};
_.P(Ej,_.X);_.q=Ej.prototype;_.q.reset=function(D){this.value=D&&this.data?this.data.value=D:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.q.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.q.focusTextInput=function(){this.input.focus()};
_.q.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()};
_.q.valueChanged=function(){var D,t;if(((D=this.data)==null?0:D.value)||((t=this.data)==null?void 0:t.value)==="")this.value=this.data.value;else{var H;((H=this.data)==null?void 0:H.value)!==void 0||this.value||(this.value="")}};
_.q.computeLabel=function(D,t){return t?"":_.eo(D)};
_.q.computeAriaLabel=function(D,t){return t?_.eo(D):""};
_.q.computeErrorMessage=function(D,t,H,e){!D&&t?D=H||this.strings.REQUIRED_LABEL:(D=_.eo(e),D=_.hT(D,"&")?"document"in _.VA?EvB(D):KnQ(D):D);return D};
_.q.computeType=function(D){return D==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.q.onTextValueChanged=function(D){this.value=D.detail.value;var t;(t=this.onValueChanged)==null||t.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.q.handleUpdateTextInputFormFieldRendererCommand=function(D){(D=_.O(D,Hvf))&&this.data&&this.data.id===D.id&&(D.invalid!==void 0&&(this.invalid=D.invalid),D.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",D.invalidValueErrorMessage))};
_.q.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("value-changed",this.value))};
_.q.updateInvalidFromBinding=function(D){this.invalid=D.detail.value};
_.ql.Object.defineProperties(Ej.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var D;return!((D=this.data)==null||!D.isMultiline)}}});
Ej.prototype.valueChangedForBinding=Ej.prototype.valueChangedForBinding;Ej.prototype.valueChanged=Ej.prototype.valueChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Ej.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Ej.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Ej.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],Ej.prototype,"value",void 0);_.d([_.M(),_.x("design:type",String)],Ej.prototype,"pattern",void 0);_.d([_.M(),_.x("design:type",String)],Ej.prototype,"errorMessage",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],Ej.prototype,"componentStyle",void 0);_.d([_.M(),_.x("design:type",Object)],Ej.prototype,"hideCharCounter",void 0);
_.d([_.M(),_.x("design:type",Object)],Ej.prototype,"hideLabel",void 0);_.d([_.M(),_.x("design:type",Object)],Ej.prototype,"noLabelFloat",void 0);_.d([_.M(),_.x("design:type",Function)],Ej.prototype,"onValueChanged",void 0);_.d([_.M(),_.x("design:type",Boolean)],Ej.prototype,"isMultilineOverride",void 0);_.d([_.M(),_.x("design:type",Object)],Ej.prototype,"autoValidate",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ej.prototype,"invalid",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ej.prototype,"disabled",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ej.prototype,"enableOverlayTheme",void 0);_.d([_.M({value:{REQUIRED_LABEL:_.OT("REQUIRED_LABEL",void 0,"Required")}}),_.x("design:type",Object)],Ej.prototype,"strings",void 0);_.d([_.o5("#input"),_.x("design:type",Object)],Ej.prototype,"input",void 0);
_.d([_.m("data","isMultilineOverride"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ej.prototype,"isMultiline",null);_.d([_.mx("data.value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ej.prototype,"valueChanged",null);_.d([_.Os("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ej.prototype,"valueChangedForBinding",null);_.d([_.xL({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Ej);
_.p(Ej,"yt-text-input-form-field-renderer",function(){if(u3a===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;R34===void 0&&(R34=document.createElement("template"));var e=R34;H.call(t,e.content.cloneNode(!0),D.content.firstChild);u3a=D}D=u3a;return D},{mode:2});var KB=function(){var D=_.X.apply(this,arguments)||this;D.data=void 0;D.selectionState="START_DATE";D.isStartDateInvalid=!1;D.isEndDateInvalid=!1;D.autoapply=!1;D.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 D};
_.P(KB,_.X);_.q=KB.prototype;_.q.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"}}}}};
_.q.focus=function(){this.startDateInput.focus()};
_.q.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:TX(this.data.selection.start),end:TX(this.data.selection.end)})};
_.q.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.q.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.xv(this.selectionState)}};
_.q.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.q.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.q.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.q.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var D=this.calendar.calendarConfig,t=D.end;D=hyT({start:D.start,end:this.endDate||t},this.startDateInput.value||"");this.isStartDateInvalid=!D.isValid;D.isValid&&(D=D.value,this.selection=this.endDate?{start:D,end:this.endDate}:D,this.calendar.scrollToDate(D));this.updateInvalidState()}};
_.q.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var D=this.calendar.calendarConfig,t=D.start;D=hyT({start:this.startDate||t,end:D.end},this.endDateInput.value||"");this.isEndDateInvalid=!D.isValid;D.isValid&&(D=D.value,this.selection={start:this.startDate,end:D},this.calendar.scrollToDate(D));this.updateInvalidState()}};
_.q.handleCalendarDateClicked=function(D){var t=this.selection&&q8$(this.selection),H=this.selection&&FrR(this.selection);t&&!kG(D,t)&&this.selectionState==="END_DATE"?(this.selection={start:t,end:D},this.selectionState="START_DATE"):(H&&!kG(H,D)?this.selection={start:D,end:H}:this.selection=D,this.selectionState="END_DATE")};
_.q.handleCalendarDateMouseDown=function(D){this.selection&&!VAD(this.selection)&&(this.dragPivot=NI(D,this.selection.start)?this.selection.end:NI(D,this.selection.end)?this.selection.start:D)};
_.q.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.q.handleCalendarDateMouseEnter=function(D){this.dragPivot&&(this.selection={start:function(t,H){return kG(t,H)?t:H}(this.dragPivot,D),
end:function(t,H){return kG(t,H)?H:t}(this.dragPivot,D)},this.dragPivot||(this.selectionState="START_DATE"))};
_.q.handleCalendarDateMouseLeave=function(){};
_.q.handleCalendarSubmitDateRange=function(){this.selection&&!VAD(this.selection)&&_.ET(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.q.updateInvalidState=function(){var D=function(t,H){H?t.setAttribute("invalid",""):t.removeAttribute("invalid")};
D(this.startDateInput,this.isStartDateInvalid);D(this.endDateInput,this.isEndDateInvalid)};
_.q.updateDateStrings=function(){this.selection&&(VAD(this.selection)?eyA(this.selection):(eyA(this.selection.start),eyA(this.selection.end)))};
_.q.updateCalendarSelection=function(D){this.calendar.updateSelection(Object.assign({},D,{selectionState:this.selectionState}))};
_.q.updateIsStartDateInvalidFromBinding=function(D){this.isStartDateInvalid=D.detail.value};
_.q.updateIsEndDateInvalidFromBinding=function(D){this.isEndDateInvalid=D.detail.value};
_.q.updateStartDateStringFromBinding=function(){};
_.q.updateEndDateStringFromBinding=function(){};
_.ql.Object.defineProperties(KB.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:TX(this.data.dateRangeStart),end:TX(this.data.dateRangeEnd),selection:{start:TX(this.data.selection.start),end:TX(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&q8$(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&FrR(this.selection)}}});
KB.prototype.resetTextboxes=KB.prototype.resetTextboxes;KB.prototype.observeSelection=KB.prototype.observeSelection;KB.prototype.dataChanged=KB.prototype.dataChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],KB.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.o5("#calendar"),_.x("design:type",Object)],KB.prototype,"calendar",void 0);
_.d([_.o5("#start-date"),_.x("design:type",Object)],KB.prototype,"startDateInput",void 0);_.d([_.o5("#end-date"),_.x("design:type",Object)],KB.prototype,"endDateInput",void 0);_.d([_.M(),_.x("design:type",Object)],KB.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],KB.prototype,"selection",void 0);_.d([_.M(),_.x("design:type",String)],KB.prototype,"selectionState",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],KB.prototype,"calendarConfig",null);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],KB.prototype,"errorMessage",null);_.d([_.m("selection"),_.x("design:type",Object),_.x("design:paramtypes",[])],KB.prototype,"startDate",null);_.d([_.m("selection"),_.x("design:type",Object),_.x("design:paramtypes",[])],KB.prototype,"endDate",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KB.prototype,"dataChanged",null);
_.d([_.Os("selection","selectionState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KB.prototype,"observeSelection",null);_.d([_.Os("selectionState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KB.prototype,"resetTextboxes",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],KB);
_.p(KB,"ytd-date-period-picker-renderer",function(){if(pi9!==void 0)return pi9;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return pi9=D},{mode:1});var N$=function(){var D=_.X.apply(this,arguments)||this;var t={};D.actionMap=(t["ytd-date-period-picker-apply"]="handleDateRangeUpdated",t);return D};
_.P(N$,_.X);N$.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
N$.prototype.handleDateRangeUpdated=function(){};
_.d([_.M(),_.x("design:type",Object)],N$.prototype,"data",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],N$.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],N$.prototype,"rendererstamperBehavior",void 0);_.d([_.Y({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],N$);
_.p(N$,"ytd-report-history-section-header-renderer",function(){if(vb3!==void 0)return vb3;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return vb3=D},{mode:1});var WSB;var Idv;var QOa;var kW=function(){return _.X.apply(this,arguments)||this};
_.P(kW,_.X);_.ql.Object.defineProperties(kW.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?0:(t=D.icon)==null?0:t.iconType)?_.cc(this.data.icon.iconType):""}}});
_.d([_.M(),_.x("design:type",Object)],kW.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",String),_.x("design:paramtypes",[])],kW.prototype,"icon",null);_.d([_.Y({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],kW);
_.p(kW,"ytd-report-history-table-text-cell-renderer",function(){if(QOa!==void 0)return QOa;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return QOa=D},{mode:1});var Tw=function(){return _.X.apply(this,arguments)||this};
_.P(Tw,_.X);Tw.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Tw.prototype,"data",void 0);_.d([_.Y({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Tw);
_.p(Tw,"ytd-report-history-table-reason-cell-renderer",function(){if(Idv!==void 0)return Idv;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Idv=D},{mode:1});var cs=function(){return _.X.apply(this,arguments)||this};
_.P(cs,_.X);cs.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"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],cs.prototype,"rendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],cs.prototype,"data",void 0);_.d([_.Y({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],cs);
_.p(cs,"ytd-report-history-table-cell-renderer",function(){if(WSB!==void 0)return WSB;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
return WSB=D},{mode:1});var ybm;var ju=function(){var D=_.X.apply(this,arguments)||this;D.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 D};
_.P(ju,_.X);ju.prototype.onDataChanged=function(){var D;if((D=this.data)==null?0:D.style)this.componentStyle=this.getStyleName(this.data.style)};
ju.prototype.getCellForColumn=function(D){return this.cells.find(function(t){var H;return((H=_.O(t==null?void 0:t.cell,Yyw)||_.O(t==null?void 0:t.cell,JC6))==null?void 0:H.columnId)===D.type})};
ju.prototype.getClassForColumn=function(D){switch(D){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
ju.prototype.getStyleName=function(D){switch(D){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.ql.Object.defineProperties(ju.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.cells)||[]).map(function(t){return _.O(t,gIv)})}}});
ju.prototype.onDataChanged=ju.prototype.onDataChanged;_.d([_.M(),_.x("design:type",Object)],ju.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Array)],ju.prototype,"columnRenderData",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],ju.prototype,"componentStyle",void 0);_.d([_.m("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],ju.prototype,"cells",null);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ju.prototype,"onDataChanged",null);_.d([_.Y({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],ju);
_.p(ju,"ytd-report-history-table-row-renderer",function(){if(ybm!==void 0)return ybm;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ybm=D},{mode:1});var B0V;var z3Q;var Ge3={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},Ey3={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var $W=function(){return _.X.apply(this,arguments)||this};
_.P($W,_.X);$W.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"}}}}}};
$W.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.ql.Object.defineProperties($W.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.columns)?cHA(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return ke8(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var D=this.tableSpec,t=Ge3;t=t===void 0?Ey3:t;t=TQR(D.columnDimensions,D.columnsToShow||[],t);D=0;t=_.F(t);for(var H=t.next();!H.done;H=t.next())H=H.value,D+=H.minWidth+H.paddingLeft+H.paddingRight;return D}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.d([_.C(_.T_),_.x("design:type",Object)],$W.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],$W.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$W.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],$W.prototype,"tableSpec",null);_.d([_.m("tableSpec"),_.x("design:type",Array),_.x("design:paramtypes",[])],$W.prototype,"columnRenderData",null);
_.d([_.m("tableSpec"),_.x("design:type",Number),_.x("design:paramtypes",[])],$W.prototype,"totalMinWidth",null);_.d([_.m("totalMinWidth"),_.x("design:type",String),_.x("design:paramtypes",[])],$W.prototype,"tableWidthStyle",null);_.d([_.Y({is:"ytd-table-renderer",disableElementRegistration:!0})],$W);
_.p($W,"ytd-table-renderer",function(){if(z3Q!==void 0)return z3Q;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return z3Q=D},{mode:1});var iw=function(){return _.X.apply(this,arguments)||this};
_.P(iw,_.X);iw.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}}}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],iw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],iw.prototype,"data",void 0);_.d([_.Y({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],iw);
_.p(iw,"ytd-report-reason-history-modal-renderer",function(){if(B0V!==void 0)return B0V;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return B0V=D},{mode:1});var D0o;var tDn;var H1B;var rG=function(){return _.X.apply(this,arguments)||this};
_.P(rG,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],rG.prototype,"data",void 0);_.d([_.Y({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],rG);
_.p(rG,"ytd-profile-column-stats-entry-renderer",function(){if(H1B!==void 0)return H1B;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return H1B=D},{mode:1});var eBQ;var Oj=function(){return _.X.apply(this,arguments)||this};
_.P(Oj,_.X);Oj.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Oj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Oj.prototype,"data",void 0);_.d([_.Y({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],Oj);
_.p(Oj,"ytd-profile-column-stats-renderer",function(){if(eBQ!==void 0)return eBQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return eBQ=D},{mode:1});var VDn;var Uj=function(){return _.X.apply(this,arguments)||this};
_.P(Uj,_.X);_.ql.Object.defineProperties(Uj.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.useThumbnailSize)return 80;var t,H;D=(t=this.data)==null?void 0:(H=t.thumbnail)==null?void 0:H.thumbnails;var e;return D&&((e=D[0])==null?void 0:e.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.useThumbnailSize)return 80;var t,H;D=(t=this.data)==null?void 0:(H=t.thumbnail)==null?void 0:H.thumbnails;var e;return D&&((e=D[0])==null?void 0:e.height)||80}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Uj.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],Uj.prototype,"componentStyle",void 0);_.d([_.m("data.useThumbnailSize"),_.x("design:type",Object),_.x("design:paramtypes",[])],Uj.prototype,"thumbnailWidth",null);
_.d([_.m("data.useThumbnailSize"),_.x("design:type",Object),_.x("design:paramtypes",[])],Uj.prototype,"thumbnailHeight",null);_.d([_.Y({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Uj);
_.p(Uj,"ytd-profile-column-user-info-renderer",function(){if(VDn!==void 0)return VDn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return VDn=D},{mode:1});var o_=function(){return _.X.apply(this,arguments)||this};
_.P(o_,_.X);o_.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]]"}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],o_.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],o_.prototype,"componentStyle",void 0);_.d([_.Y({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],o_);
_.p(o_,"ytd-profile-column-renderer",function(){if(tDn!==void 0)return tDn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return tDn=D},{mode:1});var Ps=function(){var D=_.X.apply(this,arguments)||this;D.componentStyle="NON_CENTERED_PROFILE";return D};
_.P(Ps,_.X);Ps.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Ps.prototype.getIcon=function(D){return D?"settings:"+D.toLowerCase():null};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ps.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ps.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ps.prototype,"data",void 0);_.d([_.Y({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Ps);
_.p(Ps,"ytd-page-introduction-renderer",function(){if(D0o!==void 0)return D0o;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return D0o=D},{mode:1});var b14;var nB=function(){return _.X.apply(this,arguments)||this};
_.P(nB,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],nB.prototype,"data",void 0);_.d([_.Y({is:"ytd-report-description-renderer",disableElementRegistration:!0})],nB);
_.p(nB,"ytd-report-description-renderer",function(){if(b14!==void 0)return b14;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return b14=D},{mode:1});var qwQ;var F9f;var CB=function(){return _.X.apply(this,arguments)||this};
_.P(CB,_.X);CB.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],CB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],CB.prototype,"data",void 0);_.d([_.Y({is:"ytd-video-report-renderer",disableElementRegistration:!0})],CB);
_.p(CB,"ytd-video-report-renderer",function(){if(F9f!==void 0)return F9f;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return F9f=D},{mode:1});var aAm;_.AB("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.AB("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var m5=function(){return _.X.apply(this,arguments)||this};
_.P(m5,_.X);m5.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]]"}}}}}};
m5.prototype.computeMessageStyle=function(D){return D};
m5.prototype.computeButtonOverride=function(D){var t;if((D==null?0:(t=D.style)==null?0:t.value)&&D.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],m5.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],m5.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],m5.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],m5.prototype,"shelf",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],m5.prototype,"panel",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.x("design:type",Boolean)],m5.prototype,"componentStyle",void 0);_.d([_.M({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],m5.prototype,"buttonOverride",void 0);_.d([_.Y({is:"ytd-message-renderer",disableElementRegistration:!0})],m5);
_.p(m5,"ytd-message-renderer",function(){if(aAm!==void 0)return aAm;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return aAm=D},{mode:1});var M$=function(){return _.X.apply(this,arguments)||this};
_.P(M$,_.X);M$.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"}}}};
M$.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
M$.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.ql.Object.defineProperties(M$.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var D,t;return!!(((D=this.data)==null?0:D.header)&&((t=this.data)==null?0:t.table))}}});
M$.prototype.onRequestError=M$.prototype.onRequestError;_.d([_.C(_.T_),_.x("design:type",Object)],M$.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],M$.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],M$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],M$.prototype,"data",void 0);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],M$.prototype,"isUnifiedReportHistory",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],M$.prototype,"onRequestError",null);_.d([_.Y({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],M$);
_.p(M$,"ytd-report-history-section-renderer",function(){if(qwQ!==void 0)return qwQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return qwQ=D},{mode:1});var wC3;var Su=function(){var D=_.X.apply(this,arguments)||this;D.answerExpanded=!1;return D};
_.P(Su,_.X);Su.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Su.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Su.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Su.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Su.prototype,"answerExpanded",void 0);_.d([_.Y({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],Su);
_.p(Su,"ytd-handles-claiming-faq-renderer",function(){if(wC3!==void 0)return wC3;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return wC3=D},{mode:1});var Z1V;var s8o=function(){return _.X.apply(this,arguments)||this};
_.P(s8o,_.X);_.d([_.M(),_.x("design:type",Object)],s8o.prototype,"data",void 0);_.d([_.Y({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],s8o);
_.p(s8o,"ytd-handles-claiming-faq-section-renderer",function(){if(Z1V!==void 0)return Z1V;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Z1V=D},{mode:1});var hBn;var XG=function(){var D=_.X.apply(this,arguments)||this;D.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";D.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";D.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";D.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";D.leftSquiggly=D.leftSquigglyLight;D.rightSquiggly=D.rightSquigglyLight;
D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};D.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return D};
_.P(XG,_.X);_.q=XG.prototype;_.q.updateLeftSquigglyStyle=function(){_.jZ(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.q.updateRightSquigglyStyle=function(){_.jZ(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.q.ready=function(){var D=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(D)};
_.q.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.set("isDarkTheme",D),D?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.q.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
XG.prototype.updateRightSquigglyStyle=XG.prototype.updateRightSquigglyStyle;XG.prototype.updateLeftSquigglyStyle=XG.prototype.updateLeftSquigglyStyle;_.d([_.M(),_.x("design:type",Object)],XG.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],XG.prototype,"isDarkTheme",void 0);_.d([_.M(),_.x("design:type",String)],XG.prototype,"leftSquiggly",void 0);_.d([_.M(),_.x("design:type",String)],XG.prototype,"rightSquiggly",void 0);
_.d([_.Os("leftSquiggly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XG.prototype,"updateLeftSquigglyStyle",null);_.d([_.Os("rightSquiggly"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XG.prototype,"updateRightSquigglyStyle",null);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],XG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],XG.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],XG.prototype,"actionButtonOverride",void 0);_.d([_.Y({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],XG);
_.p(XG,"ytd-handles-claiming-header-renderer",function(){if(hBn!==void 0)return hBn;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return hBn=D},{mode:1});var Gnm;var fB=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};D.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";D.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";D.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";D.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
D.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";D.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";D.image0SquigglyBackground=D.image0LightSquigglyBackground;D.image1SquigglyBackground=D.image1LightSquigglyBackground;D.image3SquigglyBackground=D.image3LightSquigglyBackground;return D};
_.P(fB,_.X);_.q=fB.prototype;_.q.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.q.onDataChanged=function(){this.updateTitleAndImages()};
_.q.onThemeChanged=function(){this.updateTitleAndImages()};
_.q.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D)};
_.q.updateImage0SquigglyBackground=function(){_.jZ(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.q.updateImage1SquigglyBackground=function(){_.jZ(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.q.updateImage3SquigglyBackground=function(){_.jZ(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.q.updateTitleAndImages=function(){var D,t;((D=this.data)==null?void 0:(t=D.titleImages)==null?void 0:t.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
fB.prototype.updateImage3SquigglyBackground=fB.prototype.updateImage3SquigglyBackground;fB.prototype.updateImage1SquigglyBackground=fB.prototype.updateImage1SquigglyBackground;fB.prototype.updateImage0SquigglyBackground=fB.prototype.updateImage0SquigglyBackground;fB.prototype.onThemeChanged=fB.prototype.onThemeChanged;fB.prototype.onDataChanged=fB.prototype.onDataChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],fB.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],fB.prototype,"isDarkTheme",void 0);_.d([_.M(),_.x("design:type",Object)],fB.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],fB.prototype,"title0",void 0);_.d([_.M(),_.x("design:type",Object)],fB.prototype,"title1",void 0);_.d([_.M(),_.x("design:type",Object)],fB.prototype,"title2",void 0);_.d([_.M(),_.x("design:type",Object)],fB.prototype,"title3",void 0);
_.d([_.M(),_.x("design:type",Object)],fB.prototype,"title4",void 0);_.d([_.M(),_.x("design:type",Object)],fB.prototype,"image0",void 0);_.d([_.M(),_.x("design:type",Object)],fB.prototype,"image1",void 0);_.d([_.M(),_.x("design:type",Object)],fB.prototype,"image2",void 0);_.d([_.M(),_.x("design:type",Object)],fB.prototype,"image3",void 0);_.d([_.M(),_.x("design:type",Object)],fB.prototype,"image4",void 0);_.d([_.M(),_.x("design:type",String)],fB.prototype,"image0SquigglyBackground",void 0);
_.d([_.M(),_.x("design:type",String)],fB.prototype,"image1SquigglyBackground",void 0);_.d([_.M(),_.x("design:type",String)],fB.prototype,"image3SquigglyBackground",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fB.prototype,"onDataChanged",null);_.d([_.Os("isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fB.prototype,"onThemeChanged",null);
_.d([_.Os("image0SquigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fB.prototype,"updateImage0SquigglyBackground",null);_.d([_.Os("image1SquigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fB.prototype,"updateImage1SquigglyBackground",null);
_.d([_.Os("image3SquigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fB.prototype,"updateImage3SquigglyBackground",null);_.d([_.Y({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],fB);
_.p(fB,"ytd-handles-claiming-title-images-section-renderer",function(){if(Gnm!==void 0)return Gnm;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Gnm=D},{mode:1});var EuQ;var LB=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.P(LB,_.X);LB.prototype.ready=function(){var D=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(D)};
LB.prototype.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D)};
LB.prototype.onCopyButtonClick=function(){var D=this,t,H,e;return _.Z(function(V){return(t=D.data)!=null&&t.primaryChannelUrl?V.yield(navigator.clipboard.writeText(((H=D.data)==null?0:H.encodedChannelUrl)?D.data.encodedChannelUrl:"https://"+_.eo((e=D.data)==null?void 0:e.primaryChannelUrl)),0):V.jumpTo(0)})};
_.d([_.M(),_.x("design:type",Object)],LB.prototype,"data",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],LB.prototype,"ytComponentBehavior",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],LB.prototype,"isDarkTheme",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],LB.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Y({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],LB);
_.p(LB,"ytd-handles-claiming-update-social-renderer",function(){if(EuQ!==void 0)return EuQ;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return EuQ=D},{mode:1});var K9o;var At=function(){var D=_.X.apply(this,arguments)||this;D.JSC$16054_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";D.JSC$16054_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};D.squigglyBackground=D.JSC$16054_squigglyBackgroundLight;return D};
_.P(At,_.X);At.prototype.updateSquigglyBackgroundStyle=function(){_.jZ(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
At.prototype.ready=function(){var D=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",D);this.squigglyBackground=D?this.JSC$16054_squigglyBackgroundDark:this.JSC$16054_squigglyBackgroundLight};
At.prototype.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.set("isDarkTheme",D),this.squigglyBackground=D?this.JSC$16054_squigglyBackgroundDark:this.JSC$16054_squigglyBackgroundLight)};
At.prototype.updateSquigglyBackgroundStyle=At.prototype.updateSquigglyBackgroundStyle;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],At.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],At.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],At.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],At.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],At.prototype,"isDarkTheme",void 0);_.d([_.M(),_.x("design:type",String)],At.prototype,"squigglyBackground",void 0);_.d([_.Os("squigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],At.prototype,"updateSquigglyBackgroundStyle",null);_.d([_.Y({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],At);
_.p(At,"ytd-handles-claiming-vanity-info-renderer",function(){if(K9o!==void 0)return K9o;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return K9o=D},{mode:1});var NPv;var gG=function(){var D=_.X.apply(this,arguments)||this;D.JSC$16057_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";D.JSC$16057_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";D.squigglyBackground=D.JSC$16057_squigglyBackgroundLight;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.P(gG,_.X);_.q=gG.prototype;_.q.ready=function(){var D=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(D)};
_.q.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.set("isDarkTheme",D),this.squigglyBackground=D?this.JSC$16057_squigglyBackgroundDark:this.JSC$16057_squigglyBackgroundLight)};
_.q.updateSquigglyBackgroundStyle=function(){_.jZ(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.q.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.q.detached=function(){this.stop()};
_.q.stop=function(){this.playerElement.stop()};
_.q.setupVideoPlayer=function(){var D=this,t,H;return _.Z(function(e){t=D.data.videoId;H="http://i1.ytimg.com/vi/"+t+"/maxresdefault.jpg";D.playerElement.loadVideoWithPlayerVars({video_id:t,iurlhq:H});_.n2(e)})};
gG.prototype.onDataChanged=gG.prototype.onDataChanged;gG.prototype.updateSquigglyBackgroundStyle=gG.prototype.updateSquigglyBackgroundStyle;_.d([_.M({value:!1}),_.x("design:type",Boolean)],gG.prototype,"isDarkTheme",void 0);_.d([_.M(),_.x("design:type",String)],gG.prototype,"squigglyBackground",void 0);_.d([_.o5("#player"),_.x("design:type",Object)],gG.prototype,"playerElement",void 0);_.d([_.M(),_.x("design:type",Object)],gG.prototype,"data",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],gG.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Os("squigglyBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gG.prototype,"updateSquigglyBackgroundStyle",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gG.prototype,"onDataChanged",null);
_.d([_.Y({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],gG);
_.p(gG,"ytd-handles-claiming-video-item-renderer",function(){if(NPv!==void 0)return NPv;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return NPv=D},{mode:1});var kno;var YW=function(){var D=_.ng.apply(this,arguments)||this;D.dragging=!1;D.dragMouseStart=0;D.dragOffsetStart=0;D.containerWidthDiff=0;D.boundPrevClick=function(){D.set("offset",Jt(D,D.offset-(D.scrollDistance||320)))};
D.boundNextClick=function(){D.set("offset",Jt(D,D.offset+(D.scrollDistance||320)))};
D.boundScrollContainerMouseDown=function(t){D.dragMouseStart=t.clientX;D.dragOffsetStart=D.offset;D.dragging=!0};
D.boundScrollContainerDrag=function(t){D.dragging&&D.set("offset",Jt(D,D.dragOffsetStart-(t.clientX-D.dragMouseStart)))};
D.boundMouseUp=function(){D.onMouseUp()};
D.boundWheelScroll=function(t){var H=0;Math.abs(t.deltaX)>=Math.abs(t.deltaY)?H=t.deltaX:t.shiftKey&&(H=t.deltaY);H!==0&&(D.offset+=H,t.stopPropagation(),t.preventDefault())};
D.boundChipCloudChipScrollIntoView=function(t){(t=t.detail)&&D.scrollChipIntoView(t)};
return D};
_.P(YW,_.ng);YW.prototype.attached=function(){var D=_.Kg(this.hostElement).querySelector("#scroll-container");D.addEventListener("wheel",this.boundWheelScroll);D.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);D.style.touchAction="pan-y";D.addEventListener("pointerdown",this.boundScrollContainerMouseDown);D.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
YW.prototype.detached=function(){var D=_.Kg(this.hostElement).querySelector("#scroll-container");D.removeEventListener("wheel",this.boundWheelScroll);D.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);D.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);D.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
YW.prototype.reset=function(){this.set("offset",0);_.Vi(this,this.setContainerWidthDiff);_.Vi(this,this.setButtonsState)};
var Jt=function(D,t){return Math.min(Math.max(t,0),D.containerWidthDiff)};
_.q=YW.prototype;_.q.onMouseUp=function(){this.dragging=!1};
_.q.transformContainer=function(){this.offset=Jt(this,this.offset);var D=_.YC("HTML_DIR")==="rtl"?"":"-";_.Kg(this.hostElement).querySelector("#chips").style.transform="translateX("+D+this.offset+"px)";_.Vi(this,this.setButtonsState)};
_.q.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Jt(this,this.offset));this.atStart=this.offset<=0};
_.q.setContainerWidthDiff=function(){var D=_.Kg(this.hostElement).querySelector("#scroll-container"),t=_.Kg(this.hostElement).querySelector("#chips");D&&t&&(this.containerWidthDiff=t.clientWidth-D.clientWidth)};
_.q.scrollChipIntoView=function(D){var t=_.Kg(this.hostElement).querySelector("#scroll-container");if(t){var H=this.atStart?0:106,e=this.atEnd?0:106;D.offsetLeft<this.offset+H?this.offset=Jt(this,D.offsetLeft-H):D.offsetLeft+D.clientWidth>this.offset+t.clientWidth-e&&(this.offset=Jt(this,D.offsetLeft+D.clientWidth+e-t.clientWidth))}};
YW.prototype.transformContainer=YW.prototype.transformContainer;_.d([_.M({value:0}),_.x("design:type",Number)],YW.prototype,"offset",void 0);_.d([_.M({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],YW.prototype,"atStart",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],YW.prototype,"atEnd",void 0);_.d([_.M(),_.x("design:type",Number)],YW.prototype,"scrollDistance",void 0);
_.d([_.Os("offset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],YW.prototype,"transformContainer",null);_.d([_.Cg()],YW);var TPf;var cSv;var i13=_.l(function(D){var t=D.data;D=_.F(_.KR(!1,void 0,"icHmSe"));var H=D.next().value,e=D.next().value;D={};D=_.jQ("ytChipShapeChip",function(){a:switch(t==null?void 0:t().state){case 0:var b="ytChipShapeActive";break a;case 1:b="ytChipShapeDisabled";break a;default:b="ytChipShapeInactive"}return b},function(){var b=t().type===1||t().type===2,a=t();
return b||a!=null&&a.startIcon?a==null||!a.startIcon||a!=null&&a.text?b?"ytChipShapeEndIconPadding":(a==null?0:a.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(D.ytChipShapeFocused=function(){var b;
return H()&&((b=t())==null?void 0:b.state)!==1},D));
var V=function(b){if((t==null?void 0:t().state)!==1){var a,w;(w=(a=t()).onTap)==null||w.call(a,b)}};
return _.G("chip-shape",{class:"ytChipShapeHost","on:focusin":_.$X(function(){var b=_.qS().resolve(_.by(_.S8));if(b){e(b.isKeyBoardInUse());var a,w;(w=(a=t()).onFocusIn)==null||w.call(a)}return!1}),
"on:focusout":_.$X(function(){e(!1);return!1})},_.G(j8v,{shouldWrapInButton:function(){return t().type!==2},
selected:function(){return t().state===0},
onClick:V,isDropdown:function(){return t().type===1},
accessibilityLabel:function(){return t().type===1?void 0:t().accessibilityLabel}},_.G("div",{class:D},_.G(_.E,{cond:function(){return t().startIcon},
then:function(){return _.G(_.U7,{icon:function(){var b;return(b=t())==null?void 0:b.startIcon},
className:function(){return t().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return t().text},_.G($04,{shape:t,
onClick:V}),_.G(_.fE,{model:{borderRadius:"8px"}}))))},"zc");
i13.idomCompat=!0;var j8v=_.l(function(D){var t=_.$X(function(H){D.onClick(H);return!1});
return _.G(_.E,{cond:D.shouldWrapInButton,then:function(){return _.G("button",{class:"ytChipShapeButtonReset","on:click":t,role:function(){return D.isDropdown()?"combobox":"tab"},
"aria-label":D.accessibilityLabel,"aria-selected":D.selected},D.children)},
else:function(){return D.children}})},"Ac"),$04=_.l(function(D){var t=D.shape;
var H=D.onClick;var e=_.$X(function(V){H(V);return!1});
return _.G(_.CY,null,_.G(_.oD,{when:function(){return t().type===1}},function(){return _.G(_.U7,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.G(_.oD,{when:function(){return t().type===2}},function(){return _.G("button",{class:"ytChipShapeButtonReset",
"on:click":e},_.G(_.U7,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.G(_.oD,{when:function(){return t().type===0}},function(){return _.G(_.FH,null)}))},"Bc");_.hB(i13,"chip-shape",{props:{data:_.ij}});var lw=function(){var D=_.X.apply(this,arguments)||this;D.disableDeselectEvent=!1;D.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return D};
_.P(lw,_.X);_.q=lw.prototype;_.q.onSelectChipCommand=function(D){if(!this.selected&&this.data&&(D=_.O(D,RfB),D.targetId&&D.targetId===this.data.targetId))this.onTap()};
_.q.onFilterChipTransformCommand=function(D){if(!this.selected&&this.data){var t;(D=(t=_.O(D,J2m))==null?void 0:t.chipUniqueId)&&D===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.q.dataChanged=function(){var D=this;_.Vi(this,function(){D.data&&D.data.isSelected&&!D.selected&&(D.scrollChipIntoView(),D.onTap())})};
_.q.computeChipStyle=function(D){return D!=null?D:"STYLE_DEFAULT"};
_.q.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.ET(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.ET(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.q.onFocus=function(){var D=_.qS().resolve(_.by(_.S8));D&&D.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.q.scrollChipIntoView=function(){_.Gf(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.ql.Object.defineProperties(lw.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return UED({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
lw.prototype.onFocus=lw.prototype.onFocus;lw.prototype.onTap=lw.prototype.onTap;lw.prototype.dataChanged=lw.prototype.dataChanged;_.d([_.C(_.dJ),_.x("design:type",Object)],lw.prototype,"ironButtonState",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],lw.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],lw.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.l9),_.x("design:type",Object)],lw.prototype,"ironA11yKeysBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],lw.prototype,"disableDeselectEvent",void 0);_.d([_.M(),_.x("design:type",Object)],lw.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data.icon"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],lw.prototype,"hasIcon",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data.uniqueId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],lw.prototype,"isGnomeChip",null);_.d([_.M({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.x("design:type",String)],lw.prototype,"chipStyle",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],lw.prototype,"selected",void 0);
_.d([_.m("data","selected"),_.x("design:type",Object),_.x("design:paramtypes",[])],lw.prototype,"chipShapeData",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lw.prototype,"dataChanged",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lw.prototype,"onTap",null);
_.d([_.rx("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lw.prototype,"onFocus",null);_.d([_.xL({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],lw);
_.p(lw,"yt-chip-cloud-chip-renderer",function(){if(cSv===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;TPf===void 0&&(TPf=document.createElement("template"));var e=TPf;H.call(t,e.content.cloneNode(!0),D.content.firstChild);cSv=D}D=cSv;return D},{mode:2});var rS6=_.uO.persistentPanelVisibleSelector,vs=function(){var D=_.X.apply(this,arguments)||this;D.isDarkTheme=!1;D.notSticky=!1;D.transparentBackground=!1;D.shouldHide=!1;D.disableSticky=!1;D.fluidWidth=!1;D.isClipList=!1;D.defaultChipIndex=0;D.isPlaylist=!1;D.playlistVotingAnimationEnabled=_.r("web_enable_voting_animation");D.toolbarHeight=0;D.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return D};
_.P(vs,_.X);_.q=vs.prototype;
_.q.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}}}}}};
_.q.attached=function(){var D=this;document.addEventListener("scroll",_.iK(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var t;this.toolbarHeight=((t=document.querySelector("ytd-masthead"))==null?void 0:t.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(H){D.handleIntersect(H)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){D.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.q.detached=function(){var D;(D=this.intersectionObserver)==null||D.disconnect();var t;(t=this.resizeObserver)==null||t.disconnect();document.removeEventListener("scroll",_.iK(this,this.updateChipBarWidthAndTop))};
_.q.dataChanged=function(){var D=this,t,H,e;((e=_.O((t=this.data)==null?void 0:(H=t.contents)==null?void 0:H[0],dB6))==null?void 0:e.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var V=this.findSelectedChipIndex();this.selectedIndex!==V&&(this.selectedIndex=-1);_.Vi(this,function(){D.selectedIndex=V;D.updating=!1;D.ytScrollableChipCloudBehavior.reset()})};
_.q.findSelectedChipIndex=function(){var D;if((D=this.data)==null||!D.contents)return 0;D=this.data.contents;for(var t=0;t<D.length;t++){var H=void 0;if((H=_.O(D[t],dB6))==null?0:H.isSelected)return t}return 0};
_.q.computeStyle=function(D){return D};
_.q.handleChipCloudChipSelectAction=function(D){D=this.JSC$16078_chipsSelector.indexOf(D);D>-1&&this.JSC$16078_chipsSelector.selectIndex(D)};
_.q.handleChipCloudChipDeselectAction=function(){if(_.r("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var D,t,H,e=(H=_.O((D=this.data)==null?void 0:(t=D.contents)==null?void 0:t[0],dB6))==null?void 0:H.navigationEndpoint;e&&_.ET(this.hostElement,"yt-browse-section-list-reload-endpoint",[e]);this.JSC$16078_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.q.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.q.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.q.onResize=function(){this.updateLayout()};
_.q.updateLayout=function(){var D=this.ytScrollableChipCloudBehavior;_.Vi(D,D.setContainerWidthDiff);D=this.ytScrollableChipCloudBehavior;_.Vi(D,D.setButtonsState)};
_.q.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.q.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.q.handleIntersect=function(D){this.notSticky=this.isChannelPageGrid||this.disableSticky||D[0].intersectionRatio===1};
_.q.updateDimensions=function(){var D=this.ytRendererBehavior.parentComponent;if(D){var t,H=(t=D.headerElement)!=null?t:D;_.jZ(this.hostElement,{"--ytd-rich-grid-chips-bar-width":H.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.q.updateSelectedIndexFromBinding=function(D){this.selectedIndex=D.detail.value};
_.q.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var D;(D=this.sortFilterHeaderRendererElement)==null||D.setAttribute("is-playlist-page-with-filters","")}};
_.q.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(SRQ(!this.notSticky))};
_.ql.Object.defineProperties(vs.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 D,t,H=(D=this.data)==null?void 0:(t=D.contents)==null?void 0:t.find(function(e){return _.O(e,IBw)});
return{sortFilterHeaderRenderer:_.O(H,IBw)}}}});
vs.prototype.dispatchChipBarIsSticky=vs.prototype.dispatchChipBarIsSticky;vs.prototype.isPlaylistPageChanged=vs.prototype.isPlaylistPageChanged;vs.prototype.updateChipBarWidthAndTop=vs.prototype.updateChipBarWidthAndTop;vs.prototype.onResize=vs.prototype.onResize;vs.prototype.onPersistentPanelVisibleChanged=vs.prototype.onPersistentPanelVisibleChanged;vs.prototype.onGuideIsExpandedChanged=vs.prototype.onGuideIsExpandedChanged;vs.prototype.dataChanged=vs.prototype.dataChanged;
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],vs.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],vs.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],vs.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.QI),_.x("design:type",Object)],vs.prototype,"ironResizableBehavior",void 0);_.d([_.C(),_.x("design:type",YW)],vs.prototype,"ytScrollableChipCloudBehavior",void 0);
_.d([_.C(_.sx),_.x("design:type",Object)],vs.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],vs.prototype,"data",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],vs.prototype,"selectedIndex",void 0);_.d([_.M({value:320}),_.x("design:type",Number)],vs.prototype,"scrollDistance",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],vs.prototype,"isDarkTheme",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],vs.prototype,"notSticky",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],vs.prototype,"transparentBackground",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.x("design:type",String)],vs.prototype,"componentStyle",void 0);_.d([_.M({selector:_.KOk}),_.x("design:type",Boolean)],vs.prototype,"guideIsExpanded",void 0);
_.d([_.M({selector:rS6}),_.x("design:type",Boolean)],vs.prototype,"persistentPanelVisible",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],vs.prototype,"shouldHide",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],vs.prototype,"disableSticky",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],vs.prototype,"fluidWidth",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],vs.prototype,"isClipList",void 0);
_.d([_.M(),_.x("design:type",Object)],vs.prototype,"defaultChipIndex",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],vs.prototype,"isPlaylist",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],vs.prototype,"playlistVotingAnimationEnabled",void 0);_.d([_.o5("#chips"),_.x("design:type",Object)],vs.prototype,"JSC$16078_chipsSelector",void 0);
_.d([_.o5("ytd-sort-filter-header-renderer"),_.x("design:type",HTMLElement)],vs.prototype,"sortFilterHeaderRendererElement",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],vs.prototype,"updating",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vs.prototype,"dataChanged",null);
_.d([_.Os("guideIsExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vs.prototype,"onGuideIsExpandedChanged",null);_.d([_.Os("persistentPanelVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vs.prototype,"onPersistentPanelVisibleChanged",null);_.d([_.rx("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vs.prototype,"onResize",null);
_.d([_.mx("isChannelPageGrid","disableSticky","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vs.prototype,"updateChipBarWidthAndTop",null);_.d([_.m("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vs.prototype,"isChannelPageGrid",null);_.d([_.m("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vs.prototype,"isHashtagLandingPage",null);
_.d([_.Os("isPlaylistPage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vs.prototype,"isPlaylistPageChanged",null);_.d([_.m("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vs.prototype,"isPlaylistPage",null);_.d([_.m("componentStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vs.prototype,"isDisableDeselectEvent",null);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],vs.prototype,"sortFilterHeaderRendererData",null);_.d([_.M({reflectToAttribute:!0,selector:_.ip6}),_.x("design:type",String)],vs.prototype,"frostedGlassMode",void 0);_.d([_.Os("notSticky"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vs.prototype,"dispatchChipBarIsSticky",null);_.d([_.Y({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],vs);
_.p(vs,"ytd-feed-filter-chip-bar-renderer",function(){if(kno!==void 0)return kno;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return kno=D},{mode:1});var O13;var U09=_.l(function(D){var t=D.data;var H=D.buttonIndex;var e=D.selectedIndex;var V=D.onSelect;var b=function(){return H()===e()},a=function(){var w,h;
return(h=(w=t().text)==null?void 0:w.content)!=null?h:""};
D=_.ruu();return _.G("yt-toggleable-image-button-view-model",{class:function(){var w={};w=(w.toggleableImageButtonViewModelHost=!0,w[""]=!0,w.toggleableImageButtonViewModelSemiTransparent=e()!==-1&&!b(),w);return _.ff(w)},
tabindex:0,"aria-label":a,"aria-pressed":b,role:"button","on:keydown":D,"on:click":_.$X(function(){V(t().onSubmitCommand);return!1})},_.G(_.E,{cond:function(){return t().logo},
then:function(w){return _.G(_.bi,{data:w,className:function(){var h={};h=(h.toggleableImageButtonViewModelImage=!0,h.toggleableImageButtonViewModelCircularRadius=!(!t().backgroundColor||!t().backgroundColorDarkMode),h.toggleableImageButtonViewModelGradientRing=!!(b()&&t().backgroundColor&&t().backgroundColorDarkMode),h);return _.ff(h)},
alt:a,useWidth:!1,style:function(){if(b()&&t().backgroundColor&&t().backgroundColorDarkMode){var h=yk(Number(t().backgroundColorDarkMode),"1");var K=yk(Number(t().backgroundColor),"1");h="background: linear-gradient(180deg,"+h+","+K+") border-box;"}else h="";return h}})}}),_.G(_.fE,{model:{borderRadius:"16px"}}),_.G("p",{class:function(){var w={};
w=(w.toggleableImageButtonViewModelLabel=!0,w.toggleableImageButtonViewModelBoldText=b(),w);return _.ff(w)}},_.G(_.$7,{text:function(){return t().text}})))},"Cc");
U09.idomCompat=!0;var PQo=_.l(function(D){var t=D.data;D=_.F(_.KR({index:-1,command:{}},void 0,"GM3umb"));var H=D.next().value,e=D.next().value;return _.G("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.G("div",{class:"nudgeFormViewModelFormOptions"},_.G(_.P5,{data:function(){return t().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(V,b){return _.G(U09,{data:V.data,buttonIndex:b,selectedIndex:function(){return H().index},
onSelect:function(a){e({index:b(),command:a})}})}})),_.G(_.$7,{text:function(){return t().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.G("div",{class:"nudgeFormViewModelSubmit"},_.G(_.P5,{data:function(){return t().submitButton}},{buttonViewModel:function(V){return _.G(ouv,{data:V.data,
isDisabled:function(){return H().index===-1},
onClick:function(){_.IQ(H().command)}})}})))},"Dc");
PQo.idomCompat=!0;var ouv=_.l(function(D){var t=_.jj(function(){return Object.assign({},D.data(),{state:D.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.G(_.JX,{data:t,onClick:D.onClick})},"Ec");_.hB(PQo,"yt-nudge-form-view-model",{props:{data:_.ij}});var pB=function(){var D=_.X.apply(this,arguments)||this;D.roundedContainer=!0;D.buttonUpdate=_.r("web_modern_buttons");D.isDarkMode=!1;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return D};
_.P(pB,_.X);_.q=pB.prototype;_.q.computeNudgeStyle=function(D){return D?"modernized-nudge":""};
_.q.handleDarkModeToggledAction=function(D){this.isDarkMode=D};
_.q.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.q.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"}}}};
_.q.computeIsHorizontalButtons=function(D){return D?!!D.applyModernizedStyle&&!!D.enableHorizontalButtons&&!!D.secondaryButton:!1};
_.ql.Object.defineProperties(pB.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var D,t;return(t=(D=this.data)==null?void 0:D.backgroundStyle)!=null?t:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var D,t;return(t=(D=this.data)==null?void 0:D.contentsLocation)!=null?t:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.lightIconImage)}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],pB.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],pB.prototype,"actionHandlerBehavior",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("isHideEnclosingAction"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pB.prototype,"isHidden",null);_.d([_.M(),_.x("design:type",Object)],pB.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],pB.prototype,"roundedContainer",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],pB.prototype,"buttonUpdate",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.x("design:type",String)],pB.prototype,"nudgeStyle",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data.trimStyle"),_.x("design:type",String),_.x("design:paramtypes",[])],pB.prototype,"trimStyle",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.backgroundStyle"),_.x("design:type",String),_.x("design:paramtypes",[])],pB.prototype,"backgroundStyle",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data.contentsLocation"),_.x("design:type",String),_.x("design:paramtypes",[])],pB.prototype,"contentsLocation",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.disableDropShadow"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pB.prototype,"noShadow",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.lightIconImage"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],pB.prototype,"noIcon",null);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.x("design:type",Boolean)],pB.prototype,"isHorizontalButtons",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Object)],pB.prototype,"isDarkMode",void 0);_.d([_.Y({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],pB);
_.p(pB,"ytd-feed-nudge-renderer",function(){if(O13!==void 0)return O13;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return O13=D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var nuf;var CQB;var dG=function(){var D=_.X.apply(this,arguments)||this;D.collapsed=!1;D.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return D};
_.P(dG,_.X);dG.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"}}}};
dG.prototype.handleRatingSelect=function(){var D;((D=this.data)==null?0:D.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
dG.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],dG.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],dG.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.GI),_.x("design:type",Object)],dG.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],dG.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],dG.prototype,"collapsed",void 0);_.d([_.Y({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],dG);
_.p(dG,"ytd-slimline-survey-renderer",function(){if(CQB!==void 0)return CQB;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return CQB=D},{mode:1});var m0n;var xW=function(){return _.X.apply(this,arguments)||this};
_.P(xW,_.X);xW.prototype.maybeGetBackgroundColor=function(D){return this.isDarkMode?D.section2Color:D.section3Color};
xW.prototype.colorPaletteChanged=function(){var D=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;D&&(D==null?0:D.secondaryTitleColor)&&this.maybeGetBackgroundColor(D)?(this.hostElement.style.backgroundColor=_.Ih(this.maybeGetBackgroundColor(D)),this.hostElement.style.color=_.Ih(D.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
xW.prototype.colorPaletteChanged=xW.prototype.colorPaletteChanged;_.d([_.C(_.sx),_.x("design:type",Object)],xW.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],xW.prototype,"data",void 0);_.d([_.M({selector:function(D){return D.ui.darkModeIsEnabled}}),
_.x("design:type",Boolean)],xW.prototype,"isDarkMode",void 0);_.d([_.M(),_.x("design:type",Object)],xW.prototype,"lightColorPalette",void 0);_.d([_.M(),_.x("design:type",Object)],xW.prototype,"darkColorPalette",void 0);_.d([_.Os("darkColorPalette","lightColorPalette","data","isDarkMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xW.prototype,"colorPaletteChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],xW);
_.p(xW,"ytd-endorsement-header-renderer",function(){if(m0n!==void 0)return m0n;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return m0n=D},{mode:1});_.hB(_.Fo,"yt-decorated-avatar-view-model",{props:{data:_.ij,className:_.ij}});_.R_=new _.kI("VIEW_TRANSITION_MANAGER_TOKEN");var uw=function(){var D=_.X.apply(this,arguments)||this;D.fullHeight=_.r("web_rich_grid_media_full_height");D.showChannelAvatar=!0;D.hasPlaylistThumbnail=!1;D.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};D.registerThumbnailForPageTransition=function(){_.r("web_thumbnail_to_watch_transition")&&_.MDV(_.qS().resolve(_.R_),D.thumbnail)};
return D};
_.P(uw,_.X);_.q=uw.prototype;
_.q.configureRendererStamper=function(){return{lazyLoadMenu:Rw,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"}}}};
_.q.attached=function(){this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.shouldLazyLoadMenu=function(){var D=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.r("kevlar_modern_downloads_page")||!D};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16103_inlinePreviewHoverListener=v5({mediaRenderer:this,lockupElement:this.JSC$16103_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.q.getVideoPreviewOpts=function(){var D={},t;if((t=this.data)==null?0:t.multipleInlinePlaybackEndpoint)D=TQn;this.isRadio&&(D=kea);return D};
_.q.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$16103_inlinePreviewHoverListener)==null||t8(D)};
_.q.getOwner=function(){var D,t,H;return((D=this.data)==null?void 0:(t=D.channelThumbnailSupportedRenderers)==null?void 0:t.channelThumbnailWithLinkRenderer)||_.O((H=this.data)==null?void 0:H.showProviderChannelThumbnail,QuV)};
_.q.updateLockupSize=function(){var D;((D=this.getOwner())==null?0:D.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.q.getFeedbackEndpoint=function(D){if(_.O(D,_.XC))return D;var t,H;D=(H=(t=_.O(D,_.ch))==null?void 0:t.commands)!=null?H:[];t=_.F(D);for(H=t.next();!H.done;H=t.next())if(H=this.getFeedbackEndpoint(H.value))return H;return null};
_.q.computeNavigationEndpoint=function(D){return $a6(D==null?void 0:D.navigationEndpoint)};
_.q.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var D=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(D)!==JSON.stringify(this.data)&&this.set("data",D)}};
_.q.onDataChanged=function(){var D=this,t=this.getOwner();if(t){this.set("data.owner",t);var H,e,V,b,a,w=((H=this.data)==null?void 0:(e=H.shortBylineText)==null?void 0:(V=e.runs)==null?void 0:(b=V[0])==null?void 0:b.text)||((a=t.name)==null?void 0:a.simpleText);this.set("data.owner.title",w)}var h,K,N,k,T,c;t=((h=this.data)==null?void 0:(K=h.thumbnailRenderer)==null?void 0:K.playlistVideoThumbnailRenderer)||((N=this.data)==null?void 0:(k=N.thumbnailRenderer)==null?void 0:k.playlistCustomThumbnailRenderer)||
((T=this.data)==null?void 0:(c=T.thumbnailRenderer)==null?void 0:c.showCustomThumbnailRenderer);var U;((U=this.data)==null?0:U.thumbnail)||!t||this.set("data.thumbnail",t.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){D.updateLockupSize()});
var S;if(h=((S=this.data)==null?void 0:S.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(h);var L;((L=this.dismissActionToReplayEntity)==null?0:L.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.q.onHiddenChanged=function(){this.updateLockupSize()};
_.q.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.ET(this.hostElement,"yt-terminate-video-preview-action");else{var D;(D=this.videoTitleLink)==null||D.focus()}};
_.q.metadataColorChanged=function(){var D;if(this.metadataColor&&((D=this.videoTitle)==null?0:D.style))this.videoTitle.style.color=_.Ih(this.metadataColor);else{var t,H;!this.metadataColor&&((t=this.videoTitle)==null?0:(H=t.style)==null?0:H.color)&&(this.videoTitle.style.color="")}};
_.q.onDetailsClick=function(D){var t=this.computedNavigationEndpoint;t&&(_.ed(_.bK(D),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Gf(this.hostElement,"yt-navigate",{endpoint:t}))};
_.q.onRendererTap=function(){this.registerThumbnailForPageTransition();var D,t,H=((D=this.data)==null?void 0:D.serviceEndpoint)||this.getFeedbackEndpoint((t=this.data)==null?void 0:t.navigationEndpoint);H&&_.O(H,_.XC)&&this.ytComponentBehavior.resolveCommand(H)};
_.q.onMouseDown=function(D){var t=D.target,H=this.computedNavigationEndpoint,e;D=t.href||((e=_.O(H==null?void 0:H.commandMetadata,_.i1))==null?void 0:e.url);e=t.data||H;D&&e&&h$D(D,e)};
_.q.computeVideoTitleText=function(){var D;if((D=this.data)==null?0:D.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.q.computeHasPlaylistThumbnail=function(D){var t,H,e,V,b;if((((t=D.thumbnailRenderer)==null?0:t.playlistVideoThumbnailRenderer)||((H=D.thumbnailRenderer)==null?0:H.playlistCustomThumbnailRenderer)||((e=D.thumbnailRenderer)==null?0:e.showCustomThumbnailRenderer)||((V=D.thumbnailRenderer)==null?0:V.playlistVideoThumbnailRenderer)||((b=D.thumbnailRenderer)==null?0:b.playlistCustomThumbnailRenderer))&&D.thumbnailOverlays)for(t=0;t<D.thumbnailOverlays.length;t++)if(H=void 0,(H=D.thumbnailOverlays[t])==
null?0:H.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.ql.Object.defineProperties(uw.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.r("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var D;return(D=this.data)==null?void 0:D.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var D;return(D=this.data)==null?void 0:D.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$16103_inlinePreviewHoverListener)==null?0:sv(D))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.RAD(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?void 0:D.videoId)||((t=this.data)==null?void 0:t.playlistId)||""}}});
uw.prototype.onMouseDown=uw.prototype.onMouseDown;uw.prototype.metadataColorChanged=uw.prototype.metadataColorChanged;uw.prototype.onIsDismissedChanged=uw.prototype.onIsDismissedChanged;uw.prototype.onHiddenChanged=uw.prototype.onHiddenChanged;uw.prototype.onDataChanged=uw.prototype.onDataChanged;uw.prototype.handleReloadDownloadsInfo=uw.prototype.handleReloadDownloadsInfo;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],uw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],uw.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],uw.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],uw.prototype,"ytdLockupBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],uw.prototype,"ytdReduxBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],uw.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],uw.prototype,"entitySelectorType",void 0);_.d([_.M(),_.x("design:type",Boolean)],uw.prototype,"noEndpoints",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],uw.prototype,"isRadio",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.Ye}),_.x("design:type",Boolean)],uw.prototype,"miniMode",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],uw.prototype,"fullHeight",void 0);
_.d([_.M(),_.x("design:type",Boolean)],uw.prototype,"showDarkVideoMetadata",void 0);_.d([_.M(),_.x("design:type",Boolean)],uw.prototype,"showLightVideoMetadata",void 0);_.d([_.M(),_.x("design:type",Number)],uw.prototype,"metadataColor",void 0);_.d([_.M(),_.x("design:type",Object)],uw.prototype,"showChannelAvatar",void 0);_.d([_.M(),_.x("design:type",Boolean)],uw.prototype,"hidden",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],uw.prototype,"showYtInteraction",void 0);
_.d([_.M(),_.x("design:type",String)],uw.prototype,"dismissedContentId",void 0);_.d([_.M({selectorArgs:["dismissedContentId"],selector:oAK}),_.x("design:type",Object)],uw.prototype,"dismissActionToReplayEntity",void 0);
_.d([_.M({selectorArgs:["entitySelectorType","mediaId"],selector:function(D,t,H){if(_.r("kevlar_modern_downloads_page")&&H&&t&&t!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(t){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var e=o$V(D,H);if(e){t=_.xe(D,H);var V=uG(D,H),b=JUR(D,H);D=WH(D,H);var a=QTX(e,t,V,b);V=a.shortViewCountText;var w=a.publishedTimeText;a=a.badges;var h=D>0;b=WXX(e,t,b,D);e=_.CC(t)||t==="TRANSFER_STATE_FAILED"||t==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!nC(e.policyEntity)?
void 0:cz8(H,D,e.videoEntity.lengthSeconds);t==="TRANSFER_STATE_PAUSED_BY_USER"&&H&&!_.r("dl_resume_click_killswitch")&&(e={offlineVideoEndpoint:{videoId:H,action:"ACTION_RESUME"}});H={shortViewCountText:V,publishedTimeText:w,badges:a,isWatched:h,navigationEndpoint:e,thumbnailOverlays:b}}else H=void 0;return H;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(t=PS3(D,H))if(e=_.Rf(D,H),b=_.n$R(D,H),e!=="TRANSFER_STATE_UNKNOWN"){H=IQV(t,e,b,H,_.dO(D));break a}H=void 0}return H;default:_.Yw(new _.nZ("Error: entitySelectorType defined but not matched in selector.",
D,t))}}}),
_.x("design:type",Object)],uw.prototype,"entityDrivenState",void 0);_.d([_.M({computed:"computeVideoTitleText(data)"}),_.x("design:type",Object)],uw.prototype,"videoTitleText",void 0);_.d([_.M({computed:"computeHasPlaylistThumbnail(data)"}),_.x("design:type",Object)],uw.prototype,"hasPlaylistThumbnail",void 0);_.d([_.M({computed:"computeNavigationEndpoint(data)"}),_.x("design:type",Object)],uw.prototype,"computedNavigationEndpoint",void 0);
_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],uw.prototype,"typographyBump",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("typographyBump"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uw.prototype,"typographyBumpV2",null);_.d([_.o5("#video-title"),_.x("design:type",HTMLElement)],uw.prototype,"videoTitle",void 0);_.d([_.o5("#video-title-link"),_.x("design:type",HTMLElement)],uw.prototype,"videoTitleLink",void 0);
_.d([_.o5("#thumbnail"),_.x("design:type",HTMLElement)],uw.prototype,"thumbnail",void 0);_.d([_.o5("#dismissible"),_.x("design:type",HTMLElement)],uw.prototype,"JSC$16103_dismissibleMedia",void 0);_.d([_.m("data.menu"),_.x("design:type",Object),_.x("design:paramtypes",[])],uw.prototype,"lazyLoadMenu",null);_.d([_.m("data.menu"),_.x("design:type",Object),_.x("design:paramtypes",[])],uw.prototype,"immediateLoadMenu",null);
_.d([_.mx("entityDrivenState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uw.prototype,"handleReloadDownloadsInfo",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uw.prototype,"onDataChanged",null);_.d([_.mx("hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uw.prototype,"onHiddenChanged",null);
_.d([_.Os("isDismissed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uw.prototype,"onIsDismissedChanged",null);_.d([_.Os("metadataColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],uw.prototype,"metadataColorChanged",null);_.d([_.rx("mousedown"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],uw.prototype,"onMouseDown",null);
_.d([_.m("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uw.prototype,"isHovered",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],uw.prototype,"useAvatar",null);_.d([_.m("data","entitySelectorType"),_.x("design:type",String),_.x("design:paramtypes",[])],uw.prototype,"mediaId",null);_.d([_.Y({is:"ytd-rich-grid-media",disableElementRegistration:!0})],uw);
var Sw6=_.E_()(uw,"ytd-rich-grid-media",function(){if(nuf!==void 0)return nuf;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return nuf=D},{mode:_.Kz("kevlar_poly_si_batch_j072")?1:2});var XCn;var Ws=function(){var D=_.X.apply(this,arguments)||this;D.removeMaxWidth=!0;D.insetMetadata=!1;return D};
_.P(Ws,_.X);_.q=Ws.prototype;_.q.configureRendererStamper=function(){return{innerMenu:Rw,outerMenu:Object.assign({},Rw,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.q.onDataChanged=function(){var D,t=((D=this.data)==null?void 0:D.trackingParams)||"";t&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(t));var H;((H=this.dismissActionToReplayEntity)==null?0:H.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.q.attached=function(){this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16108_inlinePreviewHoverListener=v5({mediaRenderer:this,lockupElement:this.JSC$16108_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:cHV})};
_.q.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$16108_inlinePreviewHoverListener)==null||t8(D)};
_.q.onRendererTap=function(){var D,t,H=(D=this.data)==null?void 0:(t=D.serviceEndpoints)==null?void 0:t[0];_.O(H,_.XC)&&this.componentBehavior.resolveCommand(H)};
_.q.onDetailsClick=function(D){var t,H=(t=this.data)==null?void 0:t.navigationEndpoint;H&&(_.ed(_.bK(D),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(H))};
_.q.onShow=function(){var D=this.data;D.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(D.onFirstVisibleCommand),delete D.onFirstVisibleCommand)};
_.ql.Object.defineProperties(Ws.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var D;return this.insetMetadata?void 0:(D=this.data)==null?void 0:D.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var D;return this.insetMetadata?(D=this.data)==null?void 0:D.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var D=this.data;if(D!=null&&D.badge&&(D=_.O(D.badge,A1f))){var t,H,e;return[{metadataBadgeRenderer:{label:((t=D.label)==null?void 0:(H=t.runs)==null?void 0:H[0].text)||((e=D.label)==null?void 0:e.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var D=this.data;return Object.assign({},D.headline,{accessibility:D.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return this.isSlimShort?(D=this.computedTitle)==null?void 0:(t=D.accessibility)==null?void 0:(H=t.accessibilityData)==null?void 0:H.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.r("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$16108_inlinePreviewHoverListener)==null?0:sv(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Ws.prototype.onDataChanged=Ws.prototype.onDataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Ws.prototype,"componentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ws.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],Ws.prototype,"ytdLockupBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ws.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.GI),_.x("design:type",Object)],Ws.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Ws.prototype,"ytdReduxBehavior",void 0);_.d([_.o5("ytd-thumbnail"),_.x("design:type",HTMLElement)],Ws.prototype,"thumbnail",void 0);_.d([_.o5("#dismissible"),_.x("design:type",HTMLElement)],Ws.prototype,"JSC$16108_dismissibleMedia",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ws.prototype,"removeMaxWidth",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ws.prototype,"insetMetadata",void 0);_.d([_.M(),_.x("design:type",String)],Ws.prototype,"dismissedContentId",void 0);_.d([_.M({selectorArgs:["dismissedContentId"],selector:oAK}),_.x("design:type",Object)],Ws.prototype,"dismissActionToReplayEntity",void 0);_.d([_.m("insetMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ws.prototype,"thumbnailObjectFit",null);
_.d([_.m("data","insetMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ws.prototype,"innerMenu",null);_.d([_.m("data","insetMetadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ws.prototype,"outerMenu",null);_.d([_.M(),_.x("design:type",Object)],Ws.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.Ye}),_.x("design:type",Boolean)],Ws.prototype,"miniMode",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ws.prototype,"onDataChanged",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ws.prototype,"shortsBadges",null);_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ws.prototype,"isShort",null);
_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ws.prototype,"isSlimShort",null);_.d([_.m("data","isShort"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ws.prototype,"computedTitle",null);_.d([_.m("isSlimShort","computedTitle"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ws.prototype,"computedAccessibilityLabel",null);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ws.prototype,"shouldForce2By3",null);_.d([_.m("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ws.prototype,"isHovered",null);_.d([_.Y({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],Ws);
_.p(Ws,"ytd-rich-grid-slim-media",function(){if(XCn!==void 0)return XCn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return XCn=D},{mode:_.Kz("kevlar_poly_si_batch_j063")?1:2});var fAQ;var L9a;var I_=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(I_,_.X);I_.prototype.computeIcon=function(D){return D&&D.iconType?"yt-sys-icons:"+D.iconType.toLowerCase():""};
I_.prototype.onMouseEnter=function(){this.isHovered=!0};
I_.prototype.onMouseLeave=function(){this.isHovered=!1};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],I_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],I_.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],I_.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],I_.prototype,"isHovered",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],I_.prototype,"darkerDarkTheme",void 0);_.d([_.Y({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],I_);
_.p(I_,"ytd-expand-on-hover-card-renderer",function(){if(L9a!==void 0)return L9a;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return L9a=D},{mode:1});var ASa,guB=function(){if(ASa!==void 0)return ASa;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return ASa=D};_.AB("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Qg=function(){var D=_.X.apply(this,arguments)||this;D.compactStyle=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.P(Qg,_.X);_.q=Qg.prototype;_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.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"}}}};
_.q.computeHideDot=function(D){return!(D&&D.subscriberCountText&&D.videoCountText)||this.compactStyle};
_.q.hasDualButtons=function(D){return D&&D.purchaseButton&&D.subscribeButton};
_.q.backgroundColorChanged=function(){if(this.data!==void 0){var D=this.data.backgroundColor;this.isDarkTheme&&(D=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=D!=null?_.Ih(D):"transparent"}};
_.q.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.q.onTap=function(D){var t,H,e=((t=this.data)==null?void 0:t.navigationEndpoint)||((H=this.data)==null?void 0:H.serviceEndpoint);_.O(e,_.DT)&&(e&&_.qS().resolve(_.aA).resolveCommand(e,{form:{element:this.hostElement}}),D.preventDefault())};
_.q.computeChannelEndpoint=function(D){return _.O(D,_.DT)?null:D};
_.q.computeHrefEndpoint=function(D){return _.O(D,_.DT)?null:this.componentBehavior.computeHref_(D)};
_.q.computeChannelRendererStyle=function(D){return D};
_.q.computeIconSize=function(D){return D?108:136};
_.ql.Object.defineProperties(Qg,{template:{configurable:!0,enumerable:!0,get:function(){return guB()}}});
Qg.prototype.backgroundColorChanged=Qg.prototype.backgroundColorChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Qg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],Qg.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Qg.prototype,"componentBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Qg.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],Qg.prototype,"isDarkTheme",void 0);_.d([_.M({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.x("design:type",String)],Qg.prototype,"channelRendererStyle",void 0);_.d([_.M({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Qg.prototype,"dualButtons",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],Qg.prototype,"useBiggerThumbs",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.sa("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],Qg.prototype,"biggerThumbStyle",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Qg.prototype,"compactStyle",void 0);_.d([_.Os("data","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qg.prototype,"backgroundColorChanged",null);_.d([_.Y({is:"ytd-channel-renderer",disableElementRegistration:!0})],Qg);_.p(Qg,"ytd-channel-renderer",function(){return guB()},{mode:1});var JSo;var Yww;_.AB("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var yg=function(){var D=_.X.apply(this,arguments)||this;D.displayItemCount=2;D.collections=_.r("web_modern_collections_v2");D.hasPlaylistThumbnail=!1;D.stackThumbnailSize="large";return D};
_.P(yg,_.X);_.q=yg.prototype;_.q.attached=function(){this.updateInlinePreviewHoverListeners()};
_.q.detached=function(){this.clearInlinePreviewHoverListeners()};
_.q.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.q.computeFirstVideos=function(D,t){return D&&t?D.slice(0,t):[]};
_.q.computeThumbnailWidth=function(D,t){return D?t==="BIG"?500:t==="MASSIVE"?600:t==="MEDIUM"?450:420:360};
_.q.computeThumbnailHeight=function(D,t){return D?t==="BIG"?280:t==="MASSIVE"?337:234:202};
_.q.clearInlinePreviewHoverListeners=function(){var D;(D=this.JSC$16121_inlinePreviewHoverListener)==null||t8(D)};
_.q.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16121_inlinePreviewHoverListener=v5({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:TQn,thumbnailElement:this.thumbnail})};
_.q.computeHasPlaylistThumbnail=function(D){var t,H;if((((t=D.thumbnailRenderer)==null?0:t.playlistVideoThumbnailRenderer)||((H=D.thumbnailRenderer)==null?0:H.playlistCustomThumbnailRenderer))&&D.thumbnailOverlays)for(t=0;t<D.thumbnailOverlays.length;t++)if(H=void 0,(H=D.thumbnailOverlays[t])==null?0:H.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.ql.Object.defineProperties(yg.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.JSC$16121_inlinePreviewHoverListener)==null?0:sv(D))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
yg.prototype.dataChanged=yg.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],yg.prototype,"ytdLockupBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],yg.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],yg.prototype,"displayItemCount",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],yg.prototype,"useBiggerThumbs",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.sa("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],yg.prototype,"biggerThumbsStyle",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],yg.prototype,"collections",void 0);_.d([_.M({computed:"computeHasPlaylistThumbnail(data)"}),_.x("design:type",Object)],yg.prototype,"hasPlaylistThumbnail",void 0);_.d([_.M(),_.x("design:type",String)],yg.prototype,"stackThumbnailSize",void 0);_.d([_.o5("ytd-thumbnail"),_.x("design:type",HTMLElement)],yg.prototype,"thumbnail",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yg.prototype,"dataChanged",null);_.d([_.m("lockupIsHovered"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yg.prototype,"isHovered",null);_.d([_.Y({is:"ytd-radio-renderer",disableElementRegistration:!0})],yg);
_.p(yg,"ytd-radio-renderer",function(){if(Yww!==void 0)return Yww;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Yww=D},{mode:_.Kz("kevlar_poly_si_batch_j058")?1:2});var lAQ;_.AB("itemSectionRenderer","showRenderer","ytd-show-renderer");var Bs=function(){return _.X.apply(this,arguments)||this};
_.P(Bs,_.X);Bs.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Bs.prototype.computeThumbnailWidth=function(D){return D?360:246};
Bs.prototype.computeUseProminentThumbs=function(D){return D};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Bs.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Bs.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Bs.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Bs.prototype,"isSearch",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.x("design:type",Boolean)],Bs.prototype,"useProminentThumbs",void 0);_.d([_.Y({is:"ytd-show-renderer",disableElementRegistration:!0})],Bs);
_.p(Bs,"ytd-show-renderer",function(){if(lAQ!==void 0)return lAQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return lAQ=D},{mode:1});_.AB("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var zw=function(){var D=_.X.apply(this,arguments)||this;D.isRichGrid=!1;return D};
_.P(zw,_.X);zw.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"}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],zw.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zw.prototype,"isRichGrid",void 0);_.d([_.Y({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],zw);
_.p(zw,"ytd-feed-entry-renderer",function(){if(JSo!==void 0)return JSo;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return JSo=D},{mode:1});var vun;var Dn=function(){return _.X.apply(this,arguments)||this};
_.P(Dn,_.X);Dn.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.d([_.C(_.sx),_.x("design:type",Object)],Dn.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Dn.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Dn.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.lG,value:3}),_.x("design:type",Number)],Dn.prototype,"itemsPerRow",void 0);
_.d([_.Y({is:"ytd-link-card-renderer",disableElementRegistration:!0})],Dn);
_.p(Dn,"ytd-link-card-renderer",function(){if(vun!==void 0)return vun;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return vun=D},{mode:1});var pC4;var tc=function(){return _.X.apply(this,arguments)||this};
_.P(tc,_.X);_.q=tc.prototype;_.q.configureRendererStamper=function(){return{"data.menu":Rw,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.q.onRendererTap=function(D){if(!this.ytdDismissibleItemBehavior.isDismissed){var t,H=(t=this.data)==null?void 0:t.navigationEndpoint;H&&!_.ed(_.bK(D),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(H)?_.ed(_.bK(D),this.hostElement,["A"])||_.Gf(this.hostElement,"yt-navigate",{endpoint:H}):this.ytComponentBehavior.resolveCommand(H,{}))}};
_.q.maybeComputeHref=function(D){return this.ytComponentBehavior.computeHref_(D,!0)};
_.q.getNavigationCommand=function(D){return this.isNavigationCommand(D)?D:null};
_.q.isNavigationCommand=function(D){return D?_.O(D,_.UL)||_.O(D,_.Hh)||_.O(D,_.um)?!0:!1:!1};
tc.prototype.onRendererTap=tc.prototype.onRendererTap;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],tc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],tc.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],tc.prototype,"ytComponentBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],tc.prototype,"data",void 0);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],tc.prototype,"onRendererTap",null);_.d([_.Y({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],tc);
_.p(tc,"ytd-lumiere-promo-item-image-renderer",function(){if(pC4!==void 0)return pC4;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return pC4=D},{mode:1});var d04;var HR=function(){return _.X.apply(this,arguments)||this};
_.P(HR,_.X);HR.prototype.computeLandscapeThumbnail=function(){var D;return((D=this.data)==null?void 0:D.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],HR.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],HR.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],HR.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.Ye}),_.x("design:type",Boolean)],HR.prototype,"miniMode",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.lG}),_.x("design:type",Number)],HR.prototype,"itemsPerRow",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.x("design:type",Boolean)],HR.prototype,"landscapeThumbnail",void 0);_.d([_.Y({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],HR);
_.p(HR,"ytd-lumiere-shelf-details-renderer",function(){if(d04!==void 0)return d04;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return d04=D},{mode:_.Kz("kevlar_poly_si_batch_j076")?1:2});var x0B;var eU=function(){return _.X.apply(this,arguments)||this};
_.P(eU,_.X);eU.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],eU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],eU.prototype,"data",void 0);_.d([_.Y({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],eU);
_.p(eU,"ytd-primetime-promo-details-renderer",function(){if(x0B!==void 0)return x0B;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return x0B=D},{mode:1});var RB4;var Vv=function(){return _.X.apply(this,arguments)||this};
_.P(Vv,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Vv.prototype,"data",void 0);_.d([_.Y({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Vv);
_.p(Vv,"ytd-panel-show-style-metadata-renderer",function(){if(RB4!==void 0)return RB4;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return RB4=D},{mode:1});var uja;var b6=function(){return _.X.apply(this,arguments)||this};
_.P(b6,_.X);_.q=b6.prototype;_.q.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.q.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.q.computeThumbnail=function(D){if(D)return D.smallFormFactorBackgroundThumbnail||D.largeFormFactorBackgroundThumbnail};
_.q.maybeComputeHref=function(D){return this.ytComponentBehavior.computeHref_(D,!0)};
_.q.isNavigationCommand=function(D){return D?_.O(D,_.UL)||_.O(D,_.Hh)||_.O(D,_.um)?!0:!1:!1};
_.q.getNavigationCommand=function(D){return this.isNavigationCommand(D)?D:null};
b6.prototype.onPanelTap=b6.prototype.onPanelTap;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],b6.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],b6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],b6.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],b6.prototype,"roundedContainer",void 0);_.d([_.M({reflectToAttribute:!0,value:_.r("web_modern_buttons")}),_.x("design:type",Boolean)],b6.prototype,"modernButtons",void 0);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b6.prototype,"onPanelTap",null);_.d([_.Y({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],b6);
_.p(b6,"ytd-primetime-promo-panel-renderer",function(){if(uja!==void 0)return uja;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return uja=D},{mode:1});_.hB(_.l(function(D){D=_.FQ(D,{data:{},useFullWidth:!1});var t=D.data,H=D.useFullWidth;D={};return _.G("teaser-card-view-model",{class:_.jQ("ytTeaserCardViewModelHost",(D.ytTeaserCardViewModelUseFullWidth=function(){return H()},D))},_.G(_.E,{cond:function(){return t().onTap},
then:function(e){return _.G(_.XW,{className:"ytTeaserCardViewModelLink",command:e},_.G("div",{class:"ytTeaserCardViewModelImageContainer"},_.G(_.E,{cond:function(){return t().image},
then:function(V){return _.G(_.bi,{data:V,className:"ytTeaserCardViewModelImage",alt:""})}})),_.G("p",{class:"ytTeaserCardViewModelCaption"},function(){return t().caption}))}}))},"Fc"),"teaser-card-view-model",{props:{data:_.ij,
useFullWidth:_.ij}});_.hB(_.l(function(D){var t=D.data;var H=function(){var e;return _.Rn((e=t())==null?void 0:e.iconThemedImage)};
return _.G("yt-edu-card-view-model",null,_.G(_.f0,{contentId:function(){return t().nudgeId}},function(){return _.G("div",{class:_.jQ("ytEduCardViewModelHost",function(){return t().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.G("div",{class:"ytEduCardViewModelTopCornerButton"},_.G(_.P5,{data:function(){return t().dismissButton}},{buttonViewModel:_.JX})),_.G("div",{class:"ytEduCardViewModelContentWrapper"},_.G("div",{class:"ytEduCardViewModelHeaderImage"},_.G(_.E,
{cond:H,
then:function(e){return _.G(_.bi,{data:e,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.G("div",{class:"ytEduCardViewModelTextContainer"},_.G("div",{class:"ytEduCardViewModelTitle"},_.G(_.$7,{text:function(){return t().title}})),_.G("div",{class:"ytEduCardViewModelSubtitle"},_.G(_.$7,{text:function(){return t().subtitle}}))),_.G("div",{class:"ytEduCardViewModelContent"},_.G(_.P5,{data:function(){return t().form}},{nudgeFormViewModel:PQo}))),_.G("div",{class:_.jQ("ytEduCardViewModelButtonWrapper",
function(){return t().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.G(_.P5,{data:function(){return t().primaryButton}},{buttonViewModel:function(e){return _.G("div",{class:"ytEduCardViewModelPrimaryButton"},_.G(_.JX,{data:e.data}))}}),_.G(_.P5,{data:function(){return t().secondaryButton}},{buttonViewModel:function(e){return _.G("div",{class:"ytEduCardViewModelSecondaryButton"},_.G(_.JX,{data:e.data}))}})))}))},"Gc"),"yt-edu-card-view-model",{props:{data:_.ij}});var W99=new _.kI("RICH_GRID_VIDEO_RENDERER_TOKEN");_.hB(_.l(function(D){var t=D.data;var H=D.showYtInteractionInContent;var e=function(){return!!t().selectableFeedback};
D=_.F(_.KR(!1,void 0,"qxtgaf"));var V=D.next().value,b=D.next().value;_.XH(function(){var T=_.O(t().primaryButton,_.Ez);(T==null?0:T.isToggled)&&b(T.isToggled)});
D=_.$X(function(T){if(!e())return!1;if(V()){var c;var U=(c=t().selectableFeedback)==null?void 0:c.onDeselect}else{var S;U=(S=t().selectableFeedback)==null?void 0:S.onSelect}U&&_.IQ(U,{form:{element:T.target}});b(!V());if(T=_.O(t().primaryButton,_.Ez))T.isToggled=V();return!1});
var a=function(){if(!e()){var T,c=(T=t().loggingDirectives)==null?void 0:T.trackingParams;c&&_.YS(_.qS().resolve(_.eX),c)}},w=_.O4$(),h=function(){var T;
return e()?(T=t().selectableFeedback)==null?void 0:T.a11yLabel:void 0},K=function(){return e()?{toggled:V()}:{}},N=_.qS().resolve(_.by(W99)),k={};
return _.G("yt-feedback-item-renderer",{class:_.jQ("ytFeedbackItemRendererHost",(k.ytFeedbackItemRendererSelectableFeedback=e,k)),"on:click":D,"on:keydown":w,title:h,"aria-label":h,"aria-pressed":function(){return e()?V():void 0},
tabindex:function(){return e()?0:void 0},
role:function(){return e()?"button":void 0}},_.G("div",{class:"ytFeedbackItemRendererContentContainer"},_.G(_.P5,{data:function(){return t().content}},{videoRenderer:function(T){return _.G(N,{data:T.data,
showYtInteraction:H})},
lockupViewModel:function(T){return _.G(_.J9,{data:T.data,containerType:2})}})),_.G("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.G(_.P5,{data:function(){return t().primaryButton}},{toggleButtonViewModel:function(T){return _.G(_.VC,{data:T.data,
buttonShapeOverrides:K,disableExplicitClickLogging:!0,onToggle:a})}})))},"Hc"),"yt-feedback-item-renderer",{props:{data:_.ij,
showYtInteractionInContent:_.ij}});var qW=function(){var D=_.X.apply(this,arguments)||this;D.isShortsGrid=!1;D.isCompactGrid=!1;D.isShortsPanelGrid=!1;D.renderedFromRichGrid=!1;D.isInFirstColumn=!1;D.noGutterMargins=!1;D.noBottomMargin=!1;D.halfBottomMargin=!1;D.isInlineGroupItem=!1;D.insetMetadata=!1;D.noBottomMarginInAds=!0;D.force16By9ThumbnailAspectRatio=!1;D.useCompactList=!1;D.containerType=2;D.thumbnailTargetWidth=9999;D.isResponsiveGrid=!1;D.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};D.hoverListener=
D.hover.bind(D);D.leaveListener=D.leave.bind(D);D.highlighted=!1;D.JSC$16157_unsubscribeFromInlinePreviewIsActive=function(){};
return D};
_.P(qW,_.X);_.q=qW.prototype;_.q.computeContainerType=function(){return this.useCompactList?3:2};
_.q.itemWidthChanged=function(){var D;this.thumbnailTargetWidth=(D=this.itemWidth)!=null?D:9999};
_.q.updateIsInFirstColumn=function(){var D;this.isInFirstColumn=((D=this.data)==null?void 0:D.colIndex)===0};
_.q.observerContainerType=function(){if(this.lockup){var D=this.lockup;D.containerType=this.containerType;D.sizing=this.sizing;D.typographyBump=this.typographyBump;D.itemWidth=this.itemWidth}this.richGridMedia&&_.r("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.r("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.q.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.q.leave=function(D){D=D.relatedTarget;var t=document.querySelector("ytd-video-preview");D&&t&&_.Ny(t).contains(D)||this.removeAndCleanupHighlight()};
_.q.hover=function(){var D;!this.highlighted&&(D=this.data)!=null&&D.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(D=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:D,boxShadow:"0 0 0 10px "+D})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.q.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};
_.q.registerHoverHighlightListeners=function(){var D=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16157_unsubscribeFromInlinePreviewIsActive=_.Rj(_.b_(),_.cUV,function(t){D.highlighted&&!t&&D.removeAndCleanupHighlight()})};
_.q.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16157_unsubscribeFromInlinePreviewIsActive()};
_.q.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.q.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.q.getBackgroundColor=function(){var D,t,H=(D=this.data)==null?void 0:(t=D.onFocusEffect)==null?void 0:t.onFocusColor;if(H){if(document.documentElement.hasAttribute("dark")&&(H==null?0:H.darkTheme))return _.Ih(H==null?void 0:H.darkTheme);if(H==null?0:H.lightTheme)return _.Ih(H==null?void 0:H.lightTheme)}};
_.q.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var D=_.v3(),t,H,e;D&&((t=this.data)==null?0:t.trackingParams)&&((H=this.data)==null?void 0:H.colIndex)!=null&&((e=this.data)==null?void 0:e.rowIndex)!=null&&_.eR(D,_.Sa(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.q.isSlimMediaRenderer=function(D){return!!_.O(D==null?void 0:D.content,_.Gz6)||!!_.O(D==null?void 0:D.content,h_a)||!!_.O(D==null?void 0:D.content,_.F5)||!!_.O(D==null?void 0:D.content,XKv)};
_.q.isPostRenderer=function(){var D,t;return!!_.O((D=this.data)==null?void 0:D.content,Xlm)||!!_.O((t=this.data)==null?void 0:t.content,fEn)};
_.q.computeIsGameCardShelf=function(){var D;return!!_.O((D=this.data)==null?void 0:D.content,Rww)};
_.q.computeIsMiniGameCardShelf=function(){var D,t;return!!_.O((D=this.data)==null?void 0:D.content,qia)||!!_.O((t=this.data)==null?void 0:t.content,FKB)};
_.q.computeIsTeaserCard=function(){var D;return!!_.O((D=this.data)==null?void 0:D.content,FKB)};
_.q.computeIsSelectableFeedbackItem=function(){var D,t;return!((t=_.O((D=this.data)==null?void 0:D.content,wbn))==null||!t.selectableFeedback)};
_.q.computeContainsLumierePosters=function(){var D,t;return((t=_.O((D=this.data)==null?void 0:D.content,xkQ))==null?void 0:t.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.q.computeIsExpandOnHoverCardShelf=function(){var D;return!!_.O((D=this.data)==null?void 0:D.content,dkQ)};
_.q.computeIsLinkCardShelf=function(){var D;return!!_.O((D=this.data)==null?void 0:D.content,Rv9)};
_.q.computeIsReelItemStyleAvatarCircle=function(D){var t;return((t=_.O(D==null?void 0:D.content,_.F5))==null?void 0:t.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.q.computeIsLinkCardFullWidth=function(D,t){var H;return((H=_.O(D==null?void 0:D.content,Rv9))==null?void 0:H.useFullWidth)||t<=2};
_.ql.Object.defineProperties(qW.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var D;return _.r("web_hover_effect_refactor")&&_.O((D=this.data)==null?void 0:D.content,_.yXn)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.r("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var D;if(_.r("web_hover_effect_refactor")&&_.O((D=this.data)==null?void 0:D.content,_.yXn))return!1;var t;return!((t=this.data)==null||!t.onFocusEffect)||_.r("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){var D;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.r("web_hover_effect_refactor")?(D=this.data)==null?void 0:D.onFocusEffect:void 0}}}});
qW.prototype.richGridHoverHighlightChanged=qW.prototype.richGridHoverHighlightChanged;qW.prototype.observerContainerType=qW.prototype.observerContainerType;qW.prototype.updateIsInFirstColumn=qW.prototype.updateIsInFirstColumn;qW.prototype.itemWidthChanged=qW.prototype.itemWidthChanged;_.d([_.C(_.sx),_.x("design:type",Object)],qW.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],qW.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],qW.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],qW.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],qW.prototype,"ytdLockupBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],qW.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.x("design:type",Boolean)],qW.prototype,"isPost",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.x("design:type",Boolean)],qW.prototype,"containsLumierePosters",void 0);_.d([_.M({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.x("design:type",Boolean)],qW.prototype,"isSlimMedia",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.x("design:type",Boolean)],qW.prototype,"isGameCardShelf",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.x("design:type",Boolean)],qW.prototype,"isMiniGameCardShelf",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.x("design:type",Boolean)],qW.prototype,"isTeaserCard",void 0);_.d([_.M({computed:"computeIsSelectableFeedbackItem(data)"}),_.x("design:type",Boolean)],qW.prototype,"isSelectableFeedbackItem",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],qW.prototype,"isShortsGrid",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],qW.prototype,"isSlimGrid",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],qW.prototype,"isCompactGrid",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],qW.prototype,"isShortsPanelGrid",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.x("design:type",Boolean)],qW.prototype,"isExpandOnHoverCardShelf",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.x("design:type",Boolean)],qW.prototype,"isLinkCardShelf",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.lG,value:3}),_.x("design:type",Number)],qW.prototype,"itemsPerRow",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],qW.prototype,"renderedFromRichGrid",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],qW.prototype,"isInFirstColumn",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],qW.prototype,"noGutterMargins",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],qW.prototype,"noBottomMargin",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],qW.prototype,"halfBottomMargin",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],qW.prototype,"isInlineGroupItem",void 0);_.d([_.M(),_.x("design:type",Object)],qW.prototype,"insetMetadata",void 0);_.d([_.M(),_.x("design:type",Object)],qW.prototype,"noBottomMarginInAds",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],qW.prototype,"isShelfItem",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.x("design:type",Boolean)],qW.prototype,"isReelItemStyleAvatarCircle",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.x("design:type",Boolean)],qW.prototype,"isLinkCardFullWidth",void 0);_.d([_.M(),_.x("design:type",Object)],qW.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],qW.prototype,"useCompactList",void 0);_.d([_.M(),_.x("design:type",String)],qW.prototype,"sizing",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],qW.prototype,"typographyBump",void 0);_.d([_.M(),_.x("design:type",Number)],qW.prototype,"itemWidth",void 0);_.d([_.M(),_.x("design:type",Boolean)],qW.prototype,"isHomeShelf",void 0);_.d([_.M(),_.x("design:type",Boolean)],qW.prototype,"isHomeGrid",void 0);
_.d([_.o5("yt-lockup-view-model"),_.x("design:type",HTMLElement)],qW.prototype,"lockup",void 0);_.d([_.o5("ytd-rich-grid-media"),_.x("design:type",HTMLElement)],qW.prototype,"richGridMedia",void 0);_.d([_.o5("ytd-ad-slot-renderer"),_.x("design:type",HTMLElement)],qW.prototype,"adSlotRenderer",void 0);_.d([_.M({computed:"computeContainerType(useCompactList)"}),_.x("design:type",Object)],qW.prototype,"containerType",void 0);_.d([_.M(),_.x("design:type",Object)],qW.prototype,"thumbnailTargetWidth",void 0);
_.d([_.m("showYtInteractionOnRichItem"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],qW.prototype,"showYtInteractionOnRichGridMedia",null);_.d([_.m("isSelectableFeedbackItem","richGridHoverHighlight"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],qW.prototype,"showYtInteractionOnRichItem",null);_.d([_.m("typographyBump","isHomeGrid"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],qW.prototype,"richTypographyBump",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data","isShortsGrid","isCompactGrid"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],qW.prototype,"richGridHoverHighlight",null);_.d([_.m("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.x("design:type",Number),_.x("design:paramtypes",[])],qW.prototype,"shortsLockupViewModelAspectRatio",null);_.d([_.m("isInlineGroupItem"),_.x("design:type",Number),_.x("design:paramtypes",[])],qW.prototype,"shortsLockupViewModelScrimStyle",null);
_.d([_.Os("itemWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qW.prototype,"itemWidthChanged",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qW.prototype,"updateIsInFirstColumn",null);_.d([_.Os("containerType","sizing","typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qW.prototype,"observerContainerType",null);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],qW.prototype,"isResponsiveGrid",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],qW.prototype,"lockupExperiments",null);_.d([_.Os("richGridHoverHighlight"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qW.prototype,"richGridHoverHighlightChanged",null);_.d([_.Y({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],qW);
_.IA6=_.E_()(qW,"ytd-rich-item-renderer",function(){if(fAQ===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);fAQ=D}D=fAQ;return D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var XSX={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var uMk=_.H7(_.OT("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var LrV={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},gyV={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},JH6={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var Q8a;var FS=function(){var D=_.X.apply(this,arguments)||this;D.useResponsiveGrid=!1;D.hidden=!1;D.isShowMoreHidden=!1;D.isShowLessHidden=!0;D.hasExpansionButton=!1;D.isInnerShelf=!1;D.allVideosCount=0;D.allPlaylistCount=0;D.haveSmartDownloadsCompleted=!1;D.restrictContentsOverflow=!1;D.firstShownIndex=0;D.horizontalOffset=0;D.atEnd=!0;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
D.nextClick=function(){var t;(t=D.data)!=null&&t.contents&&(D.firstShownIndex+=D.currentElementsPerRow,D.updateHorizontalOffset(),D.updateHorizontalItemVisibility())};
D.previousClick=function(){var t;(t=D.data)!=null&&t.contents&&(D.firstShownIndex-=D.currentElementsPerRow,D.updateHorizontalOffset(),D.updateHorizontalItemVisibility())};
return D};
_.P(FS,_.X);_.q=FS.prototype;
_.q.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.YC("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.q.attached=function(){this.requestElementsPerRow()};
_.q.refreshGridLayoutNew=function(){var D;if((D=this.data)!=null&&D.contents&&this.containerWidth){var t;((t=this.data.responsiveContainerConfiguration)==null?0:t.responsiveSize)?(D=_.QpV(this.data.responsiveContainerConfiguration,this.containerWidth),D=_.xi(Object.assign({},D,{standardUnitMinWidth:this.standardUnitMinWidth}))):D=_.xi({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=D.typographyBump;if(this.elementsPerRow!==
D.numItems||this.gutter!==D.gutter)this.elementsPerRow=D.numItems,this.gutter=D.gutter,this.itemWidth=D.itemWidth,_.jZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":D.gutter+"px"})}};
_.q.computeSizing=function(){if(!this.isLumiere){var D=_.cQX(this.data);return D?D:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.q.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.q.computeButton=function(D){var t=_.O(D,_.aj);D=Object.assign({},_.O(D,_.aj));return t?(D.text||(D.text={simpleText:D.tooltip}),D.style="STYLE_MONO_OUTLINE",D.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",D):t};
_.q.onRowIndexChange=function(){var D=_.v3(),t,H;((t=this.data)==null?0:t.trackingParams)&&((H=this.data)==null?void 0:H.rowIndex)!=null&&D&&_.eR(D,_.Sa(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.q.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var D,t=((D=this.getRichItemRenderers()[0])==null?void 0:D.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*t;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.q.requestElementsPerRow=function(){_.Gf(this.hostElement,"yt-request-elements-per-row")};
_.q.onUpdateElementsPerRowAction=function(D,t,H,e,V,b){if(this.containerWidth!==b&&(this.containerWidth=b,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&D&&t&&H&&e&&V&&(this.elementsPerRow!==D||this.postsPerRow!==t||this.slimItemsPerRow!==H||this.gameCardsPerRow!==e||this.miniGameCardsPerRow!==V)&&(this.elementsPerRow=D,this.postsPerRow=t,this.slimItemsPerRow=H,this.gameCardsPerRow=e,this.miniGameCardsPerRow=V,this.updateItemVisibility())};
_.q.isExpandedChanged=function(){var D=this.getRichItemRenderers(),t=this.isExpanded;D.forEach(function(H){H.halfBottomMargin=t})};
_.q.isCollapsedChanged=function(){var D=this.getRichItemRenderers(),t=this.isCollapsed;D.forEach(function(H){H.noBottomMargin=t})};
_.q.getRichItemRenderers=function(){return _.Kg(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.q.updateItemVisibility=function(){var D=this;if(this.data&&this.data.contents){var t=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(e,V){var b;((b=D.data)==null?0:b.isExpanded)?(e.hidden=V>t-1,e.ytRendererBehavior.markDirty()):e.hidden=V>D.currentElementsPerRow-1||V>t-1});
var H=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||H||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||H||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.q.setHeightToSingleRow=function(){var D=this.getRichItemRenderers(),t=Number.parseInt(getComputedStyle(D[0]).marginBottom,10)||0;D=D.slice(0,this.currentElementsPerRow).reduce(function(H,e){return Math.max(H,e.getBoundingClientRect().height+t)},0);
this.contents.style.height=D+"px"};
_.q.focusNextExpandedItem=function(){var D;((D=this.data)==null?0:D.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.q.focusItem=function(D,t){var H=this.getRichItemRenderers();if(H[D]&&(D=H[D].querySelector(".focus-on-expand"))){if(t){var e;(e=H[this.currentElementsPerRow])==null||e.scrollIntoView({behavior:"smooth",block:"center"})}D.focus({preventScroll:!0})}};
_.q.onDataChange=function(){var D=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var t;if((t=this.data)==null?0:t.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.Vi(this,function(){D.updateItemVisibility()});
var H;if((H=this.data)==null?0:H.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.jZ(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),t=0;t<this.data.contents.length;t++)H=_.O(this.data.contents[t],_.Wu)||{},H.colIndex=t,H.rowIndex=this.data.rowIndex};
_.q.handleRerenderDownloadsData=function(){_.r("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())};
_.q.blockInlinePreview=function(D){var t=this,H;return _.Z(function(e){(H=t.inlinePreviewIsEnabled)&&t.ytdReduxBehavior.dispatch(_.M3a(!1));return e.return(new Promise(function(V){D(function(){H&&t.ytdReduxBehavior.dispatch(_.M3a(!0));V()})}))})};
_.q.expandShelf=function(){var D=this;if(this.data){var t,H=(t=_.O(this.data.showMoreButton,_.aj))==null?void 0:t.trackingParams;H&&_.YS(_.Pc(),H);this.set("data.isExpanded",!0);this.blockInlinePreview(function(e){D.setHeightToSingleRow();D.updateItemVisibility();D.contents.style.height=D.contents.scrollHeight+"px";_.Jy.addJob(function(){D.contents.style.height="auto";D.focusNextExpandedItem();e()},2,200)})}};
_.q.collapseShelf=function(){var D=this;return _.Z(function(t){if(t.nextAddress==1){if(!D.data)return t.return();D.set("data.isExpanded",!1);return t.yield(D.blockInlinePreview(function(H){D.contents.style.height=D.contents.scrollHeight+"px";D.setHeightToSingleRow();_.Jy.addJob(function(){D.updateItemVisibility();D.contents.style.height="auto";H()},2,200)}),2)}_.Gf(D.hostElement,"yt-rich-shelf-renderer-collapse",D.data.trackingParams);
D.focusItem(0,!1);_.n2(t)})};
_.q.updateArrowButtonStatus=function(){var D=this.getRichItemRenderers().length;if(!_.r("web_rich_shelf_renderer_use_data_contents_killswitch")){var t,H;D=((t=this.data)==null?void 0:(H=t.contents)==null?void 0:H.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=D};
_.q.onChildElementFocus=function(D){this.hasChevronButtons&&(D=D.target.closest("#contents > *"),this.contents.contains(D)&&(D.offsetLeft<this.horizontalOffset?this.previousClick():D.offsetLeft+D.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.q.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.YC("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.q.updateHorizontalOffset=function(){var D=this.getRichItemRenderers(),t=D.length;if(!_.r("web_rich_shelf_renderer_use_data_contents_killswitch")){var H,e;t=((H=this.data)==null?void 0:(e=H.contents)==null?void 0:e.length)||0}var V;D=((V=D[0])==null?void 0:V.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>t?this.firstShownIndex=t-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*D};
_.q.isSlimMediaShelfRenderer=function(){var D,t,H,e=(H=_.O((D=this.data)==null?void 0:(t=D.contents)==null?void 0:t[0],_.Wu))==null?void 0:H.content;return!!(_.O(e,_.Gz6)||_.O(e,h_a)||_.O(e,_.F5)||_.O(e,XKv))};
_.q.isGameCardShelf=function(){var D,t,H,e=(H=_.O((D=this.data)==null?void 0:(t=D.contents)==null?void 0:t[0],_.Wu))==null?void 0:H.content;return!!_.O(e,Rww)};
_.q.isMiniGameCardShelf=function(){var D,t,H,e=(H=_.O((D=this.data)==null?void 0:(t=D.contents)==null?void 0:t[0],_.Wu))==null?void 0:H.content;return!!_.O(e,qia)||!!_.O(e,FKB)};
_.q.hasGameBoxArtAvatarStyle=function(){var D;return((D=this.data)==null?void 0:D.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.q.hasRoundedGameBoxArtAvatarStyle=function(){var D;return((D=this.data)==null?void 0:D.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.q.isShortsShelf=function(){var D,t,H,e=(H=_.O((D=this.data)==null?void 0:(t=D.contents)==null?void 0:t[0],_.Wu))==null?void 0:H.content;return!!_.O(e,_.F5)||!!_.O(e,XKv)};
_.q.isPostShelfRenderer=function(){var D,t,H,e=(H=_.O((D=this.data)==null?void 0:(t=D.contents)==null?void 0:t[0],_.Wu))==null?void 0:H.content;return!(!_.O(e,Xlm)&&!_.O(e,fEn))};
_.q.isLumiereShelf=function(){var D,t,H=_.O((D=this.data)==null?void 0:(t=D.contents)==null?void 0:t[0],_.Wu);return!!_.O(H==null?void 0:H.content,xkQ)};
_.q.isLumiereShelfWithPosters=function(){var D,t,H=_.O((D=this.data)==null?void 0:(t=D.contents)==null?void 0:t[0],_.Wu),e;return((e=_.O(H==null?void 0:H.content,xkQ))==null?void 0:e.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.q.isExpandOnHoverCardShelf=function(){var D,t,H,e=(H=_.O((D=this.data)==null?void 0:(t=D.contents)==null?void 0:t[0],_.Wu))==null?void 0:H.content;return!!_.O(e,dkQ)};
_.q.computeHasFeaturedBadge=function(){var D,t,H=_.O((D=this.data)==null?void 0:(t=D.badges)==null?void 0:t[0],_.Zv6);return H?H.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.q.computeHasPaygatedFeaturedBadge=function(){var D,t,H=_.O((D=this.data)==null?void 0:(t=D.badges)==null?void 0:t[0],_.Zv6);return H?(H==null?void 0:H.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.q.computeHeaderHidden=function(){var D,t,H,e,V,b;return!((D=this.data)==null?0:D.icon)&&!((t=this.data)==null?0:t.title)&&!((H=this.data)==null?0:H.subtitle)&&!((e=this.data)==null?0:e.thumbnail)&&!((V=this.data)==null?0:V.badges)&&!((b=this.data)==null?0:b.menu)};
_.q.showCtaButton=function(){var D;return!((D=this.data)==null||!D.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.q.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.q.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.q.computeForce16By9ThumbnailAspectRatio=function(){var D,t;return((D=this.data)==null?void 0:(t=D.responsiveContainerConfiguration)==null?void 0:t.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.q.onSectionReactiveDismissal=function(D,t,H){var e,V;var b=(e=this.data)==null?void 0:(V=e.targetingContext)==null?void 0:V.targetGroupId;this&&b&&t.targetGroupId&&b.includes(t.targetGroupId)?(e=this.rowIndex,D=e===void 0?!1:!(t.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&e<=D)):D=!1;D&&(this.hidden=H)};
_.ql.Object.defineProperties(FS.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var D=this.elementsPerRow;this.isPostShelfRenderer()?D=this.postsPerRow:this.isSlimMediaShelfRenderer()?D=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?D=this.slimItemsPerRow-1:this.isGameCardShelf()?D=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(D=this.miniGameCardsPerRow);return D}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.r("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null?0:D.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var D,t;return!((D=this.data)==null||!D.previousButton)&&!((t=this.data)==null||!t.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var D;return((D=_.qS().resolve(_.bO).getCurrentPage())==null?void 0:D.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e;return!((D=this.data)==null?0:(t=D.thumbnail)==null?0:(H=t.accessibility)==null?0:(e=H.accessibilityData)==null?0:e.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
FS.prototype.onChildElementFocus=FS.prototype.onChildElementFocus;FS.prototype.handleRerenderDownloadsData=FS.prototype.handleRerenderDownloadsData;FS.prototype.onDataChange=FS.prototype.onDataChange;FS.prototype.isCollapsedChanged=FS.prototype.isCollapsedChanged;FS.prototype.isExpandedChanged=FS.prototype.isExpandedChanged;FS.prototype.onRowIndexChange=FS.prototype.onRowIndexChange;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],FS.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],FS.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],FS.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],FS.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],FS.prototype,"ytdReduxBehavior",void 0);
_.d([_.M({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.x("design:type",Object)],FS.prototype,"useResponsiveGrid",void 0);_.d([_.M(),_.x("design:type",Object)],FS.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Number)],FS.prototype,"standardUnitMinWidth",void 0);_.d([_.M({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],FS.prototype,"elementsPerRow",void 0);_.d([_.M({value:3}),_.x("design:type",Number)],FS.prototype,"postsPerRow",void 0);
_.d([_.M({value:6}),_.x("design:type",Number)],FS.prototype,"slimItemsPerRow",void 0);_.d([_.M({value:6}),_.x("design:type",Number)],FS.prototype,"gameCardsPerRow",void 0);_.d([_.M({value:6}),_.x("design:type",Number)],FS.prototype,"miniGameCardsPerRow",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"hidden",void 0);_.d([_.M(),_.x("design:type",Object)],FS.prototype,"isShowMoreHidden",void 0);
_.d([_.M(),_.x("design:type",Object)],FS.prototype,"isShowLessHidden",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"hasExpansionButton",void 0);_.d([_.m("data.isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],FS.prototype,"isExpanded",null);_.d([_.m("data.isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],FS.prototype,"isCollapsed",null);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"isInnerShelf",void 0);_.d([_.M({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.x("design:type",Boolean)],FS.prototype,"isShorts",void 0);_.d([_.M({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.x("design:type",Boolean)],FS.prototype,"isLumiere",void 0);_.d([_.M({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.x("design:type",Boolean)],FS.prototype,"hasBoxArtThumbnailStyle",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.x("design:type",Boolean)],FS.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.x("design:type",Boolean)],FS.prototype,"hasFeaturedBadge",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.x("design:type",Boolean)],FS.prototype,"hasPaygatedFeaturedBadge",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.x("design:type",Boolean)],FS.prototype,"isHeaderHidden",void 0);_.d([_.M({selector:_.UCK}),_.x("design:type",Object)],FS.prototype,"allVideosCount",void 0);_.d([_.M({selector:IoV}),_.x("design:type",Object)],FS.prototype,"allPlaylistCount",void 0);_.d([_.M({selector:LOV}),_.x("design:type",Object)],FS.prototype,"haveSmartDownloadsCompleted",void 0);
_.d([_.M({selectorArgs:["entitySelectorType"],selector:function(D,t){if(_.r("kevlar_modern_downloads_page")&&t&&t!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var H=D.entities;switch(t){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":t=_.AV(H);D=$G(t);var e=_.m1(t);H=_.JV(H);H=_.wO(loA(e,H,t.length));return{contents:D,subtitle:H};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return H=_.AV(H),{contents:$G(H)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return H=
_.gO(H),{contents:$G(H)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return H=_.HpT(H),{contents:$G(H)};default:_.Yw(new _.nZ("Error: entitySelectorType defined but not matched in selector.",D,t))}}}}),
_.x("design:type",Object)],FS.prototype,"entityDrivenRichShelfData",void 0);_.d([_.M({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.x("design:type",Boolean)],FS.prototype,"hasTopCtaButton",void 0);_.d([_.M({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.x("design:type",Boolean)],FS.prototype,"hasBottomCtaButton",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.x("design:type",Boolean)],FS.prototype,"force16By9ThumbnailAspectRatio",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],FS.prototype,"restrictContentsOverflow",void 0);_.d([_.M({selector:_.jmX}),_.x("design:type",Boolean)],FS.prototype,"inlinePreviewIsEnabled",void 0);_.d([_.M({computed:"computeSizing(data)"}),_.x("design:type",String)],FS.prototype,"sizing",void 0);
_.d([_.M(),_.x("design:type",Boolean)],FS.prototype,"typographyBump",void 0);_.d([_.M(),_.x("design:type",Number)],FS.prototype,"itemWidth",void 0);_.d([_.M(),_.x("design:type",Object)],FS.prototype,"firstShownIndex",void 0);_.d([_.M(),_.x("design:type",Object)],FS.prototype,"horizontalOffset",void 0);_.d([_.M(),_.x("design:type",Object)],FS.prototype,"atEnd",void 0);_.d([_.o5("#contents"),_.x("design:type",HTMLElement)],FS.prototype,"contents",void 0);
_.d([_.Os("data.rowIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FS.prototype,"onRowIndexChange",null);_.d([_.Os("isExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FS.prototype,"isExpandedChanged",null);_.d([_.Os("isCollapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FS.prototype,"isCollapsedChanged",null);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FS.prototype,"onDataChange",null);_.d([_.Os("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FS.prototype,"handleRerenderDownloadsData",null);_.d([_.rx("focusin"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],FS.prototype,"onChildElementFocus",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data","isHomePage"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],FS.prototype,"isTruncated",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],FS.prototype,"showBottomDivider",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],FS.prototype,"hasChevronButtons",null);
_.d([_.m("firstShownIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],FS.prototype,"previousButtonOverride",null);_.d([_.m("atEnd"),_.x("design:type",Object),_.x("design:paramtypes",[])],FS.prototype,"nextButtonOverride",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],FS.prototype,"isHomePage",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],FS.prototype,"thumbnailAriaHidden",null);
_.d([_.m("data"),_.x("design:type",String),_.x("design:paramtypes",[])],FS.prototype,"entitySelectorType",null);_.d([_.Y({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],FS);
_.yS6=_.E_()(FS,"ytd-rich-shelf-renderer",function(){if(Q8a===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);Q8a=D}D=Q8a;return D},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var BPn;_.hB(_.Mi,"yt-badge-view-model",{props:{data:_.ij,class:_.ij,workaroundShortsIsThumbnailBadge:_.ij,modern:_.ij,numBadgesInRow:_.ij}});_.hB(rv6,"yt-slimline-survey-view-model",{props:{data:_.ij}});var ad=function(){var D=_.X.apply(this,arguments)||this;D.tileLottieAnimationRef={};D.backgroundLottieAnimationRef={};D.isOnHoverBehaviorForLottieEnabled=!0;D.useBiggerShowcaseImage=_.r("enable_desktop_search_bigger_thumbs");D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return D};
_.P(ad,_.X);_.q=ad.prototype;_.q.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.q.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.q.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var D=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);D!==this.hasTile&&this.set("hasTile",D);D=this.hasLogo(this.data)||!!this.data.badgeText;D!==this.hasMetadata&&this.set("hasMetadata",D);D=this.data.overflowButton?!1:D;D!==this.showLogoImage&&this.set("showLogoImage",D);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.q.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.q.currentColorChanged=function(){this.updateButtonPalette()};
_.q.computeBackgroundStyle=function(D){if(D&&this.data){var t=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var H=_.E7((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);H&&t.push('background-image: url("'+H+'");')}var e;((e=D.basicColorData)==null?void 0:e.backgroundColor)!==void 0&&t.push("background-color: "+_.Qk(D.basicColorData.backgroundColor)+";");return t.join("")}};
_.q.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D)};
_.q.getCurrentLogo=function(D,t){if(D)return t?D.darkLogoImage:D.lightLogoImage};
_.q.getCurrentStaticTileImage=function(D,t){if(this.hasStaticTile(D))return D.darkTileImage?t?D.darkTileImage:D.tileImage:D.tileImage};
_.q.computeTitleStyle=function(D){if(this.data&&this.data.title&&D&&D.basicColorData&&D.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.Ih(D.basicColorData.foregroundTitleColor)+";"};
_.q.computeSubtitleStyle=function(D){if(this.data&&this.data.subtitle&&D&&D.basicColorData&&D.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.Ih(D.basicColorData.foregroundBodyColor)+";"};
_.q.computeSupplementalStyle=function(D){if(this.data&&this.data.supplementalText&&D&&D.supplementalTextColor!==void 0)return D=_.Ih(D.supplementalTextColor),"color:"+D+";--yt-endpoint-color:"+D+";--yt-endpoint-hover-color:"+D+";--yt-endpoint-visited-color:"+D+";--yt-formatted-string-bold-font-weight:700;"};
_.q.computeDismissIconStyle=function(D){var t,H;if((D==null?0:(t=D.dismissButtonColorData)==null?0:t.foregroundTitleColor)&&(D==null?0:(H=D.dismissButtonColorData)==null?0:H.backgroundColor))return"--yt-button-color:"+_.Qk(D.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Qk(D.dismissButtonColorData.backgroundColor)+";"};
_.q.computeOverflowIconStyle=function(D){var t,H;if((D==null?0:(t=D.dismissButtonColorData)==null?0:t.foregroundTitleColor)&&(D==null?0:(H=D.dismissButtonColorData)==null?0:H.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Qk(D.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Qk(D.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Qk(D.dismissButtonColorData.foregroundTitleColor)+";"};
_.q.computeBannerStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.q.computeLocation=function(D){switch(D==null?void 0:D.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.q.shouldShowTileSection=function(D,t,H){return!this.shouldExpandLogo(D,t,H)&&t};
_.q.shouldShowExpandedLogoSection=function(D,t,H){return this.shouldExpandLogo(D,t,H)&&D!==void 0&&this.hasLogo(D)};
_.q.shouldExpandLogo=function(D,t,H){return D&&t?!1:H>=2};
_.q.hasStaticTile=function(D){return!(D==null||!D.tileImage)};
_.q.hasTileLottie=function(D){var t;return!!(D==null?0:(t=D.tileLottie)==null?0:t.url)};
_.q.hasLogo=function(D){return this.getCurrentLogo(D,this.isDarkTheme)!==void 0};
_.q.getLogoHeight=function(D){return this.logoWithPadding(D)?"26":"20"};
_.q.getExpandedLogoHeight=function(D){return this.logoWithPadding(D)?"31":"24"};
_.q.getLogoImageId=function(D){return this.logoWithPadding(D)?"logo-image-with-padding":"logo-image"};
_.q.getMaxTitleFontSize=function(D){return D.overrideTitleMaxFontSize?String(D.overrideTitleMaxFontSize):"36"};
_.q.hasBackgroundLottie=function(D){var t;return!!(D==null?0:(t=D.backgroundLottie)==null?0:t.url)};
_.q.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var D,t;(D=this.tileLottieAnimationRef)==null||(t=D.lottieEl)==null||t.play();var H,e;(H=this.backgroundLottieAnimationRef)==null||(e=H.lottieEl)==null||e.play()}};
_.q.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var D,t;(D=this.tileLottieAnimationRef)==null||(t=D.lottieEl)==null||t.pause();var H,e;(H=this.backgroundLottieAnimationRef)==null||(e=H.lottieEl)==null||e.pause()}};
_.q.pauseLottie=function(){var D,t;(D=this.tileLottieAnimationRef)==null||(t=D.lottieEl)==null||t.pause();var H,e;(H=this.backgroundLottieAnimationRef)==null||(e=H.lottieEl)==null||e.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.q.performPrimaryButtonAction=function(){var D,t,H;((D=this.data)==null?0:(t=D.primaryButton)==null?0:(H=t.buttonRenderer)==null?0:H.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.q.requestElementsPerRow=function(){_.Gf(this.hostElement,"yt-request-elements-per-row")};
_.q.updateButtonPalette=function(){if(this.data&&this.currentColorData){var D;((D=this.data.dismissButton)==null?0:D.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var t;if((t=this.data.primaryButton)==null?0:t.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var H;if((H=this.data.secondaryButton)==
null?0:H.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 e;((e=this.data.primaryButton)==null?0:e.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var V;((V=this.data.secondaryButton)==null?0:V.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var b;((b=this.data.primaryButton)==null?0:b.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.q.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var D=this.getTileLottieDataBasedOnTheme(),t,H;if(D.url!==((t=this.tileLottiePlayerProps)==null?void 0:(H=t.animationConfig)==null?void 0:H.path)){var e,V;(e=this.tileLottieAnimationRef)==null||(V=e.lottieEl)==null||V.destroy();var b;this.isOnHoverBehaviorForLottieEnabled=!((b=D.settings)==null?0:b.autoplay);var a,w;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(w=(a=D.settings)==null?void 0:a.autoplay)!=null?w:!1,loop:this.getLottieLoopValue(D.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof D.url==="string"?this.tileLottiePlayerProps.animationConfig.path=D.url:this.tileLottiePlayerProps.animationConfig.animationData=D.url}}};
_.q.getOverflowButton=function(D){return _.O(D.overflowButton,J19)};
_.q.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var D=this.getBackgroundLottieDataBasedOnTheme(),t,H;if(D.url!==((t=this.backgroundLottiePlayerProps)==null?void 0:(H=t.animationConfig)==null?void 0:H.path)){var e,V;(e=this.backgroundLottieAnimationRef)==null||(V=e.lottieEl)==null||V.destroy();var b;this.isOnHoverBehaviorForLottieEnabled=!((b=D.settings)==null?0:b.autoplay);var a,w;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(w=(a=D.settings)==null?void 0:a.autoplay)!=null?w:!1,loop:this.getLottieLoopValue(D.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof D.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=D.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
D.url}}};
_.q.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var D;((D=this.tileLottieAnimationRef)==null?void 0:D.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var t;((t=this.backgroundLottieAnimationRef)==null?void 0:t.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.q.getTileLottieDataBasedOnTheme=function(){var D;if(this.isDarkTheme&&((D=this.data)==null?0:D.darkThemeTileLottie))return this.data.darkThemeTileLottie;var t;return((t=this.data)==null?0:t.tileLottie)?this.data.tileLottie:{}};
_.q.getBackgroundLottieDataBasedOnTheme=function(){var D;if(this.isDarkTheme&&((D=this.data)==null?0:D.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var t;return((t=this.data)==null?0:t.backgroundLottie)?this.data.backgroundLottie:{}};
_.q.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D)};
_.q.getLottieLoopValue=function(D){return D?D.loop!==void 0?D.loop:D.loopCount?D.loopCount-1:!0:!0};
_.q.logoWithPadding=function(D){var t,H,e;return(D=(t=this.getCurrentLogo(D,this.isDarkTheme))==null?void 0:(H=t.thumbnails)==null?void 0:(e=H[0])==null?void 0:e.height)&&D%31===0?!0:!1};
ad.prototype.currentColorChanged=ad.prototype.currentColorChanged;ad.prototype.themeChanged=ad.prototype.themeChanged;ad.prototype.dataChanged=ad.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ad.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],ad.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],ad.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],ad.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ad.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],ad.prototype,"primaryButton",void 0);_.d([_.M(),_.x("design:type",Object)],ad.prototype,"secondaryButton",void 0);
_.d([_.M({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],ad.prototype,"elementsPerRow",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],ad.prototype,"isDarkTheme",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],ad.prototype,"hasTile",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],ad.prototype,"hasMetadata",void 0);
_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],ad.prototype,"showLogoImage",void 0);_.d([_.M(),_.x("design:type",Object)],ad.prototype,"currentColorData",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.x("design:type",String)],ad.prototype,"bannerStyle",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.x("design:type",String)],ad.prototype,"location",void 0);
_.d([_.M(),_.x("design:type",Object)],ad.prototype,"tileLottiePlayerProps",void 0);_.d([_.M(),_.x("design:type",Object)],ad.prototype,"tileLottieAnimationRef",void 0);_.d([_.M(),_.x("design:type",Object)],ad.prototype,"backgroundLottiePlayerProps",void 0);_.d([_.M(),_.x("design:type",Object)],ad.prototype,"backgroundLottieAnimationRef",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ad.prototype,"useBiggerShowcaseImage",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],ad.prototype,"isHideEnclosingAction",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ad.prototype,"dataChanged",null);_.d([_.mx("isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ad.prototype,"themeChanged",null);
_.d([_.mx("currentColorData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ad.prototype,"currentColorChanged",null);_.d([_.Y({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],ad);
_.p(ad,"ytd-statement-banner-renderer",function(){if(BPn!==void 0)return BPn;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" 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 id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return BPn=D},{mode:1});var zBQ;var ws=function(){var D=_.X.apply(this,arguments)||this;D.isSearch=!1;D.hideShelfHeader=!1;D.engagementPanel=!1;D.disableMouseScroll=!0;D.useFloorScrolling=!0;return D};
_.P(ws,_.X);ws.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.OT("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.OT("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
ws.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ws.prototype.onDataChanged=ws.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ws.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ws.prototype,"isSearch",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ws.prototype,"hideShelfHeader",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ws.prototype,"engagementPanel",void 0);_.d([_.M(),_.x("design:type",Object)],ws.prototype,"disableMouseScroll",void 0);_.d([_.M(),_.x("design:type",Object)],ws.prototype,"useFloorScrolling",void 0);_.d([_.M(),_.x("design:type",Object)],ws.prototype,"data",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ws.prototype,"onDataChanged",null);
_.d([_.Y({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],ws);
_.p(ws,"ytd-reel-shelf-renderer",function(){if(zBQ!==void 0)return zBQ;var D=document.createElement("template");_.n(D,'\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    <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-reel-shelf-renderer"> </yt-formatted-string>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return zBQ=D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var Dr9;var t$4;t$4=_.zk(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.H9B=_.E5(t$4);var e4m=_.l(function(D){var t=D.data;D=D.useSmallFont;var H={},e={};return _.G("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.G(_.E,{cond:function(){return t().favicon},
then:function(V){return _.G(_.bi,{data:V,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.G("div",{class:"ytChannelExternalLinkViewModelContainer"},_.G(_.$7,{text:function(){return t().title},
className:_.jQ("ytChannelExternalLinkViewModelTitle",(H.ytChannelExternalLinkViewModelTitleSmallFont=D,H)),ellipsisTruncate:!0,userInput:!0}),_.G(_.$7,{text:function(){return t().link},
className:_.jQ("ytChannelExternalLinkViewModelLink",(e.ytChannelExternalLinkViewModelLinkSmallFont=D,e)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Ic");
e4m.idomCompat=!0;_.hB(e4m,"yt-channel-external-link-view-model",{props:{data:_.ij,useSmallFont:_.ij}});_.AB("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Zn=function(){var D=_.X.apply(this,arguments)||this;D.revealButtonClass="button";D.businessEmailDisplayState="HIDE_SECTION";return D};
_.P(Zn,_.X);_.q=Zn.prototype;_.q.refit=function(){var D=this;_.BT(function(){_.Kl(D.hostElement,"yt-refit-popups-action")});
_.Vi(this,function(){_.Kl(D.hostElement,"yt-refit-popups-action")})};
_.q.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Iz(_.H9B),this.businessEmailDisplayState="CAPTCHA")};
_.q.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"};
_.q.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.q.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"}}}};
_.q.computeEmailHref=function(D){return"mailto:"+D};
_.q.computeSafeUrl=function(D){if(D)return _.dw(D)};
_.q.linkEndpoint=function(D){return _.O(D.onTap,_.dj)};
_.q.linkEndpointToHref=function(D){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(D))};
_.q.onYtServiceRequestCompleted=function(D){var t;if((t=D.detail.data)==null?0:t.businessEmail)this.businessEmail=D.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var H;if((H=D.detail.data)==null?0:H.errorMessage)this.businessEmailErrorMessage=D.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.q.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var D=this.JSC$16271_captchaTextarea.value;if(D){D={recaptcha_response_token:D,channel_id:this.metadata.channelId};var t=_.O(this.metadata.onBusinessEmailRevealClickCommand,_.dj);t&&this.ytComponentBehavior.resolveCommand(t,{form:D})}}};
_.q.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.ql.Object.defineProperties(Zn.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var D;return _.O((D=this.data)==null?void 0:D.metadata,IEn)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.O(this.metadata.businessEmailRevealButton,_.h1)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var D=new URL(this.metadata.canonicalChannelUrl);return D.host+D.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 _.O(this.metadata.learnMoreOnTap,_.dj)}}});
Zn.prototype.onYtServiceRequestCompleted=Zn.prototype.onYtServiceRequestCompleted;Zn.prototype.businessEmailMetadataChanged=Zn.prototype.businessEmailMetadataChanged;Zn.prototype.refit=Zn.prototype.refit;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Zn.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Zn.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Zn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.o5("#g-recaptcha-response"),_.x("design:type",HTMLTextAreaElement)],Zn.prototype,"JSC$16271_captchaTextarea",void 0);_.d([_.M(),_.x("design:type",Object)],Zn.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Zn.prototype,"revealButtonClass",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Zn.prototype,"metadata",null);
_.d([_.m("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Zn.prototype,"revealButton",null);_.d([_.m("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Zn.prototype,"channelDisplayUrl",null);_.d([_.mx("metadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Zn.prototype,"refit",null);_.d([_.m("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Zn.prototype,"formattedDescription",null);
_.d([_.m("metadata","learnMoreCommand"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Zn.prototype,"shouldRendereVerifiedPhoneStatus",null);_.d([_.m("metadata"),_.x("design:type",Object),_.x("design:paramtypes",[])],Zn.prototype,"learnMoreCommand",null);_.d([_.M(),_.x("design:type",String)],Zn.prototype,"businessEmailDisplayState",void 0);_.d([_.M(),_.x("design:type",String)],Zn.prototype,"businessEmail",void 0);
_.d([_.M(),_.x("design:type",String)],Zn.prototype,"businessEmailErrorMessage",void 0);_.d([_.mx("metadata"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Zn.prototype,"businessEmailMetadataChanged",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Zn.prototype,"onYtServiceRequestCompleted",null);_.d([_.Y({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Zn);
_.p(Zn,"ytd-about-channel-renderer",function(){if(Dr9!==void 0)return Dr9;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Dr9=D},{mode:1});var V$V;var s3=function(){return _.X.apply(this,arguments)||this};
_.P(s3,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],s3.prototype,"data",void 0);_.d([_.Y({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],s3);
_.p(s3,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(V$V!==void 0)return V$V;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return V$V=D},{mode:1});var b9v;var hc=function(){return _.X.apply(this,arguments)||this};
_.P(hc,_.X);hc.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],hc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],hc.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],hc.prototype,"aligment",void 0);_.d([_.Y({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],hc);
_.p(hc,"ytd-channel-list-sub-menu-renderer",function(){if(b9v!==void 0)return b9v;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return b9v=
D},{mode:1});var qfn;var Gj=function(){return _.X.apply(this,arguments)||this};
_.P(Gj,_.X);Gj.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}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Gj.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Gj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Gj.prototype,"data",void 0);_.d([_.Y({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],Gj);
_.p(Gj,"ytd-channel-sub-menu-renderer",function(){if(qfn!==void 0)return qfn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return qfn=D},{mode:1});var Fmn;var aCV;var E3=function(){var D=_.X.apply(this,arguments)||this;D.isCompact=!1;return D};
_.P(E3,_.X);_.ql.Object.defineProperties(E3.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var D,t;return((t=_.O((D=this.data)==null?void 0:D.endpoint,_.um))==null?void 0:t.target)==="TARGET_NEW_WINDOW"}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],E3.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],E3.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],E3.prototype,"isCompact",void 0);_.d([_.m("isCompact"),_.x("design:type",Number),_.x("design:paramtypes",[])],E3.prototype,"thumbnailWidth",null);
_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],E3.prototype,"openNewWindow",null);_.d([_.Y({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],E3);
_.p(E3,"ytd-media-lockup-renderer",function(){if(aCV!==void 0)return aCV;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return aCV=D},{mode:1});var wan;var Km=function(){return _.X.apply(this,arguments)||this};
_.P(Km,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Km.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Km.prototype,"data",void 0);_.d([_.Y({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],Km);
_.p(Km,"ytd-structured-description-channel-lockup-renderer",function(){if(wan!==void 0)return wan;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return wan=D},{mode:1});var Z9n;var NW=function(){var D=_.X.apply(this,arguments)||this;D.isCompact=!1;D.collections=_.r("web_modern_collections_v2");D.collectionsStackColor=_.r("modernize_structured_description_playlist_lockups_v2");return D};
_.P(NW,_.X);NW.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:_.r("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.ql.Object.defineProperties(NW.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e,V,b;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(D=this.data)==null?void 0:(t=D.thumbnail)==null?void 0:t.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(H=this.data)==null?void 0:(e=H.thumbnail)==null?void 0:e.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(V=this.data)==null?void 0:(b=V.thumbnail)==
null?void 0:b.vibrantColorPalette:void 0}}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],NW.prototype,"componentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],NW.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],NW.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],NW.prototype,"showSidePanelThumbnailOverlay",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],NW.prototype,"isCompact",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],NW.prototype,"collections",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],NW.prototype,"collectionsStackColor",void 0);_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],NW.prototype,"twoLineTitle",null);
_.d([_.m("data","collections","collectionsStackColor"),_.x("design:type",Object),_.x("design:paramtypes",[])],NW.prototype,"collectionStack",null);_.d([_.Y({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],NW);
_.p(NW,"ytd-structured-description-playlist-lockup-renderer",function(){if(Z9n!==void 0)return Z9n;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]" aria-label$="[[getSimpleString(data.title)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Z9n=D},{mode:1});var s3Q;var kj=function(){return _.X.apply(this,arguments)||this};
_.P(kj,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],kj.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],kj.prototype,"data",void 0);_.d([_.Y({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],kj);
_.p(kj,"ytd-structured-description-video-lockup-renderer",function(){if(s3Q!==void 0)return s3Q;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return s3Q=D},{mode:2});var Tj=function(){return _.X.apply(this,arguments)||this};
_.P(Tj,_.X);
Tj.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}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Tj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Tj.prototype,"data",void 0);_.d([_.Y({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Tj);
_.p(Tj,"ytd-compact-infocard-renderer",function(){if(Fmn!==void 0)return Fmn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Fmn=D},{mode:1});var h4V;var cR=function(){var D=_.X.apply(this,arguments)||this;D.useModernCollectionsV2=_.r("web_modern_collections_v2");return D};
_.P(cR,_.X);cR.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.ql.Object.defineProperties(cR.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],cR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],cR.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],cR.prototype,"ytdReduxBehavior",void 0);_.d([_.M({selector:_.pb}),_.x("design:type",Object)],cR.prototype,"isGridViewEnabled",void 0);
_.d([_.m("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cR.prototype,"watchFeedBigThumbs",null);_.d([_.m("isGridViewEnabled","data"),_.M({reflectToAttribute:!0,value:"168"}),_.x("design:type",String),_.x("design:paramtypes",[])],cR.prototype,"thumbnailWidth",null);_.d([_.m("isGridViewEnabled","data"),_.M({reflectToAttribute:!0,value:"94"}),_.x("design:type",String),_.x("design:paramtypes",[])],cR.prototype,"customThumbnailSize",null);
_.d([_.M(),_.x("design:type",Object)],cR.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],cR.prototype,"useModernCollectionsV2",void 0);_.d([_.Y({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],cR);
_.p(cR,"ytd-compact-playlist-renderer",function(){if(h4V!==void 0)return h4V;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return h4V=D},{mode:1});var Gb3;var jU=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");D.roundedContainer=!0;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return D};
_.P(jU,_.X);_.q=jU.prototype;_.q.attached=function(){this.requestElementsPerRow()};
_.q.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"}}}};
_.q.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.q.computeViewStyle=function(D){return D.style?D.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.q.onUpdateElementsPerRowAction=function(D){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&D===1};
_.q.requestElementsPerRow=function(){_.Gf(this.hostElement,"yt-request-elements-per-row")};
jU.prototype.dataChanged=jU.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],jU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],jU.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],jU.prototype,"actionHandlerBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],jU.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],jU.prototype,"hideThumbnail",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.x("design:type",String)],jU.prototype,"viewStyle",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],jU.prototype,"darkerDarkTheme",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],jU.prototype,"roundedContainer",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jU.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],jU);
_.p(jU,"ytd-compact-promoted-item-renderer",function(){if(Gb3!==void 0)return Gb3;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Gb3=D},{mode:1});var E5f;var i6=function(){var D=_.X.apply(this,arguments)||this;D.collections=_.r("web_modern_collections_v2");return D};
_.P(i6,_.X);i6.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
i6.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
i6.prototype.onYtNavigate=function(D,t){var H=this;if(t.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",t)){var e=this.get("watchEndpoint.videoId",t.endpoint),V=_.Kl(this.hostElement,"yt-get-current-video-id-action")[0];_.r("kevlar_mix_handle_first_endpoint_different")&&e&&V&&e!==V||(D.stopPropagation(),_.an().getPlayerPromise().then(function(b){if(b.getPlayerState()===0&&H.data.secondaryNavigationEndpoint)var a=H.data.secondaryNavigationEndpoint;else{a=
Object.assign({},t.endpoint);var w=_.O(a.commandMetadata,_.i1);w&&(b=Math.floor(b.getCurrentTime()),w.url=_.z5(w.url,{t:b}),!_.r("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(w=_.O(a,_.Hh)))&&(w.startTimeSeconds=b)}_.Gf(H.hostElement,"yt-navigate",{endpoint:a})}))}};
_.ql.Object.defineProperties(i6.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e,V,b;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(D=this.data)==null?void 0:(t=D.thumbnail)==null?void 0:t.sampledThumbnailColor,vibrantColorPalette:(H=this.data)==null?void 0:(e=H.thumbnail)==null?void 0:e.vibrantColorPalette,darkColorPalette:(V=this.data)==null?void 0:(b=V.thumbnail)==null?void 0:b.darkColorPalette,experimentEnabled:this.collections}}}});
i6.prototype.onYtNavigate=i6.prototype.onYtNavigate;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],i6.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.pE.YtEndpointBehavior),_.x("design:type",Object)],i6.prototype,"ytEndpointBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],i6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],i6.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.C(_.jL),_.x("design:type",Object)],i6.prototype,"ytdLockupBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],i6.prototype,"ytdReduxBehavior",void 0);_.d([_.M({selector:_.pb}),_.x("design:type",Object)],i6.prototype,"isGridViewEnabled",void 0);_.d([_.m("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],i6.prototype,"watchFeedBigThumbs",null);
_.d([_.m("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],i6.prototype,"thumbnailWidth",null);_.d([_.M(),_.x("design:type",Object)],i6.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],i6.prototype,"collections",void 0);_.d([_.m("data","collections"),_.x("design:type",Object),_.x("design:paramtypes",[])],i6.prototype,"collectionStack",null);
_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],i6.prototype,"onYtNavigate",null);_.d([_.Y({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],i6);
_.p(i6,"ytd-compact-radio-renderer",function(){if(E5f!==void 0)return E5f;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return E5f=D},{mode:1});var Kmf;var rs=function(){return _.X.apply(this,arguments)||this};
_.P(rs,_.X);rs.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
rs.prototype.computeRendererStyle=function(D){return D.style?D.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.d([_.M(),_.x("design:type",Object)],rs.prototype,"data",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],rs.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],rs.prototype,"rendererBehavior",void 0);_.d([_.M({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.x("design:type",String)],rs.prototype,"rendererStyle",void 0);_.d([_.Y({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],rs);
_.p(rs,"ytd-compact-text-promo-renderer",function(){if(Kmf!==void 0)return Kmf;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Kmf=D},{mode:1});var NSn;var O3=function(){var D=_.X.apply(this,arguments)||this;D.isShortsStyle=!1;return D};
_.P(O3,_.X);_.q=O3.prototype;_.q.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"}}}};
_.q.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Gf(this.hostElement,"yt-disable-lockup-interaction"):_.Gf(this.hostElement,"yt-enable-lockup-interaction"))};
_.q.isMetaBlockEmpty=function(D){return!D||!D.longBylineText&&!D.shortBylineText&&!D.shortViewCountText&&!D.viewCountText};
_.q.computeHasOneLineTitle=function(D){return this.forceOneLineTitle||!(D==null||!D.buttons)};
_.q.computeDisableInteraction=function(){var D;return!((D=this.data)==null?0:D.navigationEndpoint)};
_.q.hasSingularTopStandaloneBadge=function(){var D;return!((D=this.data)==null||!D.topStandaloneBadge)};
_.ql.Object.defineProperties(O3.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("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 D;return this.hasSingularTopStandaloneBadge()?[(D=this.data)==null?void 0:D.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var D;return this.shouldShowTopBadges?((D=this.data)==null?void 0:D.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
O3.prototype.disableInteractionChanged=O3.prototype.disableInteractionChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],O3.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],O3.prototype,"ytdLockupBehavior",void 0);
_.d([_.C(_.sx),_.x("design:type",Object)],O3.prototype,"ytdReduxBehavior",void 0);_.d([_.M({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.x("design:type",Boolean)],O3.prototype,"metaBlockEmpty",void 0);_.d([_.M({selector:_.pb}),_.x("design:type",Object)],O3.prototype,"isGridViewEnabled",void 0);_.d([_.m("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],O3.prototype,"watchFeedBigThumbs",null);
_.d([_.m("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],O3.prototype,"thumbnailWidth",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],O3.prototype,"isShortsStyle",void 0);_.d([_.M(),_.x("design:type",Object)],O3.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.x("design:type",Boolean)],O3.prototype,"hasOneLineTitle",void 0);
_.d([_.M(),_.x("design:type",Boolean)],O3.prototype,"hideThumbnail",void 0);_.d([_.M(),_.x("design:type",Boolean)],O3.prototype,"forceOneLineTitle",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.x("design:type",Boolean)],O3.prototype,"disableInteraction",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],O3.prototype,"musicMetadataVideoLockup",void 0);
_.d([_.Os("disableInteraction"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],O3.prototype,"disableInteractionChanged",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],O3.prototype,"shouldShowTopBadges",null);_.d([_.m("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],O3.prototype,"topBadges",null);
_.d([_.m("shouldShowTopBadges","data"),_.x("design:type",Array),_.x("design:paramtypes",[])],O3.prototype,"inlineMetadataBadges",null);_.d([_.m("shouldShowTopBadges"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],O3.prototype,"shouldShowBadgesBelowMetadata",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],O3.prototype,"compactTitleClass",null);_.d([_.Y({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],O3);
_.p(O3,"ytd-compact-video-renderer",function(){if(NSn!==void 0)return NSn;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return NSn=D},{mode:_.Kz("kevlar_poly_si_batch_j067")?1:2});var kbQ;_.AB("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var U3=function(){return _.X.apply(this,arguments)||this};
_.P(U3,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],U3.prototype,"data",void 0);_.d([_.Y({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],U3);
_.p(U3,"ytd-counterfactual-renderer",function(){if(kbQ!==void 0)return kbQ;var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return kbQ=D},{mode:1});var TSm;var od=function(){var D=_.X.apply(this,arguments)||this;D.hidden=!1;return D};
_.P(od,_.X);od.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.qS().resolve(_.aA).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
od.prototype.computeHidden=function(D){return!!D};
_.ql.Object.defineProperties(od.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}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],od.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.x("design:type",Object)],od.prototype,"hidden",void 0);_.d([_.m("data.label"),_.x("design:type",String),_.x("design:paramtypes",[])],od.prototype,"label",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],od.prototype,"value",null);
_.d([_.Y({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],od);
_.p(od,"ytd-dropdown-item-renderer",function(){if(TSm!==void 0)return TSm;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return TSm=D},{mode:1});var cso;var j3o;var PR=function(){return _.X.apply(this,arguments)||this};
_.P(PR,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],PR.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],PR.prototype,"data",void 0);_.d([_.M({computed:"getSimpleString(data.label)"}),_.x("design:type",String)],PR.prototype,"label",void 0);_.d([_.Y({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],PR);
_.p(PR,"ytd-navigation-dropdown-item-renderer",function(){if(j3o!==void 0)return j3o;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return j3o=D},{mode:1});var nm=function(){var D=_.X.apply(this,arguments)||this;D.disabled=!1;D.value="";D.noLabelFloat=!1;D.noUnderline=!1;D.usePrimaryColor=!1;D.hasBackground=!1;D.verticalAlign="top";D.autosize=!1;D.minAutosizeWidth=100;D.autosizeFont="14px Roboto";return D};
_.P(nm,_.X);_.q=nm.prototype;_.q.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"}}}};
_.q.open=function(){this.inputEl.open()};
_.q.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.q.dataChanged=function(){this.reset()};
_.q.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("value-changed",this.value))};
_.q.stopPropagation=function(D){D.stopPropagation()};
_.q.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var D=this.canvas.getContext("2d");D&&(D.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(D.measureText(this.inputEl.value).width)+24)+"px")}};
_.q.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var D=0,t=this.data.entries.length;D<t;D++){var H=this.data.entries[D],e;for(e in H)if(H.hasOwnProperty(e)){var V=H[e];if("isSelected"in V&&V.isSelected)return"stringValue"in V?V.stringValue||"":"int32Value"in V?V.int32Value||0:0}}return null};
_.q.updateValueFromBinding=function(D){this.value=D.detail.value};
_.ql.Object.defineProperties(nm.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 D=0,t=this.data.entries.length;D<t;D++){var H=this.data.entries[D],e;for(e in H)if(H.hasOwnProperty(e)){var V=H[e];if("isSelected"in V&&V.isSelected&&"label"in V)return this.ytRendererBehavior.getSimpleString(V.label)}}return null}}});
nm.prototype.autoSizeLabel=nm.prototype.autoSizeLabel;nm.prototype.stopPropagation=nm.prototype.stopPropagation;nm.prototype.valueChangedForBinding=nm.prototype.valueChangedForBinding;nm.prototype.dataChanged=nm.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],nm.prototype,"ytRendererStamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],nm.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nm.prototype,"disabled",void 0);_.d([_.M(),_.x("design:type",Object)],nm.prototype,"value",void 0);_.d([_.M(),_.x("design:type",Object)],nm.prototype,"noLabelFloat",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nm.prototype,"noUnderline",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],nm.prototype,"theme",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nm.prototype,"usePrimaryColor",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nm.prototype,"hasBackground",void 0);_.d([_.M(),_.x("design:type",Object)],nm.prototype,"verticalAlign",void 0);_.d([_.M(),_.x("design:type",Object)],nm.prototype,"autosize",void 0);_.d([_.M(),_.x("design:type",Object)],nm.prototype,"minAutosizeWidth",void 0);_.d([_.M(),_.x("design:type",Object)],nm.prototype,"autosizeFont",void 0);
_.d([_.o5("#entries"),_.x("design:type",Object)],nm.prototype,"entries",void 0);_.d([_.o5("#input"),_.x("design:type",Object)],nm.prototype,"inputEl",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nm.prototype,"dataChanged",null);_.d([_.mx("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nm.prototype,"valueChangedForBinding",null);
_.d([_.rx("iron-overlay-opened"),_.rx("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],nm.prototype,"stopPropagation",null);_.d([_.rx("iron-select"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nm.prototype,"autoSizeLabel",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],nm.prototype,"label",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],nm);
_.p(nm,"ytd-dropdown-renderer",function(){if(cso!==void 0)return cso;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return cso=D},{mode:1});var $rn;var Cm=function(){var D=_.X.apply(this,arguments)||this;D.isConstrainedList=!1;return D};
_.P(Cm,_.X);Cm.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"}}}};
Cm.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
Cm.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
Cm.prototype.computeViewAllHidden=function(D,t){return D||!t.viewAllEndpoint};
Cm.prototype.fillRestIfNoShowMore=Cm.prototype.fillRestIfNoShowMore;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.SL.YtLazyListBehavior),_.x("design:type",Object)],Cm.prototype,"ytLazyListBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Cm.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Cm.prototype,"isConstrainedList",void 0);_.d([_.mx("data","canShowMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cm.prototype,"fillRestIfNoShowMore",null);_.d([_.Y({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],Cm);
_.p(Cm,"ytd-expanded-shelf-contents-renderer",function(){if($rn!==void 0)return $rn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return $rn=D},{mode:_.Kz("kevlar_poly_si_batch_j025")?1:2});var i9a;var mU=function(){return _.X.apply(this,arguments)||this};
_.P(mU,_.X);mU.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}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],mU.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],mU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],mU.prototype,"data",void 0);_.d([_.Y({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],mU);
_.p(mU,"ytd-feed-channel-filter-header-renderer",function(){if(i9a!==void 0)return i9a;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return i9a=D},{mode:1});var rsm;var O9V;var Urm;var MW=function(){return _.X.apply(this,arguments)||this};
_.P(MW,_.X);_.q=MW.prototype;_.q.onClick=function(D){var t,H=(t=this.data)==null?void 0:t.sectionEndpoint;!_.ed(_.bK(D),this.hostElement,["A".toString()])&&H&&_.Gf(this.hostElement,"yt-navigate",{endpoint:H})};
_.q.computeHasSectionEndpoint=function(D){return(D==null?void 0:D.sectionEndpoint)!==void 0};
_.q.computeShowHeaderAsLink=function(D){return(D==null?void 0:D.header)!==void 0&&(D==null?void 0:D.sectionEndpoint)!==void 0};
_.q.computeShowSubheaderAsLink=function(D){return(D==null?void 0:D.subheader)!==void 0&&(D==null?void 0:D.sectionEndpoint)!==void 0&&(D==null?void 0:D.header)===void 0};
_.q.getHeaderAsLinkClass=function(D){var t=[],H;(D==null?0:(H=D.headerIcon)==null?0:H.iconType)&&t.push("header-link-active");return t.join(" ")};
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],MW.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],MW.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],MW.prototype,"data",void 0);
_.d([_.M({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],MW.prototype,"hasSectionEndpoint",void 0);_.d([_.M({computed:"computeShowHeaderAsLink(data)"}),_.x("design:type",Boolean)],MW.prototype,"showHeaderAsLink",void 0);_.d([_.M({computed:"computeShowSubheaderAsLink(data)"}),_.x("design:type",Boolean)],MW.prototype,"showSubheaderAsLink",void 0);_.d([_.Y({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],MW);
_.p(MW,"ytd-medical-panel-section-renderer",function(){if(Urm!==void 0)return Urm;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Urm=D},{mode:1});var SU=function(){var D=_.X.apply(this,arguments)||this;D.isExpanded=!1;D.roundedContainer=!0;D.skipRoundingTop=!1;D.toggleExpandableSection=function(){D.isExpanded=!D.isExpanded};
return D};
_.P(SU,_.X);
SU.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]]"}}}}}};
SU.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
SU.prototype.dataChanged=SU.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],SU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],SU.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],SU.prototype,"isExpanded",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],SU.prototype,"roundedContainer",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],SU.prototype,"skipRoundingTop",void 0);_.d([_.M(),_.x("design:type",Object)],SU.prototype,"toggleExpandableSection",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SU.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],SU);
_.p(SU,"ytd-medical-panel-content-renderer",function(){if(O9V!==void 0)return O9V;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return O9V=D},{mode:1});_.AB("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var XS=function(){var D=_.X.apply(this,arguments)||this;D.roundedContainer=!0;D.extractOverlay=!1;D.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");D.hasTitle=!1;D.linkIcon="OPEN_IN_NEW";D.isDismissed=!1;return D};
_.P(XS,_.X);XS.prototype.onOverlayConditionsChange=function(){var D=_.Kg(this.hostElement).querySelector("ytd-info-panel-content-renderer");D&&(D.set("extractOverlay",this.extractOverlay),D.set("roundedContainer",this.roundedContainer))};
XS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]",extractOverlay:"[[extractOverlay]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",
roundedContainer:"[[roundedContainer]]"}},horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
XS.prototype.computeHasTitle=function(D){return!(D==null||!D.title)};
XS.prototype.onClick=function(D){var t,H=(t=this.data)==null?void 0:t.headerEndpoint;!_.ed(_.bK(D),this.hostElement,["BUTTON".toString()])&&H&&this.ytComponentBehavior.resolveCommand(H)};
_.ql.Object.defineProperties(XS.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 D;return((D=this.data)==null?void 0:D.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?void 0:D.disableBottomDivider)||!((t=this.data)==null?0:t.title)}}});
XS.prototype.onOverlayConditionsChange=XS.prototype.onOverlayConditionsChange;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],XS.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],XS.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],XS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],XS.prototype,"ytdReduxBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],XS.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],XS.prototype,"roundedContainer",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],XS.prototype,"extractOverlay",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],XS.prototype,"amsterdamEnabled",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.x("design:type",Object)],XS.prototype,"hasTitle",void 0);
_.d([_.M({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.m("data.background"),_.x("design:type",Object),_.x("design:paramtypes",[])],XS.prototype,"background",null);_.d([_.M({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.m("data.titleStyle"),_.x("design:type",Object),_.x("design:paramtypes",[])],XS.prototype,"titleStyle",null);
_.d([_.M({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.m("data.titleStyle"),_.x("design:type",Object),_.x("design:paramtypes",[])],XS.prototype,"showLinkIcon",null);_.d([_.M(),_.x("design:type",String)],XS.prototype,"linkIcon",void 0);_.d([_.M({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],XS.prototype,"hideDivider",null);
_.d([_.M({selectorArgs:["data.dismissStateEntityKey"],selector:function(D,t){D=_.jR(D.entities,"dismissState",t);return(D==null?void 0:D.isDismissed)||(D==null?void 0:D.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(D==null?void 0:D.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.x("design:type",Object)],XS.prototype,"isDismissed",void 0);_.d([_.Os("roundedContainer","extractOverlay"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XS.prototype,"onOverlayConditionsChange",null);_.d([_.Y({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],XS);
_.p(XS,"ytd-info-panel-container-renderer",function(){if(rsm!==void 0)return rsm;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return rsm=D},{mode:1});var o5m;_.AB("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var fm=function(){return _.X.apply(this,arguments)||this};
_.P(fm,_.X);fm.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
fm.prototype.computeStyle=function(D){return D?D:""};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],fm.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.x("design:type",String)],fm.prototype,"titleStyle",void 0);
_.d([_.Y({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],fm);
_.E_()(fm,"ytd-item-section-header-renderer",function(){if(o5m===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);o5m=D}D=o5m;return D},{allowedProps:["data"],
mode:1});var Pxn;var n5V,Cxn=function(){return n5V!==void 0?n5V:n5V=document.createElement("template")};
document.head.appendChild(Cxn().content);var mrV;_.Lm=new _.kI("VOTING_ANIMATION_CONTROLLER_TOKEN");var SfV=_.l(function(D){var t=D.data;var H=_.DY("div"),e=_.DY("div");D=_.F(_.KR("VOTE_STATUS_NONE",void 0,"YPH5mf"));var V=D.next().value,b=D.next().value,a=_.rF(yH6,function(){var T;return(T=t())==null?void 0:T.entityKey}),w=_.r("web_enable_voting_animation")||_.r("enable_music_web_cairo_voting_animation");
_.XH(function(){var T;((T=t().initialState)==null?0:T.status)&&b(t().initialState.status)});
var h=function(){var T,c,U=(c=(T=t().initialState)==null?void 0:T.votes)!=null?c:0,S;T=(S=t().initialState)==null?void 0:S.status;return T==="VOTE_STATUS_UPVOTED"?U-1:T==="VOTE_STATUS_DOWNVOTED"?U+1:U},K=function(){return V()==="VOTE_STATUS_UPVOTED"?h()+1:V()==="VOTE_STATUS_DOWNVOTED"?h()-1:h()},N=function(T){var c=T?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
b(c);var U=K(),S=_.qS().resolve(_.by(_.Lm)),L=a();L&&(T&&(L==null?0:L.upvoteDefaultButtonOnTap)?_.IQ(L.upvoteDefaultButtonOnTap,{form:{element:H.value},disableClickTracking:!0}):(L==null?0:L.upvoteToggledButtonOnTap)&&_.IQ(L.upvoteToggledButtonOnTap,{form:{element:H.value},disableClickTracking:!0}));var J;T=(J=L==null?void 0:L.enableOptimisticReordering)!=null?J:t().enableOptimisticReordering;w&&S&&t().itemId&&T&&M$9(S,t().itemId,U,c)},k=function(T){var c=T?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
b(c);var U=K(),S=_.qS().resolve(_.by(_.Lm)),L=a();L&&(T&&(L==null?0:L.downvoteDefaultButtonOnTap)?_.IQ(L.downvoteDefaultButtonOnTap,{form:{element:e.value},disableClickTracking:!0}):(L==null?0:L.downvoteToggledButtonOnTap)&&_.IQ(L.downvoteToggledButtonOnTap,{form:{element:e.value},disableClickTracking:!0}));var J;T=(J=L==null?void 0:L.enableOptimisticReordering)!=null?J:t().enableOptimisticReordering;w&&S&&t().itemId&&T&&M$9(S,t().itemId,U,c)};
D={};D=_.jQ("ytVotingViewModelVoteCount",(D.ytVotingViewModelVoteCountDisabled=function(){return t().isDisabled},D));
return _.G("voting-view-model",{class:"ytVotingViewModelHost"},_.G("div",{el:H},_.G(_.P5,{data:function(){var T=_.O(t().upvoteButton,_.Ez);return{toggleButtonViewModel:Object.assign({},T,{isToggled:V()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(T){return _.G(_.VC,{data:T.data,
onToggle:N})}})),_.G("div",{class:D},function(){var T,c,U;
return V()==="VOTE_STATUS_UPVOTED"?(T=t().initialState)==null?void 0:T.compactVotesUpvoted:V()==="VOTE_STATUS_DOWNVOTED"?(c=t().initialState)==null?void 0:c.compactVotesDownvoted:(U=t().initialState)==null?void 0:U.compactVotes}),_.G("div",{el:e},_.G(_.P5,{data:function(){var T=_.O(t().downvoteButton,_.Ez);
return{toggleButtonViewModel:Object.assign({},T,{isToggled:V()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(T){return _.G(_.VC,{data:T.data,
onToggle:k})}})))},"Jc");_.hB(_.l(function(D){var t=D.data;return _.G("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.G("div",{class:_.jQ("ytEngagementBarViewModelEngagementBarWrapper",D.className)},_.G(_.P5,{data:function(){return t().actions}},{votingViewModel:SfV})))},"Kc"),"engagement-bar-view-model",{props:{data:_.ij,
className:_.ij}});var Ac=function(){var D=_.X.apply(this,arguments)||this;D.playlistVotingAnimationEnabled=_.r("web_enable_voting_animation");D.downloadProgress=0;D.transferState="TRANSFER_STATE_UNKNOWN";D.downloadState="DOWNLOAD_STATE_UNKNOWN";D.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";D.offlineVideoPolicyExpirationTimestamp=0;return D};
_.P(Ac,_.X);_.q=Ac.prototype;_.q.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"}}}};
_.q.canReorderChanged=function(){this.persistentDragHandle=_.r("kevlar_playlist_drag_handles")&&this.canReorder};
_.q.onDrag=function(){if(this.thumbnail){var D=_.Kg(this.thumbnail).querySelector("yt-image");D&&(D.shouldRenderLazy=!1)}};
_.q.onMenuOverlayChanged=function(D,t){this.menuOpened=t};
_.q.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.q.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.q.onContentsTap=function(D){var t,H=(t=this.data)==null?void 0:t.serviceEndpoints;if(H&&H.length===1&&_.O(H[0],VJu)&&!_.ed(_.bK(D),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(H[0]);else{var e;(t=(e=this.data)==null?void 0:e.navigationEndpoint)&&_.r("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?Xan(_.qS().resolve(_.dL),t):(_.d3().playlistSuggestionsShelfActivation=
!0,_.fCm(_.qS().resolve(_.dL),t)):t&&!_.ed(_.bK(D),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.r("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Gf(this.hostElement,"yt-navigate",{endpoint:t}):this.ytComponentBehavior.resolveCommand(t))}};
_.q.computeStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.q.computeThumbnailWidth=function(D){return D==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.q.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=QTX(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))}};
_.q.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.q.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.q.dataChanged=function(){if(this.data){var D,t,H,e=((D=this.downloadRenderData)==null?void 0:D.badges)&&((t=this.downloadRenderData)==null?void 0:t.badges)!==((H=this.data)==null?void 0:H.badges),V,b,a;D=((V=this.downloadRenderData)==null?void 0:V.thumbnailOverlays)&&((b=this.downloadRenderData)==null?void 0:b.thumbnailOverlays)!==((a=this.data)==null?void 0:a.thumbnailOverlays);(!this.downloadRenderData||e||D)&&this.downloadStateChanged()}};
_.q.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var D,t,H=(D=this.data.menu)==null?void 0:(t=D.menuRenderer)==null?void 0:t.items;if(H)for(D=_.F(H),t=D.next();!t.done;t=D.next())if(t=t.value,H=void 0,_.O((H=t.menuServiceItemRenderer)==null?void 0:H.serviceEndpoint,_.b2)){var e=H=void 0,V=void 0;t=(H=t)==null?void 0:(e=H.menuServiceItemRenderer)==null?void 0:(V=e.serviceEndpoint)==null?void 0:V.playlistEditEndpoint;V=e=void 0;if(H=(e=t)==null?void 0:(V=e.actions)==null?void 0:
V[0])e=void 0,H.setVideoId=(e=this.data)==null?void 0:e.setVideoId;V=e=H=void 0;if(t=(H=t)==null?void 0:(e=H.clientActions)==null?void 0:(V=e[0])==null?void 0:V.playlistRemoveVideosAction)H=void 0,t.setVideoIds=[(H=this.data)==null?void 0:H.setVideoId]}}};
_.ql.Object.defineProperties(Ac.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
Ac.prototype.setVideoIdChanged=Ac.prototype.setVideoIdChanged;Ac.prototype.dataChanged=Ac.prototype.dataChanged;Ac.prototype.downloadStateChanged=Ac.prototype.downloadStateChanged;Ac.prototype.onMenuOverlayChanged=Ac.prototype.onMenuOverlayChanged;Ac.prototype.canReorderChanged=Ac.prototype.canReorderChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Ac.prototype,"ytdReduxBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ac.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],Ac.prototype,"ytdLockupBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],Ac.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Ac.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ac.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ac.prototype,"canReorder",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ac.prototype,"menuOpened",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ac.prototype,"handleIsHovered",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ac.prototype,"persistentDragHandle",void 0);_.d([_.M(),_.x("design:type",Object)],Ac.prototype,"downloadRenderData",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],Ac.prototype,"styleType",void 0);_.d([_.M({computed:"computeThumbnailWidth(data.style)"}),_.x("design:type",Number)],Ac.prototype,"thumbnailWidth",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Ac.prototype,"isDownloads",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ac.prototype,"playlistVotingAnimationEnabled",void 0);
_.d([_.M({selector:uG,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],Ac.prototype,"downloadProgress",void 0);_.d([_.M(),_.x("design:type",Number)],Ac.prototype,"relativeDateReference",void 0);_.d([_.M({selector:_.xe,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],Ac.prototype,"transferState",void 0);_.d([_.M({selector:JUR,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],Ac.prototype,"downloadState",void 0);
_.d([_.M({selector:rU8,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],Ac.prototype,"offlinePolicyAction",void 0);_.d([_.M({selector:Opu,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],Ac.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.d([_.M({selector:o$V,selectorArgs:["data.videoId"]}),_.x("design:type",Object)],Ac.prototype,"entityInfo",void 0);_.d([_.M({selector:_.vH}),_.x("design:type",Boolean)],Ac.prototype,"miniplayerIsActive",void 0);
_.d([_.m("data"),_.x("design:type",String),_.x("design:paramtypes",[])],Ac.prototype,"playlistVideoId",null);_.d([_.o5("#thumbnail"),_.x("design:type",Object)],Ac.prototype,"thumbnail",void 0);_.d([_.mx("canReorder"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ac.prototype,"canReorderChanged",null);
_.d([_.rx("yt-menu-overlay-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Boolean]),_.x("design:returntype")],Ac.prototype,"onMenuOverlayChanged",null);_.d([_.mx("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ac.prototype,"downloadStateChanged",null);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ac.prototype,"dataChanged",null);_.d([_.mx("data.setVideoId"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ac.prototype,"setVideoIdChanged",null);_.d([_.Y({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],Ac);
_.p(Ac,"ytd-playlist-video-renderer",function(){if(mrV!==void 0)return mrV;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);D.content.insertBefore(Cxn().content.cloneNode(!0),D.content.firstChild);return mrV=D},{mode:1});var Lmn;var gs=function(){return _.X.apply(this,arguments)||this};
_.P(gs,_.X);_.d([_.M(),_.x("design:type",Object)],gs.prototype,"data",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],gs.prototype,"rendererBehavior",void 0);_.d([_.Y({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],gs);
_.p(gs,"ytd-premium-browse-footer-renderer",function(){if(Lmn!==void 0)return Lmn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Lmn=D},{mode:1});var Asf;var Jc=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return D};
_.P(Jc,_.X);_.q=Jc.prototype;_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.handleDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.q.computeHeaderLogoThumbnail=function(D,t){if(D)return t?D.darkLogo:D.lightLogo};
_.q.computeHeaderLogoHeight=function(D,t){var H,e,V;return(D=(H=this.computeHeaderLogoThumbnail(D,t))==null?void 0:(e=H.thumbnails)==null?void 0:(V=e[0])==null?void 0:V.height)&&D%31===0?"31":"24"};
_.q.computeHeaderLogoMarginBottom=function(D,t){return this.computeHeaderLogoHeight(D,t)==="24"?"0":"-7"};
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Jc.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Jc.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],Jc.prototype,"isDarkTheme",void 0);_.d([_.M({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.x("design:type",Object)],Jc.prototype,"themeLogo",void 0);
_.d([_.M({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.x("design:type",String)],Jc.prototype,"logoHeight",void 0);_.d([_.M({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.x("design:type",String)],Jc.prototype,"logoMarginBottom",void 0);_.d([_.Y({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Jc);
_.p(Jc,"ytd-primetime-promo-header-renderer",function(){if(Asf!==void 0)return Asf;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Asf=D},{mode:1});var g56;_.Yj=_.l(function(D){var t=D.className;var H=D.data;var e=D.isOverlay;var V=D.maxLinesOverride;var b=D.useMediumText;var a=function(){return H().alwaysShowTruncationText},w=function(){return H().truncationText},h=function(){return b!==void 0&&b()?"medium":"small"},K=function(){return e!==void 0&&e()?"overlay":"default"},N=function(){var U,S;
return(S=(U=_.O(H().rendererContext,_.Pm))==null?void 0:U.label)!=null?S:""};
D=_.F(_.KR(!1,void 0,"OKr1o"));var k=D.next().value,T=D.next().value;D=_.$X(function(){H().expandOnTap&&T(!k());return!1});
var c={};return _.G("yt-description-preview-view-model",{el:_.FI(_.Yi(function(){return H().rendererContext})),
class:_.jQ("ytDescriptionPreviewViewModelHost",t,(c.ytDescriptionPreviewViewModelClickable=function(){var U;return!((U=_.O(H().rendererContext,fR3))==null||!U.onTap)},c.ytDescriptionPreviewViewModelIsOverlay=e,c)),
"on:click":D},_.G(_.E,{cond:function(){return H().description},
then:function(U){return _.G(_.E,{cond:k,then:function(){var S={};return _.G("div",{class:_.jQ("ytDescriptionPreviewViewModelDescription",(S.ytDescriptionPreviewViewModelDescriptionMediumText=b,S))},_.G(_.$7,{text:U}))},
else:function(){return _.G(pj9,{text:U,alwaysShowTruncationText:a,truncationText:w,maxLines:function(){var S;return(S=V==null?void 0:V())!=null?S:H().maxLines},
textStyle:K,accessibilityLabel:N,textSize:h})}})}}))},"Lc");
_.Yj.idomCompat=!0;var Yf3=_.l(function(D){var t=_.$X(function(V){var b;(b=D.onClick)==null||b.call(D,V)}),H={},e={};
return _.G("yt-shelf-header-layout",{class:_.jQ("yt-shelf-header-layout",(H["yt-shelf-header-layout--disable-horizontal-padding"]=D.disableHorizontalPadding,H["yt-shelf-header-layout--disable-vertical-padding"]=D.disableVerticalPadding,H["yt-shelf-header-layout--responsive"]=D.useResponsiveLayout,H["yt-shelf-header-layout--narrow"]=function(){var V,b;return((V=D.useResponsiveLayout)==null?void 0:V.call(D))&&((b=D.forceSmallLayout)==null?void 0:b.call(D))},H["yt-shelf-header-layout--is-overlay"]=D.isOverlay,
H["yt-shelf-header-layout--tappable"]=D.isInteractive,H)),
"on:click":t,tabindex:function(){var V;return((V=D.isInteractive)==null?0:V.call(D))?0:void 0}},_.G("div",{class:"yt-shelf-header-layout__header-row"},_.G(_.E,{cond:D.leadingIcon,
then:function(V){return _.G("div",{class:"yt-shelf-header-layout__leading-icon"},_.G(_.U7,{icon:V}))},
else:function(){return _.G(_.E,{cond:D.hasLeadingImage,then:function(){var V,b={};return _.G("div",{class:_.jQ("yt-shelf-header-layout__leading-image",(b["yt-shelf-header-layout__leading-image--circular-image"]=D.circularImage,b))},(V=D.leadingImage)==null?void 0:V.call(D))}})}}),_.G("div",{class:"yt-shelf-header-layout__label-container"},_.G(_.E,{cond:D.hasSuperlabel,
then:function(){var V;return _.G("div",{class:"yt-shelf-header-layout__superlabel"},(V=D.superlabel)==null?void 0:V.call(D))}}),_.G("div",{class:"yt-shelf-header-layout__title-row"},_.G(JsV,{text:D.title,
className:_.jQ("yt-shelf-header-layout__title",(e["yt-shelf-header-layout__title--small-title"]=D.forceSmallLayout,e)),tagLevel:D.tagLevel}),_.G(_.E,{cond:D.hasDetail,then:function(){var V;return _.G("div",{class:"yt-shelf-header-layout__detail"},(V=D.detail)==null?void 0:V.call(D))}})),_.G(_.E,{cond:D.hasSublabel,
then:function(){var V;return _.G("div",{class:"yt-shelf-header-layout__sublabel"},(V=D.sublabel)==null?void 0:V.call(D))}})),_.G(_.E,{cond:D.hasTrailingActions,
then:function(){var V;return _.G("div",{class:"yt-shelf-header-layout__trailing-actions"},(V=D.trailingActions)==null?void 0:V.call(D))}})),_.G(_.E,{cond:D.hasBottomAccessory,
then:function(){var V;return(V=D.bottomAccessory)==null?void 0:V.call(D)}}))},"Mc");
Yf3.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var JsV=_.l(function(D){var t=D.text;var H=D.className;var e=D.tagLevel;return _.G(_.CY,null,_.G(_.oD,{when:function(){return(e==null?void 0:e())===0}},function(){return _.G("h2",{class:H},t())}),_.G(_.oD,{when:function(){return(e==null?void 0:e())===1}},function(){return _.G("h3",{class:H},t())}),_.G(_.oD,{when:function(){return(e==null?void 0:e())===2}},function(){return _.G("h4",{class:H},t())}),_.G(_.Pn,null,function(){return _.G("h2",{class:H},t())}))},"Nc");var pan,lCf,v5w;_.l6=_.l(function(D){var t=D.className;var H=D.data;var e=D.disableHorizontalPadding;var V=D.disableVerticalPadding;var b=D.forceSmallLayout;var a=D.useResponsiveLayout;D=D.isOverlay;return _.G("yt-section-header-view-model",{class:_.jQ("ytSectionHeaderViewModelHost",t),style:_.O7({"background-color":function(){return ie(H().backgroundColor)?_.Qk(ie(H().backgroundColor)):void 0}})},_.G(Yf3,{hasDetail:!1,
title:function(){return _.G(_.$7,{text:function(){return H().headline}})},
hasTitle:!0,sublabel:function(){return _.G(lCf,{data:H})},
hasSublabel:function(){return!!H().sublabel||!!H().bottomBadge},
superlabel:function(){return _.G(v5w,{data:H})},
hasSuperlabel:function(){return!!H().superlabel||!!H().topBadge},
leadingImage:function(){return _.G(pan,{leadingAccessory:function(){return H().leadingAccessory}})},
hasLeadingImage:function(){return!!H().leadingAccessory},
trailingActions:function(){return _.G(_.P5,{data:function(){return H().trailingActions}},{flexibleActionsViewModel:_.aw})},
hasTrailingActions:function(){return!!H().trailingActions},
disableHorizontalPadding:e,disableVerticalPadding:V,forceSmallLayout:b,useResponsiveLayout:a,isOverlay:D,isInteractive:function(){return!!_.gF(H().rendererContext)},
onClick:function(w){if(_.J5(H().rendererContext)){var h=_.gF(H().rendererContext);h&&_.RQ(h,{form:{element:w.target,event:w}})}},
bottomAccessory:function(){return _.G(_.P5,{data:function(){return H().bottomAccessory}},{descriptionPreviewViewModel:_.Yj})},
hasBottomAccessory:function(){return!!H().bottomAccessory}}))},"Oc");
pan=_.l(function(D){var t=D.leadingAccessory;return _.G(_.FH,null,_.G(_.E,{cond:function(){var H;return(H=t().image)!=null?H:_.Rn(t().themedImage)},
then:function(H){return _.G(_.bi,{data:H,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.G(_.E,{cond:function(){return _.O(t().avatar,_.lO)},
then:function(H){return _.G(_.qi,{data:H})}}))},"Pc");
lCf=_.l(function(D){var t=D.data;return _.G(_.FH,null,_.G(_.E,{cond:function(){return _.O(t().bottomBadge,xKf)},
then:function(H){var e={};return _.G(_.Mi,{data:H,class:_.jQ((e.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!H()&&!!t().sublabel},e))})}}),_.G(_.E,{cond:function(){return t().sublabel},
then:function(H){return _.G(_.$7,{text:H})}}))},"Qc");
v5w=_.l(function(D){var t=D.data;return _.G(_.FH,null,_.G(_.E,{cond:function(){return _.O(t().topBadge,xKf)},
then:function(H){var e={};return _.G(_.Mi,{data:H,class:_.jQ((e.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!H()&&!!t().superlabel},e))})}}),_.G(_.E,{cond:function(){return t().superlabel},
then:function(H){return _.G(_.$7,{text:H})}}))},"Rc");_.hB(_.l6,"yt-section-header-view-model",{props:{data:_.ij,className:_.ij,disableHorizontalPadding:_.ij,disableVerticalPadding:_.ij,forceSmallLayout:_.ij,useResponsiveLayout:_.ij,isOverlay:_.ij}});_.AB("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var vR=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return D};
_.P(vR,_.X);_.q=vR.prototype;_.q.attached=function(){this.requestElementsPerRow()};
_.q.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"}}}};
_.q.onDataChange=function(){var D=this;_.Vi(this,function(){D.updateItemVisibility()})};
_.q.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D,this.updateItemVisibility())};
_.q.updateItemVisibility=function(){var D=this;this.data&&this.data.panels&&_.Kg(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(t,H){t.hidden=H>D.elementsPerRow-1})};
_.q.requestElementsPerRow=function(){_.Gf(this.hostElement,"yt-request-elements-per-row")};
vR.prototype.onDataChange=vR.prototype.onDataChange;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],vR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],vR.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],vR.prototype,"actionHandlerBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],vR.prototype,"data",void 0);_.d([_.M({value:3}),_.x("design:type",Number)],vR.prototype,"elementsPerRow",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vR.prototype,"onDataChange",null);_.d([_.Y({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],vR);
_.p(vR,"ytd-primetime-promo-renderer",function(){if(g56!==void 0)return g56;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return g56=D},{mode:1});var drn;var pm=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return D};
_.P(pm,_.X);pm.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
pm.prototype.handleButtonRefreshAction=function(D){if(D=_.O(D,Kfn))this.set("data.button",D.membershipButton),this.notifyPath("data.button")};
_.ql.Object.defineProperties(pm.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?void 0:(t=D.avatars)==null?void 0:t.slice(0,8))||[]}}});
_.d([_.M(),_.x("design:type",Object)],pm.prototype,"data",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],pm.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],pm.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],pm.prototype,"rendererBehavior",void 0);_.d([_.m("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],pm.prototype,"avatars",null);
_.d([_.Y({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],pm);
_.p(pm,"ytd-recognition-shelf-renderer",function(){if(drn!==void 0)return drn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return drn=D},{mode:1});var xrQ;var R4w;var ds=function(){var D=_.X.apply(this,arguments)||this;D.modernButtons=_.r("web_modern_buttons");return D};
_.P(ds,_.X);_.q=ds.prototype;
_.q.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]]"}}}}}};
_.q.dataChanged=function(){this.collapsed=!0};
_.q.computeVisibleItems=function(D,t){return D!==void 0&&D.items?t?D.items.slice(0,this.data.collapsedItemCount):D.items:[]};
_.q.computeHideShowMore=function(D,t,H){return D>=t||!H};
_.q.computeHideShowAll=function(D,t,H){return!(D&&t)||H};
_.q.onMoreClick=function(){this.collapsed=!1};
_.ql.Object.defineProperties(ds.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.r("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.sa("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.r("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
ds.prototype.dataChanged=ds.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ds.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ds.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ds.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],ds.prototype,"isSearch",void 0);
_.d([_.M({computed:"computeVisibleItems(data,collapsed)"}),_.x("design:type",Array)],ds.prototype,"visibleItems",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],ds.prototype,"collapsed",void 0);_.d([_.M({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.x("design:type",Boolean)],ds.prototype,"hideShowMore",void 0);
_.d([_.M({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.x("design:type",Boolean)],ds.prototype,"hideShowAll",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],ds.prototype,"modernButtons",void 0);_.d([_.m("isSearch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ds.prototype,"typographyBump",null);
_.d([_.m("isSearch"),_.x("design:type",Object),_.x("design:paramtypes",[])],ds.prototype,"lockupExperiments",null);_.d([_.m("isSearch"),_.x("design:type",String),_.x("design:paramtypes",[])],ds.prototype,"thumbnailWidth",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ds.prototype,"dataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],ds);
_.p(ds,"ytd-vertical-list-renderer",function(){if(R4w!==void 0)return R4w;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return R4w=D},{mode:1});var u44=_.zk(["#"]);_.AB("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var xj=function(){var D=_.X.apply(this,arguments)||this;D.isConstrainedList=!1;return D};
_.P(xj,_.X);_.q=xj.prototype;
_.q.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"}}}};
_.q.computeThumbnailStyle=function(D){return D||""};
_.q.computePlaceAnnotationUnderTitle=function(){var D;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((D=this.data)==null?void 0:D.thumbnailStyle)||"")};
_.q.computeHrefWithDefault=function(D){return this.ytComponentBehavior.computeHref_(D)||_.qk6(u44)};
_.q.computeIsPromoShelf=function(D){var t;return(D=D==null?void 0:(t=D[0])==null?void 0:t.metadataBadgeRenderer)?D.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.q.computePlaceBadgeBesideTitle=function(D){var t;return(D==null?0:(t=D[0])==null?0:t.metadataBadgeRenderer)?!this.computeIsPromoShelf(D):!1};
_.q.computeMenuIcon=function(D){return this.computeIsPromoShelf(D)?"yt-icons:more_vert":"yt-icons:more"};
_.q.onDataChange=function(){var D,t;((D=this.data)==null?0:(t=D.content)==null?0:t.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.q.onLockupRequested=function(D){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&D.detail&&D.detail.videoIds){for(var t=this.data.content.gridRenderer.items,H=new Set,e=_.F(D.detail.videoIds),V=e.next();!V.done;V=e.next())H.add(V.value);D.detail.returnValue=t.filter(function(b){return b.gridVideoRenderer&&b.gridVideoRenderer.videoId&&H.has(b.gridVideoRenderer.videoId)}).map(function(b){return b.gridVideoRenderer})}};
_.q.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
xj.prototype.onLockupRequested=xj.prototype.onLockupRequested;xj.prototype.onDataChange=xj.prototype.onDataChange;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],xj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],xj.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],xj.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.QI),_.x("design:type",Object)],xj.prototype,"ironResizableBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],xj.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],xj.prototype,"isSearch",void 0);_.d([_.M(),_.x("design:type",Object)],xj.prototype,"isConstrainedList",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("kevlar_fluid_dismiss")}}),
_.x("design:type",Boolean)],xj.prototype,"enableFluidDismiss",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.x("design:type",String)],xj.prototype,"thumbnailStyle",void 0);_.d([_.M({computed:"computeMenuIcon(data.badges)"}),_.x("design:type",String)],xj.prototype,"menuIcon",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xj.prototype,"onDataChange",null);
_.d([_.rx("yt-lockup-requested"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],xj.prototype,"onLockupRequested",null);_.d([_.Y({is:"ytd-shelf-renderer",disableElementRegistration:!0})],xj);
_.p(xj,"ytd-shelf-renderer",function(){if(xrQ!==void 0)return xrQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return xrQ=D},{mode:1});var Wmn;var Rd=function(){return _.X.apply(this,arguments)||this};
_.P(Rd,_.X);Rd.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.ql.Object.defineProperties(Rd.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Rd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Rd.prototype,"data",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Rd.prototype,"isPlaylist",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Rd.prototype,"isClipList",void 0);
_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Rd.prototype,"isPlaylistPageWithFilters",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Rd.prototype,"hasTitle",null);_.d([_.M(),_.m("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.x("design:type",Object),_.x("design:paramtypes",[])],Rd.prototype,"isRightAligned",null);
_.d([_.Y({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Rd);
_.p(Rd,"ytd-sort-filter-header-renderer",function(){if(Wmn!==void 0)return Wmn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Wmn=D},{mode:1});var IC6;var u6=function(){var D=_.X.apply(this,arguments)||this;D.enableRightArrowHidden=_.r("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return D};
_.P(u6,_.X);u6.prototype.attached=function(){var D=this;this.enableRightArrowHidden&&(this.JSC$16400_throttledOnResize=new _.W5(function(){var t;(t=D.ytdHorizontalListBehavior)==null||t.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var t;
(t=D.JSC$16400_throttledOnResize)==null||t.fire()}),this.resizeObserver.observe(this.hostElement))};
u6.prototype.detached=function(){if(this.enableRightArrowHidden){var D;(D=this.resizeObserver)==null||D.disconnect();var t;(t=this.JSC$16400_throttledOnResize)==null||t.dispose()}};
u6.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]]"}}}}}};
u6.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.ql.Object.defineProperties(u6.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.r("enable_creator_details_shelf_m2")){var D=[],t;((t=this.data)==null?0:t.creatorVideosButton)&&D.push(this.data.creatorVideosButton);var H;((H=this.data)==null?0:H.creatorAboutButton)&&D.push(this.data.creatorAboutButton);t=_.F(this.data.creatorCustomUrlButtons||[]);for(H=t.next();!H.done;H=t.next())D.push(H.value);return D}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.r("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],u6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Xn.YtdHorizontalListBehavior),_.x("design:type",Object)],u6.prototype,"ytdHorizontalListBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],u6.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],u6.prototype,"engagementPanel",void 0);
_.d([_.M(),_.x("design:type",Object)],u6.prototype,"enableRightArrowHidden",void 0);_.d([_.m("enableRightArrowHidden","atEnd"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u6.prototype,"hideRightArrow",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],u6.prototype,"creatorCustomUrlButtons",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data","creatorCustomUrlButtons"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u6.prototype,"showCreatorCustomUrlButtons",null);_.d([_.m("showCreatorCustomUrlButtons"),_.x("design:type",Number),_.x("design:paramtypes",[])],u6.prototype,"channelAvatarSize",null);_.d([_.Y({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],u6);
_.p(u6,"ytd-video-description-infocards-section-renderer",function(){if(IC6!==void 0)return IC6;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return IC6=D},{mode:_.Kz("kevlar_poly_si_batch_j067")?1:2});var Q3f;var WR=function(){return _.X.apply(this,arguments)||this};
_.P(WR,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],WR.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],WR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],WR.prototype,"data",void 0);_.d([_.M({computed:"computeIcon_(data.infoIcon)"}),_.x("design:type",Object)],WR.prototype,"infoIcon",void 0);_.d([_.Y({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],WR);
_.p(WR,"ytd-eom-settings-disclaimer-renderer",function(){if(Q3f!==void 0)return Q3f;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Q3f=D},{mode:1});var ysa;var Id=function(){return _.X.apply(this,arguments)||this};
_.P(Id,_.X);_.ql.Object.defineProperties(Id.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.suppressPaddingDisclaimer)}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Id.prototype,"componentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Id.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Id.prototype,"suppressPaddingDisclaimer",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],Id);
_.p(Id,"ytd-product-list-header-renderer",function(){if(ysa!==void 0)return ysa;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ysa=D},{mode:1});var BSf;var Qv=function(){return _.X.apply(this,arguments)||this};
_.P(Qv,_.X);Qv.prototype.computeThumbnailStyle=function(D){if(D&&(D=_.Ih(D)))return"background-color:"+D+";"};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Qv.prototype,"rendererBehaviors",void 0);_.d([_.M(),_.x("design:type",Object)],Qv.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Qv);
_.p(Qv,"ytd-hashtag-tile-renderer",function(){if(BSf!==void 0)return BSf;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return BSf=D},{mode:1});var z4m;var yv=function(){return _.X.apply(this,arguments)||this};
_.P(yv,_.X);yv.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}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],yv.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],yv);
_.p(yv,"ytd-sponsorships-alert-renderer",function(){if(z4m!==void 0)return z4m;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return z4m=D},{mode:1});var Dfn;var BR=function(){return _.X.apply(this,arguments)||this};
_.P(BR,_.X);BR.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.ql.Object.defineProperties(BR.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.r("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.r("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.d([_.C(_.GI),_.x("design:type",Object)],BR.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],BR.prototype,"ytdLockupBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],BR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],BR.prototype,"ytRendererBehavior",void 0);_.d([_.M({selector:_.pb}),_.x("design:type",Object)],BR.prototype,"isGridViewEnabled",void 0);
_.d([_.m("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],BR.prototype,"watchFeedBigThumbs",null);_.d([_.m("isGridViewEnabled"),_.M({reflectToAttribute:!0}),_.x("design:type",String),_.x("design:paramtypes",[])],BR.prototype,"thumbnailWidth",null);_.d([_.M(),_.x("design:type",Object)],BR.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],BR);
_.p(BR,"ytd-compact-movie-renderer",function(){if(Dfn!==void 0)return Dfn;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Dfn=D},{mode:1});var tH6;var HT9;var exa=_.YC("HTML_DIR")==="rtl",zj=function(){var D=_.X.apply(this,arguments)||this;D.engagementPanel=!1;D.maxLines=2;D.expandButtonOffset=0;D.showExpandButton=!1;D.isTruncated=!1;D.isExpanded=!1;D.currentSnippetType=2;D.alwaysShowExpandButton=!1;D.JSC$16417_lastWidth=NaN;D.observer=null;D.left=0;D.right=0;D.mid=0;D.longestSnippetLength=0;D.isFinalSnippet=!1;D.isFirstMutation=!1;D.isResetMutation=!1;D.OVERFLOW_THRESHOLD=5;return D};
_.P(zj,_.X);_.q=zj.prototype;_.q.onClick=function(D){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.ed(_.bK(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;if((t=window.getSelection())==null||!t.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.q.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.q.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.q.updateTextOnSnippetTypeChange=function(){_.r("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.q.setUpBinarySearch=function(D){D=D*this.maxLines/8;this.left=0;var t,H;this.right=Math.min(D*2,(H=(t=this.simpleText)==null?void 0:t.length)!=null?H:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.q.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.q.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.Yw(new _.nZ("AttributedSnippet is empty when the description is not empty",this.text))};
_.q.mutationCallback=function(){if(this.observer!=null){var D=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var t=Math.floor(D*this.maxLines/8);this.setSnippetText(this.text,t);t!==0||this.attributedTextIsEmpty()||_.Yw(new _.nZ("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;D=D*this.maxLines/8;this.left=0;var H;this.right=Math.min(D*2,(H=(t=this.simpleText)==null?void 0:t.length)!=null?H: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)}}};
_.q.mutationObserve=function(D){var t=this;this.observer||(this.observer=new MutationObserver(function(){t.mutationCallback()}));
this.observer.observe(D,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.q.attached=function(){var D=this;_.Vi(this,function(){D.resize()})};
_.q.isExpandedChanged=function(){_.Gf(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.q.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)};
_.q.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var D="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((exa?"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",D);this.snippetContainer.style.setProperty("mask-image",
D)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(exa?"right":"left",this.expandButtonOffset+"px")};
_.q.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.q.setSnippetText=function(D,t){D||(D={});if(_.HZ(D)){var H=DP(D,t);H.attachmentRuns||H.commandRuns||H.decorationRuns||H.styleRuns||H.alignment||H.lineBreakMode?this.attributedSnippetTextEl?(_.r("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=DP(D,t),this.attributedSnippetTextEl.headerRuns=PXD(t,this.headerRuns)):this.attributedSnippetText={data:DP(D,t),headerRuns:PXD(t,this.headerRuns)},this.currentSnippetType=0):_.Yw(new _.nZ("Tried to set snippet text when HTML element was null",
D)):(this.plainSnippetText.textContent=Bc(D.content||"",t),this.currentSnippetType=2)}else{a:{H=BQD(D,t);if(H.runs){H=_.F(H.runs);for(var e=H.next();!e.done;e=H.next())if(e=e.value,e.bold||e.deemphasize||e.italics||e.strikethrough||e.textColor||e.navigationEndpoint||_.O(e,vc)){H=!0;break a}}H=!1}H?this.formattedSnippetText?(this.formattedSnippetText.text=BQD(D,t),this.currentSnippetType=1):_.Yw(new _.nZ("Tried to set snippet text when HTML element was null",D)):(this.plainSnippetText.textContent=
Bc(_.eo(D),t),this.currentSnippetType=2)}};
_.q.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.q.attributedTextIsEmpty=function(){var D=this.text;if(!_.HZ(D))return!0;var t;return((t=D.content)==null?void 0:t.length)===0?!0:!1};
_.q.resize=function(D){if(this.snippetText){if(D===void 0?0:D)this.JSC$16417_lastWidth=NaN;var t=this.hostElement.offsetWidth;if(t!==this.JSC$16417_lastWidth&&!this.isExpanded)if(this.JSC$16417_lastWidth=t,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;D=0;var H,e;t=Math.min(t*this.maxLines/8*2,(e=(H=this.simpleText)==null?void 0:H.length)!=null?e:0)-1;for(H=0;D<=t;)e=Math.floor(D+(t-D)/2),this.setSnippetText(this.text,e),this.isOverflowing()?t=e-1:(D=e+1,H=e);this.setSnippetText(this.text,H);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.q.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.q.onExpandClick=function(){var D=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.r("inline_expander_reset_focus_killswitch")||_.Vi(this,function(){var t;((t=_.qS().resolve(_.by(_.S8)))==null?0:t.isKeyBoardInUse())&&_.Dx(D.hostElement)});
_.Gf(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.q.onCollapseClick=function(){this.collapse();_.Gf(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.q.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.q.computeExpandButtonOffset=function(){var D=this.expandSizer;return D?exa?D.offsetParent?D.offsetParent.offsetWidth-D.offsetWidth-D.offsetLeft:0:D.offsetLeft:0};
_.ql.Object.defineProperties(zj.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.HZ(this.text)?this.text.content||"":_.eo(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 _.HZ(this.text)?!0:this.text&&_.r("web_replace_formatted_with_attributed_string")&&zcR(this.text)?(this.text=_.lf(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}}});
zj.prototype.onTextChanged=zj.prototype.onTextChanged;zj.prototype.updateMaskAndExpandButtonOffset=zj.prototype.updateMaskAndExpandButtonOffset;zj.prototype.updateSnippetContainerMaxHeight=zj.prototype.updateSnippetContainerMaxHeight;zj.prototype.isExpandedChanged=zj.prototype.isExpandedChanged;zj.prototype.updateTextOnSnippetTypeChange=zj.prototype.updateTextOnSnippetTypeChange;zj.prototype.updateIsFormattedExpanded=zj.prototype.updateIsFormattedExpanded;zj.prototype.updateIsAttributedExpanded=zj.prototype.updateIsAttributedExpanded;
zj.prototype.onClick=zj.prototype.onClick;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],zj.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],zj.prototype,"text",void 0);_.d([_.M(),_.x("design:type",Array)],zj.prototype,"headerRuns",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zj.prototype,"engagementPanel",void 0);_.d([_.M(),_.x("design:type",Object)],zj.prototype,"maxLines",void 0);
_.d([_.M(),_.x("design:type",String)],zj.prototype,"expandLabel",void 0);_.d([_.M(),_.x("design:type",String)],zj.prototype,"collapseLabel",void 0);_.d([_.M(),_.x("design:type",Object)],zj.prototype,"expandCommand",void 0);_.d([_.M(),_.x("design:type",Object)],zj.prototype,"expandButtonOffset",void 0);_.d([_.m("text"),_.x("design:type",String),_.x("design:paramtypes",[])],zj.prototype,"simpleText",null);
_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],zj.prototype,"onClick",null);_.d([_.m("text","isExpanded"),_.x("design:type",Object),_.x("design:paramtypes",[])],zj.prototype,"expandedText",null);_.d([_.m("headerRuns","isExpanded"),_.x("design:type",Object),_.x("design:paramtypes",[])],zj.prototype,"expandedHeaderRuns",null);
_.d([_.m("text"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zj.prototype,"hasAttributedStringText",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zj.prototype,"showExpandButton",void 0);_.d([_.m("collapseLabel","isExpanded"),_.x("design:type",Object),_.x("design:paramtypes",[])],zj.prototype,"showCollapseButton",null);_.d([_.M(),_.x("design:type",Object)],zj.prototype,"isTruncated",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zj.prototype,"isExpanded",void 0);_.d([_.M(),_.x("design:type",Boolean)],zj.prototype,"isAttributedExpanded",void 0);_.d([_.Os("isExpanded","hasAttributedStringText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zj.prototype,"updateIsAttributedExpanded",null);_.d([_.M(),_.x("design:type",Boolean)],zj.prototype,"isFormattedExpanded",void 0);
_.d([_.Os("isExpanded","hasAttributedStringText"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zj.prototype,"updateIsFormattedExpanded",null);_.d([_.M(),_.x("design:type",Number)],zj.prototype,"currentSnippetType",void 0);_.d([_.m("currentSnippetType"),_.x("design:type",Object),_.x("design:paramtypes",[])],zj.prototype,"useAttributedSnippet",null);
_.d([_.m("currentSnippetType"),_.x("design:type",Object),_.x("design:paramtypes",[])],zj.prototype,"useFormattedSnippet",null);_.d([_.m("currentSnippetType"),_.x("design:type",Object),_.x("design:paramtypes",[])],zj.prototype,"usePlainSnippet",null);_.d([_.M(),_.x("design:type",Object)],zj.prototype,"alwaysShowExpandButton",void 0);_.d([_.Os("currentSnippetType"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zj.prototype,"updateTextOnSnippetTypeChange",null);
_.d([_.M(),_.x("design:type",Object)],zj.prototype,"attributedSnippetText",void 0);_.d([_.o5("#snippet"),_.x("design:type",HTMLElement)],zj.prototype,"snippetContainer",void 0);_.d([_.o5("#snippet-text"),_.x("design:type",HTMLElement)],zj.prototype,"snippetText",void 0);_.d([_.o5("#plain-snippet-text"),_.x("design:type",HTMLElement)],zj.prototype,"plainSnippetText",void 0);_.d([_.o5("#formatted-snippet-text"),_.x("design:type",Object)],zj.prototype,"formattedSnippetText",void 0);
_.d([_.o5("#attributed-snippet-text"),_.x("design:type",Object)],zj.prototype,"attributedSnippetTextEl",void 0);_.d([_.o5("#expand"),_.x("design:type",HTMLElement)],zj.prototype,"expandButton",void 0);_.d([_.o5("#expand-sizer"),_.x("design:type",HTMLElement)],zj.prototype,"expandSizer",void 0);_.d([_.mx("isExpanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zj.prototype,"isExpandedChanged",null);
_.d([_.Os("isExpanded","maxLines"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zj.prototype,"updateSnippetContainerMaxHeight",null);_.d([_.Os("isTruncated","showExpandButton","expandButtonOffset"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zj.prototype,"updateMaskAndExpandButtonOffset",null);
_.d([_.mx("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zj.prototype,"onTextChanged",null);_.d([_.Y({is:"ytd-text-inline-expander",disableElementRegistration:!0})],zj);
_.p(zj,"ytd-text-inline-expander",function(){if(HT9===void 0){var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden$="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden$="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);HT9=D}D=HT9;return D},{mode:2});var Dq=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return D};
_.P(Dq,_.X);Dq.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
Dq.prototype.handleUpdateDescriptionAction=function(D){if(D=_.O(D,_.kG6))if(D.attributedDescription)this.set("data.attributedDescriptionBodyText",D.attributedDescription);else if(D.description){var t;((t=this.data)==null?0:t.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.lf(D.description)):this.set("data.descriptionBodyText",D.description)}};
_.ql.Object.defineProperties(Dq.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var D,t;return!((D=this.data)==null||!D.attributedDescriptionBodyText)||!((t=this.data)==null||!t.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.collapsedLineCount){var t;return(t=this.data)==null?void 0:t.collapsedLineCount}D=_.ZU("web_watch_description_collapsed_default_lines",12);if(_.r("ww_desc_line_page_size_ks"))return D;t=Math.round(_.n_().height*_.ZU("web_watch_description_screen_height_percentage",.5)/20);return Math.max(t,D)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return(H=(D=this.data)==null?void 0:D.descriptionBodyText)!=null?H:(t=this.data)==null?void 0:t.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.sourceAttributions}}});
Dq.prototype.panelContentVisibleChanged=Dq.prototype.panelContentVisibleChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Dq.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Dq.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Dq.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Dq.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Boolean)],Dq.prototype,"panelContentVisible",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Dq.prototype,"engagementPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Dq.prototype,"shortsPanel",void 0);_.d([_.o5("#inline-expander"),_.x("design:type",Object)],Dq.prototype,"inlineExpander",void 0);
_.d([_.Os("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dq.prototype,"panelContentVisibleChanged",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Dq.prototype,"hasDescriptionText",null);_.d([_.m("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Dq.prototype,"collapsedLines",null);
_.d([_.m("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dq.prototype,"descriptionText",null);_.d([_.m("data","data.headerRuns"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dq.prototype,"headerRuns",null);_.d([_.m("data","data.sourceAttributions"),_.x("design:type",Object),_.x("design:paramtypes",[])],Dq.prototype,"sourceAttributions",null);
_.d([_.Y({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],Dq);
_.p(Dq,"ytd-expandable-video-description-body-renderer",function(){if(tH6!==void 0)return tH6;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return tH6=D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var VHa;var bTm=_.l(function(D){var t=D.data;return _.G("factoid-renderer",{class:"ytwFactoidRendererHost"},_.G("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return t().accessibilityText}},_.G("span",{class:"ytwFactoidRendererValue"},_.G(_.$7,{text:function(){return t().value}})),_.G("span",{class:"ytwFactoidRendererLabel"},_.G(_.$7,{text:function(){return t().label}}))))},"Sc");_.hB(bTm,"factoid-renderer",{props:{data:_.ij}});_.hB(_.l(function(D){var t=D.data;return _.G("upload-time-factoid-renderer",null,_.G(_.P5,{data:function(){return t().factoid}},{factoidRenderer:bTm}))},"Tc"),"upload-time-factoid-renderer",{props:{data:_.wm}});_.hB(_.l(function(D){var t=D.data;return _.G("view-count-factoid-renderer",null,_.G(_.P5,{data:function(){return t().factoid}},{factoidRenderer:bTm}))},"Uc"),"view-count-factoid-renderer",{props:{data:_.wm}});var tP=function(){var D=_.X.apply(this,arguments)||this;D.shortsPanel=!1;D.engagementPanel=!1;D.watchWhileSdp=_.r("shorts_desktop_watch_while_sdp");return D};
_.P(tP,_.X);tP.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"}}}}};
_.ql.Object.defineProperties(tP.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var D;return(D=this.data)==null?void 0:D.channel}}});
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],tP.prototype,"componentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],tP.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],tP.prototype,"shortsPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],tP.prototype,"engagementPanel",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],tP.prototype,"watchWhileSdp",void 0);_.d([_.m("shortsPanel","engagementPanel","data.channel"),_.x("design:type",Object),_.x("design:paramtypes",[])],tP.prototype,"showChannelInfo",null);_.d([_.Y({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],tP);
_.p(tP,"ytd-video-description-header-renderer",function(){if(VHa!==void 0)return VHa;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return VHa=D},{mode:1});var q04;var HD=function(){return _.X.apply(this,arguments)||this};
_.P(HD,_.X);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],HD.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],HD.prototype,"ytRendererBehavior",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],HD.prototype,"noPadding",void 0);_.d([_.M(),_.x("design:type",Object)],HD.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],HD);
_.p(HD,"ytd-list-item-view-model",function(){if(q04!==void 0)return q04;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return q04=D},{mode:1});var F66;var apa;var woo;var ZTf;var eF=function(){var D=_.X.apply(this,arguments)||this;D.adaptiveFullWidth=!1;D.modernButtons=_.r("web_modern_buttons");D.buttonOverrides={style:"call-to-action",type:"filled"};D.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return D};
_.P(eF,_.X);eF.prototype.handleSetTimestamp_=function(D){this.data&&this.data.shortUrl&&(_.Kg(this.hostElement).querySelector("#share-url").value=D.isSet?_.VK(this.data.shortUrl,"t",D.timestamp):this.data.shortUrl)};
eF.prototype.handleSignalActionCopyShareUrl_=function(D,t){(_.r("killswitch_copy_link_target_check")||_.Kg(this.hostElement).querySelector("#copy-button")===t)&&this.copyUrlToClipboard()};
eF.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Kg(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
eF.prototype.computeStyle_=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],eF.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],eF.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],eF.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.x("design:type",String)],eF.prototype,"rendererStyle",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],eF.prototype,"adaptiveFullWidth",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],eF.prototype,"modernButtons",void 0);_.d([_.M(),_.x("design:type",Object)],eF.prototype,"buttonOverrides",void 0);_.d([_.xL({is:"yt-copy-link-renderer",disableElementRegistration:!0})],eF);
_.p(eF,"yt-copy-link-renderer",function(){if(ZTf===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;woo===void 0&&(woo=document.createElement("template"));var e=woo;H.call(t,e.content.cloneNode(!0),D.content.firstChild);ZTf=D}D=ZTf;return D},{mode:2});_.AB("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var VJ=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return D};
_.P(VJ,_.X);_.q=VJ.prototype;_.q.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.q.attached=function(){this.keyboardFocused=!1};
_.q.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var D=_.qS().resolve(_.by(_.S8));D&&(this.keyboardFocused=D.isKeyBoardInUse())}};
_.q.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.q.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}};
_.q.onChange_=function(){if(this.data){var D=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;D&&this.ytComponentBehavior.resolveCommand(D);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.q.handleUpdateToggleAction_=function(D){(D=_.O(D,lDa))&&this.data&&D.targetId==this.data.targetId&&this.set("data.toggled",D.toggled)};
_.q.toBoolean_=function(D){return!!D};
_.q.reset=function(){};
_.q.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("data-changed",this.data))};
_.q.updateDataToggledFromBinding=function(D){this.set("data.toggled",D.detail.value)};
VJ.prototype.dataChangedForBinding=VJ.prototype.dataChangedForBinding;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],VJ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],VJ.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],VJ.prototype,"data",void 0);_.d([_.M({computed:"computeDescription_(data.*)"}),_.x("design:type",Object)],VJ.prototype,"description_",void 0);_.d([_.M({value:function(){return!!_.qS().resolve(_.by(_.S8))&&_.r("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.x("design:type",Boolean)],VJ.prototype,"useKeyboardFocused",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],VJ.prototype,"keyboardFocused",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VJ.prototype,"dataChangedForBinding",null);_.d([_.xL({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],VJ);
_.p(VJ,"yt-toggle-form-field-renderer",function(){if(apa===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;F66===void 0&&(F66=document.createElement("template"));var e=F66;H.call(t,e.content.cloneNode(!0),D.content.firstChild);apa=D}D=apa;return D},{mode:2});var slv;var hxm;var bp=function(){var D=_.X.apply(this,arguments)||this;D.isDarkTheme=!1;D.isSearch=!1;D.darkerDarkTheme=_.r("web_darker_dark_theme");D.noTopMargin=_.r("kevlar_watch_no_top_margin");D.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 D};
_.P(bp,_.X);_.q=bp.prototype;_.q.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}}}}}};
_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.q.dataChanged=function(){var D=this.getSelectedIndex();if(D>0)this.selected=D;else{this.selected=0;var t,H;(t=this.ytScrollableChipCloudBehavior)==null||(H=t.reset)==null||H.call(t)}};
_.q.getSelectedIndex=function(){var D;if((D=this.data)==null||!D.chips)return-1;D=-1;for(var t,H=0;H<((t=this.data)==null?void 0:t.chips.length);H++){var e=void 0,V=void 0;if((e=this.data)==null?0:(V=e.chips[H].chipCloudChipRenderer)==null?0:V.isSelected){D=H;break}}return D};
_.q.onResize=function(){var D=this.ytScrollableChipCloudBehavior;_.Vi(D,D.setContainerWidthDiff);D=this.ytScrollableChipCloudBehavior;_.Vi(D,D.setButtonsState)};
_.q.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.q.handleRelatedChipCommand=function(D,t){D=this.JSC$16444_chipsSelector.indexOf(t);D!==-1&&this.JSC$16444_chipsSelector.selectIndex(D)};
_.q.handleChipCloudChipSelectAction=function(D){D=this.JSC$16444_chipsSelector.indexOf(D);D>-1&&this.JSC$16444_chipsSelector.selectIndex(D)};
_.q.handleChipCloudChipDeselectAction=function(){var D=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16444_chipsSelector&&((D==null?0:D.continuationCommand)?_.NJ(this.hostElement,[D]):(D==null?0:D.searchEndpoint)?this.ytComponentBehavior.resolveCommand(D):D&&_.k0(this.hostElement,[D],this.hostElement),this.JSC$16444_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.q.updateSelectedFromBinding=function(D){this.selected=D.detail.value};
bp.prototype.onResize=bp.prototype.onResize;bp.prototype.dataChanged=bp.prototype.dataChanged;bp.prototype.isSearchChanged=bp.prototype.isSearchChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],bp.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],bp.prototype,"actionHandlerBehavior",void 0);
_.d([_.C(_.QI),_.x("design:type",Object)],bp.prototype,"ironResizableBehavior",void 0);_.d([_.C(),_.x("design:type",YW)],bp.prototype,"ytScrollableChipCloudBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],bp.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],bp.prototype,"data",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],bp.prototype,"selected",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],bp.prototype,"isDarkTheme",void 0);_.d([_.M({value:160}),_.x("design:type",Number)],bp.prototype,"scrollDistance",void 0);_.d([_.M(),_.x("design:type",Object)],bp.prototype,"isSearch",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],bp.prototype,"darkerDarkTheme",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],bp.prototype,"noTopMargin",void 0);
_.d([_.o5("#chips"),_.x("design:type",Object)],bp.prototype,"JSC$16444_chipsSelector",void 0);_.d([_.Os("isSearch"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bp.prototype,"isSearchChanged",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bp.prototype,"dataChanged",null);_.d([_.rx("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bp.prototype,"onResize",null);
_.d([_.xL({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],bp);
_.p(bp,"yt-chip-cloud-renderer",function(){if(hxm===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;slv===void 0&&(slv=document.createElement("template"));var e=slv;H.call(t,e.content.cloneNode(!0),D.content.firstChild);hxm=D}D=hxm;return D},{mode:2});var G9m,Ed3=function(){return G9m!==void 0?G9m:G9m=document.createElement("template")};
document.head.appendChild(Ed3().content);var K66;var Nl6=document.head,k93=Nl6.appendChild,Tl3;if(K66===void 0){var cYw=document.createElement("template");_.n(cYw,"");cYw.content.insertBefore(Ed3().content.cloneNode(!0),cYw.content.firstChild);K66=cYw}Tl3=K66;k93.call(Nl6,Tl3.content);var jlQ=_.l(function(D){var t=D.data;return _.G("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.G("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.G("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.G(_.E,{cond:function(){return _.Rn(t().image)},
then:function(H){return _.G("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.G(_.bi,{data:H,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.G("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.G(_.$7,{text:function(){return t().title}})),_.G("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.G(_.$7,{text:function(){return t().subtitle}})))),_.G(_.E,{cond:function(){var H;
return(H=t())==null?void 0:H.hasBottomDivider},
then:function(){return _.G("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Vc");var $f3=_.l(function(D){var t=D.data;return _.G("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.G("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.G(_.P5,{data:function(){var H;return(H=t().offerPlanDetailsItem)!=null?H:[]}},{offerPlanDetailsItemViewModel:function(H){return _.G("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.G(jlQ,{data:H.data}))}})),_.G("div",null,_.G(_.E,{cond:function(){return t().hasBottomDivider},
then:function(){return _.G("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.G("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.G("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.G("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.G("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Wc");var iTa=_.l(function(D){var t=D.data;D=_.F(_.KR(!1,void 0,"OHF6Ec"));var H=D.next().value,e=D.next().value,V=_.$X(function(){e(!H());return!1}),b=function(){var a;
return(a=t().offerPlanDetailsContainer)!=null?a:[]};
return _.G("lp-complex-offer-card-details-view-model",null,_.G("div",null,_.G(_.E,{cond:function(){return H()},
then:function(){return _.G("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.G("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":V,"aria-expanded":H},_.G(_.$7,{text:function(){return t().expandedTitle}})),_.G("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.G(_.P5,{data:b},{offerPlanDetailsContainerViewModel:function(a){return _.G("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.G($f3,{data:a.data}))}})),_.G("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.G(_.$7,{text:function(){return t().legalText}})))},
else:function(){return _.G("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":V,"aria-expanded":H},_.G(_.$7,{text:function(){return t().collapsedTitle}}),_.G("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.G(_.U7,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Xc");var rYo=_.l(function(D){var t=D.data;return _.G("lp-complex-offer-card-option-view-model",null,_.G("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.G(_.E,{cond:function(){return t().topDividerText},
then:function(){return _.G("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.G("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.G("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.G("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.G(_.$7,{text:function(){return t().topDividerText}}))))}}),_.G(_.E,{cond:function(){return t().description},
then:function(){return _.G("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.G(_.$7,{text:function(){return t().description}}))}}),_.G(_.E,{cond:function(){return t().planPricingPrimary},
then:function(){return _.G("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.G(_.$7,{text:function(){return t().planPricingPrimary}}))}}),_.G(_.E,{cond:function(){return t().planPricingSecondary},
then:function(){return _.G("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.G(_.$7,{text:function(){return t().planPricingSecondary}}))}}),_.G(_.E,{cond:function(){return t().primaryButton},
then:function(){return _.G("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.G(_.P5,{data:function(){return t().primaryButton}},{buttonViewModel:function(H){return _.G(_.JX,{data:H.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Yc");var OT4=_.l(function(D){var t=D.data;var H=function(){var b;return((b=t())==null?void 0:b.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
D={};var e={},V={};return _.G("ytm-lp-complex-offer-card-view-model",null,_.G("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.G("div",{class:_.jQ((D.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=H,D),"ytmLpComplexOfferCardViewModelCardContainer")},_.G(_.E,{cond:function(){var b;return(b=t())==null?void 0:b.bannerText},
then:function(){return _.G("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.G("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.G(_.$7,{text:function(){return t().bannerText}})))}}),_.G(_.E,{cond:function(){return _.Rn(t().logo)},
then:function(b){var a={};return _.G("div",{class:_.jQ((a.ytmLpComplexOfferCardViewModelLogoAlignLeft=H,a),"ytmLpComplexOfferCardViewModelLogo")},_.G(_.bi,{data:b,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.G("div",{class:_.jQ((e.ytmLpComplexOfferCardViewModelTitleAlignLeft=H,e),"ytmLpComplexOfferCardViewModelTitle")},_.G(_.$7,{text:function(){return t().title}})),_.G(_.E,{cond:function(){var b;
return(b=t())==null?void 0:b.subtitle},
then:function(){var b={};return _.G("div",{class:_.jQ((b.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=H,b),"ytmLpComplexOfferCardViewModelSubtitle")},_.G(_.$7,{text:function(){return t().subtitle}}))}}),_.G(_.E,{cond:function(){return t().planPricingPrimary},
then:function(){return _.G("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.G(_.$7,{text:function(){return t().planPricingPrimary}}))}}),_.G(_.E,{cond:function(){return t().planPricingSecondary},
then:function(){return _.G("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.G(_.$7,{text:function(){return t().planPricingSecondary}}))}}),_.G(_.E,{cond:function(){return t().purchaseButton},
then:function(){return _.G("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.G(_.P5,{data:function(){return t().purchaseButton}},{buttonViewModel:function(b){return _.G(_.JX,{data:b.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.G(_.E,{cond:function(){var b;
return(b=t())==null?void 0:b.offerOptions},
then:function(){return _.G("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.G(_.P5,{data:function(){return t().offerOptions}},{lpComplexOfferCardOptionViewModel:rYo}))}}),_.G("div",{class:_.jQ((V.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=H,V),"ytmLpComplexOfferCardViewModelLegalText")},_.G(_.$7,{text:function(){return t().legalText}})),_.G(_.E,{cond:function(){var b;
return(b=t())==null?void 0:b.offerCardDetails},
then:function(){return _.G("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.G(_.P5,{data:function(){return t().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:iTa}))}}))))},"Zc");var Uf9=_.l(function(D){var t=D.data;var H=function(){var a;return((a=t())==null?void 0:a.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
D={};var e={},V={},b={};return _.G("ytm-lp-complex-offer-card-section-view-model",null,_.G("div",{class:_.jQ("ytmLpComplexOfferCardSectionViewModelHost")},_.G("div",{class:_.jQ((D.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=H,D),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.G("div",{class:_.jQ((e.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=H,e),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.G("h2",{class:_.jQ((V.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
H,V),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.G(_.$7,{text:function(){return t().title}}))),_.G(_.E,{cond:function(){var a;
return(a=t())==null?void 0:a.subtitle},
then:function(){var a={},w={};return _.G("div",{class:_.jQ((a.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=H,a),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.G("div",{class:_.jQ((w.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=H,w),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.G(_.$7,{text:function(){return t().subtitle}})))}}),_.G("div",{class:_.jQ((b.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=H,b),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.G(_.P5,{data:function(){var a;
return(a=t().offerPlans)!=null?a:[]}},{lpComplexOfferCardViewModel:function(a){return _.G("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.G(OT4,{data:a.data}))}})))))},"$c");var od9=_.l(function(D){return _.G("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.G("div",{class:"ytLpCouponBannerViewModelIcon"},_.G(_.U7,{icon:function(){return"price_tag"}})),_.G("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.G("div",{class:"ytLpCouponBannerViewModelContent"},_.G("div",{class:"ytLpCouponBannerViewModelHeading"},_.G(_.$7,{text:function(){var t;
return(t=D.data())==null?void 0:t.title}})),_.G("div",{class:"ytLpCouponBannerViewModelBody"},_.G(_.$7,{text:function(){var t;
return(t=D.data())==null?void 0:t.subtitle}})))))},"ad");
od9.idomCompat=!0;_.qj=f4v.getInstance();var P7m;P7m=_.l(function(D){return _.G("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":D.shouldAriaHideContent},_.G("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:D.questionId},_.G(_.$7,{text:D.question})))},"bd");
_.ndn=_.l(function(D){var t=D.data;var H=D.themeOverride;D=_.F(_.KR(!1,void 0,"pNli2b"));var e=D.next().value,V=D.next().value;D=_.$X(function(){V(!e());return!1});
var b=function(){return e()?"EXPAND_LESS":"EXPAND_MORE"},a=("faq-container"+_.Qr(_.qj)).toString(),w="faq-question-and-answers-section-question"+_.Qr(_.qj),h={},K={};
return _.G("faq-entry-view-model",null,_.G("div",{class:_.jQ("ytLpFaqEntryViewModelHost",(h.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return H==null?void 0:H().useDarkTheme},h))},_.G("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":D,role:"button","aria-expanded":e,"aria-labelledby":w.toString(),"tab-index":"0"},_.G(P7m,{question:function(){return t().question},
questionId:w,shouldAriaHideContent:!0}),_.G(_.E,{cond:function(){return e()!==void 0},
then:function(){return _.G("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.G(_.U7,{icon:b,ariaHidden:!0}),_.G("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.G("div",{class:_.jQ("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(K.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!e()},K))},_.G("div",{id:a},_.G(_.nY,{each:function(){return t().answers||[]}},function(N){return _.G("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.G(_.$7,
{text:N}))})))))},"cd");
_.ndn.idomCompat=!0;var C7n=_.l(function(D){var t=D.data;var H=D.themeOverride;D={};return _.G("lp-faq-section-view-model",null,_.G("div",{class:_.jQ("yt-lp-faq-section-view-model",(D["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},D["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(H==null||!H().useDarkTheme)},D))},_.G("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.G(_.E,{cond:function(){return t().header},
then:function(e){return _.G("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.G(_.$7,{text:e}))}}),_.G("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.G(_.P5,{data:function(){return t().faqs}},{faqEntryViewModel:function(e){return _.G(_.ndn,{data:e.data,
themeOverride:H})}})),_.G("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.G(_.nY,{each:function(){return t().footers||[]}},function(e){return _.G(_.$7,{text:e})})),_.G(_.E,{cond:function(){return t().legal},
then:function(e){return _.G("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.G(_.$7,{text:e}))}}))))},"dd");
C7n.idomCompat=!0;var mfn=_.l(function(D){var t=D.data;var H=D.themeOverride;_.XH(function(){var a=t().gtmId;a&&_.HP(a,_.YC("GL",""))});
var e={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var a,w,h;return(h=(a=t().logo)==null?void 0:(w=a.accessibilityData)==null?void 0:w.label)!=null?h:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},V=_.qS().resolve(_.by(_.tB)),b=function(){return V&&V()||(H==null?void 0:H().useDarkTheme)};
return _.G("lp-header-section-view-model",null,_.G("div",{class:function(){var a=t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",w=t().marginType==="LP_SECTION_MARGIN_TYPE_TOP",h=H==null?void 0:H().useDarkTheme,K=["lp-header-section-view-model"];a&&K.push("lp-header-section-view-model--ptc-layout-type");w&&K.push("lp-header-section-view-model__lp-header-section-margin");h&&K.push("lp-header-section-view-model--premium-force-dark-mode");return K.join(" ")}},_.G(_.E,{cond:function(){return t().logo},
then:function(){return _.G("div",null,_.G(_.E,{cond:b,then:function(){return _.G(_.E,{cond:function(){var a;return(a=t().logo)==null?void 0:a.imageDark},
then:function(a){return _.G(_.bi,Object.assign({},{data:a},e))}})},
else:function(){return _.G(_.E,{cond:function(){var a;return(a=t().logo)==null?void 0:a.imageLight},
then:function(a){return _.G(_.bi,Object.assign({},{data:a},e))}})}}))}}),_.G(_.E,{cond:function(){return t().title},
then:function(a){return _.G("div",{class:"lp-header-section-view-model__lp-header-title"},_.G(_.$7,{text:a}))}}),_.G("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.G(_.E,{cond:function(){return t().subtitles},
then:function(a){return _.G(_.nY,{each:a},function(w){return _.G("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.G(_.$7,{text:w}))})}})),_.G(_.E,{cond:function(){return t().additionalInfo},
then:function(a){return _.G("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.G(_.$7,{text:a}))}}),_.G("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.G(_.E,{cond:function(){return t().primaryButton},
then:function(a){return _.G("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.G(_.P5,{data:a},{buttonViewModel:_.JX}))}}),_.G(_.E,{cond:function(){return t().secondaryButton},
then:function(a){return _.G("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.G(_.P5,{data:a},{buttonViewModel:_.JX}))}})),_.G(_.E,{cond:function(){return t().otherOffersInfo},
then:function(a){return _.G("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.G(_.$7,{text:a}))}}),_.G("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.G(_.E,{cond:function(){return t().billingInfo},
then:function(a){return _.G(_.nY,{each:a},function(w){return _.G("div",null,_.G(_.$7,{text:w}))})}}))))},"ed");
mfn.idomCompat=!0;var MH9=_.l(function(D){var t=D.data;var H=_.qT(D.themeOverride,{useDarkTheme:!1});D={};D=_.jQ("ytmLpHeadlineSectionViewModelHost",(D.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return H().useDarkTheme},D));
return _.G("lp-headline-section-view-model",null,_.G("div",{class:D},_.G(_.E,{cond:function(){return t().title},
then:function(e){return _.G("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.G(_.$7,{text:e}))}}),_.G(_.E,{cond:function(){return t().subtitle},
then:function(e){return _.G("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.G(_.$7,{text:e}))}})))},"fd");var S0m=_.l(function(D){var t=D.data;var H=D.themeOverride;var e=_.qS().resolve(_.by(_.tB)),V=function(){return e&&e()||(H==null?void 0:H().useDarkTheme)},b=function(){var K,N;
var k=V()?(K=t().textBackgroundImage)==null?void 0:K.imageDark:(N=t().textBackgroundImage)==null?void 0:N.imageLight;return QrX((k==null?void 0:k.sources)||[])},a=function(){var K,N;
return V()?(K=t().featureImage)==null?void 0:K.imageDark:(N=t().featureImage)==null?void 0:N.imageLight},w=function(){return t().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},h=function(){var K,N;
return V()?(K=t().logo)==null?void 0:K.imageDark:(N=t().logo)==null?void 0:N.imageLight};
return _.G("ytm-lp-large-feature-section-view-model",null,_.G("div",{class:function(){var K=t().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",N=t().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",k=(t().index||0)%2===1,T=H==null?void 0:H().useDarkTheme,c=["yt-lp-large-feature-section-view-model"];K?c.push("yt-lp-large-feature-section-view-model--music-feature-type"):N?c.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):k||c.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
T&&c.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return c.join(" ")}},_.G("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.G(_.E,{cond:a,
then:function(){return _.G(_.bi,{data:function(){return a()},
alt:function(){var K,N,k;return(k=(K=t().featureImage)==null?void 0:(N=K.accessibilityData)==null?void 0:N.label)!=null?k:""},
contentMode:w})}})),_.G("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var K;return((K=b())==null?0:K.url)?"background-image: url("+_.dw(b().url)+");":""}},_.G("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.G(_.E,{cond:h,
then:function(){return _.G(_.bi,{data:function(){return h()},
alt:function(){var K,N,k;return(k=(K=t().logo)==null?void 0:(N=K.accessibilityData)==null?void 0:N.label)!=null?k:""},
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"})}}),_.G(_.E,{cond:function(){return t().eyebrowText},
then:function(){return _.G("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.G(_.$7,{text:function(){return t().eyebrowText}}))}}),_.G(_.E,{cond:function(){return t().title},
then:function(){return _.G("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.G(_.$7,{text:function(){return t().title}}))}}),_.G(_.E,{cond:function(){return t().subtitles},
then:function(){return _.G("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.G(_.nY,{each:function(){return t().subtitles||[]}},function(K){return _.G(_.$7,{text:K})}))}})))))},"gd");
S0m.idomCompat=!0;var Xo4=_.l(function(D){return _.G("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.G("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.G(_.U7,{icon:function(){var t;return(t=D.data())==null?void 0:t.iconType},
className:function(){var t;switch((t=D.data())==null?void 0:t.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var t;return((t=D.data())==null?void 0:t.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.G("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.G(_.$7,{text:function(){var t;
return(t=D.data())==null?void 0:t.text},
className:function(){var t;return((t=D.data())==null?void 0:t.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"hd");var fp3=_.l(function(D){D=_.FQ(D,{config:void 0,themeOverride:void 0});var t=D.data,H=D.config,e=D.themeOverride;D={};D=_.jQ("ytmLpOfferCardOptionViewModelHost",(D.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var w;return(w=e())==null?void 0:w.useDarkTheme},D));
var V=_.$X(function(){var w,h;(w=H())==null||(h=w.handleRadioButtonClick)==null||h.call(w,t());return!1}),b=function(){var w;
return(w=H())==null?void 0:w.shouldDisplayRadioButton},a=function(){var w;
return(w=t().featureListItems)!=null?w:[]};
return _.G("ytm-lp-offer-card-option-view-model",null,_.G("div",{class:D,"on:click":_.$X(function(){if(b()){var w,h;(w=H())==null||(h=w.handleRadioButtonClick)==null||h.call(w,t())}return!1})},_.G(_.E,{cond:b,
then:function(){return _.G("div",null,_.G("input",{type:"radio","on:click":V,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var w;return!((w=H())==null||!w.isOptionSelected)}}))}}),_.G("div",null,_.G("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.G(_.$7,{text:function(){return t().eyebrowText}})),_.G("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.G(_.$7,{text:function(){return t().title}})),_.G("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.G(_.$7,
{text:function(){return t().subtitle}})),_.G(_.E,{cond:function(){return a().length>0},
then:function(){return _.G("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.G(_.P5,{data:a},{lpFeatureListItemViewModel:Xo4}))}}),_.G("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.G(_.$7,{text:function(){return t().description}})))))},"id");
fp3.idomCompat=!0;var L6n=_.l(function(D){var t=D.data;var H=D.themeOverride;D=_.F(_.rm(function(){var b,a=(b=t().offerOptions)==null?void 0:b[0];return _.O(a,P2Q)||{}}));
var e=D.next().value,V=D.next().value;D={};return _.G("ytm-lp-offer-card-view-model",null,_.G("div",{class:_.jQ("ytmLpOfferCardViewModelHost",(D.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(H==null||!H().useDarkTheme)},D))},_.G("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.G(_.E,{cond:function(){return t().titleIconType},
then:function(){return _.G("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.G(_.U7,{icon:function(){var b;return((b=t().titleIconType)==null?void 0:b.toString())||""}}))}}),_.G("div",{class:"ytmLpOfferCardViewModelTitleText"},_.G(_.$7,{text:function(){return t().title}})),_.G(_.P5,{data:function(){return t().titleBadge}},{badgeViewModel:function(b){return _.G("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.G(_.Mi,{data:b.data}))}})),_.G("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.G(_.P5,{data:function(){return t().offerOptions}},{lpOfferCardOptionViewModel:function(b){var a=b.data;
return _.G(_.FH,null,_.G("div",{class:"ytmLpOfferCardViewModelDivider"}),_.G(fp3,{data:a,config:function(){var w;return{shouldDisplayRadioButton:(t().offerOptions||[]).length>1,isOptionSelected:a().id===((w=e())==null?void 0:w.id),handleRadioButtonClick:function(h){return void V(h)}}},
themeOverride:H}))}})),_.G("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.G(_.P5,{data:function(){var b;
return(b=e())==null?void 0:b.purchaseButtonOverride}},{buttonViewModel:_.JX}))))},"jd");
L6n.idomCompat=!0;var AYa=_.l(function(D){var t=D.data;var H=D.themeOverride;D={};D=_.jQ("ytmLpOfferCardSectionViewModelHost",(D.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var e;return H==null?void 0:(e=H())==null?void 0:e.useDarkTheme},D));
return _.G("ytm-lp-offer-card-section-view-model",null,_.G("div",{class:D},_.G(_.E,{cond:function(){return t().title!==void 0},
then:function(){return _.G("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.G("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.G(_.$7,{text:function(){return t().title}})),_.G(_.E,{cond:function(){return t().subtitle},
then:function(){return _.G("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.G(_.$7,{text:function(){return t().subtitle}}))}}))}}),_.G("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.G(_.P5,{data:function(){return t().offerCards}},{lpOfferCardViewModel:function(e){return _.G("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.G(L6n,{data:e.data,
themeOverride:H}))}})),_.G(_.E,{cond:function(){return t().footer},
then:function(){return _.G("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.G(_.$7,{text:function(){return t().footer}}))}})))},"kd");var gdQ=_.l(function(D){var t=D.data;return _.G("lp-offer-table-cell-content-view-model",null,_.G("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.G(_.CY,null,_.G(_.oD,{when:function(){return t().title}},function(){return _.G(_.$7,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return t().title}})}),_.G(_.oD,{when:function(){return t().subTitle}},function(){return _.G(_.$7,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return t().subTitle}})}),_.G(_.oD,{when:function(){return t().featureDescription}},function(){return _.G(_.$7,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return t().featureDescription}})}),_.G(_.oD,{when:function(){return t().description}},function(){return _.G(_.$7,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return t().description}})}),_.G(_.oD,{when:function(){return t().iconType}},function(){return _.G("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.G(_.U7,{icon:function(){return t().iconType.toString()}}))}),_.G(_.oD,{when:function(){return t().purchaseButton}},function(){return _.G(_.P5,{data:function(){return t().purchaseButton}},{buttonViewModel:function(H){return _.G("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.G(_.JX,
{data:H.data}))}})}),_.G(_.oD,{when:function(){return t().note}},function(){return _.G(_.$7,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return t().note}})}),_.G(_.oD,{when:function(){return t().featureDetail}},function(){return _.G(_.$7,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return t().featureDetail}})}),_.G(_.oD,{when:function(){return t().badge}},function(){return _.G(_.P5,{data:function(){return t().badge}},{badgeViewModel:_.Mi})}))))},"ld");
gdQ.idomCompat=!0;var JY4=_.l(function(D){var t=D.data;return _.G("lp-offer-table-cell-view-model",null,_.G("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(t().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.G(_.P5,{data:function(){return t().contents}},{lpOfferTableCellContentViewModel:gdQ})))},
"md");
JY4.idomCompat=!0;var Y0f=_.l(function(D){var t=D.data;var H=D.lpTableIsFirstRow;var e=D.lpTableIsLastRow;var V=function(){return(H==null?0:H())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},b=function(){return(H==null?0:H())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(e==null?0:e())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.G("ytm-lp-offer-table-row-view-model",null,_.G("div",{class:"ytLpOfferTableRowViewModelHost"},_.G(_.P5,{data:function(){return t().rowHeaderCell}},{lpOfferTableCellViewModel:function(a){return _.G("div",{class:V},_.G(JY4,{data:a.data}))}}),_.G(_.P5,{data:function(){return t().contentCells}},{lpOfferTableCellViewModel:function(a){return _.G("div",{class:b},_.G(JY4,{data:a.data}))}})))},"nd");
Y0f.idomCompat=!0;var lpv=_.l(function(D){var t=D.data;var H=D.themeOverride;var e=_.qS().resolve(_.by(_.tB)),V=function(){return _.O(t().logo,W2m)||{}};
D={};return _.G("ytm-lp-offer-table-section-view-model",null,_.G("div",{class:"ytLpOfferTableViewModelHost"},_.G(_.E,{cond:function(){var b,a;return e&&e()||(H==null?0:H().useDarkTheme)?(b=V())==null?void 0:b.imageDark:(a=V())==null?void 0:a.imageLight},
then:function(b){return _.G(_.bi,{data:b,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var a,w,h;return(h=(a=V())==null?void 0:(w=a.accessibilityData)==null?void 0:w.label)!=null?h:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.G("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.G(_.$7,{text:function(){return t().title}})),_.G("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.G(_.$7,{text:function(){return t().subtitle}})),_.G(_.E,{cond:function(){return t().disclaimers},
then:function(b){return _.G("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.G(_.nY,{each:b},function(a){return _.G("div",null,_.G(_.$7,{text:a}))}))}}),_.G("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.G(_.P5,{data:function(){return t().rows}},{lpOfferTableRowViewModel:function(b,a){return _.G(Y0f,{data:b.data,
lpTableIsFirstRow:function(){return a()===0},
lpTableIsLastRow:function(){return a()===t().rows.length-1}})}})),_.G("div",{class:_.jQ((D.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return t().hasFooterBackground},D))},_.G(_.E,{cond:function(){return t().footer},
then:function(){return _.G("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.G(_.$7,{text:function(){return t().footer}}))}}),_.G(_.E,{cond:function(){return t().footerTitle},
then:function(){return _.G("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.G(_.$7,{text:function(){return t().footerTitle}}))}}),_.G(_.E,{cond:function(){return t().footerDescription},
then:function(){return _.G("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.G(_.$7,{text:function(){return t().footerDescription}}))}}),_.G(_.E,{cond:function(){return t().footerDescriptions},
then:function(b){return _.G("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.G(_.nY,{each:b},function(a){return _.G("div",null,_.G(_.$7,{text:a}))}))}}))))},"od");
lpv.idomCompat=!0;var vd4=_.l(function(D){var t=D.data;var H=D.themeOverride;var e=_.qS().resolve(_.by(_.tB)),V=function(){var w;return H==null?void 0:(w=H())==null?void 0:w.useDarkTheme},b=function(){var w,h;
return e&&e()||V()?(w=t().image)==null?void 0:w.imageDark:(h=t().image)==null?void 0:h.imageLight};
D={};D=_.jQ("ytmLpSmallFeatureSectionViewModelHost",(D.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=V,D));var a=function(){var w,h,K;return(K=(w=t().image)==null?void 0:(h=w.accessibilityData)==null?void 0:h.label)!=null?K:""};
return _.G("ytm-lp-small-feature-section-view-model",{class:D},_.G(_.E,{cond:function(){return b()&&!d66},
then:function(){return _.G("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.G(_.bi,{data:function(){return b()},
alt:a,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.G("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.G("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.G(_.E,{cond:function(){return t().title},
then:function(w){return _.G(_.$7,{text:w})}})),_.G("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.G(_.$7,{text:function(){return t().description}}))))},"pd");
vd4.idomCompat=!0;var pow=_.l(function(D){var t=D.data;var H=D.themeOverride;D={};return _.G("ytm-lp-small-feature-section-group-view-model",null,_.G("div",{class:_.jQ("ytmLpSmallFeatureSectionGroupViewModelHost",(D.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(H==null||!H().useDarkTheme)},D))},_.G("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.G(_.P5,{data:function(){return t().smallFeatures}},{lpSmallFeatureSectionViewModel:function(e){return _.G("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.G(vd4,{data:e.data,
themeOverride:H}))}}))))},"qd");
pow.idomCompat=!0;_.hB(_.l(function(D){var t=D.data;var H=function(){return t().forcedTheme==="USER_INTERFACE_THEME_DARK"},e=function(){return t().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},V=function(){var a="",w,h;
var K=_.qS().resolve(_.by(_.tB));K=H()||(K==null?0:K())?(w=t().themedImageViewModel)==null?void 0:w.imageDark:(h=t().themedImageViewModel)==null?void 0:h.imageLight;(w=QrX((K==null?void 0:K.sources)||[]))&&w.url&&(a=e()?"background-image: linear-gradient(to bottom, transparent, "+(t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.dw(w.url)+");":"background-image: url("+_.dw(w.url)+");");return a},b=function(){return{useDarkTheme:H()}};
D={};return _.G("yt-section-group-view-model",null,_.G("div",{class:_.jQ("yt-lp-section-group-view-model",(D["yt-lp-section-group-view-model--premium-force-dark-mode"]=H,D["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return t().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},D))},_.G(_.E,{cond:function(){return V().length},
then:function(){var a={};return _.G("div",{class:_.jQ("yt-lp-section-group-view-model__bg-image",(a["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=e,a)),style:V})}}),_.G("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.G(_.P5,{data:function(){return t().sections}},{lpFaqSectionViewModel:function(a){return _.G(C7n,{data:a.data,
themeOverride:b})},
lpHeaderSectionViewModel:function(a){return _.G(mfn,{data:a.data,themeOverride:b})},
lpHeadlineSectionViewModel:function(a){return _.G(MH9,{data:a.data,themeOverride:b})},
lpLargeFeatureSectionViewModel:function(a){return _.G(S0m,{data:a.data,themeOverride:b})},
lpOfferCardSectionViewModel:function(a){return _.G(AYa,{data:a.data,themeOverride:b})},
lpComplexOfferCardSectionViewModel:function(a){return _.G(Uf9,{data:a.data})},
lpOfferTableSectionViewModel:function(a){return _.G(lpv,{data:a.data,themeOverride:b})},
lpSmallFeatureSectionGroupViewModel:function(a){return _.G(pow,{data:a.data,themeOverride:b})},
lpCouponBannerViewModel:function(a){return _.G(od9,{data:a.data})}}))))},"rd"),"yt-section-group-view-model",{props:{data:_.ij}});var tWD=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.dfv=_.l(function(D){function t(){if(tWD.has(D.data().displayType)){var K=!e(),N;if((N=D.disableDeselection)==null||!N.call(D)||K){D.data().selected=K;N=Object.assign({},a(),{selected:K});w(N);var k;(k=D.callback)==null||k.call(D,N,K)}}}
var H=_.DY("chip-view-model"),e=function(){var K,N;return!!(((K=D.selected)==null?void 0:K.call(D))!==void 0?(N=D.selected)==null?0:N.call(D):a().selected)},V=_.F(_.rm(D.data)),b=V.next().value;
V=V.next().value;var a=b,w=V,h=_.rF(DUT,function(){return D.data().chipEntityKey||""});
return _.G("chip-view-model",{class:"ytChipViewModelHost",el:H},_.G(i13,{data:function(){var K,N=Object.assign({},a(),{selected:e()}),k=h(),T=(K=D.disableDeselection)==null?void 0:K.call(D);a:switch(N.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":K=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":K=3;break a;default:K=0}return{text:(k==null?void 0:k.text)||N.text,state:N.disabled?1:N.selected?0:2,type:K,onTap:H6K(N,H,t,T),
accessibilityLabel:N.accessibilityLabel||N.text}}}))},"sd");
_.dfv.idomCompat={callbacks:{callback:!0}};_.xfn=_.l(function(D){var t=_.rF(zyV,function(){var a;return(a=D.data())==null?void 0:a.chipBarStateEntityKey}),H=function(){return D.data().disableDeselection},e=_.F(_.rm(function(){var a;
if(((a=t())==null?void 0:a.selectedIndex)!=void 0)return t().selectedIndex;var w,h;a=_.F(((w=D.data())==null?void 0:(h=w.chips)==null?void 0:h.entries())||[]);for(w=a.next();!w.done;w=a.next()){w=_.F(w.value);h=w.next().value;w=w.next().value;var K=void 0;if((K=_.O(w,_.G6))==null?0:K.selected)return h}return-1})),V=e.next().value,b=e.next().value;
return _.G("chip-bar-view-model",{class:_.jQ("ytChipBarViewModelHost",D.className),role:"tablist"},_.G(_.P5,{data:function(){return D.data().chips}},{chipViewModel:function(a,w){return _.G("div",{class:"ytChipBarViewModelChipWrapper"},_.G(_.dfv,{data:a.data,
selected:function(){return w()===V()},
callback:function(h,K){h=!!K;K=w();b(h?K:-1);var N,k=(N=D.data())==null?void 0:N.chipBarStateEntityKey;k&&h&&_.bf(_.nf("chipBarStateEntity",k,{key:k,selectedIndex:K}))},
disableDeselection:D.disableDeselection||H}))}}))},"td");_.hB(_.xfn,"chip-bar-view-model",{props:{data:_.wm,className:_.wm,disableDeselection:_.wm}});_.RxV=_.l(function(D){var t=D.data;D={};return _.G("divider-view-model",{class:_.jQ("dividerViewModelHost",(D.dividerViewModelInsetThinPadding=function(){return t().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},D))},_.G("div",{class:_.jQ("dividerViewModelBaseDivider",function(){return esA(t().dividerStyle)}),
style:_.O7({"background-color":function(){return t().backgroundColor?_.Ih(t().backgroundColor):void 0}})}))},"ud");
_.RxV.idomCompat=!0;_.hB(_.RxV,"divider-view-model",{props:{data:_.ij}});var OE=new Map,rg=new Map,quA=0,UE;var GUV=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],NH$={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var uaf,W6Q;uaf=function(D){return function(t){return function(){return(t==null?void 0:t())!==void 0?String(t())+D:void 0}}};
_.FN=uaf("px");W6Q=uaf("s");var IpB=Ghu(function(D){return D.targetGroupId}).useUpdatableData;_.yYf=_.l(function(D){function t(tT){return function(){var ZV=S().numItemsPerGridRow,ED=tT()*ZV;ZV=ED+ZV;var o$,jV;return(jV=(o$=e().contents)==null?void 0:o$.slice(ED,ZV))!=null?jV:[]}}
var H=_.FQ(D,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),e=H.data,V=H.layoutContainerWidth,b=H.shouldUseOwnContainerSize,a=H.marginSettings,w=vUV(),h=_.F(IpB(function(){var tT,ZV;return{targetGroupId:(tT=e().targetingContext)==null?void 0:(ZV=tT.targetGroupId)==null?void 0:ZV[0]}})).next().value;
H=_.F(_.KR(!0,void 0,"f25nob"));var K=H.next().value,N=H.next().value,k=function(){var tT,ZV=(tT=_.O(e().showMoreButton,_.h1))==null?void 0:tT.trackingParams;ZV&&_.YS(_.Pc(),ZV);N(!1)},T=function(){var tT,ZV=(tT=_.O(e().showLessButton,_.h1))==null?void 0:tT.trackingParams;
ZV&&_.YS(_.Pc(),ZV);N(!0)};
H=_.DY("grid-shelf-view-model");var c=_.THV(H,{canHaveZeroSize:!1}),U=function(){var tT;return(tT=e().contentAspectRatio)!=null?tT:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},S=_.jj(function(){var tT=_.xi({containerWidth:b()&&c.width()>0?c.width()||V():V(),
sizing:"EXTRA_COMPACT",marginSettings:a(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:tT.maxContainerWidth,numItemsPerGridRow:tT.numItems,contentPadding:b()?tT.margin:tT.contentMargin,itemWidth:tT.itemWidth,itemMargin:tT.gutter/2}},void 0,"b3gcJf"),L=function(){if(e().enableVerticalExpansion){if(K())return J();
var tT,ZV,ED=(ZV=(tT=e().contents)==null?void 0:tT.length)!=null?ZV:0;return Math.ceil(ED/S().numItemsPerGridRow)}return S().numItemsPerGridRow<=2?2:1},J=function(){var tT;
return Math.ceil(((tT=e().minCollapsedItemCount)!=null?tT:1)/S().numItemsPerGridRow)},g=function(){return e().enableVerticalExpansion&&e().showLessButton&&!K()&&L()>J()},Q=function(){var tT,ZV;
return e().enableVerticalExpansion&&e().showMoreButton&&K()&&((ZV=(tT=e().contents)==null?void 0:tT.length)!=null?ZV:0)>S().numItemsPerGridRow*J()},u=function(){return!g()},R=function(){return!Q()},I={};
return _.G("grid-shelf-view-model",{class:_.jQ("ytGridShelfViewModelHost",D.className,(I.ytGridShelfViewModelHostHasBottomButton=function(){return g()||Q()},I.ytGridShelfViewModelHostIsDismissed=function(){var tT,ZV=(tT=h())!=null?tT:{};
tT=ZV.behavior;var ED=ZV.isDismissed,o$=ZV.stamperContextTargetId;ZV=ZV.stamperIndex;if(!(_.r("mweb_see_fewer_shorts_group_dismissal")&&ED&&tT&&o$))return!1;var jV;ED=w;for(var i8,g6,Mu=((i8=ED)==null?0:i8.targetId)?_.fR((g6=ED)==null?void 0:g6.targetId):void 0;((jV=ED)==null?0:jV.parent)&&Mu!==o$;)ED=ED.parent,g6=i8=void 0,Mu=((i8=ED)==null?0:i8.targetId)?_.fR((g6=ED)==null?void 0:g6.targetId):void 0;jV=Mu===o$?ED:void 0;if(!jV)return!1;var LQ;o$=jV==null?void 0:(LQ=jV.stamperIndex)==null?void 0:
LQ.call(jV);return tT==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||tT==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&o$!=null&&ZV!=null&&o$>ZV},I)),
el:H,style:_.O7({"margin-left":(0,_.FN)(function(){return S().contentPadding}),
"margin-right":(0,_.FN)(function(){return S().contentPadding})})},_.G(_.E,{cond:function(){return _.O(e().header,bcn)},
then:function(tT){return _.G(_.l6,{data:tT,disableHorizontalPadding:!0})}}),_.G("div",null,_.G(_.nY,{each:function(){return Array(L())}},function(tT,ZV){return _.G(Qlm,{className:D.className,
items:t(ZV),responsiveGridShelfLayout:S,contentAspectRatio:U})})),_.G("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.G(_.P5,{data:function(){return e().showMoreButton}},{buttonViewModel:function(tT){return _.G("div",{hidden:R},_.G(_.JX,{data:tT.data,
onClick:k}))}}),_.G(_.P5,{data:function(){return e().showLessButton}},{buttonViewModel:function(tT){return _.G("div",{hidden:u},_.G(_.JX,{data:tT.data,
onClick:T}))}})))},"wd");
_.yYf.idomCompat=!0;var Qlm=_.l(function(D){var t=D.items;var H=D.responsiveGridShelfLayout;var e=D.contentAspectRatio;D=D.className;var V=_.DY("div");b6k(V,function(){a:{var a=V.value;for(var w=t(),h=[],K=0;K<w.length;K++){var N=_.O(w[K],XKv);if(!N||N==null||!N.inlinePlayerData){a=null;break a}var k=a.children.item(K);if(!k){a=null;break a}h.push({thumbnailElement:k,videoData:N})}a={gridVideoPreviewData:{gridItems:h}}}return a});
var b=(0,_.FN)(function(){return-H().itemMargin});
return _.G("div",{el:V,class:_.jQ("ytGridShelfViewModelGridShelfRow",D),style:_.O7({"margin-left":b,"margin-right":b})},_.G(_.P5,{data:t,replacementWrapper:function(a){return _.G(Blf,{responsiveGridShelfLayout:H},a)}},{shortsLockupViewModel:function(a){return _.G(Blf,{responsiveGridShelfLayout:H},_.G(oy6,{data:a.data,
aspectRatio:function(){return e()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.r("mweb_enable_one_line_title_on_shorts")?1:_.r("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(a){return _.G(Blf,{responsiveGridShelfLayout:H},_.G(_.J9,{data:a.data}))}}))},"xd"),Blf=_.l(function(D){return _.G("div",{style:_.O7({width:(0,_.FN)(function(){return D.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+D.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},D.children)},"yd");
_.yYf.idomCompat=!0;_.hB(_.yYf,"grid-shelf-view-model",{props:{data:_.ij,layoutContainerWidth:_.ij,shouldUseOwnContainerSize:_.ij,marginSettings:_.ij,className:_.ij}});_.zxn=_.l(function(D){var t=_.F(_.KR(!1,void 0,"FVl30c")),H=t.next().value,e=t.next().value;t={};return _.G("yt-alert-banner-view-model",{class:_.jQ("ytAlertBannerViewModelHost",D.className,function(){var V;a:switch((V=D.data())==null?void 0:V.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":V="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":V="ytAlertBannerViewModelWarning";break a;default:V="ytAlertBannerViewModelInformational"}return V},(t.ytAlertBannerViewModelDismissed=
H,t.ytAlertBannerViewModelFullbleed=D.fullbleed,t.ytAlertBannerViewModelNarrow=D.narrow,t.ytAlertBannerViewModelIsInRichGrid=D.isInRichGrid,t))},_.G(_.E,{cond:function(){var V;
return!((V=D.data())==null?0:V.hideIcon)},
then:function(){return _.G("div",{class:"ytAlertBannerViewModelIcon"},_.G(_.U7,{icon:function(){return"info_circle"}}))}}),_.G("div",{class:"ytAlertBannerViewModelOuterContainer"},_.G("div",{class:"ytAlertBannerViewModelContainer"},_.G("div",{class:"ytAlertBannerViewModelContent"},_.G("div",{class:"ytAlertBannerViewModelHeading"},_.G(_.$7,{text:function(){var V;
return(V=D.data())==null?void 0:V.heading}})),_.G("div",{class:"ytAlertBannerViewModelBody"},_.G(_.$7,{text:function(){var V;
return(V=D.data())==null?void 0:V.body}})))),_.G(_.P5,{data:function(){var V;
return(V=D.data())==null?void 0:V.actionButton}},{buttonViewModel:function(V){return _.G(_.JX,{data:V.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.G(_.P5,{data:function(){var V;
return(V=D.data())==null?void 0:V.dismissButton}},{buttonViewModel:function(V){return _.G(_.JX,{data:V.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var b;((b=D.data())==null?0:b.disableLocalDismissBehavior)||e(!0)}})}}))},"zd");_.hB(_.zxn,"yt-alert-banner-view-model",{props:{data:_.ij,fullbleed:_.ij,narrow:_.ij,isInRichGrid:_.ij,className:_.ij}});var DR9;_.tv3=_.l(function(D){return _.G("basic-content-view-model",{class:_.jQ("ytBasicContentViewModelHost",_.qT(D.className))},_.G(_.E,{cond:function(){return D.data().headline},
then:function(t){return _.G("div",{class:"ytBasicContentViewModelHeadline"},_.G(_.$7,{text:t}))}}),_.G(_.nY,{each:function(){return D.data().paragraphs||[]},
keyBy:"INDEX"},function(t){return _.G("div",{class:"ytBasicContentViewModelParagraph"},_.G(_.E,{cond:function(){var H=t();return!!(H.header||H.customHeader||H.headline)},
then:function(){return _.G(DR9,{paragraph:t})}}),_.G(_.E,{cond:function(){return t().asset||t().text},
then:function(){return _.G("div",{class:"ytBasicContentViewModelParagraphContent"},_.G(_.E,{cond:function(){return t().asset},
then:function(H){return _.G("div",{class:"ytBasicContentViewModelParagraphAsset"},_.G(_.P5,{data:H},{contentPreviewImageViewModel:_.S_}))}}),_.G(_.E,{cond:function(){return t().text},
then:function(H){return _.G("div",{class:"ytBasicContentViewModelParagraphText"},_.G(_.$7,{text:H}))}}))}}))}))},"Ad");
DR9=_.l(function(D){var t=D.paragraph;return _.G(_.FH,null,_.G(_.E,{cond:function(){return t().headline},
then:function(H){return _.G(_.$7,{text:H,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.G(_.P5,{data:function(){return t().header||t().customHeader}},{sectionHeaderViewModel:function(H){return _.G(_.l6,{data:H.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Bd");_.HH4=_.l(function(D){var t=function(){return D.data().orientation==="LINEAR_LAYOUT_ORIENTATION_HORIZONTAL"};
return _.G("yt-linear-layout-view-model",{class:_.jQ("ytLinearLayoutViewModelHost",function(){a:switch(D.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var H="ytLinearLayoutViewModelHorizontal";break a;default:H="ytLinearLayoutViewModelVertical"}return H})},_.G(_.P5,{data:function(){return D.data().items}},{lockupViewModel:function(H){return _.G("div",{style:_.O7({"margin-bottom":function(){return t()?void 0:"8px"},
"margin-right":function(){return t()?"8px":void 0}})},_.G(_.J9,{data:H.data,
containerType:function(){return t()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return t()?void 0:"33%"}}))},
basicContentViewModel:function(H){return _.G("div",{style:_.O7({"margin-bottom":function(){return t()?void 0:"8px"},
"margin-right":function(){return t()?"8px":void 0}})},_.G(_.tv3,{data:H.data}))}}))},"Cd");_.hB(_.HH4,"yt-linear-layout-view-model",{props:{data:_.ij}});_.a2=_.l(function(D){var t=D.data;var H=D.callback;var e=D.selectionBehavior;var V=D.disableChipsScrollAnimation;var b=_.ep("div");D=_.F(_.KR(!0,void 0,"aUEsOc"));var a=D.next().value,w=D.next().value;D=_.F(_.KR(!1,void 0,"V0aKld"));var h=D.next().value,K=D.next().value,N=!1,k=0;_.SG(function(){w(U());K(S())});
D=_.F(_.rm(function(){var tT={};return t().autoselectedChipIndex!=null?(tT[t().autoselectedChipIndex]=!0,tT):{}}));
var T=D.next().value,c=D.next().value,U=function(){var tT=b.value;return tT==null||tT.scrollLeft-1<=0},S=function(){var tT=b.value;
return tT==null?!1:tT.scrollLeft+1>=(tT==null?NaN:tT.scrollWidth)-(tT==null?NaN:tT.clientWidth)},L=function(){return t().isHorizontallyScrollable},J=function(tT){b.value!=null&&(_.YC("HTML_DIR")==="rtl"&&(tT=-tT),b.value.scrollBy({left:tT,
behavior:(V==null?0:V())?"instant":"smooth"}))},g=function(){J(-320)},Q=function(){J(320)},u=_.$X(function(tT){N=!0;
k=tT.clientX}),R=_.$X(function(tT){if(N){tT=tT.clientX;
var ZV=tT-k;k=tT;var ED;(ED=b.value)==null||ED.scrollBy({left:-ZV})}}),I=_.$X(function(){var tT=U(),ZV=S();
tT!==a()&&w(tT);ZV!==h()&&K(ZV)});
_.F9("pointerup",function(){N&&(N=!1)});
return _.G("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.G(_.f0,{contentId:function(){return t().contentId},
useModernStyle:!0},function(){var tT={},ZV={};return _.G("div",null,_.G(_.E,{cond:function(){return t().title},
then:function(){return _.G("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.G("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return t().title}),_.G(_.P5,{data:function(){return t().overflowButton}},{buttonViewModel:_.JX}))}}),_.G("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.G(_.E,{cond:function(){return t().previousButton},
then:function(){var ED={};return _.G("div",{class:_.jQ("ytChipsShelfViewModelLeftArrowContainer",(ED.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return a()},ED))},_.G(_.P5,{data:function(){return t().previousButton}},{buttonViewModel:function(o$){return _.G(_.JX,{data:o$.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:g})}}))}}),_.G("div",{el:b,
"on:pointerdown":u,"on:pointermove":R,"on:scroll":I,class:_.jQ("ytChipsShelfViewModelChipsScrollContainer",(tT.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=L,tT))},_.G("div",{class:_.jQ("ytChipsShelfViewModelChipsContainer",(ZV.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=L,ZV.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,ZV)),role:"tablist"},_.G(_.P5,{data:function(){return t().contents}},{chipViewModel:function(ED,o$){return _.G("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.G(_.dfv,{data:ED.data,
callback:function(jV,i8){var g6=o$(),Mu,LQ=(Mu=e==null?void 0:e())!=null?Mu:0;LQ===1||LQ===2?(Mu={},c((Mu[g6]=i8,Mu))):(Mu={},c(Object.assign({},T(),(Mu[g6]=i8,Mu))));H==null||H(jV,i8,g6)},
disableDeselection:function(){return(e==null?void 0:e())===1},
selected:function(){return!!T()[o$()]}}))}}))),_.G(_.E,{cond:function(){return t().nextButton},
then:function(){var ED={};return _.G("div",{class:_.jQ("ytChipsShelfViewModelRightArrowContainer",(ED.ytChipsShelfViewModelRightArrowContainerIsHidden=h,ED))},_.G(_.P5,{data:function(){return t().nextButton}},{buttonViewModel:function(o$){return _.G(_.JX,{data:o$.data,
className:"ytChipsShelfViewModelRightArrow",onClick:Q})}}))}})))}))},"Dd");
_.a2.idomCompat={callbacks:{callback:!0}};_.hB(_.a2,"chips-shelf-view-model",{props:{data:_.ij,callback:_.wm,selectionBehavior:_.ij,disableChipsScrollAnimation:_.ij}});_.hB(_.l(function(D){return _.G("yt-comment-filter-context-view-model",{class:_.jQ("ytCommentFilterContextHost",D.className)},_.G(_.$7,{text:function(){return D.data().text}}))},"Ed"),"yt-comment-filter-context-view-model",{props:{data:_.ij,
className:_.wm}});var eVf=_.l(function(D){D=_.FQ(D,{disabled:!1});var t=D.active,H=D.disabled;D={};D=_.jQ("ytSwitchShapeTrack",(D.ytSwitchShapeTrackActive=function(){return t()},D.ytSwitchShapeTrackDisabled=function(){return H()},D));
var e={};e=_.jQ("ytSwitchShapeKnob",(e.ytSwitchShapeKnobActive=function(){return t()},e));
return _.G("switch-shape",{class:"ytSwitchShapeHost"},_.G("div",{class:D}),_.G("div",{class:e}))},"Fd");var VvQ=_.l(function(D){var t=_.FQ(D,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),H=t.data;D=t.className;var e=t.handleOnTapEventInParent,V=t.parentActive,b=t.onTap;t=_.F(_.rm(function(){var T;return(T=V())!=null?T:H().switchedOnByDefault||!1}));
var a=t.next().value,w=t.next().value,h=function(){return H().isDisabled},K=_.DY("button");
t=_.$X(function(T){return T.key==="Enter"?(T.preventDefault(),K.value.click(),!1):!0});
var N=_.$X(function(T){if(H().handleOnTapEventInParent||e())return!0;if(h())return!1;if(b)return b(T),!0;joT(H(),a(),T);w(!a());return!1}),k={};
k=_.jQ("ytSwitchButtonViewModelButton",(k.ytSwitchButtonViewModelTappable=function(){return!h()},k));
return _.G("switch-button-view-model",{class:_.jQ("ytSwitchButtonViewModelHost",D)},_.G("button",{el:K,class:k,"on:click":N,"on:keydown":t,"aria-label":function(){return a()?H().a11yLabelSwitchedOn:H().a11yLabelSwitchedOff},
"aria-checked":a,"aria-disabled":h,role:"switch"},_.G(eVf,{active:a,disabled:h})))},"Gd");var bH3=_.l(function(D){var t=D.data;var H=D.isLeading;var e=D.hideSelectionTextChevron;var V=D.isToggled;var b=function(){return H()?t().leadingImage:t().trailingImage},a=function(){a:switch(t().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var N="expand_more";
break a;default:N="chevron_right"}return N};
D={};var w=_.jQ("yt-list-item-view-model__image-container",(D["yt-list-item-view-model__leading"]=H,D["yt-list-item-view-model__trailing"]=function(){return!H()},D)),h=_.jQ("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
D={};var K=_.jQ("yt-list-item-view-model__accessory",(D["yt-list-item-view-model__leading"]=H,D["yt-list-item-view-model__trailing"]=function(){return!H()},D));
return _.G(_.E,{cond:function(){var N=t(),k=H();return!!(k&&(N.leadingImage||N.leadingAccessory)||!k&&(N.trailingImage||N.trailingButton||N.trailingButtons||N.selectionText))},
then:function(){return _.G(_.FH,null,_.G(_.E,{cond:b,then:function(N){return _.G("div",{class:w,"aria-hidden":"true"},_.G(_.bi,{data:N,alt:"",preserveWidth:!0,preserveHeight:!0,className:h,isToggled:V}))}}),_.G(_.E,{cond:function(){return H()&&t().leadingAccessory},
then:function(){return _.G("div",{class:w},_.G(_.P5,{data:function(){return t().leadingAccessory}},{avatarViewModel:function(N){return _.G(_.qi,{data:N.data,
avatarButtonCustomClassName:h})},
collectionThumbnailViewModel:function(N){return _.G(cv6,{data:N.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.G(_.E,{cond:function(){return!H()&&t().trailingButton},
then:function(){return _.G("div",{class:"yt-list-item-view-model__button-container"},_.G(_.P5,{data:function(){return t().trailingButton}},{buttonViewModel:function(N){return _.G(_.JX,{data:N.data,
className:K})}}))}}),_.G(_.E,{cond:function(){var N;
return!H()&&((N=t().trailingButtons)==null?void 0:N.buttons)},
then:function(){return _.G("div",{class:"yt-list-item-view-model__button-container"},_.G(_.P5,{data:function(){var N;return(N=t().trailingButtons)==null?void 0:N.buttons}},{buttonViewModel:function(N){return _.G(_.JX,{data:N.data,
className:K})},
accountLinkButtonViewModel:function(N){return _.G(wLf,{data:N.data,className:K})},
switchButtonViewModel:function(N){return _.G(VvQ,{data:N.data,className:K})},
subscribeButtonViewModel:function(N){return _.G(_.qY,{data:N.data,isOverlay:!1,animateWidth:!1,className:K})},
toggleButtonViewModel:function(N){return _.G(_.VC,{data:N.data,className:K})}}))}}),_.G(_.E,{cond:function(){return!H()&&!!t().selectionText},
then:function(){return _.G(_.FH,null,_.G(_.$7,{text:function(){return t().selectionText},
className:_.jQ("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.G(_.E,{cond:function(){return!(e==null?0:e())},
then:function(){return _.G(_.U7,{icon:a,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Hd");var q9f=_.l(function(D){function t(){var c,U;h((U=(c=V)==null?void 0:c.isKeyBoardInUse())!=null?U:!1)}
function H(){h(!1)}
function e(){var c;return w()?(c=D.focusedClassName)==null?void 0:c.call(D):""}
var V=_.qS().resolve(_.by(_.S8)),b=_.F(_.KR(!1,void 0,"zbdw0d")),a=b.next().value;b=b.next().value;var w=a,h=b,K=function(){var c,U;return((c=D.toggleable)==null?0:c.call(D))?(U=D.toggled)==null?void 0:U.call(D):void 0},N=_.$X(function(c){var U,S=(U=D.command)==null?void 0:U.call(D);
S&&_.qS().resolve(_.aA).resolveCommand(S);var L;(L=D.onClick)==null||L.call(D,c)}),k=_.$X(t),T=_.$X(H);
return _.G(_.E,{cond:function(){var c;if(c=D.command){c=D.command();c=Fz6(c);var U=c.href;c=!(!c.navigatingCommand||!U)}return c},
then:function(){return _.G(_.XW,Object.assign({},{command:D.command,style:D.style,ariaDescribedby:D.ariaDescribedby,ariaHidden:D.ariaHidden,ariaLabel:D.ariaLabel,ariaLabelledby:D.ariaLabelledby,ariaSelected:D.ariaSelected,disabled:D.disabled,dir:D.dir,tabIndex:D.tabIndex,target:D.target,title:D.title,onClick:D.onClick},{className:_.jQ("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",D.className,function(){return e()}),
onFocusin:t,onFocusout:H,ariaCurrent:function(){var c,U;return(U=(c=D.ariaCurrent)==null?void 0:c.call(D))!=null?U:K()}}),D.children)},
else:function(){return _.G("button",{"on:click":N,"on:focusin":k,"on:focusout":T,class:_.jQ("ytButtonOrAnchorHost","ytButtonOrAnchorButton",D.className,function(){return e()}),
style:D.style,"aria-describedby":D.ariaDescribedby,"aria-hidden":D.ariaHidden,"aria-label":D.ariaLabel,"aria-labelledby":D.ariaLabelledby,"aria-pressed":K,dir:D.dir,disabled:D.disabled,tabindex:D.tabIndex,title:D.title},D.children)}})},"Id");var F0n=_.l(function(D){var t=D.data;var H=D.useButtonOrAnchor;var e=D.onTap;var V=D.isTappableWithoutSelect;var b=D.isToggled;return _.G(_.E,{cond:function(){return t().title||t().subtitle},
then:function(){return _.G("div",{class:"yt-list-item-view-model__text-wrapper"},_.G(_.E,{cond:function(){return t().title},
then:function(a){return _.G("div",{class:"yt-list-item-view-model__title-wrapper"},_.G(_.E,{cond:function(){return(H==null?void 0:H())&&(V==null?void 0:V())},
then:function(){return _.G(q9f,{command:function(){return _.gF(t().rendererContext)},
onClick:e,className:"yt-list-item-view-model__button-or-anchor",toggleable:b!==void 0,toggled:b},_.G(_.$7,{text:a,className:"yt-list-item-view-model__title"}))},
else:function(){return _.G(_.$7,{text:a,className:"yt-list-item-view-model__title"})}}))}}),_.G(_.E,{cond:function(){return t().subtitle},
then:function(a){return _.G(_.$7,{text:a,className:"yt-list-item-view-model__subtitle"})}}))}})},"Jd");var aaa=_.l(function(D){var t=D.data;var H=D.hideSelectionTextChevron;var e=D.TrailingAccessory;var V=D.isToggled;var b=D.disabled;var a=D.isSelectItem;var w=D.isCompact;var h=D.inPopup;var K=D.disableHorizontalPadding;var N=D.isTappableWithoutSelect;var k=D.useButtonOrAnchor;D=D.onTap;var T={};return _.G("div",{class:_.jQ("yt-list-item-view-model__label",(T["yt-list-item-view-model__container"]=function(){return!(a==null?0:a())},T["yt-list-item-view-model__container--disabled"]=function(){return!!t().isDisabled||
!(b==null||!b())},T["yt-list-item-view-model__container--has-subtitle"]=function(){return!!t().subtitle},T["yt-list-item-view-model__container--compact"]=w,T["yt-list-item-view-model__container--tappable"]=N,T["yt-list-item-view-model__container--in-popup"]=h,T["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(K==null?void 0:K())&&!(a==null?0:a())},T))},_.G(bH3,{data:t,
isLeading:!0,hideSelectionTextChevron:H,isToggled:V}),_.G(F0n,{data:t,onTap:D,useButtonOrAnchor:k,isTappableWithoutSelect:N,isToggled:V}),_.G(_.E,{cond:function(){return!!e},
then:function(){return _.G("div",{class:"yt-list-item-view-model__trailing"},e&&_.G(e,null))},
else:function(){return _.G(bH3,{data:t,isLeading:!1,hideSelectionTextChevron:H,isToggled:V})}}))},"Kd");var ZH4=_.l(function(D){var t=_.FQ(D,{checked:!1});D=t.name;var H=t.onChange,e=t.onClick,V=t.checked,b=t.labelRenderable,a=t.hasLeadingLabel,w=t.labelClass,h=t.isCompact,K=t.selectElementClass;t=t.disableHorizontalPadding;var N="checkbox"+_.Qr(_.qj),k=_.$X(function(U){e==null||e(U);return!1}),T=_.$X(function(U){H==null||H(U);
return!1}),c={};
return _.G("checkbox-shape",null,_.G("label",{class:_.jQ("ytCheckboxShapeHost",w,(c.ytCheckboxShapeHostCompact=h,c.ytCheckboxShapeDisableHorizontalPadding=t,c))},_.G("input",{class:"ytCheckboxShapeInput",id:N,checked:V,name:D,type:"checkbox","prop:checked":V,"on:change":T,"on:click":k}),_.G(_.E,{cond:function(){return!(a==null?0:a())},
then:function(){return _.G(wQo,{isLeading:!0,selectElementClass:K})}}),_.G(_.E,{cond:function(){return!!b},
then:function(){return _.G("div",{class:"ytCheckboxShapeLabel"},b==null?void 0:b())}}),_.G(_.E,{cond:a,
then:function(){return _.G(wQo,{isLeading:!1,selectElementClass:K})}})))},"Ld");
ZH4.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var wQo=_.l(function(D){var t=D.selectElementClass;D={};return _.G("div",{class:_.jQ("ytCheckboxShapeCheckbox",t,(D.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(t==null?0:t())},D)),
"aria-hidden":"true"},_.G(_.U7,{icon:_.r("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.G(_.U7,{icon:_.r("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Md");_.w2=_.l(function(D){var t=D.name;var H=D.onChange;var e=D.onClick;var V=D.checked;var b=D.labelRenderable;var a=D.useCheckIcon;var w=D.hasLeadingLabel;var h=D.labelClass;var K=D.isCompact;var N=D.selectElementClass;var k=D.ariaLabel;D=D.className;var T="radio"+_.Qr(_.qj),c=_.DY("input"),U=_.$X(function(I){c.value.checked=!(V==null||!V());H==null||H(I);return!1}),S=_.$X(function(I){e==null||e(I);
return!1}),L=_.$X(function(I){_.r("enable_ios_webview_radio_button_responsiveness")&&(I.preventDefault(),c.value.click())}),J=_.F(_.KR(!1,void 0,"TcCZlf")),g=J.next().value,Q=J.next().value;
J=_.$X(function(){var I;((I=_.qS().resolve(_.by(_.S8)))==null?0:I.isKeyBoardInUse())&&Q(!0)});
var u=_.$X(function(){Q(!1)}),R={};
return _.G("radio-shape",{class:_.jQ("yt-radio-shape",D)},_.G("input",{el:c,class:"yt-radio-shape__input",id:T,"prop:checked":V,name:t,type:"radio","on:change":U,"on:click":S,"aria-label":k,"on:focusin":J,"on:focusout":u}),_.G("label",{class:_.jQ("yt-radio-shape__label-container",h,(R["yt-radio-shape--compact"]=K,R["yt-radio-shape__label-container--keyboard-focused"]=g,R)),for:T,"on:click":L},_.G(_.E,{cond:function(){return!(w==null?0:w())},
then:function(){return _.G(sef,{checked:V,useCheckIcon:a,isLeading:!0,selectElementClass:N})}}),_.G(_.E,{cond:function(){return!!b},
then:function(){return _.G("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(k==null?0:k())?"true":"false"}},b==null?void 0:b())}}),_.G(_.E,{cond:w,
then:function(){return _.G(sef,{checked:V,useCheckIcon:a,isLeading:!1,selectElementClass:N})}})))},"Nd");
_.w2.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var sef=_.l(function(D){var t=D.useCheckIcon;var H=D.selectElementClass;D=function(){return(t==null?0:t())?"CHECK":_.r("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var e={};return _.G("div",{class:_.jQ("yt-radio-shape__radio",H,(e["yt-radio-shape__radio--check-icon"]=t,e["yt-radio-shape__radio--radio-default-style"]=function(){return!(H==null?0:H())},e)),
"aria-hidden":"true"},_.G(_.U7,{icon:D}),_.G(_.U7,{icon:D,active:function(){return!(t==null?0:t())}}))},"Od");_.Zq=_.l(function(D){var t=D.data;var H=D.isMenuItem;var e=D.isCompact;var V=D.onTap;var b=D.trailingAccessory;var a=D.hideSelectionTextChevron;var w=D.disabled;var h=D.inPopup;var K=D.disableHorizontalPadding;var N=D.isOverlay;var k=D.isToggled;var T=D.ariaLabel;D=D.ariaPressed;var c=!_.r("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),U=function(){return _.r("enable_web_shorts_captions_language_command")||_.r("web_shorts_audio_track_picker")?Object.assign({},t(),r03(t())):t()},S=_.UUV(function(){return U().rendererContext}),
L=function(){return!(U().isSelected===void 0||!U().selectionStyle||U().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},J=function(){return(_.J5(U().rendererContext)||V)&&!L()},g={},Q=_.jQ("yt-list-item-view-model__container",(g["yt-list-item-view-model__container--tappable"]=function(){return _.J5(U().rendererContext)||L()},g["yt-list-item-view-model__container--compact"]=e,g["yt-list-item-view-model__container--in-popup"]=h,g["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(K==null?void 0:K())&&L()},g)),u=function(){return U().leadingImage||U().leadingAccessory},R=_.jQ("yt-list-item-view-model__image-container",function(){return u()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
g=_.$X(function(i8){var g6;if(g6=c)g6=U().selectionStyle,g6=g6==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||g6==="LIST_ITEM_SELECTION_STYLE_RADIO"||g6==="LIST_ITEM_SELECTION_STYLE_DEFAULT";g6||jV||V==null||V(i8)});
var I=_.ruu(),tT=_.F(_.KR(!1,void 0,"YQ5CU")),ZV=tT.next().value,ED=tT.next().value,o$=function(){return _.G(aaa,{data:U,hideSelectionTextChevron:a,TrailingAccessory:b,isToggled:k,disabled:w,isSelectItem:L,isCompact:e,inPopup:h,disableHorizontalPadding:K,isTappableWithoutSelect:J,useButtonOrAnchor:jV,onTap:V})},jV=_.r("web_button_or_anchor_list_item");
tT={};return _.G("yt-list-item-view-model",{el:_.FI(_.Yi(function(){return U().rendererContext},void 0,void 0,jV?["A".toString(),
"BUTTON".toString()]:[]),jV&&V?O68(V):void 0,g_X(function(){return J==null?void 0:J()},{focusin:function(){var i8;
((i8=_.qS().resolve(_.by(_.S8)))==null?0:i8.isKeyBoardInUse())&&ED(!0)},
focusout:function(){ED(!1)}})),
class:_.jQ("yt-list-item-view-model",(tT["yt-list-item-view-model--is-overlay"]=N,tT["yt-list-item-view-model--keyboard-focused"]=ZV,tT)),role:function(){return(H==null?0:H())?"menuitem":"listitem"},
tabindex:function(){var i8=J();i8=jV?void 0:V||i8?0:void 0;return i8},
"on:keydown":I,"on:click":g,"aria-label":function(){var i8;return(T==null?void 0:T())||((i8=S())==null?void 0:i8.label)},
"aria-pressed":D},_.G(_.E,{cond:L,then:function(){return _.G(_.CY,null,_.G(_.oD,{when:function(){return U().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.G(ZH4,{labelRenderable:o$,
isCompact:e,checked:function(){return U().isSelected},
hasLeadingLabel:function(){return!!u()},
labelClass:Q,selectElementClass:R,disableHorizontalPadding:K,onClick:c?V:void 0})}),_.G(_.oD,{when:function(){return U().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.G(_.w2,{labelRenderable:o$,
isCompact:e,checked:function(){return U().isSelected},
hasLeadingLabel:function(){return!!u()},
labelClass:Q,selectElementClass:R,onClick:c?V:void 0})}),_.G(_.oD,{when:function(){return U().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.G(_.w2,{labelRenderable:o$,
isCompact:e,checked:function(){return U().isSelected},
hasLeadingLabel:function(){return!!u()},
labelClass:Q,selectElementClass:R,useCheckIcon:!0,onClick:c?V:void 0})}),_.G(_.Pn,null,o$))},
else:o$}))},"Pd");
_.Zq.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.hVB=_.l(function(D){var t=D.data;var H=D.onTap;var e=D.onSwitch;var V=D.overrideDisabled;D=D.disableHorizontalPadding;var b=_.F(_.rm(function(){var c;return((c=i6X(k()))==null?void 0:c.switchedOnByDefault)||!1})),a=b.next().value,w=b.next().value;
b=_.F(_.KR(!1,void 0,"ZHBkbb"));var h=b.next().value,K=b.next().value,N=_.r("web_button_or_anchor_list_item"),k=function(){var c;if(!(c=t().switchButton)){var U=t();c=V==null?void 0:V();U={switchOnCommand:U.switchOnCommand,switchOffCommand:U.switchOffCommand,switchedOnByDefault:U.switchedOnByDefault,isDisabled:U.isDisabled,handleOnTapEventInParent:!N,a11yLabelSwitchedOn:U.a11yLabelSwitchedOn,a11yLabelSwitchedOff:U.a11yLabelSwitchedOff};c!==void 0&&(U.isDisabled=c);c={switchButtonViewModel:U}}return c},
T=function(c){var U=i6X(k());
!U||U.isDisabled||t().ignoreTapUntilCommandCompletes&&h()||(H==null||H(c),joT(U,a(),c,t().ignoreTapUntilCommandCompletes,K),w(!a()),e==null||e(a()))};
return _.G("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.G(_.Zq,{data:function(){return{title:t().title,subtitle:t().attributedSubtitle,leadingImage:t().leadingImage,leadingAccessory:t().leadingAccessory,isDisabled:t().isDisabled}},
onTap:T,isToggled:N?a:void 0,trailingAccessory:function(){return _.G(_.P5,{data:k},{switchButtonViewModel:function(c){return _.G(VvQ,{data:c.data,parentActive:a,handleOnTapEventInParent:!!H&&!N,onTap:N?T:void 0})}})},
disableHorizontalPadding:D}))},"Qd");var GyQ=_.l(function(D){var t=_.F(_.rm(function(){var V,b;return!!((V=D.data())==null?0:(b=V.initialState)==null?0:b.isToggled)})),H=t.next().value,e=t.next().value;
t=_.$X(function(){e(!H())});
return _.G("toggleable-list-item-view-model",{el:_.FI(_.Yi(function(){return D.data().rendererContext})),
class:_.jQ("toggleableListItemViewModelHost",D.className),"on:click":t},_.G(_.E,{cond:function(){if(H()){var V=D.data().toggledListItem;V=_.O(V,_.mt)}else V=D.data().defaultListItem,V=_.O(V,_.mt);return V},
then:function(V){return _.G(_.Zq,{data:V,isToggled:H,ariaLabel:function(){var b=H()?D.data().toggledListItem:D.data().defaultListItem,a;b=(a=_.O(b,_.mt))==null?void 0:a.rendererContext;var w;return(w=_.O(b,_.Pm))==null?void 0:w.label},
ariaPressed:function(){return H()}})}}))},"Rd");var EJn=_.OT("DOWNLOAD",{},"Download"),K0o=_.OT("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),NX6=_.OT("RETRY",{},"Retry"),kyf=_.OT("PAUSE_DOWNLOADING",{},"Pause downloading"),TXn=_.OT("RESUME_DOWNLOAD",{},"Resume download"),o6D={text:EJn,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},nP={text:K0o,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},ClV={text:NX6,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
PlV={text:kyf,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},n6X={text:TXn,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var cxn=_.l(function(D){var t=function(){var w=D.data();w=_.gF(w.rendererContext);var h;return(h=_.O(w,_.$i))==null?void 0:h.videoId},H=_.dm(function(w){var h=t(),K=Su8(D.data());
return h?_.xe(w,h):K?_.Rf(w,K):"TRANSFER_STATE_UNKNOWN"}),e=_.rF(_.g$D,t),V=_.dm(function(w){return _.mCu(w,t(),Su8(D.data()))}),b=function(){return MWD(H(),e(),_.gF(D.data().rendererContext),!!Su8(D.data()))},a=function(){return V()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.G("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:a},_.G(_.E,{cond:function(){return!a()},
then:function(){return _.G(_.E,{cond:b,then:function(w){return _.G(_.nY,{each:w},function(h){return _.G(_.Zq,{data:h,isCompact:D.isCompact,isMenuItem:D.isMenuItem,inPopup:D.inPopup,disableHorizontalPadding:D.disableHorizontalPadding})})}})}}))},"Sd");
cxn.idomCompat=!0;_.jea=_.l(function(D){var t=D.data;var H=D.isCompact;var e=D.hideSelectionTextChevron;var V=D.inPopup;var b=D.isOverlay;var a=D.disableHorizontalPadding;var w=function(){return XfD(t())&&(V==null?void 0:V())};
D=_.$X(function(K){if(V!=null&&V()&&_.r("web_enable_arrow_key_navigation_in_dropdown")){var N=_.FDV(K.currentTarget),k=N.length;if(k!==0){var T=Array.prototype.indexOf.call(N,document.activeElement);switch(K.key){case "ArrowDown":K.preventDefault();var c;(c=N[(T+1)%k])==null||c.focus();break;case "ArrowUp":K.preventDefault();var U;(U=N[T===-1?k-1:(T-1+k)%k])==null||U.focus()}}}});
var h={};return _.G("yt-list-view-model",{class:_.jQ("ytListViewModelHost",(h.ytListViewModelHostKaiosSpatNav=d66&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",h.ytListViewModelCollectionThumbnailClass=function(){return A0A(t())},h)),
role:function(){return w()?"menu":"list"},
style:_.O7({"max-height":function(){var K,N=(K=t())==null?void 0:K.visibleElementCount;if(N)return A0A(t())?(N+.5)*48+"px":(N+.5)*40+"px"}}),
"on:keydown":D},_.G(_.P5,{data:function(){return t().listItems}},{listItemViewModel:function(K){return _.G(_.Zq,{data:K.data,
isMenuItem:w,isCompact:H,hideSelectionTextChevron:e,inPopup:V,isOverlay:b,disableHorizontalPadding:a})},
toggleableListItemViewModel:function(K){return _.G(GyQ,{data:K.data})},
downloadListItemViewModel:function(K){return _.G(cxn,{data:K.data,isMenuItem:w,isCompact:H,inPopup:V,disableHorizontalPadding:a})},
switchListItemViewModel:function(K){return _.G(_.hVB,{data:K.data,disableHorizontalPadding:a})}}))},"Td");
_.jea.idomCompat=!0;var $R3=_.l(function(D){var t=D.data;var H=D.isOverlay;D={};return _.G("yt-course-perks-view-model",{class:_.jQ("ytwCoursePerksViewModelHost",(D.ytwCoursePerksViewModelHostOverlay=H,D))},_.G("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.G(_.$7,{text:function(){return t().title}})),_.G("div",null,_.G(_.E,{cond:function(){return t().perks},
then:function(e){return _.G(_.jea,{data:function(){return{listItems:e()}},
isCompact:!0,isOverlay:H})}})))},"Ud");_.hB($R3,"yt-course-perks-view-model",{props:{data:_.wm,isOverlay:_.wm}});_.hB(_.l(function(D){var t=D.data;return _.G("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.G("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.G(_.$7,{text:function(){return t().title}})),_.G("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.G(_.$7,{text:function(){return t().progressSummary}})),_.G("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.G("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.O7({width:function(){return t().progressPercentage*100+"%"}})})))},"Vd"),"yt-course-progress-view-model",{props:{data:_.ij}});var iH3=_.l(function(D){var t={};return _.G("yt-progress-view-model",{class:_.jQ("ytwProgressViewModelHost",(t.ytwProgressViewModelHostOverlay=_.qT(D.isOverlay,!1),t))},_.G(_.E,{cond:function(){return D.data().progressSummary},
then:function(H){return _.G("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.G(_.$7,{text:H}))}}),_.G("div",{class:"ytwProgressViewModelHostProgressContainer"},_.G(_.E,{cond:function(){return D.data().leadingLabel},
then:function(H){return _.G("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.G(_.$7,{text:H}))}}),_.G("div",{class:"ytwProgressViewModelHostProgressBar"},_.G("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(D.data().progressPercentage||0)*100+"%"}}))))},"Wd");var sJ=_.l(function(D){var t=D.starNumber;var H=D.data;var e=function(){var V;return((V=H())==null?void 0:V.rating)||0};
return _.G(_.E,{cond:function(){return t()},
then:function(V){return _.G(_.CY,null,_.G(_.oD,{when:function(){return e()>=V()-.25}},function(){return _.G("div",{class:"ytStarRatingViewModelHostStar"},_.G(_.U7,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.G(_.oD,{when:function(){return e()>=V()-.75}},function(){return _.G("div",{class:"ytStarRatingViewModelHostStar"},_.G(_.U7,{icon:"STAR_HALF",
size:function(){return 24}}))}),_.G(_.Pn,null,function(){return _.G("div",{class:"ytStarRatingViewModelHostStar"},_.G(_.U7,{icon:"STAR_BORDER",
size:function(){return 24}}))}))}})},"Xd"),rxv=_.l(function(D){D=D.data;
return _.G("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.G(sJ,{starNumber:1,data:D}),_.G(sJ,{starNumber:2,data:D}),_.G(sJ,{starNumber:3,data:D}),_.G(sJ,{starNumber:4,data:D}),_.G(sJ,{starNumber:5,data:D}))},"Yd");_.hB(_.l(function(D){var t=_.FQ(D,{}).data;return _.G("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.G("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.G(_.$7,{text:function(){var H;return(H=t())==null?void 0:H.title}})),_.G("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.G(_.E,{cond:function(){return t().starProgressViewModels},
then:function(H){return _.G("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.G(_.P5,{data:H},{progressViewModel:iH3}))}}),_.G("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.G("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.G(_.$7,{text:function(){var H;
return(H=t())==null?void 0:H.averageRatingLabel}})),_.G(_.E,{cond:function(){return t().zeroStateText},
then:function(H){return _.G("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.G(_.$7,{text:H}))}}),_.G(_.E,{cond:function(){return t().starRatingViewModel},
then:function(H){return _.G("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.G(_.P5,{data:H},{starRatingViewModel:rxv}))}}),_.G("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.G(_.$7,{text:function(){var H;
return(H=t())==null?void 0:H.totalRatingsCountLabel}})))))},"Zd"),"yt-course-ratings-view-model",{props:{data:_.wm}});var OHm;OHm={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.UR9=_.l(function(D){var t=_.DY("yt-learning-journey-loader-view-model"),H=_.c5();_.SG(function(){requestAnimationFrame(function(){var V;(V=H.lottieEl)==null||V.addEventListener("DOMLoaded",function(){var b;(b=D.onLottieLoaded)==null||b.call(D)})});
var e=D.data().browseEndpoint;e&&_.IQ(e)});
return _.G("yt-learning-journey-loader-view-model",{class:_.jQ("learningJourneyLoaderViewModelHost",D.className),"data-target-id":function(){var e;return((e=D.data)==null?void 0:e.call(D).targetId)||""},
el:t},_.G(_.x7,{className:_.jQ("learningJourneyLoaderViewModelLoader",D.className),animationName:function(){return OHm.animationConfig.name},
data:OHm,animationRef:H}))},"$d");_.hB(_.UR9,"yt-learning-journey-loader-view-model",{props:{data:_.ij,className:_.wm,onLottieLoaded:_.wm}});var J0$=new Set,g6V=null;var Pnf=_.l(function(D){var t=void 0,H=function(){return D.data()},e=function(){var c=H();
var U=_.qS().resolve(_.by(_.tB));c=U!=null&&U()?c.darkThemeColorPalette:c.lightThemeColorPalette;return{primaryTextColor:mc(c,0),secondaryTextColor:mc(c,1),optionColor:mc(c,2),backgroundColor:mc(c,3),videoBackgroundColor:mc(c,4)}},V=function(){return!!e().optionColor},b=_.F(_.KR(-1,void 0,"FNv5Ne")),a=b.next().value,w=b.next().value,h=function(c){return H().correctAnswerIndex===c},K=function(){return a()!==-1};
b=_.F(_.KR("",void 0,"LFzaYe"));var N=b.next().value,k=b.next().value,T=function(c){return a()===H().correctAnswerIndex&&h(c)};
return _.G("learning-journey-quiz-view-model",{class:_.jQ("learningJourneyQuizViewModelHost","learningJourneyQuizYoututorHost",D.className),style:_.O7({background:function(){return e().backgroundColor}})},_.G("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},N),_.G(_.E,{cond:function(){return!!H().video},
then:function(){return _.G("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.O7({background:function(){return e().videoBackgroundColor}})},_.G(_.P5,{data:function(){return H().video}},{lockupViewModel:function(c){return _.G(_.J9,{data:c.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.G("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.G("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.G("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.G(_.E,{cond:function(){return!!H().aiGeneratedQuizLabel},
then:function(){return _.G("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.G(_.$7,{text:function(){return H().aiGeneratedQuizLabel}}))}}),_.G("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.O7({"align-items":function(){return H().overflowMenu?"start":"center"}})},_.G("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.O7({"min-height":function(){return H().overflowMenu?"48px":"26px"}})},_.G("div",{class:"learningJourneyQuizYoututorText",
style:_.O7({color:function(){return e().primaryTextColor}})},_.G(_.$7,{text:function(){return H().questionHeaderText}})))),_.G("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.O7({color:function(){return e().secondaryTextColor}})},_.G(_.$7,{text:function(){var c=H();
return K()?c.explanationText:c.questionSubheaderText}}))),_.G("div",{role:"group",
class:_.jQ("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.G(_.nY,{each:function(){return H().optionsData||[]}},function(c,U){var S={};
return _.G("button",{class:_.jQ("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(S.learningJourneyQuizViewModelHostQuizHover=function(){return!K()},S.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=V,S.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return K()&&h(U())},S.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var L;
if(L=a()!==H().correctAnswerIndex)L=U(),L=a()===L;return L},S)),
"on:click":_.$X(function(){if(K())return!1;w(U());var L,J;k(h(U())?((L=H().successTitle)==null?void 0:L.content)||"":((J=H().failureTitle)==null?void 0:J.content)||"");return!1}),
style:_.O7({background:"transparent"}),"aria-description":function(){var L,J;return K()?h(U())?(L=H().successTitle)==null?void 0:L.content:(J=H().failureTitle)==null?void 0:J.content:""},
"aria-disabled":K,el:_.FI(function(L){_.CP(271905,L,t,function(J){t=J})}),
"client-ve-type":271905},_.G("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.G(_.$7,{text:c.optionText}),_.G(_.E,{cond:function(){var L=U(),J;if(J=K())J=a()===L||h(L);return J},
then:function(){return _.G(oJf,{isOptionCorrect:h,optionIndex:U,isOptionSelectedAndCorrect:T,colors:e})}})))}),_.G(_.E,{cond:K,
then:function(){return _.G("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.G("div",{class:"learningJourneyQuizYoututorExplanationText"},_.G(_.$7,{text:function(){return H().explanationHeaderText}})),_.G(_.$7,{text:function(){return H().optionsData[a()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"ae"),oJf=_.l(function(D){var t={};
return _.G("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.jQ("learningJourneyQuizYoututorOptionIconTrailing",(t.learningJourneyQuizViewModelHostQuizPulse=function(){return D.isOptionSelectedAndCorrect(D.optionIndex())},t.learningJourneyQuizYoututorIconIncorrectFill=function(){return!D.isOptionSelectedAndCorrect(D.optionIndex())&&!D.isOptionCorrect(D.optionIndex())},t.learningJourneyQuizYoututorIconCorrectFill=function(){return D.isOptionCorrect(D.optionIndex())},
t))},_.G("path",{d:function(){var H=D.optionIndex();
return D.isOptionCorrect(H)?"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":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"be");
Pnf.idomCompat=!0;var nJ3;_.Cnw=_.l(function(D){var t=null,H=null,e=null,V=function(){return D.data()},b=function(){var u=V();
var R=_.qS().resolve(_.by(_.tB));u=R!=null&&R()?u.darkThemeColorPalette:u.lightThemeColorPalette;return{primaryTextColor:MI(u,0),secondaryTextColor:MI(u,1),optionColor:MI(u,2),backgroundColor:MI(u,3),videoBackgroundColor:MI(u,4)}},a=function(){return!!b().optionColor},w=_.F(_.KR(-1,void 0,"QDu8Oe")),h=w.next().value,K=w.next().value,N=function(u){return h()===u},k=function(u){return V().correctAnswerIndex===u},T=function(){return h()!==-1},c=function(){return h()===V().correctAnswerIndex},U=function(){var u=
V(),R=T(),I=c();
return R?I?u.successTitle:u.failureTitle:u.questionHeaderText},S=function(){var u=T(),R=c();
return u?R?264685:264684:264683},L=function(){var u=V();
return T()?u.explanationText:u.questionSubheaderText},J=function(){return!!V().video},g=function(u){return c()&&k(u)},Q=_.$X(function(){K(-1);
return!1});
return _.G(_.E,{cond:function(){return V().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.G(Pnf,{data:function(){return V()}})},
else:function(){return _.G("learning-journey-quiz-view-model",{class:_.jQ("learningJourneyQuizViewModelHost",D.className),style:_.O7({background:function(){return b().backgroundColor}})},_.G(_.E,{cond:J,
then:function(){return _.G("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.O7({background:function(){return b().videoBackgroundColor}})},_.G(_.P5,{data:function(){return V().video}},{lockupViewModel:function(u){return _.G(_.J9,{data:u.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.G("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.G("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.G("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.G(_.E,{cond:function(){return!!V().aiGeneratedQuizLabel},
then:function(){return _.G("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.G(_.$7,{text:function(){return V().aiGeneratedQuizLabel}}))}}),_.G("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.O7({"align-items":function(){return V().overflowMenu?"start":"center"}})},_.G("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.O7({"min-height":function(){return V().overflowMenu?"48px":"26px"}})},_.G("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.FI(function(u){_.CP(S(),u,t,function(R){t=R})}),
style:_.O7({color:function(){return b().primaryTextColor}}),
"client-ve-type":S},_.G(_.$7,{text:U}))),_.G("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.G(_.E,{cond:T,then:function(){return _.G("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.FI(function(u){_.CP(264687,u,H,function(R){H=R})}),
"on:click":Q,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.G("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.O7({fill:function(){return b().primaryTextColor}})},_.G("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"})))}}),
_.G(_.P5,{data:function(){return V().overflowMenu}},{buttonViewModel:function(u){return _.G(_.JX,{data:u.data})}}))),_.G("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.FI(function(u){_.CP(264688,u,e,function(R){e=R})}),
style:_.O7({color:function(){return b().secondaryTextColor}}),
"client-ve-type":264688},_.G(_.$7,{text:L}))),_.G("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.G(_.nY,{each:function(){return V().optionsData||[]}},function(u,R){var I={};
return _.G("button",{class:_.jQ("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(I.learningJourneyQuizViewModelHostQuizHover=function(){return!T()},I.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=a,I.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return g(R())},I.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!c()&&N(R())},I.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return T()&&
!N(R())},I)),
"on:click":_.$X(function(){if(T())return!1;K(R());return!1}),
style:_.O7({background:function(){var tT=R();return T()&&N(tT)?"":a()?b().optionColor:"transparent"}}),
"aria-disabled":T,"client-ve-type":264686},_.G("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.G(_.E,{cond:T,then:function(){return _.G(nJ3,{isOptionCorrect:k,optionIndex:R,isOptionSelectedAndCorrect:g,colors:b})}}),_.G(_.$7,{text:u.optionText})))})))))}})},"ce");
nJ3=_.l(function(D){var t={};return _.G("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var H=D.optionIndex();return D.isOptionCorrect(H)?"0 0 24 24":"0 -960 960 960"},
class:_.jQ("learningJourneyQuizViewModelHostQuizOptionIconLeading",(t.learningJourneyQuizViewModelHostQuizPulse=function(){return D.isOptionSelectedAndCorrect(D.optionIndex())},t)),
style:_.O7({fill:function(){return D.colors().primaryTextColor}})},_.G("path",{d:function(){var H=D.optionIndex();
return D.isOptionCorrect(H)?"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"}}))},"de");
_.Cnw.idomCompat=!0;_.hB(_.Cnw,"learning-journey-quiz-view-model",{props:{data:_.ij,className:_.ij}});var mRo=_.l(function(D){var t=_.F((0,_.xEm)(function(){var a;return{targetId:(a=D.data().config)==null?void 0:a.suspenseKey,contents:[D.data()]}})).next().value,H=_.qS().resolve(_.aA),e=function(){var a=t().contents.length>0?t().contents[0]:void 0;
return a==null?void 0:a.config},V=function(){var a;
return(a=e())==null?void 0:a.entityTriggerConfig},b=_.rF(ymu,function(){var a,w;
return(w=(a=V())==null?void 0:a.entityKey)!=null?w:""});
_.Mp(function(){var a,w,h,K=(h=Number((a=V())==null?void 0:(w=a.invalidationTimestamp)==null?void 0:w.seconds))!=null?h:0,N,k,T;if(((T=Number((N=b())==null?void 0:(k=N.lastUpdated)==null?void 0:k.seconds))!=null?T:0)>K){var c;(a=(c=e())==null?void 0:c.continuationCommand)&&H.resolveCommand(a)}},"FaC8z");
return _.G("yt-suspense-view-model",{class:_.jQ("ytSuspenseViewModelHost")},_.G(_.P5,{data:function(){var a;return(a=e())==null?void 0:a.contents}},{lockupViewModel:_.J9}))},"fe");var Mvn=_.l(function(D){var t=_.FQ(D,{palette:void 0,isLastItem:!1}),H=t.palette,e=t.isLastItem,V=function(){return D.data().isHighlighted},b=function(){var h;
return l33((h=H())==null?void 0:h.iconDisabledColor)},a=function(){var h;
return l33((h=H())==null?void 0:h.primaryTitleColor)},w=function(){var h;
return l33((h=H())==null?void 0:h.secondaryTitleColor)};
t={};return _.G("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.FI(_.Yi(function(){return D.data().rendererContext}))},_.G(_.P5,{data:function(){return D.data().thumbnail}},{thumbnailViewModel:_.PV}),_.G("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.G("div",{class:_.jQ("ytMacroMarkerListItemViewModelTimeDescription",(t.ytMacroMarkerListItemViewModelHighlighted=V,t)),
style:_.O7({"background-color":function(){return V()?a():b()},
color:function(){return V()?"":w()}})},_.G(_.$7,{text:function(){return D.data().timestamp}})),_.G("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.O7({"background-color":function(){return e()?"transparent":b()}})}),_.G("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(V()?a():w())}},_.G(_.$7,{text:function(){return D.data().title}}))))},"ge");_.hP=_.l(function(D){function t(FX){g("transform:translateX("+(_.YC("HTML_DIR")==="rtl"?"":"-")+FX+"px)")}
function H(FX){return Math.min(Math.max(FX,0),J()-tT())}
function e(){var FX=R()+jV();return V()?(Math.round(tT()/FX)||1)*FX:0}
var V=function(){return D.data().items||[]},b=function(){return D.data().previousButton},a=function(){return D.data().nextButton},w=function(){var FX,qw;
return(qw=(FX=D.disableArrows)==null?void 0:FX.call(D))!=null?qw:!1},h=function(){var FX;
return!((FX=D.forceNarrowLayout)==null||!FX.call(D))},K=_.jj(function(){var FX;
return!((FX=D.centerAlignItems)==null||!FX.call(D))&&J()<=tT()},void 0,"Uto0kc"),N=_.DY("horizontal-shelf-view-model"),k=_.DY("div"),T=_.F(_.KR(0,void 0,"G0xZB")),c=T.next().value,U=T.next().value;
T=_.F(_.KR(0,void 0,"kqCYFf"));var S=T.next().value,L=T.next().value,J=S;S=_.F(_.KR("",void 0,"Hh6Uye"));T=S.next().value;var g=S.next().value;S=_.F(_.KR(0,void 0,"yMGBKb"));var Q=S.next().value,u=S.next().value,R=Q;S=_.F(_.KR(0,void 0,"VChthd"));Q=S.next().value;var I=S.next().value,tT=Q;S=_.F(_.KR(!1,void 0,"qJlhhe"));var ZV=S.next().value,ED=S.next().value;S=_.F(_.KR(0,void 0,"x7H94"));Q=S.next().value;var o$=S.next().value,jV=Q;S=_.F(_.KR(0,void 0,"ksuUee"));var i8=S.next().value,g6=S.next().value;
S=_.F(_.KR("50%",void 0,"uxCxde"));var Mu=S.next().value,LQ=S.next().value,DO=function(){var FX,qw=(FX=D.data())==null?void 0:FX.responsiveContainerConfiguration,oB,ZO;return qw?TRK(qw==null?void 0:qw.responsiveSize):(ZO=(oB=D.sizing)==null?void 0:oB.call(D))!=null?ZO:"STANDARD"};
S=_.jj(function(){return!w()&&c()>0},void 0,"XK60w");
Q=_.jj(function(){return!w()&&c()<J()-tT()},void 0,"D22LVd");
var fQ=function(){U(H(c()-e()));t(c())},yA=function(){U(H(c()+e()));
t(c())},T4=function(){N.value!==null&&X6()},Mw;
_.XH(function(){X6();window.ResizeObserver?(Mw=new ResizeObserver(_.A_(T4,0)),Mw.observe(N.value)):window.addEventListener("resize",T4)});
_.Sj(function(){if(window.ResizeObserver){var FX;(FX=Mw)==null||FX.disconnect()}else window.removeEventListener("resize",T4)});
var X6=function(){var FX=N.value.clientWidth,qw=D.includeMargin!==void 0?D.includeMargin():!1,oB;var ZO=D.hasPeek!==void 0?D.hasPeek():!((oB=D.data())==null||!oB.hasPeek);FX=_.xi({containerWidth:FX,hasPeek:ZO,sizing:DO(),marginSettings:qw?h()?4:1:0});o$(FX.gutter);g6(FX.margin);u(FX.itemWidth);ED(FX.maxContainerWidth<528||h());I(FX.maxContainerWidth);V()&&L((FX.itemWidth+FX.gutter)*V().length-FX.gutter);if(V()){var Nw;if(((Nw=D.thumbnailAspectRatio)==null?void 0:Nw.call(D))!==void 0){var bY;LQ(R()/
rN8((bY=D.thumbnailAspectRatio)==null?void 0:bY.call(D))/2+"px")}else LQ("50%")}},yZ={},kQ={};
return _.G("horizontal-shelf-view-model",{class:_.jQ("ytwHorizontalShelfViewModelHost",D.className),el:N},_.G(_.E,{cond:function(){var FX;return D.data().header&&!((FX=D.horizontalShelfExperiments)==null?0:FX.call(D).hideHeader)},
then:function(){return _.G("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.O7({width:function(){return tT()+"px"},
padding:function(){return"0 "+i8()+"px"}})},_.G(_.P5,{data:function(){return D.data().header}},{sectionHeaderViewModel:function(FX){return _.G(_.l6,{data:FX.data,
disableHorizontalPadding:!0,forceSmallLayout:ZV,useResponsiveLayout:!0})}}))}}),_.G("div",{class:_.jQ("ytwHorizontalShelfViewModelOuterContainer",(yZ.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return K()},yZ)),
style:_.O7({"margin-top":function(){var FX,qw=D.data().header&&!((FX=D.horizontalShelfExperiments)==null?0:FX.call(D).hideHeader),oB;return(((oB=D.ensureMarginTop)==null?0:oB.call(D))&&!qw?12:0)+"px"}})},_.G("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.O7({width:function(){return tT()+"px"},
padding:function(){return"0 "+i8()+"px"},
overflow:function(){return w()?"auto":"hidden"}})},_.G("div",{class:_.jQ("ytwHorizontalShelfViewModelItems",(kQ.ytwHorizontalShelfViewModelCenterAlignItems=function(){return K()},kQ)),
el:k,style:T},_.G(_.P5,{data:V},{macroMarkerListItemViewModel:function(FX,qw){return _.G("div",{style:_.O7({width:function(){return R()+"px"},
"margin-right":function(){return(qw()===V().length-1?0:jV())+"px"}})},_.G(Mvn,{data:FX.data,
palette:_.qT(D.palette),isLastItem:function(){return qw()===V().length-1}}))},
lockupViewModel:function(FX,qw){var oB=FX.data;return _.G("div",{style:_.O7({width:function(){return R()+"px"},
"margin-right":function(){return(qw()===V().length-1?0:jV())+"px"}})},_.G(_.J9,{data:oB,
containerType:4,sizing:DO,protectBackground:D.protectBackground,thumbnailFixedWidth:function(){return v6D(oB())+"px"},
thumbnailTargetWidth:function(){return v6D(oB())}}))},
suspenseViewModel:function(FX,qw){return _.G("div",{style:_.O7({width:function(){return R()+"px"},
"margin-right":function(){return(qw()===V().length-1?0:jV())+"px"}})},_.G(mRo,{data:FX.data}))}}))),_.G(_.E,{cond:S,
then:function(){return _.G("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.O7({top:function(){return Mu()}})},_.G(_.P5,{data:b},{buttonViewModel:function(FX){return _.G(_.JX,{data:FX.data,
onClick:fQ})}}))}}),_.G(_.E,{cond:Q,
then:function(){return _.G("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.O7({top:function(){return Mu()}})},_.G(_.P5,{data:a},{buttonViewModel:function(FX){return _.G(_.JX,{data:FX.data,
onClick:yA})}}))}})))},"he");
_.hP.idomCompat=!0;var S94=_.l(function(D){var t=function(){return D.data().targetId||""},H=function(){var S;
return((S=D.data())==null?void 0:S.expansionEntityKey)||""},e=_.rF(_.QqR,H),V=!0,b=function(){var S;
return((S=e())==null?void 0:S.value)===t()},a=function(S){_.bf(_.nf("stringEntity",H(),{key:H(),
value:S?t():""}))};
_.SG(function(){V=!1;D.data().isExpanded&&a(!0)});
var w=function(){if(b()){var S=!0;D.onCollapse!==void 0&&(S=D.onCollapse());S&&a(!1)}else a(!0)},h=_.$X(w),K=function(){var S;
return(((S=D.accordionStyle)==null?void 0:S.call(D))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},N=_.DY("div"),k=function(){var S,L;
return(L=(S=_.O(D.data().rendererContext,_.Pm))==null?void 0:S.label)!=null?L:""},T=function(){var S,L;
return{disabled:(S=D.hideIfNotExpanded)==null?void 0:S.call(D),ariaHidden:(L=D.hideIfNotExpanded)==null?void 0:L.call(D)}},c={},U={};
return _.G("yt-accordion-item-view-model",{class:_.jQ("ytAccordionItemViewModelHost",D.className,(c.ytAccordionItemViewModelExpanded=function(){return b()},c.ytAccordionItemViewModelHidden=function(){var S;
return(S=D.hideIfNotExpanded)==null?void 0:S.call(D)},c.ytAccordionItemViewModelMini=K,c)),
"data-target-id":t},_.G("div",{class:"ytAccordionItemViewModelContainer"},_.G("div",{class:"ytAccordionItemViewModelLeftSection","on:click":h,title:k,"aria-hidden":function(){var S;return(S=D.hideIfNotExpanded)==null?void 0:S.call(D)}},_.G(_.$7,{text:function(){return D.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:k})),_.G("div",{class:"ytAccordionItemViewModelRightSection"},_.G(_.P5,{data:function(){return b()?D.data().expandButton:D.data().collapseButton}},{buttonViewModel:function(S){return _.G(_.JX,{data:S.data,
className:"ytAccordionItemViewModelToggleButton",onClick:w,buttonOverrides:T})}}))),_.G("div",{class:"ytAccordionItemViewModelContainer"},_.G("div",{class:_.jQ("ytAccordionItemViewModelContent",(U.ytAccordionItemViewModelExpandedSubtitle=function(){return b()},U)),
el:N,style:_.O7({"max-height":function(){return V?"auto":b()?N.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!b()}},_.G(_.E,{cond:function(){return!K()},
then:function(){return _.G(_.$7,{text:function(){return D.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.G(_.P5,{data:function(){return D.data().content}},{horizontalShelfViewModel:function(S){return _.G(_.hP,{data:S.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"ie");_.XQa=_.l(function(D){var t=_.F((0,_.xEm)(D.data)).next().value,H=function(){return D.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},e=function(){return H()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},V=_.F(_.KR(!0,void 0,"AbejLb")),b=V.next().value,a=V.next().value,w=function(){return e()&&b()},h=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){a(!b())}}},K=_.$X(function(){t().onTitleTap&&_.IQ(t().onTitleTap||{})});
V={};return _.G("yt-accordion-view-model",{class:_.jQ("ytAccordionViewModelHost",(V.ytAccordionViewModelMinimized=function(){return w()},V)),
"data-target-id":function(){return D.data().targetId||""}},_.G(_.E,{cond:function(){return e()||!!t().title},
then:function(){return _.G("div",{class:"ytAccordionViewModelHeader"},_.G("div",{class:"ytAccordionViewModelTitleSection"},_.G("div",{class:"ytAccordionViewModelTitleWrapper"},_.G(_.E,{cond:function(){return!!D.data().headerIcon},
then:function(){return _.G(_.U7,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var N;return(N=D.data().headerIcon)==null?void 0:N.iconType}})}}),_.G("div",{class:"ytAccordionViewModelTitle",
"on:click":K},_.G(_.$7,{className:"ytAccordionViewModelTitleText",text:function(){return t().title}})))),_.G("div",{class:"ytAccordionViewModelButtonSection"},_.G(_.E,{cond:e,
then:function(){return _.G(_.gW,{data:h,iconName:function(){return w()?"chevron_down":"chevron_collapse"}})}})))}}),_.G("div",{class:"ytAccordionViewModelContent"},_.G(_.P5,{data:function(){return t().contents}},{accordionItemViewModel:function(N){return _.G(S94,{data:N.data,
className:"ytAccordionViewModelRow",accordionStyle:H,hideIfNotExpanded:w,onCollapse:function(){return e()?(a(!0),!1):!0}})}})),_.G("div",null,_.G(_.E,{cond:function(){return!e()&&(!!t().disclaimerFooter||!!t().footer)},
then:function(){return _.G("div",{class:"ytAccordionViewModelFooter"},_.G(_.$7,{text:function(){return t().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.G(_.P5,{data:function(){return D.data().footer}},{flexibleActionsViewModel:function(N){return _.G(_.aw,{data:N.data,
layout:0})}}))}})))},"je");_.hB(_.XQa,"yt-accordion-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){var t=null,H=null,e,V=(e=_.qS().resolve(_.by(_.tB)))==null?void 0:e(),b=_.F(_.KR(!1,void 0,"h3atzd"));e=b.next().value;var a=b.next().value;b=_.F(_.KR(!0,void 0,"UTh8db"));var w=b.next().value,h=b.next().value,K=_.DY("textarea",function(L){_.CP(264503,L,t,function(J){t=J})}),N=function(L){a(!0);
L={learningJourneyFormData:{query:L}};_.IQ(D.data().searchEndpoint||{},{form:{formData:L}});return!1},k=_.$X(function(L){L.target.closest("button-view-model")&&a(!0)});
b=_.$X(function(){h(K.value.value.length===0)});
var T=_.$X(function(L){if(L.key==="Enter"&&!L.shiftKey&&!w()){var J=L.target;L.preventDefault();N(J.value)}}),c={},U={},S={};
return _.G("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.G("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.G(_.bi,{data:function(){return D.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.G("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.G("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.G("div",{class:_.jQ("ytLearningJourneyZeroStateSearchBar",(c.ytLearningJourneyZeroStateSearchBarDark=V,c))},_.G("textarea",{class:_.jQ("ytLearningJourneyZeroStateTextInput",(U.ytLearningJourneyZeroStateTextInputDark=V,U)),el:K,"on:keyup":b,"on:keydown":T,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.G("div",{class:_.jQ("ytLearningJourneyZeroStateSearchButtonContainer",(S.ytLearningJourneyZeroStateSearchButtonContainerDark=V,S))},_.G(_.JX,{data:function(){return _.O(D.data().searchButton,_.h1)},
className:"search-button",onClick:function(){return N(K.value.value)},
buttonOverrides:function(){return{disabled:w(),style:V?"mono-inverse":"mono",size:"XL"}}}))),_.G(_.E,{cond:function(){return!!D.data().errorBanner},
then:function(){return _.G("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.FI(function(L){_.CP(264617,L,H,function(J){H=J})})},_.G(_.P5,{data:function(){return D.data().errorBanner}},{alertBannerViewModel:function(L){return _.G(_.zxn,{data:L.data,
"client-ve-type":264617})}}))}})),_.G(_.E,{cond:e,
then:function(){return _.G("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.G(_.P5,{data:function(){return D.data().loader}},{learningJourneyLoaderViewModel:function(L){return _.G(_.UR9,{data:L.data})}}))},
else:function(){return _.G("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.G(_.E,{cond:function(){return!!D.data().learningJourneyShelf},
then:function(){return _.G("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.G("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return D.data().learningJourneySectionTitle}),_.G(_.P5,{data:function(){return D.data().learningJourneyShelf}},{horizontalShelfViewModel:function(L){return _.G(_.hP,{data:L.data,
centerAlignItems:!0})}}))}}),_.G("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.G("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return D.data().suggestedJourneySectionTitle}),_.G("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":k},_.G(_.P5,{data:function(){return D.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(L){return _.G(_.aw,{data:L.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"ke"),"yt-learning-journey-zero-state",{props:{data:_.ij}});var fa3=_.l(function(D){var t=D.data;return _.G("ytvl-live-leaderboard-item-action-content-view-model",{class:_.jQ("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.G(_.$7,{text:function(){var H;return(H=t())==null?void 0:H.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.G(_.P5,{data:function(){return t().actionButton}},{buttonViewModel:function(H){return _.G(_.JX,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:H.data})}}))},"le");var L03=_.l(function(D){var t=D.data;return _.G("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.jQ("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.G(_.$7,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var H;return(H=t())==null?void 0:H.displayName},
ellipsisTruncate:!0}),_.G(_.P5,{data:function(){return t().badge}},{buttonViewModel:function(H){return _.G(_.JX,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:H.data})}}))},"me");_.hB(_.l(function(D){var t=D.data;return _.G("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.G("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.G(_.$7,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var H;return(H=t())==null?void 0:H.rank}})),_.G("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.G(_.P5,{data:function(){return t().avatar}},{avatarViewModel:_.qi})),_.G("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.G(_.P5,{data:function(){return t().content}},{liveLeaderboardItemChannelContentViewModel:L03,
liveLeaderboardItemActionContentViewModel:fa3})),_.G(_.$7,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var H;return(H=t())==null?void 0:H.points}}))},"ne"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){var t=D.data;return _.G("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.G(_.$7,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var H,e;return(H=t())==null?void 0:(e=H.ranking)==null?void 0:e.rank}}),_.G("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.G(_.P5,{data:function(){return t().avatar}},{avatarViewModel:_.qi})),_.G(_.$7,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var H,e;return(H=t())==null?void 0:(e=H.channelContent)==null?void 0:e.channelName}}),_.G(_.$7,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var H;return(H=t())==null?void 0:H.points}}))},"oe"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.ij}});var Axf=_.l(function(D){D=_.FQ(D,{wrapper:!1}).wrapper;return _.G(_.E,{cond:D,then:function(){return _.G("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.G("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.G("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"pe");
Axf.idomCompat=!0;var gJf=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],Jx4=_.l(function(D){var t=D.data;var H=_.FI(),e=_.jj(function(){return t().command},void 0,"fyYsT");
_.Mp(function(){e()&&_.RQ(e(),{form:{element:H.value}})},"B0nxdb");
return _.G("div",{el:H,class:"YtQrCodeRendererHostContainer"},_.G(_.E,{cond:function(){return t().qrCodeImage},
then:function(V){return _.G(_.bi,{data:V,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.G(_.E,{cond:function(){return t().spinner},
then:function(){return _.G(Axf,null)}})}}),_.G(_.E,{cond:function(){return t().label},
then:function(V){return _.G(_.$7,{text:V,className:"YtQrCodeRendererHostLabel"})}}),_.G(_.E,{cond:function(){return t().labels},
then:function(V){return _.G("div",{class:"YtQrCodeRendererHostLabels"},_.G(_.nY,{each:V},function(b){return _.G(_.$7,{text:b})}))}}))},"se");_.hB(_.l(function(D){var t=D.data;var H=_.jj(function(){return t().qrEntityKey},void 0,"M0PrY"),e=_.jj(function(){return t().deleteEntityOnDismiss},void 0,"QZa4g"),V=_.jj(function(){return t().command},void 0,"wEOxUe"),b=_.rF(jqk,H);
D=_.jj(function(){return t().qrCodeImage},void 0,"UO5oub");
var a=_.jj(function(){return t().style&&gJf.includes(t().style)},void 0,"Op9kZd"),w=_.wv({visibilityCallback:function(h){h&&V()&&_.RQ(V())},
showOption:{calledOnce:!0,state:"visible"}});_.XH(function(){_.Sj(function(){e()&&H()&&_.V_().dispatch(_.nf("qrCodeEntity",H()))})});
return _.G("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.FI(w)},_.G(_.E,{cond:a,then:function(){return _.G(_.E,{cond:b,then:function(h){return _.G(Jx4,{data:h})}})}}),_.G(_.E,{cond:D,
then:function(h){return _.G(_.bi,{data:h,alt:""})}}))},"qe"),"yt-qr-code-renderer",{props:{data:_.ij}});var lan=_.l(function(D){var t=function(){return _.Qk(1728053247&(D.barColor!==void 0?ie(D.barColor()):4278190080))};
return _.G("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.G(Y9n,{animationDelay:0,percentWidth:100,barColor:function(){return t()}}),_.G("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.G("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+t()}})),_.G(Y9n,{animationDelay:0,
percentWidth:100,barColor:function(){return t()}}),_.G(Y9n,{animationDelay:600,
percentWidth:60,barColor:function(){return t()}}))},"te"),Y9n=_.l(function(D){return _.G("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+D.percentWidth()+"%"}},_.G("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var t=D.animationDelay(),H=D.barColor();return"animation-delay:"+t+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+H+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"ue");var vJB;_.pQV=_.l(function(D){function t(L){a(L)}
var H=D.data;var e=_.DY("yt-video-overview-view-model"),V=_.ep("div");D=_.F(_.KR(-1,void 0,"qaDSu"));var b=D.next().value,a=D.next().value;D=_.F(_.KR(0,void 0,"Vz681c"));var w=D.next().value,h=D.next().value,K={},N=_.rF(pf$,function(){return H().asyncDataEntityKey}),k=function(){var L;
if((L=N())==null?0:L.videoOverviewViewModel){var J;return _.O((J=N())==null?void 0:J.videoOverviewViewModel,DC6)}return H()};
_.XH(function(){h(Math.min((e.value.clientWidth-24)/4-8,72))});
var T=function(L){a(L);(V==null?0:V.value)&&V.value.children[L]&&V.value.children[L].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
b6k(e,function(){var L;if((L=k())==null||!L.inlinePlaybackEndpoint)return null;var J;L=K==null?void 0:(J=K.thumbnailElRef)==null?void 0:J.value;if(!L)return null;var g;J=(g=k())==null?void 0:g.inlinePlaybackEndpoint;g=_.O(J,ivf);return{multipleVideoPreviewData:{data:(g==null?0:g.playerDescriptors)&&(g==null?0:g.playerDescriptors.length)?g.playerDescriptors:[],thumbnailElement:L,trackingParams:"test",callbacks:{onPlaybackStarted:T},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var c=function(){var L;return((L=k())==null?void 0:L.headerSubtext)!==void 0?!0:!1},U=function(){var L,J=ie((L=k())==null?void 0:L.titleColor);
return J?"color: "+_.Qk(J)+";":void 0},S=function(){var L,J=ie((L=k())==null?void 0:L.subtextColor);
return J?"color: "+_.Qk(J)+";":void 0};
return _.G("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:e,style:function(){var L,J=ie((L=k())==null?void 0:L.backgroundColor);return J?"background-color: "+_.Qk(J)+";":void 0}},_.G(_.E,{cond:function(){var L;
return(L=k())==null?void 0:L.isLoading},
then:function(){return _.G(lan,{barColor:function(){var L;return(L=k())==null?void 0:L.titleColor}})},
else:function(){return _.G(_.FH,null,_.G("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.G("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return U()}},_.G(_.$7,{text:function(){var L;
return(L=k())==null?void 0:L.headerText}})),_.G(_.E,{cond:c,
then:function(){return _.G("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.G("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return S()}},_.G(_.U7,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.G("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return S()}},_.G(_.$7,{text:function(){var L;
return(L=k())==null?void 0:L.headerSubtext}})))}})),_.G("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.G(_.P5,{data:function(){var L;
return(L=k())==null?void 0:L.thumbnail}},{thumbnailViewModel:function(L){return _.G(_.PV,{data:L.data,
aspectRatio:0,playbackRef:e28(K)})}})),_.G(_.E,{cond:function(){var L,J,g,Q;
return((L=k())==null?void 0:(J=L.listItems)==null?void 0:J.length)!==void 0&&((g=k())==null?void 0:(Q=g.listItems)==null?void 0:Q.length)>0?!0:!1},
then:function(){return _.G("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:V},_.G(_.nY,{each:function(){var L;return(L=k())==null?void 0:L.listItems}},function(L,J){return _.G(vJB,{image:L.image,
index:J,isSelected:function(){return J()===b()},
onClick:t,itemWidth:w})}))}}),_.G("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.G("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return U()}},_.G(_.$7,{text:function(){var L,J,g,Q,u,R,I;
return(I=(L=k())==null?void 0:(J=L.listItems)==null?void 0:(g=J[b()])==null?void 0:g.headline)!=null?I:(Q=k())==null?void 0:(u=Q.listItems)==null?void 0:(R=u[0])==null?void 0:R.headline}})),_.G("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return S()}},_.G(_.$7,{text:function(){var L,J,g,Q,u,R,I;
return(I=(L=k())==null?void 0:(J=L.listItems)==null?void 0:(g=J[b()])==null?void 0:g.subtext)!=null?I:(Q=k())==null?void 0:(u=Q.listItems)==null?void 0:(R=u[0])==null?void 0:R.subtext}}))))}}))},"ve");
vJB=_.l(function(D){var t=D.image;var H=D.itemWidth;var e=D.index;var V=D.isSelected;var b=D.onClick;D=_.$X(function(){e!==void 0&&b!==void 0&&b(e());return!1});
var a={};return _.G("div",{class:_.jQ("ytGenAiVideoOverviewViewModelCarouselItem",(a.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return V==null?void 0:V()},a)),
style:function(){return"width: "+H()+"px;"},
"on:click":D},_.G(_.bi,{data:t,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.G(_.E,{cond:function(){return V==null?void 0:V()},
then:function(){return _.G("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.G("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"we");
_.pQV.idomCompat=!0;_.hB(_.pQV,"yt-video-overview-view-model",{props:{data:_.ij}});_.dRV=_.l(function(D){var t=D.data;var H=D.topbarOffset;var e,V=((e=_.qS().resolve(_.by(_.tB)))==null?void 0:e())||!1;return _.G("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var b=t();var a,w,h=V?(a=b.config)==null?void 0:a.darkThemeBackgroundColor:(w=b.config)==null?void 0:w.lightThemeBackgroundColor;b=h?_.Ih(h):void 0;b="background-color: "+b+";";H!==void 0&&(b+="top: -"+H()+"px;");return b},
"aria-hidden":!0},_.G(_.E,{cond:function(){var b,a,w;return!!((b=t().backgroundImageConfig)==null?0:(a=b.image)==null?0:(w=a.sources)==null?0:w.length)},
then:function(){return _.G(_.bi,{data:function(){var b;return(b=t().backgroundImageConfig)==null?void 0:b.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.G("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+dU6(V,t().gradientColorConfig)+";"}}))},"xe");
_.dRV.idomCompat=!0;var xRn=_.l(function(D){var t=D.data;var H=D.isOverlay;return _.G("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.G("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.G(_.P5,{data:function(){return t().header}},{sectionHeaderViewModel:function(e){return _.G(_.l6,{data:e.data,
isOverlay:H})}})),_.G("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.G(_.P5,{data:function(){return t().channelInfoButtons}},{flexibleActionsViewModel:_.aw})),_.G("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.G(_.P5,{data:function(){return t().description}},{descriptionPreviewViewModel:function(e){return _.G(_.Yj,{data:e.data,
isOverlay:H})}})))},"ye");
xRn.idomCompat=!0;var RVn=_.l(function(D){var t=D.data;var H={};return _.G("factoid-view-model",{class:_.jQ("ytwFactoidViewModelHost",(H.ytwFactoidViewModelHostOverlay=D.isOverlay,H))},_.G(_.$7,{text:function(){return t().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.G(_.$7,{text:function(){return t().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"ze");
RVn.idomCompat=!0;var uEm=_.l(function(D){var t=D.data;var H=D.isOverlay;return _.G("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.G(_.P5,{data:function(){return t().factoids}},{factoidViewModel:function(e){return _.G(RVn,{data:e.data,
isOverlay:H})}}))},"Ae");
uEm.idomCompat=!0;_.W0f=_.l(function(D){var t=D.data;var H=D.isOverlay;return _.G("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.G(_.P5,{data:function(){return t().items}},{channelInfoViewModel:function(e){return _.G("div",{class:"ytwCourseMetadataViewModelHostItem"},_.G(xRn,{data:e.data,
isOverlay:H}))},
coursePerksViewModel:function(e){return _.G("div",{class:"ytwCourseMetadataViewModelHostItem"},_.G($R3,{data:e.data,isOverlay:H}))},
descriptionPreviewViewModel:function(e){return _.G("div",{class:"ytwCourseMetadataViewModelHostItem"},_.G(_.Yj,{data:e.data,isOverlay:H}))},
factoidsRowViewModel:function(e){return _.G("div",{class:"ytwCourseMetadataViewModelHostItem"},_.G(uEm,{data:e.data,isOverlay:H}))},
progressViewModel:function(e){return _.G("div",{class:"ytwCourseMetadataViewModelHostItem"},_.G(iH3,{data:e.data,isOverlay:H}))}}))},"Be");var Iav=_.l(function(D){return _.G("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.G(_.P5,{data:function(){return D.data().content}},{courseMetadataViewModel:function(t){return _.G(_.W0f,{data:t.data,
isOverlay:D.isOverlay})},
progressViewModel:function(t){return _.G(iH3,{data:t.data})}}))},"Ce");var Qew=_.l(function(D){var t=D.data;D=D.className;var H=function(){var V;return _.J5((V=t())==null?void 0:V.rendererContext)},e={};
e=(e.dynamicTextViewModelHost=!0,e.dynamicTextViewModelHostTappable=function(){return H()},e);
return _.G("yt-dynamic-text-view-model",{el:_.FI(_.Yi(function(){var V;return(V=t())==null?void 0:V.rendererContext})),
role:function(){return H()?"link":void 0},
tabindex:function(){return H()?0:void 0},
class:_.jQ(D,e)},_.G("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var V,b,a;return(a=(b=_.O((V=t())==null?void 0:V.rendererContext,_.Pm))==null?void 0:b.label)!=null?a:""}},_.G(_.$7,{text:function(){return t().text},
userInput:!0})))},"De");
Qew.idomCompat=!0;_.G$=_.l(function(D){var t=D.data;var H=D.isPositionRelative;var e=_.Rs8("(max-width: 527.9px)"),V=function(){var b,a;return(a=(b=t())==null?void 0:b.style)!=null?a:"IMAGE_BANNER_STYLE_FULL_BLEED"};
D={};return _.G("yt-image-banner-view-model",{el:_.FI(_.Yi(function(){var b;return(b=t())==null?void 0:b.rendererContext})),
class:_.jQ((D.ytImageBannerViewModelHost=!0,D.ytImageBannerViewModelInset=function(){return umK(V())},D.ytImageBannerViewModelPositionAbsolute=function(){return _.fR(!0)&&!(H==null?0:H())},D.ytImageBannerViewModelSmallInset=function(){return umK(V())&&e()},D.ytImageBannerViewModelTappable=function(){var b;
return _.J5((b=t())==null?void 0:b.rendererContext)},D))},_.G(_.E,{cond:function(){var b;
return(b=t())==null?void 0:b.image},
then:function(){return _.G(_.bi,{data:function(){return t().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.G(_.P5,{data:function(){var b;
return(b=t())==null?void 0:b.overlays}},{thumbnailHoverOverlayViewModel:b4}))},"Ee");
_.G$.idomCompat=!0;var yx6;yx6=_.l(function(D){var t=D.condition;var H=D.content;return _.G(_.E,{cond:t,then:function(){return _.G("div",{class:"yt-page-header-view-model__scroll-container"},H())},
else:function(){return H()}})},"Fe");
_.BXQ=_.l(function(D){var t=D.data;var H=D.noPadding;var e=D.enableBanner;var V=D.cinematicContainerTopbarOffset;var b=D.allowCinematicContainerOverflow;var a=D.displayAsSidebar;var w=D.displayAsPanel;var h=D.alwaysUseMediumTextDescription;var K=WwV(),N=function(){return!!t().image||!!t().animatedImage},k=function(){return!!t().background},T=function(){return(a==null?0:a())||(w==null?0:w())?1:K()},c=function(){return T()===1},U=function(){return c()||T()===2},S=function(){return T()===4},L=function(){var i8=
t();
var g6=!!t().heroImage;var Mu=T(),LQ=I36(t()),DO=a==null?void 0:a(),fQ=!i8.metadata,yA;if(yA=g6?_.O(i8.heroImage,RIn):_.O(i8.animatedImage||i8.image,RIn)){i8=yA.style;var T4=yA.layoutMode;if(T4!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(yA=SeV(Mm$(yA)),g6)g6=xUA(Mu,i8,T4,yA,DO);else b:if(fQ)g6=Mu===1?{size:48}:{size:72};else switch(Mu){case 1:g6={size:72};break b;case 2:g6={size:120};break b;default:g6=LQ<4?{size:120}:{size:160}}else g6=void 0}else g6={size:0};return g6};
D={};D=_.jQ((D["yt-page-header-view-model"]=!0,D["yt-page-header-view-model--no-padding"]=function(){return!(H==null||!H())},D["yt-page-header-view-model--small-top-padding"]=function(){return c()&&!t().actions&&!(w==null?0:w())||T()===2&&!(N()||t().heroImage)},D["yt-page-header-view-model--small-bottom-padding"]=function(){return U()&&!t().actions&&!(w==null?0:w())},D["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(b==null?0:b())},D["yt-page-header-view-model--display-as-sidebar"]=
a,D));
var J={},g=_.jQ((J["yt-page-header-view-model__page-header-headline"]=!0,J["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var i8;return(i8=L())==null?void 0:i8.allowFullWidth},J)),Q=function(){var i8;
return U()&&!((i8=L())==null?0:i8.allowFullWidth)},u=function(){return c()&&(!!t().heroImage||N())&&I36(t())>0},R=function(){return u()&&(w==null?void 0:w())};
J={};var I=_.jQ((J["yt-page-header-view-model__page-header-title"]=!0,J["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!u()},J["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return u()&&!R()},J["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=R,J["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=k,J));
J={};var tT=_.jQ((J["yt-page-header-view-model__page-header-headline-image"]=!0,J["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!t().heroImage&&U()},J));
J={};var ZV=_.jQ((J["yt-page-header-view-model__page-header-banner-container"]=e,J["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var i8;return(e==null?void 0:e())&&((i8=_.O(t().banner,_.WX6))==null?void 0:i8.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},J));
J={};var ED=_.jQ((J["yt-page-header-view-model__page-header-content-metadata"]=!0,J["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=k,J));J={};var o$=_.jQ((J["yt-page-header-view-model__page-header-flexible-actions"]=!0,J["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!t().metadata||U()},J["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!U()},J));
J={};var jV=_.jQ((J["yt-page-header-view-model__page-header-attribution"]=!0,J["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=k,J));return _.G("yt-page-header-view-model",{class:D},_.G(_.E,{cond:k,then:function(){return _.G("div",{class:"yt-page-header-view-model__page-header-background"},_.G(_.P5,{data:function(){return t().background}},{cinematicContainerViewModel:function(i8){return _.G(_.dRV,{data:i8.data,
topbarOffset:V})}}))}}),_.G(yx6,{condition:function(){return!(a==null||!a())},
content:function(){return _.G("div",{class:"yt-page-header-view-model__page-header-content"},_.G(_.E,{cond:function(){return(e==null?void 0:e())&&t().banner},
then:function(){return _.G("div",{class:ZV},_.G(_.P5,{data:function(){return t().banner}},{imageBannerViewModel:_.G$}))}}),_.G("div",{class:g},_.G(_.E,{cond:N,
then:function(){return _.G(_.P5,{data:function(){var i8;if(!(i8=t().animatedImage)){i8=t();if(N()){var g6=i8=Object.assign({},i8),Mu=T(),LQ=I36(t()),DO=g6.image,fQ=_.O(DO,uWo),yA=fQ==null?void 0:fQ.avatar,T4=_.O(yA,_.lO);if(DO&&yA&&T4){switch(Mu){case 1:T4.avatarImageSize="AVATAR_SIZE_XL";break;case 2:T4.avatarImageSize="AVATAR_SIZE_XXL";break;default:LQ<4?T4.avatarImageSize="AVATAR_SIZE_XXL":T4.avatarImageSize="AVATAR_SIZE_XXXL"}_.YP(yA,_.lO,Object.assign({},T4));fQ.avatar=Object.assign({},yA);_.YP(DO,
uWo,Object.assign({},fQ));g6.image=Object.assign({},DO)}}i8=i8.image}return i8}},{contentPreviewImageViewModel:function(i8){return _.G(_.S_,{data:i8.data,
className:tT,imageSizeConfig:L})},
decoratedAvatarViewModel:function(i8){return _.G(_.Fo,{data:i8.data,className:tT})}})}}),_.G(_.E,{cond:function(){return!!t().heroImage&&!Q()},
then:function(){return _.G(_.P5,{data:function(){return t().heroImage}},{contentPreviewImageViewModel:function(i8){return _.G(_.S_,{data:i8.data,
className:tT,imageSizeConfig:L})}})}}),_.G("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.G(_.E,{cond:function(){return!!t().heroImage&&Q()},
then:function(){return _.G("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.G(_.P5,{data:function(){return t().heroImage}},{contentPreviewImageViewModel:function(i8){return _.G(_.S_,{data:i8.data,
className:tT,imageSizeConfig:L})}}))}}),_.G(_.P5,{data:function(){return t().title}},{dynamicTextViewModel:function(i8){return _.G(Qew,{data:i8.data,
className:I})}}),_.G(_.P5,{data:function(){return t().metadata}},{contentMetadataViewModel:function(i8){return _.G(_.Xo,{data:i8.data,
layout:function(){return c()?1:0},
className:ED,isOverlay:k,useMediumText:S})}}),_.G(_.E,{cond:function(){return t().description&&!c()},
then:function(){return _.G(_.P5,{data:function(){return t().description}},{descriptionPreviewViewModel:function(i8){return _.G(_.Yj,{data:i8.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:k,maxLinesOverride:function(){return c()?void 0:1},
useMediumText:function(){return(h==null?void 0:h())||S()}})}})}}),_.G(_.E,{cond:function(){return t().attribution&&!U()},
then:function(){return _.G(_.P5,{data:function(){return t().attribution}},{attributionViewModel:function(i8){return _.G(PLo,{data:i8.data,
className:jV,useMediumText:S})}})}}),_.G(_.E,{cond:function(){return t().actions&&!U()},
then:function(){return _.G(_.P5,{data:function(){return t().actions}},{flexibleActionsViewModel:function(i8){return _.G(_.aw,{data:i8.data,
layout:function(){return QoR(T())},
className:o$})}})}}))),_.G("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.G(_.E,{cond:function(){return t().description&&c()},
then:function(){return _.G(_.P5,{data:function(){return t().description}},{descriptionPreviewViewModel:function(i8){return _.G(_.Yj,{data:i8.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:k,maxLinesOverride:function(){return c()?void 0:1},
useMediumText:function(){return(h==null?void 0:h())||S()}})}})}}),_.G(_.E,{cond:function(){return t().attribution&&U()},
then:function(){return _.G(_.P5,{data:function(){return t().attribution}},{attributionViewModel:function(i8){return _.G(PLo,{data:i8.data,
className:jV,useMediumText:S})}})}}),_.G(_.E,{cond:function(){return t().actions&&U()},
then:function(){return _.G(_.P5,{data:function(){return t().actions}},{flexibleActionsViewModel:function(i8){return _.G(_.aw,{data:i8.data,
layout:function(){return QoR(T())},
className:o$})}})}})),_.G("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.G(_.P5,{data:function(){return t().bottomMetadataFlexibleContainer}},{flexibleContainer:function(i8){return _.G(Iav,{data:i8.data,
isOverlay:k})}})))}}))},"Ge");
_.BXQ.idomCompat=!0;_.hB(_.l(function(D){var t=_.F(_.KR(!1,void 0,"vvzTj")),H=t.next().value,e=t.next().value;return _.G("yt-official-card-view-model",{class:_.jQ("ytOfficialCardViewModelHost",D.className),style:_.O7({"background-color":function(){var V,b=ie((V=D.data())==null?void 0:V.backgroundColor);return b?_.Qk(b):void 0}})},_.G(_.P5,{data:function(){return D.data().header}},{pageHeaderViewModel:function(V){return _.G(_.BXQ,{data:V.data,
noPadding:!0})}}),_.G(_.P5,{data:function(){return D.data().contents}},{horizontalShelfViewModel:function(V){return _.G(_.hP,{data:V.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.G(_.E,{cond:H,
then:function(){return _.G("div",{class:"ytOfficialCardViewModelExpandedContent"},_.G(_.P5,{data:function(){return D.data().expandedContents}},{horizontalShelfViewModel:function(V){return _.G(_.hP,{data:V.data,
sizing:"MINI"})}}),_.G("div",{class:"ytOfficialCardViewModelCollapseButton"},_.G(_.P5,{data:function(){return D.data().collapseButton}},{buttonViewModel:function(V){return _.G(_.JX,{data:V.data,
onClick:function(){e(!H())}})}})))},
else:function(){return _.G("div",{class:"ytOfficialCardViewModelExpandButton"},_.G(_.P5,{data:function(){return D.data().expandButton}},{buttonViewModel:function(V){return _.G(_.JX,{data:V.data,
onClick:function(){e(!H())}})}}))}}))},"He"),"yt-official-card-view-model",{props:{data:_.ij,
className:_.ij}});var zVw=_.l(function(D){var t,H=(t=_.qS().resolve(_.by(_.tB)))==null?void 0:t();return _.G("ytw-search-friction-view-model",{class:_.jQ("ytwSearchFrictionViewModelHost",D.className)},_.G("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.G("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.G(_.E,{cond:function(){return H&&D.data().darkThemeImage?D.data().darkThemeImage:D.data().image},
then:function(e){return _.G(_.bi,{data:e,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.G(_.P5,{data:function(){return D.data().overflowMenuButton}},{buttonViewModel:function(e){return _.G(_.JX,{data:e.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.G(_.$7,{text:function(){return D.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.G(_.nY,{each:function(){return D.data().bodyText||[]}},function(e){return _.G(_.$7,{text:e,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.G(_.P5,{data:function(){return D.data().actions}},{buttonViewModel:function(e){return _.G(_.JX,{data:e.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.G(_.$7,{text:function(){return D.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.G(_.$7,{text:function(){return D.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Ie");
zVw.idomCompat=!0;_.hB(zVw,"ytw-search-friction-view-model",{props:{data:_.ij,className:_.ij}});_.EJ=_.l(function(D){var t=_.DY("markdown-div"),H,e=(H=_.qS().resolve(_.by(_.tB)))==null?void 0:H();_.Mp(function(){var V=t.value;var b=new svv,a=new Map(b.JSC$9303_sanitizerTable.globalAttributePolicies);a.set("style",{policyAction:4});b.JSC$9303_sanitizerTable=new gq(b.JSC$9303_sanitizerTable.allowedElements,b.JSC$9303_sanitizerTable.elementPolicies,b.JSC$9303_sanitizerTable.allowedGlobalAttributes,a,b.JSC$9303_sanitizerTable.globallyAllowedAttributePrefixes);var w=["data-time"];if(w===void 0)a=
new Set(b.JSC$9303_sanitizerTable.globallyAllowedAttributePrefixes),a.add("data-"),b.JSC$9303_sanitizerTable=new gq(b.JSC$9303_sanitizerTable.allowedElements,b.JSC$9303_sanitizerTable.elementPolicies,b.JSC$9303_sanitizerTable.allowedGlobalAttributes,b.JSC$9303_sanitizerTable.globalAttributePolicies,a);else{a=new Set(b.JSC$9303_sanitizerTable.allowedGlobalAttributes);w=_.F(w);for(var h=w.next();!h.done;h=w.next()){h=h.value;if(h.indexOf("data-")!==0)throw Error("ka`"+h);a.add(h)}b.JSC$9303_sanitizerTable=
new gq(b.JSC$9303_sanitizerTable.allowedElements,b.JSC$9303_sanitizerTable.elementPolicies,a,b.JSC$9303_sanitizerTable.globalAttributePolicies,b.JSC$9303_sanitizerTable.globallyAllowedAttributePrefixes)}a=new Set(b.JSC$9303_sanitizerTable.allowedGlobalAttributes);a.add("class");b.JSC$9303_sanitizerTable=new gq(b.JSC$9303_sanitizerTable.allowedElements,b.JSC$9303_sanitizerTable.elementPolicies,a,b.JSC$9303_sanitizerTable.globalAttributePolicies,b.JSC$9303_sanitizerTable.globallyAllowedAttributePrefixes);
_.Fq(V,_.qFw(b.build(),BHX(D.text())));zsV(t.value)},"OZ439c");
H={};return _.G("div",null,_.G("markdown-div",{class:_.jQ("ytwMarkdownDivHost",(H.ytwMarkdownDivDark=e,H.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var V;return((V=D.isSmallText)==null?void 0:V.call(D))||!1},H.ytwMarkdownDivHostWrapCodeBlocks=function(){var V;
return((V=D.wrapCodeBlocks)==null?void 0:V.call(D))||!1},H.ytwMarkdownDivHostEnableDefaultStyling=function(){var V;
return!((V=D.disableDefaultStyling)==null?0:V.call(D))},H)),
el:t}))},"Ke");
_.EJ.idomCompat=!0;var De4=_.l(function(D){var t=D.imageData;var H=_.qT(D.isInList,!1),e=function(){return H()?{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 _.G("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.G(_.E,{cond:function(){return t().image},
then:function(V){return _.G(_.bi,{data:V,alt:function(){return e().alt},
contentMode:function(){return e().contentMode},
targetWidth:function(){return e().targetWidth},
targetHeight:function(){return e().targetHeight},
className:function(){return e().className}})}}),_.G("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.G("div",{class:_.jQ("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.G(_.$7,{text:function(){return t().title}})),_.G(_.nY,{each:function(){var V;
return(V=t().description)!=null?V:[]}},function(V){return _.G("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.G(Kk,{content:V}))})))},"Le"),tO9=_.l(function(D){var t=D.list;
var H=function(){var e;return(e=t().items)!=null?e:[]};
return _.G("div",{class:"ytwGenAiRichTextViewModelListContent"},_.G(_.E,{cond:function(){return t().title},
then:function(e){return _.G("div",{class:_.jQ("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.G(_.$7,{text:e}))}}),_.G(_.E,{cond:function(){return t().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.G("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.G(_.nY,{each:H},function(e){return _.G("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.G(Kk,{content:e,isInList:!0}))}))}}),_.G(_.E,{cond:function(){return t().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.G("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.G(_.nY,{each:H},function(e){return _.G("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.G(Kk,{content:e,isInList:!0}))}))}}),_.G(_.E,{cond:function(){return t().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.G("div",{class:"ytwGenAiRichTextViewModelImageList"},_.G(_.nY,{each:H},function(e){return _.G("div",{class:"ytwGenAiRichTextViewModelListItem"},_.G(Kk,{content:e,isInList:!0}))}))}}))},"Me"),Hda=_.l(function(D){var t=D.table;
return _.G("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.G("thead",null,_.G("tr",null,_.G(_.nY,{each:function(){var H,e;return(e=(H=t().header)==null?void 0:H.cells)!=null?e:[]}},function(H){return _.G("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.G(_.nY,{each:function(){return H.contents}},function(e){return _.G(Kk,{content:e})}))}))),_.G("tbody",null,_.G(_.nY,{each:function(){var H;
return(H=t().rows)!=null?H:[]}},function(H){return _.G("tr",null,_.G(_.nY,{each:function(){return H.cells}},function(e){return _.G("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.G(_.nY,{each:function(){return e.contents}},function(V){return _.G(Kk,{content:V})}))}))})))},"Ne"),Kk=_.l(function(D){var t=D.content;
var H=_.qT(D.isInList,!1),e=function(){var V,b;return(b=(V=t().contentBlock)==null?void 0:V.contents)!=null?b:[]};
return _.G("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.G(_.E,{cond:function(){return t().text},
then:function(V){return _.G(_.$7,{className:"ytwGenAiRichTextViewModelText",text:V})}}),_.G(_.E,{cond:function(){return t().image},
then:function(V){return _.G(De4,{imageData:V,isInList:H})}}),_.G(_.E,{cond:function(){return t().list},
then:function(V){return _.G(tO9,{list:V})}}),_.G(_.E,{cond:function(){return t().contentBlock},
then:function(){return _.G("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.G(_.nY,{each:e},function(V){return _.G(Kk,{content:V,isInList:!1})}))}}),_.G(_.E,{cond:function(){return t().table},
then:function(V){return _.G(Hda,{table:V})}}))},"Oe"),eQV=_.l(function(D){var t={};
t=_.ff("ytwGenAiRichTextViewModelHost",(t.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.sa("search_overview_link_style")),t));return _.G("gen-ai-rich-text-view-model",{class:t},_.G(Kk,{content:function(){return D.data().content}}))},"Pe");_.VOo=_.l(function(D){var t=D.data;var H=function(){var S;return((S=t().loadingUi)!=null?S:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},e=function(){return t().isLoading&&(H()==="UNSPECIFIED"||H()==="GHOST_CARD")},V=function(){return!t().isLoading},b=function(){return!!t().content&&!t().contents},a=function(){return!!t().contents},w=function(){return!!t().nextQueryButtons},h=function(){return t().isLoading&&H()==="INVISIBLE"},K=function(){var S,L;
return(L=(S=t().headerIcon)==null?void 0:S.iconType)!=null?L:""},N=function(){var S;
return(S=t().content)!=null?S:""},k=function(){return!!t().sourcesSection},T,c=!((T=_.qS().resolve(_.by(_.tB)))==null||!T()),U=_.jj(function(){var S=[],L=t().contents;
if(L)for(var J=0;J<L.length;J++){var g=_.O(L&&L[J],zPf);g&&S.push(g)}return S},void 0,"gcCsZb");
_.XH(function(){t().isLoading||_.vh("so_re",void 0,"search_overview_answer")});
return _.G("ytd-overview-answer-view-model",{class:function(){var S={};S=(S.ytdOverviewAnswerViewModelHost=!0,S.ytdOverviewAnswerViewModelDarkBackground=c&&!h(),S.ytdOverviewAnswerViewModelLightBackground=!c&&!h(),S);return _.ff(S)}},_.G(_.E,{cond:function(){return!h()},
then:function(){return _.G(_.FH,null,_.G("h2",null,_.G("div",{class:"ytdOverviewAnswerViewModelHeader"},_.G(_.E,{cond:K,then:function(S){return _.G("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.G(_.U7,{icon:S}))}}),_.G("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.G("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return t().headerText}),_.G("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.G(_.$7,{text:function(){return t().headerSubtext}}))))),_.G(_.E,{cond:e,
then:function(){return _.G(Dm$,null)}}),_.G(_.E,{cond:V,
then:function(){return _.G(_.FH,null,_.G(_.E,{cond:b,then:function(){return _.G("div",{class:"ytdOverviewAnswerViewModelText"},_.G(_.EJ,{text:N,isSmallText:!0}))}}),_.G(_.E,{cond:a,
then:function(){return _.G("div",{class:"ytdOverviewAnswerViewModelRichText"},_.G(_.nY,{each:U},function(S){return _.G(eQV,{data:S})}))}}),_.G(_.E,{cond:w,
then:function(){return _.G("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.G(_.P5,{data:function(){return t().nextQueryButtons}},{buttonViewModel:function(S){return _.G(_.JX,{data:S.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.hP}))}}),_.G("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.G("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.G(_.E,{cond:function(){return!!_.O(t().likeButtonViewModel,_.et)&&!!_.O(t().dislikeButtonViewModel,_.HK)},
then:function(){return _.G("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.G(_.ZZ,{data:function(){return _.O(t().likeButtonViewModel,_.et)},
disableIconAnimation:!0}),_.G(_.w7,{data:function(){return _.O(t().dislikeButtonViewModel,_.HK)}}))}})),_.G(_.E,{cond:function(){var S;
return(S=t().sourcesSection)==null?void 0:S.headerText},
then:function(S){return _.G("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.G(_.$7,{text:S}))}})),_.G(_.E,{cond:k,
then:function(){return _.G("div",{class:"ytdOverviewAnswerViewModelSources"},_.G(_.P5,{data:function(){var S;return(S=t().sourcesSection)==null?void 0:S.sourcesShelf}},{buttonViewModel:_.JX,
horizontalShelfViewModel:function(S){return _.G(_.hP,{data:S.data,includeMargin:!0,hasPeek:!0})}}))}}),_.G(_.E,{cond:function(){return t().disclaimerText},
then:function(){return _.G("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.G(_.$7,{text:function(){return t().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Qe");var bdV=_.l(function(D){var t=_.FQ(D,{}).data;return _.G("yt-shopping-content-line-item-view-model",{class:_.jQ("ytShoppingContentLineItemViewModelHost")},_.G(_.$7,{text:function(){var H;return(H=t().text)==null?void 0:H.attributedString}}))},"Re");_.Nj=_.l(function(D){D=_.FQ(D,{});var t=D.data,H={};return _.G("yt-shopping-content-line-view-model",{class:_.jQ("ytShoppingContentLineViewModelHost",D.className,(H.ytShoppingContentLineViewModelTruncateText=function(){return!t().wrapContent},H)),
style:_.O7({"--shopping-content-line-gap":function(){return t().itemGap?t().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return t().lineHeight?t().lineHeight+"px":void 0}})},_.G(_.nY,{each:function(){return(t().items||[]).map(function(e){return _.O(e,sW4)}).filter(function(e){return!!e})}},function(e){return _.G(bdV,{data:e})}))},"Se");var qZQ=_.l(function(D){var t=D.data;return _.G("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var H,e,V,b=((H=_.qS().resolve(_.by(_.tB)))==null?0:H())?(e=t())==null?void 0:e.darkThemeBackgroundColor:(V=t())==null?void 0:V.lightThemeBackgroundColor;return"background-color: "+(b?_.Qk(b):"")+";"},
el:_.FI(_.Yi(function(){var H;return(H=t())==null?void 0:H.rendererContext}))},_.G(_.E,{cond:function(){return t().thumbnail},
then:function(H){return _.G(_.bi,{data:H,width:48,height:48,alt:"",className:"ytShoppingDescriptionItemViewModelThumbnail"})}}),_.G("div",{class:"ytShoppingDescriptionItemViewModelText"},_.G(_.P5,{data:function(){return t().line1}},{shoppingContentLineViewModel:function(H){return _.G(_.Nj,{data:H.data})}}),_.G(_.P5,{data:function(){return t().line2}},{shoppingContentLineViewModel:function(H){return _.G(_.Nj,{data:H.data})}}),_.G(_.P5,{data:function(){return t().line3}},{shoppingContentLineViewModel:function(H){return _.G(_.Nj,
{data:H.data})}})))},"Te");var Fs6=_.l(function(D){var t=D.data;var H=D.active;var e=_.DY("transcript-segment-view-model");_.Mp(function(){var V,b,a,w=((V=_.qS().resolve(_.by(_.tB)))==null?0:V())?(b=t())==null?void 0:b.darkThemeColorPalette:(a=t())==null?void 0:a.lightThemeColorPalette;w&&(w.additiveBackground&&e.value.style.setProperty("--timestamp-active-background-color",_.Qk(w.additiveBackground)),w.textSecondary&&e.value.style.setProperty("--timestamp-active-color",_.Ih(w.textSecondary)))},"TnVCnb");
D={};return _.G("transcript-segment-view-model",{class:_.jQ("ytwTranscriptSegmentViewModelHost",(D.ytwTranscriptSegmentViewModelHostActive=H,D.ytwTranscriptSegmentViewModelHostModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),D)),el:e},_.G(_.E,{cond:function(){var V;return(V=t())==null?void 0:V.timestamp},
then:function(V){var b={};return _.G(_.FH,null,_.G("div",{class:_.jQ("ytwTranscriptSegmentViewModelTimestamp",(b.ytwTranscriptSegmentViewModelTimestampActive=H,b)),"aria-hidden":!0},V),_.G("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var a=V().split(":").map(Number),w=_.F(a.reverse());a=w.next().value;var h=w.next().value;w=w.next().value;return _.xC8({hours:w,minutes:h,seconds:a})}))}}),_.G(_.$7,{text:function(){var V,b,a;
return(a=(V=t())==null?void 0:V.attributedText)!=null?a:{content:(b=t())==null?void 0:b.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Ve");var azB=_.l(function(D){var t=D.data;return _.G("div",{class:"videoAttributesSectionViewModelHeader"},_.G("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.G("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return t().headerTitle}),_.G(_.E,{cond:function(){return t().headerInfoButton},
then:function(){return _.G(_.P5,{data:function(){return t().headerInfoButton}},{buttonViewModel:function(H){return _.G(_.JX,{data:H.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.G(_.E,{cond:function(){return t().headerSubtitle},
then:function(){return _.G("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return t().headerSubtitle})}}))},"We"),wGf=_.l(function(D){function t(S){return Math.max(Math.min(S,0),K()-w())}
var H=D.data;var e;D=_.DY("div",function(S){var L=function(){N(S.clientWidth)};
L();window.ResizeObserver&&(e=new ResizeObserver(L),e.observe(S))});
var V=_.DY("div",function(S){h(S.scrollWidth)}),b=_.F(_.KR(0,void 0,"C3XQAe")),a=b.next().value;
b=b.next().value;var w=a,h=b;b=_.F(_.KR(0,void 0,"db7y3"));a=b.next().value;b=b.next().value;var K=a,N=b;a=_.F(_.KR(0,void 0,"RchC7"));var k=a.next().value,T=a.next().value;_.Sj(function(){var S;(S=e)==null||S.disconnect()});
var c=function(){T(t(k()+K()))},U=function(){T(t(k()-K()))};
return _.G("yt-video-attributes-section-view-model",null,_.G("div",{class:"videoAttributesSectionViewModelHost"},_.G(_.E,{cond:function(){return H().headerTitle},
then:function(){return _.G(azB,{data:H})}}),_.G("div",{class:_.jQ("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:D},_.G("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.O7({transform:function(){var S=k();_.YC("HTML_DIR")==="rtl"&&(S*=-1);return"translateX("+S+"px)"}}),
el:V},_.G(_.P5,{data:function(){return H().videoAttributeViewModels}},{videoAttributeViewModel:Rqv}))),_.G(_.P5,{data:function(){return H().footerButton}},{buttonViewModel:function(S){return _.G(_.JX,{data:S.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.G(_.E,{cond:function(){return k()<0&&H().previousButton},
then:function(){return _.G("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.G(_.P5,{data:function(){return H().previousButton}},{buttonViewModel:function(S){return _.G(_.JX,{data:S.data,
onClick:c})}}))}}),_.G(_.E,{cond:function(){return k()>K()-w()&&H().nextButton},
then:function(){return _.G("div",{class:"videoAttributesSectionViewModelRightArrow"},_.G(_.P5,{data:function(){return H().nextButton}},{buttonViewModel:function(S){return _.G(_.JX,{data:S.data,
onClick:U})}}))}})))},"Xe");
wGf.idomCompat=!0;var Zdo=_.l(function(D){var t=D.data;var H=D.active;var e={},V={};return _.G("timeline-item-view-model",{class:_.jQ("ytwTimelineItemViewModelHost",(e.ytwTimelineItemViewModelHostChapterChild=D.chapterChild,e.ytwTimelineItemViewModelModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),e))},_.G("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.G("div",{class:_.jQ("ytwTimelineItemViewModelTimestamp",(V.ytwTimelineItemViewModelTimestampActive=
H,V))},function(){return t().timestamp})),_.G("div",{class:"ytwTimelineItemViewModelContentItems"},_.G(_.P5,{data:function(){return t().contentItems}},{transcriptSegmentViewModel:function(b){return _.G(Fs6,{data:b.data,
active:H})},
videoAttributesSectionViewModel:wGf})))},"Ye");var sUn=_.l(function(D){var t=D.data;D={};return _.G("timeline-chapter-view-model",{class:_.jQ("ytwTimelineChapterViewModelHost")},_.G("div",{class:_.jQ("ytwTimelineChapterViewModelTitle",(D.ytwTimelineChapterViewModelModern=_.r("enable_timeline_view_modern_transcript")||_.r("enable_timeline_view_modern_transcript_fe"),D))},function(){return t().title}),_.G(_.P5,{data:function(){return t().contents}},{timelineItemViewModel:function(H){return _.G(Zdo,{data:H.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(H){return _.G(wGf,{data:H.data})}}))},"Ze");var hQa=_.l(function(D){var t=D.data;var H=_.DY("macro-markers-panel-item-view-model"),e=_.rF(_.EcR,function(){var b;return(b=t().markersEngagementPanelSyncEntityKey)!=null?b:""}),V=function(){var b;
return((b=e())==null?void 0:b.activeItemIndex)===t().index};
D=_.$X(function(b){var a,w,h,K,N;return _.Z(function(k){if(k.nextAddress==1)return b.stopPropagation(),_.A5(_.Lf(b),H.value,["A".toString(),"BUTTON".toString()])?k.return():(a=_.xP(t().onTap))?k.yield(_.ki(),2):k.return();w=k.yieldResult;K=(h=_.O(a,_.Hh))==null?void 0:h.startTimeSeconds;K===void 0||(N=w)!=null&&N.seekTo(K,!0);_.n2(k)})});
return _.G("macro-markers-panel-item-view-model",{class:_.jQ("ytwMacroMarkersPanelItemViewModelHost",{"is-active":V}),el:H,"on:click":D,tabindex:0,role:"button"},_.G(_.P5,{data:function(){var b;return(b=t())==null?void 0:b.item}},{timelineChapterViewModel:function(b){return _.G(sUn,{data:b.data,
active:V})},
timelineItemViewModel:function(b){return _.G(Zdo,{data:b.data,active:V})},
videoAttributeViewModel:Rqv,shoppingDescriptionItemViewModel:qZQ}))},"$e");
hQa.idomCompat=!0;_.hB(hQa,"macro-markers-panel-item-view-model",{props:{data:_.ij}});_.hB(wGf,"yt-video-attributes-section-view-model",{props:{data:_.ij}});var Gvf=_.l(function(D){var t=function(){var H,e,V;return(V=(H=D.data().leadingLogoAccessibility)==null?void 0:(e=H.accessibilityData)==null?void 0:e.label)!=null?V:""};
return _.G("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.G(_.E,{cond:function(){return D.data().leadingLogo},
then:function(H){return _.G(_.bi,{className:"ytwFantasySectionHeaderViewModelLogo",data:H,alt:t})}}),_.G("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.G(_.$7,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return D.data().title}}),_.G(_.$7,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return D.data().subtitle}})),_.G(_.P5,{data:function(){return D.data().trailingButton}},{buttonViewModel:function(H){return _.G(_.JX,{data:H.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"af");var EtV=_.l(function(D){var t={};t=_.jQ("ytwFantasyTeamViewModelHost",(t.ytwFantasyTeamViewModelCompact=function(){var V;return!((V=D.compact)==null||!V.call(D))},t.ytwFantasyTeamViewModelUser=function(){return D.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},t.ytwFantasyTeamViewModelOpponent=function(){return D.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},t));
var H=function(){var V,b,a;return(a=(V=D.data().teamLogoAccessibility)==null?void 0:(b=V.accessibilityData)==null?void 0:b.label)!=null?a:""},e=_.rF(kP6,function(){return D.data().teamEntityKey});
return _.G("ytw-fantasy-team-view-model",{class:t},_.G(_.E,{cond:function(){return D.data().teamLogo},
then:function(V){return _.G(_.bi,{className:"ytwFantasyTeamViewModelLogo",data:V,alt:H})}}),_.G("div",{class:"ytwFantasyTeamViewModelMetadata"},_.G("div",{class:"ytwFantasyTeamViewModelHeader"},_.G(_.$7,{className:"ytwFantasyTeamViewModelScore",
text:function(){var V;return(V=e())==null?void 0:V.score}}),_.G(_.U7,{icon:function(){var V;
return(V=e())==null?void 0:V.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.G(_.$7,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var V;return(V=e())==null?void 0:V.projectedScore}})),_.G(_.$7,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return D.data().primaryText}}),_.G(_.$7,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return D.data().secondaryText}}),_.G(_.$7,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return D.data().tertiaryText}})),_.G(_.$7,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var V;return(V=e())==null?void 0:V.score}}))},"bf");_.hB(_.l(function(D){return _.G("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.G("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.G(_.P5,{data:function(){return D.data().summaryHeader}},{fantasySectionHeaderViewModel:Gvf})),_.G(_.P5,{data:function(){return D.data().userTeam}},{fantasyTeamViewModel:EtV}),_.G(_.P5,{data:function(){return D.data().opponentTeam}},{fantasyTeamViewModel:EtV}))},"cf"),"fantasy-league-summary-view-model",{props:{data:_.ij}});var Ks4=_.l(function(D){var t=_.FQ(D,{shape:{},useCustomTabRenderable:!1}),H=t.shape;t=t.useCustomTabRenderable;var e=D.customTabRenderable,V=function(){return H().disabled},b=function(){return H().selected},a=function(){return H().title},w=function(){return H().icon},h=_.DY("yt-tab-shape");
D=_.$X(function(k){var T;if(!V()&&((T=H().aTagConfig)==null?0:T.onclick))H().aTagConfig.onclick(k);return!1});
var K=_.$X(function(k){if(k.key==="Enter"||k.key==="ArrowUp"||k.key==="ArrowDown")k.preventDefault(),h.value.click();return!1}),N={};
return _.G("yt-tab-shape",{class:_.jQ("yt-tab-shape",function(){return H().className},(N["yt-tab-shape__tab--last-tab"]=function(){return H().isLastTab},N["yt-tab-shape--host-disabled"]=V,N["yt-tab-shape--host-clickable"]=!e,N)),
role:e?void 0:"tab","aria-selected":b!=null?b:!1,"aria-disabled":V,tabindex:e?void 0:0,"on:click":D,"on:keydown":K,el:h,"tab-identifier":function(){return H().identifier},
"tab-title":a},_.G(_.E,{cond:t,then:function(){return e()},
else:function(){var k={},T={};return _.G(_.FH,null,_.G("div",{class:_.jQ("yt-tab-shape__tab",(k["yt-tab-shape__tab--tab-selected"]=b,k))},_.G(_.E,{cond:w,then:function(c){return _.G(_.U7,{className:"yt-tab-shape__tab-icon",icon:function(){return c().iconType}})}}),a),_.G("div",{class:_.jQ("yt-tab-shape__tab-bar",(T["yt-tab-shape__tab-bar--tab-bar-selected"]=b,T))}))}}))},"df");
Ks4.idomCompat={callbacks:{customTabRenderable:!0}};_.kvn=_.l(function(D){var t=D.shape;D=_.F(_.KR(48,void 0,"rCewuf"));var H=D.next().value,e=D.next().value;D=_.F(_.KR(0,void 0,"aUUTWe"));var V=D.next().value,b=D.next().value,a=function(){return t().tabs},w=_.DY("yt-tab-group-shape"),h=function(){var K,N;
return(N=(K=a())==null?void 0:K.findIndex(function(k){return k.selected}))!=null?N:-1};
_.XH(function(){var K=w.value.querySelectorAll("yt-tab-shape"),N=h()>-1?K[h()]:void 0;_.Jy.addJob(function(){e((N==null?void 0:N.getBoundingClientRect().width)||0)},8,0)});
_.Mp(function(){var K=h(),N=_.Jy.addJob(function(){var k,T=((k=w.value)==null?void 0:k.querySelectorAll("yt-tab-shape"))||[],c;e(((c=K>-1?T[K]:void 0)==null?void 0:c.getBoundingClientRect().width)||0);for(c=k=0;c<K;c++)k+=T[c].offsetWidth+24;_.YC("HTML_DIR")==="rtl"&&(k=-k);b(k)},8,0);
_.Sj(function(){_.Jy.cancelJob(N)})},"DAb5Qb");
D={};return _.G("yt-tab-group-shape",{class:_.jQ("tabGroupShapeHost",(D.tabGroupShapeOverflowHidden=function(){return t().isOverflowHidden},D)),
el:w},_.G(_.E,{cond:a,then:function(K){return _.G(_.FH,null,_.G("div",{class:"tabGroupShapeTabs",role:"tablist"},_.G(_.nY,{each:K},function(N,k){return _.G(Ks4,{shape:function(){return Object.assign({},N,{isLastTab:k()===K().length-1})},
customTabRenderable:N.customTabRenderable,useCustomTabRenderable:!!N.customTabRenderable})})),_.G(NDn,{width:H,
sliderOffset:V}))}}))},"ff");
_.kvn.idomCompat=!0;var NDn=_.l(function(D){var t=_.qT(D.sliderOffset,0),H=D.width;return _.G("div",{class:"tabGroupShapeSlider",style:_.O7({width:function(){return H()+"px"},
transform:function(){return"translateX("+t()+"px)"}})})},"gf");var TDf=_.l(function(D){var t=function(){var b,a,w;return(w=(b=D.data().playerLogoAccessibility)==null?void 0:(a=b.accessibilityData)==null?void 0:a.label)!=null?w:""},H=_.rF(TeV,function(){return D.data().playerEntityKey}),e={};
e=_.jQ("ytwFantasyPlayerViewModelHost",(e.ytwFantasyPlayerViewModelPlaying=function(){var b;return!((b=H())==null||!b.isPlayerPlaying)},e.ytwFantasyPlayerViewModelOnField=function(){var b;
return((b=H())==null?void 0:b.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},e.ytwFantasyPlayerViewModelRedZone=function(){var b;
return((b=H())==null?void 0:b.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},e));
var V=function(){var b,a,w,h=((b=_.qS().resolve(_.by(_.tB)))==null?0:b())?(a=D.data().playerLogoBackgroundColor)==null?void 0:a.darkTheme:(w=D.data().playerLogoBackgroundColor)==null?void 0:w.lightTheme;return h===void 0?"":_.Qk(h)};
return _.G("ytw-fantasy-player-view-model",{class:e},_.G(_.E,{cond:function(){return D.data().playerLogo},
then:function(b){return _.G("div",{class:"ytwFantasyPlayerViewModelLogo"},_.G("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.G(_.bi,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.O7({"background-color":V}),data:b,alt:t})),_.G("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.G(_.U7,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.G("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.G("div",{class:"ytwFantasyPlayerViewModelHeader"},_.G(_.$7,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var b;return(b=D.data())==null?void 0:b.playerNameText}}),_.G(_.$7,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var b;return(b=D.data())==null?void 0:b.playerDescriptionText}})),_.G("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.G(_.$7,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var b;return(b=H())==null?void 0:b.gamePeriodText}}),_.G(_.$7,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var b;return(b=D.data())==null?void 0:b.opponentTeamText}}),_.G(_.$7,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var b;return(b=H())==null?void 0:b.gameStatusText}}),_.G(_.$7,{className:_.jQ("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var b;return(b=H())==null?void 0:b.playerStatusText}})),_.G("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.G(_.$7,{text:function(){var b;
return(b=H())==null?void 0:b.playerStatsText}}))),_.G(_.$7,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var b;return(b=H())==null?void 0:b.fantasyScore}}))},"hf");var cw9=_.l(function(D){return _.G("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.G(_.E,{cond:function(){return D.data().players},
then:function(t){return _.G(_.P5,{data:t},{fantasyPlayerViewModel:TDf})}}))},"jf");var jUf=_.l(function(D){var t=_.F(_.rm(function(){var V;return(V=D.data().selectedTabIdentifierKey)!=null?V:""})),H=t.next().value,e=t.next().value;
_.SG(function(){var V;(V=D.setSelectedTabSignal)==null||V.call(D,H)});
return _.G("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.G("div",{class:"ytTabbedViewModelTabGroup"},_.G(_.kvn,{shape:function(){var V=D.data(),b=[],a={tabs:b};if(!V.tabs)return a;V=_.F(V.tabs);for(var w=V.next(),h={};!w.done;h={tabViewModel:void 0},w=V.next())if(h.tabViewModel=_.O(w.value,ETV),h.tabViewModel){var K=w=void 0;b.push({aTagConfig:{onclick:function(N){return function(){var k;e((k=N.tabViewModel.tabIdentifier)!=null?k:"")}}(h)},
identifier:h.tabViewModel.tabIdentifier,selected:H()===h.tabViewModel.tabIdentifier,title:(K=(w=h.tabViewModel.title)==null?void 0:w.content)!=null?K:""})}return a}})),_.G(_.P5,{data:function(){var V,b=_.F((V=D.data().tabs)!=null?V:[]);
for(V=b.next();!V.done;V=b.next())if((V=_.O(V.value,ETV))&&V.tabIdentifier===H())return V.content}},{fantasyRosterViewModel:cw9}))},"kf");_.hB(_.l(function(D){var t=_.F(tqK()),H=t.next().value,e=t.next().value;return _.G("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.G(_.$7,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return D.data().title}}),_.G(_.E,{cond:function(){return D.data().tabbedViewModel},
then:function(V){return _.G(_.P5,{data:V},{tabbedViewModel:function(b){return _.G(jUf,{data:b.data,setSelectedTabSignal:e})}})}}),_.G(_.E,{cond:function(){var V,b=(V=_.O(D.data().tabbedViewModel,K2f))==null?void 0:V.tabs;
V=_.O(b==null?void 0:b[0],ETV);b=_.O(b==null?void 0:b[1],ETV);var a=V==null?void 0:V.tabIdentifier;if(H()===a){var w,h;if(!((w=_.O(V==null?void 0:V.content,XN3))==null?0:(h=w.players)==null?0:h.length))return D.data().noUserTeamPlayersText}else{var K,N;if(!((K=_.O(b==null?void 0:b.content,XN3))==null?0:(N=K.players)==null?0:N.length))return D.data().noOpponentTeamPlayersText}},
then:function(V){return _.G(_.$7,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:V})}}))},"lf"),"ytw-fantasy-matchup-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){return _.G("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.G(_.$7,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return D.data().title}}),_.G(_.E,{cond:function(){return D.data().matchupTeamPairs},
then:function(t){return _.G(_.nY,{each:t,keyBy:"INDEX"},function(H){return _.G("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.G(_.P5,{data:function(){return[H().firstTeam,H().secondTeam]}},{fantasyTeamViewModel:function(e){return _.G(EtV,{data:e.data,
compact:!0})}}))})}}))},"mf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){var t=function(){var V,b,a;return(a=(V=D.data().userLogoAccessibility)==null?void 0:(b=V.accessibilityData)==null?void 0:b.label)!=null?a:""},H=function(){var V,b,a;
return(a=(V=D.data().opponentLogoAccessibility)==null?void 0:(b=V.accessibilityData)==null?void 0:b.label)!=null?a:""},e=_.rF(Ne3,function(){return D.data().entityKey});
return _.G("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.G("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.G(_.E,{cond:function(){return D.data().userLogo},
then:function(V){return _.G(_.bi,{className:"ytwFantasyWinProbabilityViewModelLogo",data:V,alt:t})}}),_.G("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.G(_.$7,{text:function(){return D.data().title}})),_.G(_.E,{cond:function(){return D.data().opponentLogo},
then:function(V){return _.G(_.bi,{className:"ytwFantasyWinProbabilityViewModelLogo",data:V,alt:H})}})),_.G("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.G("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.G(_.$7,{text:function(){var V;
return(V=e())==null?void 0:V.userWinNumberLabel}})),_.G("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.G("div",{class:_.jQ("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.O7({flex:function(){var V,b;return(b=(V=e())==null?void 0:V.userWinNumber)!=null?b:50}})}),_.G("div",{class:_.jQ("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.O7({flex:function(){var V,b;return(b=(V=e())==null?void 0:V.opponentWinNumber)!=null?b:50}})})),_.G("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.G(_.$7,{text:function(){var V;
return(V=e())==null?void 0:V.opponentWinNumberLabel}}))))},"nf"),"fantasy-win-probability-view-model",{props:{data:_.ij}});var $ef={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},idQ=_.l(function(D){return _.G(_.P5,{data:D.button},{buttonViewModel:function(t){return _.G(_.JX,{data:t.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"of"),rwB=_.l(function(D){return _.G("ytd-backstage-locked-post-view-model",{class:_.jQ("ytdBackstageLockedPostViewModelHost",D.className)},_.G("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.G("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.G(_.P5,
{data:function(){return D.data().authorAvatar}},{decoratedAvatarViewModel:_.Fo})),_.G("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.G("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.G(_.$7,{text:function(){return D.data().authorText}})),_.G("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.G(_.$7,{text:function(){return D.data().publishedTimeText}}),_.G(_.P5,{data:function(){return D.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(t){return _.G(o_6,
{data:t.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.G("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.G(_.$7,{text:function(){return D.data().contentText}})),_.G(_.CY,null,_.G(_.oD,{when:function(){return D.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.G("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.G(_.bi,{data:$ef,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.G(_.$7,{text:function(){return D.data().lockedText}}))}),_.G(_.oD,{when:function(){return D.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.G("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.G("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.G(_.bi,{data:$ef,
alt:""})),_.G(_.$7,{text:function(){return D.data().lockedText}}))})),_.G("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.G(idQ,{button:function(){return D.data().likeButton}}),_.G("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return D.data().voteCountA11y}},_.G(_.$7,{text:function(){return D.data().voteCount}})),_.G(idQ,{button:function(){return D.data().dislikeButton}}),_.G(idQ,{button:function(){return D.data().commentButton}}),_.G("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return D.data().commentCountA11y}},_.G(_.$7,{text:function(){return D.data().commentCount}}))))},"pf");
rwB.idomCompat=!0;_.hB(rwB,"ytd-backstage-locked-post-view-model",{props:{data:_.ij,className:_.ij}});_.AB("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var kl=function(){var D=_.X.apply(this,arguments)||this;D.darkerPanels=_.r("web_watch_darker_panels");D.commentsHidePanelButton=!1;D.isWatchGrid=!1;D.continuationShowButton=!1;D.isSearch=!1;D.isConstrainedList=!1;D.isWatch=!1;D.eligibleToSwitchToGrid=!1;D.useBigThumbs=!1;D.notSticky=!1;D.epRestyle=!1;D.isCarouselInFeed=!0;D.topSpacingZero=!1;D.continuationIsInitialLoad=!0;D.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");D.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");
D.mastheadHeight=0;D.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};D.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return D};
_.P(kl,_.X);_.q=kl.prototype;_.q.updateLockupContainerTypes=function(D){if(this.eligibleToSwitchToGrid){var t;(t=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||t.forEach(function(H){H.containerType=D})}};
_.q.getItemsPath=function(){return"data.contents"};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.q.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},commentFilterContextViewModel:{component:"yt-comment-filter-context-view-model"},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",
compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",
faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",
eduCardViewModel:"yt-edu-card-view-model",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",
handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",
labsItemRenderer:"ytd-labs-item-renderer",linearLayoutViewModel:"yt-linear-layout-view-model",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},
settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",
subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",
unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",
isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",
videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},
liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",
properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.r("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.r("kevlar_low_priority_continuation")}}};
_.q.created=function(){};
_.q.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.q.handleIntersect=function(D){this.notSticky=D[0].intersectionRatio===1};
_.q.attached=function(){var D=this,t=_.r("web_item_section_sticky_header_use_scroll_as_fallback");t||document.addEventListener("scroll",_.iK(this,this.updateHeaderState));var H;this.mastheadHeight=((H=document.querySelector("ytd-masthead"))==null?void 0:H.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(e){D.handleIntersect(e)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):t&&document.addEventListener("scroll",_.iK(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){D.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.q.detached=function(){document.removeEventListener("scroll",_.iK(this,this.updateHeaderState));var D;(D=this.intersectionObserver)==null||D.disconnect();var t;(t=this.resizeObserver)==null||t.disconnect()};
_.q.updated=function(D){D.has("data")&&this.updateHeaderState()};
_.q.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(SRQ(!this.notSticky))};
_.q.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var D=_.Kg(this.hostElement).querySelector("ytd-comments-header-renderer");D&&(D.hidePanelButton=this.commentsHidePanelButton)}};
_.q.onRetrieveLocation=function(D,t){this.containsComments()&&(this.firstCommentsLoaded=t.hasComments=!0)};
_.q.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.q.onLoadReloadContinuation=function(D,t){var H=this;D.stopPropagation();this.isReloading=!0;_.Gf(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(e){var V=_.qS().resolve(_.dn);e=t(e);V.postData(e).then(function(b){H.onReloadContinuationData(b)})}})};
_.q.onReloadContinuationData=function(D){if(D=this.get("response.continuationContents.itemSectionContinuation",D)||this.get("response.contents.itemSectionRenderer",D)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",D)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",D))this.set("data.contents",D.contents||D.results),D.header&&this.set("data.header",D.header),this.set("data.continuations",
D.continuations||[]);this.isReloading=!1};
_.q.computeContentsClass=function(D){return D?"reloading":""};
_.q.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.q.computeSectionIdentifier=function(D){return D==null?void 0:D.sectionIdentifier};
_.q.computeFitContainer=function(D){return(D==null?void 0:D.sectionIdentifier)==="youchat-item-section"};
_.q.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.r("kevlar_disable_comments_auto_load")};
_.q.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.q.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.q.computeHasDestinationShelfRenderer=function(D){var t,H;return!!(D==null?0:(t=D.contents)==null?0:(H=t[0])==null?0:H.destinationShelfRenderer)};
_.q.computeHasSectionGroupViewModel=function(D){var t,H;return!!(D==null?0:(t=D.contents)==null?0:(H=t[0])==null?0:H.sectionGroupViewModel)};
_.q.computeHasQrCodeRenderer=function(D){var t,H;return!!(D==null?0:(t=D.contents)==null?0:(H=t[0])==null?0:H.qrCodeRenderer)};
_.q.computeStaticCommentsHeader=function(D){return D&&this.containsComments()};
_.q.computeEpRestyle=function(D){return _.r("web_ep_restyling")&&D&&this.containsComments()};
_.q.computeIsContinuationCommentSection=function(D){return(D==null?void 0:D.targetId)==="shorts-engagement-panel-comments-section"||(D==null?void 0:D.targetId)==="comments-section"||(D==null?void 0:D.targetId)==="engagement-panel-comments-section"};
_.q.computeSuppressPaddingDisclaimer=function(){var D,t,H,e;return!!((D=this.data)==null?0:(t=D.contents)==null?0:(H=t[0])==null?0:(e=H.productListHeaderRenderer)==null?0:e.suppressPaddingDisclaimer)};
_.q.computeHeaderStyle=function(D){switch(D==null?void 0:D.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.q.dataChanged=function(){this.firstCommentsLoaded=!1};
_.q.observeDataContentsLength=function(){var D,t;((D=this.data)==null?0:(t=D.contents)==null?0:t.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.q.onYtDismissibleItemDismissedChange=function(D){this._setItemDismissed(D.type==="yt-dismissible-item-dismissed")};
_.q.triggerContinuations=function(){for(var D=_.Kg(this.hostElement).querySelector("#continuations").children,t=0;t<D.length;t++)D[t].trigger()};
_.q.triggerInitialContinuations=function(){for(var D=_.Kg(this.hostElement).querySelector("#continuations").children,t=0;t<D.length;t++)D[t].triggerIfNotPreviouslyTriggered()};
_.q.handleYtItemSectionContinuation=function(D,t){var H;t&&((H=this.data)==null?void 0:H.sectionIdentifier)!==t||(this.set("data.continuations",[D]),this.triggerContinuations())};
_.q.handleYtItemSectionReplace=function(D,t){var H;t&&((H=this.data)==null?void 0:H.sectionIdentifier)!==t||(this.set("data.contents",D),this.set("data.continuations",[]))};
_.q.computeUseHeightHack=function(D){return D&&!_.r("kevlar_disable_height_hack")};
_.q.computeTopSpacingZero=function(D){return D};
_.q.continuationShowButtonChanged=function(){var D=_.Kg(this.hostElement).querySelector("ytd-continuation-item-renderer");D&&(D.showButton=this.continuationShowButton)};
_.q.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("data-changed",this.data))};
_.ql.Object.defineProperties(kl.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.r("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.r("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return!!((D=this.data)==null?0:(t=D.contents)==null?0:(H=t[0])==null?0:H.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e,V,b,a;return!!((D=this.data)==null?0:(t=D.contents)==null?0:(H=t[0])==null?0:(e=H.shelfRenderer)==null?0:(V=e.content)==null?0:(b=V.gridRenderer)==null?0:(a=b.targetId)==null?0:a.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return!!((D=this.data)==null?0:(t=D.contents)==null?0:(H=t[0])==null?0:H.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return!!((D=this.data)==null?0:(t=D.contents)==null?0:(H=t[0])==null?0:H.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.sa("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.r("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.r("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
kl.prototype.dataChangedForBinding=kl.prototype.dataChangedForBinding;kl.prototype.continuationShowButtonChanged=kl.prototype.continuationShowButtonChanged;kl.prototype.onYtDismissibleItemDismissedChange=kl.prototype.onYtDismissibleItemDismissedChange;kl.prototype.observeDataContentsLength=kl.prototype.observeDataContentsLength;kl.prototype.dataChanged=kl.prototype.dataChanged;kl.prototype.onServiceRequestCompleted=kl.prototype.onServiceRequestCompleted;kl.prototype.onLoadReloadContinuation=kl.prototype.onLoadReloadContinuation;
kl.prototype.onRetrieveLocation=kl.prototype.onRetrieveLocation;kl.prototype.commentsHidePanelButtonChanged=kl.prototype.commentsHidePanelButtonChanged;kl.prototype.dispatchChipBarIsSticky=kl.prototype.dispatchChipBarIsSticky;kl.prototype.updateLockupContainerTypes=kl.prototype.updateLockupContainerTypes;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],kl.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],kl.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],kl.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.SL.YtLazyListBehavior),_.x("design:type",Object)],kl.prototype,"ytLazyListBehavior",void 0);_.d([_.C(_.cz.YtNextContinuationBehavior),_.x("design:type",Object)],kl.prototype,"ytNextContinuationBehavior",void 0);
_.d([_.C(_.T_),_.x("design:type",Object)],kl.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],kl.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],kl.prototype,"ytdReduxBehavior",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kl.prototype,"darkerPanels",void 0);_.d([_.M(),_.x("design:type",Object)],kl.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Boolean)],kl.prototype,"engagementPanel",void 0);_.d([_.M(),_.x("design:type",Object)],kl.prototype,"commentsHidePanelButton",void 0);_.d([_.M(),_.x("design:type",Object)],kl.prototype,"isWatchGrid",void 0);_.d([_.M(),_.x("design:type",Object)],kl.prototype,"continuationShowButton",void 0);_.d([_.M({computed:"computeIsContinuationCommentSection(data)"}),_.x("design:type",Boolean)],kl.prototype,"continuationIsCommentsSection",void 0);
_.d([_.M({value:!0}),_.x("design:type",Boolean)],kl.prototype,"autoFill",void 0);_.d([_.M(),_.x("design:type",Boolean)],kl.prototype,"continuationDisablePrescanVisibility",void 0);_.d([_.M(),_.x("design:type",Boolean)],kl.prototype,"isReloading",void 0);_.d([_.M(),_.x("design:type",Object)],kl.prototype,"isSearch",void 0);_.d([_.M(),_.x("design:type",Object)],kl.prototype,"isConstrainedList",void 0);_.d([_.M(),_.x("design:type",Object)],kl.prototype,"isWatch",void 0);
_.d([_.M(),_.x("design:type",Object)],kl.prototype,"eligibleToSwitchToGrid",void 0);_.d([_.M(),_.x("design:type",Object)],kl.prototype,"useBigThumbs",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kl.prototype,"notSticky",void 0);_.d([_.M({selector:_.pb}),_.x("design:type",Object)],kl.prototype,"isGridViewEnabled",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.x("design:type",Object)],kl.prototype,"epRestyle",void 0);_.d([_.m("isWatch"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kl.prototype,"hideShortsShelfHeader",null);_.d([_.m("isSearch","isWatch"),_.x("design:type",String),_.x("design:paramtypes",[])],kl.prototype,"thumbnailWidth",null);
_.d([_.m("isSearch","containerWidth"),_.x("design:type",Object),_.x("design:paramtypes",[])],kl.prototype,"thumbnailTargetWidth",null);_.d([_.m("isSearch","isWatch"),_.x("design:type",String),_.x("design:paramtypes",[])],kl.prototype,"sizing",null);_.d([_.m("isWatch","isGridViewEnabled","useBigThumbs","data"),_.M({reflectToAttribute:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],kl.prototype,"lockupContainerType",null);
_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kl.prototype,"hasHeader",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kl.prototype,"expFixPlaylistHeader",null);_.d([_.Os("lockupContainerType","data"),_.x("design:type",Function),_.x("design:paramtypes",[Number]),_.x("design:returntype")],kl.prototype,"updateLockupContainerTypes",null);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],kl.prototype,"pageSubtype",void 0);_.d([_.M({computed:"computeContainerWidth()"}),_.x("design:type",Number)],kl.prototype,"containerWidth",void 0);_.d([_.M(),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kl.prototype,"isPlaylist",null);_.d([_.M(),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kl.prototype,"isClipList",null);_.d([_.M(),_.x("design:type",Object)],kl.prototype,"isCarouselInFeed",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kl.prototype,"isPlaylistVideoContainer",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kl.prototype,"isSearchFrictionPage",null);_.d([_.M({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.x("design:type",Boolean)],kl.prototype,"useHeightHack",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.x("design:type",Object)],kl.prototype,"topSpacingZero",void 0);_.d([_.M({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.x("design:type",Boolean)],kl.prototype,"showButton",void 0);_.d([_.M(),_.x("design:type",Boolean)],kl.prototype,"firstCommentsLoaded",void 0);_.d([_.M(),_.x("design:type",Object)],kl.prototype,"continuationIsInitialLoad",void 0);
_.d([_.M({reflectToAttribute:!0,readOnly:!0}),_.x("design:type",Boolean)],kl.prototype,"itemDismissed",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.x("design:type",String)],kl.prototype,"sectionIdentifier",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.x("design:type",String)],kl.prototype,"fitContainer",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.x("design:type",Boolean)],kl.prototype,"hasDestinationShelfRenderer",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.x("design:type",Boolean)],kl.prototype,"staticCommentsHeader",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kl.prototype,"enableSqueezebackPanels",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kl.prototype,"enableAnchoredPanel",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.x("design:type",Boolean)],kl.prototype,"hasSectionGroupViewModel",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.x("design:type",Boolean)],kl.prototype,"hasQrCodeRenderer",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.x("design:type",Boolean)],kl.prototype,"suppressDisclaimerSeparator",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.x("design:type",String)],kl.prototype,"headerStyle",void 0);_.d([_.m("isSearch"),_.x("design:type",Object),_.x("design:paramtypes",[])],kl.prototype,"lockupExperiments",null);
_.d([_.m("isSearch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],kl.prototype,"typographyBump",null);_.d([_.o5("#header"),_.x("design:type",HTMLElement)],kl.prototype,"header",void 0);_.d([_.Os("notSticky"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kl.prototype,"dispatchChipBarIsSticky",null);
_.d([_.Os("commentsHidePanelButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kl.prototype,"commentsHidePanelButtonChanged",null);_.d([_.rx("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],kl.prototype,"onRetrieveLocation",null);
_.d([_.rx("yt-load-reload-continuation"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Function]),_.x("design:returntype")],kl.prototype,"onLoadReloadContinuation",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kl.prototype,"onServiceRequestCompleted",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kl.prototype,"dataChanged",null);
_.d([_.mx("data.contents.length"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kl.prototype,"observeDataContentsLength",null);_.d([_.rx("yt-dismissible-item-dismissed"),_.rx("yt-dismissible-item-undismissed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],kl.prototype,"onYtDismissibleItemDismissedChange",null);
_.d([_.Os("continuationShowButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kl.prototype,"continuationShowButtonChanged",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kl.prototype,"dataChangedForBinding",null);_.d([_.Y({is:"ytd-item-section-renderer",disableElementRegistration:!0})],kl);
_.p(kl,"ytd-item-section-renderer",function(){if(Pxn!==void 0)return Pxn;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Pxn=D},{mode:1});var Odf;var VqR=_.H7(_.OT("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var UeV={},eZK=(UeV[0]={title:_.wO(_.OT("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.wO(_.OT("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.FK("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},UeV[1]={title:_.wO(_.OT("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.FK("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},UeV);_.AB("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var T$=function(){var D=_.X.apply(this,arguments)||this;D.allVideosCount=0;D.allPlaylistCount=0;D.isOnline=!1;D.shouldRenderDownloadsBanner=!1;D.shouldRenderDownloadsBannerUpsell=!1;D.hasOptedIntoSmartDownloads=!1;D.areAllSmartDownloadsDeleted=!1;D.smartDownloadsCompleted=!1;return D};
_.P(T$,_.X);T$.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
T$.prototype.attached=function(){this.downloadsToRenderChanged()};
T$.prototype.detached=function(){this.set("renderableData",{})};
T$.prototype.downloadsToRenderChanged=function(){var D=_.b_().getState().entities,t=_.AV(D),H=_.r("kevlar_playlist_dl_page_killswitch")?hWV(D):_.gO(D),e=_.bpR(D),V=_.wMD(D),b=_.m1(t);D=_.JV(D);this.set("renderableData",qcV(H,t,e,V,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,b,D))};
T$.prototype.downloadsToRenderChanged=T$.prototype.downloadsToRenderChanged;_.d([_.C(_.sx),_.x("design:type",Object)],T$.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],T$.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],T$.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],T$.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],T$.prototype,"renderableData",void 0);_.d([_.M({selector:_.UCK}),_.x("design:type",Object)],T$.prototype,"allVideosCount",void 0);_.d([_.M({selector:IoV}),_.x("design:type",Object)],T$.prototype,"allPlaylistCount",void 0);_.d([_.M({selector:_.dO}),_.x("design:type",Object)],T$.prototype,"isOnline",void 0);_.d([_.M({selector:_.SK$}),_.x("design:type",Object)],T$.prototype,"shouldRenderDownloadsBanner",void 0);
_.d([_.M({selector:_.AU3}),_.x("design:type",Object)],T$.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.d([_.M({selector:_.XMT}),_.x("design:type",Object)],T$.prototype,"hasOptedIntoSmartDownloads",void 0);_.d([_.M({selector:_.fwA}),_.x("design:type",Object)],T$.prototype,"areAllSmartDownloadsDeleted",void 0);_.d([_.M({selector:LOV}),_.x("design:type",Object)],T$.prototype,"smartDownloadsCompleted",void 0);
_.d([_.mx("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],T$.prototype,"downloadsToRenderChanged",null);_.d([_.Y({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],T$);
_.p(T$,"ytd-offline-item-section-renderer",function(){if(Odf!==void 0)return Odf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Odf=D},
{mode:1});var otQ;var PBn;var cD=function(){return _.X.apply(this,arguments)||this};
_.P(cD,_.X);
cD.prototype.onDataChanged=function(){if(this.JSC$16712_lastData){var D=this.getFilterClass(this.JSC$16712_lastData.status);D&&this.hostElement.classList.remove(D)}var t;(D=this.getFilterClass((t=this.data)==null?void 0:t.status))&&this.hostElement.classList.add(D);D==="selected"?_.Kg(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Kg(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");D==="disabled"?_.Kg(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Kg(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16712_lastData=this.data};
cD.prototype.getFilterClass=function(D){switch(D){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
cD.prototype.onDataChanged=cD.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],cD.prototype,"data",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cD.prototype,"onDataChanged",null);_.d([_.Y({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],cD);
_.p(cD,"ytd-search-filter-renderer",function(){if(PBn!==void 0)return PBn;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return PBn=D},{mode:_.Kz("kevlar_poly_si_batch_j075")?1:2});var jF=function(){return _.X.apply(this,arguments)||this};
_.P(jF,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],jF.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],jF.prototype,"data",void 0);_.d([_.Y({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],jF);
_.p(jF,"ytd-search-filter-group-renderer",function(){if(otQ!==void 0)return otQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return otQ=D},{mode:_.Kz("kevlar_poly_si_batch_j075")?1:2});var ntv;var $l=function(){return _.X.apply(this,arguments)||this};
_.P($l,_.X);$l.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.ML());this.isCollapsed=!this.isCollapsed};
$l.prototype.navigateToAboutTheseResultsPage=function(){var D=_.lM("https://www.youtube.com/howyoutubeworks/product-features/search/");D?_.D7(window,D,"_blank"):_.vn(Error("Zh"))};
$l.prototype.dataChanged=function(){this.isCollapsed=!0};
$l.prototype.computeShowBottomBorder=function(){var D,t,H;return!!((D=this.data)==null?0:(t=D.button)==null?0:t.toggleButtonRenderer)||!((H=this.data)==null||!H.aboutTheseResultsButton)};
$l.prototype.dataChanged=$l.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$l.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.x("design:type",Boolean)],$l.prototype,"showBottomBorder",void 0);_.d([_.M(),_.x("design:type",Boolean)],$l.prototype,"renderCollapsibleMenu",void 0);
_.d([_.M(),_.x("design:type",Boolean)],$l.prototype,"isCollapsed",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$l.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],$l);
_.p($l,"ytd-search-sub-menu-renderer",function(){if(ntv!==void 0)return ntv;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ntv=D},{mode:1});var CBn;var mef=new _.kI("SECTION_LIST_RENDERER_TOKEN");var MOw;var ip=function(){return _.X.apply(this,arguments)||this};
_.P(ip,_.X);ip.prototype.computeStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ip.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],ip.prototype,"headerStyle",void 0);_.d([_.Y({is:"ytd-text-header-renderer",disableElementRegistration:!0})],ip);
_.p(ip,"ytd-text-header-renderer",function(){if(MOw!==void 0)return MOw;var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return MOw=D},{mode:1});var SZm;var r2=function(){return _.X.apply(this,arguments)||this};
_.P(r2,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],r2.prototype,"data",void 0);_.d([_.Y({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],r2);
_.p(r2,"ytd-minor-moment-header-renderer",function(){if(SZm!==void 0)return SZm;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return SZm=D},{mode:1});var XGf;var OJ=function(){return _.X.apply(this,arguments)||this};
_.P(OJ,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],OJ.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],OJ.prototype,"data",void 0);_.d([_.Y({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],OJ);
_.p(OJ,"ytd-minor-moment-setting-alert-renderer",function(){if(XGf!==void 0)return XGf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return XGf=D},{mode:1});var fzB;var Ls6;var UJ=function(){var D=_.X.apply(this,arguments)||this;D.booleanSettingById=!1;D.smartDownloadsEnabledVE=_.Nx(128287);D.smartDownloadsDisabledVE=_.Nx(128286);D.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return D};
_.P(UJ,_.X);_.q=UJ.prototype;_.q.attachSmartDownloadsSettingVes=function(){var D;this.activeVeForLogging||((D=this.data)==null?void 0:D.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.A1(_.Pc(),this.smartDownloadsEnabledVE),_.A1(_.Pc(),this.smartDownloadsDisabledVE))};
_.q.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Gf(this.hostElement,"yt-settings-switch-ready")};
_.q.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.q.onSwitchChange=function(D){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(D=_.qy(D).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.r("kevlar_settings_switch_resolve_command_killswitch")?_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(D)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.q.handleUpdateSettingsSwitch=function(D){(D=_.O(D,zf3))&&this.data&&this.data.id===D.id&&this.set("data.enabled",!!D.enabled)};
_.q.onToggleSettingsSwitch=function(D,t){this.data&&this.data.id===D&&this.set("data.enabled",t!=null?t:!this.data.enabled)};
_.q.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Uz.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.q.maybeLogSmartDownloadsSettingVisibility=function(){var D=_.v3(),t;D&&((t=this.data)==null?void 0:t.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.zf(D,[this.smartDownloadsEnabledVE]),_.D8(D,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.zf(D,[this.smartDownloadsDisabledVE]),_.D8(D,[this.smartDownloadsEnabledVE])))};
_.q.maybeLogSmartDownloadsSettingClick=function(){var D;((D=this.data)==null?void 0:D.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.J1(_.Pc(),this.activeVeForLogging)};
_.q.updateDataEnabledFromBinding=function(D){this.set("data.enabled",D.detail.value)};
_.ql.Object.defineProperties(UJ.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var D=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!D&&(D=this.ytRendererBehavior.getSimpleString(this.data.title));return D}}});
UJ.prototype.dataChanged=UJ.prototype.dataChanged;_.d([_.C(_.sx),_.x("design:type",Object)],UJ.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],UJ.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],UJ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],UJ.prototype,"ytComponentBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],UJ.prototype,"data",void 0);_.d([_.M({selector:function(D,t){if(Object.keys(D==null?void 0:D.entities).length)switch(t){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return GiR(D.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.x("design:type",Object)],UJ.prototype,"booleanSettingById",void 0);_.d([_.M(),_.x("design:type",YR)],UJ.prototype,"activeVeForLogging",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],UJ.prototype,"toggleAriaLabel",null);_.d([_.mx("data"),_.mx("booleanSettingById"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UJ.prototype,"dataChanged",null);
_.d([_.Y({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],UJ);
_.p(UJ,"ytd-settings-switch-renderer",function(){if(Ls6!==void 0)return Ls6;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Ls6=D},{mode:1});var o2=function(){return _.X.apply(this,arguments)||this};
_.P(o2,_.X);o2.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}}}}};
_.ql.Object.defineProperties(o2.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var D=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(D+=" remove-left-margin");this.data.extraBottomSpace&&(D+=" extra-bottom-space");return D}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],o2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],o2.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],o2.prototype,"contentsClassName",null);_.d([_.Y({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],o2);
_.p(o2,"ytd-minor-moment-setting-section-renderer",function(){if(fzB!==void 0)return fzB;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return fzB=D},{mode:1});var Awf;var PD=function(){return _.X.apply(this,arguments)||this};
_.P(PD,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],PD.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],PD.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],PD.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],PD);
_.p(PD,"ytd-empty-product-details-renderer",function(){if(Awf!==void 0)return Awf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Awf=D},{mode:1});var gtV;var Jww;var nk=function(){var D=_.X.apply(this,arguments)||this;D.expanded=!0;return D};
_.P(nk,_.X);nk.prototype.getBadgeRowClass=function(D,t,H){for(var e=_.F(this.hostElement.querySelectorAll("yt-img-shadow")),V=e.next();!V.done;V=e.next())V.value.onShow();D=D.selected;return H?D!==-1?D===t?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(D!==void 0?D:0)===t?"badge-line":"badge-hidden"};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],nk.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],nk.prototype,"expanded",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],nk);
_.p(nk,"ytd-sponsorships-loyalty-badges-renderer",function(){if(Jww!==void 0)return Jww;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Jww=D},{mode:1});var YZf;var Ck=function(){var D=_.X.apply(this,arguments)||this;D.expanded=!0;return D};
_.P(Ck,_.X);Ck.prototype.getContainerClasses=function(D,t){D=D?"expanded":"collapsed";t&&(D+=" item");return D};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ck.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Ck.prototype,"expanded",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Ck);
_.p(Ck,"ytd-sponsorships-perk-renderer",function(){if(YZf!==void 0)return YZf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return YZf=D},{mode:1});var lz4;var m4=function(){var D=_.X.apply(this,arguments)||this;D.expanded=!0;return D};
_.P(m4,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],m4.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],m4.prototype,"expanded",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],m4);
_.p(m4,"ytd-sponsorships-perks-renderer",function(){if(lz4!==void 0)return lz4;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return lz4=D},{mode:1});var Mj=function(){var D=_.X.apply(this,arguments)||this;D.isCollapsed=!1;return D};
_.P(Mj,_.X);Mj.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Mj.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Mj.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var D;this.expandCollapseButton=_.O((D=this.data)==null?void 0:D.expandButton,_.aj)}else{var t;this.expandCollapseButton=_.O((t=this.data)==null?void 0:t.collapseButton,_.aj)}};
Mj.prototype.updateExpandCollapseButton=Mj.prototype.updateExpandCollapseButton;Mj.prototype.onDataChanged=Mj.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Mj.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Mj.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Mj.prototype,"isCollapsed",void 0);_.d([_.M(),_.x("design:type",Object)],Mj.prototype,"expandCollapseButton",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mj.prototype,"onDataChanged",null);_.d([_.mx("data","isCollapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mj.prototype,"updateExpandCollapseButton",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Mj);
_.p(Mj,"ytd-sponsorships-expandable-perks-renderer",function(){if(gtV!==void 0)return gtV;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return gtV=D},{mode:1});var vtB;var SF=function(){return _.X.apply(this,arguments)||this};
_.P(SF,_.X);SF.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],SF.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],SF.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],SF.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],SF);
_.p(SF,"ytd-sponsorships-actionable-message-renderer",function(){if(vtB!==void 0)return vtB;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return vtB=D},{mode:1});var pGf;var XN=function(){return _.X.apply(this,arguments)||this};
_.P(XN,_.X);_.q=XN.prototype;_.q.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.q.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
_.q.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.q.computeMessageContainerStyle=function(D){var t=D.expandableItems?" style-clickable":"";return D.messageContainerStyle?D.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+t:"style-unspecified"+t};
_.q.isSinglePerk=function(D){return!!D.messageContainerStyle&&(D.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||D.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.q.onExpandedChanged=function(){var D=this;if(this.expanded)for(var t=_.F(this.hostElement.querySelectorAll("yt-img-shadow")),H=t.next();!H.done;H=t.next())H.value.onShow();_.Vi(this,function(){_.Gf(D.hostElement,"yt-refit")})};
_.q.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
XN.prototype.onDataChanged=XN.prototype.onDataChanged;XN.prototype.onExpandedChanged=XN.prototype.onExpandedChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],XN.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],XN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],XN.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],XN.prototype,"expanded",void 0);
_.d([_.Os("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XN.prototype,"onExpandedChanged",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XN.prototype,"onDataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],XN);
_.p(XN,"ytd-sponsorships-expandable-message-renderer",function(){if(pGf!==void 0)return pGf;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return pGf=D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var dea;var fk=function(){return _.X.apply(this,arguments)||this};
_.P(fk,_.X);fk.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"}}}}};
fk.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.O(this.data.endButton,_.aj).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
fk.prototype.onDataChanged=fk.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],fk.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],fk.prototype,"data",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fk.prototype,"onDataChanged",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],fk);
_.p(fk,"ytd-sponsorships-heading-renderer",function(){if(dea!==void 0)return dea;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return dea=D},{mode:1});var xeo;var Lk=function(){return _.X.apply(this,arguments)||this};
_.P(Lk,_.X);_.d([_.M(),_.x("design:type",Object)],Lk.prototype,"data",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Lk);
_.p(Lk,"ytd-sponsorships-links-renderer",function(){if(xeo!==void 0)return xeo;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return xeo=D},{mode:1});var RQf;var AP=function(){return _.X.apply(this,arguments)||this};
_.P(AP,_.X);_.q=AP.prototype;_.q.onDataChanged=function(){if(this.data&&this.data.expandableItems){var D;(D=_.Kg(this.hostElement).querySelector("tp-yt-paper-button"))==null||D.setAttribute("role","button")}else{var t;(t=_.Kg(this.hostElement).querySelector("tp-yt-paper-button"))==null||t.removeAttribute("role")}};
_.q.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.q.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
_.q.getTileClasses=function(D){return D?"tile expandable-tile":"tile"};
_.q.getButtonDisabled=function(D){return D?void 0:""};
AP.prototype.onDataChanged=AP.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],AP.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],AP.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],AP.prototype,"expanded",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AP.prototype,"onDataChanged",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],AP);
_.p(AP,"ytd-sponsorships-list-tile-renderer",function(){if(RQf!==void 0)return RQf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return RQf=D},{mode:1});var uYa;var Wsn;var g2=function(){return _.X.apply(this,arguments)||this};
_.P(g2,_.X);g2.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],g2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],g2.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],g2);
_.p(g2,"ytd-sponsorships-promotion-renderer",function(){if(Wsn!==void 0)return Wsn;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Wsn=D},{mode:1});var Iz4;var JP=function(){return _.X.apply(this,arguments)||this};
_.P(JP,_.X);JP.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],JP.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],JP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],JP.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],JP);
_.p(JP,"ytd-sponsorships-purchase-option-renderer",function(){if(Iz4!==void 0)return Iz4;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Iz4=D},{mode:1});var QU9;var ywn;var BDV=function(){return _.X.apply(this,arguments)||this};
_.P(BDV,_.X);_.d([_.M(),_.x("design:type",Object)],BDV.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],BDV);
_.p(BDV,"ytd-ypc-offer-promo-renderer",function(){if(ywn!==void 0)return ywn;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ywn=D},{mode:1});var Yl=function(){return _.X.apply(this,arguments)||this};
_.P(Yl,_.X);_.q=Yl.prototype;
_.q.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"}}}}};
_.q.expansionCTA=function(D,t){return D&&(t?D.collapseCallToAction:D.expansionCallToAction)};
_.q.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
_.q.expansionCallToActionTap=function(){var D=this;this.expanded=!this.expanded;_.Vi(this,function(){_.Gf(D.hostElement,"yt-refit")})};
_.q.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var D,t=(D=this.data)==null?void 0:D.onVisible;t&&this.ytComponentBehavior.resolveCommand(t)};
_.q.computeDisplayTitle=function(D){return!(!D||this.titledisplaystatus!=="show")};
_.q.computeDisplaySeparator=function(){return!1};
_.q.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Yl.prototype.onDataChanged=Yl.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Yl.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Yl.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Yl.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Yl.prototype,"data",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],Yl.prototype,"expanded",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Yl.prototype,"purchaseButtonClicked",void 0);_.d([_.M({reflectToAttribute:!0,value:"show"}),_.x("design:type",String)],Yl.prototype,"titledisplaystatus",void 0);_.d([_.M({computed:"computeDisplayTitle(data.title)"}),_.x("design:type",Boolean)],Yl.prototype,"displayTitle",void 0);
_.d([_.M({computed:"computeDisplaySeparator(data)"}),_.x("design:type",Boolean)],Yl.prototype,"displaySeparator",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yl.prototype,"onDataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Yl);
_.p(Yl,"ytd-sponsorships-tier-renderer",function(){if(QU9!==void 0)return QU9;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return QU9=D},{mode:2});var lp=function(){return _.X.apply(this,arguments)||this};
_.P(lp,_.X);
lp.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"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],lp.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],lp.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],lp);
_.p(lp,"ytd-sponsorships-management-renderer",function(){if(uYa!==void 0)return uYa;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return uYa=D},{mode:1});var zQn;var vD=function(){return _.X.apply(this,arguments)||this};
_.P(vD,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],vD.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],vD);
_.p(vD,"ytd-open-in-native-app-view-model",function(){if(zQn!==void 0)return zQn;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return zQn=D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var DZB;var tyv;var Hhm=_.zk(["top-"]),ebo=_.zk(["bottom-"]),Vyf=_.zk(["left-"]),bhf=_.zk(["right-"]),ql6={},FBf=function(D,t,H){D.removeAttribute("top-"+H);D.removeAttribute("bottom-"+H);D.removeAttribute("left-"+H);D.removeAttribute("right-"+H);t&&(t.top&&_.ax([_.Zi(Hhm)],D,"top-"+H,t.top),t.bottom&&_.ax([_.Zi(ebo)],D,"bottom-"+H,t.bottom),t.left&&_.ax([_.Zi(Vyf)],D,"left-"+H,t.left),t.right&&_.ax([_.Zi(bhf)],D,"right-"+H,t.right))};
ql6.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(D){var t,H=_.Kg((t=this.hostElement)!=null?t:this),e;t=this.cardItemBoxBehaviorMarginTargetId&&H?H.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(e=this.hostElement)!=null?e:this;FBf(t,D,"margin")},
cardItemContainerPaddingChanged_:function(D){var t,H=_.Kg((t=this.hostElement)!=null?t:this),e;t=this.cardItemBoxBehaviorPaddingTargetId&&H?H.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(e=this.hostElement)!=null?e:this;FBf(t,D,"padding")}}];var pk={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 a$w;var w04;var d2=function(){return _.X.apply(this,arguments)||this};
_.P(d2,_.X);d2.prototype.textColorChanged_=function(){this.hostElement.style.color=pk[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
d2.prototype.textColorChanged_=d2.prototype.textColorChanged_;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],d2.prototype,"ytRendererBehavior",void 0);_.d([_.C(ql6.YtCardItemBoxBehavior),_.x("design:type",Object)],d2.prototype,"ytCardItemBoxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],d2.prototype,"data",void 0);_.d([_.Os("data.textColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],d2.prototype,"textColorChanged_",null);
_.d([_.xL({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],d2);
_.p(d2,"yt-card-item-text-renderer",function(){if(w04===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;a$w===void 0&&(a$w=document.createElement("template"));var e=a$w;H.call(t,e.content.cloneNode(!0),D.content.firstChild);w04=D}D=w04;return D},{mode:2});var ZhQ;var sL4;var xl=function(){return _.X.apply(this,arguments)||this};
_.P(xl,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],xl.prototype,"data",void 0);_.d([_.xL({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],xl);
_.p(xl,"yt-card-item-badge-renderer",function(){if(sL4===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;ZhQ===void 0&&(ZhQ=document.createElement("template"));var e=ZhQ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);sL4=D}D=sL4;return D},{mode:2});var hbV;var GQ4;var R2=function(){return _.X.apply(this,arguments)||this};
_.P(R2,_.X);R2.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],R2.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],R2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],R2.prototype,"data",void 0);_.d([_.xL({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],R2);
_.p(R2,"yt-card-item-text-collection-renderer",function(){if(GQ4===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;hbV===void 0&&(hbV=document.createElement("template"));var e=hbV;H.call(t,e.content.cloneNode(!0),D.content.firstChild);GQ4=D}D=GQ4;return D},{mode:2});var E2f;var KBn;var up=function(){return _.X.apply(this,arguments)||this};
_.P(up,_.X);up.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]]"}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],up.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Number)],up.prototype,"iconSize",void 0);_.d([_.xL({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],up);
_.p(up,"yt-card-item-text-with-button-renderer",function(){if(KBn===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;E2f===void 0&&(E2f=document.createElement("template"));var e=E2f;H.call(t,e.content.cloneNode(!0),D.content.firstChild);KBn=D}D=KBn;return D},{mode:2});var WD=function(){return _.X.apply(this,arguments)||this};
_.P(WD,_.X);WD.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"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],WD.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],WD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],WD.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],WD);
_.p(WD,"ytd-commerce-cart-summary-line-item-renderer",function(){if(tyv!==void 0)return tyv;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return tyv=D},{mode:1});_.AB("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var I2=function(){var D=_.X.apply(this,arguments)||this;D.hidden=!1;return D};
_.P(I2,_.X);_.q=I2.prototype;_.q.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"}}}}};
_.q.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.q.updateSummary=function(){var D=this.commerceCartCheckoutButtonEntity,t;if(((t=this.data)==null?0:t.cartButton)&&D.checkoutSummaryText){var H,e=XJ((H=this.data)==null?void 0:H.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+e+".cardItemTextRenderer.text",fP(D.checkoutSummaryText));if(D.checkoutDetailText){var V;H=XJ((V=this.data)==null?void 0:V.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+H+".cardItemTextRenderer.text",fP(D.checkoutDetailText))}if(D.checkoutAdditionalMetadataText){var b;
V=XJ((b=this.data)==null?void 0:b.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+V+".cardItemTextRenderer.text",fP(D.checkoutAdditionalMetadataText))}}else D.estimatedTotalPrice&&(b=XJ((e=this.data)==null?void 0:e.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+b+".cardItemTextRenderer.text",fP(D.estimatedTotalPrice)))};
_.q.updateIsHidden=function(){var D,t=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.isHidden;t!==void 0&&(this.hidden=t)};
_.q.updateCheckoutButton=function(){var D,t=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.isDisabled;t!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",t);var H;D=(H=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:H.innertubeCommand;D!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",D);var e;H=(e=this.commerceCartCheckoutButtonEntity)==null?void 0:e.checkoutButtonText;H!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:H})};
I2.prototype.entityChanged=I2.prototype.entityChanged;_.d([_.C(_.sx),_.x("design:type",Object)],I2.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],I2.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],I2.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],I2.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],I2.prototype,"fullWidth",void 0);_.d([_.M(),_.x("design:type",Object)],I2.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],I2.prototype,"compact",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],I2.prototype,"hidden",void 0);
_.d([_.M({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:O5K}),_.x("design:type",Object)],I2.prototype,"commerceCartCheckoutButtonEntity",void 0);_.d([_.Os("commerceCartCheckoutButtonEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],I2.prototype,"entityChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],I2);
_.p(I2,"ytd-commerce-cart-checkout-button-renderer",function(){if(DZB!==void 0)return DZB;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return DZB=D},{mode:2});var Nzo;_.kQm={};
_.kQm.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",_.iK(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.iK(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(D){!this.tappableItemBehaviorTapEnabled||D.keyCode!==13&&D.keyCode!==32||D.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var D=this.data.onTap;D.ypcGetCartEndpoint?(_.NJ(this.hostElement,[D]),this.tappableItemBehaviorTapEnabled=!1):D.ypcOffersEndpoint?_.NJ(this.hostElement,[D]):_.k0(this.hostElement,[D],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(D){this.tappableItemBehaviorTapEnabled=!!D},
tappableItemBehaviorOnTapEnabledChanged_:function(){var D=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(D.setAttribute("tabIndex",0),D.setAttribute("role","button")):(D.removeAttribute("tabIndex"),D.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(D){D.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var Tzo;var cOm;var QJ=function(){return _.X.apply(this,arguments)||this};
_.P(QJ,_.X);QJ.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.gm("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.gm("sharingToggleButtonAndDefaultButton")}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],QJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],QJ.prototype,"data",void 0);_.d([_.xL({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],QJ);
_.p(QJ,"yt-card-item-actions-renderer",function(){if(cOm===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Tzo===void 0&&(Tzo=document.createElement("template"));var e=Tzo;H.call(t,e.content.cloneNode(!0),D.content.firstChild);cOm=D}D=cOm;return D},{mode:2});var jLV;var $Zn;var ihB;var rO6;var Oho;var UZB;var yJ=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return D};
_.P(yJ,_.X);yJ.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
yJ.prototype.handleDarkModeToggledAction_=function(D){this.isDarkTheme_=D};
yJ.prototype.computeThemeImage_=function(D,t){if(!D||!D.imageLight)return!1;this.isCircular_=D.isCircular;D.imageWidth&&(this.hostElement.style.width=D.imageWidth+"px");D.imageHeight&&(this.hostElement.style.height=D.imageHeight+"px");D.borderWidth&&(this.image.style.borderWidth=D.borderWidth+"px",this.image.style.borderStyle="solid");D.borderColor&&(this.image.style.borderColor=_.Qk(D.borderColor));return t&&D.imageDark?D.imageDark:D.imageLight};
yJ.prototype.computeThemeIcon_=function(D){var t,H;if(!(D==null?0:(t=D.themedIcon)==null?0:(H=t.icon)==null?0:H.iconType))return!1;this.icon.style.color=pk[D.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(D.imageWidth||18)+"px";this.icon.style.height=(D.imageHeight||18)+"px";return _.cc(D.themedIcon.icon.iconType)};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],yJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(ql6.YtCardItemBoxBehavior),_.x("design:type",Object)],yJ.prototype,"ytCardItemBoxBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],yJ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],yJ.prototype,"data",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],yJ.prototype,"fit",void 0);_.d([_.M(),_.x("design:type",Boolean)],yJ.prototype,"isDarkTheme_",void 0);_.d([_.M({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.x("design:type",Object)],yJ.prototype,"themeImage_",void 0);_.d([_.M({computed:"computeThemeIcon_(data)"}),_.x("design:type",Object)],yJ.prototype,"themeIcon_",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Object)],yJ.prototype,"isCircular_",void 0);
_.d([_.o5("#image"),_.x("design:type",Object)],yJ.prototype,"image",void 0);_.d([_.o5("#icon"),_.x("design:type",Object)],yJ.prototype,"icon",void 0);_.d([_.xL({is:"yt-themed-image-renderer",disableElementRegistration:!0})],yJ);
_.p(yJ,"yt-themed-image-renderer",function(){if(UZB===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Oho===void 0&&(Oho=document.createElement("template"));var e=Oho;H.call(t,e.content.cloneNode(!0),D.content.firstChild);UZB=D}D=UZB;return D},{mode:2});var BD=function(){return _.X.apply(this,arguments)||this};
_.P(BD,_.X);BD.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"}}}}};
BD.prototype.computeImagePlacement_=function(D){return D||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],BD.prototype,"data",void 0);_.d([_.M({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.x("design:type",String)],BD.prototype,"imagePlacement",void 0);
_.d([_.xL({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],BD);
_.p(BD,"yt-card-item-text-with-image-renderer",function(){if(rO6===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;ihB===void 0&&(ihB=document.createElement("template"));var e=ihB;H.call(t,e.content.cloneNode(!0),D.content.firstChild);rO6=D}D=rO6;return D},{mode:2});var z$=function(){return _.X.apply(this,arguments)||this};
_.P(z$,_.X);z$.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"}}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],z$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],z$.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],z$.prototype,"data",void 0);_.d([_.xL({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],z$);
_.p(z$,"yt-card-item-error-renderer",function(){if($Zn===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;jLV===void 0&&(jLV=document.createElement("template"));var e=jLV;H.call(t,e.content.cloneNode(!0),D.content.firstChild);$Zn=D}D=$Zn;return D},{mode:2});var o2V;var PCv;_.AB("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Db=function(){return _.X.apply(this,arguments)||this};
_.P(Db,_.X);_.q=Db.prototype;
_.q.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"}}}}};
_.q.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.q.backgroundColorChanged_=function(){var D,t=(D=this.data)==null?void 0:D.backgroundColor;D=pk[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Kg(this.hostElement).querySelector("#main-content").style.backgroundColor=D};
_.q.headerPromoBackgroundColorChanged_=function(){var D,t=(D=this.data)==null?void 0:D.headerPromoBackgroundColor;D=pk[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Kg(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=D};
_.q.errorRendererVisibilityChanged_=function(){var D=this.isExpanded_,t;this.isErrorRendererVisible_=!((t=this.data)==null||!t.errorRenderer)&&!D};
_.q.onYtToggleButton_=function(D,t){this.isExpanded_=t.toggled};
Db.prototype.onYtToggleButton_=Db.prototype.onYtToggleButton_;Db.prototype.errorRendererVisibilityChanged_=Db.prototype.errorRendererVisibilityChanged_;Db.prototype.headerPromoBackgroundColorChanged_=Db.prototype.headerPromoBackgroundColorChanged_;Db.prototype.backgroundColorChanged_=Db.prototype.backgroundColorChanged_;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Db.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Db.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(ql6.YtCardItemBoxBehavior),_.x("design:type",Object)],Db.prototype,"ytCardItemBoxBehavior",void 0);_.d([_.C(_.kQm.YtTappableItemBehavior),_.x("design:type",Object)],Db.prototype,"ytTappableItemBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Db.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Db.prototype,"isExpanded_",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],Db.prototype,"isErrorRendererVisible_",void 0);_.d([_.Os("data.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Db.prototype,"backgroundColorChanged_",null);_.d([_.Os("data.headerPromoBackgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Db.prototype,"headerPromoBackgroundColorChanged_",null);
_.d([_.Os("data.errorRenderer","isExpanded_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Db.prototype,"errorRendererVisibilityChanged_",null);_.d([_.rx("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Object]),_.x("design:returntype")],Db.prototype,"onYtToggleButton_",null);_.d([_.xL({is:"yt-card-item-renderer",disableElementRegistration:!0})],Db);
_.p(Db,"yt-card-item-renderer",function(){if(PCv===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;o2V===void 0&&(o2V=document.createElement("template"));var e=o2V;H.call(t,e.content.cloneNode(!0),D.content.firstChild);PCv=D}D=PCv;return D},{mode:2});_.AB("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var ta=function(){var D=_.X.apply(this,arguments)||this;D.hidden=!1;return D};
_.P(ta,_.X);_.q=ta.prototype;_.q.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.q.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.q.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var D,t=(D=this.commerceCartHeaderEntity)==null?void 0:D.isHidden;t!==void 0&&(this.hidden=t)}};
_.q.updateTitle=function(){var D=this.commerceCartHeaderEntity.isDisabled,t,H,e=(H=_.O((t=this.data)==null?void 0:t.item,pwB))==null?void 0:H.headingRenderer;e&&(t=XJ(e,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+t+".0.cardItemTextRenderer.textColor",D?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.q.updateSummaryText=function(){var D=this.commerceCartHeaderEntity;if(this.compact){var t,H,e=(H=_.O((t=this.data)==null?void 0:t.item,pwB))==null?void 0:H.headingRenderer;e&&(t=XJ(e,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+t+".1.cardItemTextRenderer.text",D.shortHeaderSummaryText?fP(D.shortHeaderSummaryText):D.headerSummaryText?fP(D.headerSummaryText):""))}else{var V;if(t=(V=_.O((e=this.data)==null?void 0:e.item,pwB))==null?void 0:V.additionalInfoRenderer)t=XJ(t,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+t+".text",D.headerSummaryText?fP(D.headerSummaryText):"")}};
_.q.updateCheckoutButton=function(){var D=this.commerceCartHeaderEntity,t,H,e=(H=_.O((t=this.data)==null?void 0:t.item,pwB))==null?void 0:H.additionalInfoRenderer;t=XJ(e,"buttonRenderer");var V;H=(V=this.commerceCartHeaderEntity)==null?void 0:V.isButtonDisabled;var b;V=(b=this.commerceCartHeaderEntity)==null?void 0:b.isButtonHidden;H!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+t+".buttonRenderer.isDisabled",H);V!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
V);var a;D=(a=D.checkoutButtonCommand)==null?void 0:a.innertubeCommand;D!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+t+".buttonRenderer.command",D)};
ta.prototype.entityChanged=ta.prototype.entityChanged;_.d([_.C(_.sx),_.x("design:type",Object)],ta.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ta.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ta.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ta.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],ta.prototype,"compact",void 0);_.d([_.M({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(D,t){return _.jR(D.entities,"commerceCartHeaderEntity",t)}}),
_.x("design:type",Object)],ta.prototype,"commerceCartHeaderEntity",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ta.prototype,"hidden",void 0);_.d([_.Os("commerceCartHeaderEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ta.prototype,"entityChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],ta);
_.p(ta,"ytd-commerce-cart-header-renderer",function(){if(Nzo!==void 0)return Nzo;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Nzo=D},{mode:1});var n2m;var CCn=_.A_(function(D,t){var H;return(H=D.onChangeCallback)==null?void 0:H.call(D,t)},1E3),mZ4=_.l(function(D){var t=D.data;
var H=D.iconMinus;D=D.iconPlus;var e=function(){return!!t().disabled},V=_.F(_.KR(0,void 0,"mKh0af")),b=V.next().value,a=V.next().value;
V=_.$X(function(){if(b()===1){var k,T;(T=(k=t()).onRemoveCommand)==null||T.call(k)}k=b()>t().maxValue?t().maxValue:b()-1;a(k);CCn(t(),k);return!1});
var w=_.$X(function(){if(b()===t().maxValue)return!1;var k=b()+1;a(k);CCn(t(),k);return!1});
_.SG(function(){a(t().value)});
var h={},K={},N={};return _.G("quantity-incrementer-shape",null,_.G("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.G("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return b()===(t().onRemoveCommand?0:1)||e()},
"aria-label":function(){return b()!==1?t().minusLabel:t().minimumReachedLabel},
"on:click":V},_.G(_.fE,{model:{circular:!0}}),_.G("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.G("div",{class:_.jQ("ytSpecQuantityIncrementerShapeIcon",(h.ytSpecQuantityIncrementerShapeIconDisabled=function(){return e()||b()===(t().onRemoveCommand?0:1)},h))},H()))),_.G("div",{class:_.jQ("ytSpecQuantityIncrementerShapeText",(K.ytSpecQuantityIncrementerShapeTextInvalid=function(){return b()>t().maxValue},K.ytSpecQuantityIncrementerShapeTextDisabled=e,K))},b),_.G("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return b()>=t().maxValue||e()},
"aria-label":function(){return b()!==t().maxValue?t().plusLabel:t().maximumReachedLabel},
"on:click":w},_.G(_.fE,{model:{circular:!0}}),_.G("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.G("div",{class:_.jQ("ytSpecQuantityIncrementerShapeIcon",(N.ytSpecQuantityIncrementerShapeIconDisabled=function(){return b()>=t().maxValue||e()},N))},D())))))},"qf");_.hB(_.l(function(D){function t(){H().onRemoveCommand&&_.IQ(H().onRemoveCommand)}
var H=D.data;var e=_.rF(qSD,function(){return H().quantityIncrementerEntityKey});
return _.G("yt-quantity-incrementer-view-model",null,_.G(mZ4,{data:function(){var V=H(),b;var a=e()?!((b=e())==null||!b.disabled):!1;var w;b=e()?(w=e())==null?void 0:w.quantity:H().quantity;return wB8(V,a,t,b)},
iconMinus:function(){return _.G(_.U7,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.G(_.U7,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"rf"),"yt-quantity-incrementer-view-model",{props:{data:_.ij}});var H8=function(){var D=_.X.apply(this,arguments)||this;D.compact=!1;D.hasQuantityIncrementer=!1;return D};
_.P(H8,_.X);H8.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"}}}};
H8.prototype.computeHasQuantityIncrementer=function(){var D;return!!_.O((D=this.data)==null?void 0:D.picker,uh6)};
H8.prototype.onLabelClick=function(){var D;(D=this.dropdownEl)==null||D.open()};
_.d([_.o5("ytd-dropdown-renderer"),_.x("design:type",Object)],H8.prototype,"dropdownEl",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],H8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],H8.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],H8.prototype,"quantityColor",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],H8.prototype,"compact",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.x("design:type",Object)],H8.prototype,"hasQuantityIncrementer",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],H8);
_.p(H8,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(n2m!==void 0)return n2m;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return n2m=D},{mode:1});var Mya;var Sln;var e0=function(){return _.X.apply(this,arguments)||this};
_.P(e0,_.X);e0.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
e0.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
e0.prototype.updateTitle=function(){var D=this.disabledCartItemEntity;D.disableActionName&&this.set("data.title",fP(D.disableActionName))};
e0.prototype.updateButton=function(){var D,t=(D=this.disabledCartItemEntity.undoCommand)==null?void 0:D.innertubeCommand;t!==void 0&&(this.set("data.actionButton.buttonRenderer.command",t),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
e0.prototype.entityChanged=e0.prototype.entityChanged;_.d([_.C(_.sx),_.x("design:type",Object)],e0.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],e0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(D,t){return _.jR(D.entities,"disabledCartItemEntity",t)}}),
_.x("design:type",Object)],e0.prototype,"disabledCartItemEntity",void 0);_.d([_.M(),_.x("design:type",Object)],e0.prototype,"data",void 0);_.d([_.Os("disabledCartItemEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],e0.prototype,"entityChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],e0);
_.p(e0,"ytd-disabled-cart-item-renderer",function(){if(Sln!==void 0)return Sln;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Sln=D},{mode:1});_.AB("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var VS=function(){var D=_.X.apply(this,arguments)||this;D.compact=!1;D.hidden=!1;D.errorHidden=!1;D.noOnTap=!1;return D};
_.P(VS,_.X);_.q=VS.prototype;
_.q.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"}}}};
_.q.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.q.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var D=this.firstButtonElement;D.alignByText=!0;D.iconAlignByText=!0}};
_.q.computeNoOnTap=function(D){return!D};
_.q.updateQuantityColor=function(){if(this.pickerElement){var D,t=(D=this.commerceCartItemEntity)==null?void 0:D.quantityColor;this.pickerElement.quantityColor=t}};
_.q.updateTotalPriceColor=function(){var D,t=(D=this.commerceCartItemEntity)==null?void 0:D.totalPriceColor;if(t){var H;D=_.O((H=this.data)==null?void 0:H.quantityPicker,xD9);if(H=_.O(D==null?void 0:D.price,dD4))H.textColor=t}};
_.q.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var D,t=(D=this.commerceCartItemEntity)==null?void 0:D.isHidden;t!==void 0&&(this.hidden=t)}};
_.q.updateHideErrorMessage=function(){var D,t=(D=this.commerceCartItemEntity)==null?void 0:D.hideErrorMessage;t!==void 0&&(this.errorHidden=t)};
_.q.updateQuantity=function(){var D=this,t,H=(t=this.commerceCartItemEntity)==null?void 0:t.quantity,e;t=(e=this.commerceCartItemEntity)==null?void 0:e.totalPrice;if(H){this.updateTotalPriceColor();this.updateQuantityColor();var V;e=_.O((V=this.data)==null?void 0:V.quantityPicker,xD9);if(V=_.O(e==null?void 0:e.price,dD4))V.text=t?{simpleText:t.content}:void 0;if(t=_.O(e==null?void 0:e.picker,uh6))t.quantity=H;var b;if(V=(b=_.O(e==null?void 0:e.picker,xB6))==null?void 0:b.entries){b=!1;t=void 0;V=
_.F(V);for(e=V.next();!e.done;e=V.next())e=e.value,e.dropdownItemRenderer&&(t||(t=e.dropdownItemRenderer),e.dropdownItemRenderer.isSelected=!1,H===e.dropdownItemRenderer.int32Value&&(b=!0,e.dropdownItemRenderer.isSelected=!0));!b&&t&&(t.isSelected=!0)}_.Vi(this,function(){var a;D.set("data.quantityPicker",_.J$.unsafeClone((a=D.data)==null?void 0:a.quantityPicker))})}};
VS.prototype.onYtRendererstamperFinished=VS.prototype.onYtRendererstamperFinished;VS.prototype.entityChanged=VS.prototype.entityChanged;_.d([_.M(),_.x("design:type",Object)],VS.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],VS.prototype,"compact",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],VS.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],VS.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],VS.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],VS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(D,t){return _.jR(D.entities,"commerceCartItemEntity",t)}}),
_.x("design:type",Object)],VS.prototype,"commerceCartItemEntity",void 0);_.d([_.M(),_.x("design:type",Object)],VS.prototype,"quantityPicker",void 0);_.d([_.M(),_.x("design:type",Object)],VS.prototype,"compactQuantityPicker",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],VS.prototype,"hidden",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],VS.prototype,"errorHidden",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.x("design:type",Object)],VS.prototype,"noOnTap",void 0);_.d([_.o5("ytd-commerce-cart-item-quantity-picker-renderer"),_.x("design:type",Object)],VS.prototype,"pickerElement",void 0);_.d([_.o5("yt-button-renderer"),_.x("design:type",Element)],VS.prototype,"firstButtonElement",void 0);
_.d([_.Os("commerceCartItemEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VS.prototype,"entityChanged",null);_.d([_.rx("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VS.prototype,"onYtRendererstamperFinished",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],VS);
_.p(VS,"ytd-commerce-cart-item-renderer",function(){if(Mya!==void 0)return Mya;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Mya=D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var X0Q;var f$o;var bX=function(){return _.X.apply(this,arguments)||this};
_.P(bX,_.X);bX.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}}}}}};
bX.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
bX.prototype.updateCheckoutLineItems=function(){var D,t=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.checkoutLineItems;t&&(D=t.map(function(H){a:{var e=H.price,V=H.description;switch(H.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":H={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:fP(V),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:fP(e),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:H={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:fP(V),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:fP(e),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 H}),this.set("data.summaryLineItems",D))};
bX.prototype.updateIsHidden=function(){var D,t=(D=this.commerceCartCheckoutButtonEntity)==null?void 0:D.isHidden;t!==void 0&&(this.hostElement.hidden=t)};
bX.prototype.entityChanged=bX.prototype.entityChanged;_.d([_.C(_.sx),_.x("design:type",Object)],bX.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],bX.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],bX.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],bX.prototype,"data",void 0);_.d([_.M({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:O5K}),_.x("design:type",Object)],bX.prototype,"commerceCartCheckoutButtonEntity",void 0);_.d([_.Os("commerceCartCheckoutButtonEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bX.prototype,"entityChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],bX);
_.p(bX,"ytd-commerce-cart-summary-renderer",function(){if(f$o!==void 0)return f$o;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return f$o=D},{mode:1});var LBf={};LBf.InjectBehavior=[pzX.InjectBehavior];var AOn;var g2V;var qs=function(){return _.X.apply(this,arguments)||this};
_.P(qs,_.X);
qs.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:_.gm("menuRenderer")}}};
qs.prototype.onMenuTap=function(D){D.stopPropagation()};
_.ql.Object.defineProperties(qs.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 D,t;return!(((D=this.data)==null||!D.sectionHeading)&&((t=this.data)==null?void 0:t.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var D,t;return!(((D=this.data)==null||!D.image)&&((t=this.data)==null?void 0:t.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var D,t;return!(((D=this.data)==null||!D.menu)&&((t=this.data)==null?void 0:t.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],qs.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.kQm.YtTappableItemBehavior),_.x("design:type",Object)],qs.prototype,"ytTappableItemBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],qs.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("data.accessibilityData"),_.x("design:type",String),_.x("design:paramtypes",[])],qs.prototype,"ariaLabel",null);_.d([_.m("data.sectionHeading","data.layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],qs.prototype,"sectionHeadingVisible",null);_.d([_.m("data.image","data.layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],qs.prototype,"imageVisible",null);
_.d([_.m("data.menu","data.layout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],qs.prototype,"menuVisible",null);_.d([_.xL({is:"yt-activity-item-renderer",disableElementRegistration:!0})],qs);
_.p(qs,"yt-activity-item-renderer",function(){if(g2V===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;AOn===void 0&&(AOn=document.createElement("template"));var e=AOn;H.call(t,e.content.cloneNode(!0),D.content.firstChild);g2V=D}D=g2V;return D},{mode:2});var JOm;var Ylm;var l$f;var v2B;var Ft=function(){return _.X.apply(this,arguments)||this};
_.P(Ft,_.X);
Ft.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"}}}}};
Ft.prototype.backgroundColorChanged_=function(){var D,t=(D=this.data)==null?void 0:D.backgroundColor;this.hostElement.style.backgroundColor=pk[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Ft.prototype.backgroundColorChanged_=Ft.prototype.backgroundColorChanged_;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ft.prototype,"data",void 0);
_.d([_.Os("data.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ft.prototype,"backgroundColorChanged_",null);_.d([_.xL({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],Ft);
_.p(Ft,"yt-offer-item-upsell-renderer",function(){if(v2B===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;l$f===void 0&&(l$f=document.createElement("template"));var e=l$f;H.call(t,e.content.cloneNode(!0),D.content.firstChild);v2B=D}D=v2B;return D},{mode:2});_.AB("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var ar=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};D.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return D};
_.P(ar,_.X);_.q=ar.prototype;
_.q.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:_.gm("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.q.computeContainerStyle_=function(D){return D};
_.q.computeContainerIsHidden_=function(D){return D&&!!D.isHidden};
_.q.computeShowSpinner_=function(D,t){return D&&t==="in-progress"};
_.q.computeShowMoreContentsButton_=function(D,t,H,e,V){return!(!(e&&e.length||V&&V.length&&H)||!D||t)};
_.q.onToggleButton_=function(D){var t=this;D.stopPropagation();this.isExpanded_=D.detail&&D.detail.toggled;var H,e;this.isExpanded_&&!this.data.continuationSection.length&&((H=this.data)==null?0:(e=H.continuation)==null?0:e.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Gf(this.hostElement,"yt-load-next-continuation",function(V){return t.getContinuationUrl_(t.data.continuation.onClickContinuationData,V)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.NJ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.q.onShowMoreContentsButtonClicked_=function(D){var t=this;D.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Gf(this.hostElement,"yt-load-next-continuation",function(H){return t.getContinuationUrl_(t.data.continuations[0].nextContinuationData,H)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.NJ(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.q.getContinuationUrl_=function(D,t){var H=D.continuation;D=D.clickTrackingParams;var e=_.v3();D&&e&&_.tV(e,_.Sa(D));return _.z5(t,{continuation:H})};
_.q.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var D=_.Kg(this.hostElement).querySelector("#continuation-section");D&&(D=D.querySelectorAll("ytmusic-item-section-renderer"))&&D.forEach(function(t){return t.classList.add("memberships-and-purchases")})};
_.q.dataChanged_=function(){var D;this.isExpanded_=!((D=this.data)==null||!D.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.q.updateCardOnClickCommand_=function(D){D=_.O(D,fMf);var t,H;this.data&&((t=this.data)==null?0:t.targetId)&&D&&D.targetId===((H=this.data)==null?void 0:H.targetId)&&D.onClickCommand&&(this.data.onClickCommand=D.onClickCommand,this.isOnClickCommand_=!0)};
_.q.backgroundColorChanged_=function(){var D,t=(D=this.data)==null?void 0:D.backgroundColor;this.hostElement.style.backgroundColor=pk[t||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
ar.prototype.backgroundColorChanged_=ar.prototype.backgroundColorChanged_;ar.prototype.dataChanged_=ar.prototype.dataChanged_;ar.prototype.nextContinuationDataUpdated_=ar.prototype.nextContinuationDataUpdated_;ar.prototype.onToggleButton_=ar.prototype.onToggleButton_;_.d([_.C(_.T_),_.x("design:type",Object)],ar.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],ar.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.cz.YtNextContinuationBehavior),_.x("design:type",Object)],ar.prototype,"ytNextContinuationBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.d([_.C(LBf.InjectBehavior),_.x("design:type",Object)],ar.prototype,"injectBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ar.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],ar.prototype,"compact",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],ar.prototype,"isExpanded_",void 0);_.d([_.M({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.x("design:type",String)],ar.prototype,"containerStyle_",void 0);_.d([_.M({value:"not-started"}),_.x("design:type",String)],ar.prototype,"continuationStatus_",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.x("design:type",Boolean)],ar.prototype,"showSpinner_",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],ar.prototype,"isOnClickCommand_",void 0);_.d([_.M({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.x("design:type",Boolean)],ar.prototype,"showMoreContentsButton_",void 0);
_.d([_.M({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(D,t){return!t||D.entities?null:_.jR(D.entities,"cardItemContainerEntity",t)}}),
_.x("design:type",Object)],ar.prototype,"cardItemContainerEntity_",void 0);_.d([_.rx("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ar.prototype,"onToggleButton_",null);_.d([_.rx("yt-next-continuation-data-updated"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ar.prototype,"nextContinuationDataUpdated_",null);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ar.prototype,"dataChanged_",null);_.d([_.Os("data.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ar.prototype,"backgroundColorChanged_",null);_.d([_.xL({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],ar);
_.p(ar,"yt-card-item-container-renderer",function(){if(Ylm===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;JOm===void 0&&(JOm=document.createElement("template"));var e=JOm;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Ylm=D}D=Ylm;return D},{mode:2});var wy=function(){return _.X.apply(this,arguments)||this};
_.P(wy,_.X);wy.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"}}}};
wy.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
wy.prototype.computeLoadingHidden=function(){var D;return!((D=this.commerceCartPageStateEntity)==null?0:D.cartActionInProgress)};
wy.prototype.updateNotification=function(){var D,t=(D=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:D.summaryText;t&&this.set("data.cartNotification",fP(t))};
wy.prototype.notificationEntityChanged=wy.prototype.notificationEntityChanged;_.d([_.C(_.sx),_.x("design:type",Object)],wy.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],wy.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],wy.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],wy.prototype,"data",void 0);_.d([_.M({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(D,t){return _.jR(D.entities,"commerceCartExpandableNotificationEntity",t)}}),
_.x("design:type",Object)],wy.prototype,"commerceCartExpandableNotificationEntity",void 0);_.d([_.M({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(D,t){return _.jR(D.entities,"commerceCartPageStateEntity",t)}}),
_.x("design:type",Object)],wy.prototype,"commerceCartPageStateEntity",void 0);_.d([_.o5("#spinner"),_.x("design:type",HTMLElement)],wy.prototype,"spinner",void 0);_.d([_.Os("commerceCartExpandableNotificationEntity","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wy.prototype,"notificationEntityChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],wy);
_.p(wy,"ytd-commerce-cart-renderer",function(){if(X0Q!==void 0)return X0Q;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return X0Q=D},{mode:1});var p04;var Zb=function(){var D=_.X.apply(this,arguments)||this;D.bigImage=!1;return D};
_.P(Zb,_.X);_.ql.Object.defineProperties(Zb.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.placeholderImageUrl}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Zb.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Zb.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Zb.prototype,"bigImage",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Zb.prototype,"placeholderImageUrl",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Zb);
_.p(Zb,"ytd-empty-product-shelf-renderer",function(){if(p04!==void 0)return p04;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return p04=D},{mode:1});var dZf;var sV=function(){var D=_.X.apply(this,arguments)||this;D.itemStyle="link-item";D.watchMetadataRefresh=!1;D.skinnyMode=!1;D.metaPanel=!1;D.inStructuredDescription=!1;D.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};D.updateOnResizeDebouncer=null;return D};
_.P(sV,_.X);_.q=sV.prototype;_.q.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.q.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"}}}}};
_.q.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.q.attachVEs=function(D){D.trackingParams&&_.Pc().graftServerVe(D.trackingParams)};
_.q.handleUpdateMerchShelfAction=function(D){var t=this,H=_.O(D.updateMerchandiseShelfAction.merchandiseShelf,_.ZS4);H&&(H.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){t.attachVEs(H);t.data=H},Number(H.renderDelayMs))):(this.attachVEs(H),this.data=H))};
_.q.updateOnResize=function(){if(this.JSC$16880_scrollContainer!==void 0&&this.JSC$16880_scrollContainer.clientWidth!==0&&this.items!==void 0){var D=this.JSC$16880_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-D));this.ytdHorizontalListBehavior.reposition_();var t;switch((t=this.data)==null?void 0:t.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var H,
e;((H=this.data)==null?void 0:(e=H.items)==null?void 0:e.length)===1?this.itemStyle="cta-item":this.itemStyle=D>=740?"large-item":"small-item"}}};
_.q.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.oc(this.updateOnResizeDebouncer,_.Ei.after(100),this.updateOnResize)};
sV.prototype.debouncedUpdateOnResize=sV.prototype.debouncedUpdateOnResize;sV.prototype.dataChanged=sV.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],sV.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],sV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Xn.YtdHorizontalListBehavior),_.x("design:type",Object)],sV.prototype,"ytdHorizontalListBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],sV.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],sV.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],sV.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sV.prototype,"itemStyle",void 0);_.d([_.M({value:6}),_.x("design:type",Number)],sV.prototype,"initialCount",void 0);
_.d([_.M({value:"data.items"}),_.x("design:type",String)],sV.prototype,"itemsPath",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sV.prototype,"watchMetadataRefresh",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sV.prototype,"skinnyMode",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sV.prototype,"metaPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sV.prototype,"inStructuredDescription",void 0);
_.d([_.o5("#items"),_.x("design:type",HTMLDivElement)],sV.prototype,"items",void 0);_.d([_.o5("#scroll-container"),_.x("design:type",HTMLDivElement)],sV.prototype,"JSC$16880_scrollContainer",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sV.prototype,"dataChanged",null);_.d([_.rx("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sV.prototype,"debouncedUpdateOnResize",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],sV);
_.p(sV,"ytd-merch-shelf-renderer",function(){if(dZf!==void 0)return dZf;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return dZf=D},{mode:2});var xZV;var ha=function(){var D=_.X.apply(this,arguments)||this;D.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 D};
_.P(ha,_.X);_.q=ha.prototype;
_.q.addBackstagePostAction=function(D){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(D=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",D))&&(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:D}):this.set("data.contents",[{backstagePostThreadRenderer:D}]))};
_.q.addBackstageCommentAction=function(D){var t=this.get("addBackstageCommentAction.parentId",D);D=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",D);if(t&&D){t=this.postIdToIndices(t);for(var H=0;H<t.length;H++){var e=t[H];if(e<0)break;e="data.contents."+e+".backstagePostThreadRenderer.comments";this.get(e)&&(this.get(e+".backstageCommentsRenderer.contents")&&this.push(e+".backstageCommentsRenderer.contents",{commentThreadRenderer:D}),this.get(e+".backstageCommentsRenderer.teaserContents")?
this.push(e+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:D}):this.set(e+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:D}]))}}};
_.q.addBackstageReplyAction=function(D){var t=this.get("addBackstageReplyAction.parentId",D);D=this.get("addBackstageReplyAction.renderer.commentRenderer",D);t&&D&&this.setCreatorReply(t,D)};
_.q.banAuthorAction=function(D){var t=this.get("banAuthorAction.commentId",D);t&&(D=this.get("banAuthorAction.parentCommentId",D)||this.getParentPostId(t),this.removeFromStream(t,D))};
_.q.hideReportedCommentAction=function(D){var t=this.get("hideReportedCommentAction.commentId",D);t&&((D=this.get("hideReportedCommentAction.parentCommentId",D))||(D=this.getParentPostId(t)),this.removeFromStream(t,D))};
_.q.replaceBackstageCommentAction=function(D){var t=this.get("replaceBackstageCommentAction.commentId",D),H=this.get("replaceBackstageCommentAction.parentId",D);D=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",D);if(t&&H&&D){H=this.postIdToIndices(H);for(var e=0;e<H.length;e++){var V=H[e];if(V<0)break;var b=this.commentIdToIndex(t,V,!1);if(b>=0){var a=this.get("data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+b+".commentThreadRenderer.replies.commentRepliesRenderer");
a&&(D.replies={commentRepliesRenderer:a});this.splice("data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",b,1,{commentThreadRenderer:D})}b=this.commentIdToIndex(t,V,!0);if(b>=0){if(a=this.get("data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(b+".commentThreadRenderer.replies.commentRepliesRenderer")))D.replies={commentRepliesRenderer:a};this.splice("data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
b,1,{commentThreadRenderer:D})}}}};
_.q.replaceBackstagePostAction=function(D){var t=this.get("replaceBackstagePostAction.itemId",D);if(t){t=this.postIdToIndices(t);for(var H=0;H<t.length;H++){var e=t[H];if(e<0)break;var V=this.getPostRendererType(e),b=this.get("replaceBackstagePostAction.renderer."+V,D);if(!b&&V!=="sharedPostRenderer")break;var a=!1;b||(a=!0,b=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",D));if(!b)break;var w={};a?(_.YP(w,Mxn,b),this.set("data.contents."+e+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
w)):(_.YP(w,new _.NM(V),b),this.set("data.contents."+e+".backstagePostThreadRenderer.post",w))}}};
_.q.replaceBackstageReplyAction=function(D){var t=this.get("replaceBackstageReplyAction.replyId",D),H=this.get("replaceBackstageReplyAction.parentId",D);D=this.get("replaceBackstageReplyAction.renderer.commentRenderer",D);t&&D&&H&&this.setCreatorReply(H,D)};
_.q.removeCommentAction=function(D){var t=this.get("removeCommentAction.commentId",D);if(t){var H=this.get("removeCommentAction.parentCommentId",D);H&&this.get("removeCommentAction.isCreatorReply",D)?this.setCreatorReply(H,void 0):(H||(H=this.getParentPostId(t)),this.removeFromStream(t,H))}};
_.q.setCreatorReply=function(D,t){var H=this.getParentPostId(D);if(H){H=this.postIdToIndices(H);for(var e=0;e<H.length;e++){var V=H[e];if(V<0)break;var b=this.commentIdToIndex(D,V,!1);if(b>=0){var a="data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+b;b=a+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";a+=".commentThreadRenderer.replies";t==void 0?(this.set(a,{}),this.set(b,!1)):(this.set(a,{commentRepliesRenderer:{teaserContents:[{commentRenderer:t}]}}),
this.set(a+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(b,!0))}b=this.commentIdToIndex(D,V,!0);b>=0&&(b="data.contents."+V+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+b,V=b+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",b+=".commentThreadRenderer.replies",t==void 0?(this.set(b,{}),this.set(V,!1)):(this.set(b,{commentRepliesRenderer:{teaserContents:[{commentRenderer:t}]}}),this.set(V,!0)))}}};
_.q.removeFromStream=function(D,t){if(t){t=this.postIdToIndices(t);for(var H=0;H<t.length;H++){var e=t[H];if(e<0)break;var V=this.commentIdToIndex(D,e,!1);V>=0&&this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",V,1);V=this.commentIdToIndex(D,e,!0);V>=0&&this.splice("data.contents."+e+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",V,1);e="data.contents."+e+".backstagePostThreadRenderer.post.backstagePostRenderer";
V=e+".backstageAttachment.pollRenderer.votedCommentId";this.get(V)===D&&(this.set(V,null),this.set(e+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(t=this.postIdToIndices(D).reverse(),H=0;H<t.length;H++){e=t[H];if(e<0)break;V=this.getPostRendererType(e);var b=this.get("backstagePostThreadRenderer.post."+V,this.data.contents[e]);b.postId===D?this.splice("data.contents",e,1):V==="sharedPostRenderer"&&this.set("data.contents."+e+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);b.scheduledPublishTimeSec&&_.ET(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.q.postIdToIndices=function(D){for(var t=[],H=0;H<this.data.contents.length;H++){var e=this.getPostRendererType(H);this.get("backstagePostThreadRenderer.post."+e+".postId",this.data.contents[H])===D&&t.push(H);if(e==="sharedPostRenderer"){var V=this.get("backstagePostThreadRenderer.post."+e+".originalPost.backstagePostRenderer.postId",this.data.contents[H]);e=this.get("backstagePostThreadRenderer.post."+e+".originalPost.postRenderer.postId",this.data.contents[H]);V!==D&&e!==D||t.push(H)}}return t};
_.q.commentIdToIndex=function(D,t,H){if(t<0)return-1;var e,V,b,a,w=_.O((e=this.data)==null?void 0:(V=e.contents)==null?void 0:(b=V[t])==null?void 0:(a=b.backstagePostThreadRenderer)==null?void 0:a.comments,CV9);return(t=H?w==null?void 0:w.teaserContents:w==null?void 0:w.contents)&&t.length?t.findIndex(function(h){return _.O(h,sIn).comment.commentRenderer.commentId===D}):-1};
_.q.getParentPostId=function(D){D=D.split(".");if(D[1])return D[0]};
_.q.getPostRendererType=function(D){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[D])?"sharedPostRenderer":"backstagePostRenderer"};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ha.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],ha.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ha.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:_.r("enable_community_page_on_desktop")}),_.x("design:type",Boolean)],ha.prototype,"useSmallerPostContainer",void 0);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-backstage-items"})],ha);
_.p(ha,"ytd-backstage-items",function(){if(xZV!==void 0)return xZV;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return xZV=
D},{mode:1});var Rba;var uPo={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_POSTS_TAB_COMMUNITY_ENABLEMENT_NUDGE:70,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100},GM=function(){var D=_.X.apply(this,arguments)||this;D.disablePrescanVisibility=!0;D.canScheduleJobs=!0;D.engagementPanel=!1;D.hidePanelButton=!1;D.isWatchGrid=
!1;D.hasShownSubscribersOnlyDisclaimer=!1;D.actionMap={"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};D.TEST_ONLY=void 0;return D};
_.P(GM,_.X);_.q=GM.prototype;_.q.created=function(){this.initCommentsCsi_();_.r("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.r("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.q.contentsChanged_=function(){var D;(D=this.data)!=null&&D.contents&&this.tickForCommentsTimer_("cml")};
_.q.headerChanged_=function(){var D;(D=this.data)!=null&&D.header&&this.tickForCommentsTimer_("cmhl")};
_.q.initCommentsCsi_=function(){_.l1("wn_comments");var D=_.v3();D&&_.JE({clientScreenNonce:D},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.q.createCommentAction_=function(D){D=_.J$.unsafeClone(D);var t,H;if(D=(t=_.O(D,Hxo))==null?void 0:(H=t.contents)==null?void 0:H.commentThreadRenderer){var e,V,b,a,w,h;!this.isBackstage&&((e=this.data)==null?0:(V=e.header)==null?0:(b=V.commentsHeaderRenderer)==null?0:(a=b.createRenderer)==null?0:(w=a.commentSimpleboxRenderer)==null?0:(h=w.zeroStep)==null?0:h.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var K,
N,k;this.isBackstage&&_.O((K=this.data)==null?void 0:(N=K.header)==null?void 0:(k=N.commentsHeaderRenderer)==null?void 0:k.zeroStateMessage,S24)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(D)}};
_.q.doReplyInsert_=function(D,t,H,e){e?this.splice(D,e,0,t):this.push(D,t)};
_.q.getRepliesPath_=function(D){return"data.contents."+D+".commentThreadRenderer.replies"};
_.q.getRepliesContentsPath_=function(D,t){D=this.getRepliesPath_(D);return t?D+".commentRepliesRenderer.teaserContents":D+".commentRepliesRenderer.contents"};
_.q.showSubscribersOnlyDisclaimer_=function(D){(D=D.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(D=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(D))&&(_.ET(this.hostElement,"yt-open-popup-action",[D,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.q.createCommentReplyAction_=function(D){D=_.J$.unsafeClone(D);var t=_.O(D,ef3);if(D=t==null?void 0:t.contents){var H=this.commentIdToIndex_(t==null?void 0:t.parentCommentId);if(!(H<0)){var e=this.getRepliesPath_(H);if(this.get(e)){t=t.replyToCommentId;e=this.getRepliesContentsPath_(H,!1);if(this.get(e)){var V=this.get(e).length,b=e+"."+(V-1)+".continuationItemRenderer";this.get(b+".button")?(b=this.replyIdToIndex_(t,H,!1),this.doReplyInsert_(e,D,b,V-1)):this.get(b)||(V=this.replyIdToIndex_(t,H,
!1),this.doReplyInsert_(e,D,V,null))}e=this.getRepliesContentsPath_(H,!0);this.get(e)?(H=this.replyIdToIndex_(t,H,!0),(!t||H>=0)&&this.doReplyInsert_(e,D,H,null)):this.set(e,[D])}else this.set(e,{commentRepliesRenderer:{teaserContents:[D]}})}}};
_.q.hideReportedCommentAction_=function(D){var t=_.O(D,rR3);if(D=t==null?void 0:t.commentId)(t=this.get("parentCommentId",t))||(t=this.getParentCommentId_(D)),this.remove_(D,t)};
_.q.getParentCommentId_=function(D){D=D.split(".");if(D[1])return D[0]};
_.q.removeCommentAction_=function(D){var t=_.O(D,aDf);if(D=t==null?void 0:t.commentId)t=(t==null?void 0:t.parentCommentId)||this.getParentCommentId_(D),this.remove_(D,t)};
_.q.pinCommentAction_=function(D){D=_.J$.unsafeClone(D);var t=_.O(D,FW9);t!=null&&t.commentId&&(D=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",D))&&(this.remove_(t.commentId),this.insert_(D,!0))};
_.q.unpinCommentAction_=function(D){D=_.J$.unsafeClone(D);D=_.O(D,wy6);if(D!=null&&D.commentId){var t,H,e=(t=D.actionResult)==null?void 0:(H=t.update)==null?void 0:H.commentThreadRenderer;e&&(this.remove_(D.commentId),this.insert_(e))}};
_.q.banAuthorAction_=function(D){var t=_.O(D,te9);t!=null&&t.commentId&&(D=t.commentId,t=t.parentCommentId||this.getParentCommentId_(D),this.remove_(D,t))};
_.q.handleScrollToCommentElement_=function(D){this.nearestScrollParent||(this.nearestScrollParent=ZAX(D));this.isCommentVisibleInScrollParent(D)||D.scrollIntoView({behavior:"smooth",block:"start"})};
_.q.isCommentVisibleInScrollParent=function(D){if(!this.nearestScrollParent)return!1;D=D.getBoundingClientRect();var t=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return D.top>=t.top&&D.bottom<=t.bottom};
_.q.commentIdToIndex_=function(D){var t;return D&&(t=this.data)!=null&&t.contents?this.data.contents.findIndex(function(H){H=H.commentThreadRenderer;var e;return D===((H==null?void 0:H.commentViewModel)&&((e=_.O(H.commentViewModel,ka3))==null?void 0:e.commentId))}):-1};
_.q.insert_=function(D,t){t=t===void 0?!1:t;var H,e;if((H=this.data)==null?0:(e=H.contents)==null?0:e.some(function(b){return!!b.commentThreadRenderer}))for(H=0,e=this.data.contents.length;H<e;H++){var V=this.data.contents[H].commentThreadRenderer;
if(uPo[D.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=uPo[V.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){t&&uPo[D.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===uPo[V.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",H,1,{commentThreadRenderer:D}):this.splice("data.contents",H,0,{commentThreadRenderer:D});break}}else this.set("data.contents",[{commentThreadRenderer:D}])};
_.q.doReplyRemove_=function(D,t,H){D=this.replyIdToIndex_(D,t,H);D<0||(t=this.getRepliesContentsPath_(t,H),this.splice(t,D,1))};
_.q.remove_=function(D,t){t=this.commentIdToIndex_(t);t<0?(t=this.commentIdToIndex_(D),t<0||this.splice("data.contents",t,1)):_.r("web_delhi_comment_threads")||(this.doReplyRemove_(D,t,!1),this.doReplyRemove_(D,t,!0))};
_.q.replyIdToIndex_=function(D,t,H){if(t<0)return-1;t=this.getRepliesContentsPath_(t,H);t=this.get(t);if(!t||!t.length)return-1;H=0;for(var e=t.length;H<e;H++){var V=void 0,b=void 0;if(((V=t[H])==null?void 0:(b=V.commentViewModel)==null?void 0:b.commentId)===D)return H}return-1};
_.q.tickForCommentsTimer_=function(D){_.pl(D,void 0,"wn_comments")};
_.q.reloadComments_=function(D){D=_.O(D,KWf);_.O(D==null?void 0:D.command,_.RH)&&_.NJ(this.hostElement,[D==null?void 0:D.command])};
_.ql.Object.defineProperties(GM.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return!!((D=this.data)==null?0:(t=D.header)==null?0:(H=t.commentsHeaderRenderer)==null?0:H.isBackstageContent)}}});
_.ql.Object.defineProperties(GM,{template:{configurable:!0,enumerable:!0,get:function(){if(Rba===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);Rba=D}D=Rba;return D}}});
GM.prototype.showSubscribersOnlyDisclaimer_=GM.prototype.showSubscribersOnlyDisclaimer_;GM.prototype.headerChanged_=GM.prototype.headerChanged_;GM.prototype.contentsChanged_=GM.prototype.contentsChanged_;_.d([_.C(_.oy),_.x("design:type",Object)],GM.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(_.R9K.YtHostElementBehavior),_.x("design:type",Object)],GM.prototype,"ytHostElementBehavior",void 0);
_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",Function)],GM.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],GM.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],GM.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("data.header.commentsHeaderRenderer.isBackstageContent"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],GM.prototype,"isBackstage",null);_.d([_.M(),_.x("design:type",Object)],GM.prototype,"disablePrescanVisibility",void 0);_.d([_.M(),_.x("design:type",Object)],GM.prototype,"canScheduleJobs",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],GM.prototype,"engagementPanel",void 0);
_.d([_.M(),_.x("design:type",Object)],GM.prototype,"hidePanelButton",void 0);_.d([_.M(),_.x("design:type",Object)],GM.prototype,"isWatchGrid",void 0);_.d([_.M(),_.x("design:type",Object)],GM.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.d([_.Os("data.contents"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GM.prototype,"contentsChanged_",null);
_.d([_.Os("data.header"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GM.prototype,"headerChanged_",null);_.d([_.rx("yt-show-subscribers-only-disclaimer"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],GM.prototype,"showSubscribersOnlyDisclaimer_",null);_.d([_.Y({is:"ytd-comments"})],GM);var EV=function(){return _.ng.apply(this,arguments)||this};
_.P(EV,_.ng);_.q=EV.prototype;_.q.bindIf=function(D,t,H){return D?t:H};
_.q.bindIfDefined=function(D,t){return D!==void 0?D:t};
_.q.booleanString=function(D){return(!!D).toString()};
_.q.equals=function(){for(var D=_.RE.apply(0,arguments),t=D[0],H=1;H<D.length;H++)if(t!=D[H])return!1;return!0};
_.q.isGreaterThan=function(D,t){return D>t};
_.q.isLessThan=function(D,t){return D<t};
_.q.logicalAND=function(){for(var D=_.RE.apply(0,arguments),t=!!D[0],H=1;H<D.length;H++)t=t&&!!D[H];return t};
_.q.logicalOR=function(){for(var D=_.RE.apply(0,arguments),t=!!D[0],H=1;H<D.length;H++)t=t||!!D[H];return t};
_.q.toBool=function(D){return!!D};
EV.prototype.toBool=EV.prototype.toBool;EV.prototype.logicalOR=EV.prototype.logicalOR;EV.prototype.logicalAND=EV.prototype.logicalAND;EV.prototype.isLessThan=EV.prototype.isLessThan;EV.prototype.isGreaterThan=EV.prototype.isGreaterThan;EV.prototype.equals=EV.prototype.equals;EV.prototype.booleanString=EV.prototype.booleanString;EV.prototype.bindIfDefined=EV.prototype.bindIfDefined;EV.prototype.bindIf=EV.prototype.bindIf;_.d([_.Cg()],EV);_.WBV=[EV.prototype];var I$m;var QL3;var Kq=function(){return _.X.apply(this,arguments)||this};
_.P(Kq,_.X);Kq.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
Kq.prototype.onBackIconTap_=function(){window.history.back()};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Kq.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Kq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Kq.prototype,"data",void 0);_.d([_.xL({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],Kq);
_.p(Kq,"yt-header-with-back-renderer",function(){if(QL3===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;I$m===void 0&&(I$m=document.createElement("template"));var e=I$m;H.call(t,e.content.cloneNode(!0),D.content.firstChild);QL3=D}D=QL3;return D},{mode:2});var yO9;var Bz3;var Ns=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.P(Ns,_.X);_.q=Ns.prototype;_.q.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.q.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D,this.setUrl())};
_.q.dataChanged=function(){var D=this;if(this.data){var t=this.setUrl();t&&_.EB({destination:window,iframe:this.iframe,origin:_.Ehn(t.toString()),channelName:"yt-iframe",onMessage:function(H){(H=D.getCommunicationCommand(H.data))&&D.ytComponentBehavior.resolveCommand(H)},
onEstablished:function(){}})}};
_.q.setUrl=function(){if(this.data&&this.data.iframeUrl){var D=_.YV(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(D)return _.zF(this.iframe,D),D}};
_.q.getCommunicationCommand=function(D){var t;if((t=this.data)!=null&&t.onCommunicationCommandsMap){t=this.data.onCommunicationCommandsMap.find(function(V){return V.key===D});
if(t==null?0:t.value)return t==null?void 0:t.value;try{var H=UDv(_.zV(D)),e=this.data.onCommunicationCommandsMap.find(function(V){return V.key===(H==null?void 0:H.getMethodName())});
if(e==null?0:e.value)return e==null?void 0:e.value}catch(V){}}};
Ns.prototype.dataChanged=Ns.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ns.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Ns.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Ns.prototype,"actionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ns.prototype,"data",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],Ns.prototype,"isDarkTheme",void 0);_.d([_.o5("#iframe"),_.x("design:type",HTMLIFrameElement)],Ns.prototype,"iframe",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ns.prototype,"dataChanged",null);_.d([_.xL({is:"yt-iframe-renderer",disableElementRegistration:!0})],Ns);
_.p(Ns,"yt-iframe-renderer",function(){if(Bz3===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;yO9===void 0&&(yO9=document.createElement("template"));var e=yO9;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Bz3=D}D=Bz3;return D},{mode:2});_.ka=function(D){_.mg.call(this);this.callback=D;this.bezier=new Zb6(0,0,.4,0,.2,1,1,1);this.delay=new _.wZ(this.next,window,this);this.JSC$16921_animating=!1;_.c1(this,this.delay)};
_.P(_.ka,_.mg);_.ka.prototype.isAnimating=function(){return this.JSC$16921_animating};
_.ka.prototype.start=function(D,t,H){this.config={from:D,to:t,duration:H,startTime:(0,_.aP)()};this.JSC$16921_animating=!0;this.next()};
_.ka.prototype.stop=function(){this.delay.stop();this.JSC$16921_animating=!1;this.config=void 0};
_.ka.prototype.next=function(){if(this.config){var D=this.config,t=D.from,H=D.to,e=D.duration;D=D.startTime;var V=(0,_.aP)()-D;D=this.bezier;e=hMw(D,V/e);if(e==0)D=D.y0;else if(e==1)D=D.y3;else{V=J_(D.y0,D.y1,e);var b=J_(D.y1,D.y2,e);D=J_(D.y2,D.y3,e);V=J_(V,b,e);b=J_(b,D,e);D=J_(V,b,e)}D=_.A8(D,0,1);this.callback(t+(H-t)*D);D<1?this.delay.start():this.JSC$16921_animating=!1}};_.TM=new _.kI("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var zbo={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},tSv=function(D,t,H,e){_.mg.call(this);this.JSC$16932_miniAppId=D;this.localReleaseId=t;this.derivedDeviceInterface=H;this.isForeground=e;this.JSC$16932_playNonceResolver=new _.TK;this.playPingTimerId=NaN;this.playPingIntervalMs=_.ZU("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.ZU("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.r("enable_displaying_ppn");this.JSC$16932_miniAppClientDataProvider=_.qS().resolve(_.TM);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;Dv3(this);var V=setTimeout(function(){_.Yw(new _.nZ("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16932_playNonceResolver.promise.then(function(){clearTimeout(V)})};
_.P(tSv,_.mg);var eCf=function(D,t){D.JSC$16932_playNonceResolver.resolve(t!=null?t:JK(8));D.enableDisplayingPpn&&Htf(D).then(function(H){D.JSC$16932_miniAppClientDataProvider.clientData.set("post_play_nonce",H)})},Htf=function(D){return _.Z(function(t){return t.nextAddress==1?t.yield(D.JSC$16932_playNonceResolver.promise,2):t.return(t.yieldResult)})},Dv3=function(D){var t,H;
_.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$16932_playNonceResolver.promise,2);t=e.yieldResult;H={miniAppInfo:{externalPostId:D.JSC$16932_miniAppId,localReleaseId:D.localReleaseId,postPlayNonce:t,derivedDeviceInterface:D.derivedDeviceInterface}};_.JE(H);_.n2(e)})},btn=function(D){D.state!==0?_.Yw(new _.nZ("[MiniAppPlayLogger] recordPlayStart failed with state "+zbo[D.state])):(D.state=1,c8(D,"ma_cl"),j0(D,"PLAY_EVENT_TYPE_PLAY_START"),VS6(D))},q1f=function(D){D.isForeground=!1;
j0(D,"PLAY_EVENT_TYPE_PLAY_PAUSE")},FkV=function(D){D.state!==1&&D.state!==2?_.Yw(new _.nZ("[MiniAppPlayLogger] recordPlayEnd failed with state "+zbo[D.state])):(D.state=3,window.clearInterval(D.playPingTimerId),D.playPingTimerId=NaN,A78(),j0(D,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},aF4=function(D,t){D.state===2&&D.gameReady&&(D.firstClickRecorded?Date.now()-D.clickRecordedMs<D.playClickIntervalMs||(D.clickRecordedMs=Date.now(),j0(D,"PLAY_EVENT_TYPE_PLAY_CLICK")):t&&(c8(D,"ma_fua"),j0(D,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),D.firstClickRecorded=!0,D.clickRecordedMs=Date.now()))};
tSv.prototype.logError=function(D){var t=this,H;_.Z(function(e){if(e.nextAddress==1)return D.metadata.externalPostId=t.JSC$16932_miniAppId,H=D.metadata,e.yield(Promise.race([t.JSC$16932_playNonceResolver.promise,new Promise(function(V){setTimeout(function(){V("")},3E4)})]),2);
H.postPlayNonce=e.yieldResult;D.metadata.localReleaseId=t.localReleaseId;D.loggingError.level="WARNING";_.gT(D.loggingError,D.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:D.metadata});_.n2(e)})};
var wdf=function(D,t,H,e){var V,b,a,w,h,K;_.Z(function(N){if(N.nextAddress==1)return N.yield(D.JSC$16932_playNonceResolver.promise,2);V=N.yieldResult;b={externalPostId:D.JSC$16932_miniAppId,localReleaseId:D.localReleaseId,postPlayNonce:V,sdkVersion:H,api:t};e!==void 0&&(b.networkRequestsMeasurement={networkRequests:_.sH(e,1),cachedRequests:_.sH(e,2),transferredBytes:_.sH(e,3)},(a=e)==null?0:_.Ot(a,kq,6))&&(b.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((w=_.sq(e,
kq,6))==null?void 0:gU(w,1))||"0",cacheHits:((h=_.sq(e,kq,6))==null?void 0:gU(h,2))||"0",cachedBytes:((K=_.sq(e,kq,6))==null?void 0:gU(K,3))||"0"});_.L7("miniAppSdkUsage",b);_.n2(N)})},s7o=function(D,t,H){var e,V,b,a,w,h,K,N,k,T,c,U,S,L,J,g;
_.Z(function(Q){if(Q.nextAddress==1)return Q.yield(D.JSC$16932_playNonceResolver.promise,2);e=Q.yieldResult;V={externalPostId:D.JSC$16932_miniAppId,localReleaseId:D.localReleaseId,postPlayNonce:e,sdkVersion:H,measurementWindow:{startTimestampMs:String(Xz(t,1)),endTimestampMs:String(Xz(t,2))},frameRate:{averageFrameTimeDeltaMs:fa(t,3),averageFrameIdleTimeMs:fa(t,4)}};_.Ot(t,Tz,5)&&(V.networkRequests={networkRequests:(b=Un(t))==null?void 0:_.sH(b,1),cachedRequests:(a=Un(t))==null?void 0:_.sH(a,2),transferredBytes:(w=
Un(t))==null?void 0:_.sH(w,3),sameOriginStatusCodeToCounts:Zt9((h=Un(t))==null?void 0:fO3(h,4)),crossOriginStatusCodeToCounts:Zt9((K=Un(t))==null?void 0:fO3(K,5))},(N=Un(t))==null?0:_.Ot(N,kq,6))&&(V.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((k=Un(t))==null?void 0:(T=_.sq(k,kq,6))==null?void 0:gU(T,1))||"0",cacheHits:((c=Un(t))==null?void 0:(U=_.sq(c,kq,6))==null?void 0:gU(U,2))||"0",cachedBytes:((S=Un(t))==null?void 0:(L=_.sq(S,kq,6))==null?void 0:gU(L,3))||"0"});_.Ot(t,
UA6,7)&&(V.gameCapture={averageFrameTimeDeltaMs:(J=_.sq(t,UA6,7))==null?void 0:fa(J,1),averageFrameIdleTimeMs:(g=_.sq(t,UA6,7))==null?void 0:fa(g,2)});_.L7("miniAppPerformanceMetrics",V);_.n2(Q)})},hCa=function(D,t){var H,e;
return _.Z(function(V){if(V.nextAddress==1)return V.yield(D.JSC$16932_playNonceResolver.promise,2);H=V.yieldResult;e={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:D.JSC$16932_miniAppId,postPlayNonce:H,miniAppReleaseId:D.localReleaseId},derivedDeviceInterface:D.derivedDeviceInterface,adTriggerType:t,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.L7("miniAppAdEvent",e);_.n2(V)})};
tSv.prototype.disposeInternal=function(){_.mg.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var j0=function(D,t,H,e){H=H===void 0?{}:H;e=e===void 0?!1:e;var V,b,a,w;_.Z(function(h){if(h.nextAddress==1)return V=D.isForeground,b=D.beforeReady,h.yield(D.JSC$16932_playNonceResolver.promise,2);a=h.yieldResult;w={externalPostId:D.JSC$16932_miniAppId,localReleaseId:D.localReleaseId,derivedDeviceInterface:D.derivedDeviceInterface,postPlayNonce:a,type:t};H.sequenceGroup=a;w.playState=b?"PLAY_STATE_NOT_READY":V?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.L7("miniAppPlayEvent",w,
H);e&&_.Ap();_.n2(h)})},c8=function(D,t){var H;
_.Z(function(e){if(e.nextAddress==1)return H=(0,_.aP)(),e.yield(D.JSC$16932_playNonceResolver.promise,2);_.vh(t,H);_.n2(e)})},VS6=function(D){isNaN(D.playPingTimerId)&&(D.playPingTimerId=_.NS(function(){D.state!==1&&D.state!==2?_.Yw(new _.nZ("[MiniAppPlayLogger] reportPlayPing failed with state "+zbo[D.state])):j0(D,"PLAY_EVENT_TYPE_PLAY_PING")},D.playPingIntervalMs))},Zt9=function(D){return Array.from(D.entries()).map(function(t){var H=_.F(t);
t=H.next().value;H=H.next().value;return{key:t,value:H}})};var GlQ=function(){},EF4=function(D,t){D.showMiniAppAdCommand=t.showMiniAppAdCommand;
D.isEmbeddedInWebview=t.isEmbeddedInWebview;D.playLogger=t.playLogger},NCQ=function(D,t){var H;
return _.Z(function(e){if(e.nextAddress==1){if(!D.showMiniAppAdCommand||!D.isEmbeddedInWebview)return e.return(Kk3(D,t));D.adResolver=new _.TK;var V=new Q4;H=_.Gr(V,3,t);Jl(D.showMiniAppAdCommand,VYa(H));return e.yield(D.adResolver.promise,2)}return e.return(e.yieldResult)})};
GlQ.prototype.onAdFinished=function(D){D=eFf(D);var t;(t=this.adResolver)==null||t.resolve(D)};
var Kk3=function(D,t){var H;return _.Z(function(e){if(e.nextAddress==1)e=e.yield((H=D.playLogger)==null?void 0:hCa(H,kYA(t)),2);else{var V=e.return;var b=new HJ9;b=_.Gr(b,1,2);e=V.call(e,b)}return e})};var kl4=new _.kI("INNERTUBE_MANAGER_TOKEN");var TCo=function(){this.callbacks={}};
TCo.prototype.initialize=function(D){var t=this;this.callbacks=D;window.youtubewebview?window.youtubewebview.onmessage=function(H){cIV(t,H)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(H){cIV(t,H)})};
var cIV=function(D,t){if(t.data)try{var H=UDv(t.data);if(_.OF(_.rU(H,1))!=null){var e=BKB(_.La(H,2));switch(H.getMethodName()){case "yt-mini-app-load-audio-state":var V,b;(b=(V=D.callbacks).onAudioStateLoaded)==null||b.call(V,_.Sk(e,Up(e,IW,1)));break;case "yt-mute-mini-app":var a,w;(w=(a=D.callbacks).onMuteMiniApp)==null||w.call(a);break;case "yt-unmute-mini-app":var h,K;(K=(h=D.callbacks).onUnmuteMiniApp)==null||K.call(h);break;case "yt-playable-exit":var N,k;(k=(N=D.callbacks).onExit)==null||k.call(N);
break;case "yt-post-play-nonce":var T,c;(c=(T=D.callbacks).onPostPlayNonceReceived)==null||c.call(T,JM(e,2,IW));break;case "yt-confirm-exit-mini-app":var U,S;(S=(U=D.callbacks).confirmExitMiniApp)==null||S.call(U);break;case "yt-confirm-exit-mini-app-edu":var L,J;(J=(L=D.callbacks).confirmExitMiniAppEdu)==null||J.call(L);break;case "yt-benchmarking-response":var g,Q;(Q=(g=D.callbacks).onNativeBenchmarkingMessageReceived)==null||Q.call(g,JM(e,2,IW));break;case "yt-mini-app-load-3p-consent-state":var u,
R;(R=(u=D.callbacks).multiplayer3pAckStateLoaded)==null||R.call(u,_.Sk(e,Up(e,IW,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var I,tT;(tT=(I=D.callbacks).exitMiniAppSeenStateLoaded)==null||tT.call(I,_.Sk(e,Up(e,IW,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var ZV,ED;(ED=(ZV=D.callbacks).onNavigateToNewMiniApp)==null||ED.call(ZV);break;case "yt-game-data-available":var o$,jV;(jV=(o$=D.callbacks).onGameDataAvailable)==null||jV.call(o$,JM(e,2,IW));break;case "yt-pause-mini-app":var i8,
g6;(g6=(i8=D.callbacks).onPauseMiniApp)==null||g6.call(i8);break;case "yt-resume-mini-app":var Mu,LQ;(LQ=(Mu=D.callbacks).onResumeMiniApp)==null||LQ.call(Mu);break;case "yt-playable-ad-finished":var DO,fQ;(fQ=(DO=D.callbacks).onAdFinished)==null||fQ.call(DO,JM(e,2,IW))}}else _.Yw(Error("$h"))}catch(yA){_.gT(Error("ai"))}else _.Yw(Error("bi"))};var cd8=function(D){this.rpcErrorCode=D};var $a=function(D,t,H){this.intervalMs=D;this.apiFunc=t;this.type=H;this.schedulerReady=!0};
$a.prototype.call=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1){if(t.type!==1&&D===t.cachedValue)return e.return();t.pendingApiRequestResolver||(t.pendingApiRequestResolver=new _.TK);H=t.pendingApiRequestResolver.promise;t.cachedValue=D;return e.yield(j7V(t),2)}return e.return(H)})};
$a.prototype.flush=function(D){D=D===void 0?!1:D;var t=this;return _.Z(function(H){return t.cachedValue===void 0?H.return():H.yield(t.apiFunc(t.cachedValue,D),0)})};
var j7V=function(D){var t,H,e;return _.Z(function(V){switch(V.nextAddress){case 1:if(!D.schedulerReady||!D.pendingApiRequestResolver)return V.return();D.schedulerReady=!1;t=D.pendingApiRequestResolver;D.pendingApiRequestResolver=void 0;_.$p(V,2);if(D.cachedValue===void 0){V.jumpTo(4);break}return V.yield(D.apiFunc(D.cachedValue),5);case 5:H=V.yieldResult,t.resolve(H);case 4:_.yM(V,3);break;case 2:e=_.Pv(V),t.reject(e);case 3:setTimeout(function(){return _.Z(function(b){D.schedulerReady=!0;return b.yield(j7V(D),
0)})},D.intervalMs),_.n2(V)}})};var iAD=window.location.origin+"/miniapp_cloudsaves",j1T=[400,401],$vf=_.ZU("cloud_save_game_data_rate_limit_ms",3E3),Otw=function(D){var t=this;this.JSC$16976_miniAppId=D;this.loadAttempts=0;this.cloudSaveIntervalMs=$vf;this.initialDownloadDataSucceeded=!1;this.JSC$16976_playNonceResolver=new _.TK;this.scottyUploadRateLimiter=new $a(this.cloudSaveIntervalMs,function(H,e){return ita(t,H,e)},2);
this.downloadDataPromise=rIf(this);this.downloadDataPromise.then(function(){t.initialDownloadDataSucceeded=!0}).catch(function(){})},Uvv=function(D,t){t.then(function(H){return D.JSC$16976_playNonceResolver.resolve(H)})},oF9=function(D){return _.Z(function(t){return D.cachedData===void 0?t.return(D.downloadDataPromise):t.return(D.cachedData)})},PEQ=function(D,t){return _.Z(function(H){D.cachedData=t;
if(!D.initialDownloadDataSucceeded)throw Error("ci");return H.yield(D.scottyUploadRateLimiter.call(t),0)})},nFn=function(){return new Promise(function(D){setTimeout(D,1E3,"")})},CEn=function(D,t){var H,e;
return _.Z(function(V){if(V.nextAddress==1)return H=D.JSC$16976_miniAppId,V.yield(Promise.race([D.JSC$16976_playNonceResolver.promise,nFn()]),2);e={"X-YouTube-MiniAppId":H,"X-YouTube-PostPlayNonce":V.yieldResult};"DELEGATED_SESSION_ID"in _.g1&&qOu(t,e);return V.return(e)})},ita=function(D,t,H){H=H===void 0?!1:H;
return _.Z(function(e){return TcT()?_.r("enable_cloud_save_error_popup_after_retry")?e.return(new Promise(function(V,b){var a,w,h,K,N;return _.Z(function(k){switch(k.nextAddress){case 1:a=0,w=!0,K=h=null;case 2:if(!(w&&a++<2)){k.jumpTo(4);break}_.$p(k,5);return k.yield(mvV(D,t,H),7);case 7:h=k.yieldResult;w=h.ok?!1:!j1T.includes(h.status);_.yM(k,2);break;case 5:K=N=_.Pv(k);w=$mV(K);k.jumpTo(2);break;case 4:h?h.ok?(iX(D,$vf),V()):(iX(D,D.cloudSaveIntervalMs*2),b(Error("di`"+String(h.status),{cause:{rpcErrorCode:h.status}}))):
(iX(D,D.cloudSaveIntervalMs*2),b(K||Error("ei"))),_.n2(k)}})})):e.return(new Promise(function(V,b){var a,w;
return _.Z(function(h){if(h.nextAddress==1){if(D.JSC$16976_miniAppId==="")return b(Error("fi")),h.return();_.$p(h,2);return h.yield(mvV(D,t,H),4)}if(h.nextAddress!=2)return a=h.yieldResult,a.ok?(iX(D,$vf),V()):(iX(D,D.cloudSaveIntervalMs*2),b(Error("di`"+String(a.status),{cause:{rpcErrorCode:a.status}}))),_.yM(h,0);w=_.Pv(h);iX(D,D.cloudSaveIntervalMs*2);b(w);_.n2(h)})})):e.return()})},mvV=function(D,t,H){H=H===void 0?!1:H;
var e,V,b;return _.Z(function(a){if(a.nextAddress==1)return e=_.XF((new TextEncoder).encode(t)),V=rd6(),a.yield(CEn(D,V),2);b=a.yieldResult;return a.return(fetch(V,{method:"POST",body:new Blob([e]),headers:b,keepalive:H}))})},rIf=function(D){var t,H;
return _.Z(function(e){if(e.nextAddress==1){if(!TcT())return e.return("");if(D.JSC$16976_miniAppId==="")throw Error("fi");if(D.loadAttempts>2)return e.return(D.downloadDataPromise);_.$p(e,2);return e.yield(MSn(D),4)}if(e.nextAddress!=2)return t=e.yieldResult,e.return(t);H=_.Pv(e);if($mV(H)&&++D.loadAttempts<2)return e.return(rIf(D));throw H;})},MSn=function(D){var t,H,e,V,b;
return _.Z(function(a){switch(a.nextAddress){case 1:return _.$p(a,2),t=rd6(),a.yield(CEn(D,t),4);case 4:return H=a.yieldResult,a.yield(fetch(t,{method:"GET",headers:H}),5);case 5:return e=a.yieldResult,e.ok?a.yield(e.text(),6):a.return(Promise.reject(Error("gi`"+String(e.status),{cause:new cd8(e.status)})));case 6:return V=a.yieldResult,a.return((new TextDecoder).decode(_.zV(V)));case 2:return b=_.Pv(a),a.return(Promise.reject(b))}})},iX=function(D,t){D.cloudSaveIntervalMs=t;
D.scottyUploadRateLimiter.intervalMs=D.cloudSaveIntervalMs};
Otw.prototype.flush=function(){var D=this;return _.Z(function(t){return D.initialDownloadDataSucceeded?t.yield(D.scottyUploadRateLimiter.flush(!0),0):t.return()})};var S1n=rr(iq(1),jz(1)),Xdv=rr(iq(1),jz(3)),ry=function(D){this.callbacks=D};
_.q=ry.prototype;_.q.onAudioToggled=function(D,t){(t===void 0||t)&&_.Yg("yt-mini-app-is-audio-enabled",D,2592E3)};
_.q.onPause=function(){this.onAudioToggled(!1,!1)};
_.q.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.q.returnNativeBenchmarkingMessage=function(){};
_.q.sendGameData=function(){};
_.q.sendStartGameFrameCapture=function(){};
var OAA=function(D,t,H){this.callbacks=D;var e=this;this.sdkVersion=new _.TK;this.channel=new j$a(_.EB({destination:window,iframe:t,origin:(new URL(H.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var V=OV;var b=iq(5);var a=new hFV;a=_.lZ(a,1,1E4);b=_.PU(b,4,jS9,a);V(e,b);e.onAudioToggled(e.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){e.sdkVersion.resolve("")},1E4)};
_.P(OAA,ry);_.q=OAA.prototype;_.q.onAudioToggled=function(D,t){ry.prototype.onAudioToggled.call(this,D,t===void 0?!0:t);t=OV;var H=iq(2),e=new ZJw;D=_.KN(e,1,D);D=_.PU(H,3,jS9,D);t(this,D)};
_.q.onPause=function(){ry.prototype.onPause.call(this);OV(this,iq(3))};
_.q.onResume=function(){ry.prototype.onResume.call(this);OV(this,iq(4))};
_.q.returnNativeBenchmarkingMessage=function(D){var t=OV,H=iq(6);var e=jz(_.Ot(D,au,1)?1:2);D=_.Ot(D,au,1)?D:null;e=_.PU(e,5,$q,D);t(this,rr(H,e))};
_.q.sendGameData=function(D){var t=OV,H=iq(7);D=_.PU(H,5,jS9,D);t(this,D)};
_.q.sendStartGameFrameCapture=function(){OV(this,iq(9))};
var UV=function(D,t,H){var e,V,b;return _.Z(function(a){if(a.nextAddress==1)return e=D.callbacks,V=e.onSdkCalled,b=t,a.yield(D.sdkVersion.promise,2);V.call(e,b,a.yieldResult,H);_.n2(a)})};
OAA.prototype.onMessage=function(){var D=this;return rTV(oW,function(t){var H,e,V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u,R,I,tT,ZV,ED,o$,jV,i8,g6,Mu,LQ,DO,fQ,yA,T4,Mw,X6,yZ,kQ,FX,qw,oB,ZO,Nw,bY,P_,QV;return _.Z(function(Zf){switch(Zf.nextAddress){case 1:if(!CtV(t.data))return _.Yw(Error("hi")),Zf.return();H=_.AM(t.data,1);_.r("enable_iframe_message_get_type_via_fields")&&(e=t.data,H=V=_.AM(e,1));switch(H){case 8:if(t.data.hasMetadata()){var ua=D.sdkVersion,$Q=ua.resolve;var ia=t.data.getMetadata();ia=_.La(ia,
1);$Q.call(ua,ia);clearTimeout(D.sdkVersionTimeoutId)}break;case 6:return Zf.jumpTo(2);case 16:if(!_.Ut(t.data,r_V,14,Pu))return Zf.return();b=_.Yf(t.data,r_V,14,Pu);(w=(a=D.callbacks).onGameFrameReceived)==null||w.call(a,b);return Zf.return();case 17:if(!_.Ut(t.data,iJB,15,Pu))return Zf.return();(K=(h=D.callbacks).onGameAudioReceived)==null||K.call(h,_.Yf(t.data,iJB,15,Pu));return Zf.return();case 1:if(ua=_.Yf(t.data,Kbm,2,Pu))switch(_.AM(ua,1)){case 1:D.callbacks.onFirstFrameReady();if(_.r("enable_network_request_logging_on_game_events")&&
_.Ot(ua,Tz,4)){UV(D,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.sq(ua,Tz,4));break}UV(D,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(ia=($Q=D.callbacks).onGameReady)==null||ia.call($Q);if(_.r("enable_network_request_logging_on_game_events")&&_.Ot(ua,Tz,4)){UV(D,"MINI_APP_SDK_API_GAME_READY",_.sq(ua,Tz,4));break}UV(D,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Ut(ua,cu,3,NqB))D.callbacks.onResourceLoaded(_.Yf(ua,cu,3,NqB))}return Zf.return();case 3:return Zf.jumpTo(3);case 4:return Zf.jumpTo(4);
case 2:return Zf.jumpTo(5);case 9:return Zf.jumpTo(6);case 10:return D.callbacks.onClick(),Zf.return();case 5:return Zf.jumpTo(7);case 11:if(!_.Ut(t.data,KS,9,Pu))return Zf.return();N=_.Yf(t.data,KS,9,Pu);(T=(k=D.callbacks).onBenchmarkingMessageReceived)==null||T.call(k,N);ua=t.reply;$Q=iq(1);ia=jz(1);var jf=new KS;var TH=new Uint8Array(JOD(N,Up(N,bJV,6))|0);jf=j4(jf,5,bJV,_.Um(TH,!1));ia=_.PU(ia,5,$q,jf);ua.call(t,rr($Q,ia));return Zf.return();case 12:return Zf.jumpTo(8);case 13:return Zf.jumpTo(9);
case 15:if(!_.r("enable_open_yt_content"))return t.reply(Xdv),Zf.return();if(!_.Ut(t.data,$AQ,12,Pu))return t.reply(rr(iq(1),jz(2))),Zf.return();ua=_.Yf(t.data,$AQ,12,Pu);c=_.La(ua,1);D.callbacks.onOpenYTContent(c);t.reply(S1n);return Zf.return();case 14:return Zf.jumpTo(10);default:return Zf.return()}Zf.jumpTo(0);break;case 2:if(!_.Ut(t.data,On,5,Pu))return Zf.return();$Q=t.data;ua=Up($Q,Pu,5);$Q=$Q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;U=JFk($Q,$Q[_.ba]|0,On,ua)||On[lf3]||(On[lf3]=
vvT(On));ua=_.wV(U,Na,1,_.Zl());S=_.F(ua);L=S.next();case 12:if(L.done){Zf.jumpTo(14);break}J=L.value;g=new _.nZ;g.level=_.AM(J,2)===1?"WARNING":"ERROR";Q=o4D(J.getSource());return Zf.yield(D.sdkVersion.promise,15);case 15:u={source:Q,sdkVersion:Zf.yieldResult};_.Ht(_.rU(J,6))!=null?(g.message=J.getMessage(),g.stack=_.La(J,5),u.sdkErrorType=P$$(_.AM(J,6)),_.Ht(_.rU(J,7))!=null&&(u.sdkApi=n4K(_.AM(J,7)))):g.stack=void 0;I=R=void 0;(I=(R=D.callbacks).onError)==null||I.call(R,{loggingError:g,metadata:u});
L=S.next();Zf.jumpTo(12);break;case 14:return Zf.return();case 3:return _.$p(Zf,16),ua=Zf.yield,$Q=D.callbacks,ia=$Q.onSave,jf=_.Yf(t.data,sSm,4,Pu),jf=_.La(jf,1),ua.call(Zf,ia.call($Q,jf),18);case 18:t.reply(S1n);_.yM(Zf,17);break;case 16:return tT=_.Pv(Zf),ZV=YG,ED=tT,o$=D.callbacks,jV="MINI_APP_SDK_API_SAVE_DATA",Zf.yield(D.sdkVersion.promise,19);case 19:ZV(ED,o$,jV,Zf.yieldResult),t.reply(Xdv);case 17:return Zf.yield(UV(D,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return Zf.return();case 4:return _.$p(Zf,
21),Zf.yield(D.callbacks.onLoad(),23);case 23:i8=Zf.yieldResult;ua=t.reply;$Q=iq(1);ia=jz(1);jf=new sSm;jf=_.M3(jf,1,i8);ia=_.PU(ia,3,$q,jf);ua.call(t,rr($Q,ia));_.yM(Zf,22);break;case 21:return g6=_.Pv(Zf),Mu=YG,LQ=g6,DO=D.callbacks,fQ="MINI_APP_SDK_API_LOAD_DATA",Zf.yield(D.sdkVersion.promise,24);case 24:Mu(LQ,DO,fQ,Zf.yieldResult),t.reply(Xdv);case 22:return Zf.yield(UV(D,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Zf.return();case 5:_.$p(Zf,26);D.callbacks.onSendHighScore(YO(_.Yf(t.data,
Ptn,3,Pu).getValue()));t.reply(rr(iq(1),jz(1)));_.yM(Zf,27);break;case 26:return yA=_.Pv(Zf),T4=YG,Mw=yA,X6=D.callbacks,yZ="MINI_APP_SDK_API_SEND_SCORE",Zf.yield(D.sdkVersion.promise,28);case 28:T4(Mw,X6,yZ,Zf.yieldResult),t.reply(Xdv);case 27:return Zf.yield(UV(D,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Zf.return();case 6:if(!_.Ut(t.data,nBB,8,Pu)){Zf.jumpTo(30);break}ua=Zf.yield;$Q=_.Yf(t.data,nBB,8,Pu);$Q=_.AM($Q,1);return ua.call(Zf,UV(D,n4K($Q)),30);case 30:return Zf.return();case 7:return ua=
t.reply,$Q=iq(1),ia=jz(1),jf=D.callbacks.getLanguage(),ia=j4(ia,4,$q,r4(jf)),ua.call(t,rr($Q,ia)),Zf.yield(UV(D,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Zf.return();case 8:if(!_.Ut(t.data,oBo,10,Pu))return Zf.return();kQ=_.Yf(t.data,oBo,10,Pu);FX=D.callbacks;qw=FX.onSdkPerformanceUpdate;return Zf.yield(D.sdkVersion.promise,33);case 33:return qw.call(FX,kQ,Zf.yieldResult),Zf.return();case 9:ua=t.data;$Q=Up(ua,Pu,11);if(_.OF(_.rU(ua,$Q))==null)return t.reply(rr(iq(1),jz(2))),Zf.return();
oB=JM(t.data,11,Pu);D.callbacks.onShareInviteCode(oB);t.reply(S1n);return Zf.yield(UV(D,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Zf.return();case 10:if(_.Ut(t.data,wrn,13,Pu)){Zf.jumpTo(35);break}return Zf.yield(D.callbacks.onShowMiniAppAd(2),36);case 36:return ZO=Zf.yieldResult,t.reply(rr(iq(1),Tq9(ZO))),Zf.yield(UV(D,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Zf.return();case 35:ua=_.Yf(t.data,wrn,13,Pu);a:switch(_.AM(ua,1)){case 1:ua={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:ua={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:ua={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Nw=ua;bY=Nw.adType;P_=Nw.sdkApi;ua=Zf.yield;$Q=D.callbacks;ia=$Q.onShowMiniAppAd;jf=_.Yf(t.data,wrn,13,Pu);jf=_.La(jf,2);return ua.call(Zf,ia.call($Q,bY,jf||void 0),38);case 38:return QV=Zf.yieldResult,t.reply(rr(iq(1),Tq9(QV))),Zf.yield(UV(D,P_),39);case 39:return Zf.return()}})})};
var OV=function(D,t){_.Z(function(H){D.channel.send(t);_.n2(H)})},le=function(D,t,H){this.callbacks=D;
var e=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;D=yAV(t,(new URL(H.toString())).origin);this.gameSnacks=new AT9(D);this.gameSnacks.page.onReady(function(){e.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){e.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var V,b;(b=(V=e.callbacks).onGameReady)==null||b.call(V)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(V,b){try{e.callbacks.onSendHighScore(b)}catch(a){YG(a,e.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(V,b){var a;return _.Z(function(w){if(w.nextAddress==1)return _.$p(w,2),w.yield(e.callbacks.onSave(e.decoder.decode(b)),4);if(w.nextAddress!=2)return _.yM(w,0);a=_.Pv(w);YG(a,e.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return w.return()})});
this.gameSnacks.storage.onLoad(function(){var V,b;return _.Z(function(a){if(a.nextAddress==1)return _.$p(a,2),a.yield(e.callbacks.onLoad(),4);if(a.nextAddress!=2)return V=a.yieldResult,a.return(e.encoder.encode(V));b=_.Pv(a);YG(b,e.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return a.return(e.encoder.encode(""))})});
this.gameSnacks.init()};
_.P(le,ry);le.prototype.onAudioToggled=function(D,t){ry.prototype.onAudioToggled.call(this,D,t===void 0?!0:t);var H;(H=this.gameSnacks)==null||H.audio.update(D)};
le.prototype.onPause=function(){ry.prototype.onPause.call(this);var D;(D=this.gameSnacks)==null||D.game.pause()};
le.prototype.onResume=function(){ry.prototype.onResume.call(this);var D;(D=this.gameSnacks)==null||D.game.resume()};var fFw=C$D,LkB=_.l(function(D){var t=D.data;var H=D.loadingProgress;var e=D.forPaused;D=_.F(_.KR("",void 0,"LYYTdd"));var V=D.next().value,b=D.next().value;D=_.F(_.KR(!1,void 0,"K0waae"));var a=D.next().value,w=D.next().value,h=[],K=function(){return"transform: scaleX("+(_.fR(H)||0)+")"},N=null,k=function(){return t()&&N!==null&&N!==void 0?N:N=t().showAnniversaryAnimation?6:fFw()};
_.Mp(function(){var S;if(t().timeOutMessages&&((S=t().timeOutMessages)==null?0:S.length)){N=null;S=_.F(h);for(var L=S.next();!L.done;L=S.next())clearTimeout(L.value);h.length=0;mmV(t().timeOutMessages,h,b,w)}},"BNu9j");
var T=function(){return!!t().persistentErrorMessageTitle},c=function(){return H!==void 0},U=function(){return t().title};
return _.G("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.G("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.G("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.G("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var S,L=(S=t().backgroundImage)==null?void 0:S.sources,J;return(L==null?0:L.length)?"background-image: url("+((J=L[0])==null?void 0:J.url)+")":""}}),_.G("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.G(_.E,{cond:function(){return!T()&&!(e==null?0:e())},
then:function(){var S={};return _.G("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.G("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.G(_.x7,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+k()},
data:function(){var L="loading_animation_"+k();return{animationConfig:{name:L,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+L+".json",loop:!0,autoplay:!0}}}})),_.G("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.G(_.E,{cond:U,
then:function(){return _.G("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},U)}}),_.G("p",{class:_.jQ("miniAppSplashScreenViewModelTimeoutMessage",(S.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return a()},S)),
"aria-live":"polite"},V),_.G(_.E,{cond:c,then:function(){return _.G("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.G("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:K}))}})))}}),_.G(_.E,{cond:T,
then:function(){return _.G("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.G("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return t().persistentErrorMessageTitle}),_.G(_.E,{cond:function(){return!!t().persistentErrorMessageDescription},
then:function(){return _.G("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return t().persistentErrorMessageDescription})}}))}}),_.G(_.E,{cond:e,
then:function(){return _.G("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.G("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.G("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},U))}})))},"tf");var AIn=new _.kI("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var gFf=tZ;tZ=function(D){function t(H){if(H){var e,V;(e=H.__spec)==null||(V=e.didUnmount)==null||V.call(e);for(e=0;e<H.childNodes.length;e++)t(H.childNodes[e])}}
gFf==null||gFf(D);gj(function(){for(var H=0;H<D.length;H++)t(D[H])})};var JI4=_.l(function(D){var t=D.data;var H=D.score;var e=D.formattedScore;var V=D.onScoreChanged;var b=D.isEmbeddedInWebview;var a=_.ep("yt-mini-app-score-button-view-model"),w=function(){var c;return _.O(t==null?void 0:(c=t())==null?void 0:c.buttonViewModel,_.h1)},h=function(){var c;
return(H==null?void 0:H())||Number(t==null?void 0:(c=t())==null?void 0:c.lastScore)||0},K=function(){var c;
return(e==null?void 0:e())||((c=w())==null?void 0:c.title)||""},N,k=1;
if(D=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))D=Number(D),k=isNaN(D)?1:D/100;_.Mp(function(){V==null||V(h());var c;var U=_.xP((c=w())==null?void 0:c.onTap);if(U){c=_.O(U,lQ6);var S,L,J;c=_.O(c==null?void 0:(S=c.panelLoadingStrategy)==null?void 0:(L=S.inlineContent)==null?void 0:(J=L.dialogViewModel)==null?void 0:J.customContent,bUf)}else c=void 0;if(S=c)S.score=K()},"Aekez");
D=_.$X(function(){var c,U,S=t==null?void 0:(c=t())==null?void 0:(U=c.loggingDirectives)==null?void 0:U.trackingParams;S&&_.YS(_.qS().resolve(_.eX),S);return!1});
_.XH(function(){if(a.value){var c=a.value.querySelector("button"),U=w();c&&U&&MqR(c,U);_.F9("yt-share-playable-with-high-score",function(){var S=h().toString(),L=t==null?void 0:t().onShareHighScoreCommand,J=t==null?void 0:t().highScoreShareClientParamIdentifier,g=b==null?void 0:b();L&&(g?(J=new rUa,S=_.M3(J,2,S),Jl(L,S.JSC$12375_serializeBinary())):J&&(_.qS().resolve(AIn).clientParams.set(J,{miniAppClientParams:{highScore:S}}),GYV(L,!1)))})}});
var T=function(){var c=w();c&&(H==null?0:H())&&c.accessibilityText&&(c.accessibilityText=c.accessibilityText.replace(N,K()));N=K();return{numberValue:h(),numberText:K(),heightPx:36,fontSizeMultiplier:k,shouldAnimate:!(H==null||!H())&&!0}};
return _.G("yt-mini-app-score-button-view-model",{class:function(){var c={};return _.ff("miniAppScoreButtonViewModelHost",(c.miniAppScoreButtonViewModelIsVisible=h()!==0,c))},
el:a,"on:click":D},CgK(!1,function(){return _.G("span",{style:"display:none;"},h)}),_.G(_.P5,{data:function(){var c;
return t==null?void 0:(c=t())==null?void 0:c.buttonViewModel}},{buttonViewModel:function(c){return _.G(_.JX,{data:c.data,
animatedTextProps:T})}}))},"vf");var dvw=_.l(function(D){var t,H=(t=_.l_("yt-mini-app-is-theater-mode-enabled"))!=null?t:!1,e=_.r("enable_playable_container_save_button"),V=_.r("enable_play_next_destination_page_in_toolbar");t={};return _.G("ytm-mini-app-top-bar-view-model",null,_.G("div",{class:_.jQ("yt-mini-app-top-bar-view-model",(t["yt-mini-app-top-bar-view-model--mobile"]=!1,t["yt-mini-app-top-bar-view-model--desktop"]=!0,t))},_.G("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.G(_.E,{cond:function(){var b;return!!D.data().backButtonEdu&&
!((b=D.isExitMiniAppSeen)==null?0:b.call(D))},
then:function(){return _.G(_.P5,{data:function(){return D.data().backButtonEdu}},{buttonViewModel:_.JX})},
else:function(){return _.G(_.P5,{data:function(){return D.data().backButton}},{buttonViewModel:_.JX})}}),_.G(_.E,{cond:function(){return D.data().viewAllButton&&!0},
then:function(){return _.G(_.P5,{data:function(){return D.data().viewAllButton}},{buttonViewModel:_.JX})}}),_.G(_.E,{cond:function(){return D.data().title&&!0},
then:function(){return _.G("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return D.data().title})}})),_.G("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.G(_.E,{cond:function(){var b;
return(b=D.isDesktopPlayPage)==null?void 0:b.call(D)},
then:function(){return _.G(_.FH,null,_.G(Y1f,{highScoreButton:function(){return D.data().highScoreButton},
score:D.score,formattedScore:D.formattedScore,onScoreChanged:D.onScoreChanged,isEmbeddedInWebview:D.isEmbeddedInWebview}),_.G(lFV,{enableSaveButton:function(){return _.fR(e)},
saveButton:function(){return D.data().saveButton},
isSaved:D.isSaved,onSaveToggled:function(){return D.onSaveToggled}}),_.G(vFn,{menuButton:function(){return D.data().menuButton}}))},
else:function(){return _.G(_.E,{cond:function(){return!1},
then:function(){return _.G(_.P5,{data:function(){return D.data().playPageButton}},{buttonViewModel:function(b){return _.G(_.JX,{data:b.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.G(Y1f,{highScoreButton:function(){return D.data().highScoreButton},
score:D.score,formattedScore:D.formattedScore,onScoreChanged:D.onScoreChanged,isEmbeddedInWebview:D.isEmbeddedInWebview})}})}})),_.G("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.G(_.P5,{data:function(){return D.data().muteButton}},{toggleButtonViewModel:function(b){var a=b.data;
return _.G(_.VC,{data:function(){var w,h;return Object.assign({},a(),{isToggled:(h=(w=D.isAudioEnabled)==null?void 0:w.call(D))!=null?h:!0})},
onToggle:D.onAudioToggled,useOutlinedIcon:!0})}}),_.G(_.P5,{data:function(){return D.data().theatreModeButton}},{toggleButtonViewModel:function(b){var a=b.data;
return _.G("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.G(_.VC,{data:function(){return Object.assign({},a(),{isToggled:H})},
useOutlinedIcon:!0}))}}),_.G(pdm,{fullscreenButton:function(){return D.data().fullscreenButton}}),_.G(_.E,{cond:function(){return _.fR(V)&&D.data().viewAllButton&&!1},
then:function(){return _.G(_.P5,{data:function(){return D.data().viewAllButton}},{buttonViewModel:_.JX})}}),_.G(_.E,{cond:function(){var b;
return!((b=D.isDesktopPlayPage)==null?0:b.call(D))},
then:function(){return _.G(_.FH,null,_.G(lFV,{enableSaveButton:function(){return _.fR(e)},
saveButton:function(){return D.data().saveButton},
isSaved:D.isSaved,onSaveToggled:function(){return D.onSaveToggled}}),_.G(vFn,{menuButton:function(){return D.data().menuButton}}))}}))))},"wf");
dvw.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var vFn=_.l(function(D){return _.G(_.P5,{data:D.menuButton},{buttonViewModel:_.JX})},"xf"),lFV=_.l(function(D){var t=D.enableSaveButton;
var H=D.saveButton;var e=D.isSaved;var V=D.onSaveToggled;return _.G(_.E,{cond:function(){return t()&&!(H==null||!H())},
then:function(){return _.G(_.P5,{data:function(){var b=_.O(H==null?void 0:H(),_.Ez),a;return{toggleButtonViewModel:Object.assign({},b,{isToggled:(a=e==null?void 0:e())!=null?a:!(b==null||!b.isToggled)})}}},{toggleButtonViewModel:function(b){return _.G(_.VC,{data:b.data,
onToggle:V})}})}})},"yf"),Y1f=_.l(function(D){var t=D.highScoreButton;
var H=D.score;var e=D.formattedScore;var V=D.onScoreChanged;var b=D.isEmbeddedInWebview;return _.G(_.P5,{data:t},{miniAppScoreButtonViewModel:function(a){return _.G(JI4,{data:a.data,score:H,formattedScore:e,onScoreChanged:V,isEmbeddedInWebview:b})}})},"zf"),pdm=_.l(function(D){D=D.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.G(_.FH,null):_.G(_.P5,{data:D},{buttonViewModel:_.JX})},"Af");_.xvf=new _.kI("DESKTOP_CURRENT_PAGE");var yIo=_.l(function(D){var t=D.data;var H=_.r("force_active_time_logging_webview"),e=!1,V=new TCo,b=void 0,a=void 0,w=_.qS().resolve(kl4),h=new GlQ,K=void 0,N=void 0,k=[],T=void 0,c=void 0,U=!1,S=!1,L=!1,J=!1,g=new _.TK,Q=_.qS().resolve(AIn),u=_.qS().resolve(_.TM),R=_.qS().resolve(_.by(uk)),I,tT=(I=_.qS().resolve(_.by(_.xvf)))==null?void 0:I.getCurrentPage(),ZV=!1,ED=0,o$=function(u8){u8.preventDefault();return u8.returnValue=""},jV;
D=_.F(_.KR(!((jV=_.l_("yt-mini-app-is-audio-enabled"))!=null&&!jV),void 0,"WhYQTd"));var i8=D.next().value,g6=D.next().value,Mu;jV=_.F(_.KR(!((Mu=_.l_("exit-mini-app-seen-state"))==null||!Mu),void 0,"jxhCJb"));var LQ=jV.next().value,DO=jV.next().value;Mu=_.F(_.KR(!1,void 0,"MuvDfe"));var fQ=Mu.next().value,yA=Mu.next().value;Mu=_.F(_.KR(void 0,void 0,"u9DLoc"));var T4=Mu.next().value,Mw=Mu.next().value;Mu=_.F(_.KR(void 0,void 0,"rykyJb"));var X6=Mu.next().value,yZ=Mu.next().value;Mu=_.F(_.KR(!0,void 0,
"d8FUvf"));var kQ=Mu.next().value,FX=Mu.next().value;Mu=_.F(_.KR(!1,void 0,"x9XwUb"));var qw=Mu.next().value,oB=Mu.next().value;Mu=_.F(_.KR(!1,void 0,"bcquyc"));var ZO=Mu.next().value,Nw=Mu.next().value;Mu=_.F(_.KR(void 0,void 0,"FMAC5b"));var bY=Mu.next().value,P_=Mu.next().value;Mu=_.F(_.KR(0,void 0,"HUGJEb"));var QV=Mu.next().value,Zf=Mu.next().value,ua=_.DY("mini-app-container-view-model"),$Q=function(){return t().isEmbeddedInWebview},ia=function(){return t().hasPlayNextShelf};
_.F9("yt-page-type-changed",function(u8){if(_.r("enable_is_mini_app_page_active_bugfix"))u8.detail.newPageSubtype==="mini_app"&&u8.detail.newPageType==="ytd-browse"||!kQ()||Hv();else if(u8=_.b$$()==="mini_app",u8!==kQ())if(FX(u8),u8){var iY;u8=(iY=t().playableId)==null?void 0:iY.toString();u8!==void 0&&window.location.href.includes(u8)&&!S&&(J=!0,jf(),$h.value&&nW($h.value))}else u8||Hv()});
_.F9("yt-action",function(u8){u8.detail.actionName==="yt-engagement-panel-visible-changed"&&u8.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&u8.detail.args[2]==="PAmini_app_panel"&&Hv();_.r("enable_is_mini_app_page_active_bugfix")?u8.detail.actionName==="yt-history-load"&&!kQ()&&(tT==null?0:tT.active)?(FX(!0),jf(),$h.value&&nW($h.value)):u8.detail.actionName==="yt-history-load"&&kQ()&&!t().isEmbeddedInWebview&&Yv():kQ()&&u8.detail.actionName==="yt-history-load"&&(J?J=!1:t().isEmbeddedInWebview||
Yv())});
_.Sj(function(){TH()});
_.Mp(function(){jf()},"bLMzme");
var jf=function(){var u8=t().playableId,iY=t().localReleaseId,ct=t().derivedDeviceInterface;if(S)_.Yw(new _.nZ("[MiniAppContainerViewModel] onEnter was called more than once"));else{S=!0;b=new tSv(u8,iY,ct,document.visibilityState==="visible");btn(b);a=new Otw(u8);RCf(w,u8);EF4(h,{showMiniAppAdCommand:t().showMiniAppAdCommand,isEmbeddedInWebview:t().isEmbeddedInWebview,playLogger:b});RGV()&&(c=document.body.style.backgroundColor,_.Br(document.body,"background-color","black"));IR();fe();g=new _.TK;
if(t().isEmbeddedInWebview){if(u8=(new URLSearchParams(window.location.search)).get("postPlayNonce"))eCf(b,u8),ZV=!0;V.initialize({onAudioStateLoaded:function(FF){X9(FF)},
onMuteMiniApp:function(){X9(!1)},
onUnmuteMiniApp:function(){X9(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(FF){ZV||(eCf(b,FF),ZV=!0)},
confirmExitMiniApp:function(){var FF,h$,Qo;return _.Z(function(v1){if(v1.nextAddress==1)return t().confirmExitMiniAppCommand?v1.yield(Promise.race([g.promise,Promise.resolve(!1)]),2):v1.return();(FF=v1.yieldResult)?!t().confirmExitMiniAppCommandEdu||(Qo=(h$=LQ)==null?void 0:h$())!=null&&Qo?CW(t().confirmExitMiniAppCommand):(CW(t().confirmExitMiniAppCommandEdu),_.Yg("exit-mini-app-seen-state","true",2592E6)):CW(t().closeMiniAppCommand);_.n2(v1)})},
onNativeBenchmarkingMessageReceived:function(FF){FF=Fb4(_.h3A(FF));if(_.Ut(FF,_.Al,3,VBV)){var h$=_.Yf(FF,_.Al,3,VBV),Qo=E4V();var v1=YO(Qo.getSeconds())-YO(h$.getSeconds());h$=_.sH(Qo,2)-_.sH(h$,2);v1<0&&h$>0?(v1+=1,h$-=1E9):v1>0&&h$<0&&(--v1,h$+=1E9);v1=(new au).setSeconds(v1);v1=_.tA(v1,2,_.eb(h$),0);_.oE(FF,1,v1)}var Q_;(Q_=N)==null||Q_.returnNativeBenchmarkingMessage(FF)},
multiplayer3pAckStateLoaded:function(FF){Yv(FF)},
exitMiniAppSeenStateLoaded:function(FF){t().confirmExitMiniAppCommandEdu&&DO(FF)},
onNavigateToNewMiniApp:function(){CW(t().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(FF){FF=new URLSearchParams(FF);var h$=void 0;FF.has("invite_code")&&(h$=new EBB,FF=FF.get("invite_code"),h$=_.M3(h$,1,FF));if(FF=h$){var Qo;(Qo=N)==null||Qo.sendGameData(FF)}},
onPauseMiniApp:function(){e=!0;EF()},
onResumeMiniApp:function(){e=!0;Sr()},
onAdFinished:function(FF){h.onAdFinished(FF)}});
t().showMultiplayer3pConsentDialogCommand||g.resolve(!0);CW(t().onContainerReadyCommand)}else eCf(b),g.resolve(!0);Uvv(a,Htf(b));Htf(b).then(function(FF){FF={miniAppPlayData:{postPlayNonce:FF}};var h$,Qo=(h$=t().loggingDirectives)==null?void 0:h$.trackingParams;Qo&&_.Pc().stateChanged(Qo,FF)});
u8=t().showSignInDialogCommand;!TcT()&&u8&&(_.Yg("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),CW(u8));t().confirmExitMiniAppCommand&&R&&(u8=s16(t().confirmExitMiniAppCommand))&&(R.customConfirmationCommand=u8)}},TH=function(){c&&_.Br(document.body,"background-color",c);
U=!1;T&&T.release();a.flush().catch(function(u8){_.Yw(u8)});
w.flush().catch(function(u8){_.Yw(u8)});
FkV(b);wq();N=void 0;uB3(Q)},Hv=function(){FX(!1);
TH();yA(!1);P_(void 0);Mw(void 0);yZ(void 0);ED=0;Zf(0);S=!1},EF=function(){var u8;
(u8=N)==null||u8.onPause();T&&T.release();a.flush().catch(function(iY){_.Yw(iY)});
w.flush().catch(function(iY){_.Yw(iY)});
q1f(b);oB(!0)},Sr=function(){var u8;
(u8=N)==null||u8.onResume();fe();u8=b;u8.isForeground=!0;j0(u8,"PLAY_EVENT_TYPE_PLAY_RESUME");oB(!1)},X9=function(u8){var iY;
(iY=N)==null||iY.onAudioToggled(u8);g6(u8)},Yv=function(u8){t().showMultiplayer3pConsentDialogCommand&&(t().isEmbeddedInWebview&&u8!==void 0&&g.resolve(u8),!u8&&_.b$$()==="mini_app"&&CW(t().showMultiplayer3pConsentDialogCommand))},d4=function(){var u8,iY,ct,FF;
return _.Z(function(h$){if(h$.nextAddress==1){!t().isLivestream||t().disableVideoCapture||(u8=N)!=null&&u8.sendStartGameFrameCapture();iY=(new URL(window.location.href)).searchParams;if(iY.has("invite_code")){var Qo=new EBB,v1=iY.get("invite_code");ct=_.M3(Qo,1,v1);(FF=N)==null||FF.sendGameData(ct)}fQ()||(yA(!0),Qo=b,Qo.state!==1?_.Yw(new _.nZ("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+zbo[Qo.state])):(_.hW("mini_app_ids_without_game_ready").includes(Qo.JSC$16932_miniAppId)&&(Qo.gameReady=
!0),Qo.state=2,Qo.beforeReady=!1,c8(Qo,"ma_ffr"),j0(Qo,"PLAY_EVENT_TYPE_PLAY_READY")));return h$.yield(g.promise,2)}CW(t().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();t().isEmbeddedInWebview||Yv();_.n2(h$)})},Wt=function(){var u8=b;
u8.gameReady=!0;c8(u8,"ma_gr")},bM=function(u8){var iY;
return _.Z(function(ct){if(ct.nextAddress==1)return _.$p(ct,2),ct.yield(PEQ(a,u8),4);if(ct.nextAddress!=2)return _.yM(ct,0);iY=_.Pv(ct);CW(t().showSavingErrorPopupCommand);throw iY;})},AZ=function(){var u8,iY;
return _.Z(function(ct){if(ct.nextAddress==1)return _.$p(ct,2),ct.yield(oF9(a),4);if(ct.nextAddress!=2)return u8=ct.yieldResult,ct.return(u8);iY=_.Pv(ct);CW(t().showLoadingErrorDialogCommand);throw iY;})},z7=function(u8){b.logError(u8)},AW=function(u8,iY,ct){wdf(b,u8,iY,ct)},hy=function(u8,iY){s7o(b,u8,iY)},s5=function(){!H&&t().isEmbeddedInWebview||_.F0();
aF4(b,!0);U||(window.addEventListener("beforeunload",o$,{capture:!0}),U=!0)},W$=function(u8){var iY,ct,FF,h$,Qo,v1,Q_;
return _.Z(function(on){if(on.nextAddress==1)return w&&(!K||K<u8)&&u8>0?on.yield(WkQ(w,u8),3):on.jumpTo(0);iY=on.yieldResult;ct=_.F(iY);FF=ct.next().value;h$=ct.next().value;Qo=FF;v1=h$;((Q_=Qo)==null?0:Q_.displayString)&&v1&&(Mw(v1),yZ(Qo.displayString));_.n2(on)})},nK=function(u8){var iY=t().onBenchmarkingMessageReceivedCommand;
if(iY){var ct=E4V();_.PU(u8,3,VBV,ct);Jl(iY,ay9(u8))}},Y3=function(u8){var iY=t().onGameFrameReceivedCommand;
if(iY){var ct=new Q4;var FF=new DL4;var h$=Xz(u8,1);FF=_.P$(FF,1,h$);u8=_.La(u8,2);u8=_.M3(FF,2,u8);ct=_.oE(ct,2,u8);Jl(iY,VYa(ct))}},R$=function(u8){var iY=t().onGameAudioDataReceivedCommand;
if(iY){var ct=new Q4;var FF=new HU3;u8=_.La(u8,1);FF=_.M3(FF,1,u8);ct=_.oE(ct,4,FF);Jl(iY,VYa(ct))}},KQ=function(){var u8=new URLSearchParams(window.location.search);
if(t().isEmbeddedInWebview&&u8&&u8.get("override_hl")==="true"&&u8.get("hl"))return u8.get("hl");u8=document.documentElement.lang;return u8!==""?u8:If},NH=function(u8){var iY=t().onShareInviteCodeCommand;
if(iY)if(t().isEmbeddedInWebview){var ct=new rUa;u8=_.M3(ct,1,u8);Jl(iY,UCQ(u8))}else ct=t().inviteCodeShareClientParamIdentifier,Q.clientParams.set(ct,{miniAppClientParams:{inviteCode:u8}}),CW(iY)},SM=function(u8){var iY,ct,FF;
return _.Z(function(h$){if(h$.nextAddress==1)return iY=t().onMiniAppOpenYtContentRequested,w&&_.r("enable_open_yt_content")&&iY?h$.yield(IFm(w,u8),3):h$.jumpTo(0);ct=h$.yieldResult;if(ct==="OK")if(t().isEmbeddedInWebview){var Qo=new QJm;FF=j4(Qo,2,IW,r4(u8));Jl(iY,zwn(FF))}else u.clientData.set("video_id",u8),CW(iY);_.n2(h$)})},ov=function(u8){ED+=_.sH(u8,3);
u8=Math.min(Math.log(1+ED/15E6*9)/Math.log(10),.99);Zf(u8);c9(u8)},c9=_.A_(function(u8){var iY=t().updateLoadingProgressCommand;
if(iY){var ct=new QJm;u8=j4(ct,3,IW,_.RB(u8));Jl(iY,zwn(u8))}},100),kv=function(u8){return NCQ(h,u8)},fe=function(){var u8,iY;
((u8=_.d0V())==null?void 0:(iY=u8.wakeLock)==null?void 0:iY.request)!=null&&_.d0V().wakeLock.request("screen").then(function(ct){T=ct}).catch(function(){})},$h=_.ep("iframe");
_.Mp(function(){t().isSupportedCountry&&(TcT()||_.r("enable_sign_in_promo")||!t().showSignInDialogCommand?$h.value&&nW($h.value):CW(t().onMiniAppReadyCommand))},"ASuFde");
var G4=function(){return _.G("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return fQ()?0:-1},
el:$h})},nW=function(u8,iY){iY=iY===void 0?!1:iY;
var ct=gi();ct&&(iY||ct.toString()!==u8.getAttribute("src"))&&(N=Um8(t().source,{isAudioEnabled:i8,onFirstFrameReady:d4,onGameReady:Wt,onSave:bM,onLoad:AZ,onError:z7,onSdkCalled:AW,onSdkPerformanceUpdate:hy,onClick:s5,onSendHighScore:W$,onBenchmarkingMessageReceived:nK,getLanguage:KQ,onShareInviteCode:NH,onResourceLoaded:ov,onOpenYTContent:SM,onShowMiniAppAd:kv,onGameFrameReceived:Y3,onGameAudioReceived:R$},u8,ct),mV(u8,"load",function(){c8(b,"ma_il");mV(u8,"load",function(){nW(u8,!0)})}),_.zF(u8,
ct))},gi=function(){var u8=t().url;
if(u8&&(u8=_.YV(u8),u8!==null)){if(t().source&&t().source==="MINI_APP_SOURCE_GAMESNACKS")u8=_.N3(u8,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.r("enable_origin_query_parameter_bugfix")){var iY=_.ns(_.tlV(u8.toString()));iY=new URLSearchParams(iY||"");iY.set("origin",window.location.origin);iY=iY.toString();u8=_.X7(u8).toString();u8=_.MN(hgn.exec(u8)[0]+(iY.trim()?"#"+iY:""))}return u8}},vU=function(){var u8={};
u8=_.jQ("yt-mini-app-container-view-model__loading-screen",(u8["yt-mini-app-container-view-model__loading-screen--fade-out"]=fQ,u8));var iY=function(){return fQ()?1:QV()};
return _.G("div",{class:u8},_.G(_.P5,{data:function(){return t().splashScreen}},{miniAppSplashScreenViewModel:function(ct){return _.G(LkB,{data:ct.data,
loadingProgress:iY})}}))},vI=function(){var u8={};
return _.G("div",{class:_.jQ("yt-mini-app-container-view-model__pause-interstitial",(u8["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!qw()},u8["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=qw,u8))},_.G(_.P5,{data:function(){return t().splashScreen}},{miniAppSplashScreenViewModel:function(iY){return _.G(LkB,{data:iY.data,
forPaused:!0})}}))},IR=function(){k=[];
k.push(_.fz(window,"visibilitychange",function(){L||e&&$Q()||(document.visibilityState==="visible"?Sr():EF())}));
k.push(_.fz(window,"pagehide",function(){TH()}));
k.push(_.fz(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&ua.value.dispatchEvent(new Event("tap"))},0)}));
k.push(_.fz(ua.value,"pointerdown",function(){aF4(b,!1)},!0));
k.push(_.fz(ua.value,"pause",function(){L=!0;EF()}));
k.push(_.fz(ua.value,"play",function(){L=!1;Sr()}));
k.push(_.fz(ua.value,"exit",function(){TH()}));
var u8=navigator.keyboard,iY=u8&&u8.lock;k.push(_.fz(window,rhn,function(){Nw(Uy4());Uy4()?(t().hasPlayNextShelf&&OX("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Zy("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),iY&&u8.lock(["Escape"])):(t().hasPlayNextShelf&&Zy("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),OX("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),iY&&u8.unlock())}));
t().showMultiplayer3pConsentDialogCommand&&k.push(_.fz(window,"yt-playables-ack-3p-data-usage",function(){Q7v(w)}));
t().confirmExitMiniAppCommandEdu&&k.push(_.fz(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Yg("exit-mini-app-seen-state","true",2592E6)}));
t().onGameAudioDataReceivedCommand&&k.push(_.fz(window,"message",function(ct){ct=ct.event_;var FF,h$=(FF=$h.value)==null?void 0:FF.src;if(h$&&ct.origin===(new URL(h$)).origin&&ct.data&&ct.data.type==="GAME_AUDIO"&&ct.data.audio&&ct.data.audio.length>0)if(_.r("enable_sending_unwrapped_game_audio_as_serialized_metadata"))NcR(t().onGameAudioDataReceivedCommand,ct.data.audio);else{var Qo=new FileReader;Qo.onload=function(){var v1=new Q4;var Q_=new HU3;Q_=_.M3(Q_,1,Qo.result);v1=_.oE(v1,4,Q_);Jl(t().onGameAudioDataReceivedCommand,
VYa(v1))};
Qo.readAsDataURL(new Blob([ct.data.audio]))}}))},wq=function(){k.forEach(function(u8){MT(u8)});
window.removeEventListener("beforeunload",o$,{capture:!0})},CW=function(u8){u8&&GYV(u8,t().isEmbeddedInWebview||!1)},Zy=function(u8,iY){u8=_.F(ua.value.getElementsByClassName(u8));
for(var ct=u8.next();!ct.done;ct=u8.next())ct.value.classList.add(iY)},OX=function(u8,iY){u8=_.F(ua.value.getElementsByClassName(u8));
for(var ct=u8.next();!ct.done;ct=u8.next())ct.value.classList.remove(iY)};
return function(){var u8={};u8=_.jQ("yt-mini-app-container-view-model",(u8["yt-mini-app-container-view-model--desktop"]=!0,u8["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return t().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},u8["yt-mini-app-container-view-model--ios-web-view"]=RGV(),u8["yt-mini-app-container-view-model--no-top-bar"]=function(){return!t().topBar},u8["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return t().hasPlayNextShelf},u8["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return t().hasPlayNextShelf},u8["yt-mini-app-container-view-model--show-peek-below"]=function(){return!ZO()&&t().hasPlayNextShelf},u8));
var iY={};iY=_.jQ("yt-mini-app-container-view-model__content",(iY["yt-mini-app-container-view-model__content--desktop-content"]=!0,iY["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return t().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},iY["yt-mini-app-container-view-model--desktop-play-page"]=function(){return t().hasPlayNextShelf},iY));
return _.G("mini-app-container-view-model",{el:ua},_.G("div",{class:u8},_.G(_.E,{cond:function(){return t().topBar&&!ZO()},
then:function(){return _.G(_.P5,{data:function(){return t().topBar}},{miniAppTopBarViewModel:function(ct){return _.G(dvw,{data:ct.data,
isAudioEnabled:i8,onAudioToggled:function(FF){X9(FF)},
score:T4,formattedScore:X6,onScoreChanged:function(FF){K=FF},
isEmbeddedInWebview:$Q,isSaved:bY,onSaveToggled:function(FF){P_(FF)},
isExitMiniAppSeen:LQ,isDesktopPlayPage:ia})}})}}),_.G("div",{class:iY},_.G(_.E,{cond:kQ,
then:function(){return G4()}}),_.G(_.E,{cond:function(){return t().isLivestream},
then:function(){return vI()}}),_.G(_.E,{cond:function(){return!t().isEmbeddedInWebview},
then:function(){return vU()}}))))}()},"Df");
yIo.idomCompat=!0;_.hB(yIo,"mini-app-container-view-model",{props:{data:_.ij}});var BCf=_.l(function(D){var t=D.data;return _.G("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.G("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.$X(function(){var H=t().onTap;H&&_.IQ(H)})},_.G(_.E,{cond:function(){return t().icon},
then:function(H){return _.G(_.U7,{icon:function(){return H().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.G("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return t().title})))},"Ef");
BCf.idomCompat=!0;var zCm=_.l(function(D){var t=_.DY("div"),H=_.F(_.KR(void 0,void 0,"dg3xff")),e=H.next().value,V=H.next().value;H=_.F(_.KR(void 0,void 0,"AgHNfc"));var b=H.next().value,a=H.next().value;H=_.F(_.KR(void 0,void 0,"fuTKCc"));var w=H.next().value,h=H.next().value,K=function(){var J=e();return J!==void 0?Math.abs(J):void 0},N=function(){var J=K();
return J===void 0||J<=3},k=function(){var J=K();
var g=b(),Q=w();J=J!==void 0&&g!==void 0&&Q!==void 0?g-Q-J:void 0;return J===void 0||J<=3},T=function(J){t.value&&t.value.scrollBy({top:0,
left:(_.YC("HTML_DIR")==="rtl"?-1:1)*J*t.value.clientWidth,behavior:"smooth"})},c=function(){var J;
V((J=t.value)==null?void 0:J.scrollLeft);var g;a((g=t.value)==null?void 0:g.scrollWidth);var Q;h((Q=t.value)==null?void 0:Q.clientWidth)},U=function(){T(-.5)},S=function(){T(.5)};
H=_.$X(function(){c()});
_.SG(function(){c();if(t.value&&window.ResizeObserver){var J=new ResizeObserver(c);J.observe(t.value);_.Sj(function(){J.disconnect()})}});
var L={};return _.G("yt-sponsorships-scrollable-shelf",{class:_.jQ("ytdSponsorshipsScrollableShelfHost",D.className)},_.G("div",{class:_.jQ("ytdSponsorshipsScrollableShelfContent",(L.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return D.data().previousButton&&D.data().nextButton&&!N()&&!k()},L.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return D.data().previousButton&&!N()&&k()},L.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return D.data().nextButton&&
N()&&!k()},L)),
el:t,"on:scroll":H},D.children),_.G(_.E,{cond:function(){return!N()},
then:function(){return _.G(_.P5,{data:function(){return D.data().previousButton}},{buttonViewModel:function(J){return _.G(_.JX,{data:J.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:U})}})}}),_.G(_.E,{cond:function(){return!k()},
then:function(){return _.G(_.P5,{data:function(){return D.data().nextButton}},{buttonViewModel:function(J){return _.G(_.JX,{data:J.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:S})}})}}))},"Ff");
zCm.idomCompat=!0;var tVg=_.l(function(D){var t=D.data;D={};return _.G("yt-sponsorships-hub",{class:_.jQ("ytdSponsorshipsHubHost",(D.ytdSponsorshipsHubHostIndented=function(){return t().indented},D))},_.G("div",{class:"ytdSponsorshipsHubHeader"},_.G("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.G("div",{class:"ytdSponsorshipsHubAvatar"},_.G(_.P5,{data:function(){return t().avatar}},{avatarViewModel:_.qi})),_.G(_.E,{cond:function(){return t().badgeImage},
then:function(H){return _.G("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.G("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.G("div",{class:"ytdSponsorshipsHubBadge"},_.G(_.bi,{data:H,targetWidth:24,targetHeight:24,alt:""}))))}})),_.G("div",{class:"ytdSponsorshipsHubDetails"},_.G("div",{class:"ytdSponsorshipsHubTierName"},function(){return t().tierName}),_.G("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return t().membershipType}),_.G("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return t().membershipDurationOrExpiry})),_.G("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.G(_.P5,{data:function(){return t().manageButton}},{buttonViewModel:function(H){return _.G(_.JX,{data:H.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.G(_.P5,{data:function(){return t().actionMenuButton}},{buttonViewModel:function(H){return _.G(_.JX,{data:H.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.G("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return t().perksTitle}),_.G(zCm,{data:function(){return{previousButton:t().previousPerkButton,
nextButton:t().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.G("div",{class:"ytdSponsorshipsHubPerkCards"},_.G(_.P5,{data:function(){return t().perkCards}},{sponsorshipsHubPerkCardViewModel:BCf}),_.G(_.E,{cond:function(){return t().viewAllPerksButton},
then:function(H){return _.G(DuF,{data:H})}}))))},"Gf");
tVg.idomCompat=!0;var DuF=_.l(function(D){var t=D.data;return _.G("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.G(_.P5,{data:function(){return t().button}},{buttonViewModel:_.JX}),_.G("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.G("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return t().title}),_.G("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return t().subtitle})))},"Hf");
DuF.idomCompat=!0;_.hB(tVg,"yt-sponsorships-hub",{props:{data:_.ij}});_.HKF=_.l(function(D){var t=D.data;return _.G("yt-dual-avatar-view-model",{class:_.jQ("ytDualAvatarViewModelHost",D.className),style:_.O7({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var H;return((H=t().badgeCutoutRadius)!=null?H:14)+"px"}})},_.G("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.G(_.P5,{data:function(){return t().startAvatar}},{avatarViewModel:_.qi}),_.G(_.P5,{data:function(){return t().endAvatar}},{avatarViewModel:_.qi})),_.G(_.P5,{data:function(){return t().badge}},
{contentPreviewImageViewModel:function(H){return _.G("div",{class:"ytDualAvatarViewModelBadge"},_.G(_.S_,{data:H.data}))}}))},"If");
_.HKF.idomCompat=!0;var VVF=_.l(function(D){var t=D.data;var H,e=!((H=_.qS().resolve(_.by(_.tB)))==null||!H());D=_.jj(function(){var N,k,T=e?(N=t().header)==null?void 0:N.backgroundColorDarkMode:(k=t().header)==null?void 0:k.backgroundColorLightMode;if(T!==void 0)return _.Qk(T)},void 0,"TDdh7d");
H=_.jj(function(){var N,k;return e?(N=t().header)==null?void 0:N.backgroundImagePart1Dark:(k=t().header)==null?void 0:k.backgroundImagePart1Light},void 0,"X0peMe");
var V=_.jj(function(){var N,k;return e?(N=t().header)==null?void 0:N.backgroundImagePart2Dark:(k=t().header)==null?void 0:k.backgroundImagePart2Light},void 0,"an0Hzd"),b=_.jj(function(){return _.YC("HTML_DIR")==="rtl"},void 0,"BltEgb"),a=_.DY("yt-sponsorships-perks-list"),w=!1,h=function(){var N=a.value;
if(N&&!w){var k,T=(k=N.parentElement)==null?void 0:k.parentElement;if(T)for(N=N.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),k=0;k<N.length;++k){var c=N[k];if(c instanceof HTMLElement){T.scrollTo({top:c.offsetTop+c.clientHeight/2-T.clientHeight/2,behavior:"smooth"});w=!0;break}}}};
_.XH(function(){var N=a.value;if(N&&window.ResizeObserver){var k=new ResizeObserver(h);k.observe(N);_.Sj(function(){k.disconnect()})}});
var K={};return _.G("yt-sponsorships-perks-list",{el:a,class:_.jQ("ytdSponsorshipsPerksListHost",(K.ytdSponsorshipsPerksListHorizontalPadding=function(){return t().horizontalPaddingEnabled},K))},_.G("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.G("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.O7({"background-color":D})},_.G("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.G(_.E,{cond:H,then:function(N){var k={};return _.G("div",{class:_.jQ((k.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=e,k.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!e,k.ytdSponsorshipsPerksListFlipped=b,k))},_.G(_.bi,{data:N,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.G("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.G(_.E,{cond:V,
then:function(N){var k={};return _.G("div",{class:_.jQ((k.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=e,k.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!e,k.ytdSponsorshipsPerksListFlipped=b,k))},_.G(_.bi,{data:N,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.G("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.G(_.P5,{data:function(){var N;
return(N=t().header)==null?void 0:N.dualAvatar}},{dualAvatarViewModel:_.HKF})))),_.G("div",{class:"ytdSponsorshipsPerksListBody"},_.G("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return t().title}),_.G(_.E,{cond:function(){return t().perks},
then:function(N){return _.G(_.nY,{each:N},function(k,T){var c={};return _.G("div",{class:_.jQ("ytdSponsorshipsPerksListPerkContainer",(c.ytdSponsorshipsPerksListSelectedPerk=function(){var U=T(),S=t().selectedPerkIndex;return U===S},c))},_.G(_.E,{cond:function(){return T()>0},
then:function(){return _.G("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.G("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.G(_.E,{cond:function(){return k.icon},
then:function(U){return _.G(_.U7,{icon:function(){return U().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.G("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.G("div",{class:"ytdSponsorshipsPerksListPerkTitle"},k.title),_.G("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.G(_.$7,{text:k.description})),_.G(_.E,{cond:function(){return k.instructions},
then:function(){var U,S;return _.G("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.G("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(U=k.instructions)==null?void 0:U.title),_.G("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.G(_.$7,{text:(S=k.instructions)==null?void 0:S.text})))}}))),_.G(_.E,{cond:function(){return k.emoji},
then:function(U){return _.G("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.G(_.nY,{each:function(){return U()}},function(S){return _.G(_.bi,{data:S,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.G(eRt,{data:k}))})}})))},"Jf");
VVF.idomCompat=!0;var eRt=_.l(function(D){var t=D.data;var H=function(a,w){return a===w},e=function(){var a=t();
a=_.O(a==null?void 0:a.badgesShelf,CSV);return a!==void 0&&a!==null?a:{previousButton:{},nextButton:{}}},V=_.ep("div"),b=function(){var a=V.value;
if(a){var w=a.parentElement;if(w){a=a.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var h=0;h<a.length;++h){var K=a[h];if(K instanceof HTMLElement){w.scrollTo({left:K.offsetLeft+K.clientWidth/2-w.clientWidth/2,behavior:"instant"});break}}}}};
_.XH(function(){var a=V.value;if(a){var w=new ResizeObserver(b);w.observe(a);_.Sj(function(){w.disconnect()})}});
return _.G("div",null,_.G(_.E,{cond:function(){return t().badges},
then:function(a){return _.G(zCm,{data:e},_.G("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:V},_.G(_.nY,{each:function(){return a()}},function(w,h){var K={},N={},k={};
return _.G("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.G(_.E,{cond:function(){return h()>0},
then:function(){return _.G("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.G("div",{class:_.jQ("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(K.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return H(h(),t().currentBadgeIndex)},K.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!H(h(),t().currentBadgeIndex)},K))},_.G("div",{class:_.jQ("ytdSponsorshipsPerksListLoyaltyBadge",(N.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return H(h(),
t().currentBadgeIndex)},N.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!H(h(),t().currentBadgeIndex)},N))},_.G(_.E,{cond:function(){return w.image},
then:function(T){var c={};return _.G("div",{class:_.jQ((c.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return H(h(),t().currentBadgeIndex)},c.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!H(h(),t().currentBadgeIndex)},c))},_.G(_.bi,{data:T,
alt:""}))}})),_.G("div",{class:_.jQ("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(k.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return H(h(),t().currentBadgeIndex)},k))},w.title)))})))}}))},"Kf");
eRt.idomCompat=!0;_.hB(VVF,"yt-sponsorships-perks-list",{props:{data:_.ij}});_.hB(_.l(function(D){return _.G("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.G(_.E,{cond:function(){return D.data().image},
then:function(t){return _.G(_.bi,{className:"ytwFantasyEmptyStateViewModelImage",data:t,ariaHidden:!0,alt:""})}}),_.G(_.$7,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return D.data().title}}),_.G(_.$7,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return D.data().subtitle}}),_.G(_.P5,{data:function(){return D.data().primaryButton}},{buttonViewModel:function(t){return _.G(_.JX,{data:t.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Lf"),"ytw-fantasy-empty-state-view-model",{props:{data:_.ij}});var bKt;var qDi=_.l(function(D){var t=D.data;var H=D.uniqueId;var e=D.overrides;D=_.jj(function(){var V,b=((V=t().timedAnimationData)==null?void 0:V.animationTiming)||[];return{uniqueId:H(),timings:b,experimentEnabled:b.length>0,enabled:b.length>0}},void 0,"hiuXI");
return _.G("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.G(dtf,{settings:D},_.G(_.P5,{data:function(){return t().buttonRenderer}},{buttonRenderer:function(V){return _.G(_.i4,{data:V.data,
buttonOverrides:e})}})))},"Mf");
qDi.idomCompat=!0;_.hB(qDi,"timed-animation-button-renderer",{props:{data:_.ij,uniqueId:_.ij,overrides:_.ij}});var or=function(){var D=_.X.apply(this,arguments)||this;D.hideJoinButtonBeforeSubscribed=_.r("hide_join_button_before_subscribed");D.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return D};
_.P(or,_.X);_.q=or.prototype;_.q.hasShowDialogCommand=function(D){return!!_.O(D,lQ6)};
_.q.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"}}}};
_.q.updateJoinButtonOverrides=function(){var D,t;(D=_.Kg(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(t=D.polymerController)==null||t.set("overrides",this.joinButtonOverrides);if(D=_.Kg(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))D.overrides=this.joinButtonOverrides};
_.q.handleButtonRefreshAction=function(D){if(D=_.O(D,Kfn))this.set("data.membershipButton",D.membershipButton),this.notifyPath("data.membershipButton")};
_.q.onYtServiceRequestError=function(D){_.y2(this.hostElement,D.detail.error.message)};
_.q.onKeydown=function(D){if(D.key==="Enter"){var t;(t=this.data)!=null&&t.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.q.handleUnsubscribeAction=function(){var D,t,H;((D=this.data)==null?void 0:(t=D.membershipButton)==null?void 0:(H=t.buttonRenderer)==null?void 0:H.style)==="STYLE_PRIMARY"&&_.Kg(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.ql.Object.defineProperties(or.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.subscriptionStateEntity)==null||!D.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var D,t=(D=this.data)==null?void 0:D.membershipButton,H;D=(t==null?void 0:t.buttonRenderer)||_.O(t==null?void 0:(H=t.timedAnimationButtonRenderer)==null?void 0:H.buttonRenderer,_.aj);return(D==null?void 0:D.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(D==null?void 0:D.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(D==null?void 0:D.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var D;if(this.hasShowDialogCommand((D=this.data)==null?void 0:D.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var D;if(this.hasShowDialogCommand((D=this.data)==null?void 0:D.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.attributedTitle)}}});
or.prototype.onYtServiceRequestError=or.prototype.onYtServiceRequestError;or.prototype.updateJoinButtonOverrides=or.prototype.updateJoinButtonOverrides;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],or.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],or.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.sx),_.x("design:type",Object)],or.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],or.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.BO),_.x("design:type",Object)],or.prototype,"ironButtonState",void 0);_.d([_.M(),_.x("design:type",Object)],or.prototype,"data",void 0);_.d([_.m("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.x("design:type",Object),_.x("design:paramtypes",[])],or.prototype,"hideJoin",null);
_.d([_.M(),_.x("design:type",String)],or.prototype,"subscribeKey",void 0);_.d([_.M({selectorArgs:["subscribeKey"],selector:c4V}),_.x("design:type",Object)],or.prototype,"subscriptionStateEntity",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],or.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.d([_.m("subscriptionStateEntity"),_.M({reflectToAttribute:!0}),_.x("design:type",Object),_.x("design:paramtypes",[])],or.prototype,"subscribed",null);
_.d([_.m("subscribed","data.membershipButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],or.prototype,"joinButtonOverrides",null);_.d([_.m("data.navigationEndpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],or.prototype,"channelNameTabIndex",null);_.d([_.m("data.navigationEndpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],or.prototype,"channelNameRole",null);
_.d([_.m("data.attributedTitle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],or.prototype,"hasAttributedTitle",null);_.d([_.Os("joinButtonOverrides"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],or.prototype,"updateJoinButtonOverrides",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],or.prototype,"onYtServiceRequestError",null);
_.d([_.Y({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],or);
var FDH=_.E_()(or,"ytd-video-owner-renderer",function(){if(bKt===void 0){var D=document.createElement("template");_.n(D,'\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"><yt-attributed-string id="attributed-channel-name" data="[[data.attributedTitle]]" hidden$="[[!hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></yt-attributed-string><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" hidden="[[hasAttributedTitle]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);bKt=D}D=bKt;return D},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.hB(_.l(function(D){var t=D.data;var H;D=_.F(_.KR(!((H=_.l_("yt-mini-app-is-theater-mode-enabled"))==null||!H),void 0,"i2pjVd"));var e=D.next().value,V=D.next().value;H=_.F(_.KR(!1,void 0,"ga7V5c"));var b=H.next().value,a=H.next().value;_.XH(function(){var K=_.fz(window,rhn,function(){a(Uy4())});
_.Sj(function(){MT(K)})});
var w;H=(w=_.qS().resolve(_.by(mef)))!=null?w:function(){return _.G("div",null)};
_.z0("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){V(!0);_.Yg("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.z0("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){V(!1);_.Yg("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
w={};D={};var h={};return _.G("mini-app-play-page-renderer",{class:_.jQ("miniAppPlayPageRendererHost",(w.miniAppPlayPageRendererHostDetailsView=function(){return!e()},w))},_.G("div",{class:_.jQ("miniAppPlayPageRendererGameContainer",(D.miniAppPlayPageRendererGameContainerDetailsView=function(){return!e()},D))},_.G(_.P5,{data:function(){return t().containerViewModel}},{miniAppContainerViewModel:yIo}),_.G(_.E,{cond:function(){return t().channel&&t().subscribeButton},
then:function(){var K={};return _.G("div",{class:_.jQ("miniAppPlayPageRendererChannelContainer",(K.miniAppPlayPageRendererHideVisibility=function(){return b()},K))},_.G(_.P5,{data:function(){return t().channel}},{videoOwnerRenderer:function(N){return _.G(FDH,{data:N.data})}}),_.G(_.P5,{data:function(){return t().subscribeButton}},{subscribeButtonViewModel:function(N){return _.G(_.qY,{data:N.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.G(_.E,{cond:function(){return!e()&&t().description},
then:function(){var K={};return _.G("div",{class:_.jQ("miniAppPlayPageRendererMiniAppDescriptionWrapper",(K.miniAppPlayPageRendererHideVisibility=function(){return b()},K))},_.G("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return t().description}))}})),_.G("div",{class:_.jQ("miniAppPlayPageRendererPlayNextContainer",(h.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!e()},h.miniAppPlayPageRendererHideVisibility=function(){return b()},h))},_.G(_.P5,{data:function(){return t().sectionList}},
{sectionListRenderer:H})))},"Nf"),"mini-app-play-page-renderer",{props:{data:_.ij}});var P8=function(){var D=_.X.apply(this,arguments)||this;D.isSearch=!1;D.isConstrainedList=!1;D.hasChipsBar=!1;D.inReplyPanel=!1;D.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"}};D.monitorScroll=!0;D.SCROLL_ANIMATION_DURATION_MS=300;D.nextContinuation={continuationType:"sectionListContinuation"};return D};
_.P(P8,_.X);_.q=P8.prototype;
_.q.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(D){switch(D.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.r("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.r("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.q.created=function(){var D=this;this.JSC$17071_scrollAnimation=new _.ka(function(t){D.hostElement.scrollTop=t})};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.q.getItemsPath=function(){return"data.contents"};
_.q.replacePrimaryContent=function(D){this.set("data.contents",D)};
_.q.computeHasSortFilter=function(D){return!!D&&!!D.sortFilterSubMenuRenderer};
_.q.computeShouldScrollInPanel=function(D){var t;return!!(D==null?0:(t=D.scrollPaneStyle)==null?0:t.scrollable)};
_.q.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.kL(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.q.scrollToTop=function(){this.hostElement.scrollTop=0};
_.q.scrollToItemSection=function(D){if(D=this.getItemByIdentifier(D))D=this.getScrollPositionForItem(D),this.hostElement.scrollTop!==D&&this.JSC$17071_scrollAnimation.start(this.hostElement.scrollTop,D,this.SCROLL_ANIMATION_DURATION_MS)};
_.q.getItemByIdentifier=function(D){var t=this.contents.querySelectorAll("ytd-item-section-renderer");if(t&&t.length!==0){var H=Array.from(t).findIndex(function(e){return e.sectionIdentifier===D});
return t[H===-1?0:H]}};
_.q.getScrollPositionForItem=function(D){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===D)return 0;D=_.dM(D).y+this.hostElement.scrollTop-_.dM(this.hostElement).y;return Math.min(D,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.ql.Object.defineProperties(P8.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.targetId)==="browse-feedFEclips"}}});
P8.prototype.onScroll=P8.prototype.onScroll;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.SL.YtLazyListBehavior),_.x("design:type",Object)],P8.prototype,"ytLazyListBehavior",void 0);_.d([_.C(_.cz.YtNextContinuationBehavior),_.x("design:type",Object)],P8.prototype,"ytNextContinuationBehavior",void 0);
_.d([_.C(_.WBV),_.x("design:type",Object)],P8.prototype,"ytBooleanLogicBehavior",void 0);_.d([_.C(_.T_),_.x("design:type",Object)],P8.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],P8.prototype,"data",void 0);_.d([_.M({value:2}),_.x("design:type",Number)],P8.prototype,"initialCount",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],P8.prototype,"autoFill",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.x("design:type",Boolean)],P8.prototype,"hasSortFilter",void 0);_.d([_.M({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.x("design:type",Boolean)],P8.prototype,"hideBottomSeparator",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.x("design:type",Boolean)],P8.prototype,"shouldScrollInPanel",void 0);
_.d([_.M(),_.x("design:type",Object)],P8.prototype,"isSearch",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],P8.prototype,"isConstrainedList",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],P8.prototype,"responsiveSizing",void 0);_.d([_.M(),_.x("design:type",Object)],P8.prototype,"hasChipsBar",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],P8.prototype,"pageSubtype",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],P8.prototype,"engagementPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],P8.prototype,"liveChatEngagementPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],P8.prototype,"inReplyPanel",void 0);_.d([_.o5("#action-button"),_.x("design:type",HTMLElement)],P8.prototype,"actionButton",void 0);_.d([_.M(),_.x("design:type",Object)],P8.prototype,"scrollUpButtonData",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],P8.prototype,"engagementPanelDropdown",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],P8.prototype,"engagementPanelDialog",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],P8.prototype,"isClipList",null);_.d([_.o5("#contents"),_.x("design:type",HTMLElement)],P8.prototype,"monitorScrollElement",void 0);_.d([_.o5("#contents"),_.x("design:type",HTMLElement)],P8.prototype,"contents",void 0);
_.d([_.rx("scroll"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],P8.prototype,"onScroll",null);_.d([_.Y({is:"ytd-section-list-renderer",disableElementRegistration:!0})],P8);
var aVg=_.E_()(P8,"ytd-section-list-renderer",function(){if(CBn===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);CBn=D}D=CBn;return D},{mode:1});var wke;var ZKt;var s$Q;var hRZ;var nq=function(){return _.X.apply(this,arguments)||this};
_.P(nq,_.X);nq.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
nq.prototype.onLikeButtonClick=function(D){D.stopPropagation();D.preventDefault()};
_.ql.Object.defineProperties(nq.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)!=null&&D.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)})}}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],nq.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],nq.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],nq.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],nq.prototype,"ytRendererStamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],nq.prototype,"data",void 0);
_.d([_.M({selectorArgs:["data.likeStatusEntityKey"],selector:xX}),_.x("design:type",Object)],nq.prototype,"likeStatusEntity",void 0);_.d([_.m("data","likeStatusEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],nq.prototype,"likeButtonRenderer",null);_.d([_.Y({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],nq);
_.p(nq,"ytd-slim-metadata-toggle-button-renderer",function(){if(hRZ!==void 0)return hRZ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
return hRZ=D},{mode:1});var Cq=function(){var D=_.X.apply(this,arguments)||this;D.minimizePipBreakages=_.r("web_pip_minimize_breakages");D.showEqualizer=_.r("web_enable_playlist_video_lockup_equalizer");D.watchColorUpdate=_.r("kevlar_watch_color_update");D.actionMap={};return D};
_.P(Cq,_.X);_.q=Cq.prototype;_.q.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"}}}};
_.q.computeEditableClass=function(D){return D&&D.menu?"editable":""};
_.q.computeSelected=function(D){return!(D==null||!D.selected)};
_.q.computeUseColorPalette=function(D){return!!((D==null?0:D.lightColorPalette)&&(D==null?0:D.darkColorPalette))};
_.q.computeLargerPlaylistThumbs=function(D,t){return _.r("web_enable_playlist_bigger_thumbnails")&&!t};
_.q.computeShowPlayIcon=function(D){return!!D&&_.r("web_use_play_icon_for_playlist_panel_video_renderer")};
_.q.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.q.onYtServiceRequestSent=function(D,t){t.endpoint&&this.isHideEnclosingAction(t.endpoint)&&!this.selected&&wWV(_.k$(),this.data.videoId)};
_.q.isHideEnclosingAction=function(D){var t=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",D);D=this.get("likeEndpoint.status",D)==="INDIFFERENT";return t||D};
_.q.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.q.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.ql.Object.defineProperties(Cq.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var D;return!!(this.withinMiniplayer&&((D=this.data)==null?0:D.actionButtons))}}});
Cq.prototype.onYtServiceRequestSent=Cq.prototype.onYtServiceRequestSent;Cq.prototype.canReorderChanged=Cq.prototype.canReorderChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Cq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Cq.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Cq.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.jL),_.x("design:type",Object)],Cq.prototype,"ytdLockupBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Cq.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Cq.prototype,"withinMiniplayer",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Cq.prototype,"minimizePipBreakages",void 0);_.d([_.M({computed:"computeSelected(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Cq.prototype,"selected",void 0);
_.d([_.M({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Cq.prototype,"useColorPalette",void 0);_.d([_.M({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Cq.prototype,"largerPlaylistThumbs",void 0);_.d([_.M(),_.x("design:type",Object)],Cq.prototype,"showEqualizer",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Cq.prototype,"canReorder",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Cq.prototype,"touchPersistentDragHandle",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Cq.prototype,"handleIsHovered",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Cq.prototype,"watchColorUpdate",void 0);_.d([_.M(),_.x("design:type",String),_.x("design:paramtypes",[])],Cq.prototype,"reorderIcon",null);
_.d([_.M({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Cq.prototype,"showPlayIcon",void 0);_.d([_.M(),_.x("design:type",String),_.x("design:paramtypes",[])],Cq.prototype,"playIcon",null);_.d([_.m("largerPlaylistThumbs"),_.x("design:type",Number),_.x("design:paramtypes",[])],Cq.prototype,"thumbnailWidth",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Cq.prototype,"showActionButtons",null);
_.d([_.mx("canReorder"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cq.prototype,"canReorderChanged",null);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],Cq.prototype,"onYtServiceRequestSent",null);_.d([_.Y({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],Cq);
_.p(Cq,"ytd-playlist-panel-video-renderer",function(){if(s$Q!==void 0)return s$Q;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n      <template is="dom-if" if="[[showPlayIcon]]" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="play-icon" class="style-scope ytd-playlist-panel-video-renderer">\n          <yt-icon default-to-filled="true" icon="[[playIcon]]" size="12" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n        </span>\n      </template>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" 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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return s$Q=D},{mode:2});var mz=function(){return _.X.apply(this,arguments)||this};
_.P(mz,_.X);mz.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],mz.prototype,"data",void 0);_.d([_.Y({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],mz);
_.p(mz,"ytd-playlist-panel-supported-items",function(){if(ZKt!==void 0)return ZKt;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return ZKt=
D},{mode:1});Pfv=!0;R7f("\\P{N}");var XBD;var GVH=_.OT("END_OF_PLAYLIST",void 0,"End of playlist"),E3e=_.OT("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Ms=function(){var D=_.X.apply(this,arguments)||this;D.minimizePipBreakages=_.r("web_pip_minimize_breakages");D.hideHeaderText=!1;D.useColorPalette=!1;D.collapsed=!1;D.collapsedPreServerOverride="not_tracked";D.isHovered=!1;D.modernPanels=_.r("kevlar_watch_modern_panels");D.expandLabel=_.OT("MINIPLAYER_EXPAND_LABEL");D.collapseLabel=_.OT("MINIPLAYER_COLLAPSE_LABEL");
D.isFloating=!1;D.metaPanel=!1;D.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};D.currentIndex=void 0;return D};
_.P(Ms,_.X);_.q=Ms.prototype;
_.q.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"}}}};
_.q.created=function(){this.scrollThrottle=new _.W5(this.onThrottledScroll,1E3,this)};
_.q.onMouseEnter=function(){this.isHovered=!0};
_.q.onMouseLeave=function(){this.isHovered=!1};
_.q.computeOverflowMenuData=function(D){return D&&D.menu?D.menu:null};
_.q.computeCollapsible=function(D){return!D};
_.q.computeHasPlaylistButtons=function(D){return!(!D||!D.playlistButtons)};
_.q.computeHasSeparateSaveButton=function(D){return!(!D||!D.saveButton)};
_.q.computeHasToolbarButton=function(D,t){return!(!D||!(t||D.saveButton||D.menu))};
_.q.computePlaylistType=function(D){if(D&&D.playlistId)return D.playlistId.substring(0,4)};
_.q.computeCanReorder=function(D){return D?D.playlistId&&D.playlistId.startsWith("TLPQ")?!0:!!D.isEditable&&!D.isInfinite:!1};
_.q.attached=function(){var D=this;try{_.qS().resolve(_.hU).setPlaylistComponent(this.hostElement)}catch(t){if(_.r("kevlar_park_on_playlist_token_killswitch"))throw t;_.EK().parkOrScheduleJob(function(){_.qS().resolve(_.hU).setPlaylistComponent(D.hostElement)},2,"ci")}_.Zk(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.q.detached=function(){_.sT(this.hostElement)};
_.q.computeTrailingIcon=function(D,t,H){return H?t?"yt-icons:collapse":"yt-icons:close":t?"yt-icons:expand":_.r("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.q.computeIndexMessage=function(D,t){return AdV(D+1)+" / "+AdV(t)};
_.q.onRenderStamperFinished=function(){if(this.scrollForStampDom){var D=!0;this.isHovered&&(D=!1);if(this.collapsed||this.hidden)D=!1;D&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.q.collapseChanged=function(){var D=this;this.collapsed||(_.NP(this.ytTaskEmitterBehavior.getTaskManager(),function(){D.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.q.hiddenChanged=function(){var D=this;this.hidden||_.NP(this.ytTaskEmitterBehavior.getTaskManager(),function(){D.scrollToCurrentVideo()})};
_.q.setupReordering=function(){var D=_.Kg(this.hostElement).querySelector("#items");gWQ?_.m8Q(this.ytReorderableBehavior,D,D,"playlist-drag-handle"):_.m8Q(this.ytReorderableBehavior,D,D)};
_.q.scrollToCurrentVideo=function(){var D=this;_.Jy.addJob(function(){var t=_.Kg(D.hostElement).querySelector("#items");if(t){t.style.setProperty("padding-bottom","");var H=_.Kg(D.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(H){t=H.parentElement||_.vr(document);var e=t||_.vr(document);var V=_.dM(H),b=_.dM(e),a=_.tM6(e);if(e==_.vr(document)){var w=V.x-e.scrollLeft;V=V.y-e.scrollTop}else w=V.x-b.x-a.left,V=V.y-b.y-a.top;H=yF9(H);b=e.clientHeight-
H.height;a=e.scrollLeft;var h=e.scrollTop;a+=w-(e.clientWidth-H.width)/2;e=new _.lR(a,h+(V-b/2));t.scrollLeft=e.x;t.scrollTop=e.y}}},8)};
_.q.dataChanged=function(){var D=this;_.CTm(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.Vi(this,function(){_.C7(D.ytTaskEmitterBehavior.getTaskManager(),function(){D.ytRendererBehavior.markDirty();D.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.q.onFullBleedPlayerChanged=function(){_.r("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.q.onFullscreenChanged=function(){_.r("web_watch_imax_theater_mode")||_.r("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.q.updateNowPlayingOverlay=function(){_.r("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.q.onPlaylistLockupNowPlaying=function(D,t){t&&(this.activeNowPlayingRenderer=t);this.updateNowPlayingOverlay()};
_.q.onScroll=function(){this.scrollThrottle.fire()};
_.q.onThrottledScroll=function(){var D=this;_.C7(this.ytTaskEmitterBehavior.getTaskManager(),function(){D.ytRendererBehavior.markDirty()})};
_.q.onToggleExpanded=function(D){!this.collapsible||D&&(_.qy(D).tagName==="A"||_.ed(_.bK(D),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.q.setCollapsed=function(D){this.collapsible&&(this.collapsed=D,_.Kl(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.q.handleCollapsedFromData=function(D){if(D){var t=D.playlistPanelCollapseState;t==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||t==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),t=t==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==t&&this.setCollapsed(t)):this.currentPlaylistId!==D.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(t=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==t&&this.setCollapsed(t),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=D.playlistId}};
_.q.handleDrop=function(D){var t=D.currDragItem;D=t.data.playlistSetVideoId;var H=_.JT(t.parentNode.childNodes,t),e=void 0;H>0&&(e=t.parentNode.childNodes[H-1].data.playlistSetVideoId);t=_.k$();if(t.responsePlaylistData&&t.responsePlaylistData.contents){var V=JfV(D,t.responsePlaylistData);t.responsePlaylistData=(0,_.J$.unsafeClone)(t.responsePlaylistData);JT8(t.responsePlaylistData.contents,V,H);t.queueProxy?JDf(t.queueProxy,V,H,D,e):t.playlistProxy&&JDf(t.playlistProxy,V,H,D,e);_.Ti(t,_.cM(t,t.response?
t.response.autoplayRenderer:void 0))}};
_.q.handleDarkModeChange=function(D){D!==this.isDarkTheme&&(this.isDarkTheme=D)};
_.q.colorPaletteChanged=function(){var D,t=((D=this.data)==null?void 0:D.contents)||[],H;D=_.F(t);for(t=D.next();!t.done;t=D.next()){t=t.value;var e=void 0;if((e=t.playlistPanelVideoRenderer)==null?0:e.selected){D=t.playlistPanelVideoRenderer;e=t=void 0;(H=this.isDarkTheme?(t=D)==null?void 0:t.darkColorPalette:(e=D)==null?void 0:e.lightColorPalette)&&_.fb(this.hostElement,H);break}}this.useColorPalette=!!H};
_.ql.Object.defineProperties(Ms.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.moveThreeDotsMenuToMainHeader)&&_.r("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var D=_.qS().resolve(_.by(_.hU)),t;if(((t=this.data)==null?0:t.contents)&&(D==null?0:D.hasAutoplayData())){var H;if(((H=this.playlistLoopStateEntity)==null?void 0:H.state)==="PLAYLIST_LOOP_STATE_ONE"){if(D=this.data.currentIndex,D!==void 0){var e,V;var b=(e=this.data.contents[D])==null?void 0:(V=e.playlistPanelVideoRenderer)==null?void 0:V.title}}else{var a,w=(a=_.O(D.getAutoplayEndpoint(),_.Hh))==null?void 0:a.videoId,h,K;b=(h=this.data.contents.find(function(N){var k;
return((k=N.playlistPanelVideoRenderer)==null?void 0:k.videoId)===w}))==null?void 0:(K=h.playlistPanelVideoRenderer)==null?void 0:K.title}return b}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)!=null&&D.nextVideoLabel?this.nextVideoTitle?_.eo(this.data.nextVideoLabel)+":":GVH:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.data)==null?0:D.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.r("web_mix_long_byline_from_data"))return _.H7(E3e);var t;return(t=this.data)==null?void 0:t.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e=(D=this.data)==null?void 0:(t=D.playlistButtons)==null?void 0:(H=t.menuRenderer)==null?void 0:H.topLevelButtons;if(e)for(D=_.F(e),t=D.next();!t.done;t=D.next())if(t=t.value,t.playlistLoopButtonRenderer)return t.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var D;return!!(this.collapsed&&((D=this.data)==null?0:D.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.r("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Ms.prototype.colorPaletteChanged=Ms.prototype.colorPaletteChanged;Ms.prototype.onPlaylistLockupNowPlaying=Ms.prototype.onPlaylistLockupNowPlaying;Ms.prototype.updateNowPlayingOverlay=Ms.prototype.updateNowPlayingOverlay;Ms.prototype.onFullscreenChanged=Ms.prototype.onFullscreenChanged;Ms.prototype.onFullBleedPlayerChanged=Ms.prototype.onFullBleedPlayerChanged;Ms.prototype.dataChanged=Ms.prototype.dataChanged;Ms.prototype.hiddenChanged=Ms.prototype.hiddenChanged;Ms.prototype.collapseChanged=Ms.prototype.collapseChanged;
Ms.prototype.onRenderStamperFinished=Ms.prototype.onRenderStamperFinished;Ms.prototype.onMouseLeave=Ms.prototype.onMouseLeave;Ms.prototype.onMouseEnter=Ms.prototype.onMouseEnter;_.d([_.C(_.QI),_.x("design:type",Object)],Ms.prototype,"ironResizableBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ms.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ms.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(PTa.YtPlaylistPanelBehavior),_.x("design:type",Object)],Ms.prototype,"ytPlaylistPanelBehavior",void 0);_.d([_.C(_.PP.YtTaskEmitterBehavior),_.x("design:type",Object)],Ms.prototype,"ytTaskEmitterBehavior",void 0);_.d([_.C(_.Ml6),_.x("design:type",Object)],Ms.prototype,"ytReorderableBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Ms.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Ms.prototype,"ytdReduxBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Ms.prototype,"actionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ms.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Ms.prototype,"autoplayData",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ms.prototype,"withinMiniplayer",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ms.prototype,"minimizePipBreakages",void 0);
_.d([_.M({computed:"setMenuData_(data)"}),_.x("design:type",Object)],Ms.prototype,"menuRendererData",void 0);_.d([_.M({computed:"computeOverflowMenuData(data)"}),_.x("design:type",Object)],Ms.prototype,"overflowMenuDataTopRow",void 0);_.d([_.M({computed:"computeOverflowMenuData(data)"}),_.x("design:type",Object)],Ms.prototype,"overflowMenuData",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ms.prototype,"hideHeaderText",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ms.prototype,"useColorPalette",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.x("design:type",Boolean)],Ms.prototype,"collapsible",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ms.prototype,"collapsed",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ms.prototype,"hidden",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.x("design:type",Boolean)],Ms.prototype,"hasPlaylistButtons",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.x("design:type",Boolean)],Ms.prototype,"hasSeparateSaveButton",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.x("design:type",Boolean)],Ms.prototype,"hasToolbar",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.x("design:type",String)],Ms.prototype,"playlistType",void 0);_.d([_.M(),_.x("design:type",Object)],Ms.prototype,"isHovered",void 0);_.d([_.M({selectorArgs:["playlistLoopStateEntityKey"],selector:_.U8k}),_.x("design:type",Object)],Ms.prototype,"playlistLoopStateEntity",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ms.prototype,"modernPanels",void 0);
_.d([_.M({value:56}),_.x("design:type",Number)],Ms.prototype,"scrollMargin",void 0);_.d([_.M({computed:"computeCanReorder(data)"}),_.x("design:type",Boolean)],Ms.prototype,"canReorder",void 0);_.d([_.M(),_.x("design:type",Object)],Ms.prototype,"expandLabel",void 0);_.d([_.M(),_.x("design:type",Object)],Ms.prototype,"collapseLabel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ms.prototype,"isFloating",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ms.prototype,"metaPanel",void 0);_.d([_.M({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.x("design:type",String)],Ms.prototype,"trailingIcon",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Ms.prototype,"isDarkTheme",void 0);_.d([_.M({selector:_.vH}),_.x("design:type",Boolean)],Ms.prototype,"miniplayerIsActive",void 0);_.d([_.M({selector:function(D){return D.watch.playerState}}),
_.x("design:type",Number)],Ms.prototype,"playerState",void 0);_.d([_.M({selector:_.vZ}),_.x("design:type",Boolean)],Ms.prototype,"isFullscreen",void 0);_.d([_.M({selector:_.li}),_.x("design:type",Boolean)],Ms.prototype,"isTheaterMode",void 0);_.d([_.M(),_.x("design:type",Object)],Ms.prototype,"activeNowPlayingRenderer",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ms.prototype,"moveThreeDotMenuToTopRow",null);
_.d([_.m("data","autoplayData","playlistLoopStateEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ms.prototype,"nextVideoTitle",null);_.d([_.m("data","nextVideoTitle"),_.x("design:type",String),_.x("design:paramtypes",[])],Ms.prototype,"nextVideoLabel",null);_.d([_.m("collapsed"),_.x("design:type",String),_.x("design:paramtypes",[])],Ms.prototype,"buttonAriaLabel",null);
_.d([_.m("data","playlistId","longBylineText"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ms.prototype,"mixLongByLine",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ms.prototype,"playlistLoopStateEntityKey",null);_.d([_.rx("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ms.prototype,"onMouseEnter",null);
_.d([_.rx("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ms.prototype,"onMouseLeave",null);_.d([_.M({reflectToAttribute:!0}),_.m("data","collapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ms.prototype,"showNextVideoHeader",null);_.d([_.rx("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ms.prototype,"onRenderStamperFinished",null);
_.d([_.Os("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ms.prototype,"collapseChanged",null);_.d([_.Os("hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ms.prototype,"hiddenChanged",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ms.prototype,"dataChanged",null);
_.d([_.m("isTheaterMode","isFullscreen"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ms.prototype,"isFullBleedPlayer",null);_.d([_.Os("isTheaterMode","isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ms.prototype,"onFullBleedPlayerChanged",null);_.d([_.Os("isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ms.prototype,"onFullscreenChanged",null);
_.d([_.Os("playerState","miniplayerIsActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ms.prototype,"updateNowPlayingOverlay",null);_.d([_.rx("yt-playlist-lockup-now-playing-active"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Ms.prototype,"onPlaylistLockupNowPlaying",null);
_.d([_.Os("data","isDarkTheme"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ms.prototype,"colorPaletteChanged",null);_.d([_.Y({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Ms);
_.KDO=_.E_()(Ms,"ytd-playlist-panel-renderer",function(){if(wke===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);wke=D}D=wke;return D},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var N6F;var S0=function(){var D=_.X.apply(this,arguments)||this;D.modern=_.r("web_button_rework");return D};
_.P(S0,_.X);S0.prototype.computeShouldButtonBeVertical=function(D,t){return D||t};
S0.prototype.onYtServiceRequestSent=function(D,t){(D=_.O(t.endpoint,_.pP))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.nf("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:D.status})):this.handleLikeEndpoint(D))};
S0.prototype.computelikeStatusEntityKey=function(D){return D==null?void 0:D.likeStatusEntityKey};
S0.prototype.handleLikeEndpoint=function(D){D.status==="LIKE"?this.JSC$17097_ytdDislikeToggleButtonRenderer.toggle(!1):D.status==="DISLIKE"?this.JSC$17097_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17097_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17097_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.ql.Object.defineProperties(S0.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var D;return lN8(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(D=this.likeStatusEntity)==null?void 0:D.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var D;if(this.data&&((D=this.data)==null||!D.hideDislikeButton)){var t;return lN8(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(t=this.likeStatusEntity)==null?void 0:t.likeStatus)}}}});
S0.prototype.onYtServiceRequestSent=S0.prototype.onYtServiceRequestSent;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],S0.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],S0.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],S0.prototype,"vertical",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],S0.prototype,"textTransform",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],S0.prototype,"useShortsIcon",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],S0.prototype,"underIconLabel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],S0.prototype,"modern",void 0);_.d([_.M({value:"left"}),_.x("design:type",String)],S0.prototype,"buttonTooltipPosition",void 0);
_.d([_.M(),_.x("design:type",Object)],S0.prototype,"overrides",void 0);_.d([_.o5("#like-button"),_.x("design:type",Object)],S0.prototype,"JSC$17097_ytdLikeToggleButtonRenderer",void 0);_.d([_.o5("#dislike-button"),_.x("design:type",Object)],S0.prototype,"JSC$17097_ytdDislikeToggleButtonRenderer",void 0);_.d([_.m("data","likeStatusEntity.likeStatus","useShortsIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],S0.prototype,"likeButton",null);
_.d([_.m("data","likeStatusEntity.likeStatus","useShortsIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],S0.prototype,"dislikeButton",null);_.d([_.M({computed:"computelikeStatusEntityKey(data)"}),_.x("design:type",String)],S0.prototype,"likeStatusEntityKey",void 0);_.d([_.M({selectorArgs:["likeStatusEntityKey"],selector:xX}),_.x("design:type",Object)],S0.prototype,"likeStatusEntity",void 0);
_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],S0.prototype,"onYtServiceRequestSent",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],S0);
var kVF=_.E_()(S0,"ytd-like-button-renderer",function(){if(N6F===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);N6F=D}D=N6F;return D},{mode:1});_.T6O={};
_.T6O.YtConditionalRendererBehavior=[_.y.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(D,t){var H=this,e,V;return _.Z(function(b){switch(b.nextAddress){case 1:if(!t)return H.hidden=!0,H.showSpinner=!1,b.return();if((e=D)==null?0:(V=e.visibilityCondition)==null?0:V.mode)switch(D.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return b.jumpTo(5);default:return b.jumpTo(6)}H.showSpinner=
!1;H.hidden=!0;return b.yield(H.shouldShow_(D),4);case 4:H.hidden=!b.yieldResult;b.jumpTo(0);break;case 5:return b.yield(H.shouldShow_(D),8);case 8:H.showSpinner=b.yieldResult;H.hidden=!1;b.jumpTo(0);break;case 6:return H.showSpinner=!1,b.yield(H.shouldShow_(D),9);case 9:H.hidden=!b.yieldResult,_.n2(b)}})},
shouldShow_:function(D){return D&&D.supportedDatas&&D.supportedDatas.rendererVisibilityConditionData&&D.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(D.supportedDatas.rendererVisibilityConditionData.showIf):D&&D.visibilityCondition&&D.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(D.visibilityCondition.showIf):D&&D.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(D.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(D){switch(D){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(D){switch(D){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var D=_.ET(this.hostElement,"yt-get-mdx-status");return D.length==1&&D[0].connected},
isLocationPermissionGranted_:function(){var D;return _.Z(function(t){return t.nextAddress==1?navigator.permissions?t.yield(navigator.permissions.query({name:"geolocation"}),3):t.jumpTo(2):t.nextAddress!=2?(D=t.yieldResult,t.return(Promise.resolve(D.state==="granted"))):t.return(Promise.resolve(!1))})}}];var cTQ=LU6("yt-icon",{callbackProps:["onKeydown"]}),j$Y=_.r("kevlar_use_wil_icons")?_.l(function(D){var t=D.icon;var H=D.active;var e=D.className;var V=D.style;var b=D.dataSelected;var a=D.dataDisabled;var w=D.role;var h=D.themeOverride;var K=D.animateIcon;var N=D.ariaHidden;var k=D.ariaExpanded;var T=D.ariaLabel;var c=D.tabindex;var U=D.id;var S=D.iconFilter;var L=D.onKeydown;var J=function(){var u=t==null?void 0:t(),R=null,I=void 0;u&&(u=qXn(u),u=wDu(u),u.length&&(R=u[1],I=u[0]));return{iconName:R,
iconSetName:I}},g=function(){return Foa(J().iconName,H==null?void 0:H(),void 0,void 0,J().iconSetName,_.qS().resolve(_.ja))},Q=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:S==null?void 0:S()}};
return _.G(_.E,{cond:K,then:function(){return _.G(cTQ,{icon:t,active:H,className:e,style:V,dataSelected:b,dataDisabled:a,role:w,themeOverride:h,ariaHidden:N,ariaExpanded:k,ariaLabel:T,tabindex:c,id:U,iconFilter:S,onKeydown:L})},
else:function(){return _.G(_.E,{cond:g,then:function(u){return _.G("span",{class:_.jQ("ytIconWrapperHost",e),role:w,"aria-label":T,"aria-hidden":N,tabindex:function(){return isNaN(Number(c==null?void 0:c()))?void 0:Number(c==null?void 0:c())},
id:U,style:V,"on:keydown":_.$X(function(R){return void(L==null?void 0:L(R))})},_.G(X4k,{data:u,
options:Q}))}})}})},"Of"):cTQ;var $uF=function(D){var t=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];EXX();_.bg("ytglobal.ytUtilActivityCallback_",function(){_.Kl(D,"yt-user-activity")});
new qz(function(){return t.JSC$17113_onMouseMove});
document.addEventListener("scroll",function(){return t.onScroll});
window.addEventListener("resize",function(){return t.onResize})},iKb=function(D,t,H){t in D.eventJobIds||(H=_.Cs().addLowPriorityJob(function(){_.F0();
delete D.eventJobIds[t]},H),D.eventJobIds[t]=H)};
$uF.prototype.onScroll=function(D){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):D.target===document&&iKb(this,"scroll",200)};
$uF.prototype.onResize=function(){iKb(this,"resize",200)};
$uF.prototype.JSC$17113_onMouseMove=function(){iKb(this,"mousemove",100)};
_.Co=function(D){D.scrollEventsToIgnore+=1;D.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){D.scrollEventsToIgnore--},500))};var rTZ=function(D){this.element=D;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
rTZ.prototype.showFeedbackDialog=function(D,t,H,e){var V=OKe();if(!V)return!1;var b=BcV();b.productId=V;t&&(b.flow="submit",b.report={description:t});H&&(OKe()==="59"?b.callback=_.pY(function(){_.L7("userFeedbackEvent",{});H()}):b.callback=_.pY(H));
b.bucket=e||_.YC("GOOGLE_FEEDBACK_BUCKET","Other");UuF(b);D=o3H(this,"GFEEDBACK",D);try{_.Vx4(b,D)}catch(a){return _.vn(a),!1}return!0};
rTZ.prototype.showHelpDialog=function(D,t,H){var e=this,V=OKe();if(!V)return!1;var b={helpCenterPath:"/youtube",productData:o3H(this,"GUIDED_HELP",H)};UuF(b);var a=BcV();a.context=D||b.productData.context||"default";a.defaultHelpArticleId=t;a.enableSendFeedback=!0;(_.RD("gapi.load")||function(w,h){return h()})("client",function(){try{var w=CDo(V,b);
if(_.r("web_always_load_chat_support")&&!e.chatSupportLoaded)try{w.JSC$9979_loadChatSupport(a),e.chatSupportLoaded=!0}catch(h){}w.startHelp(a)}catch(h){_.vn(h)}})};
var OKe=function(){var D=_.YC("GOOGLE_FEEDBACK_PRODUCT_ID");D||_.vn(Error("li"));return D},UuF=function(D){D&&(D.locale=_.r("kevlar_help_use_locale")?_.YC("INNERTUBE_CONTEXT_HL","en"):_.YC("HTML_LANG","en"))},o3H=function(D,t,H){var e=D.productData;
delete e.origin;e.device=_.TV();var V;a:{if(V=document.createElement("canvas")){var b=V.getContext("experimental-webgl",{stencil:!0});if(b){var a=b.getExtension("WEBGL_debug_renderer_info");if(a){V=b.getParameter(a.UNMASKED_RENDERER_WEBGL);break a}}if(b=V.getContext("webgl")){V=b.getParameter(b.RENDERER);break a}}V=null}e.gpu=V;e.isSDC=!!_.YC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(V=_.YC("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.J$.extend(e,V);_.Q1D(t,e);_.ydV(e);(D=_.Kl(D.element,"yt-get-autonav-pause-debug-state"))&&
D.length&&(e.autonav_pause_state=D[0]);D=_.U5();e.browser_resolution=D.width+"\u00d7"+D.height+"@"+(window.devicePixelRatio||1)+"x";H&&_.J$.extend(e,H);return e};
rTZ.prototype.resetProductData=function(){this.productData={}};var P8F=function(D){this.feedbackManager=new rTZ(D)};
P8F.prototype.showFeedbackDialog=function(D,t,H,e){return this.feedbackManager.showFeedbackDialog(D,t,H,e)};
P8F.prototype.showHelpDialog=function(D,t,H){return this.feedbackManager.showHelpDialog(D,t,H)};var n3Q=function(){this.baseUrl="";this.aTag=document.createElement("a")},fWn=function(D,t,H){H=H===void 0?{}:H;
H.pbj||(H.pbj=1);H=_.BFK(t,H);D.baseUrl&&H&&!_.DU(H)[1]&&!_.tW(H)&&(t=D.baseUrl,a$(t,"/")&&(t=t.slice(0,-1)),_.qu(H,"/")&&(H=H.slice(1)),H=t+"/"+H);WU(D.aTag,_.lM(H||""));return D.aTag.href};
n3Q.prototype.fetchData=function(D){return _.dmX(D)};
n3Q.prototype.postData=function(D,t){var H={method:"POST"};if(t){for(var e=_.F(Object.keys(t)),V=e.next();!V.done;V=e.next()){V=V.value;var b=t[V];_.Wk(b)&&(t[V]=JSON.stringify(b))}H.postParams=t}return _.dmX(D,H)};
_.L73=function(D,t,H,e,V){D=fWn(D,t,H);if(!D)throw e=Error("mi"),Object.assign(e,{params:t}),e;return _.dmX(D,V,e)};
n3Q.prototype.requestDataForServiceEndpoint=function(D,t){if(_.O(D,_.G8X))return this.fetchData("/getAccountSwitcherEndpoint");t=t||{};var H=_.O(D,Vi4);H?t.se=H.base64EncodedServiceEndpoint:t.sej=JSON.stringify(D);(H=_.v3())&&_.r("enable_service_ajax_csn")&&(t.csn=H);t.theme=_.f_();_.O(D,sFR)&&_.YC("DELEGATION_CONTEXT")&&(t.delegation_context=JSON.stringify(_.YC("DELEGATION_CONTEXT")));H=null;for(var e in D)if(a$(e,"Endpoint")||a$(e,"Command")){H=e;break}if(!H){var V=Error("ni");Object.assign(V,{params:D});
_.IgV(V,"WARNING");return new _.c$(function(a,w){w(V)})}e={name:H};
var b;(H=(b=_.O(D,_.$0))==null?void 0:b.signal)&&(e.signal=H);(b=_.yc(window.location.href))&&b.internalcountrycode&&(e.internalcountrycode=b.internalcountrycode);b="/service_ajax";_.r("debug_forward_web_query_parameters")&&(b=_.ZCD(b,window.location.search));b=_.z5(b,e);D.clickTrackingParams&&_.qJ(b,{itct:D.clickTrackingParams});return this.postData(b,t)};_.C8H=new _.kI("GFEEDBACK_TOKEN");var muv;var MVF;var SDi;var XkH;var Xt=function(){var D=_.X.apply(this,arguments)||this;D.compact=!1;D.dismissButtonDisabled=!1;return D};
_.P(Xt,_.X);Xt.prototype.computeHasIcon_=function(D){return!!D};
Xt.prototype.isSignInIcon_=function(D){return D=="yt-icons:prompted_sign_in"};
Xt.prototype.onDismissButtonClick=function(){var D;this.data.disableOnClick&&!this.dismissButtonDisabled&&(D=this.data.dismissButton)!=null&&D.buttonRenderer&&(this.dismissButtonDisabled=!0)};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Xt.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.T6O.YtConditionalRendererBehavior),_.x("design:type",Object)],Xt.prototype,"ytConditionalRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Xt.prototype,"data",void 0);_.d([_.M({computed:"computeIcon_(data.icon)"}),_.x("design:type",Object)],Xt.prototype,"icon_",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.x("design:type",Boolean)],Xt.prototype,"hasIcon_",void 0);_.d([_.M({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.x("design:type",Boolean)],Xt.prototype,"signInIcon_",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Xt.prototype,"compact",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Xt.prototype,"dismissButtonDisabled",void 0);
_.d([_.xL({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],Xt);
_.p(Xt,"yt-player-error-message-renderer",function(){if(XkH===void 0){var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e\n<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <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      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;SDi===void 0&&(SDi=document.createElement("template"));var e=SDi;H.call(t,e.content.cloneNode(!0),D.content.firstChild);XkH=D}D=XkH;return D},{mode:2});var fVg;var LDt;var fq=function(){return _.X.apply(this,arguments)||this};
_.P(fq,_.X);fq.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
fq.prototype.computeIcon_=function(D){return D?"yt-icons:"+D.iconType.toLowerCase():"error_outline"};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],fq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],fq.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],fq.prototype,"data",void 0);_.d([_.M({computed:"computeIcon_(data.icon)"}),_.x("design:type",Object)],fq.prototype,"icon_",void 0);_.d([_.xL({is:"yt-player-kav-renderer",disableElementRegistration:!0})],fq);
_.p(fq,"yt-player-kav-renderer",function(){if(LDt===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;fVg===void 0&&(fVg=document.createElement("template"));var e=fVg;H.call(t,e.content.cloneNode(!0),D.content.firstChild);LDt=D}D=LDt;return D},{mode:2});var t5u=_.zk(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.hB(_.l(function(D){var t=_.DY("div"),H=_.F(_.KR(0,void 0,"jxh75d")),e=H.next().value,V=H.next().value;H=_.F(_.KR(null,void 0,"F5Zm8"));var b=H.next().value,a=H.next().value;_.XH(function(){HwV(t.value,V,a);t.value.scrollIntoView()});
H=e36.bind(null,D.data,e);_.F9("resize",function(){var w=b();if(e()===1&&w!==null){var h;(h=window.grecaptcha)==null||h.reset(w)}});
return _.G("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.G("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.G("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var w,h;return(w=D.data().accessibility)==null?void 0:(h=w.accessibilityData)==null?void 0:h.label}),_.G(_.$7,{text:H,
className:_.jQ("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.G("div",{el:t,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Pf"),"yt-player-captcha-view-model",{props:{data:_.wm}});var V5X=!1;_.ATt=_.l(function(D){var t=D.data;return _.G("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.G(_.E,{cond:function(){return t().icon},
then:function(H){return _.G("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.G(_.bi,{data:H,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.G(_.E,{cond:function(){return t().title},
then:function(H){return _.G("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.G(_.$7,{text:H}))}}),_.G(_.E,{cond:function(){return t().description},
then:function(H){return _.G("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.G(_.$7,{text:H}))}}),_.G(_.P5,{data:function(){return t().primaryButton}},{buttonViewModel:function(H){return _.G(_.JX,{data:H.data,
className:"interstitialViewModelFlexItem"})}}),_.G(_.P5,{data:function(){return t().secondaryButton}},{buttonViewModel:function(H){return _.G(_.JX,{data:H.data,
className:"interstitialViewModelFlexItem"})}}))},"Qf");
_.ATt.idomCompat=!0;var g3b=_.l(function(D){var t=D.data;_.ue();return _.G("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.G("div",{class:"playerInterstitialRendererScrim"},_.G(_.P5,{data:function(){return t().content}},{interstitialViewModel:_.ATt})))},"Rf");
g3b.idomCompat=!0;_.hB(g3b,"yt-player-interstitial-renderer",{props:{data:_.ij}});var Lq=function(){var D=_.X.apply(this,arguments)||this;D.noBackground=!1;D.compact=!1;D.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return D};
_.P(Lq,_.X);Lq.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"}}}};
Lq.prototype.onUpdatePlayerErrorMessageCommand_=function(D){if(_.O(D,k6m)){var t;if(D=(t=_.O(D,k6m))==null?void 0:t.newPlayerErrorMessageRenderer)this.data=D}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Lq.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Lq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Lq.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Lq.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Lq.prototype,"status",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Lq.prototype,"noBackground",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Lq.prototype,"compact",void 0);_.d([_.xL({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Lq);
var JTY=_.E_()(Lq,"yt-playability-error-supported-renderers",function(){if(MVF===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;muv===void 0&&(muv=document.createElement("template"));var e=muv;H.call(t,e.content.cloneNode(!0),D.content.firstChild);MVF=D}D=MVF;return D},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var YDt=LU6("ytd-button-renderer");var bw$=void 0,FS3=void 0;var ZwV=new EMn;var lVF=function(D){this.store=D;this.kPT=new _.kpw},vJ$=function(D,t,H){var e,V;
if(!(V=((e=t.playabilityStatus)==null?void 0:e.status)!=="OK")){D=D.store;var b;V=t.offlineState&&((b=t.videoDetails)==null?0:b.videoId)?_.r("enable_pl_r_c_cd")?C2V(D.getState().entities,t.videoDetails.videoId):!!eWD(D.getState().entities,t.videoDetails.videoId):!1}if(V)return!0;V=KSV(t);if(V===1){if(_.r("ab_v_vid_sig")){var a,w=(a=t.videoDetails)==null?void 0:a.videoId;if(!w||!H||w!==H){var h;t=new _.nZ("282054944_vid",{sZn:H,rOc:(h=t.videoDetails)==null?void 0:h.videoId});_.gT(t)}}return!0}$g$=
0;var K,N;h=(w=t.auxiliaryUi)==null?void 0:(K=w.messageRenderers)==null?void 0:(N=K.bkaEnforcementMessageViewModel)==null?void 0:N.displayType;if(V!==3&&(h==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||h==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;h={reason:_.wO(_.OT("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.r("ks_something_wrong_learn_more")?C36("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.wO(_.OT("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:_.wO("282054944")};v3F(t,{playerErrorMessageRenderer:h});return!1},pQA=function(D,t){if(Jk$(t)){_.rn(1,!0);
var H=(H=Jk$(t))&&_.qNk()?H:void 0;H?(v3F(t,{enforcementMessageViewModel:H}),D.kPT.increment("IN_PLAYER"),_.rn(5)):(D.kPT.increment("SKIP_DISPLAY"),_.rn(2))}},v3F=function(D,t){D.playabilityStatus=Object.assign({},D.playabilityStatus,{status:"ERROR",
errorScreen:t});D.videoDetails=void 0};
lVF.prototype.handleResponse=function(D,t){if(D.playabilityStatus){var H,e,V,b=(t==null?void 0:(H=t.innerTubeRequest)==null?void 0:H.videoId)||(t==null?void 0:(e=t.innerTubeRequest)==null?void 0:(V=e.playerRequest)==null?void 0:V.videoId);vJ$(this,D,b)&&pQA(this,D)}};
lVF[Fc]=[a6];var Y9D=new _.kI("ADBLOCK_DETECTION_SERVICE_TOKEN");var ym=function(D){this.dT5=D};
ym.prototype.bindInnertubeChallengeFetcher=function(D){this.dT5.bicf(D)};
ym.prototype.registerChallengeFetchedCallback=function(D){this.dT5.bcr(D)};
ym.prototype.getLatestChallengeResponse=function(){return this.dT5.blc()};var pkF;pkF=_.zk(["https://static.doubleclick.net/instream/ad_status.js"]);_.duY=_.E5(pkF);var WDv;_.Aa=function(D,t,H){var e=this;this.network=D;this.options=t;this.networkStatusManager=H;this.v4=null;if(t.useBotguardEverywhere){var V=new _.TK;this.v4=V.promise;_.VA.ytAtRC&&_.Mx(_.Jy,function(){var b,a;return _.Z(function(w){if(w.nextAddress==1){if(!_.VA.ytAtRC)return w.return();b=xuH(null);return w.yield(e.zo(b),2)}a=w.yieldResult;_.VA.ytAtRC&&_.VA.ytAtRC(JSON.stringify(a));_.n2(w)})});
jOT().then(function(b){var a,w,h,K;return _.Z(function(N){if(N.nextAddress==1)return b.bindInnertubeChallengeFetcher(function(k){return e.zo(xuH(k))}),N.yield(lvD(),2);
a=N.yieldResult;w=b.getLatestChallengeResponse();h=w.challenge;if(!h)throw Error("oi");K={challenge:h,xq:Qm(h),vm:a,bgChallenge:new Wm};V.resolve(K);b.registerChallengeFetchedCallback(function(k){k=k.challenge;if(!k)throw Error("pi");k={challenge:k,xq:Qm(k),vm:a,bgChallenge:new Wm};e.v4=Promise.resolve(k)});
_.n2(N)})})}else t.preload&&RR4(this,new Promise(function(b){_.C7(_.Jy,function(){b(uXH(e))},0)}))};
WDv=function(D){var t={preload:!0,useBotguardEverywhere:!0},H=!1;if(typeof t==="boolean")var e={preload:t};else typeof t==="undefined"?e={preload:!0}:(e=t,H=!!t.p0T);t=H?void 0:new _.yp;_.Aa.instance=new _.Aa(D,e,t);return _.Aa.instance};
_.Aa.prototype.spQ=function(){var D=this;return _.Z(function(t){return t.nextAddress==1?t.yield(Promise.race([D.v4,null]),2):t.return(!!t.yieldResult)})};
_.Aa.prototype.qWt=function(D,t,H){var e=this,V,b,a;return _.Z(function(w){e.v4===null&&RR4(e,uXH(e));V=!1;b={};a=function(){var h,K,N;return _.Z(function(k){switch(k.nextAddress){case 1:return k.yield(e.v4,2);case 2:h=k.yieldResult;b.challenge=h.challenge;if(!h.vm){"c1a"in h.xq&&(b.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");k.jumpTo(3);break}K=Object.assign({},{c:h.challenge,e:D},t);_.$p(k,4);V=!0;return k.yield(h.vm.snapshot({hU:K}),6);case 6:(N=k.yieldResult)?b.webResponse=N:b.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.yM(k,3);break;case 4:_.Pv(k),b.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(D==="ENGAGEMENT_TYPE_PLAYBACK"){var T=h.xq,c={};if(T.c6a){var U=Number(_.YC("DCLKSTAT",0));c.reportingStatus=String(Number(T.c)^(isNaN(U)?0:U))}T.c6b&&(c.broadSpectrumDetectionResult=String(Number(T.c)^Number(_.YC("CATSTAT",0))));b.adblockReporting=c}return k.return(b)}})};
return w.return(Promise.race([a(),IVF(H,function(){var h=Object.assign({},b);V&&(h.error="ATTESTATION_ERROR_VM_TIMEOUT");return h})]))})};
var xuH=function(D){var t={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};D&&(t.interpreterHash=D);return t},uXH=function(D,t){t=t===void 0?0:t;
var H,e,V,b,a,w,h,K,N,k,T,c;return _.Z(function(U){switch(U.nextAddress){case 1:H=xuH(TV6().pcT);if(_.r("att_fet_ks"))return _.$p(U,7),U.yield(D.zo(H),9);_.$p(U,4);return U.yield(Q$Q(D,H),6);case 6:a=U.yieldResult;V=a.eyA;b=a.uek;e=a;_.yM(U,3);break;case 4:return _.Pv(U),_.Yw(Error("qi`"+t)),yTQ(D,864E5),U.return({challenge:"",xq:{},vm:void 0,bgChallenge:void 0});case 9:e=U.yieldResult;if(!e)throw Error("ri");if(!e.challenge)throw Error("si");V=e.challenge;b=Qm(V);if("c1a"in b&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("ti");
_.yM(U,3);break;case 7:w=_.Pv(U);_.Yw(w);t++;if(t>=5)return _.Yw(Error("qi`"+t)),yTQ(D,864E5),U.return({challenge:"",xq:{},vm:void 0,bgChallenge:void 0});h=1E3*Math.pow(2,t-1)+Math.random()*1E3;return U.return(new Promise(function(S){_.C7(_.Jy,function(){S(uXH(D,t))},h)}));
case 3:K=cbk(b);yTQ(D,K*1E3);N=void 0;if(!("c1a"in b&&e.bgChallenge)){U.jumpTo(10);break}k=T0V(e.bgChallenge);_.$p(U,11);return U.yield(jKf(TV6(),k),13);case 13:_.yM(U,12);break;case 11:return T=_.Pv(U),_.Yw(T),U.return({challenge:V,xq:b,vm:N,bgChallenge:k});case 12:return _.$p(U,14),N=new _.yK({challenge:k,z22:{rH:"aGIf"}}),U.yield(N.jk6,16);case 16:_.yM(U,10);break;case 14:c=_.Pv(U),_.Yw(c),N=void 0;case 10:return U.return({challenge:V,xq:b,vm:N,bgChallenge:k})}})};
_.Aa.prototype.zo=function(D){var t=this,H;return _.Z(function(e){H=t.networkStatusManager;if(!H||H.isNetworkAvailable())return e.return(t.network.zo(D));_.dE("att_pna",void 0,"attestation_challenge_fetch");return e.return(new Promise(function(V){H.listenOnce("publicytnetworkstatus-online",function(){t.network.zo(D).then(V)})}))})};
var B6F=function(D){if(!D)throw Error("ri");if(!D.challenge)throw Error("si");var t=D.challenge,H=Qm(t);if("c1a"in H&&(!D.bgChallenge||!D.bgChallenge.program))throw Error("ti");return Object.assign({},D,{eyA:t,uek:H})},Q$Q=function(D,t){var H,e,V,b,a;
return _.Z(function(w){switch(w.nextAddress){case 1:H=void 0,e=0,V={};case 2:if(!(e<5)){w.jumpTo(4);break}if(!(e>0)){w.jumpTo(5);break}V.fz2=1E3*Math.pow(2,e-1)+Math.random()*1E3;return w.yield(new Promise(function(h){return function(K){_.C7(_.Jy,function(){K(void 0)},h.fz2)}}(V)),5);
case 5:return _.$p(w,7),w.yield(D.zo(t),9);case 9:return b=w.yieldResult,w.return(B6F(b));case 7:H=a=_.Pv(w),a instanceof Error&&_.Yw(a);case 8:e++;V={fz2:void 0};w.jumpTo(2);break;case 4:throw H;}})},RR4=function(D,t){D.v4=t},zRQ=function(D){var t,H,e;
return _.Z(function(V){if(V.nextAddress==1)return V.yield(Promise.race([D.v4,null]),2);t=V.yieldResult;var b=uXH(D);D.v4=b;(H=t)==null||(e=H.vm)==null||e.dispose();_.n2(V)})},yTQ=function(D,t){var H=Date.now()+t,e=function(){var V;
return _.Z(function(b){V=H-Date.now();return V<1E3?b.yield(zRQ(D),0):(_.C7(_.Jy,e,Math.min(V,6E4)),b.jumpTo(0))})};
e()},IVF=function(D,t){return new Promise(function(H){_.C7(_.Jy,function(){H(t())},D)})};var Dwb=function(){};
Dwb.prototype.processContext=function(D){var t=_.Aa.instance;if(!t)return _.cK();var H=ob8(D);return H?new T6(t.qWt(H,rbu(D),500).then(function(e){var V;(D==null?0:(V=D.innerTubeRequest)==null?0:V.context)||(D.innerTubeRequest.context={});V=D.innerTubeRequest.context;V.request||(V.request={});V.request.attestationResponseData=e})):_.cK()};var tfH=function(D){this.innertubeTransportService=D};
tfH.prototype.zo=function(D){_.dE("att_fsr",void 0,"attestation_challenge_fetch");return _.sK(this.innertubeTransportService,D,_.qF(_.$gB)).then(function(t){_.dE("att_frr",void 0,"attestation_challenge_fetch");return t})};_.HQF=function(D){this.innertubeTransportService=D};var enF=new _.kI("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var VfF=function(){},qmZ=function(D,t,H,e,V){var b=_.YC("YPC_MB_URL");
_.s86(b).then(function(){bQH(b,D,t,H,e,V)})},bQH=function(D,t,H,e,V,b){try{var a=_.ew.payments.business.integration,w=_.ew.payments.business.integration.Style.create().withMaterialDesignStyle(),h=a.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.r("enable_window_constrained_buy_flow_dialog")&&(h=h.usingPopupStyle("windowConstrained"));b&&(h=h.usingCloseCallback(b));var K=H?H:_.YC("YPC_GB_LANGUAGE"),N=_.YC("SESSION_INDEX");a.bootstrap.fromPaymentsUrl(D);a.bootstrap.asMashupMode(h).usingGaiaIndex(N).usingLocale(K).usingStyle(w).usingDefaultActivityStatusChangeHandler().inStandaloneContext(a.standaloneContextAuthId.forGaia()).purchaseManager(t,function(k){e&&e(k)}).load(void 0,V)}catch(k){throw V&&V(k),_.gT(k),k;
}};var Fnt=new _.kI("PURCHASE_MANAGER_TOKEN");var afe=function(){var D=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return D.videos},
getContinuationsPresent:function(){return D.continuationsPresent},
setVideos:function(t){D.videos=t},
getRecommendedVideos:function(){return D.recommendedVideos},
setRecommendedVideos:function(t){D.recommendedVideos=t}}};
afe.prototype.addVideos=function(D){D&&(this.videos=D.filter(function(t){return!!_.nb8(t)}).map(function(t){var H=_.nb8(t);
a:{var e;if(t.playlistVideoRenderer&&((e=t.playlistVideoRenderer)==null?0:e.voteSortTiebreaker))var V=t.playlistVideoRenderer.voteSortTiebreaker;else{if(_.O(t,zX)){var b;if(e=(V=_.O(t,zX))==null?void 0:(b=V.playlistItemData)==null?void 0:b.voteSortTiebreaker){V=e;break a}}V=""}}return{itemId:H,videoId:_.M5u(t),voteCount:_.SN8(t),voteSortTiebreaker:V}}),this.continuationsPresent=!!_.O(D[D.length-1],_.HX))};
var w9Z=function(D,t){return D.videos.findIndex(function(H){return H.itemId===t})},ZQe=function(D,t){return D.recommendedVideos.findIndex(function(H){return H.itemId===t})},sBY=function(D){D={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:D}}}}};_.qS().resolve(_.aA).resolveCommand(D)};var hnb=function(){afe.apply(this,arguments)};
_.P(hnb,afe);
var M$9=function(D,t,H,e){if(!D.parentElem)throw Error("yi");var V=w9Z(D,t);V===-1&&(V=ZQe(D,t),V=V!==-1?V+D.videos.length:-1);if(V===-1)throw Error("zi");var b=V>=D.videos.length?D.recommendedVideos[V-D.videos.length]:D.videos[V];b.voteCount=H;b.voteSortTiebreaker=Date.now().toString();V>=D.videos.length?D.recommendedVideos.splice(V-D.videos.length,1):D.videos.splice(V,1);var a=D.videos;for(var w=0,h=a.length-1;w<=h;){var K=Math.floor((w+h)/2);if(a[K].voteCount<b.voteCount)h=K-1;else if(a[K].voteCount>b.voteCount)w=
K+1;else{a:{var N=b.voteSortTiebreaker;var k=a[K].voteSortTiebreaker;if(N.length!==k.length)N=N.length>k.length;else{for(var T=0;T<N.length;T++){var c=N.charCodeAt(T),U=k.charCodeAt(T);if(c>U){N=!0;break a}if(c<U)break}N=!1}}N?h=K-1:w=K+1}}a=w;if(a===-1)throw Error("Ai");D.videos.splice(a,0,b);V!==a&&G4i(D,V,a,t,H,e)},G4i=function(D,t,H,e,V,b){var a,w=(a=D.parentElem)==null?void 0:a.children,h=Math.min(t,H),K=Math.max(t,H);
if(w)for(a=h;a<=K;a++)w[a].style.viewTransitionName="item-"+String(a);document.startViewTransition(function(){if(D.parentElem){var N=D.parentElem.children;if(!(!N||t<0||t>=N.length||H<0||H>=N.length)){var k=N[t];if(k){k.remove();D.showRefreshPill=H>=D.videos.length-1&&D.continuationsPresent;if(!D.showRefreshPill){N=N[H]||null;var T;(T=D.parentElem)==null||T.insertBefore(k,N)}_.Gf(D.parentElem,"yt-update-video-data-voting-animation",{toIdx:H,itemId:e,newVoteCount:V,voteStatus:b,hideItem:D.showRefreshPill})}}}}).finished.then(function(){if(w)for(var N=
h;N<=K;N++)w[N].style.viewTransitionName="";
if(D.showRefreshPill)sBY(_.OT("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var k;if(k=N=(k=D.parentElem)==null?void 0:k.children[H])k=N.getBoundingClientRect(),N=k.bottom,k=!(k.top>=0&&N<=D.clientHeight);k&&(k=_.UT(t>H?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(t-H)),sBY(k))}})};var Nov=function(D,t){var H=this;D?this.innertubeTransportServicePromise=Promise.resolve(D):t&&(this.innertubeTransportServicePromise=t(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new $a(3E3,function(e){return Evv(H,e)},0);
this.validateMiniAppVideoIdRateLimiter=new $a(3E3,function(e){return Kne(H,e)},1)},RCf=function(D,t){D.JSC$17225_miniAppId=t;
D.reportMiniAppValueRateLimiter=new $a(3E3,function(H){return Evv(D,H)},0);
D.validateMiniAppVideoIdRateLimiter=new $a(3E3,function(H){return Kne(D,H)},1)},WkQ=function(D,t){var H;
return _.Z(function(e){if(e.nextAddress==1)return e.yield(D.reportMiniAppValueRateLimiter.call(t),2);H=e.yieldResult;return e.return([H,t])})},Evv=function(D,t){var H,e,V,b,a,w,h;
return _.Z(function(K){switch(K.nextAddress){case 1:return K.yield(D.innertubeTransportServicePromise,2);case 2:return H=K.yieldResult,e=_.qF(PU3),V=Date.now(),b={externalPostId:D.JSC$17225_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(V/1E3),nanos:Math.round(V%1E3*1E6)},intValue:""+t}},_.$p(K,3),K.yield(_.sK(H,b,e),5);case 5:a=K.yieldResult;_.yM(K,4);break;case 3:throw w=_.Pv(K),w;case 4:if(a){if("error"in a&&a.error)throw a.error;if(a.errorMetadata)throw Error("Bi`"+
a.errorMetadata.status);if(h=a.userStatResult)return K.return(h);throw Error("Ci");}throw Error("Di");}})},Q7v=function(D){var t,H,e,V,b;
_.Z(function(a){switch(a.nextAddress){case 1:return a.yield(D.innertubeTransportServicePromise,2);case 2:return t=a.yieldResult,H=_.qF(PU3),e={externalPostId:D.JSC$17225_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.$p(a,3),a.yield(_.sK(t,e,H),5);case 5:V=a.yieldResult;_.yM(a,4);break;case 3:throw b=_.Pv(a),b;case 4:if(V==null)throw Error("Di");if("error"in V&&V.error)throw V.error;if(V.errorMetadata)throw Error("Bi`"+V.errorMetadata.status);_.n2(a)}})};
Nov.prototype.flush=function(){var D=this;return _.Z(function(t){return t.nextAddress==1?t.yield(D.reportMiniAppValueRateLimiter.flush(),2):t.yield(D.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var IFm=function(D,t){return _.Z(function(H){return H.nextAddress==1?H.yield(D.validateMiniAppVideoIdRateLimiter.call(t),2):H.return(H.yieldResult)})},Kne=function(D,t){var H,e,V,b,a,w;
return _.Z(function(h){switch(h.nextAddress){case 1:return h.yield(D.innertubeTransportServicePromise,2);case 2:return H=h.yieldResult,e=_.qF(cr6),V={videoId:t},_.$p(h,3),h.yield(_.sK(H,V,e),5);case 5:b=h.yieldResult;_.yM(h,4);break;case 3:throw a=_.Pv(h),a;case 4:if(b){if("error"in b&&b.error)throw b.error;if(b.errorMetadata)throw Error("Bi`"+b.errorMetadata.status);if(w=b.playabilityStatus)return h.return(w.status);throw Error("Ei");}throw Error("Di");}})};
Nov[Fc]=[_.by(_.xg),_.by(Dnn)];var k4Q=function(){this.clientData=new Map};
k4Q.prototype.getData=function(D){return this.clientData.get(D)};var ToF=function(D){this.store=D};
ToF.prototype.handleResponse=function(D){(D=_.O(D.frameworkUpdates,t5))&&_.UO(D,this.store)};
ToF[Fc]=[_.sg];var c3F=new _.kI("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var jBF={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_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var $wZ=new _.kI("ICON_SET_TOKEN"),iQQ=new _.kI("ICON_URL_PROVIDER_TOKEN"),r3t=new _.kI("PREFETCH_ICONS_TOKEN"),OQv=new _.kI("ICON_MAP_FN_TOKEN");var gy={},UwH=(gy.ACCESS_TIME="clock",gy.ACCOUNT_BOX="person_account",gy.ACCOUNT_BOX_CAIRO="person_account_cairo",gy.ACCOUNT_CIRCLE="person_circle",gy.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",gy.ACCOUNT_LINKED="account_link_success",gy.ACCOUNT_UNLINKED="account_link",gy.ADD_FRIEND="people",gy.ADD_MODERATOR="shield_add",gy.ADD_TO_LIBRARY="bookmark",gy.ADD_TO_PLAYLIST="add",gy.ADD_TO_QUEUE_TAIL="list_queue",gy.ADD_TO_REMOTE_QUEUE="list_music",gy.ADD_TO_WATCH_LATER="clock",gy.ADD_VIDEO_LINK="film_strip_add",
gy.ALERT_WARN_RED="alert_triangle",gy.ARROW_BACK="arrow_left",gy.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",gy.ARROW_DROP_DOWN="chevron_down",gy.ARROW_DROP_UP="chevron_up",gy.ARROW_FORWARD="arrow_right",gy.AUDIOTRACK="audio",gy.AUTO_AWESOME="sparkle",gy.AVATAR_ANONYMOUS="person_circle",gy.AVATAR_LOGGED_OUT="person_circle",gy.BACK="arrow_left",gy.BAR_CHART="bar_graph",gy.BLOCK="slash_circle_left",gy.BLOCK_USER="slash_circle_left",gy.BOOKMARK_BORDER="bookmark",gy.BREAKING_NEWS_ALT_1="article_alert",
gy.BROADCAST_CAIRO="podcast_cairo",gy.BUG_REPORT="bug",gy.CAMERA_ALT="camera",gy.CAMPAIGN="megaphone",gy.CANCEL="x_circle",gy.CAPTIONS="closed_caption",gy.CAST_OUTLINE="chromecast",gy.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",gy.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",gy.CHAT="message_bubble_left",gy.CHAT_BUBBLE="message_bubble_empty",gy.CHAT_SPARK="spark_message_bubble_left",gy.CHECK_BOX_OUTLINE_BLANK="box_empty",gy.CHECK_CIRCLE_OUTLINE="check_circle",gy.CHECK_CIRCLE_THICK="check_circle",gy.CLARIFY=
"article_clarify",gy.CLOSED_CAPTION_SELECTED="closed_caption",gy.CLOSE="x_mark",gy.CLOUD_UPLOAD="cloud_arrow_up",gy.COLLAPSE="chevron_up",gy.COLLAPSE_CAIRO="chevron_up_cairo",gy.COLLECTION="layers",gy.COLOR_LENS="palette",gy.COMMENT="message_bubble_right",gy.CONSENT_SHIELD="person_shield",gy.CONTENT_CUT="scissors",gy.CONTENT_CUT_CAIRO="scissors_cairo",gy.COURSE=_.r("web_enable_course_icon_update")?"creator_academy":"lightbulb",gy.COURSE_CAIRO=_.r("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",gy.CREATION_LIVE="radar_live",gy.CREATION_POST="box_pencil",gy.CREATION_UPLOAD="my_videos",gy.CREATION_UPLOAD_RED="upload",gy.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",gy.CREATOR_STUDIO="youtube_studio",gy.DASHBOARD="grid_asymmetrical",gy.DELETE="trash_can",gy.DELETE_SWEEP="trash_can",gy.DESKTOP="laptop",gy.DISLIKE="thumb_down",gy.DISLIKE_SELECTED="thumb_down",gy.DISMISSAL="x_mark",gy.DISMISS_QUEUE="list_remove",gy.DONE_ALL="check_double",gy.DOWN_ARROW="arrow_down",gy.DO_NOT_DISTURB=
"slash_circle_left",gy.DRAFT="paper_corner_folded",gy.DRAG_HANDLE="bars_2",gy.EDIT="pencil",gy.EMOJI="face_very_happy",gy.EMOJI_FLAGS="flag",gy.EMOJI_OBJECTS="lightbulb",gy.EMOJI_PEOPLE="face_very_happy",gy.EMOJI_RECENT="clock",gy.EMPTY_HEART="heart",gy.EMPTY_LIKE="thumb_up",gy.ERROR_BLACK="alert_circle",gy.ERROR_OUTLINE="alert_circle",gy.EXIT_APP="arrow_in",gy.EXIT_TO_APP="arrow_in",gy.EXPAND="chevron_down",gy.EXPAND_ALL="chevron_expand",gy.EXPAND_CAIRO="chevron_down_cairo",gy.EXPAND_LESS="chevron_up",
gy.EXPAND_MORE="chevron_down",gy.EXPLORE="compass",gy.EXPLORE_DESTINATION="compass",gy.EXTERNAL_LINK="open_new",gy.FAB_UPLOAD="upload",gy.FACE_HAPPY_OUTLINE="face_happy",gy.FACT_CHECK="article_check",gy.FASHION_LOGO="fashion",gy.FASHION_LOGO_CAIRO="fashion_cairo",gy.FAVORITE="heart",gy.FEEDBACK="message_bubble_alert",gy.FEEDBACK_CAIRO="message_bubble_alert_cairo",gy.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",gy.FILL_ARROW_SOLID_UP_16="arrow_solid_up",gy.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
gy.FILTER="menu_filter",gy.FIRST_PAGE="chevron_first",gy.FLAG="flag",gy.FULL_HEART="heart",gy.GAME_CONSOLE_DPAD="game_console_dpad",gy.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",gy.GAMING_LOGO="gaming",gy.GAMING_LOGO_CAIRO="gaming_cairo",gy.GO_TO_PAGE="arrow_right",gy.GROUPS="people_group",gy.HAPPY="face_happy",gy.HEALTH_AND_SAFETY="shield_plus",gy.HELP="question_circle",gy.HELP_CAIRO="question_circle_cairo",gy.HELP_OUTLINE="question_circle",gy.HIDE="slash_circle_left",gy.IMAGE="image",
gy.INFINITY_ICON="infinity",gy.INFO="info_circle",gy.INFO_OUTLINE="info_circle",gy.INSERT_CHART="bar_graph_box_vertical",gy.INSERT_CHART_OUTLINED="bar_graph_box_vertical",gy.INSERT_PHOTO="image",gy.KEEP="pin",gy.KEEP_OFF="pin_off",gy.KEYBOARD="keyboard",gy.KEYBOARD_ARROW_DOWN="chevron_down",gy.KEYBOARD_ARROW_UP="chevron_up",gy.KIDS_BLOCK="slash_circle_left",gy.LANGUAGE="globe",gy.LAST_PAGE="chevron_last",gy.LAUNCH="open_new",gy.LEARNING="lightbulb",gy.LEARNING_CAIRO="lightbulb_cairo",gy.LIBRARY_ADD=
AbD("library_add"),gy.LIBRARY_OUTLINE="library",gy.LIBRARY_REMOVE=AbD(),gy.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",gy.LIKES_PLAYLIST="thumb_up",gy.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",gy.LIKE="thumb_up",gy.LIKE_SELECTED="thumb_up",gy.LIVE="radar_live",gy.LIVE_CAIRO="radar_live_cairo",gy.LIVE_UNLISTED="link",gy.LOCATION_ON="location_point",gy.LOCATION_PIN="location_point",gy.LOOP="arrow_repeat",gy.LOOP_ACTIVE="arrow_repeat",gy.LOOP_ONE="arrow_repeat_1",gy.LOOP_ONE_ACTIVE="arrow_repeat_1",gy.MEH=
"face_meh",gy.MEMBERS_ONLY_MODE_OFF="message_bubble_left",gy.MESSAGE="message_bubble_left",gy.MICROPHONE_ON="mic",gy.MIX="youtube_mix",gy.MONETIZATION_ON="dollar_sign_circle",gy.MONEY_FILL="dollar_sign_container",gy.MONEY_FILL_JPY="yen_sign_container",gy.MONEY_HEART="dollar_sign_heart",gy.MORE_HORIZ="overflow_horizontal",gy.MORE_VERT="overflow_vertical",gy.MUSIC="audio",gy.MUSIC_CAIRO="audio_cairo",gy.MUSIC_NOTE_SYMBOL="music",gy.MUSIC_SHUFFLE="arrow_shuffle",gy.MY_CHANNEL="person_circle",gy.MY_LOCATION=
"location_point",gy.NEWS_STORY="news",gy.NEXT="chevron_right",gy.NOTIFICATIONS="bell",gy.NOTIFICATIONS_ACTIVE="bell_on",gy.NOTIFICATIONS_CAIRO="bell_cairo",gy.NOTIFICATIONS_DONE_CHECKMARK="check",gy.NOTIFICATIONS_INBOX="bell",gy.NOTIFICATIONS_NONE="bell",gy.NOTIFICATIONS_OFF="bell_off",gy.NOT_INTERESTED="slash_circle_left",gy.OFFICIAL_ARTIST_BADGE="audio",gy.OFFLINE_CLOUD="cloud_off",gy.OFFLINE_DOWNLOAD="download",gy.OFFLINE_DOWNLOAD_CAIRO="download_cairo",gy.OFFLINE_PAUSE="pause",gy.OPEN_IN_NEW=
"open_new",gy.OUTLINE_ADJUST="adjust",gy.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",gy.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",gy.OUTLINE_BAG="bag",gy.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",gy.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",gy.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",gy.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",gy.PAID="dollar_sign",gy.PAUSE_OUTLINED="pause",gy.PAYMENT="credit_card",gy.PERSON_RADAR_FILLED="person_radar",gy.PHONE_DOWNLOAD="mobile_download",
gy.PLAYABLES_LOGO="tic_tac_toe",gy.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",gy.PLAYLISTS="list_play_arrow",gy.PLAYLISTS_CAIRO="list_play_arrow_cairo",gy.PLAYLIST_ADD=AbD("list_add"),gy.PLAYLIST_ADD_CHECK=AbD("list_check"),gy.PLAYLIST_PLAY="list_play_arrow",gy.PLAY_ALL="play_arrow",gy.PLAY_CIRCLE="play_arrow_circle",gy.PLAY_OUTLINED="play_arrow_circle",gy.PRIVACY_INFO="shield",gy.PRIVACY_PRIVATE="lock",gy.PRIVACY_PUBLIC="earth",gy.PRIVACY_UNLISTED="link",gy.PROMOTE="megaphone",gy.PURCHASES="price_tag",
gy.PURCHASE_SUPER_CHAT="super_chat",gy.PURCHASE_SUPER_STICKER="super_sticker",gy.QUESTION_ANSWER="message_bubble_question",gy.QUEUE_PLAY_LAST="list_queue_last",gy.QUEUE_PLAY_NEXT="list_play_arrow",gy.REMIX_FILLED="youtube_shorts_remix",gy.REMOVE="bar_circle",gy.REMOVE_CIRCLE="bar_circle",gy.REMOVE_CIRCLE_OUTLINE="bar_circle",gy.REMOVE_DONE="check_double_off",gy.REMOVE_FROM_HISTORY="bar_circle",gy.REMOVE_FROM_PLAYLIST="bar_circle",gy.REMOVE_MODERATOR="shield_off",gy.REPLAY="arrow_circle",gy.REPLAY_10=
"skip_back_10",gy.REPORT_PROBLEM="alert_triangle",gy.SAD="face_sad",gy.SAVE_PLAYLIST="bookmark",gy.SCHEDULE="clock",gy.SCHOOL="creator_academy",gy.SCREEN_FULLSCREEN="screen_full",gy.SEARCH_HISTORY="arrow_time",gy.SELL="price_tag",gy.SETTINGS="gear",gy.SETTINGS_CAIRO="gear_cairo",gy.SETTINGS_LIGHT="gear",gy.SETTINGS_MATERIAL="gear",gy.SHARE_ARROW="share",gy.SHIELD_WITH_AVATAR="person_shield",gy.SHOPPING_BAG="bag",gy.SHOPPING_BAG_CAIRO="bag_cairo",gy.SHOPPING_CART="cart",gy.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
gy.SHORTS_DISLIKE="youtube_shorts_thumb_down",gy.SHORTS_LIKE="youtube_shorts_thumb_up",gy.SHORTS_SHARE="youtube_shorts_share",gy.SHUFFLE="arrow_shuffle",gy.SLOW_MODE_OFF="message_bubble_left",gy.SOCIAL="people",gy.SORT="menu_sort",gy.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",gy.SPEED_1X="1x",gy.SPEED_1_POINT_2X="1_point_2x",gy.SPEED_1_POINT_5X="1_point_5x",gy.SPEED_1_POINT_8X="1_point_8x",gy.SPEED_2X="2x",gy.SPEED_POINT_2X="point_2x",gy.SPEED_POINT_8X="point_8x",gy.SPONSORSHIP_STAR="star_circle",
gy.STAFF_PICK="spotlight",gy.START_DVR="add",gy.STAR_BORDER="star",gy.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",gy.STICKER_EMOTICON="face_happy",gy.STOP_DVR="stop",gy.SUBSCRIBE="youtube_logo_icon",gy.SUBSCRIBE_PLUS="add_cairo",gy.SUBSCRIPTION_MANAGER="gear",gy.SUPERVISOR_ACCOUNT="people",gy.SUPER_CHAT_FOR_GOOD="hands_heart",gy.SWAP_HORIZ="arrow_swap_horizontal",gy.SWITCH_ACCOUNTS="person_account",gy.TAB_ACCOUNT="person",gy.TAB_ACTIVITY="bell",gy.TAB_BOOKMARK="bookmark",gy.TAB_EXPLORE="compass",
gy.TAB_HOME="home",gy.TAB_HOME_CAIRO="home_cairo",gy.TAB_INBOX="mail",gy.TAB_LIKED="thumb_up",gy.TAB_MUSIC_PREMIUM="youtube_music",gy.TAB_SHORTS="youtube_shorts",gy.TAB_SHORTS_CAIRO="youtube_shorts_cairo",gy.TAB_SUBSCRIPTIONS="subscriptions",gy.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",gy.TAB_TRENDING="fire",gy.TIMER="stopwatch",gy.TRAILER="youtube_originals",gy.TRENDING="fire",gy.TRENDING_CAIRO="fire_cairo",gy.TRENDING_UP="rating_up",gy.TROPHY="trophy",gy.TROPHY_CELEBRATIONS="fireworks",gy.TUNE=
"adjust",gy.UNBLOCK_USER="bar_circle",gy.UNLIMITED="youtube_logo_icon",gy.UNPLUGGED_LIVE_GUIDE="radar_live",gy.UNPLUGGED_SPORTS="eye_off",gy.UPLOADS="library",gy.UP_ARROW="arrow_up",gy.VERTICAL_ALIGN_BOTTOM="download",gy.VERY_HAPPY="face_very_happy",gy.VERY_SAD="face_very_sad",gy.VIDEOGAME_ASSET="gaming",gy.VIDEOS="play_arrow_circle",gy.VIDEO_CALL="video_camera_add",gy.VIDEO_LIBRARY_WHITE="library",gy.VIDEO_YOUTUBE="youtube_logo_icon",gy.VIEW_LIST="list_view",gy.VIEW_LIST_CAIRO="list_view_cairo",
gy.VISIBILITY="eye",gy.VISIBILITY_OFF="eye_off",gy.VOLUME_MUTE="volume_off",gy.VOLUME_UP="volume_on",gy.WALLPAPER="image",gy.WARNING="alert_triangle",gy.WATCH_HISTORY="arrow_time",gy.WATCH_HISTORY_CAIRO="arrow_time_cairo",gy.WATCH_LATER="clock",gy.WATCH_LATER_CAIRO="clock_cairo",gy.WATCH_RELATED_MIX="youtube_mix",gy.WHAT_TO_WATCH="home",gy.YOUTUBE_MUSIC_MONOCHROME="youtube_music",gy.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",gy.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
gy.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",gy.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",gy.YT_OUTLINE_MUSIC_24="music",gy);var Ja={},ove=(Ja.ACCESS_TIME="clock",Ja.ACCOUNT_BOX="person_square",Ja.ACCOUNT_BOX_CAIRO="person_square",Ja.ACCOUNT_CIRCLE="person_circle",Ja.ACCOUNT_CIRCLE_CAIRO="person_circle",Ja.ACCOUNT_LINKED="account_link",Ja.ACCOUNT_UNLINKED="account_link",Ja.ADD_CIRCLE="add_circle",Ja.ADD_CIRCLE_OUTLINE="add_circle",Ja.ADD_FRIEND="person_child",Ja.ADD_MODERATOR="shield_add",Ja.ADD_TO_LIBRARY="bookmark",Ja.ADD_TO_PLAYLIST="add",Ja.ADD_TO_QUEUE_TAIL="queue",Ja.ADD_TO_REMOTE_QUEUE="playlist_audio",Ja.ADD_TO_WATCH_LATER=
"clock",Ja.ADD_VIDEO_LINK="film_strip_add",Ja.ADMIN_PANEL_SETTINGS="person_gear",Ja.ALERT_WARN_RED="alert_triangle",Ja.ALIGN_LEFT="text_align_left",Ja.ARROWS_ALERT="arrow_split_alert",Ja.ARROW_BACK="arrow_left",Ja.ARROW_CIRCLE="arrow_counterclockwise",Ja.ARROW_CIRCLE_PLAY="replay",Ja.ARROW_CIRCLE_RIGHT="arrow_clockwise",Ja.ARROW_DIAGONAL="arrow_up_left",Ja.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Ja.ARROW_DROP_DOWN="triangle_down",Ja.ARROW_DROP_UP="triangle_up",Ja.ARROW_FORWARD="arrow_right",Ja.ARROW_PAUSE=
"pause_history",Ja.ARROW_UNDO="undo",Ja.ARTICLE="text_page",Ja.ARTICLE_ALERT="text_page_alert",Ja.ARTICLE_CHECK="text_page_check",Ja.ARTICLE_CLARIFY="text_page_info",Ja.AUDIOTRACK="audio",Ja.AUDIO_BADGE="audio_badge",Ja.AUDIO_SURROUND="surround_sound",Ja.AUTO_AWESOME="sparkles",Ja.AVATAR_ANONYMOUS="person_circle",Ja.AVATAR_LOGGED_OUT="person_circle",Ja.BACK="arrow_left",Ja.BAR_CHART="chart_bar",Ja.BAR_CIRCLE="minus_circle",Ja.BAR_HORIZONTAL="minus",Ja.BLOCK="circle_slash",Ja.BLOCK_USER="circle_slash",
Ja.BOOKMARK_BORDER="bookmark",Ja.BOX_OPEN_CHECK="quiz",Ja.BOX_PENCIL="square_pencil",Ja.BOX_STACK_3="square3_stack",Ja.BREAKING_NEWS_ALT_1="text_page_alert",Ja.BROADCAST="podcast",Ja.BROADCAST_CAIRO="podcast",Ja.BUG_REPORT="bug",Ja.CAMERA_ALT="camera",Ja.CAMPAIGN="megaphone",Ja.CANCEL="x_circle",Ja.CAPTIONS="closed_captions",Ja.CAST_ICON="chromecast",Ja.CAST_OUTLINE="chromecast",Ja.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Ja.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Ja.CHAT="text_bubble",
Ja.CHAT_BUBBLE="bubble",Ja.CHECK_BOX="check_square",Ja.CHECK_BOX_OUTLINE_BLANK="square",Ja.CHECK_CIRCLE_FILLED="check_circle",Ja.CHECK_CIRCLE_OUTLINE="check_circle",Ja.CHECK_CIRCLE_THICK="check_circle",Ja.CHECK_DOUBLE="check_done",Ja.CHECK_DOUBLE_OFF="check_done_slash",Ja.CHEVRON_LEFT="chevron_left",Ja.CHEVRON_RIGHT="chevron_right",Ja.CHEVRON_RIGHT_CAIRO="chevron_right",Ja.CIRCLES_OVERLAP="account_link",Ja.CLAPPERBOARD_CAIRO="clapperboard",Ja.CLARIFY="text_page_info",Ja.CLOCK_ARROWS="clock_split",
Ja.CLOCK_ARROWS_ALERT="clock_split_alert",Ja.CLOSED_CAPTION="closed_captions",Ja.CLOSED_CAPTION_SELECTED="closed_captions",Ja.CLOSE="x",Ja.CLOUD_UPLOAD="cloud_arrow_up",Ja.COLLAPSE="chevron_up",Ja.COLLAPSE_CAIRO="chevron_up",Ja.COLLECTION="square3d_stack",Ja.COLOR_LENS="paint_palette",Ja.COMMENT="text_bubble",Ja.CONSENT_SHIELD="person_shield",Ja.CONTENT_CUT="scissors",Ja.CONTENT_CUT_CAIRO="scissors",Ja.COURSE="graduation_cap",Ja.COURSE_CAIRO="graduation_cap",Ja.CREATION_LIVE="live",Ja.CREATION_POST=
"square_pencil",Ja.CREATION_UPLOAD="video",Ja.CREATION_UPLOAD_RED="upload",Ja.CREATOR_ACADEMY="graduation_cap",Ja.CREATOR_STUDIO="youtube_studio",Ja.DARK_THEME="theme",Ja.DELETE="trash_can",Ja.DELETE_SWEEP="trash_can",Ja.DESKTOP="laptop",Ja.DISLIKE="thumb_down",Ja.DISLIKE_SELECTED="thumb_down",Ja.DISMISSAL="x",Ja.DISMISS_QUEUE="playlist_x",Ja.DOGFOOD="pawprint",Ja.DOLLAR_SIGN="dollar_sign_circle",Ja.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Ja.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Ja.DOWN_ARROW=
"arrow_down",Ja.DO_NOT_DISTURB="circle_slash",Ja.DRAFT="document",Ja.DRAG_HANDLE="equal",Ja.EARTH="globe",Ja.EDIT="pencil",Ja.EMOJI="face_very_happy",Ja.EMOJI_FLAGS="flag",Ja.EMOJI_OBJECTS="lightbulb",Ja.EMOJI_PEOPLE="face_very_happy",Ja.EMOJI_RECENT="clock",Ja.EMPTY_HEART="heart",Ja.EMPTY_LIKE="thumb_up",Ja.ERROR_BLACK="alert_circle",Ja.ERROR_OUTLINE="alert_circle",Ja.ERROR_WHITE="alert_circle",Ja.EXIT_APP="arrow_in",Ja.EXIT_TO_APP="arrow_in",Ja.EXPAND="chevron_down",Ja.EXPAND_ALL="chevron_expand",
Ja.EXPAND_CAIRO="chevron_down",Ja.EXPAND_LESS="chevron_up",Ja.EXPAND_MORE="chevron_down",Ja.EXPLORE="compass",Ja.EXPLORE_DESTINATION="compass",Ja.EXTERNAL_LINK="arrow_up_right",Ja.EYE_OFF="eye_slash",Ja.FAB_UPLOAD="upload",Ja.FACE_HAPPY_OUTLINE="face_happy",Ja.FACE_MEH="face_neutral",Ja.FACT_CHECK="text_page_check",Ja.FASHION_LOGO="fashion",Ja.FASHION_LOGO_CAIRO="fashion",Ja.FAVORITE="thumb_up",Ja.FEEDBACK="alert_bubble",Ja.FEEDBACK_CAIRO="alert_bubble",Ja.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
Ja.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Ja.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Ja.FLAG_CAIRO="flag",Ja.FLASH_OFF="flash_slash",Ja.FLASH_ON="flash",Ja.FULL_HEART="heart",Ja.GAMING_LOGO="gaming",Ja.GAMING_LOGO_CAIRO="gaming",Ja.GO_TO_PAGE="arrow_right",Ja.GROUPS="person3",Ja.HAND_SWIPE_LEFT="gesture_swipe_left",Ja.HAND_SWIPE_RIGHT="gesture_swipe_right",Ja.HAPPY="face_happy",Ja.HEALTH_AND_SAFETY="shield_health",Ja.HEART_BOX="heart_cube",Ja.HELP="help_circle",Ja.HELP_CAIRO="help_circle",
Ja.HELP_OUTLINE="help_circle",Ja.HIDE="circle_slash",Ja.INCOGNITO_CAIRO="incognito",Ja.INFINITY_ICON="infinity",Ja.INFO="info_circle",Ja.INFO_OUTLINE="info_circle",Ja.INSERT_CHART="chart_bar_square",Ja.INSERT_CHART_OUTLINED="chart_bar_square",Ja.INSERT_PHOTO="image",Ja.KEEP="pin",Ja.KEEP_OFF="pin_slash",Ja.KEYBOARD="keyboard",Ja.KEYBOARD_ARROW_DOWN="chevron_down",Ja.KEYBOARD_ARROW_UP="chevron_up",Ja.KIDS_BLOCK="circle_slash",Ja.LANGUAGE="globe",Ja.LAUNCH="arrow_up_right",Ja.LEARNING="lightbulb",Ja.LEARNING_CAIRO=
"lightbulb",Ja.LIBRARY_ADD="bookmark",Ja.LIBRARY_IMAGE="image_stack",Ja.LIBRARY_MUSIC="audio_square_stack",Ja.LIBRARY_OUTLINE="play_square_stack",Ja.LIBRARY_REMOVE="bookmark",Ja.LIBRARY_SAVED="check_square_stack",Ja.LIKES_PLAYLIST="thumb_up",Ja.LIKES_PLAYLIST_CAIRO="thumb_up",Ja.LIKE="thumb_up",Ja.LIKE_SELECTED="thumb_up",Ja.LIST_QUEUE="queue",Ja.LIVE_CAIRO="live",Ja.LIVE_UNLISTED="link",Ja.LOCATION_ON="location_pin",Ja.LOCATION_PIN="location_pin",Ja.LOCATION_POINT="location_pin",Ja.LOOP="repeat",
Ja.LOOP_ACTIVE="repeat",Ja.LOOP_ONE="repeat1",Ja.LOOP_ONE_ACTIVE="repeat1",Ja.MEET="google_meet",Ja.MEH="face_neutral",Ja.MEMBERSHIPS="memberships",Ja.MEMBERS_ONLY_MODE_OFF="text_bubble",Ja.MENU_FILTER="filter",Ja.MESSAGE="text_bubble",Ja.MESSAGE_BUBBLE_GEAR="bubble_gear",Ja.MESSAGE_BUBBLE_LEFT="text_bubble",Ja.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Ja.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Ja.MESSAGE_BUBBLE_QUESTION="help_bubble",Ja.MICROPHONE_ON="mic",Ja.MONETIZATION_ON="dollar_sign_circle",
Ja.MONEY_FILL="dollar_sign_rectangle",Ja.MONEY_FILL_JPY="yen_sign_rectangle",Ja.MONEY_HAND="dollar_sign_circle_hand",Ja.MONEY_HEART="dollar_sign_heart",Ja.MOON_Z="sleep_timer",Ja.MORE_HORIZ="overflow_horizontal",Ja.MORE_VERT="overflow_vertical",Ja.MUSIC="audio",Ja.MUSIC_CAIRO="audio",Ja.MUSIC_EXPLICIT_BADGE="explicit",Ja.MUSIC_NEW_RELEASE="audio_badge",Ja.MUSIC_NOTE_SYMBOL="audio",Ja.MUSIC_SCISSORS="audio_scissors",Ja.MUSIC_SHUFFLE="shuffle",Ja.MY_CHANNEL="person_circle",Ja.MY_LOCATION="location_pin",
Ja.MY_VIDEOS="video",Ja.MY_VIDEOS_CAIRO="video",Ja.NEWS_CAIRO="news",Ja.NEWS_STORY="news",Ja.NEXT="chevron_right",Ja.NOTE_ADD="bubble_pencil",Ja.NOTIFICATIONS="bell",Ja.NOTIFICATIONS_ACTIVE="bell_waves",Ja.NOTIFICATIONS_CAIRO="bell",Ja.NOTIFICATIONS_DONE_CHECKMARK="check",Ja.NOTIFICATIONS_INBOX="bell",Ja.NOTIFICATIONS_NONE="bell",Ja.NOTIFICATIONS_OFF="bell_slash",Ja.NOT_INTERESTED="circle_slash",Ja.OFFICIAL_ARTIST_BADGE="audio",Ja.OFFLINE_CLOUD="cloud_slash",Ja.OFFLINE_DOWNLOAD="download",Ja.OFFLINE_DOWNLOAD_CAIRO=
"download",Ja.OFFLINE_PAUSE="pause",Ja.OPEN_IN_NEW="arrow_up_right",Ja.OUTLINE_ADJUST="adjust",Ja.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Ja.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Ja.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Ja.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Ja.OUTLINE_BAG="bag",Ja.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Ja.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Ja.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Ja.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Ja.PAID=
"dollar_sign_circle",Ja.PAUSE_OUTLINED="pause",Ja.PAYMENT="credit_card",Ja.PEOPLE="person_child",Ja.PEOPLE_2="person2_rectangle",Ja.PEOPLE_GROUP="person3",Ja.PEOPLE_NOTE="bubble_asterisk",Ja.PERSON_2="person2",Ja.PERSON_ACCOUNT="person_square_stack",Ja.PERSON_MINUS="person_x",Ja.PERSON_MUSIC="person_audio",Ja.PERSON_RADAR="person_waves",Ja.PERSON_RADAR_FILLED="person_waves",Ja.PERSON_SETTING="person_gear",Ja.PHONE="phone",Ja.PHONE_DOWNLOAD="mobile_arrow_down",Ja.PICTURE_IN_PICTURE="picture_in_picture",
Ja.PLAYABLES_LOGO="playables",Ja.PLAYABLES_LOGO_CAIRO="playables",Ja.PLAYLISTS="playlist",Ja.PLAYLISTS_CAIRO="playlist",Ja.PLAYLIST_ADD_CHECK="bookmark",Ja.PLAY_ALL="play",Ja.PLAY_ARROW="play",Ja.PLAY_ARROW_CIRCLE="play_circle",Ja.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Ja.PLAY_CIRCLE="play_circle",Ja.PLAY_OUTLINED="play_circle",Ja.PODCAST_ADD="podcast_add",Ja.PODCAST_CHECK="podcast_check",Ja.PRIVACY_INFO="shield_x",Ja.PRIVACY_PRIVATE="lock",Ja.PRIVACY_PUBLIC="globe",Ja.PRIVACY_UNLISTED=
"link",Ja.PROMOTE="megaphone",Ja.PURCHASES="price_tag",Ja.PURCHASE_SUPER_CHAT="super_chat",Ja.PURCHASE_SUPER_STICKER="super_sticker",Ja.QUESTION_ANSWER="help_bubble",Ja.QUESTION_CIRCLE="help_circle",Ja.QUEUE_PLAY_LAST="queue_last",Ja.QUEUE_PLAY_NEXT="queue_next",Ja.QUOTATION_MARK="quote",Ja.RADAR_LIVE="live",Ja.REMOVE="minus_circle",Ja.REMOVE_CIRCLE="minus_circle",Ja.REMOVE_CIRCLE_OUTLINE="minus_circle",Ja.REMOVE_FROM_HISTORY="minus_circle",Ja.REMOVE_FROM_PLAYLIST="minus_circle",Ja.REMOVE_MODERATOR=
"shield_slash",Ja.REPLAY="arrow_counterclockwise",Ja.REPLAY_10="skip10_back",Ja.REPLAY_ARROW="replay",Ja.REPORT_PROBLEM="alert_triangle",Ja.RSS_OFF="rss_slash",Ja.SAD="face_sad",Ja.SAVE_PLAYLIST="bookmark",Ja.SCHEDULE="clock",Ja.SCHOOL="graduation_cap",Ja.SCREEN_DEFAULT="player_default",Ja.SCREEN_FULLSCREEN="player_full_enter",Ja.SCREEN_LIGHT="ambient_mode",Ja.SCREEN_ROTATION="rotate_portrait",Ja.SCREEN_SWITCH="player_switch",Ja.SCREEN_THEATRE="player_theater",Ja.SEARCH_CAIRO="search",Ja.SEARCH_HISTORY=
"history",Ja.SELL="price_tag",Ja.SETTINGS="gear",Ja.SETTINGS_CAIRO="gear",Ja.SETTINGS_LIGHT="gear",Ja.SETTINGS_MATERIAL="gear",Ja.SETTINGS_REMOTE="remote_waves",Ja.SHARE="share",Ja.SHARE_ARROW="share",Ja.SHARE_CAIRO="share",Ja.SHIELD="shield_x",Ja.SHIELD_OFF="shield_slash",Ja.SHIELD_WITH_AVATAR="person_shield",Ja.SHOPPING_BAG="bag",Ja.SHOPPING_BAG_CAIRO="bag",Ja.SHOPPING_CART="cart",Ja.SHORTS_COMMENT="text_bubble",Ja.SHORTS_DISLIKE="thumb_down",Ja.SHORTS_LIKE="thumb_up",Ja.SHORTS_SHARE="share",Ja.SKIP_FORWARD_30=
"skip30_forward",Ja.SLASH_CIRCLE_RIGHT="circle_slash",Ja.SLOW_MODE="bubble_slow",Ja.SLOW_MODE_OFF="text_bubble",Ja.SOCIAL="person_child",Ja.SPARKLE="sparkles",Ja.SPARK_IMAGE="image_spark",Ja.SPARK_RADAR="spark_waves",Ja.SPARK_VIDEO="video_spark",Ja.SPEAKER_GROUP="speaker_stack",Ja.SPEAKER_OFF="speaker_slash",Ja.SPEED_1X="n1x",Ja.SPEED_1_POINT_2X="n1point2x",Ja.SPEED_1_POINT_5X="n1point5x",Ja.SPEED_1_POINT_8X="n1point8x",Ja.SPEED_2X="n2x",Ja.SPONSORSHIP_STAR="star_circle",Ja.SPORTS="basketball",Ja.SPOTLIGHT=
"spotlight",Ja.STAFF_PICK="spotlight",Ja.START_DVR="add",Ja.STAR_BORDER="star",Ja.STAR_CIRCLE_RIBBON="memberships_gift",Ja.STAR_HALF="star_half_filled",Ja.STAR_SHOOTING="hype",Ja.STICKER="sticker",Ja.STICKER_EMOTICON="face_happy",Ja.STOP_DVR="stop",Ja.SUBSCRIBE="youtube",Ja.SUBSCRIBE_PLUS="add",Ja.SUBSCRIPTION_MANAGER="gear",Ja.SUPERSTAR="super_star",Ja.SUPERVISOR_ACCOUNT="person_child",Ja.SUPER_CHAT_FOR_GOOD="hands_heart",Ja.SWAP_HORIZ="arrow_swap_horizontal",Ja.SWITCH_ACCOUNTS="person_square_stack",
Ja.TAB_ACCOUNT="person",Ja.TAB_ACTIVITY="bell",Ja.TAB_BOOKMARK="bookmark",Ja.TAB_EXPLORE="compass",Ja.TAB_HOME="home",Ja.TAB_HOME_CAIRO="home",Ja.TAB_INBOX="mail",Ja.TAB_LIKED="thumb_up",Ja.TAB_MUSIC_PREMIUM="youtube_music",Ja.TAB_SHORTS="shorts",Ja.TAB_SHORTS_CAIRO="shorts",Ja.TAB_SUBSCRIPTIONS="subscriptions",Ja.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Ja.TAB_TRENDING="trending",Ja.TARGET="target",Ja.TARGET_ADD="target_add",Ja.TEMPLATE_ADD="template_add",Ja.TEXT="font",Ja.TIMER="stopwatch",Ja.TRENDING_CAIRO=
"trending",Ja.TRENDING_UP="arrow_trend_up",Ja.TROPHY_CAIRO="trophy",Ja.TROPHY_CELEBRATIONS="fireworks",Ja.TROPHY_STAR="star_trophy",Ja.TUNE="adjust",Ja.TV_OFF="tv_slash",Ja.UNBLOCK_USER="minus_circle",Ja.UNFAVORITE="thumb_down",Ja.UNLIMITED="youtube",Ja.UNPLUGGED_LIVE_GUIDE="live",Ja.UNPLUGGED_SPORTS="eye_slash",Ja.UPLOADS="play_square_stack",Ja.UP_ARROW="arrow_up",Ja.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Ja.VERTICAL_ALIGN_TOP="chevron_up_end",Ja.VERY_HAPPY="face_very_happy",Ja.VERY_SAD="face_very_sad",
Ja.VIDEOS="play_circle",Ja.VIDEO_CALL="video_camera_add",Ja.VIDEO_LIBRARY_WHITE="play_square_stack",Ja.VIDEO_QUALITY_4K="n4k",Ja.VIDEO_QUALITY_8K="n8k",Ja.VIDEO_YOUTUBE="youtube",Ja.VIEW_LIST_CAIRO="view_list",Ja.VIEW_MODULE="view_column3_row2",Ja.VISIBILITY="eye",Ja.VISIBILITY_OFF="eye_slash",Ja.VOLUME_DOWN="volume_min",Ja.VOLUME_MUTE="volume_mute",Ja.VOLUME_OFF="volume_mute",Ja.VOLUME_STABLE="stable_volume",Ja.VOLUME_UP="volume_max",Ja.WALLPAPER="image",Ja.WARNING="alert_triangle",Ja.WATCH_HISTORY=
"history",Ja.WATCH_HISTORY_CAIRO="history",Ja.WATCH_LATER="clock",Ja.WATCH_LATER_CAIRO="clock",Ja.WATCH_RELATED_MIX="mix",Ja.WHAT_TO_WATCH="home",Ja.YOUTUBE_LINKED_TV="tv_mobile",Ja.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Ja.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Ja.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Ja.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Ja.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Ja.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Ja.YOUTUBE_SHORTS_OUTLINE_24="shorts",
Ja);var PaY={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,3,24],[1,3,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,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,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,
9,36],[1,9,24],[1,9,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],
[1,7,24]],film_strip_add:[[1,2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,
4,24]],football:[[0,4,24],[1,4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,
3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,
2,24],[1,2,24]],hourglass:[[1,3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],
library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,
3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,
3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,5,16],[1,5,24]],menu_filter:[[0,1,24],[1,
1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,
13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,
3,24]],music_video:[[1,4,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,13,24]],overflow_vertical_cairo:[[1,1,
24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,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,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,
1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,
2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,
1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,
1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,
1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,6,12],[0,6,16],[0,6,24],[1,6,12],[1,6,16],[1,6,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],
[1,1,16],[1,1,20],[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,
1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,
1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],
transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,
24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],
[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[0,9,24],[1,9,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],
youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],
[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,2,24],[1,2,24]]};var nvQ={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,2,18],[1,2,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,
1,24]],eyedropper:[[1,2,24]],face_add:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,
9,24],[1,9,24]],fashion:[[0,4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,
1,24]],flip_vertical_half_dashed:[[1,1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,
1,24]],gesture_swipe_left:[[1,1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[0,5,24],[1,5,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,
1,24]],hand:[[1,2,24]],hand_wave:[[1,2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,
2,24],[1,2,24]],image:[[0,8,24],[1,8,24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,
4,24],[1,4,24]],layout_bottom:[[1,1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,
1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,5,24]],menu:[[1,1,24]],mic:[[0,
13,18],[0,13,24],[0,13,48],[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,4,24],[1,4,18],[1,4,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,
1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,
6,24],[1,6,36]],overflow_vertical:[[1,13,18],[1,13,24],[1,13,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,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,2,24],[1,2,18],[1,2,24]],person_add:[[0,
7,24],[1,7,18],[1,7,24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],
[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,
1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,5,12],[1,5,18],[1,5,24],[1,5,48]],playlist_add:[[1,3,18],[1,3,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],
playlist_pencil:[[1,2,24],[1,2,48]],playlist_x:[[1,3,18],[1,3,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,
2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,2,24],[1,2,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,
24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,18],[1,15,24],[1,15,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,
24],[1,2,24]],share_ios:[[1,2,24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,4,24],[1,4,18],[1,4,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,
2,24],[1,2,36]],skip5_back:[[1,1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,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,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,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,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,
8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],template_play_spark:[[1,1,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],
text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,
5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,
48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[1,1,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],
[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,9,24],[1,9,18],[1,9,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,
8,24],[1,8,24]],zoom_auto:[[1,2,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var Cab={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},Ya=function(D){this.iconUrlProvider=D};
Ya.prototype.resolveIcon=function(D,t){var H=Cab[D.iconName.toUpperCase()];H&&(D.iconName=H);var e=D.iconName;e=e.replace(/-/g,"_");D=Object.assign({},D,{iconName:this.mapIconTypeToStandardName(e,!!H)||e.toLowerCase()});if(_.r("enable_web_delhi_icons")||H){var V;return fdV(nvQ,D,((V=this.iconUrlProvider)==null?void 0:V.getYtStandardUrl)||Jb8,t)}var b;return fdV(PaY,D,((b=this.iconUrlProvider)==null?void 0:b.getYtStandardUrl)||gbV,t)};
Ya.prototype.mapIconTypeToStandardName=function(D,t){return _.r("enable_web_delhi_icons")||t?ove[D.toUpperCase()]:UwH[D.toUpperCase()]};
Ya[Fc]=[_.by(iQQ)];var mw4=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),MfH=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),Smg=function(D){this.urlProvider=this.iconUrlProvider=D};
_.P(Smg,Ya);
Smg.prototype.resolveIcon=function(D,t){D.iconName==="youtube_logo"&&(D.iconName="yt-logo-updated");if(D.iconName==="youtube_premium_logo"||D.iconName==="youtube_red_logo")D.iconName="yt-logo-red-updated";var H=Object.assign({},D);D.iconName==="menu"&&(_.r("enable_web_delhi_icons")||(H.iconName="bars_3"),H.iconStyle="youtube_outline");D.iconSetName==="socialNetworksRound"&&(D.iconName==="mail"&&(H.iconName="email"),D.iconName==="embed"&&(H.iconSize=60));D.iconName==="more"&&(H.iconName="overflow_horizontal");
D.iconName==="fullscreen"&&(H.iconName="screen_full");D.iconName==="premium_standalone"&&(H.iconName="premium_standalone_cairo");_.r("enable_connect_icon_update_web")&&D.iconName==="account_linked"&&(H.iconName="circles_overlap_check",H.iconStyle="youtube_fill");_.r("enable_connect_icon_update_web")&&D.iconName==="account_unlinked"&&(H.iconName="circles_overlap",H.iconStyle="youtube_outline");mw4.has(D.iconName)&&(H.iconStyle="youtube_fill");_.r("enable_web_delhi_icons")&&(D.iconName==="playlist_add"&&
(H.iconName="bookmark"),D.iconName==="offline_pin"&&(H.iconName="arrow_down_circle",H.iconStyle="youtube_fill"),MfH.has(D.iconName)&&(H.iconName+="_updated"));D=Object.assign({},H,{iconName:(Ya.prototype.mapIconTypeToStandardName.call(this,H.iconName)||H.iconName).toLowerCase()});var e;return(D=fdV(jBF,D,((e=this.urlProvider)==null?void 0:e.getUrl)||YNk,t))?D:Ya.prototype.resolveIcon.call(this,H,t)};
Smg[Fc]=[_.by(iQQ)];_.X9b=1;var lX=function(D,t){this.JSC$17256_commandHandler=D;this.innertubeTransportService=t};
_.P(lX,ER);lX.prototype.resolveCommand=function(D,t){var H=this,e,V,b;return _.Z(function(a){return(e=_.O(D,aEm))?a.return(ffb(H,e,(V=t)==null?void 0:(b=V.form)==null?void 0:b.element)):a.return()})};
var ffb=function(D,t,H){t={profileCardContext:t.profileCardContext,profileOwnerExternalChannelId:t.profileOwnerExternalChannelId};var e=_.qF(ezm);return _.sK(D.innertubeTransportService,t,e).then(function(V){if(!V)throw new _.nZ("GetProfileCard failed");if(V=V.popupCommand){D.JSC$17256_commandHandler.resolveCommand(V,{form:{element:H}});_.Li(_.Pc(),66557);V=V==null?void 0:V.clickTrackingParams;var b=_.lo();V&&b&&_.Pc().graftServerVe(V,b)}})};
lX[Fc]=[_.aA,_.xg];var pq=function(){};
_.P(pq,ER);pq.prototype.resolveCommand=function(D){var t,H;return _.Z(function(e){t=_.O(D,N89);if(!t)return e.return();H=Number(t.enableDelayedPacfLoggingTvMs);if(isNaN(H)){var V=lH();mUm(V,t,0)}else mUm(lH(),t,H);_.n2(e)})};_.dy=function(){};
_.P(_.dy,ER);
_.dy.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w,h,K;return _.Z(function(N){e=_.O(D,kT4);b=(V=t.form)==null?void 0:V.element;w=(a=b)==null?void 0:a.closest("ytd-enforcement-message-view-model");if(!e||!w)return N.return();H.allowAdsAction||(h=e.fundingChoiceInstructionPageUrl,H.allowAdsAction=new XnB(window,_.YV(h)));var k=H.allowAdsAction;k.wallElement=w;k.allowAdsPopup.style.setProperty("display","flex","important");var T=k.scrollManager;T.originalBodyOverflow=T.JSC$10004_domHelper.JSC$9330_document_.body.style.overflow;T.JSC$10004_domHelper.JSC$9330_document_.body.style.overflow=
"hidden";k.wallElement.style.setProperty("display","none","important");xpm(k.accessibilityManager,k.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((K=H.allowAdsAction.allowAdsPopup)&&K instanceof HTMLElement)for(k=_.F(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),T=k.next();!T.done;T=k.next()){var c=_.F(T.value);T=c.next().value;c=c.next().value;K.style.setProperty(T,c)}_.n2(N)})};
_.dy.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var xa=function(){};
_.P(xa,ER);xa.prototype.resolveCommand=function(D){var t;return _.Z(function(H){t=_.O(D,Gin);if(!t)return H.return();NyV(D);_.n2(H)})};var Rr=function(D){this.JSC$17271_commandHandler=D};
_.P(Rr,ER);
Rr.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a,w,h,K;return _.Z(function(N){if(N.nextAddress==1){H=_.O(D,vqQ);if((e=H)==null||!e.text||!navigator.clipboard)return N.return();_.$p(N,2);return N.yield(navigator.clipboard.writeText(H.text),4)}if(N.nextAddress!=2){if(!H.successActions||H.successActions.length===0)return N.return();V=_.F(H.successActions);for(b=V.next();!b.done;b=V.next())a=b.value,t.JSC$17271_commandHandler.resolveCommand(a);return _.yM(N,0)}_.Pv(N);if(!H.failureActions||H.failureActions.length===
0)return N.return();w=_.F(H.failureActions);for(h=w.next();!h.done;h=w.next())K=h.value,t.JSC$17271_commandHandler.resolveCommand(K);_.n2(N)})};
Rr[Fc]=[_.aA];var uX=function(D){this.JSC$17275_commandHandler=D};
_.P(uX,ER);
uX.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w,h,K,N,k,T;return _.Z(function(c){switch(c.nextAddress){case 1:e=_.O(D,jm6);if(!e)return c.return();_.$p(c,2);if(!e.imageBytes&&!e.imageUrl)throw Error("Fi");if(!e.imageUrl){if(e.imageBytes){b=e.imageBytes;a=b.replace(/-/g,"+").replace(/_/g,"/");var U=pik(a);V=_.xh(U)}c.jumpTo(4);break}return c.yield(fetch(e.imageUrl),5);case 5:return w=c.yieldResult,c.yield(w.blob(),6);case 6:h=c.yieldResult,V=_.xh(h);case 4:k=(K=t)==null?void 0:(N=K.form)==
null?void 0:N.element;T=document.createElement("a");WU(T,V);k.appendChild(T);T.download="";T.click();k.removeChild(T);URL.revokeObjectURL(_.JA(V));e.successCommand&&H.JSC$17275_commandHandler.resolveCommand(e.successCommand);_.yM(c,0);break;case 2:_.Pv(c),e.errorCommand&&H.JSC$17275_commandHandler.resolveCommand(e.errorCommand),_.n2(c)}})};
uX[Fc]=[_.aA];var W8=function(D){this.store=D};
_.P(W8,ER);W8.prototype.resolveCommand=function(D){var t=this,H,e,V;return _.Z(function(b){e=(H=_.O(D,_.oIa))==null?void 0:H.entityBatchUpdate;if(!e)return b.jumpTo(0);V=Object.assign({},e,{mutations:[].concat(_.A6(e.mutations||[]))});return b.yield(_.UO(V,t.store),0)})};var LnH=function(D){this.JSC$17282_commandHandler=D;this.feedbackDialogMap=new Map};
LnH.prototype.openDialog=function(D,t){(D=this.feedbackDialogMap.get(D))&&this.JSC$17282_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:D}},t)};
LnH[Fc]=[_.aA];var Ir=new _.kI("FEEDBACK_CONTROLLER_TOKEN");var QS=new _.kI("APP_STORE_TOKEN");var yS=function(D,t){this.store=D;this.controller=t};
_.P(yS,ER);yS.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u;return _.Z(function(R){if(R.nextAddress==1){e=_.O(D,_.XC);if(b=(V=e)==null?void 0:V.contentId)for(w=_.F(((a=e)==null?void 0:a.actions)||[]),h=w.next();!h.done;h=w.next())K=h.value,A3Z(H,K,b);T=(N=t)==null?void 0:(k=N.form)==null?void 0:k.element;return R.yield(_.NJ(T,[D,{impression:(c=t)==null?void 0:c.disableClickTracking}]).catch(function(){}),2)}U=R.yieldResult;
((S=U)==null?0:(L=S.data)==null?0:(J=L.feedbackResponses)==null?0:J.length)&&(Q=(g=U.data.feedbackResponses[0])==null?void 0:g.followUpDialog)&&b&&(u=H.controller)!=null&&u.feedbackDialogMap.set(b,Q);_.n2(R)})};
var A3Z=function(D,t,H){var e=_.O(t,_.ch);if(e){e=_.F(e.commands||[]);for(var V=e.next();!V.done;V=e.next())A3Z(D,V.value,H)}_.O(t,_.vu)&&D.store.dispatch(_.nf("commandEntity",AQT(H),{key:H,command:t}));_.O(t,E1V)&&D.store.dispatch(_.nf("commandEntity",AQT(H),{key:H,command:t}))};
yS[Fc]=[QS,Ir];var B8=function(D){this.controller=D};
_.P(B8,ER);B8.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a;return _.Z(function(w){e=_.O(D,_.xw);b=(V=e)==null?void 0:V.targetId;if(((a=e)==null?void 0:a.signal)!=="TELL_US_WHY"||!b)return w.return();H.controller.openDialog(b,t);_.n2(w)})};
B8[Fc]=[Ir];var zM=function(D){this.store=D};
_.P(zM,ER);zM.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w,h,K;return _.Z(function(N){e=_.O(D,ndR);b=(V=e)==null?void 0:V.contentId;h=(a=t)==null?void 0:(w=a.form)==null?void 0:w.element;K=_.NJ(h,[D]);b&&H.undo(b);return N.yield(K,0)})};
zM.prototype.undo=function(D){this.store.dispatch(_.nf("commandEntity",AQT(D),{key:D,command:void 0}))};
zM[Fc]=[QS];var DI=function(D){this.JSC$17297_commandHandler=D};
_.P(DI,ER);DI.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a,w,h,K;return _.Z(function(N){H=_.O(D,pNQ);e=H.flowStateKey;V=H.validationFailureCommand;b=H.submitValidFormCommand;a=RYD(_.Dm,[e||""]);w=_.O(a,xMf);((h=w)==null?0:h.isValid)&&b&&t.JSC$17297_commandHandler.resolveCommand(b);((K=w)==null?0:K.isValid)||!V||t.JSC$17297_commandHandler.resolveCommand(V);_.n2(N)})};
DI[Fc]=[_.aA];var tg=function(D){this.innertubeTransportService=D};
_.P(tg,ER);tg.prototype.resolveCommand=function(D,t){var H=this,e;return _.Z(function(V){return V.yield(_.BZ(H.innertubeTransportService,D,(e=t)==null?void 0:e.form).then(function(b){var a,w;t==null||(a=t.commandController)==null||(w=a.onSuccess)==null||w.call(a,D,b)},function(b){var a,w;
t==null||(a=t.commandController)==null||(w=a.onServerError)==null||w.call(a,D,b)}),0)})};
tg[Fc]=[_.xg];var H6=function(){};
_.P(H6,ER);H6.prototype.resolveCommand=function(D){var t,H,e,V;return _.Z(function(b){if(t=_.O(D,_.Xwf)){if(H=t.gtmId)e=_.YC("GL",""),_.HP(H,e);(V=t.gtmData)&&_.e8(V)}_.n2(b)})};var eK=function(D,t,H){this.innertubeTransportService=D;this.JSC$17308_actionRouter=t;this.JSC$17308_screenManager=H};
_.P(eK,ER);eK.prototype.resolveCommand=function(D){var t=this,H,e;return _.Z(function(V){H=_.O(D,Y2n);if(!H)return V.return();e=H.command;if(!e)return V.return();t.JSC$17308_actionRouter.triggerAction("yt-insert-rich-section-action",H);return V.yield(_.BZ(t.innertubeTransportService,e,{disableCache:!0}).then(function(b){D.clickTrackingParams&&(b==null?0:b.trackingParams)&&t.JSC$17308_screenManager.graftServerVe(b.trackingParams,_.Sa(D.clickTrackingParams))}),0)})};
eK[Fc]=[_.xg,Oz,_.eX];xVT.bind(null,K3);var gvF=xVT.bind(null,uM9);u38.bind(null,K3);var J3F=u38.bind(null,uM9);Id3.bind(null,K3);var Ymv=Id3.bind(null,uM9);var Ve=function(){};
_.P(Ve,ER);
Ve.prototype.resolveCommand=function(D){var t,H,e,V,b,a,w,h,K,N;return _.Z(function(k){t=_.O(D,Ox4);if(!t)return k.return();e=((H=t.operations)==null?void 0:H.operations)||[];V=_.F(e);for(b=V.next();!b.done;b=V.next())if(a=b.value,a.insertItemSectionContent){var T=a.insertItemSectionContent,c=T.contents||[];T.insertByPositionInSection?gvF(T.insertByPositionInSection.sectionTargetId,c,T.insertByPositionInSection.position):T.insertByRelativePositionInSection&&T.insertByRelativePositionInSection.sectionTargetId&&T.insertByRelativePositionInSection.itemTargetId&&
J3F(T.insertByRelativePositionInSection.sectionTargetId,T.insertByRelativePositionInSection.itemTargetId,c,T.insertByRelativePositionInSection.relativePosition)}else a.replaceSection?(T=a.replaceSection,c={},T.replaceByTargetId?c=T.replaceByTargetId:T.replaceByGroupId&&(c={targetId:T.replaceByGroupId.groupId,newContent:T.replaceByGroupId.newContent,undoKey:""}),c.newContent&&Qpf(c.targetId,{continuationItems:[c.newContent]})):a.removeItem?(T=a.removeItem,T.removeByTargetId&&T.sectionTargetId&&Ymv(T.sectionTargetId,
T.removeByTargetId.targetIds||[])):a.removeSection&&(a.removeSection.removeByTargetId?(w=void 0,lfQ(((w=a.removeSection)==null?void 0:w.removeByTargetId.targetIds)||[])):a.removeSection.removeByGroupId&&(h=void 0,lfQ(((h=a.removeSection)==null?void 0:h.removeByGroupId.groupIds)||[])));N=((K=t.operations)==null?void 0:K.scrollConfig)||{};vvF(N);_.n2(k)})};
var lfQ=function(D){D=_.F(D);for(var t=D.next();!t.done;t=D.next())Qpf(t.value,{continuationItems:[]})},vvF=function(D){if(D.scrollToItem){var t=D.scrollToItem.item||{},H=t.itemTargetId;
t=t.sectionTargetId;if(H&&t){var e=document.querySelector("[data-target-id="+t+"]"),V=e==null?void 0:e.querySelector("[data-target-id="+H+"]");e&&V&&setTimeout(function(){var b=V.offsetTop-e.offsetTop,a;if(((a=D.scrollToItem)==null?void 0:a.scrollPosition)==="SCROLL_POSITION_CENTER")b-=e.offsetHeight/2,b+=V.offsetHeight/2;else{var w;((w=D.scrollToItem)==null?void 0:w.scrollPosition)==="SCROLL_POSITION_END"&&(b-=e.offsetHeight,b+=V.offsetHeight)}e.scroll({top:b,behavior:"smooth"})},100)}}};var bd=new _.kI("CLIENT_NAME_TOKEN");var p9Y=new _.kI("DEFAULT_STORE_EXPIRATION_TOKEN");var laD=new _.kI("CLIENT_LOCATION_SERVICE_TOKEN");var q7=function(D,t,H){this.clientName=D||_.YC("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=t||_.gn.getInstance();this.JSC$17336_commandHandler=H||_.$P.instance};
_.P(q7,ER);q7.prototype.resolveCommand=function(D){var t=this,H,e;return _.Z(function(V){e=(H=_.O(D,HLm))==null?void 0:H.onComplete;t.clientLocationService.clearLocationPlayabilityToken(t.clientName);e&&t.JSC$17336_commandHandler.resolveCommand(e);_.n2(V)})};
q7[Fc]=[bd,laD,_.aA];var Fp=function(D){this.innertubeTransportService=D};
_.P(Fp,ER);Fp.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a;return _.Z(function(w){b=(e=t)==null?void 0:(V=e.form)==null?void 0:V.element;return w.yield(_.BZ(H.innertubeTransportService,D,(a=t)==null?void 0:a.form).then(function(h){e$8(b,new CustomEvent("yt-service-request-completed"),{data:h},_.YC("openPopupConfig"))}),0)})};
Fp[Fc]=[_.xg];var aY=function(){};
_.P(aY,ER);aY.prototype.resolveCommand=function(D){var t,H;return _.Z(function(e){t=_.O(D,Ihn);H=document.querySelector("mini-app-container-view-model");if(!t||!H)return e.return();t.isPlaying?H.dispatchEvent(new Event("play")):H.dispatchEvent(new Event("pause"));_.n2(e)})};var wY=function(){};
_.P(wY,ER);wY.prototype.resolveCommand=function(D){var t,H,e,V,b,a,w;return _.Z(function(h){t=_.O(D,PPf);if((H=t)==null||!H.paramKeys)return h.return();e=t.paramKeys;V=_.IK(window.location.href);b=_.F(e);for(a=b.next();!a.done;a=b.next())w=a.value,V.JSC$10036_queryData_.remove(w);window.history.replaceState(window.history.state,document.title,V.toString());_.n2(h)})};var dwe=function(){this.dropdownMap=new Map};_.xwQ=new _.kI("DROPDOWN_CONTROLLER_TOKEN");var ZI=function(D){this.controller=D};
_.P(ZI,ER);ZI.prototype.resolveCommand=function(D){var t=this,H,e,V,b;return _.Z(function(a){H=_.O(D,qdB);if(!H)return a.return();e=H;V=e.dropdownId;b=e.selectedOptionIndex;if(V===void 0||b===void 0)return a.return();var w=t.controller.dropdownMap.get(V);w&&w(b);_.n2(a)})};
ZI[Fc]=[_.xwQ];var sX=function(D){this.controller=D};
_.P(sX,ER);sX.prototype.resolveCommand=function(D){var t=this,H;return _.Z(function(e){return(H=_.O(D,NJ3))?e.yield(t.controller.closeDialog(),0):e.return()})};
sX[Fc]=[_.eC];var hg=function(D){this.controller=D};
_.P(hg,ER);hg.prototype.resolveCommand=function(D){var t=this,H,e;return _.Z(function(V){H=_.O(D,zTV);if(!H)return V.return();var b,a=H.panelIdentifier||((b=H.identifier)==null?void 0:b.tag);if(!a)throw Error("Gi");return(e=a)?V.yield(t.controller.hidePanel(e),0):V.jumpTo(0)})};
hg[Fc]=[_.tr];var GC=function(D){this.controller=D};
_.P(GC,ER);GC.prototype.resolveCommand=function(D){var t=this,H;return _.Z(function(e){return(H=_.O(D,JXn))?e.yield(t.controller.closeSheet(),0):e.return()})};
GC[Fc]=[_.Hp];var EX=function(D,t){this.innertubeTransportService=D;this.controller=t};
_.P(EX,ER);EX.prototype.resolveCommand=function(D){var t=this,H,e,V,b;return _.Z(function(a){if(a.nextAddress==1)return H=_.O(D,Dao),(e=H)!=null&&e.panelId?a.yield(t.controller.getReloadContinuation(H.panelId),2):a.return();if(a.nextAddress!=3)return(V=a.yieldResult)?a.yield(_.BZ(t.innertubeTransportService,D,{continuation:V}),3):a.return();b=a.yieldResult;return a.yield(t.controller.updatePanel(H.panelId,b.content,!1),0)})};
EX[Fc]=[_.xg,_.tr];var KO=function(D,t,H){this.innertubeTransportService=D;this.JSC$17376_screenManager=t;this.JSC$17376_commandHandler=H};
_.P(KO,ER);
KO.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a,w;return _.Z(function(h){if(h.nextAddress==1){H=_.O(D,_.xa3);if(!H)return h.return();if(H.commands)for(e=_.F(H.commands),V=e.next();!V.done;V=e.next())b=V.value,t.JSC$17376_commandHandler.resolveCommand(b,{disableClickTracking:!0});a=_.Sa(D.clickTrackingParams);_.Li(t.JSC$17376_screenManager,21760,a,{layer:7,parentLayer:0});return h.yield(_.BZ(t.innertubeTransportService,D),2)}w=h.yieldResult;if(!w)return h.return();t.JSC$17376_screenManager.graftServerVe(w.trackingParams,a,
7);_.n2(h)})};
KO[Fc]=[_.xg,_.eX,_.aA];var N7=new _.kI("PANEL_LOADING_STRATEGY_TOKEN");var k9=function(D,t){this.controller=D;this.panelLoadingStrategy=t};
_.P(k9,ER);
k9.prototype.resolveCommand=function(D,t){var H=this,e,V,b;return _.Z(function(a){e=_.O(D,lQ6);if((V=e)==null||!V.panelLoadingStrategy)return a.return();b=function(w){var h,K,N,k,T,c,U,S,L,J;return _.Z(function(g){K=_.O((h=w.dialogViewModel)==null?void 0:h.header,F29);N={viewModel:w.dialogViewModel};k={};if(U=_.r("web_enable_dialog_header_label")?(T=K)==null?void 0:(c=T.headline)==null?void 0:c.content:void 0)k.ariaLabel=U;e.dismissOnBackgroundTap===!1&&(k.isModal=!0);return w.dialogViewModel?g.yield(H.controller.openDialog(N,
(J=(S=t)==null?void 0:(L=S.form)==null?void 0:L.element)!=null?J:document.body,k),0):g.return()})};
return a.yield(H.panelLoadingStrategy.execute({command:D,data:e.panelLoadingStrategy,renderFn:b,createScreenConfig:{layer:4}}),0)})};
k9[Fc]=[_.eC,N7];var TC=function(D,t,H){this.innertubeTransportService=D;this.controller=t;this.JSC$17396_screenManager=H};
_.P(TC,ER);
TC.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w,h,K,N,k,T,c,U;return _.Z(function(S){switch(S.nextAddress){case 1:e=_.O(D,_.Sw);if(!e)return S.return();var L,J=e.panelIdentifier||((L=e.identifier)==null?void 0:L.tag);if(!J)throw Error("Gi");V=J;return S.yield(H.controller.isVisible(V,!0),2);case 2:if((b=S.yieldResult)&&e.blockIfPanelOpen)return S.return();h=(w=(a=H.controller).getPanelContent)==null?void 0:w.call(a,V);if(!(L=h))if(e){var g;L=((g=e.globalConfiguration)==null?void 0:
g.initialState)||e.engagementPanel;if(g=!L)g=!!(e==null?0:(J=e.engagementPanelPresentationConfigs)==null?0:J.engagementPanelPopupPresentationConfig);g&&(L=_.QO8(e.panelIdentifier,e.identifier))}else L=void 0;K=L;N=e.engagementPanelPresentationConfigs;k=e.engagementPanelExtras;return S.yield(H.controller.showPanel(V,K,N,k,(T=t)==null?void 0:(c=T.form)==null?void 0:c.element),3);case 3:if(!e.globalConfiguration){S.jumpTo(0);break}_.Li(H.JSC$17396_screenManager,32633);return S.yield(_.BZ(H.innertubeTransportService,
D),5);case 5:return U=S.yieldResult,H.JSC$17396_screenManager.graftServerVe(U.trackingParams),S.yield(H.controller.updatePanel(V,U.content,!0,k,void 0,U.updatePanelContinuationData),0)}})};
TC[Fc]=[_.xg,_.tr,_.eX];var c6=function(D,t){this.controller=D;this.panelLoadingStrategy=t};
_.P(c6,ER);c6.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w,h;return _.Z(function(K){e=_.O(D,_.Cf);if((V=e)==null||!V.panelLoadingStrategy)return K.return();w=RnF(H.controller,(b=t)==null?void 0:(a=b.form)==null?void 0:a.element);h=function(N){return _.Z(function(k){return N.sheetViewModel?k.yield(H.controller.openSheet({viewModel:N.sheetViewModel},w),0):k.return()})};
return K.yield(H.panelLoadingStrategy.execute({command:D,data:e.panelLoadingStrategy,renderFn:h,createScreenConfig:{layer:0}}),0)})};
c6[Fc]=[_.Hp,N7];var jK=function(D,t){this.controller=D;this.JSC$17403_commandHandler=t};
_.P(jK,ER);jK.prototype.resolveCommand=function(D,t){var H=this,e,V,b;return _.Z(function(a){if(a.nextAddress==1){e=_.O(D,Vzn);var w=_.O(e.showCommand,_.Sw),h,K,N=(K=w==null?void 0:w.panelIdentifier)!=null?K:w==null?void 0:(h=w.identifier)==null?void 0:h.tag;if(!N)throw Error("Hi");V=N;return a.yield(H.controller.isVisible(V),2)}return(b=a.yieldResult)?a.yield(H.controller.hidePanel(V),0):a.yield(H.JSC$17403_commandHandler.resolveCommand(e.showCommand,t),0)})};
jK[Fc]=[_.tr,_.aA];var $9=function(D,t,H){this.innertubeTransportService=D;this.controller=t;this.JSC$17406_screenManager=H};
_.P($9,ER);
$9.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u,R,I,tT;return _.Z(function(ZV){switch(ZV.nextAddress){case 1:return e=H=_.O(D,qz6),V=e.targetPanelIdentifier,b=e.contentSourcePanelIdentifier,a=e.globalConfiguration,((w=V)==null?0:w.tag)&&((h=b)==null?0:h.tag)?a?ZV.yield(t.controller.showPanel(V.tag,_.QO8(V.tag,V),void 0,void 0,void 0),5):ZV.yield((T=(k=t.controller).getPanel)==null?void 0:T.call(k,b.tag),4):ZV.return();case 4:c=ZV.yieldResult;K=(U=c)==null?
void 0:(L=(S=U).getPanelContent)==null?void 0:L.call(S);ZV.jumpTo(3);break;case 5:return ZV.yield(_.BZ(t.innertubeTransportService,D),6);case 6:J=ZV.yieldResult,((g=J)==null?0:g.trackingParams)&&t.JSC$17406_screenManager.graftServerVe(J.trackingParams),K=(Q=J)==null?void 0:Q.content,N=(u=J)==null?void 0:u.updatePanelContinuationData;case 3:if(I=(R=K)==null?void 0:R.engagementPanelSectionListRenderer)return ZV.yield(t.controller.showPanel(V.tag,void 0,void 0,void 0,void 0,{content:I.content,secondaryHeaderContent:(tT=
I.header)!=null?tT:{},targetId:I.targetId},N),0);ZV.jumpTo(0)}})};
$9[Fc]=[_.xg,_.tr,_.eX];var id=function(){};
_.P(id,ER);id.prototype.resolveCommand=function(D){var t,H,e;return _.Z(function(V){if(V.nextAddress==1)return(t=_.O(D,hTn))?V.yield(_.ki(),2):V.return();H=V.yieldResult;if(!H)return V.return();var b=H,a=(e=t)==null?void 0:e.languageCode,w;(b==null?0:(w=b.isReady)==null?0:w.call(b))&&(a=ybD(b,a))&&b.setAudioTrack(a);_.n2(V)})};var rY=function(){};
_.P(rY,ER);var u6i=function(D){var t;return _.Z(function(H){t=_.YC("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;D.JSC$17415_mainAppPlayer=new Ox(t);document.addEventListener("yt-page-data-updated",D.JSC$17415_pauseOnNavigation.bind(D));_.n2(H)})};
rY.prototype.JSC$17415_pauseOnNavigation=function(){var D=this,t,H;return _.Z(function(e){if(e.nextAddress==1)return t=D.JSC$17415_mainAppPlayer,e.yield(t.api,2);H=e.yieldResult;H.pauseVideo();_.n2(e)})};
var WnF=function(D,t,H){var e;return _.Z(function(V){e=D.JSC$17415_mainAppPlayer;return V.yield(e.loadVideoWithPlayerVars({videoId:t,audio_only:"1",player_params:H}),0)})};
rY.prototype.pauseVideo=function(){var D=this,t,H;return _.Z(function(e){if(e.nextAddress==1)return t=D.JSC$17415_mainAppPlayer,e.yield(t.api,2);H=e.yieldResult;H.pauseVideo();_.n2(e)})};
rY.prototype.playVideo=function(){var D=this,t,H;return _.Z(function(e){if(e.nextAddress==1)return t=D.JSC$17415_mainAppPlayer,e.yield(t.api,2);H=e.yieldResult;H.playVideo();_.n2(e)})};
var Ifb=function(D){var t,H;return _.Z(function(e){if(e.nextAddress==1)return t=D.JSC$17415_mainAppPlayer,e.yield(t.api,2);H=e.yieldResult;H.mute();_.n2(e)})},QB4=function(D){var t,H;
return _.Z(function(e){if(e.nextAddress==1)return t=D.JSC$17415_mainAppPlayer,e.yield(t.api,2);H=e.yieldResult;H.unMute();_.n2(e)})},y34=function(D,t){return _.Z(function(H){switch(H.nextAddress){case 1:switch(t){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return H.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return H.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return H.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return H.jumpTo(5)}H.jumpTo(0);break;case 2:return H.yield(D.playVideo(),7);case 7:H.jumpTo(0);break;case 3:return H.yield(D.pauseVideo(),8);case 8:H.jumpTo(0);break;case 4:return H.yield(Ifb(D),9);case 9:H.jumpTo(0);break;case 5:return H.yield(QB4(D),10);case 10:H.jumpTo(0)}})};
rY.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a,w,h,K,N,k,T;return _.Z(function(c){return c.nextAddress==1?(H=_.O(D,pyQ),((e=H)==null?0:e.newPlaybackParams)||((V=H)==null?0:V.controlAction)?t.JSC$17415_mainAppPlayer?c.jumpTo(2):c.yield(u6i(t),2):c.return()):((b=H)==null?0:b.newPlaybackParams)?(h=(a=H)==null?void 0:(w=a.newPlaybackParams)==null?void 0:w.externalVideoId,T=(k=(K=H)==null?void 0:(N=K.newPlaybackParams)==null?void 0:N.playerParams)!=null?k:"",h?c.yield(WnF(t,h,T),0):c.return()):
c.yield(y34(t,H.controlAction),0)})};var UX=function(D){this.JSC$17422_commandHandler=D};
_.P(UX,ER);
UX.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a,w;return _.Z(function(h){if(h.nextAddress==1)return(H=_.O(D,GO4))?h.yield(_.ki(),2):h.return();e=h.yieldResult;if(!e)return h.return();var K=e,N=(V=H)==null?void 0:V.languageCode,k=(b=H)==null?void 0:b.isAutoTranslated;K.getVideoData&&_.z3K(K).length&&((N=tDR(K,N,k))?K.setOption("captions","track",N):(K.setOption("captions","stickyLoading",{}),K.setOption("captions","track",{})));a=e.isSubtitlesOn()?_.OT("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.OT("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");w=_.ah(a);t.JSC$17422_commandHandler.resolveCommand(w);_.n2(h)})};
UX[Fc]=[_.aA];var oY=function(D,t){this.shortsPlayerPromise=D;this.JSC$17426_commandHandler=t};
_.P(oY,ER);
oY.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a,w,h,K;return _.Z(function(N){if(N.nextAddress==1)return(H=_.O(D,SnV))?N.yield(t.shortsPlayerPromise,2):N.return();e=N.yieldResult;var k=H1$(e);k!=null&&k.length||(e.loadModule("captions"),k=H1$(e));V=k;if((b=V)==null||!b.length)return a=_.OT("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),w=_.ah(a),t.JSC$17426_commandHandler.resolveCommand(w),N.return();e.toggleSubtitles();h=e.isSubtitlesOn()?_.OT("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.OT("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");K=_.ah(h);t.JSC$17426_commandHandler.resolveCommand(K);_.n2(N)})};
oY[Fc]=[_.O3n,_.aA];var P6=function(D){this.JSC$17429_actionRouter=D;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(t,H){t.triggerAction("yt-dismiss-shopping-timely-shelf-action",H)}]])};
_.P(P6,ER);P6.prototype.resolveCommand=function(D){var t=this,H,e,V;return _.Z(function(b){H=_.O(D,kOw);if((e=H)==null||!e.overlayId)return b.return();V=t.dismissPlayerOverlayActions.get(H.overlayId);if(!V)throw Error("Ii`"+H.overlayId);V(t.JSC$17429_actionRouter,H);_.n2(b)})};
P6[Fc]=[Oz];var nO=function(D){this.JSC$17433_playerPromise=D};
_.P(nO,ER);nO.prototype.resolveCommand=function(D){var t=this,H,e,V,b;return _.Z(function(a){if(a.nextAddress==1)return(H=_.O(D,HSB))?a.yield(t.JSC$17433_playerPromise,2):a.return();e=a.yieldResult;V=e.getVideoData().video_id;H.videoId===V&&(b=Number(H.offsetFromVideoStartMilliseconds),b>=0&&e.seekTo(b/1E3));_.n2(a)})};
nO[Fc]=[_.h5];var Boe=_.cH("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),CO=function(D){this.store=D};
_.P(CO,ER);
var zne=function(D){var t,H,e,V;return _.Z(function(b){if(b.nextAddress==1)return t=_.YC("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,H=_.YC("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,e=t||H,D.JSC$17437_mainAppPlayer=new Ox(e),b.yield(D.JSC$17437_mainAppPlayer.api,2);V=b.yieldResult;V.addEventListener("onStateChange",D.JSC$17437_playerStateChangeListener.bind(D));document.addEventListener("yt-page-data-updated",D.JSC$17437_pauseOnNavigation.bind(D));window.addEventListener("state-navigatestart",
D.JSC$17437_pauseOnNavigation.bind(D));_.n2(b)})};
CO.prototype.JSC$17437_playerStateChangeListener=function(D){switch(D){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"}DHe(this)};
var DHe=function(D){D.store.dispatch(_.nf("sfvAudioItemCurrentlyPlayingEntity",Boe,{key:Boe,externalVideoId:D.externalVideoId,sfvAudioItemPlaybackState:D.playbackState,nowPlayingEntityValue:D.nowPlayingEntityValue}))};
CO.prototype.JSC$17437_pauseOnNavigation=function(){var D=this,t,H,e,V;return _.Z(function(b){if(b.nextAddress==1){if(!D.JSC$17437_mainAppPlayer){var a=new _.nZ("Error: mainAppPlayer is unavailable",D.JSC$17437_mainAppPlayer);_.gT(a);return b.return()}return b.yield(D.JSC$17437_mainAppPlayer.api,2)}t=b.yieldResult;e=(H=t)==null?void 0:H.getPlayerState();e!==1||(V=t)!=null&&V.pauseVideo();_.n2(b)})};
CO.prototype.playVideo=function(D,t,H){var e=this,V,b;return _.Z(function(a){if(a.nextAddress==1)return a.yield((V=e.JSC$17437_mainAppPlayer)==null?void 0:V.api,2);b=a.yieldResult;if(!e.JSC$17437_mainAppPlayer||!b){var w=new _.nZ("Error: mainAppPlayer is unavailable",e.JSC$17437_mainAppPlayer);_.gT(w);return a.return()}return a.yield(e.JSC$17437_mainAppPlayer.loadVideoWithPlayerVars({videoId:e.externalVideoId,audio_only:"1",start:D/1E3,end:D/1E3+t,player_params:H}),0)})};
CO.prototype.pauseVideo=function(){var D=this,t,H;return _.Z(function(e){if(e.nextAddress==1){if(!D.JSC$17437_mainAppPlayer){var V=new _.nZ("Error: mainAppPlayer is unavailable",D.JSC$17437_mainAppPlayer);_.gT(V);return e.return()}return e.yield(D.JSC$17437_mainAppPlayer.api,2)}t=e.yieldResult;(H=t)==null||H.pauseVideo();_.n2(e)})};
CO.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u;return _.Z(function(R){if(R.nextAddress==1)return H=_.O(D,nSo),V=(e=H)==null?void 0:e.nowPlayingEntityValue,a=(b=H)==null?void 0:b.externalVideoId,k=Number((N=(w=H)==null?void 0:(h=w.defaultStartPoints)==null?void 0:(K=h[0])==null?void 0:K.offsetMs)!=null?N:"0"),J=Number((L=(T=H)==null?void 0:(c=T.defaultStartPoints)==null?void 0:(U=c[0])==null?void 0:(S=U.duration)==null?void 0:S.seconds)!=null?L:"15"),u=(Q=
(g=H)==null?void 0:g.playerParams)!=null?Q:"",V&&a?t.JSC$17437_mainAppPlayer?R.jumpTo(2):R.yield(zne(t),2):R.return();if(R.nextAddress!=6){if(t.nowPlayingEntityValue&&V===t.nowPlayingEntityValue)return t.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?R.yield(t.pauseVideo(),0):R.yield(t.playVideo(k,J,u),0);t.externalVideoId=a;t.nowPlayingEntityValue=V;t.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return R.yield(t.playVideo(k,J,u),6)}DHe(t);return R.jumpTo(0)})};
CO[Fc]=[a6];var mo=function(D){this.JSC$17455_commandHandler=D};
_.P(mo,ER);mo.prototype.resolveCommand=function(D,t){var H=this,e,V,b;return _.Z(function(a){if(a.nextAddress==1)return(e=_.O(D,EkQ))?a.yield(_.ki(),2):a.return();V=a.yieldResult;if(!V)return a.return();(b=eBK(V))&&H.JSC$17455_commandHandler.resolveCommand(b,t);_.n2(a)})};
mo[Fc]=[_.aA];var M7=function(D){this.JSC$17461_commandHandler=D};
_.P(M7,ER);M7.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w;return _.Z(function(h){if(h.nextAddress==1)return(e=_.O(D,Kjw))?h.yield(_.ki(),2):h.return();V=h.yieldResult;if(!V)return h.return();(b=aAD(V))?H.JSC$17461_commandHandler.resolveCommand(b,t):(a=_.OT("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),w=_.ah(a),H.JSC$17461_commandHandler.resolveCommand(w));_.n2(h)})};
M7[Fc]=[_.aA];var SK=function(D){this.JSC$17464_playerPromise=D};
_.P(SK,ER);SK.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a;return _.Z(function(w){if(w.nextAddress==1){H=_.O(D,e_m);if(!H)return w.return();e=H.overlayRenderer;return e?(V=_.O(e,ico))?w.yield(t.JSC$17464_playerPromise,3):w.jumpTo(0):w.return()}b=w.yieldResult;b.renderChapterSeekingAnimation(1,_.eo(V.text),(a=V.icon)==null?void 0:a.iconType);_.n2(w)})};
SK[Fc]=[_.h5];var Xp=function(D){this.store=D};
_.P(Xp,ER);
Xp.prototype.resolveCommand=function(D){var t=this,H,e,V;return _.Z(function(b){if(b.nextAddress==1){H=_.O(D,do4);if(!H)return b.return();e="";(V=t.store.getState().collabInviteLink)&&H.id===V.playlistId?e=V.inviteLinkURL:H.shortUrl&&(e=H.shortUrl);return e?b.yield(navigator.clipboard.writeText(e),3):b.jumpTo(0)}var a={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.OT("COPY_LINK_SUCCESS_TOAST")}}}}};_.qS().resolve(_.aA).resolveCommand(a);_.n2(b)})};
Xp[Fc]=[QS];var fO=function(D,t){this.innertubeTransportService=D;this.JSC$17474_commandHandler=t};
_.P(fO,ER);fO.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w,h,K,N,k,T;return _.Z(function(c){if(c.nextAddress==1)return(e=_.O(D,_.sz))?c.yield(_.BZ(H.innertubeTransportService,D,(V=t)==null?void 0:V.form),2):c.return();(b=c.yieldResult)&&b.errorMetadata&&(a=b,w=_.ah(a.error.message),H.JSC$17474_commandHandler.resolveCommand(w));h=b;if((K=h)==null?0:K.actions)for(N=_.F(h.actions),k=N.next();!k.done;k=N.next())T=k.value,H.JSC$17474_commandHandler.resolveCommand(T);_.n2(c)})};
fO[Fc]=[_.xg,_.aA];var LO=function(){};
_.P(LO,ER);LO.prototype.resolveCommand=function(D){var t;return _.Z(function(H){t=_.O(D,Xyf);if(!t)return H.return();(new $$v(t)).show();_.n2(H)})};_.Ag=new _.kI("PLAYLIST_EDIT_CONTROLLER_TOKEN");var gY=function(D,t,H,e){this.store=D;this.innertubeTransportService=t;this.controller=H;this.JSC$17482_commandHandler=e};
_.P(gY,ER);
gY.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u,R,I,tT,ZV,ED,o$,jV,i8;return _.Z(function(g6){if(g6.nextAddress==1){e=_.O(D,_.b2);if(!e)return g6.return();if(e.clientActions){V=_.F(e.clientActions);for(b=V.next();!b.done;b=V.next())a=b.value,H.JSC$17482_commandHandler.resolveCommand(a);var Mu,LQ=t==null?void 0:(Mu=t.form)==null?void 0:Mu.element;LQ&&_.Gf(LQ,"yt-dismissible-item-action",e.clientActions)}return g6.yield(_.BZ(H.innertubeTransportService,D,(w=
t)==null?void 0:w.form),2)}if(h=g6.yieldResult)h.errorMetadata?(K=h,N=_.ah(K.error.message),H.JSC$17482_commandHandler.resolveCommand(N),"error"in h&&((k=t)==null?0:(T=k.commandController)==null?0:T.onServerError)&&((c=t)==null||(U=c.commandController)==null||U.onServerError(D,h))):(S=t)==null||(L=S.commandController)==null||(g=(J=L).onSuccess)==null||g.call(J,D,h);Q=h;((u=Q)==null?0:u.collaborationInviteLink)&&e.playlistId&&(_.r("web_enable_invite_collaborators_link")||_.r("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
H.store.dispatch(_.hV({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:e.playlistId,inviteLinkUrl:Q.collaborationInviteLink}}));((R=Q)==null?0:R.redirectEndpoint)&&H.JSC$17482_commandHandler.resolveCommand(Q.redirectEndpoint);((I=Q)==null?0:(tT=I.newHeader)==null?0:tT.playlistHeaderRenderer)?tbt(H.controller,Q.newHeader.playlistHeaderRenderer):((ZV=Q)==null?0:(ED=ZV.newHeader)==null?0:ED.musicEditablePlaylistDetailHeaderRenderer)&&tbt(H.controller,Q.newHeader.musicEditablePlaylistDetailHeaderRenderer);
H.controller.playlistVideoListElement&&((o$=Q)==null?0:(jV=o$.playlistEditResults)==null?0:(i8=jV[0])==null?0:i8.playlistEditVideoAddedResultData)&&((LQ=H.controller.playlistVideoListElement)==null||LQ.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:Q.playlistEditResults[0].playlistEditVideoAddedResultData})));_.n2(g6)})};
gY[Fc]=[QS,_.xg,_.Ag,_.aA];var Jg=function(D,t){this.controller=D;this.JSC$17492_commandHandler=t};
_.P(Jg,ER);Jg.prototype.resolveCommand=function(D,t){var H=this,e,V,b;return _.Z(function(a){e=_.O(D,xon);H.controller.showRefreshPill&&((V=e)==null?0:V.command)&&(H.JSC$17492_commandHandler.resolveCommand((b=e)==null?void 0:b.command,t),H.controller.showRefreshPill=!1);_.n2(a)})};
Jg[Fc]=[_.Lm,_.aA];var Y9=function(D,t){this.store=D;this.JSC$17496_commandHandler=t||_.$P.instance};
_.P(Y9,ER);Y9.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w,h,K,N,k,T;return _.Z(function(c){e=_.O(D,bvV);V=H.store.getState().radioButtonGroup;if((b=e)==null?0:b.command)H.JSC$17496_commandHandler.resolveCommand((a=e)==null?void 0:a.command,t);else if(V&&((w=e)==null?void 0:w.formId)===V.currentFormId)for(h=Object.values(V.commandsMap),K=_.F(h),N=K.next();!N.done;N=K.next())k=N.value,(T=_.xP(k))&&H.JSC$17496_commandHandler.resolveCommand(T,t);_.n2(c)})};
Y9[Fc]=[_.sg];var ld=new _.kI("USER_PREFS");var v6=function(D){this.JSC$17501_prefCookie=D};
_.P(v6,ER);v6.prototype.resolveCommand=function(D){var t=this,H;return _.Z(function(e){(H=_.O(D,Uow))&&typeof H.useListView==="boolean"&&(_.nl(0,155,H.useListView),t.JSC$17501_prefCookie.save());_.n2(e)})};
v6[Fc]=[ld];var pO=function(D){this.JSC$17505_prefCookie=D};
_.P(pO,ER);pO.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a;return _.Z(function(w){H=_.O(D,LWv);if((e=H)==null||!e.gl)return w.return();V=H.gl;b={persist_gl:"1",gl:V};t.JSC$17505_prefCookie.set("gl",V);t.JSC$17505_prefCookie.save();a=$NV(b);_.D9(a);_.n2(w)})};
pO[Fc]=[ld];var dY=function(D){this.JSC$17509_prefCookie=D};
_.P(dY,ER);dY.prototype.resolveCommand=function(D){var t=this,H,e;return _.Z(function(V){H=_.O(D,uLv);if(!H)return V.return();e=!1;H.flagNum&&typeof H.value==="boolean"?(_.nl(0,H.flagNum,H.value),e=!0):H.key&&typeof H.stringValue==="string"&&(t.JSC$17509_prefCookie.set(H.key,H.stringValue),e=!0);e&&t.JSC$17509_prefCookie.save();_.n2(V)})};
dY[Fc]=[ld];var x9=new _.kI("PREF_STORAGE_PROMISE_TOKEN");var RY=function(D){this.JSC$17513_prefStoragePromise=D};
_.P(RY,ER);RY.prototype.resolveCommand=function(D){var t=this,H,e;return _.Z(function(V){if(V.nextAddress==1)return(H=_.O(D,ID6))?V.yield(t.JSC$17513_prefStoragePromise,2):V.return();e=V.yieldResult;return e===void 0||H.key===void 0||H.value===void 0?V.return():V.yield(e.set(H.key,H.value),0)})};
RY[Fc]=[x9];var Heb=function(D){this.innertubeTransportService=D};
_.P(Heb,ER);Heb.prototype.resolveCommand=function(D,t){var H=this,e,V;return _.Z(function(b){(e=_.O(D,_.B3a))&&e&&e.isFirstRequest&&(_.l1("search_overview_answer"),_.vh("so_rq",void 0,"search_overview_answer"));return b.yield(_.BZ(H.innertubeTransportService,D,(V=t)==null?void 0:V.form),0)})};
Heb[Fc]=[_.xg];var egO=function(){};
_.P(egO,ER);
egO.prototype.resolveCommand=function(D){var t,H,e,V,b,a,w,h,K;return _.Z(function(N){t=_.O(D,tzQ);if((H=t)==null?0:H.sectionIdentifier){if(t.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(V=(e=document.getElementsByTagName(t.sectionIdentifier))==null?void 0:e.item(0))V.scrollIntoView({behavior:"smooth"}),(b=bbk(V))&&b.focus({preventScroll:!0});return N.return()}a=document.querySelector("[section-identifier="+t.sectionIdentifier+"]");w=document.querySelector("[section-identifier="+t.referenceSectionIdentifier+
"]");if(!a)return N.return();h=t.verticalScrollOffsetDp?t.verticalScrollOffsetDp:0;w&&(h-=w.offsetTop);window.scrollTo({top:a.offsetTop+h,behavior:"smooth"});(K=bbk(a))&&K.focus({preventScroll:!0})}_.n2(N)})};var ud=function(D){this.JSC$17525_commandHandler=D};
_.P(ud,ER);
ud.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a,w,h;return _.Z(function(K){if(K.nextAddress==1){H=_.O(D,$C3);if(!H||!H.imageBytes||!navigator.clipboard)return K.return();if(H.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.gT(Error("Ki")),K.return();_.$p(K,2);V=(e=H)==null?void 0:e.imageBytes;b=V.replace(/-/g,"+").replace(/_/g,"/");a=pik(b);w={};h=[new ClipboardItem((w[a.type]=a,w))];return K.yield(navigator.clipboard.write(h),4)}if(K.nextAddress!=2)return H.successCommand&&
t.JSC$17525_commandHandler.resolveCommand(H.successCommand),_.yM(K,0);_.Pv(K);H.errorCommand&&t.JSC$17525_commandHandler.resolveCommand(H.errorCommand);_.n2(K)})};
ud[Fc]=[_.aA];var W6=function(D,t){this.innertubeTransportService=D;this.JSC$17529_commandHandler=t};
_.P(W6,ER);W6.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w;return _.Z(function(h){if(h.nextAddress==1)return(e=_.O(D,ipo))?h.yield(_.BZ(H.innertubeTransportService,D,(V=t)==null?void 0:V.form),2):h.return();(b=h.yieldResult)&&b.errorMetadata&&e.onFailureCommand&&H.JSC$17529_commandHandler.resolveCommand(e.onFailureCommand);a=b;((w=a)==null?0:w.shareCommand)&&H.JSC$17529_commandHandler.resolveCommand(a.shareCommand,t);_.n2(h)})};
W6[Fc]=[_.xg,_.aA];var IY=function(){};
_.P(IY,ER);IY.prototype.resolveCommand=function(D){var t,H;return _.Z(function(e){t=_.O(D,vYV);if(!t||!navigator.share)return e.return();H={url:t.url};try{return e.return(navigator.share(H))}catch(V){}_.n2(e)})};var Qe=function(){};
_.P(Qe,ER);Qe.prototype.resolveCommand=function(){return _.Z(function(D){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.n2(D)})};var ye=function(D){this.JSC$17539_navigationConfirmationService=D};
_.P(ye,ER);ye.prototype.resolveCommand=function(){var D=this;return _.Z(function(t){D.JSC$17539_navigationConfirmationService.cancelPendingNavigation();_.n2(t)})};
ye[Fc]=[uk];var B6=function(D){this.JSC$17542_screenManager=D};
_.P(B6,ER);B6.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w,h,K;return _.Z(function(N){V=(e=t.form)==null?void 0:e.event;a=(b=t.form)==null?void 0:b.element;if(!V)throw new _.nZ("Event not passed in when resolving command");w=_.F(V.composedPath());for(h=w.next();!h.done;h=w.next())if(K=h.value,K.tagName==="YT-COPY-LINK-RENDERER")return K.copyUrlToClipboard(),a&&_.IH(H.JSC$17542_screenManager,a),N.return();_.n2(N)})};
B6[Fc]=[_.eX];var zC=function(){this.JSC$17546_miniAppClientDataProvider=_.qS().resolve(_.TM)};
_.P(zC,ER);zC.prototype.resolveCommand=function(){var D=this,t,H;return _.Z(function(e){if(D.JSC$17546_miniAppClientDataProvider.clientData.has("video_id")){var V=D.JSC$17546_miniAppClientDataProvider,b=V.clientData.get("video_id");b&&V.clientData.delete("video_id");t="https://youtube.com/watch?v="+b;H=_.lM(t);if(H===void 0)throw Error("Li`"+t);_.D7(window,H)}_.n2(e)})};var DW=function(){};
_.P(DW,ER);DW.prototype.resolveCommand=function(){return _.Z(function(D){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.n2(D)})};var tN=function(){};
_.P(tN,ER);tN.prototype.resolveCommand=function(){var D;return _.Z(function(t){if(t.nextAddress==1)return t.yield(_.vZR(window.document.documentElement),2);(D=document.querySelector("mini-app-container-view-model iframe"))&&D.focus();_.n2(t)})};var HE=function(D){this.JSC$17553_navigationConfirmationService=D};
_.P(HE,ER);
HE.prototype.resolveCommand=function(){var D=this;return _.Z(function(t){var H=D.JSC$17553_navigationConfirmationService,e=_.qS().resolve(_.yN),V;if(((V=H.navigateParams)==null?void 0:V.data)!==void 0){var b;_.Utn(e,H.navigateParams.endpoint,H.navigateParams.data,(b=H.navigateParams.navigationType)!=null?b:1,H.navigateParams.tempData,H.navigateParams.isMiniplayer,void 0,!0);H.navigateParams=void 0;H.customConfirmationCommand=void 0}else H.navigateParams&&(e.navigate(H.navigateParams.endpoint,H.navigateParams.reload,
H.navigateParams.params,H.navigateParams.tempData,H.navigateParams.requestType,H.navigateParams.createScreenConfig,!0),H.navigateParams=void 0,H.customConfirmationCommand=void 0);_.n2(t)})};
HE[Fc]=[uk];var eh=function(){};
_.P(eh,ER);eh.prototype.resolveCommand=function(){return _.Z(function(D){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.n2(D)})};var VG=function(D){this.JSC$17558_prefStorage=D};
_.P(VG,ER);VG.prototype.resolveCommand=function(){var D=this,t,H;return _.Z(function(e){switch(e.nextAddress){case 1:return e.yield(D.JSC$17558_prefStorage,2);case 2:return(t=e.yieldResult)?e.yield(t.set("sfvle",!1),3):e.return();case 3:return e.yield(t.set("sfvles",!0),4);case 4:H=_.Ph(),_.nl(0,203,!1),_.nl(0,204,!0),H.save(),_.n2(e)}})};
VG[Fc]=[x9];var bW=function(D){this.JSC$17561_prefStorage=D};
_.P(bW,ER);bW.prototype.resolveCommand=function(){var D=this,t,H;return _.Z(function(e){switch(e.nextAddress){case 1:return e.yield(D.JSC$17561_prefStorage,2);case 2:return(t=e.yieldResult)?e.yield(t.set("sfvle",!0),3):e.return();case 3:return e.yield(t.set("sfvles",!0),4);case 4:H=_.Ph(),_.nl(0,203,!0),_.nl(0,204,!0),H.save(),_.n2(e)}})};
bW[Fc]=[x9];_.VbF=new _.kI("SNACKBAR_CONTROLLER_TOKEN");_.be4=new _.kI("SHOULD_SHOW_PIVOT_BAR_TOKEN");var qq=function(D){this.controller=D};
_.P(qq,ER);qq.prototype.resolveCommand=function(D){var t=this,H;return _.Z(function(e){H=_.O(D,YgV);if(!H)return e.return();var V=t.controller;V.closeSnackbarFn&&V.closeSnackbarFn();_.n2(e)})};
qq[Fc]=[_.VbF];var Fe=function(D,t){this.controller=D;this.sheetController=t};
_.P(Fe,ER);Fe.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w,h;return _.Z(function(K){e=_.O(D,v7f);if(!e)return K.return();a=RnF(H.sheetController,(V=t)==null?void 0:(b=V.form)==null?void 0:b.element);w=_.O(e.content,HcQ);if(!w)return K.return();var N=H.controller,k=w,T=(h=e.animationStyle)!=null?h:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(N.showSnackbarFn)N.showSnackbarFn({snackbarViewModel:k,animationStyle:T,durationMs:e.durationSeconds*1E3,target:a});else throw Error("uj");_.n2(K)})};
Fe[Fc]=[_.VbF,_.Hp];var aa=function(){};
_.P(aa,ER);aa.prototype.resolveCommand=function(D){var t;return _.Z(function(H){t=_.O(D,WWo);if(!t||typeof t.key!=="string"||typeof t.value!=="string")return H.return();window.localStorage.setItem(t.key,t.value);_.n2(H)})};var w$=function(D){this.store=D};
_.P(w$,ER);w$.prototype.resolveCommand=function(D){var t=this,H;return _.Z(function(e){H=_.O(D,P7D);if(!H||!H.stepId||!H.token)return e.return();t.store.dispatch(PHV({stepId:H.stepId,token:H.token,isSelected:!1}));_.n2(e)})};
w$[Fc]=[QS];var ZW=function(D,t,H){this.innertubeTransportService=D;this.store=t;this.JSC$17580_screenManager=H};
_.P(ZW,ER);
ZW.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u,R,I,tT,ZV,ED;return _.Z(function(o$){H=_.O(D,lE4);if(!H||(e=H.stepIds)==null||!e.length)return o$.return();V=t.store.getState().talkToRecs;b=[];a=[];w=_.F(H.stepIds);for(h=w.next();!h.done;h=w.next())for(K=h.value,N=void 0,(k=(N=V.stepStates[K])==null?void 0:N.userQuery)&&a.push({userQuery:k.userQuery,userQueryToken:k.token}),c=T=void 0,U=(c=(T=V.stepStates[K])==null?void 0:T.selectionStates)!=null?c:{},S=_.F(Object.entries(U)),
L=S.next();!L.done;L=S.next())J=L.value,g=_.F(J),Q=g.next().value,u=g.next().value,R=Q,I=u,I.isSelected&&b.push(R);tT={selectedChipTokens:b,userQueries:a,submittedStepIds:H.stepIds};ZV={browseTalk2recsFormData:tT};H.browseEndpoint?(ED=D,_.YP(ED,_.UL,H.browseEndpoint)):H.command&&(ED=H.command);return ED?o$.yield(_.BZ(t.innertubeTransportService,ED,{formData:ZV,disableCache:!0}).then(function(jV){(jV==null?0:jV.trackingParams)&&t.JSC$17580_screenManager.graftServerVe(jV==null?void 0:jV.trackingParams)}),
0):o$.return()})};
ZW[Fc]=[_.xg,QS,_.eX];var s$=function(D){this.store=D};
_.P(s$,ER);s$.prototype.resolveCommand=function(D){var t=this,H;return _.Z(function(e){H=_.O(D,odk);if(!H||!H.stepId||!H.token)return e.return();t.store.dispatch(PHV({stepId:H.stepId,token:H.token,isSelected:!0}));_.n2(e)})};
s$[Fc]=[QS];var hN=function(D){this.store=D};
_.P(hN,ER);hN.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w;return _.Z(function(h){e=_.O(D,v1n);if(!e||!e.stepId||!e.userQueryToken)return h.return();w=(a=(V=t)==null?void 0:(b=V.form)==null?void 0:b.userQuery)!=null?a:"";H.store.dispatch(_.hV({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:e.stepId,userQueryToken:e.userQueryToken,userQuery:w}}));_.n2(h)})};
hN[Fc]=[QS];_.qFH=new _.kI("TIMELY_ACTIONS_CONTROLLER_TOKEN");var GR=function(D){this.controller=D};
_.P(GR,ER);GR.prototype.resolveCommand=function(D){var t=this,H,e,V,b;return _.Z(function(a){H=_.O(D,BJQ);if(!H)return a.return();e=H;V=e.id;b=e.isVisible;if(V===void 0||b===void 0)return a.return();var w;(w=t.controller.timelyActionsMap.get(V))==null||w(V,b);_.n2(a)})};
GR[Fc]=[_.qFH];var FiZ=function(){this.timelyActionsMap=new Map};var E$=function(D){this.JSC$17606_commandHandler=D};
_.P(E$,ER);E$.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a;return _.Z(function(w){H=_.O(D,_.lq);if(!H)return w.return();b=(e=H.item)==null?void 0:(V=e.notificationTextRenderer)==null?void 0:V.successResponseText;if(!b)return w.return();a=_.FO(b);t.JSC$17606_commandHandler.resolveCommand(a);_.n2(w)})};
E$[Fc]=[_.aA];var KD=function(D,t){this.innertubeTransportService=D;this.JSC$17611_playerApiPromise=t};
_.P(KD,ER);
KD.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a,w,h,K,N;return _.Z(function(k){if(k.nextAddress==1)return k.yield(t.JSC$17611_playerApiPromise,2);H=k.yieldResult;e=H.getOption("captions","track");V=Object.assign({},_.O(D,_.NKa));(a=(b=H.getVideoData())==null?void 0:b.video_id)?V.externalVideoId=a:_.uh(Error("Mi"));if((w=e)==null?0:w.languageCode)V.languageCode=e.languageCode;if((h=e)==null?0:h.kind)V.kind=e.kind;if((K=e)==null?0:K.name)V.name=e.name;N=Object.assign({},D,{getTranscriptEndpoint:V});return k.yield(_.BZ(t.innertubeTransportService,
N),0)})};
KD[Fc]=[_.xg,_.h5];var Nq=function(){};
_.P(Nq,ER);Nq.prototype.resolveCommand=function(D){var t,H,e,V,b,a,w,h;return _.Z(function(K){t=_.O(D,Vgw);if((H=t)==null||!H.paramKeyValuePairs)return K.return();e=window.location.href;V=_.F(t.paramKeyValuePairs);for(b=V.next();!b.done;b=V.next())a=b.value,a.key&&a.value&&(w={},e=_.Bn(e,(w[a.key]=a.value,w)));h=_.qS().resolve(_.dt);_.po(h,e);_.n2(K)})};var kU=function(D,t){this.JSC$17618_commandHandler=D;this.innertubeTransportService=t};
_.P(kU,ER);
kU.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q;return _.Z(function(u){switch(u.nextAddress){case 1:return(b=(e=t)==null?void 0:(V=e.form)==null?void 0:V.element)&&_.xG(b),a=_.Ph().get("hl"),w="",_.$p(u,2),u.yield(hBD(a),4);case 4:w=u.yieldResult;_.yM(u,3);break;case 2:return _.Pv(u),b&&_.Rs(b),_.gT(Error("Oi"),"ERROR"),u.return();case 3:h=_.O(D,mD6);if(!h)return b&&_.Rs(b),u.return();(k=(K=h.commerceActionConfig)==null?void 0:(N=K.commandLifeCycleConfig)==null?
void 0:N.onStartCommand)&&H.JSC$17618_commandHandler.resolveCommand(k);return u.yield(_.BZ(H.innertubeTransportService,D,{client_data:{paymentsClientToken:{token:w}}}),5);case 5:(T=u.yieldResult)?(b&&_.Rs(b),((L=T)==null?0:L.command)&&H.JSC$17618_commandHandler.resolveCommand(T.command),(Q=(J=h.commerceActionConfig)==null?void 0:(g=J.commandLifeCycleConfig)==null?void 0:g.onSuccessCommand)&&H.JSC$17618_commandHandler.resolveCommand(Q)):(b&&_.Rs(b),_.gT(Error("Pi")),(S=(c=h.commerceActionConfig)==
null?void 0:(U=c.commandLifeCycleConfig)==null?void 0:U.onFailureCommand)&&H.JSC$17618_commandHandler.resolveCommand(S)),_.n2(u)}})};
kU[Fc]=[_.aA,_.xg];var TR=function(D,t,H){this.store=D;this.JSC$17634_commandHandler=t;this.innertubeTransportService=H};
_.P(TR,ER);
TR.prototype.resolveCommand=function(D,t){var H=this,e,V,b,a,w,h,K,N,k;return _.Z(function(T){e=_.O(D,MXn);V=e.googlePaymentPayload;e.onStartCommand&&H.JSC$17634_commandHandler.resolveCommand(e.onStartCommand);b=V.encryptedPurchaseParams;a=V.ypcLogWalletAnalyticDataEndpoint;w=e.serializedTransactionFlowLoggingParams;h=V.serializedPaymentsClientParams;K=e.ypcCujContext;k=K96(H.innertubeTransportService,(N=t)==null?void 0:N.form,b,a,w,h,K);return T.return(k.then(function(c){GnD(t==null?void 0:t.form,
!1);var U=H.store,S=H.JSC$17634_commandHandler,L=c.integratorData;L==null||L===""||c.error!=null?(String(c.error)==="-1"&&e.onDismissCommand?S.resolveCommand(e.onDismissCommand):String(c.error)!=="-1"&&e.onFailureCommand&&S.resolveCommand(e.onFailureCommand),String(c.error)!=="-1"&&String(c.error)!=="132"&&_.gT(Error("Qi"),"ERROR")):(e.googlePaymentEntityKey&&U.dispatch(_.nf("commerceAcquisitionClientPayloadEntity",e.googlePaymentEntityKey,{key:e.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:L,
fundsGuaranteeCallbackClientData:c.integratorClientCallbackData}}})),e.onSuccessCommand&&S.resolveCommand(e.onSuccessCommand));_.Tf()},function(c){GnD(t==null?void 0:t.form,!1);
_.gT(c,"ERROR");e.onFailureCommand&&H.JSC$17634_commandHandler.resolveCommand(e.onFailureCommand)}))})};
TR[Fc]=[a6,_.aA,_.xg];var cE=function(D,t){this.JSC$17638_commandHandler=D;this.purchaseManager=t};
_.P(cE,ER);
cE.prototype.resolveCommand=function(D){var t=this,H,e,V,b,a,w,h,K,N;return _.Z(function(k){H=_.O(D,Sdo);((e=H)==null?0:(V=e.commandLifeCycleConfig)==null?0:V.onStartCommand)&&t.JSC$17638_commandHandler.resolveCommand(H.commandLifeCycleConfig.onStartCommand);if(!((b=H)==null?0:(a=b.googlePaymentPurchaseManagerPayload)==null?0:a.securePayloadBytes))return _.gT(Error("Ri"),"ERROR"),k.return();w=Bnv(_.zV(H.googlePaymentPurchaseManagerPayload.securePayloadBytes));h=_.Ph().get("hl");K=_.z3();qmZ(w.serialize(),
h,function(T){K.resolve(T)},function(T){K.reject(T)},K.resolve);
N=K.promise;return k.return(N.then(function(T){if(T)if(T==null?0:T.errorCode){_.gT(Error("Si`"+T.errorCode),"ERROR");var c,U;((c=H)==null?0:(U=c.commandLifeCycleConfig)==null?0:U.onFailureCommand)&&t.JSC$17638_commandHandler.resolveCommand(H.commandLifeCycleConfig.onFailureCommand)}else if(T==null?0:T.isCancelled){var S,L;((S=H)==null?0:(L=S.commandLifeCycleConfig)==null?0:L.onCancelCommand)&&t.JSC$17638_commandHandler.resolveCommand(H.commandLifeCycleConfig.onCancelCommand)}else{var J,g;((J=H)==
null?0:(g=J.commandLifeCycleConfig)==null?0:g.onSuccessCommand)&&t.JSC$17638_commandHandler.resolveCommand(H.commandLifeCycleConfig.onSuccessCommand)}},function(T){_.gT(T,"ERROR");
var c,U;((c=H)==null?0:(U=c.commandLifeCycleConfig)==null?0:U.onFailureCommand)&&t.JSC$17638_commandHandler.resolveCommand(H.commandLifeCycleConfig.onFailureCommand)}))})};
cE[Fc]=[_.aA,Fnt];var aOO=function(D,t){this.JSC$17646_commandHandler=D;this.commandAllowlistOverride=t;var H;this.commandAllowlist=(H=this.commandAllowlistOverride)!=null?H:Dg};
aOO.prototype.handleResponse=function(D,t,H){var e,V=t==null?void 0:(e=t.config)==null?void 0:e.command;if(!V||this.commandAllowlist.some(function(b){return!!_.O(V,b)})){t=void 0;
H!==void 0&&(t={form:{element:H}});D.onResponseReceivedCommand&&this.JSC$17646_commandHandler.resolveCommand(D.onResponseReceivedCommand,t);D.onResponseReceivedAction&&this.JSC$17646_commandHandler.resolveCommand(D.onResponseReceivedAction,t);D.onResponseReceivedEndpoint&&this.JSC$17646_commandHandler.resolveCommand(D.onResponseReceivedEndpoint,t);D.command&&this.JSC$17646_commandHandler.resolveCommand(D.command,t);if(D.onResponseReceivedCommands)for(H=_.F(D.onResponseReceivedCommands),e=H.next();!e.done;e=
H.next())this.JSC$17646_commandHandler.resolveCommand(e.value,t);if(D.onResponseReceivedActions)for(H=_.F(D.onResponseReceivedActions),e=H.next();!e.done;e=H.next())this.JSC$17646_commandHandler.resolveCommand(e.value,t);if(D.onResponseReceivedEndpoints)for(H=_.F(D.onResponseReceivedEndpoints),e=H.next();!e.done;e=H.next())this.JSC$17646_commandHandler.resolveCommand(e.value,t);if(D.actions)for(D=_.F(D.actions),H=D.next();!H.done;H=D.next())this.JSC$17646_commandHandler.resolveCommand(H.value,t)}};
aOO[Fc]=[_.aA,_.by(k8u)];var wtH=new _.kI("INNERTUBE_TOKEN_SERVICE");var ZeF=new _.kI("SCHEDULER_TOKEN");var svQ=function(D){this.scheduler=D;D={};this.tokenMap=(D.app={},D.user={},D)};
svQ.prototype.handleResponse=function(D,t){if(!t)throw Error("Ti");var H;if(D=(H=D.responseContext)==null?void 0:H.innertubeTokenJar){if(D.appTokens){var e,V,b;H=(e=t.innerTubeRequest.context)==null?void 0:(V=e.request)==null?void 0:(b=V.innertubeTokenJar)==null?void 0:b.appTokens;hgi(this,D.appTokens,this.tokenMap.app,H)}if(D.userTokens){var a,w,h;t=(a=t.innerTubeRequest.context)==null?void 0:(w=a.request)==null?void 0:(h=w.innertubeTokenJar)==null?void 0:h.userTokens;hgi(this,D.userTokens,this.tokenMap.user,
t)}}};
svQ.prototype.processContext=function(D){D.request||(D.request={});var t=Object.keys(this.tokenMap.app).length,H=Object.keys(this.tokenMap.user).length;if(t||H)D.request.innertubeTokenJar={},t&&(D.request.innertubeTokenJar.appTokens=[].concat(_.A6(Object.values(this.tokenMap.app).flat()))),H&&(D.request.innertubeTokenJar.userTokens=[].concat(_.A6(Object.values(this.tokenMap.user).flat())))};
var hgi=function(D,t,H,e){t=_.F(t);for(var V=t.next(),b={};!V.done;b={token$jscomp$139:void 0},V=t.next()){b.token$jscomp$139=V.value;if(b.token$jscomp$139.type===void 0)throw new _.nZ("InnerTube token has no type",b.token$jscomp$139);if(b.token$jscomp$139.clearTokens)H[b.token$jscomp$139.type]=[];else if(b.token$jscomp$139.value!==void 0){H[b.token$jscomp$139.type]||(H[b.token$jscomp$139.type]=[]);if(e!==void 0&&e.length){V=_.F(e);for(var a=V.next(),w={};!a.done;w={requestToken:void 0},a=V.next())w.requestToken=
a.value,a=H[b.token$jscomp$139.type].findIndex(function(h){return function(K){return K===h.requestToken||(0,_.J$.equals)(K,h.requestToken)}}(w)),a>-1&&H[b.token$jscomp$139.type].splice(a,1)}H[b.token$jscomp$139.type].push(b.token$jscomp$139);
b.token$jscomp$139.maxAgeSeconds&&Number(b.token$jscomp$139.maxAgeSeconds)>0&&D.scheduler.addLowPriorityJob(function(h){return function(){var K=H[h.token$jscomp$139.type].indexOf(h.token$jscomp$139);K>-1&&H[h.token$jscomp$139.type].splice(K,1)}}(b),Number(b.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.nZ("InnerTube token has no value",b.token$jscomp$139);
}};
svQ[Fc]=[ZeF];var GHe=new _.kI("LOCAL_INNERTUBE_ROUTER_TOKEN"),EQg=new _.kI("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var jh=function(D){this.serviceMap=D};
jh.prototype.shouldPreferLocalResponse=function(D,t){return(D=KiZ(this,D))?D.shouldPreferLocalResponse(t):!1};
jh.prototype.localInnertubeResponse=function(D,t){var H=this,e;return _.Z(function(V){return(e=KiZ(H,D))?V.return(e.localInnertubeResponse(t)):V.return(Promise.reject(Error("Ui")))})};
jh.prototype.canProvideFallbackResponse=function(D,t){return(D=KiZ(this,D))?D.canProvideFallbackResponse(t):!1};
jh.prototype.localFallbackInnertubeResponse=function(D,t){var H=this,e;return _.Z(function(V){return(e=KiZ(H,D))?V.return(e.localFallbackInnertubeResponse(t)):V.return(Promise.reject(Error("Ui")))})};
var KiZ=function(D,t){t=_.TW(t);return t?(D=D.serviceMap[t])?D:null:null};
jh[Fc]=[EQg];var OG=function(){};
OG.prototype.shouldPreferLocalResponse=function(){return!1};
OG.prototype.localInnertubeResponse=function(){return _.Z(function(D){return D.return(Promise.reject(Error("Vi")))})};
OG.prototype.canProvideFallbackResponse=function(){return!0};
OG.prototype.localFallbackInnertubeResponse=function(){var D,t,H;return _.Z(function(e){D=jN("CLOSE_POPUP");t={openPopupAction:kn6()};H={actions:[D,t]};return e.return(H)})};var k9T=function(D,t){this.JSC$17696_upliftPromise=D;this.store=t};
_.q=k9T.prototype;_.q.shouldPreferLocalResponse=function(D){var t=D.videoId,H;if(H=t)H=C2V(this.store.getState().entities,D.videoId);return H&&mBV(this.store.getState().entities,t)?cS3(this.store.getState().entities,D.playlistId):!1};
_.q.localInnertubeResponse=function(D){var t=this,H;return _.Z(function(e){return(H=t.getPlayerResponse(D))?e.return(Promise.resolve(H)):e.return(Promise.reject(Error("Wi")))})};
_.q.canProvideFallbackResponse=function(D){return!!D.videoId};
_.q.localFallbackInnertubeResponse=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(t.JSC$17696_upliftPromise,2);H=t.getPlayerResponse(D);var V;H?V=e.return(Promise.resolve(H)):V=SR(t.store.getState().entities,D.videoId)?e.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.wO(_.OT("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:mED()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
e.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.wO(_.OT("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:C36()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return V})};
_.q.getPlayerResponse=function(D){return eWD(this.store.getState().entities,D.videoId)};var rL=function(D,t){this.localPlayerService=D;this.localWatchNextService=t};
rL.prototype.shouldPreferLocalResponse=function(D){var t=D.playerRequest;D=D.watchNextRequest;return!!(t&&this.localPlayerService.shouldPreferLocalResponse(t)&&D&&this.localWatchNextService.shouldPreferLocalResponse(D))};
rL.prototype.localInnertubeResponse=function(D){var t=this,H,e,V,b;return _.Z(function(a){if(a.nextAddress==1){H=D.playerRequest;e=D.watchNextRequest;if(!H||!e)throw new _.nZ("Missing streaming request",D);return a.yield(t.localPlayerService.localInnertubeResponse(H),2)}if(a.nextAddress!=3)return V=a.yieldResult,a.yield(t.localWatchNextService.localInnertubeResponse(e),3);b=a.yieldResult;return a.return({playerResponse:V,watchNextResponse:b})})};
rL.prototype.canProvideFallbackResponse=function(D){var t=D.playerRequest;D=D.watchNextRequest;return!!(t&&this.localPlayerService.canProvideFallbackResponse(t)&&D&&this.localWatchNextService.canProvideFallbackResponse(D))};
rL.prototype.localFallbackInnertubeResponse=function(D){var t=this,H,e,V,b;return _.Z(function(a){if(a.nextAddress==1)return H=D.playerRequest,e=D.watchNextRequest,H&&e?a.yield(t.localPlayerService.localFallbackInnertubeResponse(H),2):a.return(Promise.reject(new _.nZ("Missing streaming request",D)));if(a.nextAddress!=3)return V=a.yieldResult,a.yield(t.localWatchNextService.localFallbackInnertubeResponse(e),3);b=a.yieldResult;return a.return({playerResponse:V,watchNextResponse:b})})};var jw=function(D){this.JSC$17706_persistentStorePromiseAccessor=D};
jw.prototype.shouldPreferLocalResponse=function(){return!1};
jw.prototype.localInnertubeResponse=function(){return _.Z(function(D){return D.return(Promise.reject(Error("Xi")))})};
jw.prototype.canProvideFallbackResponse=function(){return!0};
jw.prototype.localFallbackInnertubeResponse=function(){var D=this,t,H;return _.Z(function(e){return e.nextAddress==1?e.yield(D.JSC$17706_persistentStorePromiseAccessor(),2):e.nextAddress!=3?(t=e.yieldResult)?e.yield(t.get("service:guide:fallback"),3):e.return(Promise.reject(Error("Yi"))):(H=e.yieldResult)&&_.qP(H)?e.return(j83(_.qP(H))):e.return(Promise.reject(Error("Zi")))})};var UG=function(){};
UG.prototype.shouldPreferLocalResponse=function(){return!1};
UG.prototype.localInnertubeResponse=function(){return _.Z(function(D){return D.return(Promise.reject(Error("$i")))})};
UG.prototype.canProvideFallbackResponse=function(){return!0};
UG.prototype.localFallbackInnertubeResponse=function(){var D,t,H;return _.Z(function(e){D=jN("CLOSE_POPUP");t={openPopupAction:kn6()};H={actions:[D,t]};return e.return(H)})};var cX=function(){this.urlMap=N4F;this.fallbackCommand=_.xS};
cX.prototype.shouldPreferLocalResponse=function(D){return(D=D.url)?!!kH4(this,D):!1};
cX.prototype.localInnertubeResponse=function(D){var t=this,H;return _.Z(function(e){return(H=D.url)?e.return(T4Q(D,kH4(t,H))):e.return(Promise.reject(Error("aj")))})};
cX.prototype.canProvideFallbackResponse=function(){return!0};
cX.prototype.localFallbackInnertubeResponse=function(D){var t=this,H,e,V,b,a,w,h;return _.Z(function(K){H=D.url;if(!H)return K.return(T4Q(D,t.fallbackCommand));if(e=kH4(t,H))return K.return(T4Q(D,e));V=void 0;b=_.TW(H);b==="/watch"&&(a=_.uz(H,"v"))&&(h=(w=_.uz(H,"list"))!=null?w:void 0,V=_.af(a,h));V||(V=t.fallbackCommand);return K.return(T4Q(D,V))})};
var kH4=function(D,t){if(t)return D.urlMap[_.yi(t)]},T4Q=function(D,t){t&&D.parentTrackingParams&&(t.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:D.parentTrackingParams}},t.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:t})};var $K=function(D,t,H){this.JSC$17716_upliftPromise=D;this.store=t;this.JSC$17716_persistentStorePromiseAccessor=H};
$K.prototype.shouldPreferLocalResponse=function(){return!1};
$K.prototype.localInnertubeResponse=function(){return _.Z(function(D){return D.return(Promise.reject(Error("bj")))})};
$K.prototype.canProvideFallbackResponse=function(){return!0};
$K.prototype.localFallbackInnertubeResponse=function(){var D=this;return _.Z(function(t){return t.return(cFt(D))})};
var cFt=function(D){var t,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(bI(D.JSC$17716_upliftPromise,D.store),2);t=e.yieldResult;H={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[TPV(t)]}}}};return e.return(jvg(D,H))})},jvg=function(D,t){var H,e;
return _.Z(function(V){if(V.nextAddress==1)return V.yield(D.JSC$17716_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3)return H=V.yieldResult,V.yield(FC(H),3);e=V.yieldResult;return V.return({responseContext:{},contents:t,topbar:e})})};var kK=function(D,t,H){this.JSC$17723_upliftPromise=D;this.store=t;this.JSC$17723_persistentStorePromiseAccessor=H};
kK.prototype.shouldPreferLocalResponse=function(D){var t=D.videoId;return t&&C2V(this.store.getState().entities,t)&&mBV(this.store.getState().entities,t)?cS3(this.store.getState().entities,D.playlistId):!1};
kK.prototype.localInnertubeResponse=function(D){var t=this,H,e;return _.Z(function(V){if(V.nextAddress==1)return(H=D.videoId)?V.yield(t.JSC$17723_upliftPromise,2):V.return(Promise.reject(Error("cj")));if(V.nextAddress!=3)return V.yield($He(t,D,H),3);e=V.yieldResult;return V.return(ieH(t,e,H))})};
kK.prototype.canProvideFallbackResponse=function(D){return D.videoId?!0:!1};
kK.prototype.localFallbackInnertubeResponse=function(D){var t=this,H,e,V,b;return _.Z(function(a){switch(a.nextAddress){case 1:return(H=D.videoId)?a.yield(t.JSC$17723_upliftPromise,2):a.return(Promise.reject(Error("cj")));case 2:return a.yield($He(t,D,H),3);case 3:e=a.yieldResult;if(SR(t.store.getState().entities,H)){a.jumpTo(4);break}return a.yield(bI(t.JSC$17723_upliftPromise,t.store),5);case 5:return V=a.yieldResult,a.return(rFe(e,V));case 4:return C2V(t.store.getState().entities,H)&&mBV(t.store.getState().entities,
H)?a.return(ieH(t,e,H)):(b={title:_.wO(_.OT("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:mED()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},a.return(rFe(e,b)))}})};
var $He=function(D,t,H){var e,V,b,a,w;return _.Z(function(h){if(h.nextAddress==1)return e=t.playlistId,V=_.af(H,e),h.yield(D.JSC$17723_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3)return b=h.yieldResult,h.yield(FC(b),3);a=h.yieldResult;w={responseContext:{},currentVideoEndpoint:V,topbar:a};return h.return(w)})},ieH=function(D,t,H){if(D=SR(D.store.getState().entities,H)){var e;
H=D.videoEntity;var V,b={title:Z8(H.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.sO((e=H.localizedStrings)==null?void 0:e.viewCount),viewCount:_.sO((V=H.localizedStrings)==null?void 0:V.viewCount)}}};H.publishedTimestampMillis&&(b.dateText=_.sO(Bf3(new Date(Number(H.publishedTimestampMillis)))));e={videoPrimaryInfoRenderer:b};V=D.videoEntity;D=D.channelEntity;D={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Z8(_.OT("SHOW_MORE",void 0,"Show more")),
showLessText:Z8(_.OT("SHOW_LESS",void 0,"Show less")),description:V.formattedDescription,owner:{videoOwnerRenderer:{title:Z8(D.title),thumbnail:D.avatar}}}};t.contents={twoColumnWatchNextResults:{results:{results:{contents:[e,D]}}}}}return t},rFe=function(D,t){D.contents={singleColumnWatchNextResults:{results:{results:{contents:[TPV(t)]}}}};
return D};var iI=function(D,t,H){this.JSC$17728_upliftPromise=D;this.store=t;this.JSC$17728_persistentStorePromiseAccessor=H};
iI.prototype.shouldPreferLocalResponse=function(){return!1};
iI.prototype.localInnertubeResponse=function(){return _.Z(function(D){return D.return(Promise.reject(Error("dj")))})};
iI.prototype.canProvideFallbackResponse=function(){return!0};
iI.prototype.localFallbackInnertubeResponse=function(){var D=this,t,H,e,V;return _.Z(function(b){switch(b.nextAddress){case 1:return b.yield(D.JSC$17728_persistentStorePromiseAccessor(),2);case 2:return t=b.yieldResult,b.yield(FC(t),3);case 3:return H=b.yieldResult,e={responseContext:{},topbar:H},b.yield(D.JSC$17728_upliftPromise,4);case 4:return b.yield(bI(D.JSC$17728_upliftPromise,D.store),5);case 5:return V=b.yieldResult,e.watchStatus={backgroundPromoRenderer:V},b.return(e)}})};_.OeH=new _.kI("ENDPOINT_MAP");var UHg=function(){var D=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return D.sequenceMap}}},jaf=function(D,t,H){var e,V=(e=t.config)==null?void 0:e.sequenceStrategy;
if(!V)return H();D.sequenceMap.has(V.sequenceKey)||D.sequenceMap.set(V.sequenceKey,[]);D=D.sequenceMap.get(V.sequenceKey);switch(V.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return oQQ(D,t,H);case "REQUEST_SEQUENCE_TYPE_REPLACE":return PYb(D,t,H);default:throw new _.nZ("Request could not be sequenced",t);}},oQQ=function(D,t,H){var e,V,b;
return _.Z(function(a){D.length>0?(V=D[D.length-1],e=V.responsePromise.then(function(){return H()})):e=H();
b={request:t,responsePromise:e};D.push(b);nQF(D,b);return a.return(b.responsePromise)})},PYb=function(D,t,H){H=H();
if(D.length>0)for(var e=_.F(D),V=e.next();!V.done;V=e.next())V.value.responsePromise=H;var b={request:t,responsePromise:H};D.push(b);nQF(D,b);return Promise.resolve().then(function(){return D.indexOf(b)>0?b.responsePromise.then(function(a){return Object.assign({},a,{sequenceMetaData:{skipProcessing:!0}})}):b.responsePromise})},nQF=function(D,t){t.responsePromise.then(function(){var H=D.indexOf(t);
H>-1&&D.splice(H,1)})};var CYF=new _.kI("REQUEST_SEQUENCING");var $U=function(){};
_.P($U,lS);$U.prototype.getApiPaths=function(){return[]};
$U.prototype.getExtension=function(D){return _.O(D,q2B)};
$U.prototype.JSC$13118_buildRequest=function(D,t){D.recaptchaToken=t.recaptchaToken};
$U.prototype.getApiUrl=function(){return"/das_captcha"};var iW=function(){};
_.P(iW,lS);iW.prototype.getApiPaths=function(){return nnf};
iW.prototype.getExtension=function(D){return _.O(D,Lfa)};
iW.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;t.createBackstagePostParams&&(D.createBackstagePostParams=t.createBackstagePostParams);H.comment_text&&(D.commentText=H.comment_text);if(H.attached_video_id)D.videoAttachment={videoId:H.attached_video_id};else if(H.image_poll_options)D.pollAttachmentData={options:H.image_poll_options};else if(H.poll_options)D.pollAttachment={choices:H.poll_options};else if(H.quiz_options)D.quizAttachmentData={options:H.quiz_options};else if(H.image_blob_id)D.imageAttachment=
{encryptedBlobId:H.image_blob_id},H.source_video_id&&(D.imageAttachment.sourceExternalVideoId=H.source_video_id),H.image_preview_coordinates&&(D.imageAttachment.previewCoordinates=JSON.parse(H.image_preview_coordinates));else if(H.images_data)D.imagesAttachment={imagesData:H.images_data};else if(H.clip_external_video_id!==void 0||H.clip_offset_ms!==void 0||H.clip_duration_ms!==void 0){var e,V,b,a,w;D.clipAttachment={externalVideoId:(b=H.clip_external_video_id)!=null?b:"",offsetMs:(a=(e=H.clip_offset_ms)==
null?void 0:e.toString())!=null?a:"",durationMs:(w=(V=H.clip_duration_ms)==null?void 0:V.toString())!=null?w:""}}else H.shared_post_id&&(D.sharedPostAttachment={postId:H.shared_post_id});H.tagged_video_id&&(D.postCreationData={taggedVideoId:H.tagged_video_id});H.access_restrictions&&(typeof H.access_restrictions==="number"&&(t=H.access_restrictions,D.accessRestrictions={restriction:t!==1&&t===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof H.access_restrictions==="string"&&
(D.accessRestrictionsParams=H.access_restrictions));H.scheduled_publish_time_sec&&(D.scheduledPublishTimeSec=H.scheduled_publish_time_sec.toString())};var r$=function(){};
_.P(r$,lS);r$.prototype.getApiPaths=function(){return Ly3};
r$.prototype.getExtension=function(D){return _.O(D,oS6)};
r$.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;t.decorateMessageParams&&(D.params=t.decorateMessageParams);H.text&&(D.text=H.text)};var O$=function(){};
_.P(O$,lS);O$.prototype.getApiPaths=function(){return H8o};
O$.prototype.getExtension=function(D){return _.O(D,A2o)};
O$.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;H.video_id&&(D.videoId=H.video_id)};var U$=function(){};
_.P(U$,lS);U$.prototype.getApiPaths=function(){return FZf};
U$.prototype.getExtension=function(D){return _.O(D,_.$0)};
U$.prototype.JSC$13118_buildRequest=function(D,t,H){H.suggestions_query&&(D.input=H.suggestions_query)};var oa=function(){};
_.P(oa,lS);oa.prototype.getApiPaths=function(){return lZ3};
oa.prototype.getExtension=function(D){return _.O(D,g1f)};
oa.prototype.JSC$13118_buildRequest=function(D,t,H){H.comment_text!==void 0&&(D.commentText=H.comment_text);H.scheduled_publish_time_sec&&(D.scheduledPublishTimeSec=H.scheduled_publish_time_sec.toString());D.updateBackstagePostParams=t.updateBackstagePostParams};var PE=function(){};
_.P(PE,lS);PE.prototype.getApiPaths=function(){return Bm};
PE.prototype.getExtension=function(D){return _.O(D,_.RH)};
PE.prototype.JSC$13118_buildRequest=function(D,t,H){H.formData&&(D.formData=H.formData);t.token?D.continuation=t.token:t.continuationTokenKey&&(H=_.b_().getState(),t=_.jR(H.entities,"continuationTokenEntity",t.continuationTokenKey))&&(D.continuation=String(t.continuationToken))};
var mHO=function(){};
_.P(mHO,lS);_.q=mHO.prototype;_.q.getApiPaths=function(){return Bm};
_.q.getExtension=function(D){return _.O(D,_.UL)};
_.q.isNavigationCommand=function(){return!0};
_.q.JSC$13125_getStoreKey=function(D){if((D=this.getExtension(D))&&D.browseId){var t={browseId:D.browseId};D.browseEndpointContextSupportedConfigs&&(t.browseEndpointContextSupportedConfigs=JSON.stringify(D.browseEndpointContextSupportedConfigs));D.params&&(t.params=D.params);D.query&&(t.query=D.query);return _.tE("browse",t)}};
_.q.JSC$13118_buildRequest=function(D,t,H){t.browseId&&(D.browseId=t.browseId);t.params&&(D.params=t.params);t.query&&(D.query=t.query);H.formData?D.formData=H.formData:t.formData&&(D.formData=t.formData);t.browseId==="FEsubscriptions"&&_.Ph().getFlag(155)&&(D.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");t.browseId==="SPaccount_playback"&&(H=_.Ph(),D.formData||(D.formData={}),D.formData.accountSettingsFormData={flagCaptionsDefaultOff:H.getFlag(65),flagAutoCaptionsDefaultOn:H.getFlag(66),
flagDisableInlinePreview:H.getFlag(186),flagAudioDescriptionDefaultOn:H.getFlag(198)});if(t.browseId==="FEwhat_to_watch"){H=_.Ph();var e=H.getFlag(196);H.getFlag(197)&&(D.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:e}}})}t.browseId==="FEwhat_to_watch"&&(t=_.Ph().getFlag(186),D.inlineSettingStatus=t?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.q.getRequestConfig=function(D,t){t=t===void 0?{}:t;var H={};if(D=this.JSC$13125_getStoreKey(D,t))H.storeStrategy={storeKey:D,disableCache:t.disableCache};_.r("web_log_browse_ticks_ks")||(H.requestTick="br_s",H.responseTick="br_r");return H};var nD=function(){};
_.P(nD,lS);nD.prototype.getApiPaths=function(){return ion};
nD.prototype.getExtension=function(D){return _.O(D,GB4)};
nD.prototype.JSC$13118_buildRequest=function(D,t,H){D.legacyYoutubeChannelUsername=H.legacyYouTubeChannelUsername||"";D.legacyYoutubeChannelPassword=H.legacyYouTubeChannelPassword||""};var CD=function(){};
_.P(CD,lS);CD.prototype.getApiPaths=function(){return CUv};
CD.prototype.getExtension=function(D){return _.O(D,R0w)};
CD.prototype.JSC$13118_buildRequest=function(D,t,H){H.recaptcha_response_token&&(D.recaptchaResponseToken=H.recaptcha_response_token);H.channel_id&&(D.channelId=H.channel_id)};var m7=function(){};
_.P(m7,lS);m7.prototype.getApiPaths=function(){return vDf};
m7.prototype.getExtension=function(D){return _.O(D,B8w)};
m7.prototype.JSC$13118_buildRequest=function(D,t,H){t.externalChannelId&&(D.externalChannelId=t.externalChannelId);H.handle&&(D.handleUpdate={handle:H.handle},t.handleEditSource&&(D.handleUpdate.handleEditSource=t.handleEditSource))};var Mq=function(){};
_.P(Mq,lS);Mq.prototype.getApiPaths=function(){return Rzm};
Mq.prototype.getExtension=function(D){return _.O(D,jIV)};
Mq.prototype.JSC$13118_buildRequest=function(D,t,H){t.request&&(D.channelId=t.request.channelId);var e;if(H==null?0:(e=H.uploadDefaults)==null?0:e.emojiReactionSet)D.uploadDefaultsRequest||(D.uploadDefaultsRequest={}),D.uploadDefaultsRequest.emojiReactionSet=H.uploadDefaults.emojiReactionSet};var Sh=function(){};
_.P(Sh,lS);Sh.prototype.getApiPaths=function(){return IZ4};
Sh.prototype.getExtension=function(D){return _.O(D,uvn)};
Sh.prototype.JSC$13118_buildRequest=function(D,t,H){t.externalChannelId&&(D.externalChannelId=t.externalChannelId);t.channelHandleEntityKey&&(D.channelHandleEntityKey=t.channelHandleEntityKey);t.handleEditSource&&(D.handleEditSource=t.handleEditSource);H.handle?D.handle=H.handle:H.name&&(D.name=H.name)};var Xe=function(){};
_.P(Xe,lS);Xe.prototype.getApiPaths=function(){return Ugv};
Xe.prototype.getExtension=function(D){return _.O(D,FOQ)};
Xe.prototype.JSC$13118_buildRequest=function(D,t){t.actions?D.actions=t.actions:t.action&&(D.actions=[t.action])};var fD=function(){};
_.P(fD,lS);fD.prototype.getApiPaths=function(){return ono};
fD.prototype.getExtension=function(D){return _.O(D,_.RH)};
fD.prototype.JSC$13118_buildRequest=function(D,t){t.token&&(D.continuation=t.token)};var LD=function(){};
_.P(LD,lS);LD.prototype.getApiPaths=function(){return DYo};
LD.prototype.getExtension=function(D){return _.O(D,_.RH)};
LD.prototype.JSC$13118_buildRequest=function(D,t){D.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";t.token&&(D.fetchCommentsParams={continuation:t.token})};var AN=function(){};
_.P(AN,lS);AN.prototype.getApiPaths=function(){return ML4};
AN.prototype.getExtension=function(D){return _.O(D,qKm)};
AN.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;t.createReplyParams&&(D.createReplyParams=t.createReplyParams);t.commentText&&(D.commentText=_.eo(t.commentText));H.comment_text&&(D.commentText=H.comment_text);H.image_blob_id&&(D.imageAttachment={encryptedBlobId:H.image_blob_id});H.botguard_response&&(D.botguardResponse=H.botguard_response)};
_.ql.Object.defineProperties(AN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var g$=function(){};
_.P(g$,lS);g$.prototype.getApiPaths=function(){return Sxw};
g$.prototype.getExtension=function(D){return _.O(D,_.bpn)};
g$.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;t.createCommentParams&&(D.createCommentParams=t.createCommentParams);t.commentText&&(D.commentText=_.eo(t.commentText));t.videoPositionMention&&(D.videoPositionMention=t.videoPositionMention);t.sources&&(D.sources=t.sources);H.comment_text&&(D.commentText=H.comment_text);H.attached_video_id?D.videoAttachment={videoId:H.attached_video_id}:H.poll_options?D.pollAttachment={choices:H.poll_options}:H.image_blob_id?D.imageAttachment=
{encryptedBlobId:H.image_blob_id}:H.shared_post_id&&(D.sharedPostAttachment={postId:H.shared_post_id});H.access_restrictions&&typeof H.access_restrictions==="number"&&(t=H.access_restrictions,D.accessRestrictions={restriction:t!==1&&t===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});H.botguard_response&&(D.botguardResponse=H.botguard_response)};
_.ql.Object.defineProperties(g$.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var JN=function(){};
_.P(JN,lS);JN.prototype.getApiPaths=function(){return ppn};
JN.prototype.getExtension=function(D){return _.O(D,wMn)};
JN.prototype.JSC$13118_buildRequest=function(D,t,H){t.commentText&&(D.replyText=_.eo(t.commentText));H.comment_text&&(D.replyText=H.comment_text);D.updateReplyParams=t.updateReplyParams};
_.ql.Object.defineProperties(JN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var YU=function(){};
_.P(YU,lS);YU.prototype.getApiPaths=function(){return dYn};
YU.prototype.getExtension=function(D){return _.O(D,awn)};
YU.prototype.JSC$13118_buildRequest=function(D,t,H){t.commentText&&(D.commentText=_.eo(t.commentText));H.comment_text&&(D.commentText=H.comment_text);D.updateCommentParams=t.updateCommentParams};
_.ql.Object.defineProperties(YU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var lW=function(){};
_.P(lW,lS);lW.prototype.getApiPaths=function(){return xY4};
lW.prototype.getExtension=function(D){return _.O(D,Nhf)};
lW.prototype.JSC$13118_buildRequest=function(D,t){t.settings&&(D.settings=t.settings)};var vE=function(){};
_.P(vE,lS);vE.prototype.getApiPaths=function(){return unf};
vE.prototype.getExtension=function(D){return _.O(D,Wfn)};
vE.prototype.JSC$13118_buildRequest=function(D,t){t.channelCreationToken&&(D.channelCreationToken=t.channelCreationToken);t.source&&(D.source=t.source)};var pD=function(){};
_.P(pD,lS);pD.prototype.getApiPaths=function(){return mg6};
pD.prototype.getExtension=function(D){return _.O(D,y24)};
pD.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;if(H.name&&(H.given_name||H.family_name))D=new _.nZ("channel creation cannot set both GAIA and YouTube names",t),_.gT(D);else{if(t.zeroStepChannelCreationParams){if(!H.comment_text){D=new _.nZ("zero_step_create_comment_params but no zero_step_texts",t);_.gT(D);return}D.zeroStepChannelCreationParams=t.zeroStepChannelCreationParams;D.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(D.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
H.comment_text,H.botguard_response&&(D.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=H.botguard_response))}D.channelCreationToken=t.channelCreationToken;H.given_name&&(D.givenName=H.given_name);H.family_name&&(D.familyName=H.family_name);t.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(D.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(H.name||H.handle||H.avatar_url||H.encryptedBlobId||H.isNameChanged!==void 0||H.isHandleChanged!==void 0||H.isDefaultProfilePhoto!==
void 0||H.obakeImageSource)D.overrideChannelCreationParams={},H.name&&(D.overrideChannelCreationParams.name=H.name),H.handle&&(D.overrideChannelCreationParams.handle=H.handle),H.avatar_url&&(D.overrideChannelCreationParams.avatarUrl=H.avatar_url),H.encryptedBlobId&&(D.overrideChannelCreationParams.blobEncryptionId=H.encryptedBlobId),H.enableIdentityForAllChannelCreationDialog&&(H.encryptedBlobId?D.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
H.isDefaultProfilePhoto!==void 0&&(D.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=H.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),H.isNameChanged!==void 0&&(D.overrideChannelCreationParams.identityForAllChannelCreationNameTag=H.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),H.isHandleChanged!==
void 0&&(D.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=H.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),H.obakeImageSource&&(D.overrideChannelCreationParams.obakeImageSourceType=H.obakeImageSource))}};var d$=function(){};
_.P(d$,lS);d$.prototype.getApiPaths=function(D){return(D=this.getExtension(D))&&D.status==="DISLIKE"?Yxo:D&&D.status==="INDIFFERENT"?O8n:hzV};
d$.prototype.getExtension=function(D){return _.O(D,_.pP)};
d$.prototype.JSC$13118_buildRequest=function(D,t){t.target&&(D.target=t.target);if(t=this.getParams(t))D.params=t};
d$.prototype.getParams=function(D){switch(D==null?void 0:D.status){case "DISLIKE":return D.dislikeParams;case "INDIFFERENT":return D.removeLikeParams;default:return D==null?void 0:D.likeParams}};var xU=function(){};
_.P(xU,lS);xU.prototype.getApiPaths=function(){return fZ4};
xU.prototype.getExtension=function(D){return _.O(D,KO9)};
xU.prototype.JSC$13118_buildRequest=function(D,t){t.settingItemId&&(D.settingItemId=t.settingItemId);t.stringValue!=null&&t.stringValue!==void 0?D.newValue={stringValue:t.stringValue}:t.intValue?D.newValue={intValue:t.intValue}:t.boolValue!==null&&t.boolValue!==void 0?D.newValue={boolValue:t.boolValue}:(D=new _.nZ("Unknown value type for SetSettingEndpoint.",t),_.gT(D))};var Ra=function(){};
_.P(Ra,lS);Ra.prototype.getApiPaths=function(){return gDa};
Ra.prototype.getExtension=function(D){return _.O(D,AXa)||void 0};
Ra.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;t.channelIds&&(D.channelIds=t.channelIds);t.siloName&&(D.siloName=t.siloName);t.params&&(D.params=t.params);H.botguardResponse&&(D.botguardResponse=H.botguardResponse);H.feature&&(D.clientFeature=H.feature)};
_.ql.Object.defineProperties(Ra.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var uW=function(){};
_.P(uW,lS);uW.prototype.getApiPaths=function(){return Ybv};
uW.prototype.getExtension=function(D){return _.O(D,Nf3)||void 0};
uW.prototype.JSC$13118_buildRequest=function(D,t){t.channelIds&&(D.channelIds=t.channelIds);t.siloName&&(D.siloName=t.siloName);t.params&&(D.params=t.params)};
_.ql.Object.defineProperties(uW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var WE=function(D){this.shareClientParamsProvider=D};
_.P(WE,lS);WE.prototype.getApiPaths=function(){return Ow6};
WE.prototype.getExtension=function(D){return _.O(D,daQ)||_.O(D,_.xa3)||_.O(D,puV)};
WE.prototype.JSC$13118_buildRequest=function(D,t){t.serializedShareEntity&&(D.serializedSharedEntity=t.serializedShareEntity);if(t.clientParamIdentifier){var H;if((H=this.shareClientParamsProvider)==null?0:H.clientParams.has(t.clientParamIdentifier)){H=this.shareClientParamsProvider;t=t.clientParamIdentifier;var e=H.clientParams.get(t);e&&H.clientParams.delete(t);D.clientParams=e}}};
WE[Fc]=[AIn];var Ia=function(){};
_.P(Ia,lS);Ia.prototype.getApiPaths=function(){return ckV};
Ia.prototype.getExtension=function(D){return _.O(D,rCn)};
Ia.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params)};var QG=function(){};
_.P(QG,lS);QG.prototype.getApiPaths=function(){return lGm};
QG.prototype.getExtension=function(D){return _.O(D,jJ9)};
QG.prototype.JSC$13118_buildRequest=function(D,t){t.dismissal&&(D.items=[t.dismissal])};
_.ql.Object.defineProperties(QG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var yG=function(){};
_.P(yG,lS);yG.prototype.getApiPaths=function(){return Z8f};
yG.prototype.getExtension=function(D){return _.O(D,_.XC)||void 0};
yG.prototype.JSC$13118_buildRequest=function(D,t,H){D.feedbackTokens=[];t.feedbackToken&&D.feedbackTokens.push(t.feedbackToken);if(t=t.cpn||H.cpn)D.feedbackContext={cpn:t};D.isFeedbackTokenUnencrypted=!!H.is_feedback_token_unencrypted;D.shouldMerge=!1;H.extra_feedback_tokens&&(D.shouldMerge=!0,D.feedbackTokens=D.feedbackTokens.concat(H.extra_feedback_tokens))};
_.ql.Object.defineProperties(yG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var BE=function(){};
_.P(BE,lS);BE.prototype.getApiPaths=function(){return Z8f};
BE.prototype.getExtension=function(D){return _.O(D,_.$0)};
BE.prototype.JSC$13118_buildRequest=function(D,t,H){H.feedback_tokens&&(D.feedbackTokens=H.feedback_tokens,D.shouldMerge=!0)};
_.ql.Object.defineProperties(BE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var zR=function(){};
_.P(zR,lS);zR.prototype.getApiPaths=function(){return Z8f};
zR.prototype.getExtension=function(D){return _.O(D,ndR)};
zR.prototype.JSC$13118_buildRequest=function(D,t){t.undoToken&&(D.feedbackTokens=[t.undoToken]);t.isUndoTokenUnencrypted&&(D.isFeedbackTokenUnencrypted=t.isUndoTokenUnencrypted)};
_.ql.Object.defineProperties(zR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var DH=function(){};
_.P(DH,lS);DH.prototype.getApiPaths=function(){return Qww};
DH.prototype.getExtension=function(D){return _.O(D,kB6)};
DH.prototype.JSC$13118_buildRequest=function(D,t){t.nextEndpoint&&_.O(t.nextEndpoint,_.um)?D.nextEndpoint={urlEndpoint:_.O(t.nextEndpoint,_.um)}:t.nextEndpoint&&_.O(t.nextEndpoint,_.Hh)&&(D.nextEndpoint={watchEndpoint:_.O(t.nextEndpoint,_.Hh)});t.setRacy&&(D.setRacy=t.setRacy);t.setControvercy&&(D.setControvercy=t.setControvercy)};var tm=function(D){this.JSC$17909_storeWithEntities=D};
_.P(tm,lS);tm.prototype.getApiPaths=function(){return pJ4};
tm.prototype.getExtension=function(D){return _.O(D,vI4)};
tm.prototype.JSC$13118_buildRequest=function(D,t){t.flowId&&(D.flowId=t.flowId);t.targetId&&(D.targetId=t.targetId);t.continuation&&(D.continuation=t.continuation);var H=t.flowStateEntityKey;if(t.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&H&&this.JSC$17909_storeWithEntities){var e;if(t=(e=this.JSC$17909_storeWithEntities.getState())==null?void 0:e.entities)if(e=_.NQ(H).entityType,e=_.jR(t,e,H))D.flowState=e,D.flowStateEntityKey=H}};
_.ql.Object.defineProperties(tm.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
tm[Fc]=[a6];var Mbb=function(){};
_.P(Mbb,lS);_.q=Mbb.prototype;_.q.getApiPaths=function(){return wpf};
_.q.JSC$13125_getStoreKey=function(){return _.tE("guide")};
_.q.getRequestConfig=function(){var D=this.JSC$13125_getStoreKey(),t;D&&(t={storeStrategy:{storeKey:D}});return t};
_.q.isNavigationCommand=function(){return!0};
_.q.getExtension=function(D){return _.O(D,_.$0)};
_.q.JSC$13118_buildRequest=function(D){D.fetchLiveState=!0};var H4=function(){};
_.P(H4,lS);H4.prototype.getApiPaths=function(){return rkV};
H4.prototype.getExtension=function(D){return _.O(D,Hp3)};
H4.prototype.JSC$13118_buildRequest=function(){};var es=function(){};
_.P(es,lS);es.prototype.getApiPaths=function(){return OoB};
es.prototype.getExtension=function(D){return _.O(D,eWm)};
es.prototype.JSC$13118_buildRequest=function(){};var Vq=function(){};
_.P(Vq,lS);Vq.prototype.getApiPaths=function(){return Tt3};
Vq.prototype.getExtension=function(D){return _.O(D,_.RH)};
Vq.prototype.JSC$13118_buildRequest=function(D,t){t.token&&(D.continuation=t.token);var H,e;D==null||(H=D.context)==null||(e=H.user)==null||delete e.onBehalfOfUser};
Vq.prototype.getRequestConfig=function(D){var t={},H;if(((H=this.getExtension(D))==null?void 0:H.sessionIndex)!==void 0){var e;t={authStrategy:{sessionIndex:(e=this.getExtension(D))==null?void 0:e.sessionIndex}}}return t};var bs=function(){};
_.P(bs,lS);bs.prototype.JSC$13118_getRequest=function(D){var t=this.getExtension(D),H=D="";if(t==null?0:t.popup)D="true";if(t==null?0:t.disableSignout)H="true";t={};return{input:"/getAccountSwitcherEndpoint",requestShell:Dk("/getAccountSwitcherEndpoint","GET",(t["X-YouTube-Delegation-Context"]=_.YC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),t["X-YouTube-Account-Switcher-Popup"]=D,t["X-YouTube-Account-Switcher-Disable-Signout"]=H,t)),innerTubeRequest:{}}};
bs.prototype.getApiPaths=function(){return[]};
bs.prototype.getExtension=function(D){return _.O(D,_.G8X)};
bs.prototype.JSC$13118_buildRequest=function(){};var qb=function(){};
_.P(qb,lS);qb.prototype.JSC$13118_getRequest=function(D){var t="/cross_account_channel_transfer";(D=this.getExtension(D))&&(t=YTV(t,{target_session:D.targetSessionIndex,source_rapt:D.sourceRapt,rapt:D.targetRapt}));return{input:t,requestShell:Dk(t,"GET"),innerTubeRequest:{}}};
qb.prototype.getApiPaths=function(){return[]};
qb.prototype.getExtension=function(D){return _.O(D,h09)};
qb.prototype.JSC$13118_buildRequest=function(){};var F8=function(){};
_.P(F8,lS);F8.prototype.getApiPaths=function(){return dgm};
F8.prototype.isNavigationCommand=function(){return!0};
F8.prototype.getExtension=function(D){return _.O(D,_.$0)};
F8.prototype.JSC$13118_buildRequest=function(D){var t=_.Ph().get("gsml","");t&&(D.safetyModeLockerObfuscatedGaiaId=t);D.userInterfaceTheme=_.f_(!0);_.L_()?D.deviceTheme="DEVICE_THEME_SELECTED":_.b8V()?D.deviceTheme="DEVICE_THEME_SUPPORTED":D.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var aq=function(){};
_.P(aq,lS);aq.prototype.getApiPaths=function(){return Tt3};
aq.prototype.getExtension=function(D){return _.O(D,GTn)};
aq.prototype.JSC$13118_buildRequest=function(D,t){if(t&&t.requestType&&(D.requestType=t.requestType,t.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||t.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var H=t.nextUrl;H&&(_.v0V(H)||ec(H))&&(D.nextNavendpoint={urlEndpoint:{url:H}})}t&&t.channelSwitcherQuery&&(D.channelSwitcherQuery=t.channelSwitcherQuery);t&&t.triggerChannelCreation&&(D.triggerChannelCreation=t.triggerChannelCreation);var e;if(t==null?0:(e=t.contentOwnerConfig)==
null?0:e.externalContentOwnerId)D.contentOwnerConfig=t.contentOwnerConfig;D.callCircumstance=t&&t.requestType&&t.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var V,b;t=D==null?void 0:(V=D.context)==null?void 0:(b=V.user)==null?void 0:b.onBehalfOfUser;if(t!==void 0){D.obfuscatedSelectedGaiaId=t;var a,w;D==null||(a=D.context)==null||(w=a.user)==null||delete w.onBehalfOfUser}var h,K;if(V=D==null?void 0:(h=D.context)==null?void 0:(K=h.user)==null?
void 0:K.serializedDelegationContext)D.selectedSerializedDelegationContext=V};var we=function(){};
_.P(we,lS);we.prototype.getApiPaths=function(){return jM6};
we.prototype.getExtension=function(D){return _.O(D,R_n)};
we.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params)};var ZH=function(){};
_.P(ZH,lS);ZH.prototype.getApiPaths=function(){return Cka};
ZH.prototype.getExtension=function(D){return _.O(D,_.bSn)};
ZH.prototype.JSC$13118_buildRequest=function(D,t){if(t=t.createBroadcastRequest)D.useMasks=t.useMasks,D.broadcastType=t.broadcastType,D.broadcastSource=t.broadcastSource,D.broadcastMetadata=t.broadcastMetadata,D.broadcastMetadataMask=t.broadcastMetadataMask,D.videoMetadata=t.videoMetadata,D.videoMetadataMask=t.videoMetadataMask,D.liveChatSettingsUpdate=t.liveChatSettingsUpdate,D.liveChatSettingsUpdateMask=t.liveChatSettingsUpdateMask,D.cloneVideoId=t.cloneVideoId,D.cloneWithOverrides=t.cloneWithOverrides,
D.targetEntity=t.targetEntity,D.scheduledRedirectMetadata=t.scheduledRedirectMetadata};var sQ=function(){};
_.P(sQ,lS);sQ.prototype.getApiPaths=function(){return XJ3};
sQ.prototype.getExtension=function(D){return _.O(D,yqf)};
sQ.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;t.params&&(D.params=t.params);H.questionText&&(D.questionText=H.questionText);H.optionText&&H.optionText.length>0&&(D.optionText=H.optionText)};var hm=function(){};
_.P(hm,lS);hm.prototype.getApiPaths=function(){return Akn};
hm.prototype.getExtension=function(D){return _.O(D,IXf)};
hm.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params)};var GP=function(){};
_.P(GP,lS);GP.prototype.getApiPaths=function(){return IGm};
GP.prototype.getExtension=function(D){return _.O(D,xLQ)};
GP.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params)};var EQ=function(){};
_.P(EQ,lS);EQ.prototype.getApiPaths=function(){return yko};
EQ.prototype.getExtension=function(D){return _.O(D,Rjf)};
EQ.prototype.JSC$13118_buildRequest=function(D,t,H){t.params&&(D.params=t.params);t.continuation&&(D.continuation=t.continuation);H.currentPlayerState&&H.currentPlayerState.playerOffsetMs&&(D.currentPlayerState={playerOffsetMs:H.currentPlayerState.playerOffsetMs.toString()})};var KI=function(){};
_.P(KI,lS);KI.prototype.getApiPaths=function(){return Btw};
KI.prototype.getExtension=function(D){return _.O(D,dL3)};
KI.prototype.JSC$13118_buildRequest=function(D,t,H){t.params&&(D.params=t.params);H.continuation&&(D.continuation=H.continuation);"hidden"in H&&(D.webClientInfo={isDocumentHidden:H.hidden});H.isInvalidationTimeoutRequest&&(D.isInvalidationTimeoutRequest=H.isInvalidationTimeoutRequest);H.invalidationPayload&&(t=pbn(_.zV(VM(H.invalidationPayload))),D.invalidationPayloadLastPublishAtUsec=gU(t,2));H.reloadActionPanel&&(D.reloadActionPanel=H.reloadActionPanel);H.fullReload&&(D.fullReload=H.fullReload);
H.currentPlayerState&&(D.currentPlayerState=H.currentPlayerState)};var Nb=function(){};
_.P(Nb,lS);Nb.prototype.getApiPaths=function(){return Gsf};
Nb.prototype.getExtension=function(D){return _.O(D,Qc4)};
Nb.prototype.JSC$13118_buildRequest=function(D,t){D.params=t.params};var kc=function(){};
_.P(kc,lS);kc.prototype.getApiPaths=function(){return QMf};
kc.prototype.getExtension=function(D){return _.O(D,aBn)};
kc.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params)};var TP=function(){};
_.P(TP,lS);TP.prototype.getApiPaths=function(){return zAv};
TP.prototype.getExtension=function(D){return _.O(D,wKV)};
TP.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params)};var c4=function(){};
_.P(c4,lS);c4.prototype.getApiPaths=function(){return EDV};
c4.prototype.getExtension=function(D){return _.O(D,BIV)};
c4.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params)};var P4=function(){};
_.P(P4,lS);P4.prototype.getApiPaths=function(){return N7n};
P4.prototype.getExtension=function(D){return _.O(D,zjf)};
P4.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params)};var nI=function(){};
_.P(nI,lS);nI.prototype.getApiPaths=function(){return UY6};
nI.prototype.getExtension=function(D){return _.O(D,ILw)};
nI.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params)};var CI=function(){};
_.P(CI,lS);CI.prototype.getApiPaths=function(){return Sbf};
CI.prototype.getExtension=function(D){return _.O(D,_.D43)};
CI.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;t.params&&(D.params=t.params);H.client_message_id&&(D.clientMessageId=H.client_message_id);H.recaptcha_token&&(D.recaptchaToken=H.recaptcha_token);H.rich_message&&H.rich_message.text_segments?(t=H.rich_message.text_segments.map(function(e){var V={};e.text&&(V.text=e.text);e.emoji_id&&(V.emojiId=e.emoji_id);return V}),D.richMessage={textSegments:t}):H.message&&(D.message=H.message);
H.currentPlayerState&&(D.currentPlayerState=H.currentPlayerState)};var mQ=function(){};
_.P(mQ,lS);mQ.prototype.getApiPaths=function(){return Xp6};
mQ.prototype.getExtension=function(D){return _.O(D,tno)};
mQ.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params)};var Mb=function(){};
_.P(Mb,lS);Mb.prototype.getApiPaths=function(){return Jrm};
Mb.prototype.getExtension=function(D){return _.O(D,eT6)};
Mb.prototype.JSC$13118_buildRequest=function(D,t,H){t.isUserInitiated&&(D.isUserInitiated=t.isUserInitiated);t.initiationSource&&(D.initiationSource=t.initiationSource);H.locationInfo&&(D.context.client.locationInfo=H.locationInfo)};var Ss=function(){};
_.P(Ss,lS);Ss.prototype.getApiPaths=function(){return KZm};
Ss.prototype.getExtension=function(D){return _.O(D,qn3)};
Ss.prototype.JSC$13118_buildRequest=function(D,t,H){t.metadataUpdateRequest&&(t=t.metadataUpdateRequest,D.encryptedVideoId=t.encryptedVideoId,t.liveChat&&(t=t.liveChat,D.liveChat||(D.liveChat={}),t.performAsExternalChannelId&&(D.liveChat.performAsExternalChannelId=t.performAsExternalChannelId),t.source&&(D.liveChat.source=t.source)));var e;if(H==null?0:(e=H.liveChat)==null?0:e.liveChatSettings)D.liveChat||(D.liveChat={}),H=H.liveChat.liveChatSettings,D.liveChat.newLiveChatSettings=H,D.liveChat.newLiveChatSettingsMask||
(D.liveChat.newLiveChatSettingsMask={}),H.emojiReactionSet&&(D.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var X8=function(){};
_.P(X8,lS);X8.prototype.getApiPaths=function(){return WZn};
X8.prototype.getExtension=function(D){return _.O(D,_.kim)};
X8.prototype.JSC$13118_buildRequest=function(D,t,H){H.continuation?D.continuation=H.continuation:t.videoId&&(D.videoId=t.videoId);H.clientParams&&(D.clientParams=H.clientParams)};var fI=function(){};
_.P(fI,lS);fI.prototype.getApiPaths=function(){return DYo};
fI.prototype.getExtension=function(D){return _.O(D,_.VQ)};
fI.prototype.JSC$13118_buildRequest=function(D,t){D.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";D.fetchCommentsParams={};t.videoId&&(D.fetchCommentsParams.encryptedVideoId=t.videoId);t.postId&&(D.fetchCommentsParams.postId=t.postId);t.externalChannelId&&(D.fetchCommentsParams.externalChannelId=t.externalChannelId);t.linkedCommentId&&(D.fetchCommentsParams.linkedCommentId=t.linkedCommentId);(0,_.J$.isEmpty)(D.fetchCommentsParams)&&delete D.fetchCommentsParams};var LI=function(){};
_.P(LI,lS);LI.prototype.getApiPaths=function(){return Bm};
LI.prototype.JSC$13118_buildRequest=function(D){D.browseId="FEnotifications_inbox"};
LI.prototype.getExtension=function(D){return _.O(D,_.$0)};var Am=function(){};
_.P(Am,lS);Am.prototype.getApiPaths=function(){return DYo};
Am.prototype.JSC$13118_buildRequest=function(D,t){t.signal==="GET_NOTIFICATIONS_MENU"&&(D.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");t.ctoken&&(D.ctoken=t.ctoken)};
var SFO=function(){};
_.P(SFO,Am);SFO.prototype.getExtension=function(D){return _.O(D,_.$0)};
var Xtb=function(){};
_.P(Xtb,Am);Xtb.prototype.getExtension=function(D){return _.O(D,EIm)};var ge=function(){};
_.P(ge,lS);ge.prototype.getApiPaths=function(){return qbB};
ge.prototype.getExtension=function(D){return _.O(D,_.$0)};
ge.prototype.JSC$13118_buildRequest=function(){};var Jm=function(){};
_.P(Jm,lS);Jm.prototype.getApiPaths=function(){return ksw};
Jm.prototype.getExtension=function(D){return _.O(D,hW4)||void 0};
Jm.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params);t.secondaryParams&&(D.secondaryParams=t.secondaryParams)};var Yc=function(){};
_.P(Yc,lS);Yc.prototype.getApiPaths=function(){return T74};
Yc.prototype.getExtension=function(D){return _.O(D,u_Q)};
Yc.prototype.JSC$13118_buildRequest=function(D,t){t.undo&&(D.undo=t.undo);t.serializedOptOut&&(D.serializedOptOut=t.serializedOptOut);t.serializedRecordInteractionsRequest&&(D.serializedRecordInteractionsRequest=t.serializedRecordInteractionsRequest)};var ls=function(){};
_.P(ls,lS);ls.prototype.getApiPaths=function(){return $YV};
ls.prototype.getExtension=function(D){return _.O(D,Wvo)};
ls.prototype.JSC$13118_buildRequest=function(D,t){t.serializedInteractionsRequest&&(D.serializedRecordNotificationInteractionsRequest=t.serializedInteractionsRequest)};var v4=function(){};
_.P(v4,lS);v4.prototype.getApiPaths=function(){return UV$};
v4.prototype.getExtension=function(D){return _.O(D,$hX)};
v4.prototype.JSC$13118_buildRequest=function(D,t,H){t=t===void 0?{}:t;H=H===void 0?{}:H;t.videoId?D.videoId=t.videoId:t.playlistId&&(D.playlistId=t.playlistId);var e,V=(e=t.offlineWebClientEligibility)!=null?e:H.offlineWebClientEligibility;V&&(D.offlineWebClientEligibility=V);var b;if(e=(b=t.preferredFormatType)!=null?b:H.preferredFormatType)D.preferredFormatType=e;var a;if(b=(a=t.lastOfflineQualitySettingsSavedMs)!=null?a:H.lastOfflineQualitySettingsSavedMs)D.lastOfflineQualitySettingsSavedMs=b;
t.params&&(D.params=t.params)};var pI=function(){};
_.P(pI,lS);pI.prototype.getApiPaths=function(){return r3};
pI.prototype.getExtension=function(D){return _.O(D,_.RH)};
pI.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;t.token&&(D.continuation=t.token);H.formData&&(D.formData=H.formData)};var de=function(){};
_.P(de,lS);de.prototype.getApiPaths=function(){return r3};
de.prototype.getExtension=function(D){return _.O(D,Dao)};
de.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;D.continuation=H.continuation};var xc=function(){};
_.P(xc,lS);xc.prototype.getApiPaths=function(){return r3};
xc.prototype.getExtension=function(D){return _.O(D,_.Sw)};
xc.prototype.JSC$13118_buildRequest=function(D,t){var H,e=t.panelIdentifier||((H=t.identifier)==null?void 0:H.tag);e&&(D.panelId=e);var V;if((V=t.globalConfiguration)==null?0:V.params){var b;D.params=(b=t.globalConfiguration)==null?void 0:b.params}};
_.ql.Object.defineProperties(xc.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Rq=function(){};
_.P(Rq,lS);Rq.prototype.getApiPaths=function(){return r3};
Rq.prototype.getExtension=function(D){return _.O(D,lQ6)};
Rq.prototype.JSC$13118_buildRequest=function(D,t){t.panelLoadingStrategy&&O1T(D,t.panelLoadingStrategy)};var us=function(){};
_.P(us,lS);us.prototype.getApiPaths=function(){return r3};
us.prototype.getExtension=function(D){return _.O(D,bif)};
us.prototype.JSC$13118_buildRequest=function(D,t){t.loadingStrategy&&O1T(D,t.loadingStrategy)};var W4=function(){};
_.P(W4,lS);W4.prototype.getApiPaths=function(){return r3};
W4.prototype.getExtension=function(D){return _.O(D,_.Cf)};
W4.prototype.JSC$13118_buildRequest=function(D,t){t.panelLoadingStrategy&&O1T(D,t.panelLoadingStrategy)};var Iq=function(){};
_.P(Iq,lS);Iq.prototype.getApiPaths=function(){return r3};
Iq.prototype.getExtension=function(D){return _.O(D,qz6)};
Iq.prototype.JSC$13118_buildRequest=function(D,t){var H,e=(H=t.contentSourcePanelIdentifier)==null?void 0:H.tag;e&&(D.panelId=e);var V;if((V=t.globalConfiguration)==null?0:V.params){var b;D.params=(b=t.globalConfiguration)==null?void 0:b.params}};var Qq=function(){};
_.P(Qq,lS);Qq.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
Qq.prototype.getExtension=function(D){return _.O(D,Fea)};
Qq.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params)};var yq=function(){};
_.P(yq,lS);yq.prototype.getApiPaths=function(){return uDa};
yq.prototype.getExtension=function(D){return _.O(D,Zia)};
yq.prototype.JSC$13118_buildRequest=function(D,t){t.externalChannelId&&(D.externalChannelId=t.externalChannelId);t.superChatAction&&(D.superChatAction=t.superChatAction);t.superStickersAction&&(D.superStickersAction=t.superStickersAction)};var B4=function(){};
_.P(B4,lS);B4.prototype.getApiPaths=function(){return xg9};
B4.prototype.getExtension=function(D){return _.O(D,tin)||_.O(D,rJV)};
B4.prototype.JSC$13118_buildRequest=function(D,t){t.videoIds?D.videoIds=t.videoIds:t.videoId&&(D.videoIds=[t.videoId]);t.playlistId&&(D.playlistId=t.playlistId);t.params&&(D.params=t.params);D.excludeWatchLater=!1};var zP=function(){};
_.P(zP,lS);zP.prototype.getApiPaths=function(){return fGn};
zP.prototype.getExtension=function(D){return _.O(D,_.sz)};
zP.prototype.JSC$13118_buildRequest=function(D,t,H){H.create_playlist_title?D.title=H.create_playlist_title:t.title&&(D.title=t.title);if(H.create_playlist_privacy_status&&typeof H.create_playlist_privacy_status==="number"){a:{var e=H.create_playlist_privacy_status;if(e!==0){if(e===1){e="PUBLIC";break a}if(e===2){e="UNLISTED";break a}}e="PRIVATE"}D.privacyStatus=e}else t.privacyStatus&&(D.privacyStatus=t.privacyStatus);H.create_playlist_description&&(D.description=H.create_playlist_description);t.videoIds&&
(D.videoIds=t.videoIds);t.params&&(D.params=t.params);t.sourcePlaylistId&&(D.sourcePlaylistId=t.sourcePlaylistId)};var DS=function(){};
_.P(DS,lS);DS.prototype.getApiPaths=function(){return gn9};
DS.prototype.getExtension=function(D){return _.O(D,ZpQ)};
DS.prototype.JSC$13118_buildRequest=function(D,t){D.playlistId=t.playlistId};var tJ=function(){};
_.P(tJ,lS);tJ.prototype.getApiPaths=function(){return tC6};
tJ.prototype.getExtension=function(D){return _.O(D,lL6)};
tJ.prototype.JSC$13118_buildRequest=function(D,t){t.playlistId&&(D.playlistId=t.playlistId);t.params&&(D.params=t.params)};var Hq=function(){};
_.P(Hq,lS);Hq.prototype.getApiPaths=function(){return jwV};
Hq.prototype.getExtension=function(D){return _.O(D,_.b2)||void 0};
Hq.prototype.JSC$13118_buildRequest=function(D,t){t.actions&&(D.actions=t.actions);t.params&&(D.params=t.params);t.playlistId&&(D.playlistId=t.playlistId)};var e6=function(){};
_.P(e6,lS);_.q=e6.prototype;_.q.getApiPaths=function(){return i8f};
_.q.getExtension=function(D){return _.O(D,_.C_)};
_.q.JSC$13118_buildRequest=function(D,t){t.videoId&&(D.playerRequest={videoId:t.videoId},t.playerParams&&(D.playerRequest.params=t.playerParams),t.racyCheckOk&&(D.playerRequest.racyCheckOk=!!t.racyCheckOk),t.contentCheckOk&&(D.playerRequest.contentCheckOk=!!t.contentCheckOk));t.params&&(D.params=t.params);t.inputType&&(D.inputType=t.inputType);D.disablePlayerResponse=!0};
_.q.getRequestConfig=function(D){var t;(D=this.JSC$13125_getStoreKey(D))&&(t={storeStrategy:{storeKey:D}});_.r("web_log_reels_ticks")&&(t=t||{},t.requestTick="r_wrs",t.responseTick="r_wrr");return t};
_.q.JSC$13125_getStoreKey=function(D){D=this.getExtension(D);if(D!=null&&D.videoId){var t={videoId:D.videoId};D.params&&(t.params=D.params);return _.tE("reel_item_watch",t)}};var VY=function(){};
_.P(VY,lS);_.q=VY.prototype;_.q.getApiPaths=function(){return rr9};
_.q.getExtension=function(D){return _.O(D,_.C_)};
_.q.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;D.sequenceParams=t.sequenceParams;var e;((e=H)==null?0:e.contentPlaybackContext)&&_.r("web_shorts_prefetch_service_enabled")&&(D.playbackContext={contentPlaybackContext:H.contentPlaybackContext})};
_.q.JSC$13125_getStoreKey=function(D){if(_.r("web_enable_delay_shorts_sequence_call")||_.r("shorts_controller_retrieve_seedless_sequence_v2"))if(D=this.getExtension(D),D==null?0:D.sequenceParams)return _.tE("reel_watch_sequence",{sequenceParams:D.sequenceParams})};
_.q.getRequestConfig=function(D){D=this.JSC$13125_getStoreKey(D);var t;D&&(t={storeStrategy:{storeKey:D}});t=t||{};t.requestTick="r_wsrs";t.responseTick="r_wsrr";t.processorTick="r_wsrp";return t};
var bN=function(){};
_.P(bN,lS);bN.prototype.getApiPaths=function(){return rr9};
bN.prototype.getExtension=function(D){return _.O(D,_.RH)};
bN.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;t.token&&(D.continuation=t.token);var e;((e=H)==null?0:e.contentPlaybackContext)&&_.r("web_shorts_prefetch_service_enabled")&&(D.playbackContext={contentPlaybackContext:H.contentPlaybackContext})};
bN.prototype.getRequestConfig=function(D){D=this.JSC$13125_getStoreKey(D);var t;D&&(t={storeStrategy:{storeKey:D}});t=t||{};t.requestTick="r_wsrs";t.responseTick="r_wsrr";t.processorTick="r_wsrp";return t};var qh=function(){};
_.P(qh,lS);qh.prototype.getApiPaths=function(){return vnn};
qh.prototype.getExtension=function(D){return _.O(D,_.lho)};
qh.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;t.flagAction&&(D.action=t.flagAction);t.flagRequestType&&(D.flagRequestType=t.flagRequestType);t.additionalDetailCheckboxChecked&&(D.additionalDetailCheckboxChecked=t.additionalDetailCheckboxChecked);t.legalCheckboxChecked&&(D.legalCheckboxChecked=t.legalCheckboxChecked);t={};H.flag_issue_type!==void 0&&(t.issue=H.flag_issue_type);H.flag_affiliation!==void 0&&(t.affiliation=H.flag_affiliation);H.flag_full_name&&(t.fullName=H.flag_full_name);
Object.keys(t).length&&(D.legalReportDetails=t);if(H.flag_description||H.text)D.userComments=H.flag_description||H.text;t={};H.minutes!==void 0&&H.seconds!==void 0&&(t.minutes=H.minutes,t.seconds=H.seconds);H.vss_id&&(t.vssId=H.vss_id);Object.keys(t).length&&(D.videoReportDetails=t);t={};H.video_ids&&(t.videoIds=H.video_ids);H.impersonated_channel_url&&(t.impersonatedChannelUrl=H.impersonated_channel_url);Object.keys(t).length&&(D.channelAbuseReportDetails=t)};
_.ql.Object.defineProperties(qh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var FT=function(){};
_.P(FT,lS);FT.prototype.getApiPaths=function(){return WyV};
FT.prototype.getExtension=function(D){return _.O(D,hjQ)};
FT.prototype.JSC$13118_buildRequest=function(D,t){t.blockedForKidsContent&&(D.blockedForKidsContent=t.blockedForKidsContent)};var aF=function(){};
_.P(aF,lS);aF.prototype.getApiPaths=function(){return oD4};
aF.prototype.getExtension=function(D){return _.O(D,iyu)};
aF.prototype.JSC$13118_buildRequest=function(D,t,H){D.params=t.params;H.impersonated_channel_url&&(D.impersonatedChannelUrl=H.impersonated_channel_url)};var wb=function(){};
_.P(wb,lS);wb.prototype.getApiPaths=function(){return sww};
wb.prototype.getExtension=function(D){return _.O(D,_.Gd9)};
wb.prototype.JSC$13118_buildRequest=function(D,t){t.items&&(D.items=t.items);t.kidGaiaId&&(D.kidGaiaId=t.kidGaiaId)};var ZS=function(){};
_.P(ZS,lS);ZS.prototype.getApiPaths=function(){return RAn};
ZS.prototype.getExtension=function(D){return _.O(D,_.B3a)};
ZS.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params);t.targetId&&(D.targetId=t.targetId)};var sU=function(){};
_.P(sU,lS);sU.prototype.getApiPaths=function(){return mYm};
sU.prototype.getExtension=function(D){return _.O(D,KL9)};
sU.prototype.JSC$13118_buildRequest=function(D,t){t.externalVideoId&&(D.externalVideoId=t.externalVideoId);t.query&&(D.query=t.query);t.sourceTimelines&&(D.sourceTimelines=t.sourceTimelines)};var hJ=function(){};
_.P(hJ,lS);hJ.prototype.getApiPaths=function(){return MC4};
hJ.prototype.getExtension=function(D){return _.O(D,_.RH)||void 0};
hJ.prototype.JSC$13118_buildRequest=function(D,t){t.token&&(D.continuation=t.token)};
_.fOQ=function(){};
_.P(_.fOQ,lS);_.q=_.fOQ.prototype;_.q.getApiPaths=function(){return MC4};
_.q.getExtension=function(D){return _.O(D,_.oh)||void 0};
_.q.isNavigationCommand=function(){return!0};
_.q.JSC$13125_getStoreKey=function(D,t){t=t===void 0?{}:t;if(!t.disableCache&&(D=this.getExtension(D))&&D.query)return t={query:D.query},D.params&&(t.params=D.params),_.tE("search",t)};
_.q.JSC$13118_buildRequest=function(D,t,H){t.query&&(D.query=t.query);t.params&&(D.params=t.params);if(!_.r("web_forward_suggest_stats_killswitch")){var e=_.O(t,XuV);e&&(D.suggestStats=e)}var V;!_.r("kevlar_searchbox_stats_killswitch")&&((V=H.tempData)==null?0:V.gs_l)&&!_.O(t,XuV)&&(D.webSearchboxStatsUrl="/search?oq="+(H.tempData.oq||"")+"&gs_l="+H.tempData.gs_l);var b;if((b=H.tempData)==null?0:b.entityMid)t=D.suggestionSearchParams||{},t.entityMid=H.tempData.entityMid,D.suggestionSearchParams=t;
if(_.r("enable_desktop_vdcbg_components")||_.r("enable_inline_muted_playback_on_web_search"))H=_.Ph().getFlag(186),D.inlineSettingStatus=H?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.q.getRequestConfig=function(D,t){t=t===void 0?{}:t;D=this.JSC$13125_getStoreKey(D,t);var H;D&&(H={storeStrategy:{storeKey:D}});_.r("web_log_search_ticks_ks")||(H=H||{},H.requestTick="sr_s",H.responseTick="sr_r");return H};var G8=function(){};
_.P(G8,lS);G8.prototype.getApiPaths=function(){return VCv};
G8.prototype.getExtension=function(D){return _.O(D,ipo)};
G8.prototype.JSC$13118_buildRequest=function(D,t){t.serializedGetSharingProviderDataParams&&(D.serializedGetSharingProviderDataParams=t.serializedGetSharingProviderDataParams)};var EU=function(){};
_.P(EU,lS);EU.prototype.getApiPaths=function(){return b84};
EU.prototype.getExtension=function(D){return _.O(D,LLv)};
EU.prototype.JSC$13118_buildRequest=function(D,t){t.endpoint&&(D.endpoint=t.endpoint);t.action&&(D.action=t.action)};var Ky=function(){};
_.P(Ky,lS);Ky.prototype.getApiPaths=function(){return JkB};
Ky.prototype.getExtension=function(D){return _.O(D,sma)};
Ky.prototype.JSC$13118_buildRequest=function(D,t){D.videoId=t.videoId;t.scheduledRedirectMetadataSourceVideoId&&(D.scheduledRedirectMetadata={sourceVideoId:t.scheduledRedirectMetadataSourceVideoId})};var Nh=function(){};
_.P(Nh,lS);Nh.prototype.getApiPaths=function(){return LZ4};
Nh.prototype.getExtension=function(D){return _.O(D,_.hvo)};
Nh.prototype.JSC$13118_buildRequest=function(D,t){D.params=t.params;D.correctionText=t.correctionText};var km=function(){};
_.P(km,lS);km.prototype.getApiPaths=function(){return iwD};
km.prototype.getExtension=function(D){return _.O(D,_.NKa)};
km.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params);D.searchQuery=t.searchQuery;D.languageCode=t.languageCode;D.kind=t.kind;D.name=t.name;D.externalVideoId=t.externalVideoId};var T8=function(){};
_.P(T8,lS);T8.prototype.getApiPaths=function(){return B74};
T8.prototype.getExtension=function(D){return _.O(D,oTV)};
T8.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.params=t.params)};var cq=function(D){this.JSC$18180_storeWithEntities=D};
_.P(cq,lS);cq.prototype.getApiPaths=function(){return PkB};
cq.prototype.getExtension=function(D){return _.O(D,nTm)||_.O(D,mD6)};
cq.prototype.JSC$13118_buildRequest=function(D,t,H){H.client_data&&(D.clientData=H.client_data);if(t.commerceActionConfig){var e=t.commerceActionConfig;t=e.actionId;e=e.commerceActionParams;t&&(D.actionId=t);e&&(D.commerceActionParams=e)}else{var V=t.actionId,b=t.commerceActionParams;H=t.entityKeys;V&&(D.actionId=V);b&&(D.commerceActionParams=b);var a;t=(e=this.JSC$18180_storeWithEntities)==null?void 0:(a=e.getState())==null?void 0:a.entities;if(H&&t){e=[];a=_.F(H);for(H=a.next();!H.done;H=a.next())if(V=
H.value,H=_.NQ(V).entityType,V=_.jR(t,H,V))b={},e.push((b[H]=V,b));D.entityMutationPayloads=e}}};
cq.prototype.getRequestConfig=function(D){var t,H=(t=_.O(D,nTm))==null?void 0:t.requestSequenceType;if(H&&D.clickTrackingParams&&H!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:D.clickTrackingParams,sequenceType:H}}};
cq[Fc]=[a6];var j6=function(){};
_.P(j6,lS);j6.prototype.getApiPaths=function(){return zz3};
j6.prototype.getExtension=function(D){return _.O(D,_.IMv)};
j6.prototype.JSC$13118_buildRequest=function(D,t){t.feedbackData&&(D.feedbackData=t.feedbackData);t.params&&(D.itemParams=t.params)};
_.ql.Object.defineProperties(j6.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $m=function(){};
_.P($m,lS);$m.prototype.getApiPaths=function(){return Dia};
$m.prototype.getExtension=function(D){return _.O(D,Qyf)};
$m.prototype.JSC$13118_buildRequest=function(D,t,H){H.payments_payload&&(D.paymentsPayload=H.payments_payload);H.offer_params&&(D.offerParams=H.offer_params);t.transactionParams&&(D.transactionParams=t.transactionParams)};var iN=function(){};
_.P(iN,lS);iN.prototype.getApiPaths=function(){return t_6};
iN.prototype.getExtension=function(D){return _.O(D,_.yfQ)};
iN.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;t.buybucketParams&&(D.buybucketData={params:t.buybucketParams},t.stickerParams?D.buybucketData.stickerParams=t.stickerParams:(H.rich_chat_message?D.buybucketData.richChatMessage=H.rich_chat_message:H.chat_message_text&&(D.buybucketData.chatMessageText=H.chat_message_text),H.purchase_price_micros&&(D.buybucketData.purchasePriceMicros=H.purchase_price_micros.toString())));t.donationAmountMicros&&(D.tipAmountMicros=t.donationAmountMicros,
t.tipParams&&(D.tipParams=t.tipParams));t.offerParams&&(D.offerParams=t.offerParams);t.productData&&(D.productData=t.productData);t.transactionParams&&(D.transactionParams=t.transactionParams)};var rb=function(){};
_.P(rb,lS);rb.prototype.getApiPaths=function(){return H03};
rb.prototype.getExtension=function(D){return _.O(D,DgB)};
rb.prototype.JSC$13118_buildRequest=function(D,t){t.updateFopParams&&(D.updateFopParams=t.updateFopParams)};var OU=function(){};
_.P(OU,lS);OU.prototype.getApiPaths=function(){return eiQ};
OU.prototype.getExtension=function(D){return _.O(D,_.DT)};
OU.prototype.JSC$13118_buildRequest=function(D,t){t.couponCode&&(D.couponCode=t.couponCode);t.params&&(D.itemParams=t.params)};var UU=function(){};
_.P(UU,lS);UU.prototype.getApiPaths=function(){return V_v};
UU.prototype.getExtension=function(D){return _.O(D,_.CPm)};
UU.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;t.params&&(D.params=t.params);H.ctk&&(D.clientToken=H.ctk)};var oF=function(D){this.JSC$18215_storeWithEntities=D};
_.P(oF,lS);oF.prototype.getApiPaths=function(){return b0a};
oF.prototype.getExtension=function(D){return _.O(D,_.Ki)};
oF.prototype.JSC$13118_buildRequest=function(D,t,H){H.purchase_price_micros&&(D.productData={pdgData:{purchasePriceMicros:H.purchase_price_micros.toString()}},H.rich_chat_message&&(D.productData.pdgData.richChatMessage=H.rich_chat_message),H.currency_code&&(D.productData.pdgData.currencyCode=H.currency_code));t.transactionParams&&(D.transactionParams=t.transactionParams);t.clientLocationContext&&(D.clientLocationContext=t.clientLocationContext);H.payments_payload&&(D.paymentsPayload=H.payments_payload);
H.funds_guarantee_callback_client_data&&(D.fundsGuaranteeCallbackClientData=H.funds_guarantee_callback_client_data);var e,V;H=(e=this.JSC$18215_storeWithEntities)==null?void 0:(V=e.getState())==null?void 0:V.entities;if(t.entityKeys&&H){e=[];t=_.F(t.entityKeys);for(V=t.next();!V.done;V=t.next()){var b=V.value;V=_.NQ(b).entityType;if(b=_.jR(H,V,b)){var a={};e.push((a[V]=b,a))}}D.entityMutationPayloads=e}};
oF[Fc]=[a6];var Pq=function(){};
_.P(Pq,lS);Pq.prototype.getApiPaths=function(){return qvB};
Pq.prototype.getExtension=function(D){return _.O(D,BBQ)};
Pq.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;H.backend_analytics&&(D.serializedBackendAnalyticsEvent=H.backend_analytics);t.offerParams&&(D.offerParams=t.offerParams)};var ny=function(){};
_.P(ny,lS);ny.prototype.getApiPaths=function(){return eiQ};
ny.prototype.getExtension=function(D){return _.O(D,VJu)};
ny.prototype.JSC$13118_buildRequest=function(D,t){t.params&&(D.itemParams=t.params)};var Cy=function(){};
_.P(Cy,lS);Cy.prototype.getApiPaths=function(){return F8f};
Cy.prototype.getExtension=function(D){return _.O(D,_.L2n)};
Cy.prototype.JSC$13118_buildRequest=function(D,t,H){H.resume_time_ms&&(D.resumeTimeMs=H.resume_time_ms);t.pauseParams&&(D.pauseParams=t.pauseParams)};var mC=function(){};
_.P(mC,lS);mC.prototype.getApiPaths=function(){return a6m};
mC.prototype.getExtension=function(D){return _.O(D,_.zvv)};
mC.prototype.JSC$13118_buildRequest=function(D,t,H){H=H===void 0?{}:H;H.c&&(D.redeemCode=H.c);H.rd&&(D.riskData=H.rd);H.ctk&&(D.clientToken=H.ctk)};var Mh=function(){};
_.P(Mh,lS);Mh.prototype.getApiPaths=function(){return wV9};
Mh.prototype.getExtension=function(D){return _.O(D,_.Afn)};
Mh.prototype.JSC$13118_buildRequest=function(D,t){t.resumeParams&&(D.resumeParams=t.resumeParams)};var S6=function(D,t){this.clientName=D;this.defaultExpirationDelayMs=t};
S6.prototype.put=function(D,t){var H=this,e;return _.Z(function(V){e=Object.assign({},t.data);e.key=D;e.clientName=H.clientName;e.expireTimestampMs===void 0&&(e.expireTimestampMs=(Math.round((0,_.aP)())+H.defaultExpirationDelayMs).toString());return V.return(H.putInternal(D,e))})};
S6[Fc]=[bd,p9Y];var Lib=function(){S6.apply(this,arguments);this.JSC$18245_responseStore=new Map};
_.P(Lib,S6);_.q=Lib.prototype;_.q.get=function(D){var t=this;return _.Z(function(H){return H.return(lk(t,D))})};
_.q.putInternal=function(D,t){var H=this,e,V,b;return _.Z(function(a){e=H.defaultExpirationDelayMs;t.expireTimestampMs&&(e=Number(t.expireTimestampMs)-Math.round((0,_.aP)()),V=_.ZU("mweb_override_response_store_expiration_ms"),V>0&&V<e&&(e=V));b=setTimeout(function(){H.remove(D)},e);
H.JSC$18245_responseStore.set(D,{entryData:t,timer:b});_.n2(a)})};
_.q.remove=function(D){var t=this;return _.Z(function(H){AFt(t,D);_.n2(H)})};
_.q.removeAll=function(){var D=this;return _.Z(function(t){D.JSC$18245_responseStore.forEach(function(H){clearTimeout(H.timer)});
D.JSC$18245_responseStore.clear();_.n2(t)})};
_.q.has=function(D){return!!this.JSC$18245_responseStore.get(D)};
_.q.getKeys=function(){return this.JSC$18245_responseStore.keys()};
var lk=function(D,t){if(D=D.JSC$18245_responseStore.get(t))return new _.Yn(D.entryData)},AFt=function(D,t){var H=D.JSC$18245_responseStore.get(t);
H&&(clearTimeout(H.timer),D.JSC$18245_responseStore.delete(t))};var U0k;var nuV=function(D,t,H){S6.call(this,D,t);this.token=H};
_.P(nuV,S6);_.q=nuV.prototype;_.q.get=function(D){var t=this,H,e;return _.Z(function(V){return V.nextAddress==1?V.yield(PQ6(t.token),2):V.nextAddress!=3?(H=V.yieldResult,V.yield(H.get("ResponseStore",[D,t.clientName]),3)):(e=V.yieldResult)?V.return(new _.Yn(e)):V.return(void 0)})};
_.q.putInternal=function(D,t){var H=this,e;return _.Z(function(V){if(V.nextAddress==1)return V.yield(PQ6(H.token),2);e=V.yieldResult;return V.yield(e.put("ResponseStore",t),0)})};
_.q.remove=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(PQ6(t.token),2);H=e.yieldResult;return e.return(H.delete("ResponseStore",[D,t.clientName]))})};
_.q.removeAll=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(PQ6(D.token),2);t=H.yieldResult;return H.yield(WFn(t,IDBKeyRange.only(D.clientName)),0)})};
_.q.has=function(){throw Error("ej");};_.XT=new _.kI("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var gQF=function(D){var t;this.stateTagsData=(t=D.responseContext)==null?void 0:t.stateTags},JFt=function(D){var t;
return((t=D.stateTagsData)==null?void 0:t.stateTagsModified)||[]};var YFb;YFb=function(D){this.JSC$18258_responseStore=D};
_.WX=function(D,t,H){if(!_.r("state_tags_killswitch")){var e=new gQF(t);if(JFt(e).length>0){var V=D.JSC$18258_responseStore.getKeys();V=_.F(V);for(var b=V.next();!b.done;b=V.next()){b=b.value;var a=lk(D.JSC$18258_responseStore,b);if(a){var w=_.qP(a);a:{var h=void 0;a=JFt(e);w=((h=(new gQF(w)).stateTagsData)==null?void 0:h.relevantStateTags)||[];h=_.F(w);for(w=h.next();!w.done;w=h.next())if(w=w.value,w.stateTag!=null&&a.includes(w.stateTag)&&w.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){a=
!0;break a}a=!1}a&&AFt(D.JSC$18258_responseStore,b)}}}}var K;e=(K=t.responseContext)==null?void 0:K.maxAgeSeconds;H&&e&&Number(e)>0&&(t=EI(t,e),D.JSC$18258_responseStore.put(H,new _.Yn(t)))};
YFb.prototype.handleResponse=function(D,t){if(!t)throw Error("fj");var H,e;t=(H=t.config)==null?void 0:(e=H.storeStrategy)==null?void 0:e.storeKey;_.WX(this,D,t)};
YFb[Fc]=[_.Jk];_.AxV=new _.kI("STORE_RESPONSE_PROCESSOR_TOKEN");var lOg=function(D){this.JSC$18261_responseStore=D};
lOg.prototype.handleResponse=function(D,t){if(t.input.match(_.qF(rr9))){var H;if(D==null?0:(H=D.entries)==null?0:H.length)for(D=_.F(D.entries),t=D.next();!t.done;t=D.next()){H=t.value.command;var e=void 0;t=(e=_.O(H,_.C_))==null?void 0:e.unserializedPrefetchData;if(!H||!t)break;e=(new e6).JSC$13125_getStoreKey(H);var V=_.O(t,Lef),b=void 0,a=void 0,w=void 0,h=void 0,K=void 0,N=void 0,k=((b=V)==null?0:(a=b.responseContext)==null?0:a.maxAgeSeconds)&&Number((w=V)==null?void 0:(h=w.responseContext)==null?
void 0:h.maxAgeSeconds)>0?Number((K=V)==null?void 0:(N=K.responseContext)==null?void 0:N.maxAgeSeconds):600;e&&k>0&&(V=EI(V,k),this.JSC$18261_responseStore.put(e,new _.Yn(V)));H=(new pp).JSC$13125_getStoreKey(H);t=_.O(t,c1B);h=w=a=b=V=e=void 0;K=((e=t)==null?0:(V=e.responseContext)==null?0:V.maxAgeSeconds)&&Number((b=t)==null?void 0:(a=b.responseContext)==null?void 0:a.maxAgeSeconds)>0?Number((w=t)==null?void 0:(h=w.responseContext)==null?void 0:h.maxAgeSeconds):600;H&&K>0&&(t=EI(t,K),this.JSC$18261_responseStore.put(H,
new _.Yn(t)))}}};
lOg[Fc]=[_.Jk];var vQv=function(D,t){this.innertubeTransportService=D;this.JSC$18264_commandHandler=t};
vQv.prototype.submitForm=function(D,t,H,e,V){var b=this,a,w,h,K,N,k;return _.Z(function(T){if(T.nextAddress==1)return a={submitId:D,formData:t,submitBehavior:H,params:e},w=_.qF(Ar4),T.yield(_.sK(b.innertubeTransportService,a,w,V),2);h=T.yieldResult;if(!h)return T.return(Promise.reject(new _.nZ("Submit API returned an undefined response. Submit ID: "+D)));K=h;(k=(N=K)==null?void 0:N.onResponseReceived)&&b.JSC$18264_commandHandler.resolveCommand(k);return T.return(K)})};
vQv[Fc]=[_.xg,_.aA];var fy=function(){this.scheduler=_.Cs()},ptQ;
fy.prototype.pause=function(){throw Error("gj");};
fy.prototype.resume=function(){throw Error("gj");};
fy.prototype.queue=function(D){var t=this,H=_.z3(),e=_.C7(this.scheduler,function(){try{var V;if(_.$P.instance)var b=_.$P.instance;else{var a=new _.nZ("Error: Unexpected uninitialized CommandHandler.");_.gT(a);b=void 0}(V=b)==null||V.resolveCommand(D.command);H.resolve()}catch(w){H.reject(w)}});
H.promise.thenCatch(function(V){V instanceof _.dg&&t.scheduler.cancelJob(e)});
return H.promise};
fy.prototype.queueAll=function(D){var t=new Map;D=_.F(D);for(var H=D.next();!H.done;H=D.next())H=H.value,t.set(H.id,this.queue(H));return t};var xHg=function(D,t){var H=this;this.taskModel=D;this.onTaskCancelledCallback=t;this.resolver=_.z3();D=D.proto.prefetchConfig;if(!D)throw Error("hj");if(!D.prefetchAction)throw Error("ij");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(e){e instanceof _.dg&&(dHZ(H,H.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),H.onTaskCancelledCallback(H.taskModel.id,H.jobId),H.tick("pcc"));
throw e;});
this.timerName=this.taskModel.id;_.l1(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
xHg.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var dHZ=function(D,t){_.JE({prefetchInfo:{cancellationReason:t}},D.timerName)};
xHg.prototype.tick=function(D){_.vh(D,void 0,this.timerName)};var AJ=function(){var D=this;this.scheduler=_.Cs();this.maxInflightTasks=_.ZU("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.ZU("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new oX6;this.onTaskCancelled=function(t,H){H&&D.scheduler.cancelJob(H);Rgb(D,t);Ly(D,3)}},uFQ=function(){AJ.instance||(AJ.instance=new AJ);
return AJ.instance};
AJ.prototype.pause=function(){this.prefetchCoordinatorState=0};
AJ.prototype.resume=function(){Ly(this,0)};
AJ.prototype.queue=function(D){D=Wit(this,D);Ly(this,1);return D};
AJ.prototype.queueAll=function(D){var t=new Map;D=_.F(D);for(var H=D.next();!H.done;H=D.next())H=H.value,t.set(H.id,Wit(this,H));Ly(this,1);return t};
var Wit=function(D,t){var H=D.allPrefetchTasks.get(t.id);if(H)return H.cancellablePromise;try{var e=new xHg(t,D.onTaskCancelled)}catch(b){return _.Aj(b)}H=e;H.tick("pcq");var V={prefetchInfo:{taskId:H.taskModel.id,isPrefetch:!0,fetchAction:H.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:H.taskModel.command.clickTrackingParams}};H.taskModel.csn&&(V.clientScreenNonce=H.taskModel.csn);_.JE(V,H.timerName);D.allPrefetchTasks.set(t.id,e);D.drainingHeap.insert(-e.getPriority(),e);return e.cancellablePromise},
Ly=function(D,t){D.prefetchCoordinatorState===t&&(D.prefetchCoordinatorState=2,IOF(D))},IOF=function(D){for(var t={};D.prefetchCoordinatorState!==0;t={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(D.inflightPrefetchTasks.size>=D.maxInflightTasks){D.prefetchCoordinatorState=3;break}t.prefetchTask$jscomp$1=D.drainingHeap.remove();if(!t.prefetchTask$jscomp$1){D.prefetchCoordinatorState=1;break}t.taskId$jscomp$3=t.prefetchTask$jscomp$1.taskModel.id;if(D.allPrefetchTasks.has(t.taskId$jscomp$3)){var H=-1;D.coordinatorTimeoutMs>0&&(H=_.C7(D.scheduler,function(e){return function(){gb(D,e.taskId$jscomp$3,Error("jj"))}}(t),D.coordinatorTimeoutMs));
D.inflightPrefetchTasks.set(t.taskId$jscomp$3,H);if(!D.JSC$18281_commandHandler){if(!_.$P.instance){gb(D,t.taskId$jscomp$3,Error("kj"));continue}D.JSC$18281_commandHandler=_.$P.instance}a:switch(t.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":H=1;break a;default:H=0}t.prefetchTask$jscomp$1.jobId=D.scheduler.addJob(function(e){return function(){e.prefetchTask$jscomp$1.tick("pcr");try{D.JSC$18281_commandHandler.resolveCommand(e.prefetchTask$jscomp$1.taskModel.command)||
gb(D,e.taskId$jscomp$3,Error("lj"))}catch(V){gb(D,e.taskId$jscomp$3,V)}}}(t),H,0)}}},QvF=function(D,t){(t=Rgb(D,t))!=null&&(t.resolver.resolve(),t.tick("pce"));
Ly(D,3)},gb=function(D,t,H){(t=Rgb(D,t,H))!=null&&(t.resolver.reject(H),t.tick("pcc"),dHZ(t,"CANCELLATION_REASON_ERROR"),Math.random()<=_.ZU("prefetch_coordinator_error_logging_sampling_rate")&&(H=new _.nZ("Prefetch Command failed.",t.taskModel.id,H.message),_.gT(H)));
Ly(D,3)},Rgb=function(D,t,H){var e=D.allPrefetchTasks.get(t);
e?((H=D.inflightPrefetchTasks.get(t))&&H!==-1&&D.scheduler.cancelJob(H),D.inflightPrefetchTasks.delete(t),D.allPrefetchTasks.delete(t)):_.Yw(new _.nZ("Unexpected missing prefetch task when deleting task.",t,H==null?void 0:H.message));return e};var yFt=function(D,t,H,e,V){this.id=D;this.triggerOn=t;this.cancelOn=H;this.command=e;this.proto=V};
_.ql.Object.defineProperties(yFt.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var B4b=function(){this.JSC$18286_prefetchCoordinator=uFQ();ptQ||(ptQ=new fy);this.defaultCoordinator=ptQ},zgQ;
B4b.getInstance=function(){zgQ||(zgQ=new B4b);return zgQ};
B4b.prototype.get=function(D){switch(D){case 0:return this.JSC$18286_prefetchCoordinator;default:return this.defaultCoordinator}};var JJ=function(){this.coordinatorSupplier=B4b.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},HMe=function(D){var t=_.v3()||void 0,H=Object.keys(DNO)[0];
if(H){var e=D.taskIdByTriggerId.get(H);if(e!=null){D.taskIdByTriggerId.delete(H);H=[];e=_.F(e);for(var V=e.next();!V.done;V=e.next())if(V=D.tasks.get(V.value))t!=="UNDEFINED_CSN"&&(V.csn=t),H.push(V);H=MDA(H);t=[];H=_.F(H);for(e=H.next();!e.done;e=H.next()){V=_.F(e.value);e=V.next().value;V=V.next().value;e=D.coordinatorSupplier.get(e).queueAll(V);e=_.F(e);var b=e.next();for(V={};!b.done;V={taskId$jscomp$9:void 0},b=e.next()){var a=_.F(b.value);b=a.next().value;a=a.next().value;V.taskId$jscomp$9=
b;b=a;t.push(V.taskId$jscomp$9);D.queuedPromisesByTask.set(V.taskId$jscomp$9,_.pr(b,function(w){return function(){tMF(D,w.taskId$jscomp$9)}}(V)))}}}}else _.Yw(new _.nZ("Unexpected malformed TriggerEvent."))};
JJ.prototype.trigger=function(D,t){var H=this,e=this.tasks.get(D);if(!e||this.queuedPromisesByTask.has(D))return!1;eUb(this,D,e.triggerOn);t!=="UNDEFINED_CSN"&&(e.csn=t);t=this.coordinatorSupplier.get(e.taskType).queue(e);this.queuedPromisesByTask.set(D,_.pr(t,function(){tMF(H,D)}));
return!0};
JJ.prototype.cancel=function(D){var t=this.queuedPromisesByTask.get(D);if(t)t.cancel();else return tMF(this,D)};
var tMF=function(D,t){D.queuedPromisesByTask.delete(t);var H=D.tasks.get(t);if(!H)return!1;D.tasks.delete(t);eUb(D,t,H.triggerOn);(H=m0R(H.cancelOn))&&(D=D.taskIdByCancelId.get(H))&&D.delete(t);return!0},eUb=function(D,t,H){(H=Object.keys(H)[0])&&(D=D.taskIdByTriggerId.get(H))&&D.delete(t)};var DNO={taskRegistered:{}},Ym=function(){JJ.instance||(JJ.instance=new JJ);this.JSC$18295_taskManager=JJ.instance};
_.P(Ym,ER);
Ym.prototype.resolveCommand=function(D){var t=this,H,e;return _.Z(function(V){H=_.O(D,g7a);if((e=H)==null||!e.tasks){var b=new _.nZ("RegisterTasksCommand is missing tasks.");_.gT(b);return V.return()}b=t.JSC$18295_taskManager;for(var a=_.F(H.tasks),w=a.next();!w.done;w=a.next())if(w=w.value,w=w.id&&w.triggerOn&&w.cancelOn&&w.command?new yFt(w.id,w.triggerOn,w.cancelOn,w.command,w):void 0,w){var h=Object.keys(w.triggerOn)[0];if(h){var K=m0R(w.cancelOn);K?(b.tasks.set(w.id,w),b.taskIdByTriggerId.has(h)||b.taskIdByTriggerId.set(h,
new Set),b.taskIdByTriggerId.get(h).add(w.id),b.taskIdByCancelId.has(K)||b.taskIdByCancelId.set(K,new Set),b.taskIdByCancelId.get(K).add(w.id)):_.Yw(new _.nZ("Unexpected malformed cancelOn field."))}else _.Yw(new _.nZ("Unexpected malformed triggerOn field."))}else _.Yw(new _.nZ("Unexpected malformed Task proto."));HMe(t.JSC$18295_taskManager);_.n2(V)})};var VMY={},bM4=(VMY.rendered={priority:_.r("web_adaptive_early_init")?8:0,callback:function(){var D={};D.numCpu=navigator.hardwareConcurrency;var t={};t.ramGb=_.VA.navigator.deviceMemory;var H={staticContext:{}};t.ramGb&&VlV(t.ramGb)&&(H.staticContext.memoryTotalKbytes=(t.ramGb*1048576).toString());D.numCpu&&VlV(D.numCpu)&&(H.staticContext.cpuCores=D.numCpu);if(_.r("web_enable_adaptive_appl_signal")){D={};t=auV();t=t.length>0?t[0]:void 0;var e,V=(e=_.x0("rses_dpj"))!=null?e:t==null?void 0:t.tick.rses_dpj,
b;e=(b=_.x0("rsef_dpj"))!=null?b:t==null?void 0:t.tick.rsef_dpj;V&&Number(V)>0&&e&&Number(e)>0&&(b=Math.ceil(Number(e)-Number(V)),b>0&&(D.loadLatency=b));D.loadLatency&&VlV(D.loadLatency)&&(H.appL=D.loadLatency.toString())}_.L7("applicationStarted",H);b5K=H;_.r("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",q68)}},VMY);var qYi=new _.kI("WINDOW_ON_ERROR"),Fdt=new _.kI("ERROR_WEIGHT_MAPS"),a1b=new _.kI("INIT_ERROR");var wUg={},ZMZ=(wUg.initialized={priority:10,callback:function(D){D.injector.resolve(a1b)()}},wUg);var sEt=function(){},hUH=function(){var D=_.RD("meta_logger_impl");
D||(D=new sEt,_.bg("meta_logger_impl",D));return D},GFv=function(){hUH().csiSubscriptionKey=Lxu("meta_logging_csi_event",function(D){var t=D.timerName;
if(D=D.timelineData){_.l1(t,{startTime:D.startTime},t);D.infos&&_.JE(D.infos,t);for(var H=_.F(Object.keys(D.ticks)),e=H.next();!e.done;e=H.next())e=e.value,_.vh(e,D.ticks[e],t)}})};
sEt.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&Jh6(this.csiSubscriptionKey)};var Ehg={},KdQ=(Ehg.initialized={priority:10,callback:function(){GFv()}},Ehg);var NwZ=function(D,t){this.innertubeClientName=D;this.JSC$18306_prefCookie=t};
NwZ.prototype.record=function(){if(_.r("web_li_record_binary_eval_tick")){var D=_.x0("rsef_dpj");var t=_.x0("rses_dpj");D=D!==void 0&&t!==void 0?Math.round(D-t):void 0;if(D!==void 0&&D>0){t=_.l_(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var H=this.poolSize;if(!(t.valuesSeen>=1E9)){if(t.valuesSample.length<H)t.valuesSample.push(D);else{var e=Math.floor(Math.random()*(t.valuesSeen+1));e<H&&(t.valuesSample[e]=D)}t.valuesSeen+=1}_.Yg(this.storagePrefix+"-"+this.innertubeClientName,
t,2592E3);D=t.valuesSample;t=SwX(D);D=D.length<this.poolSize?void 0:t<400?1:t<1700?2:3;D!==void 0&&(this.JSC$18306_prefCookie.set(this.cookiePrefix+this.innertubeClientName,D),this.JSC$18306_prefCookie.save())}}else _.v7(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18306_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18306_prefCookie.save()};
NwZ[Fc]=[bd,ld];var kFF=function(){NwZ.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.P(kFF,NwZ);var TwH=new _.kI("PAGE_LOAD_TIME_TOKEN");var cAb=function(D){this.signal=D;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;D.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.C7(_.Jy,this.disableLoggingAndSendPayload,1E4)};
cAb.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.Jy.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),jEe(this))};
var jEe=function(D){var t=_.lo();if(t){var H={webClientComponentsData:{components:Array.from(D.ids,function(e){return{id:e}})}};
D.ids.clear();_.Pc().visualElementStateChanged(t,H)}};var $NZ=_.JB({a11y:_.NAv});_.iMY=_.YX($NZ)($NZ.a11y,{ephemeralActionSelector:function(D){return D.ephemeralAction||null}});var rAH=_.JB({continuation:_.cDm});var OMZ=_.YX(rAH)(rAH.continuation,{continuationCommandSelector:function(D){return D.continuationCommand}});var UNF=new _.kI("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var lN=function(D,t){this.JSC$18335_storeWithEntities=D;this.JSC$18335_commandHandler=t;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
lN.prototype.start=function(){this.JSC$18335_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
lN.prototype.observeDownloadingEntities=function(){var D=_.Oi8(this.JSC$18335_storeWithEntities.getState().entities).map(function(e){return UBV(e)});
if(D.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var t={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:MAR()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.wO(_.OT("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18335_commandHandler.resolveCommand(t)}this.downloadingEntities=D}else if(this.downloadingEntities.length){var H=r16(this.JSC$18335_storeWithEntities.getState().entities).map(function(e){return UBV(e)});
this.downloadingEntities.filter(function(e){return H.includes(e)}).length&&(D={openPopupAction:NP3()},this.JSC$18335_commandHandler.resolveCommand(D));
this.downloadingEntities=[]}};
lN[Fc]=[a6,_.aA];var ohH;_.vq=function(D,t,H,e,V,b,a,w){this.JSC$18338_playerApiPromise=D;this.JSC$18338_commandHandler=t;this.JSC$18338_screenManager=H;this.offlineWebClientEligibility=e;this.JSC$18338_prefStorage=V;this.JSC$18338_actionRouter=b;this.entityTypeMap=a;this.JSC$18338_persistentStorePromiseAccessor=w;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
ohH=function(){var D=_.qS().resolve(_.vq),t;_.Z(function(H){if(H.nextAddress==1)return D.downloadFailureListenerBound?H.return():H.yield(D.JSC$18338_playerApiPromise,2);t=H.yieldResult;t.addEventListener("onOfflineOperationFailure",function(e){if(e.failureReason&&e.entityKey&&e.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(e.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var V=_.NQ(e.entityKey).entityId;V&&D.JSC$18338_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
V)}else if(_.r("kevlar_woffle")){V=D.JSC$18338_commandHandler;var b=V.resolveCommand;e=e.failureReason;var a=_.OT("TRANSFER_FAILED",void 0,"Download failed");e==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(a=_.OT("STORAGE_FULL",void 0,"Storage full"));b.call(V,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.wO(a),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
D.downloadFailureListenerBound=!0;_.n2(H)})};
_.vq.prototype.deleteVideo=function(D,t){var H=this,e,V,b;return _.Z(function(a){if(a.nextAddress==1)return a.yield(H.JSC$18338_playerApiPromise,2);e=a.yieldResult;b={offlineLoggingData:{offlineDeleteReason:(V=t)!=null?V:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return a.yield(e.queueOfflineAction(D,H.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",b),0)})};
_.vq.prototype.pauseVideoDownload=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(t.JSC$18338_playerApiPromise,2);H=e.yieldResult;H.pauseVideoDownload(D);_.n2(e)})};
_.vq.prototype.resumeVideoDownload=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(t.JSC$18338_playerApiPromise,2);H=e.yieldResult;return e.yield(H.resumeVideoDownload(D),0)})};
_.vq[Fc]=[_.h5,_.aA,_.eX,UNF,x9,Oz,G_o,vM];var PMZ=new _.kI("DOWNLOAD_STATE_STORE_TOKEN");var nhb=function(D,t){this.JSC$18358_persistentStorePromiseAccessor=D;this.store=t;this.upliftCompletionResolver=new _.TK},MM4=function(){var D=_.qS().resolve(CMY),t;
_.Z(function(H){switch(H.nextAddress){case 1:if(D.upliftImplPromise)return H.return(D.upliftImplPromise);_.$p(H,2);D.upliftImplPromise=mN4(D);return H.yield(D.upliftImplPromise,4);case 4:D.upliftCompletionResolver.resolve();_.yM(H,3);break;case 2:throw t=_.Pv(H),D.upliftCompletionResolver.reject(t),t;case 3:return H.return(D.upliftImplPromise)}})},mN4=function(D){var t,H,e;
return _.Z(function(V){switch(V.nextAddress){case 1:return _.lh("LOGGED_IN")?V.yield(D.JSC$18358_persistentStorePromiseAccessor(),2):V.return();case 2:t=V.yieldResult;if(!t)return _.vh("vdeur"),V.return();_.vh("vdeus");_.$p(V,3);return V.yield(SYF(t),5);case 5:H=V.yieldResult;D.store.dispatch(wKA(H));t.observe(function(b){Zi8(D.store,b)});
_.yM(V,4);break;case 3:throw e=_.Pv(V),_.vh("vdeur"),e;case 4:_.vh("vdeuc"),_.n2(V)}})},SYF=function(D){var t;
return _.Z(function(H){if(H.nextAddress==1)return H.yield(JS6(D),2);t=H.yieldResult;return H.return(t.reduce(function(e,V){if(!V.data||!V.key||!V.entityType)return e;e[V.entityType]||(e[V.entityType]={});e[V.entityType][V.key]=V.data;return e},{}))})};
nhb[Fc]=[vM,_.sg];var CMY;CMY=new _.kI("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.py=new _.kI("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var db=function(D,t){this.JSC$18361_persistentStorePromiseAccessor=D;this.transportService=t};
db.prototype.refresh=function(){var D=this,t,H,e,V;return _.Z(function(b){if(b.nextAddress==1)return _.lh("LOGGED_IN")?b.yield(D.JSC$18361_persistentStorePromiseAccessor(),2):b.return();if(b.nextAddress!=3)return(t=b.yieldResult)?b.yield(i1T(t),3):b.return();if((H=b.yieldResult)&&!(Number(H.data.refreshTimestampMs||0)<(0,_.aP)()))return b.return();e={browseId:"SPaccount_downloads"};V=_.qF(Bm);_.sK(D.transportService,e,V).then(function(a){var w;if(t&&(a==null?void 0:(w=a.responseContext)==null?void 0:
w.maxAgeSeconds)!==0){var h;w=(a==null?void 0:(h=a.responseContext)==null?void 0:h.maxAgeSeconds)||604800;h=String(Math.floor((0,_.aP)())+w*1E3);t.put("service:downloads_settings:fallback",new _.Yn({innertubeResponse:a,refreshTimestampMs:h}))}});
_.n2(b)})};
db[Fc]=[_.XT,_.xg];var xm=function(D,t){this.JSC$18365_playerPromise=D;this.store=t;this.started=!1};
xm.prototype.start=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return D.started?H.return():H.yield(D.JSC$18365_playerPromise,2);t=H.yieldResult;t.addEventListener("onOrchestrationBecameLeader",D.updateIsLeader.bind(D,!0));t.addEventListener("onOrchestrationLostLeader",D.updateIsLeader.bind(D,!1));if(t.isOrchestrationLeader)D.updateIsLeader(t.isOrchestrationLeader());else{var e=new _.nZ("Function isOrchestrationLeader is undefined",{"player.isReady":t.isReady(),"player.playVideo":t.playVideo?
"defined":"undefined"});_.gT(e);D.updateIsLeader(!1)}D.started=!0;_.n2(H)})};
xm.prototype.updateIsLeader=function(D){this.store.dispatch(_.hV({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:D}}))};
xm[Fc]=[_.h5,_.sg];var XUi=function(D,t){this.networkStatusManager=D;this.JSC$18368_prefStoragePromise=t;this.redirectsToPreload=["https://youtube.com"]},f1i=function(){var D=_.qS().resolve(XUi),t,H,e,V,b,a;
_.Z(function(w){switch(w.nextAddress){case 1:return w.yield(D.JSC$18368_prefStoragePromise,2);case 2:t=w.yieldResult;if(!(H=t)){w.jumpTo(3);break}return w.yield(t.get("yt-redirect-prefetch-id"),4);case 4:H=w.yieldResult;case 3:if(H||!D.networkStatusManager.isNetworkAvailable())return w.return();e={cache:"reload",redirect:"manual"};V=_.F(D.redirectsToPreload);b=V.next();case 5:if(b.done){if(!t){w.jumpTo(0);break}return w.yield(t.set("yt-redirect-prefetch-id",!0,86400),0)}a=b.value;_.$p(w,8);return w.yield(_.VA.fetch(a,
e),10);case 10:_.yM(w,6);break;case 8:_.Pv(w);case 6:b=V.next(),w.jumpTo(5)}})};var LdY=function(){};_.AAi=new _.kI("PAGE_CONTENT_EXTRACTOR_TOKEN");var RF=function(D){D?(this.container=D,this.containerWasInjected=!0):this.containerWasInjected=!1};
RF.prototype.openDialog=function(D,t,H){var e=this,V;return _.Z(function(b){(V=e.container)==null||V.openDialog(D,t,H);_.n2(b)})};
RF.prototype.closeDialog=function(){var D=this,t;return _.Z(function(H){(t=D.container)==null||t.closeDialog();_.n2(H)})};
RF.prototype.isDialogOpen=function(){var D=this,t,H;return _.Z(function(e){return e.return((H=(t=D.container)==null?void 0:t.isDialogOpen())!=null?H:!1)})};
RF[Fc]=[_.by(IKv)];_.ght=new _.kI("POPUP_CONTROLLER_TOKEN");var JAF=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
JAF.prototype.registerPanel=function(D,t){if(D){this.panelMap.set(D,t);var H=this.pendingPanelResolvers.get(D);H&&(H.resolve(t),this.pendingPanelResolvers.delete(D))}};
JAF.prototype.getPanel=function(D){var t=this,H;return _.Z(function(e){return(H=t.panelMap.get(D))?e.return(H):e.return(YY4(t,D))})};
var YY4=function(D,t){var H,e;return _.Z(function(V){if(H=D.pendingPanelResolvers.get(t))return V.return(H.promise);e=new _.TK;D.pendingPanelResolvers.set(t,e);return V.return(e.promise)})},l1Q=function(D,t){JAF.call(this);
var H=this;this.popupController=D;this.persistentPanelController=t;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return H.panelMap.size}}};
_.P(l1Q,JAF);_.q=l1Q.prototype;_.q.getReloadContinuation=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(t.getPanel(D),2);H=e.yieldResult;return e.return(H.getReloadContinuation())})};
_.q.showPanel=function(D,t,H,e,V,b,a){var w=this,h,K,N,k;return _.Z(function(T){if(T.nextAddress==1){a&&w.updatePanelContinuationDatas.set(D,a);if((h=H)==null?0:(K=h.engagementPanelPopupPresentationConfig)==null?0:K.popupType)if(N=H.engagementPanelPopupPresentationConfig.popupType,V===void 0&&(V=document.body),N==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!w.persistentPanelController)return _.Yw(new _.nZ("Persistent panel controller is not available.")),T.return();var c=w.persistentPanelController;
c.persistentPanelIdentifiers.has(D)||(c.persistentPanelWrapper.appendChild(c.engagementPanelElement({panelIdentifier:D},{isPersistentPanel:!0})),c.persistentPanelIdentifiers.add(D));a:switch(_.uO.currentPageSubTypeSelector(c.store.getState())){case "watch":var U="WATCH";break a;default:U="APP"}_.vhH(c,U);c.store.dispatch(k_3(!0))}else{if(N==="PANEL_POPUP_TYPE_DIALOG"||N==="PANEL_POPUP_TYPE_DROPDOWN"){c=T.return;U=w.popupController;var S=U.openPopup;a:switch(N){case "PANEL_POPUP_TYPE_DIALOG":var L=
"DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":L="DROPDOWN";break a;default:throw Error("nj`"+N);}return c.call(T,S.call(U,D,t,L,V))}_.Yw(new _.nZ("Popup type "+N+" not supported in PanelController."))}return T.yield(w.getPanel(D),2)}k=T.yieldResult;(t||b)&&k.updatePanel(t,!1,e,b);k.showPanel(e);_.n2(T)})};
_.q.hidePanel=function(D){var t=this,H,e;return _.Z(function(V){if(V.nextAddress==1)return V.yield(t.getPanel(D),2);H=V.yieldResult;H.hidePanel();t.popupController.closePopup(D);(e=t.persistentPanelController)!=null&&e.persistentPanelIdentifiers.has(D)&&e.store.dispatch(k_3(!1));_.n2(V)})};
_.q.isVisible=function(D,t){var H=this,e;return _.Z(function(V){if(V.nextAddress==1)return t&&!H.panelMap.has(D)?V.return(!1):V.yield(H.getPanel(D),2);e=V.yieldResult;return V.return(e.isVisible())})};
_.q.updatePanel=function(D,t,H,e,V,b){H=H===void 0?!1:H;var a=this,w;return _.Z(function(h){if(h.nextAddress==1){if(!t&&!V)return h.return();b&&a.updatePanelContinuationDatas.set(D,b);return h.yield(a.getPanel(D),2)}w=h.yieldResult;w.updatePanel(t,H,e,V);_.n2(h)})};
_.q.registerPanelContent=function(D,t){D&&this.panelContentMap.set(D,t)};
_.q.unregisterPanelContent=function(D){this.panelContentMap.delete(D)};
_.q.getPanelContent=function(D){return this.panelContentMap.get(D)};
_.q.getUpdatePanelContinuationData=function(D){return this.updatePanelContinuationDatas.get(D)};
l1Q[Fc]=[_.ght,_.by(_.VD)];var uN=function(D,t){this.innertubeTransportService=D;this.JSC$18390_screenManager=t},pUZ=function(D){var t;
return!((t=D.panelLoadingStrategy)==null||!t.requestTemplate)};
uN.prototype.makeRequest=function(D){var t=this,H,e;return _.Z(function(V){switch(V.nextAddress){case 1:if(!pUZ(t)){V.jumpTo(2);break}_.$p(V,3);return V.yield(_.BZ(t.innertubeTransportService,D),5);case 5:return H=V.yieldResult,H?V.return(H.content):(_.gT(Error("oj")),V.return(void 0));case 3:e=_.Pv(V),_.gT(e);case 2:return V.return(void 0)}})};
uN.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
uN.prototype.execute=function(D){var t=this,H,e,V,b,a,w,h,K,N,k;return _.Z(function(T){if(T.nextAddress==1){H=D;e=H.data;V=H.fallbackVe;b=H.parentVe;a=H.createScreenConfig;w=H.renderFn;h=H.command;t.panelLoadingStrategy=e;var c,U,S=((c=t.panelLoadingStrategy)==null?0:c.screenVe)?(U=t.panelLoadingStrategy)==null?void 0:U.screenVe:V;S&&_.Li(t.JSC$18390_screenManager,S,b,a);return(K=t.getContent())?T.yield(w(K),2):T.jumpTo(2)}return T.nextAddress!=4?pUZ(t)?T.yield(t.makeRequest(h),4):T.return():(k=N=
T.yieldResult)?T.yield(w(k),0):T.return()})};
uN[Fc]=[_.xg,_.eX];var dNF;dNF=function(D,t){this.engagementPanelElement=D;this.store=t;this.persistentPanelContainerMap=new Map;this.persistentPanelIdentifiers=new Set;this.persistentPanelWrapper=document.createElement("div");this.persistentPanelWrapper.classList.add("persistent-panel-wrapper");this.persistentPanelWrapper.style.display="flex";this.persistentPanelWrapper.style.height="100%"};
_.vhH=function(D,t){var H=D.persistentPanelContainerMap.get(t);H?H.contains(D.persistentPanelWrapper)||(D=D.persistentPanelWrapper,_.ZP=!0,_.s7.set(D,!0),H.insertBefore(D,null),_.s7.delete(D),_.ZP=!1):_.Yw(new _.nZ("Persistent panel container not found for surface "+t+"."))};
dNF[Fc]=[QV6,_.sg];var Wq=function(){};
Wq.prototype.getContainer=function(){return _.a4()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
Wq.prototype.openSheet=function(D,t){var H=this,e,V,b,a,w,h;return _.Z(function(K){switch(K.nextAddress){case 1:return e={stack:[],error:void 0,hasError:!1},_.$p(K,2,3),V=HI,K.yield(H.isSheetOpen(),5);case 5:b=K.yieldResult;idK(e,LY3(V));if(b){if(_.r("web_close_sheet_if_same_target_killswitch")&&t&&H.currentTarget===t)return(a=H.getContainer())==null||a.closeSheet(),K.return();H.pendingData={data:D,target:RnF(H,t)};return K.return()}D.viewModel&&(D={viewModel:D.viewModel});(w=H.getContainer())==null||
w.openSheet(D,t);H.currentTarget=t;case 3:_.rN(K);rw$(e);_.ox(K,0);break;case 2:h=_.Pv(K),e.error=h,e.hasError=!0,K.jumpTo(3)}})};
Wq.prototype.closeSheet=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return H.yield((t=D.getContainer())==null?void 0:t.closeSheet(),2);if(H.nextAddress!=4)return D.currentTarget=void 0,D.pendingData?H.yield(D.openSheet(D.pendingData.data,D.pendingData.target),4):H.jumpTo(0);D.pendingData=void 0;_.n2(H)})};
Wq.prototype.isSheetOpen=function(){var D=this,t,H;return _.Z(function(e){return e.return((H=(t=D.getContainer())==null?void 0:t.isSheetOpen())!=null?H:!1)})};
var RnF=function(D,t){if(!_.r("web_parent_target_for_sheets"))return t;var H,e;return(e=(H=D.getContainer())==null?void 0:H.getParentTarget(t))!=null?e:t};var wL=window.documentPictureInPicture;var ySX=_.zk(["dark"]),BPD=_.zk(["system-icons"]),zBK=_.zk(["typography"]),Drk=_.zk(["lang"]),t$V=_.zk(["style"]),uj8=_.zk(["dir"]),W9k=_.zk(["rounded-container"]),IAX=_.zk(["style"]),e4D=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],IF=function(D){this.JSC$18407_clientRoot=D;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
IF.prototype.openWindow=function(D){var t=this,H,e;return _.Z(function(V){switch(V.nextAddress){case 1:if(!window.documentPictureInPicture||!_.CK()||t.currentPipWindow)return V.return(!1);_.$p(V,2);return V.yield((e=wL?wL:null)==null?void 0:e.requestWindow(D),4);case 4:H=V.yieldResult;_.yM(V,3);break;case 2:return _.Pv(V),V.return(!1);case 3:if(!H)return V.return(!1);H.addEventListener("pagehide",function(){xNe(t)});
H.addEventListener("resize",t.handlePipWindowResize);H9$(H);b93(H);hMu(H);return V.yield(RBV(H),5);case 5:if(!pCV())return V.return(!1);t.currentPipWindow=H;t.JSC$18407_eventForwarder=V$A(H,t.JSC$18407_clientRoot);t.pipWindowResizeDelay=new _.wZ(function(){t.currentPipWindow&&_.ET(t.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.O5(t.currentPipWindow.innerWidth,t.currentPipWindow.innerHeight)])},H);
t.pipWindowResizeDelay.start();return V.return(!0)}})};
IF.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var xNe=function(D){if(D.currentPipWindow){var t,H;(t=wL?wL:null)==null||(H=t.window)==null||H.close();D.currentPipWindow.removeEventListener("resize",D.handlePipWindowResize);var e;(e=D.pipWindowResizeDelay)==null||e.dispose();D.pipWindowResizeDelay=void 0;var V;(V=D.JSC$18407_eventForwarder)==null||V.stop();D.JSC$18407_eventForwarder=void 0;t=_.F(D.onCloseCallbacks);for(H=t.next();!H.done;H=t.next())H=H.value,H();D.onCloseCallbacks=[];D.currentPipWindow=null}};
IF.prototype.getWindow=function(){return this.currentPipWindow};
var RUF=function(D,t){var H;(H=D.onCloseCallbacks)==null||H.push(t)};
IF.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.CK()};
_.ql.Object.defineProperties(IF.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
IF[Fc]=[hJQ];var u7e=new _.kI("PICTURE_IN_PICTURE_CONTROLLER");var qfD=function(D,t){this.lengthY=this.lengthX=0;this.lengthX=t.x-D.x;this.lengthY=t.y-D.y};var WdF=function(){},tbt=function(D,t){var H;
(H=D.headerElement)==null||H.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:t}))};var I1F=function(){};
I1F.prototype.openPopup=function(D,t,H,e){var V=this,b;return _.Z(function(a){if(!V.container)return a.return();b={openPopupAction:{popup:t,popupType:H,uniqueId:D}};return a.return(V.container.handleOpenPopupAction(b,e))})};
I1F.prototype.closePopup=function(D){this.container&&this.container.closePopup(D)};var QEF=function(){this.openTunnels=new Map},Z5$=function(D,t,H){if(h4A(H)){var e=_.uz(H,"gclid");
H={handleEvent:function(w){t&&!t.closed&&typeof t.postMessage==="function"&&w&&w.origin&&w.source===t&&w.data&&w.data.action==="gcl_setup"&&t.postMessage(Object.assign({},{action:"gcl_transfer"},e&&{gclid:e},{gadSource:2}),w.origin)}};
for(var V=_.F(D.openTunnels),b=V.next();!b.done;b=V.next()){var a=_.F(b.value);b=a.next().value;a=a.next().value;if(b.closed)try{window.removeEventListener("message",a),D.openTunnels.delete(b)}catch(w){_.gT(w)}}t&&D.openTunnels.size<15&&(D.openTunnels.set(t,H),window.addEventListener("message",H))}};var yAO=function(){this.clientParams=new Map},uB3=function(D){for(var t=_.F(D.clientParams.keys()),H=t.next();!H.done;H=t.next())H=H.value,H.startsWith("yt-mini-app-share")&&D.clientParams.delete(H)};var Bwv=function(D,t){_.mg.call(this);var H=this;this.shortsController=D;this.storeWithShorts=t;D=_.Rj(this.storeWithShorts,_.m_T,function(e){if(e){var V,b=(V=H.shortsController.getRoot())==null?void 0:V.getPlayer(),a;(V=(a=H.shortsController.alternativePlayerContainerElement)==null?void 0:a.getPlayerContainer())&&(b==null||b.appendTo(V))}else{var w;a=(w=H.shortsController.alternativePlayerContainerElement)==null?void 0:w.getPlayerContainer().querySelector("#player");V=H.shortsController.activeIndex;
(w=(b=H.shortsController.getRoot())==null?void 0:b.querySelector('ytd-reel-video-renderer[id="'+V+'"] #player-container'))&&(a==null||a.appendTo(w,void 0,!0))}});
this.addOnDisposeCallback(D)};
_.P(Bwv,_.mg);var QY=function(D,t,H,e){var V=this;this.storeWithShorts=D;this.ephemeralResponseStore=t;this.innertubeTransportService=H;this.innertubeTransportLoader=e;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.dm(_.wg);this.isShortsPipActive=_.dm(_.ZT);this.nextReelVe=_.Nx(56921);this.prevReelVe=_.Nx(56922);this.backButtonVe=_.Nx(22156);this.TEST_ONLY={getActiveModules:function(){return V.activeModules}}},zUF=function(D){D.unsubscribeFromStore=
_.Rj(D.storeWithShorts,_.CLu,function(t){D.initOrDisposeActiveModules(t);
!t&&D.storeWithShorts.getState().shorts.isFullscreen&&(_.wE(document.documentElement),D.storeWithShorts.dispatch(_.jif(!1)))});
D.initOrDisposeActiveModules(_.CLu(D.storeWithShorts.getState()))},kwm,TG6,Ddi;
QY.prototype.initOrDisposeActiveModules=function(D){D?this.activeModules.push(new Bwv(this,this.storeWithShorts)):(_.Fs(this.activeModules),this.activeModules.length=0)};
QY.prototype.registerRootElement=function(D){this.rootElement=D;zUF(this)};
QY.prototype.getRoot=function(){return this.rootElement};
QY.prototype.setActiveIndex=function(D){this.activeIndex=D};
_.s_v=function(D,t){var H,e,V,b,a,w,h;return _.Z(function(K){switch(K.nextAddress){case 1:return H=new e6,(e=H.JSC$13125_getStoreKey(t))&&D.ephemeralResponseStore.has(e)?K.yield(D.ephemeralResponseStore.get(e),7):K.yield(Ddi(D,t),4);case 4:V=K.yieldResult;if(!e){K.jumpTo(3);break}b=EI(V,3600);return K.yield(D.ephemeralResponseStore.put(e,new _.Yn(b)),3);case 7:V=(a=K.yieldResult)==null?void 0:_.qP(a);case 3:return((w=V)==null?0:w.replacementEndpoint)&&(h=_.O(V.replacementEndpoint,_.C_))&&V.sequenceContinuation&&
(h.sequenceParams=V.sequenceContinuation),K.return(V)}})};
kwm=function(D,t){t=(new VY).JSC$13125_getStoreKey(t);return!!t&&D.ephemeralResponseStore.has(t)};
TG6=function(D,t,H){var e,V,b,a,w;_.Z(function(h){if(h.nextAddress==1){e=new VY;V=e.JSC$13125_getStoreKey(t);if(!V)return h.return();if(H.reelWatchSequenceResponse)return b=EI(H.reelWatchSequenceResponse,3600),D.ephemeralResponseStore.put(V,new _.Yn(b)),h.jumpTo(0);if(!D.ephemeralResponseStore.has(V))return h.jumpTo(0);w=H;return h.yield(D.ephemeralResponseStore.get(V),4)}w.reelWatchSequenceResponse=(a=h.yieldResult)==null?void 0:_.qP(a);_.n2(h)})};
Ddi=function(D,t){var H=H===void 0?{}:H;var e,V,b;return _.Z(function(a){switch(a.nextAddress){case 1:if(D.innertubeTransportService){e=D.innertubeTransportService;a.jumpTo(2);break}if(!D.innertubeTransportLoader){_.vn(Error("qj"));a.jumpTo(2);break}return a.yield(D.innertubeTransportLoader(),4);case 4:e=a.yieldResult;case 2:return a.yield((V=e)==null?void 0:_.BZ(V,t,H),5);case 5:return b=a.yieldResult,a.return(b)}})};
_.ql.Object.defineProperties(QY.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
QY[Fc]=[HBm,_.Jk,_.by(_.xg),_.by(Dnn)];_.t2F=new _.kI("STORAGE_MANAGER_TOKEN");var O9A=["touchmove","scroll"];var H24=!1;var TSD=!1;var UrD={onSpanEnd:function(D){D.parentId==null&&(H24||(NSR(),setInterval(NSR,6E5),H24=!0),cs6(D,"web_tracing_action"))}};var eDH=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},V2Y;
eDH.prototype.enqueue=function(D,t){t===1?this.currentPersistentToast=D:this.queue.push(D);this.openToast()};
eDH.prototype.openToast=function(){var D;(D=this.currentToast)!=null&&D.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.yY=new _.kI("TOAST_MANAGER_TOKEN");var b2F=new _.kI("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var qk4=new _.kI("VIEW_TRANSITION_COORDINATOR_TOKEN");var Fug=function(D){this.config=D;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;D=_.F(D.transitionConfigs);for(var t=D.next();!t.done;t=D.next())t=_.F(t.value).next().value,this.transitionTasksMap.set(t,[])};
Fug.prototype.registerElement=function(D,t,H){H=H===void 0?!1:H;for(var e=_.F(Object.keys(t)),V=e.next(),b={};!V.done;b={viewTransitionName:void 0},V=e.next()){V=V.value;b.viewTransitionName=t[V];var a=this.elementTasksMap.get(D),w=void 0;if((w=a)==null?0:w.has(V)){_.Jp(new _.nZ("Element already registered for transition",D.tagName,V));break}a=a||new Map;a.set(V,{beforeTransition:function(h){return function(){D.style.viewTransitionName=h.viewTransitionName}}(b),
afterTransition:function(){D.style.viewTransitionName&&(D.style.viewTransitionName="")},
runOnce:H});this.elementTasksMap.set(D,a)}};
_.pf=function(D,t){var H=D.elementTasksMap.get(t);H&&(H.clear(),H.size===0&&D.elementTasksMap.delete(t))};
Fug[Fc]=[b2F];var wvF=_.l(function(D){var t=_.DY("yt-expandable-metadata-header-view-model"),H=_.$X(function(e){if(!_.A5(_.Lf(e),t.value,["A".toString(),"BUTTON".toString()])){var V;(V=D.expandedCallback)==null||V.call(D,!1)}});
return _.G("yt-expandable-metadata-header-view-model",{el:t,class:"ytExpandableMetadataHeaderViewModelHost"},_.G(_.E,{cond:function(){return D.expanded()},
then:function(){return _.G("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":H},_.G("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.G(_.E,{cond:function(){return D.data().expandedTitleImage},
then:function(e){return _.G("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.G(_.bi,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:e}))}}),_.G("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.G("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.G(_.$7,{text:function(){return D.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.G(_.$7,{text:function(){return D.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.G(_.$7,{text:function(){return D.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.G("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.G(_.P5,{data:function(){return D.data().infoButton}},{buttonViewModel:_.JX}),_.G(_.P5,{data:function(){return D.data().collapseButton}},{buttonViewModel:function(e){return _.G(_.JX,{data:e.data,
onClick:function(){var V;(V=D.expandedCallback)==null||V.call(D,!1)}})}})))},
else:function(){return _.G(a7e,Object.assign({},D))}}))},"Tf"),Z2F=_.l(function(D){return _.G("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.G(_.E,{cond:function(){return D.data().collapsedLabelImage},
then:function(t){return _.G("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.G(_.bi,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:t,alt:""}))}}),_.G(_.$7,{text:function(){return D.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Uf"),a7e=_.l(function(D){return _.G("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.$X(function(){var t;return void((t=D.expandedCallback)==null?void 0:t.call(D,!0))})},_.G("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.G(_.E,{cond:function(){return D.data().collapsedImage},
then:function(t){return _.G("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.G(_.bi,{height:20,preserveHeight:!0,preserveWidth:!0,data:t,alt:""}))}}),_.G(_.E,{cond:function(){return D.data().showLeadingCollapsedLabel},
then:function(){return _.G(Z2F,Object.assign({},D))}}),_.G("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.G(_.$7,{text:function(){return D.data().collapsedTitle}}))),_.G("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.G(_.E,{cond:function(){return!D.data().showLeadingCollapsedLabel},
then:function(){return _.G(Z2F,Object.assign({},D))}}),_.G(_.P5,{data:function(){return D.data().infoButton}},{buttonViewModel:_.JX}),_.G(_.P5,{data:function(){return D.data().expandButton}},{buttonViewModel:function(t){return _.G(_.JX,{data:t.data,
onClick:function(){var H;(H=D.expandedCallback)==null||H.call(D,!0)}})}})))},"Vf");_.sx4=_.l(function(D){var t=_.F(_.rm(function(){return D.data().initiallyExpanded})),H=t.next().value,e=t.next().value,V,b=(V=_.qS().resolve(_.by(_.tB)))==null?void 0:V(),a=function(){var w=D.data().colorData;
if(w)return b?w==null?void 0:w.darkColorPalette:w==null?void 0:w.lightColorPalette};
return _.G("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.O7({"background-color":function(){var w=a();return(w==null?0:w.section2Color)?_.Qk(w.section2Color):""}})},_.G(_.P5,{data:function(){return D.data().header}},{expandableMetadataHeaderViewModel:function(w){return _.G(wvF,{data:w.data,
expanded:function(){return!!H()},
expandedCallback:function(h){e(h)}})}}),_.G(_.E,{cond:function(){return H()},
then:function(){return _.G("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.G(_.P5,{data:function(){return D.data().expandedContent}},{horizontalShelfViewModel:function(w){return _.G(_.hP,{data:w.data,
includeMargin:!0,forceNarrowLayout:!0,palette:a})},
videoSummaryContentViewModel:function(w){return _.G(uk6,{data:w.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(w){return _.G(_.J9,{data:w.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(w){return _.G(_.tv3,{data:w.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.G(_.P5,{data:function(){return D.data().expandedBottomButtons}},{buttonViewModel:function(w){return _.G("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.G(_.JX,{data:w.data}))}}))}}))},"Wf");var hDO=_.l(function(D){var t=D.text;var H=D.marqueeSpacing;var e=D.scrollDelay;var V=D.scrollDuration;var b=D.enableMarqueeScroll;D=D.large;var a=_.F(_.KR(!1,void 0,"WyNYFf")),w=a.next().value,h=a.next().value,K=_.F(_.KR(0,void 0,"OoTdhe"));a=K.next().value;var N=K.next().value,k=_.DY("marquee-scroll");K=_.DY("div");var T=_.DY("span"),c=_.qS().resolve(_.eQ);_.Mp(function(){if(b()){var L=T.value.getBoundingClientRect().width,J=k.value.getBoundingClientRect().width;if(L>J){var g=(c==="ltr"?-1:1)*(L+
(H?H():16));Promise.resolve().then(function(){h(!0);N(g)})}}},"dv0Anf");
var U={},S={};return _.G("marquee-scroll",{class:_.jQ("ytMarqueeScrollHost",(U.ytMarqueeScrollHostLarge=D,U)),el:k},_.G("div",{id:"marquee-scroll-inner-container",class:_.jQ("ytMarqueeScrollInnerContainer",(S.ytMarqueeScrollAnimationEnabled=function(){return w()},S)),
el:K,style:_.O7({gap:H?(0,_.FN)(H):"16px","animation-duration":V?W6Q(V):"16s","animation-delay":e?W6Q(e):"3s","--marquee-translate":(0,_.FN)(a)})},_.G("span",{el:T,dir:"auto"},_.G(_.$7,{text:t,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.G(_.E,{cond:w,then:function(){return _.G("span",{"aria-hidden":"true",dir:"auto"},_.G(_.$7,{text:t,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Yf");_.G7b=_.l(function(D){var t=D.data;var H=D.overlayDensity;D=_.$X(function(){t().onTapCommand&&_.IQ(t().onTapCommand);return!1});
var e=_.ruu(),V=function(){return(H==null?void 0:H())===1?22:16},b={};
return _.G("reel-sound-metadata-view-model",{class:_.jQ("ytReelSoundMetadataViewModelHost",(b.ytReelSoundMetadataViewModelHostLarge=function(){return(H==null?void 0:H())===1},b)),
"on:click":D,tabindex:0,role:"button","on:keydown":e},_.G("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.G(_.E,{cond:function(){return t().musicIcon},
then:function(a){return _.G(_.bi,{data:a,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:V})}}),_.G("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.G(hDO,{text:function(){return t().soundMetadata},
enableMarqueeScroll:function(){return!!t().enableMarqueeScroll},
large:function(){return(H==null?void 0:H())===1}}))))},"Zf");var Epg,KuZ,Bq,c6t,$dQ,TNv,O2e,r6F;Epg=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];KuZ=_.ZU("wil_icon_max_concurrent_fetches",Infinity);
Bq=function(D,t,H){var e=this;this.iconSet=D;this.appDirection=t;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.VA.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.r("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.r("wil_icon_network_first");this.renderWhenIdle=_.r("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.r("wil_icon_load_immediately");this.isPurging=!1;D=function(){e.cacheStorageAvailable&&(e.cacheStorageAsync=_.VA.caches.open("yt-icons").then(function(b){return e.cacheStorageSync=b}).catch(function(){e.cacheStorageAvailable=!1}))};
H=(H==null?void 0:H())||{};H=_.F(Object.entries(H));for(t=H.next();!t.done;t=H.next()){var V=_.F(t.value);t=V.next().value;V=V.next().value;V=jG(V);NNF(V);this.iconCache[t]=V.cloneNode(!0)}this.isPurging=k74(this);this.isPurging instanceof Promise?this.isPurging.then(D):D()};
_.Ms$=function(D,t){var H=D.resolveIcon(t);return H?D.renderingMode===1?TNv(D,H,D.renderingMode):(t=D.iconCache[H.url])?(t=t.cloneNode(!0),c6t(D,t),TNv(D,H,D.renderingMode,t)):_.jxi(D,H).then(function(e){var V=e?0:1;c6t(D,e);return TNv(D,H,V,e)}):(_.Jp(new _.nZ("Icon not found",{iconShape:t})),function(){})};
c6t=function(D,t){if(t){D.counter+=1;D="_yt"+D.counter;t=[t].concat(_.A6(t.getElementsByTagName("*")));t=_.F(t);for(var H=t.next();!H.done;H=t.next())if(H=H.value,H.tagName==="style"&&H.textContent)H.textContent=$dQ(H.textContent,D,!0);else for(var e=_.F(H.attributes),V=e.next();!V.done;V=e.next()){V=V.value;V.name==="id"&&(V.value+=D);["mask","fill","clip-path"].includes(V.name)&&(V.value=$dQ(V.value,D));if(V.name==="style"){var b=H.style;try{b.cssText=$dQ(b.cssText,D,!0)}catch(N){var a=void 0,w=
void 0,h=void 0,K=void 0;z8({error:((a=N)==null?void 0:(h=(w=a).toString)==null?void 0:h.call(w))||"",el:H.outerHTML,style:!!b,cssText:(K=b)==null?void 0:K.cssText})}}V.name==="xlink:href"&&(V.value=V.value.replace(/#(.*)/,"#$1"+D))}}};
$dQ=function(D,t,H){var e=/url\(["']?#(.*?)["']?\)/;(H===void 0?0:H)&&(e=/url\(["']?#(.*?)["']?\)/g);return D.replace(e,"url(#$1"+t+")")};
TNv=function(D,t,H,e){return function(V,b){var a=Object.assign({},{iconColor:"currentcolor",iconWidth:t.size+"px",iconHeight:t.size+"px",iconDisplay:"block"},b);b=_.OH("DIV");var w=a.iconColor,h=a.iconFilter;a="width: "+a.iconWidth+"; height: "+a.iconHeight+"; display: "+a.iconDisplay+";";h&&(a+=" filter: "+h+";");H===0&&(a+=" fill: "+w+";");H===1&&(h=t.url,a+=" -webkit-mask: url("+h+") no-repeat center / cover; mask: url("+(h+") no-repeat center / cover; background-color: ")+w);t.allowMirroring&&
D.appDirection==="rtl"&&(a+=" transform: scale(-1, 1); transform-origin: center center;");b.setAttribute("style",a);H===0&&e&&b.appendChild(e);V.appendChild(b)}};
_.jxi=function(D,t){var H,e,V;return _.Z(function(b){H=function(a){return Ql(a)};
e=t.url;if(!i2F(e))throw Error("sj");V=r6F(D,e);return b.return(V.then(function(a){return a.clone().text()}).then(function(a){var w=H(a);
a=t.size;var h=_.OH("DIV");_.Fq(h,w);w=_.UH(h.firstElementChild!==void 0?h.firstElementChild:_.mHf(h.firstChild,!0));a=NNF(w,a);D.iconCache[e]=a.cloneNode(!0);delete D.responsePromises[e];return a}).catch(function(){}))})};
O2e=function(D){var t,H=(t=D.requestAninmationFrameResolver)==null?void 0:t.promise;H||(D.requestAninmationFrameResolver=new _.TK,H=D.requestAninmationFrameResolver.promise,_.VA.requestAnimationFrame(function(){var e;(e=D.requestAninmationFrameResolver)==null||e.resolve();D.requestAninmationFrameResolver=null}));
return H};
r6F=function(D,t){var H,e;return _.Z(function(V){if(V.nextAddress==1)return D.waitForAnimationFrame?V.yield(O2e(D),2):V.jumpTo(2);H=D.responsePromises[t];H||(e=function(){var b,a,w;return _.Z(function(h){switch(h.nextAddress){case 1:if(!D.cacheStorageAvailable){b=void 0;h.jumpTo(2);break}if(a=D.cacheStorageSync){h.jumpTo(3);break}return h.yield(D.cacheStorageAsync,4);case 4:a=h.yieldResult;case 3:b=a;case 2:return w=b,D.isNetworkFirstStrategy?h.return(D.fetchAndUpdateCache(t,w).catch(D.getCacheStorageResponse.bind(D,
t,w))):h.return(D.getCacheStorageResponse(t,w).catch(D.fetchAndUpdateCache.bind(D,t,w)))}})},H=D.renderWhenIdle?new Promise(function(b,a){_.C7(_.Jy,function(){e().then(b).catch(a)},10)}):e(),D.responsePromises[t]=H);
return V.return(H.catch(function(b){delete D.responsePromises[t];z8({error:(b==null?0:b.toString)?b.toString():"",url:t});throw b;}))})};
Bq.prototype.fetchAndUpdateCache=function(D,t){var H=this;return _.Z(function(e){return e.return(Udv(H,D).then(function(V){opb(H,D,V,t);return V}))})};
var Udv=function(D,t){var H;return _.Z(function(e){if(D.numFetches<KuZ)return D.numFetches+=1,e.return(PFF(D,t).finally(function(){--D.numFetches;if(Object.keys(D.queuedResponseResolvers).length){var V=Object.keys(D.queuedResponseResolvers)[0],b=D.queuedResponseResolvers[V];delete D.queuedResponseResolvers[V];b.resolve(Udv(D,V))}}));
H=new _.TK;D.queuedResponseResolvers[t]=H;return e.return(H.promise)})},PFF=function(D,t,H){H=H===void 0?2:H;
var e;return _.Z(function(V){e={credentials:"same-origin",priority:"low"};return V.return(_.VA.fetch(t,e).then(function(b){return b.ok?b:Promise.reject(Error("tj`"+b.status+"`"+b.statusText))}).catch(function(b){if(H>0)return PFF(D,t,H-1);
throw b;}))})},opb=function(D,t,H,e){_.Z(function(V){return e?V.return(new Promise(function(b){_.C7(_.Jy,function(){var a,w;
return _.Z(function(h){switch(h.nextAddress){case 1:if(!D.isNetworkFirstStrategy){a=void 0;h.jumpTo(2);break}return h.yield(e.match(t).catch(function(){}),3);
case 3:a=h.yieldResult;case 2:if(w=a){h.jumpTo(4);break}return h.yield(e.put(t,H.clone()).catch(function(K){z8({error:(K==null?0:K.toString)?K.toString():"",url:t})}),4);
case 4:b(),_.n2(h)}})},50)})):V.return()})};
Bq.prototype.getCacheStorageResponse=function(D,t){return _.Z(function(H){return t?H.return(t.match(D).then(function(e){return e&&e.ok?e:Promise.reject()})):H.return(Promise.reject())})};
var NNF=function(D,t){t===void 0||D.getAttribute("viewBox")||D.setAttribute("viewBox","0 0 "+t+" "+t);D.setAttribute("focusable","false");D.setAttribute("aria-hidden","true");try{D.style.pointerEvents="none",D.style.display="inherit",D.style.width="100%",D.style.height="100%"}catch(V){var H;z8({error:((H=V)==null?0:H.toString)?V.toString():""});try{D.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(b){var e;z8({error:((e=b)==null?0:e.toString)?b.toString():
""})}}return D},i2F=function(D){for(var t=_.F(Epg),H=t.next();!H.done;H=t.next())if(D.startsWith(H.value)&&D.endsWith(".svg"))return!0;
return!1};
Bq.prototype.resolveIcon=function(D){return this.iconSet.resolveIcon(D)};
var z8=function(D){_.Yw(new _.nZ("Error in IconManager",D))},k74=function(D){if(_.r("wil_icons_cache_purge_killswitch"))return!1;
try{var t=_.VA.localStorage}catch(b){return!1}if(!t||!D.cacheStorageAvailable)return!1;var H=function(b){try{var a;(a=t)==null||a.setItem("yt-icons-last-purged",b.toString())}catch(h){var w;z8({error:((w=h)==null?0:w.toString)?h.toString():""})}},e=Number(t.getItem("yt-icons-last-purged"));
if(!e)return e=new Date,e=e.setDate(e.getDate()-Math.floor(Math.random()*90+1)),H(e),!1;if(function(b,a){b=new Date(b);a=new Date(a);return a.getMonth()-b.getMonth()+12*(a.getFullYear()-b.getFullYear())}(e,Date.now())<3)return!1;
try{return _.VA.caches.delete("yt-icons").then(function(b){b&&H(Date.now());return b}).catch(function(){return!1}).finally(function(){D.isPurging=!1})}catch(b){var V;
z8({error:((V=b)==null?0:V.toString)?b.toString():""});return!1}};
Bq[Fc]=[$wZ,_.eQ,_.by(OQv)];_.D5=function(D,t){this.iconManager=D;this.iconsToFetch=t};
_.D5[Fc]=[_.ja,_.by(r3t)];var npQ=function(){};var CFt=function(D,t,H){this.requestKey=D;this.ql7=t;this.gC4=H;this.fWY=function(){return new XMLHttpRequest};
this.bVd=void 0;this.fgJ=[]};
CFt.prototype.getLatestChallengeResponse=function(){return this.gC4};
var X1w=function(D,t,H){var e,V,b,a;return _.Z(function(w){if(w.nextAddress==1){_.l1("attestation_challenge_fetch");_.vh("att_fs",void 0,"attestation_challenge_fetch");if(!D.bVd)throw new _.x1(9,"Missing fetcher");return w.yield(D.bVd(t,H),2)}e=w.yieldResult;b=(V=e)==null?void 0:V.bgChallenge;if(!b)throw new _.x1(15,"Missing field");D.gC4=e;D.fgJ.forEach(function(h){h(e)});
a=T0V(b);_.vh("att_fc",void 0,"attestation_challenge_fetch");Y0("attestation_challenge_fetch");return w.return(a)})},HRo=function(D,t){var H,e,V,b,a;
return _.Z(function(w){switch(w.nextAddress){case 1:H=new Nc(100,3E5,.25,2),e=void 0;case 2:if(!(H.currBackoffCount_<10)){w.jumpTo(4);break}_.$p(w,5);if(!(H.currBackoffCount_>0)){w.jumpTo(7);break}return w.yield(PxD(H.getValue()),7);case 7:return w.yield(mdF(D,t),9);case 9:return V=w.yieldResult,w.return(V);case 5:b=_.Pv(w);b instanceof _.x1?e=b:(a=b instanceof Error?b.message:"Unknown",e=new _.x1(9,a));ddn(H);w.jumpTo(2);break;case 4:if(e)throw e;throw new _.x1(9,"Unknown error");}})},mdF=function(D,
t){t=iNa(ren(new $ca,t),D.requestKey);
var H=new _.TK,e=D.fWY();e.open("POST",D.ql7);e.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");e.setRequestHeader("Content-Type","application/json+protobuf");e.onload=function(){if(_.HC3(e)){var V=Mj9(e.responseText);H.resolve(V)}else H.reject(new _.x1(_.Fhu(_.Ea(e)),e.statusText))};
e.onerror=function(){H.reject(new _.x1(_.Fhu(_.Ea(e)),e.statusText))};
e.send(t.serialize());return H.promise};var Ske=function(D){this.networkStatusManager=D;this.isDownloaded=rSX===void 0?function(){return!1}:rSX;
this.isReady=!1;this.nGL=M2i(this)},M2i=function(D){var t;
return _.Z(function(H){if(H.nextAddress==1)return H.yield(lvD(),2);if(H.nextAddress!=3)return t=H.yieldResult,H.yield(u7Q(t),3);D.j1=H.yieldResult;CxR(D.j1).then(function(){D.isReady=!0});
return H.return(D.j1)})},Xvg=function(D,t,H){D.j1?(D=D.j1.grD({hU:H,
eiJ:!0,uJT:!0}),t.serviceIntegrityDimensions={poToken:D}):_.gT(Error("vj"))};
Ske.prototype.processContext=function(D){var t=this;if(!D.input.match(_.qF(cr6)))return _.cK();var H=D.innerTubeRequest,e=H.videoId;return!e||this.isDownloaded(H)||this.networkStatusManager&&!this.j1&&!this.networkStatusManager.isNetworkAvailable()?_.cK():this.j1?this.isReady?(Xvg(this,H,e),_.cK()):new T6(CxR(this.j1).then(function(){Xvg(t,H,e)})):new T6(this.nGL.then(function(V){return _.Z(function(b){if(b.nextAddress==1)return b.yield(CxR(V),2);
Xvg(t,H,e);_.n2(b)})}))};var f7Y=new _.kI("WEB_PO_CONTEXT_PROCESSOR");var LuO=function(D,t){var H=this;this.zwd=0;var e;this.mGW=(e=t==null?void 0:t.mGW)!=null?e:window;this.networkStatusManagerPromise=t==null?void 0:t.networkStatusManagerPromise;var V;this.requestKey=(V=t==null?void 0:t.requestKey)!=null?V:_.sa("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var b;this.f7c=(b=t==null?void 0:t.f7c)!=null?b:function(h){return new Bl(h)};
var a;e=(a=t==null?void 0:t.ufY)!=null?a:function(h,K,N){return new CFt(h,K,N)};
this.bgChallenge=T0V(D.bgChallenge);this.ttlSeconds=cbk(Qm(D.challenge||""));this.mS=e(this.requestKey,_.r("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.VA.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",D);this.t6M=t==null?void 0:t.t6M;n5A(this.mS);var w;this.sk3=(w=t==null?void 0:t.sk3)!=null?w:function(h){_.fz(H.mGW.document,"visibilitychange",
function(){H.mGW.document.visibilityState==="visible"&&h()})}},gpF=function(D){if(!D.vm){var t={maxAttempts:5,
hY1:D.ttlSeconds*1E3};mrA(D.mGW);D.vm=D.f7c({mS:D.mS,z22:{disable:_.r("html5_web_po_disable_remote_logging"),rH:"aGIf",tVR:yE3("html5_web_po_experiment_ids"),p2c:_.r("wpo_dis_lfdms")?0:1E3,xmr:function(e){var V=j9B.get(e);V||(V=new cif(e),V=new $O(V),j9B.set(e,V));return V}},
i56:t,nV9:D.bgChallenge,mxc:M$k});D.zwd=Date.now();nOn(D.vm,function(){D.zwd=Date.now()});
x2D(D.vm,function(){return _.Z(function(e){return e.return(A6Z(D))})});
var H=D.rjc.bind(D);D.networkStatusManagerPromise&&D.ttlSeconds>0&&D.networkStatusManagerPromise.then(function(e){e.listen("publicytnetworkstatus-online",H)});
D.sk3(H)}};
LuO.prototype.rjc=function(){if(Date.now()>this.zwd+this.ttlSeconds*1E3){var D;(D=this.vm)==null||Pzn(D)}};
var A6Z=function(D){if(D.kCQ)return D.kCQ;if(!D.vm)throw Error("wj");D.kCQ=new Hy({vm:D.vm,mS:D.mS,e52:!0,onError:M$k,i56:D.t6M});return D.kCQ},XaD=function(D,t){D=new LuO(D,t);
gpF(D);A6Z(D)};var J64=_.iMY.ephemeralActionSelector,t4=function(D,t){this.store=D;this.queue=[];t==null||t.addEventListener("yt-navigate-start",this.reset.bind(this))};
t4.prototype.enqueue=function(D){var t=D.command,H=D.durationMs,e=D.elementToFocus;var V=D.label;var b=D.elementToFocus;D.command?V=_.OT("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:V,shortcut:_.OT("SHIFT_PLUS_ENTER")}):b&&(D=V+". "+_.OT("SHIFT_PLUS_ENTER")+" for more information.",V=_.OT("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:V,shortcut:_.OT("SHIFT_PLUS_ENTER")},D));H={announcement:V,durationMs:H!=null?H:8E3};t?H.command=t:e&&(e.classList.add("ephemeral-action-focusable-element"),H.selector=e.tagName+
".ephemeral-action-focusable-element");this.queue.push(H);Yki(this)};
t4.prototype.activate=function(D){var t=J64(this.store.getState());if(t){if(t==null?0:t.command)_.RQ(t.command),this.store.dispatch(KRB(null));if(t==null?0:t.selector)t=document.querySelector(t.selector),_.pYk(t);D.preventDefault()}};
var Yki=function(D){if(!J64(D.store.getState())&&D.queue.length){var t=D.queue.shift();t&&(D.previousAnnouncement===t.announcement&&(t.announcement+="\u00a0"),D.store.dispatch(KRB(t)),D.previousAnnouncement=t.announcement,D.timeoutId=setTimeout(function(){if(t.selector){var H;(H=document.querySelector(t.selector))==null||H.classList.remove("ephemeral-action-focusable-element")}D.store.dispatch(KRB(null));Yki(D)},t.durationMs))}};
t4.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(KRB(null));this.queue.length=0;this.timeoutId=void 0};
t4[Fc]=[_.sg,_.by(_.yN)];_.H2=new _.kI("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var l74=window.AbortController||YEA;var vpZ=new _.kI("AUTH_SERVICE_TOKEN");var AsV=_.zk(["about:blank"]),LmR;var pvH=new _.kI("API_IFRAME_TOKEN"),ddi=new _.kI("FETCH_FN_TOKEN"),xdF=new _.kI("PARSE_FN_TOKEN"),RDZ=new _.kI("WINDOW_REQUEST_TOKEN"),uqe=new _.kI("TEXT_DECODER_TOKEN");var f_a;f_a=new _.kI("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Wut=new _.kI("MISC_UI_SHARED_FLAGS_TOKEN");var I7Q=function(){};
I7Q.prototype.getFlag=function(D){if(D.configType!==2)throw Error("xj");return Qxg(D)};
var Qxg=function(D){switch(D.flagType){case "bool":return _.r(D.flagName);case "int":return _.mn(_.ZU(D.flagName));case "double":return _.ZU(D.flagName);case "string":return _.sa(D.flagName);case "int32_list":return yE3(D.flagName);case "int64_list":return yE3(D.flagName).map(function(t){return _.mn(t)});
case "string_list":return _.hW(D.flagName);default:throw Error("yj");}};var el=function(D,t,H){t=t===void 0?{}:t;yB.call(this,H===void 0?"uninitialized":H);this.env=D;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];t.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=t.shouldWaitOnAsyncImmediate)};
_.P(el,yB);el.prototype.init=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return t.processPluginOptions.shouldWaitOnAsyncImmediate?e.yield(D(t.env),2):(D(t.env),e.jumpTo(2));if(e.nextAddress!=4)return t.jobSet?e.yield(t.jobSet.completedResolver.promise,4):e.jumpTo(4);H=_.EK();H.parkOrScheduleJob(function(){t.transition("rendering")},10,"ci");
_.n2(e)})};
el.prototype.initialRender=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return t.processPluginOptions.shouldWaitOnAsyncImmediate?e.yield(D(t.env),2):(D(t.env),e.jumpTo(2));if(e.nextAddress!=4)return t.jobSet?e.yield(t.jobSet.completedResolver.promise,4):e.jumpTo(4);H=_.EK();H.parkOrScheduleJob(function(){t.transition("rendered")},10,"cr");
_.n2(e)})};
el.prototype.afterRenderImmediate=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return t.processPluginOptions.shouldWaitOnAsyncImmediate?e.yield(D(t.env),2):(D(t.env),e.jumpTo(2));if(e.nextAddress!=4)return t.jobSet?e.yield(t.jobSet.completedResolver.promise,4):e.jumpTo(4);H=_.EK();H.parkOrScheduleJob(function(){t.transition("after-render-deferred")},10,"carml");
_.n2(e)})};
el.prototype.afterRenderDeferred=function(D){var t=this;return _.Z(function(H){D(t.env);_.n2(H)})};_.JZ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var y6t={},BNH=(y6t.rendered={priority:0,callback:function(D){ERn(D.injector.resolve(mE))}},y6t);var S9V=new _.kI("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),zDt=new _.kI("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var D3O=function(D){this.callbackFnMap=D;this.configMap={}};
D3O.prototype.handleResponse=function(D){var t;if(D=(t=D.responseContext)==null?void 0:t.serviceTrackingParams)for(t=_.F(D),D=t.next();!D.done;D=t.next()){D=D.value;var H=D.params,e=D.service;if(H&&e){this.configMap[e]||(this.configMap[e]=new u$o);D=this.configMap[e];var V=void 0,b=(V=this.callbackFnMap)==null?void 0:V[e];H=_.F(H);for(e=H.next();!e.done;e=H.next())V=e.value,e=V.key,V=V.value,e&&V&&(D.set(e,V),b&&b(e,V))}}};
D3O.prototype.getConfig=function(D){return this.configMap[D]||void 0};
D3O[Fc]=[_.by(zDt)];var trv=!1,WmD=0,drR=null,u4V=null;var HWe=new _.kI("NETWORK_SLI_TOKEN");var e5v=function(D,t,H,e,V){this.networkSli=D;this.fetchFn=t;this.parseFn=H;this.requestFn=e;this.JSC$18534_textDecoder=V};
e5v.prototype.fetch=function(D,t,H){var e=this,V,b,a;return _.Z(function(w){V=Vri(e,D,t);a=(b=e.fetchFn)!=null?b:fetch;return w.return(a(V).then(function(h){return e.handleResponse(h,H)}).catch(function(h){_.Yw(h);
if((H==null?0:H.expectJsonStrict)&&h instanceof WM&&h.errorType===1)return Promise.reject(h)}))})};
var cN4=function(D,t,H,e){var V,b,a,w,h,K,N;return _.Z(function(k){switch(k.nextAddress){case 1:return V=Vri(D,t,H),_.$p(k,2),k.yield(fetch(V),4);case 4:b=k.yieldResult;_.yM(k,3);break;case 2:throw _.Pv(k),new WM(2,"Failed to parse streaming response",V.url);case 3:if(!b.redirected&&!b.ok)throw(a=D.networkSli)==null||a.failure(),new _.nZ("Streaming fetch request not ok",V.url);if(!b.body)throw new _.nZ("No response body in streaming response",V.url);w={};if(_.r("web_streaming_fast"))return h=b.body.getReader(),
k.return(bWt(D,h,w,e));K=b.body.pipeThrough(new TextDecoderStream).getReader();N=new _.UA;return k.return(q5O(D,K,N,HyV,w,e))}})},Vri=function(D,t,H){if(D.networkSli){var e=_.TW(_.Fy(t,"key"))||"/UNKNOWN_PATH";
D.networkSli.start(e)}e=H;_.r("wug_networking_gzip_request")&&(e=wc$(H));var V;return new ((V=D.requestFn)!=null?V:window.Request)(t,e)},bWt=function(D,t,H,e){var V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u,R,I,tT,ZV,ED,o$,jV;
return _.Z(function(i8){switch(i8.nextAddress){case 1:V=D.JSC$18534_textDecoder?new D.JSC$18534_textDecoder("utf-8"):new TextDecoder("utf-8"),b=[],a=0,w=function(){if(b.length===1)return b[0];for(var g6=new Uint8Array(a),Mu=0,LQ=_.F(b),DO=LQ.next();!DO.done;DO=LQ.next())DO=DO.value,g6.set(DO,Mu),Mu+=DO.length;return g6},_.$p(i8,2,3);
case 5:return i8.yield(t.read(),8);case 8:h=i8.yieldResult;K=h.value;if(N=h.done)return a>0&&(k=w(),T=k.indexOf(123),c=k.lastIndexOf(125),T!==-1&&c!==-1&&c>T&&(U=k.subarray(T,c+1),S=JSON.parse(V.decode(U)),HyV(H,S),L=void 0,(L=e)==null||L(H,S))),J=void 0,(J=D.networkSli)==null||J.success(),i8.return(H);b.push(K);a+=K.length;g=w();for(Q=void 0;(Q=g.indexOf(10))!==-1;){u=g.subarray(0,Q);R=u.indexOf(123);I=u.lastIndexOf(125);if(R!==-1&&I!==-1&&I>R){tT=u.subarray(R,I+1);try{ZV=JSON.parse(V.decode(tT)),
HyV(H,ZV),ED=void 0,(ED=e)==null||ED(H,ZV)}catch(g6){throw new WM(1,"Failed to parse streaming response object",V.decode(tT));}}o$=g.subarray(Q+1);b=[o$];a=o$.length;g=o$}i8.jumpTo(5);break;case 3:_.rN(i8);t.releaseLock();_.ox(i8,0);break;case 2:jV=_.Pv(i8);if(jV instanceof WM)throw jV;throw new WM(1,"Failed to process streaming response");}})},q5O=function(D,t,H,e,V,b){var a,w,h,K,N,k,T,c,U;
return _.Z(function(S){if(S.nextAddress==1)return S.yield(t.read(),2);a=S.yieldResult;w=a.value;if(h=a.done)return(K=D.networkSli)==null||K.success(),S.return(V);try{N=H.parse(w)}catch(L){throw new WM(1,"Failed to parse streaming response",w);}if(N!=null)for(k=_.F(N),T=k.next();!T.done;T=k.next())c=T.value,e(V,c),U=void 0,(U=b)==null||U(V,c);return S.return(q5O(D,t,H,e,V,b))})};
e5v.prototype.handleResponse=function(D,t){var H,e=(H=this.parseFn)!=null?H:JSON.parse;H=D.text().then(function(V){if((t==null?0:t.jspbResponseCtor)&&D.ok)return u7K(t.jspbResponseCtor,V);V=V.replace(")]}'","");if((t==null?0:t.expectJsonStrict)&&V)try{var b=e(V)}catch(w){throw new WM(1,"JSON parsing failed after fetch");}var a;return(a=b)!=null?a:e(V)});
D.redirected||D.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),H=H.then(function(V){_.Yw(new _.nZ("Error: API fetch failed",D.status,D.url,V));return Object.assign({},V,{errorMetadata:{status:D.status}})}));
return H};
e5v[Fc]=[_.by(HWe),_.by(ddi),_.by(xdF),_.by(RDZ),_.by(uqe)];var FJF=new _.kI("NETWORK_MANAGER_TOKEN");var aig=[1,2,4,8,16,30],ZWi=function(D){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=D.maxTimeMs;this.maxFrameCount=D.maxFrameCount===void 0?Math.ceil(60*D.maxTimeMs/1E3):D.maxFrameCount;D=_.F(aig);for(var t=D.next();!t.done;t=D.next())this.brokenFrameSummarizers.push(new w_g(t.value/60*1E3))},stY=function(D){var t=D.frameCountInternal>=D.maxFrameCount;
return D.elapsedTimeMs>=D.maxTimeMs||t};
ZWi.prototype.summarize=function(){for(var D=[],t=_.F(this.brokenFrameSummarizers),H=t.next();!H.done;H=t.next())H=H.value,H=H.brokenFrameCount!==0?{severityMs:Math.round(H.targetFrameTimeMs),eventCount:H.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(H.averageDurationBetweenEventsMs)}:void 0,H&&D.push(H);return{summaries:D,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.ql.Object.defineProperties(ZWi.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 w_g=function(D){this.targetFrameTimeMs=D;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.ql.Object.defineProperties(w_g.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var h5Z=function(){};
h5Z.prototype.start=function(D,t){var H=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var e=new ZWi({maxTimeMs:D});this.monitor=e;this.lastSummaryInternal=void 0;this.metadataToLog=t;return new Promise(function(V){var b=function(a){if(a===void 0)H.stop(),V(void 0);else if(H.monitor!==e)a=Object.assign({},e.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),V(a);else{var w=H.monitor;if(!stY(w)){w.frameCountInternal++;if(w.prevTime===
void 0)w.startTime=a;else for(var h=a-w.prevTime,K=_.F(w.brokenFrameSummarizers),N=K.next();!N.done;N=K.next()){N=N.value;var k=N.currTimeMs;N.currTimeMs+=h;h>N.targetFrameTimeMs+2&&(N.brokenFrameCount++,N.timeOfFirstBrokenFrameMs===void 0&&(N.timeOfFirstBrokenFrameMs=k),N.timeOfLastBrokenFrameMs=k)}w.prevTime=a}stY(H.monitor)?V(H.stop()):_.Jy.addJob(b,5,0)}};
_.Jy.addJob(b,5,0)})};
h5Z.prototype.stop=function(D){if(!this.monitor)return this.lastSummaryInternal;var t=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(t.monitoringDurationMs){D=D!=null?D:this.metadataToLog;var H={droppedFramesSummary:t,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};D&&(H[D.type]=D.data);_.L7("manualSmoothnessMeasurement",H)}this.monitor=void 0;this.lastSummaryInternal=t;this.metadataToLog=void 0;return t};_.GtH=new _.kI("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var EzF;EzF=function(D){this.JSC$18556_expiringStorage=new mh(D)};
_.KJY=function(D){if(_.ICX()&&(D=_.YO8(_.oA()+"::"+D)))return new EzF(D)};
EzF.prototype.set=function(D,t,H){H=H!==void 0?Date.now()+H:void 0;this.JSC$18556_expiringStorage.set(D,t,H)};
EzF.prototype.get=function(D){return this.JSC$18556_expiringStorage.get(D)};
EzF.prototype.remove=function(D){this.JSC$18556_expiringStorage.remove(D)};var NMb=new _.kI("SESSION_STORAGE");_.V0=function(){};
_.V0.getInstance=function(){var D=_.RD("ytglobal.storage_");D||(D=new _.V0,_.bg("ytglobal.storage_",D));return D};
_.V0.prototype.estimate=function(){var D,t,H;return _.Z(function(e){D=navigator;return((t=D.storage)==null?0:t.estimate)?e.return(D.storage.estimate()):((H=D.webkitTemporaryStorage)==null?0:H.queryUsageAndQuota)?e.return(Q3V()):e.return()})};
_.bg("ytglobal.storageClass_",_.V0);var ex8=0;var ZTV=!1;var ktb=_.zk(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),TMv=_.zk(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var N4F={"/":_.xS,"/?feature=ytca":_.xS,"/feed/downloads":_.P3V};var c$e=OMZ.continuationCommandSelector,Tk=function(D,t,H){this.JSC$18572_upliftPromise=D;this.store=t;this.JSC$18572_persistentStorePromiseAccessor=H};
Tk.prototype.shouldPreferLocalResponse=function(D){return D.browseId==="FEdownloads"||D.browseId==="FEsmart_downloads"&&_.r("kevlar_modern_downloads_page")?!0:!1};
Tk.prototype.localInnertubeResponse=function(D){var t=this;return _.Z(function(H){return D.browseId==="FEdownloads"?_.r("kevlar_modern_downloads_page")?H.return(jtH(t)):H.return($3Y(t)):D.browseId==="FEsmart_downloads"&&_.r("kevlar_modern_downloads_page")?H.return(iWi(t)):H.return(Promise.reject(Error("Aj")))})};
Tk.prototype.canProvideFallbackResponse=function(){return!0};
Tk.prototype.localFallbackInnertubeResponse=function(D){var t=this,H,e,V;return _.Z(function(b){switch(b.nextAddress){case 1:return b.yield(t.JSC$18572_persistentStorePromiseAccessor(),2);case 2:H=b.yieldResult;if(D.browseId!=="SPaccount_downloads"||!H){b.jumpTo(3);break}return b.yield(i1T(H),4);case 4:if(e=b.yieldResult)return b.return(_.qP(e));case 3:return D.browseId==="FEwhat_to_watch"?b.return(r$Y(t)):(V=_.r("web_offline_continuation_automatic_retry")||_.r("web_offline_continuation_retry_button"))&&
D.continuation?b.return(OWe(t)):b.return(U3e(t))}})};
var r$Y=function(D){var t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(D.JSC$18572_upliftPromise,2);t=_.HpT(D.store.getState().entities);return t.length?H.return(ozg(D,t)):H.return(U3e(D))})},$3Y=function(D){var t,H;
return _.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$18572_upliftPromise,2);if(e.nextAddress!=3)return t=PRH([{offlineItemSectionRenderer:{}}]),e.yield(nzH(D,t),3);H=e.yieldResult;H.onResponseReceivedActions=[jN("REFRESH_DOWNLOADS")];return e.return(H)})},jtH=function(D){var t,H,e,V,b,a,w,h,K,N,k,T,c,U,S,L;
return _.Z(function(J){if(J.nextAddress==1)return J.yield(D.JSC$18572_upliftPromise,2);if(J.nextAddress!=3)return t=D.store.getState(),H=t.entities,e=_.AV(H),V=_.gO(H),b=_.XMT(t),a=_.SK$(t),w=_.fwA(t),h=_.bpR(H),K=_.m1(e),N=_.JV(H),k=_.wMD(H),T=_.AU3(t),c=_.dO(t),U={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.pSD(e,V,h,k,b,a,K,N,w,T,c),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},S="",_.r("kevlar_modern_downloads_skip_downloads_title")||
(S=_.OT("DOWNLOADS",void 0,"Downloads")),J.yield(CRF(D,U,S),3);L=J.yieldResult;L.onResponseReceivedActions=[jN("REFRESH_DOWNLOADS")];return J.return(L)})},iWi=function(D){var t,H,e,V,b,a,w,h,K;
return _.Z(function(N){if(N.nextAddress==1)return N.yield(D.JSC$18572_upliftPromise,2);if(N.nextAddress!=3)return t=D.store.getState(),H=t.entities,e=_.AV(H),V=_.m1(e),b=_.JV(H),a={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.xED(e),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},w=_.OT("SMART_DOWNLOADS",void 0,"Smart downloads"),h=loA(V,b),N.yield(CRF(D,a,w,h),3);K=N.yieldResult;K.onResponseReceivedActions=
[jN("REFRESH_DOWNLOADS")];return N.return(K)})},U3e=function(D){var t,H;
return _.Z(function(e){if(e.nextAddress==1)return e.yield(bI(D.JSC$18572_upliftPromise,D.store),2);t=e.yieldResult;H=PRH([TPV(t)]);return e.return(nzH(D,H))})},OWe=function(D){var t,H,e,V;
return _.Z(function(b){if(b.nextAddress==1)return t={},H=c$e(D.store.getState()),_.YP(t,_.RH,H),b.yield(bI(D.JSC$18572_upliftPromise,D.store,t,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);e=b.yieldResult;V={};_.YP(V,_.$oQ,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:e}}}],targetId:"browse-feedFEwhat_to_watch"});return b.return({responseContext:{},onResponseReceivedActions:[V]})})},PRH=function(D){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:D}}}}]}}},ozg=function(D,t){var H,e;
return _.Z(function(V){var b={contents:$G(t)};H=b&&b.contents?b:{};_.r("kevlar_modern_downloads_page")&&(H=Object.assign({},_.RyT(t),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));e={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:H}}}]}};return V.return(nzH(D,e))})},nzH=function(D,t){var H,e;
return _.Z(function(V){if(V.nextAddress==1)return V.yield(D.JSC$18572_persistentStorePromiseAccessor(),2);if(V.nextAddress!=3)return H=V.yieldResult,V.yield(FC(H),3);e=V.yieldResult;return V.return({responseContext:{},contents:t,topbar:e})})},CRF=function(D,t,H,e){var V,b;
return _.Z(function(a){if(a.nextAddress==1)return a.yield(D.JSC$18572_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3)return V=a.yieldResult,a.yield(FC(V),3);b=a.yieldResult;var w=a.return;var h=H;var K=e;h=h===void 0?"":h;K=K===void 0?"":K;h={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:h}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.OT("SETTINGS",void 0,"Settings"),accessibilityText:_.OT("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:_.FK("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:K}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:h};
return w.call(a,{responseContext:{},contents:t,topbar:b,header:{pageHeaderRenderer:h}})})};var m3F=function(){this.moduleRegistry={};this.fetchCount=0};
m3F.prototype.isFetching=function(){return this.fetchCount>0};
var xK=function(D,t){D.moduleRegistry[t.toString()]={asyncId:t,isFetching:!1};return D};
m3F.prototype.JSC$18583_loadModules=function(){for(var D=this,t=new Map,H=[],e=_.F(_.RE.apply(0,arguments)),V=e.next();!V.done;V=e.next()){V=V.value;var b=this.moduleRegistry[V];b?b.resolver?t.set(V,b.resolver):(b.resolver=new _.TK,t.set(V,b.resolver),H.push(b.asyncId),b.isFetching=!0):(b=new _.TK,t.set(V,b),b.resolve(void 0))}H.length&&(this.fetchCount+=1,_.pr(_.gf.getMultipleAsync.apply(_.gf,_.A6(H)).then(function(a){for(var w=0;w<H.length;w++){var h=a[w],K=D.moduleRegistry[H[w].toString()];K.isFetching=
!1;K.resolver.resolve(h)}}).catch(function(a){for(var w=_.F(H),h=w.next();!h.done;h=w.next()){h=h.value;
var K=D.moduleRegistry[h.toString()];K.resolver=void 0;K.isFetching=!1;t.get(h.toString()).reject(a)}}),function(){--D.fetchCount}));
return Promise.all([].concat(_.A6(t.values())).map(function(a){return a.promise}))};_.R6=new _.kI("MODULE_REGISTRY_TOKEN");var MrH={},S5Q=(MrH.rendered={priority:0,callback:function(D){a:{var t=void 0;try{var H;b:{if(_.RzD()){var e=_.JVD(_.oA()+"::pom");if(e){var V=new DQ(e);break b}}V=void 0}var b=(H=V)==null?void 0:H.get("role_text");if(!b)break a;t={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:b}]}}}}}}catch(h){}t&&D.injector.resolve(_.aA).resolveCommand(t)}try{var a=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(a){var w=JSON.parse(a);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
w&&D.injector.resolve(_.aA).resolveCommand(w)}}catch(h){}}},MrH);var X_i,fiY={},LJg=(fiY.initialized={priority:10,callback:function(){X_i=PX()}},fiY.rendering={callback:function(D){var t;
return _.Z(function(H){if(H.nextAddress==1)return H.yield(X_i,2);t=H.yieldResult;if(!t.endpoint)throw Error("Cj`"+_.VA.location.href);MP(D,t);_.n2(H)})}},fiY);var A$H={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/rq-implicit-test-rule-widget/,weight:0},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.A6(_.r("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(D){var t=D.stack;if(t.includes("chrome://")||t.includes("chrome-extension://")||D.message.includes("chrome-extension://")||t.includes("moz-extension://")||t.includes("local.adguard.org")||t.includes("auctioneer3.50million.club")||t.includes("youtubedownloader")||
t.includes("youtube_home_page")||t.includes("is_youtube_video_no_longer_available")||t.includes("switchScreenSizeHack")||t.includes("yt_main_big_banner.js")||t.includes("YouTubeCenter.js")||t.includes("/mytube.js")||t.includes("JSON.parseWrapper")||t.includes("/inj_js/common.js")||t.includes("firebug-lite")||t.includes(".repl.co/")||t.includes("linkfix")||t.includes("playAfterAd")||D.message.includes("Access is denied for this document")&&t.includes("<anonymous>")||D.fileName==="user-script"||D.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
t.includes("<anonymous>"))return!0;if(t.includes("https://www.youtube.com"))return!1;D=t.split("\n");if(!D.length)return!1;if(D.length<=3&&t.includes("s.onloadeddata"))return!0;t=0;for(var H=_.F(D),e=H.next();!e.done;e=H.next())e=e.value,(e.includes("https://")||e.includes("http://"))&&t++;return t/D.length>.95},
weight:0},{callback:function(D){return D.message==="Unknown Error"&&D.name.indexOf("NS_")===0},
weight:100},{callback:function(D){if(!_.Et)return!1;var t=D.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||D.message.includes("available to complete this operation"),H=D.stack.includes("webcomponents")&&D.message==="Object doesn't support this action";D=D.message.includes("object that does not implement interface Element");return t||H||D},
weight:0},{callback:function(D){return D.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(D){return D.message==="Operation is not supported"&&(D.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(D){return D.stack.includes("eval code (eval (code:1:1)")||D.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(D){return D.message.includes("Permission denied")&&D.stack.includes("this.domHandler")?!0:D.name.includes("TypeError")&&D.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(D){if(!D.stack)return!1;var t=D.stack.trim().split("\n");t.length&&t[0].endsWith("Error: "+D.message)&&t.shift();t.length&&t[t.length-1].includes("at window.onerror (")&&t.pop();if(!t.length)return!0;if(D.message==="Script error.")return t[0].includes("www.youtube.com")||t.length>=2&&t[0].startsWith("at new")&&t[1].startsWith("at window.onerror");if(D.message==="Unexpected token")return!0;D=_.F(t);for(t=D.next();!t.done;t=D.next())if(t=t.value,!(t.includes("<anonymous>")||
t.startsWith("load@")||t.startsWith("global code@")||t.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(D){return D.message==="Cannot read property 'experiments'"&&D.stack.includes("/s/player/")},
weight:500},{callback:function(D){return D.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(D){return D.stack.includes("/embed.js")?(D.params&&D.params&&(D.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.r("use_error_suppression"))var D=_.YC("SUPPRESS_CLIENT_ERRORS",!1);else{if(D=_.cg)D=/Chrome\/(\d+)/.exec(_.TV()),D=(D?parseFloat(D[1]):NaN)>=66;D=!(D||_.TE&&_.kf(65)||_.di&&_.kf(12.1)||eE&&_.kf(79))}return D},
weight:500}]};var gzg={},J$b=(gzg.initialized={priority:10,callback:function(D){D.injector.addProvider({provide:hJQ,useValue:D.root});D.injector.addProvider({provide:qYi,useValue:fgk});D.injector.addProvider({provide:Fdt,useValue:A$H});var t={};D.injector.addProvider((t.provide=a1b,t.useFactory=function(H,e){return function(){L98(H,e)}},t[Fc]=[qYi,
Fdt],t));D.injector.addProvider({provide:xn,useClass:xn})}},gzg);var Y5t={},lit=(Y5t.initialized={priority:3,callback:function(){var D;if(D=MRK()){D=D.replace("/",".");var t=_.Ph();t.set("tz",D);t.save();D=!0}else D=!1;D||(D=_.Ph(),D.set("utco",-Math.floor((new Date).getTimezoneOffset())),D.save())}},Y5t);var vzY={},p_4=(vzY.initialized={priority:10,callback:function(D){D.injector.resolve(xn).start();D=_.th();var t=_.lh("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.lh("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.lh("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.lh("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.Gk(_.EZA(),{mainAppWeb:Object.assign({},D,{pageType:t})});_.Gk(NIA(),{mainAppWeb:Object.assign({},D,{pageType:t})});
_.Gk(kdV(),{mainAppWeb:D});_.Gk(TIX(),{mainAppWeb:D});ooa(function(){_.EG(kdV(),"FAILURE");_.EG(TIX(),"FAILURE")});
OTV();Ufk();LZV()}},vzY);var d3Z={},x3H=(d3Z.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.vh("dl"),_.EK().processSignal("pcl");else{var D=function(){_.vh("dl");_.EK().processSignal("pcl");window.removeEventListener("load",D)};
window.addEventListener("load",D)}}},d3Z);var R5Z={},uwg=(R5Z.rendering={priority:0,callback:function(){var D=_.EK();D.parkOrScheduleJob(function(){D.processSignal("eocs")},10,"eor",5E3)}},R5Z);var WJi=function(){};
_.P(WJi,ER);
WJi.prototype.resolveCommand=function(D,t){var H,e,V,b,a,w,h,K;return _.Z(function(N){V=(H=_.O(D,_.Azn))==null?void 0:(e=H.dialog)==null?void 0:e.commentReplyDialogRenderer;if(!V)throw new _.nZ("No dialog in createCommentReplyDialogEndpoint");a=(b=t.form)==null?void 0:b.event;if(!a)throw new _.nZ("Event not passed in when resolving command");w=_.F(a.composedPath());for(h=w.next();!h.done;h=w.next())if(K=h.value,K.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||K.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return K.showReplyDialog(V),N.return();
_.n2(N)})};var bT=function(){};
_.P(bT,ER);bT.prototype.resolveCommand=function(D){var t,H,e;return _.Z(function(V){if(V.nextAddress==1)return t=_.O(D,tg6),(H=t)!=null&&H.externalChannelId?V.yield((0,_.QsD)("NSzT5"),2):V.return();e=_.IiH;return V.yield(e(t.externalChannelId),0)})};var q8=function(D){this.pageRequestService=D;this.JSC$18601_prefetchCoordinator=uFQ()};
_.P(q8,ER);q8.prototype.resolveCommand=function(D){var t=this,H,e,V,b;return _.Z(function(a){if(a.nextAddress==1){H=_.O(D,N3B);if((e=H)==null||!e.taskId)throw Error("Dj");V=H.taskId;_.$p(a,2);return a.yield(_.K5f(t.pageRequestService,D,{},"").then(function(w){if(!w)throw Error("Ej");},function(w){throw Error("Fj`"+w);
}),4)}if(a.nextAddress!=2)return QvF(t.JSC$18601_prefetchCoordinator,V),_.yM(a,0);
b=_.Pv(a);gb(t.JSC$18601_prefetchCoordinator,V,b);_.n2(a)})};
q8[Fc]=[o6];var FR=function(D,t){this.innertubeTransportService=D;this.JSC$18605_commandHandler=t};
_.P(FR,ER);FR.prototype.resolveCommand=function(D){var t=this,H,e,V;return _.Z(function(b){if(b.nextAddress==1){H=_.O(D,KO9);if(H.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||H.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")e=H.boolValue?2:1,_.Uz.getInstance().setState(e,!0,!0);return b.yield(_.BZ(t.innertubeTransportService,D),2)}V=b.yieldResult;QtH(t,V);_.n2(b)})};
var QtH=function(D,t){t.actions&&t.actions.forEach(function(H){D.JSC$18605_commandHandler.resolveCommand(H)})};
FR[Fc]=[_.xg,_.aA];var ab={},y$Z=(ab.addToPlaylistEndpoint=qQ(Fp),ab.addToToastAction=qQ(E$),ab.adsControlFlowOpportunityReceivedCommand=qQ(pq),ab.audioTrackSelectActionCommand=qQ(id),ab.backgroundAudioPlaybackCommand=qQ(rY),ab.captionLanguageSelectActionCommand=qQ(UX),ab.captionPickerEndpoint=qQ(oY),ab.changeMiniAppPlayStateCommand=qQ(aY),ab.changeTimelyActionVisibilityCommand=qQ(GR),ab.channelCreationFormEndpoint=qQ(tg),ab.clearLocationCommand=qQ(q7),ab.clearUrlParamCommand=qQ(wY),ab.copyLinkCommand=qQ(Xp),ab.copyTextEndpoint=
qQ(Rr),ab.createCommentReplyDialogEndpoint=kzT(WJi),ab.createPlaylistServiceEndpoint=qQ(fO),ab.dismissDialogEndpoint=qQ(sX),ab.dismissPlayerOverlayCommand=qQ(P6),ab.entityUpdateCommand=qQ(W8),ab.feedbackEndpoint=qQ(yS),ab.getAnswerCommand=qQ(Heb),ab.getPaymentsClientTokenCommand=qQ(kU),ab.getTranscriptEndpoint=qQ(KD),ab.googlePaymentBillingCommand=qQ(TR),ab.googlePaymentPurchaseManagerCommand=qQ(cE),ab.hideEngagementPanelEndpoint=qQ(hg),ab.hideSheetCommand=qQ(GC),ab.hideSnackbarCommand=qQ(qq),ab.insertRichSectionCommand=
qQ(eK),ab.listMutationCommand=qQ(Ve),ab.logGtmCommand=qQ(H6),ab.notifyDropdownOptionSelectedCommand=qQ(ZI),ab.openAdAllowlistInstructionCommand=qQ(_.dy),ab.openOnePickAddVideoModalCommand=qQ(LO),ab.persistSubscriptionsDisplayPreferencesCommand=qQ(v6),ab.pingingEndpoint=qQ(xa),ab.playlistEditEndpoint=qQ(gY),ab.playlistVotingRefreshPopupCommand=qQ(Jg),ab.profileCardCommand=qQ(lX),ab.refreshPanelEndpoint=qQ(EX),ab.saveImageToDeviceEndpoint=qQ(uX),ab.scrollToSectionEndpoint=kzT(egO),ab.seekToVideoTimestampCommand=
qQ(nO),ab.selectCountryCommand=qQ(pO),ab.setCookieCommand=qQ(dY),ab.setLocalStorageCommand=qQ(aa),ab.setPrefStorageEntryCommand=qQ(RY),ab.setSettingEndpoint=qQ(FR),ab.sfvAudioItemPlaybackCommand=qQ(CO),ab.shareImageCommand=qQ(ud),ab.sharingProviderDataCommand=qQ(W6),ab.showAudioTrackPickerActionCommand=qQ(mo),ab.showCaptionLanguageSelectActionCommand=qQ(M7),ab.showCreatorChatbotEngagementPanelCommand=qQ(bT),ab.showDialogCommand=qQ(k9),ab.showEngagementPanelEndpoint=qQ(TC),ab.showSheetCommand=qQ(c6),
ab.showSnackbarCommand=qQ(Fe),ab.showTransientPlayerScrimOverlayCommand=qQ(SK),ab.submitFormWithValidationFlowCommand=qQ(DI),ab.talkToRecsDeselectCommand=qQ(w$),ab.talkToRecsNextCommand=qQ(ZW),ab.talkToRecsSelectCommand=qQ(s$),ab.talkToRecsUpdateTextCommand=qQ(hN),ab.toggleEngagementPanelCommand=qQ(jK),ab.undoFeedbackEndpoint=qQ(zM),ab.updateEngagementPanelContentCommand=qQ($9),ab.updateUrlParamCommand=qQ(Nq),ab.verifyCommand=qQ(tg),ab.webNativeShareCommand=qQ(IY),ab.webSubmitFormCommand=qQ(Y9),ab.ACK_PLAYABLES_3P_DATA_CONSENT=
qQ(Qe),ab.CANCEL_NAVIGATION=qQ(ye),ab.COPY_SHARE_URL=qQ(B6),ab.MINI_APP_EXIT_DIALOG_SEEN=qQ(DW),ab.MINI_APP_OPEN_URL=qQ(zC),ab.REQUEST_MINI_APP_FULLSCREEN=qQ(tN),ab.RESUME_NAVIGATION=qQ(HE),ab.SHARE_PLAYABLE_WITH_HIGH_SCORE=qQ(eh),ab.TELL_US_WHY=qQ(B8),ab);_.r("web_enable_prefetching_videos_on_home")&&(y$Z.prefetchWatchCommand=qQ(q8),y$Z.registerTasksCommand=qQ(Ym));_.r("enable_share_panel_navigation_logging_fix_on_web")&&(y$Z.shareEntityServiceEndpoint=qQ(KO));var os3=Object.assign({},y$Z);var BMt={},z5Q=(BMt.initialized={priority:10,callback:mfD},BMt);var DcO={},tTF=(DcO.initialized={callback:function(D){var t={},H={};uTT().install((t.document_disposed={callback:function(){_.r("finalize_all_timelines")?A78():gE();xrK("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.FAD();var e=D.injector.resolve(xn);e.intervalId!==void 0&&(e.intervalId&&_.Jy.cancelJob(e.intervalId),e.intervalId=void 0,--e.currentPartitionIndex,e=t1f(e),e>0&&Zo6({mainAppWeb:_.th(),survivalSli:{partitionMinute:e,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));Hon(NB);kS!=null&&
kS.flush();GK&&GK.snapshotAndFlush();e=_.F(j9B.values());for(var V=e.next();!V.done;V=e.next())V.value.snapshotAndFlush()}},t),(H.flush_logs={callback:function(){_.Ap()}},H))}},DcO);var HNt={},etQ=(HNt.rendered={priority:0,callback:function(){var D=new heB;D.increment("STARTED");if(_.YC("LOGGED_IN")&&!_.YC("IS_DBSC",!1)&&_.YC("SERVER_VERSION")!=="test"&&_.YC("SERVER_VERSION")!=="dev"&&!QBo()&&!Iff()){D.increment("EXECUTING");var t=document.createElement("iframe");t.style.display="none";_.hDV(t,2,_.dw("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.YC("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(t);D.increment("DONE")}}},
HNt);var VTv={},bNb=(VTv.rendered={callback:function(){uFQ().resume()}},VTv);var qHO={acknowledgeChannelTouStrikeCommand:mP(Ia),addToPlaylistServiceEndpoint:mP(B4),addToPlaylistEndpoint:mP(B4),addUpcomingEventReminderEndpoint:mP(we),browseEndpoint:mP(mHO),channelCreationFormEndpoint:mP(vE),channelCreationServiceEndpoint:mP(pD),claimLegacyYoutubeChannelEndpoint:mP(nD),clearSearchHistoryEndpoint:mP(H4),clearWatchHistoryEndpoint:mP(es),commerceActionCommand:MF(cq),createBackstagePostEndpoint:mP(iW),createBroadcastCommand:mP(ZH),createCommentEndpoint:mP(g$),createCommentReplyEndpoint:mP(AN),
createLiveChatPollEndpoint:mP(sQ),createPlaylistServiceEndpoint:mP(zP),crossAccountChannelTransferEndpoint:mP(qb),deleteLiveChatMessageCommand:mP(hm),deletePlaylistEndpoint:mP(DS),deleteVideoEndpoint:mP(Ky),dismissalEndpoint:mP(QG),feedbackEndpoint:mP(yG),flagEndpoint:mP(qh),getAccountSwitcherEndpoint:mP(bs),verifyCommand:mP($U),getAccountsListInnertubeEndpoint:mP(aq),getCommentsFromInboxCommand:mP(fI),getDownloadActionCommand:mP(v4),getFlowCommand:MF(tm),getKidsBlocklistPickerCommand:mP(FT),getNotificationMenuEndpoint:mP(Xtb),
getPaymentInstrumentsParamsCommand:mP(UU),getPaymentsClientTokenCommand:MF(cq),getPdgBuyFlowCommand:mP(Qq),getReportFormEndpoint:mP(aF),getSearchInVideoCommand:mP(sU),getAnswerCommand:mP(ZS),getSurveyCommand:mP(EU),getTranscriptEndpoint:mP(km),getPostVideoPreviewEndpoint:mP(O$),decorateMessageEndpoint:mP(r$),likeEndpoint:mP(d$),liveChatActionEndpoint:mP(Nb),liveChatEndpoint:mP(KI),liveChatItemContextMenuEndpoint:mP(GP),liveChatPurchaseMessageEndpoint:mP(kc),liveChatReplayEndpoint:mP(EQ),manageLiveChatUserEndpoint:mP(c4),
metadataUpdateCommand:mP(Ss),moderateLiveChatEndpoint:mP(P4),modifyChannelNotificationPreferenceEndpoint:mP(Jm),notificationOptOutEndpoint:mP(Yc),openSuperStickerBuyFlowCommand:mP(TP),performCommentActionEndpoint:mP(Xe),playlistEditEndpoint:mP(Hq),playlistEditorEndpoint:mP(tJ),recordNotificationInteractionsEndpoint:mP(ls),reelWatchEndpoint:mP(e6),refreshPanelEndpoint:mP(de),removeUpcomingEventReminderEndpoint:mP(nI),resolveLocationCommand:mP(Mb),revealBusinessEmailCommand:mP(CD),searchEndpoint:mP(_.fOQ),
sendLiveChatMessageEndpoint:mP(CI),sendLiveChatVoteEndpoint:mP(mQ),setSettingEndpoint:mP(xU),shareEntityServiceEndpoint:MF(WE),sharingProviderDataCommand:mP(G8),showEngagementPanelEndpoint:mP(xc),showMoreDrawerCommand:mP(us),showSheetCommand:mP(W4),showDialogCommand:mP(Rq),subscribeEndpoint:mP(Ra),transcriptSubmitCaptionCorrectionCommand:mP(Nh),undoFeedbackEndpoint:mP(zR),unsubscribeEndpoint:mP(uW),updateBackstagePostEndpoint:mP(oa),updateCommentEndpoint:mP(YU),updateCommentReplyEndpoint:mP(JN),updateCommentsSettingsEndpoint:mP(lW),
updateCreatorChannelInnertubeCommand:mP(Mq),updateKidsBlacklistEndpoint:mP(wb),updateEngagementPanelContentCommand:mP(Iq),updatePdgFeatureEnablementCommand:mP(yq),updatedMetadataEndpoint:mP(X8),validateChannelHandleCommand:mP(Sh),updateChannelPageSettingsEndpoint:mP(m7),verifyAgeEndpoint:mP(DH),watchEndpoint:MF(pp),whitelistEditEndpoint:mP(T8),ypcCancelRecurrenceEndpoint:mP(j6),ypcCompleteTransactionEndpoint:mP($m),ypcFixInstrumentEndpoint:mP(rb),ypcGetCartEndpoint:mP(iN),ypcGetOffersEndpoint:mP(OU),
ypcHandleTransactionEndpoint:MF(oF),ypcLogWalletAnalyticDataEndpoint:mP(Pq),ypcOffersEndpoint:mP(ny),ypcPauseSubscriptionCommand:mP(Cy),ypcRedeemCodeEndpoint:mP(mC),ypcResumeSubscriptionCommand:mP(Mh),ypcUpdateFopEndpoint:mP(rb)},wa={},FgH=(wa.GET_ACCOUNT_MENU=mP(F8),wa.GET_NOTIFICATIONS_MENU=mP(SFO),wa.GET_NOTIFICATIONS_INBOX=mP(LI),wa.GET_UNSEEN_NOTIFICATION_COUNT=mP(ge),wa.GET_USER_MENTION_SUGGESTIONS=mP(U$),wa.LOAD_GUIDE=mP(Mbb),wa.SUBMIT_FEEDBACK=mP(BE),wa),Z5={},alY=(Z5.CONTINUATION_REQUEST_TYPE_BROWSE=
mP(PE),Z5.CONTINUATION_REQUEST_TYPE_SEARCH=mP(hJ),Z5.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=mP(x$),Z5.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=mP(Vq),Z5.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=mP(LD),Z5.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=mP(fD),Z5.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=mP(bN),Z5.CONTINUATION_REQUEST_TYPE_GET_PANEL=mP(pI),Z5),w1i={player:MF(pp),watchNext:mP(df)},ZNb={player:MF(pp),reelItemWatch:mP(e6),reelWatchSequence:mP(VY)},sKF={watchEndpoint:MF(Rm)},htF=
{commandEndpointMap:qHO,signalEndpointMap:FgH,continuationEndpointMap:alY,watchEndpointMap:w1i,reelWatchEndpointMap:ZNb,streamingEndpointMap:sKF};var Gxe,EOF,KgY;_.NVO=((EOF=(Gxe=window).matchMedia)==null?void 0:(KgY=EOF.call(Gxe,"(prefers-reduced-motion: reduce)"))==null?void 0:KgY.matches)||!document.startViewTransition;var kxF={},TVF={disableAllTransitions:_.NVO,ignoredErrors:(kxF.DOCUMENT_HIDDEN=!0,kxF.WINDOW_SIZE_CHANGED=!0,kxF.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,kxF),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var ceH=_.zk("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),jKO=function(D){this.viewTransitionCoordinator=D;this.isBrowseTransitionEnabled=_.sa("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.r("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.r("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.r("enable_plj_landing_page");this.lockupToWatchPlayerTransitionType=_.sa("web_thumbnail_to_watch_player_transition_type");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){D=
_.ZU("web_page_transition_exit_ms");var t=_.ZU("web_page_transition_wait_ms"),H=_.ZU("web_page_transition_enter_ms"),e=_.ZU("web_page_transition_watch_exit_ms"),V=_.ZU("web_page_transition_watch_wait_ms"),b=_.ZU("web_page_transition_watch_enter_ms");if(!isNaN(D)||!isNaN(t)||!isNaN(H))if(D=A$u(ceH,D,t,H,e,V,b))t=document.createElement("style"),t.textContent=k76(D),document.head.appendChild(t)}};
jKO.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var D={};this.viewTransitionCoordinator.registerElement(document.documentElement,(D.slide="root-slide",D["lockup-to-watch"]="root-lockup-to-watch",D["learning-journey"]="root-learning-journey",D))}};
_.MDV=function(D,t){D.isLockupToWatchTransitionEnabled&&D.isLockupThumbnailRegistrationEnabled&&(D.registeredLockupThumbnail?D.lockupThumbnailRegisteredFromWatchEndpoint?_.Yw(new _.nZ("Lockup thumbnail registration order is incorrect.")):_.Yw(new _.nZ("Lockup thumbnail already registered.")):(D.registeredLockupThumbnail=t,_.$cY(D,t)))};
_.$cY=function(D,t){var H={};D.viewTransitionCoordinator.registerElement(t,(H["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",H),!0)};
jKO[Fc]=[qk4];var MHk={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 XoV=["videoPrimaryInfoRenderer","title"],fpT=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var iNY;iNY=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.rei=_.l(function(D){D=_.FQ(D,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var t=D.data,H=D.playlistData,e=D.expanded,V=D.onExpandClick,b=D.isReadyToResume,a=function(){var N;return!((N=H())==null||!N.contents)},w=function(){var N=H();
return N&&N.totalVideos&&N.currentIndex!==void 0?N.currentIndex+1+" / "+N.totalVideos:""};
D=_.$X(function(){_.s6(_.qS().resolve(_.dL));return!1});
var h=_.$X(function(){a()&&V&&V()}),K={};
return _.G("ytd-miniplayer-info-bar",{class:_.jQ("ytdMiniplayerInfoBarHost",(K.ytdMiniplayerInfoBarHasPlaylistData=a,K)),"on:click":h},_.G("div",{class:"ytdMiniplayerInfoBarContent"},_.G("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":D},_.G(_.$7,{text:function(){var N=t();var k=H();if(k==null?0:k.contents){var T;N=(T=_.vTk(k))==null?void 0:T.title}else N=N==null?void 0:N.miniplayerTitle;return L6R(N)},
noEndpoints:!0,ellipsisTruncate:!0})),_.G("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.G(_.E,{cond:b,then:function(){return _.G(E_f,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:iNY})}}),_.G("h1",null,_.G(_.$7,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var N=t();var k=H();N=b()?{simpleText:_.OT("CONTINUE_WATCHING",void 0,"Continue watching")}:(k==null?0:k.contents)?k.titleText:N==null?void 0:N.miniplayerSubtitle;return L6R(N)},
noEndpoints:!0,ellipsisTruncate:!0})),_.G(_.E,{cond:function(){return!!w()&&!b()},
then:function(){return _.G("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.G("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.G("span",null,w))}}))),_.G(_.E,{cond:a,
then:function(){return _.G("div",{class:"ytdMiniplayerInfoBarExpand"},_.G(_.gW,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(N){V&&(V(),N.stopPropagation())}}},
iconName:function(){return e()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ag");var ONb;ONb=_.l(function(D){return _.G("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.G(_.gW,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:D.onTap}},
iconName:"yt-icons:close"}))},"bg");
_.UcF=_.l(function(D){D=_.FQ(D,{playabilityStatus:void 0,isDisabled:!1});var t=D.size,H=D.playabilityStatus,e=D.isDisabled,V=_.DY("div");D=_.F(_.KR(void 0,void 0,"y6THVb"));var b=D.next().value,a=D.next().value;D=_.dm(_.ZT);var w=!1,h=function(){return t().height<=0};
_.Mp(function(){var T=t(),c=h(),U=b();U&&!c&&U.setInternalSize(T.width,T.height)},"qu2eI");
_.SG(function(){var T,c,U;return _.Z(function(S){if(S.nextAddress==1){T=_.qS().resolve(_.dL);c=T.getPlayerElement();if(!T.isMiniplayerActive()||!c||!V.value)return S.return();c.appendTo(V.value);return S.yield(c.getPlayerPromise(),2)}U=S.yieldResult;U.setSizeStyle(!1,!0);a(U);_.n2(S)})});
_.Sj(function(){K()});
_.Mp(function(){var T=b();if(T)if(e()){var c=T.getPlayerState();(w=c===-1||c===1||c===3)&&T.pauseVideo()}else K()},"mCtQKc");
var K=function(){if(w){w=!1;var T;(T=b())==null||T.playVideo()}},N=_.$X(function(){_.s6(_.qS().resolve(_.dL))}),k={};
return _.G("ytd-miniplayer-player-container",{class:_.jQ("ytdMiniplayerPlayerContainerHost",(k.ytdMiniplayerPlayerContainerHidden=h,k.ytdMiniplayerPlayerContainerHostShortsPip=D,k)),style:_.O7({width:function(){return t().width+"px"},
height:function(){return t().height+"px"}})},_.G("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:V}),_.G(_.E,{cond:function(){return!!H()&&!_.waD(H())},
then:function(){return _.G(JTY,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var T;return((T=H())==null?void 0:T.errorScreen)||null},
status:function(){var T;return((T=H())==null?void 0:T.status)||null}})}}),_.G(_.E,{cond:e,
then:function(){return _.G("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":N},_.G(ONb,{onTap:function(){_.qS().resolve(_.dL).close()}}))}}))},"eg");_.oOY=_.l(function(D){var t=D.toastData;var H=_.DY("ytd-miniplayer-toast");D=_.F(_.rm(function(){return!!t()}));
var e=D.next().value,V=D.next().value;D=_.F(_.KR(!1,void 0,"BvfNQe"));var b=D.next().value,a=D.next().value,w=function(){var N;return _.eo((N=t())==null?void 0:N.data.title)};
_.XH(function(){_.bq.requestAvailability();t()&&V(!1)});
var h,K;_.Mp(function(){e()&&(_.Gf(H.value,"iron-announce",{text:t().label+" "+w()}),h&&_.Jy.cancelJob(h),h=_.Jy.addLowPriorityJob(function(){a(!0)},2500))},"no1dZb");
_.Mp(function(){b()&&(K&&_.Jy.cancelJob(K),K=_.Jy.addLowPriorityJob(function(){V(!1);a(!1)},300))},"G3yPNe");
D={};return _.G("ytd-miniplayer-toast",{el:H,class:_.jQ("ytdMiniplayerToastHost",(D.ytdMiniplayerToastOpening=function(){return e()},D.ytdMiniplayerToastClosing=function(){return b()},D))},_.G(_.E,{cond:function(){var N;
return(N=t())==null?void 0:N.data},
then:function(N){return _.G(rQf,{className:"ytdMiniplayerToastThumbnail",data:N,width:78})}}),_.G("div",{class:"ytdMiniplayerToastInfo"},_.G("div",{class:"ytdMiniplayerToastLabel"},function(){var N;
return(N=t())==null?void 0:N.label}),_.G("div",{class:"ytdMiniplayerToastTitle"},w)))},"hg");var RxA;var Ip$=null;var nOg=_.l(function(D){var t=D.progressState;var H=D.multiMarkersPlayerBarRenderer;var e=D.progressBarWidth;var V=function(){return zxD(H())},b=function(){return HHV(t())},a=function(){return e()*(t().playedTime/t().videoDuration)};
return _.G("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.G(_.nY,{each:V},function(w,h){return _.G(Pzi,{modifiedProps:b,chapters:V,index:h,playedProgressWidth:a,backgroundGradientPosition:function(){var K=b(),N=V(),k=h(),T=a();return(K.playedTime-J8(_.O(N[k],gL)))/K.playedTime*T}})}))},"ig"),Pzi=_.l(function(D){var t=D.modifiedProps;
var H=D.chapters;var e=D.index;var V=D.playedProgressWidth;var b=D.backgroundGradientPosition;D={};D=_.jQ("ytChapteredProgressBarChapteredPlayerBarChapter",(D.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return a().isScrubbing},D.ytChapteredProgressBarHoveredMacroMarker=function(){return a().scrubberHovering},D.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return a().videoPosition==="seen"},D));
var a=function(){return eVV(t(),H(),e())},w=function(){var h=t();
var K=H(),N=e();if(eVV(h,K,N).videoPosition!=="active")h=0;else{var k=J8(_.O(K[N],gL));h=(h.playedTime-k)/((J8(_.O(K[N+1],gL))||h.videoDuration)-k)}return h};
return _.G("div",{class:D,style:_.O7({width:function(){var h=t(),K=H(),N=e(),k=_.O(K[N],gL);K=_.O(K[N+1],gL);return(K?J8(K)-J8(k):h.videoDuration-J8(k))/h.videoDuration*100+"%"},
"background-color":function(){a:{var h=a();switch(h.videoPosition){case "pending":h=h.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":h=h.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:h=""}}return h},
"background-size":function(){return(VvK(a())?V():"")+"px"},
"background-position-x":function(){return(VvK(a())?b():"")+"px"}})},_.G("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var h=t(),K=H(),N=e();if(eVV(h,K,N).videoPosition==="seen")var k=0;else k=J8(_.O(K[N],gL)),K=J8(_.O(K[N+1],gL))||h.videoDuration,h=h.videoDuration*h.percentLoaded,k=K<=h?1:k>=h?0:(h-k)/(K-k);return"width: "+k*100+"%"}}),_.G("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.O7({width:function(){return w()*100+"%"},
"background-size":function(){return(VvK(a(),w())?V():"")+"px"},
"background-position-x":function(){return(VvK(a(),w())?b():"")+"px"}})}))},"jg");var Czt=function(D,t){t=t===void 0?xxV:t;var H,e=[],V,b=!1;return function(){var a=_.RE.apply(0,arguments);if(b&&H===this&&t(a,e))return V;V=D.apply(this,a);b=!0;H=this;e=a;return V}}(function(D){var t=D.heatMarkers,H=D.minHeightDp===void 0?0:D.minHeightDp,e=D.maxHeightDp===void 0?60:D.maxHeightDp;
var V=V===void 0?!1:V;var b=1E3/t.length;D=[];D.push({x:0,y:100});for(var a=0;a<t.length;a++){var w=void 0,h=((w=_.O(t[a],$Df))==null?void 0:w.heatMarkerIntensityScoreNormalized)||0;w=(a+.5)*b;h=100-_.A8(h*100,H/321*100,e/321*100);a!==0||V||D.push({x:0,y:h});D.push({x:w,y:h});a===t.length-1&&D.push({x:1E3,y:h})}D.push({x:1E3,y:100});t="";for(H=0;H<D.length;H++)V=D[H],H===0?V="M "+V.x.toFixed(1)+","+V.y.toFixed(1):(e=FmD(D[H-1],D[H-2],V),b=FmD(V,D[H-1],D[H+1],!0),V=" C "+(e.x.toFixed(1)+","+e.y.toFixed(1)+
" "+b.x.toFixed(1)+","+b.y.toFixed(1)+" "+V.x.toFixed(1)+","+V.y.toFixed(1))),t+=V;return t});var mc4=_.l(function(D){var t=D.progressBarProps;var H=D.config;var e={};D=_.jQ("ytHeatSeekerHost",(e.ytHeatSeekerHighContrast=D.highContrast,e));var V=function(){return lp3(H().chapterData)};
return _.G("yt-progress-bar-heatseeker",{class:D,style:function(){var b;return"height: 320px; display: "+(t().isDragging&&((b=V())==null?0:b.heatMarkers)?"block":"none")}},_.G(_.E,{cond:V,
then:function(b){return _.G(_.E,{cond:function(){return b().heatMarkers},
then:function(){return _.G("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.G("path",{d:function(){return Czt(b())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"kg");var MTY=_.l(function(D){var t=D.progressBarProps;var H=D.config;D={};D=_.jQ("ytProgressBarLineProgressBarLine",(D.ytProgressBarLineProgressBarLineRounded=function(){return H().rounded},D.ytProgressBarLineProgressBarLineBottomInset=function(){return H().position===2},D));
return _.G("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.G("div",{class:D},_.G("div",{class:"ytProgressBarLineProgressBarBackground"}),_.G("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+t().percentLoaded*100+"%"}}),_.G("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var e=t();return"width: "+(e.videoDuration?_.A8(e.hoveredTime/e.videoDuration,0,1):0)*100+"%"}}),_.G("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+gdK(t())*100+"%"}})))},"lg");
MTY.idomCompat=!0;var SHH=_.l(function(D){var t=D.progressBarProps;var H=D.playheadData;var e=D.interpolateDotPosition;var V=D.hidePlayhead;D={};var b=_.jQ("ytProgressBarPlayheadProgressBarPlayheadDot",(D.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return t().isDragging},D.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!t().isDragging&&V()},D));
return _.G("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.O7({"margin-left":function(){return JYV(t())*100+"%"},
transform:function(){return"translateX(-"+(e()?JYV(t())*12:6)+"px)"}})},_.G(_.E,{cond:function(){var a;
return(a=_.qT(H)())==null?void 0:a.playheadImage},
then:function(a){var w={};return _.G("div",{class:_.jQ("ytProgressBarPlayheadProgressBarPlayheadCustom",(w.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return t().isDragging},w.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!t().isDragging&&V()},w)),
style:_.O7({"transform-origin":function(){return(e()?JYV(t())*20:10)+"px center"}})},_.G(_.bi,{data:a,
alt:"","aria-hidden":"true"}))},
else:function(){return _.G("div",{class:b,style:_.O7({"transform-origin":function(){return(e()?JYV(t())*12:6)+"px center"}})})}}))},"mg");
SHH.idomCompat=!0;var h4=function(D,t,H,e,V,b){this.getProgressBarRect=D;this.updateProgressBarRect=t;this.getFilmstripYPosition=H;this.setFineScrubbingDraggedTime=e;this.updateFilmStripDraggedYDistance=V;this.resetFilmStripYOffset=b;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.W5(this.onThrottledSeek,100,this)},X1H=function(D,t,H){return function(e){D.handleClick(e,t(),H())}},Aee=function(D,t){return function(H){flZ(D,
H,LgF(H),t())}},gOv=function(D,t){return function(H){flZ(D,H,{x:H.clientX,
y:H.clientY},t())}},YHH=function(D,t,H){return function(e){var V=t(),b=H();
JeO(D,e,LgF(e),V,b,!0);if(b.onTouchMove)b.onTouchMove(V)}},vOQ=function(D,t,H){return function(e){ll4(D,e,t(),H())}},p1H=function(D,t){return function(){D.handleMouseLeave(t())}},dce=function(D,t,H){return function(){var e=t(),V=H();
GJ(D,e,V);if(V.onTouchEnd)V.onTouchEnd(e)}},xcH=function(D,t,H){return function(){var e=t(),V=H();
GJ(D,e,V);if(V.onTouchEnd)V.onTouchEnd(e)}},RtF=function(D,t,H){return function(){GJ(D,t(),H())}},usi=function(D){return function(t){if(t.keyCode===39||t.keyCode===38){var H,e;
(H=D())==null||(e=H.playerApi)==null||e.seekBy(5,void 0,void 0,72)}else if(t.keyCode===37||t.keyCode===40){var V,b;(V=D())==null||(b=V.playerApi)==null||b.seekBy(-5,void 0,void 0,71)}}},WgQ=function(D,t,H){return function(e){!H().disableScrubbing&&D.startPosition&&ll4(D,e,t(),H())}},IlZ=function(D,t,H){return function(){if(!H().disableScrubbing)if(D.startPosition){var e=t(),V=H();
GJ(D,t(),H());if(V.onTouchEnd)V.onTouchEnd(e)}else t().setState({isDragging:!1})}},LgF=function(D){D=D.touches[0];
return{x:D.clientX,y:D.clientY}},ll4=function(D,t,H,e){if(t.buttons!==1){if(t.movementX||t.movementY)t.preventDefault(),t.stopPropagation(),D=QKY(D,H,t.clientX),H.setState({isHovering:!0,
hoveredTime:D*H.videoDuration})}else yeF(H),JeO(D,t,{x:t.clientX,y:t.clientY},H,e,!1)};
h4.prototype.handleMouseLeave=function(D){yeF(D)};
var yeF=function(D){D.isHovering&&D.setState({isHovering:!1,hoveredTime:0})},flZ=function(D,t,H,e){D.startPosition||(D.startPosition=H,D.updateProgressBarRect(),D.controlsWereVisibleBeforeDragging=e.controlsVisible,t.stopPropagation(),_.r("medium_progress_bar_modification")||t.preventDefault())},JeO=function(D,t,H,e,V,b){if(D.startPosition)if(b&&V.isInlinePlayback&&D.startPosition&&!D.hasDraggedTheMinimumDistance&&Math.abs(H.y-D.startPosition.y)>Math.abs(H.x-D.startPosition.x))GJ(D,e,V);
else if(t.preventDefault(),t.stopPropagation(),e.videoDuration&&(D.startPosition&&!D.hasDraggedTheMinimumDistance&&(D.hasDraggedTheMinimumDistance=Math.abs(H.x-D.startPosition.x)>=1),V.enableFineScrubbing&&(D.startPosition&&(D.isDraggedForFineScrubbing=-(H.y-D.startPosition.y)>=60),!D.startPosition||H.y>=D.startPosition.y||(e.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:bHT(e.draggedTime,e,V.chapterData)}),D.setFineScrubbingDraggedTime(e.draggedTime),D.updateFilmStripDraggedYDistance(D.startPosition.y,
H.y,e))),D.hasDraggedTheMinimumDistance)){t=QKY(D,e,H.x);if(D.isDraggedForFineScrubbing){var a;(a=e.playerApi)==null||a.pauseVideo();e.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:e.draggedTime,filmStripXDistance:bHT(t*e.videoDuration,e,V.chapterData)})}V.enableFineScrubbing&&(!V.enableFineScrubbing||D.getFilmstripYPosition(e)<68)||e.setState({draggedTime:t*e.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:D.controlsWereVisibleBeforeDragging});var w;(w=
V.cancelAutohideControlsFn)==null||w.call(V)}},GJ=function(D,t,H){var e=H.enableFineScrubbing&&t.fineScrubbingActiveState!=="off";
if(t.isDragging||e){e={isDragging:!1,playedTime:t.draggedTime,controlsVisible:D.controlsWereVisibleBeforeDragging};H.enableFineScrubbing&&t.fineScrubbingActiveState!=="on"&&(D.resetFilmStripYOffset(),e.fineScrubbingActiveState="off");var V=V===void 0?Ip$:V;var b=_.v3(0);if(b&&V){var a=Math.round(t.playedTime*1E3),w=Math.round(t.draggedTime*1E3);a>2147483647||w>2147483647||_.HH(b,V,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(a),endMediaTimeMs:String(w),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}t.setState(e);
D.seekThrottle.fire(t.draggedTime,t,7);_.r("mweb_new_progress_bar_play_on_seek")&&D.resumeVideo(t);H.unmuteOnSeek&&(H=t.playerApi,t.volumeMuted&&(H==null||H.unMute()))}else t.setState({controlsVisible:!t.controlsVisible}),(b=H.triggerAutohideControlsAfterDelayFn)==null||b.call(H);D.startPosition=null;D.hasDraggedTheMinimumDistance=!1;D.isDraggedForFineScrubbing=!1;D.controlsWereVisibleBeforeDragging=!1};
h4.prototype.handleClick=function(D,t,H){this.updateProgressBarRect();D.stopPropagation();D=QKY(this,t,D.clientX)*t.videoDuration;t.setState({playedTime:D});if(t.playerState!==2){var e;(e=H.triggerAutohideControlsAfterDelayFn)==null||e.call(H)}this.seekThrottle.fire(D,t,7)};
var QKY=function(D,t,H){D=D.getProgressBarRect(t);return _.A8(0,(H-D.left)/D.width,1)};
h4.prototype.resumeVideo=function(D){if(D.draggedTime<D.videoDuration){var t;(t=D.playerApi)==null||t.playVideo()}};
h4.prototype.onThrottledSeek=function(D,t,H){if(t=t.playerApi){var e;if((e=t.getVideoData())==null?0:e.isLive)e=this.getProgressState(t),D+=(e==null?void 0:e.seekableStart)||0;t.seekTo(D,void 0,void 0,void 0,H)}};
h4.prototype.getProgressState=function(D){var t=D==null?void 0:D.getPresentingPlayerType();return D==null?void 0:D.getProgressState(t)};var DpH,ztY,tjb,eev,BVb,Vje,bRF,qPH,FGY;DpH=_.l(function(D){var t=D.progressBarProps;var H=D.config;var e=D.progressBarWidthPx;var V=D.chapterData;var b=ZHV(t,function(){return H().isShortsPage}),a=function(){return!t().isHovering&&!H().isShortsPage};
D={};var w=_.jQ("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(D.ytPlayerStoryboardHostMwebShorts=function(){return H().isShortsPage&&!1},D));
return _.G("yt-player-storyboard",null,_.G(_.E,{cond:function(){return t().isDragging||t().isHovering},
then:function(){return _.G(_.E,{cond:b,then:function(h){return _.G(_.E,{cond:a,then:function(){return _.G("div",{class:w,"aria-hidden":"true"},_.G(BVb,{props:t,config:H,isBigboard:!0,chapterData:V}))},
else:function(){return _.G(ztY,{props:t,frame:h,config:H,progressBarWidthPx:e,chapterData:V})}})}})}}))},"ng");
_.HR4=_.l(function(D){var t=D.progressBarProps;var H=ZHV(t,D.isShortsPage);return _.G("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.G(_.E,{cond:function(){return t().isDragging||t().isHovering},
then:function(){return _.G(_.E,{cond:H,then:function(e){return _.G(tjb,{frame:e,props:t,isBigboard:!0})}})}}))},"og");
ztY=_.l(function(D){var t=D.props;var H=D.frame;var e=D.config;var V=D.progressBarWidthPx;D=D.chapterData;var b={};b=_.jQ("ytPlayerStoryboardHost",(b.ytPlayerStoryboardHostMwebShorts=function(){return e().isShortsPage&&!1},b.ytPlayerStoryboardHostInlinePlayer=function(){return e().isInlinePlayer},b.ytPlayerStoryboardHostFadeIn=function(){return e().useFadeInAnimation},b));
return _.G("div",{class:b,"aria-hidden":"true",style:function(){var a=t(),w=q9V(H()),h=V();a=F0R(a)/a.videoDuration;var K=h*a,N=w/2+6;w=h-(w/2+6);return"left: "+(K<=N?N/h*100:K>=w?w/h*100:a*100)+"%"}},_.G(_.E,{cond:function(){var a=t();
return!(e().isShortsPage&&a.videoDuration<15)},
then:function(){return _.G(tjb,{frame:H,props:t,isBigboard:!1})}}),_.G(BVb,{props:t,
config:e,isBigboard:!1,chapterData:D}))},"pg");
tjb=_.l(function(D){var t=D.frame;var H=D.props;var e=D.isBigboard;var V=function(){var w,h;return(h=(w=H().playerApi)==null?void 0:w.getVideoContentRect())!=null?h:{width:0,height:0}},b=function(){return q9V(t())},a=function(){var w=t();
return w?w.height/w.rows:0};
D={};D=_.jQ((D.ytPlayerStoryboardBigboardImageWrapper=e,D.ytPlayerStoryboardStoryboardImageWrapper=function(){return!e()},D));
return _.G("div",{class:D,style:function(){return"width: "+(e()?V().width:b())+"px; height: "+(e()?V().height:a())+"px;"}},_.G(eev,{frame:t,
storyboardWidth:b,storyboardHeight:a,storyboardScale:function(){return(e()?V().width:b())/b()}}))},"qg");
eev=_.l(function(D){var t=D.frame;var H=D.storyboardWidth;var e=D.storyboardHeight;var V=D.storyboardScale;var b=function(){var a=t().row,w=t().column,h=H(),K=e(),N=V();return{left:-w*h*N,top:-a*K*N}};
return _.G("img",{src:function(){return t().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+b().left+"px; top: "+b().top+"px; width: "+t().width*V()+"px; height: "+t().height*V()+"px;"}})},"rg");
BVb=_.l(function(D){var t=D.props;var H=D.config;var e=D.isBigboard;var V=D.chapterData;D={};D=_.jQ("ytPlayerStoryboardMetadata",(D.ytPlayerStoryboardMetadataBigboard=e,D));return _.G("div",{class:D},_.G(_.E,{cond:e,then:function(){return _.G(_.FH,null,_.G(Vje,{props:t,config:H}),_.G(_.E,{cond:function(){a:{var b=t();var a=H(),w=V(),h;if((a==null?0:a.activeChapter)&&((h=_.O(a==null?void 0:a.activeChapter,gL))==null?0:h.title))b=!0;else{a=_.F(vdV(w));for(a=a.next();!a.done;a=a.next()){b=(a=_.O(a.value,
rfa))&&aa8(b,a);break a}b=!1}}return b},
then:function(){return _.G(bRF,{props:t,config:H,isBigboard:!0,chapterData:V})}}))},
else:function(){return _.G(_.FH,null,_.G(bRF,{props:t,config:H,isBigboard:!0,chapterData:V}),_.G(Vje,{props:t,config:H}))}}))},"sg");
Vje=_.l(function(D){var t=D.props;var H=D.config;D={};D=_.jQ("ytPlayerStoryboardTimestamp",(D.ytPlayerStoryboardTimestampShorts=function(){return H().isShortsPage},D.ytPlayerStoryboardTimestampIsHovering=function(){return t().isHovering||H().isShortsPage&&!0},D));
return _.G("div",{class:D},_.G(_.FH,null,function(){return _.wQ6(F0R(t()))}))},"tg");
bRF=_.l(function(D){var t=D.props;var H=D.config;var e=D.isBigboard;var V=D.chapterData;D={};e=_.jQ("ytPlayerStoryboardTitle",(D.ytPlayerStoryboardTitleBigboard=e,D));return _.G("div",{class:e},_.G(_.E,{cond:function(){return!H().isShortsPage},
then:function(){return _.G(qPH,{props:t,activeChapter:function(){return H().activeChapter},
chapterData:V})}}))},"ug");
qPH=_.l(function(D){var t=D.props;var H=D.activeChapter;var e=D.chapterData;return _.G(_.FH,null,_.G(_.nY,{each:function(){return vdV(e())},
keyBy:"INDEX"},function(V){return _.G(_.FH,null,_.G(_.E,{cond:function(){return _.O(V(),rfa)&&aa8(t(),_.O(V(),rfa))},
then:function(){return _.G(FGY,{timedMarker:function(){return _.O(V(),rfa)}})}}))}),_.G(_.E,{cond:function(){var V;
return H()&&((V=_.O(H(),gL))==null?void 0:V.title)},
then:function(V){return _.G(_.$7,{text:V,noPreWrap:!0})}}))},"vg");
FGY=_.l(function(D){var t=D.timedMarker;return _.G(_.FH,null,_.G("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.G(_.U7,{icon:function(){return t().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.G(_.$7,{text:function(){return t().label},
noPreWrap:!0}))},"wg");_.a_Z=_.l(function(D){var t=D.progressBarProps;var H=D.playheadData;var e=D.config;D=_.DY("yt-progress-bar");var V=_.DY("div"),b=_.DY("div"),a=_.F(_.KR({width:0,left:0},void 0,"WloVn")),w=a.next().value,h=a.next().value,K=function(){b.value&&h(b.value.getBoundingClientRect())},N=function(){w().width<=0&&K();
return w()};
_.F9("resize",K);var k=new h4(N,function(){},function(){return 0},function(){},function(){},function(){}),T=function(){return t()};
a=_.F(_.KR(!1,void 0,"u8BZZb"));var c=a.next().value,U=a.next().value;a=_.$X(function(){U(!0);e().position===2?setTimeout(function(){K()},100):K()});
var S=_.$X(function(){U(!1);p1H(k,T)()}),L=_.$X(function(Mu){e().doSeekOnClick&&X1H(k,T,e)(Mu);
return!1}),J=_.$X(function(Mu){Aee(k,T)(Mu);
return!1}),g=_.$X(function(Mu){gOv(k,T)(Mu);
return!1}),Q=_.$X(function(Mu){YHH(k,T,e)(Mu);
return!1}),u=_.$X(function(Mu){vOQ(k,T,e)(Mu);
return!1}),R=_.$X(function(){dce(k,T,e)();
return!1}),I=_.$X(function(){xcH(k,T,e)();
return!1}),tT=_.$X(function(){RtF(k,T,e)();
return!1}),ZV=_.$X(function(Mu){usi(T)(Mu);
return!1});
_.F9("mousemove",WgQ(k,T,e));_.F9("mouseup",IlZ(k,T,e));_.XH(function(){QlD(V.value);U(!1);K();IlZ(k,T,e)()});
var ED={};ED=_.jQ("ytPlayerProgressBarHost",function(){return e().className},(ED.ytPlayerProgressBarHostReadOnly=function(){return e().disableScrubbing},ED.ytPlayerProgressBarHostHidden=function(){return e().hideProgressBar&&!c()},ED.ytPlayerProgressBarHostLowerPlayer=function(){return e().position===0},ED.ytPlayerProgressBarHostBottomEdge=function(){return e().position===1},ED.ytPlayerProgressBarHostBottomInset=function(){return e().position===2},ED.ytPlayerProgressBarHostCustom=function(){return e().position===
3},ED));
var o$={},jV=_.jQ("ytPlayerProgressBarBackground",(o$.ytPlayerProgressBarBackgroundHide=function(){return e().position===2&&!c()&&!t().isDragging},o$));
o$={};o$=_.jQ("ytPlayerProgressBarDragContainer",(o$.ytPlayerProgressBarDragContainerBottomEdge=function(){return e().position===1},o$));
var i8={};i8=_.jQ("ytPlayerProgressBarProgressBar",(i8.ytPlayerProgressBarProgressBarInset=function(){return e().position===2},i8.ytPlayerProgressBarProgressBarInsetMinimized=function(){return e().position===2&&!c()&&!t().isDragging},i8));
var g6=function(){return Math.floor(gdK(t())*100)};
return _.G("yt-progress-bar",{el:D,class:ED},_.G(_.E,{cond:function(){return e().position===2},
then:function(){return _.G("div",{class:jV})}}),_.G("div",{el:V,
"on:click":L,"on:touchstart":J,"on:touchmove":Q,"on:mouseenter":a,"on:mousedown":g,"on:mouseleave":S,"on:mousemove":u,"on:mouseup":I,"on:touchend":R,"on:touchcancel":tT,"on:keydown":ZV,class:o$,role:"slider","aria-valuenow":g6,"aria-valuetext":function(){return g6()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return t().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.OT("SEEK_SLIDER")},_.G("div",{el:b,class:i8},_.G(mc4,{progressBarProps:t,config:e,highContrast:function(){return!!e().isInlinePlayback}}),_.G(_.E,{cond:function(){return e().chapterData&&pou(e().chapterData)},
then:function(){return _.G(nOg,{progressState:t,multiMarkersPlayerBarRenderer:function(){return e().chapterData},
progressBarWidth:function(){return w().width}})},
else:function(){return _.G(MTY,{progressBarProps:t,config:e})}}),_.G(SHH,{progressBarProps:t,
playheadData:H,interpolateDotPosition:function(){return e().position!==2},
hidePlayhead:function(){return e().playheadDotBehavior===1&&!c()}}))),_.G(DpH,{progressBarProps:t,
config:function(){return{activeChapter:tvT(t(),e().chapterData),getProgressBarWidthPx:function(){return N().width},
isShortsPage:!!e().isShortsPage,isInlinePlayer:!!e().isInlinePlayback,useFadeInAnimation:!!e().isInlinePlayback}},
progressBarWidthPx:function(){return w().width},
chapterData:function(){return e().chapterData}}))},"xg");
_.a_Z.idomCompat=!0;Object.assign({},_.df3(),{setState:function(){},
domMeasurements:{},appApi:_.AY8(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var wIO;
_.ZRY=_.l(function(){var D,t=(D=_.YK(seV().playerApi))!=null?D:void 0;D=_.F(_.KR(!1,void 0,"Z9NQ1b"));var H=D.next().value,e=D.next().value;D=_.F(_.KR(!1,void 0,"HoVJXe"));var V=D.next().value,b=D.next().value;D=_.F(_.KR(!1,void 0,"DWCY3"));var a=D.next().value,w=D.next().value;D=_.F(_.KR(!1,void 0,"g4C2Zd"));var h=D.next().value,K=D.next().value;D=_.F(_.KR(0,void 0,"lmVfFb"));var N=D.next().value,k=D.next().value;D=_.F(_.KR(0,void 0,"mFLbzb"));var T=D.next().value,c=D.next().value;D=_.F(_.KR(!1,void 0,
"hQN4Wb"));var U=D.next().value,S=D.next().value;D=_.F(_.KR(0,void 0,"WWU0fb"));var L=D.next().value,J=D.next().value;D=_.F(_.KR(0,void 0,"MJ7LMd"));var g=D.next().value,Q=D.next().value;D=_.F(_.KR("",void 0,"hnomOe"));var u=D.next().value,R=D.next().value;D=_.F(_.KR(-1,void 0,"ARe3pf"));var I=D.next().value,tT=D.next().value,ZV=_.jj(function(){var ED={controlsVisible:H(),isOverlayHidden:V(),shouldWaitToHideControls:a(),isDragging:h(),isHovering:U(),videoDuration:L(),playedTime:g(),videoId:u(),draggedTime:T(),
hoveredTime:N(),playerState:I()};return Object.assign({},_.df3(),ED,{domMeasurements:{},setState:function(o$){o$.controlsVisible!==void 0&&e(o$.controlsVisible);o$.isOverlayHidden!==void 0&&b(o$.isOverlayHidden);o$.shouldWaitToHideControls!==void 0&&w(o$.shouldWaitToHideControls);o$.isDragging!==void 0&&K(o$.isDragging);o$.isHovering!==void 0&&S(o$.isHovering);o$.draggedTime!==void 0&&c(o$.draggedTime);o$.hoveredTime!==void 0&&k(o$.hoveredTime);o$.videoDuration!==void 0&&J(o$.videoDuration);o$.playedTime!==
void 0&&Q(o$.playedTime);o$.videoId!==void 0&&R(o$.videoId);o$.playerState!==void 0&&tT(o$.playerState)},
appApi:_.AY8(),playerApi:t})},void 0,"Au4PIf");
_.SG(function(){t==null||t.addEventListener("onVideoProgress",W6K(ZV));t==null||t.addEventListener("onVideoDataChange",uaV(ZV));t==null||t.addEventListener("onStateChange",xfD(ZV))});
_.Sj(function(){if(t==null?0:t.isReady())t==null||t.removeEventListener("onVideoProgress",W6K(ZV)),t==null||t.removeEventListener("onVideoDataChange",uaV(ZV)),t==null||t.removeEventListener("onStateChange",xfD(ZV))});
return _.G("desktop-shorts-player-controls",null,_.G(wIO,{playerControlsProps:ZV}))},"yg");
wIO=_.l(function(D){var t=D.playerControlsProps;return _.G("div",{class:"desktopShortsPlayerControlsHost"},_.G(_.a_Z,{progressBarProps:t,config:function(){return{isShortsPage:!0,hideProgressBar:t().videoDuration<30&&t().playerState!==2&&!t().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"zg");_.sZY=_.l(function(D){function t(ED){ED!==0||k()?ED>50&&(k()||!c())?(T(!1),U(!0)):ED<=50&&(k()||c())&&(T(!1),U(!1)):T(!0)}
function H(ED,o$){var jV;return _.Z(function(i8){if(i8.nextAddress==1)return i8.yield(_.ki(),2);jV=i8.yieldResult;o$&&jV?(jV.unMute(!0),ED&&(GyK(ED,jV.getVolume()),L(jV.getVolume()))):jV&&(jV.mute(!0),ED&&GyK(ED,0));_.n2(i8)})}
function e(ED){var o$,jV;return _.Z(function(i8){if(i8.nextAddress==1)return i8.yield(_.ki(),2);o$=i8.yieldResult;jV=50;o$&&(jV=o$.getVolume(),o$.isMuted()?GyK(ED,0):GyK(ED,jV));L(jV);_.n2(i8)})}
var V=D.orientation;D=_.DY("desktop-shorts-volume-controls");var b=_.DY("button"),a=_.ep("input"),w=_.F(_.KR(!1,void 0,"MvN0Tc")),h=w.next().value,K=w.next().value,N=_.F(_.KR(!1,void 0,"aSjsEb"));w=N.next().value;N=N.next().value;var k=w,T=N;N=_.F(_.KR(!0,void 0,"FUh46d"));w=N.next().value;N=N.next().value;var c=w,U=N;w=_.F(_.KR(50,void 0,"yPke4d"));var S=w.next().value,L=w.next().value;w=_.jj(function(){var ED=k();return _.r("web_shorts_keyboard_enable_mute_shortcut")?ED?_.OT("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.OT("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):ED?_.OT("UNMUTE_VOLUME",void 0,"Unmute"):_.OT("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
N=_.jj(function(){var ED=k(),o$=c();return{sources:[{clientResource:{imageName:ED?_.r("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":o$?_.r("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.r("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var J=_.jj(function(){var ED=S();return k()?ED+"% volume muted":ED+"% volume"},void 0,"xZsRmc"),g=_.jj(function(){return V()==="vertical_down"},void 0,"FVqYmb");
_.XH(function(){function ED(){K(!0)}
function o$(){K(!1)}
a&&a.value&&(a.value.addEventListener("focus",ED),a.value.addEventListener("focusout",o$),e(a.value).then(function(){t(Number(EJR(a.value)))}));
b&&b.value&&(b.value.addEventListener("focus",ED),b.value.addEventListener("focusout",o$));_.Sj(function(){var jV;a==null||(jV=a.value)==null||jV.removeEventListener("focus",ED);var i8;a==null||(i8=a.value)==null||i8.removeEventListener("focusout",o$);var g6;b==null||(g6=b.value)==null||g6.removeEventListener("focus",ED);var Mu;b==null||(Mu=b.value)==null||Mu.removeEventListener("focusout",o$)})});
var Q=_.$X(function(){if(a&&a.value){var ED=Number(EJR(a.value));hV$(ED);L(ED);a.value.style.setProperty("--gradient-percent",ED+"%");t(ED)}return!1}),u=_.$X(function(){K(!0)}),R=_.$X(function(){a&&a.value&&(H(a.value,k()),T(!k()));
return!1}),I={},tT={},ZV={};
return _.G("desktop-shorts-volume-controls",{"on:pointerleave":_.$X(function(){K(!1)}),
class:_.jQ("ytdDesktopShortsVolumeControlsHost",(I.ytdDesktopShortsVolumeControlsHostVertical=g,I.ytdDesktopShortsVolumeControlsHostExpanded=h,I)),el:D},_.G(_.E,{cond:function(){return!g()},
then:function(){var ED={};return _.G("div",{class:_.jQ("ytdDesktopShortsVolumeControlsBackgroundScrim",(ED.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=h,ED))})}}),_.G("div",{class:_.jQ((tT.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=g,tT))},_.G("button",{"aria-label":w,
title:w,el:b,"on:click":R,"on:pointerenter":u,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},N?_.G(_.bi,{data:N,alt:w,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.G("div",{class:_.jQ("ytdDesktopShortsVolumeControlsSliderContainer",(ZV.ytdDesktopShortsVolumeControlsSliderContainerExpanded=h,ZV.ytdDesktopShortsVolumeControlsSliderContainerVertical=g,ZV.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=g,ZV.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return h()&&g()},ZV))},_.G("input",{"aria-label":_.OT("VOLUME"),
title:_.OT("VOLUME"),el:a,"on:input":Q,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":S,"aria-valuetext":J,"aria-valuemin":0,"aria-valuemax":100})))},"Ag");_.hev=_.l(function(D){var t=D.data;var H=D.extractOverlay;D={};return _.G("player-disclosure-view-model",{class:_.jQ("ytwPlayerDisclosureViewModelHost",(D.ytwPlayerDisclosureViewModelExtractOverlay=function(){return H==null?void 0:H()},D))},_.G(_.XW,{command:function(){return t().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.G(_.E,{cond:function(){return t().iconName},
then:function(e){return _.G(_.U7,{icon:e})}}),_.G("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return t().text}),_.G(_.E,{cond:function(){return t().showEndChevron},
then:function(){return _.G(_.U7,{icon:"CHEVRON_RIGHT"})}})))},"Bg");var GpH=_.l(function(D){var t=D.data;var H=D.overlayDensity;D={};return _.G("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.G(_.P5,{data:function(){return t().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(e){var V=e.data;
return _.G(_.Fo,{data:function(){return(H==null?void 0:H())===1?Object.assign({},V(),{avatar:{avatarViewModel:Object.assign({},_.O(V().avatar,_.lO),{avatarImageSize:"AVATAR_SIZE_M"})}}):V()}})}}),_.G(_.P5,{data:function(){return t().avatarStackViewModel}},{avatarStackViewModel:function(e){return _.G(_.ag,{data:e.data})}}),_.G(_.$7,{className:_.jQ("ytReelChannelBarViewModelChannelName",(D.ytReelChannelBarViewModelChannelNameLarge=function(){return(H==null?void 0:H())===1},D)),
text:function(){return t().channelName},
linkInheritColor:!0,userInput:!0}),_.G("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.G(_.P5,{data:function(){return t().subscribeButtonViewModel}},{subscribeButtonViewModel:function(e){var V=e.data;
return _.G(_.qY,{data:function(){return(H==null?void 0:H())===1?Object.assign({},V(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},V().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):V()},
isOverlay:!1})},
buttonViewModel:_.JX})),_.G("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.G(_.P5,{data:function(){var e,V;return(V=_.O((e=t())==null?void 0:e.sponsorButtonViewModel,fBf))==null?void 0:V.sponsorButton}},{buttonViewModel:function(e){return _.G(_.JX,{data:e.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Cg");var EMg=_.l(function(D){var t=function(){var e;return(D==null?void 0:(e=D.overlayDensity)==null?void 0:e.call(D))===1?22:16},H={};
return _.G("yt-reel-multi-format-link-view-model",{class:_.jQ("ytReelMultiFormatLinkViewModelHost",(H.ytReelMultiFormatLinkViewModelHostTall=!0,H.ytReelMultiFormatLinkViewModelHostLarge=function(){var e;return((e=D.overlayDensity)==null?void 0:e.call(D))===1},H))},_.G(_.XW,{ariaLabel:function(){return D.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return D.data().command}},_.G("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.G(_.E,{cond:function(){return D.data().icon},
then:function(e){return _.G(_.bi,{data:e,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:t})}}),_.G(_.$7,{text:function(){return D.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Dg");
EMg.idomCompat=!0;var KGe=_.l(function(D){var t=D.data;var H=D.overlayDensity;var e=D.extractOverlay;var V=_.DY("yt-shorts-suggested-action-view-model");D=_.F(_.KR(!1,void 0,"S60Hzc"));var b=D.next().value,a=D.next().value;D=_.F(_.KR(!1,void 0,"O76chf"));var w=D.next().value,h=D.next().value,K=function(){return t().isMultiLineSa},N=_.rF(cmV,function(){var R,I;
return(I=(R=t().toggleableContent)==null?void 0:R.entityKey)!=null?I:""}),k=function(){var R,I,tT;
return(tT=t().toggleableContent)!=null&&tT.entityKey?(I=(R=N())==null?void 0:R.value)!=null?I:!1:!1},T=function(){var R,I,tT,ZV,ED,o$,jV,i8,g6,Mu,LQ;
return t().toggleableContent?k()?(R=t().toggleableContent)==null?void 0:R.toggledData:(I=t().toggleableContent)==null?void 0:I.untoggledData:{primaryText:(i8=(tT=t().defaultContent)==null?void 0:tT.primaryText)!=null?i8:t().text,secondaryText:(ZV=t().defaultContent)==null?void 0:ZV.secondaryText,onTapCommand:(g6=(ED=t().defaultContent)==null?void 0:ED.onTapCommand)!=null?g6:t().onTapCommand,icon:(Mu=(o$=t().defaultContent)==null?void 0:o$.icon)!=null?Mu:t().icon,image:(LQ=(jV=t().defaultContent)==
null?void 0:jV.image)!=null?LQ:t().image}},c=function(){return K()?t().trailingTapTarget:void 0},U=function(R,I){return function(){return b()?I:R}},S=function(){return{leadingSection:U("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(H==null?void 0:H())===1?U("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):U("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:U("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:U("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:U("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
D={};D=_.jQ((D.ytShortsSuggestedActionViewModelStaticHost=function(){return!K()},D.ytShortsSuggestedActionViewModelDynamicHost=K,D.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return K()&&w()},D.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return K()&&!w()},D.ytShortsSuggestedActionViewModelExtractOverlay=function(){return e==null?void 0:e()},D));
_.XH(function(){if(K()){var R=0,I;if((I=t().animationParams)==null?0:I.shouldExpand){var tT,ZV;R=((ZV=(tT=t().animationParams)==null?void 0:tT.expansionDelaySecs)!=null?ZV:0)*1E3}var ED,o$=((ED=t().animationParams)==null?0:ED.shouldExpand)?setTimeout(function(){a(!0)},R):void 0,jV,i8;
R=((jV=t().animationParams)==null?0:jV.visibilityDelaySecs)?((i8=t().animationParams)==null?NaN:i8.visibilityDelaySecs)*1E3:0;var g6=setTimeout(function(){h(!0)},R);
_.Sj(function(){o$&&clearTimeout(o$);clearTimeout(g6)})}});
var L=function(R){_.IQ(R,Object.assign({},{form:{element:V.value}}))},J=_.$X(function(){var R,I=(R=T())==null?void 0:R.onTapCommand;
I&&L(I)}),g=_.$X(function(){var R,I;
if(R=(I=c())==null?void 0:I.onTapCommand)return L(R),!1}),Q=_.O7({"vertical-align":"bottom",
"border-radius":function(){var R;return K()?((R=t().defaultContent)==null?0:R.isCircleImage)?"50%":"4px":"0px"},
width:function(){var R,I,tT;return K()&&((R=t().defaultContent)==null?0:R.imageSize)?((tT=(I=t().defaultContent)==null?void 0:I.imageSize)!=null?tT:24)+"px":null},
height:function(){var R,I,tT;return K()&&((R=t().defaultContent)==null?0:R.imageSize)?((tT=(I=t().defaultContent)==null?void 0:I.imageSize)!=null?tT:24)+"px":null}}),u={};
return _.G("yt-shorts-suggested-action-view-model",{class:D,el:V},_.G("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.G("button",{class:_.jQ(function(){return K()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var R;
return(R=t().useFullRoundedBorder)!=null&&R?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!c()&&K()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":K()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var R;
return(R=t().disableFixedHeight)!=null&&R?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(u.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(H==null?void 0:H())===1},u.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return e==null?void 0:e()},u)),
"on:click":J},_.G(_.fE,{model:{color:4}}),_.G("div",{class:_.jQ(function(){return K()?S().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.G(_.E,{cond:function(){var R;
return(R=T())==null?void 0:R.image},
then:function(R){return _.G(_.bi,{data:R,alt:"",className:function(){return K()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:Q})}}),_.G(_.E,{cond:function(){var R,I;
return(R=T())==null?void 0:(I=R.icon)==null?void 0:I.iconType},
then:function(R){return _.G(_.U7,{icon:R,active:k,className:function(){return K()?b()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.G("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.G(_.E,{cond:function(){var R;
return(R=T())==null?void 0:R.primaryText},
then:function(R){return _.G("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.G(_.$7,{text:R}))}}),_.G(_.E,{cond:function(){var R;
return(R=T())==null?void 0:R.secondaryText},
then:function(R){return _.G("div",{class:function(){return S().secondaryText()}},_.G(_.$7,{text:R}))}}))),_.G(_.E,{cond:c,
then:function(R){return _.G("div",{class:_.jQ(function(){return S().trailingSection()},function(){var I,tT;
return(e==null?void 0:e())&&((tT=(I=S()).trailingSectionExtractOverlay)==null?void 0:tT.call(I))||""}),
"aria-label":function(){var I;return(I=R().a11yLabel)!=null?I:""},
"on:click":g,role:"button",tabindex:0},_.G(_.fE,{model:{color:4}}),_.G(_.U7,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Eg");var N_F=_.l(function(D){var t=D.data;var H=D.overlayDensity;var e=_.DY("yt-shorts-video-title-view-model");D=_.$X(function(a){if(_.A5(_.Lf(a),e.value,["A".toString()]))return!1;(a=t().truncatedTextOnTapCommand)&&_.IQ(a);return!1});
var V={},b={};return _.G("yt-shorts-video-title-view-model",{el:e,class:_.jQ("ytShortsVideoTitleViewModelHost",(V.ytShortsVideoTitleViewModelHostClickable=function(){return!!t().truncatedTextOnTapCommand},V)),
"on:click":D},_.G("h2",{class:_.jQ("ytShortsVideoTitleViewModelShortsVideoTitle",(b.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(H==null?void 0:H())===1},b))},_.G(_.$7,{text:function(){return t().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(H==null?void 0:H())===1}})))},"Fg");_.kpH=_.l(function(D){var t=D.data;var H=D.overlayDensity;var e=D.extractOverlay;var V=function(){return(H==null?void 0:H())===1};
return _.G("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.G(_.P5,{data:function(){return t().metadataItems}},{badgeViewModel:function(b){b=b.data;
return _.G("div",{class:_.jQ(function(){return V()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.G(_.Mi,{data:b}))},
playerDisclosureViewModel:function(b){b=b.data;return _.G("div",{class:_.jQ(function(){return V()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.G(_.hev,{data:b,
extractOverlay:e}))},
shortsSuggestedActionViewModel:function(b){b=b.data;return _.G("div",{class:_.jQ(function(){return V()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.G(KGe,{data:b,
overlayDensity:H,extractOverlay:e}))},
reelChannelBarViewModel:function(b){b=b.data;var a={};return _.G("div",{class:_.jQ("ytReelMetapanelViewModelMetapanelItem",(a.ytReelMetapanelViewModelExpansive=function(){return V()},a))},_.G(GpH,{data:b,
overlayDensity:H}))},
reelMultiFormatLinkViewModel:function(b){b=b.data;var a={};return _.G("div",{class:_.jQ("ytReelMetapanelViewModelMetapanelItem",(a.ytReelMetapanelViewModelExpansive=function(){return V()},a))},_.G(EMg,{data:b,
overlayDensity:H}))},
shortsVideoTitleViewModel:function(b){b=b.data;var a={};return _.G("div",{class:_.jQ("ytReelMetapanelViewModelMetapanelItem",(a.ytReelMetapanelViewModelExpansive=function(){return V()},a))},_.G(N_F,{data:b,
overlayDensity:H}))},
reelSoundMetadataViewModel:function(b){b=b.data;var a={};return _.G("div",{class:_.jQ("ytReelMetapanelViewModelMetapanelItem",(a.ytReelMetapanelViewModelExpansive=function(){return V()},a))},_.G(_.G7b,{data:b,
overlayDensity:H}))},
toggleButtonViewModel:function(b){b=b.data;var a={};return _.G("div",{class:_.jQ("ytReelMetapanelViewModelMetapanelItem",(a.ytReelMetapanelViewModelExpansive=function(){return V()},a))},_.G(_.VC,{data:b}))}}))},"Gg");var T_v=_.l(function(D){var t=_.FQ(D,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),H=t.size,e=t.onTap,V=t.disabled,b=t.tooltipText;return _.G("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.G(_.gW,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:H(),disabled:V(),tooltipText:b(),onTap:e}},
iconName:D.iconType}))},"Hg"),cLH=_.l(function(D){function t(N){N.stopPropagation();
N.code==="ArrowUp"?(N.preventDefault(),kyV(w.value)):N.code==="ArrowDown"?(N.preventDefault(),TXR(w.value)):N.code==="KeyM"?K06():(N.code==="KeyK"||N.code==="Space")&&NXX(h())}
var H=_.FQ(D,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});D=H.previousButtonDisabled;var e=H.nextButtonDisabled,V=H.data,b=H.playabilityStatus,a=H.previewThumbnail,w=_.DY("ytd-shorts-miniplayer-overlay"),h=_.dm(_.$CT),K;_.SG(function(){(K=_.pW(w.value))&&K.addEventListener("keydown",t)});
_.Sj(function(){var N;(N=K)==null||N.removeEventListener("keydown",t)});
H=function(){var N,k,T;return(N=V())==null?void 0:(k=N.reelPlayerOverlayRenderer)==null?void 0:(T=k.likeButton)==null?void 0:T.likeButtonRenderer};
return _.G("ytd-shorts-miniplayer-overlay",{el:w,class:"ytdShortsMiniplayerOverlayHost"},_.G("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.O7({"background-image":function(){var N=a();return N?'url("'+_.E7(N.thumbnails)+'")':""}})}),_.G("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.G("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.G(T_v,{iconType:function(){var N=h();
return N===2||N===-1||N===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){NXX(h())},
tooltipText:function(){var N=h();return N===1||N===3?_.OT("PLAYER_LABEL_PAUSE"):_.OT("PLAYER_LABEL_PLAY")}}),_.G(_.sZY,{orientation:"horizontal_right"})),_.G("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.G(T_v,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:D,onTap:function(){kyV(w.value)},
tooltipText:_.OT("PREVIOUS_VIDEO_LABEL")}),_.G(T_v,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:e,onTap:function(){TXR(w.value)},
tooltipText:_.OT("NEXT_VIDEO_LABEL")}),_.r("web_shorts_pip_like_button")?_.G("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.G(kVF,{buttonTooltipPosition:"left",data:H,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.G("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.G(_.E,{cond:function(){var N,k;return _.O((N=V())==null?void 0:(k=N.reelPlayerOverlayRenderer)==null?void 0:k.metapanel,
_.mB4)},
then:function(N){return _.G("div",{class:_.jQ("ytdShortsMiniplayerOverlayInteractive")},_.G(_.kpH,{data:N}))}})),_.G("div",{class:_.jQ("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var N;return!((N=V())==null||!N.adsOverlay)||b()&&!aCA(b())}},_.G("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.G(_.ZRY,null)))),_.G(_.E,{cond:function(){var N=V(),k,T;
N=_.O(N==null?void 0:(k=N.adsOverlay)==null?void 0:(T=k.fulfillmentContent)==null?void 0:T.fulfilledLayout,$k4);return _.O(N==null?void 0:N.renderingContent,PVm)},
then:function(N){return _.G("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.G(Qon,{data:N}))}}))},"Ig");var cxR=_.l(function(){var D=_.F(_.KR(new _.O5(NaN,NaN),void 0,"hq9Bjf")),t=D.next().value,H=D.next().value;D=_.F(_.KR(!1,void 0,"Mu3aZc"));var e=D.next().value,V=D.next().value,b=_.F(_.KR(!1,void 0,"LGtoFb"));D=b.next().value;var a=b.next().value,w=_.qS().resolve(_.dL).miniplayerPropSignalMap[0],h=w.data,K=w.shortsData,N=w.nextButtonDisabled,k=w.shortsPreviewThumbnail,T=w.previousButtonDisabled,c=w.externalPlaylistData;b=w.toastData;var U=w.playabilityStatus,S=w.isDisabled,L=w.playerVe,J=w.closeVe;
w=_.dm(_.ZT);_.z0("yt-pip-window-resized",function(R){H(R)});
_.z0("yt-activate-pip-miniplayer",function(){return _.Z(function(R){a(!0);_.n2(R)})});
var g=function(){var R;return!((R=c())==null||!R.contents)&&e()},Q=function(){var R=t(),I=!!h(),tT=g();
R=R.clone();I&&(R.height-=76);tT&&(R.height-=285);return R},u=function(){V(!e())};
_.Mp(function(){var R=L(),I=_.v3(11),tT=_.lo(11);I&&tT&&R&&(_.Q$(I,tT,R),tT=J())&&(_.y$(I,R,[tT]),_.zf(I,[tT]))},"fHkmfb");
return _.G("ytd-pip-container",{class:"ytdPipContainerHost"},_.G(_.E,{cond:D,then:function(){return _.G(_.UcF,{isDisabled:S,playabilityStatus:U,size:Q})}}),_.G(_.E,{cond:h,
then:function(){return _.G(_.rei,{data:h,expanded:e,onExpandClick:u,playlistData:c})}}),_.G(_.E,{cond:g,
then:function(){return _.G("div",{class:"ytdPipContainerPlaylistPanel"},_.G(_.KDO,{data:c,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.G(_.E,{cond:w,
then:function(){return _.G(cLH,{data:K,nextButtonDisabled:N,previousButtonDisabled:T,playabilityStatus:U,previewThumbnail:k})}}),_.G("div",{class:"ytdPipContainerToast"},_.G(_.oOY,{toastData:b})))},"Kg");var E6=function(D,t){var H=this;this.pipController=D;this.JSC$18742_clientRoot=t;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=S0D();this.watchPipEnabled=_.r("web_watch_pip");this.shortsPipEnabled=_.r("web_shorts_pip");this.JSC$18742_watchWhileEnabled=_.r("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;_.Rj(_.b_(),NfT,function(e){H.isSingleOptionSurveyActive=e});
this.JSC$18742_onPlayerPlayVideo=this.JSC$18742_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);_.ya(_.Qa.getInstance(),this.miniplayerServiceActionMap,this.JSC$18742_clientRoot);D.pictureInPictureSupported()&&_.L7("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},khn,CD4,Upt,mpZ,Mjt,Xan;
E6.prototype.handleMediaSessionPipActivation=function(){var D=this,t;return _.Z(function(H){_.d3().mediaSessionPipActivation=!0;t=_.qS().resolve(_.bO);return t.isOnWatch()&&D.watchPipEnabled?(_.d3().watchPipActivation=!0,_.jZZ(D,t.data),H.jumpTo(0)):t.isOnShorts()&&D.shortsPipEnabled?(_.d3().shortsPipActivation=!0,_.$pY(D),H.jumpTo(0)):D.isMiniplayerActive()&&D.watchPipEnabled&&!D.watchWhileMode?H.yield(iRt(D),0):H.jumpTo(0)})};
var iRt=function(D){var t,H,e,V;return _.Z(function(b){if(b.nextAddress==1)return t=!D.miniplayerToPipMode,H=D.playerElement,e=D.miniplayerData,V=D.watchResponse,b.yield(D.deactivate(),2);if(b.nextAddress!=3)return t?(_.d3().mediaSessionPipActivation=!0,_.d3().watchPipActivation=!0):_.d3().miniplayerButtonActivation=!0,b.yield(D.activate(H,e,V),3);D.miniplayerToPipMode=t;_.n2(b)})};
E6.prototype.onDownloadedVideoDeleted=function(D){var t,H=_.O((t=this.miniplayerData)==null?void 0:t.watchEndpoint,_.Hh),e,V;H&&((e=this.watchResponse)==null?void 0:(V=e.playerResponse)==null?void 0:V.offlineState)!==void 0&&(t=H.videoId)&&D&&t===D&&this.close()};
E6.prototype.onShowMiniplayerCommand=function(D){var t=this,H,e,V,b,a,w,h,K,N,k,T;return _.Z(function(c){switch(c.nextAddress){case 1:return H=_.O(D,c7o),V=(e=H)==null?void 0:e.miniplayerCommand,b=_.O(V,_.Hh),V&&b&&!t.active?c.yield(_.z6.getInstance(),2):c.return();case 2:return a=c.yieldResult,c.yield((w=a)==null?void 0:w.get("yt-miniplayer-shown-video-id"),3);case 3:h=c.yieldResult;K=b.videoId;if(!K||h===K)return c.return();N=_.qS().resolve(_.bO);if(N.isOnWatch())return _.Yw(Error("Oj")),c.return();
k={channelItem:{externalId:btoa(K)}};t.readyToResumeVe=_.Nx(121253,void 0,void 0,k);_.d3().showMiniplayerCommandActivation=!0;return c.yield(_.fCm(t,V,!0),4);case 4:return t.active&&(_.K5(t,{readyToResumeVe:t.readyToResumeVe,isReadyToResume:!0}),t.isReadyToResume=!0),c.yield((T=a)==null?void 0:T.set("yt-miniplayer-shown-video-id",b.videoId),5);case 5:t.readyToResumeVe=void 0,_.n2(c)}})};
E6.prototype.init=function(D){this.miniplayerEl?_.Yw(new _.nZ("MiniplayerService already initialized.")):this.miniplayerEl=D};
E6.prototype.isInitialized=function(){var D=!!this.miniplayerEl;D||_.Yw(new _.nZ("MiniplayerService used before initialized."));return D};
_.jZZ=function(D,t){if(D.isInitialized()){var H=_.Ls(t.response,!1,t.playerResponse),e=_.qS().resolve(_.bO).getPlayerFromWatch();_.d3().currentEndpoint=H.watchEndpoint||null;D.activate(e,H,t)}};
_.$pY=function(D){if(D.isInitialized()){var t=_.qS().resolve(_.bO).getPlayerFromShorts();D.activate(t)}};
khn=function(D,t){var H;(H=!D.isInitialized())||(H=_.qS().resolve(_.bO).isOnWatch()&&D.watchPipMode,H=!(D.isMiniplayerActive()&&(_.d3().userActivation||_.d3().lockupActivation||H)));if(H)return!1;rLF(D,t)?_.s6(D):Xan(D,t);return D.watchPipMode?!_.qS().resolve(_.bO).isOnWatch():!0};
E6.prototype.isMiniplayerActive=function(){return this.active};
var rLF=function(D,t){var H;t=(H=_.O(t,_.Hh))==null?void 0:H.videoId;var e,V;D=(V=_.O((e=D.miniplayerData)==null?void 0:e.watchEndpoint,_.Hh))==null?void 0:V.videoId;return t!=null&&t===D};
E6.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Gf(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.ET(this.miniplayerEl,"yt-navigate-home-action"))};
_.fCm=function(D,t,H,e){H=H===void 0?!1:H;var V,b,a;return _.Z(function(w){switch(w.nextAddress){case 1:if(D.active){w.jumpTo(2);break}V=_.qS().resolve(_.bO);if(a=(b=D.playerElement)!=null?b:V.getPlayerFromWatch()){w.jumpTo(3);break}return w.yield(_.qS().resolve(_.h5),4);case 4:a=V.getPlayerFromWatch();case 3:if(!a){_.Yw(Error("Qj"));w.jumpTo(2);break}return w.yield(D.activate(a,e),2);case 2:return D.active?w.yield(Xan(D,t,H),0):w.return()}})};
E6.prototype.activate=function(D,t,H){var e=this,V,b,a,w,h,K,N,k,T;return _.Z(function(c){switch(c.nextAddress){case 1:if(!e.isInitialized())return c.return();if(!D)return _.Yw(Error("Qj")),c.return();if(_.L8v()||e.isMiniplayerActive())var U=!0;else U=_.d3().watchPipActivation||_.d3().watchWhileActivation,_.qS().resolve(_.bO).isOnWatch()&&!U?(_.Yw(new _.nZ("miniplayer activated on watch page")),U=!0):U=_.d3().watchWhileActivation?e.userDeactivatedWatchWhile||!!document.pictureInPictureElement||pCV():
!1;if(U)return f66(),c.return();V=_.d3().mediaSessionPipActivation;b=_.d3().shortsPipActivation;a=_.d3().watchPipActivation;h=(w=_.d3().watchWhileActivation)||a;K=a||b;if(!e.pictureInPictureEnabled()||!K){c.jumpTo(2);break}return c.yield(ORb(e,V),3);case 3:if(!c.yieldResult)return _.Yw(Error("Pj")),f66(),c.return();case 2:return e.setActive(!0),e.watchResponse=H,e.playerElement=D,e.updateMiniplayerData(t),c.yield(Upt(e,D),4);case 4:if(!e.active)return _.Yw(new _.nZ("miniplayer deactivated during activation")),
e.removePlayerListeners(),c.return();U=_.qS().resolve(_.hU);U.addEventListener("yt-navigate",_.iK(e,e.onPlaylistNavigate));U.addEventListener("yt-playlist-data-updated",_.iK(e,e.JSC$18742_onPlaylistDataUpdated));e.JSC$18742_onPlaylistDataUpdated();f66();e.JSC$18742_watchWhileEnabled&&_.oMF(e,w);e.pictureInPictureEnabled()&&e.shortsPipEnabled&&(e.shortsPipMode=b,_.b_().dispatch($5o(e.shortsPipMode)));e.pictureInPictureEnabled()&&e.watchPipEnabled&&(e.watchPipMode=a,_.x0$(e.handleMediaSessionPipActivation));
e.player&&(N=e.player.getPlayerState(),k=N===1,_.b_().dispatch(m5V(N)),_.Kl(e.miniplayerEl,"yt-miniplayer-play-state-changed",[k]),_.d3().isVideoPlaying=k);_.Kl(e.miniplayerEl,"yt-miniplayer-endpoint-changed");PDH(e);_.nMF(e);if(e.shortsPipMode||e.watchPipMode)c=c.yield(_.ET(e.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{U=c.yield;var S=_.ET(e.miniplayerEl,"yt-activate-miniplayer",[h])[0];c=U.call(c,S,6)}return c;case 6:if(e.watchResponse){U=e.getScreenLayer();S=_.v3(0);var L=DLV(0);S&&L&&
(_.dZ(S,L,U),U===0&&BK$(void 0,0))}CD4(e);mpZ(e,!0);(T=e.getPlayerElement())==null||T.focusOnPlayer();_.n2(c)}})};
E6.prototype.updateMiniplayerData=function(D){this.miniplayerData=D;_.K5(this,{data:D})};
_.nMF=function(D){var t,H,e=((t=D.miniplayerData)==null?void 0:(H=t.miniplayerRenderer)==null?void 0:H.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";t=D.watchWhileMode||D.watchPipMode?e&&!_.qS().resolve(_.bO).isOnWatch():e;_.K5(D,{isDisabled:t});var V,b;H=_.O((V=D.miniplayerData)==null?void 0:(b=V.miniplayerRenderer)==null?void 0:b.minimizedEndpoint,_.RW);t&&H&&_.qS().resolve(_.Hp).openSheet({openPopupActionCommand:{openPopupAction:H}},D.miniplayerEl)};
CD4=function(D){if(D.watchResponse&&!Mjt(D)){var t,H=(t=D.watchResponse.playerResponse)==null?void 0:t.trackingParams;H&&(_.K5(D,{expandVe:_.Nx(35989),closeVe:_.Nx(34699),readyToResumeCloseVe:_.Nx(131070),repositionVe:_.Nx(226204),resizeVe:_.Nx(226205)}),_.K5(D,{playerVe:_.Sa(H)}))}};
Upt=function(D,t){return _.Z(function(H){if(H.nextAddress==1)return t.preparePlayer(),H.yield(t.getPlayerPromise(),2);D.player=H.yieldResult;D.player&&(D.player.addEventListener("onPlayVideo",D.JSC$18742_onPlayerPlayVideo),D.player.addEventListener("onCloseMiniplayer",D.onPlayerCloseMiniplayer),D.player.addEventListener("onExpandMiniplayer",D.onPlayerExpandMiniplayer),D.player.addEventListener("onStateChange",D.onPlayerStateChange));_.n2(H)})};
_.q=E6.prototype;_.q.JSC$18742_onPlayerPlayVideo=function(D){var t=D.sessionData&&"autonav"in D.sessionData,H;D.sessionData&&D.sessionData.itct&&(H=D.sessionData.itct);var e=D.watchEndpoint;t=e&&t?_.mhD(e,H):_.af(D.videoId,D.listId||void 0,H);D.sessionData&&_.qJ(_.O(t.commandMetadata,_.i1).url,D.sessionData);Xan(this,t)};
_.q.onPlayerExpandMiniplayer=function(){_.s6(this)};
_.q.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.q.onPlayerStateChange=function(){if(this.player){var D=this.player.getPlayerState(),t=D===1;_.b_().dispatch(m5V(D));_.b_().dispatch(_.Xz6(D));_.Kl(this.miniplayerEl,"yt-miniplayer-play-state-changed",[t]);_.d3().isVideoPlaying=t;if(D===0){t=!_.Uz.getInstance().isAutoplaySetExplicitly();var H,e,V,b,a,w,h=(H=this.watchResponse.response)==null?void 0:(e=H.contents)==null?void 0:(V=e.twoColumnWatchNextResults)==null?void 0:(b=V.autoplay)==null?void 0:(a=b.autoplay)==null?void 0:(w=a.autoplayExplicitChoiceDialogRenderer)==
null?void 0:w.confirmDialogRenderer;t&&h&&this.player.setAutonavState(1)}D===0&&this.watchWhileMode&&this.deactivate()}};
_.q.onPlaylistNavigate=function(D,t){var H=this,e,V,b,a,w,h,K;return _.Z(function(N){if(N.nextAddress==1){if(!_.O(t.endpoint,_.Hh))return N.return();_.d3().currentEndpoint=t.endpoint;_.Kl(H.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.qS().resolve(_.bO).isOnWatch()&&(H.watchWhileMode||H.watchPipMode))return N.return();D.stopPropagation();(b=(V=_.O((e=t.endpoint)==null?void 0:e.commandMetadata,_.i1))==null?void 0:V.url)&&t.tempData&&!_.J$.isEmpty(t.tempData)&&_.qJ(b,t.tempData);a={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};w=new XWV(function(){return H.getPlayerElement()},a,{layer:H.getScreenLayer()});
h=function(k){w.processChunk({endpoint:t.endpoint,data:k})};
SPg(H);H.miniplayerFetchRequest=XIt(H,t.endpoint,h);_.$p(N,2);return N.yield(H.miniplayerFetchRequest,4)}if(N.nextAddress!=2)return K=N.yieldResult,f_Y(H,K),_.yM(N,0);_.Pv(N);_.n2(N)})};
_.q.JSC$18742_onPlaylistDataUpdated=function(){var D=_.qS().resolve(_.hU).getPlaylistData();this.hasPlaylistData=!!D;_.K5(this,{externalPlaylistData:D||{}})};
_.q.close=function(D){if(this.isInitialized())if(D){if(!((this.watchWhileMode||this.watchPipMode)&&_.qS().resolve(_.bO).isOnWatch()||this.shortsPipMode)){var t;(t=this.getPlayerElement())==null||t.stop()}this.deactivate()}else _.k$().closeMiniplayer(this.miniplayerEl)};
_.q.deactivate=function(D){var t=this,H,e,V,b;return _.Z(function(a){if(a.nextAddress==1){if(!t.isInitialized()||!t.active)return a.return();t.setActive(!1);SPg(t);(H=!!D&&rLF(t,D))&&t.isSingleOptionSurveyActive&&_.ET(t.miniplayerEl,"yt-show-watch-page-survey",[t.isSingleOptionSurveyActive]);return a.yield(LGO(t),2)}if(a.nextAddress!=3){mpZ(t,!1);t.isReadyToResume=!1;t.watchResponse=void 0;t.updateMiniplayerData(void 0);t.shortsPipMode&&(t.shortsPipMode=!1,_.b_().dispatch($5o(t.shortsPipMode)),xNe(t.pipController),
(e=t.player)==null||e.setInternalSize(NaN,NaN));t.watchPipMode&&(t.watchPipMode=!1,xNe(t.pipController));(V=t.watchWhileMode)&&_.oMF(t,!1);t.removePlayerListeners();var w=_.qS().resolve(_.hU);w.removeEventListener("yt-navigate",_.iK(t,t.onPlaylistNavigate));w.removeEventListener("yt-playlist-data-updated",_.iK(t,t.JSC$18742_onPlaylistDataUpdated));_.d3().currentEndpoint=null;_.Kl(t.miniplayerEl,"yt-miniplayer-endpoint-changed");t.playerElement=null;f66();if(t.shortsPipMode||t.watchPipMode)a=a.jumpTo(3);
else{w=a.yield;var h=_.ET(t.miniplayerEl,"yt-deactivate-miniplayer",[H,V])[0];a=w.call(a,h,3)}return a}(b=t.player)==null||b.setInternalSize(NaN,NaN);t.player=null;_.n2(a)})};
var LGO=function(D){var t;return _.Z(function(H){t=_.qS().resolve(_.bO);return D.shortsPipMode?H.yield(t.movePlayerToShorts(D.playerElement),0):H.yield(t.movePlayerToWatch(D.playerElement),0)})};
E6.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18742_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
E6.prototype.setActive=function(D){this.active=D;this.isSingleOptionSurveyActive?_.ET(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.ET(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.b_().dispatch(_.hV({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.oMF=function(D,t){D.watchWhileMode=t;_.K5(D,{watchWhile:t})};
mpZ=function(D,t){if(!Mjt(D))if(D.shortsPipMode||D.watchPipMode){var H;(H=D.player)==null||H.setDocumentPictureInPicture(t)}else{var e;(e=D.player)==null||e.setMinimized(t)}};
Mjt=function(D){return D.watchWhileMode&&_.r("kevlar_watch_while_counterfactual")};
_.s6=function(D){var t;return _.Z(function(H){switch(H.nextAddress){case 1:if(!D.isInitialized())return H.return();_.$p(H,2);return H.yield(D.miniplayerFetchRequest,4);case 4:_.yM(H,3);break;case 2:_.Pv(H);case 3:D.watchResponse&&D.miniplayerData&&D.miniplayerData.watchEndpoint?(t={url:D.watchResponse.url,endpoint:D.miniplayerData.watchEndpoint,data:D.watchResponse,miniplayer:!0},_.Gf(D.miniplayerEl,"yt-navigate-cache",t)):D.miniplayerData&&D.miniplayerData.watchEndpoint&&_.Gf(D.miniplayerEl,"yt-navigate",
{endpoint:D.miniplayerData.watchEndpoint}),_.n2(H)}})};
Xan=function(D,t,H){var e,V,b,a;return _.Z(function(w){if(w.nextAddress==1){if(rLF(D,t))return w.return();_.d3().currentEndpoint=t;_.Kl(D.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Kl(D.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.d3().isVideoPlaying=!1;e={clientParams:{miniplayer:!0,autoSaveToQueue:!H}};V=new XWV(function(){return D.getPlayerElement()},e,{layer:D.getScreenLayer(),
parentLayer:0},void 0,D.readyToResumeVe);b=function(h){var K,N,k=Object.assign({},(K=h.playerResponse)==null?void 0:(N=K.playerConfig)==null?void 0:N.playbackStartConfig,{startPaused:!0}),T;H&&((T=h.playerResponse)==null?0:T.playerConfig)&&(h.playerResponse.playerConfig.playbackStartConfig=k);V.processChunk({endpoint:t,data:h})};
SPg(D);D.miniplayerFetchRequest=XIt(D,t,b);_.$p(w,2);return w.yield(D.miniplayerFetchRequest,4)}if(w.nextAddress!=2)return a=w.yieldResult,f_Y(D,a),_.yM(w,0);_.Pv(w);_.n2(w)})};
E6.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var SPg=function(D){D.miniplayerFetchRequest&&(D.miniplayerFetchRequest.cancel&&D.miniplayerFetchRequest.cancel("Active request obsolete"),D.miniplayerFetchRequest=null)},XIt=function(D,t,H){var e=_.Im.instance,V,b=(V=_.O(t.commandMetadata,_.i1))==null?void 0:V.url,a;
V=!b||_.r("disable_miniplayer_tempdata")?{}:(a=YiA(b))!=null?a:{};return uI(e,t,V,window.location.href,"watch",function(w,h){H(h)},function(w){return w!==D.miniplayerFetchRequest})},f_Y=function(D,t){var H;
_.Z(function(e){if(!t)return e.return();D.watchResponse=t;CD4(D);PDH(D);H=_.Ls(t.response,!1,t.playerResponse);if(D.isMiniplayerActive()){t.response&&(D.playerElement.watchNextData=t.response);var V=_.J$.getValueByKeys.apply(_.J$,[t].concat(_.A6(d5m)));_.J$.getValueByKeys.apply(_.J$,[t].concat(_.A6(Ir4)))&&V&&_.qS().resolve(_.hU).setAutoplayRenderer(V);if(V)if(_.r("kevlar_is_pupi_enabled")){var b,a,w,h,K,N=((b=t.response)==null?0:(a=b.playerOverlays)==null?0:(w=a.playerOverlayRenderer)==null?0:(h=
w.autonavToggle)==null?0:(K=h.autoplaySwitchButtonRenderer)==null?0:K.enabled)?2:1;_.Uz.getInstance().setState(N,!1,!1)}else b=zjV()?2:1,(N=D.player)==null||N.setAutonavState(b);D.updateMiniplayerData(H);_.nMF(D)}_.n2(e)})},PDH=function(D){var t,H,e=(t=D.watchResponse)==null?void 0:(H=t.playerResponse)==null?void 0:H.playabilityStatus,V;
t=e==null?void 0:(V=e.miniplayer)==null?void 0:V.miniplayerRenderer;(t==null?void 0:t.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&t.minimizedEndpoint&&_.NJ(D.miniplayerEl,[t.minimizedEndpoint]);_.K5(D,{playabilityStatus:e})};
E6.prototype.openToast=function(D,t){_.K5(this,{toastData:{data:D,label:t}})};
_.K5=function(D,t){(0,D.miniplayerPropSignalMap[1])(t)};
E6.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var D;return this.playerElement?this.playerElement:(D=_.Kg(this.miniplayerEl).querySelector("#player-container"))==null?void 0:D.firstElementChild};
E6.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var ORb=function(D,t){t=t===void 0?!1:t;var H,e,V,b,a,w,h;return _.Z(function(K){if(K.nextAddress==1){H=navigator.userActivation.isActive||t;if(!H||!D.pictureInPictureSupported())return K.return(!1);e=ALv(D);V=e.width;b=e.height;return K.yield(D.pipController.openWindow({width:V,height:b}),2)}a=K.yieldResult;w=D.pipController.getWindow();if(!w||!a)return K.return(!1);w.document.body.style.overflow="hidden";h=je8(w);RUF(D.pipController,function(){gMY(D);h()});
return K.return(!0)})},ALv=function(D){var t=_.d3().shortsPipActivation,H,e;
D=t?.5625:(e=(H=D.player)==null?void 0:H.getVideoAspectRatio())!=null?e:16/9;H=Math.min(window.innerWidth,window.innerHeight)/2;t=t?0:76;return D>1?new _.O5(H,t+H/D):new _.O5(H*D,t+H)},gMY=function(D){var t;
_.Z(function(H){t=_.qS().resolve(_.bO);return t.isOnWatch()&&D.watchPipMode||t.isOnShorts()&&D.shortsPipMode?H.yield(D.deactivate(),0):D.miniplayerToPipMode?H.yield(iRt(D),0):D.watchPipMode?H.yield(_.s6(D),0):H.jumpTo(0)})};
E6.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.ql.Object.defineProperties(E6.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
E6[Fc]=[u7e,hJQ];var JLF="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(" "),
YPg="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(" "),l_t="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
vMi="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var pIQ=null;var dpZ={},xpF=(dpZ.initialized={priority:10,callback:function(D){var t=_.qS();t.addProvider({provide:f_a,useClass:I7Q});t.addProvider({provide:_.Wut,useFactory:function(){return new LGf}});
t.addProvider({provide:bd,useValue:_.YC("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});t.addProvider({provide:p9Y,useValue:5184E6});t.addProvider({provide:ZeF,useValue:_.Cs()});t.addProvider({provide:TwH,useClass:EaQ});t.addProvider({provide:N5,useClass:N5});t.addProvider({provide:_.h5,useFactory:function(){return i39.promise}});
t.addProvider({provide:_.O3n,useFactory:function(){return _.rD9.promise}});
t.addProvider({provide:m8K,useValue:function(){var h;return((h=_.FA())==null?void 0:h.getPlayer())||null}});
var H={};t.addProvider((H.provide=_.XT,H.useFactory=function(h,K){return function(){return CQ$(h,K)}},H[Fc]=[bd,
p9Y],H));H={};t.addProvider((H.provide=_.Jk,H.useClass=Lib,H[Fc]=[bd,p9Y],H));H={};t.addProvider((H.provide=_.AxV,H.useClass=YFb,H[Fc]=[_.Jk],H));t.addProvider({provide:QS,useFactory:_.b_});t.addProvider({provide:a6,useFactory:_.b_});t.addProvider({provide:PMZ,useFactory:_.b_});t.addProvider({provide:HBm,useFactory:_.b_});t.addProvider({provide:_.sg,useFactory:_.b_});t.addProvider({provide:vM,useValue:_.rO});t.addProvider({provide:vpZ,useClass:p73});t.addProvider({provide:c3F,useClass:ToF});t.addProvider({provide:cq,
useClass:cq});t.addProvider({provide:pp,useClass:pp});t.addProvider({provide:df,useClass:df});t.addProvider({provide:Rm,useClass:Rm});t.addProvider({provide:oF,useClass:oF});t.addProvider({provide:tm,useClass:tm});t.addProvider({provide:WE,useClass:WE});t.addProvider({provide:_.OeH,useValue:htF});t.addProvider({provide:_.eX,useFactory:_.Pc});t.addProvider({provide:ld,useFactory:_.Ph});H={};t.addProvider((H.provide=$fT,H.useFactory=function(h){return function(K){var N=N===void 0?{}:N;var k,T,c=(T=
_.O((k=K.endpoint)==null?void 0:k.commandMetadata,_.i1))==null?void 0:T.rootVe;if(c){var U,S;if(k=K.previousCsn||((S=_.O((U=K.endpoint)==null?void 0:U.commandMetadata,Qj9))==null?void 0:S.parentCsn)){var L=L===void 0?{}:L;if(k!==_.v3(L.layer)||c!==DLV(L.layer))bUV(k,L.cttAuthInfo,L.layer||0),BK$(k,L.layer||0),U=L.layer||0,_.JZ(zwR(U===void 0?0:U),c);N.parentCsn=k}K.endpoint&&k?kg4(h,K.endpoint,N):_.Li(h,c,void 0,N);var J;((J=K.response)==null?0:J.trackingParams)&&h.graftServerVe(K.response.trackingParams);
var g;((g=K.playerResponse)==null?0:g.trackingParams)&&h.graftServerVe(K.playerResponse.trackingParams);var Q;((Q=K.reelWatchSequenceResponse)==null?0:Q.trackingParams)&&h.graftServerVe(K.reelWatchSequenceResponse.trackingParams)}}},H[Fc]=[_.eX],H));
H={};t.addProvider((H.provide=CMY,H.useClass=nhb,H[Fc]=[vM,_.sg],H));H={};t.addProvider((H.provide=xm,H.useClass=xm,H[Fc]=[_.h5,_.sg],H));H={};t.addProvider((H.provide=lN,H.useClass=lN,H[Fc]=[a6,_.aA],H));t.addProvider({provide:_.ght,useClass:I1F});H={};t.addProvider((H.provide=_.tr,H.useClass=l1Q,H[Fc]=[_.ght,_.by(_.VD)],H));t.addProvider({provide:_.Hp,useClass:Wq});t.addProvider({provide:_.VbF,useClass:npQ});t.addProvider({provide:_.eC,useClass:RF});_.r("enable_ai_companion")&&(t.addProvider({provide:_.VD,
useClass:dNF}),t.addProvider({provide:_.ZV3,useClass:nym}),t.addProvider({provide:_.AAi,useClass:LdY}));H={};t.addProvider((H.provide=_.Ag,H.useClass=WdF,H[Fc]=[_.Ag],H));t.addProvider({provide:_.Lm,useClass:hnb});t.addProvider({provide:tg,useClass:tg});t.addProvider({provide:rY,useClass:rY});t.addProvider({provide:Fp,useClass:Fp});H={};t.addProvider((H.provide=lX,H.useClass=lX,H[Fc]=[_.aA,_.xg],H));t.addProvider({provide:N7,useClass:uN});H={};t.addProvider((H.provide=c6,H.useClass=c6,H[Fc]=[_.Hp,
N7],H));H={};t.addProvider((H.provide=GC,H.useClass=GC,H[Fc]=[_.Hp],H));_.r("web_enable_feedback_endpoint_resolver")&&(H={},t.addProvider((H.provide=yS,H.useClass=yS,H[Fc]=[QS,Ir],H)),t.addProvider({provide:Ir,useClass:LnH}));_.r("web_enable_feedback_endpoint_resolver_batch_2")&&(H={},t.addProvider((H.provide=zM,H.useClass=zM,H[Fc]=[QS],H)),H={},t.addProvider((H.provide=B8,H.useClass=B8,H[Fc]=[Ir],H)));H={};t.addProvider((H.provide=k9,H.useClass=k9,H[Fc]=[_.eC,N7],H));H={};t.addProvider((H.provide=
sX,H.useClass=sX,H[Fc]=[_.eC],H));H={};t.addProvider((H.provide=TC,H.useClass=TC,H[Fc]=[_.xg,_.tr],H));H={};t.addProvider((H.provide=KO,H.useClass=KO,H[Fc]=[_.xg,_.eX],H));t.addProvider({provide:ud,useClass:ud});H={};t.addProvider((H.provide=Y9,H.useClass=Y9,H[Fc]=[QS],H));t.addProvider({provide:Fe,useClass:Fe});t.addProvider({provide:qq,useClass:qq});H={};t.addProvider((H.provide=w$,H.useClass=w$,H[Fc]=[QS],H));H={};t.addProvider((H.provide=ZW,H.useClass=ZW,H[Fc]=[_.xg,QS],H));H={};t.addProvider((H.provide=
s$,H.useClass=s$,H[Fc]=[QS],H));H={};t.addProvider((H.provide=hN,H.useClass=hN,H[Fc]=[QS],H));H={};t.addProvider((H.provide=hg,H.useClass=hg,H[Fc]=[_.tr],H));H={};t.addProvider((H.provide=B6,H.useClass=B6,H[Fc]=[_.eX],H));H={};t.addProvider((H.provide=VG,H.useClass=VG,H[Fc]=[x9],H));H={};t.addProvider((H.provide=bW,H.useClass=bW,H[Fc]=[x9],H));t.addProvider({provide:tN,useClass:tN});t.addProvider({provide:HE,useClass:HE});t.addProvider({provide:ye,useClass:ye});H={};t.addProvider((H.provide=jK,H.useClass=
jK,H[Fc]=[_.tr,_.aA],H));t.addProvider({provide:Ve,useClass:Ve});H={};t.addProvider((H.provide=EX,H.useClass=EX,H[Fc]=[_.xg,_.tr],H));t.addProvider({provide:aY,useClass:aY});H={};t.addProvider((H.provide=gY,H.useClass=gY,H[Fc]=[QS,_.xg,_.Ag],H));H={};t.addProvider((H.provide=fO,H.useClass=fO,H[Fc]=[_.xg,_.aA],H));t.addProvider({provide:b$B,useValue:vbT});t.addProvider({provide:sXm,useValue:d78});t.addProvider({provide:LO,useClass:LO});H={};t.addProvider((H.provide=Xp,H.useClass=Xp,H[Fc]=[QS],H));
H={};t.addProvider((H.provide=Jg,H.useClass=Jg,H[Fc]=[_.Lm,_.aA],H));H={};t.addProvider((H.provide=DI,H.useClass=DI,H[Fc]=[_.aA],H));t.addProvider({provide:W8,useFactory:function(){return new W8(_.b_())}});
t.addProvider({provide:laD,useFactory:_.gn.getInstance});H={};t.addProvider((H.provide=q7,H.useClass=q7,H[Fc]=[bd,laD,_.aA],H));t.addProvider({provide:H6,useClass:H6});t.addProvider({provide:pq,useClass:pq});t.addProvider({provide:xa,useClass:xa});t.addProvider({provide:_.dy,useClass:_.dy});t.addProvider({provide:KD,useClass:KD});H={};t.addProvider((H.provide=CO,H.useClass=CO,H[Fc]=[a6],H));H={};t.addProvider((H.provide=id,H.useClass=id,H[Fc]=[_.aA],H));H={};t.addProvider((H.provide=mo,H.useClass=
mo,H[Fc]=[_.aA],H));H={};t.addProvider((H.provide=M7,H.useClass=M7,H[Fc]=[_.aA],H));_.r("web_enable_prefetching_videos_on_home")&&(t.addProvider({provide:Ym,useClass:Ym}),t.addProvider({provide:q8,useClass:q8}));H={};t.addProvider((H.provide=E$,H.useClass=E$,H[Fc]=[_.aA],H));t.addProvider({provide:Rr,useClass:Rr});H={};t.addProvider((H.provide=W6,H.useClass=W6,H[Fc]=[_.xg,_.aA],H));H={};t.addProvider((H.provide=uX,H.useClass=uX,H[Fc]=[_.aA],H));H={};t.addProvider((H.provide=FR,H.useClass=FR,H[Fc]=
[_.xg,_.aA],H));t.addProvider({provide:bT,useClass:bT});t.addProvider({provide:oY,useClass:oY});H={};t.addProvider((H.provide=UX,H.useClass=UX,H[Fc]=[a6,_.aA],H));t.addProvider({provide:P6,useClass:P6});H={};t.addProvider((H.provide=TR,H.useClass=TR,H[Fc]=[a6,_.aA,_.xg],H));H={};t.addProvider((H.provide=cE,H.useClass=cE,H[Fc]=[_.aA],H));H={};t.addProvider((H.provide=kU,H.useClass=kU,H[Fc]=[_.aA,_.xg],H));H={};t.addProvider((H.provide=SK,H.useClass=SK,H[Fc]=[_.h5],H));H={};t.addProvider((H.provide=
nO,H.useClass=nO,H[Fc]=[_.h5],H));t.addProvider({provide:dY,useClass:dY});t.addProvider({provide:RY,useClass:RY});t.addProvider({provide:aa,useClass:aa});t.addProvider({provide:IY,useClass:IY});t.addProvider({provide:pO,useClass:pO});t.addProvider({provide:wY,useClass:wY});t.addProvider({provide:v6,useClass:v6});_.r("kevlar_enable_mss_lazy_load")&&t.addProvider({provide:_.R6,useClass:m3F});t.addProvider({provide:_.uS,useClass:QY});t.addProvider({provide:Oz,useFactory:function(){return _.Qa.getInstance()}});
t.addProvider({provide:UNF,useFactory:vuR});t.addProvider({provide:x9,useFactory:function(){return _.z6.getInstance()}});
t.addProvider({provide:G_o,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});H={};t.addProvider((H.provide=_.vq,H.useClass=_.vq,H[Fc]=[_.h5,_.aA,_.eX,UNF,x9,Oz,G_o,vM],H));t.addProvider({provide:_.dt,useClass:y4v});t.addProvider({provide:_.xwQ,useClass:dwe});H={};t.addProvider((H.provide=ZI,H.useClass=ZI,H[Fc]=[_.xwQ],H));H={};t.addProvider((H.provide=_.py,H.useFactory=function(h){return h.upliftCompletionResolver.promise},H[Fc]=[CMY],H));
H=_.lh("IS_SHELL_LOAD")?"aa":"eocs";var e=_.lh("IS_SHELL_LOAD")?3:2;_.EK().parkOrScheduleJob(function(){MM4()},e,H);
_.EK().parkOrScheduleJob(function(){_.qS().resolve(xm).start()},2,"eocs");
_.EK().parkOrScheduleJob(function(){ohH()},2,"eocs");
_.EK().parkOrScheduleJob(function(){_.qS().resolve(lN).start()},2,"eocs");
_.r("kevlar_debug_data_app_registration_ks")||zu8();t.addProvider({provide:_.mM,useValue:new $uF(D.root)});t.addProvider({provide:RR,useValue:new FcV});t.addProvider({provide:_.C8H,useValue:new P8F(D.root)});t.addProvider({provide:_.dn,useValue:new n3Q});t.addProvider({provide:_.yN,useClass:WJ});t.addProvider({provide:u7e,useClass:IF});_.r("kevlar_network_sli_killswitch")||t.addProvider({provide:HWe,useValue:tU6});t.addProvider({provide:pvH,useFactory:g5X});_.r("web_bind_fetch")&&(H={},t.addProvider((H.provide=
ddi,H.useFactory=JsA,H[Fc]=[_.by(pvH)],H)));_.r("web_bind_window_request")&&(H={},t.addProvider((H.provide=RDZ,H.useFactory=YfT,H[Fc]=[_.by(pvH)],H)));_.r("web_bind_text_decoder")&&(H={},t.addProvider((H.provide=uqe,H.useFactory=lCV,H[Fc]=[_.by(pvH)],H)));H={};t.addProvider((H.provide=EQg,H.useFactory=TlT,H[Fc]=[_.py,QS,_.XT],H));H={};t.addProvider((H.provide=GHe,H.useClass=jh,H[Fc]=[EQg],H));t.addProvider({provide:CYF,useClass:UHg});t.addProvider({provide:wtH,useClass:svQ});H=[].concat(_.A6(Dg));
_.r("web_continuation_response_processing")&&H.push(_.RH);H.push(nTm);_.r("enable_share_panel_navigation_logging_fix_on_web")&&H.push(_.xa3);t.addProvider({provide:k8u,useValue:H});t.addProvider({provide:dRA,useClass:aOO});t.addProvider({provide:FJF,useClass:e5v});H={};t.addProvider((H.provide=Y9D,H.useClass=lVF,H[Fc]=[a6],H));_.Jy.addLowPriorityJob(function(){wi3()});
H={};t.addProvider((H.provide=bBa,H.useFactory=function(h){return function(K){var N,k=(N=_.O(K.commandMetadata,_.i1))==null?void 0:N.url;if(!k)throw new _.nZ("No URL for PBJ Command",K);k=YTV(k,{pbj:"1"});N=qOu(k,{})||{};N=Object.assign({},N,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.YC("STS").toString()});K=_.jc({command:JSON.stringify(K),session_token:_.YC("XSRF_TOKEN")});return h.fetch(k,{method:"POST",headers:N,body:K})}},H[Fc]=[FJF],H));
t.addProvider({provide:zDt,useFactory:function(){var h={};return h.CSI=paR(),h.ECATCHER=v5u(),h}});
t.addProvider({provide:S9V,useClass:D3O});H=[];H.push(t.resolve(wtH));e={};e=(e.client_location=_.gn.getInstance(),e.consistency=_.wpV(),e.entities=t.resolve(c3F),e.response_received_commands=t.resolve(dRA),e.store=t.resolve(_.AxV),e.tokens=t.resolve(wtH),e.service_params=t.resolve(S9V),e);if(_.r("web_shorts_prefetch_service_enabled")){var V=new lOg(t.resolve(_.Jk));e.shorts_prefetch=V}e.adblock_detection=t.resolve(Y9D);t.addProvider({provide:_.yp,useClass:_.yp});V=t.resolve(_.OeH);var b=[];_.r("PremiumClientSharedConfig__enable_att_context_processor")&&
(t.addProvider({provide:enF,useClass:Dwb}),b.push(t.resolve(enF)));if(_.r("owl_pl_await")){var a={};t.addProvider((a.provide=f7Y,a.useFactory=function(h){return new Ske(h)},a[Fc]=[_.yp],a));
b.push(t.resolve(f7Y))}K7w(V,t.resolve(FJF),t.resolve(vpZ),e,t.resolve(_.Jk),H,b,t.resolve(GHe),t.resolve(CYF));t.addProvider({provide:_.xg,useValue:_.QL.instance});_.r("start_client_gcf")&&t.addProvider({provide:mE,useValue:szn()});t.addProvider({provide:XUi,useFactory:function(){return new XUi(_.qS().resolve(_.yp),_.z6.getInstance())}});
_.EK().parkOrScheduleJob(function(){f1i()},1,"eocs");
H={};t.addProvider((H.provide=db,H.useClass=db,H[Fc]=[_.XT,_.xg],H));t.addProvider({provide:_.t2F,useFactory:_.V0.getInstance});_.EK().parkOrScheduleJob(function(){_.qS().resolve(db).refresh()},0,"eocs");
qj6(htF.watchEndpointMap||{},V.reelWatchEndpointMap||{},D.injector.resolve(_.xg));t.addProvider({provide:o6,useValue:_.Im.instance});_.r("kevlar_signal_collection_killswitch")||(H={},t.addProvider((H.provide=kFF,H.useClass=kFF,H[Fc]=[bd,ld],H)),_.EK().parkOrScheduleJob(function(){_.qS().resolve(kFF).record()},1,"eocs"));
_.r("web_debug_handler_registration_killswitch")||_.EK().parkOrScheduleJob(function(){yJD("DOWNLOAD_PES",lAK);_.r("offline_client_state_export_ks")||yJD("OFFLINE_CLIENT_STATE",gu$)},0,"eocs");
_.r("kevlar_prevent_polymer_dynamic_font_load")&&_.EK().parkOrScheduleJob(function(){var h=[_.E5(ktb),_.E5(TMv)];h=_.F(h);for(var K=h.next();!K.done;K=h.next()){K=K.value;var N=document.createElement("link");_.wN(N,K,"stylesheet");document.head.appendChild(N)}},1,"eocs");
H=D.injector.resolve(_.xg);_.HQF.instance=new _.HQF(H);$VR(WDv(new tfH(H)));H={};D.injector.addProvider((H.provide=aC,H.useFactory=function(h){(h=h==null?void 0:h.getCurrentPage())?h=h.visibilityObserver:(pIQ||(pIQ=KZD()),h=pIQ);return h},H[Fc]=[_.by(_.bO)],H.skipCache=!0,H));
t.addProvider({provide:_.dL,useClass:E6});t.addProvider({provide:uk,useClass:V1f});D.injector.addProvider({provide:DsV,useValue:j$Y});t.addProvider({provide:d6o,useValue:g4A});_.r("web_cow_button_renderer_wiz_token")&&t.addProvider({provide:pxw,useValue:YDt});t.addProvider({provide:QV6,useValue:ScK});t.addProvider({provide:_.tB,useValue:IND});D=t.addProvider;V2Y||(V2Y=new eDH);D.call(t,{provide:_.yY,useValue:V2Y});t.addProvider({provide:_.eQ,useValue:_.YC("HTML_DIR")==="rtl"?"rtl":"ltr"});t.addProvider({provide:$wZ,
useClass:Smg});t.addProvider({provide:_.ja,useClass:Bq});_.qS().addProvider({provide:r3t,useValue:_.r("enable_web_delhi_icons")?YPg.concat(vMi):JLF.concat(l_t)});t.addProvider({provide:_.D5,useClass:_.D5});t.addProvider({provide:_.GtH,useValue:new h5Z});t.addProvider({provide:kl4,useClass:Nov});t.addProvider({provide:Qe,useClass:Qe});t.addProvider({provide:zC,useClass:zC});D={};t.addProvider((D.provide=$9,D.useClass=$9,D[Fc]=[_.xg,_.tr],D));t.addProvider({provide:Nq,useClass:Nq});t.addProvider({provide:AIn,
useClass:yAO});t.addProvider({provide:eh,useClass:eh});t.addProvider({provide:W99,useValue:Sw6});t.addProvider({provide:_.TM,useClass:k4Q});_.r("enable_payments_purchase_manager")&&t.addProvider({provide:Fnt,useClass:VfF});t.addProvider({provide:NMb,useFactory:function(){return function(h){return _.KJY(h)}}});
t.addProvider({provide:_.qFH,useClass:FiZ});D={};t.addProvider((D.provide=GR,D.useClass=GR,D[Fc]=[_.qFH],D));t.addProvider({provide:DW,useClass:DW});t.addProvider({provide:mef,useValue:aVg});t.addProvider({provide:jXB,useValue:_.sx4});t.addProvider({provide:sb6,useClass:QEF});t.addProvider({provide:b2F,useValue:TVF});D={};t.addProvider((D.provide=qk4,D.useClass=Fug,D[Fc]=[b2F],D));D={};t.addProvider((D.provide=_.R_,D.useClass=jKO,D[Fc]=[qk4],D));D={};t.addProvider((D.provide=_.H2,D.useClass=t4,D[Fc]=
[_.sg,_.yN],D));if(_.r("web_explore_hub_on_hover")||_.r("web_client_explore_hub_on_hover"))D={},t.addProvider((D.provide=eK,D.useClass=eK,D[Fc]=[_.xg,Oz],D));if(_.r("web_enable_renderer_logger")){var w=new l74;xLK(function(){w.abort()});
t.addProvider({provide:o88,useValue:new cAb(w.signal)})}t.addProvider({provide:HOo,useValue:rmR});t.addProvider({provide:ZVT,useClass:vQv})}},dpZ);var ReF={},u2t=(ReF.initialized={priority:10,callback:function(){if(!trv){EXX();xrK("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.NS(_.o4(xrK,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.r("log_heartbeat_with_lifecycles")){var D={};PJ.instance||(PJ.instance=new PJ);PJ.instance.install((D.document_visible={callback:R4u,priority:10},D.document_hidden={callback:R4u,priority:10},D))}else _.bm(document,"visibilitychange",R4u);trv=!0}(D=_.v3())&&D!=="UNDEFINED_CSN"&&QJD(D)}},ReF);var WGF={},I_F=(WGF.initialized={callback:function(D){var t=_.Nx(232091),H=D.injector.resolve(_.eX);_.A1(H,t);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?$RT()&&_.J1(H,t):(D=D.injector.resolve(NMb)("refresh_detector"))&&(D.get("first_tab_load")?_.J1(H,t):D.set("first_tab_load","1"))}},WGF);var QZF={},yLO=(QZF.initialized={priority:10,callback:Cnu},QZF);var B_v={},zeY=(B_v.initialized={priority:0,callback:function(){var D=new sZa,t="other";_.cg?t="chrome":_.TE?t="firefox":_.di?t="safari":eE&&(t="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(H){D.increment(_.Ua(),H,t)}).catch(function(){D.increment(_.Ua(),!1,t)}):D.increment(_.Ua(),!1,t)}},B_v);var D2t={},tGe=(D2t.rendering={priority:8,callback:mR6},D2t);var HYY={},ehH=(HYY.rendering={priority:10,callback:RVD},HYY.rendered={callback:xRD},HYY),VGF={},bY4=(VGF.rendering={callback:RVD},VGF.rendered={callback:xRD},VGF);var q44=!1,FIO={},avt=(FIO.initialized={priority:10,callback:function(){q44||(YW$({didPatch:function(D){D.el&&HTk(D.el,D.props)},
didUnmount:function(D){DfD(D.el)}}),q44=!0)}},FIO);var wnQ=/^\/shorts\/?$/;_.JZ("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:{}}}}}}});_.r("kevlar_enable_mss")&&(_.RET(new tR4),ylT());
(function(){var D=document.querySelector("ytd-app");if(!D)throw Error("Rj");D=new el({root:D,injector:_.qS()});D.install(u2t);var t={};D.install((t.initialized={priority:10,callback:qv$},t));_.r("wp_lat_b")&&(t={},D.install((t.initialized={priority:10,callback:function(){fCD()}},t)));
t={};D.install((t.rendered={priority:0,callback:eiK},t));t={};D.install((t.rendered={priority:0,callback:function(){_.Jy.addLowPriorityJob(function(){_.X9b>1&&(Qwu(),t_X())},4E4)}},t));
D.install(x3H);D.install(I_F);D.install(avt);G9D();D.install(tTF);D.install(J$b);D.install(p_4);D.install(ZMZ);D.install(KdQ);D.install(z5Q);D.install(xpF);_.r("kevlar_enable_mss_lazy_load")&&D.install(yLO);D.install(lit);D.install(zeY);if(!_.lh("IS_SHELL_LOAD")||_.r("kevlar_fetch_initial_data_promise_client")||_.r("sw_nav_preload_pbj")){var H=_.TW(window.location.href);t=H&&H==="/watch";H=H&&H.match(wnQ);t?D.install(bY4):H?D.install(tGe):D.install(ehH)}else D.install(LJg);D.install(uwg);_.r("web_enable_prefetching_videos_on_home")&&
D.install(bNb);_.r("start_client_gcf")&&D.install(BNH);D.install(bM4);(new heB).increment("INSTALLED");D.install(etQ);D.install(S5Q);D.transition("initialized");o5D()})();
_.kg=[[["amtpbmQjdnIybndza2hsemE=","dmFsdWUjbHpmdGVsazh3b3hy"],"U1RBUlQjODM5c3U5cHh6N3czQURfUExBQ0VNRU5UX0tJTkRf"]];_.NF=["YmFja3MjYmtqZW9zeTltdnJ6Z2xvYmFsQ2FsbA==","ZWN0ZWQjZXZrYmVqZnk4azBkb25BYm5vcm1hbGl0eURldA==","ZFNraXAjbmo1eGFja2JvdWVpb25B","cG9uc2UjZDgyZXhjcDlia2s4cmF3X3BsYXllcl9yZXM=","U2xvdHMjOGdhcGU0djQxOXE3YWQ="];_.ji="YmFja3MjYmtqZW9zeTltdnJ6Z2xvYmFsQ2FsbA== ZWN0ZWQjZXZrYmVqZnk4azBkb25BYm5vcm1hbGl0eURldA== ZFNraXAjbmo1eGFja2JvdWVpb25B cG9uc2UjZDgyZXhjcDlia2s4cmF3X3BsYXllcl9yZXM= cHNfa3MjbmxxZHJyeXBndGFhd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraQ== c2FfZWYjOWVxeWNuMTM5eWplYWJf U2xvdHMjOGdhcGU0djQxOXE3YWQ=".split(" ");
_._ModuleManager_initialize=function(D,t){if(!_.fN){if(!_.LN)return;_.RET(_.LN())}_.fN.setAllModuleInfoString(D,t)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.c2=function(D,t,H,e,V){var b={};t&&(b[t]=H);e?b.errorType=e:V&&(b.errorReason=V);_.L7(D,b);_.Ap()};
_.jl=function(D){var t=_.EK();return _.HF9(t,D,1)};
_.gx({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 D=this.query;D&&(this.full||D[0]==="("||(D="("+D+")"),this._mq=window.matchMedia(D),this._add(),this.queryHandler(this._mq))},
queryHandler:function(D){this._setQueryMatches(D.matches)}});var $2F;var iYt;var rZF=function(){};
_.q=rZF.prototype;_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._tapHandler=function(){};
_.q._focusChanged=function(){};
_.q._detectKeyboardFocus=function(){};
_.q._userActivate=function(){};
_.q._upHandler=function(){};
_.q._spaceKeyDownHandler=function(){};
_.q._spaceKeyUpHandler=function(){};
_.q._asyncClick=function(){};
_.q._pressedChanged=function(){};
_.q._ariaActiveAttributeChanged=function(){};
_.q._activeChanged=function(){};
_.q._controlStateChanged=function(){};
_.q._changedButtonState=function(){};
_.q._focusBlurHandler=function(){};
_.q._disabledChanged=function(){};
_.q._changedControlState=function(){};
_.q._downHandler=function(){};
_.q.ensureRipple=function(){};
_.q.getRipple=function(){};
_.q.hasRipple=function(){};
_.q._noinkChanged=function(){};
_.q._focusedChanged=function(){};
_.q._createRipple=function(){};
_.q.registered=function(){};
_.q._invalidChanged=function(){};
_.q.hasValidator=function(){};
_.q.validate=function(){};
_.q._getValidity=function(){};
_.q._requiredChanged=function(){};
_.q._valueChanged=function(){};
_.q._checkedChanged=function(){};
_.q._buttonStateChanged=function(){};
_.q._setPressed=function(){};
_.q._setPointerDown=function(){};
_.q._setReceivedFocusFromKeyboard=function(){};
_.q._setFocused=function(){};
rZF=_.gx({is:"tp-yt-paper-radio-button",_template:function(){if(iYt!==void 0)return iYt;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;$2F===void 0&&($2F=document.createElement("template"));var e=$2F;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return iYt=D},
behaviors:[_.R8B],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(){_.Vi(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var D=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),t=Math.floor(3*D);t%2!==D%2&&t++;this.updateStyles({"--paper-radio-button-ink-size":t+"px"})}})}});var OYZ;var U2H;_.gx({_template:function(){if(U2H!==void 0)return U2H;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;OYZ===void 0&&(OYZ=document.createElement("template"));var e=OYZ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return U2H=D},
is:"tp-yt-paper-radio-group",behaviors:[_.bPn],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(D){var t=this._valueToItem(D);if(!t||!t.hasAttribute("disabled")){if(this.selected){t=this._valueToItem(this.selected);if(this.selected==D)if(this.allowEmptySelection)D="";else{t&&(t.checked=!0);return}t&&
(t.checked=!1)}_.tj.select.apply(this,[D]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(D){this._focusPrevious();D.preventDefault();this._activateFocusedItem()},
_onDownKey:function(D){this._focusNext();D.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(D){_.VN9._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(D){_.VN9._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.tj._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.I0._resetTabindices.apply(this,arguments);this.items.forEach(function(D){D.removeAttribute("aria-selected")},this)}});var oCQ;_.AB("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var $A=function(){return _.X.apply(this,arguments)||this};
_.P($A,_.X);_.q=$A.prototype;_.q.computeHasPrimaryIcon=function(D){return!(!D.icon&&!D.thumbnail)};
_.q.computeHasSecondary=function(D){return!(!D.secondaryIcon&&!D.secondaryNotificationText)};
_.q.computeHideSecondaryString=function(D){return!_.r("disable_hide_empty_secondary_string")&&!D.secondaryNotificationText};
_.q.computeCompactLinkStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.q.computeHasFitHeight=function(D){return D==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.q.isActiveEndpoint=function(D){return(D=this.get("commandMetadata.webCommandMetadata.url",D))?_.TW(window.location.href)!=="/account_transfer_channel"&&_.TW(window.location.href)!=="/gaia_link"&&_.TW(window.location.href)!=="/channel_switcher"||D!=="/account"?_.TW(window.location.href)===D:!0:!1};
_.q.onTap=function(){var D;((D=this.data)==null?0:D.serviceEndpoint)&&_.NJ(this.hostElement,[this.data.serviceEndpoint])};
$A.prototype.onTap=$A.prototype.onTap;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$A.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$A.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.x("design:type",Boolean)],$A.prototype,"active",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.x("design:type",String)],$A.prototype,"compactLinkStyle",void 0);
_.d([_.M({computed:"computeIcon_(data.icon)"}),_.x("design:type",Object)],$A.prototype,"icon",void 0);_.d([_.M({computed:"computeIcon_(data.secondaryIcon)"}),_.x("design:type",Object)],$A.prototype,"secondaryIcon",void 0);_.d([_.M({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],$A.prototype,"hasSecondary",void 0);_.d([_.M({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],$A.prototype,"hideSecondaryString",void 0);
_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$A.prototype,"onTap",null);_.d([_.Y({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],$A);
_.p($A,"ytd-compact-link-renderer",function(){if(oCQ!==void 0)return oCQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return oCQ=D},{mode:1});var PhZ;_.AB("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var iT=function(){var D=_.X.apply(this,arguments)||this;D.role="link";D.tabindex="0";D.actionMap=_.r("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 D};
_.P(iT,_.X);_.q=iT.prototype;_.q.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.f_()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.q.getCurrentTheme=function(){return _.L_()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.f_()};
_.q.onThemeSelected=function(D,t){var H=D||t?D:_.XO(),e=(H&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!H&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.qb$(_.TW(window.location.href));_.nl(0,165,D);_.nl(0,174,t);this.prefs.save();e&&_.ET(this.hostElement,"yt-dark-mode-toggled-action",[H]);_.ET(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.q.onTap=function(){this.data.serviceEndpoint&&_.NJ(this.hostElement,[this.data.serviceEndpoint])};
_.q.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.q.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.q.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
iT.prototype.onTap=iT.prototype.onTap;iT.prototype.dataChanged=iT.prototype.dataChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],iT.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.En),_.x("design:type",Object)],iT.prototype,"paperItemBehaviors",void 0);_.d([_.M(),_.x("design:type",Object)],iT.prototype,"data",void 0);_.d([_.M({value:function(){return _.Ph()}}),
_.x("design:type",_.cN)],iT.prototype,"prefs",void 0);_.d([_.M(),_.x("design:type",Object)],iT.prototype,"label",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],iT.prototype,"role",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],iT.prototype,"tabindex",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iT.prototype,"dataChanged",null);
_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iT.prototype,"onTap",null);_.d([_.Y({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],iT);
_.E_()(iT,"ytd-toggle-theme-compact-link-renderer",function(){if(PhZ===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);PhZ=D}D=PhZ;return D},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var ChO,m2H;_.ra=function(D){return!!D.getOptions("captions")};
_.nCF=function(D){return(D=D.getOption("captions","track"))?!!D.displayName:!1};
_.O6=function(D,t){_.CP(t,D,function(){return ChO[t]},function(H){ChO[t]=H;
if(!_.r("mweb_player_ve_show_ks")){var e=_.v3(0);e&&H&&_.Bh(e,H)}})};
_.U6=function(D){(D=ChO[D])&&_.J1(_.Pc(),D)};
ChO={};var MGi;/*

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
*/
_.gx({_template:function(){if(MGi!==void 0)return MGi;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;m2H===void 0&&(m2H=document.createElement("template"));var e=m2H;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return MGi=D},
is:"tp-yt-paper-checkbox",behaviors:[_.R8B],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.Vi(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var D=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),t="px",H=D.match(/[A-Za-z]+$/);H!==null&&(t=H[0]);D=parseFloat(D);H=8/3*D;t==="px"&&(H=Math.floor(H),H%2!==D%2&&H++);this.updateStyles({"--paper-checkbox-ink-size":H+
t})}})},
_computeCheckboxClass:function(D,t){var H="";D&&(H+="checked ");t&&(H+="invalid");return H},
_computeCheckmarkClass:function(D){return D?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.dPa._createRipple.call(this)}});var S4v=new _.NM("radioButtonSurveyOptionRenderer"),Xnv=new _.NM("checkboxSurveyOptionRenderer");var fvF;var LIv;var AZt=0,ob=function(){var D=_.X.call(this)||this;D.selected=!1;D.isOverlay=!1;D.inputId="toggle-option-"+AZt;AZt++;return D};
_.P(ob,_.X);ob.prototype.onTap=function(){_.Gf(this.hostElement,"ytd-toggle-option-clicked")};
_.d([_.M(),_.x("design:type",String)],ob.prototype,"label",void 0);_.d([_.M(),_.x("design:type",String)],ob.prototype,"inputId",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ob.prototype,"selected",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ob.prototype,"isOverlay",void 0);_.d([_.Y({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.x("design:paramtypes",[])],ob);
_.p(ob,"ytd-toggle-option-renderer",function(){if(LIv!==void 0)return LIv;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return LIv=D},{mode:1});var P2=function(){var D=_.X.apply(this,arguments)||this;D.isToggleOption=!1;D.isOverlay=!1;return D};
_.P(P2,_.X);P2.prototype.onTap=function(D){D.preventDefault();this.data&&(D=!this.data.checked,this.set("data.checked",D),_.Gf(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:D,value:this.data.value}))};
_.ql.Object.defineProperties(P2.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
P2.prototype.onTap=P2.prototype.onTap;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],P2.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],P2.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],P2.prototype,"isToggleOption",void 0);_.d([_.M(),_.x("design:type",Object)],P2.prototype,"isOverlay",void 0);_.d([_.m("data.responseText"),_.x("design:type",String),_.x("design:paramtypes",[])],P2.prototype,"label",null);
_.d([_.rx("ytd-toggle-option-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],P2.prototype,"onTap",null);_.d([_.Y({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],P2);
_.p(P2,"ytd-checkbox-survey-option-renderer",function(){if(fvF!==void 0)return fvF;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return fvF=D},{mode:1});var gCF;var JZ4;var n5=function(){var D=_.X.apply(this,arguments)||this;D.checked=!1;D.isToggleOption=!1;return D};
_.P(n5,_.X);n5.prototype.onTap=function(){this.data&&(this.checked?_.ET(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.ET(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
n5.prototype.onTap=n5.prototype.onTap;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],n5.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],n5.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],n5.prototype,"checked",void 0);_.d([_.M(),_.x("design:type",Object)],n5.prototype,"isToggleOption",void 0);_.d([_.rx("ytd-toggle-option-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],n5.prototype,"onTap",null);
_.d([_.Y({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],n5);
_.p(n5,"ytd-radio-button-survey-option-renderer",function(){if(JZ4!==void 0)return JZ4;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return JZ4=D},{mode:1});var C5=function(){var D=_.X.apply(this,arguments)||this;D.disableAnimation=!1;D.isToggleOption=!0;D.followUpSurveyCommand=null;D.selectedRatingEndpoint=null;D.isSlimlineSurveyFollowUp=!1;D.isShortsStyle=!1;D.styleOverrideAttribute=!0;D.isDarkMode=!1;D.isSubmitted=!1;D.roundedContainer=!0;D.improveShortsResponseRate=_.r("web_improve_shorts_response_rate");D.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 D};
_.P(C5,_.X);_.q=C5.prototype;
_.q.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"}}}}};
_.q.attached=function(){var D=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(H){var e;if((e=H[0])!=null&&e.isIntersecting){_.U_().reportShown(D.hostElement);var V;(V=D.intersectionObserver)==null||V.unobserve(D.hostElement)}},{rootMargin:"0px",
threshold:.6});var t;(t=this.intersectionObserver)==null||t.observe(this.hostElement)};
_.q.onDarkModeToggledAction=function(D){this.isDarkMode=D};
_.q.dataChanged=function(){var D;if(((D=this.data)==null?void 0:D.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var t;((t=this.data)==null?void 0:t.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var H,e,V,b;this.darkColorPalette=(H=this.data)==null?void 0:(e=H.inlineContent)==null?void 0:(V=e.compactVideoRenderer)==null?void 0:(b=V.thumbnail)==null?
void 0:b.darkColorPalette;var a,w,h,K;this.lightColorPalette=(a=this.data)==null?void 0:(w=a.inlineContent)==null?void 0:(h=w.compactVideoRenderer)==null?void 0:(K=h.thumbnail)==null?void 0:K.lightColorPalette;var N,k;if(((N=this.data)==null?0:(k=N.inlineContent)==null?0:k.compactVideoRenderer)&&this.isShortsStyle){var T,c,U,S;D=_.E7((T=this.data)==null?void 0:(c=T.inlineContent)==null?void 0:(U=c.compactVideoRenderer)==null?void 0:(S=U.thumbnail)==null?void 0:S.thumbnails);_.jZ(this.hostElement,
{"--yt-background-url":"url("+D+")"})}};
_.q.handleRequestCompletion=function(){this.hostElement.hidden&&_.Gf(this.hostElement,"yt-dismissible-item-dismissed")};
_.q.onPopupClosed=function(D){var t;((t=D.detail)==null?void 0:t.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.ET(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.q.handleInlineSurveyRatingSelect=function(D,t){var H=this;this.selectedRatingEndpoint=D;this.followUpSurveyCommand=t;this.expanded=!!D;this.getOptionRenderers().forEach(function(e,V){H.notifyPath("followUpSurveyCommand.followUpOptions."+V+".checkboxSurveyOptionRenderer.checked");H.set("followUpSurveyCommand.followUpOptions."+V+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),D=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.ET(this.hostElement,"yt-reel-non-video-content-dismissal-command",[D]))};
_.q.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.ET(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var D,t=(D=this.data)==null?void 0:D.dismissalEndpoint;t&&this.ytComponentBehavior.resolveCommand(t)}};
_.q.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.ET(this.hostElement,"yt-close-popup-action"))};
_.q.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var D=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{D=this.getOptionRenderers().filter(function(e){return e.checked});
if(D.length===0)return;D=D.map(function(e){return e.responseEndpoint})}var t=[];
D.forEach(function(e,V){V!==0&&(e=_.O(e,_.XC))&&e.feedbackToken&&t.push(e.feedbackToken)});
if(D=D[0]){var H={};t.length>0&&(H.extra_feedback_tokens=t);this.ytComponentBehavior.resolveCommand(D,{form:H})}}};
_.q.getOptionRenderers=function(){var D=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(t){D.isSingleSelect=!!_.O(t,S4v);return D.isSingleSelect?_.O(t,S4v):_.O(t,Xnv)}):[]};
_.q.handleInlineSurveyOptionSelect=function(D){D=this.optionSelector.indexOf(D);D!==-1&&this.optionSelector.selectIndex(D)};
_.q.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.q.maybeGetBackgroundColor=function(D){return this.isDarkMode?D.section2Color:D.section3Color};
_.q.colorPaletteChanged=function(){var D=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;D=D&&this.maybeGetBackgroundColor(D);this.dismissibleEl.style.backgroundColor=!D||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.Ih(D)};
_.ql.Object.defineProperties(C5.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
C5.prototype.colorPaletteChanged=C5.prototype.colorPaletteChanged;C5.prototype.onPopupClosed=C5.prototype.onPopupClosed;C5.prototype.handleRequestCompletion=C5.prototype.handleRequestCompletion;C5.prototype.dataChanged=C5.prototype.dataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],C5.prototype,"actionHandlerBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],C5.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],C5.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.o5("#follow-up-survey-options"),_.x("design:type",Object)],C5.prototype,"optionSelector",void 0);_.d([_.M(),_.x("design:type",Object)],C5.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],C5.prototype,"disableAnimation",void 0);_.d([_.M(),_.x("design:type",Object)],C5.prototype,"isToggleOption",void 0);_.d([_.M(),_.x("design:type",Object)],C5.prototype,"followUpSurveyCommand",void 0);_.d([_.M(),_.x("design:type",Object)],C5.prototype,"selectedRatingEndpoint",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],C5.prototype,"expanded",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],C5.prototype,"isSlimlineSurveyFollowUp",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],C5.prototype,"isShortsStyle",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],C5.prototype,"styleOverrideAttribute",void 0);_.d([_.M(),_.x("design:type",Boolean)],C5.prototype,"isSingleSelect",void 0);_.d([_.M(),_.x("design:type",Object)],C5.prototype,"isDarkMode",void 0);
_.d([_.M(),_.x("design:type",Object)],C5.prototype,"lightColorPalette",void 0);_.d([_.M(),_.x("design:type",Object)],C5.prototype,"darkColorPalette",void 0);_.d([_.m("selectedRatingEndpoint","isShortsStyle"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],C5.prototype,"isOptionSelected",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],C5.prototype,"roundedContainer",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],C5.prototype,"improveShortsResponseRate",void 0);_.d([_.o5("#dismissible"),_.x("design:type",HTMLElement)],C5.prototype,"dismissibleEl",void 0);_.d([_.o5("#dismiss-button yt-icon-button"),_.x("design:type",HTMLElement)],C5.prototype,"dismissButtonEl",void 0);_.d([_.o5("#inline-survey-header yt-icon-button"),_.x("design:type",HTMLElement)],C5.prototype,"inlineHeaderDismissButtonEl",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C5.prototype,"dataChanged",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C5.prototype,"handleRequestCompletion",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],C5.prototype,"onPopupClosed",null);
_.d([_.Os("darkColorPalette","lightColorPalette","isDarkMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C5.prototype,"colorPaletteChanged",null);_.d([_.Y({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],C5);
_.p(C5,"ytd-inline-survey-renderer",function(){if(gCF!==void 0)return gCF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return gCF=D},{mode:1});var Y4v=["en-CA","en","es-MX","fr-CA"];_.lvF=_.l(function(D){var t=_.FQ(D,{isOverlay:!1,isModern:!1}),H=t.captionIconType,e=t.onClick;D=t.ariaLabel;var V=t.ariaPressed,b=t.isOverlay,a=t.isModern;t=_.DY("button",function(K){_.O6(K,127299)});
var w=_.$X(function(K){_.U6(127299);e==null||e(K);return!1}),h={};
return _.G("ytm-closed-captioning-button",{class:_.jQ("ytmClosedCaptioningButtonHost",(h.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return H()===-1&&b()},h.ytmClosedCaptioningButtonIconDisabled=function(){return H()===-1&&!b()},h))},_.G("button",{el:t,
class:"ytmClosedCaptioningButtonButton",title:D,"aria-label":D,"aria-pressed":V,"on:click":w},_.G(_.U7,{icon:function(){var K="",N=a();var k=N?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";N=N?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var T=_.Ph().get("hl");k=!T||Y4v.includes(T)?k:N;N=H();switch(N){case -1:case 0:K=k;break;case 1:K=k+"_FILLED";break;default:_.xv(N)}return K}})))},"Mg");
_.lvF.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.pV=function(D){return function(t,H){var e=D||H.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(t,H,{get:function(){var V;return this.$?this.$[e]:(V=_.Us(this))==null?void 0:V.querySelector("#"+e)},
enumerable:!0,configurable:!0})}};_.d5=function(D){D=D===void 0?!1:D;_.mg.call(this);this.pubSub_=new _.$x(D);_.c1(this,this.pubSub_)};
_.Zj(_.d5,_.mg);_.d5.prototype.subscribe=function(D,t,H){return this.isDisposed()?0:this.pubSub_.subscribe(D,t,H)};
_.d5.prototype.unsubscribe=function(D,t,H){return this.isDisposed()?!1:this.pubSub_.unsubscribe(D,t,H)};
_.d5.prototype.unsubscribeByKey=function(D){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(D)};
_.d5.prototype.publish=function(D,t){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var OTH=function(){_.c2("ypcRedeemFlowStarted")},Js=function(D){_.c2("ypcRedeemFlowFailed",void 0,void 0,void 0,D)},Uft=function(D,t,H){t&&H&&(D.videos.forEach(function(e){e.videoId===t&&(e.itemId=H)}),D.recommendedVideos.forEach(function(e){e.videoId===t&&(e.itemId=H)}))};var odt;var P7F;/*

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
*/
_.gx({_template:function(){if(P7F!==void 0)return P7F;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;odt===void 0&&(odt=document.createElement("template"));var e=odt;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return P7F=D},
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(D,t){var H=this._resolveSrc(D);H!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",D===""||t?this._setLoading(!1):(this._resolvedSrc=H,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 D=this.$.sizedImgDiv.style,t=this.$.placeholder.style;D.backgroundSize=t.backgroundSize=this.sizing;D.backgroundPosition=t.backgroundPosition=this.sizing?this.position:"";D.backgroundRepeat=t.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(D){D=_.Gc(D,this.$.baseURIAnchor.href);D.length>=2&&D[0]==="/"&&D[1]!=="/"&&(D=(location.origin||location.protocol+"//"+location.host)+D);return D}});var ndg;var C7g;_.gx({_template:function(){if(C7g!==void 0)return C7g;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;ndg===void 0&&(ndg=document.createElement("template"));var e=ndg;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return C7g=D},
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(D){return D?"false":"true"},
_headingChanged:function(D){var t=this.getAttribute("heading"),H=this.getAttribute("aria-label");typeof H==="string"&&H!==t||this.setAttribute("aria-label",D)},
_computeHeadingClass:function(D){return D?" over-image":""},
_computeAnimated:function(D){return D}});var mfi=new _.NM("addRendererToItemSectionAction");var MHt;var Y5=function(){return _.X.apply(this,arguments)||this};
_.P(Y5,_.X);Y5.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Y5.prototype,"rendererBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],Y5.prototype,"dismissibleItemBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Y5.prototype,"rendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Y5.prototype,"data",void 0);_.d([_.Y({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Y5);
_.p(Y5,"ytd-comment-history-entry-renderer",function(){if(MHt!==void 0)return MHt;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return MHt=D},{mode:1});var S0F;_.AB("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.AB("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var lx=function(){return _.X.apply(this,arguments)||this};
_.P(lx,_.X);_.q=lx.prototype;_.q.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.onKeyUp=function(D){if(D.keyCode===13)this.onTap()};
_.q.onTap=function(){this.data.recordClickEndpoint&&_.qS().resolve(_.aA).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var D=this.data.navigationEndpoint;D&&_.O(D,_.VQ)&&_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}})};
_.q.readChanged=function(){var D;_.kL(this.hostElement,"unread",!((D=this.data)==null?0:D.read))};
_.q.dataChanged=function(){this.data&&_.kL(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.q.computeThumbnailSize=function(){var D;return((D=this.data)==null?0:D.highPriorityNotification)?32:48};
_.q.getEndpointURL=function(D){return D&&!_.O(D,_.VQ)?this.componentBehavior.computeHref_(D):null};
_.q.getEndpointData=function(D){return D&&!_.O(D,_.VQ)?D:null};
lx.prototype.computeThumbnailSize=lx.prototype.computeThumbnailSize;lx.prototype.dataChanged=lx.prototype.dataChanged;lx.prototype.readChanged=lx.prototype.readChanged;lx.prototype.onKeyUp=lx.prototype.onKeyUp;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],lx.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],lx.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],lx.prototype,"data",void 0);_.d([_.M({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.x("design:type",Number)],lx.prototype,"thumbnailSize",void 0);_.d([_.rx("keyup"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],lx.prototype,"onKeyUp",null);
_.d([_.Os("data.read"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lx.prototype,"readChanged",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lx.prototype,"dataChanged",null);_.d([_.Os("data.highPriorityNotification"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],lx.prototype,"computeThumbnailSize",null);
_.d([_.Y({is:"ytd-notification-renderer",disableElementRegistration:!0})],lx);
_.p(lx,"ytd-notification-renderer",function(){if(S0F!==void 0)return S0F;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return S0F=D},{mode:1});var XoH;var va=function(){return _.X.apply(this,arguments)||this};
_.P(va,_.X);va.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"}}}};
va.prototype.computeActionButtonClass=function(D){return!D.actionButtons||D.actionButtons.length<=1?"single-button":D.description?"vertical-buttons":"horizontal-buttons"};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],va.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],va.prototype,"data",void 0);_.d([_.Y({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],va);
_.p(va,"ytd-playlist-show-metadata-renderer",function(){if(XoH!==void 0)return XoH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return XoH=D},{mode:1});var fpF;_.AB("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var p9=function(){return _.X.apply(this,arguments)||this};
_.P(p9,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],p9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],p9.prototype,"data",void 0);_.d([_.Y({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],p9);
_.p(p9,"ytd-purchase-item-renderer",function(){if(fpF!==void 0)return fpF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return fpF=D},{mode:1});var L6g;var AYY={};AYY.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(D){if(D)return D.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(D){if(D==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.AB("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var dS=function(){return _.X.apply(this,arguments)||this};
_.P(dS,_.X);dS.prototype.onYtNavigate=function(D){var t=this.openPopupBehavior.getNavigationEndpointPopupAction(D.detail.endpoint);t&&(D.stopPropagation(),this.openPopupBehavior.openPopup(t))};
dS.prototype.onYtNavigate=dS.prototype.onYtNavigate;_.d([_.C(AYY.YtSimpleTextSectionBehavior),_.x("design:type",Object)],dS.prototype,"ytSimpleTextSectionBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],dS.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],dS.prototype,"openPopupBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],dS.prototype,"data",void 0);
_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],dS.prototype,"onYtNavigate",null);_.d([_.Y({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],dS);
_.p(dS,"ytd-simple-text-section-renderer",function(){if(L6g!==void 0)return L6g;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return L6g=D},{mode:1});var gde;_.AB("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var x5=function(){return _.X.apply(this,arguments)||this};
_.P(x5,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],x5.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],x5.prototype,"data",void 0);_.d([_.Y({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],x5);
_.p(x5,"ytd-unlimited-page-feature-info-renderer",function(){if(gde!==void 0)return gde;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return gde=D},{mode:1});var JYH;var Y0b;var R3=function(){return _.X.apply(this,arguments)||this};
_.P(R3,_.X);R3.prototype.dataChanged=function(){if(this.data){var D=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);D&&(D=_.G3(D,screen.width),this.hostElement.style.backgroundImage="url("+D+")")}};
R3.prototype.dataChanged=R3.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],R3.prototype,"data",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R3.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],R3);
_.p(R3,"ytd-post-redemption-section-renderer",function(){if(Y0b!==void 0)return Y0b;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Y0b=D},{mode:1});var lpQ;var ux=function(){return _.X.apply(this,arguments)||this};
_.P(ux,_.X);ux.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ux.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ux.prototype,"data",void 0);_.d([_.Y({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],ux);
_.p(ux,"ytd-ypc-post-redemption-renderer",function(){if(lpQ!==void 0)return lpQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return lpQ=D},{mode:1});_.AB("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var Wa=function(){var D=_.X.apply(this,arguments)||this;D.MIN_CODE_LENGTH=12;D.MAX_CODE_LENGTH=24;return D};
_.P(Wa,_.X);_.q=Wa.prototype;_.q.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.q.created=function(){this.riskService=new _.wCT;this.loadPaymentThenable=_.s86(_.YC("YPC_MB_URL"))};
_.q.ready=function(){var D=this;this.code.addEventListener("keypress",function(t){D.onCodeInputKeypress(t)})};
_.q.dataChanged=function(){var D=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(t){t=_.F(t);for(var H=t.next();!H.done;H=t.next())H=H.value,H.type==="attributes"&&H.attributeName==="dark"&&D.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.q.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var D=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+D+")")}};
_.q.computeRedeemButton=function(D){(D=this.get("redeemButton.buttonRenderer",D))&&(D=Object.assign({},D,{serviceEndpoint:void 0}));return D};
_.q.onRedeemButtonTap=function(D){D.stopPropagation();OTH();this.redeemCode()};
_.q.redeemCode=function(){var D=this;this.isLoading=!0;var t=this.riskService.init();_.vl([t,this.loadPaymentThenable]).then(function(){var H=D.data.redeemButton.buttonRenderer.serviceEndpoint,e=_.Z1A(),V=_.ew.payments.business.integration.ClientTokenFactory.createClientToken(_.O(H,_.zvv).countryCode,e);e={c:D.code.value.trim(),rd:window.btoa(e),ctk:V};H&&_.qS().resolve(_.aA).resolveCommand(H,{form:Object.assign({},e,{element:D.hostElement})})},function(){D.showGenericError();
Js("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.vn(Error("Eo"))})};
_.q.onYtServiceRequestCompleted=function(D){D.stopPropagation();this.isLoading=!1;var t,H;this.errorMessage=(t=D.detail)==null?void 0:(H=t.data)==null?void 0:H.errorMessage;var e,V;this.postRedemptionRenderer=(e=D.detail)==null?void 0:(V=e.data)==null?void 0:V.renderer;var b,a;if(D=(b=D.detail)==null?void 0:(a=b.data)==null?void 0:a.redirectEndpoint)this.isLoading=!0,_.Gf(this.hostElement,"yt-navigate",{endpoint:D});this.errorMessage?Js("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
D)&&_.c2("ypcRedeemFlowSucceeded")};
_.q.onYtServiceRequestError=function(D){D.stopPropagation();this.isLoading=!1;if(D=this.get("detail.error.message",D))this.errorMessage=_.H7(D);Js("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.q.onInvokeInstrumentManagerActionCompleted=function(D){D.stopPropagation();this.redeemCode()};
_.q.onInvokeInstrumentManagerActionError=function(D){D.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",D)){case "instrumentManagerLoadError":this.showGenericError();Js("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();Js("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.c2("ypcRedeemFlowCancelled")}};
_.q.onInput=function(){var D=this;_.z1(this,"onInput",function(){var t=D.code.value.trim();D.redeemButtonDisabled=t.length<D.MIN_CODE_LENGTH||t.length>D.MAX_CODE_LENGTH},200)};
_.q.onCodeInputKeypress=function(D){D.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(OTH(),this.redeemCode())};
_.q.computeImageUrl=function(D){return D?_.G3(D.thumbnails,600):null};
_.q.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
Wa.prototype.onInvokeInstrumentManagerActionError=Wa.prototype.onInvokeInstrumentManagerActionError;Wa.prototype.onInvokeInstrumentManagerActionCompleted=Wa.prototype.onInvokeInstrumentManagerActionCompleted;Wa.prototype.onYtServiceRequestError=Wa.prototype.onYtServiceRequestError;Wa.prototype.onYtServiceRequestCompleted=Wa.prototype.onYtServiceRequestCompleted;Wa.prototype.dataChanged=Wa.prototype.dataChanged;
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Wa.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Wa.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Wa.prototype,"isLoading",void 0);_.d([_.M(),_.x("design:type",Boolean)],Wa.prototype,"redeemButtonDisabled",void 0);
_.d([_.M(),_.x("design:type",Object)],Wa.prototype,"errorMessage",void 0);_.d([_.M(),_.x("design:type",Object)],Wa.prototype,"postRedemptionRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],Wa.prototype,"observer",void 0);_.d([_.o5("#code"),_.x("design:type",HTMLInputElement)],Wa.prototype,"code",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wa.prototype,"dataChanged",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Wa.prototype,"onYtServiceRequestCompleted",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Wa.prototype,"onYtServiceRequestError",null);
_.d([_.rx("yt-invoke-instrument-manager-action-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Wa.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.d([_.rx("yt-invoke-instrument-manager-action-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Wa.prototype,"onInvokeInstrumentManagerActionError",null);_.d([_.Y({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],Wa);
_.p(Wa,"ytd-redeem-code-renderer",function(){if(JYH!==void 0)return JYH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return JYH=D},{mode:1});var vdH;_.AB("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var I3=function(){var D=_.X.apply(this,arguments)||this;D.businessEmailDisplayState="HIDE_SECTION";return D};
_.P(I3,_.X);_.q=I3.prototype;_.q.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}}}}}};
_.q.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"};
_.q.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.q.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Iz(_.H9B),this.businessEmailDisplayState="CAPTCHA"))};
_.q.onYtServiceRequestCompleted=function(D){var t;if((t=D.detail.data)==null?0:t.businessEmail)this.businessEmail=D.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var H;if((H=D.detail.data)==null?0:H.errorMessage)this.businessEmailErrorMessage=D.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.q.computeEmailHref=function(D){return"mailto:"+D};
_.q.computeSafeUrl=function(D){if(D)return _.dw(D)};
_.q.onBusinessEmailCaptchaSubmit=function(){var D;(D=this.data)!=null&&D.onBusinessEmailRevealClickCommand&&(D=this.JSC$21721_captchaTextarea.value)&&(D={recaptcha_response_token:D,channel_id:this.data.channelId},_.qS().resolve(_.aA).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},D,{element:this.hostElement})}))};
_.q.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.ql.Object.defineProperties(I3.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 D,t;return!((D=this.data)==null||!D.primaryLinks)&&!((t=this.data)==null?0:t.links)&&this.data.primaryLinks.every(function(H){return H.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var D,t;return!((D=this.data)==null||!D.primaryLinks)&&!((t=this.data)==null?0:t.links)&&!this.shouldShowNewLinks}}});
I3.prototype.onYtServiceRequestCompleted=I3.prototype.onYtServiceRequestCompleted;I3.prototype.dataChanged=I3.prototype.dataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],I3.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],I3.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.o5("#g-recaptcha-response"),_.x("design:type",HTMLTextAreaElement)],I3.prototype,"JSC$21721_captchaTextarea",void 0);_.d([_.M(),_.x("design:type",Object)],I3.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],I3.prototype,"businessEmailDisplayState",void 0);_.d([_.M(),_.x("design:type",String)],I3.prototype,"businessEmail",void 0);_.d([_.M(),_.x("design:type",String)],I3.prototype,"businessEmailErrorMessage",void 0);
_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],I3.prototype,"hideDetailsSection",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],I3.prototype,"dataChanged",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],I3.prototype,"shouldShowNewLinks",null);_.d([_.m("data","shouldShowLinks"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],I3.prototype,"shouldShowLegacyLinks",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],I3.prototype,"onYtServiceRequestCompleted",null);_.d([_.Y({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],I3);
_.p(I3,"ytd-channel-about-metadata-renderer",function(){if(vdH!==void 0)return vdH;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return vdH=D},{mode:1});var poH;_.AB("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Qy=function(){return _.X.apply(this,arguments)||this};
_.P(Qy,_.X);Qy.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Qy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Qy.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Number)],Qy.prototype,"lockupContainerType",void 0);_.d([_.M(),_.x("design:type",String)],Qy.prototype,"thumbnailFixedWidth",void 0);
_.d([_.Y({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Qy);
_.p(Qy,"ytd-channel-featured-content-renderer",function(){if(poH!==void 0)return poH;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return poH=D},{mode:1});var dfQ;_.AB("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var yy=function(){var D=_.X.apply(this,arguments)||this;D.roundContainer=!0;D.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return D};
_.P(yy,_.X);_.q=yy.prototype;_.q.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.q.dataChanged=function(){this.imageWidth=this.imageHeight=24;var D=this.data;D.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!D.style&&D.image&&D.image.thumbnails.length&&(D=D.image.thumbnails[0],this.imageWidth=D.width||0,this.imageHeight=D.height||0)};
_.q.computeSource=function(D){return D.secondarySource?_.eo(D.secondarySource):_.eo(D.source)};
_.q.computeClarifyStyle=function(D){return D?D.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.q.isLargeStyle=function(D){return D==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.q.computeBackgroundStyle=function(D){return D?D.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.q.computeHasActionButton=function(D){return!!D.actionButton};
_.q.computeHasBottomSection=function(D){return!!D.ctaHasBottomSection};
_.q.computeIsSourceMissing=function(D){return D.ctaHasBottomSection===!1?!0:D&&this.computeSource(D)?!1:!0};
_.q.computeSecondaryEndpoint=function(D){return D.secondaryEndpoint||D.endpoint};
yy.prototype.dataChanged=yy.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],yy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],yy.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Number)],yy.prototype,"imageWidth",void 0);_.d([_.M(),_.x("design:type",Number)],yy.prototype,"imageHeight",void 0);
_.d([_.M({computed:"computeSecondaryEndpoint(data)"}),_.x("design:type",Object)],yy.prototype,"secondaryEndpoint",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.x("design:type",Boolean)],yy.prototype,"hasActionButton",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.x("design:type",Boolean)],yy.prototype,"hasBottomSection",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.x("design:type",Boolean)],yy.prototype,"missingSource",void 0);_.d([_.M({computed:"computeIcon_(data.icon)"}),_.x("design:type",String)],yy.prototype,"icon",void 0);_.d([_.M({computed:"computeIcon_(data.secondaryIcon)"}),_.x("design:type",String)],yy.prototype,"secondaryIcon",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.x("design:type",String)],yy.prototype,"clarifyStyle",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.x("design:type",String)],yy.prototype,"backgroundStyle",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yy.prototype,"roundContainer",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],yy.prototype,"amsterdamEnabled",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yy.prototype,"dataChanged",null);
_.d([_.Y({is:"ytd-clarification-renderer",disableElementRegistration:!0})],yy);
_.p(yy,"ytd-clarification-renderer",function(){if(dfQ!==void 0)return dfQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return dfQ=D},{mode:1});var xfi;var RxZ;var Ba=function(){var D=_.X.apply(this,arguments)||this;D.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return D};
_.P(Ba,_.X);_.q=Ba.prototype;_.q.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.q.computeIcon=function(D){return D?"yt-icons:"+D.toLowerCase():null};
_.q.computeUseContacts=function(D){return!!D.contacts&&D.contacts.length>0};
_.q.computePhoneContact=function(D){var t,H;return(t=D.contacts)==null?void 0:(H=t.find(function(e){var V;return(e==null?void 0:(V=e.icon)==null?void 0:V.iconType)==="PHONE"}))==null?void 0:H.actionText};
_.q.computeSmsContact=function(D){var t,H;return(t=D.contacts)==null?void 0:(H=t.find(function(e){var V;return(e==null?void 0:(V=e.icon)==null?void 0:V.iconType)==="SMS"}))==null?void 0:H.actionText};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ba.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ba.prototype,"amsterdamEnabled",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.x("design:type",Boolean)],Ba.prototype,"useContacts",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.x("design:type",String)],Ba.prototype,"phoneContact",void 0);_.d([_.Y({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Ba);
_.p(Ba,"ytd-single-action-emergency-support-renderer",function(){if(RxZ!==void 0)return RxZ;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return RxZ=D},{mode:1});_.AB("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var zb=function(){var D=_.X.apply(this,arguments)||this;D.roundedContainer=!0;D.amsterdamEnabled=_.r("enable_desktop_amsterdam_info_panels");return D};
_.P(zb,_.X);zb.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"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],zb.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],zb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],zb.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zb.prototype,"roundedContainer",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],zb.prototype,"amsterdamEnabled",void 0);
_.d([_.Y({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],zb);
_.p(zb,"ytd-emergency-onebox-renderer",function(){if(xfi!==void 0)return xfi;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return xfi=D},{mode:1});var uab;_.AB("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Dp=function(){return _.X.apply(this,arguments)||this};
_.P(Dp,_.X);Dp.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"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Dp.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Dp.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Dp.prototype,"data",void 0);_.d([_.Y({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Dp);
_.p(Dp,"ytd-exploratory-results-renderer",function(){if(uab!==void 0)return uab;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return uab=D},{mode:1});var W6e;_.AB("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var tY=function(){var D=_.X.apply(this,arguments)||this;D.messageData=null;return D};
_.P(tY,_.X);_.q=tY.prototype;_.q.onServiceRequestCompleted=function(D,t){D=t.actions||[];t=0;for(var H=D.length;t<H;t++){var e=D[t],V=void 0,b=void 0;if((V=_.O(e,_.vu))==null?0:(b=V.item)==null?0:b.messageRenderer)this.messageData=_.O(e,_.vu).item.messageRenderer}};
_.q.dataChanged=function(){var D=this.data;this.hostElement.hidden=!1;_.kL(this.hostElement,"is-channel",D&&!D.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.q.computeThumbnailWidth=function(D){return D?126:56};
_.q.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.q.onSubmitTap=function(){var D=this.data,t=this.selectedResponseIndex;D!==void 0&&t!==void 0&&(D=D.responses[t],D.responseData&&_.qS().resolve(_.aA).resolveCommand(D.responseData,{form:{element:this.hostElement}}))};
_.q.onDismissTap=function(){this.hostElement.hidden=!0;var D=this.data;D!==void 0&&D.dismissalEndpoint&&_.qS().resolve(_.aA).resolveCommand(D.dismissalEndpoint,{form:{element:this.hostElement}})};
_.q.updateSelectedResponseIndexFromBinding=function(D){this.selectedResponseIndex=D.detail.value};
tY.prototype.onSelectedResponseIndexChange=tY.prototype.onSelectedResponseIndexChange;tY.prototype.dataChanged=tY.prototype.dataChanged;tY.prototype.onServiceRequestCompleted=tY.prototype.onServiceRequestCompleted;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],tY.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],tY.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],tY.prototype,"messageData",void 0);
_.d([_.M(),_.x("design:type",Number)],tY.prototype,"selectedResponseIndex",void 0);_.d([_.o5("#submit-button"),_.x("design:type",HTMLButtonElement)],tY.prototype,"submitButton",void 0);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],tY.prototype,"onServiceRequestCompleted",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tY.prototype,"dataChanged",null);
_.d([_.Os("selectedResponseIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tY.prototype,"onSelectedResponseIndexChange",null);_.d([_.Y({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],tY);
_.p(tY,"ytd-feedback-elicitation-single-question-renderer",function(){if(W6e!==void 0)return W6e;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return W6e=D},{mode:1});var Ipv;var Ho=function(){return _.X.apply(this,arguments)||this};
_.P(Ho,_.X);Ho.prototype.computeThumbnailWidth=function(D){return D?602:428};
Ho.prototype.updateWideFromBinding=function(D){this.wide=D.detail.value};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ho.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],Ho.prototype,"wide",void 0);_.d([_.Y({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Ho);
_.p(Ho,"ytd-newspaper-hero-video-renderer",function(){if(Ipv!==void 0)return Ipv;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Ipv=D},{mode:1});var QlF;var eH=function(){return _.X.apply(this,arguments)||this};
_.P(eH,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],eH.prototype,"rendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],eH.prototype,"data",void 0);_.d([_.Y({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],eH);
_.p(eH,"ytd-newspaper-mini-video-renderer",function(){if(QlF!==void 0)return QlF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return QlF=D},{mode:1});var yYO;_.AB("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var Vz=function(){return _.X.apply(this,arguments)||this};
_.P(Vz,_.X);Vz.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"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Vz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Vz.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Vz.prototype,"data",void 0);_.d([_.Y({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],Vz);
_.p(Vz,"ytd-newspaper-renderer",function(){if(yYO!==void 0)return yYO;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return yYO=D},{mode:1});var BlO;_.AB("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var b7=function(){var D=_.X.apply(this,arguments)||this;D.isSegment=!1;D.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};D.nextContinuation={continuationType:"playlistVideoListContinuation"};return D};
_.P(b7,_.X);_.q=b7.prototype;_.q.attached=function(){_.qS();var D;(D=_.qS().resolve(_.by(_.Ag)))!=null&&(D.playlistVideoListElement=this.hostElement)};
_.q.detached=function(){var D;(D=_.qS().resolve(_.by(_.Ag)))!=null&&(D.playlistVideoListElement=void 0);D=_.qS().resolve(_.by(_.Lm));_.r("web_enable_voting_animation")&&D&&(D.parentElem=void 0,D.videos=[],D.continuationsPresent=!1,D.showRefreshPill=!1)};
_.q.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"}}}}}};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.q.dataChanged=function(){var D=_.qS().resolve(_.by(_.Lm));if(_.r("web_enable_voting_animation")&&this.data&&D){var t=_.Kg(this.hostElement).querySelector("#contents");t&&(D.parentElem=t);D.addVideos(this.data.contents)}_.CTm(this.ytReorderableBehavior)};
_.q.onRendererstamperFinished=function(){this.canReorder&&_.m8Q(this.ytReorderableBehavior,_.Kg(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.q.onPlaylistReloading=function(){this.isReloading=!0};
_.q.onUpdateSetVideoId=function(D){if(D.detail&&this.data&&this.data.contents){var t=D.detail;D=this.data.contents.findIndex(function(V){var b;return((b=V.playlistVideoRenderer)==null?void 0:b.videoId)===t.videoId});
if(!(D<0)&&t.setVideoId&&(this.set("data.contents."+D+".playlistVideoRenderer.setVideoId",t.setVideoId),_.r("web_enable_voting_animation"))){var H;if(D=_.O((H=this.data.contents[D].playlistVideoRenderer)==null?void 0:H.engagementBar,_.CbK)){var e;(e=D.actions)==null||e.forEach(function(V){if(V=_.O(V,_.mVD))V.itemId=t.setVideoId})}(H=_.qS().resolve(_.by(_.Lm)))&&Uft(H,t.videoId,t.setVideoId)}}};
_.q.computeContentsClass=function(D){return D?"reloading":""};
_.q.computeIsSortable=function(D,t){return D&&t>0&&!this.isSegment&&!_.r("shorts_in_playlists_web")};
_.q.computeIsEditable=function(D){return D};
_.q.computeCanReorder=function(D){return D};
_.q.handlePlaylistRemoveVideosAction=function(D){if(this.get("playlistRemoveVideosAction.setVideoIds",D)&&this.data&&this.data.contents){D=_.O(D,_.oYn).setVideoIds;for(var t=this.data.contents.length-1;t>=0;){var H=this.data.contents[t].playlistVideoRenderer;H&&H.setVideoId&&D.includes(H.setVideoId)&&this.splice("data.contents",t,1);t--}_.ET(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.q.updateIndices=function(){if(this.data&&this.data.contents)for(var D=0;D<this.data.contents.length;D++)this.set("data.contents."+D+".playlistVideoRenderer.index",_.H7(String(D+1)))};
_.q.handleDrop=function(D){D=D.currDragItem;var t=_.JT(D.parentNode.childNodes,D),H=this.data.contents.splice(Number(_.eo(D.data.index))-1,1)[0];this.data.contents.splice(t,0,H);t=t?this.get("contents."+(t-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();D=this.buildReorderServiceEndpoint(D.data.setVideoId,t);this.ytComponentBehavior.resolveCommand(D)};
_.q.buildReorderServiceEndpoint=function(D,t){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",D),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",t),this.data.onReorderEndpoint):null};
_.q.handleUpdatePlaylistAction=function(D){var t;(D=_.O((t=_.O(D,_.PuB))==null?void 0:t.updatedRenderer,_.$B3))&&this.canReorder!==D.canReorder&&this.set("data.canReorder",D.canReorder);D&&D.contents&&(this.set("data.contents",D.contents),this.isReloading=!1);D&&D.continuations&&this.set("data.continuations",D.continuations)};
_.q.handleAddRendererToItemSectionAction=function(D){var t,H=(t=_.O(D,mfi))==null?void 0:t.renderer,e;H&&((e=_.O(D,mfi))==null?void 0:e.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,H),D=_.qS().resolve(_.by(_.Lm)),_.r("web_enable_voting_animation")&&D&&(H&&(t=_.nb8(H))&&D.recommendedVideos.push({itemId:t,videoId:_.M5u(H),voteCount:_.SN8(H),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.q.isVotingEnabledOnPlaylist=function(D){if(!D)return!1;D=_.F(D);for(D=D.next();!D.done;D=D.next()){var t=void 0;return!!_.O((t=D.value.playlistVideoRenderer)==null?void 0:t.engagementBar,_.CbK)}return!1};
_.q.onAppendContinuationItemsActionFinished=function(){var D;this.isVotingEnabledOnPlaylist((D=this.data)==null?void 0:D.contents)&&(this.updateIndices(),D=_.qS().resolve(_.by(_.Lm)),_.r("web_enable_voting_animation")&&D&&this.data&&D.addVideos(this.data.contents))};
_.q.updateVideoData=function(D){if(D.detail&&this.data&&this.data.contents){var t=D.detail;D=t.toIdx;var H=t.itemId,e=t.newVoteCount,V=t.voteStatus;t=t.hideItem;var b,a,w=(b=this.data)==null?void 0:(a=b.contents)==null?void 0:a.findIndex(function(k){return _.nb8(k)===H});
if(!(w<0)){b=this.data.contents[w];var h;if((h=b.playlistVideoRenderer)==null?0:h.voteCount)b.playlistVideoRenderer.voteCount=e;var K;if(h=_.O((K=b.playlistVideoRenderer)==null?void 0:K.engagementBar,_.CbK)){var N;(N=h.actions)==null||N.forEach(function(k){(k=_.O(k,_.mVD))&&k.initialState&&(k.initialState.votes=e,k.initialState.status=V)})}this.data.contents.splice(w,1);
t||this.data.contents.splice(D,0,b);this.updateIndices()}}};
b7.prototype.updateVideoData=b7.prototype.updateVideoData;b7.prototype.onAppendContinuationItemsActionFinished=b7.prototype.onAppendContinuationItemsActionFinished;b7.prototype.onUpdateSetVideoId=b7.prototype.onUpdateSetVideoId;b7.prototype.onPlaylistReloading=b7.prototype.onPlaylistReloading;b7.prototype.onRendererstamperFinished=b7.prototype.onRendererstamperFinished;b7.prototype.dataChanged=b7.prototype.dataChanged;
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],b7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],b7.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.cz.YtNextContinuationBehavior),_.x("design:type",Object)],b7.prototype,"ytNextContinuationBehavior",void 0);
_.d([_.C(_.Ml6),_.x("design:type",Object)],b7.prototype,"ytReorderableBehavior",void 0);_.d([_.C(_.T_),_.x("design:type",Object)],b7.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],b7.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],b7.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],b7.prototype,"isReloading",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],b7.prototype,"isSegment",void 0);_.d([_.M({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.x("design:type",Boolean)],b7.prototype,"isSortable",void 0);_.d([_.M({computed:"computeIsEditable(data.isEditable)"}),_.x("design:type",Boolean)],b7.prototype,"isEditable",void 0);_.d([_.M({computed:"computeCanReorder(data.canReorder)"}),_.x("design:type",Boolean)],b7.prototype,"canReorder",void 0);
_.d([_.M({value:101}),_.x("design:type",Number)],b7.prototype,"scrollMargin",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b7.prototype,"dataChanged",null);_.d([_.rx("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b7.prototype,"onRendererstamperFinished",null);
_.d([_.rx("yt-playlist-reloading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b7.prototype,"onPlaylistReloading",null);_.d([_.rx("yt-update-set-video-id"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],b7.prototype,"onUpdateSetVideoId",null);
_.d([_.rx("yt-append-continuation-items-action-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b7.prototype,"onAppendContinuationItemsActionFinished",null);_.d([_.rx("yt-update-video-data-voting-animation"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],b7.prototype,"updateVideoData",null);_.d([_.Y({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],b7);
_.p(b7,"ytd-playlist-video-list-renderer",function(){if(BlO!==void 0)return BlO;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return BlO=D},{mode:_.Kz("kevlar_poly_si_batch_j047")?1:2});var zxi;var qf=function(){return _.X.apply(this,arguments)||this};
_.P(qf,_.X);qf.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"}}}}};
qf.prototype.onTextWrapperTap=function(D){var t=this.data&&this.data.navigationEndpoint;t&&!_.ed(_.bK(D),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Gf(this.hostElement,"yt-navigate",{endpoint:t})};
qf.prototype.dataChanged=function(){var D=this.get("data.offerButton.buttonRenderer.serviceEndpoint");D&&D.commandMetadata&&_.O(D.commandMetadata,_.uq)&&_.O(D.commandMetadata,_.uq).fireAutomatically&&_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}})};
qf.prototype.dataChanged=qf.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],qf.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],qf.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.jL),_.x("design:type",Object)],qf.prototype,"ytdLockupBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],qf.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],qf.prototype,"useBiggerThumbs",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.sa("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],qf.prototype,"biggerThumbsStyle",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],qf.prototype,"leftAligned",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qf.prototype,"dataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-movie-renderer"})],qf);
_.p(qf,"ytd-movie-renderer",function(){if(zxi!==void 0)return zxi;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return zxi=D},{mode:1});var DRt;var Fa=function(){var D=_.X.apply(this,arguments)||this;D.rounded=!0;D.pageAttachedTo=void 0;D.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return D};
_.P(Fa,_.X);Fa.prototype.attached=function(){this.pageAttachedTo=_.qS().resolve(_.bO).getCurrentPage();_.Gf(this.hostElement,"yt-player-attached",this.player)};
Fa.prototype.detached=function(){var D;if((D=this.pageAttachedTo)==null?0:D.hostElement)_.Gf(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Fa.prototype.dataChanged=function(){var D;if((D=this.data)==null?0:D.videoId)D={video_id:this.data.videoId,autoplay:!0},!_.r("miniplayer_stop_channel_video_autoplay_killswitch")&&_.qS().resolve(_.dL).isMiniplayerActive()&&(D.pause_at_start=!0,D.autoplay=!1),this.player.loadVideoWithPlayerVars(D)};
Fa.prototype.handleSignalActionPausePlayer=function(){_.an().pause()};
Fa.prototype.dataChanged=Fa.prototype.dataChanged;_.d([_.M(),_.x("design:type",Object)],Fa.prototype,"data",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Fa.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Fa.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Fa.prototype,"rounded",void 0);_.d([_.o5("#player"),_.x("design:type",Object)],Fa.prototype,"player",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Fa.prototype,"dataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Fa);
_.p(Fa,"ytd-channel-video-player-renderer",function(){if(DRt!==void 0)return DRt;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return DRt=D},{mode:1});var tvF;var HHH;var eVb;var al=function(){var D=_.X.apply(this,arguments)||this;D.playing=!1;D.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.I$(D);D.active=!1;return D};
_.P(al,_.X);_.q=al.prototype;_.q.detached=function(){this.stop()};
_.q.play=function(){var D=this,t,H,e,V,b;return _.Z(function(a){if(a.nextAddress==1)return D.active=!0,t=D.get("data.inlinePlaybackEndpoint.watchEndpoint"),H=t.videoId||D.data.videoId,e=t.startTimeSeconds||0,V=t.playerParams||null,_.r("kevlar_player_update_killswitch")?a.yield(D.playerEl.update({args:{video_id:H,startSeconds:e,player_params:V}}),2):(D.playerEl.loadVideoWithPlayerVars({video_id:H,startSeconds:e,player_params:V,autoplay:!0}),a.jumpTo(2));if(a.nextAddress!=4)return a.yield(D.playerEl.getPlayerPromise(),
4);b=a.yieldResult;b.unloadModule("annotations_module");b.addEventListener("onStateChange",function(w){D.onPlayerStateChange(w)});
_.n2(a)})};
_.q.onPlayerStateChange=function(D){if(this.active)switch(this.playing=D===1,D){case 1:_.Gf(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Gf(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.q.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.q.resize=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(D.playerEl.getPlayerPromise(),2);t=H.yieldResult;t.setSize(NaN,NaN);_.n2(H)})};
_.d([_.M(),_.x("design:type",Object)],al.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],al.prototype,"playing",void 0);_.d([_.M(),_.x("design:type",Object)],al.prototype,"playerId",void 0);_.d([_.o5("#player"),_.x("design:type",Object)],al.prototype,"playerEl",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],al);
_.p(al,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(eVb!==void 0)return eVb;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return eVb=D},{mode:1});var Vve;var bHF;var wl=function(){var D=_.X.apply(this,arguments)||this;D.width=0;return D};
_.P(wl,_.X);_.q=wl.prototype;_.q.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.iK(this,this.onEnded));this.mp4El.addEventListener("error",_.iK(this,this.onError))};
_.q.detached=function(){this.videoEl.removeEventListener("ended",_.iK(this,this.onEnded));this.mp4El.removeEventListener("error",_.iK(this,this.onError))};
_.q.play=function(){var D=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var t=this.videoEl.play();t?t.then(function(){D.handleVideoStartPlaying()}).catch(function(){_.Gf(D.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Gf(this.hostElement,"yt-video-thumbnail-not-playing")};
_.q.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.q.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.q.dataChanged=function(){var D;if((D=this.data)==null?0:D.thumbnailPlaceholder)D=_.G3(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+D+")";this.stop();this.autoplay&&this.play()};
_.q.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.q.onEnded=function(){this.stop();_.Gf(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.q.onError=function(){_.Gf(this.hostElement,"yt-video-thumbnail-error")};
_.q.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.q.getVideoThumbnail=function(D){if(D&&D.length)return D[0]};
wl.prototype.dataChanged=wl.prototype.dataChanged;_.d([_.M(),_.x("design:type",Object)],wl.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],wl.prototype,"animatePlaceholderOnEntrance",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],wl.prototype,"autoplay",void 0);_.d([_.M({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.x("design:type",Object)],wl.prototype,"videoThumbnail",void 0);
_.d([_.M(),_.x("design:type",Boolean)],wl.prototype,"loop",void 0);_.d([_.M(),_.x("design:type",Boolean)],wl.prototype,"isVideoPlaying",void 0);_.d([_.M(),_.x("design:type",Object)],wl.prototype,"width",void 0);_.d([_.o5("#mp4"),_.x("design:type",HTMLElement)],wl.prototype,"mp4El",void 0);_.d([_.o5("#placeholder"),_.x("design:type",HTMLElement)],wl.prototype,"placeholderEl",void 0);_.d([_.o5("#video"),_.x("design:type",HTMLVideoElement)],wl.prototype,"videoEl",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wl.prototype,"dataChanged",null);_.d([_.xL({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],wl);
_.p(wl,"yt-video-as-thumbnail-details",function(){if(bHF===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Vve===void 0&&(Vve=document.createElement("template"));var e=Vve;H.call(t,e.content.cloneNode(!0),D.content.firstChild);bHF=D}D=bHF;return D},{mode:2});var Zp=function(){var D=_.X.apply(this,arguments)||this;D.disableGridStateAware=!1;D.animationEnabled=_.r("enable_web_ketchup_hero_animation");D.transitioningOut=!1;D.narrow=!1;D.narrower=!1;D.isCarouselInFeed=!1;D.videoTimeoutJobId=0;D.panelTimeoutJobId=0;D.panelTimeoutJobStartMs=0;D.actionMap={"yt-window-resized":"onWindowResized"};return D};
_.P(Zp,_.X);_.q=Zp.prototype;_.q.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.q.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var D;this.player&&((D=this.data)==null?0:D.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.q.attached=function(){this.onWindowResized()};
_.q.detached=function(){this.clearTimeouts()};
_.q.onWindowResized=function(){this.updateSize()};
_.q.computePanelLayout=function(D){return D&&D.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.q.playVideo=function(){var D;this.video&&((D=this.data)==null?0:D.videoThumbnail)&&this.video.play();var t;this.player&&((t=this.data)==null?0:t.inlinePlaybackRenderer)&&this.player.play()};
_.q.stopVideo=function(){var D;this.video&&((D=this.data)==null?0:D.videoThumbnail)&&this.video.stop();var t;this.player&&((t=this.data)==null?0:t.inlinePlaybackRenderer)&&this.player.stop()};
_.q.transitionOut=function(){var D=this;this.transitioningOut=!0;return new Promise(function(t){var H=function(){_.Kg(D.hostElement).querySelector("#action-button").removeEventListener("animationend",H);_.Jy.cancelJob(e);t();D.transitioningOut=!1};
var e=_.C7(_.Jy,H,1E3);_.Kg(D.hostElement).querySelector("#action-button").addEventListener("animationend",H);D.player&&(D.player.playing=!1)})};
_.q.computeMetadataOrder=function(D){return D&&D.metadataOrder&&D.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?D.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.q.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.q.computeAvatarSize=function(D){return D&&D.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.q.onContentClick=function(D){if(!_.ed(_.bK(D),this.hostElement,["A".toString(),"BUTTON".toString()])){var t;if((t=this.data)==null?0:t.navigationEndpoint){var H;this.componentBehavior.resolveCommand((H=this.data)==null?void 0:H.navigationEndpoint)}}};
_.q.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.q.setBackgroundImage=function(D){if(D=this.getBackgroundImageUrl(D))_.Kg(this.hostElement).querySelector("#hero").style.backgroundImage="url("+D+")"};
_.q.setScrimLayer=function(D){var t=this.getScrimLayerColorStops(D);D=((D==null?void 0:D.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(D=180);_.YC("HTML_DIR")==="rtl"&&(D=-D);t&&(_.Kg(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+D+"deg, "+t+")")};
_.q.isNarrower=function(){return this.hostElement.clientWidth<Zp.NARROW_VERSION_SIZE};
_.q.getScrimLayerColorStops=function(){var D,t=(D=this.data)==null?void 0:D.scrimColorValues;if(!t)return null;if(t.length===1)return D=_.Qk(t[0]),D+" 0%, "+D+" 100%";if(t.length===3){var H=[0,72,98];return t.map(function(e,V){return _.Qk(e)+" "+H[V]+"%"}).join(",")}return null};
_.q.getBackgroundImageUrl=function(D){return D&&D.largeFormFactorBackgroundThumbnail?_.G3((D.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||D.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.q.onPlaying=function(){this.startVideoTimeout()};
_.q.onEnded=function(){this.rotate()};
_.q.startPanelTimeout=function(){var D=this;if(!this.panelTimeoutJobId){var t=this.get("data.minPanelDisplayDurationMs");t&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.C7(_.Jy,function(){D.rotate()},t))}};
_.q.startVideoTimeout=function(){var D=this;if(!this.videoTimeoutJobId){_.Jy.cancelJob(this.panelTimeoutJobId);var t=Date.now()-this.panelTimeoutJobStartMs;t=Math.max(0,this.get("data.minPanelDisplayDurationMs")-t);t=Math.max(this.get("data.minVideoPlayDurationMs")||0,t);this.videoTimeoutJobId=_.C7(_.Jy,function(){D.rotate()},t)}};
_.q.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Jy.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Jy.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.q.rotate=function(){this.clearTimeouts();_.Gf(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.ql.Object.defineProperties(Zp.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Kg(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Kg(this.hostElement).querySelector("#video")}}});
_.ql.Object.defineProperties(Zp,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
Zp.prototype.onEnded=Zp.prototype.onEnded;Zp.prototype.onPlaying=Zp.prototype.onPlaying;Zp.prototype.dataChanged=Zp.prototype.dataChanged;_.d([_.C(_.Ko),_.x("design:type",Object)],Zp.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Zp.prototype,"componentBehavior",void 0);_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Zp.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.C(_.WBV),_.x("design:type",Object)],Zp.prototype,"ytBooleanLogicBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Zp.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Zp.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Zp.prototype,"disableGridStateAware",void 0);_.d([_.M(),_.x("design:type",Object)],Zp.prototype,"data",void 0);_.d([_.M({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.x("design:type",String)],Zp.prototype,"panelLayout",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Zp.prototype,"animationEnabled",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Zp.prototype,"transitioningOut",void 0);
_.d([_.M({computed:"computeMetadataOrder(data)"}),_.x("design:type",Boolean)],Zp.prototype,"metadataOrder",void 0);_.d([_.M({computed:"computeByline(data)"}),_.x("design:type",Object)],Zp.prototype,"byline",void 0);_.d([_.M({computed:"computeAvatarSize(data)"}),_.x("design:type",Number)],Zp.prototype,"avatarSize",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Zp.prototype,"narrow",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Zp.prototype,"narrower",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Zp.prototype,"layoutStyle",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Zp.prototype,"isCarouselInFeed",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Zp.prototype,"dataChanged",null);_.d([_.rx("yt-default-promo-panel-renderer-playing"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Zp.prototype,"onPlaying",null);
_.d([_.rx("yt-default-promo-panel-renderer-ended"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Zp.prototype,"onEnded",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],Zp);
_.p(Zp,"ytd-default-promo-panel-renderer",function(){if(HHH!==void 0)return HHH;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return HHH=D},{mode:1});_.AB("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var s0=function(){var D=_.X.apply(this,arguments)||this;D.narrower=!1;D.dotMenuVisible=!1;D.paginationThumbnailsVisible=!1;D.active=!0;D.disableGridStateAware=!1;D.actionMap={"yt-window-resized":"onWindowResized"};return D};
_.P(s0,_.X);_.q=s0.prototype;_.q.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]]"}}}}}};
_.q.attached=function(){document.addEventListener("yt-page-type-changed",_.iK(this,this.onPageTypeChange));this.currentPageSubtype=_.RAD(location.pathname);this.onWindowResized()};
_.q.detached=function(){this.jobId&&_.Jy.cancelJob(this.jobId);this.updateSizeJobId&&_.Jy.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.iK(this,this.onPageTypeChange))};
_.q.onPageTypeChange=function(D){this.active=D.detail.newPageSubtype===this.currentPageSubtype};
_.q.onWindowResized=function(){this.updateSize()};
_.q.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.q.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.q.setCarouselItem=function(D){D>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Jy.cancelJob(this.jobId);var t=this.getCurrentPanelElement();t&&t.stopVideo();this.currentItemIndex=D%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(t||(t=this.getCurrentPanelElement()),t.playVideo()):this.startRotationJob()};
_.q.scrollThumbnails=function(D){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var t=this.getCurrentPaginationElement();if(t){var H=_.Kg(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?H.style.transform="translateX(0)":(t=t.offsetWidth+8,H.style.transform="translateX(-"+t*(D-Math.ceil(Math.floor(this.overlay.offsetWidth/t)/2)+1)+"px)")}}};
_.q.onDataChanged=function(){var D=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.NP(_.Jy,function(){var t;(t=D.getCurrentPanelElement())==null||t.updateSize();D.updateSize()}))};
_.q.getCurrentPanelElement=function(){return _.Kg(_.Kg(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.q.getCurrentPaginationElement=function(){return _.Kg(_.Kg(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.q.getNavigationClass=function(D,t){return D===t?"selected":""};
_.q.getNavigationDurationStyle=function(D){return"animation-duration:"+(this.get("data.carouselItems."+D+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.q.onNavigationTap=function(D){var t=this,H=D.model.index;H!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){t.setCarouselItem(H)}),this.autorotateActive=!1)};
_.q.onVideoThumbnailEnded=function(){var D=this;if(this.shouldRotate()){var t=this.getCurrentPaginationElement();t&&(t.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){t.classList.remove("finished");D.setNextCarouselItem()}))}};
_.q.onVideoThumbnailError=function(){this.startRotationJob()};
_.q.onVideoNotPlaying=function(){this.startRotationJob()};
_.q.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.q.startRotationJob=function(){var D=this;_.Jy.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Jy.addLowPriorityJob(function(){D.getCurrentPanelElement().transitionOut().then(function(){D.setNextCarouselItem()})},this.rotationTimeout))};
_.q.computeDotMenuVisible=function(D,t){return!!D&&!!D.carouselItems&&D.carouselItems.length>1&&!D.paginationThumbnails||!!t};
_.q.computePaginationThumbnailsVisible=function(D,t){var H,e;return((e=D==null?void 0:(H=D.paginationThumbnails)==null?void 0:H.length)!=null?e:0)>1&&!t};
_.q.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.q.computePaginatorAlignment=function(D){return(D==null?void 0:D.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.q.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.q.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.q.isNarrower=function(D){return(D!=null?D:0)<Zp.NARROW_VERSION_SIZE};
s0.prototype.activeChanged=s0.prototype.activeChanged;s0.prototype.onVideoNotPlaying=s0.prototype.onVideoNotPlaying;s0.prototype.onVideoThumbnailError=s0.prototype.onVideoThumbnailError;s0.prototype.onVideoThumbnailEnded=s0.prototype.onVideoThumbnailEnded;s0.prototype.onDataChanged=s0.prototype.onDataChanged;_.d([_.C(_.Ko),_.x("design:type",Object)],s0.prototype,"ytdGridStateAwareBehavior",void 0);
_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],s0.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],s0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],s0.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],s0.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],s0.prototype,"currentItem",void 0);
_.d([_.M(),_.x("design:type",Number)],s0.prototype,"currentItemIndex",void 0);_.d([_.M(),_.x("design:type",Number)],s0.prototype,"rotationTimeout",void 0);_.d([_.M(),_.x("design:type",Number)],s0.prototype,"loopCount",void 0);_.d([_.M({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.x("design:type",String)],s0.prototype,"paginatorAlignment",void 0);_.d([_.M(),_.x("design:type",Number)],s0.prototype,"jobId",void 0);
_.d([_.M(),_.x("design:type",Number)],s0.prototype,"updateSizeJobId",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],s0.prototype,"isCarouselInFeed",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],s0.prototype,"narrower",void 0);_.d([_.M({computed:"computeDotMenuVisible(data, narrower)"}),_.x("design:type",Object)],s0.prototype,"dotMenuVisible",void 0);
_.d([_.M({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.x("design:type",Object)],s0.prototype,"paginationThumbnailsVisible",void 0);_.d([_.M({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.x("design:type",String)],s0.prototype,"layoutType",void 0);_.d([_.M({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],s0.prototype,"autorotateActive",void 0);_.d([_.M(),_.x("design:type",Object)],s0.prototype,"active",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],s0.prototype,"disableGridStateAware",void 0);_.d([_.o5("#overlay"),_.x("design:type",HTMLElement)],s0.prototype,"overlay",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],s0.prototype,"onDataChanged",null);
_.d([_.rx("yt-video-thumbnail-ended"),_.rx("yt-default-promo-panel-renderer-rotate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],s0.prototype,"onVideoThumbnailEnded",null);_.d([_.rx("yt-video-thumbnail-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],s0.prototype,"onVideoThumbnailError",null);
_.d([_.rx("yt-video-thumbnail-not-playing"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],s0.prototype,"onVideoNotPlaying",null);_.d([_.mx("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],s0.prototype,"activeChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],s0);
_.p(s0,"ytd-carousel-item-renderer",function(){if(tvF!==void 0)return tvF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return tvF=D},{mode:2});var q9O;var F0g;var aaY;var wQ4;var hY=function(){var D=_.X.apply(this,arguments)||this;D.originalQuery=null;D.originalEndpoint=null;return D};
_.P(hY,_.X);hY.prototype.computeShowOriginalQueryWithoutEndpoint_=function(D,t){return!(!D||t)};
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],hY.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],hY.prototype,"correctedText",void 0);_.d([_.M(),_.x("design:type",Object)],hY.prototype,"correctedQuery",void 0);_.d([_.M(),_.x("design:type",Object)],hY.prototype,"correctedEndpoint",void 0);_.d([_.M(),_.x("design:type",Object)],hY.prototype,"originalText",void 0);_.d([_.M(),_.x("design:type",Object)],hY.prototype,"originalQuery",void 0);
_.d([_.M(),_.x("design:type",Object)],hY.prototype,"originalEndpoint",void 0);_.d([_.M({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.x("design:type",Boolean)],hY.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.d([_.xL({is:"yt-search-query-correction",disableElementRegistration:!0})],hY);
_.p(hY,"yt-search-query-correction",function(){if(wQ4===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;aaY===void 0&&(aaY=document.createElement("template"));var e=aaY;H.call(t,e.content.cloneNode(!0),D.content.firstChild);wQ4=D}D=wQ4;return D},{mode:2});_.AB("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var G9=function(){return _.X.apply(this,arguments)||this};
_.P(G9,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],G9.prototype,"data",void 0);_.d([_.xL({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],G9);
_.p(G9,"yt-did-you-mean-renderer",function(){if(F0g===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;q9O===void 0&&(q9O=document.createElement("template"));var e=q9O;H.call(t,e.content.cloneNode(!0),D.content.firstChild);F0g=D}D=F0g;return D},{mode:2});var ZHH;var seO;_.AB("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var E0=function(){return _.X.apply(this,arguments)||this};
_.P(E0,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],E0.prototype,"data",void 0);_.d([_.xL({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],E0);
_.p(E0,"yt-including-results-for-renderer",function(){if(seO===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;ZHH===void 0&&(ZHH=document.createElement("template"));var e=ZHH;H.call(t,e.content.cloneNode(!0),D.content.firstChild);seO=D}D=seO;return D},{mode:2});var hVv;var Gye;_.AB("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var KT=function(){return _.X.apply(this,arguments)||this};
_.P(KT,_.X);KT.prototype.computeExtraClasses_=function(D,t){var H="";D&&(H+=" "+D.toLowerCase().replace(/_/g,"-"));t&&(H+=" "+t.toLowerCase().replace(/_/g,"-"));return H};
KT.prototype.computeUrlImg_=function(){var D=this.data;D.image&&(_.Kg(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.G3(D.image.thumbnails,Number.MAX_VALUE)+")")};
KT.prototype.computeUrlImg_=KT.prototype.computeUrlImg_;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],KT.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],KT.prototype,"data",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KT.prototype,"computeUrlImg_",null);_.d([_.xL({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],KT);
_.p(KT,"yt-music-pass-feature-info-renderer",function(){if(Gye===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;hVv===void 0&&(hVv=document.createElement("template"));var e=hVv;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Gye=D}D=Gye;return D},{mode:2});var EJg;var K04;_.AB("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var Nf=function(){return _.X.apply(this,arguments)||this};
_.P(Nf,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Nf.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Nf.prototype,"data",void 0);_.d([_.xL({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],Nf);
_.p(Nf,"yt-no-results-found-showing-results-for-renderer",function(){if(K04===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;EJg===void 0&&(EJg=document.createElement("template"));var e=EJg;H.call(t,e.content.cloneNode(!0),D.content.firstChild);K04=D}D=K04;return D},{mode:2});var NXF;var kyb;_.AB("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var kd=function(){return _.X.apply(this,arguments)||this};
_.P(kd,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],kd.prototype,"data",void 0);_.d([_.xL({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],kd);
_.p(kd,"yt-results-without-quotes-renderer",function(){if(kyb===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;NXF===void 0&&(NXF=document.createElement("template"));var e=NXF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);kyb=D}D=kyb;return D},{mode:2});var TXg;var cxg;_.AB("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var T9=function(){return _.X.apply(this,arguments)||this};
_.P(T9,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],T9.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],T9.prototype,"data",void 0);_.d([_.xL({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],T9);
_.p(T9,"yt-search-no-results-renderer",function(){if(cxg===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;TXg===void 0&&(TXg=document.createElement("template"));var e=TXg;H.call(t,e.content.cloneNode(!0),D.content.firstChild);cxg=D}D=cxg;return D},{mode:2});var jeY;var $RF;_.AB("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var co=function(){return _.X.apply(this,arguments)||this};
_.P(co,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],co.prototype,"data",void 0);_.d([_.xL({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],co);
_.p(co,"yt-showing-results-for-renderer",function(){if($RF===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;jeY===void 0&&(jeY=document.createElement("template"));var e=jeY;H.call(t,e.content.cloneNode(!0),D.content.firstChild);$RF=D}D=$RF;return D},{mode:2});var iHF;var rxQ;var OHF;var URt;var jH=function(){var D=_.X.apply(this,arguments)||this;D.answerExpanded=!1;return D};
_.P(jH,_.X);jH.prototype.toggleAnswer_=function(D){var t=_.qy(D);t&&t.classList.contains("yt-simple-endpoint")||(D.preventDefault(),D.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
jH.prototype.toggleAnswer_=jH.prototype.toggleAnswer_;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],jH.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],jH.prototype,"answerExpanded",void 0);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],jH.prototype,"toggleAnswer_",null);
_.d([_.xL({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],jH);
_.p(jH,"yt-generic-faq-question-renderer",function(){if(URt===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;OHF===void 0&&(OHF=document.createElement("template"));var e=OHF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);URt=D}D=URt;return D},{mode:2});_.AB("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var $d=function(){return _.X.apply(this,arguments)||this};
_.P($d,_.X);$d.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],$d.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$d.prototype,"data",void 0);_.d([_.xL({is:"yt-faq-section-renderer",disableElementRegistration:!0})],$d);
_.p($d,"yt-faq-section-renderer",function(){if(rxQ===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;iHF===void 0&&(iHF=document.createElement("template"));var e=iHF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);rxQ=D}D=rxQ;return D},{mode:2});var oJb;var PnO;_.AB("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var i7=function(){return _.X.apply(this,arguments)||this};
_.P(i7,_.X);
i7.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"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],i7.prototype,"data",void 0);_.d([_.xL({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],i7);
_.p(i7,"yt-offer-item-expanded-renderer",function(){if(PnO===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;oJb===void 0&&(oJb=document.createElement("template"));var e=oJb;H.call(t,e.content.cloneNode(!0),D.content.firstChild);PnO=D}D=PnO;return D},{mode:2});var nJF;var CnH;_.AB("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var rl=function(){return _.X.apply(this,arguments)||this};
_.P(rl,_.X);
rl.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"}}}}};
rl.prototype.computeFullWidthMode=function(D){return!(!D||!D.fullWidthMode)};
rl.prototype.computeBorderlessMode=function(D){return!(!D||!D.borderlessMode)};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],rl.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],rl.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.x("design:type",Boolean)],rl.prototype,"fullWidthMode",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.x("design:type",Boolean)],rl.prototype,"borderlessMode",void 0);_.d([_.xL({is:"yt-offer-item-renderer",disableElementRegistration:!0})],rl);
_.p(rl,"yt-offer-item-renderer",function(){if(CnH===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;nJF===void 0&&(nJF=document.createElement("template"));var e=nJF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);CnH=D}D=CnH;return D},{mode:2});var mR4;var Mvi;_.AB("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var O0=function(){return _.X.apply(this,arguments)||this};
_.P(O0,_.X);O0.prototype.computeAriaLevel_=function(D){return this.getLevelID_(D)};
O0.prototype.getLevelID_=function(D){return(D=D.match(/[0-9]+$/))&&D.length==1?D[0]:"1"};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],O0.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],O0.prototype,"data",void 0);_.d([_.M({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.x("design:type",String)],O0.prototype,"ariaLevel",void 0);_.d([_.M({value:"heading",reflectToAttribute:!0}),_.x("design:type",String)],O0.prototype,"role",void 0);
_.d([_.M({value:-1,reflectToAttribute:!0}),_.x("design:type",Number)],O0.prototype,"tabindex",void 0);_.d([_.xL({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],O0);
_.p(O0,"yt-subscription-product-header-renderer",function(){if(Mvi===void 0){var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;mR4===void 0&&(mR4=document.createElement("template"));var e=mR4;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Mvi=D}D=Mvi;return D},{mode:2});var S9H;var XQY;_.AB("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var U0=function(){return _.X.apply(this,arguments)||this};
_.P(U0,_.X);U0.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:_.gm("menuRenderer"),events:!0}}};
U0.prototype.onStampFinished_=function(){_.Kg(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
U0.prototype.onStampFinished_=U0.prototype.onStampFinished_;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],U0.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],U0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],U0.prototype,"data",void 0);_.d([_.rx("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U0.prototype,"onStampFinished_",null);
_.d([_.xL({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],U0);
_.p(U0,"yt-subscription-product-renderer",function(){if(XQY===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;S9H===void 0&&(S9H=document.createElement("template"));var e=S9H;H.call(t,e.content.cloneNode(!0),D.content.firstChild);XQY=D}D=XQY;return D},{mode:2});var faF;var L0F;_.AB("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var ol=function(){return _.X.apply(this,arguments)||this};
_.P(ol,_.X);ol.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
ol.prototype.imageScrimColorValuesChanged_=function(){var D,t=(D=this.data)==null?void 0:D.imageScrimColorValues;_.Kg(this.hostElement).querySelector("#scrim").style.backgroundColor=t?_.Qk(t[0]):"transparent"};
ol.prototype.imageScrimColorValuesChanged_=ol.prototype.imageScrimColorValuesChanged_;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ol.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ol.prototype,"data",void 0);
_.d([_.Os("data.imageScrimColorValues"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ol.prototype,"imageScrimColorValuesChanged_",null);_.d([_.xL({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],ol);
_.p(ol,"yt-subscription-product-upsell-offer-renderer",function(){if(L0F===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;faF===void 0&&(faF=document.createElement("template"));var e=faF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);L0F=D}D=L0F;return D},{mode:2});var Axb;var gJO;var JxH;var Y9i;var lai;var vJv;var Po=function(){return _.X.apply(this,arguments)||this};
_.P(Po,_.X);Po.prototype.onYtServiceRequestError_=function(D){_.y2(this.hostElement,D.detail.error.message)};
Po.prototype.onYtServiceRequestError_=Po.prototype.onYtServiceRequestError_;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Po.prototype,"data",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Po.prototype,"collapsible",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Po.prototype,"isManageRed",void 0);
_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Po.prototype,"onYtServiceRequestError_",null);_.d([_.xL({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],Po);
_.p(Po,"yt-single-ypc-offer-renderer",function(){if(vJv===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;lai===void 0&&(lai=document.createElement("template"));var e=lai;H.call(t,e.content.cloneNode(!0),D.content.firstChild);vJv=D}D=vJv;return D},{mode:2});var nT=function(){return _.X.apply(this,arguments)||this};
_.P(nT,_.X);nT.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],nT.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],nT.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],nT.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],nT.prototype,"isManageRed",void 0);_.d([_.xL({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],nT);
_.p(nT,"yt-single-ypc-offer-list-renderer",function(){if(Y9i===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;JxH===void 0&&(JxH=document.createElement("template"));var e=JxH;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Y9i=D}D=Y9i;return D},{mode:2});var pQZ;var dRZ;_.AB("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var CT=function(){return _.X.apply(this,arguments)||this};
_.P(CT,_.X);CT.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],CT.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],CT.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],CT.prototype,"isManageRed",void 0);_.d([_.xL({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],CT);
_.p(CT,"yt-ypc-offers-list-renderer",function(){if(dRZ===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;pQZ===void 0&&(pQZ=document.createElement("template"));var e=pQZ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);dRZ=D}D=dRZ;return D},{mode:2});_.AB("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var m6=function(){return _.X.apply(this,arguments)||this};
_.P(m6,_.X);
m6.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}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],m6.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],m6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],m6.prototype,"data",void 0);_.d([_.xL({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],m6);
_.p(m6,"yt-unlimited-manage-subscription-page-renderer",function(){if(gJO===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;Axb===void 0&&(Axb=document.createElement("template"));var e=Axb;H.call(t,e.content.cloneNode(!0),D.content.firstChild);gJO=D}D=gJO;return D},{mode:2});var xRi;var RVi;var Mf=function(){return _.X.apply(this,arguments)||this};
_.P(Mf,_.X);_.q=Mf.prototype;_.q.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.q.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.q.onKeypress_=function(D){D.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.q.handleHeaderTap_=function(D){D.preventDefault();D.stopPropagation();this.expandOffers_()};
_.q.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.q.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
Mf.prototype.dataChanged_=Mf.prototype.dataChanged_;_.d([_.C(_.l9),_.x("design:type",Object)],Mf.prototype,"ironA11yKeysBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Mf.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Mf.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Mf.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Mf.prototype,"offersVisible_",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Mf.prototype,"dataChanged_",null);_.d([_.xL({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],Mf);
_.p(Mf,"yt-collapsible-ypc-offer-renderer",function(){if(RVi===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;xRi===void 0&&(xRi=document.createElement("template"));var e=xRi;H.call(t,e.content.cloneNode(!0),D.content.firstChild);RVi=D}D=RVi;return D},{mode:2});var uEF;var W0O;_.AB("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var SH=function(){return _.X.apply(this,arguments)||this};
_.P(SH,_.X);_.q=SH.prototype;_.q.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.q.dataChanged_=function(){if(this.data.backgroundImage){var D=_.G3(this.data.backgroundImage.thumbnails,screen.width),t=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=t?"linear-gradient(180deg, "+t+"), url("+D+")":"url("+D+")";this.data.gtmId&&_.HP(this.data.gtmId,_.YC("GL",""))}};
_.q.onYtServiceRequestError_=function(D){_.y2(this.hostElement,D.detail.error.message)};
_.q.getScrimLayerColorStops_=function(){var D,t,H=(D=this.data.unlimitedHeaderV2Data)==null?void 0:(t=D.unlimitedHeaderV2Data)==null?void 0:t.scrimLayerColors;if(!H)return null;var e=100/H.length;return H.map(function(V,b){b*=e;return _.Qk(V)+" "+b+"%"}).join(",")};
_.q.computeLogoWithPadding=function(D){var t,H,e;return(D=(t=D.unlimitedLogoImage)==null?void 0:(H=t.thumbnails)==null?void 0:(e=H[0])==null?void 0:e.height)&&D%31===0?!0:!1};
SH.prototype.onYtServiceRequestError_=SH.prototype.onYtServiceRequestError_;SH.prototype.dataChanged_=SH.prototype.dataChanged_;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],SH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],SH.prototype,"ytRendererBehavior",void 0);_.d([_.M({computed:"computeLogoWithPadding(data)"}),_.x("design:type",Boolean)],SH.prototype,"logoWithPadding",void 0);
_.d([_.M(),_.x("design:type",Object)],SH.prototype,"data",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],SH.prototype,"dataChanged_",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],SH.prototype,"onYtServiceRequestError_",null);_.d([_.xL({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],SH);
_.p(SH,"yt-unlimited-page-header-renderer",function(){if(W0O===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;uEF===void 0&&(uEF=document.createElement("template"));var e=uEF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);W0O=D}D=W0O;return D},{mode:2});var IaQ;var QeH;_.AB("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var Xa=function(){return _.X.apply(this,arguments)||this};
_.P(Xa,_.X);Xa.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Xa.prototype,"data",void 0);_.d([_.xL({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],Xa);
_.p(Xa,"yt-unlimited-user-notification-renderer",function(){if(QeH===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;IaQ===void 0&&(IaQ=document.createElement("template"));var e=IaQ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);QeH=D}D=QeH;return D},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.P1Y=_.l(function(D){var t=_.FQ(D,{numberOfChips:5}).numberOfChips;return _.G("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.G(_.nY,{each:function(){return Array(t==null?void 0:t())}},function(){return _.G("div",{class:"ytGhostChipShelfChip"})}))},"ri");_.n0Y=_.l(function(D){var t=function(){var b;return((b=D.data)==null?void 0:b.call(D).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},H=_.c5(),e=_.qS().resolve(_.eQ);
_.SG(function(){requestAnimationFrame(function(){var b;(b=H.lottieEl)==null||b.addEventListener("DOMLoaded",function(){var a;(a=D.onLottieLoaded)==null||a.call(D)})})});
var V={};return _.G("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var b;return((b=D.data)==null?void 0:b.call(D).targetId)||""}},_.G(_.x7,{className:_.jQ((V.ytChatLoadingViewModelRtl=e==="rtl",V)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:t()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||t()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:t()}}},
animationRef:H}))},"si");
}catch(e){_._DumpException(e)}
try{
var kWO,TiQ,cWZ,$Sv,iZY,rWi,OZZ,USF,oxF,XYF,xA,Sag,nxH,Mcv,mSH,Cyt,Pyv,fUH,Lhe,AWF,gxe,Rb,JWH,Yab,pYt,W2,lU4,y0,uT,Ib,vxY,Q0,dSe,xSb,REF,ucv,Wht,IUF,QAb,Bi4,zEH,DOH,tEY,HXQ,eXt,VEQ,bXe,FYv,a4Z,web,sPQ,GrO,KYY,Nki,krt,TkF,jPv,$Ot,iXi,ryv,OXQ,UOF,oVQ,nV4,Sqg,MEF,Cge,XeZ,mOe,f4Q,JyH,gVF,LYQ,Ayt,zJ,YqZ,vVQ,peb,dOZ,QPi,yyY,BkF,zXF,DzO,t4g,H7Z,eHF,V4H,b7H,FEt,axZ,w$H,sRb,hHi,uUH;
_.p5=function(D){var t=new _.nZ("Error accessing DB");return _.jwA().then(function(H){return new Promise(function(e,V){try{var b=H.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(D);b.onsuccess=function(){var a=b.result;e(a?a.value:null)};
b.onerror=function(){t.params={key:D,source:"onerror"};V(t)}}catch(a){t.params={key:D,
thrownError:String(a)},V(t)}})},function(){return null})};
_.Nii=function(D,t){var H=_.a7K(t);H!=="javascript:"&&H!=="data:"&&D.setAttribute("href",t)};
kWO=function(D,t){return _.jR(D.entities,"flowStateEntity",t)};
TiQ=function(D,t){return _.jR(D.entities,"contextNoteUserRatingEntityPayload",t)};
cWZ=function(D,t){if(D&&t){var H=_.OI();H().set(D,t);_.wAu(H())}};
_.jAi=function(D,t){if(D&&t){var H=_.OI();H().set(D,t);_.wAu(H())}};
$Sv=function(D){return _.LK(D,function(t){return t.languageCode==="en"})};
iZY=function(D){var t=da;if(_.nCF(D))D.setOption("captions","stickyLoading",{}),D.setOption("captions","track",{});else{var H=_.LK(_.z3K(D),function(e){return e.displayName===t});
D.setOption("captions","track",H)}};
rWi=function(D){if(!D)return 0;var t=D.getPresentingPlayerType(),H=D.getVideoData();return H&&H.isLive?(D=D.getProgressState(t),D.seekableEnd-D.seekableStart):D.getDuration(t)};
OZZ=function(D,t){for(var H=_.F(Object.keys(D)),e=H.next();!e.done;e=H.next())if(e=e.value,D[e]!==t[e])return!1;return!0};
USF=function(){return document.getElementById("player-control-overlay")};
oxF=function(D){D!==-1&&!_.r("player_controls_log_creation_killswitch")&&USF()&&(_.vh("pcu_cs",D),_.vh("pcu_ce"))};
XYF=function(D,t){var H=_.qT(D,{}),e=Pyv("top",t),V=Pyv("bottom",t),b=Pyv("left",t),a=Pyv("right",t);return _.O7({top:function(){return xA(H().position,e)},
bottom:function(){return xA(H().position,V)},
left:function(){return xA(H().position,b)},
right:function(){return xA(H().position,a)},
position:function(){return xA(H().positionType,nxH)},
height:function(){return xA(H().height,Rb)},
width:function(){return xA(H().width,Rb)},
"min-width":function(){return xA(H().minWidth,Rb)},
"min-height":function(){return xA(H().minHeight,Rb)},
"max-width":function(){return xA(H().maxWidth,Rb)},
"max-height":function(){return xA(H().maxHeight,Rb)},
"aspect-ratio":function(){return xA(H().aspectRatio,String)},
"margin-top":function(){return xA(H().margin,e)},
"margin-bottom":function(){return xA(H().margin,V)},
"margin-left":function(){return xA(H().margin,b)},
"margin-right":function(){return xA(H().margin,a)},
"padding-top":function(){return xA(H().padding,e)},
"padding-bottom":function(){return xA(H().padding,V)},
"padding-left":function(){return xA(H().padding,b)},
"padding-right":function(){return xA(H().padding,a)},
"flex-direction":function(){return xA(H().flexDirection,Cyt)},
"justify-content":function(){return xA(H().justifyContent,mSH)},
"align-items":function(){return xA(H().alignItems,Mcv)},
"flex-grow":function(){return xA(H().flexGrow,String)},
"flex-shrink":function(){return xA(H().flexShrink,String)},
"flex-basis":function(){return xA(H().flexBasis,Rb)},
"align-self":function(){return xA(H().alignSelf,Mcv)},
"flex-wrap":function(){return xA(H().flexWrap,Sag)},
"align-content":function(){return xA(H().alignContent,Mcv)}})};
xA=function(D,t){return D!==void 0?t(D):void 0};
Sag=function(D){switch(D){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
nxH=function(D){switch(D){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
Mcv=function(D){switch(D){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"}};
mSH=function(D){switch(D){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"}};
Cyt=function(D){switch(D){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"}};
Pyv=function(D,t){var H=t==="rtl";switch(D){case "top":var e=fUH;break;case "bottom":e=Lhe;break;case "left":e=AWF;break;default:e=gxe}return function(V){return xA(e(V,H),Rb)}};
fUH=function(D){var t=D.top;var H=D.vertical;D=D.all;var e;return(e=t!=null?t:H)!=null?e:D};
Lhe=function(D){var t=D.bottom;var H=D.vertical;D=D.all;var e;return(e=t!=null?t:H)!=null?e:D};
AWF=function(D,t){var H=D.left;var e=D.end;var V=D.start;var b=D.horizontal;D=D.all;var a,w;return(w=(a=H!=null?H:t?e:V)!=null?a:b)!=null?w:D};
gxe=function(D,t){var H=D.right;var e=D.end;var V=D.start;var b=D.horizontal;D=D.all;var a,w;return(w=(a=H!=null?H:t?V:e)!=null?a:b)!=null?w:D};
Rb=function(D){var t=D.value;switch(D.unit){case "YPC_DIMENSION_UNIT_POINT":return t+"px";case "YPC_DIMENSION_UNIT_FRACTION":return t+"%";default:return""+t}};
JWH=function(D){switch(D){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"}};
Yab=function(D){var t=D!=null?D:{};D=t.fontRole;var H=t.fontSize;t=t.fontWeight;if(D!==null&&H!==null)switch(D){case "YPC_FONT_ROLE_DISPLAY":switch(H){case "YPC_FONT_SIZE_L":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(H){case "YPC_FONT_SIZE_L":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return t===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(H){case "YPC_FONT_SIZE_XL":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return t==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
pYt=function(D,t,H){function e(k){return Object.values(k).map(function(T){var c=T.productId;T=T.pricingOptionIndex;return uT(V(c).pricingOptions,T).pricingOptionId})}
function V(k){return h().get(k)}
function b(k){k=e(k);H(k)}
function a(k,T){return Array.from(W2(k.pricingOptions)).filter(function(c){c=_.F(c);c.next();c=c.next().value;return Ib(c.pricingGroupAttributes,T)}).map(function(c){return _.F(c).next().value})}
var w=Q0([D,t],function(k,T){var c=k==null?void 0:k.selectedPricingOptions;k={};var U=!0;if(c&&T.length)for(var S=_.F(T),L=S.next();!L.done;L=S.next()){L=L.value;var J=lU4(L.pricingOptions,function(u){a:{u=u.pricingOptionId;for(var R=_.F(c),I=R.next();!I.done;I=R.next())if(I.value===u){u=!0;break a}u=!1}return u});
if(J>=0){U=!1;var g=uT(L.pricingOptions,J),Q=void 0;k[L.groupId]={productId:L.productId,pricingOptionIndex:J,pricingGroupAttributes:(Q=g)==null?void 0:Q.pricingGroupAttributes}}}U&&T.length&&(U=uT(T[0].pricingOptions,0),k[T[0].groupId]={productId:T[0].productId,pricingOptionIndex:0,pricingGroupAttributes:U==null?void 0:U.pricingGroupAttributes});return k}),h=Q0([t],function(k){return new Map(k.map(function(T){return[T.productId,
T]}))}),K=Q0([t],function(k){var T=new Map;
k=_.F(k);for(var c=k.next();!c.done;c=k.next()){var U=c.value;c=U.groupId;var S=U.productId;U=_.F(W2(U.pricingOptions));for(var L=U.next();!L.done;L=U.next()){var J=_.F(L.value);L=J.next().value;J=J.next().value;T.set(J.pricingOptionId,{groupId:c,productId:S,index:L,pricingOption:J,pricingGroupAttributes:J.pricingGroupAttributes})}}return T}),N=Q0([t],function(k){var T=new Map;
k=_.F(k);for(var c=k.next();!c.done;c=k.next()){var U=c.value;c=U.groupId;var S=U.productId,L=void 0;U=_.F(W2((L=U.pricingGroups)!=null?L:[]));for(L=U.next();!L.done;L=U.next()){var J=_.F(L.value);L=J.next().value;J=J.next().value;T.set(J.pricingGroupId,{groupId:c,productId:S,index:L,pricingGroup:J,pricingGroupAttributes:J.pricingGroupAttributes})}}return T});
return{getProductById:V,isProductSelected:function(k){var T=V(k);if(!T)return!1;var c;return((c=w()[T.groupId])==null?void 0:c.productId)===k},
getSelectedPricingOptions:function(){return Object.values(w()).map(function(k){var T=k.productId;k=k.pricingOptionIndex;return uT(V(T).pricingOptions,k)})},
getSelectedPricingGroupAttributesByGroupId:function(k){var T;return(k=(T=w()[k])==null?void 0:T.pricingGroupAttributes)?Array.from(k):void 0},
getSelectedProductByGroupId:function(k){var T;return(k=(T=w()[k])==null?void 0:T.productId)?V(k):void 0},
onProductSelected:function(k){var T=V(k);if(T){var c=w(),U;if(((U=c[T.groupId])==null?void 0:U.productId)!==k){var S=(U=(S=c[T.groupId])==null?void 0:S.productId)?V(U):void 0;var L;U=(L=c[T.groupId])==null?void 0:L.pricingGroupAttributes;var J;L=(J=c[T.groupId])==null?void 0:J.pricingOptionIndex;if(S&&U&&L!==void 0){J=a(S,U).indexOf(L);if(J===-1)throw Error("Sj`"+L+"`"+S.productId);L=a(T,U);J=J<L.length?L[J]:L.length>0?L[0]:0}else J=0;y0(T.pricingOptions)<=J&&(J=0);L=uT(T.pricingOptions,J);var g;
S={};b(Object.assign({},c,(S[T.groupId]={productId:k,pricingOptionIndex:J,pricingGroupAttributes:(g=L==null?void 0:L.pricingGroupAttributes)!=null?g:[]},S)))}}},
onPricingOptionSelected:function(k){var T=K().get(k);if(T){k=T.groupId;var c=T.productId;T=T.index;var U=w(),S,L;if(((S=U[k])==null?void 0:S.productId)!==c||((L=U[k])==null?void 0:L.pricingOptionIndex)!==T){var J,g;S={};b(Object.assign({},U,(S[k]={productId:c,pricingOptionIndex:T,pricingGroupAttributes:(g=(J=U[k])==null?void 0:J.pricingGroupAttributes)!=null?g:[]},S)))}}},
onPricingGroupSelected:function(k){var T=N().get(k);if(T){k=T.groupId;var c=T.productId,U=T.pricingGroup.pricingGroupAttributes,S=V(c);if(S){T=w();var L=T[k].pricingGroupAttributes,J;if(((J=T[k])==null?void 0:J.productId)!==c||!Ib(vxY(L,y0(U)),U)){J=Array.from(U);for(U=y0(U);U<y0(L);U++){var g="",Q=!1,u=Array.from(J);u.push(uT(L,U));for(var R=_.F(S.pricingGroups),I=R.next();!I.done;I=R.next())if(I=I.value,Ib(I.pricingGroupAttributes,u)){J.push(uT(L,U));Q=!0;break}else g===""&&y0(I.pricingGroupAttributes)===
u.length&&Ib(vxY(I.pricingGroupAttributes,J.length),J)&&(g=uT(I.pricingGroupAttributes,U));Q||J.push(g)}g=T[k].pricingOptionIndex;U=[];Q=new Map;u=0;S=_.F(W2(S.pricingOptions));for(R=S.next();!R.done;R=S.next())I=_.F(R.value),R=I.next().value,I=I.next().value,Ib(I.pricingGroupAttributes,J)&&U.push(R),Ib(I.pricingGroupAttributes,L)&&Q.set(R,u++);U.length===0?L=0:(L=Q.get(g),L=L!==void 0&&L<U.length?U[L]:U[0]);S={};b(Object.assign({},T,(S[k]={productId:c,pricingOptionIndex:L,pricingGroupAttributes:J},
S)))}}}},
onClearGroupSelected:function(k){var T=w();T[k]&&(T=Object.fromEntries(Object.entries(T).filter(function(c){return _.F(c).next().value!==k})),b(T))}}};
W2=function(D){return function H(){var e,V,b,a,w;return _.sG(H,function(h){switch(h.nextAddress){case 1:_.Ok(h,2),e=0,V=_.F(D),b=V.next();case 4:if(b.done){h.jumpTo(2);break}a=b.value;w=_.h8;return h.yield([e++,a],7);case 7:w(h.yieldResult);b=V.next();h.jumpTo(4);break;case 2:_.rN(h),_.ox(h,0)}})}()};
lU4=function(D,t){D=_.F(W2(D));for(var H=D.next();!H.done;H=D.next()){var e=_.F(H.value);H=e.next().value;e=e.next().value;if(t(e))return H}return-1};
y0=function(D){var t=0;for(D=D[Symbol.iterator]();!D.next().done;)++t;return t};
uT=function(D,t){D=_.F(W2(D));for(var H=D.next();!H.done;H=D.next()){var e=_.F(H.value);H=e.next().value;e=e.next().value;if(H===t)return e}};
Ib=function(D,t){if(!D&&!t)return!0;if(!D||!t)return!1;D=Array.from(D);t=Array.from(t);if(D.length!==t.length)return!1;for(var H=0;H<D.length;H++)if(D[H]!==t[H])return!1;return!0};
vxY=function(D,t){t=t===void 0?Infinity:t;var H=[];D=_.F(W2(D));for(var e=D.next();!e.done;e=D.next()){var V=_.F(e.value);e=V.next().value;V=V.next().value;if(e>=t)break;e>=0&&H.push(V)}return H};
Q0=function(D,t){var H,e;return function(){for(var V=D.map(function(a){return a()}),b=0;b<V.length;b++)if(!H||V[b]!==H[b]){H=V;
e=t.apply(null,_.A6(V));break}return e}};
dSe=function(D,t,H){var e=[];D=_.F(D);for(var V=D.next();!V.done;V=D.next()){V=V.value;var b=void 0;((b=t)==null?0:b.length)&&!Ib(V.pricingGroupAttributes,t)||e.push({pricingOption:V,isSelected:H.includes(V.pricingOptionId)})}return e};
xSb=function(D,t){return _.jR(D.entities,"pdpStateEntity",t)};
REF=function(D){var t,H;return!!(D.productId&&D.groupId&&((t=D.pricingOptions)==null?0:t.length)&&D.pricingOptions.every(function(e){return e.pricingOptionId})&&((H=D.pricingGroups)==null||!H.length||Array.isArray(D.pricingGroups)&&D.pricingGroups.every(function(e){return e.pricingGroupId&&e.pricingGroupAttributes&&e.pricingGroupAttributes.length>0})))};
ucv=function(D,t,H){return pYt(D,Q0([t],function(e){return e.filter(REF)}),H)};
Wht=function(D){var t=void 0,H;for(H in D)if(D.hasOwnProperty(H)){t=H;break}return t};
IUF=function(D,t){return t.length===0?[D]:[D.slice(0,t[0]),D.slice(t[0])].filter(function(H){return H.length>0})};
QAb=function(D){switch(D){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""}};
Bi4=function(D,t,H,e){e=Object.assign({},e);_.YP(e,yWg,{selectedOptionId:D,primaryButtonOverride:H});_.V_().dispatch(_.nf("flowStateEntity",t,e))};
zEH=function(D){switch(D){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
DOH=function(D){switch(D){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
tEY=function(D,t){t.includes(D)?t=t.filter(function(H){return H!==D}):t.push(D);
return[].concat(_.A6(t))};
HXQ=function(D,t){return _.jR(D.entities,"contextNoteFeedEntityPayload",t)};
eXt=function(D,t){switch(D){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return t==null?void 0:t.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return t==null?void 0:t.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return t==null?void 0:t.ratingNotHelpfulText}};
VEQ=function(D,t){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:D.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:D.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:D.deleteDialogTitle}]},dialogMessages:[{runs:[{text:D.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:D.deleteActionText}]},command:{performCommentActionEndpoint:{action:t}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:D.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
bXe=function(D,t,H){var e;if(D&&((e=t())==null?0:e.includes(D))){var V;H((V=t())==null?void 0:V.filter(function(b){return b!==D}))}else H([].concat(_.A6(t()||[]),[D]))};
FYv=function(D,t){if(D){var H=[];t=_.F((t==null?void 0:t.checkboxes)||[]);for(var e=t.next();!e.done;e=t.next()){e=_.O(e.value,qqt);var V=void 0;((V=e)==null?0:V.value)&&D.includes(e.key||"")&&H.push(e.value)}return H}};
a4Z=function(D){D.style.height="auto";D.style.height=D.scrollHeight+"px"};
web=function(D){return[D.syncStep,D.asyncStep].filter(function(t){return t!==void 0})};
sPQ=function(D){var t,H,e;if(D=(t=D.structuredContextNoteFormSchema)==null?void 0:(H=t.fieldSchemas)==null?void 0:(e=H.noteBody)==null?void 0:e.validationSchema)for(t=_.F(web(D)),H=t.next();!H.done;H=t.next()){H=H.value.rules;if(!H)break;H=_.F(H);for(H=H.next();!H.done;H=H.next())return _.O(H.value,_.ZXF)}};
GrO=function(D){if(D){D=_.F(web(D));for(var t=D.next();!t.done;t=D.next()){t=t.value.rules;if(!t)break;t=_.F(t);for(t=t.next();!t.done;t=t.next())return _.O(t.value,hXF)}}};
KYY=function(D){if(D){D=_.F(web(D));for(var t=D.next();!t.done;t=D.next()){t=t.value.rules;if(!t)break;t=_.F(t);for(t=t.next();!t.done;t=t.next())return _.O(t.value,EVH)}}};
Nki=function(D){D=/^https?:\/\//.test(D)?D:"http://"+D;try{var t=_.IK(D)}catch(H){return!1}if(t.toString()!==D)return!1;D=t.JSC$10036_domain_.split(".");return D.length>1&&D.every(function(H){return!!H})};
krt=function(D,t,H,e){var V;e=(V=e.structuredContextNoteData)==null?void 0:V.createCommentEndpoint;if(V=_.O(e,_.bpn))return V.commentText=_.H7(D),V.videoPositionMention=t,V.sources=H,e};
TkF=function(D){return D==null?void 0:D.stringValue};
jPv=function(D,t,H){D=D.map(function(e,V){return{listItemViewModel:{title:e.title,subtitle:e.subtitle,leadingImage:e.leadingImage,trailingImage:V===t?cyt:void 0,rendererContext:{commandContext:{onTap:e.onTap}}}}});
return Object.assign({},H&&{header:{panelHeaderViewModel:{title:H}}},{content:{listViewModel:{listItems:D}}})};
$Ot=function(D,t){if(D&&t)switch(t){case "SELECTION_TYPE_BOOL":return D.boolValue;case "SELECTION_TYPE_INT":return D.intValue;case "SELECTION_TYPE_STRING":return D.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return D.privacyStatusValue}};
iXi=function(D){var t;D=(t=D.options)==null?void 0:t.findIndex(function(H){return H.isSelected});
return D===void 0?-1:D};
ryv=function(D,t,H){var e=function(){return D().label},V={},b=_.jQ("ytDropdownViewModelLabel",(V.ytDropdownViewModelLabelError=t,V));
return _.G(_.E,{cond:function(){return D().label&&!(H()===-1&&D().label&&!D().placeholderText)},
then:function(){return _.G("div",{class:b},_.G(_.$7,{text:e}))}})};
OXQ=function(D,t){var H={};H=_.jQ("ytDropdownViewModelTitle",(H.ytDropdownViewModelTitlePlaceholder=function(){return t()===-1},H));
return _.G("div",{class:H},_.G(_.$7,{text:function(){var e=D();var V=t();if(V===-1)e=e.placeholderText?e.placeholderText:e.label;else{var b,a;e=(b=e.options)==null?void 0:(a=b[V])==null?void 0:a.title}return e}}))};
UOF=function(D,t){var H=function(){return D().hint};
return _.G(_.FH,null,_.G(_.E,{cond:function(){return H()&&!t()},
then:function(){return _.G("div",{class:_.jQ("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.G(_.$7,{text:H,className:"ytDropdownViewModelSupportText"}))}}),_.G(_.E,{cond:t,
then:function(){return _.G("div",{id:"dropdown-view-model-error",role:"alert",class:_.jQ("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.G(_.U7,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.G(_.$7,{text:t,className:"ytDropdownViewModelSupportText"}))}}))};
oVQ=function(D,t){var H=_.qS().resolve(_.xwQ);_.XH(function(){var e=D().id;e&&H!=null&&H.dropdownMap.set(e,t)})};
nV4=function(D){D=_.O(D.scheduleButton,PgY);D=_.O(D==null?void 0:D.primaryButton,_.h1);D=_.O(D==null?void 0:D.onTap,_.dj);var t,H,e=((H=_.O(D,_.ch))==null?void 0:H.commands)||[D];H=_.F(e);for(D=H.next();!D.done&&!(t=_.O(D.value,_.bSn));D=H.next());var V;t=(V=t)==null?void 0:V.createBroadcastRequest;if(!t)throw Error("Zj");return t};
Sqg=function(D,t,H){H=H===void 0?{}:H;var e,V;return _.Z(function(b){if(e=Cge(t))return b.return(e);(V=mOe(D,t,H))&&MEF(t,V);return b.return(V)})};
MEF=function(D,t){var H=XeZ(D);H&&t.then(function(e){_.qS().resolve(_.Jk).put(H,new _.Yn({innertubeResponse:e}))})};
Cge=function(D){if(D=XeZ(D)){var t=_.qS().resolve(_.Jk);if(t.has(D))return t.get(D).then(function(H){return H==null?void 0:_.qP(H)})}return null};
XeZ=function(D){var t=_.O(D.endpoint,_.Hh);if(t!=null&&t.videoId)return t={videoId:t.videoId},_.r("web_imp_player_mute_params")&&(t.mutedAtStart=D.startPlaybackInMutedState),_.tE("inline_playback",t)};
mOe=function(D,t,H){D=_.BZ(D,t.endpoint,f4Q(t,H)).then(function(e){return e});
return Promise.resolve(D)};
f4Q=function(D,t){t=_.r("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!D.startPlaybackInMutedState},t):Object.assign({},{vis:5,autonav:"1"},t);var H;t={contentPlaybackContext:_.So(t,(H=_.O(D.endpoint.commandMetadata,_.i1))==null?void 0:H.url,window.location.href)};_.r("web_imp_player_mute_params")&&(t.overrideMutedAtStart=!D.startPlaybackInMutedState);return t};
JyH=function(D,t){var H=window.MutationObserver;H&&(B2=new H(function(e,V){e=_.F(e);for(var b=e.next();!b.done;b=e.next()){b=b.value;var a;if(a=b.type==="childList"&&b.target)a:{a=D;b=LYQ(b.target);a=LYQ(a);for(var w=null,h=0;h<b.length;h++)if(a.includes(b[h])){if(h===0){a=!1;break a}w=b[h];break}w?(b=Ayt(b,w),a=Ayt(a,w),a=b<a):a=!1}if(a){t();V.disconnect();break}}}),(H=gVF())&&B2.observe(H,{childList:!0,
subtree:!0}))};
gVF=function(){var D=document.getElementsByTagName("ytd-rich-grid-renderer");if(D.length>0)return D[0];D=document.getElementsByTagName("ytd-section-list-renderer");return D.length>0?D[0]:null};
LYQ=function(D){for(var t=[];D;)t.push(D),D=D.parentElement;return t};
Ayt=function(D,t){var H=Array.from(t.children);t=D.indexOf(t);return t>0?H.indexOf(D[t-1]):-1};
zJ=function(D,t,H){H=H===void 0?{}:H;return _.OT(D,H,t)};
YqZ=function(D){switch(D){case "MUSIC":return!0;default:return!1}};
vVQ=function(D){if(D=D==null?void 0:D.find(function(e){var V,b;return((V=_.O(e,l4Z))==null?void 0:(b=V.inlinePlaybackBadgeData)==null?void 0:b.replicateAsTimestamp)===!0}))if(D=_.O(D,l4Z),D==null?0:D.icon){var t,H;
if((D=(t=_.ByT(D.icon))==null?void 0:(H=t.clientResource)==null?void 0:H.imageName)&&YqZ(D))return D}};
peb=function(D){return D==null?void 0:D.filter(function(t){return t.premiereTrailerBadgeRenderer})};
dOZ=function(D){var t,H=D==null?void 0:(t=D.find(function(h){return h.thumbnailOverlayTimeStatusRenderer}))==null?void 0:t.thumbnailOverlayTimeStatusRenderer,e,V;
if((H==null?0:(e=H.icon)==null?0:e.iconType)&&YqZ(H==null?void 0:(V=H.icon)==null?void 0:V.iconType)){var b;return{icon:H==null?void 0:(b=H.icon)==null?void 0:b.iconType}}var a;if(t=D==null?void 0:(a=D.find(function(h){return h.thumbnailOverlayBadgeViewModel}))==null?void 0:a.thumbnailOverlayBadgeViewModel)if(a=vVQ(t.thumbnailBadges))return{icon:a};
var w;if(D=D==null?void 0:(w=D.find(function(h){return h.thumbnailBottomOverlayViewModel}))==null?void 0:w.thumbnailBottomOverlayViewModel)if(w=vVQ(D.badges))return{icon:w};
return{}};
QPi=function(D,t){var H=xOF,e=_.F(_.KR(RX4(new uUH(function(){},H,t)),void 0,"PAnyd")),V=e.next().value,b=e.next().value,a=new uUH(function(w){b(w)},H,t);
_.Mp(function(){Promise.resolve().then(function(){var w,h=(w=D())!=null?w:{};a.playerControlsData=h;_.r("player_controls_skip_double_signal_old")&&(a.lastSeenPlayerApi=_.YK(h.playerApi));_.r("player_controls_skip_double_signal_old")||(a.lastSeenPlayerApi=_.YK(h.playerApi));WYF(a)});
_.Sj(function(){I4i(a)})},"HikUP");
_.Sj(function(){I4i(a)});
return function(){return V()}};
yyY=function(D){return function(t){var H=D(),e={playerState:t};if(t===1){var V;(V=H.playerApi)==null||V.loadModule("captions")}if(t===0){var b;(b=H.playerApi)==null||b.unloadModule("captions")}t!==-1&&H.setState(e)}};
BkF=function(D){return function(t){D().setState({playbackRate:t})}};
zXF=function(D){return function(t){var H=D(),e=H.playerApi,V=e==null?void 0:e.getVideoData(),b=(V==null?void 0:V.isLive)||!1;V=V==null?void 0:V.video_id;b={videoDuration:rWi(e||void 0),isLive:b,videoId:V};b.videoId!==H.videoId&&(b=Object.assign({},_.df3(e),b));if(t==null?0:t.playertype)b.playerType=t.playertype;if(e){b.captionsAvailable=_.ra(e);t=b;var a;V=(a=e.getStoryboardLevel(e.getNumberOfStoryboardLevels()-1))==null?void 0:a.intervalMs;t.storyboardInterval=V?V/1E3:void 0;b.captionsAvailable&&
(b.captionsEnabled=_.nCF(e))}b.volumeMuted=!(e==null||!e.isMuted());H.setState(b)}};
DzO=function(D){return function(t){var H=D(),e=H.playerApi;if(e){var V=e.getPresentingPlayerType();t={playedTime:t||0,percentLoaded:e.getVideoLoadedFraction(),playerType:V};H.playerState===0&&(t.playedTime=H.videoDuration);H.isLive&&(V=e.getProgressState(V),t.playedTime-=V.seekableStart,t.videoDuration=rWi(e));if(H.playerType===1)e=!1;else{var b;if((b=H.uxConfig)==null?0:b.showCuedOverlay){var a;e=!((a=H.playerApi)==null?0:a.getPlayerStateObject(H.playerType).isDomPaused)}else e=!0}e&&delete t.playedTime;
H.setState(t)}}};
t4g=function(D){return function(){var t=D(),H,e,V,b={volume:(V=(H=t.playerApi)==null?void 0:H.getVolume())!=null?V:0,volumeMuted:!((e=t.playerApi)==null||!e.isMuted())};t.setState(b)}};
H7Z=function(D){return function(){var t=D(),H=t.playerApi;if(H){var e={captionsAvailable:_.ra(H)};e.captionsAvailable&&(e.captionsEnabled=_.nCF(H));t.setState(e)}}};
eHF=function(D){return function(){var t=D();if(t.playerApi&&!(t.volumeMuted||t.controlsVisible&&t.isProbablyAScreenreaderUser)){t.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var H;(H=document.querySelector(".player-control-play-pause-icon"))==null||H.focus()}}};
V4H=function(D){return{appApi:Object.assign({},_.AY8(),{showCaptionsToggleToast:function(t){var H,e;(e=(H=D()).showCaptionsToggleToast)==null||e.call(H,t)},
openInMiniplayer:function(){var t,H;(H=(t=D()).openInMiniplayer)==null||H.call(t)}})}};
b7H=function(D,t){var H,e,V;return!!(D==null?0:(H=D.playerResponse)==null?0:(e=H.playerConfig)==null?0:(V=e.inlinePlaybackConfig)==null?0:V.showScrubbingControls)&&!(t==null?0:t.hideScrubbingControls)};
_.qpv=function(D){var t=!D.miniplayerIsActive;return[5,2,0].includes(D.miniplayerPlaybackState)||t};
FEt={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};axZ=function(D,t){var H,e,V,b,a;_.Z(function(w){if(!t.length)return w.return([]);H=[];e=_.F(t);for(V=e.next();!V.done;V=e.next())b=V.value,(a=D.resolveIcon(b))&&!D.iconCache[a.url]&&H.push(_.jxi(D,a).then(function(){}).catch(function(){}));
return w.return(Promise.all(H))})};
w$H=function(D,t){var H=[];t=(new Set(t)).values();t=_.F(t);for(var e=t.next();!e.done;e=t.next()){e=e.value;for(var V=_.F(Object.values(FEt)),b=V.next();!b.done;b=V.next())H.push({iconName:e,iconStyle:b.value})}axZ(D.iconManager,H)};
_.Z7b=function(D,t,H){var e=H!=null?H:D.iconsToFetch;e!=null&&e.length?t!==void 0&&t>=0?_.C7(_.Jy,function(){w$H(D,e)},t):w$H(D,e):Promise.resolve()};
sRb={sharedUi:_.TAf,a11y:_.NAv,entities:{}};hHi=function(){return _.hV({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
uUH=function(D,t,H){var e=this;this.renderFn=D;this.listeners=t;this.context=H;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var V;this.lastSeenPlayerApi=_.YK((V=this.playerControlsData)==null?void 0:V.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.df3(),void 0);_.r("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){RX4(e).setState({playerState:-1});e.resetRecentlyNavigatedJobId&&_.Jy.cancelJob(e.resetRecentlyNavigatedJobId);
e.recentlyNavigated=!0;e.resetRecentlyNavigatedJobId=_.Jy.addJob(function(){e.recentlyNavigated=!1},8,1E4)})};
uUH.prototype.setState=function(D){if(!_.r("mweb_player_skip_no_op_state_changes")||!OZZ(D,this.state))if(this.state=Object.assign({},this.state,D),!_.r("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)D=-1,_.r("player_controls_log_creation_killswitch")||USF()||(D=(0,_.aP)()),_.vh("pcu_s"),_.vh("pcu_se"),_.vh("pcu_rs"),this.renderFn(RX4(this)),_.vh("pcu_re"),oxF(D),_.Jy.addJob(function(){_.vh("pcu_ap")},8)};
var RX4=function(D){var t;var H=_.YK((t=D.playerControlsData)==null?void 0:t.playerApi);return Object.assign({},D.state,{setState:D.boundSetState,domMeasurements:{progressBarLineRect:D.progressBarLineRect},playerApi:H,appApi:D.context.appApi,playerContainer:D.context.playerContainer,playerControlContainer:D.context.playerControlContainer,uxConfig:D.context.uxConfig})},WYF=function(D){D.listeners.forEach(function(t){D.eventListenerCleanupFunctions.push(t.register(function(){return RX4(D)},function(){return D.getData()}))})},
I4i=function(D){D.eventListenerCleanupFunctions.forEach(function(t){t()});
D.eventListenerCleanupFunctions.length=0};
uUH.prototype.getData=function(){return this.playerControlsData};
var G0Z=new _.NM("crowdsourcedContextUserRatingFormFlowState");var EwH=new _.NM("noteViewModel");var DK=new _.NM("abuseReportFlowState");var KEF=new _.NM("feedbackFormFlowState");var NTe=new _.NM("inputBoxViewModel");var k0Z=new _.NM("flowNextStepCommand");var TT4=new _.NM("flowPrevStepCommand");var cpe=new _.NM("updateFlowCommand");_.jRt=new _.NM("flowStepRenderer");_.ZXF=new _.NM("lengthValidationRule");var hXF=new _.NM("regexValidationRule");var EVH=new _.NM("selectedValidationRule");var $zQ=new _.NM("talkToRecsViewModel");var i7v=new _.NM("creatorGoalSetUpFlowDropdownItemViewModel");var rpe=new _.NM("creatorGoalSetUpFlowDropdownViewModel");var l4Z=new _.NM("thumbnailBadgeViewModel");var O7O=new _.NM("checkboxGroupViewModel");var qqt=new _.NM("checkboxItemViewModel");_.to=new _.NM("radioButtonGroupViewModel");var UzY=new _.NM("radioButtonItemViewModel");var PgY=new _.NM("panelFooterViewModel");var owZ=new _.NM("ypcCancelRecurrenceCommand");var Pmb=new _.NM("cancellationFlowState");var yWg=new _.NM("premiumPurchaseFlowState");var nw4=new _.NM("surveyAnswerCardRenderer");var CmH=new _.NM("showMoreButtonRenderer");var mzH;var M4i,SpZ=function(){if(M4i!==void 0)return M4i;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;mzH===void 0&&(mzH=document.createElement("template"));var e=mzH;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return M4i=D};var HA=function(){var D=_.X.apply(this,arguments)||this;D.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";D.goalDescription="";D.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";D.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";D.startButtonId="start-button";D.exampleButtonId="example-button";return D};
_.P(HA,_.X);_.q=HA.prototype;_.q.getGoalDropdownItems=function(){var D,t;return(t=_.O((D=this.data)==null?void 0:D.purchaseTargetDropdown,rpe))==null?void 0:t.dropdownItems};
_.q.getTimerDropdownItems=function(){var D,t;return(t=_.O((D=this.data)==null?void 0:D.timerDropdown,rpe))==null?void 0:t.dropdownItems};
_.q.getColorDropdownItems=function(){var D,t;return(t=_.O((D=this.data)==null?void 0:D.colorDropdown,rpe))==null?void 0:t.dropdownItems};
_.q.getDropdownItemText=function(D){var t;return(t=_.O(D,i7v))==null?void 0:t.itemLabel};
_.q.getDropdownItemValue=function(D){D=_.O(D,i7v);return(D==null?void 0:D.timeLimit)||(D==null?void 0:D.purchaseTarget)||(D==null?void 0:D.eligiblePurchaseType)};
_.q.updateFlowState=function(D){_.ET(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:D}])};
_.q.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.q.updateGoalValue=function(D){this.goal=D.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.q.onTextValueChanged=function(D){this.goalDescription=D.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.q.updateTimerValue=function(D){this.timer=D.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.q.updateTierValue=function(D){this.tier=D.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.q.getButtonViewModel=function(D){D=(D==null?void 0:D.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var t,H=_.O((t=this.data)==null?void 0:t.startGoalButton,_.h1);return Object.assign({},H,{state:D})};
_.ql.Object.defineProperties(HA,{template:{configurable:!0,enumerable:!0,get:function(){return SpZ()}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],HA.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],HA.prototype,"goal",void 0);_.d([_.M(),_.x("design:type",Object)],HA.prototype,"goalDescription",void 0);_.d([_.M(),_.x("design:type",Object)],HA.prototype,"timer",void 0);_.d([_.M(),_.x("design:type",Object)],HA.prototype,"tier",void 0);
_.d([_.M(),_.x("design:type",Object)],HA.prototype,"startButtonId",void 0);_.d([_.M(),_.x("design:type",Object)],HA.prototype,"exampleButtonId",void 0);_.d([_.xL({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],HA);_.p(HA,"yt-creator-goal-set-up-flow-view-model",function(){return SpZ()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var X$Q;X$Q=Object.assign({},{continuation:_.cDm,download:_.Er3,canvas:_.tXV,reportChannelAbuse:_.U59,ui:_.evK,share:_.oro,talkToRecs:_.nrB,watch:_.qC,ypc:_.frB,radioButtonGroup:_.zIu,collabInviteLink:_.yXR},sRb,{voiceSearch:_.qd$,shorts:_.bS});_.e1=_.JB(X$Q);_.fxF=_.YX(_.e1);var LE4;var ApZ;var gwb;var Jpb=function(){return _.X.apply(this,arguments)||this};
_.P(Jpb,_.X);_.d([_.M(),_.x("design:type",Object)],Jpb.prototype,"data",void 0);_.d([_.xL({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],Jpb);
_.p(Jpb,"yt-survey-answer-card-renderer",function(){if(gwb===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;ApZ===void 0&&(ApZ=document.createElement("template"));var e=ApZ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);gwb=D}D=gwb;return D},{mode:2});var YpF;var lxZ;var Vj=function(){return _.X.apply(this,arguments)||this};
_.P(Vj,_.X);_.q=Vj.prototype;_.q.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.q.selectedItemChanged=function(D){_.ET(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[D.feedbackToken||""]}])};
_.q.surveyAnswerCardRendererClicked=function(D){if(D.target&&_.O(D.model.item,nw4)){var t=D.target;D=_.O(D.model.item,nw4);D.onTapCommand?_.k0(t,[D.onTapCommand],t):this.data.onTapCommand&&_.k0(t,[this.data.onTapCommand],t);this.selectedItemChanged(D)}};
_.q.checkIsCancellationStyle=function(D){return D==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.q.updateSelectedItemFromBinding=function(D){this.selectedItem=D.detail.value};
Vj.prototype.onSelectedItemChanged=Vj.prototype.onSelectedItemChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Vj.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Vj.prototype,"selectedItem",void 0);_.d([_.M({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Vj.prototype,"isCancellationStyle",void 0);
_.d([_.Os("selectedItem"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Vj.prototype,"onSelectedItemChanged",null);_.d([_.xL({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],Vj);
_.p(Vj,"yt-survey-flow-step-renderer",function(){if(lxZ===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;YpF===void 0&&(YpF=document.createElement("template"));var e=YpF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);lxZ=D}D=lxZ;return D},{mode:2});var bJ=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return D};
_.P(bJ,_.X);bJ.prototype.handleSurveyFlowStepOptionChanged=function(D){this.ytdReduxBehavior.dispatch(_.hV({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:D}));_.ET(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:D}}])};
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],bJ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],bJ.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],bJ.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],bJ);
_.p(bJ,"ytd-survey-flow-step-renderer",function(){if(LE4!==void 0)return LE4;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return LE4=D},{mode:1});_.xz4=_.l(function(D){var t=D.data;var H=D.hideDivider;var e=D.isChannelInfoCard;D={};return _.G("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.G("div",{class:_.jQ("yt-profile-identity-info-view-model__frame",(D["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!t().channelBanner},D))},_.G(vwg,{profileIdentityInfoData:t}),_.G("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.G("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.G(_.P5,{data:function(){return t().avatar}},{avatarViewModel:_.qi})),_.G(p$b,{profileIdentityInfoData:t})),_.G(_.E,{cond:function(){return t().channelDescription},
then:function(V){var b={};return _.G("div",{class:_.jQ((b["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(e==null||!e())},b["yt-profile-identity-info-view-model__channel-description"]=function(){return!(e==null?0:e())},b))},V)}}),_.G(dzF,{profileIdentityInfoData:t}),_.G(_.E,{cond:function(){return!(H==null?0:H())},
then:function(){return _.G("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"Ng");
_.xz4.idomCompat=!0;var dzF=_.l(function(D){var t=D.profileIdentityInfoData;return _.G("div",{class:"yt-profile-identity-info-view-model__buttons"},_.G(_.nY,{each:function(){return t().subscribeButton?[t().subscribeButton,t().channelAccess]:[t().channelAccess]}},function(H){return _.G("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.G("div",{class:"yt-profile-identity-info-view-model--button"},_.G(_.P5,{data:function(){return H}},{buttonViewModel:_.JX,
subscribeButtonViewModel:_.qY})))}))},"Og"),p$b=_.l(function(D){var t=D.profileIdentityInfoData;
return _.G("div",{class:"yt-profile-identity-info-view-model__trio"},_.G("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.G(RHF,{profileIdentityInfoData:t}),_.G(_.P5,{data:function(){return t().threeDotMenu}},{buttonViewModel:_.JX})),_.G(u0e,{profileIdentityInfoData:t}))},"Pg"),RHF=_.l(function(D){var t=D.profileIdentityInfoData;
return _.G("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.G("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return t().channelDisplayName}),_.G(_.E,{cond:function(){return t().verifiedOrOacBadge},
then:function(H){return _.G("div",{class:"yt-profile-identity-info-view-model__badge"},_.G(_.bi,{data:function(){return{thumbnails:[{url:H().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Qg"),vwg=_.l(function(D){var t=D.profileIdentityInfoData;
return _.G("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.G(_.P5,{data:function(){var H=t().channelBanner;if(H)return{imageBannerViewModel:{image:H.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(H){return _.G("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.G(_.G$,{data:H.data,
isPositionRelative:!0}))}}))},"Rg"),u0e=_.l(function(D){var t=D.profileIdentityInfoData;
return _.G("div",{class:"yt-profile-identity-info-view-model__metadata"},_.G("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.G("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return t().channelHandle}),_.G(_.E,{cond:function(){return t().channelPronouns&&t().channelHandle},
then:function(){return _.G("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.G("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return t().channelPronouns})),_.G("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.G("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return t().leftOfBulletInfo}),_.G(_.E,{cond:function(){return t().leftOfBulletInfo&&t().rightOfBulletInfo},
then:function(){return _.G("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.G("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return t().rightOfBulletInfo})))},"Sg");var WEH;var qt=function(){return _.X.apply(this,arguments)||this};
_.P(qt,_.X);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],qt.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],qt.prototype,"data",void 0);_.d([_.Y({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],qt);
_.p(qt,"ytd-channel-history-renderer",function(){if(WEH!==void 0)return WEH;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return WEH=D},{mode:1});var IxQ;var QRg=function(){return _.X.apply(this,arguments)||this};
_.P(QRg,_.X);_.d([_.M(),_.x("design:type",Object)],QRg.prototype,"data",void 0);_.d([_.Y({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],QRg);
_.p(QRg,"ytd-feature-enablement-info-renderer",function(){if(IxQ!==void 0)return IxQ;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return IxQ=D},{mode:1});var ypH;var BTe;var FZ=function(){var D=_.X.apply(this,arguments)||this;D.textBoxMaxLength=_.r("enable_tvod_campaign_code_integration")?15:12;return D};
_.P(FZ,_.X);_.q=FZ.prototype;_.q.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.q.onSubmit=function(){var D=this.data.serviceEndpoint,t=_.O(D,_.DT);t&&D&&(t.couponCode=this.userInput,_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}}))};
_.q.validate=function(){var D=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=D&&!this.data.errorMessage;this.showErrorMessage=D&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.r("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.q.computeStyle=function(D){return D};
_.q.computeShowValidationBelowInput=function(D){return D!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.q.updateUserInputFromBinding=function(D){this.userInput=D.currentTarget.value};
_.q.updateShowErrorMessageFromBinding=function(D){this.showErrorMessage=D.detail.value};
_.ql.Object.defineProperties(FZ.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
FZ.prototype.dataChanged=FZ.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],FZ.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],FZ.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],FZ.prototype,"userInput",void 0);_.d([_.M(),_.x("design:type",Boolean)],FZ.prototype,"disableApplyButton",void 0);_.d([_.M(),_.x("design:type",Boolean)],FZ.prototype,"hideApplyButton",void 0);
_.d([_.M(),_.x("design:type",Boolean)],FZ.prototype,"hideErrorMessage",void 0);_.d([_.M(),_.x("design:type",Boolean)],FZ.prototype,"showTick",void 0);_.d([_.M(),_.x("design:type",Boolean)],FZ.prototype,"showErrorMessage",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],FZ.prototype,"couponStyle",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.x("design:type",Boolean)],FZ.prototype,"showValidationBelowInput",void 0);_.d([_.M(),_.x("design:type",Object)],FZ.prototype,"textBoxMaxLength",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FZ.prototype,"dataChanged",null);
_.d([_.m("showTick","showErrorMessage","userInput"),_.x("design:type",String),_.x("design:paramtypes",[])],FZ.prototype,"validationState",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],FZ);
_.p(FZ,"ytd-ypc-coupon-renderer",function(){if(BTe!==void 0)return BTe;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return BTe=D},{mode:1});var aV=function(){return _.X.apply(this,arguments)||this};
_.P(aV,_.X);aV.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"}}}};
aV.prototype.computeStyle=function(D){return D};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],aV.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],aV.prototype,"buttonStyle",void 0);_.d([_.Y({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],aV);
_.p(aV,"ytd-flow-bottom-bar-renderer",function(){if(ypH!==void 0)return ypH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return ypH=D},{mode:1});var zHF;var D1e;var tpH;var w5=function(){return _.X.apply(this,arguments)||this};
_.P(w5,_.X);w5.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
w5.prototype.focus=function(D){this.title&&_.Dx(this.title,D)};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],w5.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],w5.prototype,"data",void 0);_.d([_.o5("#title"),_.x("design:type",HTMLElement)],w5.prototype,"title",void 0);_.d([_.Y({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],w5);
_.p(w5,"ytd-flow-top-bar-renderer",function(){if(tpH!==void 0)return tpH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return tpH=D},{mode:1});var Hn4;var eKg;var Vpv;var ZK=function(){return _.X.apply(this,arguments)||this};
_.P(ZK,_.X);ZK.prototype.freeTextValueChanged=function(){_.ET(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
ZK.prototype.updateFreeTextValueFromBinding=function(D){this.freeTextValue=D.detail.value};
_.ql.Object.defineProperties(ZK.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var D,t,H=(t=(D=this.data)==null?void 0:D.responseMaxLength)!=null?t:500,e;return((e=this.freeTextValue)!=null?e:"").length>=H?"maxed-out":""}}});
ZK.prototype.freeTextValueChanged=ZK.prototype.freeTextValueChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ZK.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ZK.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],ZK.prototype,"freeTextValue",void 0);_.d([_.o5("#user-input"),_.x("design:type",HTMLTextAreaElement)],ZK.prototype,"input",void 0);
_.d([_.m("freeTextValue"),_.x("design:type",Object),_.x("design:paramtypes",[])],ZK.prototype,"characterLimitClass",null);_.d([_.Os("freeTextValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZK.prototype,"freeTextValueChanged",null);_.d([_.xL({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],ZK);
_.p(ZK,"yt-free-text-input-flow-step-renderer",function(){if(Vpv===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;eKg===void 0&&(eKg=document.createElement("template"));var e=eKg;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Vpv=D}D=Vpv;return D},{mode:2});var sC=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return D};
_.P(sC,_.X);sC.prototype.handleFreeTextFlowStepInputChanged=function(D){_.ET(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:D}}])};
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],sC.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],sC.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],sC.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],sC);
_.p(sC,"ytd-free-text-input-flow-step-renderer",function(){if(Hn4!==void 0)return Hn4;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Hn4=D},{mode:1});var bnQ;var qhi;var FFH=function(){return _.X.apply(this,arguments)||this};
_.P(FFH,_.X);_.d([_.M(),_.x("design:type",Object)],FFH.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],FFH);
_.p(FFH,"ytd-metadata-line-renderer",function(){if(qhi!==void 0)return qhi;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return qhi=D},{mode:1});var ho=function(){return _.X.apply(this,arguments)||this};
_.P(ho,_.X);ho.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ho.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],ho.prototype,"isMasthead",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],ho);
_.p(ho,"ytd-media-product-renderer",function(){if(bnQ!==void 0)return bnQ;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return bnQ=D},{mode:1});var aYY;var Gh=function(){return _.X.apply(this,arguments)||this};
_.P(Gh,_.X);Gh.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Gh.prototype.onBillboardImageLoaded=function(){_.Gf(this.hostElement,"yt-refit")};
Gh.prototype.onBillboardImageLoaded=Gh.prototype.onBillboardImageLoaded;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Gh.prototype,"data",void 0);_.d([_.o5("#billboardImage"),_.x("design:type",Object)],Gh.prototype,"billboardImage",void 0);_.d([_.rx("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gh.prototype,"onBillboardImageLoaded",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Gh);
_.p(Gh,"ytd-billboard-masthead-renderer",function(){if(aYY!==void 0)return aYY;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return aYY=D},{mode:1});var wFt;var EC=function(){var D=_.X.apply(this,arguments)||this;D.smallSize=!1;return D};
_.P(EC,_.X);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],EC.prototype,"ytComponentBehaviorType",void 0);_.d([_.M(),_.x("design:type",Object)],EC.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],EC.prototype,"smallSize",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],EC);
_.p(EC,"ytd-bullet-formatted-string",function(){if(wFt!==void 0)return wFt;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return wFt=D},{mode:1});var ZnH;var KV=function(){return _.X.apply(this,arguments)||this};
_.P(KV,_.X);KV.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],KV.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],KV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],KV.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],KV);
_.p(KV,"ytd-offer-detail-renderer",function(){if(ZnH!==void 0)return ZnH;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ZnH=D},{mode:1});var sCF;var Nt=function(){return _.X.apply(this,arguments)||this};
_.P(Nt,_.X);Nt.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"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Nt.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],Nt);
_.p(Nt,"ytd-offer-detail-step-renderer",function(){if(sCF!==void 0)return sCF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return sCF=D},{mode:1});var hK4;var k8=function(){var D=_.X.apply(this,arguments)||this;D.isInOfferModule=!1;return D};
_.P(k8,_.X);_.q=k8.prototype;_.q.computeHasEndpoint=function(){var D;return!((D=this.data)==null||!D.onClickCommand)};
_.q.dataChanged=function(){var D;if((D=this.data)==null?0:D.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")};
_.q.detached=function(){var D;if((D=this.data)==null?0:D.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.q.handleClickEvent=function(){var D;if((D=this.data)==null?0:D.onClickCommand){var t;this.componentBehavior.resolveCommand((t=this.data)==null?void 0:t.onClickCommand)}};
_.q.onContentKeyDown=function(D){D.key==="Enter"?this.handleClickEvent(D):D.key===" "&&D.preventDefault()};
_.q.onContentKeyUp=function(D){D.key===" "&&this.handleClickEvent(D)};
k8.prototype.dataChanged=k8.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],k8.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],k8.prototype,"data",void 0);_.d([_.M({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],k8.prototype,"hasEndpoint",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],k8.prototype,"isInOfferModule",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k8.prototype,"dataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],k8);
_.p(k8,"ytd-channel-masthead-renderer",function(){if(hK4!==void 0)return hK4;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return hK4=D},{mode:1});var Gcv;var Th=function(){var D=_.X.apply(this,arguments)||this;D.thumbnailObjectFit="CONTAIN";D.thumbnailObjectPosition="LEFT";D.isExpanded=!1;return D};
_.P(Th,_.X);_.q=Th.prototype;_.q.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.q.dataChanged=function(){this.resetStates()};
_.q.computeisTapOnOfferInfoContainerEnabled=function(){var D;return((D=this.data)==null?void 0:D.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.q.onExpandBtnClick=function(){var D,t=_.O((D=this.data)==null?void 0:D.showMoreButtonRenderer,CmH);t&&_.YS(_.Pc(),t.trackingParams);this.isExpanded=!this.isExpanded};
_.q.onOfferInfoClick=function(D){this.isTapOnOfferInfoContainerEnabled&&(_.ed(_.bK(D)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.V2(_.bK(D)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.q.onBottomBarClick=function(){this.executeTapCommand()};
_.q.executeTapCommand=function(){var D,t=(D=this.data)==null?void 0:D.tapCommand;t&&this.ytComponentBehavior.resolveCommand(t)};
_.q.resetStates=function(){this.isExpanded=!1};
_.ql.Object.defineProperties(Th.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var D=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),t,H,e;return((t=this.data)==null?void 0:t.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&D&&!!((H=this.data)==null?0:(e=H.benefits)==null?0:e.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return((t=_.O((D=this.data)==null?void 0:D.showMoreButtonRenderer,CmH))==null?void 0:t.showMoreButtonTitle)||((H=this.data)==null?void 0:H.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return((t=_.O((D=this.data)==null?void 0:D.showMoreButtonRenderer,CmH))==null?void 0:t.showLessButtonTitle)||((H=this.data)==null?void 0:H.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var D;return(D=this.showLessButtonTitle)!=null?D:""}var t;return(t=this.showMoreButtonTitle)!=null?t:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return((D=this.data)==null?void 0:D.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((t=this.data)==null?0:t.footerTitle)||((H=this.data)==null?0:H.footerSubtitle))}}});
Th.prototype.dataChanged=Th.prototype.dataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Th.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",String)],Th.prototype,"thumbnailObjectFit",void 0);
_.d([_.M(),_.x("design:type",String)],Th.prototype,"thumbnailObjectPosition",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.x("design:type",Boolean)],Th.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.d([_.M(),_.x("design:type",Object)],Th.prototype,"isExpanded",void 0);_.d([_.M(),_.x("design:type",Object)],Th.prototype,"data",void 0);_.d([_.M({computed:"computeIcon_(data.footerIcon)"}),_.x("design:type",String)],Th.prototype,"icon",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Th.prototype,"dataChanged",null);_.d([_.m("data.thumbnail"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Th.prototype,"hasThumbnail",null);_.d([_.m("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Th.prototype,"enableExpandButton",null);
_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Th.prototype,"enableOfferContentIcon",null);_.d([_.m("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.x("design:type",Object),_.x("design:paramtypes",[])],Th.prototype,"showMoreButtonTitle",null);_.d([_.m("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.x("design:type",Object),_.x("design:paramtypes",[])],Th.prototype,"showLessButtonTitle",null);
_.d([_.m("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.x("design:type",String),_.x("design:paramtypes",[])],Th.prototype,"expandedBtnText",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Th.prototype,"enableBottomBar",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],Th);
_.p(Th,"ytd-offer-card-renderer",function(){if(Gcv!==void 0)return Gcv;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Gcv=D},{mode:1});var EoH;var cA=function(){return _.X.apply(this,arguments)||this};
_.P(cA,_.X);cA.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"}}}};
cA.prototype.onClick=function(D){if(!_.ed(D.composedPath()||[],this.hostElement,["A".toString()])){var t,H;if((D=(H=_.O((t=this.data)==null?void 0:t.actionButton,_.aj))==null?void 0:H.command)&&!this.ytComponentBehavior.resolveCommand(D)){var e;(e=_.Pc())==null||e.clickCommand(D);_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}})}}};
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],cA.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],cA.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],cA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],cA.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],cA);
_.p(cA,"ytd-offer-content-renderer",function(){if(EoH!==void 0)return EoH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return EoH=D},{mode:1});var KF4;var j1=function(){return _.X.apply(this,arguments)||this};
_.P(j1,_.X);j1.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.ql.Object.defineProperties(j1.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var D,t;return!((D=this.data)==null||!D.title)||!((t=this.data)==null||!t.description)}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],j1.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],j1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],j1.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],j1.prototype,"hasHeaderData",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],j1);
_.p(j1,"ytd-offer-section-renderer",function(){if(KF4!==void 0)return KF4;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return KF4=D},{mode:1});var NvO;var $8=function(){return _.X.apply(this,arguments)||this};
_.P($8,_.X);
$8.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"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],$8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$8.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],$8);
_.p($8,"ytd-offer-selection-step-renderer",function(){if(NvO!==void 0)return NvO;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return NvO=D},{mode:1});var kcF;var iJ=function(){return _.X.apply(this,arguments)||this};
_.P(iJ,_.X);iJ.prototype.computeStyle=function(D){return D};
iJ.prototype.computeImageWidth=function(D){return D==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.d([_.M({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.x("design:type",String)],iJ.prototype,"containerStyle",void 0);_.d([_.M({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.x("design:type",String)],iJ.prototype,"imageWidth",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],iJ.prototype,"data",void 0);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],iJ);
_.p(iJ,"ytd-confirmation-masthead-renderer",function(){if(kcF!==void 0)return kcF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return kcF=D},{mode:1});var TvY;var r5=function(){return _.X.apply(this,arguments)||this};
_.P(r5,_.X);r5.prototype.computeStyle=function(D){return D};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],r5.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],r5.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.x("design:type",String)],r5.prototype,"containerStyle",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],r5);
_.p(r5,"ytd-purchase-complete-detail-renderer",function(){if(TvY!==void 0)return TvY;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return TvY=D},{mode:1});var cnQ;var OC=function(){var D=_.X.apply(this,arguments)||this;D.scriptsAppended=!1;return D};
_.P(OC,_.X);OC.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"}}}};
OC.prototype.onDataChanged=function(){var D=this.get("data.gtmId");D&&(_.HP(D,_.YC("GL","")),this.setupConversionTracking())};
OC.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var D=document.createElement("noscript");D.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(D);this.scriptsAppended=!0}};
OC.prototype.onDataChanged=OC.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],OC.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],OC.prototype,"scriptsAppended",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],OC.prototype,"onDataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],OC);
_.p(OC,"ytd-purchase-complete-step-renderer",function(){if(cnQ!==void 0)return cnQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return cnQ=D},{mode:1});var jCF;var UC=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(UC,_.X);UC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],UC.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],UC.prototype,"darkerDarkTheme",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],UC);
_.p(UC,"ytd-ypc-transaction-error-message-renderer",function(){if(jCF!==void 0)return jCF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return jCF=D},{mode:1});var $1v;var inF;var oV=function(){var D=_.X.apply(this,arguments)||this;D.handlePhoneVerificationSuccess=function(t){if(D.isValidPhoneVerificationCompletionMessageEvent(t)){var H;((H=D.data)==null?0:H.nextStepCommand)&&D.ytComponentBehavior.resolveCommand(D.data.nextStepCommand)}};
return D};
_.P(oV,_.X);oV.prototype.isValidPhoneVerificationCompletionMessageEvent=function(D){if(D.data!=="yt-phone-verification-complete")return!1;D=_.tW(D.origin);return D!==null&&D.includes("youtube.com")};
oV.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
oV.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],oV.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],oV.prototype,"data",void 0);_.d([_.xL({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],oV);
_.p(oV,"yt-feature-enablement-soft-entry-renderer",function(){if(inF===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;$1v===void 0&&($1v=document.createElement("template"));var e=$1v;H.call(t,e.content.cloneNode(!0),D.content.firstChild);inF=D}D=inF;return D},{mode:1});var rnF;var One;var U1H;var ooY;var Pvg=function(){return _.X.apply(this,arguments)||this};
_.P(Pvg,_.X);_.d([_.M(),_.x("design:type",Object)],Pvg.prototype,"data",void 0);_.d([_.xL({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],Pvg);
_.p(Pvg,"yt-benefits-item-renderer",function(){if(ooY===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;U1H===void 0&&(U1H=document.createElement("template"));var e=U1H;H.call(t,e.content.cloneNode(!0),D.content.firstChild);ooY=D}D=ooY;return D},{mode:2});var no4;var CvY;var PA=function(){return _.X.apply(this,arguments)||this};
_.P(PA,_.X);PA.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
PA.prototype.computeisWithoutPadding=function(){var D;return((D=this.data)==null?void 0:D.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],PA.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.x("design:type",Boolean)],PA.prototype,"isWithoutPadding",void 0);_.d([_.xL({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],PA);
_.p(PA,"yt-benefits-section-renderer",function(){if(CvY===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;no4===void 0&&(no4=document.createElement("template"));var e=no4;H.call(t,e.content.cloneNode(!0),D.content.firstChild);CvY=D}D=CvY;return D},{mode:2});var nV=function(){return _.X.apply(this,arguments)||this};
_.P(nV,_.X);nV.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
nV.prototype.computeisUsingLargeWidth=function(){var D;return((D=this.data)==null?void 0:D.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],nV.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.x("design:type",Boolean)],nV.prototype,"isUsingLargeWidth",void 0);_.d([_.xL({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],nV);
_.p(nV,"yt-benefits-flow-step-renderer",function(){if(One===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;rnF===void 0&&(rnF=document.createElement("template"));var e=rnF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);One=D}D=One;return D},{mode:2});var m1b;var Mpv;var CV=function(){return _.X.apply(this,arguments)||this};
_.P(CV,_.X);CV.prototype.checkIsUsingLargeWidth=function(){var D;return((D=this.data)==null?void 0:D.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.d([_.M(),_.x("design:type",Object)],CV.prototype,"data",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.d([_.M({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.x("design:type",Boolean)],CV.prototype,"isUsingLargeWidth",void 0);_.d([_.xL({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],CV);
_.p(CV,"yt-confirmation-flow-step-renderer",function(){if(Mpv===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;m1b===void 0&&(m1b=document.createElement("template"));var e=m1b;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Mpv=D}D=Mpv;return D},{mode:2});var Shb;var XFe;var fYF=function(){return _.X.apply(this,arguments)||this};
_.P(fYF,_.X);_.d([_.M(),_.x("design:type",Object)],fYF.prototype,"data",void 0);_.d([_.xL({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],fYF);
_.p(fYF,"yt-info-flow-step-renderer",function(){if(XFe===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Shb===void 0&&(Shb=document.createElement("template"));var e=Shb;H.call(t,e.content.cloneNode(!0),D.content.firstChild);XFe=D}D=XFe;return D},{mode:2});var LFH;var AnZ;var goF=function(){return _.X.apply(this,arguments)||this};
_.P(goF,_.X);_.d([_.M(),_.x("design:type",Object)],goF.prototype,"data",void 0);_.d([_.xL({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],goF);
_.p(goF,"yt-info-list-flow-step-renderer",function(){if(AnZ===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;LFH===void 0&&(LFH=document.createElement("template"));var e=LFH;H.call(t,e.content.cloneNode(!0),D.content.firstChild);AnZ=D}D=AnZ;return D},{mode:2});var Jni=_.l(function(D){var t=D.data;return _.G("styled-text-view-model",{class:_.jQ("ytStyledTextViewModelHost",function(){return Yab(t().fontAttributes)},function(){return JWH(t().color)})},_.G(_.$7,{text:function(){return t().text},
ariaLabel:function(){var H,e,V;return(V=(H=t().accessibility)==null?void 0:(e=H.accessibilityData)==null?void 0:e.label)!=null?V:""}}))},"Tg");
Jni.idomCompat=!0;var YhH=_.l(function(D){var t=function(){var V,b,a,w;return(w=(a=(V=D.alt)==null?void 0:V.call(D))!=null?a:(b=D.data().accessibilityData)==null?void 0:b.label)!=null?w:""},H=function(){return D.data().imageWidth},e=function(){return D.data().imageHeight};
return _.G("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.G(_.E,{cond:function(){var V=D.data();if(V){var b,a,w;var h=((b=_.qS().resolve(_.by(_.tB)))==null?0:b())?(a=V.imageDark)!=null?a:V.imageLight:(w=V.imageLight)!=null?w:V.imageDark}else h=void 0;return h},
then:function(V){return _.G(_.bi,Object.assign({},D,{data:V,alt:t,targetWidth:H,targetHeight:e,preserveHeight:!0,preserveWidth:!0}))}}))},"Ug");
YhH.idomCompat=!0;var mp=_.l(function(D){var t=D.data;D=_.qT(function(){return t().slots},[]);
var H=_.qT(function(){return t().layoutProperties},{}),e=_.qS().resolve(_.eQ);
return _.G("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:XYF(H,e)},_.G(_.nY,{each:D,keyBy:"INDEX"},function(V){return _.G("div",{class:"ytContainerLayoutViewModelSlot",style:XYF(function(){return V().layoutProperties},e)},_.G(_.P5,{data:function(){return V().contents}},{containerLayoutViewModel:mp,
badgeViewModel:_.Mi,buttonViewModel:_.JX,styledTextViewModel:Jni,contentPreviewImageViewModel:function(b){return _.G(_.S_,{data:b.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(b){return _.G(YhH,{data:b.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Vg");
mp.idomCompat=!0;var lYF=_.l(function(D){var t=D.data;var H=D.stateFns;var e=function(){var K=t(),N=K.productId;return!(!K.clearGroupId&&!N)},V=function(){var K=t(),N=K.clearGroupId;
return(K=K.productId)?H().isProductSelected(K):N?H().getSelectedProductByGroupId(N)==null:!1},b=function(K){var N=t(),k=N.clearGroupId;
if(N=N.productId)H().onProductSelected(N),K==null||K.forEach(function(T){_.IQ(T)});
else if(k)H().onClearGroupSelected(k)},a=function(){var K=t(),N=K.clearGroupId;
if(K=K.productId){var k;return"group:"+(((k=H().getProductById(K))==null?void 0:k.groupId)||"")}return N?"group:"+N:""},w=_.qT(function(){return t().header},[]),h=_.qT(function(){return t().body},[]);
return _.G("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.G(_.E,{cond:function(){return w().length>0||e()},
then:function(){return _.G("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.G("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.G(_.P5,{data:w},{containerLayoutViewModel:function(K){return _.G("div",{class:"ytPdpCardSectionViewModelContentItem"},_.G(mp,{data:K.data}))},
styledTextViewModel:function(K){return _.G("div",{class:"ytPdpCardSectionViewModelContentItem"},_.G(Jni,{data:K.data}))}})),_.G(_.E,{cond:e,
then:function(){return _.G("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.G(_.w2,{checked:V,name:a,onChange:function(){b(t().onSelect)}}))}}))}}),_.G(_.E,{cond:function(){return h().length>0},
then:function(){return _.G("div",null,_.G(_.P5,{data:h},{containerLayoutViewModel:function(K){return _.G("div",{class:"ytPdpCardSectionViewModelContentItem"},_.G(mp,{data:K.data}))}}))}}))},"Wg");
lYF.idomCompat=!0;var voZ=_.l(function(D){var t=D.data;var H=D.stateFns;return _.G("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.G(_.E,{cond:function(){return t().banner},
then:function(e){return _.G("div",{class:"ytPdpCardViewModelBanner"},_.G(_.$7,{text:e}))}}),_.G(_.P5,{data:function(){return t().sections}},{pdpCardSectionViewModel:function(e){e=e.data;
var V={};return _.G("div",{class:_.jQ("ytPdpCardViewModelSectionContainer",(V.ytPdpCardViewModelShowDividers=function(){return t().showDividers},V))},_.G(lYF,{data:e,
stateFns:H}))}}))},"Xg");
voZ.idomCompat=!0;var pFF=_.l(function(D){var t=D.data;var H=D.isOverlay;D={};return _.G("pdp-masthead-view-model",{class:_.jQ("ytPdpMastheadViewModelHost",(D.ytPdpMastheadViewModelIsOverlay=H,D))},_.G(_.P5,{data:function(){return t().image}},{contentPreviewImageViewModel:_.S_,
themedImageViewModel:function(e){return _.G(YhH,{data:e.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.G(_.E,{cond:function(){return t().title},
then:function(e){return _.G("h1",{class:"ytPdpMastheadViewModelHeading"},_.G(_.$7,{text:e,isOverlay:H}))}}),_.G(_.nY,{each:function(){var e;
return(e=t().finePrint)!=null?e:[]}},function(e){return _.G("div",{class:"ytPdpMastheadViewModelFinePrint"},_.G(_.$7,{text:e,
isOverlay:H}))}))},"Yg");
pFF.idomCompat=!0;var d1Q=_.l(function(D){var t=D.data;var H=D.stateFns;var e=function(){return"pdp-pricing-group-selector-"+t().pricingGroupAttributeIds},V=_.qT(function(){return t().pricingGroupSelectorSectionHeader});
return _.G("pdp-pricing-group-selector-view-model",null,_.G(_.E,{cond:function(){return!!V()},
then:function(){return _.G(_.P5,{data:V},{sectionHeaderViewModel:function(b){b=b.data;var a={};return _.G("div",{class:_.jQ("ytPdpPricingGroupSelectorViewModelSectionHeader",(a.ytPdpPricingGroupSelectorViewModelFullBleed=!0,a.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,a))},_.G(_.l6,{data:b}))}})}}),_.G("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.G(_.nY,{each:function(){var b=H().getSelectedProductByGroupId(t().groupId);
if(!b)return _.Jp(Error("Tj`"+t().groupId)),[];var a,w=(a=t().pricingGroupAttributeIds)!=null?a:[],h;if((h=b.pricingGroups)==null||!h.length||!w.length)return[];a=b.pricingGroups.filter(function(T){return w.length?T.pricingGroupAttributes.every(function(c){return w.includes(c)}):!1});
b=[];if(w.length>0){a=[].concat(_.A6(a));h=_.F(w);for(var K=h.next(),N={};!K.done;N={targetAttrId:void 0},K=h.next())N.targetAttrId=K.value,K=a.findIndex(function(T){return function(c){return c.pricingGroupAttributes.includes(T.targetAttrId)}}(N)),K!==-1&&(b.push(a[K]),a.splice(K,1))}var k=H().getSelectedPricingGroupAttributesByGroupId(t().groupId);
return b.map(function(T){var c=!1;k&&T.pricingGroupAttributes&&(c=Ib(T.pricingGroupAttributes,k));return{pricingGroup:T,isSelected:c}})},
keyBy:function(b){return b.pricingGroup.pricingGroupId}},function(b){return _.G("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.G("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.G(_.P5,{data:function(){return b().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:mp})),_.G("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.G(_.w2,{checked:function(){return b().isSelected},
name:e,onClick:function(){var a=b().pricingGroup;H().onPricingGroupSelected(a.pricingGroupId);if(a=_.xP(a.onSelectPricingGroup)){var w;(w=_.qS().resolve(_.aA))==null||w.resolveCommand(a)}}})))})))},"Zg");
d1Q.idomCompat=!0;var x1b=_.l(function(D){var t=D.data;var H=D.stateFns;var e=function(){var a=H().getSelectedPricingOptions().map(function(K){return K.pricingOptionId}),w=H().getSelectedProductByGroupId(t().groupId);
if(!w)return _.Jp(Error("Uj`"+t().groupId)),[];var h=H().getSelectedPricingGroupAttributesByGroupId(t().groupId);return dSe(w.pricingOptions,h,a)},V=_.qT(function(){return t().pricingOptionSelectorSectionHeader}),b=function(){return e().length>1};
return _.G("pdp-pricing-option-selector-view-model",null,_.G(_.E,{cond:function(){return!!V()&&b()},
then:function(){return _.G(_.P5,{data:V},{sectionHeaderViewModel:function(a){a=a.data;var w={};return _.G("div",{class:_.jQ("ytPdpPricingOptionSelectorViewModelSectionHeader",(w.ytPdpPricingOptionSelectorViewModelFullBleed=!0,w.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,w))},_.G(_.l6,{data:a}))}})}}),_.G(_.E,{cond:b,
then:function(){return _.G("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.G(_.nY,{each:e,keyBy:"INDEX"},function(a){return _.G("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.G("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.G(_.P5,{data:function(){return a().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:mp})),_.G("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.G(_.w2,{checked:function(){return a().isSelected},
onClick:function(){H().onPricingOptionSelected(a().pricingOption.pricingOptionId);var w=a().pricingOption.onSelectPricingOption;if(w=_.xP(w)){var h;(h=_.qS().resolve(_.aA))==null||h.resolveCommand(w)}}})))}))}}))},"$g");
x1b.idomCompat=!0;var RKF=_.l(function(D){var t=D.data;var H=D.stateFns;return _.G("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.G(_.P5,{data:function(){var e,V;return(V=(e=H().getSelectedPricingOptions()[0])==null?void 0:e.primaryButton)!=null?V:t().emptyStateButton}},{buttonViewModel:_.JX}))},"ah");
RKF.idomCompat=!0;var u9b=_.l(function(D){var t=D.stateFns;return _.G("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.G(_.P5,{data:function(){return t().getSelectedPricingOptions().flatMap(function(H){return H.summaryLines}).filter(function(H){return!!H})}},{containerLayoutViewModel:function(H){return _.G("div",{class:"ytPdpSummaryViewModelLineItem"},_.G(mp,{data:H.data}))}}))},"bh");
u9b.idomCompat=!0;var WFi=_.l(function(D){function t(L){var J=a();_.bf(_.LP("pdpStateEntity",J,{key:J,selectedPricingOptions:L}))}
var H=D.data;var e=D.internalScrolling;var V=D.stateFnsForTesting;var b=_.qT(function(){return H().allProducts},[]),a=_.qT(function(){return H().pdpStateEntityKey},""),w=_.rF(xSb,a),h=_.jj(function(){_.fR(!0);
var L;return(L=V==null?void 0:V())!=null?L:ucv(w,b,t)},void 0,"tAB69c"),K=_.qT(function(){return H().body},[]),N=_.qT(function(){return H().columnBreakHints},[]),k=function(){return H().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},T=function(){return k()||H().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},c=_.jj(function(){var L=_.Rn(H().background),J;
if(L==null?0:(J=L.sources)==null?0:J.length){var g=g===void 0?!0:g;L=_.tKR(void 0,L.sources,void 0,g,g?1E3:void 0,g?void 0:1E3)}else L=null;return L},void 0,"bHjkUb");
D=_.O7({"--pdp-view-model-background":function(){return c()?"url("+c()+")":void 0}});
var U={};e=_.jQ("ytPdpViewModelHost",(U.ytPdpViewModelHasBackground=function(){return T()||!!c()},U.ytPdpViewModelHasDarkBackground=T,U.ytPdpViewModelHasScrim=k,U.ytPdpViewModelInternalScrolling=_.qT(e,!1),U));
var S=function(L){var J={};return _.jQ("ytPdpViewModelItem",(J.ytPdpViewModelFullBleed=function(){return Wht(L())==="dividerViewModel"||Wht(L())==="sectionHeaderViewModel"},J.ytPdpViewModelNoVerticalPadding=function(){return Wht(L())==="sectionHeaderViewModel"},J))};
_.XH(function(){var L=H().onStartCommand;if(L&&(L=_.xP(L))){var J;(J=_.qS().resolve(_.aA))==null||J.resolveCommand(L)}});
return _.G("pdp-view-model",{class:e,style:D},_.G("div",{class:"ytPdpViewModelColumnContainer"},_.G(_.nY,{each:function(){return IUF(K(),N())},
keyBy:"INDEX"},function(L){return _.G("div",{class:"ytPdpViewModelColumn"},_.G(_.P5,{data:L},{containerLayoutViewModel:function(J,g){J=J.data;return _.G("div",{class:S(function(){return L()[g()]})},_.G(mp,{data:J}))},
dividerViewModel:function(J,g){J=J.data;return _.G("div",{class:S(function(){return L()[g()]})},_.G(_.RxV,{data:J}))},
pdpCardViewModel:function(J,g){J=J.data;return _.G("div",{class:S(function(){return L()[g()]})},_.G(voZ,{data:J,
stateFns:h}))},
pdpMastheadViewModel:function(J,g){J=J.data;return _.G("div",{class:S(function(){return L()[g()]})},_.G(pFF,{data:J,
isOverlay:T}))},
pdpPricingGroupSelectorViewModel:function(J,g){J=J.data;return _.G("div",{class:S(function(){return L()[g()]})},_.G(d1Q,{data:J,
stateFns:h}))},
pdpPricingOptionSelectorViewModel:function(J,g){J=J.data;return _.G("div",{class:S(function(){return L()[g()]})},_.G(x1b,{data:J,
stateFns:h}))},
pdpPrimaryButtonViewModel:function(J,g){J=J.data;return _.G("div",{class:S(function(){return L()[g()]})},_.G(RKF,{data:J,
stateFns:h}))},
pdpSummaryViewModel:function(J,g){J=J.data;return _.G("div",{class:S(function(){return L()[g()]})},_.G(u9b,{data:J,
stateFns:h}))},
sectionHeaderViewModel:function(J,g){J=J.data;return _.G("div",{class:S(function(){return L()[g()]})},_.G(_.l6,{data:J}))}}))})))},"ch");
WFi.idomCompat=!0;_.hB(WFi,"pdp-view-model",{props:{data:_.ij,stateFnsForTesting:_.wm,internalScrolling:_.wm}});var IYF=_.l(function(D){var t=D.data;var H=D.className;var e=_.rF(_.Dm,function(){return t().flowStateEntityKey});
return _.G("ytm-premium-purchase-button-renderer",{class:_.jQ("ytPremiumPurchaseButtonRendererHost",H)},_.G(_.P5,{data:function(){var V;return(V=_.O(e(),yWg))==null?void 0:V.primaryButtonOverride}},{buttonRenderer:function(V){return _.G(_.i4,{data:V.data,
className:H})},
buttonViewModel:function(V){return _.G(_.JX,{data:V.data,className:H})}}))},"dh");
IYF.idomCompat=!0;var QCH=_.l(function(D){var t=D.data;D=D.className;var H=function(){return QAb(t().style)},e=_.jQ("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",H),V=_.jQ("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",H);
return _.G("yt-flow-bottom-bar-renderer",{class:_.jQ("yt-flow-bottom-bar-renderer",D,H)},_.G(_.P5,{data:function(){return t().secondaryButton}},{buttonRenderer:function(b){return _.G(_.i4,{data:b.data,
className:V})},
buttonViewModel:function(b){return _.G(_.JX,{data:b.data,className:V})},
premiumPurchaseButtonRenderer:function(b){return _.G(IYF,{data:b.data,className:V})}}),_.G(_.P5,{data:function(){return t().primaryButton}},{buttonRenderer:function(b){return _.G(_.i4,{data:b.data,
className:e})},
buttonViewModel:function(b){return _.G(_.JX,{data:b.data,className:e})},
premiumPurchaseButtonRenderer:function(b){return _.G(IYF,{data:b.data,className:e})}}))},"eh");
QCH.idomCompat=!0;_.hB(QCH,"yt-flow-bottom-bar-renderer",{props:{data:_.ij,className:_.ij}});var yn4=_.l(function(D){var t=_.jQ(D.className,"ytOfferSummaryRendererHost");return _.G("yt-offer-summary-renderer",{class:t},_.G("div",{class:"ytOfferSummaryRendererTextContainer"},_.G("div",{class:"ytOfferSummaryRendererEyebrowText"},_.G(_.$7,{text:function(){return D.data().eyebrowText}})),_.G("div",{class:"ytOfferSummaryRendererTitle"},_.G(_.$7,{text:function(){return D.data().title}})),_.G("div",{class:"ytOfferSummaryRendererSubtitle"},_.G(_.$7,{text:function(){return D.data().subtitle}})),_.G("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.G(_.nY,{each:function(){var H;
return(H=D.data().featureListData)!=null?H:[]}},function(H){var e;
return _.G("div",{class:"ytOfferSummaryRendererFeatureList"},_.G(_.U7,{icon:(e=H.icon)==null?void 0:e.iconType,active:function(){return H.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(H.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.G("div",{class:"ytOfferSummaryRendererFeatureListText"},_.G(_.$7,{text:H.text,
className:function(){return H.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.G("div",{class:"ytOfferSummaryRendererDescription"},_.G(_.$7,{text:function(){return D.data().description}}))))},"fh");_.hB(_.l(function(D){var t={};t=_.jQ("ytOfferSummaryFlowStepRendererHost",(t.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=D.shouldDisableHeaderTopMargin,t));return _.G("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:t},_.G("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.G("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.G(_.$7,{text:function(){return D.data().header}})),_.G("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.G(_.$7,{text:function(){return D.data().subtitle}}))),_.G("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.G(_.P5,{data:function(){return D.data().offerSummary}},{offerSummaryRenderer:function(H){return _.G(yn4,{data:H.data,
className:D.flowClassName})}})))},"gh"),"yt-offer-summary-flow-step-renderer",{props:{data:_.wm,
flowClassName:_.wm,flowStateEntityKey:_.wm,shouldDisableHeaderTopMargin:_.wm}});var Bve=_.l(function(D){var t=D.data;var H=D.className;var e=D.flowStateEntityKey;var V=D.selectionStepStyle;D=_.$X(function(h){var K=t(),N=e==null?void 0:e();h.target&&(h.stopPropagation(),h=N||"",N=_.Dm(_.V_().getState(),h),K=Object.assign({},N,{premiumPurchaseFlowState:{selectedOptionId:K.optionId,primaryButtonOverride:K.primaryButtonOverride}}),_.V_().dispatch(_.nf("flowStateEntity",h,K)));return!1});
var b=function(){return(e==null?void 0:e())||""},a=_.rF(_.Dm,b);
_.XH(function(){var h=t(),K=b(),N=a();h.defaultSelected&&K!==""&&h.primaryButtonOverride&&Bi4(h.optionId||"",K,h.primaryButtonOverride,N)});
var w={};return _.G("ytm-option-item-renderer",{"on:click":D,class:_.jQ(H,"ytm-option-item-renderer",(w["ytm-option-item-renderer--lp2-style"]=function(){return(V==null?void 0:V())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},w))},_.G("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.G("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var h=t(),K=b(),N=a();N=_.O(N,yWg);return(N?(N==null?void 0:N.selectedOptionId)||"":h.defaultSelected&&K!==""?(h==null?void 0:h.optionId)||"":"")===t().optionId},
name:("input"+_.Qr(_.qj)).toString()})),_.G("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.G(_.P5,{data:function(){return t().titleBadge}},{badgeViewModel:function(h){return _.G(_.Mi,{data:h.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.G(_.E,{cond:function(){return t().eyebrowText},
then:function(){return _.G("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.G(_.$7,{text:function(){return t().eyebrowText}}))}}),_.G("div",{class:"ytm-option-item-renderer__option-item-title"},_.G(_.$7,{text:function(){return t().title}})),_.G("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.G(_.$7,{text:function(){return t().subtitle}})),_.G(_.E,{cond:function(){return t().featureListData},
then:function(){return _.G("div",{class:"ytm-option-item-renderer__feature-list-data"},_.G(_.nY,{each:function(){return t().featureListData||[]}},function(h){var K,N=(K=h.icon)==null?void 0:K.iconType;
a:switch(h.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":K="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":K="ytm-option-item-renderer__feature-list-icon-small";break a;default:K="ytm-option-item-renderer__feature-list-icon-default"}return _.G("div",{class:"ytm-option-item-renderer__feature-list"},_.G(_.U7,{icon:N,className:K,active:function(){return h.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.G("div",{class:"ytm-option-item-renderer__feature-list-text"},_.G(_.$7,{text:h.text,
className:function(){return h.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.G("div",{class:"ytm-option-item-renderer__option-item-description"},_.G(_.$7,{text:function(){return t().description}}))))},"hh");var zKH=_.l(function(D){var t=D.data;var H=D.flowClassName;var e=D.flowStateEntityKey;var V=D.selectionStepStyle;return _.G("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.G("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.G("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.G(_.$7,{text:function(){return t().title}}),_.G(_.P5,{data:function(){return t().titleBadge}},{badgeViewModel:function(b){return _.G(_.Mi,{data:b.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.G(_.E,{cond:function(){return t().subtitle},
then:function(){return _.G("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.G(_.$7,{text:function(){return t().subtitle}}))}}),_.G(_.E,{cond:function(){return t().featureListData},
then:function(b){return _.G("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.G(_.nY,{each:b},function(a){var w;return _.G("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.G(_.U7,{icon:(w=a.icon)==null?void 0:w.iconType,active:function(){return a.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(a.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.G("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.G(_.$7,{text:a.text,
className:function(){return a.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.G(_.E,{cond:function(){return t().secondaryTitle},
then:function(){return _.G("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.G(_.$7,{text:function(){return t().secondaryTitle}}))}}),_.G(_.nY,{each:function(){return t().sectionDisclaimers||[]}},function(b){return _.G("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.G(_.$7,{text:b}))})),_.G(_.P5,{data:function(){return t().optionItems}},{optionItemRenderer:function(b){return _.G("div",{class:"ytOptionSectionRendererOptionItem"},_.G(Bve,{data:b.data,
className:H,flowStateEntityKey:e,selectionStepStyle:V}))}}),_.G(_.E,{cond:function(){return t().offerText},
then:function(){return _.G("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.G(_.$7,{text:function(){return t().offerText}}))}}))},"ih");
zKH.idomCompat=!0;var Dlb=_.l(function(D){var t=D.data;var H=D.flowClassName;var e=D.flowStateEntityKey;D=D.isDesktop;var V=function(){var K;return(K=t().flowStateEntityKey)!=null?K:e==null?void 0:e()},b=function(){return(V==null?void 0:V())||""},a=function(){return t().style},w=_.rF(_.Dm,b);
_.XH(function(){var K=t(),N=b(),k=w();!_.O(k,yWg)&&K.noPreselect&&N!==""&&K.defaultButtonOverride&&Bi4("default",N,K.defaultButtonOverride,k)});
var h={};return _.G("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.jQ("ytm-option-selection-flow-step-renderer",(h["ytm-option-selection-flow-step-renderer--desktop"]=D,h["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return t().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},h))},_.G("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"},
_.G("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.G(_.$7,{text:function(){return t().header}})),_.G("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.G(_.$7,{text:function(){return t().subtitle}}))),_.G(_.P5,{data:function(){return t().optionItems||[]}},{optionItemRenderer:function(K){return _.G("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.G(Bve,{data:K.data,
className:H,flowStateEntityKey:V,selectionStepStyle:a}))},
optionSectionRenderer:function(K){return _.G("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.G(zKH,{data:K.data,flowClassName:H,flowStateEntityKey:V,selectionStepStyle:a}))}}))},"jh");
Dlb.idomCompat=!0;_.hB(Dlb,"yt-option-selection-flow-step-renderer",{props:{data:_.ij,flowClassName:_.ij,flowStateEntityKey:_.ij,isDesktop:_.ij}});_.Mt=_.l(function(D){var t=_.FQ(D,{type:1,disablePadding:!1,disablePrimaryButton:!1}),H=t.data,e=t.type;D=t.disablePadding;var V=t.disablePrimaryButton,b=t.onClickPrimaryButton,a=function(){return H().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},w=function(){return{disabled:V(),
state:V()?"disabled":"active"}},h=function(){return H().leadingLabel||H().trailingLabel};
t={};return _.G("yt-panel-footer-view-model",{class:_.jQ("yt-panel-footer-view-model",(t["yt-panel-footer-view-model--hide-divider"]=function(){return H().shouldHideDivider},t["yt-panel-footer-view-model--disable-padding"]=D,t))},_.G(_.E,{cond:h,
then:function(){var K={},N={};return _.G("div",{class:_.jQ("yt-panel-footer-view-model__text-row",(K["yt-panel-footer-view-model--row-bottom-padding"]=function(){var k=H();return!(!k.leadingLabel&&!k.trailingLabel||!k.primaryButton&&!k.secondaryButton)},K))},_.G(_.$7,{text:function(){return H().leadingLabel},
className:_.jQ((N["yt-panel-footer-view-model--text-padding"]=h,N))}),_.G(_.$7,{text:function(){return H().trailingLabel}}))}}),_.G(_.E,{cond:a,
then:function(){var K={};return _.G("div",{class:"yt-panel-footer-view-model__button-stack"},_.G("div",{class:_.jQ("yt-panel-footer-view-model__primary-button",(K["yt-panel-footer-view-model__button-stack--top-button"]=function(){return H().secondaryButton},K))},_.G(_.P5,{data:function(){return H().primaryButton}},{buttonViewModel:function(N){return _.G(_.JX,{data:N.data,
buttonOverrides:w,onClick:b})}})),_.G(_.P5,{data:function(){return H().secondaryButton}},{buttonViewModel:_.JX}))}}),_.G(_.E,{cond:function(){return!a()},
then:function(){var K={},N={},k={};return _.G("div",{class:_.jQ("yt-panel-footer-view-model__button-row",(K["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===e()},K))},_.G("div",{class:_.jQ("yt-panel-footer-view-model__button-row--left-button",(N["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===e()},N["yt-panel-footer-view-model__button-row--hidden"]=function(){return!H().secondaryButton||0===e()},N["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===e()},N))},_.G(_.P5,{data:function(){return H().secondaryButton}},{buttonViewModel:_.JX})),_.G("div",{class:_.jQ("yt-panel-footer-view-model__primary-button",(k["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===e()||1===e()},k["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===e()},k))},_.G(_.P5,{data:function(){return H().primaryButton}},{buttonViewModel:function(T){return _.G(_.JX,{data:T.data,
buttonOverrides:w,onClick:b})}})))}}))},"kh");
_.Mt.idomCompat=!0;_.t7i=_.l(function(D){D=_.FQ(D,{disablePadding:!1});var t=D.data,H=D.disablePadding;D=_.qC6(function(){return t().formId});
var e=D.submitForm,V=D.isValid,b=D.isSubmitting;return _.G("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.G(_.P5,{data:function(){return t().panelFooter}},{panelFooterViewModel:function(a){return _.G(_.Mt,{data:a.data,
onClickPrimaryButton:function(){e()},
disablePrimaryButton:function(){return!V()||b()},
disablePadding:H})}}))},"lh");_.hB(_.t7i,"yt-form-footer-view-model",{props:{data:_.ij,disablePadding:_.ij}});var HGe=_.l(function(D){var t=_.r("enable_user_rating_web");return _.G("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.G("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.G(_.E,{cond:function(){var H;return(H=D.data())==null?void 0:H.image},
then:function(H){return _.G(_.bi,{data:H,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.G("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.G(_.$7,{text:function(){var H;
return(H=D.data())==null?void 0:H.title}})),_.G("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.G(_.$7,{text:function(){var H;
return(H=D.data())==null?void 0:H.subtitle}})),_.G(_.E,{cond:function(){return!t},
then:function(){return _.G(_.P5,{data:function(){var H;return(H=D.data())==null?void 0:H.viewTipsButton}},{buttonViewModel:function(H){return _.G(_.JX,{data:H.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"mh");_.hB(HGe,"yt-contributor-zero-state-view-model",{props:{data:_.ij}});var e6H=_.l(function(D){var t=function(){var H;return(H=D.data())==null?void 0:H.image};
return _.G("yt-featured-content-item-view-model",{class:_.jQ("ytFeaturedContentItemViewModelHost")},_.G("div",{class:_.jQ(function(){return t()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.G("div",{class:function(){return t()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.G(_.E,{cond:t,
then:function(){return _.G("div",{class:"ytFeaturedContentItemViewModelImage"},_.G(_.P5,{data:function(){return D.data().image}},{themedImageViewModel:function(H){return _.G(YhH,{data:H.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.G(_.E,{cond:function(){var H;
return!t()&&((H=D.data())==null?void 0:H.iconName)},
then:function(){return _.G("div",{class:"ytFeaturedContentItemViewModelIcon"},_.G(_.U7,{icon:function(){return D.data().iconName}}))}}),_.G("div",{class:"ytFeaturedContentItemViewModelContent"},_.G(_.E,{cond:function(){var H;
return(H=D.data())==null?void 0:H.title},
then:function(){return _.G("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.G(_.$7,{text:function(){return D.data().title}}))}}),_.G(_.E,{cond:function(){var H;
return(H=D.data())==null?void 0:H.body},
then:function(){return _.G("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.G(_.$7,{text:function(){return D.data().body}}))}})))))},"nh");var V7i=_.l(function(D){var t=function(){var V;return zEH((V=D.data())==null?void 0:V.titleFontSize)},H=function(){var V;
return DOH((V=D.data())==null?void 0:V.descriptionFontSize)},e=function(){var V;
return((V=D.data())==null?void 0:V.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.G("yt-landing-page-view-model",{class:_.jQ("ytLandingPageViewModelHost",D.className)},_.G("div",{class:"ytLandingPageViewModelHeader"},_.G(_.E,{cond:function(){var V;return(V=D.data())==null?void 0:V.bannerImage},
then:function(V){return _.G("div",{class:"ytLandingPageViewModelHeaderImage"},_.G(_.P5,{data:function(){return V()}},{imageBannerViewModel:function(b){return _.G(_.G$,{data:b.data,
isPositionRelative:!0})}}))}}),_.G(_.E,{cond:function(){var V;
return(V=D.data())==null?void 0:V.bannerAnimation},
then:function(V){return _.G(_.x7,{data:function(){var b=V();if(b==null?0:b.url){var a;b={path:(a=b==null?void 0:b.url)!=null?a:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(b==null?0:b.payload){var w;b={animationData:JSON.parse((w=b==null?void 0:b.payload)!=null?w:""),autoplay:!0,loop:!0,renderer:"svg"}}else b=void 0;return{animationConfig:b}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.G("div",{class:"ytLandingPageViewModelHeaderTitle"},_.G(_.E,{cond:function(){var V;
return(V=D.data())==null?void 0:V.title},
then:function(V){return _.G("div",{class:_.jQ("ytLandingPageViewModelHeaderTitleContent",t)},_.G(_.$7,{text:function(){return V()}}))}}),_.G(_.E,{cond:function(){var V;
return(V=D.data())==null?void 0:V.description},
then:function(V){var b={};return _.G(_.$7,{className:_.jQ("ytLandingPageViewModelHeaderTitleDescription",H,(b.ytLandingPageViewModelHeaderTitleDescriptionMargin=e,b)),text:function(){return V()}})}}))),_.G(_.E,{cond:function(){var V,b;
return(V=D.data())==null?void 0:(b=V.featuredContentList)==null?void 0:b.length},
then:function(){return _.G("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.G(_.P5,{data:function(){return D.data().featuredContentList}},{featuredContentItemViewModel:function(V){return _.G(e6H,{data:V.data})}}))}}),_.G(_.E,{cond:function(){var V,b;
return(V=D.data())==null?void 0:(b=V.expandableContentList)==null?void 0:b.length},
then:function(){return _.G("div",{class:"ytLandingPageViewModelFaqSection"},_.G(_.P5,{data:function(){return D.data().expandableContentList}},{faqEntryViewModel:function(V){return _.G("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.G(_.ndn,{data:V.data}))}}))}}),_.G("div",{class:"ytLandingPageViewModelFooter"},_.G(_.E,{cond:function(){var V;
return(V=D.data())==null?void 0:V.legalCopy},
then:function(V){return _.G("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.G(_.$7,{text:function(){return V()}}))}}),_.G(_.E,{cond:function(){var V;
return(V=D.data())==null?void 0:V.actions},
then:function(V){return _.G("div",null,_.G(_.P5,{data:function(){return V()}},{flexibleActionsViewModel:function(b){return _.G(_.aw,{data:b.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"oh");_.hB(_.l(function(D){return _.G("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.G("div",{class:"ytLpSectionGroupViewModelContainer"},_.G(_.P5,{data:function(){return D.data().sections}},{landingPageViewModel:function(t){return _.G(V7i,{data:t.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"ph"),"yt-lp-section-group-view-model",{props:{data:_.ij}});var bGv=_.l(function(D){var t=D.data;var H=D.selectedKey;var e=D.onSelected;var V=D.groupName;var b=function(){return t().text},a=function(){return t().attributedText},w=function(){return t().subtext},h=function(){return t().attributedSubtext},K=_.G("div",{class:"ytRadioButtonItemViewModelLabel"},_.G(_.E,{cond:b,
then:function(){return _.G("div",null,b)}}),_.G(_.E,{cond:a,
then:function(){return _.G(_.$7,{text:a})}}),_.G(_.E,{cond:w,
then:function(){return _.G("div",{class:"ytRadioButtonItemViewModelSubText"},w)}}),_.G(_.E,{cond:h,
then:function(){return _.G("div",{class:"ytRadioButtonItemViewModelSubText"},_.G(_.$7,{text:h}))}})),N=function(){if(a()){var T;
return(T=a())==null?void 0:T.content}return b()},k=function(){if(h()){var T;
return(T=h())==null?void 0:T.content}return w()};
D={};return _.G("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.G(_.w2,{name:V,checked:function(){return!(H==null||!H()||t().key!==(H==null?void 0:H()))},
onChange:function(T){e==null||e(T.target,t(),V==null?void 0:V())},
labelRenderable:function(){return K},
ariaLabel:function(){return k()?N()+", "+k():N()},
className:_.jQ((D.ytRadioButtonItemViewModelSubTitle=function(){return!!t().subtext},D))}))},"qh");_.qWb=_.l(function(D){var t=D.data;var H=D.onSelected;var e=D.selectedKey;var V=D.groupName;var b=function(){return(V==null?void 0:V())||t().key};
return _.G("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.G("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.G(_.P5,{data:function(){return t().radioButtons}},{radioButtonItemViewModel:function(a){return _.G(bGv,{data:a.data,
onSelected:H,selectedKey:e,groupName:b})}})))},"rh");var FHF=_.l(function(D){_.XH(function(){if(D.controlledMode()&&D.data().defaultSelected)_.gT(Error("Vj"));else{var b;!D.controlledMode()&&((b=D.selected)==null?0:b.call(D))&&_.gT(Error("Wj"))}});
var t=_.F(_.rm(function(){if(!D.controlledMode())return D.data().defaultSelected})),H=t.next().value,e=t.next().value,V=function(){if(!D.controlledMode())return H();
var b;return(b=D.selected)==null?void 0:b.call(D)};
return _.G("yt-checkbox-item-view-model",{class:_.jQ("ytCheckboxItemViewModelHost",D.className)},_.G(_.Zq,{data:function(){var b=D.data(),a=V();return{title:b.text,subtitle:b.subtext,superlabel:b.superlabel,isSelected:!!a,isDisabled:b.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(b){b.preventDefault();!D.controlledMode()&&e(!H());var a,w;(w=D.onTap)==null||w.call(D,!!V(),D.data(),(a=D.groupName)==null?void 0:a.call(D))},
isCompact:D.isCompact}))},"sh");var ast=_.l(function(D){var t=D.data;var H=D.controlledMode;var e=D.selectedKeys;var V=D.onItemTap;var b=D.groupName;var a=function(){return(b==null?void 0:b())||t().key};
_.XH(function(){H()&&t().defaultSelectedKeys?_.gT(Error("Xj")):!H()&&(e==null?0:e())&&_.gT(Error("Yj"))});
D=_.F(_.rm(function(){if(!H())return t().defaultSelectedKeys}));
var w=D.next().value,h=D.next().value,K=function(N,k,T){N=[];!H()&&k.key&&(N=tEY(k.key,w()||[]),h(N));V==null||V(k,N,T)};
return _.G("yt-checkbox-group-view-model",{class:_.jQ("ytCheckboxGroupViewModelHost")},_.G("fieldset",{class:_.jQ("ytCheckboxGroupViewModelFieldset")},_.G(_.P5,{data:function(){return t().checkboxes}},{checkboxItemViewModel:function(N){var k=N.data;
return _.G(FHF,{data:k,controlledMode:!0,selected:function(){var T=H()?(e==null?void 0:e())||[]:w()||[],c=k().key;return c?T.includes(c):!1},
onTap:K,groupName:a})}})))},"th");var S1=_.l(function(D){var t=_.rF(HXQ,_.qT(function(){var w;return(w=D.data())==null?void 0:w.noteFeedEntityKey},"")),H=_.rF(TiQ,_.qT(function(){var w;
return(w=D.data())==null?void 0:w.userRatingEntityKey},"")),e=_.r("enable_user_rating_web"),V=function(){var w,h,K;
return((w=t())==null?0:w.contributorNote)?(h=t())==null?void 0:h.contributorNote:(K=D.data())==null?void 0:K.existingNote},b=function(){var w,h;
return!!H()&&!!eXt((w=H())==null?void 0:w.helpfulnessValue,(h=D.data())==null?void 0:h.noteData)};
if(e){var a={};return _.G("yt-note-view-model",{class:_.jQ("ytNoteViewModelHostUserRating",(a.ytNoteViewModelHostUserRatingPublishedNote=function(){var w,h,K,N;return((w=D.data())==null?void 0:(h=w.noteData)==null?void 0:h.isPublished)&&!((K=D.data())==null?0:(N=K.noteData)==null?0:N.isUserRatingForm)},a))},_.G("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.G("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.G(_.E,{cond:function(){var w,h;
return(w=D.data())==null?void 0:(h=w.noteData)==null?void 0:h.isPinned},
then:function(){return _.G(_.U7,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.G(_.E,{cond:function(){var w,h;return(w=D.data())==null?void 0:(h=w.noteData)==null?void 0:h.isPublished},
then:function(){return _.G(_.U7,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.G(_.P5,{data:function(){var w;
return(w=D.data())==null?void 0:w.metadata}},{contentMetadataViewModel:_.Xo}),_.G("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var w,h;
return(h=_.O((w=D.data())==null?void 0:w.metadata,_.zIw))==null?void 0:h.delimiter}),_.G(_.$7,{text:function(){var w;
return(w=V())==null?void 0:w.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.G(_.E,{cond:function(){var w,h;return!((w=D.data())==null?0:(h=w.noteData)==null?0:h.isUserRatingForm)},
then:function(){return _.G(_.P5,{data:function(){var w,h,K,N,k,T,c,U=!!((w=D.data())==null?0:(h=w.noteData)==null?0:h.isPinned);w=b();h=(K=D.data())==null?void 0:K.noteData;K=(N=t())==null?void 0:(k=N.contributorNote)==null?void 0:k.deleteAction;N=(T=D.data())==null?void 0:T.overflowButtonNoteWithRatingOnTapOverride;T=(c=D.data())==null?void 0:c.overflowButton;return U?VEQ(h,K):w?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",
buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:N}}:T}},{buttonViewModel:function(w){return _.G(_.JX,{data:w.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.G("div",{class:"ytNoteViewModelNoteContent"},_.G(_.$7,{text:function(){var w;
return(w=V())==null?void 0:w.text}})),_.G(_.E,{cond:function(){var w,h,K,N;
return!((w=D.data())==null?0:(h=w.noteData)==null?0:h.isPinned)&&!((K=D.data())==null?0:(N=K.noteData)==null?0:N.isUserRatingForm)},
then:function(){return _.G(_.E,{cond:b,then:function(){return _.G("div",{class:"ytNoteViewModelUserRatingContainer"},_.G(_.$7,{text:function(){var w,h;return eXt((w=H())==null?void 0:w.helpfulnessValue,(h=D.data())==null?void 0:h.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.G(_.P5,{data:function(){var w;return(w=D.data())==null?void 0:w.userRatingButton}},{buttonViewModel:function(w){return _.G(_.JX,{data:w.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.G(_.E,{cond:function(){var w,h,K,N;
return!((w=D.data())==null?0:(h=w.noteData)==null?0:h.ignoreDivider)&&!((K=D.data())==null?0:(N=K.noteData)==null?0:N.isUserRatingForm)},
then:function(){return _.G("div",{class:"ytNoteViewModelDivider"},_.G(_.P5,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(w){return _.G(_.RxV,{data:w.data})}}))}}))}return _.G("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.G("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.G("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.G(_.E,{cond:function(){var w,h;return(w=D.data())==null?void 0:(h=w.noteData)==null?void 0:h.isPinned},
then:function(){return _.G(_.U7,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.G(_.E,{cond:function(){var w,h;return(w=D.data())==null?void 0:(h=w.noteData)==null?void 0:h.isPublished},
then:function(){return _.G(_.U7,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.G(_.E,{cond:function(){return e},
then:function(){return _.G(_.P5,{data:function(){var w;return(w=D.data())==null?void 0:w.metadata}},{contentMetadataViewModel:function(w){return _.G(_.Xo,{data:w.data})}})}}),_.G(_.$7,{text:function(){var w,h;
return(w=D.data())==null?void 0:(h=w.noteData)==null?void 0:h.headerText}}),_.G("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.G(_.$7,{text:function(){var w,h;
return(w=D.data())==null?void 0:(h=w.noteData)==null?void 0:h.delimiter}})),_.G(_.$7,{text:function(){var w,h;
return(w=t())==null?void 0:(h=w.contributorNote)==null?void 0:h.publishedTimeText}})),_.G(_.P5,{data:function(){var w,h,K;
return VEQ((w=D.data())==null?void 0:w.noteData,(h=t())==null?void 0:(K=h.contributorNote)==null?void 0:K.deleteAction)}},{buttonViewModel:function(w){return _.G(_.JX,{data:w.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.G("div",{class:"ytNoteViewModelNoteContent"},_.G(_.$7,{text:function(){var w,h;
return(w=t())==null?void 0:(h=w.contributorNote)==null?void 0:h.text}})))},"uh");
S1.idomCompat=!0;_.hB(_.l(function(D){var t=_.qT(function(){var g;return(g=D.data())==null?void 0:g.flowStateEntityKey},""),H=_.rF(_.Dm,t),e=_.rF(HXQ,_.qT(function(){var g;
return(g=D.data())==null?void 0:g.noteFeedEntityKey},"")),V=_.F(_.rm(function(){var g;
return(g=_.O(D.data().helpfulnessValue,_.to))==null?void 0:g.defaultSelectedKey})),b=V.next().value,a=V.next().value;
V=_.F(_.rm(function(){var g,Q,u;return(u=_.O((g=_.O(D.data().helpfulnessValue,_.to))==null?void 0:(Q=g.radioButtons)==null?void 0:Q.find(function(R){var I;return((I=_.O(R,UzY))==null?void 0:I.key)===b()}),UzY))==null?void 0:u.value}));
var w=V.next().value,h=V.next().value,K=function(g,Q){a(Q.key);h(Q.value)},N=function(){var g,Q;
return((g=w())==null?void 0:g.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((Q=w())==null?void 0:Q.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},k=function(){var g,Q;
return((g=w())==null?void 0:g.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((Q=w())==null?void 0:Q.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"};
V=_.F(_.rm(function(){var g;return(g=_.O(D.data().helpfulReasons,O7O))==null?void 0:g.defaultSelectedKeys}));
var T=V.next().value,c=V.next().value,U=function(g){bXe(g.key,T,c)};
V=_.F(_.rm(function(){var g;return(g=_.O(D.data().notHelpfulReasons,O7O))==null?void 0:g.defaultSelectedKeys}));
var S=V.next().value,L=V.next().value,J=function(g){bXe(g.key,S,L)};
_.XH(function(){var g,Q,u;cWZ((g=D.data())==null?void 0:(Q=g.userRatingFormSchema)==null?void 0:Q.id,{isValid:function(){return!!b()},
formData:function(){var R=w(),I=FYv(T(),_.O(D.data().helpfulReasons,O7O)),tT=FYv(S(),_.O(D.data().notHelpfulReasons,O7O));R={helpfulnessValue:R==null?void 0:R.noteHelpfulnessValue};if(I){R.helpfulReasons=[];I=_.F(I);for(var ZV=I.next();!ZV.done;ZV=I.next()){ZV=ZV.value;var ED=void 0;if((ED=ZV)==null?0:ED.noteHelpfulReason)ED=void 0,R.helpfulReasons.push((ED=ZV)==null?void 0:ED.noteHelpfulReason)}}if(tT)for(R.notHelpfulReasons=[],tT=_.F(tT),I=tT.next();!I.done;I=tT.next())if(I=I.value,ZV=void 0,(ZV=
I)==null?0:ZV.noteNotHelpfulReason)ZV=void 0,R.notHelpfulReasons.push((ZV=I)==null?void 0:ZV.noteNotHelpfulReason);return{userRatingFormData:R}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(u=_.O(H(),G0Z))==null?void 0:u.submitFormParams},onSubmitResult:function(){var R,I=(R=_.O(H(),G0Z))==null?void 0:R.userRatingEntityKey,tT;R={key:I,helpfulnessValue:(tT=w())==null?void 0:tT.noteHelpfulnessValue};I&&_.bf(_.nf("contextNoteUserRatingEntityPayload",I,R));var ZV;I=(ZV=D.data())==null?void 0:ZV.viewNoteFlowStepId;var ED;if((ED=e())==null||!ED.contributorNote){var o$;I=(o$=D.data())==null?void 0:o$.zeroStateFlowStepId}(ZV=
Object.assign({},H()))&&I&&(ZV.currentStepId=I,ZV.stepIdStack=[I],_.bf(_.nf("flowStateEntity",t(),ZV)));ZV=_.qS().resolve(_.aA);var jV;(ED=(jV=D.data())==null?void 0:jV.ratingSubmittedSnackbarCommand)&&ZV&&ZV.resolveCommand(ED)},
disableDuringSubmission:!0})});
return _.G("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.G(_.P5,{data:function(){var g=_.O(H(),G0Z);if(g){var Q;var u={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:g==null?void 0:(Q=g.note)==null?void 0:Q.headerText}]}],delimiter:"\u2022"}},existingNote:g.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else u=void 0;return u}},{noteViewModel:function(g){return _.G("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.G(S1,{data:g.data}))}}),_.G(_.P5,{data:function(){var g;
return(g=D.data())==null?void 0:g.helpfulnessValue}},{radioButtonGroupViewModel:function(g){return _.G("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.G(_.qWb,{data:g.data,
onSelected:K,selectedKey:b}))}}),_.G(_.E,{cond:N,
then:function(){return _.G("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.G("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.G(_.$7,{text:function(){var g;return(g=D.data())==null?void 0:g.helpfulReasonQuestion}})),_.G(_.P5,{data:function(){var g;
return(g=D.data())==null?void 0:g.helpfulReasons}},{checkboxGroupViewModel:function(g){return _.G(ast,{data:g.data,
onItemTap:U,selectedKeys:T,controlledMode:!0})}}))}}),_.G(_.E,{cond:k,
then:function(){return _.G("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.G("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.G(_.$7,{text:function(){var g;return(g=D.data())==null?void 0:g.notHelpfulReasonQuestion}})),_.G(_.P5,{data:function(){var g;
return(g=D.data())==null?void 0:g.notHelpfulReasons}},{checkboxGroupViewModel:function(g){return _.G(ast,{data:g.data,
onItemTap:J,selectedKeys:S,controlledMode:!0})}}))}}),_.G(_.E,{cond:function(){return!N()&&!k()},
then:function(){return _.G(_.P5,{data:function(){var g;return(g=D.data())==null?void 0:g.helpfulNoteFeatures}},{alertBannerViewModel:function(g){return _.G("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.G(_.zxn,{data:g.data}))}})}}))},"vh"),"yt-note-user-rating-view-model",{props:{data:_.ij}});_.hB(S1,"yt-note-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){var t=_.rF(HXQ,_.qT(function(){var H;return(H=D.data())==null?void 0:H.noteFeedEntityKey},""));
return _.G("yt-notes-wrapper-view-model",{class:_.jQ("ytNotesWrapperViewModelHost")},_.G(_.E,{cond:function(){var H,e,V;return!((H=D.data())==null||!H.existingNotes)||!((e=D.data())==null||!e.currentNote)&&!((V=t())==null||!V.contributorNote)},
then:function(){return _.G(_.FH,null,_.G(_.P5,{data:function(){var H,e,V,b;return((e=_.O((H=D.data())==null?void 0:H.currentNote,EwH))==null?0:(V=e.noteData)==null?0:V.isPublished)?(b=D.data())==null?void 0:b.currentNote:void 0}},{noteViewModel:function(H){return _.G(S1,{data:H.data})}}),_.G(_.P5,{data:function(){var H;
return(H=D.data())==null?void 0:H.existingNotes}},{noteViewModel:function(H){var e=H.data;
return _.G(_.E,{cond:function(){var V,b;return(V=e())==null?void 0:(b=V.noteData)==null?void 0:b.isPublished},
then:function(){return _.G(S1,{data:e})}})}}),_.G(_.P5,{data:function(){var H,e,V,b;
return((e=_.O((H=D.data())==null?void 0:H.currentNote,EwH))==null?0:(V=e.noteData)==null?0:V.isPublished)?void 0:(b=D.data())==null?void 0:b.currentNote}},{noteViewModel:function(H){return _.G(S1,{data:H.data})}}),_.G(_.P5,{data:function(){var H;
return(H=D.data())==null?void 0:H.existingNotes}},{noteViewModel:function(H){var e=H.data;
return _.G(_.E,{cond:function(){var V,b;return!((V=e())==null?0:(b=V.noteData)==null?0:b.isPublished)},
then:function(){return _.G(S1,{data:e})}})}}))},
else:function(){return _.G(_.P5,{data:function(){var H;return(H=D.data())==null?void 0:H.zeroStateData}},{contributorZeroStateViewModel:HGe})}}))},"wh"),"yt-notes-wrapper-view-model",{props:{data:_.ij}});var XZ=_.l(function(D){var t=_.FQ(D,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),H=t.label,e=t.text,V=t.placeholder,b=t.hint;D=t.rows;var a=t.overflowStyle,w=t.outline,h=t.disabled,K=t.disableNewLines,N=t.characterLimit,k=t.validation,T=t.onInput,c=_.DY("textarea");t=_.F(_.rm(function(){return e()}));
var U=t.next().value,S=t.next().value;t=_.F(_.KR(!1,void 0,"u9PDq"));var L=t.next().value,J=t.next().value,g=function(){J(!0)},Q=function(){J(!1)};
_.XH(function(){var g6=c.value,Mu=a(),LQ=U();Mu==="expand-vertically"&&LQ&&a4Z(g6);c.value.addEventListener("focusin",g);c.value.addEventListener("focusout",Q)});
_.Sj(function(){c.value.removeEventListener("focusin",g);c.value.removeEventListener("focusout",Q)});
var u=function(){var g6;return(g6=k())==null?void 0:g6.validate(U())},R=function(){return N()&&!u()&&U().length>N().maxChars},I=function(){return!!u()||R()};
t=_.$X(function(g6){if(!g6.currentTarget)return!1;g6=g6.currentTarget;S(g6.value);a()==="expand-vertically"&&a4Z(g6);T==null||T(g6.value);return!0});
var tT=_.$X(function(g6){K()&&g6.key==="Enter"&&g6.preventDefault();return!1}),ZV=_.$X(function(){c.value.focus()}),ED=function(){return V()||H()},o$={},jV={},i8={};
return _.G("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.G("div",{class:_.jQ("ytStandardsTextareaShapeTextareaContainer",(o$.ytStandardsTextareaShapeTextareaContainerOutline=w,o$.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=h,o$.ytStandardsTextareaShapeTextareaContainerOutlineError=I,o$)),"on:click":ZV},_.G("label",{class:_.jQ("ytStandardsTextareaShapeLabel",(jV.ytStandardsTextareaShapeLabelFocused=L,jV.ytStandardsTextareaShapeLabelDisabled=h,jV.ytStandardsTextareaShapeLabelError=
function(){return I()&&!h()},jV.ytStandardsTextareaShapeLabelHidden=function(){return!L()&&!U()&&!!ED()},jV))},H),_.G("div",{class:_.jQ("ytStandardsTextareaShapePlaceholder",(i8.ytStandardsTextareaShapePlaceholderVisible=function(){return!L()&&!U()},i8)),
"aria-hidden":"true"},ED),_.G("textarea",{el:c,class:"ytStandardsTextareaShapeTextarea",rows:D,disabled:h,placeholder:ED,"on:input":t,"on:keydown":tT},U)),_.G(_.E,{cond:function(){return b()&&!I()},
then:function(){var g6={};return _.G("div",{class:_.jQ("ytStandardsTextareaShapeHint",(g6.ytStandardsTextareaShapeHintDisabled=h,g6))},_.G("div",{class:"ytStandardsTextareaShapeHintHintMessage"},b))}}),_.G(_.E,{cond:u,
then:function(){return _.G(w3H,{disabled:h},_.G("div",{class:"ytStandardsTextareaShapeErrorMessage"},u))}}),_.G(_.E,{cond:N,
then:function(g6){return _.G(_.E,{cond:R,then:function(){return _.G(w3H,{disabled:h},_.G("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return g6().errorMessage}),_.G("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return U().length+"/"+g6().maxChars}))}})}}))},"xh");
XZ.idomCompat={callbacks:{onInput:!0}};var w3H=_.l(function(D){var t={};return _.G("div",{class:_.jQ("ytStandardsTextareaShapeError",(t.ytStandardsTextareaShapeErrorDisabled=D.disabled,t)),role:"alert"},_.G(_.U7,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),D.children)},"yh");_.ZGt=_.l(function(D){var t=D.data;return _.G("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.G(XZ,{text:D.text,label:function(){var H;return(H=t().contentProperties)==null?void 0:H.labelText},
placeholder:function(){var H;return(H=t().contentProperties)==null?void 0:H.placeholderText},
hint:function(){var H;return(H=t().contentProperties)==null?void 0:H.hintText},
outline:function(){var H;return!((H=t().displayProperties)==null?0:H.hideBorder)},
overflowStyle:function(){var H;return((H=t().displayProperties)==null?0:H.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:D.disabled,disableNewLines:function(){var H;return(H=t().displayProperties)==null?void 0:H.disableNewLines},
onInput:D.onInput,characterLimit:D.characterLimit,validation:D.validation,rows:function(){var H;return(H=t().displayProperties)==null?void 0:H.rows}}))},"zh");_.szi=_.l(function(D){var t=D.data;return _.G("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.G(XZ,{text:D.text,label:function(){var H;return(H=t().contentProperties)==null?void 0:H.labelText},
placeholder:function(){var H;return(H=t().contentProperties)==null?void 0:H.placeholderText},
hint:function(){var H;return(H=t().contentProperties)==null?void 0:H.hintText},
outline:function(){var H;return!((H=t().displayProperties)==null?0:H.hideBorder)},
overflowStyle:function(){var H;return((H=t().displayProperties)==null?0:H.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var H;return(H=t().displayProperties)==null?void 0:H.disableNewLines},
onInput:D.onInput,characterLimit:D.characterLimit,validation:D.validation,rows:function(){var H;return(H=t().displayProperties)==null?void 0:H.rows}}))},"Ah");var h6Y=_.l(function(D){var t=_.F(_.rm(function(){var ED,o$;return((ED=D.data().structuredContextNoteFormSchema)==null?0:(o$=ED.initialValues)==null?0:o$.noteBody)?D.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),H=t.next().value,e=t.next().value;
t=_.F(_.rm(function(){D.data();return!1}));
var V=t.next().value,b=t.next().value;t=_.F(_.rm(function(){D.data();return!1}));
var a=t.next().value,w=t.next().value;t=_.F(_.rm(function(){var ED,o$;return((ED=D.data().structuredContextNoteFormSchema)==null?0:(o$=ED.initialValues)==null?0:o$.timestamp)?D.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var h=t.next().value,K=t.next().value;t=_.F(_.rm(function(){D.data();return!1}));
var N=t.next().value,k=t.next().value;t=_.F(_.rm(function(){var ED,o$;return((ED=D.data().structuredContextNoteFormSchema)==null?0:(o$=ED.initialValues)==null?0:o$.sources)?[D.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var T=t.next().value,c=t.next().value;t=_.F(_.rm(function(){D.data();return!1}));
var U=t.next().value,S=t.next().value;t=_.F(_.rm(function(){return!1}));
var L=t.next().value,J=t.next().value;_.XH(function(){var ED;_.jAi((ED=D.data().structuredContextNoteFormSchema)==null?void 0:ED.id,{isSubmitting:L,onSubmit:function(){J(!0);var o$=krt(H(),h(),T(),D.data()),jV=_.qS().resolve(_.aA);o$&&jV&&jV.resolveCommand(o$,{commandController:{onSuccess:function(){J(!1)}}})},
isValid:function(){return V()&&!a()&&!N()&&!U()}})});
var g=function(ED){if(ED!==void 0&&(e(ED),!V()&&ED.length>0&&b(!0),V())){var o$=sPQ(D.data());if(o$){var jV=o$.minLength;o$=o$.maxLength;jV&&ED.length<jV?w(!0):o$&&ED.length>o$?w(!0):w(!1)}}},Q=function(ED){if(ED!==void 0){K(ED);
if(ED.length>0){var o$,jV,i8,g6,Mu=GrO((o$=D.data())==null?void 0:(jV=o$.structuredContextNoteFormSchema)==null?void 0:(i8=jV.fieldSchemas)==null?void 0:(g6=i8.timestamp)==null?void 0:g6.validationSchema);if(Mu&&(o$=Mu.regex)&&!(new RegExp(o$)).test(ED)){k(!0);return}}k(!1)}},u=function(ED){if(ED!==void 0){var o$=ED.split(/[ \n]/).map(function(jV){return jV.trim()});
c(o$);if(ED.length>0)for(ED=_.F(o$),o$=ED.next();!o$.done;o$=ED.next())if(!Nki(o$.value)){S(!0);return}S(!1)}},R=function(){return{validate:function(ED){if(V()){var o$=sPQ(D.data());
if(o$){var jV=o$.minLength;o$=o$.translations;if(jV&&ED.length<jV)return o$==null?void 0:o$.minLengthErrorMessage}}}}},I=function(){var ED=sPQ(D.data()),o$=ED==null?void 0:ED.maxLength,jV;
ED=ED==null?void 0:(jV=ED.translations)==null?void 0:jV.maxLengthErrorMessage;if(o$&&ED)return{maxChars:o$,errorMessage:ED}},tT=function(){return{validate:function(ED){if(ED){var o$,jV,i8,g6,Mu=GrO((o$=D.data())==null?void 0:(jV=o$.structuredContextNoteFormSchema)==null?void 0:(i8=jV.fieldSchemas)==null?void 0:(g6=i8.timestamp)==null?void 0:g6.validationSchema);
if(Mu&&(o$=Mu.regex,Mu=Mu.translations,o$&&!(new RegExp(o$)).test(ED)))return Mu==null?void 0:Mu.regexErrorMessage}}}},ZV=function(){return{validate:function(ED){if(ED){var o$,jV,i8,g6,Mu=KYY((o$=D.data())==null?void 0:(jV=o$.structuredContextNoteFormSchema)==null?void 0:(i8=jV.fieldSchemas)==null?void 0:(g6=i8.sources)==null?void 0:g6.validationSchema);
if(Mu&&(o$=Mu.translations,o$==null?0:o$.selectedErrorMessage))for(ED=ED.split(/[ \n]/).map(function(LQ){return LQ.trim()}),ED=_.F(ED),jV=ED.next();!jV.done;jV=ED.next())if(!Nki(jV.value))return ED=void 0,(ED=o$)==null?void 0:ED.selectedErrorMessage}}}};
return _.G("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.G("div",{class:"ytStructuredContextNoteViewModelTextField"},_.G(_.P5,{data:function(){var ED;return(ED=D.data())==null?void 0:ED.noteContents}},{textFormFieldViewModel:function(ED){return _.G(_.szi,{data:ED.data,
onInput:g,validation:R,characterLimit:I})},
textFieldViewModel:function(ED){return _.G(_.ZGt,{data:ED.data,onInput:g,validation:R,characterLimit:I})}})),_.G("div",{class:"ytStructuredContextNoteViewModelTextField"},_.G(_.P5,{data:function(){var ED;
return(ED=D.data())==null?void 0:ED.noteTimestamp}},{textFormFieldViewModel:function(ED){return _.G(_.szi,{data:ED.data,
onInput:Q,validation:tT})},
textFieldViewModel:function(ED){return _.G(_.ZGt,{data:ED.data,onInput:Q,validation:tT})}})),_.G("div",{class:"ytStructuredContextNoteViewModelTextField"},_.G(_.P5,{data:function(){var ED;
return(ED=D.data())==null?void 0:ED.noteSources}},{textFormFieldViewModel:function(ED){return _.G(_.szi,{data:ED.data,
onInput:u,validation:ZV})},
textFieldViewModel:function(ED){return _.G(_.ZGt,{data:ED.data,onInput:u,validation:ZV})}})))},"Bh");
h6Y.idomCompat=!0;_.hB(h6Y,"yt-structured-context-note-view-model",{props:{data:_.ij}});var GAi=_.l(function(D){var t=_.F(_.rm(function(){var b;if((b=D.controlled)==null?0:b.call(D))return[];var a;return(((a=D.data())==null?void 0:a.chips)||[]).map(function(w){w=_.O(w,_.G6);if(w==null?0:w.selected)return TkF(w.chipValue)}).filter(function(w){return w!==void 0})})),H=t.next().value,e=t.next().value,V=function(b){var a=TkF(b.chipValue);
if(a!==void 0){var w;if((w=D.controlled)==null?0:w.call(D))return void D.controlled().onTap(a);b=H().includes(a)?[].concat(_.A6(H().filter(function(K){return K!==a}))):[].concat(_.A6(H()),[a]);
e(b);var h;if((h=D.uncontrolled)==null?0:h.call(D))D.uncontrolled().onUpdate(b)}};
return _.G("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.G(_.nY,{each:function(){return D.data().chips||[]}},function(b){return _.G("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.G(_.dfv,{data:function(){return _.O(b,_.G6)},
selected:function(){var a;if(a=_.O(b,_.G6)){var w=TkF(a.chipValue);if(w!==void 0){var h;a=((h=D.controlled)==null?0:h.call(D))?D.controlled().selectedValues.includes(w):H().includes(w)}else a=void 0}else a=!1;return a},
callback:V}))}))},"Ch");var ERi=_.l(function(D){var t=D.data;var H=function(){var w;return((w=t())==null?void 0:w.flowStateKey)||""},e=_.rF(_.Dm,H),V=function(){var w;
return(w=_.O(e(),KEF))==null?void 0:w.chips},b=function(w){if(w!==void 0){var h=V()||[];
h=h.find(function(K){return K===w})?h.filter(function(K){return K!==w}):[].concat(_.A6(h),[w]);
h=Object.assign({},e(),{feedbackFormFlowState:Object.assign({},_.O(e(),KEF),{chips:h})});_.bf(_.nf("flowStateEntity",H(),h))}},a=function(){var w;
return _.O((w=t())==null?void 0:w.inputBox,NTe)};
D=_.A_(function(w){var h=a();h=!(h==null?0:h.maxChars)||w.length<=h.maxChars;w=Object.assign({},e(),{feedbackFormFlowState:Object.assign({},_.O(e(),KEF),{detail:w}),abuseReportFlowState:Object.assign({},_.O(e(),DK),{navigationEnabled:h})});_.bf(_.nf("flowStateEntity",H(),w))},150);
return _.G("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.G("div",{class:"ytFeedbackFormViewModelChips"},_.G(_.P5,{data:function(){var w;return(w=t())==null?void 0:w.chipSelection}},{chipSelectionFormFieldViewModel:function(w){return _.G(GAi,{data:w.data,
controlled:function(){return{selectedValues:V()||[],onTap:b}}})}})),_.G("div",{class:"ytFeedbackFormViewModelInputBox"},_.G(XZ,{text:function(){var w;
return(w=_.O(e(),KEF))==null?void 0:w.detail},
placeholder:function(){var w;return((w=a())==null?void 0:w.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var w=a();if(w&&w.maxChars)return{maxChars:w.maxChars,errorMessage:w.maxCharsExceededErrorMessage||""}},
onInput:D})),_.G("div",{class:"ytFeedbackFormViewModelFooterText"},_.G(_.$7,{text:function(){return t().footerText}})))},"Dh");
ERi.idomCompat=!0;_.hB(ERi,"yt-feedback-form-view-model",{props:{data:_.ij}});var KHi=_.l(function(D){var t=D.data;var H=function(){return t().flowStateKey||""},e=_.rF(kWO,H),V=function(){return _.O(e(),DK)},b=function(){if(_.r("enable_gff_accessibility_fix")){var a=!0,w;
if((w=V())==null?0:w.navigationEnabled){var h;_.IQ((h=V())==null?void 0:h.navigationCommand);a=!1}w=Object.assign({},e(),{abuseReportFlowState:Object.assign({},V(),{isReportFormDirty:a})});_.bf(_.nf("flowStateEntity",H(),w))}else _.IQ((a=V())==null?void 0:a.navigationCommand)};
return _.G("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.G("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.G(_.P5,{data:function(){return t().cancelButton}},{buttonViewModel:function(a){return _.G(_.JX,{data:a.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:b})}}),_.G(_.P5,{data:function(){var a;
if(t().navButton){var w=Object;var h=w.assign,K=_.O(t().navButton,_.h1),N=((a=V())==null?0:a.navigationEnabled)||_.r("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",k,T;a=_.O((k=V())==null?void 0:k.navigationCommand,_.dj);k=(T=_.O(a,_.um))==null?void 0:T.url;w={buttonViewModel:h.call(w,{},K,{state:N,iconName:k?"OPEN_IN_NEW":""})}}else w=void 0;return w}},{buttonViewModel:function(a){return _.G(_.JX,{data:a.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:b})}})))},"Eh");
KHi.idomCompat=!0;_.hB(KHi,"yt-report-form-bottom-bar-view-model",{props:{data:_.ij}});var NZF=_.l(function(D){var t=D.nextStep;return _.G("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.G("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.G(_.U7,{icon:function(){return t().iconName||""}})),_.G("div",null,_.G(_.$7,{text:function(){return t().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Fh"),kA4=_.l(function(D){var t=D.data;
var H,e=(H=_.qS().resolve(_.by(_.tB)))==null?void 0:H(),V=_.rF(_.Dm,function(){return t().flowStateKey||""});
return _.G("yt-report-form-confirmation-page-view-model",{class:function(){var b;return((b=_.O(V(),DK))==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.G("div",{class:function(){var b;
return((b=_.O(V(),DK))==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.G(_.bi,{data:function(){return e&&t().imageDark?t().imageDark:t().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.G("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.G("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return t().confirmationHeader}),_.G("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.G(_.$7,{text:function(){return t().confirmationText}})),_.G("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.G(_.$7,{text:function(){return t().lawEnforcementText}})),
_.G("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return t().whatToExpectHeader}),_.G(_.E,{cond:function(){return t().nextSteps},
then:function(b){return _.G("div",null,_.G(_.nY,{each:b},function(a){return _.G(NZF,{nextStep:a})}))}}),_.G(_.E,{cond:function(){return t().legalReportText},
then:function(b){return _.G("div",null,_.G(_.$7,{text:b,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Gh");
kA4.idomCompat=!0;_.hB(kA4,"yt-report-form-confirmation-page-view-model",{props:{data:_.ij}});var TZZ=_.l(function(D){var t=D.data;var H=function(){var b;return((b=_.O(t().inputBox,NTe))==null?void 0:b.maxChars)||500},e=function(){return t().flowStateKey||""},V=_.rF(_.Dm,e);
D=_.A_(function(b){b=Object.assign({},V(),{flowFormState:{isValid:b.length<=H()},abuseReportFlowState:{userComments:b,navigationEnabled:!(b.length>H()),isReportFormDirty:!0}});_.V_().dispatch(_.LP("flowStateEntity",e(),b))},150);
_.XH(function(){var b=Object.assign({},V(),{flowFormState:{isValid:!0}});_.V_().dispatch(_.LP("flowStateEntity",e(),b))});
return _.G("yt-report-form-details-page-view-model",{class:function(){var b;return((b=_.O(V(),DK))==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.G("h1",{class:function(){var b;
return((b=_.O(V(),DK))==null?void 0:b.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return t().detailsPageHeader}),_.G("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.G(_.$7,{text:function(){return t().bodyText}})),_.G("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.G(XZ,{label:function(){var b;
return((b=_.O(t().inputBox,NTe))==null?void 0:b.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var b;return{errorMessage:((b=_.O(t().inputBox,NTe))==null?void 0:b.maxCharsExceededErrorMessage)||"",maxChars:H()}},
onInput:D})))},"Hh");
TZZ.idomCompat=!0;_.hB(TZZ,"yt-report-form-details-page-view-model",{props:{data:_.ij}});var cKg=_.l(function(D){var t=D.data;var H=_.ep("div"),e=function(){return t().flowStateKey||""},V=_.rF(_.Dm,e),b=function(){return _.O(V(),DK)};
_.Mp(function(){var a,w;if(((a=b())==null?0:a.isReportFormDirty)&&((w=b())==null||!w.navigationEnabled)&&_.r("enable_gff_accessibility_fix")){var h;if(((h=b())==null?void 0:h.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var K;(K=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||K.scrollIntoView()}else{var N;(N=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||N.scrollIntoView()}}},"nktJfe");
return _.G("yt-report-form-reason-select-page-view-model",{class:function(){var a;return((a=b())==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.G("h1",{class:function(){var a;
return((a=b())==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return t().pageHeader}),_.G("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.G(_.$7,{text:function(){return t().bodyText}})),_.G("div",{class:function(){var a;
return((a=b())==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.G(_.E,{cond:function(){var a,w;
return((a=b())==null?void 0:a.isReportFormDirty)&&!((w=b())==null?0:w.navigationEnabled)&&_.r("enable_gff_accessibility_fix")},
then:function(){return _.G("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:H},_.G(_.U7,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.G("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return t().emptyReasonSelectErrorMessage}))}}),_.G(_.qWb,{data:function(){return _.O(t().radioButtonGroup,_.to)},
onSelected:function(a,w){a=Object.assign({},V(),{abuseReportFlowState:Object.assign({},b(),{reasonKey:w.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:w.command})});_.bf(_.nf("flowStateEntity",e(),a))},
selectedKey:function(){var a;return(a=b())==null?void 0:a.reasonKey},
groupName:"report-form-reason-select-page"})))},"Jh");
cKg.idomCompat=!0;_.hB(cKg,"yt-report-form-reason-select-page-view-model",{props:{data:_.ij}});var jzt=_.l(function(D){var t=D.data;var H,e=(H=_.qS().resolve(_.by(_.tB)))==null?void 0:H();return _.G("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.G("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.G(_.bi,{data:function(){return e&&t().imageDark?t().imageDark:t().image},
alt:""})),_.G("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.G("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return t().header}),_.G(_.$7,{text:function(){return t().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"Kh");
jzt.idomCompat=!0;_.hB(jzt,"yt-report-form-sign-in-page-view-model",{props:{data:_.ij}});_.$lZ=(0,_.fxF)(_.e1.talkToRecs,{talkToRecsStateSelector:function(D){return D}});_.hB(_.l(function(D){var t=D.data;var H=_.dm(_.$lZ.talkToRecsStateSelector),e=function(){return t().titleSuperscript},V=function(){return t().answersShelf},b=function(){return t().videoShelf},a=function(){var ZV;
return(ZV=t().textInputPlaceholder)==null?void 0:ZV.content},w=function(){return t().showOpenTextInput},h=function(){var ZV;
return(ZV=t().textInputValue)==null?void 0:ZV.content},K=function(){return t().isMultiTurnFlow?t().resetButtonViewModel:void 0},N="",k=function(){return t().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
D=_.F(_.KR("",void 0,"d5Wa4d"));var T=D.next().value,c=D.next().value;D=_.F(_.KR(!1,void 0,"aIzK3e"));var U=D.next().value,S=D.next().value,L=function(){return{state:U()||T()?"active":"disabled",disabled:!(U()||T())}};
_.SG(function(){if(w()){h()&&c(h());var ZV;if(!K()&&((ZV=H())==null?0:ZV.stepStates)){var ED;ZV=Object.keys((ED=H())==null?void 0:ED.stepStates);ED=ZV[ZV.length-1];var o$,jV;(ED=(o$=H().stepStates[ED])==null?void 0:(jV=o$.userQuery)==null?void 0:jV.userQuery)&&c(ED);_.bf(hHi())}}});
_.Sj(function(){_.bf(hHi())});
var J=function(ZV){var ED=t().onUpdateText;ED&&_.IQ(ED,{form:{userQuery:ZV}});c(ZV)},g=_.A_(function(ZV){J(ZV.target.value.trim())},150),Q=_.$X(function(ZV){var ED;
N=(ED=ZV.target.value)==null?void 0:ED.trim();g(ZV);return!1}),u=_.$X(function(ZV){ZV.key==="Enter"&&(U()||T())&&(J(ZV.target.value.trim()),I());
return!1}),R=function(ZV,ED){S(ED);
if(ED){if(t().isMultiTurnFlow&&!N){var o$;J((o$=ZV==null?void 0:ZV.text)!=null?o$:"")}t().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&I()}else c(N)},I=function(){var ZV=void 0,ED=_.O(t().nextButtonViewModel,_.h1),o$,jV;
if(ED==null?0:(o$=ED.loggingDirectives)==null?0:(jV=o$.clientVeSpec)==null?0:jV.uiType){var i8,g6;ZV=_.Nx((i8=ED.loggingDirectives)==null?void 0:(g6=i8.clientVeSpec)==null?void 0:g6.uiType)}(ED=t().onNextStepCommand)&&_.IQ(ED,{clickedVisualElement:ZV})};
D=_.DY("yt-talk-to-recs-view-model");var tT={};return _.G("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:D},_.G("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.G(_.P5,{data:function(){return t().topCornerButton}},{buttonViewModel:_.JX})),_.G("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.G("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.G(_.$7,{text:function(){return t().title}}),_.G(_.E,{cond:e,
then:function(){return _.G("sup",{class:"ytwTalkToRecsSuperScript"},_.G(_.$7,{text:e}))}})),_.G("div",{class:"ytwTalkToRecsSubtitle"},_.G(_.$7,{text:function(){return t().subtitle}})),_.G("div",{class:"ytwTalkToRecsResultsShelf"},_.G(_.E,{cond:V,
then:function(){return _.G(_.P5,{data:V},{chipsShelfViewModel:function(ZV){return _.G("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.G(_.a2,{data:ZV.data,callback:R,selectionBehavior:k}))}})}}),_.G(_.E,{cond:b,
then:function(){return _.G(_.P5,{data:b},{horizontalShelfViewModel:function(ZV){return _.G("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.G(_.hP,{data:ZV.data,thumbnailAspectRatio:0}))}})}})),_.G("div",{class:_.jQ("ytwTalkToRecsRefinementContainer",(tT.ytwTalkToRecsBottomMargin=function(){return t().isMultiTurnFlow},tT))},_.G(_.E,{cond:w,
then:function(){return _.G("div",{class:"ytwTalkToRecsUserInputBox"},_.G("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:a,value:T,"on:input":Q,"on:keyup":u,maxlength:200}))}}),_.G(_.P5,{data:function(){return t().isMultiTurnFlow?t().nextButtonViewModel:void 0}},{buttonViewModel:function(ZV){return _.G("div",{class:"ytwTalkToRecsFlowControlButtons"},_.G(_.JX,{data:ZV.data,
buttonOverrides:L}))}}),_.G(_.P5,{data:K},{buttonViewModel:function(ZV){return _.G("div",{class:"ytwTalkToRecsFlowControlButtons"},_.G(_.JX,{data:ZV.data,
onClick:function(){var ED=_.O(t().resetButtonViewModel,_.h1);J(T());(ED=ED==null?void 0:ED.onTap)&&_.IQ(ED)}}))}}))))},"Lh"),"yt-talk-to-recs-view-model",{props:{data:_.ij}});var cyt={sources:[{clientResource:{imageName:"CHECK"}}]};_.iGZ=_.l(function(D){var t=_.DY("div");D=_.FQ(D,{error:void 0});var H=D.data,e=D.error,V=D.onSelected;D=_.F(_.rm(function(){return iXi(H())}));
var b=D.next().value,a=D.next().value;oVQ(H,function(T){a(T);var c,U,S=$Ot((c=H().options)==null?void 0:(U=c[T])==null?void 0:U.value,H().type);V==null||V(S);t.value.focus()});
D=_.$X(function(){if(!H().disabled){var T=H(),c=b(),U=t.value;T.options&&(T=jPv(T.options,c,T.label),_.qS().resolve(_.Hp).openSheet({viewModel:T},U))}});
var w=_.O4$(),h=function(){return!!e()},K=function(){return!!H().disabled},N={},k={};
return _.G("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.G("div",{class:_.jQ("ytDropdownViewModelDropdownContainer",(N.ytDropdownViewModelDropdownContainerErrorBorder=h,N.ytDropdownViewModelDropdownContainerDisabled=K,N)),"on:click":D,el:t,role:"combobox",tabindex:0,"on:keydown":w,"aria-invalid":h,"aria-disabled":K,"aria-describedby":function(){return h()?"dropdown-view-model-error":void 0}},_.G("div",{class:"ytDropdownViewModelText"},ryv(H,h,b),OXQ(H,b)),_.G("div",{class:_.jQ("ytDropdownViewModelChevronDown",
(k.ytDropdownViewModelChevronDownDisabled=K,k))},_.G(_.U7,{icon:"CHEVRON_DOWN"}))),UOF(H,e))},"Mh");_.hB(_.l(function(D){var t=D.data;var H=function(V){var b=nV4(t());b.videoMetadata||(b.videoMetadata={});b.videoMetadata.sponsorshipsMetadata||(b.videoMetadata.sponsorshipsMetadata={});b.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(V)},e=function(V){var b=nV4(t());
b.scheduledRedirectMetadata||(b.scheduledRedirectMetadata={});b.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(V)};
return _.G("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.G("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.G("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.G(_.$7,{text:function(){return t().title}}),_.G(_.U7,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.G(_.$7,{text:function(){return t().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.G(_.P5,{data:function(){return t().tierChoices}},{dropdownViewModel:function(V){return _.G("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.G(_.iGZ,{data:V.data,
onSelected:H}))}}),_.G(_.P5,{data:function(){return t().startTimeChoices}},{dropdownViewModel:function(V){return _.G("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.G(_.iGZ,{data:V.data,
onSelected:e}))}}),_.G(_.$7,{text:function(){return t().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.G("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.G(_.P5,{data:function(){return t().scheduleButton}},{panelFooterViewModel:_.Mt})))},"Nh"),"ytfz-schedule-fanzone-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){var t=D.data;D=D.className===void 0?"":D.className;var H=_.rF(kWO,function(){return t().flowStateEntityKey||""}),e={};
e=_.jQ("ytFlowBottomBarViewModelFlowBottomBarButtons",(e.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},e));
var V={},b=_.jQ("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",e,(V.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},V.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},V));
V={};var a=_.jQ("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",e,(V.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},V.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},V));
e={};e=_.jQ("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(e.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},e.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},e.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return t().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
e));
D=_.jQ("ytFlowBottomBarViewModelHost",D);return _.G("yt-flow-bottom-bar-view-model",{class:D},_.G(_.E,{cond:function(){var w;return(w=t())==null?void 0:w.textSection},
then:function(w){return _.G("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.G(_.$7,{text:w}))}}),_.G("div",{class:e},_.G(_.P5,{data:function(){return t().secondaryButton}},{buttonViewModel:function(w){return _.G(_.JX,{data:w.data,
className:a})}}),_.G(_.P5,{data:function(){return t().primaryButton}},{buttonViewModel:function(w){return _.G(_.JX,{data:w.data,
className:b,buttonOverrides:function(){var h;return{disabled:!((h=H())==null||!h.primaryButtonDisabled)}}})}})))},"Oh"),"yt-flow-bottom-bar-view-model",{props:{data:_.ij,
className:_.wm}});var rK4="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),fV=function(){var D=_.X.apply(this,arguments)||this;D.enableScrollingFix=!0;D.bottomBar=!1;D.fitContent=!1;return D};
_.P(fV,_.X);_.q=fV.prototype;_.q.ready=function(){_.r("enable_pdp_icon_prefetch")&&_.Z7b(_.qS().resolve(_.D5),0,rK4)};
_.q.focus=function(D){this.topBar?_.Dx(this.topBar,D):this.paperDialog.focus(D)};
_.q.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19127_scroller&&(this.JSC$19127_scroller.dialogElement=this.paperDialog,this.JSC$19127_scroller.attached&&typeof this.JSC$19127_scroller.attached==="function"&&this.JSC$19127_scroller.attached())};
_.q.onDataChanged=function(){var D;this.fitContent=!((D=this.data)==null||!D.fitContent);var t;this.bottomBar=!((t=this.data)==null||!t.bottomBar)};
_.q.onProgressChanged=function(){var D,t,H=((t=(D=this.data)==null?void 0:D.progress)!=null?t:0)*100;this.progressElement.style.width=H+"%"};
_.q.isProgressHidden=function(){var D;return!((D=this.data)==null?0:D.progress)};
_.q.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",
reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",
params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},
flowBottomBarRenderer:{matcher:function(D){return D&&!D.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
fV.prototype.onProgressChanged=fV.prototype.onProgressChanged;fV.prototype.onDataChanged=fV.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],fV.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],fV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],fV.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],fV.prototype,"enableScrollingFix",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],fV.prototype,"bottomBar",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],fV.prototype,"fitContent",void 0);_.d([_.o5("#progress"),_.x("design:type",HTMLElement)],fV.prototype,"progressElement",void 0);_.d([_.o5("#scroller"),_.x("design:type",Object)],fV.prototype,"JSC$19127_scroller",void 0);_.d([_.o5("ytd-flow-top-bar-renderer"),_.x("design:type",HTMLElement)],fV.prototype,"topBar",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fV.prototype,"onDataChanged",null);_.d([_.Os("data.progress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fV.prototype,"onProgressChanged",null);_.d([_.Y({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],fV);
_.p(fV,"ytd-flow-step-renderer",function(){if(D1e!==void 0)return D1e;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return D1e=D},{mode:1});var LV=function(D){this.resolveCommand=D;this.steps={}},OGY=function(D,t){t=_.F(t||[]);
for(var H=t.next();!H.done;H=t.next()){H=H.value;var e=Object.values(H)[0],V=void 0;if((V=e)==null?0:V.stepId)D.steps[e.stepId]=H}},PoF=function(D,t){var H,e,V,b,a;
return _.Z(function(w){if((H=D.state)==null||!H.currentStepId)return w.return(void 0);e=Ulv(D);if(!e)return w.return(oRe(D));if(V=_.O(e,_.jRt)){var h;((h=V.screenLoggingData)==null?0:h.screenVeType)&&_.Li(_.Pc(),V.screenLoggingData.screenVeType);((b=V)==null?0:b.onStepStartCommand)&&D.resolveCommand((a=V)==null?void 0:a.onStepStartCommand,{})}if(V&&t){h=V;var K,N,k,T;((K=t.flowLoggingData)==null?0:K.eventNamespace)&&((N=h.flowEventData)==null?0:N.eventType)&&((k=h.flowEventData)==null?0:k.eventMetadata)&&
((T=t.flowLoggingData)==null?0:T.flowType)&&(K=_.c7(t.flowLoggingData.eventNamespace,h.flowEventData.eventType,h.flowEventData.eventMetadata),_.jo(_.$g(),K,t.flowLoggingData.flowType));t.steps&&!t.steps.includes(e)&&t.steps.push(e)}return w.return(e)})};
LV.prototype.back=function(){var D;(D=this.state)!=null&&D.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
LV.prototype.handleUpdateFlowCommand=function(D){D.steps&&OGY(this,D.steps);D.entityUpdateCommand&&this.resolveCommand(D.entityUpdateCommand,{});D.flowContinuationCommand&&(D=D.flowContinuationCommand)&&(this.getFlowContinuationCommand=D);this.awaitFlowContinuation&&(this.awaitFlowContinuation(Ulv(this)),this.awaitFlowContinuation=void 0)};
LV.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var oRe=function(D){return _.Z(function(t){return D.getFlowContinuationCommand?t.return(new Promise(function(H){D.awaitFlowContinuation=H;D.getFlowContinuationCommand&&D.resolveCommand(D.getFlowContinuationCommand,{flow_state:D.state})})):t.return(Promise.resolve(void 0))})},Ulv=function(D){var t;
if((t=D.state)!=null&&t.currentStepId)return D.steps[D.state.currentStepId]};
_.ql.Object.defineProperties(LV.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.state)==null?void 0:D.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.state)!=null&&D.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(t,H){H.key&&H.value&&(t[H.key]=H.value);return t},{})}}});var Ao=function(){var D=_.X.apply(this,arguments)||this;D.flowState=new LV(function(t,H){H=H===void 0?{}:H;_.$P.instance.resolveCommand(t,{form:{form:H,element:D.hostElement}})});
D.initialState=!0;D.isLoading=!1;D.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"};D.containsTalkToRecs=!1;return D};
_.P(Ao,_.X);_.q=Ao.prototype;_.q.onPopupClosed=function(D){D&&this.hostElement!==D.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.q.configureRendererStamper=function(){return{"data.topBar":{id:"root-top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.q.focus=function(D){var t=this;_.BT(function(){var H=_.Kg(t.hostElement).querySelector("ytd-flow-step-renderer");(H==null?0:H.topBar)?H.focus(D):t.topBar&&_.Dx(t.topBar,D)},1)};
_.q.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.q.computeTopBarHidden=function(D){var t;return!((t=_.O(D,_.jRt))==null||!t.topBarOverride)};
_.q.dataChanged=function(){var D=this,t,H;return _.Z(function(e){if(e.nextAddress==1){((t=D.data)==null?0:t.steps)&&OGY(D.flowState,D.data.steps);if((H=D.data)==null?0:H.flowContinuationCommand){var V=D.flowState,b=D.data.flowContinuationCommand;b&&(V.getFlowContinuationCommand=b)}return e.yield(PoF(D.flowState,D.data),2)}D.currentFlowStep=e.yieldResult;_.n2(e)})};
_.q.flowChanged=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1){if(!D.flow)return H.return();D.flowState.state=D.flow;D.isLoading=!0;return H.yield(PoF(D.flowState,D.data),2)}t=H.yieldResult;if(!t||D.flow.isLoading)return H.return();D.currentFlowStep=t;D.initialState=!1;D.isLoading=!1;D.autofocusAndRefit();D.updateContainsTalkToRecs();_.n2(H)})};
_.q.updateContainsTalkToRecs=function(){var D,t=(D=_.O(this.currentFlowStep,_.jRt))==null?void 0:D.content;this.containsTalkToRecs=!!t&&!!_.O(t,$zQ)};
_.q.autofocusAndRefit=function(){var D=this,t=_.qS().resolve(_.by(_.S8)),H=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),e=document.querySelector("yt-report-form-confirmation-page-view-model"),V=document.querySelector("yt-report-form-details-page-view-model"),b=document.querySelector("yt-report-form-reason-select-page-view-model"),a=document.querySelector("yt-contributor-zero-state-view-model"),
w=document.querySelector("yt-structured-context-note-view-model"),h=document.querySelector("yt-note-view-model");(!H&&t&&t.isKeyBoardInUse()||e||!H&&V||!H&&b||a||w||h)&&_.tp(this.hostElement);_.Vi(this,function(){_.Gf(D.hostElement,"yt-refit")})};
_.q.handleUpdateFlowCommand=function(D){this.data&&(D=_.O(D,cpe),D.targetId===this.data.targetId&&(D.flowContinuationCommand&&(this.data.flowContinuationCommand=D.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(D),this.autofocusAndRefit()))};
_.q.handleFlowNextStepCommand=function(D){this.data&&this.flow&&this.flow.key&&(D=_.O(D,k0Z),D.targetId===this.data.targetId&&(D=D.stepId||"",this.ytdReduxBehavior.dispatch(_.LP("flowStateEntity",this.flow.key,{currentStepId:D,stepIdStack:(this.flow.stepIdStack||[]).concat(D)}))))};
_.q.handleFlowPrevStepCommand=function(D){if(this.data&&this.flow&&this.flow.key&&(D=_.O(D,TT4),D.targetId===this.data.targetId)){var t=[].concat(_.A6(this.flow.stepIdStack||[]));t.length>1?(t.pop(),this.ytdReduxBehavior.dispatch(_.LP("flowStateEntity",this.flow.key,{currentStepId:t[t.length-1],stepIdStack:t}))):D.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(D.onFirstStepCommand)}};
_.q.handleYpcCancelRecurrenceCommand=function(D){if(this.data&&this.flow&&this.flow.key&&(D=_.O(D,owZ),D.targetId===this.data.targetId&&D.endpointCommand)){var t=_.O(this.flow,Pmb);t&&_.O(D.endpointCommand,_.IMv)&&(_.O(D.endpointCommand,_.IMv).feedbackData=t.surveyFeedback);this.ytComponentBehavior.resolveCommand(D.endpointCommand)}};
_.q.handlePartialUpdateFlowStateEntity=function(D){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.LP("flowStateEntity",this.flow.key,D,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
Ao.prototype.flowChanged=Ao.prototype.flowChanged;Ao.prototype.dataChanged=Ao.prototype.dataChanged;Ao.prototype.onPopupClosed=Ao.prototype.onPopupClosed;_.d([_.C(_.sx),_.x("design:type",Object)],Ao.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Ao.prototype,"ytComponentBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Ao.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ao.prototype,"initialState",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ao.prototype,"isLoading",void 0);_.d([_.M(),_.x("design:type",Object)],Ao.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],Ao.prototype,"currentFlowStep",void 0);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ao.prototype,"onPopupClosed",null);_.d([_.M({selectorArgs:["data.flowStateEntityKey"],selector:kWO}),_.x("design:type",Object)],Ao.prototype,"flow",void 0);_.d([_.o5("ytd-flow-top-bar-renderer"),_.x("design:type",HTMLElement)],Ao.prototype,"topBar",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],Ao.prototype,"dataChanged",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ao.prototype,"containsTalkToRecs",void 0);_.d([_.mx("flow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],Ao.prototype,"flowChanged",null);_.d([_.Y({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],Ao);
_.nRe=_.E_()(Ao,"ytd-flow-root-renderer",function(){if(zHF!==void 0)return zHF;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="root-top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return zHF=D},{mode:_.Kz("kevlar_poly_si_batch_j025")?1:2});var CoF;var B2=null;_.hB(_.l(function(D){return _.G("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.G("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.G(_.$7,{text:function(){return D.data().text}}),_.G("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Ph"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.ij}});var mlH=_.l(function(D){var t=D.playerControlsProps;var H=D.isShortsPage;return _.G("yt-bigboard",null,_.G(_.E,{cond:function(){return t().isDragging},
then:function(){return _.G("div",{class:"ytBigboardStoryboardHost"},_.G(_.HR4,{progressBarProps:t,isShortsPage:H}))}}))},"Qh");
mlH.idomCompat=!0;_.g5={ACCOUNT_LABEL:zJ("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:zJ("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:zJ("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:zJ("AD_BADGE_HINT"),AD_BADGE_TEXT:zJ("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:zJ("ALL_CHANNELS_LABEL"),AMBIENT_MODE:zJ("AMBIENT_MODE"),AMBIENT_MODE_OFF:zJ("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:zJ("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:zJ("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:zJ("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:zJ("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:zJ("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:zJ("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:zJ("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:zJ("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:zJ("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:zJ("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:zJ("AUTO_ZOOM","Auto zoom"),BACK:zJ("BACK"),CANCEL:zJ("CANCEL"),CHANNEL_SWITCHER_LABEL:zJ("CHANNEL_SWITCHER_LABEL"),CLOSE:zJ("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:zJ("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:zJ("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:zJ("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:zJ("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:zJ("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:zJ("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:zJ("COMMENT_MODAL_CONTENT"),CONFIRM_OK:zJ("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:zJ("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:zJ("COPIED_TO_CLIPBOARD"),COPY:zJ("COPY"),COPY_DEBUG_INFO:zJ("COPY_DEBUG_INFO"),COPY_EMBED_CODE:zJ("COPY_EMBED_CODE"),
COPY_LINK_LABEL:zJ("COPY_LINK_LABEL"),COPY_VIDEO_URL:zJ("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:zJ("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:zJ("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:zJ("DELETE_FROM_DOWNLOADS"),DIALOG:zJ("DIALOG"),DONE:zJ("DONE"),DOWNLOAD:zJ("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:zJ("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:zJ("FLAG_CONFIRM"),FLAG_CONTENT:zJ("FLAG_CONTENT"),FLAG_LABEL:zJ("FLAG_LABEL"),FLAG_TITLE:zJ("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:zJ("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:zJ("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:zJ("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:zJ("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:zJ("HIDE_SEARCH_FILTERS_LABEL"),HOME:zJ("HOME","Home"),INVALID_RESPONSE_RECEIVED:zJ("INVALID_RESPONSE_RECEIVED"),LIBRARY:zJ("LIBRARY","Library"),LISTENING:zJ("LISTENING"),LOADING:zJ("LOADING"),LONG_PRESS_MIC_TO_SPEAK:zJ("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:zJ("LOOP"),MENU_DESKTOP:zJ("MENU_DESKTOP"),
MENU_EXIT:zJ("MENU_EXIT"),MENU_FEEDBACK:zJ("MENU_FEEDBACK"),MENU_HELP:zJ("MENU_HELP"),MENU_IMPRESSUM:zJ("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:zJ("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:zJ("MENU_SETTINGS"),MENU_SIGN_IN:zJ("MENU_SIGN_IN"),MENU_TITLE:zJ("MENU_TITLE"),MENU_YOUR_DATA:zJ("MENU_YOUR_DATA"),MORE_INFO:zJ("MORE_INFO"),MORE_OPTIONS:zJ("MORE_OPTIONS"),MUTE_VOLUME:zJ("MUTE_VOLUME"),NEW_PLAYLIST:zJ("NEW_PLAYLIST"),NEXT_VIDEO:zJ("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:zJ("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:zJ("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:zJ("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:zJ("NOT_FOUND_TITLE"),NO_DOWNLOADS:zJ("NO_DOWNLOADS"),NO_MIC_INPUT:zJ("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:zJ("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:zJ("OOPS_MESSAGE"),OPEN_APP:zJ("OPEN_APP"),OPEN_YOUTUBE:zJ("OPEN_YOUTUBE"),PAUSE:zJ("PAUSE"),PLAY:zJ("PLAY"),PLAYER_CAPTION:zJ("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:zJ("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:zJ("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:zJ("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:zJ("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:zJ("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:zJ("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:zJ("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:zJ("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:zJ("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:zJ("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:zJ("PLAYER_MINIMIZE"),PLAYER_NEXT:zJ("PLAYER_NEXT"),PLAYER_PAUSE:zJ("PLAYER_PAUSE"),PLAYER_PLAY:zJ("PLAYER_PLAY"),
PLAYER_PREVIOUS:zJ("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:zJ("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:zJ("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:zJ("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:zJ("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:zJ("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:zJ("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:zJ("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:zJ("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:zJ("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:zJ("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:zJ("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:zJ("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:zJ("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:zJ("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:zJ("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:zJ("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:zJ("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:zJ("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:zJ("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:zJ("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:zJ("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:zJ("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:zJ("PLAY_ALL"),PLEASE_FIX_ERRORS:zJ("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:zJ("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:zJ("PREVIOUS_VIDEO"),PRIVACY_POLICY:zJ("PRIVACY_POLICY"),RELOAD:zJ("RELOAD"),REQUIRED_LABEL:zJ("REQUIRED_LABEL"),SAVE_PLAYLIST:zJ("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:zJ("SCRUB_SLIDE_USER_EDU"),SEARCH:zJ("SEARCH","Search"),
SEARCH_APPEND_LABEL:zJ("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:zJ("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:zJ("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:zJ("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:zJ("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:zJ("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:zJ("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:zJ("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:zJ("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:zJ("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:zJ("SEEK_SLIDER"),SETTINGS_LABEL:zJ("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:zJ("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:zJ("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:zJ("SHOW_LESS"),SHOW_MORE:zJ("SHOW_MORE"),SHOW_PLAYER_CONTROLS:zJ("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:zJ("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:zJ("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:zJ("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:zJ("SIGN_IN_ON_WEB"),STABLE_VOLUME:zJ("STABLE_VOLUME"),STABLE_VOLUME_OFF:zJ("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:zJ("STABLE_VOLUME_ON"),STATS_FOR_NERDS:zJ("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:zJ("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:zJ("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:zJ("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:zJ("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:zJ("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:zJ("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:zJ("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:zJ("TIMESTAMP_SECONDS"),TOGGLE_OFF:zJ("TOGGLE_OFF"),TOGGLE_ON:zJ("TOGGLE_ON"),TRENDING:zJ("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:zJ("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:zJ("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:zJ("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:zJ("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:zJ("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:zJ("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:zJ("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:zJ("VIDEO_LINK_LABEL")};var M7e=_.l(function(D){var t=D.playerApi;D=_.DY("button",function(e){_.O6(e,36843)});
var H=zJ("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.G("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.G("button",{el:D,class:"ytPlayerControlsJumpForwardButtonButton",title:H,"aria-label":H,"on:click":_.$X(function(){_.U6(36843);t&&t().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.G("span",null,_.G(_.U7,{icon:"FAST_FORWARD"}))))},"Rh");var SWF=_.l(function(D){var t=D.appApi;D=_.DY("button",function(e){_.O6(e,62946)});
var H=zJ("OPEN_IN_MINIPLAYER");return _.G("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.G("button",{el:D,class:"ytMiniplayerButtonButton",title:H,"aria-label":H,"on:click":_.$X(function(){_.U6(62946);var e,V;(V=(e=t()).openInMiniplayer)==null||V.call(e);return!1})},_.G(_.U7,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Sh");var X3i=_.l(function(D){var t=D.playerApi;D=_.DY("button",function(b){_.O6(b,142812)});
var H=_.F(_.KR(!1,void 0,"eOMRAb")),e=H.next().value,V=H.next().value;H=function(){return zJ("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(e()?1:2)})};
return _.G("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.G("button",{el:D,class:"ytPlaybackSpeedButtonButton",title:H,"aria-label":H,"on:click":_.$X(function(){_.U6(142812);if(t){var b=t(),a=e();b.setPlaybackRate(a?1:2);V(!e())}return!1})},_.G("span",null,_.G(_.U7,{icon:function(){return e()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Th");var fsF=_.l(function(D){var t=D.title;var H=D.ariaLabel;var e=D.icon;var V=D.command;var b=D.veType;D=_.DY("button",function(a){b&&_.O6(a,b())});
return _.G("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.G("button",{el:D,class:"ytdThumbnailOverlayButtonButton",title:t,"aria-label":H,"on:click":_.$X(function(){b&&_.U6(b());V&&_.qS().resolve(_.aA).resolveCommand(V())})},_.G(_.U7,{icon:e})))},"Uh");var da="";var LH4=_.l(function(D){var t=D.playerControlsProps,H=D.onClickFn;D=_.jj(function(){var b=t(),a=-1;b.captionsAvailable&&(a=b.captionsEnabled?1:0);return a},void 0,"MZ0Wqe");
var e=_.jj(function(){var b=t();return b.captionsAvailable?_.OT(b.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.OT("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),V=_.jj(function(){var b=t();
b=b.captionsAvailable?b.captionsEnabled:void 0;return b},void 0,"fhuQRe");
return _.G("yt-closed-captions-toggle-button",null,_.G(_.lvF,{captionIconType:D,ariaLabel:e,ariaPressed:V,onClick:function(b){var a=t();if(a.captionsAvailable){var w=a.playerApi;if(w){var h=a.playerApi;if(h){var K=da;if(K){h=h.getOption("captions","track");var N;da=(N=h?h.displayName:null)!=null?N:K}else _.ra(h)?(K=_.z3K(h),da=K.length?(N=$Sv(K))?N.displayName:K[0].displayName:""):da=""}iZY(w);_.r("mweb_disable_set_state_captions_killswitch")&&a.setState({captionsEnabled:!a.captionsEnabled})}}var k,
T;(T=(k=a.appApi).showCaptionsToggleToast)==null||T.call(k,a);H==null||H(b)},
isOverlay:!0}))},"Vh");var AK4=_.l(function(D){var t=D.data;return _.G("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.G(_.hr,{data:function(){return{type:17,text:_.jpT(t().label)}}}))},"Wh");var gRH=_.l(function(D){var t=_.jQ("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return D.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return D.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return D.size()==="small"?D.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
D.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.G("animated-seek-arrows",{class:_.jQ("ytPlayerControlsAnimatedSeekArrowsHost")},_.G("span",{class:t}),_.G("span",{class:t}),_.G("span",{class:t}))},"Xh");
gRH.idomCompat=!0;var JKZ=_.l(function(){var D=_.OT("PLAYER_SECONDS",{seconds_placeholder:"30"}),t=_.F(_.KR(!1,void 0,"iRJu8c")),H=t.next().value,e=t.next().value,V=_.F(_.KR(!1,void 0,"MPnizf"));t=V.next().value;var b=V.next().value;V={};var a=_.jQ("jumpForwardOverlayOverlay",(V.jumpForwardOverlayOverlayHidden=t,V));_.XH(function(){var w=null,h=null,K=function(){w!==null&&_.Cs().cancelJob(w);h!==null&&_.Cs().cancelJob(h);b(!0);e(!0);_.kX(_.Cs(),function(){b(!1)});
w=_.kX(_.Cs(),function(){b(!0);h=_.kX(_.Cs(),function(){e(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",K);_.Sj(function(){window.removeEventListener("jump-forward-clicked",K)})});
return _.G("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.G(_.E,{cond:H,then:function(){return _.G("div",{class:a},_.G(gRH,{direction:1,size:"large"}),_.G("div",null,D))}}))},"Yh");var YWv=_.g5.MUTE_VOLUME,lse=_.g5.UNMUTE_VOLUME,vRF=_.l(function(D){var t=D.muteIconType;var H=D.onClick;var e=D.useOutlineIcon;var V=D.useDelhiIcons;D=_.DY("button",function(w){_.O6(w,28662)});
var b=function(){var w=t(),h=e==null?void 0:e(),K=V==null?void 0:V(),N="",k="";switch(w){case -1:case 0:N=h?"VOLUME_OFF":K?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";k=lse;break;case 1:N=h?"VOLUME_UP_OUTLINE":K?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";k=YWv;break;case 2:N=h?"VOLUME_DOWN_OUTLINE":K?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";k=YWv;break;default:_.xv(w)}return{iconName:N,ariaLabel:k}},a=function(){return b().ariaLabel};
return _.G("ytm-mute-button",{class:"ytmMuteButtonHost"},_.G("button",{el:D,class:"ytmMuteButtonButton",title:a,"aria-label":a,"on:click":_.$X(function(w){_.U6(28662);H==null||H(w);return!1})},_.G("span",null,_.G(_.U7,{icon:function(){return b().iconName}}))))},"Zh");var p3g=_.l(function(D){var t=D.volumeProps;var H=D.onClickFn;var e=D.useOutlineIcon;var V=D.useDelhiIcons;return _.G("yt-mute-toggle-button",null,_.G(vRF,{muteIconType:function(){var b=t();return b.volumeMuted||b.volume===0?0:b.volume>50?1:2},
onClick:function(b){var a=t().playerApi;a&&(a.isMuted()?a.unMute():a.mute(!1));H==null||H(b)},
useOutlineIcon:function(){return!(e==null||!e())},
useDelhiIcons:function(){return!(V==null||!V())}}))},"$h");
p3g.idomCompat=!0;var dlt=_.l(function(D){var t=D.data;var H=_.DY("ytm-paid-content-overlay-renderer");return _.G("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:H,"on:animationend":_.$X(function(){H.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.G(_.XW,{command:function(){return t().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.G(_.E,{cond:function(){var e;return(e=t().icon)==null?void 0:e.iconType},
then:function(){return _.G("span",null,_.G(_.U7,{icon:function(){var e;return(e=t().icon)==null?void 0:e.iconType}}))}}),_.G("div",{class:"ytmPaidContentOverlayText"},_.G(_.$7,{text:function(){return t().text}})),_.G(_.E,{cond:function(){return t().navigationEndpoint},
then:function(){return _.G(_.U7,{icon:"CHEVRON_RIGHT"})}})))},"ai");
dlt.idomCompat=!0;var xOF=[].concat(_.A6([{register:function(D){var t=t4g(D),H;(H=D().playerApi)==null||H.addEventListener("onVolumeChange",t);return function(){}}},
{register:function(D){var t=H7Z(D);D=D().playerApi;D==null||D.addEventListener("captionschanged",t);D==null||D.addEventListener("captionssettingschanged",t);D==null||D.addEventListener("onCaptionsTrackListChanged",t);return function(){}}},
{register:function(D){if(!_.r("mweb_screenreader_accessible_player"))return function(){};
var t=eHF(D),H=document.querySelector("video");H==null||H.addEventListener("touchend",t);return function(){H==null||H.removeEventListener("touchend",t)}}},
{register:function(D){if(!_.r("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var t=eHF(D),H=document.querySelector("video");H==null||H.addEventListener("focus",t);return function(){H==null||H.removeEventListener("focus",t)}}}]),[{register:function(D){var t=yyY(D),H;
(H=D().playerApi)==null||H.addEventListener("onStateChange",t);return function(){}}},
{register:function(D){var t=BkF(D),H;(H=D().playerApi)==null||H.addEventListener("onPlaybackRateChange",t);return function(){}}},
{register:function(D){var t=zXF(D),H;(H=D().playerApi)==null||H.addEventListener("onVideoDataChange",t);return function(){}}},
{register:function(D){var t=DzO(D),H,e;(H=D())==null||(e=H.playerApi)==null||e.addEventListener("onVideoProgress",t);return function(){}}}]);var xlg=_.l(function(D){var t=D.data;var H=function(){return _.OT("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+t().playbackRate})};
return _.G(_.E,{cond:function(){return t().playbackRate&&t().playbackRate!==1},
then:function(){return _.G("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.G("div",{class:"ytPlaybackRateOverlayOverlay"},_.G(gRH,{direction:1,size:"small"}),_.G("div",{class:"ytPlaybackRateOverlayLabel"},H)))}})},"ci");var R6Y=_.l(function(D){var t=D.data;return _.G("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.G(_.E,{cond:function(){var H,e=(H=t())==null?void 0:H.playerResponse,V;return e==null?void 0:(V=e.paidContentOverlay)==null?void 0:V.paidContentOverlayRenderer},
then:function(H){return _.G(dlt,{data:H})}}))},"ei"),uuH=_.l(function(D){var t=D.props;
var H=D.data;var e=D.options;var V=function(){var K,N,k,T;return(K=H())==null?void 0:(N=K.playerResponse)==null?void 0:(k=N.playerConfig)==null?void 0:(T=k.inlinePlaybackConfig)==null?void 0:T.showAudioControls},b=function(){var K,N;
if(V()&&((K=e())==null?void 0:(N=K.additionalButton)==null?void 0:N.button)!==void 0){var k,T,c;K=(k=H())==null?void 0:(T=k.playerApi)==null?void 0:(c=T.getSize())==null?void 0:c.height;if(!(K===void 0||K<180)){var U,S;return(U=e())==null?void 0:(S=U.additionalButton)==null?void 0:S.button}}},a=function(){var K,N;
return(K=e())==null?void 0:(N=K.additionalButton)==null?void 0:N.thumbnailOverlayButtonRenderers},w=function(){var K,N;
return(K=e())==null?void 0:(N=K.additionalButton)==null?void 0:N.thumbnailOverlayButtonViewModels},h=function(){var K=[_.G(p3g,{volumeProps:t}),
_.G(LH4,{playerControlsProps:t})];b()===1&&K.push(_.G(M7e,{playerApi:function(){return t().playerApi}}));
b()===2&&K.push(_.G(SWF,{appApi:function(){return t().appApi}}));
b()===3&&K.push(_.G(X3i,{playerApi:function(){return t().playerApi}}));
var N=a();if(b()===4&&N){N=_.F(N);for(var k=N.next(),T={};!k.done;T={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$591:void 0},k=N.next()){k=k.value;T.tooltip$jscomp$2=k.tooltip;var c=void 0,U=void 0;T.ariaLabel$jscomp$20=((c=k.accessibility)==null?void 0:(U=c.accessibilityData)==null?void 0:U.label)||T.tooltip$jscomp$2;c=void 0;T.icon$jscomp$51=(c=k.icon)==null?void 0:c.iconType;T.command$jscomp$591=k.command;T.tooltip$jscomp$2&&T.ariaLabel$jscomp$20&&T.icon$jscomp$51&&
K.push(_.G(fsF,{title:function(S){return function(){return S.tooltip$jscomp$2}}(T),
ariaLabel:function(S){return function(){return S.ariaLabel$jscomp$20}}(T),
icon:function(S){return function(){return S.icon$jscomp$51}}(T),
command:function(S){return function(){return S.command$jscomp$591}}(T)}))}}N=w();
if(b()===4&&N)for(N=_.F(N),k=N.next(),T={};!k.done;T={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$52:void 0,command$jscomp$592:void 0},k=N.next())k=k.value,T.tooltip$jscomp$3=k.title,T.ariaLabel$jscomp$21=k.accessibilityText||T.tooltip$jscomp$3,T.icon$jscomp$52=k.iconName,T.command$jscomp$592=_.xP(k.onTap),T.tooltip$jscomp$3&&T.ariaLabel$jscomp$21&&T.icon$jscomp$52&&K.push(_.G(fsF,{title:function(S){return function(){return S.tooltip$jscomp$3}}(T),
ariaLabel:function(S){return function(){return S.ariaLabel$jscomp$21}}(T),
icon:function(S){return function(){return S.icon$jscomp$52}}(T),
command:function(S){return function(){return S.command$jscomp$592}}(T)}));
return K};
return _.G(_.E,{cond:V,then:function(){return _.G("div",{class:"ytInlinePlayerControlsTopRightControls"},_.G(_.nY,{each:h},function(K){return _.G("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.G("div",{class:"ytInlinePlayerControlsButtonIcon"},K))}))}})},"fi"),QzO=_.l(function(D){var t=D.props;
var H=D.data;var e=D.options;D={};D=_.jQ("ytInlinePlayerControlsBottomRightControls",(D.ytInlinePlayerControlsBottomRightControlsHidden=function(){var V;return b7H(H(),e())&&((V=e())==null?void 0:V.insetProgressBar)&&(t().isHovering||t().isDragging)},D));
return _.G("div",{class:D},_.G(WHi,{data:H}),_.G(_.E,{cond:function(){var V;return!((V=e())==null?0:V.hideTimeDisplay)},
then:function(){return _.G(Is4,{props:t,data:H})}}))},"gi"),WHi=_.l(function(D){var t=D.data;
return _.G(_.P5,{data:function(){var H;return peb((H=t())==null?void 0:H.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:AK4})},"hi"),Is4=_.l(function(D){var t=D.props;
var H=D.data;return _.G(_.E,{cond:function(){return t().isLive},
then:function(){return _.G(yKv,null)},
else:function(){return _.G(BZF,{props:t,data:H})}})},"ii"),BZF=_.l(function(D){var t=D.props;
var H=D.data;var e=_.jj(function(){var V;return dOZ((V=H())==null?void 0:V.thumbnailOverlays)},void 0,"tLs0gd");
return _.G("div",{class:_.jQ("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.g5.PLAYER_TIME_ELAPSED+" "+_.wQ6(t().playedTime)}},_.G(_.hr,{data:function(){var V=_.wQ6(t().videoDuration-t().playedTime);
return Object.assign({},{type:17,text:V},e())}}))},"ji"),yKv=_.l(function(){var D=_.jQ("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.G("div",{class:D},_.G(_.hr,{data:{type:18,text:_.g5.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"ki"),z6F=_.l(function(D){var t=D.props;
var H=D.data;var e=D.options;return _.G(_.a_Z,{progressBarProps:t,config:function(){var V,b=_.O((V=H())==null?void 0:V.multiMarkersPlayerBar,_.jy4),a;V=((a=e())==null?0:a.insetProgressBar)?2:1;var w;a=(w=e())==null?void 0:w.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:V,chapterData:b,isInlinePlayback:!0,doSeekOnClick:a,playheadDotBehavior:a?1:0}}})},"li");_.hB(_.l(function(D){var t=D.data;var H=D.appApi;var e=D.options;var V=QPi(t,V4H(H));D={};H={};return _.G("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.G("div",{class:_.jQ("ytInlinePlayerControlsDarkenedOverlay",(D.ytInlinePlayerControlsDarkenedOverlayShow=function(){return V().isHovering},D))}),_.G(JKZ,null),_.G(xlg,{data:V}),_.G(R6Y,{data:t}),_.G(mlH,{playerControlsProps:V,
isShortsPage:!1}),_.G("div",{class:_.jQ((H.ytInlinePlayerControlsControlsHidden=function(){return V().isDragging},H))},_.G(uuH,{props:V,
data:t,options:e}),_.G(QzO,{props:V,data:t,options:e})),_.G(_.E,{cond:function(){return b7H(t(),e())},
then:function(){return _.G(z6F,{props:V,data:t,options:e})}}))},"di"),"yt-inline-player-controls",{props:{data:_.ij,
appApi:_.wm,options:_.ij}});var Jo=function(){var D=_.X.apply(this,arguments)||this;D.opts=null;D.playerControlsData=null;D.playerControlsAppApi={openInMiniplayer:function(){D.openInMiniplayer()}};
D.playerControlsOptions={};D.noAnimation=!1;D.playbackIntentTriggered=!1;D.positionData=null;D.hidden=!0;D.active=!1;D.playing=!1;D.videoPreviewDataIndex=0;D.JSC$19185_playerPromise=null;D.player=null;D.enableAudioControls=!1;D.hasBeenUnmuted=!1;D.captionsHaveBeenTurnedOff=!1;D.JSC$19185_playerEvents=new Map;D.videoPreviewFetchRequest=null;D.scheduledPreviewEndJobId=null;D.JSC$19185_preventProgressSaveTimer=null;D.watchEndpointStartTimeUpdaterInterval=null;D.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};D.windowOnBlurFn=function(){D.deactivate()};
return D};
_.P(Jo,_.X);_.q=Jo.prototype;
_.q.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.q.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19185_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19185_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19185_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19185_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.iK(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.iK(this,this.onScroll))};
_.q.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.iK(this,this.onScroll))};
_.q.onPageTypeChange=function(){this.deactivate()};
_.q.onWindowResized=function(){this.deactivate()};
_.q.onCaptionsChanged=function(D){D=!!D.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!D);this.setCaptionSize()};
_.q.setCaptionSize=function(){var D;if(this.active&&!this.captionsHaveBeenTurnedOff&&((D=this.player)==null?0:D.getCaptionWindowContainerId())){var t;(t=this.player)==null||t.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.q.currentPageAllowed=function(){return!this.isWatchPage};
_.q.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.r("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var D=this.positionData,t=D.initialTopPosition,H=D.initialHorizontalPosition;_.jZ(this.hostElement,{"--ytd-video-preview-translate-left":D.finalHorizontalPosition-H+"px","--ytd-video-preview-translate-top":D.finalTopPosition-t+"px","--ytd-video-preview-original-top-position":t+
"px","--ytd-video-preview-original-horizontal-position":H+"px","--ytd-video-preview-initial-scale":"scale("+D.initialScale+")","--ytd-video-preview-width":D.videoPreviewWidth+"px","--ytd-video-preview-height":D.videoPreviewHeight+"px"});return!0};
_.q.isOutOfBounds=function(D){var t=D.initialHorizontalPosition+12;D=t+D.videoPreviewWidth>window.innerWidth;return t<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&t<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&t<72||D};
_.q.handleOpenVideoPreviewAction=function(D){var t=this,H;return _.Z(function(e){if(!t.currentPageAllowed())return e.return(0);t.opts=D;return(H=t.alignVideoPreviewForAnimation(D.thumbnail))?e.return(t.activate()):e.return(0)})};
_.q.onMouseLeave=function(D){var t,H;(t=this.opts)==null||(H=t.mouseleaveCallback)==null||H.call(t);this.shouldDeactivateOnMouseLeave(D)&&this.deactivate()};
_.q.onScroll=function(){var D,t;((D=this.opts)==null?0:D.isAutoplay)&&((t=this.opts)==null?0:t.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.q.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Jy.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.q.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.q.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Jo.JSC$19184_DEFAULT_CLICK_LOCATION_BEHAVIOR,Jo.JSC$19184_CLICK_LOCATION_ID_MAP)};
_.q.shouldDeactivateOnMouseLeave=function(D){D=D.relatedTarget;if(!D)return!0;var t;return(t=this.opts)!=null&&t.mediaRenderer?!_.Ny(this.opts.mediaRenderer).contains(D):!0};
_.q.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.q.onPlaybackStart=function(){var D=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$19185_preventProgressSaveTimer=
_.kX(_.Jy,function(){D.resetPreventProgressSaveTimer()},1E4);
var t;if((t=this.opts)==null?0:t.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.kX(_.Jy,function(){D.hasMultipleVideoPreviews()?D.startPlaybackForNextVideo():D.deactivate()},this.opts.videoPreviewDurationMs);
var H;this.player.setGlobalCrop(((H=this.opts)==null?0:H.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.q.getRoundedCornersSize=function(){var D;if((D=this.opts)==null?0:D.roundedCornersSize){var t;return(t=this.opts)==null?void 0:t.roundedCornersSize}var H;if((H=this.opts)==null?0:H.enableRounding){var e;if(((e=this.opts)==null?void 0:e.thumbnailSize)==="small")return 1;var V;if(((V=this.opts)==null?void 0:V.thumbnailSize)==="medium")return 2;var b;if(((b=this.opts)==null?void 0:b.thumbnailSize)==="large")return 3}return _.r("web_imp_inset_progress_bar")?3:0};
_.q.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.q.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.q.onMediaContainerClick=function(D){this.isShortcutClick(D)||(this.navigateToWatch(D),D.preventDefault(),D.stopPropagation())};
_.q.activate=function(){var D=this,t,H,e,V,b,a,w,h,K;return _.Z(function(N){switch(N.nextAddress){case 1:if(!D.currentPageAllowed())return N.return(0);H=(t=D.videoPreviewData)==null?void 0:t.inlinePlaybackEndpoint;e=_.QL.instance;if(!H||!e)return N.return(0);D.playbackIntentTriggered=!0;((V=D.opts)==null?0:V.mediaRenderer)&&((b=D.opts)==null||!b.isAutoplay)&&JyH(D.opts.mediaRenderer,function(){D.deactivate()});
_.Vi(D,function(){D.revealPreviewUi()});
a={};_.r("enable_unknown_lact_fix_on_html5")&&(_.qS().resolve(_.mM),a.lact=_.aR());D.videoPreviewFetchRequest=Sqg(e,D.getInlinePlaybackRequestData(D.videoPreviewData),a);_.$p(N,2);return N.yield(D.videoPreviewFetchRequest,4);case 4:w=N.yieldResult;if(((h=w)==null?void 0:(K=h.playabilityStatus)==null?void 0:K.status)==="OK")return N.return(D.handlePlayerResponse(w));throw Error("$j");case 2:_.Pv(N),D.deactivate();case 3:return N.return(1)}})};
_.q.getInlinePlaybackRequestData=function(D){var t,H=_.r("web_imp_player_mute_params")?((t=this.opts)==null?void 0:t.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:D.inlinePlaybackEndpoint,startPlaybackInMutedState:H}};
_.q.handlePlayerResponse=function(D){var t=this,H,e,V,b,a,w,h,K,N,k,T;return _.Z(function(c){if(c.nextAddress==1){H=t.getInlinePlaybackVideoId();if(!(((e=D)==null?0:(V=e.videoDetails)==null?0:V.videoId)&&t.currentPageAllowed()&&t.playbackIntentTriggered&&t.opts&&H))return t.deactivate(),c.return(0);if(D.videoDetails.videoId!==H)return c.return(0);t.enableAudioControls=!!((b=D.playerConfig)==null?0:(a=b.inlinePlaybackConfig)==null?0:a.showAudioControls);D.trackingParams=t.getInlinePlaybackTrackingParams();
if(!t.inlinePlayer)return c.return(0);w={};if(K=_.O((h=t.videoPreviewData)==null?void 0:h.inlinePlaybackEndpoint,_.Hh))w.watch_endpoint=K;if(t.videoPreviewData){var U,S=(U=_.O(t.videoPreviewData.inlinePlaybackEndpoint,_.Hh))==null?void 0:U.startTimeSeconds;S!==void 0&&(D.playerConfig||(D.playerConfig={}),D.playerConfig.playbackStartConfig||(D.playerConfig.playbackStartConfig={}),D.playerConfig.playbackStartConfig.startPosition||(D.playerConfig.playbackStartConfig.startPosition={}),D.playerConfig.playbackStartConfig.startSeconds=
S,D.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(S*1E3))}t.inlinePlayer.loadVideoWithPlayerResponse(D,w);if(t.JSC$19185_playerPromise)return c.jumpTo(2);t.JSC$19185_playerPromise=t.inlinePlayer.getPlayerPromise();return c.yield(t.JSC$19185_playerPromise,3)}c.nextAddress!=2&&(N=c.yieldResult,N.setInlinePreview(!0),k=!_.r("web_imp_theater_bugfix"),N.setSizeStyle(!1,k),t.ytPlayerListenerBehavior.listenToPlayerEvents(N,t.JSC$19185_playerEvents),t.player=N,_.Gf(t.hostElement,
"player-api-ready"));((T=t.opts)==null?0:T.showPlayerControls)&&t.videoPreviewData&&t.player&&(t.playerControlsData={playerResponse:D,isInlinePlayback:!0,thumbnailOverlays:t.videoPreviewData.thumbnailOverlays,playerApi:t.player},t.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!t.unroundCornersForPlayback,additionalButton:t.getAdditionalButtonType(t.videoPreviewData.thumbnailOverlays)});return c.return(2)})};
_.q.revealPreviewUi=function(){var D=this;this.playbackIntentTriggered&&_.wrD(this,function(){D.hasThumbnailPositionChangedSinceTriggered()||(D.updateActiveState(!0),D.noAnimation=!1)})};
_.q.hasThumbnailPositionChangedSinceTriggered=function(){var D=this.positionData,t=this.getThumbnailPositionData();return(D==null?void 0:D.initialTopPosition)!==(t==null?void 0:t.initialTopPosition)||(D==null?void 0:D.initialHorizontalPosition)!==(t==null?void 0:t.initialHorizontalPosition)};
_.q.getThumbnailPositionData=function(){var D,t;if((t=this.opts)==null||!t.thumbnail)return null;t=this.opts.thumbnail;var H=((D=this.opts)==null?0:D.cropPlayerToFillThumbnailHorizontally)?!1:!0;var e=t.getBoundingClientRect();D=e.width;t=e.height;var V=e.top+window.scrollY;e=e.left+window.scrollX;var b=H?Math.ceil(D):D;H=H?Math.ceil(t):t;var a=D/b;D={initialScale:a,initialTopPosition:V-12*a,finalTopPosition:V-12-(H-t)/2,initialHorizontalPosition:e-(12+(b-D)/2),finalHorizontalPosition:e-12-(b-D)/
2,videoPreviewWidth:b,videoPreviewHeight:H};return D};
_.q.updateActiveState=function(D){this.active=D;this.ytdReduxBehavior.dispatch(_.hV({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:D}))};
_.q.stopPlayer=function(D){D=D.resetWatchEndpointStartTime===void 0?!1:D.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(D)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Jy.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.q.deactivate=function(D){D=D===void 0?{}:D;D=D.resetWatchEndpointStartTime===void 0?!1:D.resetWatchEndpointStartTime;B2&&(B2.disconnect(),B2=null);this.stopPlayer({resetWatchEndpointStartTime:D});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.q.isValidThumbnailOverlayButton=function(D,t){D=D.thumbnailOverlayButtonRenderer;var H;return!!D&&!!D.tooltip&&!((H=D.icon)==null||!H.iconType)&&t.includes(D.icon.iconType)};
_.q.isValidThumbnailOverlayButtonViewModel=function(D,t){var H;D=_.O((H=D.thumbnailOverlayButtonViewModel)==null?void 0:H.overlayButton,_.h1);return!!D&&!!D.title&&!!D.iconName&&t.includes(D.iconName)};
_.q.getAdditionalButtonType=function(D){var t=this;if(_.r("web_imp_fastforward_button"))return{button:1};if(_.r("web_imp_miniplayer_button"))return{button:2};if(_.r("web_imp_playback_speed_button"))return{button:3};var H=["BOX_STACK_3"],e=(D||[]).filter(function(b){return t.isValidThumbnailOverlayButton(b,H)}).map(function(b){return b.thumbnailOverlayButtonRenderer});
if(e.length)return{button:4,thumbnailOverlayButtonRenderers:e};var V=["BOX_STACK_3"];D=(D||[]).filter(function(b){return t.isValidThumbnailOverlayButtonViewModel(b,V)}).map(function(b){return _.O(b.thumbnailOverlayButtonViewModel.overlayButton,_.h1)});
if(D.length)return{button:4,thumbnailOverlayButtonViewModels:D}};
_.q.allowCaptions=function(){var D;return!((D=this.opts)==null?0:D.forceCaptionsOff)};
_.q.allowUnmuting=function(){var D;return this.enableAudioControls&&!((D=this.opts)==null?0:D.forceMutedVolume)};
_.q.beginStartTimeUpdater=function(){var D=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.NS(function(){D.updateWatchEndpointStartTime()},1E3)};
_.q.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.q.resetPreventProgressSaveTimer=function(){this.JSC$19185_preventProgressSaveTimer!==null&&(_.Jy.cancelJob(this.JSC$19185_preventProgressSaveTimer),this.JSC$19185_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.q.updateWatchEndpointStartTime=function(D){var t=this.videoPreviewData;if(this.player&&t!=null&&t.inlinePlaybackEndpoint&&!this.JSC$19185_preventProgressSaveTimer){D=D?0:Math.floor(this.player.getCurrentTime());var H=_.O(t.navigationEndpoint,_.Hh);H&&(H.startTimeSeconds=D);if(t=_.O(t.inlinePlaybackEndpoint,_.Hh))t.startTimeSeconds=D}};
_.q.isShortcutClick=function(D){return!!D&&(D.ctrlKey||D.shiftKey||D.metaKey)};
_.q.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.q.openInMiniplayer=function(){var D=this,t,H;return _.Z(function(e){if(e.nextAddress==1){H=(t=D.videoPreviewData)==null?void 0:t.navigationEndpoint;if(!H)return e.return();_.d3().lockupActivation=!0;return e.yield(_.fCm(_.qS().resolve(_.dL),H),2)}_.d3().userActivation=!0;_.n2(e)})};
_.q.navigateToWatch=function(D){var t,H=(t=this.videoPreviewData)==null?void 0:t.navigationEndpoint;if(H){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(H,D,!0);else{var e;_.r("web_thumbnail_to_watch_transition")&&((e=this.opts)==null?0:e.thumbnail)&&_.MDV(_.qS().resolve(_.R_),this.opts.thumbnail);_.Gf(this.hostElement,"yt-navigate",{endpoint:H})}this.deactivate()}};
_.q.getInlinePlaybackVideoId=function(){var D,t;return(t=_.O((D=this.videoPreviewData)==null?void 0:D.inlinePlaybackEndpoint,_.Hh))==null?void 0:t.videoId};
_.q.getInlinePlaybackTrackingParams=function(){var D,t;return(D=this.videoPreviewData)==null?void 0:(t=D.inlinePlaybackEndpoint)==null?void 0:t.clickTrackingParams};
_.q.hasMultipleVideoPreviews=function(){var D;return!!(((D=this.opts)==null?0:D.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.q.startPlaybackForNextVideo=function(){var D;(D=this.opts)!=null&&D.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())};
_.ql.Object.defineProperties(Jo.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.opts)==null?0:D.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.opts)==null||!D.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 D;if(Array.isArray((D=this.opts)==null?void 0:D.videoPreviewData)){var t;return(t=this.opts)==null?void 0:t.videoPreviewData[this.videoPreviewDataIndex]}var H;return(H=this.opts)==null?void 0:H.videoPreviewData}}});
Jo.prototype.onIsAdsVideoChange=Jo.prototype.onIsAdsVideoChange;Jo.prototype.onInlinePreviewIsEnabledChange=Jo.prototype.onInlinePreviewIsEnabledChange;Jo.prototype.optsChanged=Jo.prototype.optsChanged;Jo.prototype.onMouseLeave=Jo.prototype.onMouseLeave;Jo.JSC$19184_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);Jo.JSC$19184_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"}];
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Jo.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",_.rt)],Jo.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Jo.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Jo.prototype,"componentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Jo.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Jo.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.Mg.YtSparklesClickLocationBehavior),_.x("design:type",Object)],Jo.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Jo.prototype,"opts",void 0);
_.d([_.M(),_.x("design:type",Object)],Jo.prototype,"playerControlsData",void 0);_.d([_.M(),_.x("design:type",Object)],Jo.prototype,"playerControlsAppApi",void 0);_.d([_.M(),_.x("design:type",Object)],Jo.prototype,"playerControlsOptions",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Jo.prototype,"noAnimation",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Jo.prototype,"hidden",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Jo.prototype,"active",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Jo.prototype,"playing",void 0);_.d([_.M({selector:_.jmX}),_.x("design:type",Boolean)],Jo.prototype,"inlinePreviewIsEnabled",void 0);_.d([_.M(),_.x("design:type",String)],Jo.prototype,"pagePath",void 0);_.d([_.M({selector:_.kiD}),_.x("design:type",Boolean)],Jo.prototype,"isWatchPage",void 0);
_.d([_.m("videoPreviewData"),_.x("design:type",Object),_.x("design:paramtypes",[])],Jo.prototype,"thumbnailData",null);_.d([_.m("opts","active"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Jo.prototype,"hidePlayerControls",null);_.d([_.m("opts"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Jo.prototype,"isAdsVideo",null);
_.d([_.m("opts"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Jo.prototype,"roundedCornersSmall",null);_.d([_.m("opts"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Jo.prototype,"roundedCornersMedium",null);_.d([_.m("opts"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Jo.prototype,"roundedCornersLarge",null);
_.d([_.m("opts"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Jo.prototype,"unroundCornersForPlayback",null);_.d([_.m("opts","videoPreviewDataIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],Jo.prototype,"videoPreviewData",null);_.d([_.M(),_.x("design:type",Object)],Jo.prototype,"videoPreviewDataIndex",void 0);_.d([_.o5("#inline-player"),_.x("design:type",Object)],Jo.prototype,"inlinePlayer",void 0);
_.d([_.rx("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[MouseEvent]),_.x("design:returntype")],Jo.prototype,"onMouseLeave",null);_.d([_.mx("opts"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jo.prototype,"optsChanged",null);_.d([_.mx("inlinePreviewIsEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jo.prototype,"onInlinePreviewIsEnabledChange",null);
_.d([_.Os("isAdsVideo"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jo.prototype,"onIsAdsVideoChange",null);_.d([_.Y({is:"ytd-video-preview",disableElementRegistration:!0})],Jo);
_.p(Jo,"ytd-video-preview",function(){if(CoF!==void 0)return CoF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return CoF=D},{mode:2});
}catch(e){_._DumpException(e)}
try{
var pk7,duM,xuN;pk7=function(D){return _.r("kevlar_watch_cinematics_invisible")||D.fullscreen&&_.r("kevlar_watch_cinematics_invisible_in_fullscreen")||D.theater&&!D.fullscreen&&_.r("kevlar_watch_cinematics_invisible_in_theater")};
duM=function(){var D=document.createElement("canvas"),t=D.getContext("2d");if(!t)throw Error("Io");_.Br(D,{position:"absolute",width:"100%",height:"100%"});return{element:D,context:t}};
xuN=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.r("kevlar_watch_cinematics_css_blur")};
_.RRw=function(D,t,H){return Math.abs(D-t)<=(H||1E-6)};
_.uXF=function(D,t){return D==t?!0:D&&t?D.width==t.width&&D.height==t.height:!1};_.WDE=new _.NM("notificationActionRenderer");var IVY=function(D){var t=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.TK;this.element.addEventListener("load",function(){t.loaded=!0;t.resolver.resolve(t.element)});
this.element.addEventListener("error",function(){t.failed=!0});
this.element.src=D};var Q$h=function(D,t){this.image=D;this.frame=t};
Q$h.prototype.drawToCanvas=function(D,t){var H=this.frame.width/this.frame.columns,e=this.frame.height/this.frame.rows,V=t.offsetX,b=t.offsetY;pk7(t)?(D.fillStyle=t.fullscreen?"#000":"#0f0f0f",D.fillRect(V,b,(t==null?void 0:t.width)||H,(t==null?void 0:t.height)||e)):D.drawImage(this.image,this.frame.column*H,this.frame.row*e,H,e,V,b,(t==null?void 0:t.width)||H,(t==null?void 0:t.height)||e)};
var yTh=function(D){this.color=D};
yTh.prototype.drawToCanvas=function(D,t){var H=t.offsetX,e=t.offsetY,V=t.width,b=t.height;D.fillStyle=pk7(t)?t.fullscreen?"#000":"#0f0f0f":this.color;D.fillRect(H,e,V,b)};var Tv=function(D,t){_.d5.call(this);this.playerApi=t;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.O5(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();B67(this,D);zRh(this);this.update()};
_.P(Tv,_.d5);Tv.prototype.addEventListeners=function(){var D=this,t=function(){D.update()},H=function(V){D.paused||(V.type==="newdata"&&(D.mosaics.clear(),DwM(D),cG(D)),zRh(D),D.update())},e=function(){D.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",t);this.playerApi.addEventListener("onVideoDataChange",H);this.playerApi.addEventListener("onStateChange",e);this.addOnDisposeCallback(function(){D.playerApi.removeEventListener("onVideoProgress",t);D.playerApi.removeEventListener("onVideoDataChange",H);D.playerApi.removeEventListener("onStateChange",e)})};
var B67=function(D,t){D.cinematicContainerRenderer!==t&&(D.cinematicContainerRenderer=t,DwM(D),cG(D),D.colorStoreUpdateJobId=_.Jy.addLowPriorityJob(function(){var H;if((H=D.cinematicContainerRenderer.colorStore)!=null&&H.sampledColors){H=Infinity;for(var e=_.F(D.cinematicContainerRenderer.colorStore.sampledColors),V=e.next();!V.done;V=e.next()){V=V.value;var b=Number(V.key);b!==0&&b<H&&(H=b);b=_.Qk(V.value);D.colorStore.set(V.key,b)}D.colorStoreTimeInterval=H}}))},DwM=function(D){D.colorStoreUpdateJobId&&
(_.Jy.cancelJob(D.colorStoreUpdateJobId),D.colorStoreUpdateJobId=void 0);
D.colorStore.clear();D.currentStoryboardColor=void 0},tfN=function(D,t){var H;
return(H=D.getStoryboardFrame(t))==null?void 0:H.url};
Tv.prototype.onPlayerStateChange=function(){this.update()};
Tv.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var zRh=function(D){var t=D.getStoryboardFrame(0);t&&(t=new _.O5(t.width/t.columns,t.height/t.rows),_.uXF(D.currentStoryboardSize,t)||(D.currentStoryboardSize=t,D.publish("STORYBOARD_SIZE_CHANGED",D.currentStoryboardSize)))},HQY=function(D,t){D.currentStoryboardIndex=t;
D.pendingStoryboardIndex=NaN;t=D.getStoryboardFrame(D.currentStoryboardIndex);D.currentStoryboard=new Q$h(D.mosaics.get(t.url).element,t);D.publish("STORYBOARD_CHANGED",D.currentStoryboard);D.lastUpdateTime=(0,_.aP)()};
Tv.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var cG=function(D){D.currentStoryboardIndex=NaN;D.pendingStoryboardIndex=NaN;D.currentStoryboard&&(D.currentStoryboard=void 0,D.publish("STORYBOARD_CHANGED",void 0));D.lastUpdateTime=NaN};
Tv.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)cG(this);else{var D=this.playerApi.getPlayerState(1);if(D===-1||D===5||D===0)cG(this);else if(isNaN(this.lastUpdateTime)||!((0,_.aP)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(D=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){D=""+Math.round(D*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var t=this.colorStore.get(D);t?t!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=t,this.currentStoryboard=new yTh(t),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.aP)()):(_.Yw(new _.nZ("Could not find color for timestamp: "+D,this.cinematicContainerRenderer)),cG(this))}else cG(this);else enA(this,D)}};
var enA=function(D,t){var H=D.getStoryboardFrameIndex(t);if(H!==D.currentStoryboardIndex&&H!==D.pendingStoryboardIndex){t=tfN(D,H);var e=D.mosaics.get(t);e?e.loaded&&HQY(D,H):(D.pendingStoryboardIndex=H,H=new IVY(t),D.mosaics.set(t,H),H.resolver.promise.then(function(){if(!D.isDisposed()&&!D.paused&&!isNaN(D.pendingStoryboardIndex)){var V=tfN(D,D.pendingStoryboardIndex);if(V){var b;(b=D.mosaics.get(V))!=null&&b.loaded&&HQY(D,D.pendingStoryboardIndex)}else cG(D)}}))}};
Tv.prototype.getStoryboardFrameIndex=function(D){var t=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(D,t)};
Tv.prototype.getStoryboardFrame=function(D){var t=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,H,e;return((e=(H=this.playerApi).getStoryboardFrame)==null?void 0:e.call(H,D,t))||null};
Tv.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var $t=function(D,t,H,e){e=e===void 0?!1:e;_.mg.call(this);this.cinematicContainerRenderer=t;this.playerApi=H;this.theater=this.fullscreen=!1;var V;this.ambientLightThemeEnabled=!e&&!!(t==null?0:(V=t.config)==null?0:V.enableInLightTheme);this.ambientFullscreenEnabled=e&&_.r("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=e&&_.r("web_cinematic_theater_mode");this.container=document.createElement("div");D.appendChild(this.container);var b;if(_.r("web_cinematic_theater_mode")||_.r("web_cinematic_fullscreen")||
(t==null?0:(b=t.config)==null?0:b.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);VfA(this);D=this.ambientV2Container||this.container;this.backCanvas=duM();this.frontCanvas=duM();D.appendChild(this.backCanvas.element);D.appendChild(this.frontCanvas.element);this.storyboardManager=new Tv(t,this.playerApi);_.c1(this,this.storyboardManager);this.addEventListeners();bQN(this)?qml(this,100+jO(this)*3*2,100+jO(this)*3*2):FnU(this);
afM(this,this.storyboardManager.currentStoryboard)};
_.P($t,_.mg);var VfA=function(D){D.ambientV2Container?w9l(D):(_.Br(D.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+ZQM(D)+", "+sBM(D)+")"}),xuN()&&_.Br(D.container,"filter","blur("+_.ZU("cinematic_watch_css_filter_blur_strength",40)+"px)"))},w9l=function(D){if(D.ambientV2Container){var t=D.playerApi.getVideoAspectRatio();
_.Br(D.container,{"aspect-ratio":""+t,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Br(D.ambientV2Container,{"aspect-ratio":""+t,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+ZQM(D)+", "+sBM(D)+")"});xuN()&&_.Br(D.ambientV2Container,"filter","blur("+_.ZU("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
$t.prototype.setFullscreen=function(D,t){this.fullscreen=D;this.theater=!!t;VfA(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),D=this.storyboardManager.currentStoryboard,hnM(this),D&&G4d(this,D)};
$t.prototype.addEventListeners=function(){var D=this,t=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(V){afM(D,V)}),H=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){FnU(D)});
this.addOnDisposeCallback(function(){D.storyboardManager.unsubscribeByKey(t);D.storyboardManager.unsubscribeByKey(H)});
if(this.ambientV2Container){var e=function(){w9l(D)};
this.playerApi.addEventListener("onVideoDataChange",e);this.addOnDisposeCallback(function(){D.playerApi.removeEventListener("onVideoDataChange",e)})}};
var FnU=function(D){if(!bQN(D)){var t=D.storyboardManager.currentStoryboardSize;isNaN(t.width)||isNaN(t.height)||qml(D,Number(t.width)+jO(D)*3*2,Number(t.height)+jO(D)*3*2)}},qml=function(D,t,H){D.backCanvas.element.width=t;
D.backCanvas.element.height=H;D.frontCanvas.element.width=t;D.frontCanvas.element.height=H},bQN=function(D){return D.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},afM=function(D,t,H){H=H===void 0?!1:H;
var e=D.frontCanvas.element.getAnimations()[0];e?(e.pause(),D.backCanvas.context.globalAlpha=Number(getComputedStyle(D.frontCanvas.element).opacity),D.frontCanvas.element.style.opacity="0",e.finish()):D.backCanvas.context.globalAlpha=1;D.backCanvas.context.drawImage(D.frontCanvas.element,0,0,D.backCanvas.element.width,D.backCanvas.element.height);hnM(D);t&&G4d(D,t);t=t?D.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.ZU("cinematic_watch_fade_out_duration",500);e=_.ZU("cinematic_watch_transition_frame_rate")/
1E3;var V={};e&&(V={easing:"steps("+Math.round(t*e)+")"});(H===void 0?0:H)||D.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:t,iterations:1},V));D.frontCanvas.element.style.opacity="1"},hnM=function(D){var t=D.ambientLightThemeEnabled||D.ambientTheaterModeEnabled,H=D.ambientLightThemeEnabled||D.ambientFullscreenEnabled;
D.frontCanvas.context.fillStyle=D.theater&&t||D.fullscreen&&H?"#000":"#0f0f0f";xuN()||(D.frontCanvas.context.filter="blur(0)");D.frontCanvas.context.fillRect(0,0,D.frontCanvas.element.width,D.frontCanvas.element.height)},G4d=function(D,t){xuN()||(D.frontCanvas.context.filter="blur("+jO(D)+"px)");
D.frontCanvas.context.globalAlpha=D.fullscreen&&D.ambientFullscreenEnabled||D.theater&&D.ambientTheaterModeEnabled?_.ZU("cinematic_watch_effect_letterbox_opacity",.4):_.ZU("cinematic_watch_effect_opacity",.4);var H={offsetX:jO(D)*3,offsetY:jO(D)*3,theater:D.theater,fullscreen:D.fullscreen};bQN(D)&&(H.width=100,H.height=100);t.drawToCanvas(D.frontCanvas.context,H);D.frontCanvas.context.globalAlpha=1},jO=function(D){var t;
return(t=D.cinematicContainerRenderer.config.blurStrength)!=null?t:5},ZQM=function(D){var t,H;
if((D.fullscreen||D.theater)&&((t=D.cinematicContainerRenderer.config)==null?0:(H=t.watchFullscreenConfig)==null?0:H.colorSourceWidthMultiplier))return D.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var e;return(e=D.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?e:D.cinematicContainerRenderer.config.colorSourceSizeMultiplier},sBM=function(D){var t,H;
if((D.fullscreen||D.theater)&&((t=D.cinematicContainerRenderer.config)==null?0:(H=t.watchFullscreenConfig)==null?0:H.colorSourceHeightMultiplier))return D.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var e;return(e=D.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?e:D.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
$t.prototype.disposeInternal=function(){_.mg.prototype.disposeInternal.call(this);this.container.remove()};
$t.prototype.clear=function(){afM(this,void 0,!0)};
$t.prototype.pause=function(){this.storyboardManager.pause()};var EvE;EvE=_.LJ(function(){var D,t,H=!((t=(D=document.createElement("canvas")).getContext)==null||!t.call(D,"2d")),e;D=!((e=CSS)==null||!e.supports("filter: blur(0)"));e=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var V;return H&&D&&e&&!((V=CSS)==null||!V.supports("aspect-ratio: 1 / 1"))});
_.iB=function(D,t){_.d5.call(this);this.container=D;this.playerApi=t;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=KnM(this);this.update()};
_.P(_.iB,_.d5);_.NoE=function(D){var t=document.documentElement.hasAttribute("dark");D.isDarkModeEnabled=t;D.update()};
_.k4h=function(D,t){D.settingEnabled=t;D.update()};
_.iB.prototype.setFullscreen=function(D,t){this.fullscreen=D;this.theater=!!t;this.update()};
_.ToA=function(D,t){D.cinematicContainerRenderer=t;D.cinematicContainerRenderer&&(D.cinematicsVe=_.Nx(D.isShorts()?227858:159022),_.A1(_.Pc(),D.cinematicsVe),D.loggingClientData={watchCinematicContainerData:{presentationStyle:D.cinematicContainerRenderer.presentationStyle}});D.update()};
_.iB.prototype.isShorts=function(){var D,t;return((D=this.cinematicContainerRenderer)==null?void 0:(t=D.config)==null?void 0:t.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.iB.prototype.isAllowed=function(){var D;if(D=EvE()){var t,H,e;D=((H=this.cinematicContainerRenderer)==null?void 0:H.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((e=this.cinematicContainerRenderer)==null||!e.colorStore)||((t=this.cinematicContainerRenderer)==null?void 0:t.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(D)if(_.r("web_cinematics_pausing")){var V,b;D=this.isDarkModeEnabled||!!((V=this.cinematicContainerRenderer)==
null?0:(b=V.config)==null?0:b.enableInLightTheme)}else{var a,w;V=!!((a=this.cinematicContainerRenderer)==null?0:(w=a.config)==null?0:w.enableInLightTheme)&&(_.YC("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);D=this.isDarkModeEnabled||V}if(a=D){var h,K;a=!((K=(h=this.prefersReducedMotionQuery)==null?void 0:h.matches)!=null&&K)}return a};
_.c37=function(D){(D=D.currentCinematicEffect)!=null&&(D=D.storyboardManager,D.paused=!1,zRh(D),D.update())};
_.iB.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var KnM=function(D){if(!_.r("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var t=window.matchMedia("(prefers-reduced-motion: reduce)"),H=function(){D.update()};
t.addListener(H);D.addOnDisposeCallback(function(){t.removeListener(H)});
return t}};
_.iB.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var D=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new $t(this.container,D,this.playerApi,this.isDarkModeEnabled),_.c1(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var t=this.currentCinematicEffect;t.cinematicContainerRenderer!==
D&&(t.cinematicContainerRenderer=D,B67(t.storyboardManager,D),VfA(t));D=_.Ph();_.nl(0,194,!0);D.save();D=_.v3();this.cinematicsVe&&D&&_.zf(D,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(D=_.v3(),this.cinematicsVe&&D&&_.D8(D,[this.cinematicsVe],!1,this.loggingClientData),_.qc(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.ql.Object.defineProperties(_.iB.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var KD1;var N6Y;_.gx({_template:function(){if(N6Y!==void 0)return N6Y;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=
D.content,H=t.insertBefore;KD1===void 0&&(KD1=document.createElement("template"));var e=KD1;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return N6Y=D},
is:"tp-yt-iron-pages",behaviors:[_.QI,_.tj],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var KBg;_.Nz4=function(){if(_.r("kevlar_home_skeleton")&&!KBg){var D=document.querySelector("#home-page-skeleton");D&&(_.vh("hgcr"),_.UH(D),KBg=!0)}};
KBg=!1;_.tx=new _.NM("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var BXe,DeH,tOt,HdY,eQZ,VO4,bdZ,qZe,azv,wGO,hQY,EtZ,NDi,Gvb,Zd4,sUi,cwt;_.yxF=function(D,t,H){t=t===void 0?5:t;if(t!==0){var e=typeof D==="function"?D():document.querySelector(D);e?(H==null?0:H.enableSmartFocus)?_.pYk(e):e.focus():setTimeout(function(){_.yxF(D,t-1,H)},500)}};
BXe=function(D){return String.raw.apply(String,[{raw:D}].concat(_.A6(_.RE.apply(1,arguments).map(function(t){return t instanceof Array?t.join(""):t}))))};
DeH=function(D){var t=_.RE.apply(1,arguments),H=t.length;if(!Array.isArray(D)||!Array.isArray(D.raw)||D.length!==D.raw.length||!_.yTv&&D===D.raw||!(_.yTv&&!_.B66||_.fM(D))||H+1!==D.length)throw new TypeError("$");return new zVH(Object.freeze({strings:Object.freeze(D),args:Object.freeze(t)}))};
tOt=function(D){return _.xYV(_.dYR(D&16777215))<.5};
HdY=function(D,t,H){var e=H.minimumRowsOfVideosBetweenSections===void 0?1:H.minimumRowsOfVideosBetweenSections;return D<(H.minimumRowsOfVideosAtStart===void 0?2:H.minimumRowsOfVideosAtStart)||t!==null&&D-t<=e?!1:!0};
eQZ=function(D,t){var H=0,e=0;D=_.F(D);for(var V=D.next();!V.done;V=D.next()){var b=V.value;if(b.richItemRenderer)b.richItemRenderer.rowIndex=e,b.richItemRenderer.colIndex=H++,H===t&&(H=0,e++);else if(b.richGroupRenderer&&b.richGroupRenderer.numColumns!==void 0)b.richGroupRenderer.rowIndex=e,b.richGroupRenderer.colIndex=H,H+=b.richGroupRenderer.numColumns,H===t&&(H=0,e++);else if(b.richSectionRenderer){var a=V=void 0;if(b=_.O((V=b)==null?void 0:(a=V.richSectionRenderer)==null?void 0:a.content,_.wNv))b.rowIndex=
e++}}};
VO4=function(D,t){var H=t.contentElement;t=t.rendererToTagNameMap;if(H&&t&&t.size!==0){for(var e=new Map,V=_.F(H.children),b=V.next();!b.done;b=V.next()){b=b.value;var a=b.tagName.toLowerCase(),w=e.get(a);w||(w=[],e.set(a,w));w.push(b)}if(e.size!==0)for(V=Math.min(D.length,H.children.length),b=new Map,a=0;a<V;a++){w=Object.keys(D[a])[0];w=t.get(w);if(!w)break;var h=b.get(w);h===void 0&&(h=0,b.set(w,h));var K=e.get(w);if(!K||h>=K.length)break;b.set(w,h+1);w=K[h];h=H.children[a];h!==w&&(_.ZP=!0,_.s7.set(w,
!0),H.insertBefore(w,h),_.s7.delete(w),_.ZP=!1)}}};
bdZ=function(D,t,H,e,V,b,a){e=e===void 0?{}:e;if(!D||!D.length)return{orderedContent:[]};D=D.slice();var w=[],h=[];V=null;for(var K=0,N=function(Q){h.sort(function(I,tT){return tT.skippedOnRow-I.skippedOnRow});
for(var u,R=(u=h.shift())==null?void 0:u.content;R;)!R.richSectionRenderer&&Q||w.push(R),u=void 0,R=(u=h.shift())==null?void 0:u.content},k=void 0,T=void 0,c=new Set;D.length>0||h.length>0;){for(var U=[],S=t;S>0;){var L=void 0,J=void 0,g=(J=h[0]&&h[0].skippedOnRow<K?(L=h.shift())==null?void 0:L.content:void 0)!=null?J:D.shift();
if(!g)break;if(g.richItemRenderer)L=g.richItemRenderer.targetId,J=void 0,L&&((J=a)==null?0:J.has(L))&&(J=a.get(L),!k||J&&J.timestamp>k.timestamp)&&(k=J,T&&c.add(T),T=L),U.push(g),S--;else if(g.richGroupRenderer&&g.richGroupRenderer.numColumns!==void 0)g.richGroupRenderer.numColumns<=S?(U.push(g),S-=g.richGroupRenderer.numColumns):S===t&&g.richGroupRenderer.numColumns>t?(U.push({richGroupRenderer:Object.assign({},g.richGroupRenderer,{numColumns:t})}),S=0):h.push({content:g,skippedOnRow:K});else if(g.richSectionRenderer)if(HdY(K,
V,e)&&S===t){w.push(g);V=K;K++;continue}else h.push({content:g,skippedOnRow:K});else if(g.continuationItemRenderer){N(!0);w.push(g);S=0;break}if(S===0)w.push.apply(w,_.A6(U));else if(!H&&D.length===0){N(!1);w.push.apply(w,_.A6(U));S=0;break}}K++;k&&(w.push(k.content),K++);T=k=void 0}eQZ(w,t);b&&VO4(w,b);return{orderedContent:w,pinnedContentNotShownTargetIds:c}};
qZe=function(){return _.RE.apply(0,arguments).flat().filter(function(D){return D}).join(";")};
azv=function(){return DeH(FsF,qZe.apply(null,_.A6(_.RE.apply(0,arguments))))};
wGO=function(D){switch(D){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
hQY=function(D,t){if(t){var H=_.b_().getState().entities.flowStateEntity,e=Zd4(D),V=[t];e&&e!==t&&V.push(e);var b=!0,a;if(H&&D.flowStateEntityKey&&((a=H[D.flowStateEntityKey])==null?void 0:a.primaryButtonDisabled)!==void 0){var w;b=!((w=H[D.flowStateEntityKey])==null||!w.primaryButtonDisabled)}sUi(D,e!=null?e:t,V,b)}};
EtZ=function(D){return _.Rj(_.b_(),function(t){return t.entities.flowStateEntity},function(t,H){if(D.flowStateEntityKey){var e,V=t==null?void 0:(e=t[D.flowStateEntityKey])==null?void 0:e.currentStepId,b;
H=H==null?void 0:(b=H[D.flowStateEntityKey])==null?void 0:b.currentStepId;b=_.b_().getState().talkToRecs;if(V&&V!==H){var a;t=(t==null?void 0:(a=t[D.flowStateEntityKey])==null?void 0:a.stepIdStack)||Object.keys(b.stepStates);a=!Gvb(b==null?void 0:b.stepStates[V]);sUi(D,V,t,a)}}})};
NDi=function(D){return _.Rj(_.b_(),KsH,function(t){var H=Zd4(D);if(H){var e=Object.keys(t.stepStates);t=!Gvb(t==null?void 0:t.stepStates[H]);sUi(D,H,e,t)}})};
Gvb=function(D){var t=Object.keys((D==null?void 0:D.selectionStates)||{}).reduce(function(b,a){return b||(D==null?void 0:D.selectionStates[a].isSelected)},!1),H,e,V=!!(D==null?0:(H=D.userQuery)==null?0:(e=H.userQuery)==null?0:e.trim());
return t||V};
Zd4=function(D){if(D.flowStateEntityKey){var t,H,e=(t=_.b_().getState().entities.flowStateEntity)==null?void 0:(H=t[D.flowStateEntityKey])==null?void 0:H.currentStepId;if(e)return e}};
sUi=function(D,t,H,e){_.b_().dispatch(_.nf("flowStateEntity",D.flowStateEntityKey,{currentStepId:t,stepIdStack:H,key:D.flowStateEntityKey,primaryButtonDisabled:e}))};
_.kvg=function(D,t){return _.jR(D.entities,"youchatPendingResponseEntity",t)};
_.TDO=function(D){return function(t){_.bf(_.nf("youchatPendingResponseEntity",D,{entityKey:D,isPendingResponse:t}))}};
cwt=function(D){D==null||D.addEventListener("DOMLoaded",function(){D.goToAndPlay(D.totalFrames-48,!0)})};
_.Vc=function(D){this.__isSoyCss=!0;this.css=BXe.apply(null,[D.strings].concat(_.A6(D.args)))};
_.Vc.prototype.toString=function(){return this.css};
var zVH=function(){_.Vc.apply(this,arguments)};
_.P(zVH,_.Vc);var FsF=_.zk(["",""]);var jUb;var $eb;_.gx({_template:function(){if($eb!==void 0)return $eb;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
var t=D.content,H=t.insertBefore;jUb===void 0&&(jUb=document.createElement("template"));var e=jUb;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return $eb=D},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var ide=new _.NM("flowRootRenderer");var rwv=new _.NM("chipsShelfViewModel");var OdO=new _.NM("responsiveContainerConfiguration");_.UeZ=new _.NM("engagementPanelSectionListRenderer");var ote=function(){this.horizontal=!1},PBi=function(D,t){D.horizontal=t};
ote.prototype.position=function(D,t,H,e){e=e===void 0?1:e;D=this.delta(D)*e+t;e=Math.max(t,H);return D>=Math.min(t,H)&&D<=e?D:H};
ote.prototype.axis=function(D){D=this.direction(D);return D==="up"||D==="down"?"Y":"X"};var fT=function(D,t,H){t=t===void 0?_.zi():t;this.target=D;this.manager=t;this.touchAction=H;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
fT.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(_.A6(this.events)));for(var D=_.F(this.events),t=D.next();!t.done;t=D.next())this.listen(t.value)}};
fT.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.A6(this.events)));for(var D=_.F(this.events),t=D.next();!t.done;t=D.next())this.unlisten(t.value)}};
fT.prototype.listen=function(D){this.eventMap[D]&&this.target.addEventListener(D,this.eventMap[D])};
fT.prototype.unlisten=function(D){this.eventMap[D]&&this.target.removeEventListener(D,this.eventMap[D])};var LT=function(){ote.apply(this,arguments)};
_.P(LT,ote);LT.prototype.direction=function(D){var t=D.detail;D=t.deltaY;t=t.deltaX;return D&&!this.horizontal?D>0?"down":"up":t&&this.horizontal?t>0?"right":"left":"none"};
LT.prototype.distance=function(D){return Math.abs(this.delta(D))};
LT.prototype.delta=function(D){var t=this.direction(D),H=D.detail;D=H.deltaX;H=H.deltaY;return t==="up"||t==="down"?H||0:D||0};
LT.prototype.velocity=function(D){var t=this.direction(D),H=D.detail;D=H.velocityX;H=H.velocityY;return Math.abs(t==="up"||t==="down"?H||0:D||0)};_.AY=function(D,t,H,e,V,b){V=V===void 0?new LT:V;b=b===void 0?_.zi():b;fT.call(this,t,b,e);var a=this;this.element=D;this.target=t;this.config=H;this.input=V;this.manager=b;this.events=["panstart","panmove","panend"];this.onPanStart=function(){a.config.draggingClass&&a.element.classList.add(a.config.draggingClass);a.config.startAction&&a.config.startAction()};
this.onPanMove=function(w){var h=ntQ(a,w);if(h){a.move(w,h);h.fade&&a.fade(w,h);var K=a.input.direction(w);h.moveAction&&h.moveAction(CBi(a,w,h),K)}};
this.onPanEnd=function(w){var h,K,N,k,T,c;return _.Z(function(U){if(U.nextAddress==1){a.animationRequestId&&cancelAnimationFrame(a.animationRequestId);a.animationRequestId=void 0;h=ntQ(a,w);if(!h)return U.return();K=h;N=K.triggerAction;k=K.fade;T=K.disableFinish;c=K.translateBack;var S=a.input.velocity(w),L=a.input.distance(w),J=a.threshold(h);return S>.3&&L>10||L>J?T?U.jumpTo(6):k?U.yield(meb(a,w),6):U.yield(MOH(a,w,h),6):c?U.yield(a.translateBack(w),3):U.jumpTo(3)}U.nextAddress!=3&&N&&N();a.config.draggingClass&&
a.element.classList.remove(a.config.draggingClass);a.reset();_.n2(U)})};
D=Object.keys(H.triggers);this.directions=new Set(D);PBi(this.input,this.directions.has("right")||this.directions.has("left"))};
_.P(_.AY,fT);_.AY.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var ntQ=function(D,t){t=D.input.direction(t);return D.config.triggers[t]};
_.AY.prototype.move=function(D,t){var H=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var e=H.input.axis(D),V=H.input.position(D,H.config.startPosition,t.endPosition,t.moveRatio||1);H.element.style.transform="translate"+e+"("+V+"px)";H.animationRequestId=void 0}))};
var CBi=function(D,t,H){var e=H.moveRatio||1;H=Math.abs(D.config.startPosition-H.endPosition);return Math.min(D.input.distance(t)*e,H)/H};
_.AY.prototype.fade=function(D,t){var H=t.endOpacity;D=CBi(this,D,t);D>0&&(this.element.style.opacity=""+(((H||0)-1)*D+1))};
_.AY.prototype.threshold=function(D){return D.threshold?D.threshold:Math.abs(D.endPosition-this.config.startPosition)/3};
var MOH=function(D,t,H){var e,V,b,a,w,h,K;return _.Z(function(N){if(N.nextAddress==1)return e=D.input.delta(t)+D.config.startPosition,V=D.input.axis(t),b=H,a=b.endPosition,w=b.transitionEndPosition,K=(h=w)!=null?h:a,N.yield(D.element.animate([{transform:"translate"+V+"("+e+"px)"},{transform:"translate"+V+"("+K+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);D.element.style.transform="translate"+V+"("+K+"px)";_.n2(N)})};
_.AY.prototype.translateBack=function(D){var t=this,H,e;return _.Z(function(V){if(V.nextAddress==1){if(!t.element.style.transform)return V.return();H=t.input.axis(D);e=t.config.startPosition;return V.yield(t.element.animate([{transform:t.element.style.transform},{transform:"translate"+H+"("+e+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}t.element.style.transform="translate"+H+"("+e+"px)";_.n2(V)})};
var meb=function(D,t){var H,e,V,b;return _.Z(function(a){if(a.nextAddress==1)return H=D.input.delta(t)+D.config.startPosition,e=D.input.axis(t),V=H+70,b=D.element.style.opacity===""?1:D.element.style.opacity,a.yield(D.element.animate([{transform:"translate"+e+"("+H+"px)",opacity:b},{transform:"translate"+e+"("+V+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);D.element.style.transform="translate"+e+"("+V+"px)";D.element.style.opacity="0";_.n2(a)})};var gl=function(){var D=_.ng.apply(this,arguments)||this;D._noAccessors=!0;D.scrollRate=3;D.autoScrollAnimationStart=0;D.autoScrollPaused=!1;D.autoScrollRafId=0;return D};
_.P(gl,_.ng);_.q=gl.prototype;_.q.created=function(){var D=this;this.boundAutoScrollHandler=function(t){D.autoScroll(t)}};
_.q.detached=function(){this.hostElement.removeEventListener("mouseout",_.iK(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.iK(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.iK(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.q.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.iK(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.iK(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.iK(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.iK(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.iK(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.iK(this,this.endAutoScroll)),this.endAutoScroll())};
_.q.autoScroll=function(D){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=D);var t;if(t=!this.autoScrollPaused&&this.scrollTarget)t=this.scrollTarget,t=t.scrollHeight-t.scrollTop!==t.clientHeight;t&&(t=1E3/this.scrollRate,D-=this.autoScrollAnimationStart,D>t&&(this.scrollTarget.scrollTop+=Math.ceil(D/t),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.q.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.q.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
gl.prototype.autoScrollEnabledChanged=gl.prototype.autoScrollEnabledChanged;_.d([_.M(),_.x("design:type",Object)],gl.prototype,"scrollRate",void 0);_.d([_.M(),_.x("design:type",Object)],gl.prototype,"scrollTarget",void 0);_.d([_.M(),_.x("design:type",Boolean)],gl.prototype,"autoScrollEnabled",void 0);_.d([_.Os("autoScrollEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gl.prototype,"autoScrollEnabledChanged",null);_.d([_.Cg()],gl);_.SZF=[gl.prototype];var XGb;var JY=function(){var D=_.X.apply(this,arguments)||this;D.buttonUpdate=_.r("web_button_rework");D.dismissButtonOverrides=_.r("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;D.forceDarkTheme=!1;D.forceLightTheme=!1;D.dynamicTextHeight=94;D.hasOverflowButton=!1;D.isInfeedModernization=!1;return D};
_.P(JY,_.X);_.q=JY.prototype;_.q.computeUrlImg=function(D){if(D)return _.E7(D.thumbnails)};
_.q.getLogoHeight=function(D){return this.logoWithPadding(D)?"31":"24"};
_.q.getLogoClassName=function(D){return this.logoWithPadding(D)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.q.logoWithPadding=function(D){var t,H;return(D=(t=D.thumbnails)==null?void 0:(H=t[0])==null?void 0:H.height)&&D%31===0?!0:!1};
_.q.sendImpressionEndpoints=function(D){D.impressionEndpoints&&_.NJ(this.hostElement,D.impressionEndpoints)};
_.q.observeBasicPalette=function(){var D,t,H=(D=this.data)==null?void 0:(t=D.colorData)==null?void 0:t.basicColorPaletteData;H?_.fb(this.hostElement,H):_.fb(this.hostElement,{})};
_.q.observeDataChanged=function(){var D;this.dynamicTextHeight=((D=this.data)==null?0:D.supplementalText)?74:94;var t;this.hasSupplementalText=!((t=this.data)==null||!t.supplementalText);if(_.r("web_button_rework")){var H,e,V,b;D=(H=this.data)==null?void 0:(e=H.actionButton)==null?void 0:(V=e.buttonRenderer)==null?void 0:(b=V.colorData)==null?void 0:b.basicColorPaletteData;var a,w,h;if(!((a=this.data)==null?0:(w=a.actionButton)==null?0:(h=w.buttonRenderer)==null?0:h.style)&&D){this.computeIsInfeedModernization(this.data)||
(D.borderColor=D.foregroundTitleColor);var K,N;this.set("data.actionButton.buttonRenderer",_.J$.unsafeClone((K=this.data)==null?void 0:(N=K.actionButton)==null?void 0:N.buttonRenderer))}}};
_.q.observeDataForCounterfactual=function(){if(_.r("kevlar_banner_cf_extra_logging")){var D;((D=this.data)==null?0:D.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.q.computeSupplementalStyle=function(){var D;if((D=this.data)!=null&&D.supplementalText){var t,H,e;if((t=this.data)==null?0:(H=t.colorData)==null?0:(e=H.basicColorPaletteData)==null?0:e.foregroundActivatedColor)return D=_.Ih(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+D+"; --yt-endpoint-hover-color:"+D+"; --yt-endpoint-visited-color:"+D+"; --yt-formatted-string-bold-font-weight:700;"}};
_.q.computeForcedDarkTheme=function(){var D,t,H,e=(D=this.data)==null?void 0:(t=D.actionButton)==null?void 0:(H=t.buttonRenderer)==null?void 0:H.style,V,b,a;D=tOt(((V=this.data)==null?void 0:(b=V.colorData)==null?void 0:(a=b.basicColorPaletteData)==null?void 0:a.backgroundColor)||0);return e&&D};
_.q.computeForcedLightTheme=function(){var D,t,H,e=(D=this.data)==null?void 0:(t=D.actionButton)==null?void 0:(H=t.buttonRenderer)==null?void 0:H.style,V,b,a;D=!tOt(((V=this.data)==null?void 0:(b=V.colorData)==null?void 0:(a=b.basicColorPaletteData)==null?void 0:a.backgroundColor)||0);return e&&D};
_.q.computeHasOverflowButton=function(D){return!!D.overflowButton};
_.q.computeHasTitle=function(D){return!!D.title};
_.q.computeTitleMaxFontSize=function(D){return this.computeHasOverflowButton(D)?28:64};
_.q.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.q.computeIsInfeedModernization=function(){var D,t,H,e,V=(D=this.data)==null?void 0:(t=D.actionButton)==null?void 0:(H=t.buttonRenderer)==null?void 0:(e=H.colorData)==null?void 0:e.basicColorPaletteData;return(V==null?void 0:V.backgroundColor)===452984831||(V==null?void 0:V.backgroundColor)===218103808};
JY.prototype.observeDataForCounterfactual=JY.prototype.observeDataForCounterfactual;JY.prototype.observeDataChanged=JY.prototype.observeDataChanged;JY.prototype.observeBasicPalette=JY.prototype.observeBasicPalette;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],JY.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],JY.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],JY.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],JY.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],JY.prototype,"buttonUpdate",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],JY.prototype,"hasSupplementalText",void 0);_.d([_.M(),_.x("design:type",Object)],JY.prototype,"dismissButtonOverrides",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.x("design:type",Boolean)],JY.prototype,"hasTitle",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.x("design:type",Object)],JY.prototype,"forceDarkTheme",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.x("design:type",Object)],JY.prototype,"forceLightTheme",void 0);_.d([_.M(),_.x("design:type",Object)],JY.prototype,"dynamicTextHeight",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.x("design:type",Object)],JY.prototype,"hasOverflowButton",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.x("design:type",Object)],JY.prototype,"isInfeedModernization",void 0);_.d([_.Os("data.colorData.basicColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JY.prototype,"observeBasicPalette",null);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JY.prototype,"observeDataChanged",null);_.d([_.Os("data.isVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JY.prototype,"observeDataForCounterfactual",null);_.d([_.Y({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],JY);
_.p(JY,"ytd-banner-promo-renderer",function(){if(XGb!==void 0)return XGb;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return XGb=D},{mode:1});var fzv;var LsF;var Awb;var Yd=function(){return _.X.apply(this,arguments)||this};
_.P(Yd,_.X);_.d([_.M(),_.x("design:type",Object)],Yd.prototype,"data",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Yd.prototype,"ytRendererBehavior",void 0);_.d([_.Y({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Yd);
_.p(Yd,"ytd-hashtag-grid-tile-renderer",function(){if(Awb!==void 0)return Awb;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Awb=D},{mode:1});var l7=function(){return _.X.apply(this,arguments)||this};
_.P(l7,_.X);l7.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
l7.prototype.updateRichGridTrendingHashtagsVisibility=function(){var D,t;if(((D=this.data)==null||!D.isExpanded)&&(t=this.data)!=null&&t.tiles){D=this.data.tiles.length;t=D>this.richGridItemsPerRow?this.richGridItemsPerRow+1:D;var H=Math.ceil(D/t);this.fullyVisibleRows=D%t===1&&H===2?1:Math.min(H,2);this.isShowMoreVisible=this.fullyVisibleRows<H}};
l7.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
l7.prototype.updateRichGridTrendingHashtagsVisibility=l7.prototype.updateRichGridTrendingHashtagsVisibility;_.d([_.M(),_.x("design:type",Object)],l7.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Number)],l7.prototype,"fullyVisibleRows",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],l7.prototype,"isShowMoreVisible",void 0);_.d([_.M({selector:_.lG,value:0}),_.x("design:type",Number)],l7.prototype,"richGridItemsPerRow",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],l7.prototype,"ytdReduxBehavior",void 0);_.d([_.Os("data","richGridItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],l7.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.d([_.Y({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],l7);
_.p(l7,"ytd-hashtag-grid-shelf-renderer",function(){if(LsF!==void 0)return LsF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return LsF=D},{mode:1});var gtZ;var JwH;var vo=function(){var D=_.X.apply(this,arguments)||this;D.visibleVideos=[];D.hiddenVideos=[];D.modern=_.r("web_modern_buttons");D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.P(vo,_.X);_.q=vo.prototype;_.q.attached=function(){var D=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",D);this.onDarkModeToggledAction(D)};
_.q.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"}}}};
_.q.dataChanged=function(){var D=this;this.requestElementsPerRow();var t,H;this.currentColorPalette=this.isDarkTheme?(t=this.data)==null?void 0:t.darkColorData:(H=this.data)==null?void 0:H.lightColorData;var e;if((e=this.currentColorPalette)==null?0:e.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.Vi(this,function(){D.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.q.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.q.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.q.computeIsFirstFeedItem=function(D){return D};
_.q.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D);this.data&&(this.currentColorPalette=D?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.q.getCurrentLogo=function(D,t){if(D)return t?D.darkLogoImage:D.lightLogoImage};
_.q.computeTitleStyle=function(D){var t;if((t=this.data)!=null&&t.title&&D&&D.textPrimary!==void 0)return"color:"+_.Ih(D.textPrimary)+";"};
_.q.computeSubtitleStyle=function(D){var t;if((t=this.data)!=null&&t.subtitle&&D&&D.textSecondary!==void 0)return"color:"+_.Ih(D.textSecondary)+";"};
_.q.computeDismissIconStyle=function(D){if(this.data&&this.data.dismissButton&&D&&D.textPrimary!==void 0)return"--yt-button-color:"+_.Ih(D.textPrimary)+";"};
_.q.computeOverflowButtonStyle=function(D){if(this.data&&this.data.overflowButton&&D&&D.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Ih(D.textPrimary)+";--yt-spec-icon-active-other:"+_.Ih(D.textPrimary)+";"};
_.q.computeBackgroundStyle=function(D){if(D&&this.data){var t="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var H=_.E7((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);H&&(t+='background-image:url("'+H+'");')}D.backgroundColor!==void 0&&(t+="background-color:"+_.Qk(D.backgroundColor)+";");return t}};
_.q.computeButton=function(){var D,t=Object.assign({},_.O((D=this.data)==null?void 0:D.showMoreButton,_.aj));if(this.modern&&t){t.style="STYLE_MONO_OUTLINE";var H;if(D=(H=this.currentColorPalette)==null?void 0:H.textPrimary)t.colorData={basicColorPaletteData:{foregroundTitleColor:D,borderColor:D}}}return t};
_.q.shouldShowBottomButton=function(D,t){return!(D==null?0:D.header)&&!(D==null||!D.primaryButton)&&t<3};
_.q.checkExpanded=function(D){this.isExpanded=D&&D.content?this.hiddenVideos.length===0:!0};
_.q.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.q.getLogoHeight=function(D){return this.logoWithPadding(D)?"26":"20"};
_.q.getLogoImageId=function(D){return this.logoWithPadding(D)?"logo-image-with-padding":"logo-image"};
_.q.computeHasSectionHeader=function(D){return!!D.header};
_.q.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var D;if((D=this.data.primaryButton)==null?0:D.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var t;((t=this.data.dismissButton)==null?0:t.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var H,e;((H=this.data)==null?0:(e=H.primaryButton)==null?0:e.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.q.setVisibleVideos=function(D){if(this.data&&this.data.content)if(this.data.content.length){var t=this.data.content.length;this.data.header?D?(this.visibleVideos=this.data.content.slice(0,Math.min(t,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.slimItemsPerRow),t)):(this.visibleVideos=this.data.content.slice(0,Math.min(t,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.elementsPerRow),t)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(t,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.elementsPerRow),t)):(this.visibleVideos=this.data.content.slice(0,Math.min(t,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(t,this.elementsPerRow-1),t))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.q.setHasMovieRenderer=function(){var D;if((D=this.data)!=null&&D.content){var t;this.hasMovieRenderer=!!_.O((t=this.data)==null?void 0:t.content[0],_.Gz6)}else this.hasMovieRenderer=!1};
_.q.requestElementsPerRow=function(){_.Gf(this.hostElement,"yt-request-elements-per-row")};
_.q.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var D=_.F(this.hiddenMediaRenderers),t=D.next();!t.done;t=D.next())t.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(D=_.Kg(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&D.focus()}};
_.q.updateTitleSpec=function(){var D;(D=this.data)!=null&&D.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.q.logoWithPadding=function(D){var t,H,e;return(D=(t=this.getCurrentLogo(D,this.isDarkTheme))==null?void 0:(H=t.thumbnails)==null?void 0:(e=H[0])==null?void 0:e.height)&&D%31===0?!0:!1};
_.q.onUpdateElementsPerRowAction=function(D,t,H){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D);H&&this.slimItemsPerRow!==H&&(this.slimItemsPerRow=H)};
vo.prototype.slimItemsPerRowChanged=vo.prototype.slimItemsPerRowChanged;vo.prototype.elementsPerRowChanged=vo.prototype.elementsPerRowChanged;vo.prototype.dataChanged=vo.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],vo.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],vo.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],vo.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],vo.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],vo.prototype,"currentColorPalette",void 0);_.d([_.M(),_.x("design:type",Array)],vo.prototype,"visibleVideos",void 0);_.d([_.M(),_.x("design:type",Array)],vo.prototype,"hiddenVideos",void 0);
_.d([_.M(),_.x("design:type",Object)],vo.prototype,"primaryButton",void 0);_.d([_.M({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],vo.prototype,"elementsPerRow",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],vo.prototype,"isDarkTheme",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],vo.prototype,"isExpanded",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],vo.prototype,"largeTitle",void 0);
_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],vo.prototype,"hasMovieRenderer",void 0);_.d([_.M(),_.x("design:type",Number)],vo.prototype,"slimItemsPerRow",void 0);_.d([_.M(),_.x("design:type",Boolean)],vo.prototype,"showLightVideoMetadata",void 0);_.d([_.M(),_.x("design:type",Boolean)],vo.prototype,"showDarkVideoMetadata",void 0);_.d([_.M(),_.x("design:type",Number)],vo.prototype,"videoMetadataColor",void 0);
_.d([_.M({reflectToAttribute:!0,selector:_.Ye}),_.x("design:type",Boolean)],vo.prototype,"miniMode",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.x("design:type",Boolean)],vo.prototype,"isFirstFeedItem",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.x("design:type",Boolean)],vo.prototype,"hasSectionHeader",void 0);
_.d([_.M({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],vo.prototype,"roundedContainer",void 0);_.d([_.PT("#visible-video-container ytd-rich-grid-media"),_.x("design:type",Array)],vo.prototype,"visibleMediaRenderers",void 0);_.d([_.PT("#hidden-video-container ytd-rich-grid-media"),_.x("design:type",Array)],vo.prototype,"hiddenMediaRenderers",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],vo.prototype,"modern",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vo.prototype,"dataChanged",null);_.d([_.Os("elementsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vo.prototype,"elementsPerRowChanged",null);_.d([_.Os("slimItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vo.prototype,"slimItemsPerRowChanged",null);
_.d([_.Y({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],vo);
_.p(vo,"ytd-brand-video-shelf-renderer",function(){if(JwH!==void 0)return JwH;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return JwH=D},{mode:1});var YZO;var pT=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.P(pT,_.X);_.q=pT.prototype;_.q.attached=function(){var D=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",D);this.onDarkModeToggledAction(D)};
_.q.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"}}}};
_.q.dataChanged=function(){this.requestElementsPerRow();var D,t;this.currentColorPalette=this.isDarkTheme?(D=this.data)==null?void 0:D.darkColorData:(t=this.data)==null?void 0:t.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.q.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.q.computeIsFirstFeedItem=function(D){return D};
_.q.onDarkModeToggledAction=function(D){D!==this.isDarkTheme&&this.set("isDarkTheme",D);this.data&&(this.currentColorPalette=D?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(D),this.updateButtonPalette())};
_.q.shouldShowThumbnailInMetadata=function(D){return D<=1};
_.q.computeVideoMetadataColor=function(){if(this.data){var D;if((D=this.currentColorPalette)==null?0:D.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.q.computeTitleStyle=function(D){var t;if((t=this.data)!=null&&t.title&&D&&D.textPrimary!==void 0)return"color:"+_.Ih(D.textPrimary)+";"};
_.q.computeSubtitleStyle=function(D){var t;if((t=this.data)!=null&&t.subtitle&&D&&D.textSecondary!==void 0)return"color:"+_.Ih(D.textSecondary)+";"};
_.q.computeOverflowButtonStyle=function(D){if(this.data&&this.data.overflowButton&&D.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.Ih(D.textPrimary)+";--yt-spec-icon-active-other:"+_.Ih(D.textPrimary)+";"};
_.q.computeBackgroundStyle=function(D){if(D&&this.data){var t="";D.backgroundColor!==void 0&&(t+="background-color:"+_.Qk(D.backgroundColor)+";");return t}};
_.q.computeHasOverflowButton=function(D){return!!D.overflowButton};
_.q.updateButtonPalette=function(){if(this.data){var D;if((D=this.data.primaryButton)==null?0:D.buttonRenderer){var t;if((t=this.currentColorPalette)==null?0:t.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var H;((H=this.currentColorPalette)==null?0:H.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)})}}};
_.q.requestElementsPerRow=function(){_.Gf(this.hostElement,"yt-request-elements-per-row")};
_.q.updateTitleSpec=function(){var D;(D=this.data)!=null&&D.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")};
_.q.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D)};
pT.prototype.elementsPerRowChanged=pT.prototype.elementsPerRowChanged;pT.prototype.dataChanged=pT.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],pT.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],pT.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],pT.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],pT.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],pT.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],pT.prototype,"currentColorPalette",void 0);_.d([_.M(),_.x("design:type",Object)],pT.prototype,"primaryButton",void 0);
_.d([_.M({reflectToAttribute:!0,value:3}),_.x("design:type",Number)],pT.prototype,"elementsPerRow",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],pT.prototype,"isDarkTheme",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],pT.prototype,"titleSize",void 0);_.d([_.M(),_.x("design:type",Number)],pT.prototype,"videoMetadataColor",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.Ye}),_.x("design:type",Boolean)],pT.prototype,"miniMode",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.x("design:type",Boolean)],pT.prototype,"isFirstFeedItem",void 0);_.d([_.M({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],pT.prototype,"roundedContainer",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.x("design:type",Boolean)],pT.prototype,"hasOverflowButton",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pT.prototype,"dataChanged",null);_.d([_.Os("elementsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pT.prototype,"elementsPerRowChanged",null);_.d([_.Y({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],pT);
_.p(pT,"ytd-brand-video-singleton-renderer",function(){if(YZO!==void 0)return YZO;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return YZO=D},{mode:_.Kz("kevlar_poly_si_batch_j070")?1:2});var lzH;var vtv=_.l(function(D){var t=D.data;return _.G(_.bi,{data:function(){return t().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(t().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var H=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":H=88;break a;default:H=88}return H},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return t().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"zl"),deY=_.l(function(D){var t=D.metadataRow;
var H=D.delimiter;return _.G(_.nY,{each:function(){return t().textParts||[]},
keyBy:"INDEX"},function(e,V){return _.G(_.FH,null,_.G(_.$7,{text:e,noWrap:!0,userInput:!0}),_.G(pGO,{delimiter:H,max:function(){return t().textParts.length},
index:V}))})},"Al"),pGO=_.l(function(D){var t=D.delimiter;
var H=D.max;var e=D.index;return _.G(_.E,{cond:function(){return(t==null?void 0:t())&&H()-1>e()},
then:function(){return _.G("span",null,t)}})},"Bl"),xe4=_.l(function(D){var t=D.data;
D={};return _.G("yt-profile-page-header-information-view-model",{class:_.jQ("profilePageHeaderInformationViewModelHost",(D.profilePageHeaderInformationViewModelMobile=!1,D))},_.G(_.E,{cond:function(){return t().onTap},
then:function(){return _.G(_.XW,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.xP(t().onTap)}},_.G(_.P5,{data:function(){return t().thumbnail}},{profilePageHeaderThumbnailViewModel:vtv}))},
else:function(){return _.G("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.G(_.P5,{data:function(){return t().thumbnail}},{profilePageHeaderThumbnailViewModel:vtv}))}}),_.G("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.G(_.E,{cond:function(){return t().onTap},
then:function(){return _.G(_.P5,{data:function(){return t().title}},{profilePageHeaderTitleViewModel:function(H){var e=H.data;
return _.G(_.XW,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.xP(e().onTap)}},_.G(_.$7,{text:function(){return e().title}}))}})},
else:function(){return _.G(_.P5,{data:function(){return t().title}},{profilePageHeaderTitleViewModel:function(H){var e=H.data;
return _.G(_.$7,{text:function(){return e().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.G(_.P5,{data:function(){return t().metadata}},{profilePageHeaderMetadataViewModel:function(H){var e=H.data;
return _.G(_.E,{cond:function(){return e().metadataRows},
then:function(V){return _.G("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.G(_.nY,{each:V,keyBy:"INDEX"},function(b,a){return _.G(_.FH,null,_.G(deY,{metadataRow:b,delimiter:" \u2022 "}),_.G(pGO,{delimiter:" \u2022 ",max:function(){return V().length},
index:a}))}))}})}})))},"Cl");
xe4.idomCompat=!0;_.hB(xe4,"yt-profile-page-header-information-view-model",{props:{data:_.ij}});var dl=function(){return _.X.apply(this,arguments)||this};
_.P(dl,_.X);dl.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],dl.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],dl.prototype,"data",void 0);_.d([_.Y({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],dl);
_.p(dl,"ytd-effect-pivot-header-view-model",function(){if(lzH!==void 0)return lzH;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return lzH=
D},{mode:1});var RQb;var xd=function(){return _.X.apply(this,arguments)||this};
_.P(xd,_.X);xd.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],xd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],xd.prototype,"data",void 0);_.d([_.Y({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],xd);
_.p(xd,"ytd-source-pivot-header-renderer",function(){if(RQb!==void 0)return RQb;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return RQb=D},{mode:1});_.uYY=_.l(function(D){var t=D.data;var H=function(){var e;return _.J5((e=t())==null?void 0:e.rendererContext)};
D={};return _.G("content-list-item-view-model",{el:_.FI(_.Yi(function(){return t().rendererContext})),
class:_.jQ("ytContentListItemViewModelHost",(D.ytContentListItemViewModelTappable=H,D)),role:function(){return H()?"listitem":void 0},
tabindex:function(){return H()?0:void 0}},_.G("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.G("div",{class:"ytContentListItemViewModelImageContainer"},_.G(_.E,{cond:function(){return t().image},
then:function(e){return _.G(_.bi,{data:e,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.G(_.P5,{data:function(){var e;
return(e=t())==null?void 0:e.avatar}},{avatarViewModel:_.qi})),_.G("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.G("div",{class:_.jQ("ytContentListItemViewModelTitle",function(){a:{switch(t().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var e="ytContentListItemViewModelProminentTitle";
break a}e=void 0}return e})},_.G(_.$7,{text:function(){return t().title}})),_.G("div",{class:"ytContentListItemViewModelMetadata"},_.G(_.P5,{data:function(){return t().metadata}},{contentMetadataViewModel:function(e){return _.G(_.Xo,{data:e.data,
layout:1})}})))),_.G("div",{class:"ytContentListItemViewModelActionButton"},_.G(_.P5,{data:function(){var e;
return(e=t())==null?void 0:e.actionButton}},{buttonViewModel:_.JX,
toggleButtonViewModel:_.VC})))},"Dl");var Wsi=_.l(function(D){var t=function(){return D.data().background},H=function(){return D.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},e=function(){return D.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.G("yt-card-view-model",{el:_.FI(_.Yi(function(){return D.data().rendererContext})),
class:_.jQ("ytCardViewModelHost",D.className)},_.G(_.f0,{contentId:function(){return D.data().contentId}},function(){return _.G("div",{class:_.jQ("ytCardViewModelCardViewModelInner",function(){return wGO(D.data().cardStyle)},function(){var V;
a:{switch((V=D.data().cardState)==null?void 0:V.selectionState){case "CARD_SELECTION_STATE_SELECTED":V="ytCardViewModelSelected";break a}V=void 0}return V})},_.G(_.P5,{data:t},{cinematicContainerViewModel:function(V){return _.G(_.dRV,{data:V.data})}}),_.G("div",{class:"ytCardViewModelContentWrapper"},_.G(_.E,{cond:function(){return!H()},
then:function(){var V={};return _.G("div",{class:"ytCardViewModelTopContentContainer"},_.G("div",{class:"ytCardViewModelTopContent"},_.G(_.P5,{data:function(){return D.data().topContent}},{contentListItemViewModel:function(b){return _.G(_.uYY,{data:b.data})}})),_.G("div",{class:_.jQ("ytCardViewModelInlineTrailingAction",(V.ytCardViewModelInlineCenterTrailingAction=e,V))},_.G(_.P5,{data:function(){return D.data().trailingAction}},{buttonViewModel:function(b){return _.G(_.JX,{data:b.data})}})))}}),
_.G("div",{class:"ytCardViewModelBodyContent"},_.G(_.P5,{data:function(){return D.data().bodyContent}},{contentListItemViewModel:_.uYY,
listItemViewModel:_.Zq,linearLayoutViewModel:_.HH4,descriptionPreviewViewModel:_.Yj}))),_.G(_.E,{cond:function(){return H()},
then:function(){return _.G("div",{class:"ytCardViewModelOverlayTrailingAction"},_.G(_.P5,{data:function(){return D.data().trailingAction}},{buttonViewModel:function(V){return _.G(_.JX,{data:V.data})}}))}}))}))},"El");_.hB(Wsi,"yt-card-view-model",{props:{data:_.ij,className:_.ij}});var KsH=_.$lZ.talkToRecsStateSelector;_.hB(_.l(function(D){var t=function(){return _.O(D.data().flowRoot,ide)};
_.XH(function(){var H=t(),e=function(){},V=function(){};
if(H){var b,a,w,h=((w=_.O((b=t())==null?void 0:(a=b.steps)==null?void 0:a[0],_.jRt))==null?void 0:w.stepId)||"";hQY(H,h);e=EtZ(H);V=NDi(H)}_.Sj(function(){var K=t();K&&_.b_().dispatch(_.nf("flowStateEntity",K.flowStateEntityKey));e();e=function(){};
V();V=function(){}})});
return _.G("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.G(_.f0,{contentId:function(){return D.data().contentId}},function(){return _.G("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.G(_.E,{cond:t,
then:function(H){return _.G(_.nRe,{data:H})}}))}))},"Fl"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.ij}});_.hB(_.l(function(){return _.G("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.G("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.G("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.G(_.P1Y,null)),_.G(_.loV,{data:{rows:1},isExploreHub:!0}))},"Gl"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.hB(_.l(function(D){var t=D.data;var H=D.standardUnitMinWidth;D=_.F((0,_.xEm)(t));var e=D.next().value,V=D.next().value,b=function(){var w,h=(w=e())==null?void 0:w.contents;return h==null||h.length===0},a=function(){V(Object.assign({},e(),{contents:[]}))};
return _.G("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.FI(_.wv({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var w=_.O(t().chipsShelf,rwv);if(w!=null&&w!=null&&w.autoselectChipOnVisible){var h,K,N=_.O(w==null?void 0:(h=w.contents)==null?void 0:h[(K=w.autoselectedChipIndex)!=null?K:0],_.G6);N&&N.tapCommand&&_.IQ(N.tapCommand)}}}))},_.G(_.f0,{contentId:function(){return t().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.G("div",null,_.G("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.G(_.P5,{data:function(){return t().header}},{sectionHeaderViewModel:function(w){return _.G(_.l6,{data:w.data,
disableHorizontalPadding:!0})}})),_.G("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.G(_.P5,{data:function(){return t().chipsShelf}},{chipsShelfViewModel:function(w){return _.G(_.a2,{data:w.data,
callback:a,selectionBehavior:1})}})),_.G("div",null,_.G(_.E,{cond:b,
then:function(){return _.G("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.G(_.loV,{data:{rows:1},isExploreHub:!0}))}}),_.G(_.P5,{data:function(){var w;
return(w=e())==null?void 0:w.contents}},{richShelfRenderer:function(w){return _.G(_.yS6,{data:w.data,
isInnerShelf:!0,standardUnitMinWidth:H})}})))}))},"Hl"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.ij,
standardUnitMinWidth:_.ij}});var Rl=function(){return _.X.apply(this,arguments)||this};
_.P(Rl,_.X);
Rl.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",eduCardViewModel:"yt-edu-card-view-model",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},
messageRenderer:"ytd-message-renderer",alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
Rl.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.d([_.C(_.sx),_.x("design:type",Object)],Rl.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Rl.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.T_),_.x("design:type",Object)],Rl.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Rl.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Rl.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Number)],Rl.prototype,"standardUnitMinWidth",void 0);_.d([_.Y({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],Rl);
_.p(Rl,"ytd-rich-section-renderer",function(){if(gtZ!==void 0)return gtZ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return gtZ=D},{mode:_.Kz("kevlar_poly_si_batch_j029")?
1:2});_.hB(_.xz4,"yt-profile-identity-info-view-model",{props:{data:_.ij,hideDivider:_.ij,isChannelInfoCard:_.ij}});_.hB(_.BXQ,"yt-page-header-view-model",{props:{data:_.ij,noPadding:_.ij,enableBanner:_.ij,cinematicContainerTopbarOffset:_.ij,allowCinematicContainerOverflow:_.ij,displayAsSidebar:_.ij,displayAsPanel:_.ij,alwaysUseMediumTextDescription:_.ij}});_.hB(_.l(function(D){var t=D.data;var H=function(){var V;return(V=t().numColumns)!=null?V:2},e=function(){return H()>1?3:2};
D={};return _.G("ytd-rich-grid-group",{class:_.jQ("ytdRichGridGroupHost",(D.ytdRichGridGroupHostFirstColumn=function(){return t().colIndex===0},D)),
style:_.O7({"--ytd-rich-grid-group-num-columns":H,"--ytd-rich-grid-items-per-group":e})},_.G("div",{class:"ytdRichGridGroupContents"},_.G(_.P5,{data:function(){var V;return(V=t().contents)==null?void 0:V.slice(0,e())}},{richItemRenderer:function(V){return _.G(_.IA6,{data:V.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Il"),"ytd-rich-grid-group",{props:{data:_.ij}});var IzH=_.uO.persistentPanelVisibleSelector,u7=function(){var D=_.X.apply(this,arguments)||this;D.resizeOnObserverInit=!1;D.isInlinePreviewDisabled=_.r("web_disable_inline_preview");D.disableStickyFilterBar=!1;D.transparentBackgroundChipsBar=!1;D.hideChipsBar=!1;D.isWatchDefaultLayout=!0;D.continuationShowButton=!1;D.rowReducedHorizontalMargin=!1;D.useCompactList=!1;D.manualDownloadsPresent=!1;D.smartDownloadsPresent=!1;D.isOnline=!1;D.shouldRenderDownloadsBanner=!1;D.shouldRenderDownloadsBannerUpsell=
!1;D.hasOptedIntoSmartDownloads=!1;D.elementsPerRow=4;D.typographyBump=!1;D.slimItemsPerRow=1;D.pageLoadingFromNavigation=!1;D.resizeObserver=null;D.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"};D.rendererToTagNameMap=
new Map(Object.entries(D.contentMapping()).map(function(t){var H=_.F(t);t=H.next().value;H=H.next().value;return[t,H.component]}));
D.insertedContent=new Map;return D};
_.P(u7,_.X);_.q=u7.prototype;_.q.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var D=_.F(_.Kg(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),t=D.next();!t.done;t=D.next())t.value.useCompactList=this.useCompactList};
_.q.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var D=_.F(_.Kg(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),t=D.next();!t.done;t=D.next())t=t.value,t.sizing=this.sizing,t.typographyBump=this.typographyBump};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.q.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]]"}}}};
_.q.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}}};
_.q.attached=function(){document.addEventListener("yt-page-type-changed",_.iK(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21911_throttledOnResize=new _.W5(this.resizeObserved,_.ZU("rich_grid_resize_delay_ms",50),this)};
_.q.detached=function(){var D;(D=this.resizeObserver)==null||D.disconnect();document.removeEventListener("yt-page-type-changed",_.iK(this,this.onPageChange))};
_.q.insertRichSection=function(D){var t=D.richItemTargetId;D=D.richSectionRendererToInsert;t&&D&&(this.insertedContent.set(t,{content:D,timestamp:Date.now()}),this.reflowContent())};
_.q.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.q.computeIsInlinePreviewEnabled=function(D,t,H){return _.r("web_disable_inline_preview")?!1:!H&&_.qpv({miniplayerIsActive:D,miniplayerPlaybackState:t})};
_.q.computeSizing=function(){var D=_.cQX(this.data);if(D||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return D?this.useCompactList?"COMPACT":D:this.miniMode?"COMPACT":"STANDARD"};
_.q.updateItemMinAndMaxWidth=function(){var D=_.ZU("rich_grid_max_item_width",500);D>0&&_.jZ(this.hostElement,{"--ytd-rich-grid-item-max-width":D+"px"});var t;D=this.getRichItemMinWidth((t=this.hostElement)==null?void 0:t.clientWidth);D>0&&_.jZ(this.hostElement,{"--ytd-rich-grid-item-min-width":D+"px"})};
_.q.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.q.resizeObserved=function(){_.Kl(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.q.onPageChange=function(){var D=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Kl(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Jy.addJob(function(){D.pageLoadingFromNavigation=!1;D.setMasthead();D.maybeSetBigYoodle();D.forceRefreshAndLog();D.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.q.dataChanged=function(){var D=this;_.Kl(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.Vi(this,function(){D.updateRichItemGridPositions();D.contentsElement&&_.jZ(D.hostElement,{"--ytd-rich-grid-content-offset-top":D.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.q.initResizeObserver=function(){var D=this;if(window.ResizeObserver){var t;(t=this.resizeObserver)==null||t.disconnect();var H=!1;this.resizeObserver=new ResizeObserver(function(){if(H){var e;(e=D.resizeObserver)==null||e.disconnect();var V;(V=D.JSC$21911_throttledOnResize)==null||V.fire();requestAnimationFrame(function(){var a;(a=D.JSC$21911_throttledOnResize)==null||a.fire();D.initResizeObserver()})}else if(H=!0,D.resizeOnObserverInit){var b;
(b=D.JSC$21911_throttledOnResize)==null||b.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.q.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Kl(this.hostElement,"ytd-rich-item-index-update-action")};
_.q.updateElementsPerRow=function(){_.Kl(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.hV({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.hV({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.q.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.q.onRichShelfRendererCollapse=function(D){if(this.shownItems){var t=D.detail;D=this.shownItems.findIndex(function(e){var V,b;return((b=_.O(e==null?void 0:(V=e.richSectionRenderer)==null?void 0:V.content,_.wNv))==null?void 0:b.trackingParams)===t});
var H=D+1;D<0||H>=this.contentsElement.children.length||!this.shownItems[H].richItemRenderer||this.contentsElement.children[H].scrollIntoView({behavior:"smooth",block:"start"})}};
_.q.onSoftReloadPage=function(){this.scrollUpToTop()};
_.q.handleRerenderDownloadsData=function(){_.r("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.q.handlePlaylistRemoveVideosAction=function(D){var t;if(((t=_.O(D,_.oYn))==null?0:t.setVideoIds)&&this.data&&this.data.contents){D=_.O(D,_.oYn).setVideoIds;for(t=this.data.contents.length-1;t>=0;){var H=_.O(this.data.contents[t],_.Wu);(H=H&&_.O(H.content,_.F5))&&H.setVideoId&&D.includes(H.setVideoId)&&this.splice("data.contents",t,1);t--}this.updateIndices()}};
_.q.updateIndices=function(){if(this.data&&this.data.contents)for(var D=0;D<this.data.contents.length;D++)this.set("data.contents."+D+".richItemRenderer.index",_.H7(String(D+1)))};
_.q.hasTopRowInlinePlayableVideoWithEndorsement=function(D){var t;return!((t=D.slice(0,this.getItemsPerRow()))==null||!t.some(function(H){var e;H=_.O(H==null?void 0:(e=H.richItemRenderer)==null?void 0:e.content,_.ZB);var V;return(H==null?void 0:H.inlinePlaybackEndpoint)&&(H==null?void 0:(V=H.thumbnailOverlays)==null?void 0:V.some(function(b){return b.thumbnailOverlayEndorsementRenderer}))}))};
_.q.refreshGridLayoutNew=function(D,t,H,e){var V=e.postsPerRow;var b=e.slimItemsPerRow;var a=e.gameCardsPerRow;e=e.miniGameCardsPerRow;var w;if((w=this.data)==null||!w.contents||!this.containerWidth)return!1;var h;if((h=this.data.responsiveContainerConfiguration)==null?0:h.responsiveSize){var K=_.QpV(this.data.responsiveContainerConfiguration,this.containerWidth),N;w=_.xi(Object.assign({},K,{standardUnitMinWidth:(N=this.data)==null?void 0:N.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&K.isCompactList)}else w=_.xi({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(K=this.data)==null?void 0:K.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=w.typographyBump;N=!1;if(D||this.elementsPerRow!==w.numItems||this.postsPerRow!==V||this.slimItemsPerRow!==b||this.gameCardsPerRow!==
a||this.miniGameCardsPerRow!==e||this.gutter!==w.gutter)N=this.elementsPerRow!==w.numItems,this.elementsPerRow=w.numItems,this.postsPerRow=V,this.slimItemsPerRow=b,this.gameCardsPerRow=a,this.miniGameCardsPerRow=e,this.gutter=w.gutter,this.itemWidth=w.itemWidth,this.reflowContent(t),_.jZ(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(H);this.ytdReduxBehavior.dispatch(_.hV({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:w.maxContainerWidth}));return N};
_.q.refreshGridLayout=function(D,t){var H,e=(H=this.hostElement)==null?void 0:H.clientWidth;this.containerWidth=this.adjustRichGridWidth(e,!0);var V;if((V=this.data)==null||!V.contents||!this.containerWidth)return D&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(D=!0,this.pendingForceReflow=!1);H=this.getRichItemMinWidth(e);var b=this.isShortsPanel?146:194,a=this.getMiniGameCardMinWidth(),w=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;e=H=this.calcElementsPerRow(H,
w);(V=H<=3&&this.miniModeAllowed())&&(H=this.calcElementsPerRow(240,4));var h=this.calcMaxSlimElementsPerRow(H,w,this.isDefaultGrid);w=this.calcElementsPerRow(b,h);var K=this.calcElementsPerRow(this.isCompactGrid?b:154,h);b=this.calcElementsPerRow(this.isCompactGrid?b:a,h);a=!1;if(this.sizing)return this.refreshGridLayoutNew(D,t,V,{postsPerRow:e,slimItemsPerRow:w,gameCardsPerRow:K,miniGameCardsPerRow:b});if(D||this.elementsPerRow!==H||this.postsPerRow!==e||this.slimItemsPerRow!==w||this.gameCardsPerRow!==
K||this.miniGameCardsPerRow!==b)a=this.elementsPerRow!==H,this.elementsPerRow=H,this.postsPerRow=e,this.slimItemsPerRow=w,this.gameCardsPerRow=K,this.miniGameCardsPerRow=b,this.reflowContent(t),this.updateElementsPerRow(),_.jZ(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)&&_.jZ(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(V);_.Kl(this.hostElement,"yt-rich-grid-layout-refreshed");return a};
_.q.getRichItemMinWidth=function(D){var t=_.ZU("rich_grid_min_item_width",310);if(!_.r("kevlar_disable_min_width_override")){var H,e;t=(e=(H=this.data)==null?void 0:H.minItemWidth)!=null?e:t}return t+_.h2D(D)};
_.q.calcMaxSlimElementsPerRow=function(D,t,H){return(H===void 0?0:H)?D===1?2:D%2===0?D/2*3:D+2:t*2};
_.q.adjustRichGridWidth=function(D,t){var H=_.r("disable_rich_grid_guide_compensation");if(!this.isWatch&&!H){H=_.qS().resolve(_.by(_.Ng));var e=H==null?void 0:H.guideElement;if(!(!H||H.getData()||e!=null&&e.opened||H.getMiniGuideVisible()))if(H.canFitPersistentGuide(D)&&H.getGuideExpandsAutomatically()){var V,b,a=Number((V=window.getComputedStyle(this.hostElement))==null?void 0:(b=V.getPropertyValue("--app-drawer-width"))==null?void 0:b.replace("px",""));D-=a||0}else if(H.canFitMiniGuide(D)){var w;
V=Number((a=window.getComputedStyle(this.hostElement))==null?void 0:(w=a.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:w.replace("px",""));D-=V||0}}D-=this.persistentPanelVisible?400:0;D>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(D-=t?32:48));return D};
_.q.calcElementsPerRow=function(D,t){var H=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),e=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((H+e)/(D+e))||1,t)};
_.q.reflowContent=function(D){var t=this;if(!this.isReflowing){this.isReflowing=!0;var H,e,V=!!((H=this.data)==null?0:(e=H.contents)==null?0:e.some(function(w){return _.O(w,_.HX)}));
H=this.getItemsPerRow();var b;e=(b=this.data)==null?void 0:b.reflowOptions;D&&(_.vh("rgr_s"),_.Vi(this,function(){_.vh("rgr_nrf")}));
D={};(b=_.Kg(this.hostElement).querySelector("#contents"))&&(D={contentElement:b,rendererToTagNameMap:this.rendererToTagNameMap});b=(b=this.data.contents)?b.slice():[];V=bdZ(b,H,V,e,this.getRichGridStyle(),D,this.insertedContent);var a=V.orderedContent;if(V=V.pinnedContentNotShownTargetIds)for(V=_.F(V),H=V.next();!H.done;H=V.next())this.insertedContent.delete(H.value);V=function(){t.shownItems=a;t.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(a),_.Vi(this,V)):V()}};
_.q.getFirstRowItems=function(D){for(var t=[],H=0;H<D.length;H++){var e=void 0,V=void 0,b=void 0,a=void 0,w=void 0,h=void 0;if(((e=D[H])==null?void 0:(V=e.richItemRenderer)==null?void 0:V.rowIndex)===0||((b=D[H])==null?void 0:(a=b.richGroupRenderer)==null?void 0:a.rowIndex)===0||((w=D[H])==null?void 0:(h=w.richSectionRenderer)==null?void 0:h.rowIndex)===0)t.push(D[H]);else break}return t};
_.q.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.q.resetInsertedContentIfNeeded=function(){(_.r("web_explore_hub_on_hover")||_.r("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.q.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.q.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.q.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.q.terminateVideoPreview=function(){_.Kl(this.hostElement,"yt-terminate-video-preview-action")};
_.q.updateRichItemGridPositions=function(){var D={gridData:{gridColumnCount:this.elementsPerRow}},t;((t=this.data)==null?0:t.trackingParams)&&(t=_.v3())&&_.eR(t,_.Sa(this.data.trackingParams),D);_.Kl(this.hostElement,"ytd-rich-item-index-update-action")};
_.q.miniModeAllowed=function(){return this.isChannelPage};
_.q.getMiniGameCardMinWidth=function(){return 154};
_.q.updateMiniMode=function(D){this.miniMode=this.miniModeAllowed()&&D;this.ytdReduxBehavior.dispatch(_.hV({type:"SET_RICH_GRID_MINI_MODE",payload:D}))};
_.q.isCurrentPage=function(){return location.pathname===this.pagePath};
_.q.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var D=_.qS().resolve(_.bO).getCurrentPage();D&&D.setScrollTop(0)}};
_.q.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.q.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.q.maybeSetBigYoodle=function(){var D,t=(D=this.data)==null?void 0:D.bigYoodle;this.bigYoodleData!==t&&(this.bigYoodleData=t)};
_.q.setMasthead=function(){var D;((D=this.data)==null?0:D.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.q.getRichGridStyle=function(){var D,t;return(t=(D=this.data)==null?void 0:D.style)!=null?t:"RICH_GRID_STYLE_UNKNOWN"};
_.q.onIsShortsGridChange=function(){var D=this.ytdReduxBehavior,t=D.dispatch,H=this.getRichGridStyle();t.call(D,_.hV({type:"SET_RICH_GRID_STYLE",payload:H}))};
_.ql.Object.defineProperties(u7.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var D=_.qS().resolve(_.bO).getCurrentPage(),t,H,e;return(((t=this.data)==null?void 0:t.targetId)==="browse-feedFEsfv_audio_pivot"||_.r("web_enable_channel_pivot_panel")&&((H=this.data)==null?void 0:H.targetId)==="browse-feedFEsfv_channel_pivot"||_.r("web_enable_effect_pivot_panel")&&((e=this.data)==null?void 0:e.targetId)==="browse-feedFEsfv_effect_pivot")&&(D==null?void 0:D.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.r("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 D;return!((D=this.data)==null?0:D.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var D;return((D=_.qS().resolve(_.bO).getCurrentPage())==null?void 0:D.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var D;return((D=_.qS().resolve(_.bO).getCurrentPage())==null?void 0:D.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return((D=this.data)==null?0:D.enableContentSpecificAspectRatio)||((t=this.data)==null?0:(H=t.responsiveContainerConfiguration)==null?0:H.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.ZU("web_continuation_handler_margin",0):0}}});
u7.prototype.onIsShortsGridChange=u7.prototype.onIsShortsGridChange;u7.prototype.onReloadContinuationFinish=u7.prototype.onReloadContinuationFinish;u7.prototype.reflowContent=u7.prototype.reflowContent;u7.prototype.handleRerenderDownloadsData=u7.prototype.handleRerenderDownloadsData;u7.prototype.onRichShelfRendererCollapse=u7.prototype.onRichShelfRendererCollapse;u7.prototype.onRequestElementsPerRow=u7.prototype.onRequestElementsPerRow;u7.prototype.contentLengthChanged=u7.prototype.contentLengthChanged;
u7.prototype.dataChanged=u7.prototype.dataChanged;u7.prototype.onSizingChange=u7.prototype.onSizingChange;u7.prototype.onUseCompactListChange=u7.prototype.onUseCompactListChange;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],u7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],u7.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.QI),_.x("design:type",Object)],u7.prototype,"ironResizableBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],u7.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.T_),_.x("design:type",Object)],u7.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],u7.prototype,"componentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],u7.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],u7.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0,selector:_.Ye}),_.x("design:type",Boolean)],u7.prototype,"miniMode",void 0);_.d([_.M({value:[]}),_.x("design:type",Array)],u7.prototype,"shownItems",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],u7.prototype,"isReflowing",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],u7.prototype,"isFilteredFeed",void 0);_.d([_.M({selector:_.KOk}),_.x("design:type",Boolean)],u7.prototype,"guideIsExpanded",void 0);
_.d([_.M({selectorArgs:["entitySelectorType"],selector:function(D,t){if(_.r("kevlar_modern_downloads_page")&&t&&t!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(t){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":t=D.entities;var H=_.AV(t),e=_.gO(t),V=_.XMT(D),b=_.SK$(D),a=_.fwA(D),w=_.bpR(t),h=_.m1(H),K=_.JV(t);return _.pSD(H,e,w,_.wMD(t),V,b,h,K,a,_.AU3(D),_.dO(D));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return D=_.AV(D.entities),_.xED(D);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return D=
_.HpT(D.entities),_.RyT(D);default:_.Yw(new _.nZ("Error: entitySelectorType defined but not matched in selector.",D,t))}}}),
_.x("design:type",Object)],u7.prototype,"entityDrivenRichGridData",void 0);_.d([_.M(),_.x("design:type",Object)],u7.prototype,"resizeOnObserverInit",void 0);_.d([_.M(),_.x("design:type",Object)],u7.prototype,"bigYoodleData",void 0);_.d([_.M(),_.x("design:type",Object)],u7.prototype,"mastheadData",void 0);_.d([_.M(),_.x("design:type",Boolean)],u7.prototype,"isInlinePreviewDisabled",void 0);_.d([_.M(),_.x("design:type",Object)],u7.prototype,"disableStickyFilterBar",void 0);
_.d([_.M(),_.x("design:type",Object)],u7.prototype,"transparentBackgroundChipsBar",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],u7.prototype,"hideChipsBar",void 0);_.d([_.M(),_.x("design:type",Object)],u7.prototype,"isWatchDefaultLayout",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],u7.prototype,"continuationShowButton",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],u7.prototype,"rowReducedHorizontalMargin",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],u7.prototype,"useCompactList",void 0);_.d([_.M({selector:function(D){return _.gO(D.entities).length>0}}),
_.x("design:type",Object)],u7.prototype,"manualDownloadsPresent",void 0);_.d([_.M({selector:function(D){return _.AV(D.entities).length>0}}),
_.x("design:type",Object)],u7.prototype,"smartDownloadsPresent",void 0);_.d([_.M({selector:_.dO}),_.x("design:type",Object)],u7.prototype,"isOnline",void 0);_.d([_.M({selector:_.SK$}),_.x("design:type",Object)],u7.prototype,"shouldRenderDownloadsBanner",void 0);_.d([_.M({selector:_.AU3}),_.x("design:type",Object)],u7.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.d([_.M({selector:_.XMT}),_.x("design:type",Object)],u7.prototype,"hasOptedIntoSmartDownloads",void 0);
_.d([_.M({selector:IzH}),_.x("design:type",Boolean)],u7.prototype,"persistentPanelVisible",void 0);_.d([_.Os("useCompactList"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u7.prototype,"onUseCompactListChange",null);_.d([_.Os("sizing","typographyBump"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u7.prototype,"onSizingChange",null);
_.d([_.M({selector:_.$CT}),_.x("design:type",Number)],u7.prototype,"miniplayerPlaybackState",void 0);_.d([_.M({selector:_.vH}),_.x("design:type",Boolean)],u7.prototype,"miniplayerIsActive",void 0);_.d([_.M({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.x("design:type",Boolean)],u7.prototype,"isInlinePreviewEnabled",void 0);
_.d([_.M({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.x("design:type",String)],u7.prototype,"sizing",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],u7.prototype,"elementsPerRow",void 0);_.d([_.M(),_.x("design:type",Object)],u7.prototype,"typographyBump",void 0);_.d([_.M(),_.x("design:type",Number)],u7.prototype,"itemWidth",void 0);
_.d([_.o5("#header"),_.x("design:type",HTMLElement)],u7.prototype,"headerElement",void 0);_.d([_.o5("#contents"),_.x("design:type",HTMLElement)],u7.prototype,"contentsElement",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u7.prototype,"dataChanged",null);_.d([_.mx("data.contents.length"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u7.prototype,"contentLengthChanged",null);
_.d([_.rx("yt-request-elements-per-row"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u7.prototype,"onRequestElementsPerRow",null);_.d([_.rx("yt-rich-shelf-renderer-collapse"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],u7.prototype,"onRichShelfRendererCollapse",null);
_.d([_.mx("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u7.prototype,"handleRerenderDownloadsData",null);_.d([_.m("data"),_.x("design:type",String),_.x("design:paramtypes",[])],u7.prototype,"entitySelectorType",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"isSub",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"isWatch",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"isShortsPanel",null);
_.d([_.M({reflectToAttribute:!0}),_.m("isWatch"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"reducedTopMargin",null);_.d([_.M({reflectToAttribute:!0}),_.m("data","isWatch","isWatchDefaultLayout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"noTopMargin",null);_.d([_.M({reflectToAttribute:!0}),_.m("isInlinePreviewEnabled","shownItems"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"topRowEndorsement",null);
_.d([_.m("data.header"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"hideHeader",null);_.d([_.rx("yt-rich-grid-reflow"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean]),_.x("design:returntype")],u7.prototype,"reflowContent",null);_.d([_.rx("yt-reload-continuation-finish"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u7.prototype,"onReloadContinuationFinish",null);
_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"isSlimGrid",null);_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"isShortsGrid",null);_.d([_.m("data","isSlimGrid","isShortsGrid"),_.M(),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"noRichItemGutterMargins",null);
_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"isShortsGridSlim",null);_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"isCompactGrid",null);_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"isDefaultGrid",null);
_.d([_.m("data.targetId"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"hideChipsBarOnWatch",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u7.prototype,"onIsShortsGridChange",null);_.d([_.m("data.enableContentSpecificAspectRatio"),_.M(),_.x("design:type",Boolean),_.x("design:paramtypes",[])],u7.prototype,"force16By9ThumbnailAspectRatio",null);
_.d([_.m("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],u7.prototype,"continuationTriggerOffset",null);_.d([_.Y({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],u7);
_.p(u7,"ytd-rich-grid-renderer",function(){if(fzv!==void 0)return fzv;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return fzv=D},{mode:2});var QUt=_.l(function(D){return _.G("yt-feedback-prompt-view-model",{class:_.jQ("ytFeedbackPromptViewModelHost",D.className)},_.G(_.E,{cond:function(){return D.data().text},
then:function(t){return _.G(_.$7,{text:t})}}),_.G("div",{class:"ytFeedbackPromptViewModelButtons"},_.G(_.P5,{data:function(){return D.data().likeButton}},{likeButtonViewModel:_.ZZ}),_.G(_.P5,{data:function(){return D.data().dislikeButton}},{dislikeButtonViewModel:_.w7})))},"Jl");var ywi=_.l(function(D){var t=D.thumbsUp,H=D.thumbsDown,e=D.rightAlignThumbs;D=_.F(_.KR(!1,void 0,"OxPsH"));var V=D.next().value,b=D.next().value;D=_.F(_.KR(!1,void 0,"V5vWne"));var a=D.next().value,w=D.next().value;D={};return _.G("div",{class:_.jQ("ytwThumbsUpDownThumbs",(D.ytwThumbsUpDownRightAlign=function(){return e==null?void 0:e()},D))},_.G(_.VC,{data:t,
onToggle:function(h){b(h);a()&&w(!1)},
buttonShapeOverrides:function(){return{toggled:V()}}}),_.G(_.VC,{data:H,
onToggle:function(h){w(h);V()&&b(!1)},
buttonShapeOverrides:function(){return{toggled:a()}}}))},"Kl");
ywi.idomCompat=!0;var zQi=_.l(function(D){var t=function(){return D.data().pendingStateEntityKey||""},H=_.rF(_.kvg,t),e=function(){var w;
if(!(w=D.disabled())){var h;w=!((h=H())==null||!h.isPendingResponse)}return w},V=_.F(_.KR(azv(""),void 0,"NwQXfe")),b=V.next().value,a=V.next().value;
_.SG(function(){requestAnimationFrame(function(){var w=D.data().onShowAnimationMs||0;w=w>0?azv("--chip-animation-duration: "+w+"ms;"):azv("");a(w)})});
return _.G("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:b},_.G(_.nY,{each:function(){return D.data().chipData||[]},
keyBy:"REFERENCE"},function(w){return _.G(BDZ,{data:w,disabled:e,pendingStateKey:t,onError:D.onError})}))},"Ll"),BDZ=_.l(function(D){var t=_.ep("button"),H=_.F(_.KR(!0,void 0,"G4GPGe")),e=H.next().value,V=H.next().value,b=function(){return D.data().text.content},a=function(){return D.data().transparentWhenLoading},w=_.$X(function(h){var K,N,k,T,c,U,S,L;
return _.Z(function(J){switch(J.nextAddress){case 1:h.stopPropagation();if(D.disabled())return J.return();N=String(Math.floor(((K=_.Tm())==null?void 0:K.getCurrentTime())||0)*1E3);k="youchat-"+Date.now();T=function(){_.RQ(D.data().onClick||{});var g={continuationCommand:{token:D.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},Q={inputComposerFormData:{clientMessageId:k,playerOffsetMs:N}};return new Promise(function(u,R){_.RQ(g,{form:{formData:Q},commandController:{onSuccess:function(I,
tT){u(tT)},
onServerError:function(I,tT){R(tT.error)}}})})};
c=_.TDO(D.pendingStateKey());c(!0);_.yxF("#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");V(!1);_.$p(J,2);return J.yield(T(),4);case 4:_.yM(J,3);break;case 2:U=_.Pv(J),(L=(S=D).onError)==null||L.call(S,U);case 3:c(!1),_.n2(J)}})});
return _.G(_.E,{cond:e,then:function(){return _.G("div",{class:"ytwYouChatChipsDataChipWrapper"},_.G("button",{el:t,class:"ytwYouChatChipsDataChip","data-disabled":D.disabled,"data-transparent-loading":a,"on:click":w,tabindex:0},b))}})},"Ml");var DZv=_.l(function(D){var t=D.data;var H=D.initiallyExpanded;var e=function(){var K;return(K=t().conversationResourceData)==null?void 0:K.learningGuideData};
D=_.F(_.rm(function(){var K;return(K=H==null?void 0:H())!=null?K:!1}));
var V=D.next().value,b=D.next().value,a=function(){b(!0)},w=_.jj(function(){var K,N;
return(N=(K=e())==null?void 0:K.sections)!=null?N:[]},void 0,"aPRmH"),h=_.jj(function(){return w().length>4},void 0,"PUPDyc");
D=_.jj(function(){var K;return!V()&&h()&&(K=e())!=null&&K.expandButton?w().slice(0,4):w()},void 0,"wUz4Ud");
return _.G("yt-conversation-resource-view-model",{class:_.jQ("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.G(_.P5,{data:D},{expandableMetadataViewModel:_.sx4}),_.G(_.E,{cond:function(){return h()&&!V()},
then:function(){return _.G("div",{id:"showMoreButton"},_.G(_.P5,{data:function(){var K;return(K=e())==null?void 0:K.expandButton}},{buttonViewModel:function(K){return _.G(_.JX,{data:K.data,
onClick:a})}}))}}))},"Nl");var tyQ=_.l(function(D){var t=function(){var g;return(g=D.data().text)==null?void 0:g.content},H=function(){var g,Q;
return(g=D.data().webData)==null?void 0:(Q=g.textResult)==null?void 0:Q.content},e=_.qS().resolve(_.eQ),V=_.c5(),b=function(){return D.data().chatResponseStyle},a=function(){return!D.data().transparentBackground},w=function(){return D.data().rightAlignThumbs},h=function(){return D.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||D.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},K=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:h()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:D.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},N=function(){var g;
return D.data().webData||((g=D.data().text)==null?void 0:g.content)||D.data().videoResultsData||D.data().conversationResourceViewModel||D.data().quiz||D.data().richContent},k=function(){return!!D.data().sectionHeader||N()},T=function(){var g;
return(g=D.data().videoResultsData)==null?void 0:g.videoShelf},c=function(){var g;
return(g=D.data().webData)==null?void 0:g.sourcesShelf},U=function(){return b()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||b()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:D.data().thumbsDownViewModel&&D.data().thumbsUpViewModel},S=function(){return _.O(D.data().thumbsUpViewModel,_.Ez)},L=function(){return _.O(D.data().thumbsDownViewModel,_.Ez)};
_.SG(function(){requestAnimationFrame(function(){var g;(g=D.shouldAnimateIcon)!=null&&g.call(D)&&cwt(V.lottieEl)})});
var J={};return _.G("you-chat-item-view-model",{class:_.jQ("ytwYouChatItemViewModelYouChatItemViewModel",(J.ytwYouChatItemViewModelColumnLayout=function(){return h()},J)),
"data-target-id":function(){return D.data().id||""}},_.G(_.E,{cond:function(){return D.data().removeIcon?!1:k()},
then:function(){var g={};return _.G("div",{"aria-hidden":"true"},_.G(_.x7,{className:_.jQ("ytwYouChatItemViewModelIcon",(g.ytwYouChatItemViewModelRtl=e==="rtl",g.ytwYouChatItemViewModelHidden=function(){return!(D.data().hideIcon||b()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||b()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:k())},g)),
animationName:"YOUCHAT_ICON",data:K,animationRef:V}))}}),_.G(_.E,{cond:k,
then:function(){var g={};return _.G("div",{class:_.jQ("ytwYouChatItemViewModelHost",(g.ytwYouChatItemViewModelHostNoPadding=function(){return!!D.data().sectionHeader&&!N()},g.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return b()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},g.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return b()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},g.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return b()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
g.ytwYouChatItemViewModelGradientBackground=a,g)),
role:"alert"},_.G(_.E,{cond:t,then:function(Q){return _.G(_.EJ,{text:Q,wrapCodeBlocks:!0})}}),_.G(_.P5,{data:function(){return D.data().sectionHeader}},{sectionHeaderViewModel:function(Q){var u={};
return _.G(_.l6,{data:Q.data,className:_.jQ("ytwYouChatItemViewModelSectionHeader",(u.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!D.data().sectionHeader&&!N()},u))})}}),_.G(_.E,{cond:H,
then:function(Q){return _.G(_.EJ,{text:Q,wrapCodeBlocks:!0})}}),_.G(_.E,{cond:T,
then:function(){return _.G("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.G(_.P5,{data:function(){var Q;return(Q=D.data().videoResultsData)==null?void 0:Q.videoShelf}},{horizontalShelfViewModel:function(Q){return _.G(_.hP,{data:Q.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.G(_.E,{cond:c,
then:function(){return _.G("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.G(_.P5,{data:function(){var Q;return(Q=D.data().webData)==null?void 0:Q.sourcesShelf}},{horizontalShelfViewModel:function(Q){return _.G(_.hP,{data:Q.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.G(_.P5,{data:function(){return D.data().conversationResourceViewModel}},{conversationResourceViewModel:DZv}),_.G(_.P5,{data:function(){return D.data().quiz}},{learningJourneyQuizViewModel:_.Cnw}),_.G(_.P5,{data:function(){return D.data().richContent}},{cardViewModel:Wsi,
linearLayoutViewModel:_.HH4}),_.G(_.E,{cond:U,then:function(){return _.G(ywi,{thumbsUp:S,thumbsDown:L,rightAlignThumbs:w})}}))}}),_.G(_.E,{cond:function(){return D.data().chipsData},
then:function(g){return _.G(zQi,{data:g,disabled:D.pending,onError:D.onError})}}))},"Ol");
tyQ.idomCompat={callbacks:{onError:!0,onSend:!0}};var HhF=_.l(function(D){var t=function(){return D.data().choiceSelectedText},H=function(){return D.data().hasGradientBackground},e={};
return _.G("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.G(_.E,{cond:t,then:function(){return _.G("div",{class:"ytYouChatUserTurnChoiceSelected"},_.G(_.$7,{text:t}))}}),_.G("div",{class:_.jQ("ytYouChatUserTurnUserMessage",(e.ytYouChatUserTurnGradientContainer=H,e.ytYouChatUserTurnDefaultContainer=function(){return!H()},e))},function(){return D.data().text}))},"Pl");var eb4=_.l(function(D){var t=_.F((0,_.Wr6)(D.data)).next().value;return _.G("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return D.data().targetId||""}},_.G(_.P5,{data:function(){return D.data().header}},{chipBarViewModel:_.xfn}),_.G(_.P5,{data:function(){return t().contents}},{accordionViewModel:_.XQa,
alertBannerViewModel:_.zxn,chatLoadingViewModel:_.n0Y,chatUserTurnViewModel:HhF,feedbackPromptViewModel:QUt,gridShelfViewModel:function(H){return _.G(_.yYf,{data:H.data,shouldUseOwnContainerSize:!0})},
learningJourneyLoaderViewModel:_.UR9,linearLayoutViewModel:_.HH4,lockupViewModel:function(H){return _.G(_.J9,{data:H.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:D.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.l6,videoOverviewViewModel:_.pQV,youChatItemViewModel:function(H){return _.G(tyQ,{data:H.data,pending:!1})}}))},"Ql");_.hB(_.l(function(D){var t=_.F((0,_.Wr6)(D.data)).next().value,H=_.DY("yt-section-list-renderer"),e=_.F(_.KR(void 0,void 0,"boqAXd")),V=e.next().value,b=e.next().value,a=function(){var w;return _.O((w=D.data().sectionListLayoutConfiguration)==null?void 0:w.layoutConfiguration,OdO)};
_.XH(function(){var w,h=(w=H.value)==null?void 0:w.clientWidth;if(a()){w=a();var K=w.responsiveSize;h=h<528?"CONTAINER_SIZE_NARROW":h<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var N=_.F(w.responsiveMap||[]);for(var k=N.next();!k.done;k=N.next())if(k=k.value,k.containerSize===h){N=k.containerType;break b}N=void 0}if(N&&K){b:{if(N==="CONTAINER_TYPE_VERTICAL_LIST")if(K==="RESPONSIVE_SIZE_STANDARD"){if(h!=="CONTAINER_SIZE_NARROW"){k="50%";break b}}else{k=h==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}k=void 0}w={responsiveSize:K,containerSize:h,containerType:N,force16By9ThumbnailAspectRatio:!w.enableContentSpecificAspectRatio,contentPreviewWidth:k,fullbleed:(N==="CONTAINER_TYPE_VERTICAL_LIST"||N==="CONTAINER_TYPE_GRID")&&h==="CONTAINER_SIZE_NARROW"&&!1}}else w=void 0}else w=void 0;b(w)});
return _.G("yt-section-list-renderer",{class:_.jQ("ytSectionListRendererHost",D.className),el:H,"data-target-id":function(){return D.data().targetId||""}},_.G(_.P5,{data:function(){return t().contents}},{itemSectionRenderer:function(w){return _.G(eb4,{data:w.data,
containerLayoutConfig:V})}}))},"Rl"),"yt-section-list-renderer",{props:{data:_.ij,
className:_.wm}});var Vyb;var bhO;var qlF=function(){return _.X.apply(this,arguments)||this};
_.P(qlF,_.X);_.d([_.M(),_.x("design:type",Object)],qlF.prototype,"data",void 0);_.d([_.xL({is:"yt-alert-renderer",disableElementRegistration:!0})],qlF);
_.p(qlF,"yt-alert-renderer",function(){if(bhO===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Vyb===void 0&&(Vyb=document.createElement("template"));var e=Vyb;H.call(t,e.content.cloneNode(!0),D.content.firstChild);bhO=D}D=bhO;return D},{mode:2});
}catch(e){_._DumpException(e)}
try{
var ECY;ECY=function(D,t,H,e){H||(D?e&&(e.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||e.WINDOW_SIZE_CHANGED&&(t.width!==window.innerWidth||t.height!==window.innerHeight)||e.SAFARI_ABORTED_BY_NEW_TRANSITION&&D instanceof DOMException&&D.name==="AbortError"&&D.message.includes("Old view transition aborted by new view transition"))||_.gT(D):_.gT(Error("rj")))};
_.KIO=function(D,t){t=t===void 0?{}:t;var H,e,V,b,a,w,h,K,N,k,T,c,U;return _.Z(function(S){switch(S.nextAddress){case 1:H=t;e=H.shouldWrap===void 0?!0:H.shouldWrap;V=H.skipTransitionTimeoutMs===void 0?300:H.skipTransitionTimeoutMs;b=H.beforeTransition;a=H.afterTransition;if(!e||!document.startViewTransition||document.visibilityState==="hidden")return S.return(D());w={width:window.innerWidth,height:window.innerHeight};h=!1;(K=b)==null||K();_.$p(S,2);N=document.startViewTransition(D);k=setTimeout(function(){N.skipTransition();
h=!0},V);
return S.yield(N.ready,4);case 4:return clearTimeout(k),S.yield(N.finished,5);case 5:clearTimeout(k);(T=a)==null||T();_.yM(S,0);break;case 2:c=_.Pv(S),(U=a)==null||U(),ECY(c,w,h,t.ignoredErrors),_.n2(S)}})};
_.N1H=function(D,t,H){D.persistentPanelContainerMap.set(H,t)};
_.N8=function(){for(var D=Array(36),t=0,H,e=0;e<36;e++)e==8||e==13||e==18||e==23?D[e]="-":e==14?D[e]="4":(t<=2&&(t=33554432+Math.random()*16777216|0),H=t&15,t>>=4,D[e]=_.GXf[e==19?H&3|8:H]);return D.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 k5t=_.zk(['<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>']),
T1t=_.Qff(k5t);T1t.setAttribute("style","display: none;");document.head.appendChild(T1t.content);_.kA=_.nV6(function(D){var t=_.OH("DIV");D&&(t.className=D);t.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";D=_.OH("DIV");_.Wi9(D,"200px","200px");t.appendChild(D);document.body.appendChild(t);D=t.offsetWidth-t.clientWidth;_.UH(t);return D});var cZi;var jDQ;var TJ=function(){var D=_.X.apply(this,arguments)||this;D.icon=null;return D};
_.P(TJ,_.X);TJ.prototype.dismiss=function(){_.Gf(this.hostElement,"yt-live-chat-error-message-dismiss")};
TJ.prototype.computeIcon=function(D){return D&&D.iconType?"yt-icons:"+D.iconType.toLowerCase():"yt-icons:close"};
_.d([_.M(),_.x("design:type",Object)],TJ.prototype,"data",void 0);_.d([_.M({computed:"computeIcon(data.icon)"}),_.x("design:type",Object)],TJ.prototype,"icon",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],TJ);
_.p(TJ,"yt-live-chat-error-message-renderer",function(){if(jDQ===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;cZi===void 0&&(cZi=document.createElement("template"));var e=cZi;H.call(t,e.content.cloneNode(!0),D.content.firstChild);jDQ=D}D=jDQ;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var oQh,PYM,nQY,CYA,mH1,fOh,gQY,JFU,YFM,lOU,vQE,pth,lB,dHl,xHU,RgM,uFh,WiU,IOY,QvA,yFU,B4M,zgh,DN1,tM7,HMM,eUM,VMM,bMw,qYd,FdU,a1M,wUU,ZMl,sEU,hUN,Kdh,kFY,cAM,jEM,$Nl,iMM,GFE,EhU,UN7,ohF,PMl,nhM,CMM,mNw,MMw,rAF,XUd;
oQh=function(D,t,H,e){var V=!1,b={contentId:void 0,contentType:"video"};t=_.F(Object.entries(t));for(var a=t.next();!a.done;a=t.next()){var w=_.F(a.value);a=w.next().value;w=w.next().value;D.includes(a)&&!H.has(w)?(b.contentId=w,H.add(w),V=!0):a==="contentType"?w==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(b.contentType="playlist"):typeof w==="object"&&w!==null&&oQh(D,w,H,e)}V&&e.push(b)};
PYM=function(D,t){return _.jR(D.entities,"liveReactionsDataEntity",t)};
nQY=function(D,t){D=_.jR(D.entities,"booleanEntity",t);return!(!D||!D.value)};
CYA=function(D,t){var H=_.v3();H&&D&&_.Q$(H,_.Sa(D),t)};
mH1=function(D,t){return _.jR(D.entities,"timedMarkersListSyncEntity",t)};
_.MbM=function(D){return D.watch.isWatchActive};
_.SF1=function(D){return _.li(D)||_.vZ(D)||_.u8V(D)};
_.XtM=function(D){return!_.SF1(D)};
_.Yt=function(D){return D.watch.watchScrollTop};
fOh=function(D){return D.watch.isLiveChatCollapsed};
_.LiM=function(){_.r("web_watch_log_theater_mode")&&_.sGT("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.AFU=function(D,t,H){if(!D.includes("START_TIME_PLACEHOLDER")||!D.includes("END_TIME_PLACEHOLDER"))return D;var e=new Date(0),V=new Date(0);e.setUTCMilliseconds(t);V.setUTCMilliseconds(H);return D.replace("START_TIME_PLACEHOLDER",_.zu(e,7)).replace("END_TIME_PLACEHOLDER",_.zu(V,7))};
gQY=function(D,t){return _.jR(D.entities,"booleanEntity",t)};
JFU=function(){return function(D){_.bf(_.nf("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:D}))}};
YFM=function(D){switch(D){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}};
lOU=function(D,t,H){var e=_.xP(H);D&&t&&e&&D.getPlayerPromise().then(function(V){_.Ta8(e)&&_.Ap();(new _.tD(V)).executeCommand(e,t);_.r("continue_playback_on_desktop_companion_click")||V.pauseVideo()})};
vQE=function(D){var t=_.FA(),H;if(H=_.RD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var e;H=(e=H())==null?void 0:e.layoutId}else H=null;lOU(t,H,D)};
pth=function(D){var t=_.FA(),H;if(H=_.RD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var e;H=(e=H())==null?void 0:e.layoutId}else H=null;lOU(t,H,D)};
lB=function(D,t){var H=D<0?"-":"";D=Math.abs(D);var e=Math.floor(D/3600),V=Math.floor(D)%3600,b=Math.floor(V/60);V=Math.floor(V)%60;var a="";(t===void 0?0:t)&&(a="."+Math.round((D-Math.floor(D))*10));return e>0?H+e+":"+(b<10?"0"+b:""+b)+":"+(V<10?"0"+V:""+V)+a:H+b+":"+(V<10?"0"+V:""+V)+a};
dHl=function(D){var t=D.match(/[^0-9:\.]/g);if(t&&t.length>0)return null;D=D.split(":");if(D.length===0||D.length>3)return null;t=1;for(var H=0;D.length>0;){var e=D.pop();if(e===void 0)break;var V=Number(e);if(e===""||isNaN(V))return null;H+=V*t;t*=60}return H};
xHU=function(D,t,H,e){D=Math.max(H,D);t=Math.min(t,e-H);D+t>e?(H=e,D=H-t):H=D+t;return{start:D,end:H}};
RgM=function(D,t,H,e,V,b){D<H?D=H:D+V>e&&(D=e-V);t>e&&(t=e);t=Math.min(D+b,Math.max(D+V,t));return{start:D,end:t}};
uFh=function(D,t,H,e,V,b){t>e?t=e:t-V<H&&(t=H+V);D<H&&(D=H);D=Math.min(t-V,Math.max(t-b,D));return{start:D,end:t}};
WiU=function(D){return _.r("web_transcript_cue_id_killswitch")?String(D):"ytd-transcript-renderer_"+D};
IOY=function(D){return _.r("web_transcript_cue_id_killswitch")?!0:D.startsWith("ytd-transcript-renderer")};
QvA=function(D){var t=_.FA(),H;if(H=_.RD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var e;H=(e=H())==null?void 0:e.layoutId}else H=null;lOU(t,H,D)};
yFU=function(D){D.style.height="auto";D.style.height=Math.min(D.scrollHeight||20,80)+"px"};
B4M=function(D,t,H){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:t,hasGradientBackground:H}}],insertByPositionInSection:{sectionTargetId:D,position:"INSERTION_POSITION_LAST"}}}]}}}};
zgh=function(D){var t=_.FA(),H;H=(H=_.RD("yt.www.ads.eventcache.getLastCompanionData"))?(H=H())&&H.layoutId:null;lOU(t,H,D)};
DN1=function(D){var t=_.FA(),H;H=(H=_.RD("yt.www.ads.eventcache.getLastCompanionData"))?(H=H())&&H.layoutId:null;lOU(t,H,D)};
tM7=function(D){if(D.simpleText)return[{text:D.simpleText}];var t;return(t=D.runs)!=null?t:[]};
HMM=function(D){var t=D.startEndTimeTemplate,H=D.startTimeUtcMillis;D=D.endTimeUtcMillis;if(t&&H&&D)return _.H7(_.AFU(_.eo(t),Number(H),Number(D)))};
eUM=function(D,t){var H,e,V=D==null?void 0:(H=D.viewCount)==null?void 0:(e=H.videoViewCountRenderer)==null?void 0:e.shortViewCount;if(!t&&V)return V;var b,a;return D==null?void 0:(b=D.viewCount)==null?void 0:(a=b.videoViewCountRenderer)==null?void 0:a.viewCount};
VMM=function(D,t){var H=D==null?void 0:D.relativeDateText;return!t&&H?[H,!0]:[D==null?void 0:D.dateText,!1]};
bMw=function(D,t,H,e){e=e===void 0?"":e;var V=eUM(D,t),b=_.F(VMM(D,t)),a=b.next().value;b=b.next().value;t=t?D==null?void 0:D.sponsorsOnlyFirstTimeLongText:D==null?void 0:D.sponsorsOnlyFirstTimeShortText;var w=[];H&&V&&w.push(V);!H&&b||!a||w.push(a);D=[D==null?void 0:D.subtitle].concat(_.A6(w),[t,D==null?void 0:D.stationName,D==null?void 0:D.rating,D?HMM(D):void 0,D==null?void 0:D.upNextProgramText,D==null?void 0:D.superTitleLink]).filter(function(h){return!!h});
H={runs:[]};for(V=0;V<D.length;V++)H.runs.push.apply(H.runs,_.A6(tM7(D[V]))),V<D.length-1&&H.runs.push({text:" "+e+" "});return H};
qYd=function(D){return D.filter(function(t){return!_.O(t,_.HK)})};
FdU=function(D){var t,H,e,V;if(D=D==null?void 0:(t=D.contents)==null?void 0:(H=t.twoColumnWatchNextResults)==null?void 0:(e=H.results)==null?void 0:(V=e.results)==null?void 0:V.contents){var b,a;return(a=(b=D.find(function(w){return!!w.videoPrimaryInfoRenderer}))==null?void 0:b.videoPrimaryInfoRenderer)==null?void 0:a.updatedMetadataEndpoint}};
a1M=function(D,t){var H;return(H=D.sourceConfigs)==null?void 0:H.find(function(e){return e.videoId===t})};
wUU=function(D){return D==="End of video"||D==="End of playlist"};
ZMl=function(D){var t,H,e,V;return(t=D.getWatchNextResponse())==null?void 0:(H=t.contents)==null?void 0:(e=H.twoColumnWatchNextResults)==null?void 0:(V=e.playlist)==null?void 0:V.playlist};
sEU=function(D){var t,H,e,V,b,a;return(t=ZMl(D))==null?void 0:(H=t.playlistButtons)==null?void 0:(e=H.menuRenderer)==null?void 0:(V=e.topLevelButtons)==null?void 0:(b=V[0])==null?void 0:(a=b.playlistLoopButtonRenderer)==null?void 0:a.playlistLoopStateEntityKey};
hUN=function(D){var t=_.qS().resolve(_.hU),H;return(t=(H=_.O(t.getAutoplayEndpoint(),_.Hh))==null?void 0:H.playlistId)&&t===D};
Kdh=function(D,t,H,e,V){function b(){_.Jy.cancelJob(vG);var a=GFE(t,H/D.getPlaybackRate()),w=a.hours,h=a.minutes;a=(a.seconds*1E3||6E4)/D.getPlaybackRate();D.setVideoTimeLeft(EhU(w,h));e&&D.getPlayerState()!==0&&D.setSleepTimerTimeLeft(EhU(w,h,!0));(w>0||h>0)&&!V&&(vG=_.Mx(_.Jy,b,a))}
_.Jy.cancelJob(vG);vG=_.Mx(_.Jy,b)};
kFY=function(D,t,H){function e(){_.Jy.cancelJob(Nwl);var V=GFE(t,H),b=V.hours;V=V.minutes;var a=6E4/D.getPlaybackRate();if(b>0||V>0)D.setSleepTimerTimeLeft(EhU(b,V,!0)),Nwl=_.Mx(_.Jy,e,a)}
_.Jy.cancelJob(Nwl);Nwl=_.Mx(_.Jy,e)};
cAM=function(D,t){var H=D.getVolume()/(t/500),e=function(V){_.Jy.cancelJob(TwN);var b=Math.floor(V-H);D.setVolume(b,!1);b>0&&(TwN=_.Mx(_.Jy,function(){e(b)},500))};
_.Jy.cancelJob(TwN);TwN=_.Mx(_.Jy,function(){e(D.getVolume())})};
jEM=function(D,t){_.Jy.cancelJob(TwN);t&&D.syncVolume()};
$Nl=function(){var D={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.OT("SLEEP_TIMER_DISRUPTED")}}}}};_.qS().resolve(_.aA).resolveCommand(D)};
iMM=function(D){return(D.getDuration()-D.getProgressState().current)*1E3};
GFE=function(D,t){D=D+t-(0,_.aP)();if(D<=0)return{hours:0,minutes:0,seconds:0};var H=new rAF(0,0,0,0,0,0,D);D=H.getHours();t=H.getMinutes();H=H.getSeconds();H!==0&&t++;t!==0&&t%60===0&&(D++,t=0);return{hours:D,minutes:t,seconds:H}};
EhU=function(D,t,H){return D>0&&t>0?H?_.OT("TIME_LEFT_HOURS_MINUTES",{hours:D.toString(),minutes:t.toString()}):_.OT("TIME_HOURS_MINUTES",{hours:D.toString(),minutes:t.toString()}):D>0?H?_.UT("TIME_LEFT_HOURS",D):_.UT("TIME_HOURS",D):H?_.OT("TIME_LEFT_MINUTES",{minutes:t.toString()}):_.OT("TIME_MINUTES",{minutes:t.toString()})};
UN7=function(D,t){if(D.timelyActions)return D.timelyActions.find(function(H){var e;return((e=_.O(H,OMl))==null?void 0:e.cueRangeId)===t})};
ohF=function(D){var t=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.Ur(D);D.keyMap_.forEach(function(H,e){_.l8(t,e)||this.remove(e)},D)};
PMl=function(D,t){D.reloadContinuationItemsCommandMatcher=t};
nhM=function(){var D=_.qS().resolve(_.bO),t=[];oQh(["videoId","contentId"],D.data,new Set,t);return t};
CMM=function(){return nhM().filter(function(D){return D.contentType==="video"}).map(function(D){return D.contentId}).filter(function(D){return D!==void 0})};
_.pd=function(D,t){D.insertBefore(t,D.childNodes[0]||null)};
mNw=function(D){if(D>=48&&D<=57||D>=96&&D<=106||D>=65&&D<=90||_.NG&&D==0)return!0;switch(D){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 _.Ka;default:return!1}};
MMw=function(D){if(D.altKey&&!D.ctrlKey||D.metaKey||D.keyCode>=112&&D.keyCode<=123)return!1;if(mNw(D.keyCode))return!0;switch(D.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!_.Ka;default:return D.keyCode<166||D.keyCode>183}};
rAF=function(D,t,H,e,V,b,a){this.date=typeof D==="number"?new Date(D,t||0,H||1,e||0,V||0,b||0,a||0):new Date(D&&D.getTime?D.getTime():_.wU())};
_.Zj(rAF,_.pU);_.q=rAF.prototype;_.q.getHours=function(){return this.date.getHours()};
_.q.getMinutes=function(){return this.date.getMinutes()};
_.q.getSeconds=function(){return this.date.getSeconds()};
_.q.getMilliseconds=function(){return this.date.getMilliseconds()};
_.q.getUTCDay=function(){return this.date.getUTCDay()};
_.q.getUTCHours=function(){return this.date.getUTCHours()};
_.q.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.q.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.q.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.q.setHours=function(D){this.date.setHours(D)};
_.q.setMinutes=function(D){this.date.setMinutes(D)};
_.q.setSeconds=function(D){this.date.setSeconds(D)};
_.q.setMilliseconds=function(D){this.date.setMilliseconds(D)};
_.q.setUTCHours=function(D){this.date.setUTCHours(D)};
_.q.setUTCMinutes=function(D){this.date.setUTCMinutes(D)};
_.q.setUTCSeconds=function(D){this.date.setUTCSeconds(D)};
_.q.setUTCMilliseconds=function(D){this.date.setUTCMilliseconds(D)};
_.q.add=function(D){_.pU.prototype.add.call(this,D);D.hours&&this.setUTCHours(this.date.getUTCHours()+D.hours);D.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+D.minutes);D.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+D.seconds)};
_.q.JSC$11334_toIsoString=function(D){var t=_.pU.prototype.JSC$11334_toIsoString.call(this,D);return D?t+"T"+_.kB(this.getHours(),2)+":"+_.kB(this.getMinutes(),2)+":"+_.kB(this.getSeconds(),2):t+"T"+_.kB(this.getHours(),2)+_.kB(this.getMinutes(),2)+_.kB(this.getSeconds(),2)};
_.q.equals=function(D){return this.getTime()==D.getTime()};
_.q.toString=function(){return this.JSC$11334_toIsoString()};
_.q.clone=function(){var D=new rAF(this.date);D.firstDayOfWeek_=this.firstDayOfWeek_;D.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return D};
_.SYY=function(D){return _.hV({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:D}})};
XUd=new _.NM("imageTileRenderer");var f1d=new _.NM("adGridCardCollectionViewModel");var LdM=new _.NM("carouselTitleViewModel");var AAd=new _.NM("ctaCarouselItemViewModel");var ghU=new _.NM("textFieldViewModel");_.JAY=new _.NM("engagementPanelHeaderShowNavigationButtonCommand");var YYw=new _.NM("hideEngagementPanelScrimAction");var l1h=new _.NM("setActivePanelItemAction");var vhF=new _.NM("showEngagementPanelScrimAction");var pUl=new _.NM("updateEngagementPanelAction");var dN7=new _.NM("updateSearchInVideoResultsAction");var xNM=new _.NM("transcriptCueGroupRenderer");var RUA=new _.NM("transcriptCueRenderer");var u7M=new _.NM("transcriptFooterRenderer");var WdA=new _.NM("engagementPanelAdSubtitleRenderer");var I1A=new _.NM("videoDescriptionFantasySectionViewModel");var QEY=new _.NM("deleteClipEngagementPanelCommand");var yA1=new _.NM("loopCommand");var BwE=new _.NM("changeCreatorEndscreenVisibilityCommand");var zU7=new _.NM("liveChatCallForQuestionsRenderer");var Ddd=new _.NM("updateTimedMarkersSyncObserverCommand");var OMl=new _.NM("timelyActionViewModel");var t27=new _.NM("timelyActionsOverlayViewModel");var H2w=new _.NM("repeatChapterCommand");var eDF=new _.NM("watchPlayerOverflowMenuCommand");var V2M=new _.NM("compositeVideoOverlayRenderer");var b2A=new _.NM("sortFilterSubMenuRenderer");var qkw=new _.NM("switchListItemViewModel");var FuU=new _.NM("inputComposerViewModel");var a7M=new _.NM("transcriptEditSegmentCommand");var wv7=new _.NM("transcriptUpdateSegmentTextCommand");var Z2Y=new _.NM("transcriptSearchBoxRenderer");var sxw=new _.NM("transcriptSegmentListRenderer");var hD1=new _.NM("transcriptSegmentRenderer");_.G7M=new _.NM("updateDateTextAction");var EpU=new _.NM("updateTitleAction");var Kul=new _.NM("updateViewershipAction");var NNY=new _.NM("carouselLockupRenderer");var dD=new _.NM("expandableVideoDescriptionBodyRenderer");var k7w=new _.NM("videoDescriptionHeaderRenderer");var TNE=new _.NM("videoDescriptionYouchatSectionViewModel");_.xt=_.ZU("kevlar_watch_page_horizontal_margin",24);_.c6U=_.ZU("kevlar_watch_page_columns_top_padding",24);_.jxd=426+_.xt*2;_.RU=_.ZU("kevlar_watch_two_column_width_threshold",1E3);_.$dh=_.xt*2;_.i27=_.ZU("kevlar_watch_secondary_width",402);_.r6Y=_.ZU("kevlar_watch_max_player_width",1280);_.O2M=_.ZU("kevlar_watch_flexy_metadata_height",136);_.UdE=_.$dh+310+_.xt;_.opM=_.$dh+360+_.xt;var PF7={PAUSE_CHAT:18};var nph;var CFU;var uB=function(){return _.X.apply(this,arguments)||this};
_.P(uB,_.X);uB.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
uB.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var D=_.O(this.data.button,_.h1);D&&(D.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.ql.Object.defineProperties(uB,{template:{configurable:!0,enumerable:!0,get:function(){if(CFU===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;nph===void 0&&(nph=document.createElement("template"));var e=nph;H.call(t,e.content.cloneNode(!0),D.content.firstChild);CFU=D}D=CFU;return D}}});
_.d([_.C(_.hX),_.x("design:type",Object)],uB.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],uB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M({selectorArgs:["data.enabledEntityKey"],selector:nQY,observer:"onEnabledChange"}),_.x("design:type",Boolean)],uB.prototype,"enabled",void 0);_.d([_.M(),_.x("design:type",Object)],uB.prototype,"data",void 0);_.d([_.xL({is:"yt-disableable-button-view-model",noInjection:!0})],uB);var mdY;var M2d;var SkM=["transVert01","transVert02","transVert03"],XvU="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),WG=function(){var D=_.X.apply(this,arguments)||this;D.emojiManager=_.ND;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};D.reactionBuckets=[];D.noEmojiIdentifier="NO_EMOJI";return D};
_.P(WG,_.X);_.q=WG.prototype;_.q.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.q.desktopFountainEmojiSizePxChanged=function(){_.jZ(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.q.createUserReactionAnimation=function(D){this.createEmojiAnimation(D,!0)};
_.q.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var D;((D=this.data)==null?0:D.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.nf("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.A6(this.emojiContainer.children)).forEach(function(t){t.remove()})};
_.q.detached=function(){this.cleanupFountain()};
_.q.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var D;this.reactionBuckets=_.J$.unsafeClone((D=this.emojiFountainData)==null?void 0:D.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.q.processEmojiBucket=function(D){var t=this;if(this.reactionBuckets&&!(D>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var H=this.reactionBuckets[D];this.generateEmojiAnimations(H);if(D<this.reactionBuckets.length-1){var e;if(H==null?0:(e=H.duration)==null?0:e.seconds)this.emojiBucketTimerId=setTimeout(function(){t.processEmojiBucket(D+1)},Number(H.duration.seconds)*1E3)}}};
_.q.generateEmojiAnimations=function(D){var t=this,H=this.getRandomEmojiIdFromBucketWithOverride(D);if(H&&H!==this.noEmojiIdentifier){var e=0;D.targetEps?(e=this.linearInterpolateBounded(1,20,100,12,D.emojiSizeIndex||0),this.createEmojiAnimation(H,!1,D.emojiAnimationMs,e),e=this.getEmojiDelayMsFromTargetEps(D.targetEps)):(this.createEmojiAnimation(H),e=this.getEmojiDelayMsFromDistribution(D.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){t.generateEmojiAnimations(D)},e)}};
_.q.getRandomEmojiIdFromBucketWithOverride=function(D){if(!(D&&D.reactionsData&&D.reactionsData.length&&D.totalReactions))return this.noEmojiIdentifier;for(var t=D.totalReactions,H=1,e=_.F(D.reactionsData),V=e.next();!V.done;V=e.next())V=V.value,(V.reactionWeightOverride||V.reactionWeightOverride===0)&&V.reactionCount&&(t-=V.reactionCount,H-=V.reactionWeightOverride);e=!0;H<0&&(e=!1,t=D.totalReactions,H=1);if(e&&H>0&&t===0)if(H===1){V=0;for(var b=_.F(D.reactionsData),a=b.next();!a.done;a=b.next())a=
a.value,a.reactionCount&&a.reactionCount>0&&V++;V=1/V;b=_.F(D.reactionsData);for(a=b.next();!a.done;a=b.next())a.value.reactionWeightOverride=V}else for(V=1/(1-H),b=_.F(D.reactionsData),a=b.next();!a.done;a=b.next())a=a.value,a.reactionWeightOverride&&(a.reactionWeightOverride*=V);V=Math.random();b=0;a=_.F(D.reactionsData);for(var w=a.next();!w.done;w=a.next())if(w=w.value,w.reactionCount&&(b=(w.reactionWeightOverride||w.reactionWeightOverride===0)&&e?b+w.reactionWeightOverride:b+H*w.reactionCount/
t,b>V&&(w.reactionCount--,D.totalReactions--,w=this.reactionItemToEmojiString(w),w!==this.noEmojiIdentifier)))return w;return this.noEmojiIdentifier};
_.q.reactionItemToEmojiString=function(D){if(D.unicodeEmojiId)return D.unicodeEmojiId;if(D.emoteId)return D.emoteId;if(D.videoReactionType)switch(D.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.q.createEmojiAnimation=function(D,t,H,e){t=t===void 0?!1:t;this.lastEmojiRequestedForTesting=D;var V=D.startsWith("yt-icons:"),b=_.Ed(this.emojiManager,D);if(b||V){var a=document.createElement("emoji");a.classList.add("yt-emoji-fountain-view-model");a.classList.add(SkM[Math.floor(Math.random()*SkM.length)]);var w=document.createElement("div");w.classList.add("yt-emoji-fountain-view-model");w.classList.add("horizontal-container");w.classList.add(XvU[Math.floor(Math.random()*XvU.length)]);t?(H=document.createElement("div"),
H.classList.add("user-reaction-bubble"),H.classList.add("yt-emoji-fountain-view-model"),w.appendChild(H)):(H&&(a.style.animationDuration=H+"ms",w.style.animationDuration=H+"ms"),e&&(a.style.width=e+"px",a.style.height=e+"px"));V?(V=document.createElement("yt-icon"),V.polymerController.icon=D,e&&(V.style.width=e+"px",V.style.height=e+"px"),D=V):D=this.emojiManager.createEmoji(b,!1);D.classList.add("yt-emoji-fountain-view-model");w.appendChild(D);a.appendChild(w);this.emojiContainer.appendChild(a);
a.addEventListener("animationend",function(){a.remove()});
var h,K;if((h=this.data)==null?0:(K=h.loggingDirectives)==null?0:K.trackingParams)t=t?_.Nx(183501):_.Nx(183500),CYA(this.data.loggingDirectives.trackingParams,t),_.zpT(t);setTimeout(function(){a&&a.remove()},2E3)}};
_.q.getEmojiDelayMsFromDistribution=function(D){return Math.random()*(D||1)*1E3};
_.q.getEmojiDelayMsFromTargetEps=function(D){return Math.random()*2*(1/D)*1E3};
_.q.linearInterpolateBounded=function(D,t,H,e,V){V=Math.min(Math.max(V,D),H);return(t*(H-V)+e*(V-D))/(H-D)};
WG.prototype.onEmojiFountainDataEntityUpdate=WG.prototype.onEmojiFountainDataEntityUpdate;WG.prototype.desktopFountainEmojiSizePxChanged=WG.prototype.desktopFountainEmojiSizePxChanged;WG.prototype.isActiveChanged=WG.prototype.isActiveChanged;_.d([_.M(),_.x("design:type",_.GG)],WG.prototype,"emojiManager",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],WG.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.hX),_.x("design:type",Object)],WG.prototype,"ytLiveChatReduxBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],WG.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],WG.prototype,"data",void 0);_.d([_.M({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(D,t){return _.jR(D.entities,"emojiFountainDataEntity",t)}}),
_.x("design:type",Object)],WG.prototype,"emojiFountainData",void 0);_.d([_.M(),_.x("design:type",Boolean)],WG.prototype,"isActive",void 0);_.d([_.Os("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WG.prototype,"isActiveChanged",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],WG.prototype,"isDarkTheme",void 0);_.d([_.M(),_.x("design:type",String)],WG.prototype,"lastEmojiRequestedForTesting",void 0);
_.d([_.M({value:function(){return _.ZU("desktop_fountain_emoji_size_px",20)}}),
_.x("design:type",Number)],WG.prototype,"desktopFountainEmojiSizePx",void 0);_.d([_.Os("desktopFountainEmojiSizePx"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WG.prototype,"desktopFountainEmojiSizePxChanged",null);_.d([_.o5("#emoji-container"),_.x("design:type",HTMLElement)],WG.prototype,"emojiContainer",void 0);
_.d([_.Os("emojiFountainData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WG.prototype,"onEmojiFountainDataEntityUpdate",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],WG);
_.p(WG,"yt-emoji-fountain-view-model",function(){if(M2d===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;mdY===void 0&&(mdY=document.createElement("template"));var e=mdY;H.call(t,e.content.cloneNode(!0),D.content.firstChild);M2d=D}D=M2d;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var f7M;var Lu1;var IU=function(){return _.X.apply(this,arguments)||this};
_.P(IU,_.X);IU.prototype.onChoiceChanged=function(){this.data&&_.jZ(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
IU.prototype.onChoiceChanged=IU.prototype.onChoiceChanged;_.d([_.M(),_.x("design:type",Object)],IU.prototype,"data",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],IU.prototype,"onChoiceChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],IU);
_.p(IU,"yt-live-chat-banner-poll-choice",function(){if(Lu1===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;f7M===void 0&&(f7M=document.createElement("template"));var e=f7M;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Lu1=D}D=Lu1;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var A6l;var gpY;var Qn=function(){var D=_.X.apply(this,arguments)||this;D.modern=_.r("web_button_rework_with_live");D.small=!1;return D};
_.P(Qn,_.X);Qn.prototype.computeIsSmall=function(){var D;return((D=this.buttonOverrides)==null?void 0:D.size)==="S"};
Qn.prototype.computeId=function(){return this.data&&this.data.targetId};
_.d([_.C(_.Gq.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],Qn.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.M({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",String)],Qn.prototype,"id",void 0);_.d([_.M(),_.x("design:type",Object)],Qn.prototype,"buttonOverrides",void 0);_.d([_.M(),_.x("design:type",Object)],Qn.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Qn.prototype,"modern",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.x("design:type",Object)],Qn.prototype,"small",void 0);_.d([_.Y({disableElementRegistration:!0,is:"yt-live-chat-button"})],Qn);
_.p(Qn,"yt-live-chat-button",function(){if(gpY===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;A6l===void 0&&(A6l=document.createElement("template"));var e=A6l;H.call(t,e.content.cloneNode(!0),D.content.firstChild);gpY=D}D=gpY;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var J6w;var Ykd;var yn=function(){var D=_.X.apply(this,arguments)||this;D.inCollapsedBanner=!1;D.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};D.questionButtonOverrides={style:"mono",type:"filled"};return D};
_.P(yn,_.X);_.q=yn.prototype;_.q.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]]"}}}}}};
_.q.onContextMenuButtonClick=function(D){this.ytLiveChatItemBehavior.showContextMenu(D)};
_.q.onYtRendererstamperFinished=function(){this.menuButton=_.Kg(this.hostElement).querySelector("#menu-button")};
_.q.dataChanged=function(){var D,t;if((t=_.O((D=this.data)==null?void 0:D.overflowMenuButton,_.aj))==null?0:t.command)this.data.contextMenuEndpoint=_.O(this.data.overflowMenuButton,_.aj).command};
_.q.onButtonClick=function(){var D,t=_.O((D=this.data)==null?void 0:D.askQuestionButton,_.aj);if(t){if(t.trackingParams&&(D=_.Sa(t.trackingParams))){var H=_.v3();H&&_.tV(H,D)}_.Gf(this.hostElement,"innertube-command",t.command)}};
yn.prototype.onYtRendererstamperFinished=yn.prototype.onYtRendererstamperFinished;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],yn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.hX),_.x("design:type",Object)],yn.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],yn.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.M({observer:"dataChanged"}),_.x("design:type",Object)],yn.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yn.prototype,"inCollapsedBanner",void 0);_.d([_.M(),_.x("design:type",Object)],yn.prototype,"buttonOverrides",void 0);_.d([_.M(),_.x("design:type",Object)],yn.prototype,"questionButtonOverrides",void 0);_.d([_.rx("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yn.prototype,"onYtRendererstamperFinished",null);
_.d([_.Y({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],yn);
_.p(yn,"yt-live-chat-call-for-questions-renderer",function(){if(Ykd===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;J6w===void 0&&(J6w=document.createElement("template"));var e=J6w;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Ykd=D}D=Ykd;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var l7w={};l7w.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 D=this;window.requestAnimationFrame(function(){D.restoreFocusNode_||(D.restoreFocusNode_=document.activeElement);var t=_.Os3(D.hostElement);t.length&&t[t.length-1].focus()})},
isAttachedChanged_:function(D,t){D?this.focusChild_():t&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(D){this.hidden||_.bK(D).indexOf(this.hostElement)!==-1||(D.stopPropagation(),this.focusChild_())}};var vpl;var pvN;var BG=function(){return _.X.apply(this,arguments)||this};
_.P(BG,_.X);BG.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
BG.prototype.onClick=function(D){D.target!==this.confirmButton&&D.target!==this.cancelButton&&(this.hidden=!0)};
_.d([_.o5("#confirm_button"),_.x("design:type",Object)],BG.prototype,"confirmButton",void 0);_.d([_.o5("#cancel_button"),_.x("design:type",Object)],BG.prototype,"cancelButton",void 0);_.d([_.M(),_.x("design:type",ddd)],BG.prototype,"data",void 0);_.d([_.M({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],BG.prototype,"hidden",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],BG.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(l7w.YtLiveChatDialogBehavior),_.x("design:type",Object)],BG.prototype,"ytLiveChatDialogBehavior",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],BG);
var ddd=_.p(BG,"yt-live-chat-dialog-renderer",function(){if(pvN===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;vpl===void 0&&(vpl=document.createElement("template"));var e=vpl;H.call(t,e.content.cloneNode(!0),D.content.firstChild);pvN=D}D=pvN;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var xd7;var RDl,uqM=function(){if(RDl!==void 0)return RDl;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;xd7===void 0&&(xd7=document.createElement("template"));var e=xd7;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return RDl=D};var WuU;var I7h;var zv=function(){var D=_.X.apply(this,arguments)||this;D.tooltip=null;D.data=null;D.id="";D.active=!1;D.icon="";D.disabled=!1;D.showTooltip=!1;D.useToggledActiveState=!0;D.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return D};
_.P(zv,_.X);_.q=zv.prototype;
_.q.dataChanged=function(){var D;((D=this.data)==null?0:D.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,_.cT)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var t;if((t=this.data)==null?0:t.disabled)this.disabled=!0};
_.q.computeId=function(D){return D};
_.q.computeIcon=function(D,t){if(!D)return"";if(this.useToggledActiveState)return"yt-icons:"+D.toLowerCase();var H,e;return t&&((H=this.data)==null?0:(e=H.toggledIcon)==null?0:e.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+D.toLowerCase()};
_.q.logPDGEntryPoint=function(){_.vnR(_.c7("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")};
_.q.immediatelyShowTooltip=function(){var D=_.Kg(this.hostElement).querySelector("#tooltip");D.animationDelay=0;D.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};D.show()};
_.q.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.q.onClick=function(D){var t;((t=this.data)==null?0:t.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),D.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Gf(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.q.computeShowTooltip=function(D,t){return!!(D&&D.tooltip&&t)};
_.q.maybeUpdateTooltipText=function(){var D=this,t;if((t=this.data)==null?0:t.tooltip){var H=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.cT)(D.tooltip).textContent=H},250)}};
_.q.handleLiveChatActions=function(D){var t=this;D.length&&(this.id!=="creator"&&this.id!=="product-picker"||D.forEach(function(H){(H=t.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",H))&&H.durationSec===H.fullDurationSec&&t.startBubble(t.colorFromDecimal(H.startBackgroundColor))}))};
_.q.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.q.startBubble=function(D){_.jZ(this.hostElement,{"--yt-live-chat-monetization-button-glow":D});this.hostElement.setAttribute("bubble","")};
_.q.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.q.colorFromDecimal=function(D){typeof D==="string"&&(D=Number(D));return"rgba("+[D>>16&255,D>>8&255,D&255,(D>>24&255)/255].join()+")"};
zv.prototype.onAnimationEnd=zv.prototype.onAnimationEnd;zv.prototype.disabledChanged=zv.prototype.disabledChanged;zv.prototype.dataChanged=zv.prototype.dataChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],zv.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],zv.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.Gq.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],zv.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],zv.prototype,"data",void 0);_.d([_.M({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",Object)],zv.prototype,"id",void 0);_.d([_.M({notify:!0,reflectToAttribute:!0}),_.x("design:type",Object)],zv.prototype,"active",void 0);
_.d([_.M({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.x("design:type",Object)],zv.prototype,"icon",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zv.prototype,"disabled",void 0);_.d([_.M({computed:"computeShowTooltip(data, disabled)"}),_.x("design:type",Object)],zv.prototype,"showTooltip",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zv.prototype,"useToggledActiveState",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zv.prototype,"dataChanged",null);_.d([_.Os("disabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zv.prototype,"disabledChanged",null);_.d([_.rx("animationend"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],zv.prototype,"onAnimationEnd",null);
_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],zv);
_.p(zv,"yt-live-chat-icon-toggle-button-renderer",function(){if(I7h===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;WuU===void 0&&(WuU=document.createElement("template"));var e=WuU;H.call(t,e.content.cloneNode(!0),D.content.firstChild);I7h=D}D=I7h;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var QxU;var y6U;var D$=function(){return _.X.apply(this,arguments)||this};
_.P(D$,_.X);D$.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.d([_.M(),_.x("design:type",Object)],D$.prototype,"data",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],D$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Y({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],D$);
_.p(D$,"yt-live-chat-message-input-prompt-header-renderer",function(){if(y6U===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;QxU===void 0&&(QxU=document.createElement("template"));var e=QxU;H.call(t,e.content.cloneNode(!0),D.content.firstChild);y6U=D}D=y6U;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var BNF;var zDU;var D31;var trE;var HWM;var e5E;var Vrd=function(){return _.X.apply(this,arguments)||this};
_.P(Vrd,_.X);_.d([_.M(),_.x("design:type",Object)],Vrd.prototype,"data",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],Vrd);
_.p(Vrd,"yt-live-chat-message-subtext-renderer",function(){if(e5E===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;HWM===void 0&&(HWM=document.createElement("template"));var e=HWM;H.call(t,e.content.cloneNode(!0),D.content.firstChild);e5E=D}D=e5E;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var tO=function(){var D=_.X.apply(this,arguments)||this;D.subtextOnBottom=!1;D.buttonOverrides={style:"mono",type:"tonal"};return D};
_.P(tO,_.X);tO.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"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],tO.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],tO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],tO.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],tO.prototype,"subtextOnBottom",void 0);_.d([_.M(),_.x("design:type",Object)],tO.prototype,"buttonOverrides",void 0);
_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],tO);
_.p(tO,"yt-live-chat-message-renderer",function(){if(trE===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;D31===void 0&&(D31=document.createElement("template"));var e=D31;H.call(t,e.content.cloneNode(!0),D.content.firstChild);trE=D}D=trE;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var bWU;var q51;var H0=function(){var D=_.X.apply(this,arguments)||this;D.isRemovable=!1;D.hasPrefilledText=!1;D.isInputDirty=!1;D.overCharacterLimit=!1;D.underCharacterLimit=!1;D.showErrorMessage=!1;return D};
_.P(H0,_.X);_.q=H0.prototype;_.q.computeId=function(){return this.data.id};
_.q.computeInputData=function(){return this.data.inputData};
_.q.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.q.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.q.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.q.getLiveChatRichMessageInput=function(){return _.Kg(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.q.clearInput=function(){_.Kg(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.q.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.q.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.q.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.q.handleTextInputCharCountChanged=function(D){D=D.detail&&D.detail.characterCount;D!==void 0&&(this.characterCount=D,D!==0&&(this.isInputDirty=!0))};
_.q.onInputFocusOut=function(){this.isInputDirty=!0};
_.q.onClickCloseButton=function(){_.Gf(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
H0.prototype.handleTextInputCharCountChanged=H0.prototype.handleTextInputCharCountChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],H0.prototype,"data",void 0);_.d([_.M({computed:"computeId(data.id)"}),_.x("design:type",String)],H0.prototype,"id",void 0);_.d([_.M({computed:"computeInputData(data.inputData)"}),_.x("design:type",Object)],H0.prototype,"inputData",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.x("design:type",Object)],H0.prototype,"isRemovable",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.x("design:type",Object)],H0.prototype,"hasPrefilledText",void 0);_.d([_.M({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.x("design:type",Number)],H0.prototype,"charactersRemaining",void 0);
_.d([_.M(),_.x("design:type",Number)],H0.prototype,"characterCount",void 0);_.d([_.M(),_.x("design:type",Object)],H0.prototype,"isInputDirty",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.x("design:type",Object)],H0.prototype,"overCharacterLimit",void 0);_.d([_.M({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.x("design:type",Object)],H0.prototype,"underCharacterLimit",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.x("design:type",Object)],H0.prototype,"showErrorMessage",void 0);_.d([_.rx("yt-live-chat-text-input-field-renderer-character-count-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],H0.prototype,"handleTextInputCharCountChanged",null);
_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],H0);
_.p(H0,"yt-live-chat-poll-editor-input",function(){if(q51===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;bWU===void 0&&(bWU=document.createElement("template"));var e=bWU;H.call(t,e.content.cloneNode(!0),D.content.firstChild);q51=D}D=q51;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var FJY;var aiU;var w_U={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},ey=function(){var D=_.X.apply(this,arguments)||this;D.modern=_.r("web_button_rework_with_live");D.closeButtonOverrides={iconPosition:"icon-only"};D.startButtonOverrides={style:"mono",type:"filled"};D.addOptionButtonOverrides={style:"mono",type:"text"};return D};
_.P(ey,_.X);_.q=ey.prototype;
_.q.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"}}}}};
_.q.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var D;_.O((D=this.data)==null?void 0:D.startButton,_.aj)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.q.computeId=function(){return this.data&&this.data.id||""};
_.q.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.q.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.q.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.q.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.q.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var D=0;D<this.pollEditorInfoWithDefaults.minPollOptions;D++)this.addPollOptionData()};
_.q.getIsValidPoll=function(){var D=this;if(!this.pollEditorInfoWithDefaults)return!1;var t=this.pollEditorInfoWithDefaults,H=t.minPollOptionChars,e=t.maxPollOptionChars,V=t.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>t.maxPollQuestionChars)return!1;t=_.Kg(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(t).every(function(b,a){b=b.characterCount;!b&&V[a]&&(b=D.ytRendererBehavior.getSimpleString(V[a]).length);return b!==void 0&&b>=H&&b<=e})};
_.q.isValidPollChanged=function(){var D;_.O((D=this.data)==null?void 0:D.startButton,_.aj)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.q.addPollOptionData=function(){var D=this.pollEditorInfoWithDefaults,t=D.maxPollOptionChars,H=D.optionPlaceholderText,e=D.customOptionPlaceholderText,V=D.pollOptionData;this.currentNumPollOptions>=D.maxPollOptions||(D={liveChatPollOptionInput:{inputData:{placeholder:e[this.currentNumPollOptions]||H,maxCharacterLimit:t},maxCharacterLimit:t,minCharacterLimit:D.minPollOptionChars,hasPrefilledText:!!e[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=D.minPollOptions}},V.charCountErrorText&&
(D.liveChatPollOptionInput.charCountErrorText=V.charCountErrorText),V.charsRemainingAltLabel&&(D.liveChatPollOptionInput.charsRemainingAltLabel=V.charsRemainingAltLabel),V.removeOptionAltText&&(D.liveChatPollOptionInput.removeOptionAltText=V.removeOptionAltText),this.push("pollOptionsData",D),V=Array.from(_.Kg(_.Kg(this.hostElement).querySelector("#poll-options")).children),V.forEach(function(b,a){b.polymerController.set("data.id",a)}),_.Kg(V[V.length-1]).querySelector("#input").focus())};
_.q.getPollOptionInputValues=function(){var D=this,t=[],H=_.Kg(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),e=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(H).forEach(function(V,b){var a=null;V=V.getLiveChatRichMessageInput();var w;(V==null?0:(w=V.textSegments)==null?0:w.length)?a=_.ui(V):e[b]&&(a=D.formattedStringToLiveChatRichMessageInput(e[b]));t.push(a)});
return t};
_.q.requestCreateAndStartPoll=function(D){var t=this.getPollOptionInputValues();if(!t.some(function(e){return!e})){t={optionText:t};
var H=_.Kg(_.Kg(this.hostElement).querySelector("#poll-question")).firstChild;H&&H.liveChatRichMessageInput&&(t.questionText=_.ui(H.liveChatRichMessageInput));_.NJ(this.hostElement,[D,t])}};
_.q.selectedChanged=function(){if(this.selected){var D=_.Kg(_.Kg(this.hostElement).querySelector("#start-button")).firstElementChild;if(D){var t;(t=_.Kg(D).querySelector("#button")||_.Ny(D).querySelector("button"))==null||t.focus()}}};
_.q.handleTextInputChanged=function(D){var t;((t=D.target)==null?void 0:t.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=D.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.q.handleStartButtonAction=function(D){D.detail.actionName==="yt-service-request"&&(D.stopPropagation(),(D=D.detail.args[1])&&this.requestCreateAndStartPoll(D))};
_.q.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.q.handleServiceRequestCompleted=function(D){this.createPollRequestInFlight=!1;(D=D.detail&&D.detail.data)&&D.success&&(_.Gf(this.hostElement,"picker-cancelled"),_.ET(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.q.onCloseClick=function(){_.Gf(this.hostElement,"picker-cancelled");_.ET(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.q.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.q.handlePollEditorInputClosed=function(D){var t=this.pollOptionsData.findIndex(function(H){return H.liveChatPollOptionInput.id===D.detail.id});
this.splice("pollOptionsData",t,1);this.isValidPoll=this.getIsValidPoll()};
_.q.onPickerCancelled=function(){this.reset()};
_.q.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var D=_.Kg(_.Kg(this.hostElement).querySelector("#poll-question")).firstChild;D&&D.setLiveChatRichMessageInput(null);if(D=_.Kg(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){D=_.F(Array.from(D));for(var t=D.next();!t.done;t=D.next())t.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.q.formattedStringToLiveChatRichMessageInput=function(D){return D.simpleText?{text_segments:[D.simpleText]}:{text_segments:D.runs}};
_.ql.Object.defineProperties(ey.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(w_U,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
ey.prototype.onPickerCancelled=ey.prototype.onPickerCancelled;ey.prototype.handlePollEditorInputClosed=ey.prototype.handlePollEditorInputClosed;ey.prototype.handleServiceRequestCompleted=ey.prototype.handleServiceRequestCompleted;ey.prototype.handleServiceRequestSent=ey.prototype.handleServiceRequestSent;ey.prototype.handleTextInputChanged=ey.prototype.handleTextInputChanged;ey.prototype.selectedChanged=ey.prototype.selectedChanged;ey.prototype.isValidPollChanged=ey.prototype.isValidPollChanged;
ey.prototype.shouldInitializePollChanged=ey.prototype.shouldInitializePollChanged;ey.prototype.dataChanged=ey.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ey.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ey.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ey.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ey.prototype,"modern",void 0);
_.d([_.M(),_.x("design:type",Object)],ey.prototype,"closeButtonOverrides",void 0);_.d([_.M(),_.x("design:type",Object)],ey.prototype,"startButtonOverrides",void 0);_.d([_.M(),_.x("design:type",Object)],ey.prototype,"addOptionButtonOverrides",void 0);_.d([_.M({computed:"computeId(data.id)",reflectToAttribute:!0}),_.x("design:type",String)],ey.prototype,"id",void 0);_.d([_.M({value:function(){return[]}}),
_.x("design:type",Array)],ey.prototype,"pollOptionsData",void 0);_.d([_.m("pollEditorInfoWithDefaults"),_.x("design:type",Object),_.x("design:paramtypes",[])],ey.prototype,"pollQuestionData",null);_.d([_.M({value:0}),_.x("design:type",Number)],ey.prototype,"pollQuestionCharacterCount",void 0);_.d([_.m("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.x("design:type",Object),_.x("design:paramtypes",[])],ey.prototype,"pollQuestionCharactersRemaining",null);
_.d([_.M({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.x("design:type",Boolean)],ey.prototype,"overQuestionCharacterLimit",void 0);_.d([_.m("data.pollEditorInfo"),_.x("design:type",Object),_.x("design:paramtypes",[])],ey.prototype,"pollEditorInfoWithDefaults",null);_.d([_.M({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.x("design:type",Number)],ey.prototype,"currentNumPollOptions",void 0);
_.d([_.M({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.x("design:type",Boolean)],ey.prototype,"hasMaxNumPollOptions",void 0);_.d([_.m("pollEditorInfoWithDefaults","pollOptionsData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],ey.prototype,"shouldInitializePoll",null);_.d([_.M(),_.x("design:type",Object)],ey.prototype,"isValidPoll",void 0);
_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],ey.prototype,"createPollRequestInFlight",void 0);_.d([_.M(),_.x("design:type",Object)],ey.prototype,"selected",void 0);_.d([_.M({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.x("design:type",Boolean)],ey.prototype,"showQuestionErrorMessage",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ey.prototype,"dataChanged",null);_.d([_.Os("shouldInitializePoll"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ey.prototype,"shouldInitializePollChanged",null);_.d([_.Os("isValidPoll"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ey.prototype,"isValidPollChanged",null);
_.d([_.Os("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ey.prototype,"selectedChanged",null);_.d([_.rx("yt-live-chat-text-input-field-renderer-character-count-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ey.prototype,"handleTextInputChanged",null);
_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ey.prototype,"handleServiceRequestSent",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ey.prototype,"handleServiceRequestCompleted",null);
_.d([_.rx("yt-live-chat-poll-editor-input-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ey.prototype,"handlePollEditorInputClosed",null);_.d([_.rx("picker-cancelled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ey.prototype,"onPickerCancelled",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],ey);
_.p(ey,"yt-live-chat-poll-editor-panel-renderer",function(){if(aiU===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;FJY===void 0&&(FJY=document.createElement("template"));var e=FJY;H.call(t,e.content.cloneNode(!0),D.content.firstChild);aiU=D}D=aiU;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var ZWd;var stM;var Vu=function(){return _.X.apply(this,arguments)||this};
_.P(Vu,_.X);Vu.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Vu.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.ql.Object.defineProperties(Vu.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var D,t;return(D=this.data)==null?void 0:(t=D.title)==null?void 0:t.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var D;return _.xP((D=this.data)==null?void 0:D.onTapCommand)}}});
_.d([_.C(_.pE.YtEndpointBehavior),_.x("design:type",Object)],Vu.prototype,"ytEndpointBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Vu.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Vu.prototype,"itemId",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Vu.prototype,"hasPromotion",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Vu.prototype,"innertubeCommand",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Vu);
_.p(Vu,"yt-live-chat-product-picker-panel-item-view-model",function(){if(stM===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;ZWd===void 0&&(ZWd=document.createElement("template"));var e=ZWd;H.call(t,e.content.cloneNode(!0),D.content.firstChild);stM=D}D=stM;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var h5l;var GtN;var bC=function(){var D=_.X.apply(this,arguments)||this;D.id="product-picker";D.selected=!1;D.closeButtonId="close-button";D.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return D};
_.P(bC,_.X);_.q=bC.prototype;_.q.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.q.observeSelected=function(){this.selected&&this.hostElement.focus();var D=_.Kg(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");D.length&&D[0].focus()};
_.q.onCloseBuyFlow=function(){_.Gf(this.hostElement,"picker-cancelled")};
_.q.onCloseClick=function(){_.Gf(this.hostElement,"picker-cancelled");var D;((D=this.data)==null?0:D.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.O(this.data.closeButton,_.h1))};
_.q.onCloseEngageWithAudienceEditorPanels=function(){_.Gf(this.hostElement,"picker-cancelled")};
bC.prototype.observeSelected=bC.prototype.observeSelected;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],bC.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],bC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],bC.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],bC.prototype,"id",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],bC.prototype,"selected",void 0);_.d([_.M(),_.x("design:type",Object)],bC.prototype,"closeButtonId",void 0);_.d([_.Os("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bC.prototype,"observeSelected",null);
_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],bC);
_.p(bC,"yt-live-chat-product-picker-panel-view-model",function(){if(GtN===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;h5l===void 0&&(h5l=document.createElement("template"));var e=h5l;H.call(t,e.content.cloneNode(!0),D.content.firstChild);GtN=D}D=GtN;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var EzA;var KJM;var qZ=function(){var D=_.X.apply(this,arguments)||this;D.iconId="";D.icon="";D.disabled=!1;D.systemIcons=_.r("kevlar_system_icons");return D};
_.P(qZ,_.X);_.q=qZ.prototype;_.q.computeIconId=function(D){return D&&D.icon&&D.icon.iconType?D.icon.iconType.toLowerCase():""};
_.q.computeIcon=function(D){return D&&D.icon&&D.icon.iconType?(D=D.icon.iconType.toLowerCase(),(D.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+D):""};
_.q.computeDisabled=function(D){return!!D};
_.q.computeCommand=function(D,t){return t?void 0:D};
_.q.computeTooltip=function(D,t){return t&&D?D:""};
_.q.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.ql.Object.defineProperties(qZ.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var D="",t,H,e;if((t=this.data)==null?0:(H=t.text)==null?0:(e=H.runs)==null?0:e.length)D=this.data.text.runs[0].text||"";else{var V,b;if((V=this.data)==null?0:(b=V.text)==null?0:b.simpleText)D=this.data.text.simpleText}var a,w,h;if((a=this.data)==null?0:(w=a.subtext)==null?0:(h=w.runs)==null?0:h.length)D&&(D+=". "),D+=this.data.subtext.runs[0].text||"";else{var K,N;if((K=this.data)==null?0:(N=K.subtext)==
null?0:N.simpleText)D&&(D+=". "),D+=this.data.subtext.simpleText}return D}}});
_.d([_.C(_.pE.YtEndpointBehavior),_.x("design:type",Object)],qZ.prototype,"ytEndpointBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],qZ.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],qZ.prototype,"data",void 0);_.d([_.M({computed:"computeIconId(data)",reflectToAttribute:!0}),_.x("design:type",Object)],qZ.prototype,"iconId",void 0);
_.d([_.M({computed:"computeIcon(data)",reflectToAttribute:!0}),_.x("design:type",Object)],qZ.prototype,"icon",void 0);_.d([_.M({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.x("design:type",Object)],qZ.prototype,"disabled",void 0);_.d([_.M({computed:"computeCommand(data.command, disabled)"}),_.x("design:type",Object)],qZ.prototype,"command",void 0);_.d([_.M({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.x("design:type",String)],qZ.prototype,"tooltip",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],qZ.prototype,"systemIcons",void 0);_.d([_.m("data.text","data.subtext"),_.M(),_.x("design:type",String),_.x("design:paramtypes",[])],qZ.prototype,"ariaLabel",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],qZ);
_.p(qZ,"yt-live-chat-product-button-renderer",function(){if(KJM===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;EzA===void 0&&(EzA=document.createElement("template"));var e=EzA;H.call(t,e.content.cloneNode(!0),D.content.firstChild);KJM=D}D=KJM;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var NMM;var ktM;var FP=function(){var D=_.X.apply(this,arguments)||this;D.selected=!1;D.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 D};
_.P(FP,_.X);_.q=FP.prototype;_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.q.computeId=function(D){return D.id||""};
_.q.onCloseClick=function(){_.Gf(this.hostElement,"picker-cancelled")};
_.q.observeSelected=function(){this.selected&&this.hostElement.focus();var D=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");D.length&&D[0].focus()};
_.q.onCloseBuyFlow=function(){_.Gf(this.hostElement,"picker-cancelled")};
_.q.onCloseEngageWithAudienceEditorPanels=function(){_.Gf(this.hostElement,"picker-cancelled")};
FP.prototype.observeSelected=FP.prototype.observeSelected;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],FP.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],FP.prototype,"data",void 0);
_.d([_.M({computed:"computeId(data)",reflectToAttribute:!0}),_.x("design:type",String)],FP.prototype,"id",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],FP.prototype,"selected",void 0);_.d([_.Os("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FP.prototype,"observeSelected",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],FP);
_.p(FP,"yt-live-chat-product-picker-renderer",function(){if(ktM===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;NMM===void 0&&(NMM=document.createElement("template"));var e=NMM;H.call(t,e.content.cloneNode(!0),D.content.firstChild);ktM=D}D=ktM;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var TME;var c$M;var jtN;var $3M;var aL=function(){return _.X.apply(this,arguments)||this};
_.P(aL,_.X);aL.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()};
aL.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
aL.prototype.created=function(){this.ids={background:_.N8(),maskOne:_.N8(),maskTwo:_.N8(),gradient:_.N8(),largeBackground:_.N8(),largeGradientOne:_.N8(),largeGradientTwo:_.N8(),largeGradientPath:_.N8()}};
aL.prototype.maybeLoadAnimationBackground=aL.prototype.maybeLoadAnimationBackground;_.d([_.M({value:!1}),_.x("design:type",Boolean)],aL.prototype,"useLargeBackground",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],aL.prototype,"useAnimationBackground",void 0);_.d([_.M({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.x("design:type",Boolean)],aL.prototype,"useRegularBackground",void 0);
_.d([_.M(),_.x("design:type",Object)],aL.prototype,"ids",void 0);_.d([_.M(),_.x("design:type",Object)],aL.prototype,"lottieAnimation",void 0);_.d([_.o5("#animation-background"),_.x("design:type",HTMLDivElement)],aL.prototype,"animationBackground",void 0);_.d([_.Os("useAnimationBackground"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aL.prototype,"maybeLoadAnimationBackground",null);
_.d([_.xL({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],aL);
_.p(aL,"yt-live-interactivity-component-background",function(){if($3M===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;jtN===void 0&&(jtN=document.createElement("template"));var e=jtN;H.call(t,e.content.cloneNode(!0),D.content.firstChild);$3M=D}D=$3M;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var wz=function(){var D=_.X.apply(this,arguments)||this;D.characterCount=0;D.showInputErrorMessage=!1;D.startQnaRequestInFlight=!1;D.modern=_.r("web_button_rework_with_live");D.buttonOverrides={style:"mono",type:"filled"};D.closeButtonOverrides={iconPosition:"icon-only"};D.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return D};
_.P(wz,_.X);_.q=wz.prototype;
_.q.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]]"}}}}}};
_.q.onCharacterCountChanged=function(D){var t,H,e,V,b=(H=_.O(this==null?void 0:(t=this.data)==null?void 0:t.creatorCallForQuestions,zU7))==null?void 0:(e=H.inputField)==null?void 0:(V=e.liveChatTextInputFieldRenderer)==null?void 0:V.maxCharacterLimit,a,w;b!=null&&(D==null?void 0:(a=D.detail)==null?void 0:a.characterCount)!=null&&_.O(this==null?void 0:(w=this.data)==null?void 0:w.startButton,_.aj)&&(t=D.detail.characterCount>b,this.set("data.startButton.buttonRenderer.isDisabled",D.detail.characterCount===
0||t),this.showInputErrorMessage=t)};
_.q.onCloseClick=function(){_.Gf(this.hostElement,"picker-cancelled");_.ET(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.q.onPickerCancelled=function(){var D=_.Kg(this.hostElement).querySelector("#qna-creator-text-input-field");D&&D.setLiveChatRichMessageInput(null)};
_.q.handleOpenQnaStartPanel=function(){var D=_.Kg(this.hostElement).querySelector("#qna-creator-text-input-field");D&&D.focus()};
_.q.handleStartButtonAction=function(D){var t=this;if(D.detail.actionName==="yt-service-request"&&(D.stopPropagation(),D=D.detail.args[1])){var H=_.Kg(this.hostElement).querySelector("#qna-creator-text-input-field"),e;(H==null?0:(e=H.liveChatRichMessageInput)==null?0:e.textSegments)&&H.liveChatRichMessageInput.textSegments.length!==0&&(e={rich_message:_.ui(H.liveChatRichMessageInput)},_.NJ(this.hostElement,[D,e]).then(function(){_.Gf(t.hostElement,"picker-cancelled")}))}};
_.q.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.q.handleServiceRequestCompleted=function(D){var t;D=D==null?void 0:(t=D.detail)==null?void 0:t.data;(D==null?0:D.actions)&&D.actions.length>0?this.startQnaRequestInFlight=!1:_.ET(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.q.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
wz.prototype.handleServiceRequestError=wz.prototype.handleServiceRequestError;wz.prototype.handleServiceRequestCompleted=wz.prototype.handleServiceRequestCompleted;wz.prototype.handleServiceRequestSent=wz.prototype.handleServiceRequestSent;wz.prototype.onPickerCancelled=wz.prototype.onPickerCancelled;wz.prototype.onCharacterCountChanged=wz.prototype.onCharacterCountChanged;_.d([_.M(),_.x("design:type",Object)],wz.prototype,"characterCount",void 0);
_.d([_.M(),_.x("design:type",Object)],wz.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],wz.prototype,"showInputErrorMessage",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],wz.prototype,"startQnaRequestInFlight",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],wz.prototype,"modern",void 0);_.d([_.M(),_.x("design:type",Object)],wz.prototype,"buttonOverrides",void 0);
_.d([_.M(),_.x("design:type",Object)],wz.prototype,"closeButtonOverrides",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],wz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.hX),_.x("design:type",Object)],wz.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.C(_.kT.YtLiveChatItemBehavior),_.x("design:type",_.TG)],wz.prototype,"ytLiveChatItemBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],wz.prototype,"ytActionHandlerBehavior",void 0);_.d([_.rx("yt-live-chat-text-input-field-renderer-character-count-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],wz.prototype,"onCharacterCountChanged",null);_.d([_.rx("picker-cancelled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wz.prototype,"onPickerCancelled",null);
_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wz.prototype,"handleServiceRequestSent",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],wz.prototype,"handleServiceRequestCompleted",null);
_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],wz.prototype,"handleServiceRequestError",null);_.d([_.Y({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],wz);
_.p(wz,"yt-live-chat-qna-start-panel-renderer",function(){if(c$M===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;TME===void 0&&(TME=document.createElement("template"));var e=TME;H.call(t,e.content.cloneNode(!0),D.content.firstChild);c$M=D}D=c$M;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var iWd;var r$M;var Z$=function(){return _.X.apply(this,arguments)||this};
_.P(Z$,_.X);Z$.prototype.dismiss=function(){_.Gf(this.hostElement,"yt-live-chat-error-message-dismiss")};
Z$.prototype.edit=function(){_.Gf(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.d([_.M(),_.x("design:type",Object)],Z$.prototype,"data",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],Z$);
_.p(Z$,"yt-live-chat-text-actions-error-message-renderer",function(){if(r$M===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;iWd===void 0&&(iWd=document.createElement("template"));var e=iWd;H.call(t,e.content.cloneNode(!0),D.content.firstChild);r$M=D}D=r$M;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var OWM;var U3M;var ozU;var PRF;var sl=function(){var D=_.X.apply(this,arguments)||this;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.newnessDotEligible=!1;return D};
_.P(sl,_.X);sl.prototype.sendReaction=function(){var D,t,H=((D=this.data)==null?void 0:D.emojiId)||((t=this.data)==null?void 0:t.emoteId),e;H&&((e=this.data)==null?0:e.shouldTriggerAnimation)&&_.ET(this.hostElement,"yt-create-user-reaction-animation",[H]);var V;(D=_.xP((V=this.data)==null?void 0:V.onTap))&&_.rj(D,this.hostElement);this.showNewnessDot&&_.ET(this.hostElement,"yt-hide-newness-dot")};
sl.prototype.onClick=function(D){(!D||D.clientX||D.clientY)&&this.sendReaction()};
sl.prototype.onKeyDown=function(D){D.key!=="Enter"&&D.key!==" "||D.repeat||this.sendReaction()};
_.ql.Object.defineProperties(sl.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var D,t;return!!(((D=this.data)==null?0:D.emojiId)||((t=this.data)==null?0:t.emoteId))}}});
_.d([_.M(),_.x("design:type",Object)],sl.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sl.prototype,"isDarkTheme",void 0);_.d([_.M(),_.x("design:type",Object)],sl.prototype,"newnessDotEligible",void 0);_.d([_.m("data.maybeShowNewnessDot"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sl.prototype,"showNewnessDot",null);_.d([_.m("data.emojiId","data.emoteId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],sl.prototype,"useYtImage",null);
_.d([_.xL({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],sl);
_.p(sl,"yt-reaction-control-panel-button-view-model",function(){if(PRF===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;ozU===void 0&&(ozU=document.createElement("template"));var e=ozU;H.call(t,e.content.cloneNode(!0),D.content.firstChild);PRF=D}D=PRF;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var nzF;var CRA;var hO=function(){var D=_.X.apply(this,arguments)||this;D.reactionControlPanelExpanded=!1;D.isDarkTheme=document.documentElement.hasAttribute("dark");D.newnessDotEligible=!1;return D};
_.P(hO,_.X);_.q=hO.prototype;_.q.expandedButtonsChanged=function(){var D,t;_.jZ(this.hostElement,{"--expanded-buttons-height":((t=(D=this.expandedButtonsData)==null?void 0:D.length)!=null?t:0)*36+"px"})};
_.q.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}}};
_.q.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.q.onMouseLeave=function(){var D=this;this.collapseTimer=setTimeout(function(){D.reactionControlPanelExpanded=!1},500)};
_.q.onFocusIn=function(){this.onMouseEnter()};
_.q.onFocusOut=function(){this.onMouseLeave()};
_.q.onCollapsedButtonFocusIn=function(){var D=this;setTimeout(function(){var t;(t=D.expandedButtons.querySelector("button"))==null||t.focus()},100)};
_.q.onCollapsedButtonFocusOut=function(D){D.stopPropagation()};
_.ql.Object.defineProperties(hO.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var D,t;return _.J$.unsafeClone((D=this.liveReactionsData)==null?void 0:D.emojiButtonData)||((t=this.data)==null?void 0:t.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var D;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((D=this.data)==null||!D.maybeShowNewnessDot)}}});
hO.prototype.expandedButtonsChanged=hO.prototype.expandedButtonsChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],hO.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],hO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.hX),_.x("design:type",Object)],hO.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],hO.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],hO.prototype,"reactionControlPanelExpanded",void 0);_.d([_.M({selectorArgs:["data.liveReactionsDataEntityKey"],selector:PYM}),_.x("design:type",Object)],hO.prototype,"liveReactionsData",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],hO.prototype,"isDarkTheme",void 0);_.d([_.M(),_.x("design:type",Object)],hO.prototype,"newnessDotEligible",void 0);
_.d([_.m("liveReactionsData","data.expandedButtons"),_.x("design:type",Object),_.x("design:paramtypes",[])],hO.prototype,"expandedButtonsData",null);_.d([_.m("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.M({reflectToAttribute:!0}),_.x("design:type",Object),_.x("design:paramtypes",[])],hO.prototype,"showNewnessDot",null);_.d([_.o5("#expanded-buttons"),_.x("design:type",HTMLElement)],hO.prototype,"expandedButtons",void 0);
_.d([_.Os("expandedButtonsData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hO.prototype,"expandedButtonsChanged",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],hO);
_.p(hO,"yt-reaction-control-panel-view-model",function(){if(CRA===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;nzF===void 0&&(nzF=document.createElement("template"));var e=nzF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);CRA=D}D=CRA;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var GQ=new _.dk("yt-live-chat"),m3Y=Date.parse("2024-7-24"),El=function(){var D=_.X.apply(this,arguments)||this;D.emojiManager=_.ND;D.newnessDotEligible=!1;D.newnessDotImpressionCounted=!1;D.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return D};
_.P(El,_.X);_.q=El.prototype;_.q.emojiCustomizationEnabledChanged=function(){var D;((D=this.data)==null?0:D.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((D=GQ.getCreationTime("emoji-customization-count"))&&D<m3Y&&GQ.set("emoji-customization-count","0"),D=Number(GQ.get("emoji-customization-count"))||0,D<3&&(this.newnessDotEligible=!0,GQ.set("emoji-customization-count",(D+1).toString())),this.newnessDotImpressionCounted=!0)};
_.q.hideNewnessDot=function(){this.newnessDotEligible=!1;GQ.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.q.handleReactionsMute=function(D){var t=_.v3(),H=_.Nx(206221),e={checkboxData:{state:D?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};t&&_.tV(t,H,e);this.reactionsMuted=D};
_.q.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.q.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}}};
_.ql.Object.defineProperties(El.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var D;return(!((D=this.liveReactionsData)==null||!D.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
El.prototype.liveReactionsSettingChanged=El.prototype.liveReactionsSettingChanged;El.prototype.emojiCustomizationEnabledChanged=El.prototype.emojiCustomizationEnabledChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],El.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.hX),_.x("design:type",Object)],El.prototype,"ytLiveChatReduxBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],El.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],El.prototype,"data",void 0);_.d([_.M(),_.x("design:type",_.GG)],El.prototype,"emojiManager",void 0);_.d([_.M(),_.x("design:type",Object)],El.prototype,"newnessDotEligible",void 0);_.d([_.M(),_.x("design:type",Object)],El.prototype,"newnessDotImpressionCounted",void 0);
_.d([_.M({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:nQY}),_.x("design:type",Boolean)],El.prototype,"liveReactionsSetting",void 0);_.d([_.M({selectorArgs:["data.liveReactionsDataEntityKey"],selector:PYM}),_.x("design:type",Object)],El.prototype,"liveReactionsData",void 0);_.d([_.M({value:function(){var D=_.r("enable_lwe_web_mute"),t=GQ.get("allow-reactions");return t===void 0?!1:!t&&D}}),
_.x("design:type",Boolean)],El.prototype,"reactionsMuted",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],El.prototype,"liveReactionsEnabled",null);_.d([_.Os("data.emojiCustomizationEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],El.prototype,"emojiCustomizationEnabledChanged",null);
_.d([_.Os("liveReactionsEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],El.prototype,"liveReactionsSettingChanged",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],El);
_.p(El,"yt-reaction-control-panel-overlay-view-model",function(){if(U3M===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;OWM===void 0&&(OWM=document.createElement("template"));var e=OWM;H.call(t,e.content.cloneNode(!0),D.content.firstChild);U3M=D}D=U3M;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var MrN={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(D){var t=this.$.pickers.selected;if(t){_.Kg(this.hostElement).removeAttribute(t+"-open");var H="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(H="#picker-buttons",t==="emoji"&&_.Kg(this.hostElement).querySelector("#emoji-picker-button")&&(H="#emoji-picker-button"));if(H=_.Kg(this.hostElement).querySelector(H).querySelector("#"+t))H.active=!1}H=D;t==D&&(H=null);t!=
D&&_.Kg(this.hostElement).setAttribute(D+"-open","");this.$.pickers.selected=H;_.ET(this.hostElement,"yt-live-chat-picker-changed",[H])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var Kh=function(){var D=_.X.apply(this,arguments)||this;D.numSentMessages=0;D.timeoutDurationMs=0;D.timeoutMs=0;D.lastTimeoutTimeMs=0;D.pendingMessageId="";D.hasFiredInitialFocusActions=!1;D.isBeforeFocusEnabled=!0;D.id="";D.characterCount=0;D.maxCharacterLimit=0;D.remainingCharacterCount=0;D.inputExpanded=!1;D.buttonOverrides={iconPosition:"icon-only"};D.inReplyPanel=!1;D.countdownRatio=0;D.isTooltipVisible=!1;D.tooltipTimeout=1E4;D.systemIcons=_.r("kevlar_system_icons");D.tallerEmojiPicker=_.r("live_chat_taller_emoji_picker");
D.sendReplyMessageInFlight=!1;D.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"};D.onResize=function(){D.maybeToggleCharacterCount()};
return D};
_.P(Kh,_.X);_.q=Kh.prototype;
_.q.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"}}}};
_.q.attached=function(){window.addEventListener("resize",this.onResize)};
_.q.detached=function(){window.removeEventListener("resize",this.onResize)};
_.q.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.q.sendMessage=function(){var D=this,t,H,e,V;return _.Z(function(b){if(D.sendDisabled)return b.return();D.isTooltipVisible&&_.ET(D.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(D.data.sendButton&&D.data.sendButton.buttonRenderer){D.input.completeEmojis();t=D.data.sendButton.buttonRenderer.serviceEndpoint;if(!t)return b.return();e=((H=_.O(t,_.D43))==null?void 0:H.clientIdPrefix)||"";V={client_message_id:e+String(D.numSentMessages++),rich_message:_.ui(D.input.liveChatRichMessageInput)};
D.pendingMessageId=V.client_message_id;D.inReplyPanel&&(D.sendReplyMessageInFlight=!0);_.NJ(D.hostElement,[t,V]);D.input.setLiveChatRichMessageInput(null)}_.n2(b)})};
_.q.handleSendButtonAction=function(D){D.detail.actionName==="yt-service-request"&&(D.stopPropagation(),this.sendMessage())};
_.q.onSendCompleted=function(D,t){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(D=this.get("timeoutDurationUsec",t.data))&&this.handleTimeout(Number(D)/1E3);this.errorMessage=this.get("errorMessage",t.data);this.pendingMessageId=""};
_.q.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.ET(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.q.handlePickerButtonToggle=function(D){D=D.detail.targetId;this.ytPickerBehavior.togglePicker_(D);if(D==="emoji")this.input.focus();else if(D==="qna-start-panel"){var t,H;(t=_.Kg(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(H=t.querySelector("#qna-creator-text-input-field"))==null||H.focus()}};
_.q.onComponentReplaced=function(D){var t,H;D.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((t=D.replacement.liveChatMessageInputRenderer)==null?0:(H=t.headerRenderer)==null?0:H.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.q.onEmojiSelect=function(D){this.input.focus();this.input.insertEmoji(D.detail)};
_.q.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.q.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.ET(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.ET(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.q.onOpenPopupAction=function(D,t){var H=this;t===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.ET(H.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.q.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.q.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.q.focusChanged=function(){this.maybeToggleCharacterCount()};
_.q.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var D=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",D>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.q.computeId=function(){return this.data&&this.data.targetId||""};
_.q.computeSendDisabled=function(D,t,H,e){D=!!(!D||t&&D>t||e);(t=_.Kg(this.hostElement).querySelector("#send-button"))&&t.children.length&&(t.children[0].disabled=D);return D};
_.q.handleTimeout=function(D){this.timeoutDurationMs=this.timeoutMs=D;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.q.updateTimeout=function(D){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(D-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=D,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.q.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.q.onErrorMessageEdit=function(D){this.input.setLiveChatRichMessageInput(D.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.q.errorMessageChanged=function(){var D=this;_.BT(function(){_.ET(D.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.q.computeAuthorNameColor=function(D){var t;if(_.r("live_chat_author_name_color_usernames")&&(D==null?0:(t=D.authorName)==null?0:t.simpleText))return _.F4V(_.aq3(D.authorName.simpleText));if(_.r("live_chat_seed_color_usernames")&&(D==null?0:D.authorSeedColorArgb))return _.F4V(_.kP(D.authorSeedColorArgb));if(_.r("live_chat_colored_usernames"))return"#cc0000";var H;return _.r("live_chat_simple_color_usernames")&&(D==null?0:(H=D.authorName)==null?0:H.simpleText)&&(D==null?0:D.authorUsernameColorLight)&&
(D==null?0:D.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.kP(D.authorUsernameColorDark):_.kP(D.authorUsernameColorLight):""};
_.q.onIsTooltipVisibleChanged=function(){var D=_.Kg(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){D.hidden=!1;D.setAttribute("role","alert")},0):(D.hidden=!0,D.removeAttribute("role"))};
_.q.onFocusedChanged=function(D){this.inputFocused=D.detail.value};
_.ql.Object.defineProperties(Kh.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 D;return!((D=this.data)==null||!D.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?void 0:(t=D.pickers)==null?void 0:t.find(function(H){return H.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return D?this.ytRendererBehavior.getSimpleString(D):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
Kh.prototype.onIsTooltipVisibleChanged=Kh.prototype.onIsTooltipVisibleChanged;Kh.prototype.errorMessageChanged=Kh.prototype.errorMessageChanged;Kh.prototype.onErrorMessageEdit=Kh.prototype.onErrorMessageEdit;Kh.prototype.onErrorMessageDismiss=Kh.prototype.onErrorMessageDismiss;Kh.prototype.focusChanged=Kh.prototype.focusChanged;Kh.prototype.characterCountChanged=Kh.prototype.characterCountChanged;Kh.prototype.onEmojiSelect=Kh.prototype.onEmojiSelect;Kh.prototype.handlePickerButtonToggle=Kh.prototype.handlePickerButtonToggle;
Kh.prototype.onSendError=Kh.prototype.onSendError;Kh.prototype.onSendCompleted=Kh.prototype.onSendCompleted;Kh.prototype.sendMessage=Kh.prototype.sendMessage;Kh.prototype.dataChanged=Kh.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Kh.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Kh.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C(MrN.YtPickerBehavior),_.x("design:type",Object)],Kh.prototype,"ytPickerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Kh.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Gq.YtLiveChatTooltipTargetingBehavior),_.x("design:type",Object)],Kh.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Kh.prototype,"hasFiredInitialFocusActions",void 0);
_.d([_.M(),_.x("design:type",Object)],Kh.prototype,"isBeforeFocusEnabled",void 0);_.d([_.M(),_.x("design:type",Object)],Kh.prototype,"data",void 0);_.d([_.M({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.x("design:type",Object)],Kh.prototype,"id",void 0);_.d([_.M(),_.x("design:type",Object)],Kh.prototype,"characterCount",void 0);_.d([_.M(),_.x("design:type",Object)],Kh.prototype,"maxCharacterLimit",void 0);
_.d([_.M(),_.x("design:type",Object)],Kh.prototype,"remainingCharacterCount",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Kh.prototype,"inputExpanded",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Kh.prototype,"inputFocused",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Kh.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.d([_.M(),_.x("design:type",_.$T)],Kh.prototype,"participantsManager",void 0);
_.d([_.M(),_.x("design:type",Object)],Kh.prototype,"buttonOverrides",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Kh.prototype,"inReplyPanel",void 0);_.d([_.m("characterCount, maxCharacterLimit, countdownActive"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Kh.prototype,"sendDisabled",null);_.d([_.M(),_.x("design:type",Object)],Kh.prototype,"countdownRatio",void 0);
_.d([_.m("countdownRatio"),_.x("design:type",Number),_.x("design:paramtypes",[])],Kh.prototype,"countdownStrokeDashOffset",null);_.d([_.m("countdownRatio"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Kh.prototype,"countdownActive",null);_.d([_.m("data.interactionMessage"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Kh.prototype,"hasInteractionMessage",null);
_.d([_.m("data.emojiPickerButton"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Kh.prototype,"hasEmojiPickerButton",null);_.d([_.m("data, characterCount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Kh.prototype,"showAvatar",null);_.d([_.m("data.pickers"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Kh.prototype,"hasProductPickerPanelViewModel",null);
_.d([_.M(),_.x("design:type",Object)],Kh.prototype,"errorMessage",void 0);_.d([_.M(),_.x("design:type",Object)],Kh.prototype,"genericErrorMessage",void 0);_.d([_.M(),_.x("design:type",Object)],Kh.prototype,"isTooltipVisible",void 0);_.d([_.M(),_.x("design:type",Object)],Kh.prototype,"tooltipTimeout",void 0);_.d([_.m("data.onInitialFocusCommand"),_.x("design:type",String),_.x("design:paramtypes",[])],Kh.prototype,"tooltipMessage",null);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Kh.prototype,"systemIcons",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Kh.prototype,"tallerEmojiPicker",void 0);_.d([_.m("data"),_.x("design:type",String),_.x("design:paramtypes",[])],Kh.prototype,"authorNameColor",null);_.d([_.M(),_.x("design:type",Object)],Kh.prototype,"sendReplyMessageInFlight",void 0);_.d([_.o5("#input"),_.x("design:type",_.xq3)],Kh.prototype,"input",void 0);
_.d([_.o5("#count"),_.x("design:type",HTMLElement)],Kh.prototype,"count",void 0);_.d([_.o5("#input-container"),_.x("design:type",HTMLElement)],Kh.prototype,"inputContainer",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kh.prototype,"dataChanged",null);_.d([_.rx("yt-live-chat-send-message"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],Kh.prototype,"sendMessage",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[Event,_.H5]),_.x("design:returntype")],Kh.prototype,"onSendCompleted",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kh.prototype,"onSendError",null);
_.d([_.rx("yt-live-chat-icon-toggle-button-renderer-toggle"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Kh.prototype,"handlePickerButtonToggle",null);_.d([_.rx("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Kh.prototype,"onEmojiSelect",null);
_.d([_.Os("characterCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kh.prototype,"characterCountChanged",null);_.d([_.Os("inputFocused"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kh.prototype,"focusChanged",null);_.d([_.rx("yt-live-chat-error-message-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kh.prototype,"onErrorMessageDismiss",null);
_.d([_.rx("yt-live-chat-error-message-edit"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Kh.prototype,"onErrorMessageEdit",null);_.d([_.Os("errorMessage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kh.prototype,"errorMessageChanged",null);_.d([_.Os("isTooltipVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kh.prototype,"onIsTooltipVisibleChanged",null);
_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],Kh);
_.p(Kh,"yt-live-chat-message-input-renderer",function(){if(zDU===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;BNF===void 0&&(BNF=document.createElement("template"));var e=BNF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);zDU=D}D=zDU;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var S5h;var X_d;var NZ=function(){var D=_.X.apply(this,arguments)||this;D.systemIcons=_.r("kevlar_system_icons");D.firedOnClickCommand=!1;D.inReplyPanel=!1;return D};
_.P(NZ,_.X);
NZ.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"}}}};
NZ.prototype.onButtonToggle=function(D){D.target.disabled||this.ytPickerBehavior.togglePicker_(D.detail.targetId)};
NZ.prototype.onClick=function(){var D=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.ET(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return D.firedOnClickCommand=!1},5E3))};
_.ql.Object.defineProperties(NZ.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?void 0:(t=D.panels)==null?void 0:t.find(function(H){return H.liveChatProductPickerPanelViewModel}))!==void 0}}});
NZ.prototype.onButtonToggle=NZ.prototype.onButtonToggle;_.d([_.C(MrN.YtPickerBehavior),_.x("design:type",Object)],NZ.prototype,"ytPickerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],NZ.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],NZ.prototype,"systemIcons",void 0);_.d([_.M({reflectToAttribute:!1}),_.x("design:type",Object)],NZ.prototype,"firedOnClickCommand",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],NZ.prototype,"inReplyPanel",void 0);_.d([_.m("data.pickers"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],NZ.prototype,"hasProductPickerPanelViewModel",null);
_.d([_.rx("yt-live-chat-icon-toggle-button-renderer-toggle"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],NZ.prototype,"onButtonToggle",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],NZ);
_.p(NZ,"yt-live-chat-restricted-participation-renderer",function(){if(X_d===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;S5h===void 0&&(S5h=document.createElement("template"));var e=S5h;H.call(t,e.content.cloneNode(!0),D.content.firstChild);X_d=D}D=X_d;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var k2=function(){var D=_.X.apply(this,arguments)||this;D.genericErrorMessage=_.H7("Error, try again.");D.inReplyPanel=!1;D.hideBorder=!1;return D};
_.P(k2,_.X);k2.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}}}}}};
_.ql.Object.defineProperties(k2,{template:{configurable:!0,enumerable:!0,get:function(){return uqM()}}});
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],k2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],k2.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],k2.prototype,"genericErrorMessage",void 0);_.d([_.M(),_.x("design:type",Object)],k2.prototype,"inReplyPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],k2.prototype,"hideBorder",void 0);
_.d([_.xL({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],k2);_.p(k2,"yt-live-chat-engagement-panel-input-renderer",function(){return uqM()},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var fiM,LJU;fiM=_.Nx(115994);LJU=_.Nx(115993);_.TQ=function(D,t,H){var e=this;var V=H.dragDownAction;this.layer=0;this.JSC$22558_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return e.dragDownAction()}}}};
this.JSC$22558_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return e.dragDownAction()}}}};
this.fullscreen=!1;var b=_.Pc();_.g3(b,fiM,this.layer);_.g3(b,LJU,this.layer);this.dragDownAction=function(){V();_.IH(b,{visualElement:e.fullscreen?fiM:LJU})};
this.gesture=new _.AY(D,t,this.getConfig(!1),"pandown");this.attach()};
_.TQ.prototype.attach=function(){this.gesture.attach()};
_.TQ.prototype.detach=function(){this.gesture.detach()};
_.TQ.prototype.update=function(D){this.fullscreen=D;var t=this.gesture;D=this.getConfig(D);t.config=D};
_.TQ.prototype.getConfig=function(D){return D?this.JSC$22558_watchFullScreenConfig:this.JSC$22558_watchConfig};var A$N={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(D){if(D&&D.length==1&&Array.isArray(D[0].loggingUrls)){D=_.J$.unsafeClone(D[0]);var t=this.macros||{},H=this.getAdModuleClient_();if(!H)return _.Tf();D.loggingUrls.forEach(function(e){if(e.baseUrl){var V=e.baseUrl;var b=t;b=b===void 0?{}:b;V=H.getOptions().includes("replaceUrlMacros")?_.ZuQ(H,"replaceUrlMacros",{url:V,additionalMapping:b}):V;e.baseUrl=V}},this);
D=[D]}return _.NJ(this.hostElement,D)},
getAdModuleClient_:function(){var D=_.FA(this);return D?(D=D.getPlayer())?new _.tD(D):null:null}}]};var gzU;var c0=function(){var D=_.X.apply(this,arguments)||this;D.isCollapsed=!1;D.modernPanels=_.r("kevlar_watch_modern_panels");D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return D};
_.P(c0,_.X);_.q=c0.prototype;_.q.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.onDonateTap=function(){var D=this.get("data.donateButton.buttonRenderer.command");if(D){var t=_.v3(),H=this.get("data.donateButton.buttonRenderer.trackingParams");t&&H&&_.tV(t,_.Sa(H));this.ytOpenPopupBehavior.openPopup(D)}};
_.q.onShowMore=function(){this.isCollapsed=!1;var D=_.v3(),t=this.get("data.expandButton.buttonRenderer.trackingParams");D&&t&&_.tV(D,_.Sa(t))};
_.q.onShowLess=function(){this.isCollapsed=!0};
_.q.dataChanged=function(){_.jZ(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.q.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.q.handleUpdate=function(D){if(D=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",D))this.set("data.startLabel",D.startLabel),this.set("data.endLabel",D.endLabel),this.set("data.progress",D.progress),this.set("data.amountRaisedLabel",D.amountRaisedLabel),this.dataChanged()};
_.q.handleOpenPopupAction=function(D){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",D)&&_.ET(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.q.computeHeaderBackgroundUrl=function(D,t){if(D)return t?D.headerBackgroundDarkUrl:D.headerBackgroundUrl};
_.q.isProgressBarVisible=function(D){return!(!D||D.progress===void 0)};
_.q.headerBackgroundClass=function(){return _.YC("HTML_DIR")==="rtl"?"flip":""};
c0.prototype.dataChanged=c0.prototype.dataChanged;_.d([_.C(_.vP.YtOpenPopupBehavior),_.x("design:type",Object)],c0.prototype,"ytOpenPopupBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],c0.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],c0.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],c0.prototype,"isCollapsed",void 0);_.d([_.M({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.x("design:type",String)],c0.prototype,"headerBackgroundUrl",void 0);_.d([_.M(),_.x("design:type",Boolean)],c0.prototype,"isDarkTheme",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],c0.prototype,"modernPanels",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],c0.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],c0);
_.p(c0,"ytd-donation-shelf-renderer",function(){if(gzU!==void 0)return gzU;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return gzU=D},{mode:1});var J$M;var Y5U=function(){return _.X.apply(this,arguments)||this};
_.P(Y5U,_.X);_.d([_.M(),_.x("design:type",Object)],Y5U.prototype,"data",void 0);_.d([_.Y({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],Y5U);
_.p(Y5U,"ytd-donation-unavailable-renderer",function(){if(J$M!==void 0)return J$M;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return J$M=D},{mode:1});var liU;var jy=function(){return _.X.apply(this,arguments)||this};
_.P(jy,_.X);jy.prototype.computeIconType=function(D){return D?"yt-icons:"+D.toLowerCase():null};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],jy.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],jy.prototype,"data",void 0);_.d([_.Y({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],jy);
_.p(jy,"ytd-limited-state-message-renderer",function(){if(liU!==void 0)return liU;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return liU=D},{mode:1});var vzM;var $2=function(){return _.X.apply(this,arguments)||this};
_.P($2,_.X);$2.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
$2.prototype.onTap=function(D){var t=this.data&&this.data.endpoint;t&&!_.ed(_.bK(D),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Gf(this.hostElement,"yt-navigate",{endpoint:t})};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],$2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$2.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$2.prototype,"data",void 0);_.d([_.Y({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],$2);
_.p($2,"ytd-autotagging-metadata-renderer",function(){if(vzM!==void 0)return vzM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return vzM=D},{mode:1});var p_w;var iC=function(){return _.X.apply(this,arguments)||this};
_.P(iC,_.X);iC.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],iC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],iC.prototype,"data",void 0);_.d([_.Y({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],iC);
_.p(iC,"ytd-autotagging-metadata-row-renderer",function(){if(p_w!==void 0)return p_w;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return p_w=D},{mode:1});var d3l;var x3F;var rz=function(){var D=_.X.apply(this,arguments)||this;D.engagementPanelContent=!1;return D};
_.P(rz,_.X);rz.prototype.computeHasDividerLine=function(D,t){return D&&!t};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],rz.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],rz.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.x("design:type",Boolean)],rz.prototype,"hasDividerLine",void 0);_.d([_.M(),_.x("design:type",Object)],rz.prototype,"engagementPanelContent",void 0);
_.d([_.Y({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],rz);
_.p(rz,"ytd-metadata-row-header-renderer",function(){if(x3F!==void 0)return x3F;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return x3F=D},{mode:1});var R5l;var Ol=function(){return _.X.apply(this,arguments)||this};
_.P(Ol,_.X);Ol.prototype.computeHasDividerLine=function(D){return D};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ol.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ol.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.x("design:type",Boolean)],Ol.prototype,"hasDividerLine",void 0);_.d([_.Y({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],Ol);
_.p(Ol,"ytd-metadata-row-renderer",function(){if(R5l!==void 0)return R5l;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return R5l=D},{mode:1});var uwU;var WJd=function(){return _.X.apply(this,arguments)||this};
_.P(WJd,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],WJd.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],WJd.prototype,"data",void 0);_.d([_.Y({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],WJd);
_.p(WJd,"ytd-metadata-with-image-row-renderer",function(){if(uwU!==void 0)return uwU;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return uwU=D},{mode:1});var IiF;var Ul=function(){var D=_.X.apply(this,arguments)||this;D.rounded=!0;D.fixie=!1;D.fullWidth=!1;return D};
_.P(Ul,_.X);_.q=Ul.prototype;_.q.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.onDataChanged=function(){var D=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(t){D.onEndpointLinkKeyPress(t)}))};
_.q.onEndpointLinkKeyPress=function(D){D.target===this.endpointLink&&D.keyCode===13&&_.Gf(this.hostElement,"click")};
_.q.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var D;if((D=this.data)==null?0:D.endpoint)_.k0(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.q.onYtNavigate=function(D){this.endpointHref||(D.stopPropagation(),D.preventDefault())};
_.q.onInformationButtonContainerClick=function(D){D.target.id!=="information-button-container"&&(D.stopPropagation(),D.preventDefault())};
_.q.computeStyle=function(D){return D};
_.q.computeIsThumbnailStyle=function(D){return D==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.q.computeThumbnailWidth=function(D){switch(D){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}};
_.q.computeThumbnailObjectFit=function(D){switch(D){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.ql.Object.defineProperties(Ul.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?0:D.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Ul.prototype.onYtNavigate=Ul.prototype.onYtNavigate;Ul.prototype.onClick=Ul.prototype.onClick;Ul.prototype.onDataChanged=Ul.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ul.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Ul.prototype,"componentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ul.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Ul.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],Ul.prototype,"componentStyle",void 0);_.d([_.M({computed:"computeIsThumbnailStyle(data.style)"}),_.x("design:type",Boolean)],Ul.prototype,"isThumbnailStyle",void 0);_.d([_.M({computed:"computeThumbnailObjectFit(data.style)"}),_.x("design:type",String)],Ul.prototype,"thumbnailObjectFit",void 0);
_.d([_.M({computed:"computeThumbnailWidth(data.style)"}),_.x("design:type",Number)],Ul.prototype,"thumbnailWidth",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ul.prototype,"rounded",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ul.prototype,"fixie",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ul.prototype,"fullWidth",void 0);_.d([_.o5("#endpoint-link"),_.x("design:type",HTMLAnchorElement)],Ul.prototype,"endpointLink",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ul.prototype,"onDataChanged",null);_.d([_.m("data.endpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ul.prototype,"endpointHref",null);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Ul.prototype,"onClick",null);
_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ul.prototype,"onYtNavigate",null);_.d([_.Y({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Ul);
_.p(Ul,"ytd-rich-metadata-renderer",function(){if(IiF!==void 0)return IiF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return IiF=D},{mode:_.Kz("kevlar_poly_si_batch_j075")?1:2});var QtF;var oL=function(){var D=_.X.apply(this,arguments)||this;D.fixie=!1;D.fullWidth=!1;return D};
_.P(oL,_.X);oL.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
oL.prototype.computeHasDividerLine=function(D){return D};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],oL.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],oL.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.x("design:type",Boolean)],oL.prototype,"hasDividerLine",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],oL.prototype,"fixie",void 0);_.d([_.M(),_.x("design:type",Object)],oL.prototype,"fullWidth",void 0);
_.d([_.Y({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],oL);
_.p(oL,"ytd-rich-metadata-row-renderer",function(){if(QtF!==void 0)return QtF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return QtF=D},{mode:1});var P0=function(){var D=_.X.apply(this,arguments)||this;D.engagementPanelContent=!1;D.fixie=!1;D.fullWidth=!1;return D};
_.P(P0,_.X);
P0.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"}}}};
P0.prototype.computeCollapsibleItems=function(D,t,H){return D===void 0||t===void 0||H===void 0||H?[]:D.slice(t)};
P0.prototype.computeAlwaysShownItems=function(D,t){return D&&D.length?D.slice(0,t):[]};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],P0.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],P0.prototype,"collapsed",void 0);
_.d([_.M({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.x("design:type",Array)],P0.prototype,"alwaysShownItems",void 0);_.d([_.M({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.x("design:type",Array)],P0.prototype,"collapsibleItems",void 0);_.d([_.M(),_.x("design:type",Object)],P0.prototype,"engagementPanelContent",void 0);_.d([_.M(),_.x("design:type",Object)],P0.prototype,"fixie",void 0);
_.d([_.M(),_.x("design:type",Object)],P0.prototype,"fullWidth",void 0);_.d([_.Y({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],P0);
_.p(P0,"ytd-metadata-row-container-renderer",function(){if(d3l!==void 0)return d3l;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return d3l=D},{mode:1});var y$l;var nh=function(){var D=_.X.apply(this,arguments)||this;D.currentPageUrl="";D.baseUrl="";D.isHiddenByUser=null;D.hidden=!1;D.showAboveScrim=!1;D.watchNextGrid=_.r("kevlar_watch_grid");D.modernButtons=_.r("web_modern_buttons");D.roundedContainer=!0;D.noBorder=!1;D.roundBackground=!_.r("live_chat_round_background_killswitch");D.overflowHideChat=_.r("live_chat_overflow_hide_chat");D.forceDarkTheme=!1;D.theaterWatchWhile=!1;D.isListeningForPlayerProgress=!1;D.JSC$22594_playerEvents=new Map;D.isFrameReady=
!1;D.player=null;D.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 D};
_.P(nh,_.X);_.q=nh.prototype;_.q.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Kl(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.q.created=function(){var D=this;this.handleIframeEventListener=function(t){D.handleIframeEvent(t)};
this.handleKeyboardEventListener=function(t){D.handleKeyboardEvent(t)};
this.JSC$22594_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22594_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22594_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22594_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22594_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.q.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()};
_.q.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};
_.q.computeBaseUrl=function(D){var t="/live_chat";this.isChatReplay()&&(t="/live_chat_replay");return _.je(_.cy(_.Ta(_.IK(D),t),null),"").toString()};
_.q.dataChanged=function(){_.r("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.q.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var D=this.url;if(this.isChatReplay()&&this.player){var t=Math.floor(this.player.getProgressState().current*1E3);D=_.yh(_.IK(D),"playerOffsetMs",t.toString()).toString()}t=this.chatframe;try{var H=D==="about:blank"?_.zRv:_.dw(D),e=t.contentDocument.location,V=_.uM(H);V!==void 0&&e.replace(V)}catch(b){t.src=D}}};
_.q.collapsedChanged=function(){_.Gf(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.q.handleIframeEvent=function(D){if(D&&this.baseUrl.startsWith(D.origin)&&D.source===this.chatframe.contentWindow&&_.Wk(D.data))if(D.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(D);else if(D.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(D.data["yt-show-feedback-dialog"]){var t=_.qS().resolve(_.by(_.C8H));if(t){var H=D.ports,e;H&&H.length&&(e=function(){H[0].postMessage({})});
D=D.data["yt-show-feedback-dialog"];t.showFeedbackDialog(D.customProductData,D.feedbackContent,e,D.bucket)}}else if(D.data["yt-show-survey"])_.Gf(this.hostElement,"yt-show-survey",D.data["yt-show-survey"]);else if(D.data["yt-purchase-membership"])_.qS().resolve(_.aA).resolveCommand(D.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(D.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(D.data["yt-tunnel-out-live-service-request"]);else if(D.data["yt-user-activity"])_.F0();
else if(D.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(D.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(D.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(D.data["yt-open-popup"]);else if(D.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(D.data["yt-log-flow-logging-event-command"]);else if(D.data["yt-hide-live-chat"])this.onShowHideChat();else D.data["yt-report-moderation-state-log"]&&
this.player&&(t={cpn:this.player.getVideoData().cpn},_.L7("liveChatBeingModerated",t))};
_.q.attachLiveChatResponseVeTrackingParams=function(D){D=_.Sa(D);var t=_.v3(),H=_.RD("liveChatRenderer.trackingParams",this.data);t&&H&&_.Q$(t,_.Sa(H),D)};
_.q.handleBuyflowMessages=function(D){var t=D.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,H=D.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,e=D.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.EuK(_.Vd(_.Vb),t.replace(/-/g,"+").replace(/_/g,"/"),function(V){D.ports[0].postMessage({success:!0,buyFlowResponse:V})},void 0,function(V){D.ports[0].postMessage({success:!1,
error:V&&V.message||"Buyflow rejected without error."})},_.Ph().get("hl"),void 0,function(){D.ports[0].postMessage({closed:!0})},H,e)};
_.q.setupPlayerProgressRelay=function(){var D=this;if(!this.isListeningForPlayerProgress){var t=_.an();t!=null&&t.getPlayerPromise&&(t.getPlayerPromise().then(function(H){D.playerApiReady(H)}),this.isListeningForPlayerProgress=!0)}};
_.q.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.q.playerApiReady=function(D){this.setPlayer(D)};
_.q.playerProgressHandler=function(){if(this.player){var D=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":D.current})}};
_.q.playerAdStartHandler=function(D){this.postToContentWindow({"yt-player-ad-start":D})};
_.q.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.q.playerStateChangeHandler=function(D){this.postToContentWindow({"yt-player-state-change":D})};
_.q.setPlayer=function(D){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22594_playerEvents);D&&(this.player=D,this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22594_playerEvents),_.Gf(this.hostElement,"player-api-ready"))};
_.q.liveChatPageUrl=function(D,t,H,e){return!H||t?"about:blank":H.liveChatRenderer?(t=_.IK(this.currentPageUrl).JSC$10036_queryData_,ohF(t),D=_.IK(D),t.add("continuation",H.liveChatRenderer.continuations[0].reloadContinuationData.continuation),H=_.f_()==="USER_INTERFACE_THEME_DARK",(e||H)&&t.add("dark_theme","true"),_.cy(D,t),e=_.IK(D.toString()),H=e.JSC$10036_queryData_,"SESSION_INDEX"in _.g1&&(H.add("authuser",_.YC("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.g1&&H.add("pageId",_.YC("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.g1&&H.add("sdc",_.YC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),e.toString()):""};
_.q.isCollapsed=function(D,t){return t!==null?t:this.isChatReplay()||D&&D.conversationBarRenderer&&D.conversationBarRenderer.availabilityMessage?!0:D?D.liveChatRenderer?D.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.r("live_chat_hide_premiere_replay_message")||D.conversationBarRenderer&&D.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.q.isHidden=function(D,t,H){var e=t&&t.conversationBarRenderer&&t.conversationBarRenderer.availabilityMessage,V=t&&t.liveChatRenderer&&t.liveChatRenderer.showHideButton,b=t&&t.liveChatRenderer&&t.liveChatRenderer.showButton;return H&&D&&!e&&!b||!H&&D&&!e&&!V?!0:t&&t.liveChatRenderer&&t.liveChatRenderer.initialDisplayState?t.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.q.computeButtonOverride=function(D,t){if(D&&t)return{type:"outline"}};
_.q.setCollapsedState=function(D){_.O(D,_.kdf)&&((this.isHiddenByUser=!!_.O(D,_.kdf).collapsed)||_.ET(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.q.forwardReduxActionToIframe=function(D){this.postToContentWindow({"yt-live-chat-forward-redux-action":D})};
_.q.onLoopRangeChange=function(D){this.showAboveScrim=!(D==null||!D.postId)};
_.q.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.q.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.q.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.q.sendDarkThemePostMessage=function(D){this.postToContentWindow({"yt-live-chat-set-dark-theme":D})};
_.q.onLiveChatBuyFlowCallback=function(D){this.postToContentWindow({"yt-live-chat-buy-flow-callback":D})};
_.q.handleKeyboardEvent=function(D){(0,_.J$.containsValue)(PF7,D.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:D.type,keyCode:D.keyCode}})};
_.q.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.q.postToContentWindow=function(D){if(this.isFrameReady)try{var t=window.location.protocol+"//"+window.location.host,H;(H=this.chatframe)!=null&&H.contentWindow?this.chatframe.contentWindow.postMessage(D,t):_.Yw(new _.nZ("Tried posting a message to an iframe with no content window",D))}catch(e){_.gT(e)}};
_.q.shouldHideChatFrame=function(D){return D&&_.r("hide_live_chat_button_when_collapsed")};
_.ql.Object.defineProperties(nh.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.r("live_chat_overflow_hide_chat")||_.r("web_watch_chat_hide_button_killswitch"))return _.r("live_chat_overflow_hide_chat");var D,t,H,e;return!!((D=this.data)==null?0:(t=D.liveChatRenderer)==null?0:(H=t.header)==null?0:(e=H.liveChatHeaderRenderer)==null?0:e.collapseButton)}}});
nh.prototype.collapsedChanged=nh.prototype.collapsedChanged;nh.prototype.urlChanged=nh.prototype.urlChanged;nh.prototype.dataChanged=nh.prototype.dataChanged;nh.prototype.onShowHideChat=nh.prototype.onShowHideChat;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],nh.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],nh.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",_.rt)],nh.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.C(_.vP.YtOpenPopupBehavior),_.x("design:type",Object)],nh.prototype,"ytOpenPopupBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],nh.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],nh.prototype,"currentPageUrl",void 0);
_.d([_.M({computed:"computeBaseUrl(currentPageUrl,data)"}),_.x("design:type",Object)],nh.prototype,"baseUrl",void 0);_.d([_.M({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.x("design:type",String)],nh.prototype,"url",void 0);_.d([_.M(),_.x("design:type",Object)],nh.prototype,"isHiddenByUser",void 0);_.d([_.M({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.x("design:type",Object)],nh.prototype,"hidden",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.x("design:type",Boolean)],nh.prototype,"collapsed",void 0);_.d([_.M({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.x("design:type",Boolean)],nh.prototype,"hideChatFrame",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nh.prototype,"showAboveScrim",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nh.prototype,"watchNextGrid",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],nh.prototype,"modernButtons",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nh.prototype,"roundedContainer",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nh.prototype,"noBorder",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],nh.prototype,"roundBackground",void 0);
_.d([_.M({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.x("design:type",Object)],nh.prototype,"toggleButtonOverride",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],nh.prototype,"overflowHideChat",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nh.prototype,"forceDarkTheme",void 0);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],nh.prototype,"enableShowWithoutHideChatButton",null);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nh.prototype,"theaterWatchWhile",void 0);_.d([_.o5("#chatframe"),_.x("design:type",HTMLIFrameElement)],nh.prototype,"chatframe",void 0);_.d([_.rx("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nh.prototype,"onShowHideChat",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nh.prototype,"dataChanged",null);
_.d([_.Os("url"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nh.prototype,"urlChanged",null);_.d([_.Os("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nh.prototype,"collapsedChanged",null);_.d([_.Y({is:"ytd-live-chat-frame",disableElementRegistration:!0})],nh);
_.p(nh,"ytd-live-chat-frame",function(){if(y$l!==void 0)return y$l;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return y$l=D},{mode:1});var BMU;var Ch=function(){var D=_.X.apply(this,arguments)||this;D.modern=_.r("web_modern_buttons");D.buttonOverrides={style:"call-to-action",type:"filled"};return D};
_.P(Ch,_.X);Ch.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=_.Ih(this.data.backgroundColor)))};
Ch.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var D=this.getFormattedStringLoggingDirectives(this.data.headline);D&&this.rendererBehavior.logExplicitClick(D)}};
Ch.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var D=this.getFormattedStringLoggingDirectives(this.data.description);D&&this.rendererBehavior.logExplicitClick(D)}};
Ch.prototype.getFormattedStringLoggingDirectives=function(D){return D&&D.runs&&D.runs.length>0&&D.runs[0]&&D.runs[0].loggingDirectives?D.runs[0].loggingDirectives:null};
Ch.prototype.dataChanged=Ch.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ch.prototype,"rendererBehavior",void 0);_.d([_.C(A$N.YtMacroReplacementBehavior),_.x("design:type",Object)],Ch.prototype,"macroReplacementBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ch.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Ch.prototype,"navigationEndpoint",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ch.prototype,"enableColors",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ch.prototype,"modern",void 0);_.d([_.M(),_.x("design:type",Object)],Ch.prototype,"buttonOverrides",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ch.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Ch);
_.p(Ch,"ytd-action-basic-immersive-content-renderer",function(){if(BMU!==void 0)return BMU;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return BMU=D},{mode:1});var z5h;var Dc1;var mB=function(){return _.X.apply(this,arguments)||this};
_.P(mB,_.X);mB.prototype.dataChanged=function(){var D;((D=this.data)==null?void 0:D.backgroundColor)!==void 0&&_.jZ(this.hostElement,{"--bgu-color":_.Ih(this.data.backgroundColor)})};
mB.prototype.onImageTileClick=function(){var D;((D=this.data)==null?0:D.navigationEndpoint)&&_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var t;((t=this.data)==null?0:t.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.ql.Object.defineProperties(mB.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.data)==null?void 0:D.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 D;return((D=this.data)==null?void 0:D.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var D,t,H;if(((D=this.data)==null?void 0:(t=D.detailsLine)==null?void 0:t.texts)!=null&&((H=this.data)==null?void 0:H.detailsLine.texts.length)>0){var e;return(e=this.data)==null?void 0:e.detailsLine.texts.map(function(V){return V.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var D,t,H;if(((D=this.data)==null?void 0:(t=D.optionalDetailsLine)==null?void 0:t.texts)!=null&&((H=this.data)==null?void 0:H.optionalDetailsLine.texts.length)>0){var e;return(e=this.data)==null?void 0:e.optionalDetailsLine.texts.map(function(V){return V.text}).join("")}return null}}});
mB.prototype.dataChanged=mB.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],mB.prototype,"rendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],mB.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],mB.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data.backgroundColor"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],mB.prototype,"hasBackgroundColor",null);
_.d([_.m("data.objectFit"),_.x("design:type",Object),_.x("design:paramtypes",[])],mB.prototype,"getObjectFit",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.tileRenderingStyle"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],mB.prototype,"hasTileMetadata",null);_.d([_.m("data.detailsLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],mB.prototype,"getSecondaryDetails",null);
_.d([_.m("data.optionalDetailsLine"),_.x("design:type",Object),_.x("design:paramtypes",[])],mB.prototype,"getOptionalDetails",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],mB.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],mB);
_.p(mB,"ytd-image-tile-renderer",function(){if(Dc1!==void 0)return Dc1;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Dc1=D},{mode:1});var tTY;var MZ=function(){return _.X.apply(this,arguments)||this};
_.P(MZ,_.X);MZ.prototype.getOpenLinkIcon=function(){return _.r("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
MZ.prototype.onSitelinkTap=function(){_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.r("kevlar_command_handler_migration_killswitch"))_.k0(this.hostElement,this.data.clickCommands,this.hostElement);else for(var D=_.F(this.data.clickCommands),t=D.next();!t.done;t=D.next())this.ytComponentBehavior.resolveCommand(t.value)};
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],MZ.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],MZ.prototype,"rendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],MZ.prototype,"data",void 0);_.d([_.Y({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],MZ);
_.p(MZ,"ytd-sitelink-renderer",function(){if(tTY!==void 0)return tTY;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return tTY=D},{mode:1});var Sy=function(){var D=_.X.apply(this,arguments)||this;D.paddingFix=_.r("enable_ads_web_ep_buenos_aires_and_padding_fix");return D};
_.P(Sy,_.X);Sy.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"}}}};
Sy.prototype.dataChanged=function(){var D=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;D.ytMacroReplacementBehavior.sendServiceRequestAction([t])})};
Sy.prototype.shouldHideFooter=function(D){return!(D&&_.r("use_ads_engagement_panel_desktop_footer_cta"))};
_.ql.Object.defineProperties(Sy.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?void 0:D.imageTileRenderers)===void 0||((t=this.data)==null?void 0:t.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(H){var e;return(e=_.O(H,XUd))==null?void 0:e.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?void 0:D.imageTileRenderers)===void 0||((t=this.data)==null?void 0:t.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(H){var e;return((e=_.O(H,XUd))==null?void 0:e.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Sy.prototype.dataChanged=Sy.prototype.dataChanged;_.d([_.C(A$N.YtMacroReplacementBehavior),_.x("design:type",Object)],Sy.prototype,"ytMacroReplacementBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Sy.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Sy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Sy.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Sy.prototype,"paddingFix",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data.imageTileRenderers"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Sy.prototype,"removeBorderFromImageTiles",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.imageTileRenderers"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Sy.prototype,"useFooteredMetadataRenderingStyle",null);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sy.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Sy);
_.p(Sy,"ytd-action-engagement-panel-content-renderer",function(){if(z5h!==void 0)return z5h;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return z5h=D},{mode:1});var HNU;var eth=_.l(function(D){var t=D.data;var H=D.customCommandResolver;return _.G("ad-grid-card-image-full-metadata-view-model",{class:function(){var e;return((e=t().interaction)==null?0:e.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.FI(_.wv({visibilityCallback:function(e){var V,b=(V=t().interaction)==null?void 0:V.onFirstVisible;e&&b&&_.IQ(b)},
showOption:_.n0}),_.dF(function(){return t().interaction},H)),
"aria-label":function(){var e,V;return(e=t().interaction)==null?void 0:(V=e.accessibility)==null?void 0:V.label}},_.G("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.G(_.P5,{data:function(){return t().adImage}},{adImageViewModel:function(e){return _.G(_.dA,{data:e.data,
customCommandResolver:H})}})),_.G("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.G(_.E,{cond:function(){return t().headline},
then:function(e){return _.G(_.$7,{text:e,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.G(_.E,{cond:function(){return t().detailsLine},
then:function(e){return _.G("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.G(_.P5,{data:e},{adDetailsLineViewModel:function(V){return _.G(_.A9,{data:V.data,customCommandResolver:H,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.G(_.E,{cond:function(){return t().secondaryDetailsLine},
then:function(e){return _.G("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.G(_.P5,{data:e},{adDetailsLineViewModel:function(V){return _.G(_.A9,{data:V.data,customCommandResolver:H,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"dm");var VTE=_.l(function(D){var t=D.data;var H=D.customCommandResolver;return _.G("ad-grid-card-image-view-model",{class:function(){var e;return((e=t().interaction)==null?0:e.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.FI(_.wv({visibilityCallback:function(e){var V,b=(V=t().interaction)==null?void 0:V.onFirstVisible;e&&b&&_.IQ(b)},
showOption:_.n0}),_.dF(function(){return t().interaction},H)),
"aria-label":function(){var e,V;return(e=t().interaction)==null?void 0:(V=e.accessibility)==null?void 0:V.label}},_.G(_.P5,{data:function(){return t().adImage}},{adImageViewModel:function(e){return _.G(_.dA,{data:e.data,
customCommandResolver:H})}}),_.G("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.G(_.P5,{data:function(){return t().adCardBadge}},{adCardBadgeViewModel:_.J0B})))},"em");var bNM=_.l(function(D){var t=D.data;var H=D.customCommandResolver;return _.G("ad-grid-card-text-view-model",{class:function(){var e;return((e=t().interaction)==null?0:e.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.FI(_.wv({visibilityCallback:function(e){var V,b=(V=t().interaction)==null?void 0:V.onFirstVisible;e&&b&&_.IQ(b)},
showOption:_.n0}),_.dF(function(){return t().interaction},H)),
"aria-label":function(){var e,V;return(e=t().interaction)==null?void 0:(V=e.accessibility)==null?void 0:V.label}},_.G("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.G(_.E,{cond:function(){return t().title},
then:function(e){return _.G(_.$7,{text:e,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.G("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.G(_.nY,{each:function(){var e;
return((e=t())==null?void 0:e.descriptions)||[]},
keyBy:"INDEX"},function(e){return _.G(_.$7,{text:e,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.G("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.G(_.P5,{data:function(){return t().moreInfoButton}},{adButtonViewModel:function(e){return _.G(_.m8,{data:e.data,
customCommandResolver:H})}})))},"fm");var qH1=_.l(function(D){var t=D.data;var H=D.customCommandResolver;var e=D.adGridCardCollectionStyle;return _.G("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.FI(_.wv({visibilityCallback:function(V){var b,a=(b=t().interaction)==null?void 0:b.onFirstVisible;V&&a&&_.IQ(a)},
showOption:_.n0})),style:function(){return"grid-template-columns: repeat("+YFM(e?e():t().style)+", minmax(0, 1fr));"}},_.G(_.P5,{data:function(){var V;
return(V=t())==null?void 0:V.gridCards}},{adGridCardImageViewModel:function(V){return _.G(VTE,{data:V.data,
customCommandResolver:H})},
adGridCardImageFullMetadataViewModel:function(V){return _.G(eth,{data:V.data,customCommandResolver:H})},
adGridCardTextViewModel:function(V){return _.G(bNM,{data:V.data,customCommandResolver:H})}}))},"gm");_.hB(_.l(function(D){var t=D.data;return _.G("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.FI(_.wv({visibilityCallback:function(H){var e,V=(e=t().interaction)==null?void 0:e.onFirstVisible;H&&V&&_.IQ(V)},
showOption:_.n0}),_.dF(function(){return t().interaction},vQE))},_.G("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.G(_.E,{cond:_.Rs8("(min-width: "+((0,_.kA)()+_.RU)+"px)"),
then:function(){return _.G(_.P5,{data:function(){return t().adGridCardCollection}},{adGridCardCollectionViewModel:function(H){return _.G(qH1,{data:H.data,
customCommandResolver:vQE})}})},
else:function(){return _.G(_.P5,{data:function(){return t().adGridCardCollection}},{adGridCardCollectionViewModel:function(H){return _.G(qH1,{data:H.data,
customCommandResolver:vQE,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.G("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.G(_.P5,{data:function(){return t().adButton}},{adButtonViewModel:function(H){return _.G(_.m8,{data:H.data,
customCommandResolver:vQE})}})))},"hm"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){var t=D.data;return _.G("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.FI(_.wv({visibilityCallback:function(H){var e,V=(e=t().interaction)==null?void 0:e.onFirstVisible;H&&V&&_.IQ(V)},
showOption:_.n0}),_.dF(function(){return t().interaction},pth))},_.G("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.G(_.P5,{data:function(){if(_.Rs8("(min-width: "+((0,_.kA)()+_.RU)+"px)")())var H=t().adGridCardCollection;
else{H=Object.assign({},_.O(t().adGridCardCollection,f1d));var e;H.gridCards!==void 0&&((e=H.gridCards)==null?void 0:e.length)>1?H.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":H.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";H={adGridCardCollectionViewModel:H}}return H}},{adGridCardCollectionViewModel:function(H){return _.G(qH1,{data:H.data,
customCommandResolver:pth})}})),_.G("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.G(_.P5,{data:function(){return t().adButton}},{adButtonViewModel:function(H){return _.G(_.m8,{data:H.data,
customCommandResolver:pth})}})))},"im"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.ij}});var XP=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return D};
_.P(XP,_.X);_.q=XP.prototype;_.q.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"}}}};
_.q.attached=function(){this.getDataFromPlayerAndRender()};
_.q.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.q.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.q.getDataFromPlayerAndRender=function(){var D=this,t=_.FA(this.hostElement);t&&t.getPlayerPromise().then(function(H){D.getCachedDataAndListen(H)})};
_.q.getCachedDataAndListen=function(D){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(D,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(D,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=D)};
_.q.resolveCachedActions=function(){var D=_.RD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(D=D&&D())&&!_.J$.isEmpty(D)&&this.sendUpdateEngagementPanelAction(D);(D=(D=_.RD("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&D())&&!_.J$.isEmpty(D)&&this.sendChangeEngagementPanelVisibilityAction(D);(D=(D=_.RD("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&D())&&!_.J$.isEmpty(D)&&this.sendScrollToEngagementPanelCommand(D)};
_.q.sendUpdateEngagementPanelAction=function(D){var t;_.ET(this.hostElement,"yt-update-engagement-panel-action",[(t=_.J$.get(D,"action"))!=null?t:D])};
_.q.sendChangeEngagementPanelVisibilityAction=function(D){_.ET(this.hostElement,"yt-change-engagement-panel-visibility-action",[D])};
_.q.sendScrollToEngagementPanelCommand=function(D){_.ET(this.hostElement,"yt-scroll-to-engagement-panel-command",[D])};
_.q.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.r("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.Yw(Error("So"))};
XP.prototype.dataChanged=XP.prototype.dataChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],XP.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],XP.prototype,"componentBehavior",void 0);_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",_.rt)],XP.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],XP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],XP.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],XP.prototype,"player",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XP.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],XP);
_.p(XP,"ytd-ads-engagement-panel-content-renderer",function(){if(HNU!==void 0)return HNU;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
return HNU=D},{mode:1});var FgF;var fh=function(){var D=_.X.apply(this,arguments)||this;D.player=null;D.JSC$22631_playerEvents=new Map;D.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return D};
_.P(fh,_.X);_.q=fh.prototype;_.q.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]]"}}}}}};
_.q.created=function(){this.player=null;this.JSC$22631_playerEvents=new Map;this.JSC$22631_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22631_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22631_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22631_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.q.attached=function(){var D=this,t=_.FA();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));t&&t.getPlayerPromise().then(function(H){D.setPlayer(H);D.set("isPageLoad",!1)})};
_.q.setPlayer=function(D){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22631_playerEvents);this.set("player",D);D&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22631_playerEvents),D.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.q.onLoopRangeChange=function(D){var t=_.qS().resolve(_.by(_.bO));if((!t||t.isOnWatch())&&this.hostElement.clientHeight){var H;!D&&((H=this.data)==null?0:H.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.q.onVideoProgress=function(D){var t,H,e=((t=this.player)==null?void 0:(H=t.getPresentingPlayerType)==null?void 0:H.call(t))===2;this.isAdPlaying!==e&&this.set("isAdPlaying",e);var V;if(!e&&(V=this.player)!=null&&V.getLoopRange()){H=this.player.getLoopRange();t=H.startTimeMs;H=H.endTimeMs;e=this.player.getProgressState(1).seekableStart;var b;t<e*1E3&&((b=this.data)==null?0:b.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
D=H<D*1E3;var a;((a=this.player)==null?0:a.getLoopRange())&&D&&this.player.seekTo(t/1E3)}};
_.q.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.q.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.q.onYtDeleteClipEngagementPanelCommand=function(D){_.O(D,QEY).command&&this.ytComponentBehavior.resolveCommand(_.O(D,QEY).command)};
_.ql.Object.defineProperties(fh.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.voteCount)||_.H7("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],fh.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],fh.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],fh.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],fh.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",_.rt)],fh.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],fh.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],fh.prototype,"isAdPlaying",void 0);_.d([_.M({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],fh.prototype,"isPageLoad",void 0);_.d([_.M({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],fh.prototype,"isDarkTheme",void 0);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],fh.prototype,"voteCount",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],fh.prototype,"channelEndpoint",null);_.d([_.m("channelEndpoint"),_.x("design:type",Object),_.x("design:paramtypes",[])],fh.prototype,"channelHref",null);_.d([_.Y({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],fh);
_.p(fh,"ytd-clip-attribution-renderer",function(){if(FgF!==void 0)return FgF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return FgF=D},{mode:1});var alM;var Lh=function(){var D=_.X.apply(this,arguments)||this;D.player=null;D.JSC$22636_playerEvents=new Map;return D};
_.P(Lh,_.X);_.q=Lh.prototype;_.q.created=function(){this.player=null;this.JSC$22636_playerEvents=new Map;this.JSC$22636_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22636_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22636_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.q.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.q.attached=function(){var D=this,t=_.FA();t&&t.getPlayerPromise().then(function(H){D.setPlayer(H);D.set("isPageLoad",!1)})};
_.q.setPlayer=function(D){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22636_playerEvents);this.set("player",D);if(D){this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22636_playerEvents);var t;(D==null?void 0:(t=D.getPresentingPlayerType)==null?void 0:t.call(D))===2&&this.playerAdStartHandler()}};
_.q.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.q.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.q.onVideoProgress=function(){var D,t,H=((D=this.player)==null?void 0:(t=D.getPresentingPlayerType)==null?void 0:t.call(D))===2;this.isAdPlaying!==H&&this.set("isAdPlaying",H)};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Lh.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Lh.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",_.rt)],Lh.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Lh.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Lh.prototype,"isAdPlaying",void 0);
_.d([_.M({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],Lh.prototype,"isPageLoad",void 0);_.d([_.Y({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Lh);
_.p(Lh,"ytd-clip-section-footer-renderer",function(){if(alM!==void 0)return alM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return alM=D},{mode:1});var w1d;var ZNM;var sKA=function(){return _.X.apply(this,arguments)||this};
_.P(sKA,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],sKA.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],sKA.prototype,"data",void 0);_.d([_.Y({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],sKA);
_.p(sKA,"ytd-clip-ad-state-renderer",function(){if(ZNM!==void 0)return ZNM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ZNM=D},{mode:1});var htA;var AO=function(){var D=_.X.apply(this,arguments)||this;D.value="";D.valid=!1;D.userChangedValue=!1;D.disabled=!1;D.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return D};
_.P(AO,_.X);_.q=AO.prototype;_.q.detached=function(){this.userChangedValue=!1};
_.q.handleKeyDown=function(D){if(_.Ka)var t=13;else _.zQD&&_.NG?t=13:t=13;D.keyCode===t&&D.preventDefault()};
_.q.handleInput=function(){var D=_.Kg(this.hostElement).querySelector("#title");if(D){var t=(D.value||"").replace(/\r|\n/g," ");this.set("value",t);D.value=t;this.valid=D.validate();this.userChangedValue=!0}};
_.q.handleBlur=function(){this.valid=_.Kg(this.hostElement).querySelector("#title").validate()};
_.q.onValueChanged=function(){_.Gf(this.hostElement,"title-changed",{title:this.value})};
_.q.onValidChanged=function(){_.Gf(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.q.setInput=function(D,t){var H=_.Kg(this.hostElement).querySelector("#title");H&&(H.value=D,this.handleInput(),t&&(H.invalid=!1,this.valid=!0))};
_.q.onClipCreationDisable=function(){this.set("disabled",!0)};
_.q.onClipCreationEnable=function(){this.set("disabled",!1)};
_.q.onClipCreationVisibilityChange=function(D){var t=this;D.visible?requestAnimationFrame(function(){var H;((H=_.Kg(t.hostElement).querySelector("#title"))==null?void 0:H.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
AO.prototype.onValidChanged=AO.prototype.onValidChanged;AO.prototype.onValueChanged=AO.prototype.onValueChanged;AO.prototype.handleBlur=AO.prototype.handleBlur;AO.prototype.handleInput=AO.prototype.handleInput;AO.prototype.handleKeyDown=AO.prototype.handleKeyDown;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],AO.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],AO.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],AO.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],AO.prototype,"value",void 0);_.d([_.M(),_.x("design:type",Object)],AO.prototype,"valid",void 0);_.d([_.M(),_.x("design:type",Object)],AO.prototype,"userChangedValue",void 0);_.d([_.M(),_.x("design:type",Object)],AO.prototype,"disabled",void 0);_.d([_.rx("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],AO.prototype,"handleKeyDown",null);
_.d([_.rx("input"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AO.prototype,"handleInput",null);_.d([_.rx("blur"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AO.prototype,"handleBlur",null);_.d([_.Os("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AO.prototype,"onValueChanged",null);
_.d([_.Os("valid"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],AO.prototype,"onValidChanged",null);_.d([_.Y({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],AO);
_.p(AO,"ytd-clip-creation-text-input-renderer",function(){if(htA!==void 0)return htA;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return htA=D},{mode:1});var GxM;var EO7;var KgM;var NV1;var kx7;var gz=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};D.pendingStoryboardImages_={};D.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];D.tickLabelInterval=30;D.mediumTickInterval=5;D.largeTickInterval=15;D.aboveRulerHeight=32;D.rulerHeight=50;D.smallTickHeight=4;D.mediumTickHeight=8;D.largeTickHeight=16;D.mediaListeners_=
{};return D};
_.P(gz,_.X);_.q=gz.prototype;_.q.attached=function(){var D=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(t){t=_.F(["screen and (min-resolution: "+t+")","screen and (max-resolution: "+t+")"]);for(var H=t.next();!H.done;H=t.next()){H=H.value;var e=window.matchMedia(H);e&&(D.mediaListeners_[H]=D.updatePixelRatio_.bind(D),e.addEventListener?e.addEventListener("change",D.mediaListeners_[H]):e.addListener?e.addListener(D.mediaListeners_[H]):delete D.mediaListeners_[H])}})};
_.q.detached=function(){this.setPlayer(null);for(var D=_.F(Object.keys(this.mediaListeners_)),t=D.next();!t.done;t=D.next()){var H=t.value;t=this.mediaListeners_[H];(H=window.matchMedia(H))&&(H.removeEventListener?H.removeEventListener("change",t):H.removeListener&&H.removeListener(t))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.q.onVisibilityChangedAction_=function(D){var t=this;D.visible&&!this.player_&&(D=_.FA())&&D.getPlayerPromise().then(function(H){t.setPlayer(H)})};
_.q.setPlayer=function(D){D&&this.set("player_",D)};
_.q.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.q.setUpCanvas_=function(){var D=this.rulerWidth,t=this.devicePixelRatio_,H=this.visible;this.set("canvasReady_",!1);if(H&&t!==0){H=this.aboveRulerHeight+this.rulerHeight;var e=_.Kg(this.hostElement).querySelector("#ticks");e.width=D*t;e.height=H*t;e.style.width=D+"px";e.style.height=H+"px";e.getContext("2d").scale(t,t);this.set("canvasReady_",!0)}};
_.q.drawRuler_=function(D,t,H,e,V,b,a,w,h,K,N,k){D&&H&&t&&(D=_.Kg(this.hostElement).querySelector("#ticks"),t=D.getContext("2d"),t.clearRect(0,0,D.width,D.height),t.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),t.lineWidth=2,t.beginPath(),t.moveTo(0,this.aboveRulerHeight),t.lineTo(D.width,this.aboveRulerHeight),t.moveTo(0,D.height),t.lineTo(D.width,D.height),t.stroke(),this.drawRulerTicks_(D,b,V,e),this.drawStoryboardImages_(D,H,b,V,e),t.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
t.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(a-b,e,!1),this.rulerHeight),H=this.timeToPixels_(w-b,e,!1),t.fillRect(H,this.aboveRulerHeight,D.width-H,this.rulerHeight),this.drawSpeedLines_(D,b,k))};
_.q.drawRulerTicks_=function(D,t,H,e){var V=D.getContext("2d");V.save();V.lineWidth=1;for(var b=Math.floor(Math.max(0,t-this.tickLabelInterval));b<t+H;b++){V.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var a=(b-t)*e;V.beginPath();V.moveTo(a,D.height);var w=this.smallTickHeight;b%this.largeTickInterval===0?w=this.largeTickHeight:b%this.mediumTickInterval===0&&(w=this.mediumTickHeight);V.lineTo(a,D.height-w);V.stroke();b%this.tickLabelInterval===0&&(V.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),V.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),V.fillText(lB(b),a+4,12),V.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),V.moveTo(a,0),V.lineTo(a,this.aboveRulerHeight),V.stroke())}V.restore()};
_.q.percentToHex_=function(D){D=Math.round(D*255).toString(16);D.length<2&&(D="0"+D);return D};
_.q.drawSpeedLines_=function(D,t,H){var e=D.getContext("2d");e.save();var V=Math.min(25,Math.abs(H)-15)/25,b=D.width*.3*V,a=D.width*-.3,w=D.width*1.3,h=this.aboveRulerHeight;D=D.height;var K=Math.round(4*V),N=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");N.length<7&&(N="#"+N.substring(1,4).repeat(2));var k=this.percentToHex_(.5+V/2);k=N+k;N+="00";if(V>0)for(V=0;V<K;V++){var T=a+Math.random()*(w-a),c=h+Math.random()*(D-h),U=b+t%b,S=e.createLinearGradient(T,c,T+U,c);
H<0?(S.addColorStop(0,k),S.addColorStop(.4,k),S.addColorStop(.9,N)):(S.addColorStop(.1,N),S.addColorStop(.6,k),S.addColorStop(1,k));e.strokeStyle=S;e.lineWidth=1;e.beginPath();e.moveTo(T,c);e.lineTo(T+U,c);e.stroke()}e.restore()};
_.q.getStoryboardForTime_=function(D,t,H){H===void 0&&(H=t.getNumberOfStoryboardLevels()-1);D=t.getStoryboardFrameIndex(D,H);return t.getStoryboardFrame(D,H)};
_.q.drawStoryboardImages_=function(D,t,H,e,V){if(!this.disabled){D=D.getContext("2d");var b=this.getStoryboardForTime_(0,t);if(b){var a=b.width/b.columns;b=b.height/b.rows;var w=a/b,h=this.rulerHeight*w;h=this.tickLabelInterval*(w<this.tickLabelInterval*V/this.rulerHeight?1/Math.floor(this.tickLabelInterval*V/h):Math.round(h/(this.tickLabelInterval*V)));var K=h*V,N=this.rulerHeight,k=K/this.rulerHeight,T=Math.floor(Math.max(0,H-h));for(T-=T%h;T<H+e;T+=h){var c=this.getStoryboardForTime_(T,t),U=this.getPreloadedStoryboard_(c.url);
if(U){var S=(T-H)*V,L=this.aboveRulerHeight,J=c.column*a,g=c.row*b;if(w<k){var Q=N/(K/w);c=a;Q*=b;g+=(b-Q)/2}else c=K/(N*w)*a,Q=b,J+=(a-c)/2;D.drawImage(U,J,g,c,Q,S,L,K,N)}else this.fetchStoryboardImage_(c)}}}};
_.q.getPreloadedStoryboard_=function(D){return this.storyboardImages_.find(function(t){if(t.src==D)return!0;var H=t.src.indexOf(D);return H!=-1&&H==t.src.length-D.length})};
_.q.fetchStoryboardImage_=function(D){var t=this,H=this.getPreloadedStoryboard_(D.url),e=this.pendingStoryboardImages_[D.url];H||e!==void 0||(H=new Promise(function(V){var b=new Image(D.width,D.height);b.src=D.url;b.onload=function(){V(b)};
b.onerror=function(){V(null)}}),this.pendingStoryboardImages_[D.url]=H,H.then(function(V){V&&t.push("storyboardImages_",V);
return V}).finally(function(){delete t.pendingStoryboardImages_[D.url]}))};
_.q.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.q.timeToPixels_=function(D,t,H){D*=t;return H===void 0||H?D+"px":D};
_.q.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
gz.prototype.drawRuler_=gz.prototype.drawRuler_;gz.prototype.setUpCanvas_=gz.prototype.setUpCanvas_;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],gz.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],gz.prototype,"ytRendererBehavior",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],gz.prototype,"start",void 0);_.d([_.M({value:30}),_.x("design:type",Number)],gz.prototype,"end",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],gz.prototype,"visible",void 0);_.d([_.M(),_.x("design:type",Object)],gz.prototype,"player_",void 0);_.d([_.M(),_.x("design:type",Number)],gz.prototype,"tickSpacing",void 0);_.d([_.M(),_.x("design:type",Number)],gz.prototype,"windowSizeSec",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],gz.prototype,"rulerWidth",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],gz.prototype,"rulerShift",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],gz.prototype,"canvasReady_",void 0);_.d([_.M({value:function(){return[]}}),
_.x("design:type",Array)],gz.prototype,"storyboardImages_",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],gz.prototype,"disabled",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],gz.prototype,"forceRender_",void 0);_.d([_.M({value:1}),_.x("design:type",Number)],gz.prototype,"devicePixelRatio_",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],gz.prototype,"windowSpeed",void 0);
_.d([_.Os("visible","devicePixelRatio_","rulerWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gz.prototype,"setUpCanvas_",null);
_.d([_.Os("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.x("design:returntype")],gz.prototype,"drawRuler_",null);_.d([_.xL({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],gz);
_.p(gz,"yt-clip-creation-scrubber-canvas",function(){if(kx7===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);kx7=D}D=kx7;return D},
{mode:2});var TV7;var ceF;var JO=function(){var D=_.X.apply(this,arguments)||this;D.start=0;D.end=30;D.visible=!1;D.draggingLeft_=!1;D.draggingRight_=!1;D.draggingRuler_=!1;D.draggingWindow_=!1;D.seekableStart=0;D.seekableEnd=0;D.rulerWidth_=0;D.rulerShift_=0;D.windowSlideSpeed=0;D.disabled=!1;D.initialized=!1;D.durationAccessibilityLabel="";D.activeLoopRange_=!1;D.rulerDragMouseStart_=0;D.rulerDragRulerStart_=0;D.rulerDragStartTime_=0;D.rulerDragEndTime_=0;D.dragMouseLastX_=0;D.scrollInterval_=null;D.scrubberVe_=null;D.boundHandlers_=
{};D.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return D};
_.P(JO,_.X);_.q=JO.prototype;
_.q.created=function(){var D=this;this.JSC$22649_playerEvents=new Map;this.JSC$22649_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22649_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22649_playerEvents.set("onStateChange",this.onStateChange_);var t={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(t).forEach(function(H){D.boundHandlers_[H]=t[H].bind(D)})};
_.q.attached=function(){this.activeLoopRange_=!1;_.Kg(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Kg(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Nx(156731)};
_.q.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Kg(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Kg(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.q.onVisibilityChangedAction_=function(D){var t=this;D.visible&&!this.player_&&(D=_.FA())&&D.getPlayerPromise().then(function(H){t.setPlayer(H)})};
_.q.setPlayer=function(D){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22649_playerEvents);D&&(this.set("player_",D),this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22649_playerEvents))};
_.q.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.q.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.q.beginHandleDrag_=function(D){this.disabled||(D.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=D.clientX,D.target===_.Kg(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():D.target===_.Kg(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.q.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.q.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.q.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.q.beginRulerDrag_=function(D){this.disabled||(D.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=D.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.q.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.q.beginWindowScroll_=function(){var D=this;this.scrollInterval_=setInterval(function(){var t=D.windowSlideSpeed;if(t=_.RRw(D.start,D.boundedRulerStartLimit_())?t-.1:_.RRw(D.end,D.boundedRulerEndLimit_())?t+.1:0){var H=D.capRulerOffset_(D.rulerShift_+t);H==D.rulerShift_?t=0:(D.set("rulerShift_",H),_.Gf(D.hostElement,"set-fixed-length-range",{start:D.start+t,duration:D.end-D.start}))}D.set("windowSlideSpeed",t)},33)};
_.q.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.q.endDrag_=function(){this.logClick();var D=void 0;this.draggingRight_?D=this.end-1:this.draggingLeft_&&(D=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,D);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))};
_.q.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.q.updateRulerSize_=function(){this.set("rulerWidth_",_.Kg(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.q.handleMouseDrag_=function(D){D.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(D):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(D):this.draggingWindow_&&this.handleWindowDrag_(D))};
_.q.handleRulerDrag_=function(D){D=this.pixelsToTime_(D.clientX-this.rulerDragMouseStart_);D=this.capRulerOffset_(this.rulerDragRulerStart_-D);this.set("rulerShift_",D);var t=this.rulerDragStartTime_-(this.rulerDragRulerStart_-D);_.Gf(this.hostElement,"set-fixed-length-range",{start:t,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-D)-t})};
_.q.handleWindowDrag_=function(D){var t=D.clientX-this.dragMouseLastX_;this.dragMouseLastX_=D.clientX;D=this.pixelsToTime_(t);_.Gf(this.hostElement,"set-fixed-length-range",{start:this.start+D,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.q.capRulerOffset_=function(D){var t=this.seekableStart-this.pixelsToTime_(16),H=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(t,D),H)};
_.q.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.q.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.q.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.q.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.q.handleWindowHandleDrag_=function(D){var t=D.clientX-this.dragMouseLastX_;this.dragMouseLastX_=D.clientX;D=this.pixelsToTime_(t);if(this.draggingLeft_){var H=this.start+D;var e=this.end}else this.draggingRight_&&(H=this.start,e=this.end+D);_.Gf(this.hostElement,"set-range",{start:H,end:e,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.q.onVideoProgress_=function(D){this.disabled||(D=this.timeToPixels_(D-this.rulerShift_,this.tickSpacing_),_.Kg(this.hostElement).querySelector("#playhead").style.transform="translateX("+D+")")};
_.q.onClipCreationDisable_=function(){this.endDrag_()};
_.q.timeToPixels_=function(D,t,H){D*=t;return H===void 0||H?D+"px":D};
_.q.pixelsToTime_=function(D){return D/this.tickSpacing_};
_.q.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.q.centerRuler_=function(D,t,H){this.set("rulerShift_",this.capRulerOffset_(D+(t-D)/2-H/2))};
_.q.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.q.updateLoopRange_=function(D,t,H,e,V,b,a){D&&(t&&e&&!H?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(D.pauseVideo(),D.seekTo(V,!1,void 0,void 0,50)):this.draggingRight_?(D.pauseVideo(),D.seekTo(b-.1,!1,void 0,void 0,50)):(a!==void 0?D.seekTo(a,!0,void 0,void 0,50):(t=D.getCurrentTime(),t<V||t>b?D.seekTo(V,!0,void 0,void 0,50):D.seekTo(t,!0,void 0,void 0,50)),D.playVideo()),D.setLoopRange({startTimeMs:V*1E3,endTimeMs:b*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(D.getCurrentTime())):
this.activeLoopRange_&&(D.setLoopRange(null),this.activeLoopRange_=!1))};
_.q.updateHandles_=function(){_.Kg(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Kg(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.q.updateRuler_=function(){var D=this.end,t=this.start,H=this.draggableStartLimit_(),e=this.draggableEndLimit_();(t<H-.001||D>e+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.q.computeDurationLabel_=function(D,t){return D?D.replace("$clip_length",parseFloat(t).toFixed(1)):""};
_.q.computeDuration_=function(D,t){return this.isValidTime_(D)&&this.isValidTime_(t)&&D<t?t-D:0};
_.q.isValidTime_=function(D){return isNaN(parseFloat(D))||D<0?!1:this.player_?D>=this.seekableStart&&D<=this.seekableEnd:!0};
_.q.computeWindowSizeSec_=function(D,t,H){return Math.min((D||12E4)/1E3,H-t)};
_.q.computeTickSpacing_=function(D,t){return t?t/D:1};
_.q.onDragStateChanged_=function(){_.Gf(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.q.centerRangeOnTime_=function(D){var t=this.duration;D=xHU(D-t/2,t,this.seekableStart,this.seekableEnd);_.Gf(this.hostElement,"set-fixed-length-range",{start:D.start,duration:D.end-D.start})};
_.q.nearlyLessThan_=function(D,t,H){return D+(H===void 0?1E-6:H)<t};
_.q.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var D=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(D,this.start)||this.nearlyLessThan_(this.end,D))&&this.centerRangeOnTime_(D)}};
_.q.onStateChange_=function(D){this.visible&&!this.disabled&&D==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.q.computeDragState_=function(D,t,H,e){return D?"left":t?"right":H?"ruler":e?"window":"none"};
_.q.logClick=function(){var D=_.v3(),t=_.lo();D&&t&&this.scrubberVe_&&(_.r("combine_ve_grafts")?_.A1(_.Pc(),this.scrubberVe_,t):_.Q$(D,t,this.scrubberVe_),_.tV(D,this.scrubberVe_))};
JO.prototype.onDragStateChanged_=JO.prototype.onDragStateChanged_;JO.prototype.updateRuler_=JO.prototype.updateRuler_;JO.prototype.updateHandles_=JO.prototype.updateHandles_;JO.prototype.onUpdateLoopRange=JO.prototype.onUpdateLoopRange;JO.prototype.onInitializedChanged_=JO.prototype.onInitializedChanged_;JO.prototype.onVisibleChanged_=JO.prototype.onVisibleChanged_;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],JO.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",Object)],JO.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],JO.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],JO.prototype,"start",void 0);_.d([_.M(),_.x("design:type",Object)],JO.prototype,"end",void 0);_.d([_.M({computed:"computeDuration_(start, end)"}),_.x("design:type",Number)],JO.prototype,"duration",void 0);
_.d([_.M(),_.x("design:type",String)],JO.prototype,"lengthTemplate",void 0);_.d([_.M({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.x("design:type",String)],JO.prototype,"durationLabel",void 0);_.d([_.M(),_.x("design:type",Object)],JO.prototype,"visible",void 0);_.d([_.M(),_.x("design:type",Object)],JO.prototype,"player_",void 0);_.d([_.M(),_.x("design:type",Object)],JO.prototype,"draggingLeft_",void 0);_.d([_.M(),_.x("design:type",Object)],JO.prototype,"draggingRight_",void 0);
_.d([_.M(),_.x("design:type",Object)],JO.prototype,"draggingRuler_",void 0);_.d([_.M({value:!1}),_.x("design:type",Object)],JO.prototype,"draggingWindow_",void 0);_.d([_.M({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.x("design:type",Number)],JO.prototype,"tickSpacing_",void 0);_.d([_.M(),_.x("design:type",Object)],JO.prototype,"seekableStart",void 0);_.d([_.M(),_.x("design:type",Object)],JO.prototype,"seekableEnd",void 0);
_.d([_.M(),_.x("design:type",Number)],JO.prototype,"windowSizeMs",void 0);_.d([_.M({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.x("design:type",Number)],JO.prototype,"windowSizeSec_",void 0);_.d([_.M(),_.x("design:type",Object)],JO.prototype,"rulerWidth_",void 0);_.d([_.M(),_.x("design:type",Object)],JO.prototype,"rulerShift_",void 0);_.d([_.M(),_.x("design:type",Object)],JO.prototype,"windowSlideSpeed",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],JO.prototype,"disabled",void 0);_.d([_.M(),_.x("design:type",Object)],JO.prototype,"initialized",void 0);_.d([_.M(),_.x("design:type",Object)],JO.prototype,"durationAccessibilityLabel",void 0);_.d([_.M({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.x("design:type",String)],JO.prototype,"dragState",void 0);
_.d([_.Os("visible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JO.prototype,"onVisibleChanged_",null);_.d([_.Os("initialized"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JO.prototype,"onInitializedChanged_",null);_.d([_.Os("player_","visible","disabled","initialized","start","end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JO.prototype,"onUpdateLoopRange",null);
_.d([_.Os("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JO.prototype,"updateHandles_",null);_.d([_.Os("start","end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JO.prototype,"updateRuler_",null);
_.d([_.Os("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JO.prototype,"onDragStateChanged_",null);_.d([_.xL({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],JO);
_.p(JO,"yt-clip-creation-scrubber-view",function(){if(ceF===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;TV7===void 0&&(TV7=document.createElement("template"));var e=TV7;H.call(t,e.content.cloneNode(!0),D.content.firstChild);ceF=D}D=ceF;return D},{mode:2});var Y2=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};D.startHighlightTimeout=0;D.endHighlightTimeout=0;return D};
_.P(Y2,_.X);_.q=Y2.prototype;_.q.attached=function(){var D=this;this.startInput.addEventListener("input",function(t){return D.handleStartInput_(t)});
this.endInput.addEventListener("input",function(t){return D.handleEndInput_(t)});
this.startInput.addEventListener("focusout",function(t){return D.handleStartBlur_(t)});
this.endInput.addEventListener("focusout",function(t){return D.handleEndBlur_(t)})};
_.q.setPlayer=function(D){this.set("player_",D)};
_.q.onSetFixedLengthRange_=function(D){var t=D.detail;D=t.start;var H=t.duration,e=t.startLimit;t=t.endLimit;e||(e=this.seekableStart_);t||(t=this.seekableEnd_);D=xHU(D,H,e,t);this.start=D.start;this.end=D.end};
_.q.onSetRange_=function(D){var t=D.detail;D=t.start;var H=t.end,e=t.startLimit;t=t.endLimit;e||(e=this.seekableStart_);t||(t=this.seekableEnd_);if(D=RgM(D,H,e,t,this.minLengthSec,this.maxLengthSec))this.start=D.start,this.end=D.end};
_.q.updateInputs_=function(){var D=this.end,t=this.start;this.startInput.focused||(this.startInput.value=lB(t,!0));this.endInput.focused||(this.endInput.value=lB(D,!0))};
_.q.handleStartInput_=function(D){D=dHl(D.target.value);if(D===null)this.set("startValid",!1);else{var t=this.end,H=RgM(D,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);H?(this.set("endWillUpdate",H.end!==t),this.set("startValid",H.start===D)):this.set("startValid",!1)}};
_.q.handleEndInput_=function(D){D=dHl(D.target.value);if(D===null)this.set("endValid",!1);else{var t=this.start,H=uFh(this.start,D,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);H?(this.set("startWillUpdate",H.start!==t),this.set("endValid",H.end===D)):this.set("endValid",!1)}};
_.q.handleStartBlur_=function(D){D=dHl(D.target.value);D===null?this.startInput.value=lB(this.start,!0):this.forceUpdateInputs_(RgM(D,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.q.handleEndBlur_=function(D){D=dHl(D.target.value);D===null?this.endInput.value=lB(this.end,!0):this.forceUpdateInputs_(uFh(this.start,D,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.q.forceUpdateInputs_=function(D){D&&(this.start=D.start,this.end=D.end);this.startInput.value=lB(this.start,!0);this.endInput.value=lB(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.q.initializeClipRange_=function(){var D=this.seekableEnd_,t=this.seekableStart_,H=this.visible_,e=this.player_;if(!e||!H||t===null||!D)this.set("initialized",!1);else if(!this.initialized){var V=e.getCurrentTime(),b=this.getDefaultLengthSec_();H=e.getVideoData();var a=e.getPlayerState()==1,w=H.isLive;b=Math.min(b,D-t);V=Math.max(0,V);D=w?uFh(V-b,V,t,D,this.minLengthSec,this.maxLengthSec):a?xHU(V-b/2,b,t,D):xHU(V,b,t,D);this.start=D.start;this.end=D.end;this.set("initialized",!0);H.isLive&&e.seekTo(D.start);
this.startInput.value=lB(this.start,!0);this.endInput.value=lB(this.end,!0)}};
_.q.onStartChanged_=function(){var D=this;_.Gf(this.hostElement,"start-changed",{start:this.start});var t;isNaN((t=this.oldStart)!=null?t:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){D.set("highlightStart",!1);D.startHighlightTimeout=0;D.oldStart=D.start},3E3))};
_.q.onEndChanged_=function(){var D=this;_.Gf(this.hostElement,"end-changed",{end:this.end});var t;isNaN((t=this.oldEnd)!=null?t:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){D.set("highlightEnd",!1);D.endHighlightTimeout=0;D.oldEnd=D.end},3E3))};
_.q.onVisibilityChangedAction_=function(D){var t=this;this.set("visible_",D.visible);this.visible_&&!this.player_&&(D=_.FA())&&D.getPlayerPromise().then(function(H){t.setPlayer(H)})};
_.q.computeMinLengthSec_=function(D){return D/1E3||5};
_.q.computeMaxLengthSec_=function(D){return D/1E3||60};
_.q.computeDefaultLengthSec_=function(D){return D/1E3};
_.q.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.q.computeSeekableStart_=function(D,t){return D&&t?D.getProgressState(1).seekableStart:0};
_.q.computeSeekableEnd_=function(D,t){return D&&t?D.getProgressState(1).seekableEnd:0};
_.q.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.q.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.q.onDragState_=function(D){this.set("highlightStart",D.detail.startChanging);this.set("highlightEnd",D.detail.endChanging)};
Y2.prototype.onDragState_=Y2.prototype.onDragState_;Y2.prototype.onEndChanged_=Y2.prototype.onEndChanged_;Y2.prototype.onStartChanged_=Y2.prototype.onStartChanged_;Y2.prototype.initializeClipRange_=Y2.prototype.initializeClipRange_;Y2.prototype.updateInputs_=Y2.prototype.updateInputs_;Y2.prototype.onSetRange_=Y2.prototype.onSetRange_;Y2.prototype.onSetFixedLengthRange_=Y2.prototype.onSetFixedLengthRange_;
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Y2.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Y2.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Y2.prototype,"data",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],Y2.prototype,"start",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],Y2.prototype,"startValid",void 0);
_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Y2.prototype,"startWillUpdate",void 0);_.d([_.M({value:30}),_.x("design:type",Number)],Y2.prototype,"end",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],Y2.prototype,"endValid",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Y2.prototype,"endWillUpdate",void 0);_.d([_.M({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.x("design:type",Number)],Y2.prototype,"minLengthSec",void 0);
_.d([_.M({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.x("design:type",Number)],Y2.prototype,"maxLengthSec",void 0);_.d([_.M({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.x("design:type",Number)],Y2.prototype,"defaultLengthSec",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Y2.prototype,"visible_",void 0);_.d([_.M(),_.x("design:type",Object)],Y2.prototype,"player_",void 0);
_.d([_.M({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.x("design:type",Number)],Y2.prototype,"seekableStart_",void 0);_.d([_.M({computed:"computeSeekableEnd_(player_, visible_)"}),_.x("design:type",Number)],Y2.prototype,"seekableEnd_",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Y2.prototype,"initialized",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Y2.prototype,"disabled",void 0);
_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Y2.prototype,"highlightStart",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Y2.prototype,"highlightEnd",void 0);_.d([_.o5("#start"),_.x("design:type",HTMLInputElement)],Y2.prototype,"startInput",void 0);_.d([_.o5("#end"),_.x("design:type",HTMLInputElement)],Y2.prototype,"endInput",void 0);
_.d([_.rx("set-fixed-length-range"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Y2.prototype,"onSetFixedLengthRange_",null);_.d([_.rx("set-range"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Y2.prototype,"onSetRange_",null);_.d([_.Os("start","end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Y2.prototype,"updateInputs_",null);
_.d([_.Os("player_","visible_","seekableStart_","seekableEnd_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Y2.prototype,"initializeClipRange_",null);_.d([_.Os("start"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Y2.prototype,"onStartChanged_",null);_.d([_.Os("end"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Y2.prototype,"onEndChanged_",null);
_.d([_.rx("clips-drag-state"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Y2.prototype,"onDragState_",null);_.d([_.xL({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],Y2);
_.p(Y2,"yt-clip-creation-scrubber-renderer",function(){if(NV1===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;KgM===void 0&&(KgM=document.createElement("template"));var e=KgM;H.call(t,e.content.cloneNode(!0),D.content.firstChild);NV1=D}D=NV1;return D},{mode:2});var lC=function(){var D=_.X.apply(this,arguments)||this;D.player_=null;D.JSC$22663_playerEvents=new Map;D.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return D};
_.P(lC,_.X);_.q=lC.prototype;_.q.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"}}}};
_.q.created=function(){this.JSC$22663_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22663_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22663_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22663_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.q.detached=function(){this.setPlayer(null)};
_.q.onVisibilityChangedAction_=function(D){var t=this,H;if((H=this.data)==null?0:H.externalVideoId){var e;this.videoId=(e=this.data)==null?void 0:e.externalVideoId}this.getPlayer().then(function(V){if(D.visible)t.returnTime=V.getCurrentTime(),t.isAtLiveHead=V.getProgressState().isAtLiveHead;else{var b=t.returnTime;t.isAtLiveHead&&(b=Number.POSITIVE_INFINITY);V.seekTo(b,void 0,void 0,void 0,51)}})};
_.q.getPlayer=function(){var D=this;if(!this.player_){var t=_.FA();if(t)return t.getPlayerPromise().then(function(H){D.setPlayer(H);return H})}return Promise.resolve(this.player_)};
_.q.setPlayer=function(D){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22663_playerEvents);if(D){this.player_=D;var t;((t=this.data)==null?0:t.externalVideoId)||this.set("videoId",D.getVideoData().video_id||"");var H;(D==null?void 0:(H=D.getPresentingPlayerType)==null?void 0:H.call(D))===2&&(this.set("isAdPlaying",!0),_.ET(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(D,this.JSC$22663_playerEvents)}};
_.q.ready=function(){_.Kg(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.q.onTitleChanged_=function(D){this.set("titleValue",D.detail.title)};
_.q.onStartChanged_=function(D){this.set("start",D.detail.start)};
_.q.onEndChanged_=function(D){this.set("end",D.detail.end)};
_.q.onTitleValidChanged_=function(D){this.set("titleValid",D.detail.valid)};
_.q.onStartValidChanged_=function(D){this.set("startValid",D.detail.valid)};
_.q.onEndValidChanged_=function(D){this.set("endValid",D.detail.valid)};
_.q.onVideoDataChange_=function(){var D;if((D=this.data)==null||!D.externalVideoId){var t;this.set("videoId",((t=this.player_)==null?void 0:t.getVideoData().video_id)||"")}};
_.q.computeFormValid_=function(D,t,H,e){return!!(D&&t&&H&&e)};
_.q.computeCancelButton_=function(D,t,H){return D&&_.O(D,_.aj)?{buttonRenderer:Object.assign({},_.O(D,_.aj),{isDisabled:t||H})}:null};
_.q.computeSubmitButton_=function(D,t,H){return D&&_.O(D,_.aj)?{buttonRenderer:Object.assign({},_.O(D,_.aj),{command:void 0,isDisabled:!this.formValid||t||H})}:null};
_.q.computeSubmitCommand_=function(D){return D||null};
_.q.onSubmit_=function(D){var t=this;D.stopPropagation();D.preventDefault();this.submitCommand_&&(D={},D.comment_text=this.titleValue,D.clip_external_video_id=this.videoId,D.clip_offset_ms=parseInt(this.start*1E3,10),D.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.NJ(this.hostElement,[this.submitCommand_,D]).then(function(){t.set("isLoading_",!1)},function(){t.set("isLoading_",!1)}))};
_.q.playerAdStartHandler_=function(){_.ET(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.q.playerAdEndHandler_=function(){_.ET(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.q.onVideoProgress_=function(){var D=this;this.getPlayer().then(function(t){var H,e=(t==null?void 0:(H=t.getPresentingPlayerType)==null?void 0:H.call(t))===2;D.isAdPlaying!==e&&(e?D.playerAdStartHandler_():D.playerAdEndHandler_())})};
lC.prototype.onEndValidChanged_=lC.prototype.onEndValidChanged_;lC.prototype.onStartValidChanged_=lC.prototype.onStartValidChanged_;lC.prototype.onTitleValidChanged_=lC.prototype.onTitleValidChanged_;lC.prototype.onEndChanged_=lC.prototype.onEndChanged_;lC.prototype.onStartChanged_=lC.prototype.onStartChanged_;lC.prototype.onTitleChanged_=lC.prototype.onTitleChanged_;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],lC.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",Object)],lC.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],lC.prototype,"data",void 0);_.d([_.M({value:""}),_.x("design:type",String)],lC.prototype,"titleValue",void 0);
_.d([_.M({value:!1}),_.x("design:type",Boolean)],lC.prototype,"titleValid",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],lC.prototype,"start",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],lC.prototype,"startValid",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],lC.prototype,"end",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],lC.prototype,"endValid",void 0);_.d([_.M({value:""}),_.x("design:type",String)],lC.prototype,"videoId",void 0);
_.d([_.M({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.x("design:type",Boolean)],lC.prototype,"formValid",void 0);_.d([_.M({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.x("design:type",Object)],lC.prototype,"submitButton_",void 0);_.d([_.M({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.x("design:type",Object)],lC.prototype,"submitCommand_",void 0);
_.d([_.M({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.x("design:type",Object)],lC.prototype,"cancelButton_",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],lC.prototype,"isLoading_",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],lC.prototype,"isAdPlaying",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],lC.prototype,"returnTime",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],lC.prototype,"isAtLiveHead",void 0);
_.d([_.rx("title-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],lC.prototype,"onTitleChanged_",null);_.d([_.rx("start-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],lC.prototype,"onStartChanged_",null);_.d([_.rx("end-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],lC.prototype,"onEndChanged_",null);
_.d([_.rx("title-valid-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],lC.prototype,"onTitleValidChanged_",null);_.d([_.rx("start-valid-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],lC.prototype,"onStartValidChanged_",null);_.d([_.rx("end-valid-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],lC.prototype,"onEndValidChanged_",null);
_.d([_.xL({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],lC);
_.p(lC,"yt-clip-creation-renderer",function(){if(EO7===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;GxM===void 0&&(GxM=document.createElement("template"));var e=GxM;H.call(t,e.content.cloneNode(!0),D.content.firstChild);EO7=D}D=EO7;return D},{mode:2});var v0=function(){return _.X.apply(this,arguments)||this};
_.P(v0,_.X);v0.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"}}}};
v0.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(D){return D.hasOwnProperty("clipCreationRenderer")})&&_.ET(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
v0.prototype.onPanelContentVisibleChanged=v0.prototype.onPanelContentVisibleChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],v0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.k7.YtVisibilityBehavior),_.x("design:type",Object)],v0.prototype,"ytVisibilityBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],v0.prototype,"ytdReduxBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],v0.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],v0.prototype,"panelContentVisible",void 0);_.d([_.Os("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],v0.prototype,"onPanelContentVisibleChanged",null);_.d([_.Y({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],v0);
_.p(v0,"ytd-clip-section-renderer",function(){if(w1d!==void 0)return w1d;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return w1d=D},{mode:1});var jK1;var ph=function(){return _.X.apply(this,arguments)||this};
_.P(ph,_.X);_.q=ph.prototype;
_.q.onKeyDown=function(D){if(this.snippetElements.length!==0&&(D=D.keyCode,D===38||D===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);D===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.A8(this.highlightedIndex,-1,this.snippetElements.length);D=this.snippetElements.length;var t=this.highlightedIndex%D;this.highlightedIndex=t*D<0?t+D:t;D=this.snippetElements[this.highlightedIndex];this.highlightSnippet(D);this.ensureVisible(D)}};
_.q.onKeyUp=function(D){var t=this;MMw(D)&&(D.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Jy.cancelJob(this.inputTimerId),this.inputTimerId=_.Jy.addLowPriorityJob(function(){t.typedValue&&(t.fetchSnippets(t.typedValue),t.logInputGesture(t.data))},1E3))};
_.q.onClick=function(D){(D=_.dHV(D.target,null,"snippet-item"))&&this.selectSnippet(D)};
_.q.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.q.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.q.ready=function(){var D=this;this.inputElement.addEventListener("focus",function(){D.snippetsWrapper.style.removeProperty("display")})};
_.q.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.q.getSourceTimelines=function(){if(!this.data)return[];var D=[];if(this.data.searchInVideoSources)for(var t=_.F(this.data.searchInVideoSources),H=t.next();!H.done;H=t.next())H=H.value,H==="SEARCH_IN_VIDEO_SOURCE_ASR"?D.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):H==="SEARCH_IN_VIDEO_SOURCE_OCR"&&D.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return D};
_.q.fetchSnippets=function(D){var t=_.ET(this.hostElement,"yt-get-current-video-id-action")[0],H=this.getSourceTimelines();D={getSearchInVideoCommand:{externalVideoId:t,query:D!=null?D:"",sourceTimelines:H},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}})};
_.q.filterSnippets=function(D,t){var H=this;if(t){this.filteredSnippets=(0,_.J$.unsafeClone)(D);var e=RegExp(_.kaT(t),"i");this.filteredSnippets=this.filteredSnippets.filter(function(a){return e.test(H.ytRendererBehavior.getSimpleString(a.snippet))});
D=_.F(this.filteredSnippets);for(var V=D.next();!V.done;V=D.next()){V=V.value;var b=this.ytRendererBehavior.getSimpleString(V.snippet);V.snippet={runs:[{text:b.substring(0,b.toLowerCase().indexOf(t))},{text:b.substring(b.toLowerCase().indexOf(t),b.toLowerCase().indexOf(t)+t.length),bold:!0},{text:b.substring(b.toLowerCase().indexOf(t)+t.length,b.length)}]}}}else this.filteredSnippets=D};
_.q.onUpdateSearchInVideoResults=function(D){if(!(this.snippets.length>0)){var t,H,e;if((e=(t=_.O(D,dN7))==null?void 0:(H=t.results)==null?void 0:H.length)!=null&&e){var V;this.filteredSnippets=this.snippets=((V=_.O(D,dN7))==null?void 0:V.results).map(function(b){var a,w,h;return{startMs:b==null?void 0:(a=b.searchInVideoResultRenderer)==null?void 0:a.startMs,startTimeText:b==null?void 0:(w=b.searchInVideoResultRenderer)==null?void 0:w.startTimeText,snippet:b==null?void 0:(h=b.searchInVideoResultRenderer)==
null?void 0:h.snippet}})}}};
_.q.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};
_.q.highlightSnippet=function(D){D.classList.add("highlighted")};
_.q.removeSnippetHighlight=function(D){D.classList.remove("highlighted")};
_.q.selectSnippet=function(D){this.typedValue=String(D.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(D);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.q.ensureVisible=function(D){var t=this.snippetsWrapper.scrollTop,H=t+this.snippetsWrapper.clientHeight,e=D.offsetTop-this.snippetsWrapper.offsetTop;D=e+D.clientHeight;e<t?this.snippetsWrapper.scrollTop-=t-e:D>H&&(this.snippetsWrapper.scrollTop+=D-H)};
_.q.seekPlayer=function(D){var t,H;return _.Z(function(e){if(e.nextAddress==1){if(!D)return e.jumpTo(0);t=Number(D.dataset.startOffset);return e.yield(_.an().getPlayerPromise(),3)}H=e.yieldResult;H.seekTo(t/1E3,!0);H.wakeUpControls();_.n2(e)})};
_.q.logInputGesture=function(D){var t=_.v3();t&&(D==null?0:D.trackingParams)&&_.HH(t,_.Sa(D.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.q.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("typed-value-changed",this.typedValue))};
_.q.updateTypedValueFromBinding=function(D){this.typedValue=D.currentTarget.value};
ph.prototype.typedValueChangedForBinding=ph.prototype.typedValueChangedForBinding;ph.prototype.dataChanged=ph.prototype.dataChanged;ph.prototype.panelContentVisibleChanged=ph.prototype.panelContentVisibleChanged;ph.prototype.onClick=ph.prototype.onClick;ph.prototype.onKeyUp=ph.prototype.onKeyUp;ph.prototype.onKeyDown=ph.prototype.onKeyDown;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ph.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],ph.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ph.prototype,"data",void 0);_.d([_.M({value:[]}),_.x("design:type",Array)],ph.prototype,"snippets",void 0);_.d([_.M({value:[]}),_.x("design:type",Array)],ph.prototype,"filteredSnippets",void 0);_.d([_.M({value:[]}),_.x("design:type",Array)],ph.prototype,"snippetElements",void 0);
_.d([_.o5("#siv-input"),_.x("design:type",HTMLElement)],ph.prototype,"inputElement",void 0);_.d([_.o5("#siv-snippets-wrapper"),_.x("design:type",HTMLElement)],ph.prototype,"snippetsWrapper",void 0);_.d([_.M(),_.x("design:type",String)],ph.prototype,"typedValue",void 0);_.d([_.M({value:-1}),_.x("design:type",Number)],ph.prototype,"highlightedIndex",void 0);_.d([_.rx("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[_.fr]),_.x("design:returntype")],ph.prototype,"onKeyDown",null);
_.d([_.rx("keyup"),_.x("design:type",Function),_.x("design:paramtypes",[_.fr]),_.x("design:returntype")],ph.prototype,"onKeyUp",null);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],ph.prototype,"onClick",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],ph.prototype,"panelContentVisible",void 0);
_.d([_.Os("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ph.prototype,"panelContentVisibleChanged",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ph.prototype,"dataChanged",null);_.d([_.Os("typedValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ph.prototype,"typedValueChangedForBinding",null);
_.d([_.Y({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],ph);
_.p(ph,"ytd-search-in-video-renderer",function(){if(jK1!==void 0)return jK1;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return jK1=D},{mode:1});var $cM;var dz=function(){return _.X.apply(this,arguments)||this};
_.P(dz,_.X);dz.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
dz.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]]"}}}}}};
dz.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var D,t,H,e,V=(t=_.O((D=this.data)==null?void 0:D.onClickCommand,_.lq))==null?void 0:(H=t.item)==null?void 0:(e=H.notificationTextRenderer)==null?void 0:e.successResponseText;V&&_.BRu(this.hostElement,V)}};
_.ql.Object.defineProperties(dz.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e;return this.isProductPlaceholder&&((D=this.data)==null?void 0:(t=D.hiddenProductOptions)==null?void 0:t.showDropCountdown)&&!!((H=this.data)==null?0:(e=H.hiddenProductOptions)==null?0:e.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var D;return!this.isProductPlaceholder&&!((D=this.data)==null?0:D.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var D,t;return!((D=this.data)==null?0:D.priceReplacementText)&&!((t=this.data)==null||!t.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],dz.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],dz.prototype,"componentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],dz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],dz.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("isProductPlaceholder"),_.x("design:type",Object),_.x("design:paramtypes",[])],dz.prototype,"useCenterLayoutContainer",null);_.d([_.M({computed:"computeButtonOverride(data)"}),_.x("design:type",Object)],dz.prototype,"buttonOverride",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],dz.prototype,"isProductPlaceholder",null);
_.d([_.m("isProductPlaceholder"),_.x("design:type",Object),_.x("design:paramtypes",[])],dz.prototype,"showDropCountdown",null);_.d([_.m("isProductPlaceholder","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],dz.prototype,"showBrandName",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],dz.prototype,"showPriceReplacementText",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],dz.prototype,"showPrice",null);
_.d([_.m("isProductPlaceholder"),_.x("design:type",Object),_.x("design:paramtypes",[])],dz.prototype,"showMetadata",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],dz);
_.p(dz,"ytd-product-list-item-renderer",function(){if($cM!==void 0)return $cM;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return $cM=D},{mode:1});var iNM;var x2=function(){return _.X.apply(this,arguments)||this};
_.P(x2,_.X);x2.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
x2.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
x2.prototype.panelContentVisibleChanged=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return D.playerApi?H.jumpTo(2):H.yield(_.an().getPlayerPromise(),3);H.nextAddress!=2&&(D.playerApi=H.yieldResult);(t=D.playerApi)==null||t.productsInVideoVisibilityUpdated(!!D.panelContentVisible);_.n2(H)})};
x2.prototype.panelContentVisibleChanged=x2.prototype.panelContentVisibleChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],x2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],x2.prototype,"panelContentVisible",void 0);_.d([_.M(),_.x("design:type",Object)],x2.prototype,"data",void 0);
_.d([_.Os("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],x2.prototype,"panelContentVisibleChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],x2);
_.p(x2,"ytd-product-list-renderer",function(){if(iNM!==void 0)return iNM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return iNM=D},{mode:1});var red;var RL=function(){var D=_.X.apply(this,arguments)||this;D.hideTimestamps=!!_.l_("hide-transcript-timestamps");D.currentCueIndex=-1;D.flatCues=[];D.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};D.TEST_ONLY={getFlatCues:function(){return D.flatCues}};
return D};
_.P(RL,_.X);_.q=RL.prototype;_.q.hideTimestampsChanged=function(){_.Yg("hide-transcript-timestamps",this.hideTimestamps)};
_.q.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.q.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.q.dataChanged=function(){var D;if((D=this.data)!=null&&D.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;D=_.F(this.data.cueGroups);for(var t=D.next();!t.done;t=D.next()){t=_.F(_.O(t.value,xNM).cues);for(var H=t.next();!H.done;H=t.next())this.flatCues.push(Number(_.O(H.value,RUA).startOffsetMs))}}};
_.q.onYtPlayerTimeChanged=function(D){if(!(D<0)){for(var t=this.currentCueIndex,H=t;;){var e=H>=0?this.flatCues[H]/1E3:-1;if(D+.5<e)--H;else if(e=H+1<this.flatCues.length?this.flatCues[H+1]/1E3:Infinity,D+.5>e)H+=1;else break}H!==t&&(t>=0&&((D=this.getCueElement(t))&&D.classList.remove("active"),(t=this.getCueGroupElement(t))&&t.classList.remove("active")),(t=this.getCueElement(H))&&t.classList.add("active"),(t=this.getCueGroupElement(H))&&t.classList.add("active"),this.currentCueIndex=H,this.isHovered||
this.scrollElementToTop(H))}};
_.q.scrollElementToTop=function(D){D=this.getCueElement(D>=3?D-3:0);this.hostElement.scrollTop=Math.min(D.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.q.getCueElement=function(D){return _.Kg(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[D]+'"]')};
_.q.getCueGroupElement=function(D){return(D=this.getCueElement(D))&&D.parentElement?D.parentElement.parentElement:null};
_.q.onTap=function(D){var t=_.qy(D);D.target.classList.contains("cue")&&this.seekCueElement(t)};
_.q.onKeyPress=function(D){D.keyCode==13&&(D=_.dHV(D.target,null,"cue"))&&this.seekCueElement(D)};
_.q.seekCueElement=function(D){D=Number(D.getAttribute("start-offset"));_.ET(this.hostElement,"yt-transcript-player-seek",[D/1E3])};
_.q.onMouseEnter=function(){this.isHovered=!0};
_.q.onMouseLeave=function(){this.isHovered=!1};
RL.prototype.onMouseLeave=RL.prototype.onMouseLeave;RL.prototype.onMouseEnter=RL.prototype.onMouseEnter;RL.prototype.onKeyPress=RL.prototype.onKeyPress;RL.prototype.onTap=RL.prototype.onTap;RL.prototype.dataChanged=RL.prototype.dataChanged;RL.prototype.hideTimestampsChanged=RL.prototype.hideTimestampsChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],RL.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],RL.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],RL.prototype,"hideTimestamps",void 0);_.d([_.M(),_.x("design:type",Boolean)],RL.prototype,"isHovered",void 0);_.d([_.Os("hideTimestamps"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RL.prototype,"hideTimestampsChanged",null);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RL.prototype,"dataChanged",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],RL.prototype,"onTap",null);_.d([_.rx("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],RL.prototype,"onKeyPress",null);
_.d([_.rx("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RL.prototype,"onMouseEnter",null);_.d([_.rx("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],RL.prototype,"onMouseLeave",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],RL);
_.p(RL,"ytd-transcript-body-renderer",function(){if(red!==void 0)return red;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return red=D},{mode:1});var ONM;var uC=function(){var D=_.X.apply(this,arguments)||this;D.darkerPanels=_.r("web_watch_darker_panels");return D};
_.P(uC,_.X);uC.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],uC.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],uC.prototype,"darkerPanels",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],uC);
_.p(uC,"ytd-transcript-footer-renderer",function(){if(ONM!==void 0)return ONM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return ONM=D},{mode:1});var UcA;var oOM;var W0=function(){var D=_.X.apply(this,arguments)||this;D.systemIcons=_.r("kevlar_system_icons");D.showClearButton=!1;return D};
_.P(W0,_.X);_.q=W0.prototype;_.q.handleInput=function(D){var t=this;D.target.value.length?_.z1(this,"ytdTranscriptSearchBoxSearch",function(){t.emitSearchEvent(D)},500):(_.GwV(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=D.target.value.length>0};
_.q.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.q.handleClick=function(){var D,t=(D=this.data)==null?void 0:D.trackingParams;t&&_.YS(_.Pc(),t)};
_.q.handleClear=function(){_.GwV(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var D,t,H=(t=_.O((D=this.data)==null?void 0:D.clearButton,_.aj))==null?void 0:t.trackingParams;H&&_.YS(_.Pc(),H);this.clear()};
_.q.emitSearchEvent=function(D){_.Gf(this.hostElement,"yt-transcript-search-box-search",{query:D.target.value});var t,H;(D=(H=_.O((t=this.data)==null?void 0:t.searchButton,_.aj))==null?void 0:H.trackingParams)&&_.YS(_.Pc(),D)};
_.q.emitClearEvent=function(){_.Gf(this.hostElement,"yt-transcript-search-box-clear")};
_.ql.Object.defineProperties(W0.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Kg(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],W0.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],W0.prototype,"systemIcons",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],W0);
_.p(W0,"ytd-transcript-search-box-renderer",function(){if(oOM!==void 0)return oOM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return oOM=D},{mode:1});var Pzd;var nOU;var IL=function(){return _.X.apply(this,arguments)||this};
_.P(IL,_.X);IL.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var D,t;this.sectionHeaderAriaLabel=(D=this.data)==null?void 0:(t=D.accessibility)==null?void 0:t.accessibilityData.label}};
IL.prototype.fireSelectedEvent=function(D){_.Gf(this.hostElement,"ytd-transcript-section-header",{startMs:D})};
IL.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
IL.prototype.handleKeyPress=function(D){this.data&&D.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.ql.Object.defineProperties(IL.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var D,t;return(t=(D=this.data)==null?void 0:D.enableTappableTranscriptHeader)!=null?t:!1}}});
IL.prototype.dataChanged=IL.prototype.dataChanged;_.d([_.M(),_.x("design:type",Object)],IL.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],IL.prototype,"sectionHeaderAriaLabel",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],IL.prototype,"enableTappableTranscriptHeader",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],IL.prototype,"dataChanged",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],IL);
_.p(IL,"ytd-transcript-section-header-renderer",function(){if(nOU!==void 0)return nOU;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return nOU=D},{mode:1});var CzU;var mcw;var Qu=function(){var D=_.X.apply(this,arguments)||this;D.isEditMode=!1;D.touchCaptionsEnabled=!1;D.deleteCaptionCorrectionPopupCommand=null;D.voteCaptionCorrectionPopupCommand=null;D.roundedContainer=!0;D.mouseOver=!1;D.textChanged=!1;D.messages={suggest_correction:_.OT("suggest_correction",void 0,"Edit caption"),suggested_caption:_.OT("suggested_caption",void 0,"Suggested caption"),submit_correction:_.OT("submit_correction",void 0,"Submit for review"),cancel_correction:_.OT("cancel_correction",
void 0,"Cancel"),replay_segment:_.OT("replay_segment",void 0,"Re-play segment"),delete_correction:_.OT("delete_correction",void 0,"Delete correction")};D.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return D};
_.P(Qu,_.X);_.q=Qu.prototype;_.q.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)};
_.q.handleDelete=function(D){if(this.deleteCaptionCorrectionPopupCommand){var t=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);t&&this.ytdOpenPopupBehavior.openPopup(t);D.stopPropagation()}};
_.q.handleSubmit=function(D){if(this.data&&this.data.submitCaptionCorrectionCommand&&(D.stopPropagation(),this.textChanged)){var t;D=(t=_.O(this.data.submitCaptionCorrectionCommand,_.hvo))==null?void 0:t.params;t=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:D,correctionText:String(this.ironTextAreaElement.value),originalText:_.eo(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(t);this.isEditMode=!1}};
_.q.handleUpdateSegmentText=function(D){(D=_.O(D,wv7))&&D.targetId&&this.data&&D.targetId===this.data.targetId&&(D.userCorrection&&(this.editedText=D.userCorrection),D.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.eo(this.data.snippet)),D.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=D.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=D.voteCaptionCorrectionPopupCommand?
D.voteCaptionCorrectionPopupCommand:null,D.accessibility&&(this.segmentAriaLabel=D.accessibility.accessibilityData.label))};
_.q.handleCancel=function(D){this.isEditMode=!1;D.stopPropagation();this.logClientVe(159409)};
_.q.handleEditSegmentCommand=function(D){(D=_.O(D,a7M))&&D.targetId&&this.data&&D.targetId===this.data.targetId&&this.handleEdit()};
_.q.handleEditButtonClick=function(D){this.data&&(this.handleEdit(),D.stopPropagation())};
_.q.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var D;(D=this.ironTextAreaElement.textarea)==null||D.focus();this.logClientVe(159407)}};
_.q.handleMouseEnter=function(){this.mouseOver=!0};
_.q.handleMouseLeave=function(){this.mouseOver=!1};
_.q.handleReplay=function(D){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),D.stopPropagation(),this.logClientVe(159408))};
_.q.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()))};
_.q.handleKeypress=function(D){this.data&&(this.isEditMode?D.stopPropagation():this.isEnterPress(D)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(D)&&this.logClientVe(138758))};
_.q.handleTextboxClick=function(D){D.stopPropagation()};
_.q.handleTextboxKeydown=function(D){this.isControlEnterPress(D)?this.handleSubmit(D):D.key==="Escape"&&this.handleCancel(D)};
_.q.handleTextboxKeyup=function(){this.textChanged=_.eo(this.latestText)!==String(this.ironTextAreaElement.value)};
_.q.fireSelectedEvent=function(D){_.Gf(this.hostElement,"yt-transcript-segment-selected",{startMs:D})};
_.q.fireReplayEvent=function(D,t){_.Gf(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(D-100,0),endMs:t})};
_.q.fireEditEvent=function(D,t){_.Gf(this.hostElement,"yt-transcript-segment-edit",{startMs:D,endMs:t})};
_.q.isEnterPress=function(D){return D.key==="Enter"||D.code==="Enter"||D.code==="NumpadEnter"||D.keyCode===13?!0:!1};
_.q.isControlEnterPress=function(D){var t=D.key==="Enter"||D.code==="Enter"||D.code==="NumpadEnter"||D.keyCode===13;return(D.ctrlKey||D.metaKey)&&t};
_.q.isCopyPress=function(D){var t=D.ctrlKey;return D.key==="c"&&t};
_.q.logClick=function(){var D,t=(D=this.data)==null?void 0:D.trackingParams;t&&_.YS(_.Pc(),t)};
_.q.logClientVe=function(D){_.J1(_.Pc(),_.Nx(D))};
_.ql.Object.defineProperties(Qu.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}}});
Qu.prototype.handleMouseLeave=Qu.prototype.handleMouseLeave;Qu.prototype.handleMouseEnter=Qu.prototype.handleMouseEnter;Qu.prototype.dataChanged=Qu.prototype.dataChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Qu.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],Qu.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Qu.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Qu.prototype,"isEditMode",void 0);_.d([_.M(),_.x("design:type",Object)],Qu.prototype,"touchCaptionsEnabled",void 0);_.d([_.M(),_.x("design:type",Object)],Qu.prototype,"editedText",void 0);_.d([_.M(),_.x("design:type",Object)],Qu.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.d([_.M(),_.x("design:type",Object)],Qu.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.d([_.M(),_.x("design:type",String)],Qu.prototype,"segmentAriaLabel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Qu.prototype,"roundedContainer",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Qu.prototype,"mouseOver",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Qu.prototype,"textChanged",void 0);_.d([_.M(),_.x("design:type",Object)],Qu.prototype,"messages",void 0);
_.d([_.o5("#suggestion"),_.x("design:type",Object)],Qu.prototype,"ironTextAreaElement",void 0);_.d([_.m("data","editedText"),_.x("design:type",Object),_.x("design:paramtypes",[])],Qu.prototype,"latestText",null);_.d([_.m("touchCaptionsEnabled","isEditMode"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Qu.prototype,"enableEditButton",null);
_.d([_.m("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Qu.prototype,"enableUndoButton",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qu.prototype,"dataChanged",null);_.d([_.rx("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qu.prototype,"handleMouseEnter",null);
_.d([_.rx("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Qu.prototype,"handleMouseLeave",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],Qu);
_.p(Qu,"ytd-transcript-segment-renderer",function(){if(mcw!==void 0)return mcw;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return mcw=D},{mode:1});var yu=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};D.isError=!1;D.darkerPanels=_.r("web_watch_darker_panels");D.useParentMaxHeight=_.r("web_watch_transscript_use_parent_max_height");D.segmentOffsets=[];D.segmentIndex=-1;return D};
_.P(yu,_.X);_.q=yu.prototype;_.q.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"}}}}};
_.q.segmentsChanged=function(){this.updateOffsets()};
_.q.onYtPlayerTimeChanged=function(D){for(var t=this.segmentIndex,H=t;;){if(H>=0){var e=this.segmentOffsets[H].start;var V=this.segmentOffsets[H].isAutoScrollable}else e=-1,V=!0;var b=D+.5;if(!V){e=H+1<this.segmentOffsets.length?this.segmentOffsets[H+1].start:Infinity;if(b>=e){H+=1;continue}H=-1;break}if(b<e)e=H-1>=0&&this.segmentOffsets[H-1].isAutoScrollable,V=H===0||e?1:2,H-=V;else if(V=H+1<this.segmentOffsets.length&&this.segmentOffsets[H+1].isAutoScrollable?1:2,e=H+V<this.segmentOffsets.length?
this.segmentOffsets[H+V].start:Infinity,b>e)H+=V;else{if(H<0)break;H<this.segmentOffsets.length&&b>this.segmentOffsets[H].end&&(H=-1);break}}if(t!==H){if(t>=0){var a;(a=this.getSegmentElement(t))==null||a.classList.remove("active")}this.segmentIndex=H;if(!(H<0)){var w;(w=this.getSegmentElement(H))==null||w.classList.add("active");this.isHovered||this.scrollElementToTop(H)}}};
_.q.handleSegmentEdit=function(D){D.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=D.target,_.ET(this.hostElement,"yt-transcript-player-edit",[D.detail.startMs/1E3,D.detail.endMs/1E3]))};
_.q.handleSegmentSelected=function(D){_.ET(this.hostElement,"yt-transcript-player-seek",[D.detail.startMs/1E3])};
_.q.handleSegmentReplay=function(D){_.ET(this.hostElement,"yt-transcript-player-replay",[D.detail.startMs/1E3,D.detail.endMs/1E3])};
_.q.handleSectionHeaderSelected=function(D){_.ET(this.hostElement,"yt-transcript-player-seek",[D.detail.startMs/1E3])};
_.q.onMouseEnter=function(){this.isHovered=!0};
_.q.onMouseLeave=function(){this.isHovered=!1};
_.q.onRetryButtonClick=function(){_.Gf(this.hostElement,"transcript-retry-button-click")};
_.q.getSegmentElement=function(D){return _.Kg(this.hostElement).querySelector(":nth-child("+(D+1)+")")};
_.q.scrollElementToTop=function(D){D=this.getSegmentElement(D>=2?D-2:0);this.hostElement.scrollTop=Math.min(D.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.q.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(D){var t,H=(t=D.transcriptSegmentRenderer)!=null?t:D.transcriptSectionHeaderRenderer;return{start:Number(H.startMs)/1E3,end:Number(H.endMs)/1E3,isAutoScrollable:D.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.q.clearHighlightedSegments=function(){var D=_.Kg(this.hostElement);D=_.F(D.querySelectorAll("ytd-transcript-segment-renderer"));for(var t=D.next();!t.done;t=D.next())t.value.classList.remove("active")};
_.ql.Object.defineProperties(yu.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?void 0:D.searchResultSegments)||((t=this.data)==null?void 0:t.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
yu.prototype.onMouseLeave=yu.prototype.onMouseLeave;yu.prototype.onMouseEnter=yu.prototype.onMouseEnter;yu.prototype.handleSectionHeaderSelected=yu.prototype.handleSectionHeaderSelected;yu.prototype.handleSegmentReplay=yu.prototype.handleSegmentReplay;yu.prototype.handleSegmentSelected=yu.prototype.handleSegmentSelected;yu.prototype.handleSegmentEdit=yu.prototype.handleSegmentEdit;yu.prototype.segmentsChanged=yu.prototype.segmentsChanged;
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],yu.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],yu.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],yu.prototype,"isError",void 0);
_.d([_.M(),_.x("design:type",Object)],yu.prototype,"noResultLabel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yu.prototype,"darkerPanels",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yu.prototype,"useParentMaxHeight",void 0);_.d([_.m("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],yu.prototype,"segments",null);
_.d([_.m("segments","noResultLabel"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yu.prototype,"displayNoResults",null);_.d([_.Os("segments"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yu.prototype,"segmentsChanged",null);_.d([_.rx("yt-transcript-segment-edit"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],yu.prototype,"handleSegmentEdit",null);
_.d([_.rx("yt-transcript-segment-selected"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],yu.prototype,"handleSegmentSelected",null);_.d([_.rx("yt-transcript-segment-replay"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],yu.prototype,"handleSegmentReplay",null);
_.d([_.rx("ytd-transcript-section-header"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],yu.prototype,"handleSectionHeaderSelected",null);_.d([_.rx("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yu.prototype,"onMouseEnter",null);_.d([_.rx("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yu.prototype,"onMouseLeave",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],yu);
_.p(yu,"ytd-transcript-segment-list-renderer",function(){if(CzU!==void 0)return CzU;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return CzU=D},{mode:1});var B0=function(){var D=_.X.apply(this,arguments)||this;D.hideTimestamps=!!_.l_("hide-transcript-timestamps");D.isLoadingTranscripts=!1;D.darkerPanels=_.r("web_watch_darker_panels");D.isError=!1;D.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return D};
_.P(B0,_.X);_.q=B0.prototype;_.q.headerChanged=function(){var D,t;this.baseGetTranscriptsCommand=(t=_.O((D=this.data)==null?void 0:D.header,Z2Y))==null?void 0:t.onTextChangeCommand};
_.q.bodyChanged=function(){var D=this.getBodyRenderer();D&&(D.initialSegments&&(this.initialTranscriptsRenderer=D),D.noResultLabel&&(this.noResultLabel=D.noResultLabel),D.retryLabel&&(this.retryLabel=D.retryLabel))};
_.q.detached=function(){this.clearSearchBoxText()};
_.q.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.q.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"}}}};
_.q.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.q.fireSearch=function(D){var t=this;if(D){var H=D.detail.query;if(this.baseGetTranscriptsCommand){var e;D=(e=_.O(this.baseGetTranscriptsCommand,_.NKa))==null?void 0:e.params;var V;e=_.O((V=this.data)==null?void 0:V.footer,u7M);var b;if((V=(b=_.O(e==null?void 0:e.languageMenu,b2A))==null?void 0:b.subMenuItems)&&V.length>0&&(b=V.find(function(h){return h.selected}))){var a,w;
D=(a=b.continuation)==null?void 0:(w=a.reloadContinuationData)==null?void 0:w.continuation}a=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:D,searchQuery:H}});this.ytComponentBehavior.resolveCommand(a,{commandController:{onServerError:function(){t.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});PMl(this.ytContinuationHandlerBehavior,function(){return H===t.getCurrentSearchBoxText()})}}};
_.q.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.q.onRetryButtonClick=function(){this.isError=!1;var D={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:D}))};
_.q.hideTimestampsChanged=function(){_.Yg("hide-transcript-timestamps",this.hideTimestamps)};
_.q.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.q.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.q.handleSignalActionCopyTranscript=function(){var D=this,t=this.getBodyRenderer();t&&(t=((t==null?void 0:t.searchResultSegments)||(t==null?void 0:t.initialSegments)||[]).map(function(H){return _.O(H,hD1)}).filter(function(H){return!!H}).map(function(H){return{snippet:H.snippet||{runs:[{text:""}]},
startTimeText:H.startTimeText||{simpleText:""}}}).map(function(H){var e=(H.snippet.runs||[]).reduce(function(V,b){return V+b.text},"");
return D.hideTimestamps?e:H.startTimeText.simpleText+" "+e}).join("\n"),this.copyToClipboard(t))};
_.q.copyToClipboard=function(D){navigator.clipboard&&navigator.clipboard.writeText(D)};
_.q.getCurrentSearchBoxText=function(){var D;return(D=this.searchBox)==null?void 0:D.value};
_.q.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.q.getBodyRenderer=function(){var D;return _.O((D=this.data)==null?void 0:D.body,sxw)};
_.q.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.ql.Object.defineProperties(B0.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Kg(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
B0.prototype.hideTimestampsChanged=B0.prototype.hideTimestampsChanged;B0.prototype.searchCleared=B0.prototype.searchCleared;B0.prototype.fireSearch=B0.prototype.fireSearch;B0.prototype.onReloadContinuationFinish=B0.prototype.onReloadContinuationFinish;B0.prototype.bodyChanged=B0.prototype.bodyChanged;B0.prototype.headerChanged=B0.prototype.headerChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],B0.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],B0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.T_),_.x("design:type",Object)],B0.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],B0.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],B0.prototype,"hideTimestamps",void 0);
_.d([_.M(),_.x("design:type",Object)],B0.prototype,"isLoadingTranscripts",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],B0.prototype,"darkerPanels",void 0);_.d([_.M(),_.x("design:type",Object)],B0.prototype,"isError",void 0);_.d([_.Os("data.header"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B0.prototype,"headerChanged",null);
_.d([_.mx("data.body"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B0.prototype,"bodyChanged",null);_.d([_.rx("yt-reload-continuation-finish"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B0.prototype,"onReloadContinuationFinish",null);_.d([_.rx("yt-transcript-search-box-search"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],B0.prototype,"fireSearch",null);
_.d([_.rx("yt-transcript-search-box-clear"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B0.prototype,"searchCleared",null);_.d([_.Os("hideTimestamps"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],B0.prototype,"hideTimestampsChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],B0);
_.p(B0,"ytd-transcript-search-panel-renderer",function(){if(Pzd!==void 0)return Pzd;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Pzd=D},{mode:1});var zQ=function(){var D=_.X.apply(this,arguments)||this;D.player=null;D.playerPollJobId=0;return D};
_.P(zQ,_.X);_.q=zQ.prototype;_.q.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.q.onLoadReloadContinuation=function(D){_.r("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:D.target.data.continuation}}):(D={clickTrackingParams:D.target.data.clickTrackingParams,getTranscriptEndpoint:{params:D.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}}))};
_.q.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"}}}};
_.q.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.q.attached=function(){this.updatePlayerListening()};
_.q.detached=function(){this.updatePlayerListening()};
_.q.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.q.startPlayerListening=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return(t=_.FA())?H.yield(t.getPlayerPromise(),2):H.return();D.player=H.yieldResult;D.playerPollJobId=_.Jy.addLowPriorityJob(function(){D.getPlayerVideoProgress()},1E3);
D.player.addEventListener("onCueRangeEnter",function(e){D.onCueRangeEnter(e)});
D.player.addEventListener("onCueRangeExit",function(e){D.onCueRangeExit(e)});
D.player.addEventListener("onStateChange",function(e){D.onPlayerStateChange(e)});
D.player.addEventListener("SEEK_TO",function(e){D.onPlayerSeek(e)});
_.n2(H)})};
_.q.getPlayerVideoProgress=function(){var D=this;_.Jy.cancelJob(this.playerPollJobId);if(this.player){var t=this.player.getCurrentTime();_.ET(this.hostElement,"yt-player-time-changed",[t])}this.playerPollJobId=_.Jy.addLowPriorityJob(function(){D.getPlayerVideoProgress()},1E3)};
_.q.stopPlayerListening=function(){this.player=null;_.Jy.cancelJob(this.playerPollJobId)};
_.q.onPlayerStateChange=function(D){D===2&&this.removePendingCue()};
_.q.onPlayerSeek=function(D){var t;if(t=this.pendingReplayCueId)t=this.pendingReplayCueId,t=D===(_.r("web_transcript_cue_id_killswitch")?Number(t):Number(t.split("_")[1]));t||this.removePendingCue()};
_.q.onCueRangeEnter=function(D){IOY(D)&&(this.pendingReplayCueId=D)};
_.q.onCueRangeExit=function(D){IOY(D)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.q.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.q.onYtTranscriptPlayerSeek=function(D){this.player&&this.player.seekTo(D,!0)};
_.q.onYtTranscriptPlayerReplay=function(D,t){this.player&&(this.player.addCueRange(WiU(D),D,t),this.player.seekTo(D,!0),this.player.playVideo())};
_.q.onYtTranscriptPlayerEdit=function(D,t){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(WiU(D),D,t),this.player.seekTo(D,!0))};
zQ.prototype.onLoadReloadContinuation=zQ.prototype.onLoadReloadContinuation;zQ.prototype.panelContentVisibleChanged=zQ.prototype.panelContentVisibleChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],zQ.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],zQ.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],zQ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],zQ.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],zQ.prototype,"panelContentVisible",void 0);_.d([_.Os("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zQ.prototype,"panelContentVisibleChanged",null);
_.d([_.rx("yt-load-reload-continuation"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],zQ.prototype,"onLoadReloadContinuation",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],zQ);
_.p(zQ,"ytd-transcript-renderer",function(){if(UcA!==void 0)return UcA;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return UcA=D},{mode:1});var MTM;var SHN;var DF=function(){return _.X.apply(this,arguments)||this};
_.P(DF,_.X);DF.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.k0(this.hostElement,[this.data.clickCommand],this.hostElement))};
DF.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.kA)()+_.RU)+"px)"};
DF.prototype.updateShouldHideFromBinding=function(D){this.shouldHide=D.detail.value};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],DF.prototype,"rendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],DF.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],DF.prototype,"shouldHide",void 0);_.d([_.Y({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],DF);
_.p(DF,"ytd-ad-engagement-panel-banner-renderer",function(){if(SHN!==void 0)return SHN;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return SHN=D},{mode:_.Kz("kevlar_poly_si_batch_j070")?1:2});var X1N;var tI=function(){var D=_.X.apply(this,arguments)||this;D.modernPanels=_.r("kevlar_watch_modern_panels");D.buttonUpdate=_.r("web_modern_buttons");D.adsSemanticText=_.r("enable_ads_web_ep_buenos_aires_and_padding_fix");return D};
_.P(tI,_.X);tI.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.d([_.M(),_.x("design:type",Object)],tI.prototype,"data",void 0);_.d([_.M({computed:"computeHideDefaultAdBadge(data)"}),_.x("design:type",Boolean)],tI.prototype,"hideDefaultAdBadge",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],tI.prototype,"modernPanels",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],tI.prototype,"buttonUpdate",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],tI.prototype,"adsSemanticText",void 0);
_.d([_.Y({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],tI);
_.p(tI,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(X1N!==void 0)return X1N;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return X1N=D},{mode:1});var fll;var Hd=function(){var D=_.X.apply(this,arguments)||this;D.darkerPanels=_.r("web_watch_darker_panels");D.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");D.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");D.modernPanels=_.r("kevlar_watch_modern_panels");D.headerClickListener=function(t){D.onHeaderClick(t)};
D.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return D};
_.P(Hd,_.X);_.q=Hd.prototype;_.q.computeAdsInfoButton=function(){if(_.r("web_modern_buttons")){var D,t;return(t=_.O((D=this.data)==null?void 0:D.subtitleComplex,WdA))==null?void 0:t.adInfoRenderer}};
_.q.updateHeaderClickListener=function(){var D,t,H;((D=this.data)==null?0:D.navigationEndpoint)||((t=this.data)==null?0:t.onClickCommand)||_.O((H=this.data)==null?void 0:H.visibilityButton,_.w3)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.q.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}}}}}};
_.q.collapsedChanged=function(){var D;(D=this.data)!=null&&D.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.r("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.q.focus=function(D){var t=this;this.titleElement&&_.Jy.addJob(function(){_.Dx(t.titleElement,D)},0,500)};
_.q.computeTitleAriaLabel=function(D){var t=[];if(D.title){var H,e;t.push(this.ytRendererBehavior.getSimpleString(D.title)||((H=D.title.accessibility)==null?void 0:(e=H.accessibilityData)==null?void 0:e.label))}D.contextualInfo&&t.push(this.ytRendererBehavior.getSimpleString(D.contextualInfo));return t.join(" ")};
_.q.onHeaderClick=function(D){this.shouldTriggerHeaderClick(D)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.k0(this.hostElement,[this.data.onClickCommand],this.hostElement)):(D=this.getVisibilityToggleButton())&&D.click())};
_.q.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var D=_.O(this.data.visibilityButton,_.aj)||_.O(this.data.visibilityButton,_.w3);D&&this.ytRendererBehavior.logExplicitClick(D)}};
_.q.getVisibilityToggleButton=function(){var D=_.Kg(this.hostElement).querySelector("#visibility-button").firstElementChild;return(D==null?void 0:D.is)==="ytd-toggle-button-renderer"?D:null};
_.q.shouldTriggerHeaderClick=function(D){return!_.ed(_.bK(D),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.q.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(D){D=_.O(D,_.JAY);this.targetId&&(D==null?void 0:D.targetId)===this.targetId&&(D=D.navigationButton)&&this.set("data.navigationButton",D)};
_.ql.Object.defineProperties(Hd.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var D;return!!(((D=this.entity)==null?0:D.isActionButtonHidden)||this.hideActionButton)}}});
Hd.prototype.collapsedChanged=Hd.prototype.collapsedChanged;Hd.prototype.updateHeaderClickListener=Hd.prototype.updateHeaderClickListener;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Hd.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Hd.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.sx),_.x("design:type",Object)],Hd.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Hd.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],Hd.prototype,"targetId",void 0);_.d([_.M(),_.x("design:type",Boolean)],Hd.prototype,"collapsed",void 0);_.d([_.M(),_.x("design:type",Boolean)],Hd.prototype,"hideActionButton",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hd.prototype,"shortsPanel",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hd.prototype,"liveChatEngagementPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Hd.prototype,"learningChatEngagementPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Hd.prototype,"darkerPanels",void 0);_.d([_.o5("#title"),_.x("design:type",HTMLElement)],Hd.prototype,"titleElement",void 0);_.d([_.o5("#header"),_.x("design:type",HTMLElement)],Hd.prototype,"headerElement",void 0);
_.d([_.M({computed:"computeAdsInfoButton(data)"}),_.x("design:type",Object)],Hd.prototype,"adsInfoButton",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Hd.prototype,"enableSqueezebackPanels",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Hd.prototype,"enableAnchoredPanel",void 0);_.d([_.M({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(D,t){return _.jR(D.entities,"engagementPanelTitleHeaderEntity",t)}}),
_.x("design:type",Object)],Hd.prototype,"entity",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Hd.prototype,"modernPanels",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("targetId"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Hd.prototype,"adsSemanticText",null);_.d([_.Os("data","data.navigationEndpoint","data.onClickCommand"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hd.prototype,"updateHeaderClickListener",null);
_.d([_.mx("collapsed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Hd.prototype,"collapsedChanged",null);_.d([_.m("entity","hideActionButton"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Hd.prototype,"isActionButtonHidden",null);_.d([_.Y({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Hd);
_.p(Hd,"ytd-engagement-panel-title-header-renderer",function(){if(fll!==void 0)return fll;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return fll=D},{mode:1});var LgY;var eS=function(){return _.X.apply(this,arguments)||this};
_.P(eS,_.X);eS.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],eS.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],eS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],eS.prototype,"data",void 0);_.d([_.Y({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],eS);
_.p(eS,"ytd-macro-markers-info-item-renderer",function(){if(LgY!==void 0)return LgY;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return LgY=D},{mode:1});var AeM;var VE=function(D,t,H,e,V,b){_.mg.call(this);var a=this;this.JSC$22765_containerElement=D;this.hostElement=t;this.supportedSyncItems=H;this.syncEntityKey=e;this.options=V;this.renderLazyListItems=b;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;gOE(this);Je1(this);this.JSC$22765_scrollAnimation=new _.ka(function(w){D.scrollTop=w});
_.c1(this,this.JSC$22765_scrollAnimation);this.addOnDisposeCallback(function(){YHN(a,!1);a.activeItem&&a.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.P(VE,_.mg);var gOE=function(D){var t=_.Rj(_.qS().resolve(_.sg),function(H){return H.entities.markersEngagementPanelSyncEntity||{}},function(H,e){var V;
if(H[D.syncEntityKey]!==e[D.syncEntityKey]&&((V=H[D.syncEntityKey])==null?void 0:V.activeItemIndex)!==void 0)if(e=H[D.syncEntityKey].activeItemIndex,H=D.getItemByIndex(e)){if(llw(D,H),D.contentVisible)if(D.browsingMode){var b;((b=D.options)==null?void 0:b.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(b=vOh(D),H.offsetTop<D.JSC$22765_containerElement.clientHeight+D.JSC$22765_containerElement.scrollTop&&b&&!D.activeItemBelowSyncPosition&&YHN(D,!1));p1N(D)}else D.scrollToItem(H)}else _.Yw(new _.nZ("Could not find "+
D.supportedSyncItems+" sync child to set active.",e,D.JSC$22765_containerElement.querySelectorAll(D.supportedSyncItems).length))});
D.unsubscribeFromTimedMarkersListSyncEntity=t;D.addOnDisposeCallback(t);dcM(D)},dcM=function(D){var t=_.qS().resolve(_.sg);
t=_.EcR(t.getState(),D.syncEntityKey);(t==null?void 0:t.activeItemIndex)!==void 0&&(t=D.getItemByIndex(t.activeItemIndex))&&llw(D,t)},Je1=function(D){var t=new _.W5(D.onScroll,50,D);
_.c1(D,t);var H=function(){t.fire()};
D.JSC$22765_containerElement.addEventListener("scroll",H);D.addOnDisposeCallback(function(){D.JSC$22765_containerElement.removeEventListener("scroll",H)})};
VE.prototype.getItemByIndex=function(D){var t;(t=this.renderLazyListItems)==null||t.call(this,D);t=this.JSC$22765_containerElement.querySelectorAll(this.supportedSyncItems);if(t.length>D)return t[D]};
var llw=function(D,t){D.activeItem&&D.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));t.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));D.activeItem=t};
VE.prototype.scrollToItem=function(D){D=this.getScrollPositionForItem(D);this.JSC$22765_containerElement.scrollTop!==D&&this.JSC$22765_scrollAnimation.start(this.JSC$22765_containerElement.scrollTop,D,300)};
VE.prototype.getScrollPositionForItem=function(D){if(this.JSC$22765_containerElement.querySelectorAll(this.supportedSyncItems)[0]===D)return 0;var t,H=((t=this.options)==null?0:t.percentOffset)?this.JSC$22765_containerElement.clientHeight*this.options.percentOffset:0;D=_.dM(D).y+this.JSC$22765_containerElement.scrollTop-(_.dM(this.JSC$22765_containerElement).y+H);return Math.max(0,Math.min(D,this.JSC$22765_containerElement.scrollHeight-this.JSC$22765_containerElement.offsetHeight))};
VE.prototype.onScroll=function(){this.activeItemBelowSyncPosition=vOh(this);if(this.activeItem&&!this.JSC$22765_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22765_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var D;switch((D=this.options)==null?void 0:D.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":xcF(this,!Rt7(this));p1N(this);break;default:xcF(this,!0)}}};
var xcF=function(D,t){var H,e;_.Z(function(V){if(V.nextAddress==1){if(D.browsingMode)return V.return();D.browsingMode=!0;t&&D.hostElement.classList.add("browsing-mode");D.playerExitBrowsingModeListener=function(){YHN(D,!1)};
return V.yield(_.ki(),2)}H=V.yieldResult;(e=H)==null||e.addEventListener("SEEK_TO",D.playerExitBrowsingModeListener);_.n2(V)})},YHN=function(D,t){t=t===void 0?!0:t;
D.browsingMode&&(D.browsingMode=!1,D.hostElement.classList.remove("browsing-mode"),t&&D.scrollToItem(D.activeItem),usd(D))},usd=function(D){var t,H;
_.Z(function(e){if(e.nextAddress==1)return D.playerExitBrowsingModeListener?e.yield(_.ki(),3):e.jumpTo(0);t=e.yieldResult;(H=t)==null||H.removeEventListener("SEEK_TO",D.playerExitBrowsingModeListener);D.playerExitBrowsingModeListener=void 0;_.n2(e)})},p1N=function(D){var t;
((t=D.options)==null?void 0:t.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(Rt7(D)?D.hostElement.classList.remove("browsing-mode"):D.activeItem&&D.hostElement.classList.add("browsing-mode"))},vOh=function(D){if(!D.activeItem)return!1;
var t,H=((t=D.options)==null?0:t.percentOffset)?D.JSC$22765_containerElement.clientHeight*D.options.percentOffset:0;return D.activeItem.offsetTop>=D.JSC$22765_containerElement.scrollTop+H},Rt7=function(D){if(!D.activeItem)return!1;
var t=D.activeItem.offsetTop+14<=D.JSC$22765_containerElement.scrollTop+D.JSC$22765_containerElement.clientHeight;return D.activeItem.offsetTop+D.activeItem.clientHeight-14>=D.JSC$22765_containerElement.scrollTop&&t};
VE.prototype.panelContentVisibleChanged=function(D){(this.contentVisible=D)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var Wgh=function(D,t){D.syncEntityKey=t;var H;(H=D.unsubscribeFromTimedMarkersListSyncEntity)==null||H.call(D);gOE(D)},Ill=function(D,t){D.options=t};var bE=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return D};
_.P(bE,_.X);_.q=bE.prototype;_.q.detached=function(){var D;(D=this.scrollController)==null||D.dispose();this.scrollController=void 0};
_.q.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"}}}};
_.q.dataChanged=function(){var D=this;_.Vi(this,function(){if(D.scrollController){var t;(t=D.scrollController)==null||YHN(t,!1);var H,e,V;(e=D.scrollController)==null||Wgh(e,(V=(H=D.data)==null?void 0:H.syncModelEntityKey)!=null?V:"default-macro-markers-list-renderer-entity-key");var b,a,w;(w=D.scrollController)==null||Ill(w,{percentOffset:(b=D.data)==null?void 0:b.selectedItemAlignmentPercentOffset,floatingPillType:(a=D.data)==null?void 0:a.floatingPillType})}else{var h,K,N,k;D.scrollController=
new VE(D.contents,D.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(k=(h=D.data)==null?void 0:h.syncModelEntityKey)!=null?k:"default-macro-markers-list-renderer-entity-key",{percentOffset:(K=D.data)==null?void 0:K.selectedItemAlignmentPercentOffset,floatingPillType:(N=D.data)==null?void 0:N.floatingPillType},function(T){D.renderLazyListItems(T)})}D.scrollController.panelContentVisibleChanged(!!D.panelContentVisible)})};
_.q.computeButtonShape=function(){var D=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){D.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.q.renderLazyListItems=function(D){for(var t=this.contents.children,H=0,e=0;e<t.length;e++){var V=void 0;(V=t[e].ytLazyListBehavior)==null||V.fillRemainingListItems();var b=void 0,a=void 0;V=_.O((b=this.data)==null?void 0:(a=b.contents)==null?void 0:a[e],_.u5Q);a=b=void 0;if((b=V)==null?0:(a=b.contents)==null?0:a.length)H+=V.contents.length;if(H>=D)break}};
_.q.handleSetActivePanelItemAction=function(D){if((D=_.O(D,l1h))&&this.panelTargetId===D.panelTargetId){D=D.itemIndex;var t,H,e=(H=(t=this.data)==null?void 0:t.syncModelEntityKey)!=null?H:"default-macro-markers-list-renderer-entity-key",V;((V=this.syncEntity)==null?void 0:V.activeItemIndex)!==D&&this.ytdReduxBehavior.dispatch(_.nf("markersEngagementPanelSyncEntity",e,{key:e,activeItemIndex:D}))}};
_.q.onSyncClick=function(){var D;(D=this.scrollController)==null||YHN(D)};
_.q.panelContentVisibleChanged=function(){var D;(D=this.scrollController)==null||D.panelContentVisibleChanged(!!this.panelContentVisible)};
bE.prototype.panelContentVisibleChanged=bE.prototype.panelContentVisibleChanged;bE.prototype.dataChanged=bE.prototype.dataChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],bE.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],bE.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.sx),_.x("design:type",Object)],bE.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],bE.prototype,"data",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],bE.prototype,"useCustomColors",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],bE.prototype,"panelTargetId",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],bE.prototype,"panelContentVisible",void 0);
_.d([_.o5("#contents"),_.x("design:type",HTMLElement)],bE.prototype,"contents",void 0);_.d([_.M({selectorArgs:["data.syncModelEntityKey"],selector:_.EcR}),_.x("design:type",Object)],bE.prototype,"syncEntity",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bE.prototype,"dataChanged",null);
_.d([_.Os("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bE.prototype,"panelContentVisibleChanged",null);_.d([_.Y({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],bE);
_.p(bE,"ytd-macro-markers-list-renderer",function(){if(AeM!==void 0)return AeM;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return AeM=D},{mode:1});var QKM;var qv=function(){return _.X.apply(this,arguments)||this};
_.P(qv,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],qv.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],qv.prototype,"data",void 0);_.d([_.Y({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],qv);
_.p(qv,"ytd-error-corrections-section-item-renderer",function(){if(QKM!==void 0)return QKM;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return QKM=D},{mode:1});var yeA;var FB=function(){return _.X.apply(this,arguments)||this};
_.P(FB,_.X);FB.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],FB.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],FB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],FB.prototype,"data",void 0);_.d([_.Y({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],FB);
_.p(FB,"ytd-error-corrections-section-renderer",function(){if(yeA!==void 0)return yeA;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return yeA=D},{mode:1});var BVM;var a7=function(){return _.X.apply(this,arguments)||this};
_.P(a7,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],a7.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],a7.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],a7.prototype,"data",void 0);_.d([_.Y({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],a7);
_.p(a7,"ytd-topic-link-renderer",function(){if(BVM!==void 0)return BVM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return BVM=D},{mode:1});var ztM;var wC=function(){var D=_.X.apply(this,arguments)||this;D.modern=_.r("kevlar_modern_sd_v2");D.modernLockupV2=_.r("modernize_structured_description_playlist_lockups_v2");return D};
_.P(wC,_.X);wC.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"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],wC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],wC.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],wC.prototype,"modern",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],wC.prototype,"modernLockupV2",void 0);
_.d([_.Y({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],wC);
_.p(wC,"ytd-video-description-course-section-renderer",function(){if(ztM!==void 0)return ztM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ztM=D},{mode:1});var DpF;var ZF=function(){var D=_.X.apply(this,arguments)||this;D.modern=_.r("kevlar_modern_sd_v2");return D};
_.P(ZF,_.X);ZF.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"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ZF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ZF.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ZF.prototype,"modern",void 0);_.d([_.Y({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],ZF);
_.p(ZF,"ytd-video-description-files-section-renderer",function(){if(DpF!==void 0)return DpF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return DpF=D},{mode:1});var tjM;var s1=function(){return _.X.apply(this,arguments)||this};
_.P(s1,_.X);s1.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"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],s1.prototype,"data",void 0);_.d([_.Y({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],s1);
_.p(s1,"ytd-video-description-gaming-section-renderer",function(){if(tjM!==void 0)return tjM;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return tjM=D},{mode:1});var HRw;var hI=function(){var D=_.X.apply(this,arguments)||this;D.isExpanded=!1;return D};
_.P(hI,_.X);hI.prototype.computeHasDefaultMetadataEndpoint=function(D){var t;D=D==null?void 0:(t=D.defaultMetadata)==null?void 0:t.runs;return!(!D||D.length!==1||!D[0].navigationEndpoint)};
hI.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.ql.Object.defineProperties(hI.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],hI.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],hI.prototype,"isExpanded",void 0);_.d([_.M({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],hI.prototype,"hasDefaultMetadataEndpoint",void 0);
_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],hI.prototype,"isExpandable",null);_.d([_.m("data","isExpandable","isExpanded"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],hI.prototype,"showExpandedMetadata",null);_.d([_.Y({is:"ytd-info-row-renderer",disableElementRegistration:!0})],hI);
_.p(hI,"ytd-info-row-renderer",function(){if(HRw!==void 0)return HRw;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return HRw=D},{mode:1});var eeE;var Gl=function(){var D=_.X.apply(this,arguments)||this;D.currentIndex=0;D.supportComponentResize=!0;D.modern=_.r("kevlar_modern_sd_v2");D.JSC$22795_lastScrollContainerWidth=NaN;return D};
_.P(Gl,_.X);_.q=Gl.prototype;
_.q.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"}}}};
_.q.getItemsPath=function(){return"videoLockups"};
_.q.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.q.onIronResize=function(){this.updateVideoLockupStyles()};
_.q.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.q.updateVideoLockupStyles=function(){var D;this.JSC$22795_scrollContainer!==void 0&&(D=this.videoLockups)!=null&&D.length&&(D=this.JSC$22795_scrollContainer.clientWidth,D!==this.JSC$22795_lastScrollContainerWidth&&(this.JSC$22795_lastScrollContainerWidth=D,_.jZ(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(D*.8,415)+"px"}),_.Gf(this.hostElement,"iron-resize")))};
_.ql.Object.defineProperties(Gl.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var D=[],t;if((t=this.data)==null||!t.carouselLockups)return D;t=_.F(this.data.carouselLockups);for(var H=t.next();!H.done;H=t.next()){H=H.value;var e=void 0;((e=_.O(H,NNY))==null?0:e.videoLockup)&&D.push(_.O(H,NNY).videoLockup)}return D}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.videoLockups)==null||!D.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var D=[],t;if((t=this.data)==null||!t.carouselLockups)return D;var H;return(H=_.O(this.data.carouselLockups[this.scrollCount],NNY))==null?void 0:H.infoRows}}});
Gl.prototype.dataChanged=Gl.prototype.dataChanged;Gl.prototype.onIronResize=Gl.prototype.onIronResize;Gl.prototype.hiddenChanged=Gl.prototype.hiddenChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Gl.prototype,"componentBehavior",void 0);_.d([_.C(_.Xn.YtdHorizontalListBehavior),_.x("design:type",Object)],Gl.prototype,"ytdHorizontalListBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Gl.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Gl.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gl.prototype,"inlineStructuredDescription",void 0);_.d([_.M({value:2}),_.x("design:type",Number)],Gl.prototype,"initialCount",void 0);_.d([_.M(),_.x("design:type",Object)],Gl.prototype,"currentIndex",void 0);
_.d([_.M(),_.x("design:type",Number)],Gl.prototype,"scrollCount",void 0);_.d([_.M(),_.x("design:type",Object)],Gl.prototype,"supportComponentResize",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Gl.prototype,"contentHidden",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Gl.prototype,"modern",void 0);_.d([_.o5("#scroll-container"),_.x("design:type",HTMLDivElement)],Gl.prototype,"JSC$22795_scrollContainer",void 0);
_.d([_.Os("contentHidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gl.prototype,"hiddenChanged",null);_.d([_.m("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],Gl.prototype,"videoLockups",null);_.d([_.m("videoLockups"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Gl.prototype,"hasVideoLockups",null);
_.d([_.rx("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gl.prototype,"onIronResize",null);_.d([_.m("data","scrollCount"),_.x("design:type",Object),_.x("design:paramtypes",[])],Gl.prototype,"infoRows",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gl.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Gl);
_.p(Gl,"ytd-video-description-music-section-renderer",function(){if(eeE!==void 0)return eeE;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return eeE=D},{mode:_.Kz("kevlar_poly_si_batch_j081")?1:2});var VjM;var E1=function(){var D=_.X.apply(this,arguments)||this;D.modern=_.r("kevlar_modern_sd_v2");return D};
_.P(E1,_.X);E1.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],E1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.d([_.M({}),_.x("design:type",Object)],E1.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],E1.prototype,"modern",void 0);_.d([_.Y({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],E1);
_.p(E1,"ytd-video-description-transcript-section-renderer",function(){if(VjM!==void 0)return VjM;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return VjM=D},{mode:1});var bRY;_.hB(_.l(function(D){var t=_.rF(_.eO6,function(){return D.data().firstProviderLinkStatusEntityKey}),H=_.rF(_.eO6,function(){return D.data().secondProviderLinkStatusEntityKey}),e=function(){var V,b;
return((V=t())==null?void 0:V.linked)||((b=H())==null?void 0:b.linked)};
return _.G("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.G(_.$7,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return D.data().sectionTitle}}),_.G(_.$7,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return e()?D.data().connectedMessage:D.data().notConnectedMessage}}),_.G(_.E,{cond:e,
then:function(){return _.G(_.P5,{data:function(){return D.data().connectedButton}},{buttonViewModel:function(V){return _.G(_.JX,{data:V.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.G(_.E,{cond:function(){return!e()},
then:function(){return _.G(_.P5,{data:function(){return D.data().notConnectedButton}},{buttonViewModel:function(V){return _.G(_.JX,{data:V.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"jm"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){var t=D.data;return _.G("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.G("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.G(_.$7,{text:function(){return t().sectionTitle}})),_.G("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.G(_.$7,{text:function(){return t().bodyHeader}})),_.G("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.G(_.$7,{text:function(){return t().bodyText}})),_.G(_.E,{cond:function(){return t().attributionText},
then:function(){return _.G("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.G(_.$7,{text:function(){return t().attributionText}}))}}))},"km"),"how-this-was-made-section-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){return _.G("yt-video-description-youchat-section-view-model",{class:_.jQ("ytVideoDescriptionYouchatSectionViewModelHost")},_.G("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.G(_.$7,{text:function(){return D.data().sectionTitle}})),_.G("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.G(_.$7,{text:function(){return D.data().subHeaderText}})),_.G("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.G(_.JX,{data:function(){return _.O(D.data().primaryButton,
_.h1)}})))},"lm"),"yt-video-description-youchat-section-view-model",{props:{data:_.ij}});var Kt=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return D};
_.P(Kt,_.X);_.q=Kt.prototype;
_.q.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}}}}}};
_.q.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.q.dataChanged=function(){var D,t;this.hasDescriptionOnly=!(((D=this.data)==null?void 0:(t=D.items)==null?void 0:t.length)!==1||!_.O(this.data.items[0],dD))};
_.q.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.q.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.q.autoFocusDescription=function(){var D;((D=_.qS().resolve(_.by(_.S8)))==null?0:D.isKeyBoardInUse())&&this.description&&_.tp(this.description)};
_.q.resize=function(){if(_.r("kevlar_disable_sd_resize"))this.JSC$22804_cardList&&_.Gf(this.JSC$22804_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Gf(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Gf(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.q.scrollToSection=function(D){if(D=this.getSectionElement(D))_.ET(this.hostElement,"yt-scroll-to-watch-element",[D]),D.focus()};
_.q.getSectionElement=function(D){switch(D){case "infocards-item-section":var t;return(t=this.infocardsSection)!=null?t:null;case "transcript-item-section":var H;return(H=this.transcriptSection)!=null?H:null;case "how-this-was-made-section-item-section":var e;return(e=this.howThisWasMadeSection)!=null?e:null;case "files-item-section":var V;return(V=this.filesSection)!=null?V:null;default:return null}};
_.q.handleSetActiveItemAction=function(D){var t=_.O(D,l1h),H=t&&(t==null?void 0:t.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22804_cardList;if(t&&H){D=this.currentActiveChapter;var e=this.currentActiveProblem;t=H==null?void 0:H.getItemByIndex(t.itemIndex);var V=H=!0;t&&(t.active=!0,t.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(H=D!==t,V=!1,this.currentActiveChapter=t):(t==null?void 0:t.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(H=!1,V=e!==t,this.currentActiveProblem=t));D&&H&&(D.active=!1);e&&V&&(e.active=!1)}};
_.ql.Object.defineProperties(Kt.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.r("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Kt.prototype.onYtExpanderMoreTapped=Kt.prototype.onYtExpanderMoreTapped;Kt.prototype.onHiddenChanged=Kt.prototype.onHiddenChanged;Kt.prototype.dataChanged=Kt.prototype.dataChanged;Kt.prototype.panelContentVisibleChanged=Kt.prototype.panelContentVisibleChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Kt.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Kt.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.QI),_.x("design:type",Object)],Kt.prototype,"ironResizableBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Kt.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],Kt.prototype,"panelContentVisible",void 0);_.d([_.M(),_.x("design:type",Boolean)],Kt.prototype,"hasDescriptionOnly",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Kt.prototype,"inlineStructuredDescription",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Kt.prototype,"hidden",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Kt.prototype,"shortsPanel",void 0);_.d([_.M(),_.x("design:type",Object)],Kt.prototype,"videoSummary",void 0);_.d([_.M(),_.x("design:type",Object)],Kt.prototype,"merchShelf",void 0);
_.d([_.m("videoSummary"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Kt.prototype,"showVideoSummary",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Kt.prototype,"engagementPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Kt.prototype,"watchWhileSdp",void 0);_.d([_.o5("ytd-expandable-video-description-body-renderer"),_.x("design:type",Object)],Kt.prototype,"description",void 0);
_.d([_.o5("ytd-horizontal-card-list-renderer"),_.x("design:type",Object)],Kt.prototype,"JSC$22804_cardList",void 0);_.d([_.o5("ytd-horizontal-card-list-renderer[center-items]"),_.x("design:type",Object)],Kt.prototype,"problemWalkthroughCardList",void 0);_.d([_.o5("ytd-shelf-renderer"),_.x("design:type",Object)],Kt.prototype,"shelfSection",void 0);_.d([_.o5("ytd-video-description-music-section-renderer"),_.x("design:type",Object)],Kt.prototype,"musicMetadataSection",void 0);
_.d([_.o5("ytd-video-description-infocards-section-renderer"),_.x("design:type",Object)],Kt.prototype,"infocardsSection",void 0);_.d([_.o5("ytd-video-description-transcript-section-renderer"),_.x("design:type",Object)],Kt.prototype,"transcriptSection",void 0);_.d([_.o5("how-this-was-made-section-view-model"),_.x("design:type",Object)],Kt.prototype,"howThisWasMadeSection",void 0);_.d([_.o5("ytd-video-description-files-section-renderer"),_.x("design:type",Object)],Kt.prototype,"filesSection",void 0);
_.d([_.Os("panelContentVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kt.prototype,"panelContentVisibleChanged",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kt.prototype,"dataChanged",null);_.d([_.Os("hidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kt.prototype,"onHiddenChanged",null);
_.d([_.rx("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Kt.prototype,"onYtExpanderMoreTapped",null);_.d([_.Y({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Kt);
_.p(Kt,"ytd-structured-description-content-renderer",function(){if(bRY!==void 0)return bRY;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return bRY=D},{mode:2});var qPN;var FGM;var Nv=function(){return _.X.apply(this,arguments)||this};
_.P(Nv,_.X);Nv.prototype.computeAriaLabel=function(D){var t,H;return(D==null?void 0:(t=D.accessibility)==null?void 0:(H=t.accessibilityData)==null?void 0:H.label)||_.OT("LOADING",void 0,"Loading")};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Nv.prototype,"data",void 0);_.d([_.M({computed:"computeAriaLabel(data)"}),_.x("design:type",String)],Nv.prototype,"ariaLabel",void 0);_.d([_.xL({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],Nv);
_.p(Nv,"yt-content-loading-renderer",function(){if(FGM===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;qPN===void 0&&(qPN=document.createElement("template"));var e=qPN;H.call(t,e.content.cloneNode(!0),D.content.firstChild);FGM=D}D=FGM;return D},{mode:_.Kz("kevlar_poly_si_batch_j043")?1:2});_.hB(_.l(function(D){var t=_.F(_.KR(!1,void 0,"OZMtVb")),H=t.next().value,e=t.next().value;t=_.F(_.KR(!1,void 0,"qWERsf"));var V=t.next().value,b=t.next().value;_.XH(function(){var h=_.O(D.data().collaboratePlaylistCollaborationSetting,qkw);h&&e(h.switchedOnByDefault);var K=_.O(D.data().allowNewCollaboratorsPlaylistCollaborationSetting,qkw);K&&b(K.switchedOnByDefault);if(!h&&!K||!h&&D.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")e(!0),b(!0)});
var a=function(h){e(h);b(h);var K=D.data().playlistCollaborationEntityKey||"";var N=_.V_().getState();(N=_.jR(N.entities,"playlistCollaborationEntity",K))&&(N==null?void 0:N.isCollaborative)===h||_.V_().dispatch(_.nf("playlistCollaborationEntity",K,Object.assign({},N,{isCollaborative:h})))},w=function(h){b(h)};
return _.G("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.G("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.G(_.P5,{data:function(){return D.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(h){return _.G(_.hVB,{data:h.data,
onSwitch:a})}})),_.G(_.E,{cond:H,
then:function(){return _.G(_.FH,null,_.G("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.G(_.P5,{data:function(){return D.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(h){return _.G(_.hVB,{data:h.data,
onSwitch:w,overrideDisabled:!1})}})),_.G(_.E,{cond:V,
then:function(){return _.G("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.G(_.P5,{data:function(){return D.data().copyLinkButton}},{buttonViewModel:_.JX}))}}),_.G("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.G(_.P5,{data:function(){return D.data().playlistCollaborators}},{contentListItemViewModel:_.uYY})))}}))},"mm"),"playlist-collaboration-view-model",{props:{data:_.ij}});var a_l=_.l(function(D){var t=D.data;var H=D.customCommandResolver;return _.G(_.FH,null,_.G("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.G(_.P5,{data:function(){return t().adAvatar}},{adAvatarViewModel:function(e){return _.G(_.AvV,{data:e.data,
customCommandResolver:H})}})),_.G("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.G(_.E,{cond:function(){return t().headline},
then:function(e){return _.G(_.$7,{text:e,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.G("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.G(_.P5,{data:function(){return t().adBadge}},{adBadgeViewModel:function(e){return _.G(_.L0,{data:e.data,
hasDot:function(){return t().primaryDetailsLine!==void 0},
customCommandResolver:H,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.G(_.P5,{data:function(){return t().primaryDetailsLine}},{adDetailsLineViewModel:function(e){return _.G(_.A9,{data:e.data,
customCommandResolver:H,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"nm"),wI1=_.l(function(D){var t=D.data;
var H=D.customCommandResolver;return _.G("ad-avatar-lockup-view-model",{class:function(){var e;return((e=t().interaction)==null?0:e.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.FI(_.wv({visibilityCallback:function(e){var V,b=(V=t().interaction)==null?void 0:V.onFirstVisible;e&&b&&_.IQ(b)},
showOption:_.n0}),_.dF(function(){return t().interaction},H)),
"aria-label":function(){var e,V;return(e=t().interaction)==null?void 0:(V=e.accessibility)==null?void 0:V.label}},_.G(_.CY,null,_.G(_.oD,{when:function(){return t().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.G(a_l,{data:t,
customCommandResolver:H})}),_.G(_.Pn,null,function(){return null})))},"om");_.hB(_.l(function(D){var t=D.data;var H=D.panelContentVisibility;D=_.wv({visibilityCallback:function(b){var a,w=(a=t().interaction)==null?void 0:a.onFirstVisible;b&&w&&_.IQ(w)},
showOption:_.n0});var e=_.dF(function(){return t().interaction},QvA);
_.LR(function(){var b,a;if(a=_.RD("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var w;a=(w=a())==null?void 0:w.onLayoutVisibleCallback}else a=null;(b=a)==null||b()},"pm");
var V=function(){return H()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.G("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.FI(D,e)},_.G("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.G("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.G(_.E,{cond:_.Rs8("(min-width: "+((0,_.kA)()+_.RU)+"px) or (max-width: 600px)"),then:function(){return _.G(_.P5,{data:function(){return t().adImage}},{adImageViewModel:function(b){return _.G(_.dA,{data:b.data,
targetHeight:80,customCommandResolver:QvA})}})}})),_.G("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.G("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.G(_.P5,{data:function(){return t().adAvatarLockup}},{adAvatarLockupViewModel:function(b){return _.G(wI1,{data:b.data,
customCommandResolver:QvA})}})),_.G(_.E,{cond:V,
then:function(){return _.G(_.P5,{data:function(){return t().adButton}},{adButtonViewModel:function(b){return _.G(_.m8,{data:b.data,
customCommandResolver:QvA})}})},
else:function(){return _.G(_.P5,{data:function(){return t().menu}},{buttonViewModel:_.JX})}}),_.G("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.G(_.P5,{data:function(){var b=_.O(t().toggleButton,_.Ez);
return{toggleButtonViewModel:Object.assign({},b,{isTogglingDisabled:!0,isToggled:V()})}}},{toggleButtonViewModel:_.VC})))))},"qm"),"panel-ad-header-image-lockup-view-model",{props:{data:_.ij,
panelContentVisibility:_.ij}});_.hB(_.l(function(D){var t=function(){return _.O(D.data().inputComposerViewModel,FuU)},H=function(){var g;
return((g=t())==null?void 0:g.youchatPendingResponseEntityKey)||""},e=_.rF(_.kvg,H),V=function(){var g;
return!((g=e())==null||!g.isPendingResponse)},b=_.F(_.KR(!0,void 0,"kExGAc")),a=b.next().value,w=b.next().value,h=function(){return t().sectionTargetId||"youchat_messages_section"};
b=_.ep("yt-chat-input-view-model");var K=_.DY("textarea"),N=_.rF(gQY,"chat_input_view_model_state"),k=JFU(),T=function(){var g;return!((g=N())==null||!g.value)},c=function(){return D.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},U=function(g){_.EP(function(){_.UI.remove(g);
k(!1);var Q;if(c()&&((Q=t())==null?0:Q.welcomeFeatureContinuation)){var u;((u=t())==null?0:u.setPendingResponseOnWelcome)&&_.TDO(H())(!0);Q={continuationCommand:{token:t().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};u={inputComposerFormData:{clientMessageId:"youchat-nav-"+Date.now(),pageContext:L()}};_.RQ(Q,{form:{formData:u}})}})},S=_.dm(_.uO.currentPageSubTypeSelector),L=function(){if(_.r("enable_ai_companion")){var g=_.qS().resolve(_.by(_.AAi));
switch(S()){case "watch":var Q,u;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(Q=_.Tm())==null?void 0:(u=Q.getVideoData())==null?void 0:u.video_id};case "search":var R,I;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(R=g==null?void 0:CMM())!=null?R:[],entityId:(I=(new URLSearchParams(window.location.search)).get("search_query"))!=null?I:void 0};case "companion-canvas":var tT;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(tT=g==null?void 0:CMM())!=null?tT:[]}}}};
_.XH(function(){var g;if(!T()&&((g=t())==null?0:g.welcomeFeatureContinuation)){var Q;((Q=t())==null?0:Q.setPendingResponseOnWelcome)&&_.TDO(H())(!0);g={continuationCommand:{token:t().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var u;Q=String(Math.floor(((u=_.Tm())==null?void 0:u.getCurrentTime())||0)*1E3);u={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:Q}};_.RQ(g,{form:{formData:u}});k(!0)}var R=h(),I;(I=_.qS().resolve(_.by(_.yN)))==null||
I.addEventListener("yt-navigate-start",function(){_.r("enable_ai_companion")?U(R):(_.UI.remove(R),k(!1))},{once:_.r("enable_ai_companion")?!c():!0})});
var J=function(){var g=K.value.value;K.value.value="";yFU(K.value);var Q,u=((Q=t())==null?void 0:Q.enableGradientColorBg)||!1;Q=B4M(h(),g,u);_.RQ(Q);var R=_.TDO(H()),I;_.IQ(((I=t())==null?void 0:I.onSubmitCommand)||{});R(!0);var tT;I=String(Math.floor(((tT=_.Tm())==null?void 0:tT.getCurrentTime())||0)*1E3);var ZV;tT={continuationCommand:{token:(ZV=t())==null?void 0:ZV.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};g={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:g,
playerOffsetMs:I,pageContext:L()}};_.RQ(tT,{form:{formData:g},commandController:{onSuccess:function(){R(!1)},
onServerError:function(){var ED=h();_.RQ({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:ED}}]}}});R(!1)}}})};
return _.G("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:b},_.G("div",{class:"chatInputViewModelChatInputWrapper"},_.G("form",{class:"chatInputViewModelChatInputForm"},_.G("textarea",{class:"chatInputViewModelChatInput",el:K,"on:keydown":_.$X(function(g){var Q=V()||!1;yFU(K.value);Q||g.key!=="Enter"||g.shiftKey||(g.preventDefault(),J());return!1}),
"on:keyup":_.$X(function(){w(K.value.value.length===0);return!1}),
placeholder:function(){var g,Q;var u=_.O((Q=t())==null?void 0:Q.inputFormField,ghU);return u==null?void 0:(g=u.contentProperties)==null?void 0:g.placeholderText},
rows:1}),_.G(_.JX,{data:function(){return _.O(D.data().sendButton,_.h1)},
onClick:function(g){g.preventDefault();J();w(K.value.value.length===0)},
buttonOverrides:function(){return{disabled:a()||V()}}})),_.G(_.$7,{className:"chatInputViewModelChatDisclaimer",
text:function(){var g;return(g=_.O(D.data().disclaimer,_.Wef))==null?void 0:g.text}})))},"rm"),"yt-chat-input-view-model",{props:{data:_.ij}});var ZRM=["engagement-panel-clip-create","engagement-panel-clip-view"],sZM=0,kF=function(){var D=_.X.apply(this,arguments)||this;var t;D.headerData=(t=D.data)==null?void 0:t.header;D.darkerPanels=_.r("web_watch_darker_panels");D.matchContentTheme=_.r("web_watch_panel_content_match_theme");D.disableAutoFill=!1;D.isFullscreen=!1;D.isTheaterMode=!1;D.modernPanels=_.r("kevlar_watch_modern_panels");D.liveChatReplyPanel=!1;D.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");D.disableBackdropFilter=
_.r("web_disable_backdrop_filter");D.isPersistentPanel=!1;D.trackEngagementPanelVisibility=_.r("web_watch_track_engagement_panel_visibility");D.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 D};
_.P(kF,_.X);_.q=kF.prototype;
_.q.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(D){var t;return(D==null?void 0:(t=D.webComponentHint)==null?void 0:t.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},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"}}}};
_.q.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var D;if((D=this.hostElement.parentElement)==null?0:D.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.q.detached=function(){this.updateTheaterDisablement()};
_.q.showPanel=function(){var D=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Jy.addJob(function(){D.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.q.maybeScrollToItemSection=function(D){var t=this,H,e=D==null?void 0:(H=D.sectionListEngagementPanelExtras)==null?void 0:H.scrollToItemSectionIdentifier;e&&_.Jy.addJob(function(){var V;(V=t.sectionListRendererElement)==null||V.scrollToItemSection(e)},8)};
_.q.hidePanel=function(){var D=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Jy.addJob(function(){D.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.q.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.q.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.q.updatePanel=function(D,t,H,e){var V=this;if((D=D==null?void 0:D.engagementPanelSectionListRenderer)||e){if(D){e=D.header;var b=D.content,a=D.footer;(D=D.targetId)&&this.set("data.targetId",D);e&&this.set("data.header",e);b&&this.set("data.content",b);a&&this.set("data.footer",a)}else e&&(D=e.content,b=e.secondaryHeaderContent,(e=e.targetId)&&this.set("data.targetId",e),D&&this.set("data.content",D),b&&(this.secondaryHeaderData=b));this.updateChildVisibilityProperties();if(t){var w;_.r("kevlar_update_panel_focus_scroll_killswitch")||
(w={preventScroll:!0});this.focus(w)}_.Vi(this,function(){_.Gf(V.hostElement,"yt-refit");V.maybeScrollToItemSection(H)})}};
_.q.computeHeaderData=function(){var D,t=(0,_.J$.unsafeClone)((D=this.data)==null?void 0:D.header);if(t){D=new _.NM(Object.keys(t)[0]);var H=_.O(t,D),e=_.O(this.secondaryHeaderData,D);e&&_.YP(t,D,Object.assign({},e,H))}return t};
_.q.getReloadContinuation=function(){var D,t,H,e=_.F(((D=this.data)==null?void 0:(t=D.content)==null?void 0:(H=t.sectionListRenderer)==null?void 0:H.continuations)||[]);for(D=e.next();!D.done;D=e.next())if(D=D.value,D.reloadContinuationData)return D.reloadContinuationData.continuation};
_.q.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var D;((D=this.data)==null?0:D.targetId)&&(D=this.contentElement.firstElementChild)&&D.setAttribute("panel-target-id",this.data.targetId)};
_.q.forwardPopupClosedToFlowRootRenderer=function(){var D=_.Kg(this.hostElement).querySelector("ytd-flow-root-renderer");if(D)D.onPopupClosed()};
_.q.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var D;if(!ZRM.includes((D=this.theaterDisablementPanelIdentifier)!=null?D:""))if(D=_.r("web_watch_imax_theater_mode")&&this.isTheaterMode,D=_.r("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||D,_.r("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||D){var t;this.visibility=(t=this.data)==null?void 0:t.visibility;var H;this.trackEngagementPanelVisibility&&((H=this.data)==null?void 0:H.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var e,V,b,a;this.contentEmpty=!!(((e=this.data)==null?0:(V=e.content)==null?0:V.structuredDescriptionContentRenderer)&&Object.keys((b=this.data)==null?void 0:(a=b.content)==null?void 0:
a.structuredDescriptionContentRenderer).length===0);(t=_.qS().resolve(_.tr))&&t.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.q.isTheaterModeChanged=function(){_.r("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.q.isFullscreenChanged=function(){_.r("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.q.focus=function(D){if(this.header)this.header.focus(D);else{var t;(t=_.Kg(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||t.focus(D)}};
_.q.visibilityChanged=function(){if(!_.r("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var D=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",H=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",e=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",V=e||!this.lastVisibility,b,a,w,h=((b=this.data)==null?void 0:(a=b.identifier)==null?void 0:
a.tag)||((w=this.data)==null?void 0:w.panelIdentifier);if(D&&V){var K;((K=this.data)==null?0:K.onShowCommands)&&_.k0(this.hostElement,this.data.onShowCommands,this.hostElement);h&&_.b_().dispatch(_.hV({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:h}}))}else if(t&&H){var N;((N=this.data)==null?0:N.onHideCommands)&&_.k0(this.hostElement,this.data.onHideCommands,this.hostElement);h&&_.b_().dispatch(_.hV({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:h}}))}D&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*sZM++));_.r("kevlar_watch_focus_on_engagement_panels")&&D&&e&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.q.notifyVisibilityChanged=function(D){var t;_.Kl(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,D,(t=this.data)==null?void 0:t.targetId])};
_.q.updateTheaterDisablement=function(){if(!_.r("kevlar_watch_theater_disablement_killswitch")){var D=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&ZRM.includes(D)&&!_.r("watch_next_grid_ignore_disallowed_panels")){var t=_.li(_.b_().getState()),H=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";D!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():H?(this.originalTheaterState===void 0&&(this.originalTheaterState=t,this.theaterDisablementPanelIdentifier=
D),t&&_.ET(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.q.clearTheaterDisablement=function(){_.ET(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.q.updateChildVisibilityProperties=function(){this.hostElement||_.r("kevlar_panel_property_init_killswitch")||this._enableProperties();var D=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=D);var t,H=(t=this.headerElement)==null?void 0:t.firstElementChild;if(H&&!this.adHeaderImageLockupViewModel){t=D==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";H.collapsed=t;H=_.Kg(H).querySelector("#visibility-button");if(!H)return;(H=H.firstElementChild)&&
H.polymerController.is==="ytd-toggle-button-renderer"&&H.polymerController.data.isToggled!==t&&H.polymerController.set("data.isToggled",t)}var e;if(t=(e=this.contentElement)==null?void 0:e.firstElementChild)if(D&&D!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")t.removeAttribute("panel-content-visible");else{t.setAttribute("panel-content-visible","");var V;(V=t.markDirty)==null||V.call(t)}};
_.q.onYtChangeEngagementPanelVisibilityAction=function(D){var t=this,H,e=(H=this.data)==null?void 0:H.targetId,V,b,a;H=((V=this.data)==null?void 0:(b=V.identifier)==null?void 0:b.tag)||((a=this.data)==null?void 0:a.panelIdentifier);var w=_.O(D,_.ixo),h;D=e&&(w==null?void 0:w.targetId)===e||H&&(w==null?void 0:(h=w.panelIdentifier)==null?void 0:h.tag)===H;this.dialog&&D&&(w==null?void 0:w.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(e==="engagement-panel-comments-section"?_.ET(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.ET(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",H]));!_.r("kevlar_use_engagement_panel_management_component")&&D&&(e=w.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!e?_.Jy.addJob(function(){t.visibility=w.visibility},2,this.hideDelayMs):this.visibility=w.visibility,w.visibility&&this.notifyVisibilityChanged(w.visibility))};
_.q.onYtScrollToEngagementPanelCommand=function(D){var t,H=(t=this.data)==null?void 0:t.targetId,e,V,b;t=((e=this.data)==null?void 0:(V=e.identifier)==null?void 0:V.tag)||((b=this.data)==null?void 0:b.panelIdentifier);D=_.O(D,_.fDm);var a;(H&&(D==null?void 0:D.targetId)===H||t&&(D==null?void 0:(a=D.panelIdentifier)==null?void 0:a.tag)===t)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.ET(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.q.attachVEs=function(D){var t,H;(D==null?0:(t=D.content)==null?0:(H=t.productListRenderer)==null?0:H.trackingParams)&&_.Pc().graftServerVe(D.content.productListRenderer.trackingParams);var e,V;(D==null?0:(e=D.content)==null?0:(V=e.transcriptRenderer)==null?0:V.trackingParams)&&_.Pc().graftServerVe(D.content.transcriptRenderer.trackingParams)};
_.q.onYtUpdateEngagementPanelAction=function(D){var t,H=(t=this.data)==null?void 0:t.targetId;D=_.O(D,pUl);H&&(D==null?void 0:D.targetId)===H&&(this.updatePanel({engagementPanelSectionListRenderer:{header:D==null?void 0:D.header,content:D==null?void 0:D.content}},!1),this.attachVEs(D))};
_.q.onYtShowEngagementPanelScrimAction=function(D){var t,H=(t=this.data)==null?void 0:t.targetId;D=_.O(D,vhF);H&&(D==null?void 0:D.engagementPanelTargetId)===H&&(this.scrimmed=!0)};
_.q.onYtHideEngagementPanelScrimAction=function(D){var t,H=(t=this.data)==null?void 0:t.targetId;D=_.O(D,YYw);H&&(D==null?void 0:D.engagementPanelTargetId)===H&&(this.scrimmed=!1)};
_.q.getIdentifier=function(){var D,t,H;return((D=this.data)==null?void 0:D.panelIdentifier)||((t=this.data)==null?void 0:(H=t.identifier)==null?void 0:H.tag)};
_.q.getSurface=function(){var D,t;return(D=this.data)==null?void 0:(t=D.identifier)==null?void 0:t.surface};
_.ql.Object.defineProperties(kF.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var D=this.getIdentifier();return D==="engagement-panel-youchat"||D==="PAyouchat"}}});
kF.prototype.visibilityChanged=kF.prototype.visibilityChanged;kF.prototype.isFullscreenChanged=kF.prototype.isFullscreenChanged;kF.prototype.isTheaterModeChanged=kF.prototype.isTheaterModeChanged;kF.prototype.dataChanged=kF.prototype.dataChanged;kF.prototype.forwardPopupClosedToFlowRootRenderer=kF.prototype.forwardPopupClosedToFlowRootRenderer;kF.prototype.onYtRendererstamperFinished=kF.prototype.onYtRendererstamperFinished;
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],kF.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],kF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],kF.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],kF.prototype,"ytEventForwardingBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],kF.prototype,"data",void 0);
_.d([_.M({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.x("design:type",Object)],kF.prototype,"headerData",void 0);_.d([_.M(),_.x("design:type",Object)],kF.prototype,"secondaryHeaderData",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kF.prototype,"visibility",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],kF.prototype,"contentEmpty",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],kF.prototype,"scrimmed",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],kF.prototype,"dialog",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],kF.prototype,"dropdown",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kF.prototype,"darkerPanels",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kF.prototype,"matchContentTheme",void 0);_.d([_.M(),_.x("design:type",Object)],kF.prototype,"disableAutoFill",void 0);
_.d([_.M({reflectToAttribute:!0,value:_.r("optimal_reading_width_comments_ep")}),_.x("design:type",Boolean)],kF.prototype,"optimalReadingWidthComments",void 0);_.d([_.M(),_.x("design:type",Number)],kF.prototype,"hideDelayMs",void 0);_.d([_.M({selector:_.vZ,reflectToAttribute:!0}),_.x("design:type",Object)],kF.prototype,"isFullscreen",void 0);_.d([_.M({selector:_.li,reflectToAttribute:!0}),_.x("design:type",Object)],kF.prototype,"isTheaterMode",void 0);
_.d([_.M(),_.x("design:type",Number)],kF.prototype,"showDelayMs",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data.targetId"),_.x("design:type",Object),_.x("design:paramtypes",[])],kF.prototype,"targetId",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],kF.prototype,"webSize",null);_.d([_.M(),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],kF.prototype,"hideFooterBorder",null);
_.d([_.M(),_.x("design:type",Object)],kF.prototype,"isWatch",void 0);_.d([_.M(),_.x("design:type",Object)],kF.prototype,"originalTheaterState",void 0);_.d([_.M(),_.x("design:type",Object)],kF.prototype,"theaterDisablementPanelIdentifier",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kF.prototype,"modernPanels",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],kF.prototype,"isWatchWhilePanel",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],kF.prototype,"shortsPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],kF.prototype,"liveChatEngagementPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],kF.prototype,"learningChatEngagementPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kF.prototype,"liveChatReplyPanel",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kF.prototype,"enableAnchoredPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kF.prototype,"disableBackdropFilter",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kF.prototype,"isPersistentPanel",void 0);_.d([_.M(),_.x("design:type",Object)],kF.prototype,"trackEngagementPanelVisibility",void 0);_.d([_.o5("#header"),_.x("design:type",HTMLElement)],kF.prototype,"headerElement",void 0);
_.d([_.o5("#header > *"),_.x("design:type",HTMLElement)],kF.prototype,"header",void 0);_.d([_.o5("ytd-section-list-renderer"),_.x("design:type",Object)],kF.prototype,"sectionListRendererElement",void 0);_.d([_.o5("panel-ad-header-image-lockup-view-model"),_.x("design:type",HTMLElement)],kF.prototype,"adHeaderImageLockupViewModel",void 0);_.d([_.o5("#content"),_.x("design:type",HTMLElement)],kF.prototype,"contentElement",void 0);
_.d([_.rx("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kF.prototype,"onYtRendererstamperFinished",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kF.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.d([_.mx("data","isFullscreen","isTheaterMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kF.prototype,"dataChanged",null);
_.d([_.Os("isTheaterMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kF.prototype,"isTheaterModeChanged",null);_.d([_.Os("isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kF.prototype,"isFullscreenChanged",null);_.d([_.Os("visibility"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kF.prototype,"visibilityChanged",null);
_.d([_.Y({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],kF);
_.p(kF,"ytd-engagement-panel-section-list-renderer",function(){if(MTM!==void 0)return MTM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return MTM=D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var heE;var Tl=function(){var D=_.X.apply(this,arguments)||this;D.lastRenderedPanelIds=new Set;D.visiblePanels=[];D.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return D};
_.P(Tl,_.X);_.q=Tl.prototype;_.q.dataChanged=function(){if(this.data){for(var D=[],t=_.F(this.data),H=t.next();!H.done;H=t.next()){H=H.value;var e=void 0,V=void 0,b=(e=H)==null?void 0:(V=e.engagementPanelSectionListRenderer)==null?void 0:V.visibility;V=e=void 0;((e=H)==null?0:(V=e.engagementPanelSectionListRenderer)==null?0:V.targetId)&&b!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&D.push(H)}this.visiblePanels=D}else this.visiblePanels=[]};
_.q.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}}};
_.q.withoutVisiblePanelById=function(D){return this.visiblePanels.filter(function(t){var H;return((H=t.engagementPanelSectionListRenderer)==null?void 0:H.targetId)!==D})};
_.q.onYtChangeEngagementPanelVisibilityAction=function(D){var t=this,H=_.O(D,_.ixo);if(this.data&&(H==null?0:H.targetId)&&(H==null?0:H.visibility)){var e,V=(e=this.data.find(function(a){var w;return((w=a.engagementPanelSectionListRenderer)==null?void 0:w.targetId)===H.targetId}))==null?void 0:e.engagementPanelSectionListRenderer;
if(V){var b=this.withoutVisiblePanelById(H.targetId);H.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(D=this.data.find(function(a){var w;return((w=a.engagementPanelSectionListRenderer)==null?void 0:w.targetId)===H.targetId}))&&(b=[D].concat(_.A6(b)));
this.hideDelayMs&&H.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&b.length===0?_.Jy.addJob(function(){V.visibility=H.visibility;t.visiblePanels=b},10,this.hideDelayMs):(V.visibility=H.visibility,this.visiblePanels=b);
_.Kl(this.hostElement,"yt-engagement-panels-visible-changed",[b])}}};
_.q.onRendererstamperFinished=function(){var D=new Set(this.visiblePanels.map(function(t){var H;return(H=t.engagementPanelSectionListRenderer)==null?void 0:H.targetId}));
this.handlePanelVisibilityChange(D,this.lastRenderedPanelIds);this.lastRenderedPanelIds=D};
_.q.handlePanelVisibilityChange=function(D,t){D=D===void 0?new Set:D;t=t===void 0?new Set:t;if(this.data)for(var H=_.F(this.data),e=H.next();!e.done;e=H.next()){e=e.value;var V=void 0,b=void 0,a=(V=e)==null?void 0:(b=V.engagementPanelSectionListRenderer)==null?void 0:b.targetId;if(a&&(V=t.has(a),b=D.has(a),a=void 0,!V&&b?(b=V=void 0,a=(V=e)==null?void 0:(b=V.engagementPanelSectionListRenderer)==null?void 0:b.onShowCommands):V&&!b&&(b=V=void 0,a=(V=e)==null?void 0:(b=V.engagementPanelSectionListRenderer)==
null?void 0:b.onHideCommands),a))for(e=_.F(a),a=e.next();!a.done;a=e.next())this.ytComponentBehavior.resolveCommand(a.value)}};
Tl.prototype.onRendererstamperFinished=Tl.prototype.onRendererstamperFinished;Tl.prototype.dataChanged=Tl.prototype.dataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Tl.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Tl.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Tl.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Tl.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Tl.prototype,"lastRenderedPanelIds",void 0);_.d([_.M(),_.x("design:type",Number)],Tl.prototype,"hideDelayMs",void 0);_.d([_.M(),_.x("design:type",Array)],Tl.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Array)],Tl.prototype,"visiblePanels",void 0);_.d([_.M(),_.x("design:type",Boolean)],Tl.prototype,"isWatchWhilePanel",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tl.prototype,"dataChanged",null);_.d([_.rx("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Tl.prototype,"onRendererstamperFinished",null);_.d([_.Y({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Tl);
_.p(Tl,"ytd-watch-engagement-panels",function(){if(heE!==void 0)return heE;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return heE=D},{mode:1});var GpF;var cd=function(){return _.X.apply(this,arguments)||this};
_.P(cd,_.X);cd.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.Fq(_.Kg(this.hostElement).querySelector("#text"),_.qFw(_.wt4,this.data.companionLegalText))};
cd.prototype.computeAutoScrollEnabled=function(D,t){return D&&!t};
cd.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
cd.prototype.onToggleTap=function(){this.expanded=!this.expanded};
cd.prototype.expandedChanged=cd.prototype.expandedChanged;cd.prototype.dataChanged=cd.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.SZF),_.x("design:type",Object)],cd.prototype,"ytdAutoScrollBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],cd.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],cd.prototype,"expanded",void 0);
_.d([_.M({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.x("design:type",Boolean)],cd.prototype,"autoScrollEnabled",void 0);_.d([_.M(),_.x("design:type",String)],cd.prototype,"expanderIcon",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cd.prototype,"dataChanged",null);
_.d([_.Os("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cd.prototype,"expandedChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],cd);
_.p(cd,"ytd-companion-legal-text-renderer",function(){if(GpF!==void 0)return GpF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return GpF=D},{mode:1});var EMU;var jS=function(){var D=_.X.apply(this,arguments)||this;D.buttonUpdate=_.r("web_modern_buttons");D.kevlarWatchGrid=_.r("kevlar_watch_grid");D.centerAlignDescription=_.r("action_companion_center_align_description");D.truncateDomain=_.r("action_companion_truncate_domain");D.enableMonoStyle=_.r("enable_default_mono_cta_migration_web_client");return D};
_.P(jS,_.X);_.q=jS.prototype;_.q.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.q.getOnLayoutVisibleCallback=function(){var D=_.RD("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.onLayoutVisibleCallback:null};
_.q.getLayoutId=function(){var D=_.RD("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
_.q.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",jS.JSC$22854_DEFAULT_AD_BADGE_RENDERER);var D=this.getOnLayoutVisibleCallback();D&&D()}};
_.q.getButtonRenderer=function(D){return D.actionButton&&_.O(D.actionButton,_.aj)?(delete _.O(D.actionButton,_.aj).navigationEndpoint,_.O(D.actionButton,_.aj)):{}};
_.q.onClick=function(D){var t=this;if((!_.r("web_modern_buttons")||!_.ed(_.bK(D),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){D=_.FA();var H=this.getLayoutId();D&&H&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?D.getPlayerPromise().then(function(e){(new _.tD(e)).executeCommand(t.data.navigationEndpoint,H)}):_.r("kevlar_companion_resolve_command_killswitch")?_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.ET(this.hostElement,"yt-companion-ad-clicked",["action-companion",H])}};
_.ql.Object.defineProperties(jS.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return((D=this.data)==null?0:(t=D.detailsLine)==null?0:(H=t.adRating)==null?0:H.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 D,t,H,e;return((D=this.data)==null?0:(t=D.detailsLine)==null?0:(H=t.adRating)==null?0:(e=H.ratingIcon)==null?0:e.iconType)?_.cc(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e;return((D=this.data)==null?0:(t=D.detailsLine)==null?0:(H=t.texts)==null?0:(e=H[0])==null?0:e.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 D,t;return((D=this.data)==null?0:(t=D.description)==null?0:t.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var D=_.RD("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var D=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return D?D.indexOf("/default_banner")!==-1:!0}}});
jS.prototype.onClick=jS.prototype.onClick;jS.prototype.dataChanged=jS.prototype.dataChanged;jS.JSC$22854_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.OT("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],jS.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],jS.prototype,"rendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],jS.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],jS.prototype,"buttonUpdate",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],jS.prototype,"kevlarWatchGrid",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],jS.prototype,"centerAlignDescription",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],jS.prototype,"truncateDomain",void 0);
_.d([_.M({computed:"computeButtonOverride(buttonUpdate)"}),_.x("design:type",Object)],jS.prototype,"buttonOverride",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],jS.prototype,"enableMonoStyle",void 0);_.d([_.m("data.detailsLine.adRating.ratingText"),_.x("design:type",Object),_.x("design:paramtypes",[])],jS.prototype,"getRating",null);_.d([_.m("getRating"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jS.prototype,"computeRatingHidden",null);
_.d([_.m("data.detailsLine.adRating.ratingIcon.iconType"),_.x("design:type",Object),_.x("design:paramtypes",[])],jS.prototype,"iconType",null);_.d([_.m("data.detailsLine.texts.0.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],jS.prototype,"getDetailsLine",null);_.d([_.m("getDetailsLine"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jS.prototype,"computeDetailsLineHidden",null);
_.d([_.m("data.description.text"),_.x("design:type",Object),_.x("design:paramtypes",[])],jS.prototype,"getDescriptionText",null);_.d([_.m("getDescriptionText"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jS.prototype,"computeDescriptionTextHidden",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],jS.prototype,"interactionLoggingClientData",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jS.prototype,"hideBanner",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jS.prototype,"dataChanged",null);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],jS.prototype,"onClick",null);_.d([_.Y({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],jS);
_.p(jS,"ytd-action-companion-ad-renderer",function(){if(EMU!==void 0)return EMU;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return EMU=D},{mode:_.Kz("kevlar_poly_si_batch_j067")?1:2});var KGM;var N_7;var $F=function(){var D=_.X.apply(this,arguments)||this;D.buttonUpdate=_.r("web_modern_buttons");D.hideLegacyBanner=_.r("enable_dsa_one_click_ata_translators_infeed_elements");D.adInfoButtonStyle="mono";D.adInfoButtonType="text";D.noDotAdBadge=!0;return D};
_.P($F,_.X);_.q=$F.prototype;_.q.getOnLayoutVisibleCallback=function(){var D=_.RD("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.onLayoutVisibleCallback:null};
_.q.getLayoutId=function(){var D=_.RD("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
_.q.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 D=this.data.image.thumbnail.thumbnails[0];this.imageSrc=D.url?_.dw(D.url):void 0;this.imageWidth=D.width||0;this.imageHeight=D.height||0}this.data.clickthroughEndpoint&&_.O(this.data.clickthroughEndpoint,_.um)&&(D=_.O(this.data.clickthroughEndpoint,_.um).url,_.r("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
D||"":D?(D=_.dw(D),this.clickThroughUrl=_.JA(D)):this.clickThroughUrl=void 0);(D=this.getOnLayoutVisibleCallback())&&D()}};
_.q.onClick=function(D){_.ed(_.bK(D),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(D)};
_.q.handleClick=function(){var D=this;this.data&&this.data.clickthroughEndpoint&&(_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(t){D.macroReplacementBehavior.sendServiceRequestAction([t])}),_.ET(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.q.onLoad=function(){_.Kl(this.hostElement,"yt-refit-popups-action")};
_.ql.Object.defineProperties($F.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var D=_.RD("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var D=_.RD("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.interactionLoggingClientData:null}}});
$F.prototype.onLoad=$F.prototype.onLoad;$F.prototype.onClick=$F.prototype.onClick;$F.prototype.dataChanged=$F.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$F.prototype,"rendererBehavior",void 0);_.d([_.C(A$N.YtMacroReplacementBehavior),_.x("design:type",Object)],$F.prototype,"macroReplacementBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$F.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],$F.prototype,"buttonUpdate",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],$F.prototype,"hideLegacyBanner",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],$F.prototype,"adInfoButtonStyle",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],$F.prototype,"adInfoButtonType",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],$F.prototype,"macros",null);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],$F.prototype,"interactionLoggingClientData",null);_.d([_.M(),_.x("design:type",String)],$F.prototype,"clickThroughUrl",void 0);_.d([_.M(),_.x("design:type",_.LM)],$F.prototype,"imageSrc",void 0);_.d([_.M(),_.x("design:type",Number)],$F.prototype,"imageWidth",void 0);_.d([_.M(),_.x("design:type",Number)],$F.prototype,"imageHeight",void 0);_.d([_.M(),_.x("design:type",Object)],$F.prototype,"noDotAdBadge",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$F.prototype,"dataChanged",null);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],$F.prototype,"onClick",null);_.d([_.rx("load"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$F.prototype,"onLoad",null);_.d([_.Y({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],$F);
_.p($F,"ytd-image-companion-renderer",function(){if(N_7!==void 0)return N_7;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return N_7=D},{mode:_.Kz("kevlar_poly_si_batch_j067")?1:2});var kpN;var iE=function(){return _.X.apply(this,arguments)||this};
_.P(iE,_.X);_.q=iE.prototype;_.q.dataChanged=function(){this.set("data.adBadge",iE.JSC$22863_DEFAULT_AD_BADGE_RENDERER);if(this.data){var D=this.getOnLayoutVisibleCallback();D&&D()}};
_.q.getOnLayoutVisibleCallback=function(){var D=_.RD("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.onLayoutVisibleCallback:null};
_.q.getLayoutId=function(){var D=_.RD("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.layoutId:null};
_.q.onCompanionClicked=function(D){this.data&&(D.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.ET(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.q.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var D=_.FA(),t=this.getLayoutId(),H=this.data.clickToAdvSiteEndpoint;D&&t&&_.r("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?D.getPlayerPromise().then(function(e){(new _.tD(e)).executeCommand(H,t)}):_.Gf(this.hostElement,"yt-navigate",{endpoint:H})}};
_.q.sendTrackingPings=function(D){if(D&&D.length!==0&&D[0].loggingUrls&&(D=D[0].loggingUrls.map(this.getBaseUrl)))for(var t=0;t<D.length;t++)_.IP(D[t])};
_.q.getBaseUrl=function(D){return D.baseUrl||""};
_.ql.Object.defineProperties(iE.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var D=_.RD("yt.www.ads.eventcache.getLastCompanionData");return D?(D=D())&&D.interactionLoggingClientData:null}}});
iE.prototype.onCompanionClicked=iE.prototype.onCompanionClicked;iE.prototype.dataChanged=iE.prototype.dataChanged;iE.JSC$22863_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.OT("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],iE.prototype,"data",void 0);_.d([_.o5("#title"),_.x("design:type",HTMLElement)],iE.prototype,"shopTitle",void 0);
_.d([_.mx("data.impressionEndpoints"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],iE.prototype,"dataChanged",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],iE.prototype,"interactionLoggingClientData",null);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],iE.prototype,"onCompanionClicked",null);
_.d([_.Y({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],iE);
_.p(iE,"ytd-shopping-companion-renderer",function(){if(kpN!==void 0)return kpN;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return kpN=D},{mode:1});_.hB(_.l(function(D){var t=D.data;D=_.wv({visibilityCallback:function(e){var V,b=(V=t().interaction)==null?void 0:V.onFirstVisible;e&&b&&_.IQ(b)},
showOption:_.n0});var H=_.dF(function(){return t().interaction},zgh);
_.LR(function(){var e,V;V=(V=_.RD("yt.www.ads.eventcache.getLastCompanionData"))?(V=V())&&V.onLayoutVisibleCallback:null;(e=V)==null||e()},"sm");
return _.G("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.$X(function(e){_.Kl(e.currentTarget,"yt-refit-popups-action")}),
el:_.FI(D,H),"aria-label":function(){var e,V;return(e=t().interaction)==null?void 0:(V=e.accessibility)==null?void 0:V.label}},_.G("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.G(_.P5,{data:function(){return t().adImage}},{adImageViewModel:function(e){return _.G(_.dA,{data:e.data,
targetHeight:80,customCommandResolver:zgh})}})),_.G("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.G("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.G(_.P5,{data:function(){return t().adBadge}},{adBadgeViewModel:function(e){return _.G(_.L0,{data:e.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.G("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.G(_.P5,{data:function(){return t().menu}},{buttonViewModel:_.JX}))))},"tm"),"banner-image-layout-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){var t=D.data;D=_.wv({visibilityCallback:function(e){var V,b=(V=t().interaction)==null?void 0:V.onFirstVisible;e&&b&&_.IQ(b)},
showOption:_.n0});var H=_.dF(function(){return t().interaction},DN1);
_.LR(function(){var e,V;V=(V=_.RD("yt.www.ads.eventcache.getLastCompanionData"))?(V=V())&&V.onLayoutVisibleCallback:null;(e=V)==null||e()},"um");
return _.G("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.FI(D,H)},_.G("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.G(_.P5,{data:function(){return t().adImage}},{adImageViewModel:function(e){return _.G(_.dA,{data:e.data,
targetHeight:80,customCommandResolver:DN1})}})),_.G("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.G("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.G(_.P5,{data:function(){return t().adAvatarLockup}},{adAvatarLockupViewModel:function(e){return _.G(wI1,{data:e.data,
customCommandResolver:DN1})}})),_.G(_.P5,{data:function(){return t().adButton}},{adButtonViewModel:function(e){return _.G(_.m8,{data:e.data,
customCommandResolver:DN1})}}),_.G("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.G(_.P5,{data:function(){return t().menu}},{buttonViewModel:_.JX}))))},"vm"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.ij}});var T_E={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"},rC=function(){var D=_.X.apply(this,arguments)||this;D.updateCompanionDataJobId=0;D.contentVideoId=null;D.player=null;D.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return D};
_.P(rC,_.X);_.q=rC.prototype;_.q.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:T_E}}};
_.q.attached=function(){var D=this,t=_.FA();t&&t.getPlayerPromise().then(function(H){D.getCachedDataAndListen(H)})};
_.q.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.q.updateRendererStamper=function(){var D={};if(this.data)for(var t in T_E)if(this.data[t]){D[t]=this.data[t];break}if(this.oneofRenderer!=void 0||Object.keys(D).length)this.oneofRenderer=D};
_.q.getCachedDataAndListen=function(D){var t=this.retrieveCachedCompanionData();t&&Object.keys(t).length&&this.receiveCompanionData(t);this.ytPlayerListenerBehavior.listenToPlayerEvent(D,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=D};
_.q.retrieveCachedCompanionData=function(){return _.VA.yt&&_.VA.yt.www&&_.VA.yt.www.ads&&_.VA.yt.www.ads.eventcache&&_.VA.yt.www.ads.eventcache.getLastCompanionData?_.VA.yt.www.ads.eventcache.getLastCompanionData():null};
_.q.receiveCompanionData=function(D){D&&Object.keys(D).length?(this.contentVideoId=D.contentVideoId,this.setCompanionData(D)):this.setCompanionData(D)};
_.q.setCompanionData=function(D){this.cancelPendingCompanionAdJobs();if(D){this.updateCompanionDataJobId=0;for(var t in T_E)T_E.hasOwnProperty(t)&&(this.data[t]=void 0);D.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",D.shoppingCompanionCarouselRenderer):D.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",D.imageCompanionAdRenderer):D.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",D.actionCompanionAdRenderer),_.Kl(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Kl(this.hostElement,"yt-hide-tvfilm-offer-module")):D.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",D.bannerImageLayoutViewModel):D.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",D.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.q.dataChanged=function(){var D=this,t=_.FA();t?t.getPlayerPromise().then(function(H){D.contentVideoId&&H.getVideoUrl().includes("v="+D.contentVideoId)||(D.cancelPendingCompanionAdJobs(),D.updateRendererStamper())}):_.uh(Error("To"))};
_.q.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Jy.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.q.handleCompanionAdClicked=function(D,t){this.player.onAdUxClicked(D,t);this.player.pauseVideo()};
rC.prototype.dataChanged=rC.prototype.dataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],rC.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],rC.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],rC.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],rC.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",_.rt)],rC.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],rC.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],rC.prototype,"oneofRenderer",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rC.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],rC);
_.p(rC,"ytd-companion-slot-renderer",function(){if(KGM!==void 0)return KGM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return KGM=D},{mode:_.Kz("kevlar_poly_si_batch_j067")?
1:2});var cLN;var O1=function(){return _.X.apply(this,arguments)||this};
_.P(O1,_.X);O1.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
O1.prototype.dataChanged=O1.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],O1.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],O1.prototype,"companionSlotData",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],O1.prototype,"dataChanged",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],O1);
_.p(O1,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(cLN!==void 0)return cLN;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return cLN=D},{mode:1});var jZl;var U1=function(){var D=_.X.apply(this,arguments)||this;D.skinnyMode=!1;D.COMPACT_EVENT_COUNT=4;D.onShelfToggleButtonTap=function(){D.logTap(D.data);D.showingMore=!D.showingMore};
D.onShelfToggleButtonFocus=function(){D.showingMore||(D.logTap(D.data),D.showingMore=!0,_.Vi(D,function(){var t=D.COMPACT_EVENT_COUNT-1,H;(H=_.Kg(D.hostElement).querySelector("#event-"+t))==null||H.focus()}))};
return D};
_.P(U1,_.X);_.q=U1.prototype;_.q.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.q.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.q.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.iK(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.iK(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.iK(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.iK(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.iK(this.infoTooltip,this.infoTooltip.hide))};
_.q.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.iK(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.iK(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.iK(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.iK(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.iK(this.infoTooltip,this.infoTooltip.hide))};
_.q.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)};
_.q.onShowingMoreChanged=function(){var D;this.showingMoreChanged((D=this.showingMore)!=null?D:!1)};
_.q.showingMoreChanged=function(D){var t=this.get("data.events")||[];this.set("restEvents",t.slice(1,D?t.length:this.COMPACT_EVENT_COUNT).map(function(H){return H.ticketEventRenderer}));
t.slice(0,D?t.length:this.COMPACT_EVENT_COUNT).forEach(function(H){var e=_.v3();H=H.ticketEventRenderer.trackingParams;_.lo()&&e&&H&&(H=_.Sa(H),e&&_.Bh(e,H))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.q.computeAriaLabel=function(D){return D.subtitle1+", "+D.subtitle2};
_.q.logTap=function(D){_.lo()&&this.ytRendererBehavior.logExplicitClick(D)};
_.q.isKeyboardAction=function(D){return this.get("detail.x",D)===0&&this.get("detail.y",D)===0};
_.q.onFirstEventTap=function(D){D.target&&this.handleTap(D.target,this.firstEvent,this.isKeyboardAction(D))};
_.q.onTicketLinkTap=function(D){D.target&&this.handleTap(D.target,D.model.item,this.isKeyboardAction(D))};
_.q.handleTap=function(D,t,H){if(t.buttonCommand)if(t.hasMultipleOffers)Object.assign(_.O(t.buttonCommand,_.RW),{properties:{source:H?"keyboard":"tap"}}),this.logTap(t),this.popupPositionTarget=D,_.k0(this.hostElement,[t.buttonCommand],this.hostElement);else{var e;if((e=_.O(t.buttonCommand,_.um))==null?0:e.url)this.logTap(t),_.D7(window,_.O(t.buttonCommand,_.um).url)}};
U1.prototype.onShowingMoreChanged=U1.prototype.onShowingMoreChanged;U1.prototype.dataChanged=U1.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],U1.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],U1.prototype,"firstEvent",void 0);_.d([_.M(),_.x("design:type",Object)],U1.prototype,"restEvents",void 0);_.d([_.M(),_.x("design:type",String)],U1.prototype,"imageUrl",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],U1.prototype,"showingMore",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],U1.prototype,"canShowMore",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],U1.prototype,"skinnyMode",void 0);_.d([_.M(),_.x("design:type",HTMLElement)],U1.prototype,"popupPositionTarget",void 0);_.d([_.o5("#banner-info-tooltip"),_.x("design:type",Object)],U1.prototype,"infoTooltip",void 0);
_.d([_.o5("#info-container"),_.x("design:type",HTMLElement)],U1.prototype,"infoContainer",void 0);_.d([_.o5("#shelf-toggler"),_.x("design:type",HTMLElement)],U1.prototype,"shelfToggleButton",void 0);_.d([_.o5("#separator"),_.x("design:type",HTMLDivElement)],U1.prototype,"separator",void 0);_.d([_.M(),_.x("design:type",String)],U1.prototype,"shelfTogglerLabelText",void 0);_.d([_.M(),_.x("design:type",String)],U1.prototype,"shelfTogglerIcon",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U1.prototype,"dataChanged",null);_.d([_.mx("showingMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U1.prototype,"onShowingMoreChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],U1);
_.p(U1,"ytd-ticket-shelf-renderer",function(){if(jZl!==void 0)return jZl;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return jZl=D},{mode:1});var $pM;var iRU;var rLY=function(){return _.X.apply(this,arguments)||this};
_.P(rLY,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],rLY.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],rLY.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],rLY);
_.p(rLY,"ytd-comments-entry-point-message-renderer",function(){if(iRU!==void 0)return iRU;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return iRU=D},{mode:1});var ORM;var o7=function(){return _.X.apply(this,arguments)||this};
_.P(o7,_.X);_.ql.Object.defineProperties(o7.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.teaserAvatar)}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],o7.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],o7.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],o7.prototype,"hasAvatar",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],o7);
_.p(o7,"ytd-comments-entry-point-teaser-renderer",function(){if(ORM!==void 0)return ORM;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ORM=D},{mode:1});var UpU;var oM7=function(){return _.X.apply(this,arguments)||this};
_.P(oM7,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],oM7.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],oM7.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],oM7);
_.p(oM7,"ytd-comments-simplebox-renderer",function(){if(UpU!==void 0)return UpU;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return UpU=D},{mode:1});var Pd=function(){var D=_.X.apply(this,arguments)||this;D.fullHeight=!_.r("comment_teaser_full_height_kill_switch")&&_.r("kevlar_watch_grid");return D};
_.P(Pd,_.X);Pd.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"}}}};
Pd.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Pd.prototype.onTap=function(){var D=this.tapCommand;D&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(D))};
Pd.prototype.onKeyUp=function(D){if(D.keyCode===13)this.onTap()};
_.ql.Object.defineProperties(Pd.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.onTap)return this.data.onTap;var t,H;if(((t=this.data)==null?0:t.teaserContent)||((H=this.data)==null?0:H.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)!=null&&D.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Pd.prototype.onKeyUp=Pd.prototype.onKeyUp;Pd.prototype.onTap=Pd.prototype.onTap;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Pd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Pd.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Pd.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Pd.prototype,"fullHeight",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pd.prototype,"tapCommand",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pd.prototype,"simpleboxPlaceholder",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pd.prototype,"hasSimpleboxPlaceholder",null);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pd.prototype,"simpleboxAvatar",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pd.prototype,"teaserContent",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pd.prototype,"hasTeaserContent",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pd.prototype,"teaserAvatar",null);
_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pd.prototype,"hasTeaserAvatar",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pd.prototype,"messageText",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Pd.prototype,"contentRenderer",null);_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pd.prototype,"hasContents",null);
_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Pd.prototype,"hasContentRenderer",null);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pd.prototype,"onTap",null);_.d([_.rx("keypress"),_.x("design:type",Function),_.x("design:paramtypes",[_.fr]),_.x("design:returntype")],Pd.prototype,"onKeyUp",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Pd);
_.p(Pd,"ytd-comments-entry-point-header-renderer",function(){if($pM!==void 0)return $pM;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return $pM=D},{mode:1});var PDN;_.hB(_.Aav,"yt-animated-rolling-number",{props:{numberText:_.ij,numberValue:_.ij,heightPx:_.ij,fontSizeMultiplier:_.ij,shouldAnimate:_.ij,forceRollUp:_.ij}});var nMY=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),CDw={numberText:"",heightPx:2*nMY,shouldAnimate:!1},nt=function(){var D=_.X.apply(this,arguments)||this;D.usingAnimatedComponents=!0;D.wasDetailed=!1;D.JSC$22900_browserSupportsAnimation=_.r("web_supports_animations_api");D.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};D.detailed=!1;D.shouldAnimate=!1;D.viewCountProps=CDw;D.dateTextProps=
CDw;D.metadataBadgesInDescription=_.r("web_metadata_badges_in_description");return D};
_.P(nt,_.X);_.q=nt.prototype;_.q.resetAnimationState=function(){this.shouldAnimate=!1};
_.q.updateDynamicMetadata=function(){if(this.JSC$22900_browserSupportsAnimation){if(!this.detailed){var D,t,H,e;var V=(D=this.videoPrimaryInfoRenderer)==null?void 0:(t=D.viewCount)==null?void 0:(H=t.videoViewCountRenderer)==null?void 0:(e=H.extraShortViewCount)==null?void 0:e.simpleText;var b,a,w,h;var K=(b=this.videoPrimaryInfoRenderer)==null?void 0:(a=b.viewCount)==null?void 0:(w=a.videoViewCountRenderer)==null?void 0:(h=w.shortViewCount)==null?void 0:h.simpleText}if(!K){var N,k,T,c;V=(N=this.videoPrimaryInfoRenderer)==
null?void 0:(k=N.viewCount)==null?void 0:(T=k.videoViewCountRenderer)==null?void 0:(c=T.unlabeledViewCountValue)==null?void 0:c.simpleText;var U,S,L,J;K=(U=this.videoPrimaryInfoRenderer)==null?void 0:(S=U.viewCount)==null?void 0:(L=S.videoViewCountRenderer)==null?void 0:(J=L.viewCount)==null?void 0:J.simpleText}var g,Q,u;D=Number((g=this.videoPrimaryInfoRenderer)==null?void 0:(Q=g.viewCount)==null?void 0:(u=Q.videoViewCountRenderer)==null?void 0:u.originalViewCount);var R,I;g=(R=this.videoPrimaryInfoRenderer)==
null?void 0:(I=R.relativeDateText)==null?void 0:I.simpleText;var tT;R=!((tT=this.videoPrimaryInfoRenderer)==null||!tT.relativeDateText);if(V&&K&&D&&(g||!R)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;tT=K.split(new RegExp("("+V+")"));V=_.H7(tT[0]);var ZV;K={numberText:(ZV=tT[1])!=null?ZV:"",numberValue:D,heightPx:2*nMY,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var ED;ZV=((ED=tT[2])!=null?ED:"")+"  ";this.setViewCount(K,V,_.H7(ZV));
if(!this.detailed&&R){V=g.split(/(\d+)/);ED=_.H7(V[0]);var o$;ZV={numberText:(o$=V[1])!=null?o$:"",heightPx:2*nMY,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var jV;o$=((jV=V[2])!=null?jV:"")+"  ";this.setDateText(ZV,ED,_.H7(o$))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.q.setViewCount=function(D,t,H){_.eo(t)!==_.eo(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=t);this.viewCountProps.numberText!==(D==null?void 0:D.numberText)&&(this.viewCountProps=D||CDw);_.eo(H)!==_.eo(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=H)};
_.q.setDateText=function(D,t,H){_.eo(t)!==_.eo(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=t);this.dateTextProps.numberText!==(D==null?void 0:D.numberText)&&(this.dateTextProps=D||CDw);_.eo(H)!==_.eo(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=H)};
_.q.onYtUpdateViewershipAction=function(D){this.videoPrimaryInfoRenderer&&(_.O(D,Kul).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.O(D,Kul).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.O(D,Kul).viewCount)))};
_.q.onYtUpdateDateTextAction=function(D){if(this.videoPrimaryInfoRenderer){D=_.O(D,_.G7M).dateText;this.shouldAnimate=!0;var t;((t=this.videoPrimaryInfoRenderer)==null?0:t.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",D):this.set("videoPrimaryInfoRenderer.dateText",D)}};
_.ql.Object.defineProperties(nt.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return bMw(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.eo(bMw(this.videoPrimaryInfoRenderer,!0,!0,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.eo(this.viewCountPreNumberText),this.viewCountProps.numberText,_.eo(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.eo(this.dateTextPreNumberText),this.dateTextProps.numberText,_.eo(this.dateTextPostNumberText)].join("")}}});
nt.prototype.updateDynamicMetadata=nt.prototype.updateDynamicMetadata;nt.prototype.resetAnimationState=nt.prototype.resetAnimationState;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],nt.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],nt.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],nt.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],nt.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],nt.prototype,"videoPrimaryInfoRenderer",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nt.prototype,"detailed",void 0);_.d([_.M(),_.x("design:type",Object)],nt.prototype,"shouldAnimate",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nt.prototype,"viewCountPreNumberText",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nt.prototype,"viewCountProps",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nt.prototype,"viewCountPostNumberText",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nt.prototype,"dateTextPreNumberText",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nt.prototype,"dateTextProps",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nt.prototype,"dateTextPostNumberText",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nt.prototype,"metadataBadgesInDescription",void 0);_.d([_.m("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.x("design:type",Object),_.x("design:paramtypes",[])],nt.prototype,"infoText",null);
_.d([_.m("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.x("design:type",String),_.x("design:paramtypes",[])],nt.prototype,"descriptionInfoTooltipText",null);_.d([_.m("detailed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],nt.prototype,"showDescriptionInfoTooltip",null);
_.d([_.m("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.x("design:type",String),_.x("design:paramtypes",[])],nt.prototype,"animatedViewCountAccessibilityLabel",null);_.d([_.m("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.x("design:type",String),_.x("design:paramtypes",[])],nt.prototype,"animatedDateTextAccessibilityLabel",null);
_.d([_.Os("videoPrimaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nt.prototype,"resetAnimationState",null);_.d([_.Os("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nt.prototype,"updateDynamicMetadata",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-watch-info-text"})],nt);
_.p(nt,"ytd-watch-info-text",function(){if(PDN!==void 0)return PDN;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return PDN=D},{mode:1});var mpl;var MjU="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var SPU=_.l(function(D){var t=D.data;var H=D.setTapCommand;_.Mp(function(){var e=_.xP(t().onTap);H(e)},"Hj6Srd");
return _.G("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.G(_.P5,{data:function(){return t().avatar}},{avatarViewModel:_.qi}),_.G("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.G("span",null,function(){return t().simpleboxText})))},"xm");var XIU=_.l(function(D){return _.G("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.G(_.E,{cond:function(){return _.O(D.data().avatar,_.lO)},
then:function(t){return _.G(_.qi,{data:t,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.G("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.G(_.$7,{text:function(){return D.data().teaserText}})))},"ym");var f_M=_.l(function(D){var t=D.data;var H=D.setTapCommand;_.Mp(function(){var e=_.xP(t().onTap);H(e)},"IlZFqc");
return _.G("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.G(_.P5,{data:function(){return t().teasers}},{commentsEntryPointTeaserViewModel:XIU}))},"Am");var LG1=_.l(function(D){var t=D.data;var H=D.setTapCommand;_.Mp(function(){var e=_.xP(t().onTap);H(e)},"sYe8ye");
return _.G("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.G(_.$7,{text:function(){return t().messageText}}))},"Cm");var ALE=_.l(function(D){var t=D.data;var H=D.setTapCommand;var e=D.isDisabled;_.Mp(function(){var V=(e==null?0:e())?void 0:_.xP(t().onTap);H(V)},"GZxRqd");
return _.G("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.G(_.U7,{icon:function(){return t().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.G(_.E,{cond:function(){return t().image},
then:function(V){return _.G(_.bi,{data:V,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.G(_.$7,{text:function(){return t().text},
className:function(){return t().image||t().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.G(_.P5,{data:function(){return t().button}},{buttonViewModel:function(V){return _.G(_.JX,{data:V.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:e==null?void 0:e()}}})}}))},"Em");var gMM=_.l(function(D){var t=D.data;var H=D.itemIndex;var e=D.selectedIndex;var V=D.indexUpdatedCallback;var b=D.observer;D=D.title;var a=_.DY("yt-carousel-item-view-model",function(k){b&&b().observe(k)}),w=function(k){H()===e()&&V(k)},h=_.dm(fOh),K=_.dm(_.WQV),N=function(){var k,T,c;
return((k=t())==null?void 0:k.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!h()||((T=t())==null?void 0:T.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&K().includes("PAposts_by_host")||((c=t())==null?void 0:c.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&K().includes("PAyouchat")};
return _.G("yt-carousel-item-view-model",{el:a,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":D},_.G(_.P5,{data:function(){var k,T;return(T=(k=_.O(t().carouselItem,AAd))==null?void 0:k.textCarousel)!=null?T:t().carouselItem}},{textCarouselItemViewModel:function(k){return _.G(ALE,{data:k.data,
setTapCommand:w,isDisabled:N})},
commentTeaserCarouselItemViewModel:function(k){return _.G(f_M,{data:k.data,setTapCommand:w})},
commentInputBoxCarouselItemViewModel:function(k){return _.G(SPU,{data:k.data,setTapCommand:w})},
commentsEntryPointMessageViewModel:function(k){return _.G(LG1,{data:k.data,setTapCommand:w})}}))},"Fm");var JLY=_.l(function(D){var t=D.numDots;var H=D.activeIndex;return _.G("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.G(_.nY,{each:function(){return Array.from({length:t()})},
keyBy:"INDEX"},function(e,V){return _.G("div",{class:function(){var b={};return _.ff("ytCarouselDotsShapeDot",(b.ytCarouselDotsShapeDotActive=V===H(),b))}})}))},"Gm");var YPU=_.l(function(D){var t=D.data;var H=D.handleCarouselNavigation;var e=D.numItems;var V=D.selectedIndex;var b=function(){return{disabled:V()===0}},a=function(){return{disabled:V()===e()-1}};
return _.G("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.G("div",null,_.G("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return t().title}),_.G(_.E,{cond:function(){return t().subtitle},
then:function(w){return _.G("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return t().subtitleAccessibilityText}},w)}})),_.G(_.E,{cond:function(){return e()>1},
then:function(){return _.G("div",{class:"ytCarouselTitleViewModelNavigation"},_.G(JLY,{numDots:e,activeIndex:V}),_.G(_.E,{cond:function(){return t().previousButton},
then:function(w){return _.G(_.P5,{data:w},{buttonViewModel:function(h){return _.G(_.JX,{data:h.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return H(-1)},
buttonOverrides:b})}})}}),_.G(_.E,{cond:function(){return t().nextButton},
then:function(w){return _.G(_.P5,{data:w},{buttonViewModel:function(h){return _.G(_.JX,{data:h.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return H(1)},
buttonOverrides:a})}})}}))}}))},"Hm");_.hB(_.l(function(D){var t=D.data;var H,e=_.DY("yt-video-metadata-carousel-view-model"),V=_.DY("div",function(R){var I=function(){var tT=R.offsetWidth*S(),ZV=24*(S()-1);T(tT+ZV)};
I();window.ResizeObserver&&(H=new ResizeObserver(I),H.observe(R))}),b=_.YC("HTML_DIR")==="rtl",a=!1,w=0,h=0;
D=_.F(_.KR(0,void 0,"M49TDf"));var K=D.next().value,N=D.next().value;D=_.F(_.KR(0,void 0,"zLIok"));var k=D.next().value,T=D.next().value;D=_.F(_.KR(!1,void 0,"bhelhc"));var c=D.next().value,U=D.next().value,S=function(){var R,I,tT;return(tT=(R=t())==null?void 0:(I=R.carouselTitles)==null?void 0:I.length)!=null?tT:0},L=function(){V.value&&V.value.scrollLeft!==w&&N((b?V.value.scrollLeft<w:V.value.scrollLeft>w)?Math.min(K()+1,S()-1):Math.max(K()-1,0))},J;
window.IntersectionObserver&&(J=new IntersectionObserver(function(R){R=_.F(R);for(var I=R.next();!I.done;I=R.next())if(I.value.isIntersecting){if(a){a=!1;break}L()}else N(h)},{threshold:.2}));
_.Mp(function(){if(V.value){var R=(b?-1:1)*(k()/S()+12)*(c()&&J?h:K());typeof V.value.scrollTo==="function"?V.value.scrollTo({left:R,behavior:"smooth"}):V.value.scrollLeft=R;w=R;h=c()&&J?h:K()}},"s9rbgc");
var g,Q=function(R){g=R};
_.Sj(function(){var R;(R=H)==null||R.disconnect();var I;(I=J)==null||I.disconnect()});
var u=function(R){R=K()+R;R>=0&&R<S()&&(a=!0,N(R))};
return _.G("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:e,"on:click":_.$X(function(R){if(_.A5(_.Lf(R),e.value,["BUTTON".toString()])||!g)return!1;_.qS().resolve(_.aA).resolveCommand(g,{forceClickLogging:!0});return!1}),
"on:touchstart":_.$X(function(){U(!0);return!1}),
"on:touchend":_.$X(function(){J||L();U(!1);return!1}),
hidden:function(){var R,I;return!((R=t())==null?0:(I=R.carouselItems)==null?0:I.length)}},_.G("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.G(_.E,{cond:function(){return t().carouselTitles},
then:function(R){return _.G(_.P5,{data:function(){return R()[c()&&J?h:K()]}},{carouselTitleViewModel:function(I){return _.G(YPU,{data:I.data,
handleCarouselNavigation:u,numItems:S,selectedIndex:K})}})}})),_.G("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:V},_.G("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+k()+"px;"}},_.G(_.E,{cond:function(){return t().carouselItems},
then:function(R){return _.G(_.nY,{each:R},function(I,tT){return _.G(_.P5,{data:function(){return I}},{carouselItemViewModel:function(ZV){return _.G(gMM,{data:ZV.data,
itemIndex:tT,selectedIndex:K,indexUpdatedCallback:Q,observer:J,title:function(){a:{var ED=tT();var o$,jV=(o$=t())==null?void 0:o$.carouselTitles;if(jV&&(ED=jV[ED])){var i8;ED=(i8=_.O(ED,LdM))==null?void 0:i8.title;break a}ED=void 0}return ED}})}})})}}))))},"Jm"),"yt-video-metadata-carousel-view-model",{props:{data:_.ij}});var l_U=_.r("web_action_buttons_update_owner_width")?32:12,Ct=function(){var D=_.X.apply(this,arguments)||this;D.isHovering=!1;D.enableColorSampling=_.r("web_delhi_colorful_sd");D.metadataBadgesInDescription=_.r("web_metadata_badges_in_description");D.descriptionCollapsed=!0;D.useFadedScrimDescription=_.r("kevlar_enable_faded_scrim_on_description");D.skinnyMode=!1;D.playlist=!1;D.isDark=document.documentElement.hasAttribute("dark");D.disableVideoOwnerOnTap=_.r("swatchie_video_owner_on_tap_ks");D.swatcherooDelayLoad=
_.r("swatcheroo_enable_ghost_cards");D.primaryMenuWidth=0;D.videoId="";D.titleHeadlineXs=_.r("web_watch_typography_title_headline_xs");D.titleHeadlineS=_.r("web_watch_typography_title_headline_s");D.titleHeadlineM=_.r("web_watch_typography_title_headline_m");D.titleHashtagBlackLinkified=_.r("web_title_hashtag_black_linkified");D.titleHashtagGreyLinkified=_.r("web_title_hashtag_grey_linkified");D.actionButtonsUpdateOwnerWidth=_.r("web_action_buttons_update_owner_width");D.shouldForceIconOnly=!1;D.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};D.isFullscreen=!1;D.isTheaterMode=!1;return D};
_.P(Ct,_.X);_.q=Ct.prototype;_.q.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.q.updateOwnerAndDescriptionPosition=function(){_.r("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.pd(this.bottomRowElement,this.ownerElement)):(_.pd(this.bottomRowElement,this.descriptionElement),_.pd(this.topRowElement,this.ownerElement)))};
_.q.titleOnTap=function(D){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.ed(_.bK(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;((t=window.getSelection())==null?0:t.toString().length)||this.handleExpandDescriptionCommands()}};
_.q.videoOwnerOnTap=function(D){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.ed(_.bK(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.q.detached=function(){var D=this,t;return _.Z(function(H){(t=D.resizeObserver)==null||t.disconnect();_.n2(H)})};
_.q.maybeAttachResizeObserver=function(){var D=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.W5(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){D.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.q.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var D=this.hostElement.clientWidth,t=Math.max(this.largerItemWrap?400:350,D/2-l_U);_.r("web_action_buttons_update_owner_width")&&(t=this.ownerElement.clientWidth+l_U);this.actionsOnSeparateLine=this.primaryMenuWidth>D-t?!0:!1}};
_.q.stripAttributedDescription=function(D){return{content:D.content.replace(/[\r\n]{2,}/g,"\n")}};
_.q.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.r("web_modern_buttons"),forceIconButton:!_.r("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:_.r("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"}}}};
_.q.videoPrimaryInfoRendererChanged=function(){var D;if((D=this.videoPrimaryInfoRenderer)==null?0:D.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.q.videoSecondaryInfoRendererChanged=function(){var D,t;(t=(D=this.descriptionInlineExpander).collapse)==null||t.call(D);this.descriptionExpandClientVe=_.Nx(110509);this.descriptionCollapseClientVe=_.Nx(110510);D=_.v3();t=_.lo();D&&t&&(_.r("combine_ve_grafts")?(_.A1(_.Pc(),this.descriptionExpandClientVe,t),_.A1(_.Pc(),this.descriptionCollapseClientVe,t)):_.y$(D,t,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.q.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.q.updateTopLevelIconsOnly=function(){var D=this;_.r("top_level_update_killswitch")||this.menu&&_.Jy.addLowPriorityJob(function(){D.menu.topLevelIconsOnly=D.skinnyMode},_.ZU("swathceroo_delay_flexible_menu_update",100))};
_.q.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.r("web_action_buttons_minimize_subscribe")};
_.q.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.q.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.q.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.q.onYtTextInlineExpanderExpandedChanged=function(){if(!_.r("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var D,t;(t=(D=this.structuredDescriptionContentRendererElement).resize)==null||t.call(D)}};
_.q.onRenderStamperFinished=function(D){(D==null?void 0:D.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.q.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.q.onYtExpanderLessTapped=function(){var D,t=(D=this.videoSecondaryInfoRenderer)==null?void 0:D.showLessCommand;t&&this.ytComponentBehavior.resolveCommand(t)};
_.q.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.q.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.q.onDescriptionClick=function(D){if(!_.ed(_.bK(D)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var t;((t=window.getSelection())==null?0:t.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.r("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.q.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.q.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.q.logCollapseClick=function(){var D=_.v3();D&&this.descriptionCollapseClientVe&&_.tV(D,this.descriptionCollapseClientVe)};
_.q.logExpandClick=function(){var D=_.v3();D&&this.descriptionExpandClientVe&&_.tV(D,this.descriptionExpandClientVe)};
_.q.collapseDescription=function(){this.descriptionCollapsed=!0};
_.q.scrollToTopOfContainer=function(){_.ET(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.q.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.q.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.q.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.q.resize=function(){if(this.descriptionInlineExpander){var D,t;(t=(D=this.descriptionInlineExpander).resize)==null||t.call(D)}else _.Yw(new _.nZ("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var H;(H=this.menu)==null||H.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.q.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var D,t,H,e,V=_.r("web_action_buttons_update_owner_width")?(H=(D=_.Kg(this.menu).querySelector("#button-shape"))==null?void 0:D.clientWidth)!=null?H:0:(e=(t=_.Kg(this.menu).querySelector("#button"))==null?void 0:t.clientWidth)!=null?e:0,b,a;D=((a=(b=_.Kg(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:b.clientWidth)!=null?a:0)+8+V;var w,h;V=(h=(w=_.Kg(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:w.children.length)!=null?h:2;D<=8*V||(this.primaryMenuWidth=D)}};
_.q.onYtUpdateTitleAction=function(D){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.O(D,EpU).title)};
_.q.onYtUpdateDescriptionAction=function(D){if(D=_.O(D,_.kG6)){var t,H=!((t=this.videoSecondaryInfoRenderer)==null||!t.attributedDescription);D.isEmpty||!D.description&&!D.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):D.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",D.attributedDescription):D.description&&(H?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.lf(D.description)):this.set("videoSecondaryInfoRenderer.description",D.description))}};
_.q.onYtDarkModeToggledAction=function(D){this.isDark=D};
_.q.registerPanel=function(){if(!_.r("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var D=_.r("web_watch_imax_theater_mode")&&this.isTheaterMode;D=_.r("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||D;var t=_.qS().resolve(_.tr);t&&!D&&t.registerPanel("engagement-panel-structured-description",this)}};
_.q.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.q.parseColorSamplingData=function(){var D;if(_.r("web_delhi_colorful_sd")&&((D=this.structuredDescriptionContentRenderer)==null?0:D.items)&&(D=this.structuredDescriptionContentRenderer.items.find(function(V){return!!_.O(V,dD)}))){var t,H;
this.hoverColor={lightTheme:(t=_.O(D,dD))==null?void 0:t.lightThemeColorPalette,darkTheme:(H=_.O(D,dD))==null?void 0:H.darkThemeColorPalette};var e;this.hoverText=(e=_.O(D,dD))==null?void 0:e.colorSampledDescriptionBodyText}};
_.q.updateHoverColor=function(){if(_.r("web_delhi_colorful_sd")){var D=this.hoverColor,t={},H;D=(H=this.isDark?D==null?void 0:D.darkTheme:D==null?void 0:D.lightTheme)!=null?H:{};H=_.F(MjU);for(var e=H.next();!e.done;e=H.next()){e=e.value;var V=D[e];t["--yt-saturated-"+_.UW(e)]=V?_.Qk(V):"initial"}_.jZ(this.hostElement,t)}};
_.q.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.q.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.q.showPanel=function(D){this.expandDescription();var t=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;t.resize();var H,e=D==null?void 0:(H=D.sectionListEngagementPanelExtras)==null?void 0:H.scrollToItemSectionIdentifier;e?_.Jy.addJob(function(){t==null||t.scrollToSection(e)},8):this.scrollToTopOfContainer()};
_.q.isVisible=function(){return!this.descriptionCollapsed};
_.q.getReloadContinuation=function(){};
_.q.hidePanel=function(){};
_.q.updatePanel=function(){};
_.ql.Object.defineProperties(Ct.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var D;return _.r("web_delhi_colorful_sd")&&(D=this.structuredDescriptionContentRenderer)!=null&&D.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(t){return!_.O(t,dD)&&!_.O(t,k7w)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.structuredDescriptionContentRendererComputed)!=null&&D.items){var t;D=_.F((t=this.structuredDescriptionContentRendererComputed)==null?void 0:t.items);for(t=D.next();!t.done;t=D.next())if(t=_.O(t.value,_.ZS4))return t}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.videoPrimaryInfoRenderer)==null?0:D.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return!!((D=this.videoSecondaryInfoRenderer)==null?0:(t=D.owner)==null?0:(H=t.videoOwnerRenderer)==null?0:H.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var D,t;if((D=this.videoSecondaryInfoRenderer)==null?0:(t=D.attributedDescription)==null?0:t.content){var H,e;return(e=this.stripAttributedDescription((H=this.videoSecondaryInfoRenderer)==null?void 0:H.attributedDescription))!=null?e:{runs:[]}}}if(_.r("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var V,b,a,w;return(w=(a=(V=this.videoSecondaryInfoRenderer)==
null?void 0:V.description)!=null?a:(b=this.videoSecondaryInfoRenderer)==null?void 0:b.attributedDescription)!=null?w:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var D,t;return(t=(D=this.videoSecondaryInfoRenderer)==null?void 0:D.headerRuns)!=null?t:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.commentsEntryPointHeaderRenderer)==null||!D.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.videoMetadataCarousel)==null||!D.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.ZU("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var D,t,H=Object.assign({},(D=this.videoSecondaryInfoRenderer)==null?void 0:(t=D.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer);if(H&&H.rows&&H.collapsedItemCount!==void 0&&!(H.rows.length<=H.collapsedItemCount))return H.rows=H.rows.slice(H.collapsedItemCount),H.collapsedItemCount=0,H}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var D,t,H=Object.assign({},(D=this.videoSecondaryInfoRenderer)==null?void 0:(t=D.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer);if(H&&H.rows&&H.collapsedItemCount!==void 0)return H.rows=H.rows.slice(0,H.collapsedItemCount),H.collapsedItemCount=H.rows.length,H}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var D,t;return!!((D=this.structuredDescriptionContentRendererComputed)==null?0:(t=D.items)==null?0:t.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var D;return(D=this.videoSecondaryInfoRenderer)==null?void 0:D.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return((D=this.videoSecondaryInfoRenderer)==null?0:(t=D.owner)==null?0:(H=t.videoOwnerRenderer)==null?0:H.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e;return!!((D=this.videoPrimaryInfoRenderer)==null?0:(t=D.videoActions)==null?0:(H=t.menuRenderer)==null?0:(e=H.flexibleItems)==null?0:e.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.HZ(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.HZ(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var D=this;if(_.r("web_title_hashtag_grey_delinkified")){var t,H=_.J$.unsafeClone((t=this.videoPrimaryInfoRenderer)==null?void 0:t.title);(t=H==null?void 0:H.runs)&&t.forEach(function(e){if(e==null?0:e.navigationEndpoint)e.textColor=4284506208,D.isDark&&(e.textColor=4289374890)});
return H}return(H=this.videoPrimaryInfoRenderer)==null?void 0:H.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.r("web_title_hashtag_black_delinkified")||_.r("web_title_hashtag_grey_delinkified")}}});
Ct.prototype.updateHoverColor=Ct.prototype.updateHoverColor;Ct.prototype.parseColorSamplingData=Ct.prototype.parseColorSamplingData;Ct.prototype.resetDescriptionState=Ct.prototype.resetDescriptionState;Ct.prototype.registerPanel=Ct.prototype.registerPanel;Ct.prototype.onYtExpanderLessTapped=Ct.prototype.onYtExpanderLessTapped;Ct.prototype.onYtExpanderMoreTapped=Ct.prototype.onYtExpanderMoreTapped;Ct.prototype.onRenderStamperFinished=Ct.prototype.onRenderStamperFinished;
Ct.prototype.onYtTextInlineExpanderExpandedChanged=Ct.prototype.onYtTextInlineExpanderExpandedChanged;Ct.prototype.onYtTextInlineExpanderCollapseClicked=Ct.prototype.onYtTextInlineExpanderCollapseClicked;Ct.prototype.onYtTextInlineExpanderExpandClicked=Ct.prototype.onYtTextInlineExpanderExpandClicked;Ct.prototype.moveActionsElement=Ct.prototype.moveActionsElement;Ct.prototype.updateShouldForceIconOnly=Ct.prototype.updateShouldForceIconOnly;Ct.prototype.updateTopLevelIconsOnly=Ct.prototype.updateTopLevelIconsOnly;
Ct.prototype.structuredDescriptionContentRendererChanged=Ct.prototype.structuredDescriptionContentRendererChanged;Ct.prototype.videoSecondaryInfoRendererChanged=Ct.prototype.videoSecondaryInfoRendererChanged;Ct.prototype.videoPrimaryInfoRendererChanged=Ct.prototype.videoPrimaryInfoRendererChanged;Ct.prototype.maybeUpdateActionsOnSeparateLine=Ct.prototype.maybeUpdateActionsOnSeparateLine;Ct.prototype.updateOwnerAndDescriptionPosition=Ct.prototype.updateOwnerAndDescriptionPosition;
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Ct.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Ct.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ct.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ct.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.sx),_.x("design:type",Object)],Ct.prototype,"ytdReduxBehavior",void 0);_.d([_.o5("#above-the-fold"),_.x("design:type",HTMLElement)],Ct.prototype,"aboveTheFoldContainer",void 0);_.d([_.o5("#menu ytd-menu-renderer"),_.x("design:type",Object)],Ct.prototype,"menu",void 0);_.d([_.o5("#description-inline-expander"),_.x("design:type",Object)],Ct.prototype,"descriptionInlineExpander",void 0);
_.d([_.o5("#faded-structured-description"),_.x("design:type",Object)],Ct.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.d([_.o5("#structured-description"),_.x("design:type",Object)],Ct.prototype,"structuredDescriptionContentRendererElement",void 0);_.d([_.o5("#title"),_.x("design:type",HTMLElement)],Ct.prototype,"titleElement",void 0);_.d([_.o5("#description"),_.x("design:type",HTMLElement)],Ct.prototype,"descriptionElement",void 0);
_.d([_.o5("#description-interaction"),_.x("design:type",Object)],Ct.prototype,"descriptionInteraction",void 0);_.d([_.o5("#owner"),_.x("design:type",HTMLElement)],Ct.prototype,"ownerElement",void 0);_.d([_.o5("#top-row"),_.x("design:type",HTMLElement)],Ct.prototype,"topRowElement",void 0);_.d([_.o5("#bottom-row"),_.x("design:type",HTMLElement)],Ct.prototype,"bottomRowElement",void 0);_.d([_.o5("#actions"),_.x("design:type",HTMLElement)],Ct.prototype,"actionsElement",void 0);
_.d([_.o5("#bottom-actions"),_.x("design:type",HTMLElement)],Ct.prototype,"bottomActionsElement",void 0);_.d([_.o5("#ytd-watch-info-text"),_.x("design:type",Object)],Ct.prototype,"watchInfoTextElement",void 0);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"videoPrimaryInfoRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"videoSecondaryInfoRenderer",void 0);
_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"commentsEntryPointHeaderRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"videoMetadataCarousel",void 0);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"structuredDescriptionContentRenderer",void 0);_.d([_.m("structuredDescriptionContentRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"structuredDescriptionContentRendererComputed",null);
_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"videoSummary",void 0);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"merchShelf",void 0);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"infoPanelBelowMetadata",void 0);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"hoverColor",void 0);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"hoverText",void 0);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"isHovering",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"enableColorSampling",void 0);_.d([_.m("structuredDescriptionContentRendererComputed"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"productShelf",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"metadataBadgesInDescription",void 0);_.d([_.m("videoPrimaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"shouldHideBadges",null);
_.d([_.m("productShelf","descriptionCollapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ct.prototype,"shouldShowProductShelf",null);_.d([_.M(),_.x("design:type",Boolean)],Ct.prototype,"isWatchFlexy",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"descriptionCollapsed",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ct.prototype,"useFadedScrimDescription",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"skinnyMode",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("videoSecondaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"largerItemWrap",null);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"playlist",void 0);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"clarifyBox",void 0);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"playerAds",void 0);
_.d([_.M(),_.x("design:type",Boolean)],Ct.prototype,"isDark",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ct.prototype,"actionsOnSeparateLine",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"disableVideoOwnerOnTap",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"swatcherooDelayLoad",void 0);_.d([_.M(),_.x("design:type",Boolean)],Ct.prototype,"suppressTopLevelMetadataRows",void 0);
_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"primaryMenuWidth",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"videoId",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"titleHeadlineXs",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"titleHeadlineS",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"titleHeadlineM",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"titleHashtagBlackLinkified",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"titleHashtagGreyLinkified",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.d([_.M(),_.x("design:type",Object)],Ct.prototype,"shouldForceIconOnly",void 0);
_.d([_.mx("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"updateOwnerAndDescriptionPosition",null);_.d([_.mx("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.d([_.m("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"descriptionText",null);_.d([_.m("videoSecondaryInfoRenderer.headerRuns"),_.x("design:type",Array),_.x("design:paramtypes",[])],Ct.prototype,"headerRuns",null);
_.d([_.M({value:!1}),_.m("commentsEntryPointHeaderRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"hasTeaser",null);_.d([_.M({value:!1,reflectToAttribute:!0}),_.m("videoMetadataCarousel"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"hasTeaserCarousel",null);_.d([_.M({value:3}),_.m("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"descriptionMaxLines",null);
_.d([_.m("videoSecondaryInfoRenderer.metadataRowContainer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"collapsibleMetadataRows",null);_.d([_.m("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"alwaysVisibleMetadataRows",null);
_.d([_.m("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ct.prototype,"hasInlineStructuredDescription",null);_.d([_.m("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ct.prototype,"showInlineStructuredDescription",null);
_.d([_.m("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"descriptionExpandCommand",null);_.d([_.m("videoSecondaryInfoRenderer.owner"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"videoOwnerCommand",null);_.d([_.M({reflectToAttribute:!0}),_.m("videoPrimaryInfoRenderer.videoActions"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ct.prototype,"flexMenuEnabled",null);
_.d([_.M({selector:_.vZ,reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"isFullscreen",void 0);_.d([_.M({selector:_.li,reflectToAttribute:!0}),_.x("design:type",Object)],Ct.prototype,"isTheaterMode",void 0);_.d([_.m("descriptionText","useFadedScrimDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ct.prototype,"showAttributedStringDescription",null);
_.d([_.m("descriptionText","useFadedScrimDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ct.prototype,"showFormattedStringDescription",null);_.d([_.m("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ct.prototype,"showFadedStructuredDescription",null);
_.d([_.mx("videoPrimaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"videoPrimaryInfoRendererChanged",null);_.d([_.m("videoPrimaryInfoRenderer.title"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"videoTitle",null);_.d([_.m("videoPrimaryInfoRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ct.prototype,"noEndpoints",null);
_.d([_.mx("videoSecondaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"videoSecondaryInfoRendererChanged",null);_.d([_.Os("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"structuredDescriptionContentRendererChanged",null);
_.d([_.Os("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"updateTopLevelIconsOnly",null);_.d([_.Os("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"updateShouldForceIconOnly",null);_.d([_.Os("skinnyMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"moveActionsElement",null);
_.d([_.rx("yt-text-inline-expander-expand-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"onYtTextInlineExpanderExpandClicked",null);_.d([_.rx("yt-text-inline-expander-collapse-clicked"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.d([_.rx("yt-text-inline-expander-expanded-changed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.d([_.rx("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],Ct.prototype,"onRenderStamperFinished",null);
_.d([_.rx("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"onYtExpanderMoreTapped",null);_.d([_.rx("yt-expander-less-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"onYtExpanderLessTapped",null);
_.d([_.Os("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"registerPanel",null);_.d([_.Os("videoSecondaryInfoRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"resetDescriptionState",null);
_.d([_.Os("structuredDescriptionContentRenderer"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"parseColorSamplingData",null);_.d([_.Os("hoverColor","isDark"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ct.prototype,"updateHoverColor",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Ct);
_.p(Ct,"ytd-watch-metadata",function(){if(mpl!==void 0)return mpl;var D=document.createElement("template");_.n(D,'\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" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden$="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return mpl=D},{mode:2});_.I_Y=function(D){_.mg.call(this);this.JSC$22925_watchApi=D;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;vMd(this);pIh(this);dpl(this);xpY(this);Re7(this);u2U(this);WGA(this)};
_.P(_.I_Y,_.mg);var dpl=function(D){var t=function(){_.r("kevlar_is_pupi_enabled")||mk(D)};
D.JSC$22925_watchApi.getRoot().addEventListener("yt-player-updated",t);D.addOnDisposeCallback(function(){D.JSC$22925_watchApi.getRoot().removeEventListener("yt-player-updated",t)})},Re7=function(D){if(_.r("kevlar_endscreen_auto_theater_mode")){var t=D.JSC$22925_watchApi.subscribeToActiveChanged(function(){QZ7(D)},!1);
D.addOnDisposeCallback(t)}},vMd=function(D){var t,H,e,V,b;
_.Z(function(a){if(a.nextAddress==1)return a.yield(D.JSC$22925_watchApi.playerApi,2);t=a.yieldResult;H=function(w){w=!!w;yL1(D)&&(w=w?2:1,_.Uz.getInstance().setState(w,!0,!1))};
e=function(w){w&&_.XtM(_.b_().getState())&&(_.ET(D.JSC$22925_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),D.temporaryTheaterMode=!0)};
V=function(w){_.r("kevlar_player_update_autonav_on_new_data")&&w.type==="newdata"&&(_.r("kevlar_is_pupi_enabled")||mk(D))};
b=function(w){D.onPlayerStateChange(w)};
_.r("kevlar_endscreen_auto_theater_mode")&&t.addEventListener("onAutonavCancelled",e);t.addEventListener("onAutonavChangeRequest",H);t.addEventListener("onVideoDataChange",V);t.addEventListener("onStateChange",b);D.addOnDisposeCallback(function(){t.removeEventListener("onAutonavChangeRequest",H);t.removeEventListener("onVideoDataChange",V);t.removeEventListener("onStateChange",b);_.r("kevlar_endscreen_auto_theater_mode")&&t.removeEventListener("onAutonavCancelled",e)});
_.n2(a)})},pIh=function(D){D.JSC$22925_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){D.autonavCancelledBySignal=!0;
_.r("kevlar_is_pupi_enabled")||mk(D)});
D.JSC$22925_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(t,H,e){H&&mk(D,e)});
D.JSC$22925_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){yL1(D)&&_.Uz.getInstance().setState(2,!0,!0)});
D.JSC$22925_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){yL1(D)&&_.Uz.getInstance().setState(1,!0,!0)});
D.addOnDisposeCallback(function(){D.JSC$22925_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");D.JSC$22925_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");D.JSC$22925_watchApi.unregisterActionHandler("yt-enable-autoplay-command");D.JSC$22925_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},xpY=function(D){var t=D.JSC$22925_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){WGA(D)}),H=D.JSC$22925_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){u2U(D)});
D.addOnDisposeCallback(function(){D.JSC$22925_watchApi.unsubscribeByKey(t);D.JSC$22925_watchApi.unsubscribeByKey(H)})},WGA=function(D){D.autonavCancelledBySignal=!1;
_.r("kevlar_is_pupi_enabled")||mk(D)},u2U=function(D){var t=D.JSC$22925_watchApi.getWatchNextResponse(),H,e;
var V=(t=(e=_.O(t==null?void 0:(V=t.playerOverlays)==null?void 0:(H=V.playerOverlayRenderer)==null?void 0:H.autonavToggle,_.cfB))==null?void 0:e.enabled)?2:1;_.r("kevlar_is_pupi_enabled")?_.Uz.getInstance().setState(V,!1,!1):mk(D);_.r("web_persist_server_autonav_state_on_client")&&typeof t==="boolean"&&_.D4T(V===2)},yL1=function(D){if(D.autonavCancelledBySignal)return!1;
var t,H,e,V;return!!((t=D.JSC$22925_watchApi.getWatchNextResponse())==null?0:(H=t.contents)==null?0:(e=H.twoColumnWatchNextResults)==null?0:(V=e.autoplay)==null?0:V.autoplay)};
_.I_Y.prototype.onPlayerStateChange=function(D){if(D===0){D=!_.Uz.getInstance().isAutoplaySetExplicitly();var t=this.JSC$22925_watchApi.getWatchNextResponse(),H,e,V,b;t=_.O(t==null?void 0:(H=t.contents)==null?void 0:(e=H.twoColumnWatchNextResults)==null?void 0:(V=e.autoplay)==null?void 0:(b=V.autoplay)==null?void 0:b.autoplayExplicitChoiceDialogRenderer,_.gSm);yL1(this)&&D&&t&&_.$P.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:t},popupType:"DIALOG"}})}else QZ7(this)};
var QZ7=function(D){D.temporaryTheaterMode&&(D.temporaryTheaterMode=!1,_.ET(D.JSC$22925_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},mk=function(D,t){t=t===void 0?!1:t;
var H;_.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$22925_watchApi.playerApi,2);H=e.yieldResult;yL1(D)?H.setAutonavState(_.Uz.getInstance().getState(),t):H.setAutonavState(1,t);_.n2(e)})};var B_E={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.D2U=function(D){_.mg.call(this);var t=this;this.JSC$22930_watchApi=D;var H=this.JSC$22930_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){zeM(t)});
this.addOnDisposeCallback(function(){t.JSC$22930_watchApi.unsubscribeByKey(H)});
zeM(this)};
_.P(_.D2U,_.mg);var zeM=function(D){var t=D.JSC$22930_watchApi.getPlayerResponse(),H=D.JSC$22930_watchApi.getWatchNextResponse();if(!_.waD(t==null?void 0:t.playabilityStatus,H==null?void 0:H.playerOverlays)){var e;var V=t==null?void 0:(e=t.playabilityStatus)==null?void 0:e.errorScreen}D.JSC$22930_watchApi.provideRenderingData("ERROR_SCREEN",V)};var tGM=_.l(function(D){var t=D.data;D=_.r("web_watch_video_details_hide_subtitle");var H=_.r("web_watch_video_details_single_line_title"),e=_.$X(function(){var w=t().onTap;w&&_.qS().resolve(_.aA).resolveCommand(w)}),V={},b={},a={};
return _.G("yt-player-overlay-video-details-renderer",{class:_.jQ("ytPlayerOverlayVideoDetailsRendererHost",(V.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.r("web_watch_video_details_transparent_background"),V)),"on:click":e,role:"button"},_.G("h2",{class:_.jQ("ytPlayerOverlayVideoDetailsRendererTitle",(b.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return H},b))},_.G(_.$7,{text:function(){return t().title}})),_.G("div",{class:_.jQ("ytPlayerOverlayVideoDetailsRendererSubtitle",
(a.ytPlayerOverlayVideoDetailsRendererHideSubtitle=D,a))},_.G(_.$7,{text:function(){return t().subtitle}})))},"Km");var Mv={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},HYM=_.l(function(D){var t=D.data;var H=_.dm(_.vZ),e=_.r("web_watch_action_bar_resize_buttons"),V=_.r("web_watch_video_action_dsdvb"),b=_.r("delhi_modern_web_player_icons")&&!_.r("enable_web_delhi_icons");D=_.r("delhi_modern_web_player_disable_frosted_glass");var a=_.r("delhi_modern_web_player_compact_controls"),w=_.r("web_player_quick_action_buttons_icon_only"),
h=function(){var N=e&&!H(),k={};a?k.size="S":N&&(k.size="M");w&&(k.iconPosition="icon-only");if(Object.keys(k).length!==0)return k},K={};
return _.G("yt-player-quick-action-buttons",{class:_.jQ("ytPlayerQuickActionButtonsHost",(K.ytPlayerQuickActionButtonsHostCompactControls=function(){return!H()||a},K.ytPlayerQuickActionButtonsHostDisableBackdropFilter=D,K))},_.G(_.nY,{each:function(){var N=t();
if(b){N=JSON.parse(JSON.stringify(N));for(var k=_.F(N),T=k.next();!T.done;T=k.next()){var c=T.value,U=void 0;T=_.O((U=_.O(c,_.et))==null?void 0:U.toggleButtonViewModel,_.Ez);var S=void 0;U=_.O((S=_.O(c,_.HK))==null?void 0:S.toggleButtonViewModel,_.Ez);S=_.O(c,_.h1);c=_.O(c,_.Ez);if(T)U=_.O(T.defaultButtonViewModel,_.h1),T=_.O(T.toggledButtonViewModel,_.h1),U&&U.iconName&&(U.iconName=Mv[U.iconName]),T&&T.iconName&&(T.iconName=Mv[T.iconName]);else if(U)T=_.O(U.defaultButtonViewModel,_.h1),U=_.O(U.toggledButtonViewModel,
_.h1),T&&T.iconName&&(T.iconName=Mv[T.iconName]),U&&U.iconName&&(U.iconName=Mv[U.iconName]);else if(S)S.iconName&&(S.iconName=Mv[S.iconName]);else if(c){T=_.O(c.defaultButtonViewModel,_.h1);U=_.O(c.toggledButtonViewModel,_.h1);c=void 0;if((c=T)==null?0:c.iconName)T.iconName=Mv[T.iconName];T=void 0;if((T=U)==null?0:T.iconName)U.iconName=Mv[U.iconName]}}}V&&(N=qYd(N));return N}},function(N){return _.G(_.P5,{data:function(){return N}},{buttonViewModel:function(k){return _.G(_.JX,{data:k.data,
buttonOverrides:h})},
likeButtonViewModel:function(k){return _.G(_.ZZ,{data:k.data,buttonShapeOverrideables:h})},
dislikeButtonViewModel:function(k){return _.G(_.w7,{data:k.data,buttonShapeOverrideables:h})},
toggleButtonViewModel:function(k){return _.G(_.VC,{data:k.data,buttonShapeOverrides:h})}})}))},"Lm");_.VG7=function(D){_.mg.call(this);var t=this;this.JSC$22934_watchApi=D;D=_.F(_.KR({},void 0,"n9wCVe"));this.quickActionsViewModel=D.next().value;this.setQuickActionsViewModel=D.next().value;D=_.F(_.KR({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=D.next().value;this.setPlayerOverlayVideoDetailsRenderer=D.next().value;var H=this.JSC$22934_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ehN(t)});
this.addOnDisposeCallback(function(){t.JSC$22934_watchApi.unsubscribeByKey(H)});
ehN(this)};
_.P(_.VG7,_.mg);
var ehN=function(D){var t,H,e,V,b,a,w,h,K,N,k,T,c,U;_.Z(function(S){if(S.nextAddress==1)return S.yield(D.JSC$22934_watchApi.playerApi,2);t=S.yieldResult;H=D.JSC$22934_watchApi.getWatchNextResponse();b=(e=H)==null?void 0:(V=e.playerOverlays)==null?void 0:V.playerOverlayRenderer;w=_.O((a=b)==null?void 0:a.fullscreenQuickActionsBar,_.T36);(K=(h=D).setQuickActionsViewModel)==null||K.call(h,w||{});w&&bYw(D,t);T=(N=b)==null?void 0:(k=N.videoDetails)==null?void 0:k.playerOverlayVideoDetailsRenderer;(U=(c=
D).setPlayerOverlayVideoDetailsRenderer)==null||U.call(c,T||{});T&&q4w(D,t);_.n2(S)})},bYw=function(D,t){if(!D.quickActionButtonsContainer)if(t.setFullscreenQuickActions){D.quickActionButtonsContainer=document.createElement("div");
t.setFullscreenQuickActions(D.quickActionButtonsContainer);var H=function(){return D.quickActionsViewModel().quickActionButtons||[]},e=_.M2(D.quickActionButtonsContainer,function(){return _.G(HYM,{data:H})},"Mm");
D.addOnDisposeCallback(function(){t.setFullscreenQuickActions(void 0);e()})}else _.Yw(new _.nZ("setFullscreenQuickActions not defined",{playerApi:Object.keys(t),
isReady:t.isReady(),appState:t.getAppState()}))},q4w=function(D,t){if(!D.playerOverlayVideoDetailsRendererContainer)if(t.setPlayerOverlayVideoDetailsRenderer){D.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
t.setPlayerOverlayVideoDetailsRenderer(D.playerOverlayVideoDetailsRendererContainer);var H=_.M2(D.playerOverlayVideoDetailsRendererContainer,function(){return _.G(tGM,{data:D.playerOverlayVideoDetailsRenderer})},"Nm");
D.addOnDisposeCallback(function(){t.setPlayerOverlayVideoDetailsRenderer(void 0);H()})}else _.Yw(new _.nZ("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(t),
isReady:t.isReady(),appState:t.getAppState()}))};_.SS=function(D){_.mg.call(this);var t=this;this.JSC$22940_watchApi=D;this.JSC$22940_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;D=_.Rj(_.b_(),_.vZ,function(H){t.onFullscreenChanged(H)});
this.addOnDisposeCallback(D);D=_.Rj(_.b_(),_.Yt,function(H){t.onWatchScroll(H)});
this.addOnDisposeCallback(D);_.r("kevlar_watch_while_v2")&&(D=_.Rj(_.b_(),_.vH,function(H){FI1(t,H)}),this.addOnDisposeCallback(D));
avU(this);wnh(this);ZYE();this.onWatchScroll(_.Yt(_.b_().getState()));_.lh("START_IN_FULL_WINDOW_MODE")&&this.JSC$22940_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.P(_.SS,_.mg);var avU=function(D){D.JSC$22940_watchApi.registerActionHandler("yt-fullscreen-change-action",function(t){var H=D.JSC$22940_watchApi.isActive();t&&!H||_.b_().dispatch(_.hV({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!t}}))});
D.addOnDisposeCallback(function(){D.JSC$22940_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},wnh=function(D){var t,H;
_.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$22940_watchApi.playerApi,2);t=e.yieldResult;H=function(){D.onFullerscreenEduClicked()};
t.addEventListener("onFullerscreenEduClicked",H);D.addOnDisposeCallback(function(){t.removeEventListener("onFullerscreenEduClicked",H)});
_.n2(e)})};
_.SS.prototype.onFullscreenChanged=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return t.isFullscreen=!!_.a4(),e.yield(t.JSC$22940_watchApi.playerApi,2);H=e.yieldResult;t.JSC$22940_miniplayerActive||H.setFauxFullscreen(t.isFullscreen);if(D&&(t.JSC$22940_watchApi.focusOnPlayer(),!t.fullerscreenEduButtonShownThisPlayback)){t.fullerscreenEduButtonShownThisPlayback=!0;var V=_.l_("yt-fullerscreen-edu-button-shown-count")||0;_.Yg("yt-fullerscreen-edu-button-shown-count",V+1,31536E3);
t.updateFullerscreenEduButtonSubtleModeState()}_.n2(e)})};
var FI1=function(D,t){var H;_.Z(function(e){if(e.nextAddress==1)return D.JSC$22940_miniplayerActive=t,e.yield(D.JSC$22940_watchApi.playerApi,2);H=e.yieldResult;H.setFauxFullscreen(!D.JSC$22940_miniplayerActive&&D.isFullscreen);_.n2(e)})};
_.SS.prototype.onWatchScroll=function(D){var t=this,H,e;return _.Z(function(V){if(V.nextAddress==1)return _.r("external_fullscreen_with_edu")?V.yield(t.JSC$22940_watchApi.playerApi,2):V.return();H=V.yieldResult;e=D<=0;t.shouldShowFullerscreenEdu!==e&&(t.shouldShowFullerscreenEdu=e,H.updateFullerscreenEduButtonVisibility(!t.shouldShowFullerscreenEdu));_.n2(V)})};
_.SS.prototype.onFullerscreenEduClicked=function(){this.JSC$22940_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var D=_.l_("yt-fullerscreen-edu-button-click-count")||0;_.Yg("yt-fullerscreen-edu-button-click-count",D+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.SS.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var D=this,t,H,e,V,b,a;return _.Z(function(w){if(w.nextAddress==1)return t=_.l_("yt-fullerscreen-edu-button-click-count")||0,H=_.l_("yt-fullerscreen-edu-button-shown-count")||0,e=_.ZU("external_fullscreen_button_click_threshold"),V=_.ZU("external_fullscreen_button_shown_threshold"),b=t>=e||H>=V,w.yield(D.JSC$22940_watchApi.playerApi,2);a=w.yieldResult;a.updateFullerscreenEduButtonSubtleModeState(b);_.n2(w)})};
_.SS.prototype.disposeInternal=function(){_.mg.prototype.disposeInternal.call(this);var D=_.a4();_.r("kevlar_exit_fullscreen_leaving_watch")&&D&&_.wE(D)};
var ZYE=function(){if(_.r("web_watch_add_viewport_meta_tag")){var D=document.querySelector("meta[name=viewport]"),t=document.head;t&&!D&&(D=document.createElement("meta"),D.name="viewport",D.content="width=device-width, initial-scale=1.0, viewport-fit=cover",t.appendChild(D))}};_.hhF=function(D){_.mg.call(this);var t=this;this.JSC$22944_watchApi=D;this.jobId=0;this.pendingRequestId=void 0;var H=this.JSC$22944_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){sDA(t)});
this.addOnDisposeCallback(function(){t.JSC$22944_watchApi.unsubscribeByKey(H)});
sDA(this)};
_.P(_.hhF,_.mg);var G57=function(D){_.Jy.cancelJob(D.jobId);D.pendingRequestId=void 0},sDA=function(D){G57(D);
var t=FdU(D.JSC$22944_watchApi.getWatchNextResponse());if(t){var H=250,e,V=(e=_.O(t,_.kim))==null?void 0:e.initialDelayMs;_.r("web_watch_updated_metadata_server_initial_delay")&&V&&(H=V);D.jobId=_.Jy.addLowPriorityJob(function(){return D.fetchUpdatedMetadata(t)},H)}};
_.hhF.prototype.fetchUpdatedMetadata=function(D,t){var H=this,e,V,b,a,w,h,K,N,k,T,c,U,S,L,J;return _.Z(function(g){switch(g.nextAddress){case 1:t&&(e={continuation:t});if(!_.r("web_get_updated_metadata_fantasy_panel_continuation_params")){g.jumpTo(2);break}V=_.qS().resolve(_.tr);b="PAsports_fantasy";return g.yield(V.isVisible(b,!0),3);case 3:g.yieldResult&&(K=(w=(a=V).getUpdatePanelContinuationData)==null?void 0:(h=w.call(a,b))==null?void 0:h.updatePanelContinuationRequest)&&(e||(e={}),e.clientParams=
{panelContinuationParams:{panelContinuation:K}});case 2:N=_.qS().resolve(_.xg);if(!N)return _.gT(Error("Uo")),g.return();k={};H.pendingRequestId=k;return g.yield(_.BZ(N,D,e),4);case 4:T=g.yieldResult;if(k!==H.pendingRequestId)return g.return();S=(c=T)==null?void 0:(U=c.continuation)==null?void 0:U.timedContinuationData;((L=S)==null?0:L.continuation)&&((J=S)==null?0:J.timeoutMs)&&(H.jobId=_.Jy.addLowPriorityJob(function(){return H.fetchUpdatedMetadata(D,S.continuation)},S.timeoutMs));
_.n2(g)}})};
_.hhF.prototype.disposeInternal=function(){_.mg.prototype.disposeInternal.call(this);G57(this)};var ECM=_.l(function(D){var t=_.$X(function(){var e=D.data().videoId;if(D.active())e=_.af(e),_.qS().resolve(_.aA).resolveCommand(e);else{var V=D.playerApi(),b=V.getAvailableAudioTracks(),a,w,h=(a=D.sourceVideoConfig().audioTracks)==null?void 0:(w=a.find(function(K){return K.isDefaultForSource}))==null?void 0:w.id;
if(b=b.find(function(K){return K.getLanguageInfo().getId()===h}))V.setAudioTrack(b,!0),V.setCompositeParam({activeVideoId:e}),D.setActiveSourceId(e)}}),H={};
return _.G("ytw-composite-source-video-overlay",{class:_.jQ("ytwCompositeSourceVideoOverlayHost",(H.ytwCompositeSourceVideoOverlayActive=D.active,H.ytwCompositeSourceVideoOverlayInteracting=D.interacting,H)),style:_.O7({left:function(){var e;return((e=D.data().topLeftCornerX)!=null?e:0)*100+"%"},
top:function(){var e;return((e=D.data().topLeftCornerY)!=null?e:0)*100+"%"},
width:function(){var e;return((e=D.data().width)!=null?e:0)*100+"%"},
height:function(){var e;return((e=D.data().height)!=null?e:0)*100+"%"}}),
"on:click":t},_.G("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Om");var KI1=_.l(function(D){var t=_.F(_.rm(function(){var a,w=(a=D.data().sources)==null?void 0:a.find(function(h){return h.isActive});
if(w)return w.videoId})),H=t.next().value,e=t.next().value;
t=_.F(_.KR(!1,void 0,"yNRzwd"));var V=t.next().value,b=t.next().value;return _.G("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.$X(function(){b(!0)}),
"on:mouseout":_.$X(function(){b(!1)})},_.G(_.E,{cond:function(){return D.data().sources},
then:function(a){return _.G(_.nY,{each:a},function(w){return _.G(ECM,{data:w,active:function(){return w.videoId===H()},
setActiveSourceId:e,interacting:V,playerApi:D.playerApi,sourceVideoConfig:function(){return a1M(D.compositeVideoConfig(),w.videoId)}})})}}))},"Pm");_.T1U=function(D){_.mg.call(this);this.JSC$22960_watchApi=D;D=_.F(_.KR({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=D.next().value;this.setCompositeVideoOverlayRenderer=D.next().value;D=_.F(_.KR({},void 0,"OlaJpc"));this.compositeVideoConfig=D.next().value;this.setCompositeVideoConfig=D.next().value;N1F(this);k5U(this)};
_.P(_.T1U,_.mg);var N1F=function(D){var t=D.JSC$22960_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){k5U(D)});
D.addOnDisposeCallback(function(){D.JSC$22960_watchApi.unsubscribeByKey(t)})},cZd=function(D){var t;
return _.Z(function(H){if(H.nextAddress==1)return H.yield(D.JSC$22960_watchApi.playerApi,2);t=H.yieldResult;t.setCompositeVideoOverlayRendererComponent(D.container);_.n2(H)})},jDh=function(D){var t;
return _.Z(function(H){if(H.nextAddress==1)return H.yield(D.JSC$22960_watchApi.playerApi,2);t=H.yieldResult;t.setCompositeVideoOverlayRendererComponent(void 0);_.n2(H)})},$2A=function(D){var t,H;
return _.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$22960_watchApi.playerApi,2);t=e.yieldResult;D.container=document.createElement("div");H=_.M2(D.container,function(){return _.G(KI1,{data:D.compositeVideoOverlayRenderer,compositeVideoConfig:D.compositeVideoConfig,playerApi:t})},"Qm");
D.addOnDisposeCallback(H);_.n2(e)})},k5U=function(D){var t,H,e,V,b,a,w,h;
_.Z(function(K){return K.nextAddress==1?(t=D.JSC$22960_watchApi.getPlayerResponse(),b=_.O((H=t)==null?void 0:(e=H.overlay)==null?void 0:(V=e.playerControlsOverlayRenderer)==null?void 0:V.compositeVideoOverlay,V2M),h=(a=t)==null?void 0:(w=a.playerConfig)==null?void 0:w.compositeVideoConfig,b&&D.setCompositeVideoOverlayRenderer(b),h&&D.setCompositeVideoConfig(h),b&&h?D.container?K.jumpTo(6):K.yield($2A(D),6):iYU(D)?K.yield(jDh(D),0):K.jumpTo(0)):iYU(D)?K.jumpTo(0):K.yield(cZd(D),0)})},iYU=function(D){var t;
return!((t=D.container)==null||!t.parentElement)};
_.T1U.prototype.disposeInternal=function(){iYU(this)&&jDh(this);_.mg.prototype.disposeInternal.call(this)};_.Phl=function(D){_.mg.call(this);var t=this;this.JSC$22966_watchApi=D;var H=this.JSC$22966_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var e=t.JSC$22966_watchApi.getPlayerResponse();if(e){var V,b;if(e=_.O((V=e.endscreen)==null?void 0:(b=V.endscreenRenderer)==null?void 0:b.hideButton,_.Ez)){var a;(a=t.setEndscreenHideButton)==null||a.call(t,e);rZ7(t)}}});
this.addOnDisposeCallback(function(){t.JSC$22966_watchApi.unsubscribeByKey(H)});
D=_.F(_.KR({},void 0,"ER3tqb"));this.endscreenHideButton=D.next().value;this.setEndscreenHideButton=D.next().value;OYl(this);U2N(this);oCh(this)};
_.P(_.Phl,_.mg);
var rZ7=function(D){var t,H;_.Z(function(e){if(e.nextAddress==1)return D.creatorEndscreenHideButtonContainer?e.return():e.yield(D.JSC$22966_watchApi.playerApi,2);t=e.yieldResult;D.creatorEndscreenHideButtonContainer=document.createElement("div");_.B1(D.creatorEndscreenHideButtonContainer,!1);t.setCreatorEndscreenHideButton(D.creatorEndscreenHideButtonContainer);H=_.M2(D.creatorEndscreenHideButtonContainer,function(){return _.G(_.VC,{data:D.endscreenHideButton,useOutlinedIcon:!0})},"Rm");
D.addOnDisposeCallback(function(){H();var V;(V=t)==null||V.setCreatorEndscreenHideButton(void 0)});
_.n2(e)})},OYl=function(D){var t,H;
_.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$22966_watchApi.playerApi,2);t=e.yieldResult;H=function(){D.creatorEndscreenHideButtonContainer&&_.B1(D.creatorEndscreenHideButtonContainer,!0)};
t.addEventListener("endscreenelementshown",H);D.addOnDisposeCallback(function(){var V;(V=t)==null||V.removeEventListener("endscreenelementshown",H)});
_.n2(e)})},U2N=function(D){var t=function(){D.creatorEndscreenHideButtonContainer&&_.B1(D.creatorEndscreenHideButtonContainer,!1)},H=D.JSC$22966_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",t),e=D.JSC$22966_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",t);
D.addOnDisposeCallback(function(){D.JSC$22966_watchApi.unsubscribeByKey(H);D.JSC$22966_watchApi.unsubscribeByKey(e)})},oCh=function(D){D.JSC$22966_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(t){var H=_.O(t,BwE);
D.JSC$22966_watchApi.playerApi.then(function(e){e==null||e.setCreatorEndscreenVisibility(!!H.hide)})});
D.addOnDisposeCallback(function(){D.JSC$22966_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.Ch1=function(D){_.mg.call(this);this.JSC$22972_watchApi=D;nCY(this)};
_.P(_.Ch1,_.mg);var nCY=function(D){var t,H;_.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$22972_watchApi.playerApi,2);t=e.yieldResult;H=function(V){_.b_().dispatch(_.hV({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:V}}))};
t.addEventListener("onRetroModeChanged",H);D.addOnDisposeCallback(function(){t.removeEventListener("onRetroModeChanged",H)});
_.n2(e)})};var Nwl=0,vG=0,TwN=0;var m2N;m2N=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.XB=function(D){_.mg.call(this);this.JSC$22977_watchApi=D;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;MGd(this)};
_.P(_.XB,_.mg);
var MGd=function(D){var t,H,e;_.Z(function(V){if(V.nextAddress==1)return V.yield(D.JSC$22977_watchApi.playerApi,2);t=V.yieldResult;if(D.isDisposed())return V.return();D.sessionStorage=_.KJY("yt-sleep-timer");D.sessionStorage||_.Yw(new _.nZ("SessionStorage for Sleep Timer is undefined."));((H=D.sessionStorage)==null?void 0:H.get("yt-sleep-timer"))==="true"&&($Nl(),(e=D.sessionStorage)==null||e.remove("yt-sleep-timer"),t.syncVolume());S4E(D,t);XnE(D,t);fvA(D,t);_.n2(V)})},S4E=function(D,t){var H=function(K){D.onSleepTimerSettingsChanged(K,
t)},e=function(K){D.onPlayerStateChange(K,t)},V=function(){D.onLoopChange(t)},b=function(){D.onCloseMiniplayer(t)},a=function(){Kdh(t,(0,_.aP)(),iMM(t),D.selectedOption==="End of video",t.getPlayerState()!==1)},w=function(){D.onSeekComplete(t)},h=function(){_.Jy.cancelJob(vG);
var K=t.getCurrentTime()>=t.getDuration(),N=D.selectedOption==="End of video"||D.selectedOption==="End of playlist"&&!hUN(D.playlistId);K&&N&&LIE(D,t)};
t.addEventListener("onSleepTimerSettingsChanged",H);t.addEventListener("onLoopChange",V);t.addEventListener("onLoopRangeChange",V);t.addEventListener("onStateChange",e);t.addEventListener("onCloseMiniplayer",b);t.addEventListener("onSleepTimerFeatureAvailable",a);t.addEventListener("SEEK_COMPLETE",w);t.addEventListener("onAdStart",h);D.addOnDisposeCallback(function(){t.removeEventListener("onSleepTimerSettingsChanged",H);t.removeEventListener("onLoopChange",V);t.removeEventListener("onLoopRangeChange",
V);t.removeEventListener("onStateChange",e);t.removeEventListener("onCloseMiniplayer",b);t.removeEventListener("onSleepTimerFeatureAvailable",a);t.removeEventListener("SEEK_COMPLETE",w);t.removeEventListener("onAdStart",h)})},XnE=function(D,t){var H=D.JSC$22977_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var e=t.getVideoData().video_id,V,b=(V=ZMl(D.JSC$22977_watchApi))==null?void 0:V.playlistId;
D.pauseAutonavPlayback&&(t.pauseVideo(),t.syncVolume(),D.pauseAutonavPlayback=!1);if(D.selectedOption==="End of video"&&e!==D.videoId)ft(D,t);else{if(D.selectedOption==="End of playlist"){V=hUN(D.playlistId);if(b!==D.playlistId){ft(D,t);break a}V?V&&AZU(D,t):gCA(D,t)}D.videoId=e;D.playlistId=b}}});
D.addOnDisposeCallback(function(){D.JSC$22977_watchApi.unsubscribeByKey(H)})},fvA=function(D,t){var H=_.qS().resolve(_.sg),e=_.Rj(H,_.Tf$,function(b){b&&D.selectedOption!=="Off"&&ft(D,t)}),V=D.JSC$22977_watchApi.subscribeToActiveChanged(function(b){var a,w;
return _.Z(function(h){if(h.nextAddress==1)return h.yield(_.d3().navigationFinishPromise,2);a=!_.L8v();w=_.qS().resolve(_.dL).isMiniplayerActive();b||!wUU(D.selectedOption)||w||a||ft(D,t);_.n2(h)})},!1);
H=_.Rj(H,function(b){return b.entities.playlistLoopStateEntity||{}},function(b){b=b===void 0?{}:b;
var a=sEU(D.JSC$22977_watchApi);if(a){var w;((w=b[a])==null?void 0:w.state)==="PLAYLIST_LOOP_STATE_ALL"&&wUU(D.selectedOption)&&ft(D,t)}});
D.addOnDisposeCallback(e);D.addOnDisposeCallback(H);D.addOnDisposeCallback(V)};
_.XB.prototype.onSleepTimerSettingsChanged=function(D,t){switch(D){case "Off":this.selectedOption!=="Off"&&ft(this,t);break;case "End of video":case "End of playlist":JZw(this,D,t);break;default:JZw(this,D,t,m2N.get(D))}};
_.XB.prototype.onLoopChange=function(D){(D.getLoopVideo()||D.getLoopRange())&&wUU(this.selectedOption)&&ft(this,D)};
_.XB.prototype.onCloseMiniplayer=function(D){wUU(this.selectedOption)&&ft(this,D)};
var JZw=function(D,t,H,e){Y4E(D,H);D.selectedOption=t;D.videoId=H.getVideoData().video_id;D.playlistId="";var V;(V=D.sessionStorage)==null||V.set("yt-sleep-timer","true");D.adjustmentsCount++;Kdh(H,(0,_.aP)(),iMM(H),D.selectedOption==="End of video");if(D.selectedOption==="End of video")gCA(D,H),lvY(D,H);else if(D.selectedOption==="End of playlist"){lvY(D,H);var b,a;D.playlistId=(a=(b=ZMl(D.JSC$22977_watchApi))==null?void 0:b.playlistId)!=null?a:"";hUN(D.playlistId)||gCA(D,H)}else e&&(D.presetFadeSchedulerId=
_.Mx(_.Jy,function(){cAM(H,15E3)},e-15E3),D.presetPauseSchedulerId=_.Mx(_.Jy,function(){LIE(D,H)},e),kFY(H,(0,_.aP)(),e))},LIE=function(D,t){if(D.JSC$22977_watchApi.isActive()){var H={dismissDialogEndpoint:{}};
var e={commandExecutorCommand:{commands:[H,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};H={buttonViewModel:{title:_.OT("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:H}}};e={buttonViewModel:{title:_.OT("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:e}}};var V={dialogHeaderViewModel:{headline:{content:_.OT("SLEEP_TIMER_ENDED_TITLE")}}},
b={basicContentViewModel:{paragraphs:[{text:{content:_.OT("SLEEP_TIMER_ENDED_TEXT")}}]}};H={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:V,content:b,footer:{panelFooterViewModel:{primaryButton:H,secondaryButton:e,shouldHideDivider:!0}}}}}}};_.qS().resolve(_.aA).resolveCommand(H,{form:{element:D}})}else $Nl();vCd(D,!1);pnM(D,t);t.pauseVideo();_.Uz.getInstance().getState()===2&&t.getPlayerState()===5&&(D.pauseAutonavPlayback=!0)},ft=function(D,t){vCd(D,!0);
pnM(D,t);$Nl()},pnM=function(D,t){Y4E(D,t);
D.selectedOption="Off";D.videoId="";D.playlistId="";D.adjustmentsCount=0;var H;(H=D.sessionStorage)==null||H.remove("yt-sleep-timer");_.Jy.cancelJob(Nwl);t.resetSleepTimerMenuSettings()},vCd=function(D,t){t={timer_length_adjustment_times_during_session:D.adjustmentsCount-1,
is_session_cancelled:t};switch(D.selectedOption){case "Off":t.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":t.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":t.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:t.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",t.option_duration_in_minutes=m2N.get(D.selectedOption)/6E4}_.L7("sleepTimerSessionFinishEvent",t)};
_.XB.prototype.onPlayerStateChange=function(D,t){D===1?Kdh(t,(0,_.aP)(),iMM(t),this.selectedOption==="End of video"):D===0?(_.Jy.cancelJob(vG),t.setVideoTimeLeft(EhU(0,0))):D===2&&_.Jy.cancelJob(vG);this.selectedOption==="End of video"?D===0?LIE(this,t):D===2&&jEM(t):this.selectedOption!=="End of playlist"||hUN(this.playlistId)||(D===0?LIE(this,t):D===2&&jEM(t))};
_.XB.prototype.onSeekComplete=function(D){D.getPlayerState()===2&&Kdh(D,(0,_.aP)(),iMM(D),this.selectedOption==="End of video",!0)};
_.XB.prototype.onCueRangeEnter=function(D,t){D==="sleep-timer-fade-audio"&&cAM(t,(t.getDuration()-t.getProgressState().current)*1E3)};
_.XB.prototype.onCueRangeExit=function(D,t){D==="sleep-timer-fade-audio"&&t.getPlayerState()!==0&&jEM(t,!0)};
var gCA=function(D,t){t.addCueRange("sleep-timer-fade-audio",t.getDuration()-15,t.getDuration());t.addEventListener("onCueRangeEnter",function(H){D.onCueRangeEnter(H,t)});
t.addEventListener("onCueRangeExit",function(H){D.onCueRangeExit(H,t)})},AZU=function(D,t){t.removeCueRange("sleep-timer-fade-audio");
t.removeEventListener("onCueRangeEnter",function(H){D.onCueRangeEnter(H,t)});
t.removeEventListener("onCueRangeExit",function(H){D.onCueRangeExit(H,t)})},Y4E=function(D,t){wUU(D.selectedOption)?AZU(D,t):(_.Jy.cancelJob(D.presetPauseSchedulerId),_.Jy.cancelJob(D.presetFadeSchedulerId),D.presetPauseSchedulerId=0,D.presetFadeSchedulerId=0);
jEM(t,!0)},lvY=function(D,t){t.setLoop(!1);
t.setLoopVideo(!1);t.setLoopRange(null);(D=sEU(D.JSC$22977_watchApi))&&_.qS().resolve(_.sg).dispatch(_.nf("playlistLoopStateEntity",D,{key:D,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.uHU=function(D){_.mg.call(this);this.JSC$22980_watchApi=D;d27(this);x2Y(this);RhU(this);D=D.getRoot();if(D.is==="ytd-watch-flexy"||D.is==="ytd-watch-grid")D.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.LiM();_.r("web_watch_log_theater_mode_cookie_state")&&_.ri.get("wide","0")==="1"&&_.sGT("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.P(_.uHU,_.mg);var d27=function(D){var t,H;_.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$22980_watchApi.playerApi,2);t=e.yieldResult;H=function(V){WIU(D,!!V)};
t.addEventListener("SIZE_CLICKED",H);D.addOnDisposeCallback(function(){t.removeEventListener("SIZE_CLICKED",H)});
_.n2(e)})},x2Y=function(D){D.JSC$22980_watchApi.registerActionHandler("yt-toggle-theater-mode",function(t,H){WIU(D,t,H===void 0?!0:H)});
D.addOnDisposeCallback(function(){D.JSC$22980_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.uHU.prototype.getState=function(){return _.li(_.b_().getState())};
var WIU=function(D,t,H){H=H===void 0?!0:H;var e,V,b,a=_.r("enable_player_resize_transition")&&!!D.JSC$22980_watchApi.getWatchNextResponse()&&!((e=D.JSC$22980_watchApi.getWatchNextResponse())==null?0:(V=e.contents)==null?0:(b=V.twoColumnWatchNextResults)==null?0:b.conversationBar);_.KIO(function(){_.b_().dispatch(_.hV({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:t}}));_.r("theater_mode_scroll_to_top_killswitch")||D.JSC$22980_watchApi.scrollWatchTo(0,!1);_.a4()&&_.r("external_fullscreen")&&_.wE(document.documentElement);
RhU(D);H&&_.Oa("wide",t?"1":"0",-1);_.ET(D.JSC$22980_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);D.JSC$22980_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:t});t&&_.LiM()},{shouldWrap:a})},RhU=function(D){var t;
_.Z(function(H){if(H.nextAddress==1)return H.yield(D.JSC$22980_watchApi.playerApi,2);t=H.yieldResult;t.setSizeStyle(!0,D.getState());_.n2(H)})};var yZ7=function(D){_.mg.call(this);var t=this;this.playerApi=D;this.timeToPanelSyncKeyMap={};var H;if(D==null?0:(H=D.isReady)==null?0:H.call(D)){H=_.Rj(_.qS().resolve(_.sg),function(V){return V.entities.timedMarkersListSyncEntity||{}},function(V,b){V=V===void 0?{}:V;
b=b===void 0?{}:b;for(var a=_.F(Object.keys(b)),w=a.next();!w.done;w=a.next())w=w.value,V[w]!==b[w]&&Iv7(t,b[w]);b=_.F(Object.keys(V));for(a=b.next();!a.done;a=b.next())a=a.value,w=V[a],t.timeToPanelSyncKeyMap[a]&&QDd(t,w)});
this.addOnDisposeCallback(H);var e=function(V){t.onCueRangeEnter(V)};
D.addEventListener("onCueRangeEnter",e);this.addOnDisposeCallback(function(){var V;(V=D.removeEventListener)==null||V.call(D,"onCueRangeEnter",e)})}};
_.P(yZ7,_.mg);
var QDd=function(D,t){var H,e;if((H=D.playerApi)==null?0:(e=H.isReady)==null?0:e.call(H)){var V;if((H=t==null?void 0:(V=t.timedListData)==null?void 0:V.sections)&&t!=null&&t.key)for(V=_.F(H),H=V.next();!H.done;H=V.next())if(H=H.value,H.timedSyncDataList&&H.sectionId)for(e=0;e<H.timedSyncDataList.length;e++){var b=H.timedSyncDataList[e];b.syncItemId&&D.playerApi.addCueRange(H.sectionId+"_"+t.key+"_"+b.syncItemId,Number(b.videoTimeMs)/1E3,e===H.timedSyncDataList.length-1?0x8000000000000:Number(H.timedSyncDataList[e+
1].videoTimeMs)/1E3)}}},Iv7=function(D,t){var H,e;
if((H=D.playerApi)==null?0:(e=H.isReady)==null?0:e.call(H)){var V;if((H=t==null?void 0:(V=t.timedListData)==null?void 0:V.sections)&&t!=null&&t.key)for(V=_.F(H),H=V.next();!H.done;H=V.next())if(H=H.value,H.timedSyncDataList&&H.sectionId){e=_.F(H.timedSyncDataList);for(var b=e.next();!b.done;b=e.next())b=b.value,b.syncItemId&&D.playerApi.removeCueRange(H.sectionId+"_"+t.key+"_"+b.syncItemId)}}};
yZ7.prototype.onCueRangeEnter=function(D){for(var t=_.F(Object.keys(this.timeToPanelSyncKeyMap)),H=t.next();!H.done;H=t.next()){H=H.value;var e=_.F(D.split("_"+H+"_")),V=e.next().value;e=e.next().value;if(V&&e){D=_.qS().resolve(_.sg);t=this.timeToPanelSyncKeyMap[H];var b=_.EcR(D.getState(),t);H=B1h(H,V,e);if(H===-1)break;H={activeSyncId:e,activeItemIndex:H,activeSectionInfo:{sectionIdentifier:V}};b?D.dispatch(_.LP("markersEngagementPanelSyncEntity",t,H)):D.dispatch(_.nf("markersEngagementPanelSyncEntity",
t,Object.assign({},{key:t},H)));break}}};
var B1h=function(D,t,H){var e=_.qS().resolve(_.sg),V,b;D=(V=mH1(e.getState(),D))==null?void 0:(b=V.timedListData)==null?void 0:b.sections;if(!D)return-1;V=0;b=_.F(D);for(D=b.next();!D.done;D=b.next()){D=D.value;e=D.timedSyncDataList||[];if(D.sectionId===t)return t=e.findIndex(function(a){return a.syncItemId===H}),t===-1?t:V+t;
V+=e.length}return-1};_.tcA=function(D){_.mg.call(this);var t=this;this.JSC$22993_watchApi=D;this.unresolvedCommands=[];this.JSC$22993_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(H){zhA(t,H)});
this.addOnDisposeCallback(function(){t.JSC$22993_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
DSN(this)};
_.P(_.tcA,_.mg);var DSN=function(D){var t;_.Z(function(H){if(H.nextAddress==1)return H.yield(D.JSC$22993_watchApi.playerApi,2);t=H.yieldResult;if(D.isDisposed())return H.return();D.timedSyncObserver=new yZ7(t);D.unresolvedCommands.length&&(D.unresolvedCommands.forEach(function(e){return zhA(D,e)}),D.unresolvedCommands=[]);
_.c1(D,D.timedSyncObserver);_.n2(H)})},zhA=function(D,t){if(D.timedSyncObserver){var H=_.O(t,Ddd);
if(H&&H.timedSyncEntityKey&&H.panelSyncEntityKey){D=D.timedSyncObserver;t=H.timedSyncEntityKey;var e=H.panelSyncEntityKey;H=!!H.isEnabled;H=H===void 0?!0:H;var V=_.qS().resolve(_.sg);V=mH1(V.getState(),t);H?D.timeToPanelSyncKeyMap[t]||(D.timeToPanelSyncKeyMap[t]=e,QDd(D,V)):(delete D.timeToPanelSyncKeyMap[t],Iv7(D,V))}}else D.unresolvedCommands.push(t)};var HZ7=_.l(function(D){var t=D.data,H=D.maybeLogSmartSkipClientData,e=null,V=null,b=_.r("web_enable_auto_focus_for_timely_action_button"),a=function(){e=document.activeElement},w=function(){t().smartSkipMetadata&&(e=document.activeElement,_.yxF(function(){return V}))},h=function(N){if(t().smartSkipMetadata&&(!N||N.key!=="Enter")){e&&e.isConnected&&(_.yxF(function(){return e}),e=null);
var k;(k=V)==null||k.blur()}};
D=_.$X(function(){H==null||H(!0,t());return!1});
var K=_.FI(_.Yi(function(){return t().rendererContext},{onTap:function(N,k){k({disableClickTracking:!0})}}),_.wv({visibilityCallback:function(N){if(b)N?V&&t().smartSkipMetadata&&(w(),document.addEventListener("focusin",a)):(document.removeEventListener("focusin",a),h());
else if(N){N=_.gF(t().rendererContext);var k=Number(t().maxVisibleDurationMilliseconds),T,c=(T=_.O(t().rendererContext,_.Pm))==null?void 0:T.label;N&&k&&c&&(T={label:c,command:N,durationMs:k},_.qS().resolve(_.H2).enqueue(T))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.SG(function(){if(b){var N;if((V=(N=K.value)==null?void 0:N.querySelector("button"))&&t().smartSkipMetadata){var k;(k=K.value)==null||k.addEventListener("keydown",h)}}});
_.Sj(function(){b&&(V&&t().smartSkipMetadata&&V.removeEventListener("keydown",h),document.removeEventListener("focusin",a),h())});
return _.G("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:K,"on:click":D},_.G(_.P5,{data:function(){return t().content}},{buttonViewModel:_.JX}))},"Sm");var eEN=_.l(function(D){var t=D.data,H=D.playerApi,e=_.qS().resolve(_.qFH);D=_.F(_.rm(function(){t()}));
var V=D.next().value,b=D.next().value,a=function(){return UN7(t(),V())},w=function(K,N){var k,T,c=(k=_.O(N==null?void 0:N.rendererContext,_.nz))==null?void 0:(T=k.loggingDirectives)==null?void 0:T.trackingParams;
if((N=N==null?void 0:N.smartSkipMetadata)&&N.loggingData&&(T=N.loggingData,N=T.algorithmId,k=T.startMilliseconds,T=T.endMilliseconds,N&&k!==void 0&&T!==void 0)){var U,S;K={smartSkipData:Object.assign({},{versionName:N,startMediaTimeMs:k,endMediaTimeMs:T},K&&{userInteractionMediaTimeMs:(Math.floor(((U=_.FA())==null?void 0:(S=U.getPlayer())==null?void 0:S.getCurrentTime())||0)*1E3).toString()})};U=_.v3();var L;c&&(L=_.Sa(c));U&&L&&_.eR(U,L,K)}},h=function(K,N){var k=UN7(t(),K);
if(k){var T=_.O(k,OMl),c;if(c=N)c=H(),k=_.O(k,OMl),c=k!=null&&k.smartSkipMetadata?!(c==null?0:c.isSameMarkerTypeVisible((k==null?void 0:k.smartSkipMetadata.markerKey)||"")):!0;if(c){var U,S;(T==null?0:(U=T.smartSkipMetadata)==null?0:(S=U.loggingData)==null?0:S.isCounterfactual)||(w(!1,T),b(K))}else N||V()!==K||b(void 0)}};
_.Mp(function(){var K=t().timelyActions;if(K){K=_.F(K);for(var N=K.next();!N.done;N=K.next()){N=_.O(N.value,OMl);var k=void 0;(k=N)!=null&&k.cueRangeId&&e.timelyActionsMap.set(N.cueRangeId,h)}_.Sj(function(){e.timelyActionsMap.clear()})}},"PSaw4c");
return _.G("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.G(_.P5,{data:a},{timelyActionViewModel:function(K){return _.G(HZ7,{data:K.data,maybeLogSmartSkipClientData:function(){w(!0,_.O(a(),OMl))}})}}))},"Um");_.bZY=function(D){_.mg.call(this);this.JSC$23005_watchApi=D;D=_.F(_.KR({},void 0,"UN7k5e"));this.timelyActionsOverlay=D.next().value;this.setTimelyActionsOverlay=D.next().value;Vc1(this)};
_.P(_.bZY,_.mg);var Vc1=function(D){var t,H,e,V;_.Z(function(b){if(b.nextAddress==1)return qaM(D),FhN(D),D.timelyActionsContainer=document.createElement("div"),b.yield(D.JSC$23005_watchApi.playerApi,2);t=b.yieldResult;(e=(H=t).insertTimelyActionUi)==null||e.call(H,D.timelyActionsContainer);V=_.M2(D.timelyActionsContainer,function(){return _.G(eEN,{data:D.timelyActionsOverlay,playerApi:t})},"Vm");
D.addOnDisposeCallback(V);_.n2(b)})},FhN=function(D){var t=D.JSC$23005_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){qaM(D)});
D.addOnDisposeCallback(function(){D.JSC$23005_watchApi.unsubscribeByKey(t)})},qaM=function(D){var t=D.JSC$23005_watchApi.getWatchNextResponse();
if(t){var H,e;if(t=_.O((H=t.playerOverlays)==null?void 0:(e=H.playerOverlayRenderer)==null?void 0:e.timelyActionsOverlayViewModel,t27)){var V;(V=D.setTimelyActionsOverlay)==null||V.call(D,t)}}};_.wYU=function(D){_.mg.call(this);this.JSC$23009_watchApi=D;aUU(this)};
_.P(_.wYU,_.mg);var aUU=function(D){var t,H;_.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$23009_watchApi.playerApi,2);t=e.yieldResult;H=function(V){_.$P.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.O(V,_.WDE)},popupType:"TOAST"}})};
t.addEventListener("onYtShowToast",H);D.addOnDisposeCallback(function(){t.removeEventListener("onYtShowToast",H)});
_.n2(e)})};var ZZw,GWF,Tih,sA1,hEd,kW1,Khh,Nid,cWl,$SE;ZZw=!1;_.ExA=function(D){_.mg.call(this);this.JSC$23012_watchApi=D;this.fullscreen=this.theater=!1;sA1(this);hEd(this);GWF(this)};
_.P(_.ExA,_.mg);GWF=function(D){var t,H,e;_.Z(function(V){if(V.nextAddress==1)return V.yield(D.JSC$23012_watchApi.playerApi,2);t=V.yieldResult;if(D.isDisposed())return V.return();H=D.JSC$23012_watchApi.getElement("CINEMATICS");if(!H)return V.return();D.JSC$23012_cinematicController=new _.iB(H,t);_.c1(D,D.JSC$23012_cinematicController);_.NoE(D.JSC$23012_cinematicController);Khh(D,_.H86());e=D.JSC$23012_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(b){Nid(D,b)});
D.addOnDisposeCallback(function(){D.JSC$23012_watchApi.unsubscribeByKey(e)});
kW1(D);Nid(D,D.JSC$23012_cinematicController.isAllowed());Tih(D);cWl(D);_.n2(V)})};
Tih=function(D){D.fullscreen=_.vZ(_.b_().getState());D.theater=_.li(_.b_().getState());_.jAd(D,D.fullscreen,D.theater);var t=_.Rj(_.b_(),_.vZ,function(e){D.fullscreen=e;_.jAd(D,D.fullscreen,D.theater)}),H=_.Rj(_.b_(),_.li,function(e){D.theater=e;
_.jAd(D,D.fullscreen,D.theater)});
D.addOnDisposeCallback(t);D.addOnDisposeCallback(H)};
sA1=function(D){var t=D.JSC$23012_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){kW1(D)});
D.addOnDisposeCallback(function(){D.JSC$23012_watchApi.unsubscribeByKey(t)})};
hEd=function(D){var t,H;_.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$23012_watchApi.playerApi,2);t=e.yieldResult;H=function(V){Khh(D,V)};
t.addEventListener("cinematicSettingsToggleChange",H);D.addOnDisposeCallback(function(){t.removeEventListener("cinematicSettingsToggleChange",H)});
_.n2(e)})};
kW1=function(D){var t=D.JSC$23012_watchApi.getWatchNextResponse(),H;t=_.O(t==null?void 0:(H=t.pageVisualEffects)==null?void 0:H[0],_.tx);var e;(e=D.JSC$23012_cinematicController)==null||_.ToA(e,t)};
Khh=function(D,t){var H;(H=D.JSC$23012_cinematicController)==null||_.k4h(H,t);$SE(D)};
Nid=function(D,t){var H;_.Z(function(e){if(e.nextAddress==1)return _.r("kevlar_watch_cinematics_invisible")&&(t=!1),e.yield(D.JSC$23012_watchApi.playerApi,2);H=e.yieldResult;H.updateCinematicSettings(t);$SE(D);_.n2(e)})};
cWl=function(D){var t=_.Ph();if(_.r("kevlar_measure_ambient_mode_idle")&&!t.getFlag(192)&&!ZZw){ZZw=!0;var H=_.C7(_.Jy,function(){_.qS().resolve(_.GtH).start(1E4)},5E3);
D.addOnDisposeCallback(function(){_.Jy.cancelJob(H);_.qS().resolve(_.GtH).stop()})}};
_.jAd=function(D,t,H){D.fullscreen=t;D.theater=H;var e;(e=D.JSC$23012_cinematicController)==null||e.setFullscreen(D.fullscreen,D.theater);if(_.r("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(D.theater||D.fullscreen){var V;(V=D.JSC$23012_cinematicController)==null||_.c37(V)}else if((D=D.JSC$23012_cinematicController)!=null){var b;(b=D.currentCinematicEffect)==null||b.pause()}};
$SE=function(D){if(_.r("web_cinematic_theater_mode")||_.r("web_cinematic_fullscreen")){var t;D.JSC$23012_watchApi.getRoot().toggleCinematicsActive(!((t=D.JSC$23012_cinematicController)==null||!t.isEnabled()))}};_.US7=function(D){_.mg.call(this);var t=this;this.JSC$23015_watchApi=D;this.commentsReady=!1;this.setCommentsJobId=0;D=_.Rj(_.b_(),_.Yt,function(){iZM(t)});
this.addOnDisposeCallback(D);var H=this.JSC$23015_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){rWd(t)}),e=this.JSC$23015_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){rWd(t)});
this.addOnDisposeCallback(function(){t.JSC$23015_watchApi.unsubscribeByKey(H);t.JSC$23015_watchApi.unsubscribeByKey(e)});
var V=function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&OZl(t,"false")};
this.JSC$23015_watchApi.getRoot().addEventListener("yt-page-data-will-update",V);this.addOnDisposeCallback(function(){t.JSC$23015_watchApi.getRoot().removeEventListener("yt-page-data-will-update",V)});
rWd(this)};
_.P(_.US7,_.mg);var rWd=function(D){D.commentsReady=!1;_.Jy.cancelJob(D.setCommentsJobId);D.setCommentsJobId=_.C7(_.Jy,function(){iZM(D)},1E3)},iZM=function(D){if(!D.commentsReady){_.vh("cmi");
_.Jy.cancelJob(D.setCommentsJobId);var t,H,e,V,b=(t=D.JSC$23015_watchApi.getWatchNextResponse())==null?void 0:(H=t.contents)==null?void 0:(e=H.twoColumnWatchNextResults)==null?void 0:(V=e.results)==null?void 0:V.results.contents;t=void 0;if(b&&b.length)for(b=_.F(b),H=b.next();!H.done;H=b.next())if(H=H.value,V=e=void 0,((e=H)==null?void 0:(V=e.itemSectionRenderer)==null?void 0:V.sectionIdentifier)==="comment-item-section"){_.r("web_watch_provide_undefined_comments")?t=H.itemSectionRenderer:D.JSC$23015_watchApi.provideRenderingData("COMMENTS",
H.itemSectionRenderer);OZl(D,"true");break}_.r("web_watch_provide_undefined_comments")&&D.JSC$23015_watchApi.provideRenderingData("COMMENTS",t);D.commentsReady=!0;D.JSC$23015_watchApi.dispatchEvent("yt-watch-comments-ready")}},OZl=function(D,t){var H;
(H=D.JSC$23015_watchApi.getElement("COMMENTS"))==null||H.setAttribute("canScheduleJobs",t)};_.mSN=function(D){_.mg.call(this);var t=this;this.JSC$23018_watchApi=D;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.r("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.r("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.r("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.ZU("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)ox7(this);
else{var H=this.JSC$23018_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){PyE(t);Lt(t)}),e=this.JSC$23018_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){AI(t);
Lt(t)});
this.JSC$23018_watchApi.getRoot().is==="ytd-watch-grid"&&_.r("swatcheroo_pbs_load_grid")&&(nxN(this),CyU(this));this.addOnDisposeCallback(function(){t.JSC$23018_watchApi.unsubscribeByKey(H);t.JSC$23018_watchApi.unsubscribeByKey(e);_.Jy.cancelJob(t.provideRichGridJobId)});
PyE(this);AI(this)}};
_.P(_.mSN,_.mg);var ox7=function(D){var t=D.JSC$23018_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){D.providePlayerJobId=_.NP(_.Jy,function(){PyE(D);Lt(D)},D.provideAllDataDelayMs)}),H=D.JSC$23018_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){D.provideWatchNextJobId=_.NP(_.Jy,function(){AI(D);
Lt(D)},D.provideAllDataDelayMs)}),e=D.JSC$23018_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){D.provideWatchNextJobId=_.NP(_.Jy,function(){AI(D);
Lt(D)},D.provideAllDataDelayMs)});
D.JSC$23018_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.C7(_.Jy,function(){PyE(D);AI(D);Lt(D)},100)});
D.JSC$23018_watchApi.addPageDisposeJob(function(){_.Jy.cancelJob(D.provideWatchNextJobId);_.Jy.cancelJob(D.providePlayerJobId)});
D.addOnDisposeCallback(function(){D.JSC$23018_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");D.JSC$23018_watchApi.unsubscribeByKey(t);D.JSC$23018_watchApi.unsubscribeByKey(H);D.JSC$23018_watchApi.unsubscribeByKey(e);_.Jy.cancelJob(D.providePlayerJobId);_.Jy.cancelJob(D.provideWatchNextJobId)});
PyE(D);AI(D)},PyE=function(D){var t=D.JSC$23018_watchApi.getPlayerResponse(),H,e,V=(e=t==null?void 0:(H=t.playabilityStatus)==null?void 0:H.messageRenderers)!=null?e:[],b,a;
t=(a=t==null?void 0:(b=t.playabilityStatus)==null?void 0:b.messages)!=null?a:[];b=_.F(t);for(a=b.next();!a.done;a=b.next())V.push({alertRenderer:{text:_.H7(a.value),type:"WARNING"}});D.JSC$23018_watchApi.provideRenderingData("ALERTS",V)},AI=function(D){var t=[],H,e,V,b=D.JSC$23018_watchApi.getWatchNextResponse(),a,w,h,K,N=b==null?void 0:(a=b.contents)==null?void 0:(w=a.twoColumnWatchNextResults)==null?void 0:(h=w.results)==null?void 0:(K=h.results)==null?void 0:K.contents;
if(N)for(a=_.F(N),w=a.next();!w.done;w=a.next())if(w=w.value,w.videoPrimaryInfoRenderer)var k=w;else if(w.videoSecondaryInfoRenderer){var T=w;K=h=void 0;w=Object.assign({},(h=w.videoSecondaryInfoRenderer)==null?void 0:(K=h.metadataRowContainer)==null?void 0:K.metadataRowContainerRenderer);if(w.rows&&w.collapsedItemCount!==void 0){w.rows=w.rows.slice(0,w.collapsedItemCount).filter(function(bY){return!!bY.richMetadataRowRenderer});
w.collapsedItemCount=w.rows.length;var c={metadataRowContainerRenderer:w}}}else if(w.merchandiseShelfRenderer)var U=w;else if(w.ticketShelfRenderer)var S=w;else if(w.expandableMetadataRenderer)var L=w;else if(w.itemSectionRenderer)if(h=w.itemSectionRenderer.contents,K=void 0,D.directlyProvideComments&&((K=w.itemSectionRenderer)==null?void 0:K.sectionIdentifier)==="comment-item-section")_.vh("cmi"),D.JSC$23018_watchApi.provideRenderingData("COMMENTS",w.itemSectionRenderer);else if(h)for(w=_.F(h),h=
w.next();!h.done;h=w.next())if(h=h.value,h.commentsEntryPointHeaderRenderer)var J=h;else if(h.clarificationRenderer||h.infoPanelContainerRenderer||h.infoPanelContentRenderer||h.emergencyOneboxRenderer){t.push(h);var g=g||!!T}else h.limitedStateMessageRenderer?e=h:h.videoMetadataCarouselViewModel&&(V=h);if(_.r("web_watch_merch_in_sd_when_ticket_shelf_present")&&U&&S){var Q=U;U=void 0}if(D.provideWatchNextSecondaryResults){var u,R,I;D.JSC$23018_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
b==null?void 0:(u=b.contents)==null?void 0:(R=u.twoColumnWatchNextResults)==null?void 0:(I=R.secondaryResults)==null?void 0:I.secondaryResults)}if(D.JSC$23018_watchApi.getRoot().is==="ytd-watch-grid"){var tT,ZV;D.JSC$23018_watchApi.provideRenderingData("LIVE_CHAT",b==null?void 0:(tT=b.contents)==null?void 0:(ZV=tT.twoColumnWatchNextResults)==null?void 0:ZV.conversationBar)}var ED,o$,jV,i8;(u=b==null?void 0:(ED=b.contents)==null?void 0:(o$=ED.twoColumnWatchNextResults)==null?void 0:(jV=o$.secondaryResults)==
null?void 0:(i8=jV.secondaryResults)==null?void 0:i8.offerModule)&&(u.donationShelfRenderer||u.donationUnavailableRenderer)&&D.JSC$23018_watchApi.getRoot().is!=="ytd-watch-grid"&&(H=u);ED=D.JSC$23018_watchApi.getPlayerResponse();if(!ED||!_.waD(ED.playabilityStatus,b==null?void 0:b.playerOverlays)){var g6;if(b==null?0:(g6=b.contents)==null?0:g6.singleColumnWatchNextResults){var Mu,LQ;var DO=b==null?void 0:(Mu=b.contents.singleColumnWatchNextResults.results)==null?void 0:(LQ=Mu.results)==null?void 0:
LQ.contents}else{var fQ,yA,T4,Mw;g6=!!(N==null?0:(fQ=N[0])==null?0:(yA=fQ.itemSectionRenderer)==null?0:(T4=yA.contents)==null?0:(Mw=T4[0])==null?0:Mw.backgroundPromoRenderer);var X6,yZ;fQ=!!(b==null?0:(X6=b.contents)==null?0:(yZ=X6.twoColumnWatchNextResults)==null?0:yZ.secondaryResults);g6&&!fQ&&(DO=N)}}N=t[0];X6=t[1];g&&t.length===1&&(X6=N,N=void 0);D.JSC$23018_watchApi.provideRenderingData("PRIMARY_INFO",k);D.JSC$23018_watchApi.provideRenderingData("SECONDARY_INFO",T);D.JSC$23018_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
J);D.JSC$23018_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",V);D.JSC$23018_watchApi.provideRenderingData("CLARIFICATION",N);D.JSC$23018_watchApi.provideRenderingData("RICH_METADATA",c);D.JSC$23018_watchApi.provideRenderingData("MERCH_SHELF",U);_.r("web_watch_merch_in_sd_when_ticket_shelf_present")&&D.JSC$23018_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",Q);D.JSC$23018_watchApi.provideRenderingData("TICKET_SHELF",S);D.JSC$23018_watchApi.provideRenderingData("LIMITED_STATE",e);D.JSC$23018_watchApi.getRoot().is!==
"ytd-watch-grid"&&D.JSC$23018_watchApi.provideRenderingData("DONATION_SHELF",H);D.JSC$23018_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",DO);D.JSC$23018_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",X6);D.JSC$23018_watchApi.provideRenderingData("EXPANDABLE_METADATA",L);if(D.swatcherooProvideAllDataOnScheduledJob){var kQ,FX,qw,oB,ZO,Nw;k=b==null?void 0:(kQ=b.contents)==null?void 0:(FX=kQ.twoColumnWatchNextResults)==null?void 0:(qw=FX.secondaryResults)==null?void 0:(oB=qw.secondaryResults)==
null?void 0:(ZO=oB.results)==null?void 0:(Nw=ZO[0])==null?void 0:Nw.richGridRenderer;D.JSC$23018_watchApi.provideRenderingData("RICH_GRID_RENDERER",k)}};
_.mSN.prototype.hasCompanionAds=function(D){var t,H;return(H=D==null?void 0:(t=D.adPlacements)==null?void 0:t.some(function(e){var V,b,a,w;return(e==null?void 0:(V=e.adPlacementRenderer)==null?void 0:(b=V.renderer)==null?void 0:b.actionCompanionAdRenderer)||(e==null?void 0:(a=e.adPlacementRenderer)==null?void 0:(w=a.renderer)==null?void 0:w.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?H:!1};
var Lt=function(D){if(!_.r("swaterdoo_ps_wn_handle_ks")){D.swatcherooProvideAllDataOnScheduledJob||CyU(D,3E3);var t=D.JSC$23018_watchApi.getPlayerResponse(),H,e,V,b,a,w=(H=D.JSC$23018_watchApi.getWatchNextResponse())==null?void 0:(e=H.contents)==null?void 0:(V=e.twoColumnWatchNextResults)==null?void 0:(b=V.secondaryResults)==null?void 0:(a=b.secondaryResults)==null?void 0:a.offerModule;t=D.hasCompanionAds(t);var h,K;H=(w==null?void 0:(h=w.tvfilmOfferModuleRenderer)==null?void 0:h.clientShouldSuppressIfCompanionAdDisplayed)||
(w==null?void 0:(K=w.unlimitedOfferModuleRenderer)==null?void 0:K.suppressIfCompanionAds);h=t&&H;D.JSC$23018_watchApi.getRoot().is==="ytd-watch-grid"&&D.JSC$23018_watchApi.provideRenderingData("OFFER_MODULE",h?void 0:w)}},CyU=function(D,t){_.r("swatcheroo_pbs_load_grid")&&(D.provideRichGridJobId&&_.Jy.cancelJob(D.provideRichGridJobId),D.provideRichGridJobId=_.NP(_.Jy,function(){D.provideRichGridJobId=0;
var H,e,V,b,a,w,h,K=(H=D.JSC$23018_watchApi.getWatchNextResponse())==null?void 0:(e=H.contents)==null?void 0:(V=e.twoColumnWatchNextResults)==null?void 0:(b=V.secondaryResults)==null?void 0:(a=b.secondaryResults)==null?void 0:(w=a.results)==null?void 0:(h=w[0])==null?void 0:h.richGridRenderer;K&&D.JSC$23018_watchApi.provideRenderingData("RICH_GRID_RENDERER",K)},t))},nxN=function(D){var t,H;
_.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$23018_watchApi.playerApi,2);t=e.yieldResult;H=function(){D.onPlaybackStart()};
t.addEventListener("onPlaybackStartExternal",H);D.addOnDisposeCallback(function(){t.removeEventListener("onPlaybackStartExternal",H)});
_.n2(e)})};
_.mSN.prototype.onPlaybackStart=function(){CyU(this)};_.SaU=function(D){_.mg.call(this);var t=this;this.JSC$23031_watchApi=D;D.playerApi.then(function(H){t.player=H});
this.gestures=new _.TQ(this.JSC$23031_watchApi.getRoot(),D.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.MbM(_.b_().getState())&&_.Yt(_.b_().getState())<=0)if(_.vZ(_.b_().getState())){var H;(H=t.player)==null||H.toggleFullscreen()}else _.ET(t.JSC$23031_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
McE(this)};
_.P(_.SaU,_.mg);var McE=function(D){var t=_.Rj(_.b_(),_.vZ,function(H){D.onFullscreenChanged(H)});
D.addOnDisposeCallback(t);t=_.Rj(_.b_(),_.Yt,function(H){D.gestures&&(H>0?D.gestures.detach():D.gestures.attach())});
D.addOnDisposeCallback(t)};
_.SaU.prototype.onFullscreenChanged=function(D){this.gestures&&this.gestures.update(D)};_.fUF=function(D){_.mg.call(this);var t=this;this.JSC$23034_watchApi=D;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(D.subscribeToActiveChanged(function(H){t.onActiveChanged(H)}));
XY7(this)};
_.P(_.fUF,_.mg);var LhM=function(D){if(_.r("swatcheroo_page_dispose_all_watch_data"))D.pageDisposalDataTypes=Object.values(B_E).filter(function(H){return H!=="PLAYLIST"});
else if(_.r("swatcheroo_page_dispose_rich_grid")){var t;(t=D.pageDisposalDataTypes)==null||t.push("RICH_GRID_RENDERER")}},XY7=function(D){_.r("swatcheroo_enable_ghost_cards")&&(LhM(D),D.JSC$23034_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Jy.cancelJob(D.clearDataJobId);
D.clearDataJobId=0}),D.runPageDisposeJob=function(){var t=_.qS().resolve(_.bO).getDestinationPageType()==="watch";
D.clearDataJobId=_.NP(_.Jy,D.runClearDataJob,t?0:_.ZU("web_watch_delay_page_dispose_ms",1E4))},D.runClearDataJob=function(){AW7(D)},D.runOnYtNavigateAwayFinish=function(){D.clearDataJobId&&(_.Jy.cancelJob(D.clearDataJobId),D.clearDataJobId=0,AW7(D))},document.addEventListener("yt-navigate-finish",D.runOnYtNavigateAwayFinish),D.JSC$23034_watchApi.addPageDisposeJob(D.runPageDisposeJob),D.addOnDisposeCallback(function(){D.JSC$23034_watchApi.removePageDisposeJob(D.runPageDisposeJob);
D.JSC$23034_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",D.runOnYtNavigateAwayFinish)}))},AW7=function(D){D.pageDisposalDataTypes.forEach(function(t){D.JSC$23034_watchApi.provideRenderingData(t,void 0)});
D.clearDataJobId=0};
_.fUF.prototype.onActiveChanged=function(D){D&&((D=document.querySelector("#watch-page-skeleton"))&&_.UH(D),gxM(this),document.body.removeAttribute("no-y-overflow"),_.lh("IS_SHELL_LOAD")&&_.Nz4())};
var gxM=function(D){_.Z(function(t){if(t.nextAddress==1)return t.yield(D.JSC$23034_watchApi.playerApi,2);_.ue();_.n2(t)})};var JWN;JWN=_.r("kevlar_watch_while_counterfactual")?0:.25;_.pYU=function(D){_.mg.call(this);this.JSC$23037_watchApi=D;this.JSC$23037_watchWhileEnabled=_.r("kevlar_watch_while_v2");this.pipEnabled=_.r("web_enable_pip_on_miniplayer");YaM(this);lUw(this);vxM(this)};
_.P(_.pYU,_.mg);var YaM=function(D){D.JSC$23037_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){dSM(D)});
D.addOnDisposeCallback(function(){D.JSC$23037_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},lUw=function(D){var t,H;
_.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$23037_watchApi.playerApi,2);t=e.yieldResult;H=function(){dSM(D)};
t.addEventListener("onCollapseMiniplayer",H);D.addOnDisposeCallback(function(){t.removeEventListener("onCollapseMiniplayer",H)});
_.n2(e)})},vxM=function(D){var t=D.JSC$23037_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&t&&D.JSC$23037_watchWhileEnabled&&(D.playerIntersectionObserver=new IntersectionObserver(function(H){D.handleIntersect(H)},{threshold:[JWN]}),D.playerIntersectionObserver.observe(t),D.addOnDisposeCallback(function(){var H;
(H=D.playerIntersectionObserver)==null||H.disconnect()}))},dSM=function(D){var t,H,e;
_.Z(function(V){if(V.nextAddress==1){t=_.qS().resolve(_.bO);H=t.data;e=_.Ls(H.response,!1,H.playerResponse);_.d3().miniplayerButtonActivation=!0;if(D.pipEnabled)return _.d3().watchPipActivation=!0,V.jumpTo(2);_.qS().resolve(_.dL).collapse();return V.yield(_.d3().navigationFinishPromise,2)}if(V.nextAddress!=4)return _.d3().currentEndpoint=e.watchEndpoint||null,V.yield(_.qS().resolve(_.dL).activate(D.JSC$23037_watchApi.getElement("PLAYER"),e,H),4);_.d3().userActivation=!0;_.n2(V)})};
_.pYU.prototype.handleIntersect=function(D){xSM(this,D[D.length-1])};
var xSM=function(D,t){D.watchWhileJobId&&_.Jy.cancelJob(D.watchWhileJobId);D.watchWhileJobId=_.Jy.addLowPriorityJob(function(){var H,e;return _.Z(function(V){if(V.nextAddress==1)return D.watchWhileJobId=void 0,H=_.qS().resolve(_.dL),t.intersectionRatio>JWN?H.isMiniplayerActive()?V.yield(H.deactivate(),0):V.jumpTo(0):(e=!H.isMiniplayerActive())?V.yield(REA(D),5):V.jumpTo(4);V.nextAddress!=4&&(e=V.yieldResult);if(!e)return V.jumpTo(0);_.d3().watchWhileActivation=!0;return V.yield(ucE(D),0)})},100)},
REA=function(D){return _.Z(function(t){return t.nextAddress==1?_.r("kevlar_watch_while_paused")?t.return(!0):t.yield(D.isPlayerPlaying(),2):t.return(t.yieldResult)})};
_.pYU.prototype.isPlayerPlaying=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(D.JSC$23037_watchApi.playerApi,2);t=H.yieldResult;return H.return(t.getPlayerStateObject().isPlaying)})};
var ucE=function(D){var t,H;return _.Z(function(e){t=_.qS().resolve(_.bO).data;H=_.Ls(t.response,!1,t.playerResponse);_.d3().currentEndpoint=H.watchEndpoint||null;return e.yield(_.qS().resolve(_.dL).activate(D.JSC$23037_watchApi.getElement("PLAYER"),H,t),0)})};_.QAM=function(D){_.mg.call(this);this.JSC$23041_watchApi=D;WhU(this);IUY(this)};
_.P(_.QAM,_.mg);var IUY=function(D){var t,H;_.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$23041_watchApi.playerApi,2);t=e.yieldResult;H=function(V){var b;V.sessionData&&V.sessionData.itct&&(b=V.sessionData.itct);var a=V.watchEndpoint;if(a&&V.sessionData&&V.sessionData.autonav)a=_.mhD(a,b);else{var w;a=_.af(V.videoId,(w=V.listId)!=null?w:void 0,b)}b={endpoint:a};V.sessionData&&(b.tempData=V.sessionData);D.JSC$23041_watchApi.dispatchEvent("yt-navigate",b)};
t.addEventListener("onPlayVideo",H);D.addOnDisposeCallback(function(){t.removeEventListener("onPlayVideo",H)});
_.n2(e)})},WhU=function(D){var t=function(H){D.onYtNavigate(H)};
D.JSC$23041_watchApi.getRoot().addEventListener("yt-navigate",t);D.addOnDisposeCallback(function(){D.JSC$23041_watchApi.getRoot().removeEventListener("yt-navigate",t)})};
_.QAM.prototype.onYtNavigate=function(D){var t=this,H,e,V,b,a,w,h,K,N;return _.Z(function(k){if(k.nextAddress==1){if(!((H=D.detail)==null?0:(e=H.endpoint)==null?0:e.watchEndpoint))return k.return();V=D.detail.endpoint.watchEndpoint;b=t.JSC$23041_watchApi.getWatchNextResponse();w=_.O((a=b)==null?void 0:a.currentVideoEndpoint,_.Hh);if(!w)return k.return();if(V.videoId!==w.videoId||V.playlistId&&V.playlistId!==w.playlistId||typeof V.startTimeSeconds!=="number")return k.jumpTo(0);D.stopPropagation();
(h=_.r("kevlar_watch_while_v2")&&!_.r("kevlar_watch_while_counterfactual"))&&_.qS().resolve(_.dL).isMiniplayerActive()||t.JSC$23041_watchApi.scrollWatchTo(0,!0);return k.yield(t.JSC$23041_watchApi.playerApi,3)}K=k.yieldResult;N=V.startTimeSeconds;K.seekTo(N,void 0,void 0,void 0,84);K.wakeUpControls();N<K.getDuration()&&K.playVideo();_.n2(k)})};_.Biw=function(D){_.mg.call(this);var t=this;this.JSC$23044_watchApi=D;var H=this.JSC$23044_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){yWU(t)});
this.addOnDisposeCallback(function(){t.JSC$23044_watchApi.unsubscribeByKey(H)});
yWU(this);_.r("enable_ai_companion")&&(D=this.JSC$23044_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.N1H(_.qS().resolve(_.VD),D,"WATCH")};
_.P(_.Biw,_.mg);var yWU=function(D){var t=D.JSC$23044_watchApi.getWatchNextResponse();if(t){var H,e=[].concat(_.A6((H=t==null?void 0:t.engagementPanels)!=null?H:[]));e.unshift.apply(e,_.A6(zEF(t)));D.JSC$23044_watchApi.provideRenderingData("ENGAGEMENT_PANELS",e)}},DON=function(D){var t,H,e,V=(t=D.engagementPanels)==null?void 0:(H=t.find(function(c){var U;
return((U=c.engagementPanelSectionListRenderer)==null?void 0:U.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(e=H.engagementPanelSectionListRenderer.content)==null?void 0:e.structuredDescriptionContentRenderer,b;
if(_.O(V==null?void 0:(b=V.items)==null?void 0:b.find(function(c){return!!_.O(c,TNE)}),TNE))return!0;
var a,w,h,K;if(D=(((a=D.contents)==null?void 0:(w=a.twoColumnWatchNextResults)==null?void 0:(h=w.results)==null?void 0:(K=h.results)==null?void 0:K.contents)||[]).find(function(c){return c.videoPrimaryInfoRenderer})){var N,k,T;
return(((N=D.videoPrimaryInfoRenderer)==null?void 0:(k=N.videoActions)==null?void 0:(T=k.menuRenderer)==null?void 0:T.flexibleItems)||[]).some(function(c){c=_.O(c,_.Yzw);if(!c)return!1;var U,S;c=(U=c.topLevelButton)==null?void 0:(S=U.buttonViewModel)==null?void 0:S.onTap;if(!c)return!1;U=_.xP(c);if(!U)return!1;var L;return((L=_.O(U,_.Sw))==null?void 0:L.panelIdentifier)==="PAyouchat"})}return!1},zEF=function(D){var t=[];
if(!_.r("web_watch_inject_placeholder_fantasy_panel_killswitch")){var H,e,V,b=(H=D.engagementPanels)==null?void 0:(e=H.find(function(w){var h;return((h=w.engagementPanelSectionListRenderer)==null?void 0:h.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(V=e.engagementPanelSectionListRenderer.content)==null?void 0:V.structuredDescriptionContentRenderer,a;
_.O(b==null?void 0:(a=b.items)==null?void 0:a.find(function(w){return!!_.O(w,I1A)}),I1A)&&(H=_.QO8("PAsports_fantasy"),H.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t.push(H))}DON(D)&&(D=_.QO8("PAyouchat"),D.engagementPanelSectionListRenderer.targetId="PAyouchat",D.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",t.push(D));
return t};_.HXh=function(D){_.mg.call(this);this.JSC$23047_watchApi=D;tEM(this)};
_.P(_.HXh,_.mg);var tEM=function(D){D.JSC$23047_watchApi.registerActionHandler("yt-loop-command",function(t){eXU(D,t)});
D.JSC$23047_watchApi.registerActionHandler("yt-repeat-chapter-command",function(t){VEh(D,t)});
D.addOnDisposeCallback(function(){D.JSC$23047_watchApi.unregisterActionHandler("yt-loop-command");D.JSC$23047_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},eXU=function(D,t){var H;
_.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$23047_watchApi.playerApi,2);H=e.yieldResult;_.O(t,yA1).loop?(H.setLoopRange({startTimeMs:Number(_.O(t,yA1).startTimeMs),endTimeMs:Number(_.O(t,yA1).endTimeMs),postId:_.O(t,yA1).postId,type:"clips"}),H.playVideo()):H.setLoopRange(null);_.n2(e)})},VEh=function(D,t){var H,e;
_.Z(function(V){if(V.nextAddress==1)return V.yield(D.JSC$23047_watchApi.playerApi,2);H=V.yieldResult;e=_.O(t,H2w).repeat;e==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(H.setLoopRange({startTimeMs:Number(_.O(t,H2w).startTimeMs),endTimeMs:Number(_.O(t,H2w).endTimeMs),type:"repeatChapter"}),H.playVideo()):e==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&H.setLoopRange(null);_.n2(V)})};_.qqU=function(D){_.mg.call(this);this.JSC$23052_watchApi=D;bXM(this)};
_.P(_.qqU,_.mg);var bXM=function(D){D.JSC$23052_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(t){FYE(D,t)});
D.addOnDisposeCallback(function(){D.JSC$23052_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},FYE=function(D,t){var H,e,V,b,a,w,h,K,N,k,T;
_.Z(function(c){if(c.nextAddress==1)return c.yield(D.JSC$23052_watchApi.playerApi,2);H=c.yieldResult;if(b=(V=(e=_.O(t,eDF))==null?void 0:e.highlightedMenuItemKey)!=null?V:"")(w=(a=H).highlightSettingsMenuItem)==null||w.call(a,b);if(N=(K=(h=_.O(t,eDF))==null?void 0:h.openMenuItemKey)!=null?K:"")(T=(k=H).openSettingsMenuItem)==null||T.call(k,N);_.n2(c)})};var a4l=_.cH("/youtube/app/watch/player_state","playerStateEntity");_.gC=function(D){_.mg.call(this);this.JSC$23055_watchApi=D;weM(this)};
_.P(_.gC,_.mg);var ZX7=function(D){switch(D){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"}},weM=function(D){var t,H,e,V;
_.Z(function(b){if(b.nextAddress==1)return b.yield(D.JSC$23055_watchApi.playerApi,2);t=b.yieldResult;if(D.isDisposed())return b.return();H=function(a){D.onPlayerStateChange(a)};
e=function(a){D.onAdStateChange(a)};
V=function(){D.onAdSkip()};
t.addEventListener("onStateChange",H);t.addEventListener("onAdStateChange",e);t.addEventListener("onAdSkip",V);D.addOnDisposeCallback(function(){t.removeEventListener("onStateChange",H);t.removeEventListener("onAdStateChange",e);t.removeEventListener("onAdSkip",V)});
_.n2(b)})},sPh=function(D){var t=_.V_(),H=t.dispatch;
a:switch(D.adsState){case -1:case 0:var e="ADS_STATE_NONE";break a;case 1:case 2:case 3:e="ADS_STATE_PLAYING";break a;default:e="ADS_STATE_UNKNOWN"}H.call(t,_.nf("playerStateEntity",a4l,{key:a4l,playerState:ZX7(D.playerState),adsState:e,videoId:D.videoId}))};
_.gC.prototype.onPlayerStateChange=function(D){var t=this,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(t.JSC$23055_watchApi.playerApi,2);H=e.yieldResult;if(t.isDisposed())return e.return();t.playerState=D;t.videoId=H.getVideoData().video_id;sPh(t);_.n2(e)})};
_.gC.prototype.onAdStateChange=function(D){this.adsState=D;sPh(this)};
_.gC.prototype.onAdSkip=function(){this.adsState=0;sPh(this)};_.Gr1=function(D){_.mg.call(this);var t=this;this.JSC$23059_watchApi=D;this.enableExternalPlaylistPanelInPlayer=_.r("delhi_web_player_use_external_playlist_panel");_.qS().resolve(_.hU).setPlayer(this.JSC$23059_watchApi.getElement("PLAYER"));D=this.JSC$23059_watchApi.subscribeToActiveChanged(function(H){t.onActiveChanged(H)});
this.addOnDisposeCallback(D);hXY(this)};
_.P(_.Gr1,_.mg);var hXY=function(D){var t,H;_.Z(function(e){if(e.nextAddress==1)return D.enableExternalPlaylistPanelInPlayer?e.yield(D.JSC$23059_watchApi.playerApi,2):e.return();t=e.yieldResult;H=function(){if(D.playlistPanelElement)D.playlistPanelElement.onToggleExpanded()};
t.addEventListener("onToggleExternalPlaylistPanel",H);D.addOnDisposeCallback(function(){t.removeEventListener("onToggleExternalPlaylistPanel",H)});
_.n2(e)})};
_.Gr1.prototype.onActiveChanged=function(D){var t=this,H=_.qS().resolve(_.hU),e=function(){EVF(t)};
D?(this.playlistPanelElement=this.JSC$23059_watchApi.getElement("PLAYLIST_PANEL"))?(H.setPlaylistComponent(this.playlistPanelElement),H.addEventListener("yt-playlist-data-updated",e),this.addOnDisposeCallback(function(){H.removeEventListener("yt-playlist-data-updated",e)}),EVF(this)):_.uh(Error("Vo")):(H.removeEventListener("yt-playlist-data-updated",e),H.cancelVideoSkip())};
var EVF=function(D){var t=_.qS().resolve(_.hU);D.JSC$23059_watchApi.provideRenderingData("PLAYLIST",t.getPlaylistData())};_.JI=function(D){_.mg.call(this);var t=this;this.JSC$23062_watchApi=D;this.onPageScroll=function(){t.scrollThrottle.fire();t.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.W5(this.onThrottledScroll,200,this);_.c1(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.W5(this.onMastheadThrottledScroll,50,this);_.c1(this,this.mastheadScrollThrottle);this.animation=new _.ka(function(H){t.JSC$23062_watchApi.getRoot().setScrollTop(H)});
D=_.Rj(_.b_(),_.vZ,function(){t.onFullscreenChanged()});
this.addOnDisposeCallback(D);KYM(this);Nkd(this);this.onThrottledScroll()};
_.P(_.JI,_.mg);
_.JI.prototype.onFullscreenChanged=function(){var D=this,t=this.JSC$23062_watchApi.getRoot();!this.pageScrollElement&&t.pageScrollElement?(this.pageScrollElement=t.pageScrollElement,t.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){D.pageScrollElement&&D.pageScrollElement.removeEventListener("scroll",D.onPageScroll)})):this.pageScrollElement&&!t.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var KYM=function(D){window.addEventListener("scroll",D.onPageScroll);D.addOnDisposeCallback(function(){window.removeEventListener("scroll",D.onPageScroll)})},Nkd=function(D){D.JSC$23062_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(t){a:{var H;
if(H=D.JSC$23062_watchApi.getRoot().contains(t)&&!D.animation.isAnimating()){H=t.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var e,V,b=(t==null?void 0:(e=t.parentElement)==null?void 0:(V=e.parentElement)==null?void 0:V.id)==="fixed-secondary";H=!(H&&b)}if(H){if(_.r("kevlar_watch_scroll_manager_absolute_offset_killswitch"))e=t.offsetTop;else for(e=0,V=t;V!==null;)e+=V.offsetTop,e-=V.scrollTop,V=V.offsetParent;V=e;e=V-24;t=V+t.offsetHeight+24;V=D.JSC$23062_watchApi.getRoot().getPageScrollingElement();
H=D.JSC$23062_watchApi.getRoot().getScrollTop();b=H+V.clientHeight-56;if(e<H+56)t=e-56;else if(t>b)t-=V.clientHeight;else break a;D.scrollWatchTo(Math.max(0,t),!0)}}});
D.addOnDisposeCallback(function(){D.JSC$23062_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.JI.prototype.onThrottledScroll=function(){var D=_.b_(),t=D.dispatch,H=this.JSC$23062_watchApi.getRoot().getScrollTop();t.call(D,_.hV({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:H}}))};
_.JI.prototype.onMastheadThrottledScroll=function(){this.JSC$23062_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23062_watchApi.getRoot().getScrollTop())};
_.JI.prototype.scrollWatchTo=function(D,t){(t===void 0?0:t)?this.animation.start(this.JSC$23062_watchApi.getRoot().getScrollTop(),Math.max(0,D),500):this.JSC$23062_watchApi.getRoot().setScrollTop(D)};_.cyU=function(D){_.mg.call(this);var t=this;this.JSC$23065_watchApi=D;var H=this.JSC$23065_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){krU(t)}),e=this.JSC$23065_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){TkY(t)});
this.addOnDisposeCallback(function(){t.JSC$23065_watchApi.unsubscribeByKey(H);t.JSC$23065_watchApi.unsubscribeByKey(e)});
krU(this);TkY(this)};
_.P(_.cyU,_.mg);
var krU=function(D){var t,H,e,V=(e=(t=D.JSC$23065_watchApi.getPlayerResponse())==null?void 0:(H=t.videoDetails)==null?void 0:H.title)!=null?e:"";D.JSC$23065_watchApi.dispatchEvent("yt-update-title",V)},TkY=function(D){var t,H,e,V,b,a,w,h=(w=((a=(t=D.JSC$23065_watchApi.getWatchNextResponse())==null?void 0:(H=t.contents)==null?void 0:(e=H.twoColumnWatchNextResults)==null?void 0:(V=e.results)==null?void 0:(b=V.results)==null?void 0:b.contents)!=null?a:[]).find(function(K){return!!K.videoPrimaryInfoRenderer}))==null?
void 0:w.videoPrimaryInfoRenderer;
(t=_.eo(h==null?void 0:h.title))&&D.JSC$23065_watchApi.dispatchEvent("yt-update-title",t)};_.$OU=function(D){_.mg.call(this);this.JSC$23068_watchApi=D;jPE(this)};
_.P(_.$OU,_.mg);var jPE=function(D){var t,H;_.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$23068_watchApi.playerApi,2);t=e.yieldResult;H=function(){D.onYpcContentRequest()};
t.addEventListener("onYpcContentRequest",H);D.addOnDisposeCallback(function(){t.removeEventListener("onYpcContentRequest",H)});
_.n2(e)})};
_.$OU.prototype.onYpcContentRequest=function(){var D,t,H,e,V,b=(D=this.JSC$23068_watchApi.getWatchNextResponse())==null?void 0:(t=D.contents)==null?void 0:(H=t.twoColumnWatchNextResults)==null?void 0:(e=H.secondaryResults)==null?void 0:(V=e.secondaryResults)==null?void 0:V.offerModule,a,w,h,K;D=(K=(h=(w=(a=b==null?void 0:b.episodeOfferModuleRenderer)!=null?a:b==null?void 0:b.movieOfferModuleRenderer)!=null?w:b==null?void 0:b.unlimitedOfferModuleRenderer)!=null?h:b==null?void 0:b.liveOfferModuleRenderer)!=
null?K:b==null?void 0:b.tvfilmOfferModuleRenderer;var N,k,T;b=(T=b==null?void 0:(N=b.tvfilmOfferModuleRenderer)==null?void 0:(k=N.actionButtons)==null?void 0:k.length)!=null?T:0;k=Math.max(b-1,0);var c,U,S;N=(S=D==null?void 0:(c=D.offerButton)==null?void 0:c.buttonRenderer)!=null?S:D==null?void 0:(U=D.actionButtons)==null?void 0:U[k].buttonRenderer;var L,J;(c=(J=(L=N==null?void 0:N.navigationEndpoint)!=null?L:N==null?void 0:N.serviceEndpoint)!=null?J:N==null?void 0:N.command)&&_.$P.instance.resolveCommand(c)};
}catch(e){_._DumpException(e)}
try{
var F$Y,VPb,Hlv;_.eLF=function(){var D=_.J$.clone(tPb),t;return(new _.c$(function(H,e){D.onSuccess=function(V){_.HC3(V)?H(new Hlv(V)):e(new _.Y8("Request failed, status="+_.Ea(V),"net.badstatus",V))};
D.onError=function(V){e(new _.Y8("Unknown request error","net.unknown",V))};
D.onTimeout=function(V){e(new _.Y8("Request timed out","net.timeout",V))};
t=_.cY("//googleads.g.doubleclick.net/pagead/id",D)})).thenCatch(function(H){if(H instanceof _.dg){var e;
(e=t)==null||e.abort()}return _.Aj(H)})};
_.blt=function(D){a:{var t="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(t="EMBEDDED_PLAYER_MODE_PFL");var H=D.raw_embedded_player_response;if(!H&&(D=D.embedded_player_response))try{H=JSON.parse(D)}catch(V){break a}if(H)b:for(var e in VPb)if(VPb[e]==H.embeddedPlayerMode){t=VPb[e];break b}}return t==="EMBEDDED_PLAYER_MODE_PFL"};
_.qTi=function(){if(_.r("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("tf");if(!_.fX3())return Error("uf");var D=_.YC("PLAYER_VARS",{});if(_.J$.get(D,"privembed",!1)=="1")return Error("vf");if(_.blt(D))return Error("wf")};
F$Y=function(D){switch(D){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:_.xv(D,"unknown result type")}};
_.ak4=function(D,t,H){t=_.Yx6[t];H={detected:D===0,source:t.cef,detectionResult:F$Y(D),contentCpn:H};_.L7("biscottiBasedDetection",H);_.Un6.increment(t.cef,D);t.tSr!==void 0&&_.JZ("CATSTAT",_.gnk(D,t))};
_.lJ=function(D,t){var H={};H.key=D;H.value=t;return _.jwA().then(function(e){return new Promise(function(V,b){try{var a=e.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(H);a.onsuccess=function(){V()};
a.onerror=function(){b()}}catch(w){b(w)}})})};
_.ZlF=function(){var D=_.ZU("user_engagement_experiments_rate_limit_ms"),t=whb.get("last-user-engagement-exp-trigger-timestamp");return!t||(0,_.aP)()>=t+D?(whb.set("last-user-engagement-exp-trigger-timestamp",(0,_.aP)()),!0):!1};
_.vA=function(D,t,H,e,V){t=t===void 0?null:t;H=H===void 0?null:H;e=e===void 0?null:e;V=V===void 0?null:V;D={youThereEventType:D};H&&(D.lactThresholdMs=H.lactThresholdMs,D.mediaPosSec=H.promptDelaySec,D.lactServerRequestMs=H.lactServerRequestMs,D.triggerReason=H.triggerReason);V!=null&&(D.renderingMediaPosSec=Math.round(V));t||(t=_.v3());t&&(D.clientScreenNonce=t);e&&(D.clientPlaybackNonce=e);_.L7("youThere",D)};
VPb={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"};Hlv=function(D){this.xhr=D};
_.Y8=function(D,t,H){_.Hk.call(this,D+", errorCode="+t);this.errorCode=t;this.xhr=H;this.name="PromiseAjaxError"};
_.P(_.Y8,_.Hk);var tPb={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var whb=new _.dk("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.DJF=function(D){return _.hV({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:D})};
}catch(e){_._DumpException(e)}
try{
var pt,WY7,QPd,yyM,BkY,zX7,t4U,Z7M,sRM,hHd,Dz1,I4d,b7N,V4N,KE7;_.uUN=function(){var D=window.location.hash;D.charAt(0)==="#"&&(D=D.charAt(1)==="!"?D.substring(2):D.substring(1));return _.Qc(D)};
pt=function(D,t,H){var e;return _.Z(function(V){if(V.nextAddress==1)return V.yield(t(),2);e=V.yieldResult;H(e,D);_.n2(V)})};
WY7=function(){return _.Z(function(D){return D.nextAddress==1?D.yield((_.qTi()!==void 0?_.Aj(Error("xf")):_.eLF()).then(function(){return 1},function(t){if(t.message==="Biscotti id is disabled")return 3;
_.Yw("Failed fetching bid");return 0}),2):D.return(D.yieldResult)})};
QPd=function(){var D=_.wn("bGF5ZXIjcnI1OGc0NXNhMDBkeXQtaGF2ZW4tZW1iZWQtcA=="),t=_.wn("ZnJhbWUjMnh5cTlzdTMwcHE4aQ==");return document.querySelector(t+I4d+D)?0:1};
yyM=function(){return _.Oo$(_.ji)};
BkY=function(){return _.Ug3()===0?0:_.on6()};
zX7=function(){return _.MLV(_.Rvk([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
t4U=function(){return _.NtR(Dz1)};
_.H7l=function(D){_.Z(function(t){switch(t.nextAddress){case 1:return t.yield(pt("b.f_",WY7,D),2);case 2:return t.yield(pt("j.s_",_.En3,D),3);case 3:return t.yield(pt("r.s_",_.sM3,D),4);case 4:return t.yield(pt("e.h_",t4U,D),5);case 5:if(!_.r("ab_det_sc_inj")){t.jumpTo(6);break}return t.yield(pt("s.i_",_.ioR,D),6);case 6:if(_.r("ab_deg_unex_thr")){t.jumpTo(8);break}return t.yield(pt("a.o_",_.jMX,D),8);case 8:if(_.r("ks_get_o_pp")){t.jumpTo(10);break}return t.yield(pt("g.o_",_.ckA,D),10);case 10:if(_.r("ks_det_gpbl")){t.jumpTo(12);
break}return t.yield(pt("p.i_",_.TtT,D),12);case 12:return t.yield(pt("f.i_",_.Dg$,D),14);case 14:return t.yield(pt("a.b_",_.wJ8,D),15);case 15:return t.yield(pt("p.m_",_.eAk,D),16);case 16:if(!_.r("ab_det_el_h_v2")){t.jumpTo(17);break}return t.yield(pt("n.h_",zX7,D),17);case 17:return t.yield(pt("o.p_",yyM,D),19);case 19:return t.yield(pt("e.i_",QPd,D),20);case 20:if(_.r("ab_det_apm"))return t.yield(pt("o.a_",BkY,D),0);t.jumpTo(0)}})};
_.eH7=function(D,t){D={videoId:D};t&&(D.playlistId=t);return D};
_.qpE=function(){if(_.fX3()){var D=_.YC("PLAYER_VARS",{});if(_.J$.get(D,"privembed",!1)!="1"&&!_.blt(D)){var t=function(){V4N=!0;"google_ad_status"in window?_.JZ("DCLKSTAT",1):_.JZ("DCLKSTAT",2)};
try{_.Iz(_.duY,t)}catch(H){}b7N.push(_.Jy.addLowPriorityJob(function(){if(!(V4N||"google_ad_status"in window)){try{_.oZX(_.duY.toString(),t)}catch(H){}V4N=!0;_.JZ("DCLKSTAT",3)}},5E3))}}};
_.FEU=function(D,t,H){H=H===void 0?!1:H;var e=Math.max(D.width,_.jxd);if(_.r("kevlar_watch_feed_big_thumbs")&&D.width>=1550-_.kA()&&D.height>=800)e-=_.opM;else if(D.width>=_.RU){var V=_.$dh+_.i27+_.xt;_.r("kevlar_watch_feed_big_thumbs")&&(V=_.UdE);e-=V}else e-=_.$dh;e=Math.min(e,_.r6Y);V=240;H&&(V=380);t<.5624||(!_.r("kevlar_watch_flexy_disable_small_window_sizing")&&(D.height<630&&D.width>=657||D.height>=630&&D.width>=_.RU&&D.width<1327)?V=360:!_.r("kevlar_watch_flexy_disable_large_window_sizing")&&
D.height>=630&&D.width>=1327&&(V=480));var b=Math.min(e*t,D.height-(56+_.c6U+_.O2M));b=Math.max(b,V);t<1?e=b/t:D.width>=_.RU&&(e=_.FEU(D,.5625,H).width);return new _.O5(Math.round(e),Math.round(b))};
_.axl=function(D){var t=0;D.indexOf("h")!=-1&&(D=D.split("h"),t=D[0]*60*60,D=D[1]);D.indexOf("m")!=-1&&(D=D.split("m"),t=D[0]*60+t,D=D[1]);D.indexOf("s")!=-1?(D=D.split("s"),t=D[0]*1+t):t=D*1+t;return t};
_.w$F=function(){_.ZU("service_worker_push_logged_out_prompt_watches")!=-1&&_.p5("WatchCount").then(function(D){D>=100||_.lJ("WatchCount",D+1)})};
Z7M=function(D){var t=D.externalVideoId||"";return t?D.isShortsEligible?"https://www.youtube.com/shorts/"+t:"https://www.youtube.com/watch?v="+t:""};
sRM=function(D){var t=[];D.viewCount&&t.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:D.viewCount});D.likeCount&&t.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:D.likeCount});return t};
hHd=function(D){var t,H,e={"@context":"https://schema.org","@type":"VideoObject",description:_.eo(D.description),duration:"PT"+(D.lengthSeconds||"0")+"S",embedUrl:D.embed?D.embed.iframeUrl:"",name:_.eo(D.title),thumbnailUrl:((t=D.thumbnail)==null?void 0:(H=t.thumbnails)==null?void 0:H.map(function(N){return N&&N.url||""}))||[],
uploadDate:D.publishDate};_.r("mweb_video_schema_id_killswitch")||(e["@id"]=Z7M(D));t=sRM(D);t.length&&(e.interactionStatistic=t);D.category&&(e.genre=D.category);D.ownerChannelName&&(e.author=D.ownerChannelName);D.liveBroadcastDetails&&(e.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:D.liveBroadcastDetails.startTimestamp,endDate:D.liveBroadcastDetails.endTimestamp}]);if(D.learningResource){D=D.learningResource;e["@type"]=["VideoObject","LearningResource"];var V;if((V=D.learningResourceType)==
null?0:V.length)e.learningResourceType=D.learningResourceType[0];var b;if((b=D.educationalAlignment)==null?0:b.length)e.educationalAlignment={"@type":"AlignmentObject",targetName:D.educationalAlignment[0]};var a;if((a=D.educationalLevel)==null?0:a.length){V=D.educationalLevel[0];var w;if((w=D.educationalLevelCountry)==null?0:w.length)V+=" ("+D.educationalLevelCountry+")";e.educationalLevel=V}var h,K;if(((h=D.learningResourceType)==null?0:h.length)&&D.learningResourceType[0]==="Problem walkthrough"&&
((K=D.problemDescriptions)==null?0:K.length))for(e.hasPart=[],w=_.F(D.problemDescriptions),h=w.next();!h.done;h=w.next())V=h.value,h=V.problemDescriptionText,K=V.startOffset,V=V.url,h&&K!==void 0&&V&&e.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:h,text:h,startOffset:K,url:V})}return e};
_.G0l=function(D){return _.hV({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:D}})};
Dz1=[[["aW1hcnkjcXBpNWlhZmowN2l2cHI=",null,null],[null,["ZGVyZXIjOWdtbnhidHYyd2cweXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVu","c2NvcGUjNzA1d2I5NGZ0NzBtc3R5bGUt"],null],["YWQtYWQjc2VteXo5dnoxZms5bWFzdGhl",["ZGVyZXIjNGJreWY1anpxbzloeXRkLXJpY2gtZ3JpZC1yZW4="],null],[null,["ZGVyZXIjZmJ4a2V0NnQxeWlieXRkLXJpY2gtZ3JpZC1yZW4=","c2NvcGUjbGx5Y29nb3d1cno5c3R5bGUt"],null],[null,["ZGVyZXIjOXJieDk2cDJtOWg5eXRkLWJhbm5lci1wcm9tby1yZW4=","c2NvcGUjbjF5aGI0bzR5dTgzc3R5bGUt"],null],[null,["ZGVyZXIjd3cwb2Vxcng5NXRoeXRkLWFkLXNsb3QtcmVu"],
null]],[["ci1hZHMjYnJhb3NraXV0eXF1cGxheWU=",null,null]],[["aW5uZXIjcW1yaGwyb3RlN3RuZGVzY3JpcHRpb24t",null,null],[null,null,"ZGVyZXIjYmZtc2tyYjVzaWg4eXRkLW1lcmNoLXNoZWxmLXJlbg=="],["Ym1haW4jc2pnbTJqazlnY2E=",["ZGVyZXIjc3pqMThiejF5YWd5eXRkLW1lcmNoLXNoZWxmLXJlbg=="],null]]];I4d="#";b7N=[];V4N=!1;_.EwF=["engagement-panel-ads"];KE7=new _.NM("updateSentimentBarStateCommand");_.NTM=new _.NM("showSurveyCommand");_.dC=new _.NM("changeMarkersVisibilityCommand");var TTw,cpM,rpM,i7E,$zh,xF;_.k0l=function(D,t){this.playerProvider_=D;this.actionSenderElement_=t;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.k0l.prototype.reset=function(){TTw(this);this.isUserPredictedAbsent_=!1};
TTw=function(D,t){!D.youThereData_||D.showWarningJob_||t!==void 0&&t||(_.vA("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.v3(),D.youThereData_,D.clientPlaybackNonce_),_.Ap());_.Jy.cancelJob(D.showWarningJob_);D.showWarningJob_=0;_.Jy.cancelJob(D.showBlockingWarningJob_);D.showBlockingWarningJob_=0;_.Jy.cancelJob(D.pausePlaybackJob_);D.pausePlaybackJob_=0;D.youThereData_=null;D.clientPlaybackNonce_=void 0;D.inYouThereFlow_=!1};
_.jRU=function(D,t){var H,e,V;_.Z(function(b){if(b.nextAddress==1)return D.reset(),b.yield(D.playerProvider_().getPlayerPromise(),2);H=b.yieldResult;D.clientPlaybackNonce_=H.getVideoData().cpn;D.youThereData_=t.configData.youThereData;if(!D.youThereData_)return b.return();if(D.youThereData_.triggerReason&&D.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.ZlF())return _.vA("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.v3(),D.youThereData_,D.clientPlaybackNonce_),b.return();e=D.youThereData_.promptDelaySec;
V=H.getCurrentTime();D.showWarningJob_=_.Jy.addLowPriorityJob(function(){return _.Z(function(a){D.showWarningJob_=0;return a.yield(cpM(D),0)})},Math.max(e-V,0)*1E3);
_.n2(b)})};
cpM=function(D){var t,H,e,V,b,a;return _.Z(function(w){if(w.nextAddress==1)return w.yield(D.playerProvider_().getPlayerPromise(),2);if(w.nextAddress!=3)return t=w.yieldResult,H=t.getCurrentTime(),w.yield($zh(D),3);e=w.yieldResult;if(!e||!D.youThereData_)return w.return();if(_.r("check_user_lact_at_prompt_shown_time_on_web")&&(V=parseInt(D.youThereData_.lactThresholdMs,10),_.aR()<V))return _.vA("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.v3(),D.youThereData_,D.clientPlaybackNonce_),w.return();if(D.youThereData_.playbackPauseDelayMs<=
0)return i7E(D),w.return();!_.r("external_fullscreen")&&(b=_.a4())&&(D.ignoreFullscreenExitUserActivity_=!0,_.Jy.addLowPriorityJob(function(){D.ignoreFullscreenExitUserActivity_=!1},2E3),_.wE(b));
D.youThereData_.showToastWarningPrompt&&(xF(D,D.youThereData_.showWarningActions),D.inYouThereFlow_=!0,_.vA("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.v3(),D.youThereData_,D.clientPlaybackNonce_,H),_.vA("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.v3(),D.youThereData_,D.clientPlaybackNonce_,H));a=0;D.youThereData_.blockingPromptDelayMs&&(a=D.youThereData_.blockingPromptDelayMs);D.showBlockingWarningJob_=_.Jy.addLowPriorityJob(function(){return _.Z(function(h){D.showBlockingWarningJob_=0;return h.yield(rpM(D),
0)})},a);
_.n2(w)})};
rpM=function(D){var t,H,e;return _.Z(function(V){if(V.nextAddress==1)return V.yield($zh(D),2);t=V.yieldResult;if(!D.youThereData_)return V.return();t&&(D.youThereData_.showBlockingWarningAction&&(_.vA("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.v3(),D.youThereData_,D.clientPlaybackNonce_),(H=_.O(D.youThereData_.showBlockingWarningAction,_.ch))?xF(D,H.commands):xF(D,[D.youThereData_.showBlockingWarningAction]),D.inYouThereFlow_=!0),e=D.youThereData_.playbackPauseDelayMs,D.pausePlaybackJob_=
_.Jy.addLowPriorityJob(function(){return _.Z(function(b){D.pausePlaybackJob_=0;return b.yield(i7E(D),0)})},e));
_.n2(V)})};
i7E=function(D){var t;return _.Z(function(H){if(H.nextAddress==1)return H.yield($zh(D),2);t=H.yieldResult;if(!D.youThereData_)return H.return();t&&(_.vA("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.v3(),D.youThereData_,D.clientPlaybackNonce_),xF(D,D.youThereData_.showPausedActions),D.inYouThereFlow_=!0);_.n2(H)})};
_.k0l.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var D=_.O(this.youThereData_.userActiveDuringFlowAction,_.ch);D?xF(this,D.commands):xF(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.vA("YOU_THERE_EVENT_TYPE_LACT_RESET",_.v3(),this.youThereData_,this.clientPlaybackNonce_),_.Ap());TTw(this,!0)}_.O71(this,!1)};
_.UzM=function(D){_.vA("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.v3(),D.youThereData_,D.clientPlaybackNonce_)};
$zh=function(D){var t,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(D.playerProvider_().getPlayerPromise(),2);t=e.yieldResult;H=t.getPlayerState();return e.return(H==-1||H==1||H==3)})};
_.O71=function(D,t){var H;_.Z(function(e){if(e.nextAddress==1){if(D.isUserPredictedAbsent_==t)return e.jumpTo(0);D.isUserPredictedAbsent_=t;return e.yield(D.playerProvider_().getPlayerPromise(),3)}H=e.yieldResult;H.setUserEngagement(t);t&&_.vA("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.v3(),D.youThereData_,D.clientPlaybackNonce_);_.n2(e)})};
xF=function(D,t){if(_.r("handle_service_request_actions")||_.r("kevlar_youthere_service_endpoint_actions_killswitch"))_.k0(D.actionSenderElement_,t,D.actionSenderElement_);else{t=_.F(t);for(var H=t.next();!H.done;H=t.next())H=H.value,H.commandMetadata&&H.commandMetadata.webCommandMetadata&&H.commandMetadata.webCommandMetadata.sendPost?_.NJ(D.actionSenderElement_,[H]):_.k0(D.actionSenderElement_,[H],D.actionSenderElement_)}};var owl;var PmM;var R7=function(){var D=_.X.apply(this,arguments)||this;D.systemIcons=_.r("kevlar_system_icons");D.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return D};
_.P(R7,_.X);R7.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var D=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(D=this.data.percentIfLiked||0,this.activated=!0):(D=this.data.percentIfIndifferent||0,this.activated=!1);_.Kg(this.hostElement).querySelector("#like-bar").style.width=D+"%"}};
R7.prototype.handleUpdateSentimentBarStateCommand=function(D){this.data&&this.set("data.likeStatus",_.O(D,KE7).likeStatus)};
R7.prototype.observeLikeStatus=R7.prototype.observeLikeStatus;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],R7.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],R7.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],R7.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],R7.prototype,"activated",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],R7.prototype,"systemIcons",void 0);_.d([_.Os("data.likeStatus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R7.prototype,"observeLikeStatus",null);_.d([_.Y({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],R7);
_.p(R7,"ytd-sentiment-bar-renderer",function(){if(PmM!==void 0)return PmM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return PmM=D},{mode:1});var nww;var uE=function(){var D=_.X.apply(this,arguments)||this;D.small=!0;return D};
_.P(uE,_.X);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],uE.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],uE.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],uE.prototype,"small",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],uE);
_.p(uE,"ytd-video-view-count-renderer",function(){if(nww!==void 0)return nww;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return nww=D},{mode:_.Kz("kevlar_poly_si_batch_j080")?1:2});var Wd=function(){var D=_.X.apply(this,arguments)||this;D.infoFormattedStrings=[];D.wrapVideoActions=_.r("kevar_watch_wrap_video_actions");D.hideSentimentBar=_.r("kevlar_watch_hide_sentiment_bar");D.actionMap={};return D};
_.P(Wd,_.X);_.q=Wd.prototype;_.q.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.r("web_modern_buttons"),forceIconButton:!_.r("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.q.dataChanged=function(){_.r("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.q.computeInfoFormattedStrings=function(D){if(!D)return[];var t=[];D.dateText&&t.push(D.dateText);D.stationName&&t.push(D.stationName);D.rating&&t.push(D.rating);D.startEndTimeTemplate&&D.startTimeUtcMillis&&D.endTimeUtcMillis&&t.push(_.H7(_.AFU(_.eo(D.startEndTimeTemplate),Number(D.startTimeUtcMillis),Number(D.endTimeUtcMillis))));D.upNextProgramText&&t.push(D.upNextProgramText);return t};
_.q.scheduleInitialUpdatedMetadataRequest=function(){var D,t=(D=this.data)==null?void 0:D.updatedMetadataEndpoint;if(t){var H;D=Number((H=_.O(t,_.kim))==null?void 0:H.initialDelayMs);H=isNaN(D)?250:D;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),H)}};
_.q.setSentimentBarWidth=function(){var D=this;_.Vi(this,function(){var t=_.Kg(D.hostElement).querySelector("ytd-menu-renderer");if(t){t=t.topLevelButtons;for(var H=0,e=0;e<t.length;e++){var V=t[e],b=D.get("toggleButtonSupportedData.toggleButtonIdData.id",V.data);if(b==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||b==="TOGGLE_BUTTON_ID_TYPE_LIKE")H+=V.clientWidth+8;else break}H&&(D.sentiment.style.width=H-8+" px")}})};
_.q.fetchUpdatedMetadata=function(D){var t;D&&(t={continuation:D});var H;(D=(H=this.data)==null?void 0:H.updatedMetadataEndpoint)&&_.qS().resolve(_.aA).resolveCommand(D,{form:Object.assign({},t,{element:this.hostElement})})};
_.q.onYtServiceRequestSent=function(D,t){t.endpoint&&_.O(t.endpoint,_.pP)&&(this.hasUpdateSentimentBarStateCommands()&&!_.r("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.O(t.endpoint,_.pP).status),this.setSentimentBarWidth())};
_.q.hasUpdateSentimentBarStateCommands=function(){var D,t,H,e,V=(e=(D=this.data)==null?void 0:(t=D.videoActions)==null?void 0:(H=t.menuRenderer)==null?void 0:H.topLevelButtons)!=null?e:[];D=_.F(V);for(t=D.next();!t.done;t=D.next()){t=t.value;V=e=H=void 0;var b=(H=t.toggleButtonRenderer)==null?void 0:(e=H.toggleButtonSupportedData)==null?void 0:(V=e.toggleButtonIdData)==null?void 0:V.id;if(b==="TOGGLE_BUTTON_ID_TYPE_LIKE"||b==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){e=H=void 0;t=(e=_.O((H=t.toggleButtonRenderer)==
null?void 0:H.defaultServiceEndpoint,_.ch))==null?void 0:e.commands;if(!t)break;t=_.F(t);for(H=t.next();!H.done;H=t.next())if(_.O(H.value,KE7))return!0}}return!1};
_.q.onYtServiceRequestCompleted=function(D,t){var H;(D=(H=t.data)==null?void 0:H.loggingDirectives)&&_.ap8(_.Pc(),D);this.get("continuation.timedContinuationData",t.data)&&this.data&&this.data.updatedMetadataEndpoint&&(t=t.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,t.continuation),t.timeoutMs))};
_.q.computeHasDateText=function(D){return!!D&&!!D.dateText};
_.ql.Object.defineProperties(Wd.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e;return!((e=(D=this.data)==null?void 0:(t=D.videoActions)==null?void 0:(H=t.menuRenderer)==null?void 0:H.flexibleItems)==null||!e.length)}}});
Wd.prototype.onYtServiceRequestCompleted=Wd.prototype.onYtServiceRequestCompleted;Wd.prototype.onYtServiceRequestSent=Wd.prototype.onYtServiceRequestSent;Wd.prototype.dataChanged=Wd.prototype.dataChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Wd.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.PP.YtTaskEmitterBehavior),_.x("design:type",Object)],Wd.prototype,"ytTaskEmitterBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Wd.prototype,"data",void 0);_.d([_.M({computed:"computeInfoFormattedStrings(data)"}),_.x("design:type",Array)],Wd.prototype,"infoFormattedStrings",void 0);
_.d([_.M({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Wd.prototype,"hasDateText",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Wd.prototype,"wrapVideoActions",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Wd.prototype,"hideSentimentBar",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Wd.prototype,"flexMenuEnabled",null);
_.d([_.o5("#sentiment"),_.x("design:type",Object)],Wd.prototype,"sentiment",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wd.prototype,"dataChanged",null);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],Wd.prototype,"onYtServiceRequestSent",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],Wd.prototype,"onYtServiceRequestCompleted",null);
_.p(Wd,"ytd-video-primary-info-renderer",function(){if(owl===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);owl=D}D=owl;return D},{mode:1});var CmN;var I7=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return D};
_.P(I7,_.X);_.q=I7.prototype;_.q.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"}}}};
_.q.dataChanged=function(){var D;this.descriptionToggled=!((D=this.data)==null||!D.defaultExpanded);var t;this.collapsed=this.descriptionAlwaysCollapsed||!((t=this.data)==null?0:t.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Nx(110509);this.showLessClientVe=_.Nx(110510);D=_.v3();t=_.lo();D&&t&&_.y$(D,t,[this.showMoreClientVe,this.showLessClientVe])};
_.q.onYtExpanderMoreTapped=function(){var D,t=(D=this.data)==null?void 0:D.showMoreCommand;t&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(t);(D=_.v3())&&this.showMoreClientVe&&_.tV(D,this.showMoreClientVe)};
_.q.onYtExpanderLessTapped=function(){var D=_.v3();D&&this.showLessClientVe&&_.tV(D,this.showLessClientVe);var t;(D=(t=this.data)==null?void 0:t.showLessCommand)&&this.componentBehavior.resolveCommand(D)};
_.q.handleUpdateDateTextAction=function(D){this.data&&this.data.dateText&&this.set("data.dateText",_.O(D,_.G7M).dateText)};
_.q.handleUpdateDescriptionAction=function(D){if(D=_.O(D,_.kG6))D.isEmpty||!D.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.lf(D.description)):this.set("data.description",D.description)};
_.q.onYtChangeEngagementPanelVisibilityAction=function(D){if(_.r("web_structured_description_show_more")||_.r("web_engagement_panel_open_description")){var t,H=(t=_.O(D,_.ixo))==null?void 0:t.targetId,e;D=((e=_.O(D,_.ixo))==null?void 0:e.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";H==="engagement-panel-structured-description"&&D&&(this.descriptionToggled=!0)}};
_.q.updateCollapsedFromBinding=function(D){this.collapsed=D.detail.value};
_.q.updateDescriptionToggledFromBinding=function(D){this.descriptionToggled=D.detail.value};
_.q.updateCanCollapseFromBinding=function(D){this.canCollapse=D.detail.value};
_.ql.Object.defineProperties(I7.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var D,t,H=(D=this.data)==null?void 0:(t=D.metadataRowContainer)==null?void 0:t.metadataRowContainerRenderer;return!!H&&!!H.rows&&H.rows.length>H.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.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}}});
I7.prototype.onYtExpanderLessTapped=I7.prototype.onYtExpanderLessTapped;I7.prototype.onYtExpanderMoreTapped=I7.prototype.onYtExpanderMoreTapped;I7.prototype.dataChanged=I7.prototype.dataChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],I7.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],I7.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],I7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],I7.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],I7.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],I7.prototype,"collapsed",void 0);_.d([_.M(),_.x("design:type",Boolean)],I7.prototype,"descriptionToggled",void 0);
_.d([_.M(),_.x("design:type",Boolean)],I7.prototype,"canCollapse",void 0);_.d([_.M(),_.x("design:type",Object)],I7.prototype,"subscribeButtonData",void 0);_.d([_.M(),_.x("design:type",Number)],I7.prototype,"descriptionCollapsedHeight",void 0);_.d([_.M(),_.x("design:type",Object)],I7.prototype,"structuredDescriptionContentRenderer",void 0);_.d([_.M({value:function(){return _.r("web_watch_description_always_collapsed")}}),
_.x("design:type",Boolean)],I7.prototype,"descriptionAlwaysCollapsed",void 0);_.d([_.o5("#description"),_.x("design:type",HTMLDivElement)],I7.prototype,"description",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],I7.prototype,"dataChanged",null);_.d([_.rx("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],I7.prototype,"onYtExpanderMoreTapped",null);
_.d([_.rx("yt-expander-less-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],I7.prototype,"onYtExpanderLessTapped",null);_.d([_.m("data.metadataRowContainer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],I7.prototype,"metadataCollapsible",null);_.d([_.m("data","structuredDescriptionContentRenderer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],I7.prototype,"hasInlineStructuredDescription",null);
_.d([_.m("data.attributedDescription"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],I7.prototype,"hasAttributedDescription",null);_.d([_.m("hasInlineStructuredDescription","collapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],I7.prototype,"loadStructuredDescription",null);_.d([_.m("data","structuredDescriptionContentRenderer","collapsed"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],I7.prototype,"showInlineStructuredDescription",null);
_.d([_.m("data","hasInlineStructuredDescription","metadataCollapsible"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],I7.prototype,"descriptionAlwaysCollapsible",null);
_.p(I7,"ytd-video-secondary-info-renderer",function(){if(CmN===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);CmN=D}D=CmN;return D},{mode:2});var mzF;var QE=function(){return _.X.apply(this,arguments)||this};
_.P(QE,_.X);QE.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:_.r("web_modern_buttons"),forceIconButton:!_.r("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
QE.prototype.activate=function(D){D.appendTo(this.player);D.getPlayerPromise().then(function(t){t.setMinimized(!0)});
this.active=!0};
QE.prototype.deactivate=function(){var D=this.player.firstElementChild;D.getPlayerPromise().then(function(t){t.setMinimized(!1)});
this.active=!1;return D};
QE.prototype.onScrollUpTap=function(){var D=_.qS().resolve(_.bO).getCurrentPage();D&&D.setScrollTop(0)};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],QE.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],QE.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],QE.prototype,"active",void 0);
_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.x("design:type",Boolean)],QE.prototype,"darkLaunch",void 0);_.d([_.o5("#player"),_.x("design:type",HTMLDivElement)],QE.prototype,"player",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],QE);
_.p(QE,"ytd-miniplayer-bar-renderer",function(){if(mzF!==void 0)return mzF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return mzF=D},{mode:1});_.hB(_.l(function(D){var t=_.DY("script");_.Mp(function(){var H;if(H=JSON)H=hHd(D.data()),H=_.Vf(JSON.stringify(H).replace(/</g,"\\u003C"));var e=D.data(),V=_.eo(e.title).trim().length===0,b=!e.publishDate||e.publishDate.trim().length===0,a,w,h,K,N=!((a=e.thumbnail)==null?0:(w=a.thumbnails)==null?0:w.length)||!((h=e.thumbnail)==null?0:h.thumbnails[0].url)||((K=e.thumbnail)==null?void 0:K.thumbnails[0].url.trim().length)===0;t.value&&H&&!(V||b||N)&&_.bF(t.value,H)},"Vy9K7b");
return _.G("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.G("script",{el:t,type:"application/ld+json"}))},"Xm"),"player-microformat-renderer",{props:{data:_.wm}});
}catch(e){_._DumpException(e)}
try{
var ryE,OXh,oVh;_.iXd=function(D){return D.watch.watchWindowSize};
ryE=function(D,t){var H=document.querySelector(D);H?t(H):setTimeout(function(){ryE(D,t)},1E3)};
OXh=function(D,t,H,e){if(D.isLockupToWatchTransitionEnabled){if(t){var V={};V=(V["watch-next-appears"]="player-watch-next-loaded",V);V["lockup-to-watch"]=D.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";D.viewTransitionCoordinator.registerElement(t,V)}H&&(t={},D.viewTransitionCoordinator.registerElement(H,(t["lockup-to-watch"]="below-lockup-to-watch",t["watch-next-appears"]="below-watch-next-loaded",t)));e&&(H={},D.viewTransitionCoordinator.registerElement(e,
(H["watch-next-appears"]="secondary-watch-next-loaded",H)))}};
_.UOA=function(D){return _.hV({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:D}})};
oVh=new _.NM("webWatchNextResponseExtensionData");var nVw=function(D){_.mg.call(this);var t=this;this.JSC$23072_watchApi=D;this.observer=null;var H=this.JSC$23072_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){PgM(t)});
this.addOnDisposeCallback(function(){t.JSC$23072_watchApi.unsubscribeByKey(H);t.observer&&(t.observer.disconnect(),t.observer=null)});
PgM(this)};
_.P(nVw,_.mg);
var PgM=function(D){var t,H,e,V;_.Z(function(b){if(b.nextAddress==1){D.observer&&(D.observer.disconnect(),D.observer=null);t=D.JSC$23072_watchApi.getWatchNextResponse();if(!t)return b.return();H=_.O(t,oVh);return((e=H)==null?0:e.enableCreatorChatbot)&&H.creatorChannelId?b.yield((0,_.QsD)("NSzT5"),3):b.jumpTo(0)}V=_.j4t;V(H.creatorChannelId);ryE("ytd-watch-metadata",function(a){D.observer=new MutationObserver(function(){var w,h;(w=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||
(h=w.closest("yt-button-view-model.ytd-menu-renderer"))==null||h.remove()});
D.observer.observe(a,{childList:!0,subtree:!0})});
_.n2(b)})};var mOM=function(D){_.mg.call(this);this.JSC$23076_watchApi=D;CgM(this)};
_.P(mOM,_.mg);var CgM=function(D){_.Z(function(t){if(t.nextAddress==1)return t.yield(MEY(D),2);SqU(D);_.n2(t)})},MEY=function(D){var t,H,e,V;
return _.Z(function(b){if(b.nextAddress==1)return b.yield(D.JSC$23076_watchApi.playerApi,2);t=b.yieldResult;D.JSC$23076_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){Xel(D)});
H=D.JSC$23076_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){SqU(D)});
e=function(a){D.onCueRangeEnter(a)};
t.addEventListener("onCueRangeEnter",e);V=function(a){D.onCueRangeExit(a)};
t.addEventListener("onCueRangeExit",V);D.addOnDisposeCallback(function(){D.JSC$23076_watchApi.unsubscribeByKey(H);t.removeEventListener("onCueRangeEnter",e);t.removeEventListener("onCueRangeExit",V)});
_.n2(b)})},f4h=function(D){var t,H,e,V,b,a,w,h,K;
return(b=(t=D.contents)==null?void 0:(H=t.twoColumnWatchNextResults)==null?void 0:(e=H.results)==null?void 0:(V=e.results)==null?void 0:V.contents)==null?void 0:(a=b.find(function(N){var k,T,c;return(k=N.itemSectionRenderer)==null?void 0:(T=k.contents)==null?void 0:(c=T[0])==null?void 0:c.shoppingTimelyShelfViewModel}))==null?void 0:(w=a.itemSectionRenderer)==null?void 0:(h=w.contents)==null?void 0:(K=h[0])==null?void 0:K.shoppingTimelyShelfViewModel},SqU=function(D){var t;
_.Z(function(H){if(H.nextAddress==1)return(t=D.JSC$23076_watchApi.getWatchNextResponse())?H.yield(Xel(D),2):H.return();D.shoppingTimelyShelfViewModel=f4h(t);LYh(D);AyU(D);_.n2(H)})},LYh=function(D){var t,H=(t=D.shoppingTimelyShelfViewModel)==null?void 0:t.offerIdToVariants;
H&&(t=H.filter(function(e){return e.key&&e.value}).map(function(e){return[e.key,
e.value]}),D.variantsMap=new Map(t))},AyU=function(D){var t,H,e,V,b,a;
_.Z(function(w){if(w.nextAddress==1)return(H=(t=D.shoppingTimelyShelfViewModel)==null?void 0:t.cueRanges)?w.yield(D.JSC$23076_watchApi.playerApi,2):w.return();e=w.yieldResult;D.cueRanges=H;V=_.F(H);for(b=V.next();!b.done;b=V.next())a=b.value,a.startTime!==void 0&&a.endTime!==void 0&&a.id!==void 0&&e.addCueRange("shopping_timely_shelf"+a.id,gV7(a.startTime),gV7(a.endTime));_.n2(w)})},gV7=function(D){return Number(D.seconds||0)+(D.nanos||0)/1E9};
mOM.prototype.onCueRangeEnter=function(D){if(D.startsWith("shopping_timely_shelf")){var t=D.substring(21),H,e;D=(H=this.variantsMap)==null?void 0:(e=H.get(t))==null?void 0:e.shelf;if(_.r("web_enable_shopping_timely_shelf_client_overwrite")){var V,b,a,w,h;H=D==null?void 0:(V=D.shoppingTimelyShelfContentViewModel)==null?void 0:(b=V.button)==null?void 0:(a=b[1])==null?void 0:(w=a.buttonViewModel)==null?void 0:(h=w.onTap)==null?void 0:h.innertubeCommand;var K,N;if(H==null?0:(K=H.menuEndpoint)==null?0:
(N=K.menu)==null?0:N.menuRenderer)H.openPopupAction=H.menuEndpoint,H.openPopupAction.popup=H.openPopupAction.menu,H.openPopupAction.popup.menuPopupRenderer=H.openPopupAction.popup.menuRenderer,H.openPopupAction.popupType="DROPDOWN",delete H.menuEndpoint,delete H.openPopupAction.menu,delete H.openPopupAction.popup.menuRenderer;V=D==null?void 0:D.shoppingTimelyShelfContentViewModel;if(V!=null&&V.button)for(b=_.F(V.button),w=b.next();!w.done;w=b.next())a=void 0,(w=(a=w.value)==null?void 0:a.buttonViewModel)&&
!w.onTap&&(a=void 0,w.onTap=(a=V.rendererContext)==null?void 0:a.commandContext.onTap)}D&&this.JSC$23076_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",D)}};
mOM.prototype.onCueRangeExit=function(D){D.startsWith("shopping_timely_shelf")&&this.JSC$23076_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var Xel=function(D){var t,H,e,V,b;return _.Z(function(a){if(a.nextAddress==1)return a.yield(D.JSC$23076_watchApi.playerApi,2);t=a.yieldResult;if(D.cueRanges)for(H=_.F(D.cueRanges),e=H.next();!e.done;e=H.next())V=e.value,V.id&&(b="shopping_timely_shelf"+V.id,t.removeCueRange(b));D.JSC$23076_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});D.shoppingTimelyShelfViewModel=void 0;D.cueRanges=void 0;D.variantsMap=void 0;_.n2(a)})};var peM=function(D){_.mg.call(this);var t=this;this.JSC$23083_watchApi=D;D=_.Rj(_.b_(),_.u8V,function(){JyN(t)});
this.addOnDisposeCallback(D);D=_.Rj(_.b_(),_.iXd,function(){JyN(t)});
this.addOnDisposeCallback(D);Yql(this);l4l(this);vVh()};
_.P(peM,_.mg);var Yql=function(D){var t=function(e){_.b_().dispatch(_.SYY(e.matches))},H=window.matchMedia("(max-width: "+(999+_.kA())+"px)");
H.addListener(t);D.addOnDisposeCallback(function(){H.removeListener(t)});
t(H)},l4l=function(D){D.JSC$23083_watchApi.registerActionHandler("yt-window-resized",function(){vVh()});
D.addOnDisposeCallback(function(){D.JSC$23083_watchApi.unregisterActionHandler("yt-window-resized")})},vVh=function(){var D=_.n_();
_.b_().dispatch(_.hV({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:D.width,height:D.height}}}))},JyN=function(D){var t;
_.Z(function(H){if(H.nextAddress==1)return H.yield(D.JSC$23083_watchApi.playerApi,2);t=H.yieldResult;t.setSize(NaN,NaN);_.n2(H)})};var dOl=function(D){_.mg.call(this);var t=_.qS().resolve(_.R_);OXh(t,D.getElement("PLAYER_CONTAINER"),D.getElement("BELOW_THE_PLAYER"),D.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var H=D.getElement("PLAYER_CONTAINER"),e=D.getElement("BELOW_THE_PLAYER"),V=D.getElement("SECONDARY");t.isLockupToWatchTransitionEnabled&&(H&&_.pf(t.viewTransitionCoordinator,H),e&&_.pf(t.viewTransitionCoordinator,e),V&&_.pf(t.viewTransitionCoordinator,V))})};
_.P(dOl,_.mg);_.YF=function(D){_.d5.call(this);var t=this;this.rootElement=D;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return t.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(H){t.initOrDisposeActiveModules(H)}));
this.onAttached()};
_.P(_.YF,_.d5);_.q=_.YF.prototype;_.q.getRoot=function(){return this.rootElement};
_.q.getElement=function(D){return this.rootElement.getElement(D)};
_.q.setPlayerResponse=function(D){this.playerResponse=D;this.publish("PLAYER_RESPONSE_UPDATED",D)};
_.q.getPlayerResponse=function(){return this.playerResponse};
_.q.setWatchNextResponse=function(D){this.watchNextResponse===D?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=D,this.publish("WATCH_NEXT_RESPONSE_UPDATED",D))};
_.q.getWatchNextResponse=function(){return this.watchNextResponse};
_.q.registerActionHandler=function(D,t){var H=this;if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var e={};_.ya(_.Qa.getInstance(),(e[D]=t,e),this.getRoot())}else this.actionHandlers.has(D)||(this.actionHandlers.set(D,[]),e={},_.ya(_.Qa.getInstance(),(e[D]=function(){var V=_.RE.apply(0,arguments);return(H.actionHandlers.get(D)||[]).map(function(b){return b.apply(null,_.A6(V))})},e),this.getRoot())),this.actionHandlers.get(D).push(t)};
_.q.unregisterActionHandler=function(D){if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var t={};_.B$(_.Qa.getInstance(),(t[D]=!0,t),this.getRoot())}else(t=this.actionHandlers.get(D))?(t.pop(),t.length===0&&(t={},_.B$(_.Qa.getInstance(),(t[D]=!0,t),this.getRoot()),this.actionHandlers.delete(D))):_.Yw(new _.nZ("Attempted to unregister an action handler which is not registered.",D))};
_.q.addPageDisposeJob=function(D){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.mu$(this.rootElement.pageDisposeJobs,D)};
_.q.removePageDisposeJob=function(D){this.rootElement.pageDisposeJobs&&_.vk(this.rootElement.pageDisposeJobs,D)};
_.q.dispatchEvent=function(D,t){_.Gf(this.rootElement,D,t)};
_.q.provideRenderingData=function(D,t){this.rootElement.provideRenderingData(D,t)};
_.q.scrollWatchTo=function(D,t){var H;(H=this.watchScrollManager)==null||H.scrollWatchTo(D,t)};
_.q.focusOnPlayer=function(){var D=this.getElement("PLAYER");_.Vi(D,function(){if(D&&D.firstElementChild){var t=D.querySelector(".html5-video-player");t&&(_.Co(_.qS().resolve(_.mM)),t.focus())}else _.Yw(Error("Wo"))})};
_.q.subscribeToActiveChanged=function(D,t){t=t===void 0?!0:t;var H=_.Rj(_.b_(),_.MbM,function(e){D(e)});
t&&D(_.MbM(_.b_().getState()));return H};
_.q.isActive=function(){return _.MbM(_.b_().getState())};
_.q.onAttached=function(){var D=_.r("external_fullscreen");_.r("use_unified_flag_accessor")&&(D=_.qS().resolve(_.Wut).retriever.getFlag(_.XI9));(D||_.lh("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var xOA=function(D){return D.getRoot().is==="ytd-watch-flexy"||D.getRoot().is==="ytd-watch-grid"},lE=function(D){return D.getRoot().is==="ytd-watch-fixie"};
_.YF.prototype.initPersistentModules=function(){if(lE(this)||xOA(this)&&_.r("kevlar_watch_flexy_theater_manager")){var D=new _.uHU(this);_.c1(this,D)}D=new _.fUF(this);_.c1(this,D);D=new _.SS(this);_.c1(this,D);D=new _.mSN(this);_.c1(this,D);D=new _.gC(this);_.c1(this,D);D=new _.XB(this);_.c1(this,D);if(lE(this)||xOA(this)&&_.r("kevlar_watch_flexy_playlist_manager"))D=new _.Gr1(this),_.c1(this,D);_.r("web_thumbnail_to_watch_transition")&&(D=new dOl(this),_.c1(this,D))};
_.YF.prototype.initOrDisposeActiveModules=function(D){D?(this.watchScrollManager=new _.JI(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.QAM(this)),_.r("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new mOM(this)),this.activeModules.push(new _.I_Y(this)),lE(this)&&this.activeModules.push(new peM(this)),this.activeModules.push(new _.cyU(this)),this.activeModules.push(new _.pYU(this)),(lE(this)||_.r("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.D2U(this)),this.activeModules.push(new _.HXh(this)),(lE(this)||_.r("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.$OU(this)),(lE(this)||_.r("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.wYU(this)),_.r("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.ExA(this),this.activeModules.push(this.watchCinematicManager)),_.r("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.qqU(this)),_.r("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.SaU(this)),D=_.r("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.r("kevlar_watch_flexy_comments_manager")&&!D&&this.activeModules.push(new _.US7(this)),_.r("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.hhF(this)),this.activeModules.push(new _.tcA(this)),this.activeModules.push(new _.Biw(this)),_.r("web_enable_timely_actions")&&this.activeModules.push(new _.bZY(this)),_.r("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.Phl(this)),_.r("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.T1U(this)),_.r("web_fullscreen_components")&&this.activeModules.push(new _.VG7(this)),_.r("web_player_rtr_ctrls")&&this.activeModules.push(new _.Ch1(this)),_.r("enable_creator_chatbot")&&this.activeModules.push(new nVw(this))):(_.Fs(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.YF.prototype.disposeInternal=function(){_.d5.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.ql.Object.defineProperties(_.YF.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var Tz4,ev,cOF,jLZ,ihv,rOF,$Zg,Oh4;Tz4=function(){var D=_.Cl();D.info||(D.info={});return D.info};
ev=function(D){return Math.round(_.Xy()+D)};
cOF=function(){var D;if(_.r("csi_use_performance_navigation_timing")){var t,H,e,V=_.SP==null?void 0:(D=_.SP.getEntriesByType)==null?void 0:(t=D.call(_.SP,"navigation"))==null?void 0:(H=t[0])==null?void 0:(e=H.toJSON)==null?void 0:e.call(H);V?(V.requestStart=ev(V.requestStart),V.responseEnd=ev(V.responseEnd),V.redirectStart=ev(V.redirectStart),V.redirectEnd=ev(V.redirectEnd),V.domainLookupEnd=ev(V.domainLookupEnd),V.connectStart=ev(V.connectStart),V.connectEnd=ev(V.connectEnd),V.responseStart=ev(V.responseStart),
V.secureConnectionStart=ev(V.secureConnectionStart),V.domainLookupStart=ev(V.domainLookupStart),V.isPerformanceNavigationTiming=!0,D=V):D=_.SP.timing}else D=_.r("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.SP.timing)):_.SP.timing;return D};
jLZ=function(){if(_.SP.getEntriesByType){var D=_.SP.getEntriesByType("paint");if(D=_.LK(D,function(H){return H.name==="first-paint"}))return ev(D.startTime)}var t;
_.r("csi_use_performance_navigation_timing")?t=_.SP.getEntriesByType("first-paint")[0].startTime:t=_.SP.timing.msFirstPaint;return t?Math.max(0,t):0};
ihv=function(){var D=window.location.protocol,t=_.SP.getEntriesByType("resource");t=_.hM(t,function(H){return H.name.indexOf(D+"//fonts.gstatic.com/s/")===0});
(t=$Zg(t,function(H,e){return e.duration>H.duration?e:H}))&&t.startTime>0&&t.responseEnd>0&&(_.fl("wffs",ev(t.startTime)),_.fl("wffe",ev(t.responseEnd)))};
rOF=function(D,t){D=document.querySelector(D);if(!D)return!1;var H="",e=D.nodeName;e==="SCRIPT"?(H=D.src,H||(H=D.getAttribute("data-timing-href"))&&(H=window.location.protocol+H)):e==="LINK"&&(H=D.href);_.t6(document)&&D.setAttribute("nonce",_.t6(document));return H?(D=_.SP.getEntriesByName(H))&&D[0]&&(D=D[0],H=_.Xy(),_.fl("rsf_"+t,H+Math.round(D.fetchStart)),_.fl("rse_"+t,H+Math.round(D.responseEnd)),D.transferSize!==void 0&&D.transferSize===0)?!0:!1:!1};
_.V7=function(D,t){_.pY(function(){_.MJ("").info.actionType=D;t&&_.JZ("TIMING_AFT_KEYS",t);_.JZ("TIMING_ACTION",D);var H=_.U48(_.YC("TIMING_INFO",{}));Object.keys(H).length>0&&_.Ll(H);H={isNavigation:!0,actionType:_.hTD(_.YC("TIMING_ACTION"))};var e=_.YC("PREVIOUS_ACTION");e&&(H.previousAction=_.hTD(e));if(e=_.YC("CLIENT_PROTOCOL"))H.httpProtocol=e;if(e=_.YC("CLIENT_TRANSPORT"))H.transportProtocol=e;(e=_.v3())&&e!=="UNDEFINED_CSN"&&(H.clientScreenNonce=e);e=_.OLK();if(e===1||e===-1)H.isVisible=!0;
e=_.Vnu().loadType==="cold";var V=Tz4();e||(e=V.yt_lt==="cold");if(e){H.loadType="cold";e=Tz4();V=cOF();var b=_.Xy(),a=_.YC("CSI_START_TIMESTAMP_MILLIS",0);a>0&&!_.r("embeds_web_enable_csi_start_override_killswitch")&&(b=a);b&&(_.fl("srt",V.responseStart),e.prerender!==1&&_.kOu(b));e=jLZ();e>0&&_.fl("fpt",e);e=cOF();e.isPerformanceNavigationTiming&&_.Ll({performanceNavigationTiming:!0},void 0);_.fl("nreqs",e.requestStart,void 0);_.fl("nress",e.responseStart,void 0);_.fl("nrese",e.responseEnd,void 0);
e.redirectEnd-e.redirectStart>0&&(_.fl("nrs",e.redirectStart,void 0),_.fl("nre",e.redirectEnd,void 0));e.domainLookupEnd-e.domainLookupStart>0&&(_.fl("ndnss",e.domainLookupStart,void 0),_.fl("ndnse",e.domainLookupEnd,void 0));e.connectEnd-e.connectStart>0&&(_.fl("ntcps",e.connectStart,void 0),_.fl("ntcpe",e.connectEnd,void 0));e.secureConnectionStart>=_.Xy()&&e.connectEnd-e.secureConnectionStart>0&&(_.fl("nstcps",e.secureConnectionStart,void 0),_.fl("ntcpe",e.connectEnd,void 0));_.SP&&"getEntriesByType"in
_.SP&&ihv();e=[];if(document.querySelector&&_.SP&&_.SP.getEntriesByName)for(var w in Oh4)Oh4.hasOwnProperty(w)&&(V=Oh4[w],rOF(w,V)&&e.push(V));if(e.length>0)for(H.resourceInfo=[],w=_.F(e),e=w.next();!e.done;e=w.next())H.resourceInfo.push({resourceCache:e.value})}_.Ll(H);H=_.m$();H.preLoggedGelInfos||(H.preLoggedGelInfos=[]);w=H.preLoggedGelInfos;H=_.qAK();e=void 0;for(V=0;V<w.length;V++)if(b=w[V],b.loadType){e=b.loadType;break}if(_.Vnu().loadType==="cold"&&(H.loadType==="cold"||e==="cold")){e=_.bLD();
V=_.m$();V=V.gelTicks?V.gelTicks:V.gelTicks={};for(var h in e)if(!(h in V))if(typeof e[h]==="number")_.fl(h,_.AE(h));else if(_.r("log_repeated_ytcsi_ticks"))for(b=_.F(e[h]),a=b.next();!a.done;a=b.next())a=a.value,_.fl(h.slice(1),a);h={};e=!1;w=_.F(w);for(V=w.next();!V.done;V=w.next())e=V.value,_.Rz(H,e),_.Rz(h,e),e=!0;e&&_.Ll(h)}_.C98(!0);h=_.YC("TIMING_ACTION");_.RD("ytglobal.timingready_")&&h&&_.J7u()&&_.nk6()&&_.iL8()})()};
$Zg=function(D,t){return Array.prototype.reduce.call(D,t,{duration:0})};
Oh4={'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 UZv={};UZv.YtVisibilityRootBehavior=[_.N2n.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.qc(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.YC("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var D=_.YC("INNERTUBE_CLIENT_NAME")!=="WEB";_.r("kevlar_use_vimio_behavior")&&D&&_.Ndn()}}];_.bn={};_.bn.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(D){D.detail.contextProvider=this;D.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
UZv.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.z3();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(D){var t=this;this.pageCount+=1;_.r("kevlar_use_vimio_behavior")&&(_.YC("INNERTUBE_CLIENT_NAME")==="WEB"?_.Jy.addJob(function(){t.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(D)},
loadPage_:function(D){this.data=D},
ytPageBehaviorActiveObserver_:function(D){var t=this;_.r("kevlar_use_vimio_behavior")&&(D?_.YC("INNERTUBE_CLIENT_NAME")==="WEB"?_.Jy.addJob(function(){t.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(D){if(!this.setScrollTopJobId_){var t=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){t.setScrollTopJobId_=0;var H=_.qS().resolve(_.by(_.mM));H&&_.Co(H);this.getPageScrollingElement().scrollTop=D}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.vr(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var kQF;var HQ=function(){var D=_.X.apply(this,arguments)||this;D.playerListenerConfig=null;D.actionMap={"yt-show-watch-page-survey":"openSurvey"};return D};
_.P(HQ,_.X);_.q=HQ.prototype;_.q.dataChanged=function(){var D=this,t=_.FA();t&&t.getPlayerPromise().then(function(e){D.maybeRemovePlayerListeners(e)});
var H=this.data&&this.data.survey;H&&((H=(H=H.singleOptionSurveyRenderer||H.checkboxSurveyRenderer||H.multiStageSurveyRenderer)&&H.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(t,H):this.openSurvey())};
_.q.triggerWatchPageSurvey=function(D,t){var H=this,e,V,b,a,w,h,K,N,k;return _.Z(function(T){if(T.nextAddress==1)return D?T.yield(D.getPlayerPromise(),2):T.return();H.player=T.yieldResult;if(!H.player)return T.return();e={};V=_.F(t);for(b=V.next();!b.done;b=V.next())a=b.value,w=_.F(H.createEventListenerPair(a)),h=w.next().value,K=w.next().value,N=h,k=K,N&&k&&(e[N]=k,H.ytPlayerListenerBehavior.listenToPlayerEvent(H.player,N,k));H.playerListenerConfig=e;_.n2(T)})};
_.q.createEventListenerPair=function(D){var t=D.playbackEventTrigger;return t?this.handlePlaybackTrigger(t):(D=D.watchTimeTrigger)?this.handleWatchTimeTrigger(D):[void 0,void 0]};
_.q.handleWatchTimeTrigger=function(D){var t=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var H=D.videoWatchFraction,e=D.watchTimeSec;return e&&H?["onVideoProgress",function(){t.player&&t.isWatchTimeConditionMet(t.player,H,e)&&t.showSurvey()}]:[void 0,
void 0]};
_.q.isWatchTimeConditionMet=function(D,t,H){var e=D.getProgressState(),V=e.current-this.lastKnownPlaybackPosition;V<5&&(this.accumulatedMediaTime+=V);this.lastKnownPlaybackPosition=e.current;e=Math.round(this.accumulatedMediaTime/e.duration*1E3)/1E3;return D.getPresentingPlayerType&&D.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>H||e>t)};
_.q.handlePlaybackTrigger=function(D){var t=this;D=D.playbackEvent;if(D==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var H="onStateChange";var e=function(V){V===0&&t.showSurvey()}}else D==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(H="onVideoProgress",e=function(V){t.player&&t.player.getPresentingPlayerType&&t.player.getPresentingPlayerType()===1&&V&&t.showSurvey()}):D==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(H="onAdEnd",e=this.showSurvey);
return[H,e]};
_.q.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.q.openSurvey=function(){var D=this,t=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.DJF(!!t));_.Jy.addJob(function(){D.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:t}})},0,0)};
_.q.maybeRemovePlayerListeners=function(D){if(this.playerListenerConfig){for(var t=_.F(Object.keys(this.playerListenerConfig)),H=t.next();!H.done;H=t.next())H=H.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(D,H,this.playerListenerConfig[H]);this.playerListenerConfig=null}};
HQ.prototype.dataChanged=HQ.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],HQ.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",_.rt)],HQ.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],HQ.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C(_.sx),_.x("design:type",Object)],HQ.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],HQ.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],HQ.prototype,"playerListenerConfig",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],HQ.prototype,"lastKnownPlaybackPosition",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],HQ.prototype,"accumulatedMediaTime",void 0);_.d([_.M(),_.x("design:type",Object)],HQ.prototype,"player",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HQ.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],HQ);
_.p(HQ,"ytd-survey-trigger-renderer",function(){if(kQF!==void 0)return kQF;var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return kQF=D},{mode:1});
}catch(e){_._DumpException(e)}
try{
var hgd=new _.NM("promotedSparklesWebRenderer");var GHM=new _.NM("relatedChipCommand");var EQU;var Kil;var SO=function(){return _.X.apply(this,arguments)||this};
_.P(SO,_.X);SO.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],SO.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],SO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],SO.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],SO);
_.p(SO,"ytd-compact-tvfilm-entry-point-renderer",function(){if(Kil!==void 0)return Kil;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Kil=D},{mode:1});var N47;var kHw;var T4h;var XY=function(){return _.X.apply(this,arguments)||this};
_.P(XY,_.X);XY.prototype.ready=function(){this.initializeDefs()};
XY.prototype.initializeDefs=function(){var D=this.meta.byKey("yt-icons"),t=_.Kg(D).querySelector("#star"),H=_.Kg(D).querySelector("#star_half");D=_.Kg(D).querySelector("#star_border");t&&this.defs.appendChild(t.cloneNode(!0));H&&this.defs.appendChild(H.cloneNode(!0));D&&this.defs.appendChild(D.cloneNode(!0))};
XY.prototype.percentChanged=function(){for(var D=this.rating;D.firstChild;)D.removeChild(D.firstChild);var t=Math.round(this.percent/10);D=Math.floor(t/2);t%=2;var H=5-D-t;this.appendStars("star",D,0);this.appendStars("star_half",t,D);this.appendStars("star_border",H,D+t)};
XY.prototype.appendStars=function(D,t,H){for(var e=0;e<t;e++){var V=(18+this.spacing)*(e+H),b=document.createElementNS("http://www.w3.org/2000/svg","use");_.Nii(b,"#"+D);b.setAttribute("x",""+V);b.setAttribute("y","0");this.rating.appendChild(b)}};
XY.prototype.percentChanged=XY.prototype.percentChanged;_.d([_.o5("#defs"),_.x("design:type",HTMLElement)],XY.prototype,"defs",void 0);_.d([_.o5("#rating"),_.x("design:type",HTMLElement)],XY.prototype,"rating",void 0);_.d([_.M(),_.x("design:type",Number)],XY.prototype,"percent",void 0);_.d([_.M({value:6}),_.x("design:type",Number)],XY.prototype,"spacing",void 0);_.d([_.M({value:_.vb.create("iron-meta",{type:"iconset"})}),_.x("design:type",_.R0)],XY.prototype,"meta",void 0);
_.d([_.Os("percent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XY.prototype,"percentChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-ratings"})],XY);
_.p(XY,"ytd-ratings",function(){if(T4h!==void 0)return T4h;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return T4h=D},{mode:1});var cFU=function(){return _.X.apply(this,arguments)||this};
_.P(cFU,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],cFU.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],cFU.prototype,"data",void 0);_.d([_.Y({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],cFU);
_.p(cFU,"ytd-offer-review-renderer",function(){if(kHw!==void 0)return kHw;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return kHw=D},{mode:1});var fd=function(){var D=_.X.apply(this,arguments)||this;D.badges=[{textBadge:{label:_.H7("CC")}}];return D};
_.P(fd,_.X);_.q=fd.prototype;_.q.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.q.dataChanged=function(){var D=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(D&&D.commandMetadata&&_.O(D.commandMetadata,_.uq)&&_.O(D.commandMetadata,_.uq).fireAutomatically)_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}});else{var t;D&&((t=_.O(D,_.uq))==null?0:t.fireAutomatically)&&_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}})}};
_.q.isEmptyContent=function(D){return this.isStorefrontEntryPointEmpty(D)&&this.shouldHideOfferModule(D)};
_.q.isStorefrontEntryPointEmpty=function(D){return!D||!D.storefrontEntryPoint};
_.q.shouldHideOfferModule=function(D){return!!D.hideVideoDetails};
_.q.isOfferModuleNavigationInactive=function(D){return!D.navigationEndpoint&&!D.serviceEndpoint};
_.q.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.qS().resolve(_.aA).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
fd.prototype.dataChanged=fd.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],fd.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],fd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],fd.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.x("design:type",Boolean)],fd.prototype,"hidden",void 0);
_.d([_.M(),_.x("design:type",Object)],fd.prototype,"badges",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fd.prototype,"dataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],fd);
_.p(fd,"ytd-movie-offer-module-renderer",function(){if(N47!==void 0)return N47;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return N47=D},{mode:1});var jvU;var $HM=function(){return _.X.apply(this,arguments)||this};
_.P($HM,_.X);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],$HM.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$HM.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],$HM);
_.p($HM,"ytd-media-masthead-renderer",function(){if(jvU!==void 0)return jvU;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return jvU=D},{mode:1});var ieN;_.hB(_.W0f,"course-metadata-view-model",{props:{data:_.wm,isOverlay:_.wm}});var Ld=function(){var D=_.X.apply(this,arguments)||this;D.isMetadataVisible=!1;D.modernPanels=_.r("kevlar_watch_modern_panels");D.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return D};
_.P(Ld,_.X);_.q=Ld.prototype;
_.q.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"}}}}};
_.q.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.q.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.q.expanderChanged=function(){var D;if((D=this.data)==null?0:D.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.q.isExpandButtonToggled=function(){var D,t;return(t=_.O((D=this.data)==null?void 0:D.expandMetadataButton,_.Ez))==null?void 0:t.isToggled};
_.q.onVisibilityButtonClick=function(){var D;if((D=this.data)==null?0:D.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.q.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
Ld.prototype.expanderChanged=Ld.prototype.expanderChanged;Ld.prototype.dataChanged=Ld.prototype.dataChanged;Ld.prototype.descriptionChanged=Ld.prototype.descriptionChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C([_.dW.YtActionHandlerBehavior]),_.x("design:type",Object)],Ld.prototype,"actionHandlerBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Ld.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Ld.prototype,"isMetadataVisible",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Ld.prototype,"modernPanels",void 0);_.d([_.o5("#expander"),_.x("design:type",Object)],Ld.prototype,"expander",void 0);_.d([_.Os("data.description"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ld.prototype,"descriptionChanged",null);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ld.prototype,"dataChanged",null);_.d([_.Os("isMetadataVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ld.prototype,"expanderChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],Ld);
_.p(Ld,"ytd-tvfilm-offer-module-renderer",function(){if(ieN!==void 0)return ieN;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ieN=D},{mode:2});var rFM;var Aw=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return D};
_.P(Aw,_.X);Aw.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Aw.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Aw.prototype.onThumbnailTap=function(D){this.data&&this.data.serviceEndpoint&&(_.qS().resolve(_.aA).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),D.stopPropagation())};
Aw.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Aw.prototype.dataChanged=Aw.prototype.dataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Aw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Aw.prototype,"rendererBehaviors",void 0);_.d([_.C([_.dW.YtActionHandlerBehavior]),_.x("design:type",Object)],Aw.prototype,"actionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Aw.prototype,"data",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Aw.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Aw);
_.p(Aw,"ytd-unlimited-offer-module-renderer",function(){if(rFM!==void 0)return rFM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return rFM=D},{mode:1});var OeN;var UHU;var gD=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return D};
_.P(gD,_.X);gD.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
gD.prototype.handleRelatedChipCommand=function(D){D=_.O(D,GHM);var t=D.contents;t?_.Kl(this.hostElement,"yt-item-section-replace-action",[t,D.targetSectionIdentifier]):_.Kl(this.hostElement,"yt-item-section-continuation-action",[D.continuationData,D.targetSectionIdentifier])};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],gD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],gD.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],gD.prototype,"actionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],gD.prototype,"data",void 0);_.d([_.xL({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],gD);
_.p(gD,"yt-related-chip-cloud-renderer",function(){if(UHU===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;OeN===void 0&&(OeN=document.createElement("template"));var e=OeN;H.call(t,e.content.cloneNode(!0),D.content.firstChild);UHU=D}D=UHU;return D},{mode:2});var Jw=function(){var D=_.X.apply(this,arguments)||this;D.isTwoColumns=!0;D.watchFeedBigThumbs=_.r("kevlar_watch_feed_big_thumbs");D.watchFeedBigThumbsOnLockup=_.r("web_watch_next_big_thumbs");D.watchNextGridHideChips=_.r("kevlar_watch_grid_hide_chips");D.eligibleToSwitchToGrid=_.r("web_watch_eligible_to_switch_to_grid");D.disableShortsShelfHeightOverride=_.r("web_shorts_wn_shelf_ratio_tuning");D.isWatchNextGrid=!1;D.reuseComponents=!_.r("kevlar_watch_grid");D.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",
contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return D};
_.P(Jw,_.X);_.q=Jw.prototype;
_.q.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.r("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}}};
_.q.getItemsPath=function(){return"data.results"};
_.q.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.q.created=function(){this.ytLazyListBehavior.initialCount=1};
_.q.ready=function(){_.jZ(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%"})};
_.q.resultsChanged=function(){if(this.data&&this.data.results){for(var D=this.data.results,t=null,H=null,e=0;e<D.length;e++)D[e].relatedChipCloudRenderer?t=D[e].relatedChipCloudRenderer:D[e].itemSectionRenderer&&(H=D[e].itemSectionRenderer);if(t&&H)for(this.set("data.continuations",[]),D=_.O(t.content,_.pKo).chips,t=0;t<D.length;t++)if(e=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",D[t]),e.loadCached||!e.contents){e.contents=H.contents;break}}};
_.q.dataChanged=function(){var D=this,t;if((t=this.data)!=null&&t.results&&this.hasAllowedInstreamAd(this.playerData)){if(t=this.data.results.filter(function(w){return!!w.promotedSparklesWebRenderer})){for(var H=0;H<t.length;H++){var e=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",t[H]);
if(e)for(var V=0;V<e.length;V++)e[V]&&e[V].baseUrl&&_.IP(e[V].baseUrl)}this.set("data.results",this.data.results.filter(function(w){return!w.promotedSparklesWebRenderer}))}if(t=this.data.results.filter(function(w){return!!D.getSparklesAd(w)})){t=_.F(t);
for(V=t.next();!V.done;V=t.next())if(e=H=void 0,V=(H=this.getSparklesAd(V.value))==null?void 0:(e=H.errorCommand)==null?void 0:e.loggingUrls)for(H=_.F(V),e=H.next();!e.done;e=H.next())(e=e.value)&&e.baseUrl&&_.IP(e.baseUrl);var b,a;this.set("data.results",(b=this.data)==null?void 0:(a=b.results)==null?void 0:a.filter(function(w){return!w.adSlotRenderer}))}}};
_.q.getSparklesAd=function(D){var t,H;D=_.O((t=D.adSlotRenderer)==null?void 0:(H=t.fulfillmentContent)==null?void 0:H.fulfilledLayout,_.jun);return _.O(D==null?void 0:D.renderingContent,hgd)};
_.q.hasAllowedInstreamAd=function(D){D=this.get("adPlacements",D)||[];for(var t=0;t<D.length;t++){var H=this.get("adPlacementRenderer.config.adPlacementConfig",D[t]);if(H&&H.suppressDisplayAd)return!0}return!1};
_.q.computeHideUnlimitedOfferModule=function(D,t){return D&&D.offerModule&&t&&D.offerModule.unlimitedOfferModuleRenderer&&D.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(t)?!0:!1};
_.q.hideUnlimitedOfferModuleChanged=function(){var D=_.Kg(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");D&&(D.hidden=this.hideUnlimitedOfferModule)};
_.q.updateLockupContainerTypes=function(D){if(this.eligibleToSwitchToGrid){var t;(t=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||t.forEach(function(H){H.containerType=D})}};
_.q.computeHideTvfilmOfferModule=function(D,t){var H,e;return!!((D==null?0:(H=D.offerModule)==null?0:(e=H.tvfilmOfferModuleRenderer)==null?0:e.clientShouldSuppressIfCompanionAdDisplayed)&&t&&this.hasCompanionAds(t))};
_.q.hideTvfilmOfferModuleChanged=function(){var D=_.Kg(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");D&&(D.hidden=this.hideTvfilmOfferModule)};
_.q.hasCompanionAds=function(D){D=this.get("adPlacements",D)||[];for(var t=0;t<D.length;t++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",D[t]))return!0;var H=void 0,e=void 0,V=void 0;if(!_.r("web_watch_top_banner_companion_check_killswitch")&&((H=D[t])==null?0:(e=H.adPlacementRenderer)==null?0:(V=e.renderer)==null?0:V.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.q.hasSuppressedResults=function(D){return D==null?!0:D.filter(function(t){return!t.continuationItemRenderer&&!t.compactPromotedVideoRenderer&&!t.promotedSparklesWebRenderer}).length===0};
_.q.computeShowButton=function(D,t){return this.isWatchNextGrid?D:D||this.hasSuppressedResults(t)};
_.q.showButtonChanged=function(){if(this.isWatchNextGrid){var D=_.Kg(this.hostElement).querySelector("ytd-rich-grid-renderer");D&&this.showButton!==null&&(D.continuationShowButton=this.showButton)}else{D=_.Kg(this.hostElement).querySelector("yt-next-continuation");var t=_.Kg(this.hostElement).querySelector("ytd-continuation-item-renderer"),H=_.Kg(this.hostElement).querySelector("ytd-item-section-renderer");D&&(D.showButton=this.showButton);t&&(t.showButton=this.showButton);H&&(H.continuationShowButton=
this.showButton)}};
_.q.continuationTap=function(D){var t;if(((t=this.data)==null?void 0:t.continuations)!=null&&D.target.tagName==="TP-YT-PAPER-BUTTON")for(D=this.data.continuations,t=0;t<D.length;t++)D[t].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(D[t].nextContinuationData||{})};
_.q.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("shown-items-changed",this.shownItems))};
_.ql.Object.defineProperties(Jw.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.shownItems)==null||!D.some(function(t){return!!t.lockupViewModel||t.compactVideoRenderer}))}}});
Jw.prototype.shownItemsChangedForBinding=Jw.prototype.shownItemsChangedForBinding;Jw.prototype.showButtonChanged=Jw.prototype.showButtonChanged;Jw.prototype.hideTvfilmOfferModuleChanged=Jw.prototype.hideTvfilmOfferModuleChanged;Jw.prototype.updateLockupContainerTypes=Jw.prototype.updateLockupContainerTypes;Jw.prototype.hideUnlimitedOfferModuleChanged=Jw.prototype.hideUnlimitedOfferModuleChanged;Jw.prototype.dataChanged=Jw.prototype.dataChanged;Jw.prototype.resultsChanged=Jw.prototype.resultsChanged;
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Jw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.SL.YtLazyListBehavior),_.x("design:type",Object)],Jw.prototype,"ytLazyListBehavior",void 0);_.d([_.C(_.cz.YtNextContinuationBehavior),_.x("design:type",Object)],Jw.prototype,"ytNextContinuationBehavior",void 0);
_.d([_.C(_.T_),_.x("design:type",Object)],Jw.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Jw.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Jw.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Jw.prototype,"playerData",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],Jw.prototype,"autoFill",void 0);_.d([_.M({value:60}),_.x("design:type",Number)],Jw.prototype,"targetFramerate",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Jw.prototype,"isTwoColumns",void 0);_.d([_.M(),_.x("design:type",Object)],Jw.prototype,"shownItems",void 0);_.d([_.M({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.x("design:type",Boolean)],Jw.prototype,"hideUnlimitedOfferModule",void 0);_.d([_.M({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.x("design:type",Boolean)],Jw.prototype,"hideTvfilmOfferModule",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Jw.prototype,"watchFeedBigThumbs",void 0);_.d([_.M(),_.x("design:type",Object)],Jw.prototype,"watchFeedBigThumbsOnLockup",void 0);_.d([_.M(),_.x("design:type",Object)],Jw.prototype,"watchNextGridHideChips",void 0);_.d([_.M(),_.x("design:type",Object)],Jw.prototype,"eligibleToSwitchToGrid",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Jw.prototype,"disableShortsShelfHeightOverride",void 0);
_.d([_.M({selector:_.pb,reflectToAttribute:!0}),_.x("design:type",Object)],Jw.prototype,"isGridViewEnabled",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Jw.prototype,"showMoreButton",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Jw.prototype,"isWatchNextGrid",void 0);_.d([_.M({computed:"computeShowButton(showMoreButton, data.results)"}),_.x("design:type",Boolean)],Jw.prototype,"showButton",void 0);
_.d([_.mx("data.results.*"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jw.prototype,"resultsChanged",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jw.prototype,"dataChanged",null);_.d([_.Os("hideUnlimitedOfferModule"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jw.prototype,"hideUnlimitedOfferModuleChanged",null);
_.d([_.m("isGridViewEnabled","containsLockups","data"),_.M({reflectToAttribute:!0}),_.x("design:type",Number),_.x("design:paramtypes",[])],Jw.prototype,"lockupContainerType",null);_.d([_.Os("lockupContainerType","data"),_.x("design:type",Function),_.x("design:paramtypes",[Number]),_.x("design:returntype")],Jw.prototype,"updateLockupContainerTypes",null);
_.d([_.Os("hideTvfilmOfferModule"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jw.prototype,"hideTvfilmOfferModuleChanged",null);_.d([_.Os("showButton"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jw.prototype,"showButtonChanged",null);_.d([_.Os("shownItems"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jw.prototype,"shownItemsChangedForBinding",null);
_.d([_.m("shownItems"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Jw.prototype,"containsLockups",null);
_.p(Jw,"ytd-watch-next-secondary-results-renderer",function(){if(EQU===void 0){var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);EQU=D}D=EQU;return D},{mode:1});
}catch(e){_._DumpException(e)}
try{
var FBb=new _.NM("replaceFeedContentAction");var a$H;var w0H;var Wo=function(){return _.X.apply(this,arguments)||this};
_.P(Wo,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Wo.prototype,"data",void 0);_.d([_.Y({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],Wo);
_.p(Wo,"ytd-sub-feed-option-renderer",function(){if(w0H!==void 0)return w0H;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return w0H=D},{mode:1});var Zhe;var Il=function(){return _.X.apply(this,arguments)||this};
_.P(Il,_.X);Il.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Il.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Il.prototype,"ytRendererStamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Il.prototype,"data",void 0);_.d([_.Y({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Il);
_.p(Il,"ytd-sub-feed-selector-renderer",function(){if(Zhe!==void 0)return Zhe;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Zhe=D},{mode:1});var Qz=function(){return _.X.apply(this,arguments)||this};
_.P(Qz,_.X);
Qz.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}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Qz.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Qz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Qz.prototype,"data",void 0);_.d([_.Y({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Qz);
_.p(Qz,"ytd-browse-feed-actions-renderer",function(){if(a$H!==void 0)return a$H;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return a$H=D},{mode:1});var sLH;var hbZ;var yz=function(){return _.X.apply(this,arguments)||this};
_.P(yz,_.X);yz.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yz.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],yz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],yz.prototype,"data",void 0);_.d([_.Y({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],yz);
_.p(yz,"ytd-mini-channel-renderer",function(){if(hbZ!==void 0)return hbZ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return hbZ=D},{mode:1});var GQH;var Bo=function(){return _.X.apply(this,arguments)||this};
_.P(Bo,_.X);Bo.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Bo.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Bo);
_.p(Bo,"ytd-vertical-channel-section-renderer",function(){if(GQH!==void 0)return GQH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return GQH=D},{mode:1});var z9=function(){return _.X.apply(this,arguments)||this};
_.P(z9,_.X);z9.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],z9.prototype,"data",void 0);_.d([_.Y({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],z9);
_.p(z9,"ytd-browse-secondary-contents-renderer",function(){if(sLH!==void 0)return sLH;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
return sLH=D},{mode:1});var E2b;var Da=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};D.notActive=!1;D.isConstrainedList=!1;return D};
_.P(Da,_.X);_.q=Da.prototype;
_.q.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(D){var t;return(D==null?void 0:(t=D.webComponentHint)==null?void 0:t.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.q.getPath=function(D,t){var H="data.tabs.#"+t+".";D.tabs[t].tabRenderer?H+="tabRenderer.":D.tabs[t].expandableTabRenderer&&(H+="expandableTabRenderer.");return H+"content.sectionListRenderer"};
_.q.computeDisplayedContent=function(D){this.unlinkPaths("content");if(D&&D.tabs)for(var t=D.tabs.length,H=0;H<t;H++){var e=D.tabs[H].tabRenderer||D.tabs[H].expandableTabRenderer;if(e.selected&&e.content)return this.linkPaths("content",this.getPath(D,H)),e.content}return null};
_.q.computeHasSecondaryColumnData=function(D){return!!D&&!!D.secondaryContents};
_.q.onRetrieveLocation=function(D,t){t.locationRetrieved(t.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);D.stopPropagation()};
_.q.onYtServiceRequestSent=function(D,t){_.r("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(t)};
_.q.onYtServiceRequestCompleted=function(D,t){_.r("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(t)};
_.q.onReplaceFeedContentAction=function(D){if(!_.r("replace_feed_content_action_killswitch")&&!this.notActive){var t;(D=(t=_.O(D,FBb))==null?void 0:t.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(D)}};
_.q.handleServiceRequestActions=function(D){if(D=D.actions){D=_.F(D);for(var t=D.next();!t.done;t=D.next()){t=t.value;var H=void 0;((H=_.O(t,FBb))==null?0:H.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.O(t,FBb).items)}}};
Da.prototype.onYtServiceRequestCompleted=Da.prototype.onYtServiceRequestCompleted;Da.prototype.onYtServiceRequestSent=Da.prototype.onYtServiceRequestSent;Da.prototype.onRetrieveLocation=Da.prototype.onRetrieveLocation;_.d([_.C(_.Ko),_.x("design:type",Object)],Da.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Da.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Da.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Da.prototype,"data",void 0);_.d([_.M({computed:"computeDisplayedContent(data)"}),_.x("design:type",Object)],Da.prototype,"content",void 0);
_.d([_.M({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Da.prototype,"hasSecondaryColumnData",void 0);_.d([_.M({value:function(){return window.outerHeight>1024?3:2}}),
_.x("design:type",Number)],Da.prototype,"initialCount",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],Da.prototype,"pageSubtype",void 0);_.d([_.o5("ytd-section-list-renderer"),_.x("design:type",Object)],Da.prototype,"listRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],Da.prototype,"notActive",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Da.prototype,"isConstrainedList",void 0);
_.d([_.M(),_.x("design:type",String)],Da.prototype,"responsiveSizing",void 0);_.d([_.rx("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Da.prototype,"onRetrieveLocation",null);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],Da.prototype,"onYtServiceRequestSent",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],Da.prototype,"onYtServiceRequestCompleted",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Da);
_.p(Da,"ytd-two-column-browse-results-renderer",function(){if(E2b!==void 0)return E2b;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return E2b=D},{mode:2});
}catch(e){_._DumpException(e)}
try{
var M4d=function(D){if((D==null?void 0:D.value)===void 0||D==null||!D.unit)return"initial";a:{switch(D.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var t="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":t="%";break a}t=void 0}return t?""+D.value+t:"initial"};_.hB(_.l(function(D){var t=_.FQ(D,{}).data,H=function(){var e;return((e=t().image)==null?void 0:e.height)||40};
return _.G("yt-shopping-timely-shelf-content-view-model",{el:_.FI(_.Yi(function(){var e;return(e=t())==null?void 0:e.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.jQ("ytShoppingTimelyShelfContentViewModelHost"),style:_.O7({"--shopping-timely-shelf-content-padding-top":function(){var e;return M4d((e=t().padding)==null?void 0:e.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var e;return M4d((e=t().padding)==null?void 0:e.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var e;return M4d((e=t().padding)==null?void 0:e.start)},
"--shopping-timely-shelf-content-padding-end":function(){var e;return M4d((e=t().padding)==null?void 0:e.end)},
"--yt-shopping-timely-shelf-background-color":function(){return t().backgroundColor!==void 0?_.Qk(t().backgroundColor):"initial"}})},_.G(_.E,{cond:function(){var e;
return(e=t().image)==null?void 0:e.image},
then:function(e){return _.G(_.bi,{preserveHeight:!0,preserveWidth:!0,height:H,data:e,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.G(_.P5,{data:function(){return t().avatar}},{avatarViewModel:_.qi}),_.G("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.G(_.P5,{data:function(){return t().line1}},{shoppingContentLineViewModel:function(e){return _.G(_.Nj,{data:e.data})}}),_.G(_.P5,{data:function(){return t().line2}},{shoppingContentLineViewModel:function(e){return _.G(_.Nj,
{data:e.data})}})),_.G("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.G(_.nY,{each:function(){var e;
return(e=t().button)!=null?e:[]}},function(e){return _.G(_.P5,{data:function(){return e}},{buttonViewModel:_.JX})})))},"Ym"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.ij}});_.Spl={};
_.Spl.YtdWatchBehavior=[_.y.YtRendererBehavior,_.ik.YtPlayerListenerBehavior,_.MK.YtRendererstamperBehavior,_.dW.YtActionHandlerBehavior,_.bn.YtPageBehavior,_.pE.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.lh("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.r("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 _.lh("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,value:!1},isSingleColumn:{type:Boolean,reflectToAttribute:!0,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},
isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},
showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.r("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 _.ZU("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.ZU("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},
newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.r("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.r("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.r("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean},persistentPanelVisible:{type:Boolean,value:!1,reflectToAttribute:!0},aiCompanionEnabled:{type:Boolean,value:function(){return _.r("enable_ai_companion")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var D={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.jl(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.jl(["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"||_.r("swa_prov_panels_ks")?D.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(D.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},D.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return D},
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 D=this;this.watchController=void 0;this.pageDisposeJobs=[function(){D.showMetadataPlaceholder_()},
function(){_.r("web_watch_dont_clear_comments")||D.clearComments_()},
function(){D.clearPlayerAds_()},
function(){D.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;_.r("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.r("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.k0l(function(){return _.qx(D)},this.hostElement);
this.pageDisposeJobs.push(function(){D.youThereManager_.reset()});
_.r("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){D.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.nL;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;_.r("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));_.r("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.iK(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(D){D&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:D}),D.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(D){_.r("kevlar_watch_flexy_theater_manager")&&(this.theater=D,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(D){!_.r("kevlar_watch_while_v2")&&!_.r("web_watch_pip")||D||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(D){this.active!==void 0&&(this.fullscreen=D,_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(D){this.active!==void 0&&(_.Gf(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(D>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(D){this.initCsi_();this.updatePageData_(D)},
updatePageData_:function(D){var t=this;if(D)if(this.data===D){this.onPageLoadWithSameData_();var H;(H=this.watchController)==null||H.setWatchNextResponse(this.data)}else this.data=D;this.playlist&&_.JE({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.vh("nw");this.loading=!1;_.C7(_.Jy,function(){t.initDclkstatus_();var e,V=((e=t.player)==null?void 0:e.getVideoData().cpn)||"";_.H7l(function(b,a){_.ak4(b,a,V)})})},
onPageLoadWithSameData_:function(){_.r("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 D=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!D);this.set("loadingData.playlistLoading",D&&D!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),D=this.watchNextSkeletonEl_.firstElementChild;D;)D.classList.remove("hidden"),D=D.nextElementSibling;if(_.r("kevlar_watch_frame0_loading_state")){var t,H,e;D=(t=this.loadingData)==null?void 0:(H=t.endpoint)==null?void 0:(e=H.watchEndpoint)==null?void 0:e.videoId;var V;D&&(V="https://i.ytimg.com/vi/"+D+"/frame0.jpg");_.Kg(this.hostElement).querySelector("#player").style.backgroundImage=V?"url("+V+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var D=_.Kg(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&D&&(D.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var t,H;(H=(t=this.watchMetadata).updateSentimentBarWidth)==
null||H.call(t);var e,V;(V=(e=this.watchMetadata).resize)==null||V.call(e)}_.r("kevlar_watch_frame0_loading_state")&&(_.Kg(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(D){var t=_.Kg(this.hostElement).querySelector(D);t?_.Zk(t,!1):_.Yw(new _.nZ("Overscroll monitor not found for component: ",D))},
removeSplitScrollMouseTrap:function(D){var t=_.Kg(this.hostElement).querySelector(D);t?_.sT(t):_.Yw(new _.nZ("Disposal component for  overscroll monitoring not found: ",D))},
onLoadingChanged_:function(D){D?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.r("web_thumbnail_to_watch_transition")&&!_.NVO||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.r("web_thumbnail_to_watch_transition")&&!_.NVO||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(D){var t=this;D?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Jy.addLowPriorityJob(function(){t.onWindowResized_(_.n_(!0))})},
updateTheaterModeState_:function(D){if(!_.r("kevlar_watch_flexy_theater_manager")){D=D||this.fullWindowMode_;if(this.theater!==void 0||D)this.theater=D;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();D&&_.LiM()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var D=this.fullBleedPlayer?_.Kg(this.hostElement).querySelector("#player-full-bleed-container"):_.Kg(this.hostElement).querySelector("#player-container-inner");var t=this.getPlayerContainer(),H=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip");t.parentElement!==D&&(H&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.qx(this).appendTo(D,t))},
updateErrorScreenLocation:function(){var D=_.Kg(this.hostElement).querySelector("#error-screen"),t=this.fullBleedPlayer?_.Kg(this.hostElement).querySelector("#player-full-bleed-container"):_.Kg(this.hostElement).querySelector("#player");D.parentElement!==t&&t.appendChild(D)},
deactivateMiniplayerAndResetPlayer:function(){var D=this;return _.Z(function(t){if(t.nextAddress==1)return t.yield(_.qS().resolve(_.dL).deactivate(),2);D.updatePlayerLocation();_.n2(t)})},
updateCinematicsLocation:function(){var D=this.getElement("CINEMATICS");if(D){var t=this.getCinematicsLocationContainer();D.parentElement!==t&&t.appendChild(D)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.Kg(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Kg(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(D,t,H){var e=document.documentElement.hasAttribute("dark"),V=e&&_.r("web_cinematic_theater_mode"),b=e&&_.r("web_cinematic_fullscreen");e=!e&&this.cinematicLightTheme;return H||D&&V||t&&b||(t||D)&&e},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var D=this,t;(t=this.watchController)==null||t.setWatchNextResponse(this.data);_.r("kevlar_watch_flexy_comments_manager")||this.initComments_();_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.qS().resolve(_.hU).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,_.r("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Jy.addLowPriorityJob(function(){_.Kl(D.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.r("web_watch_start_chat_in_theater_mode")){var H,e,V;if((H=this.data)==null?0:(e=H.contents)==null?0:(V=e.twoColumnWatchNextResults)==null?0:V.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var b,a;((b=this.data)==null?0:(a=b.contents)==null?0:a.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(D){var t;(t=this.watchController)==null||t.setPlayerResponse(this.playerData);D&&D.playabilityStatus&&(t=this.isVideoPlayable_(D.playabilityStatus,this.getPlayerOverlays_(this.data)),D=this.isLiveStreamOffline_(D.playabilityStatus),t&&!D||_.Vi(this,function(){_.vh("pbu")}));
this.setPlayerAds_();_.Kl(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(D,t){if((_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"))&&this.playerData&&t)return this.playerData.videoDetails},
watchPageActiveChanged_:function(D){_.b_().dispatch(_.UOA(this.active));D?this.activate_():this.deactivate_()},
attached:function(){var D=this;this.watchController=new _.YF(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);_.r("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var t=_.qx(this);_.r("kevlar_disable_prepare_player")||
t.preparePlayer();_.r("kevlar_watch_flexy_playlist_manager")||_.qS().resolve(_.hU).setPlayer(t);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();t={"--ytd-watch-flexy-scrollbar-width":_.kA()+"px"};this.is==="ytd-watch-grid"&&(t["--ytd-watch-flexy-sidebar-width"]=_.i27+"px",t["--ytd-watch-grid-horizontal-page-margins"]=_.xt+"px",t["--ytd-watch-grid-columns-top-margins"]=_.c6U+"px",t["--ytd-watch-grid-min-player-height-medium"]="360px");!_.ZU("kv_pl_mx_sz_ks")&&
_.ZU("kevlar_watch_max_player_width")&&(t["--ytd-watch-flexy-max-player-width-wide-screen"]=_.r6Y+"px");_.ZU("kevlar_watch_flexy_metadata_height")&&(t["--ytd-watch-flexy-space-below-player"]=_.O2M+"px");this.safeUpdateStyles(t);_.r("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.TQ(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return D.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Kg(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var D=_.kA(),t=_.RU+D,H=t;this.fixedPanels&&(t+=_.i27);var e=657+D;D=1327+D;_.Kg(this.hostElement).querySelector("#two-column-query").query="(min-width: "+t+"px)";_.Kg(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(e+"px), (min-height: 630px) and (min-width: ")+(t+"px) and (max-width: ")+(D+"px)");_.Kg(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(D+"px)");
_.Kg(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+H+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var D=_.Kg(this.hostElement).querySelector("#miniplayer-bar").firstChild,t=this.squeezeback&&!_.r("web_watch_squeezeback_player_size_killswitch");return D&&D.active||this.theater||_.r("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||t||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.O5(NaN,NaN):_.FEU(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.FEU(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.qc(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var D=this;this.onWindowResized_(_.n_());_.r("browse_skeleton_removal_on_watch_killswitch")||_.lh("IS_SHELL_LOAD")&&_.Nz4();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var t=_.qx(this);t.addEventListener("yt-player-updated",_.iK(this,this.onPlayerUpdated_));t.getPlayerPromise().then(function(H){D.playerApiReady_(H)});
_.r("kevlar_watch_flexy_playlist_manager")||(t=_.qS().resolve(_.hU),_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&t.addEventListener("yt-navigate",_.iK(this,this.onYtNavigate_)),t.setPlaylistComponent(_.Kg(this.hostElement).querySelector("#playlist")),t.addEventListener("yt-playlist-data-updated",_.iK(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Jy.addLowPriorityJob(function(){_.Gf(D.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.qx(this).removeEventListener("yt-player-updated",_.iK(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.r("kevlar_watch_flexy_playlist_manager")){var D=_.qS().resolve(_.hU);_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&D.removeEventListener("yt-navigate",_.iK(this,this.onYtNavigate_));
D.cancelVideoSkip();D.removeEventListener("yt-playlist-data-updated",_.iK(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Gf(this.hostElement,"yt-autonav-pause-player",!1);D=_.a4();_.r("kevlar_exit_fullscreen_leaving_watch")&&D&&_.wE(D)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(D){this.player&&this.player.updateVideoData({rvs:D.rvs})},
getPageContents:function(D){return D&&D.contents&&D.contents.twoColumnWatchNextResults&&D.contents.twoColumnWatchNextResults.results&&D.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(D){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",D)},
onRetrieveLocation_:function(D,t){t.hasComments?t.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):t.locationRetrieved("/related_ajax",void 0);D.stopPropagation()},
onSubscriptionChanged_:function(D,t){this.player&&(t?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.V7("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Kg(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Kg(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(D){this.player=D;this.setPlayerState(D.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.r("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.r("kevlar_unified_player")||_.r("kevlar_player_new_bootstrap_adoption"))&&_.ue()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(D,t){t=t===void 0?!0:t;_.a4()&&_.r("external_fullscreen")&&_.wE(document.documentElement);this.theaterRequested_=D;t&&_.Oa("wide",D?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.ET(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Gf(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(D){_.lm(D,typeof this.player),this.player&&_.lm(D,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var D;((D=this.player)==null?0:D.isFullscreen())?this.player.toggleFullscreen():_.ET(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(D,t){return this.loading?t:!!Object.keys(D).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(D){if(D){D=_.F(D);for(var t=D.next();!t.done;t=D.next())t=t.value,t.youThereRenderer&&_.jRU(this.youThereManager_,t.youThereRenderer)}},
setPlaylistData_:function(D){return D||{}},
userEngagementConfigDataChanged_:function(D){if(D)if(D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var t=this.youThereManager_;_.aR()<D.lowEngagementThresholdMs||_.O71(t,!0)}else D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ET(this.hostElement,"yt-autonav-pause-user-engagement",[D])},
isPlayerUnavailable_:function(D,t,H){return!!D&&!this.isVideoPlayable_(D,H)&&!t},
getPlayerOverlays_:function(D){return(D==null?void 0:D.playerOverlays)||null},
isVideoPlayable_:function(D,t){if(!D)return!1;var H=D.status==="OK"||D.status==="LIVE_STREAM_OFFLINE",e=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",D)||this.get("errorScreen.ypcTrailerRenderer",D);D=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",D);var V;t=t==null?void 0:(V=t.playerOverlayRenderer)==null?void 0:V.gatedActionsOverlayRenderer;return!!H||!!e||!!D||!!t},
hasWatchNextResponseErrorRenderer:function(D){var t=this.getPageContents(D),H,e,V,b,a;return!(D==null?0:(H=D.contents)==null?0:(e=H.twoColumnWatchNextResults)==null?0:e.secondaryResults)&&!!((V=t[0])==null?0:(b=V.itemSectionRenderer)==null?0:(a=b.contents[0])==null?0:a.backgroundPromoRenderer)},
isLiveStreamOffline_:function(D){return D?D.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(D,t,H){var e=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t),V=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];V=_.r("web_no_skip_video_on_verification_checks")?(D==null?void 0:D.status)&&V.includes(D.status):D&&D.status==="AGE_CHECK_REQUIRED";var b=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",D);b==void 0&&(b=!0);!H||this.isVideoPlayable_(D,this.getPlayerOverlays_(t))||
e||V||!b||_.qS().resolve(_.hU).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.w$F()},
onPlayerFeedbackStartRequest_:function(D){_.ET(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:D}])},
onPlayerFeedbackArticleRequest_:function(D){_.ET(this.hostElement,"yt-help-dialog-requested",[D])},
onPlayerYpcContentRequest_:function(){var D,t,H,e,V,b,a,w,h=((D=this.data)==null?NaN:(t=D.contents)==null?NaN:(H=t.twoColumnWatchNextResults)==null?NaN:(e=H.secondaryResults)==null?NaN:(V=e.secondaryResults)==null?NaN:(b=V.offerModule)==null?NaN:(a=b.tvfilmOfferModuleRenderer)==null?NaN:(w=a.actionButtons)==null?NaN:w.length)-1;D=[".offerButton.buttonRenderer.",".actionButtons."+(h>=0?h:0)+".buttonRenderer."];t=_.F(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(H=t.next();!H.done;H=t.next())for(H=H.value,e=_.F(D),V=e.next();!V.done;V=e.next())if(V="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+H+V.value,V=this.get(V+"navigationEndpoint",this.data)||this.get(V+"serviceEndpoint",this.data)||this.get(V+"command",this.data)){_.rj(V,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(D){_.Gf(this.hostElement,"yt-autonav-pause-player",D)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(D){D()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Gf(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(D)},
setPlayerState:function(D){_.b_().dispatch(_.Xz6(D))},
onPlayerSubscribe_:function(D){_.ET(this.hostElement,"yt-player-subscribe",[D])},
onPlayerUnsubscribe_:function(D){_.ET(this.hostElement,"yt-player-unsubscribe",[D])},
onPlayerAdYtShowToast_:function(D){_.ET(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:D.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(D){if(D)return D},
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(D){return!_.r("web_watch_move_summary_to_sd")&&!!D},
computeWatchMetadataRefresh:function(){return _.r("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.r("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var D,t,H,e;this.watchNextSecondaryResults=(D=this.data)==null?void 0:(t=D.contents)==null?void 0:(H=t.twoColumnWatchNextResults)==null?void 0:(e=H.secondaryResults)==null?void 0:e.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.r("swatcheroo_pbs_load_grid")&&!_.r("swatcheroo_provide_all_data_on_scheduled_job")){_.Jy.cancelJob(this.setRichGridJobId_);var D,t,H,e,V,b,a;this.setRichGridRendererData((D=this.data)==null?void 0:(t=D.contents)==null?void 0:(H=t.twoColumnWatchNextResults)==null?void 0:(e=H.secondaryResults)==null?void 0:(V=e.secondaryResults)==null?void 0:(b=V.results)==null?void 0:(a=b[0])==null?
void 0:a.richGridRenderer)}},
setRichGridRendererData:function(D){this.richGridRendererData=D},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var D,t=(D=this.data)==null?void 0:D.engagementPanels;if(t==null?0:t.length){D=null;t=_.F(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;var e=void 0;if(((e=H.engagementPanelSectionListRenderer)==null?void 0:e.targetId)==="engagement-panel-structured-description"){D=H;break}}var V,b,a;D=(V=D)==null?void 0:(b=V.engagementPanelSectionListRenderer)==null?void 0:(a=b.content)==null?void 0:a.structuredDescriptionContentRenderer;if(D==null?0:D.items){V=
[];b=_.F(D.items);for(a=b.next();!a.done;a=b.next()){a=a.value;if(!_.r("sd_horizontal_list_show_nav_killswitch")){var w=e=H=t=D=void 0,h=void 0,K=(D=a.horizontalCardListRenderer)==null?void 0:(t=D.header)==null?void 0:(H=t.richListHeaderRenderer)==null?void 0:(e=H.navigationButton)==null?void 0:(w=e.buttonRenderer)==null?void 0:(h=w.command)==null?void 0:h.commandExecutorCommand;K&&K.commands&&(K.commands=K.commands.filter(function(N){return!_.O(N,_.JAY)}))}(!a.expandableVideoDescriptionBodyRenderer&&
!a.videoDescriptionHeaderRenderer||_.r("web_delhi_colorful_sd"))&&V.push(a)}return{items:V}}}},
constructWarning_:function(D){return{text:_.H7(D),type:"WARNING"}},
isPlaShelfEnabled_:function(D){if((this.get("adPlacements",D)||[]).length)return!0;D=this.get("playerAds",D)||[];return!(!D.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",D[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var D=this;_.Gf(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var t=this.getScrollTop()>0;this.gestures_&&(t?this.gestures_.detach():this.gestures_.attach());t!==this.showFullerscreenEdu_&&_.r("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=t,_.qx(this).getPlayerPromise().then(function(H){H.updateFullerscreenEduButtonVisibility(D.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Gf(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var D=this;this.commentsReady=!1;_.Jy.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.C7(_.Jy,function(){D.setComments_()},1E3)},
setComments_:function(){if(!_.r("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.vh("cmi");_.Jy.cancelJob(this.setCommentsJobId_);var D=this.getPageContents(this.data);if(D&&D.length){D=_.F(D);for(var t=D.next();!t.done;t=D.next())if(t=t.value,this.get("itemSectionRenderer.sectionIdentifier",t)==="comment-item-section"){this.comments=t.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Gf(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.vh("cmc")},
doRemoveComments_:function(){this.comments={};_.r("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Jy.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Jy.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(D,t){var H=_.O(t.endpoint,_.Hh);H&&(!(t=this.get("data.currentVideoEndpoint.watchEndpoint"))||H.videoId!==t.videoId||H.playlistId&&H.playlistId!==t.playlistId||H.index!==void 0&&H.index!==t.index||typeof H.startTimeSeconds!=="number"||(D.stopPropagation(),this.setScrollTop(0),_.qx(this).getPlayerPromise().then(function(e){var V=H.startTimeSeconds;e.seekTo(V);e.wakeUpControls();V<e.getDuration()&&e.playVideo()})))},
updatePlayerStartTime_:function(){var D=_.uUN();"t"in D&&(D=_.axl(D.t),this.player.seekTo(D,!0))},
updateTitleFromWatchNext:function(D){D=this.getPageContents(D);var t,H;(D=_.eo(D==null?void 0:(t=D[0])==null?void 0:(H=t.videoPrimaryInfoRenderer)==null?void 0:H.title))&&_.Gf(this.hostElement,"yt-update-title",D)},
updateTitle_:function(D){D=this.get("videoDetails.title",D)||"";_.Gf(this.hostElement,"yt-update-title",D)},
syncWithRemoteVideo_:function(D,t,H){if(this.active&&this.player){var e=this.player.getVideoData();if(e.video_id===H&&(H=e.list,_.r("polymer_enable_mdx_queue")&&H&&H.startsWith("RQ")&&(H=void 0),e.video_id!==D||H!=t)){var V;_.r("kevlar_player_watch_endpoint_navigation")?V=_.mhD(_.eH7(D,t)):V=this.buildWatchEndpoint_(D,t);_.Gf(this.hostElement,"yt-navigate",{endpoint:V,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(D,t,H){return _.af(D,t,H)},
initDclkstatus_:function(){_.qpE()},
attachWatchPageSkeleton_:function(){var D=document.querySelector("#watch-page-skeleton");if(D){var t=D.querySelector("#primary-info"),H=D.querySelector("#secondary-info"),e=D.querySelector("#related");t&&_.Kg(this.hostElement).querySelector("#info-skeleton").appendChild(t);H&&_.Kg(this.hostElement).querySelector("#meta-skeleton").appendChild(H);e&&(_.Kg(this.hostElement).querySelector("#related-skeleton").appendChild(e),this.watchNextSkeletonEl_=e);_.UH(D)}},
handlePlayerUpdated_:function(){_.qx(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(D,t){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof t!=="undefined"){var H=this.watchNextSkeletonEl_.children,e=D&&D.indexSplices.length?D.indexSplices[0].index:0;D=Math.min(this.watchNextShownItems.length,H.length);t||(e=0,D=H.length);for(t=e;t<D;t++)H[t].classList.add("hidden")}},
onPlayerFullscreenChange_:function(D){_.r("external_fullscreen")||_.ET(this.hostElement,"yt-player-fullscreen",[D.fullscreen])},
onFullscreenChange_:function(D){this.fullscreen=D;this.gestures_&&this.gestures_.update(this.fullscreen);var t=_.qx(this);t.getPlayerPromise().then(function(H){H.setFauxFullscreen(!!_.a4())});
this.updateFullBleedElementLocations();D&&(t.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(D,t){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!t},
computeIsDonationShelfCollapsed_:function(D){return D},
computeShouldShowMerchShelf:function(D,t){return t&&!!D},
computeResponseHasComments:function(D){var t,H,e,V,b;return!!(D==null?0:(t=D.contents)==null?0:(H=t.twoColumnWatchNextResults)==null?0:(e=H.results)==null?0:(V=e.results)==null?0:(b=V.contents)==null?0:b.some(function(a){var w;return(a==null?void 0:(w=a.itemSectionRenderer)==null?void 0:w.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(D,t,H,e){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&e?!1:!!D&&!!Object.keys(D).length&&!t},
identity:_.AT,onWindowResized_:function(D){this.windowSize_=D;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(D){var t=this;D&&D.type!=="dataloaded"&&D.type!=="dataupdated"||_.qx(this).getPlayerPromise().then(function(H){var e=H.getPlayerState();e!==5&&e!==0&&(H=1/H.getVideoAspectRatio(),t.videoHeightToWidthRatio_!==H&&(t.videoHeightToWidthRatio_=H))})},
schedulePlayerSizeUpdate_:function(D){var t=this,H=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"),e=function(){if(t.watchMetadata){var V,b;(b=(V=t.watchMetadata).resize)==null||b.call(V)}_.qx(t).getPlayerPromise().then(function(a){if(_.r("kevlar_set_internal_player_size")){if(!H||!t.isMiniplayerActive()){var w=t.calculateCurrentPlayerSize_();a.setInternalSize(w.width,w.height)}}else a.setSize(NaN,NaN);_.r("kevlar_watch_while")&&t.updateWatchWhileScrollThreshold_()})};
D?e():_.NP(_.Jy,e)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(D){this.set("data.survey",D.detail)},
onYtShowSurveyCommand_:function(D){this.set("data.survey",_.O(D,_.NTM).survey)},
onDownloadedVideoDeleted:function(D){var t=this,H,e;return _.Z(function(V){if(V.nextAddress==1){if(!t.active||(H=t.playerData)==null||!H.offlineState||t.videoId!==D)return V.return();(e=t.player)==null||e.stopVideo();_.d3().navigatingAwayFromWatchDeletedVideo=!0;_.rj(_.P3V,t.hostElement);return V.yield(_.d3().navigationFinishPromise,2)}_.d3().navigatingAwayFromWatchDeletedVideo=!1;_.n2(V)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var D;this.theater?D=_.A8(.5625*this.windowSize_.width,480,this.windowSize_.height-185):D=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==D&&(this.watchWhileScrollThreshold_=D,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var D=_.Kg(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&D){var t=this.windowSize_.height>=624,H=this.active?this.getScrollTop():0;!D.active&&t&&H>=this.watchWhileScrollThreshold_?(D.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):D.active&&(!t||H<this.watchWhileScrollThreshold_&&!_.a4())&&(D.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var D=_.Kg(this.hostElement).querySelector("#secondary-inner");if(D){var t=_.Kg(this.hostElement).querySelector("#below"),H=_.Kg(this.hostElement).querySelector("#secondary"),e=_.Kg(this.hostElement).querySelector("#comments");e&&H&&t&&(this.defaultTwoColumnLayout?(D.appendChild(e),H.appendChild(D)):(t.appendChild(e),_.pd(t,D)))}}},
isTwoColumnsChanged_:function(D,t){if(D!==!0||t!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(D=_.Kg(this.hostElement).querySelector("#secondary-inner"))){t=_.Kg(this.hostElement).querySelector("#below");var H=_.Kg(this.hostElement).querySelector("#secondary"),e=_.Kg(this.hostElement).querySelector("#comments");e&&H&&t&&(this.isTwoColumns_?(D.appendChild(e),H.appendChild(D)):(t.appendChild(e),_.pd(t,D)))}}else{D=!_.r("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);t=_.Kg(this.hostElement).querySelector("#panels");var V=_.Kg(this.hostElement).querySelector("#alerts"),b=_.Kg(this.hostElement).querySelector("#shopping-timely-shelf");H=_.Kg(this.hostElement).querySelector("#playlist");e=_.Kg(this.hostElement).querySelector("#related");var a=_.Kg(this.hostElement).querySelector("#donation-shelf"),w=_.Kg(this.hostElement).querySelector("#comments"),h=_.Kg(this.hostElement).querySelector("#persistent-panel-container");
this.isTwoColumns_?(V=_.Kg(this.hostElement).querySelector("#secondary-inner"),D&&(V.appendChild(t),V.appendChild(H),this.aiCompanionEnabled&&h&&V.appendChild(h)),V.appendChild(a),V.appendChild(e)):(D&&(_.ut(t,V),_.ut(H,V),this.aiCompanionEnabled&&h&&_.ut(h,V),_.ut(b,H)),_.ut(a,V),w&&_.ut(e,w));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.r("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.r("web_watch_enable_fs_squeezeback_panels")&&_.r("web_watch_theater_chat")){var D=_.Kg(this.hostElement).querySelector("#chat-container"),t=this.theater&&!this.fullscreen||_.r("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&t?(t=_.Kg(this.hostElement).querySelector("#columns"),(D==null?void 0:D.parentElement)!==t&&t.append(D),this.fixedPanels=!0):(this.fixedPanels=
!1,t=_.Kg(this.hostElement).querySelector("#playlist"),D&&t?_.Wr(D,t):_.Yw(new _.nZ("Missing element when updating chat location",{"chatContainer defined":!!D,"playlist defined":!!t})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(D,t){return _.r("sw_metadata_vis_toggle_ks")?!0:!!D||!!t},
computeForceDarkPanelTheme:function(D){return _.r("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&D:!1},
safeUpdateStyles:function(D){try{_.jZ(this.hostElement,D)}catch(t){_.Yw(t)}},
videoHeightToWidthRatioChanged_:function(D,t){t&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(D){this.videoHeightToWidthRatio_=1/D},
computeIsVerticalVideo_:function(D){return D>=1},
computeIsFourThreeToSixteenNineVideo_:function(D){return D<=.7501&&D>=.5624},
computeIsExtraWideVideo_:function(D){return D<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.qx(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.qx(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.UzM(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(D){var t=_.l_(D)||0;_.Yg(D,t+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var D=_.l_("yt-fullerscreen-edu-button-click-count")||0,t=_.l_("yt-fullerscreen-edu-button-shown-count")||0,H=_.ZU("external_fullscreen_button_shown_threshold"),e=D>=_.ZU("external_fullscreen_button_click_threshold")||t>=H;_.qx(this).getPlayerPromise().then(function(V){V.updateFullerscreenEduButtonSubtleModeState(e)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(D,t){return t},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.qS().resolve(_.hU).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var D=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Jy.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Jy.addLowPriorityJob(function(){D.fullHeightPanelPositionUpdateJobId=0;var t=_.Kg(D.hostElement).querySelector("#secondary"),H=_.Kg(D.hostElement).querySelector("#fixed-secondary");t=t.getBoundingClientRect();var e=t.width;D.swatcherooSqueezeback&&
(e+=_.xt);if(D.swatcherooSqueezeback){var V=_.Kg(D.hostElement).querySelector("#squeezeback-constraining-container");V.style.width=e+"px";V.style.flex="0 0 "+e+"px"}H.style.width=e+"px";H.style.left=t.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var D=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Jy.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Jy.addLowPriorityJob(function(){D.panelMaxHeightUpdateJob_=0;var t;!D.isTwoColumns_||D.theater||D.fullscreen?t=460:t=D.calculateNormalPlayerSize_().height;var H=t+"px";_.r("live_chat_taller_height")&&!D.theater&&(H="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.r("live_chat_medium_height")&&!D.theater&&(H="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.r("live_chat_scaled_height")&&!D.theater&&(H="calc(100vh - var(--ytd-toolbar-height) - 238px)");D.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":t+"px","--ytd-watch-flexy-chat-max-height":H,"--ytd-watch-flexy-structured-description-max-height":t+"px","--ytd-watch-flexy-comments-panel-max-height":t+"px","--ytd-comments-engagement-panel-content-height":t+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(D){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",D)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.k0(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(D){var t=_.Kg(this.hostElement).querySelector("#engagement-panel-scrim");D?t.addEventListener("tap",_.iK(this,this.onEngagementPanelScrimClick_)):t.removeEventListener("tap",_.iK(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(D){if(this.hostElement.contains(D)&&!this.scrollToAnimation_.isAnimating()){var t=D.offsetTop-24;D=D.offsetTop+D.offsetHeight+24;var H=this.getPageScrollingElement(),e=this.getScrollTop(),V=e+H.clientHeight-56;if(t<e+56)t-=56;else if(D>V)t=D-H.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtSignalActionScrollToComments:function(){var D=this.hostElement.querySelector("#comments");if(D&&!this.scrollToAnimation_.isAnimating()){D=D.offsetTop-56-24;if(_.r("kevlar_comment_teaser_scroll_to_midpoint")&&(D-=_.U5().height/3,D<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,D),500)}},
onYtEngagementPanelVisibleChanged:function(D,t,H){if(this.active&&this.trackEngagementPanelVisibility&&!_.EwF.includes(H)){if(t==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Kl(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var e=_.qS().resolve(_.tr);this.visiblePanelIdentifiers_.forEach(function(V){V!==H&&e.hidePanel(V)})}this.visiblePanelIdentifiers_.add(H)}t!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&t!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(H);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(D){return D?"":"watch-active-metadata"},
computeNewMetadataClass:function(D){return D?"watch-active-metadata":""},
computeIsSingleColumn:function(D,t){return t&&!D},
computeFullBleedPlayer:function(D,t,H){return _.r("external_fullscreen")&&D||t||H},
computeDefaultLayout:function(D){return!D},
computeDefaultTwoColumnLayout:function(D,t){return!D&&t},
updatePanelsLocation:function(){if(_.r("web_watch_enable_fs_squeezeback_panels")){var D=_.Kg(this.hostElement).querySelector("#below"),t=_.Kg(this.hostElement).querySelector("#panels"),H=_.Kg(this.hostElement).querySelector("#playlist"),e=_.Kg(this.hostElement).querySelector("#chat-container"),V=_.Kg(this.hostElement).querySelector("#panels-full-bleed-container"),b=_.Kg(this.hostElement).querySelector("#secondary-inner"),a=_.Kg(this.hostElement).querySelector("#shopping-timely-shelf"),w=_.Kg(this.hostElement).querySelector("#persistent-panel-container");
if(D&&t&&H&&e&&V&&b&&a&&(this.aiCompanionEnabled?w:1)){var h=this.fullscreen||this.theater&&this.iMaxTheaterMode,K=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;h?(V.appendChild(t),V.appendChild(e),V.appendChild(H),this.aiCompanionEnabled&&w&&V.appendChild(w)):this.isTwoColumns_?(K?(D=_.Kg(this.hostElement).querySelector("#columns"),(e==null?void 0:e.parentElement)!==D&&D.append(e),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):
_.pd(b,e),_.pd(b,t),_.pd(b,H),this.aiCompanionEnabled&&w&&_.pd(b,w)):(D.appendChild(t),D.appendChild(a),D.appendChild(e),D.appendChild(H),this.aiCompanionEnabled&&w&&D.appendChild(w))}}},
swatcherooUpdatePanelsLocation:function(D,t,H,e,V,b){if(this.is==="ytd-watch-grid"){t=D&&!t;this.swatcherooSplitScroll&&(t?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));H=_.Kg(this.hostElement).querySelector("#panels");var a=_.Kg(this.hostElement).querySelector("#playlist"),w=_.Kg(this.hostElement).querySelector("#persistent-panel-container"),
h=_.Kg(this.hostElement).querySelector("#fixed-secondary"),K=_.Kg(this.hostElement).querySelector("#fixed-below"),N=_.Kg(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),k=_.Kg(this.hostElement).querySelector("#chat-container");b&&(D?(h.appendChild(H),this.aiCompanionEnabled&&w&&h.appendChild(w)):(K.appendChild(H),this.aiCompanionEnabled&&w&&K.appendChild(w)));V?D?h.appendChild(k):K.appendChild(k):_.Wr(k,N);e?D?h.appendChild(a):K.appendChild(a):_.Wr(a,
N);this.swatcherooSplitScroll&&(D=_.Kg(this.hostElement).querySelector("#secondary"),e=_.Kg(this.hostElement).querySelector("#columns"),V=_.Kg(this.hostElement).querySelector("#fixed-columns-secondary"),t?V.appendChild(D):e.appendChild(D))}},
computeMetadataSkinnyMode:function(D,t,H){return this.is!=="ytd-watch-grid"?!1:D?H:t},
computeWatchWhilePanelsActive:function(D,t){return D||t},
computeNoBorderOnChat:function(D){return _.r("web_watch_theater_chat_no_border")&&D},
computeLiveChatPresentAndExpanded:function(D,t){return D&&!t},
computePanelExpanded:function(D,t,H){return D||t||H},
computeSqueezeback:function(D,t,H,e){if(_.r("web_watch_enable_fs_squeezeback_panels")){var V=this.iMaxTheaterMode&&this.theater;return(D||t||H)&&(e||V)}},
computeSwatcherooSqueezeback:function(D,t,H){return this.is!=="ytd-watch-grid"||_.r("ww_squeezeback_killswitch")?!1:D&&t&&H},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(D){_.qx(this).getPlayerPromise().then(function(t){var H;(H=t.changeMarkerVisibility)==null||H.call(t,_.O(D,_.dC).isVisible||!1,_.O(D,_.dC).entityKeys||[],_.O(D,_.dC).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(D){this.liveChatCollapsed=D.detail;_.b_().dispatch(_.G0l(D.detail));if(!this.liveChatCollapsed&&this.squeezeback){var t=_.qS().resolve(_.tr);this.visiblePanelIdentifiers_.forEach(function(H){t.hidePanel(H)})}},
onSetPlaylistCollapsed:function(D){_.r("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!D)},
provideRenderingData:function(D,t){switch(D){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=t;break;case "PRIMARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=t);this.videoPrimaryInfoRendererValue=t==null?void 0:t.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=t);this.videoSecondaryInfoRendererValue=t==null?void 0:t.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
t;break;case "CLARIFICATION":this.clarifyBoxValue=t;break;case "LIVE_CHAT":this.conversationBar=t;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=t;break;case "PLAYLIST":this.externalPlaylistData_=t!=null?t:{};break;case "MERCH_SHELF":this.merchShelfValue=t==null?void 0:t.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=t;break;case "TICKET_SHELF":this.ticket=t;break;case "OFFER_MODULE":this.offerModule=t;break;case "LIMITED_STATE":this.limitedStateValue=
t;break;case "DONATION_SHELF":this.donation=t;break;case "ALERTS":this.alertsValue=t;break;case "COMMENTS":this.comments=t;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=t;break;case "ENGAGEMENT_PANELS":this.engagementPanels=t;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=t;break;case "RICH_GRID_RENDERER":this.richGridRendererData=t;break;case "EXPANDABLE_METADATA":this.expandableMetadata=t;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
t;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=t}},
toggleCinematicsActive:function(D){this.cinematicsActive=D},
isMiniplayerActive:function(){return _.qS().resolve(_.dL).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var hLt;_.s4e=function(D){if(!(0,_.o2A)(D))throw Error("K``"+String(D));};
_.Gfb=function(D){return D.findIndex(function(t){return hLt.indexOf(t.tagName)>-1})>-1};
_.E0F=function(){var D=_.qS().resolve(_.uS);_.VQk(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(D.isFullscreenEnabled()?_.wE(document.documentElement):_.vZR(document.documentElement))};
hLt=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.x8=new Map;_.x8.set(32,59972);_.x8.set(27,50765);_.x8.set(70,60102);_.x8.set(76,60221);_.x8.set(77,60222);_.x8.set(74,60223);_.x8.set(84,60224);_.x8.set(38,61941);_.x8.set(40,61942);_.x8.set(73,62521);_.x8.set(67,62522);_.x8.set(80,63390);_.x8.set(78,63397);_.x8.set(75,59972);_.x8.set(188,63385);_.x8.set(190,63384);_.x8.set(36,63387);
_.x8.set(35,63386);_.x8.set(37,63388);_.x8.set(39,63389);_.x8.set(79,63423);_.x8.set(87,63424);_.x8.set(107,63426);_.x8.set(109,63425);_.x8.set(65,63428);_.x8.set(83,63430);_.x8.set(68,63429);_.x8.set(221,63431);_.x8.set(219,63432);_.x8.set(97,63439);_.x8.set(98,63440);_.x8.set(99,63441);_.x8.set(100,63442);_.x8.set(101,63443);_.x8.set(102,63444);_.x8.set(103,63445);_.x8.set(104,63446);_.x8.set(105,63447);_.RV=new Map;_.RV.set(80,63390);_.RV.set(78,63397);_.RV.set(188,63400);_.RV.set(190,63401);
_.RV.set(191,60765);_.RV.set(13,247917);_.uJ=new Map;_.WA=new Map;
}catch(e){_._DumpException(e)}
try{
var Rhg,IvF,QDi,yZF;_.vCi=function(D){return D.ui.guideIsVisibleButNotPersistent};
_.pnY=function(D){return D.ui.tabGesturesIsActive};
_.d2F=function(){var D=_.sa("service_worker_scope");try{return navigator.serviceWorker.getRegistration(D)}catch(t){return Promise.reject(t)}};
_.x2F=function(D){return!(!D||!D.pushManager)};
Rhg=function(){return _.d2F().then(_.x2F).catch(function(){return!1})};
_.uHg=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?Rhg():Promise.resolve(!1)};
_.WIg=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
IvF=function(){var D,t,H;return _.Z(function(e){switch(e.nextAddress){case 1:return e.yield(_.z6.getInstance(),2);case 2:D=e.yieldResult;if(!D){t=void 0;e.jumpTo(3);break}return e.yield(D.get("lmqf"),4);case 4:t=e.yieldResult;case 3:switch((H=t)||(H="SD"),H){case "HD":return e.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return e.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return e.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return e.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return e.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
QDi=function(D){var t,H,e;return _.Z(function(V){if(V.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.r("disable_av1_setting")){var b=window.localStorage["yt-player-av1-pref"];b=b==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":b==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else b="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(t=D===b)return V.jumpTo(2);e=H=D;return V.yield(IvF(),3)}V.nextAddress!=2&&(t=e===V.yieldResult);return V.return(t)})};var B1Q;var zhF=_.dJ.IronButtonState,DSH=(0,_.lA)(HTMLElement);
_.gx({_template:function(){if(B1Q!==void 0)return B1Q;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;yZF===void 0&&(yZF=document.createElement("template"));var e=yZF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return B1Q=D},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[zhF,_.vO,_.xk,_.WO],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(D){var t=(0,_.Uh)(this);t.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:D});t.shadowRoot.appendChild(D);return DSH.prototype._attachDom.call(this,D)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var D=this.contentElement;D&&D.selectedItem&&this._setSelectedItem(D.selectedItem)},
get contentElement(){for(var D=_.Xu(this.$.content).getDistributedNodes(),t=0,H=D.length;t<H;t++)if(D[t].nodeType===Node.ELEMENT_NODE)return D[t]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(D){this._setSelectedItem(D.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(D){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(D)===this&&this.open()},
_selectedItemChanged:function(D){var t="";D?t=D.label||D.getAttribute("label")||D.textContent.trim():t="";this.value=t;this._setSelectedItemLabel(t)},
_computeMenuVerticalOffset:function(D,t){return t?t:D?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var D=this.opened?"true":"false",t=this.contentElement;t&&t.setAttribute("aria-expanded",D)}});_.mA=new _.NM("navigateAction");var tcF=new _.NM("formRenderer");var M8=function(){var D=_.ng.apply(this,arguments)||this;D.showInput=!1;return D};
_.P(M8,_.ng);_.q=M8.prototype;_.q.detached=function(){this.showInput&&window.removeEventListener("click",_.iK(this,this.closeOnOutsideClick_))};
_.q.stopPropagation_=function(D){this.showInput&&D.stopPropagation()};
_.q.closeOnOutsideClick_=function(D){this.closeOnOutsideClickCondition(D)&&(this.showInput=!1,window.removeEventListener("click",_.iK(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.q.closeOnOutsideClickCondition=function(){return!0};
_.q.closeOnOutsideClickHandler=function(){};
_.q.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.iK(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.q.openOnClickHandler=function(){};
_.q.showInputChanged=function(){};
_.q.setShowInput=function(D){this.showInput=D};
M8.prototype.setShowInput=M8.prototype.setShowInput;M8.prototype.showInputChanged=M8.prototype.showInputChanged;M8.prototype.openOnClickHandler=M8.prototype.openOnClickHandler;M8.prototype.openOnClick_=M8.prototype.openOnClick_;M8.prototype.closeOnOutsideClickHandler=M8.prototype.closeOnOutsideClickHandler;M8.prototype.closeOnOutsideClickCondition=M8.prototype.closeOnOutsideClickCondition;M8.prototype.closeOnOutsideClick_=M8.prototype.closeOnOutsideClick_;M8.prototype.stopPropagation_=M8.prototype.stopPropagation_;
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],M8.prototype,"showInput",void 0);_.d([_.rx("click"),_.rx("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],M8.prototype,"stopPropagation_",null);_.d([_.Os("showInput"),_.x("design:type",Function),_.x("design:paramtypes",[Boolean]),_.x("design:returntype")],M8.prototype,"showInputChanged",null);_.d([_.Cg()],M8);_.HZF=[M8.prototype];var eEH;var VcO;var Sl=function(){return _.X.apply(this,arguments)||this};
_.P(Sl,_.X);_.q=Sl.prototype;_.q.computePreselectedOption=function(D,t){return t===this.itemSelected_?D:void 0};
_.q.dataChanged_=function(){var D=this;this.preselectedSubreason=this.itemSelected_=-1;var t;(t=this.data)!=null&&t.key&&_.Vi(this,function(){var H,e=Number((H=D.data)==null?void 0:H.key);!Number.isNaN(e)&&(D.itemSelected_=e,H=(H=(D.data.items||[])[e])&&H.optionSelectableItemRenderer&&H.optionSelectableItemRenderer.preselectedIndex)&&(D.preselectedSubreason=H)})};
_.q.isSubReasonHidden_=function(D,t){return D!=t};
_.q.onTopItemSelected_=function(D,t){for(var H=_.Kg(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),e=0,V=H.length;e<V;e++)H[e].select(0);_.ET(this.hostElement,"yt-report-form-update",[t.item.value]);D.stopPropagation()};
_.q.onItemSelected_=function(D,t){_.ET(this.hostElement,"yt-report-form-update",[t.item.value]);D.stopPropagation()};
_.q.getItem_=function(D){return D.serviceItem?D.serviceItem:D.navigationItem?D.navigationItem:D.optionSelectableItemRenderer?D.optionSelectableItemRenderer:null};
_.q.computeText_=function(D){return(D=this.getItem_(D))?this.ytRendererBehavior.getSimpleString(D.text):null};
_.q.validate=function(){return this.itemSelected_!==-1};
_.q.computeAriaLabel_=function(D){var t=_.eo(D.text);(D=D.accessibility&&D.accessibility.accessibilityData&&D.accessibility.accessibilityData.label)&&(t+=". "+D);return t};
_.q.computeItemSelected_=function(D){return D};
_.q.preventSelection_=function(D){D.stopPropagation();this.tooltipTapped=!0};
_.q.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.q.updateItemSelectedFromBinding=function(D){this.itemSelected_=D.detail.value};
_.q.save=function(){var D;this.validate()&&(D=this.data)!=null&&D.items&&(D=this.data.items[this.itemSelected_],D!=null&&D.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(D.optionSelectableItemRenderer.submitEndpoint)||_.NJ(this.hostElement,[D.optionSelectableItemRenderer.submitEndpoint])))};
Sl.prototype.onPaperRippleTransitionEnd_=Sl.prototype.onPaperRippleTransitionEnd_;Sl.prototype.dataChanged_=Sl.prototype.dataChanged_;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Sl.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Sl.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Sl.prototype,"data",void 0);_.d([_.M({value:-1}),_.x("design:type",Number)],Sl.prototype,"itemSelected_",void 0);
_.d([_.M({computed:"computeItemSelected_(itemSelected_)"}),_.x("design:type",Number)],Sl.prototype,"value",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Sl.prototype,"restoreFocusOnClose",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],Sl.prototype,"tooltipTapped",void 0);_.d([_.M({value:-1}),_.x("design:type",Number)],Sl.prototype,"preselectedSubreason",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sl.prototype,"dataChanged_",null);_.d([_.rx("transitionend"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sl.prototype,"onPaperRippleTransitionEnd_",null);_.d([_.xL({is:"yt-options-renderer",disableElementRegistration:!0})],Sl);
_.p(Sl,"yt-options-renderer",function(){if(VcO===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;eEH===void 0&&(eEH=document.createElement("template"));var e=eEH;H.call(t,e.content.cloneNode(!0),D.content.firstChild);VcO=D}D=VcO;return D},{mode:2});var bZF;var qab;var FhH;var aUg;var wYt;var ZZ4;var f5=function(){return _.X.apply(this,arguments)||this};
_.P(f5,_.X);f5.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
f5.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
f5.prototype.onTap=function(D){if(this.hostElement.classList.contains("selected")||_.ET(this.hostElement,"yt-share-panel-can-select-contact-action")[0])D&&D.detail&&(D.detail.x||D.detail.y)&&_.Kg(this.hostElement).querySelector("#target").blur(),(D=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),D={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:D?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.ET(this.hostElement,"yt-share-panel-select-contact-action",[D])};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.d([_.M({observer:"onDataChanged"}),_.x("design:type",Object)],f5.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.x("design:type",String)],f5.prototype,"componentTitle",void 0);_.d([_.o5("#thumbnail"),_.x("design:type",Object)],f5.prototype,"thumbnail",void 0);_.d([_.xL({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],f5);
_.p(f5,"yt-enrolled-contact-renderer",function(){if(ZZ4===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;wYt===void 0&&(wYt=document.createElement("template"));var e=wYt;H.call(t,e.content.cloneNode(!0),D.content.firstChild);ZZ4=D}D=ZZ4;return D},{mode:2});var sAO;var hEi;var L5=function(){return _.X.apply(this,arguments)||this};
_.P(L5,_.X);L5.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
L5.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
L5.prototype.onTap=function(D){if(this.hostElement.classList.contains("selected")||_.ET(this.hostElement,"yt-share-panel-can-select-contact-action")[0])D&&D.detail&&(D.detail.x||D.detail.y)&&_.Kg(this.hostElement).querySelector("#target").blur(),(D=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),D={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:D?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.ET(this.hostElement,"yt-share-panel-select-contact-action",[D])};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.d([_.M({observer:"onDataChanged"}),_.x("design:type",Object)],L5.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.x("design:type",String)],L5.prototype,"componentTitle",void 0);_.d([_.o5("#thumbnail"),_.x("design:type",Object)],L5.prototype,"thumbnail",void 0);_.d([_.xL({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],L5);
_.p(L5,"yt-suggested-contact-renderer",function(){if(hEi===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;sAO===void 0&&(sAO=document.createElement("template"));var e=sAO;H.call(t,e.content.cloneNode(!0),D.content.firstChild);hEi=D}D=hEi;return D},{mode:2});var A4=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-share-panel-reset-action":"onReset"};return D};
_.P(A4,_.X);A4.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"}}}}}};
A4.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.ET(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
A4.prototype.onReset=function(){for(var D=_.Kg(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),t=D.length-1;t>=0;t--)D[t].classList.toggle("selected")};
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],A4.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],A4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M({observer:"onDataChanged"}),_.x("design:type",Object)],A4.prototype,"data",void 0);
_.d([_.xL({is:"yt-contact-section-renderer",disableElementRegistration:!0})],A4);
_.p(A4,"yt-contact-section-renderer",function(){if(aUg===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;FhH===void 0&&(FhH=document.createElement("template"));var e=FhH;H.call(t,e.content.cloneNode(!0),D.content.firstChild);aUg=D}D=aUg;return D},{mode:2});var J4=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return D};
_.P(J4,_.X);_.q=J4.prototype;_.q.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"}}}};
_.q.onYtRefreshFormCommand=function(D){var t;(D=_.O((t=_.O(D,_.Srn))==null?void 0:t.formRenderer,tcF))&&this.set("data",D)};
_.q.reset=function(){var D=_.Kg(this.hostElement).querySelector("#fields").children;D=_.F(D);for(var t=D.next();!t.done;t=D.next())t=t.value,t.reset&&t.reset()};
_.q.getForm=function(){var D={},t=_.Kg(this.hostElement).querySelector("#fields").children;t=_.F(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;if(!H.validate())return null;D[H.data.key]=H.value}return D};
_.q.submitFormFields=function(){if(this.fields)for(var D=_.F(this.fields),t=D.next();!t.done;t=D.next())t=t.value,t.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?t.save():t.nodeName==="YT-OPTIONS-RENDERER"&&t.save()};
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],J4.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],J4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],J4.prototype,"data",void 0);_.d([_.PT("#fields > *"),_.x("design:type",Array)],J4.prototype,"fields",void 0);
_.d([_.xL({is:"yt-form-renderer",disableElementRegistration:!0})],J4);
_.p(J4,"yt-form-renderer",function(){if(qab===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;bZF===void 0&&(bZF=document.createElement("template"));var e=bZF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);qab=D}D=qab;return D},{mode:2});var GWH;var YA=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return D};
_.P(YA,_.X);YA.prototype.onCheckboxChange=function(D){this.data&&(D=(this.checked=_.qy(D).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}})};
YA.prototype.handleUpdateCheckboxCommand=function(D){(D=_.O(D,_.QIn))&&this.data&&this.data.id===D.id&&(this.set("data.disabled",D.disabled),this.set("data.title",D.title))};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],YA.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],YA.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],YA.prototype,"checked",void 0);_.d([_.Y({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],YA);
_.p(YA,"ytd-settings-checkbox-renderer",function(){if(GWH!==void 0)return GWH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return GWH=D},{mode:1});var ExF;var lT=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return D};
_.P(lT,_.X);lT.prototype.dataChanged=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return D.radio.removeAttribute("checked"),!D.data||!D.data.id||D.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.WIg()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(t=D.data&&D.data.id)?H.yield(QDi(D.data.id),4):H.jumpTo(3):(D.set("data.hidden",!0),H.jumpTo(0));H.nextAddress!=3&&(t=H.yieldResult);t&&_.ET(D.hostElement,"yt-select-settings-radio-option",[D.data.id]);_.n2(H)})};
lT.prototype.onButtonChanged=function(D){_.qy(D).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.qS().resolve(_.aA).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.ET(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
lT.prototype.onSelectOption=function(D){this.data&&this.data.id&&(this.data.id===D?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
lT.prototype.dataChanged=lT.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],lT.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],lT.prototype,"ytActionHandlerBehavior",void 0);_.d([_.o5("#radio"),_.x("design:type",Object)],lT.prototype,"radio",void 0);_.d([_.M(),_.x("design:type",Object)],lT.prototype,"data",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],lT.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],lT);
_.p(lT,"ytd-settings-radio-option-renderer",function(){if(ExF!==void 0)return ExF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ExF=D},{mode:1});var KhQ;var v2=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return D};
_.P(v2,_.X);
v2.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"}}}};
v2.prototype.handleUpdateTextCommand=function(D){(D=_.O(D,_.yRf))&&this.data&&this.data.id===D.id&&this.set("data",D)};
v2.prototype.handleUpdateConnectedAppRendererCommand=function(D){if(_.O(D,_.DMo)&&this.data){var t,H;if(D=(t=_.O(D,_.DMo))==null?void 0:(H=t.newConnectedAppRenderer)==null?void 0:H.connectedAppRenderer)this.data=D}};
v2.prototype.computeConnectedAppStyle=function(D){return D.style?D.style.toLowerCase().replace(/_/g,"-"):""};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],v2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],v2.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],v2.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],v2.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.x("design:type",String)],v2.prototype,"connectedAppStyle",void 0);_.d([_.Y({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],v2);
_.p(v2,"ytd-connected-app-renderer",function(){if(KhQ!==void 0)return KhQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return KhQ=D},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.gV("iuT5Oc");

_.Je();
}catch(e){_._DumpException(e)}
try{
_.gV("L3n37");
var YpY=function(D){return D.watch.isLearningJourneyActive},lxl=_.Nx(115994),vwU=_.Nx(115993),p$M=function(D,t,H){var e=this;
var V=H.dragDownAction;this.layer=0;this.JSC$23152_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return e.dragDownAction()}}}};
this.JSC$23152_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return e.dragDownAction()}}}};
this.fullscreen=!1;var b=_.Pc();_.g3(b,lxl,this.layer);_.g3(b,vwU,this.layer);this.dragDownAction=function(){V();_.IH(b,{visualElement:e.fullscreen?lxl:vwU})};
this.gesture=new _.AY(D,t,this.getConfig(!1),"pandown");this.attach()};
p$M.prototype.attach=function(){this.gesture.attach()};
p$M.prototype.detach=function(){this.gesture.detach()};
p$M.prototype.update=function(D){this.fullscreen=D;var t=this.gesture;D=this.getConfig(D);t.config=D};
p$M.prototype.getConfig=function(D){return D?this.JSC$23152_watchFullScreenConfig:this.JSC$23152_watchConfig};var dzA=function(D){_.d5.call(this);var t=this;this.rootElement=D;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return t.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(H){t.initOrDisposeActiveModules(H)}));
this.onAttached()};
_.P(dzA,_.d5);_.q=dzA.prototype;_.q.getRoot=function(){return this.rootElement};
_.q.getElement=function(D){return this.rootElement.getElement(D)};
_.q.setPlayerResponse=function(D){this.playerResponse=D;this.publish("PLAYER_RESPONSE_UPDATED",D)};
_.q.getPlayerResponse=function(){return this.playerResponse};
_.q.setWatchNextResponse=function(D){this.watchNextResponse===D?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=D,this.publish("WATCH_NEXT_RESPONSE_UPDATED",D))};
_.q.getWatchNextResponse=function(){return this.watchNextResponse};
_.q.registerActionHandler=function(D,t){var H=this;if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var e={};_.ya(_.Qa.getInstance(),(e[D]=t,e),this.getRoot())}else this.actionHandlers.has(D)||(this.actionHandlers.set(D,[]),e={},_.ya(_.Qa.getInstance(),(e[D]=function(){var V=_.RE.apply(0,arguments);return(H.actionHandlers.get(D)||[]).map(function(b){return b.apply(null,_.A6(V))})},e),this.getRoot())),this.actionHandlers.get(D).push(t)};
_.q.unregisterActionHandler=function(D){if(_.r("web_watch_controller_reg_multiple_handlers_killswitch")){var t={};_.B$(_.Qa.getInstance(),(t[D]=!0,t),this.getRoot())}else(t=this.actionHandlers.get(D))?(t.pop(),t.length===0&&(t={},_.B$(_.Qa.getInstance(),(t[D]=!0,t),this.getRoot()),this.actionHandlers.delete(D))):_.Yw(new _.nZ("Attempted to unregister an action handler which is not registered.",D))};
_.q.addPageDisposeJob=function(D){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.mu$(this.rootElement.pageDisposeJobs,D)};
_.q.removePageDisposeJob=function(D){this.rootElement.pageDisposeJobs&&_.vk(this.rootElement.pageDisposeJobs,D)};
_.q.dispatchEvent=function(D,t){_.Gf(this.rootElement,D,t)};
_.q.provideRenderingData=function(D,t){this.rootElement.provideRenderingData(D,t)};
_.q.scrollWatchTo=function(D,t){var H;(H=this.watchScrollManager)==null||H.scrollWatchTo(D,t)};
_.q.focusOnPlayer=function(){var D=this.getElement("PLAYER");_.Vi(D,function(){if(D&&D.firstElementChild){var t=D.querySelector(".html5-video-player");t&&(_.Co(_.qS().resolve(_.mM)),t.focus())}else _.Yw(Error("Wo"))})};
var xzw=function(D){var t=!!D.rootElement.theater,H=!!D.rootElement.fullscreen,e;(e=D.watchCinematicManager)==null||_.jAd(e,H,t)};
_.q=dzA.prototype;_.q.subscribeToActiveChanged=function(D,t){t=t===void 0?!0:t;var H=_.Rj(_.b_(),YpY,function(e){D(e)});
t&&D(YpY(_.b_().getState()));return H};
_.q.isActive=function(){return YpY(_.b_().getState())};
_.q.onAttached=function(){var D=_.r("external_fullscreen");_.r("use_unified_flag_accessor")&&(D=_.qS().resolve(_.Wut).retriever.getFlag(_.XI9));(D||_.lh("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.q.initPersistentModules=function(){if(_.r("kevlar_watch_flexy_theater_manager")){var D=new _.uHU(this);_.c1(this,D)}D=new _.fUF(this);_.c1(this,D);D=new _.SS(this);_.c1(this,D);D=new _.mSN(this);_.c1(this,D);D=new _.gC(this);_.c1(this,D);D=new _.XB(this);_.c1(this,D);_.r("kevlar_watch_flexy_playlist_manager")&&(D=new _.Gr1(this),_.c1(this,D))};
_.q.initOrDisposeActiveModules=function(D){D?(this.watchScrollManager=new _.JI(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.QAM(this)),this.activeModules.push(new _.I_Y(this)),this.activeModules.push(new _.cyU(this)),this.activeModules.push(new _.pYU(this)),_.r("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.D2U(this)),this.activeModules.push(new _.HXh(this)),_.r("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.$OU(this)),
_.r("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.wYU(this)),_.r("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.ExA(this),this.activeModules.push(this.watchCinematicManager),xzw(this)),_.r("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.qqU(this)),_.r("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.SaU(this)),D=_.r("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.r("kevlar_watch_flexy_comments_manager")&&
!D&&this.activeModules.push(new _.US7(this)),_.r("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.hhF(this)),this.activeModules.push(new _.tcA(this)),this.activeModules.push(new _.Biw(this)),_.r("web_enable_timely_actions")&&this.activeModules.push(new _.bZY(this)),_.r("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.Phl(this)),_.r("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.T1U(this)),_.r("web_fullscreen_components")&&
this.activeModules.push(new _.VG7(this)),_.r("web_player_rtr_ctrls")&&this.activeModules.push(new _.Ch1(this))):(_.Fs(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.q.disposeInternal=function(){_.d5.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.ql.Object.defineProperties(dzA.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var RHA={},u0M=["learning-journey-engagement-panel","PAlearning_chat"];
RHA.YtdLearningJourneyWatchBehavior=[_.y.YtRendererBehavior,_.ik.YtPlayerListenerBehavior,_.MK.YtRendererstamperBehavior,_.dW.YtActionHandlerBehavior,_.bn.YtPageBehavior,_.pE.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 _.lh("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.r("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 _.lh("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 _.r("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.r("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 _.ZU("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.ZU("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,
reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_rounded_player_large")||_.r("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 _.r("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.r("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("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 _.r("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.r("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.jl(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.jl(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var D=this;this.watchController=void 0;this.pageDisposeJobs=[function(){D.showMetadataPlaceholder_()},
function(){_.r("web_watch_dont_clear_comments")||D.clearComments_()},
function(){D.clearPlayerAds_()},
function(){D.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;_.r("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.r("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.k0l(function(){return _.qx(D)},this.hostElement);
this.pageDisposeJobs.push(function(){D.youThereManager_.reset()});
_.r("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){D.resetFullerscreenEduButtonForNewPlayback_()}));
_.r("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.nL;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;_.r("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.r("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));_.r("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.iK(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(D){D&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:D}),D.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(D){_.r("kevlar_watch_flexy_theater_manager")&&(this.theater=D,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.r("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(D){!_.r("kevlar_watch_while_v2")&&!_.r("web_watch_pip")||D||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(D){this.active!==void 0&&(this.fullscreen=D,_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(D){this.active!==void 0&&(_.Gf(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.r("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(D>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(D){this.initCsi_();this.updatePageData_(D)},
updatePageData_:function(D){var t=this;if(D)if(this.data===D){this.onPageLoadWithSameData_();var H;(H=this.watchController)==null||H.setWatchNextResponse(this.data)}else this.data=D;this.playlist&&_.JE({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.vh("nw");this.loading=!1;_.C7(_.Jy,function(){t.initDclkstatus_();var e,V=((e=t.player)==null?void 0:e.getVideoData().cpn)||"";_.H7l(function(b,a){_.ak4(b,a,V)})})},
onPageLoadWithSameData_:function(){_.r("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 D=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!D);this.set("loadingData.playlistLoading",D&&D!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),D=this.watchNextSkeletonEl_.firstElementChild;D;)D.classList.remove("hidden"),D=D.nextElementSibling;var t,H,e;D=(t=this.loadingData)==null?void 0:(H=t.endpoint)==null?void 0:(e=H.watchEndpoint)==null?void 0:e.videoId;var V;D&&(V="https://i.ytimg.com/vi/"+D+"/frame0.jpg");_.Kg(this.hostElement).querySelector("#player").style.backgroundImage=V?"url("+V+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var D=_.Kg(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&D&&(D.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var t,H;(H=(t=this.watchMetadata).updateSentimentBarWidth)==
null||H.call(t);var e,V;(V=(e=this.watchMetadata).resize)==null||V.call(e)}_.Kg(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(D){var t=_.Kg(this.hostElement).querySelector(D);t?_.Zk(t,!1):_.Yw(new _.nZ("Overscroll monitor not found for component: ",D))},
removeSplitScrollMouseTrap:function(D){var t=_.Kg(this.hostElement).querySelector(D);t?_.sT(t):_.Yw(new _.nZ("Disposal component for  overscroll monitoring not found: ",D))},
onLoadingChanged_:function(D){D?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(D){var t=this;D?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Jy.addLowPriorityJob(function(){t.onWindowResized_(_.n_(!0))})},
updateTheaterModeState_:function(D){if(!_.r("kevlar_watch_flexy_theater_manager")){D=D||this.fullWindowMode_;if(this.theater!==void 0||D)this.theater=D;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();D&&_.LiM()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var D=this.theater;_.r("external_fullscreen")&&this.fullscreen&&(D=!0);D=D?_.Kg(this.hostElement).querySelector("#player-full-bleed-container"):_.Kg(this.hostElement).querySelector("#player-container-inner");var t=this.getPlayerContainer(),H=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip");t.parentElement!==D&&(H&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.qx(this).appendTo(D,t),D.appendChild(_.Kg(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var D=this;return _.Z(function(t){if(t.nextAddress==1)return t.yield(_.qS().resolve(_.dL).deactivate(),2);D.updatePlayerLocation();_.n2(t)})},
updateCinematicsLocation:function(){var D=this.getElement("CINEMATICS");if(D){var t=this.getCinematicsLocationContainer();D.parentElement!==t&&t.appendChild(D);var H;(H=this.watchController)==null||xzw(H)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Kg(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Kg(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(D,t){var H=document.documentElement.hasAttribute("dark"),e=H&&_.r("web_cinematic_theater_mode"),V=H&&_.r("web_cinematic_fullscreen");H=!H&&this.cinematicLightTheme;return D&&e||t&&V||(t||D)&&H},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data);_.r("kevlar_watch_flexy_comments_manager")||this.initComments_();_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.qS().resolve(_.hU).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.r("web_watch_start_chat_in_theater_mode")){var t,
H,e;if((t=this.data)==null?0:(H=t.contents)==null?0:(e=H.twoColumnWatchNextResults)==null?0:e.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var V,b;((V=this.data)==null?0:(b=V.contents)==null?0:b.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(D){var t;(t=this.watchController)==null||t.setPlayerResponse(this.playerData);D&&D.playabilityStatus&&(t=this.isVideoPlayable_(D.playabilityStatus,this.getPlayerOverlays_(this.data)),D=this.isLiveStreamOffline_(D.playabilityStatus),t&&!D||_.Vi(this,function(){_.vh("pbu")}));
this.setPlayerAds_();_.Kl(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(D){_.b_().dispatch(_.hV({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));D?this.activate_():this.deactivate_()},
attached:function(){var D=this;this.watchController=new dzA(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.r("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var t=_.qx(this);_.r("kevlar_disable_prepare_player")||t.preparePlayer();_.r("kevlar_watch_flexy_playlist_manager")||_.qS().resolve(_.hU).setPlayer(t);this.updatePageMediaQueries();t={"--ytd-watch-flexy-scrollbar-width":_.kA()+
"px"};!_.ZU("kv_pl_mx_sz_ks")&&_.ZU("kevlar_watch_max_player_width")&&(t["--ytd-watch-flexy-max-player-width-wide-screen"]=_.r6Y+"px");_.ZU("kevlar_watch_flexy_metadata_height")&&(t["--ytd-watch-flexy-space-below-player"]=_.O2M+"px");this.safeUpdateStyles(t);_.r("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new p$M(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return D.onPlayerTouchPanDown_()}}));
_.r("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Kg(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var D=_.kA(),t=_.RU+D,H=t;this.fixedPanels&&(t+=_.i27);var e=657+D;D=1327+D;_.Kg(this.hostElement).querySelector("#two-column-query").query="(min-width: "+t+"px)";_.Kg(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(e+"px), (min-height: 630px) and (min-width: ")+(t+"px) and (max-width: ")+(D+"px)");_.Kg(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(D+"px)");
_.Kg(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+H+"px)"},
calculateCurrentPlayerSize_:function(){var D=_.Kg(this.hostElement).querySelector("#miniplayer-bar").firstChild;return D&&D.active||this.theater||_.r("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.O5(NaN,NaN):_.FEU(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.FEU(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.qc(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var D=this;this.onWindowResized_(_.n_());_.r("browse_skeleton_removal_on_watch_killswitch")||_.lh("IS_SHELL_LOAD")&&_.Nz4();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var t=_.qx(this);t.addEventListener("yt-player-updated",_.iK(this,this.onPlayerUpdated_));t.getPlayerPromise().then(function(H){D.playerApiReady_(H)});
_.r("kevlar_watch_flexy_playlist_manager")||(t=_.qS().resolve(_.hU),_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&t.addEventListener("yt-navigate",_.iK(this,this.onYtNavigate_)),t.setPlaylistComponent(_.Kg(this.hostElement).querySelector("#playlist")),t.addEventListener("yt-playlist-data-updated",_.iK(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Jy.addLowPriorityJob(function(){_.Gf(D.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.qx(this).removeEventListener("yt-player-updated",_.iK(this,this.onPlayerUpdated_));if(!_.r("kevlar_watch_flexy_playlist_manager")){var D=_.qS().resolve(_.hU);_.r("kevlar_watch_observe_playlist_navigations_killswitch")&&D.removeEventListener("yt-navigate",_.iK(this,this.onYtNavigate_));D.cancelVideoSkip();D.removeEventListener("yt-playlist-data-updated",_.iK(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.r("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Gf(this.hostElement,"yt-autonav-pause-player",!1);D=_.a4();_.r("kevlar_exit_fullscreen_leaving_watch")&&D&&_.wE(D)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(D){this.player&&this.player.updateVideoData({rvs:D.rvs})},
getPageContents:function(D){return D&&D.contents&&D.contents.twoColumnWatchNextResults&&D.contents.twoColumnWatchNextResults.results&&D.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(D){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",D)},
onRetrieveLocation_:function(D,t){t.hasComments?t.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):t.locationRetrieved("/related_ajax",void 0);D.stopPropagation()},
onSubscriptionChanged_:function(D,t){this.player&&(t?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.V7("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Kg(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Kg(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(D){this.player=D;this.setPlayerState(D.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.r("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.r("kevlar_unified_player")||_.r("kevlar_player_new_bootstrap_adoption"))&&_.ue()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(D,t){t=t===void 0?!0:t;_.a4()&&_.r("external_fullscreen")&&_.wE(document.documentElement);this.theaterRequested_=D;t&&_.Oa("wide",D?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.r("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.ET(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Gf(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(D){_.lm(D,typeof this.player),this.player&&_.lm(D,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var D;((D=this.player)==null?0:D.isFullscreen())?this.player.toggleFullscreen():_.ET(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(D,t){return this.loading?t:!!Object.keys(D).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(D){if(D){D=_.F(D);for(var t=D.next();!t.done;t=D.next())t=t.value,t.youThereRenderer&&_.jRU(this.youThereManager_,t.youThereRenderer)}},
setPlaylistData_:function(D){return D||{}},
userEngagementConfigDataChanged_:function(D){if(D)if(D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var t=this.youThereManager_;_.aR()<D.lowEngagementThresholdMs||_.O71(t,!0)}else D.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.ET(this.hostElement,"yt-autonav-pause-user-engagement",[D])},
isPlayerUnavailable_:function(D,t,H){return!!D&&!this.isVideoPlayable_(D,H)&&!t},
getPlayerOverlays_:function(D){return(D==null?void 0:D.playerOverlays)||null},
isVideoPlayable_:function(D,t){if(!D)return!1;var H=D.status==="OK"||D.status==="LIVE_STREAM_OFFLINE",e=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",D)||this.get("errorScreen.ypcTrailerRenderer",D);D=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",D);var V;t=t==null?void 0:(V=t.playerOverlayRenderer)==null?void 0:V.gatedActionsOverlayRenderer;return!!H||!!e||!!D||!!t},
hasWatchNextResponseErrorRenderer:function(D){var t=this.getPageContents(D),H,e,V,b,a;return!(D==null?0:(H=D.contents)==null?0:(e=H.twoColumnWatchNextResults)==null?0:e.secondaryResults)&&!!((V=t[0])==null?0:(b=V.itemSectionRenderer)==null?0:(a=b.contents[0])==null?0:a.backgroundPromoRenderer)},
isLiveStreamOffline_:function(D){return D?D.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(D,t,H){var e=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",t),V=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];V=_.r("web_no_skip_video_on_verification_checks")?(D==null?void 0:D.status)&&V.includes(D.status):D&&D.status==="AGE_CHECK_REQUIRED";var b=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",D);b==void 0&&(b=!0);!H||this.isVideoPlayable_(D,this.getPlayerOverlays_(t))||
e||V||!b||_.qS().resolve(_.hU).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.w$F()},
onPlayerFeedbackStartRequest_:function(D){_.ET(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:D}])},
onPlayerFeedbackArticleRequest_:function(D){_.ET(this.hostElement,"yt-help-dialog-requested",[D])},
onPlayerYpcContentRequest_:function(){var D,t,H,e,V,b,a,w,h=((D=this.data)==null?NaN:(t=D.contents)==null?NaN:(H=t.twoColumnWatchNextResults)==null?NaN:(e=H.secondaryResults)==null?NaN:(V=e.secondaryResults)==null?NaN:(b=V.offerModule)==null?NaN:(a=b.tvfilmOfferModuleRenderer)==null?NaN:(w=a.actionButtons)==null?NaN:w.length)-1;D=[".offerButton.buttonRenderer.",".actionButtons."+(h>=0?h:0)+".buttonRenderer."];t=_.F(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(H=t.next();!H.done;H=t.next())for(H=H.value,e=_.F(D),V=e.next();!V.done;V=e.next())if(V="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+H+V.value,V=this.get(V+"navigationEndpoint",this.data)||this.get(V+"serviceEndpoint",this.data)||this.get(V+"command",this.data)){_.rj(V,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(D){_.Gf(this.hostElement,"yt-autonav-pause-player",D)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(D){D()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(D){switch(D){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Gf(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(D)},
setPlayerState:function(D){_.b_().dispatch(_.Xz6(D))},
onPlayerSubscribe_:function(D){_.ET(this.hostElement,"yt-player-subscribe",[D])},
onPlayerUnsubscribe_:function(D){_.ET(this.hostElement,"yt-player-unsubscribe",[D])},
onPlayerAdYtShowToast_:function(D){_.ET(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:D.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(D){if(D)return D},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(D){return!_.r("web_watch_move_summary_to_sd")&&!!D},
computeWatchMetadataRefresh:function(){return _.r("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var D,t,H,e;this.watchNextSecondaryResults=(D=this.data)==null?void 0:(t=D.contents)==null?void 0:(H=t.twoColumnWatchNextResults)==null?void 0:(e=H.secondaryResults)==null?void 0:e.secondaryResults}},
setRichGridRendererData:function(D){this.richGridRendererData=D},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var D,t=(D=this.data)==null?void 0:D.engagementPanels;if(t==null?0:t.length){D=null;t=_.F(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;var e=void 0;if(((e=H.engagementPanelSectionListRenderer)==null?void 0:e.targetId)==="engagement-panel-structured-description"){D=H;break}}var V,b,a;D=(V=D)==null?void 0:(b=V.engagementPanelSectionListRenderer)==null?void 0:(a=b.content)==null?void 0:a.structuredDescriptionContentRenderer;if(D==null?0:D.items){V=
[];b=_.F(D.items);for(a=b.next();!a.done;a=b.next()){a=a.value;if(!_.r("sd_horizontal_list_show_nav_killswitch")){var w=e=H=t=D=void 0,h=void 0,K=(D=a.horizontalCardListRenderer)==null?void 0:(t=D.header)==null?void 0:(H=t.richListHeaderRenderer)==null?void 0:(e=H.navigationButton)==null?void 0:(w=e.buttonRenderer)==null?void 0:(h=w.command)==null?void 0:h.commandExecutorCommand;K&&K.commands&&(K.commands=K.commands.filter(function(N){return!_.O(N,_.JAY)}))}a.expandableVideoDescriptionBodyRenderer||
a.videoDescriptionHeaderRenderer||V.push(a)}return{items:V}}}},
constructWarning_:function(D){return{text:_.H7(D),type:"WARNING"}},
isPlaShelfEnabled_:function(D){if((this.get("adPlacements",D)||[]).length)return!0;D=this.get("playerAds",D)||[];return!(!D.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",D[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var D=this;_.Gf(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var t=this.getScrollTop()>0;this.gestures_&&(t?this.gestures_.detach():this.gestures_.attach());t!==this.showFullerscreenEdu_&&_.r("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=t,_.qx(this).getPlayerPromise().then(function(H){H.updateFullerscreenEduButtonVisibility(D.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Gf(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var D=this;this.commentsReady=!1;_.Jy.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.C7(_.Jy,function(){D.setComments_()},1E3)},
setComments_:function(){if(!_.r("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.vh("cmi");_.Jy.cancelJob(this.setCommentsJobId_);var D=this.getPageContents(this.data);if(D&&D.length){D=_.F(D);for(var t=D.next();!t.done;t=D.next())if(t=t.value,this.get("itemSectionRenderer.sectionIdentifier",t)==="comment-item-section"){this.comments=t.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Gf(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.r("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.r("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.vh("cmc")},
doRemoveComments_:function(){this.comments={};_.r("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Jy.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Jy.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(D,t){var H=_.O(t.endpoint,_.Hh);H&&(!(t=this.get("data.currentVideoEndpoint.watchEndpoint"))||H.videoId!==t.videoId||H.playlistId&&H.playlistId!==t.playlistId||H.index!==void 0&&H.index!==t.index||typeof H.startTimeSeconds!=="number"||(D.stopPropagation(),this.setScrollTop(0),_.qx(this).getPlayerPromise().then(function(e){var V=H.startTimeSeconds;e.seekTo(V);e.wakeUpControls();V<e.getDuration()&&e.playVideo()})))},
updatePlayerStartTime_:function(){var D=_.uUN();"t"in D&&(D=_.axl(D.t),this.player.seekTo(D,!0))},
updateTitleFromWatchNext:function(D){D=this.getPageContents(D);var t,H;(D=_.eo(D==null?void 0:(t=D[0])==null?void 0:(H=t.videoPrimaryInfoRenderer)==null?void 0:H.title))&&_.Gf(this.hostElement,"yt-update-title",D)},
updateTitle_:function(D){D=this.get("videoDetails.title",D)||"";_.Gf(this.hostElement,"yt-update-title",D)},
syncWithRemoteVideo_:function(D,t,H){if(this.active&&this.player){var e=this.player.getVideoData();if(e.video_id===H&&(H=e.list,_.r("polymer_enable_mdx_queue")&&H&&H.startsWith("RQ")&&(H=void 0),e.video_id!==D||H!=t)){var V;_.r("kevlar_player_watch_endpoint_navigation")?V=_.mhD(_.eH7(D,t)):V=this.buildWatchEndpoint_(D,t);_.Gf(this.hostElement,"yt-navigate",{endpoint:V,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(D,t,H){return _.af(D,t,H)},
initDclkstatus_:function(){_.qpE()},
attachWatchPageSkeleton_:function(){var D=document.querySelector("#watch-page-skeleton");if(D){var t=D.querySelector("#primary-info"),H=D.querySelector("#secondary-info"),e=D.querySelector("#related");t&&_.Kg(this.hostElement).querySelector("#info-skeleton").appendChild(t);H&&_.Kg(this.hostElement).querySelector("#meta-skeleton").appendChild(H);e&&(_.Kg(this.hostElement).querySelector("#related-skeleton").appendChild(e),this.watchNextSkeletonEl_=e);_.UH(D)}},
handlePlayerUpdated_:function(){_.qx(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(D,t){if(this.watchNextSkeletonEl_&&typeof t!=="undefined"){var H=this.watchNextSkeletonEl_.children,e=D&&D.indexSplices.length?D.indexSplices[0].index:0;D=Math.min(this.watchNextShownItems.length,H.length);t||(e=0,D=H.length);for(t=e;t<D;t++)H[t].classList.add("hidden")}},
onPlayerFullscreenChange_:function(D){_.r("external_fullscreen")||_.ET(this.hostElement,"yt-player-fullscreen",[D.fullscreen])},
onFullscreenChange_:function(D){this.fullscreen=D;this.gestures_&&this.gestures_.update(this.fullscreen);var t=_.qx(this);t.getPlayerPromise().then(function(H){H.setFauxFullscreen(!!_.a4())});
this.updateFullBleedElementLocations();D&&(t.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(D,t){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!t},
computeIsDonationShelfCollapsed_:function(D){return D},
computeShouldShowMerchShelf:function(D,t){return t&&!!D},
computeResponseHasComments:function(D){var t,H,e,V,b;return!!(D==null?0:(t=D.contents)==null?0:(H=t.twoColumnWatchNextResults)==null?0:(e=H.results)==null?0:(V=e.results)==null?0:(b=V.contents)==null?0:b.some(function(a){var w;return(a==null?void 0:(w=a.itemSectionRenderer)==null?void 0:w.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(D,t){this.responseHasComments=this.computeResponseHasComments(this.data);return!!D&&!!Object.keys(D).length&&!t},
identity:_.AT,onWindowResized_:function(D){this.windowSize_=D;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.r("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.r("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(D){var t=this;D&&D.type!=="dataloaded"&&D.type!=="dataupdated"||_.qx(this).getPlayerPromise().then(function(H){var e=H.getPlayerState();e!==5&&e!==0&&(H=1/H.getVideoAspectRatio(),t.videoHeightToWidthRatio_!==H&&(t.videoHeightToWidthRatio_=H))})},
schedulePlayerSizeUpdate_:function(D){var t=this,H=_.r("kevlar_watch_while_v2")||_.r("web_watch_pip"),e=function(){if(t.watchMetadata){var V,b;(b=(V=t.watchMetadata).resize)==null||b.call(V)}_.qx(t).getPlayerPromise().then(function(a){if(_.r("kevlar_set_internal_player_size")){if(!H||!t.isMiniplayerActive()){var w=t.calculateCurrentPlayerSize_();a.setInternalSize(w.width,w.height)}}else a.setSize(NaN,NaN);_.r("kevlar_watch_while")&&t.updateWatchWhileScrollThreshold_()})};
D?e():_.NP(_.Jy,e)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(D){this.set("data.survey",D.detail)},
onYtShowSurveyCommand_:function(D){this.set("data.survey",_.O(D,_.NTM).survey)},
onDownloadedVideoDeleted:function(D){var t=this,H,e;return _.Z(function(V){if(V.nextAddress==1){if(!t.active||(H=t.playerData)==null||!H.offlineState||t.videoId!==D)return V.return();(e=t.player)==null||e.stopVideo();_.d3().navigatingAwayFromWatchDeletedVideo=!0;_.rj(_.P3V,t.hostElement);return V.yield(_.d3().navigationFinishPromise,2)}_.d3().navigatingAwayFromWatchDeletedVideo=!1;_.n2(V)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var D;this.theater?D=_.A8(.5625*this.windowSize_.width,480,this.windowSize_.height-185):D=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==D&&(this.watchWhileScrollThreshold_=D,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var D=_.Kg(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&D){var t=this.windowSize_.height>=624,H=this.active?this.getScrollTop():0;!D.active&&t&&H>=this.watchWhileScrollThreshold_?(D.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):D.active&&(!t||H<this.watchWhileScrollThreshold_&&!_.a4())&&(D.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(D,t){if(D!==!0||t!==void 0){D=!_.r("live_chat_over_engagement_panels");t=_.Kg(this.hostElement).querySelector("#chat-container");var H=_.Kg(this.hostElement).querySelector("#plj-sidebar"),e=_.Kg(this.hostElement).querySelector("#panels"),V=_.Kg(this.hostElement).querySelector("#plj-panels"),b=_.Kg(this.hostElement).querySelector("#plj-playlist"),a=_.Kg(this.hostElement).querySelector("#alerts"),w=_.Kg(this.hostElement).querySelector("#playlist"),h=_.Kg(this.hostElement).querySelector("#related"),
K=_.Kg(this.hostElement).querySelector("#donation-shelf"),N=_.Kg(this.hostElement).querySelector("#comments");this.isTwoColumns_?(a=_.Kg(this.hostElement).querySelector("#secondary-inner"),a.appendChild(H),H.appendChild(b),b.appendChild(w),H.appendChild(V),D&&a.appendChild(e),_.r("web_watch_theater_chat")||a.appendChild(t),D||a.appendChild(e),a.appendChild(K),a.appendChild(h)):(D&&_.ut(e,a),_.ut(w,a),_.r("web_watch_theater_chat")||_.ut(t,a),D||_.ut(e,a),_.ut(K,a),N&&(V&&_.ut(V,N),_.ut(h,N)));_.r("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.r("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.r("web_watch_theater_chat")){var D=_.Kg(this.hostElement).querySelector("#chat-container"),t=this.theater&&!this.fullscreen||_.r("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&t?_.r("web_watch_theater_chat_beside_player")?(t=_.Kg(this.hostElement).querySelector("#panels-full-bleed-container"),(D==null?void 0:D.parentElement)!==t&&t.append(D),this.panelsBesidePlayer=!0):_.r("web_watch_theater_fixed_chat")&&
(t=_.Kg(this.hostElement).querySelector("#columns"),(D==null?void 0:D.parentElement)!==t&&t.append(D),this.fixedPanels=!0):(_.r("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.r("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),t=_.Kg(this.hostElement).querySelector("#playlist"),D&&t?_.Wr(D,t):_.Yw(new _.nZ("Missing element when updating chat location",{"chatContainer defined":!!D,"playlist defined":!!t})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(D,t){return _.r("sw_metadata_vis_toggle_ks")?!0:!!D||!!t},
computeForceDarkPanelTheme:function(D){return _.r("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&D:!1},
safeUpdateStyles:function(D){try{_.jZ(this.hostElement,D)}catch(t){_.Yw(t)}},
videoHeightToWidthRatioChanged_:function(D,t){t&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.r("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(D){this.videoHeightToWidthRatio_=1/D},
computeIsVerticalVideo_:function(D){return D>=1},
computeIsFourThreeToSixteenNineVideo_:function(D){return D<=.7501&&D>=.5624},
computeIsExtraWideVideo_:function(D){return D<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.qx(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.qx(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.UzM(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(D){var t=_.l_(D)||0;_.Yg(D,t+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var D=_.l_("yt-fullerscreen-edu-button-click-count")||0,t=_.l_("yt-fullerscreen-edu-button-shown-count")||0,H=_.ZU("external_fullscreen_button_shown_threshold"),e=D>=_.ZU("external_fullscreen_button_click_threshold")||t>=H;_.qx(this).getPlayerPromise().then(function(V){V.updateFullerscreenEduButtonSubtleModeState(e)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(D,t){return t},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.qS().resolve(_.hU).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var D=this;this.panelMaxHeightUpdateJob_&&_.Jy.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Jy.addLowPriorityJob(function(){D.panelMaxHeightUpdateJob_=0;var t;!D.isTwoColumns_||D.theater||D.fullscreen?t=460:t=D.calculateNormalPlayerSize_().height;var H=t+"px";_.r("live_chat_taller_height")&&!D.theater&&(H="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.r("live_chat_medium_height")&&
!D.theater&&(H="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.r("live_chat_scaled_height")&&!D.theater&&(H="calc(100vh - var(--ytd-toolbar-height) - 238px)");D.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":t+"px","--ytd-watch-flexy-chat-max-height":H,"--ytd-watch-flexy-structured-description-max-height":t+"px","--ytd-watch-flexy-comments-panel-max-height":t+"px","--ytd-comments-engagement-panel-content-height":t+"px"})})},
onYtShowEngagementPanelScrimAction_:function(D){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",D)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.k0(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(D){var t=_.Kg(this.hostElement).querySelector("#engagement-panel-scrim");D?t.addEventListener("tap",_.iK(this,this.onEngagementPanelScrimClick_)):t.removeEventListener("tap",_.iK(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(D){if(this.hostElement.contains(D)&&!this.scrollToAnimation_.isAnimating()){var t=D.offsetTop-24;D=D.offsetTop+D.offsetHeight+24;var H=this.getPageScrollingElement(),e=this.getScrollTop(),V=e+H.clientHeight-56;if(t<e+56)t-=56;else if(D>V)t=D-H.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,t),500)}},
onYtSignalActionScrollToComments:function(){var D=this.hostElement.querySelector("#comments");if(D&&!this.scrollToAnimation_.isAnimating()){D=D.offsetTop-56-24;if(_.r("kevlar_comment_teaser_scroll_to_midpoint")&&(D-=_.U5().height/3,D<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,D),500)}},
onYtEngagementPanelVisibleChanged:function(D,t,H){this.active&&this.trackEngagementPanelVisibility&&!_.EwF.includes(H)&&(t==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(H),t!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&t!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(H),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(D){return D?"":"watch-active-metadata"},
computeNewMetadataClass:function(D){return D?"watch-active-metadata":""},
computeFullBleedPlayer:function(D,t){return D||t},
computeDefaultLayout:function(D){return!D},
computeDefaultTwoColumnLayout:function(D,t){return!D&&t},
computeWatchWhilePanelsActive:function(D,t){return D||t},
computeNoBorderOnChat:function(D){return _.r("web_watch_theater_chat_no_border")&&D},
computeLiveChatPresentAndExpanded:function(D,t){return D&&!t},
computePanelExpanded:function(D,t,H){return D||t||H},
onChangeMarkersVisibility:function(D){_.qx(this).getPlayerPromise().then(function(t){var H;(H=t.changeMarkerVisibility)==null||H.call(t,_.O(D,_.dC).isVisible||!1,_.O(D,_.dC).entityKeys||[],_.O(D,_.dC).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(D){this.liveChatCollapsed=D.detail;_.b_().dispatch(_.G0l(D.detail))},
provideRenderingData:function(D,t){switch(D){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=t;break;case "PRIMARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=t);this.videoPrimaryInfoRendererValue=t==null?void 0:t.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.r("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=t);this.videoSecondaryInfoRendererValue=t==null?void 0:t.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
t;break;case "CLARIFICATION":this.clarifyBoxValue=t;break;case "LIVE_CHAT":this.conversationBar=t;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=t;break;case "PLAYLIST":this.externalPlaylistData_=t!=null?t:{};break;case "MERCH_SHELF":this.merchShelfValue=t==null?void 0:t.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=t;break;case "OFFER_MODULE":this.offerModule=t;break;case "LIMITED_STATE":this.limitedStateValue=t;break;case "DONATION_SHELF":this.donation=t;break;
case "ALERTS":this.alertsValue=t;break;case "COMMENTS":this.comments=t;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=t;break;case "ENGAGEMENT_PANELS":this.engagementPanels=t;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=t;break;case "RICH_GRID_RENDERER":this.richGridRendererData=t;break;case "EXPANDABLE_METADATA":this.expandableMetadata=t;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=t}},
toggleCinematicsActive:function(D){this.cinematicsActive=D},
isMiniplayerActive:function(){return _.qS().resolve(_.dL).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(D){return u0M.map(function(t){return D.find(function(H){var e;return(H==null?void 0:(e=H.engagementPanelSectionListRenderer)==null?void 0:e.targetId)===t})}).filter(function(t){return t!==void 0})},
getNonLearningJourneyEngagementPanels:function(D){return D.filter(function(t){var H;return!u0M.includes((t==null?void 0:(H=t.engagementPanelSectionListRenderer)==null?void 0:H.targetId)||"")})}}];var WEN;var zl=function(){var D=_.X.apply(this,arguments)||this;D.flexy=!0;D.learningJourney=!0;D.viewTransitionEnabled=_.r("enable_player_resize_transition");D.smallerChatMinHeight=_.r("live_chat_smaller_min_height");D.cinematicTheaterMode=_.r("web_cinematic_theater_mode");D.transparentTheaterMode=_.r("web_transparent_theater_mode");D.cinematicFullscreen=_.r("web_cinematic_fullscreen");D.cinematicFullscreenV2=_.r("web_cinematic_fullscreen_v2");D.isDarkTheme=document.documentElement.hasAttribute("dark");
D.theaterLargerPlayer=_.r("web_watch_theater_larger_player");D.defaultCollapsePlaylist=_.r("web_watch_default_collapse_playlist");D.enableCanvasLayout=_.r("web_enable_canvas_on_learning_journey");return D};
_.P(zl,_.X);_.q=zl.prototype;_.q.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.q.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.q.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.q.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.q.ready=function(){var D=this,t=function(){D.onColumnScroll()};
this.primary.addEventListener("scroll",t);this.secondary.addEventListener("scroll",t)};
_.q.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.q.updateIsTwoColumnsFromBinding=function(D){_.r("web_watch_update_narrow_width_killswitch")||_.b_().dispatch(_.SYY(!D.detail.value));this.ytdWatchBehavior.isTwoColumns_=D.detail.value};
_.q.updateFlexySmallWindowFromBinding=function(D){this.ytdWatchBehavior.flexySmallWindow_=D.detail.value};
_.q.updateFlexyLargeWindowFromBinding=function(D){this.ytdWatchBehavior.flexyLargeWindow_=D.detail.value};
_.q.updateWatchWhileWindowSizeSufficientFromBinding=function(D){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=D.detail.value};
_.q.updateWatchNextCanShowMoreFromBinding=function(D){this.ytdWatchBehavior.watchNextCanShowMore=D.detail.value};
_.q.updateShownItemsFromBinding=function(D){D.detail.path?this.set(D.detail.path,D.detail.value):this.ytdWatchBehavior.watchNextShownItems=D.detail.value};
_.q.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23161_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23161_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.ql.Object.defineProperties(zl.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.pageVisualEffects)return!1;for(var t=0;t<this.data.pageVisualEffects.length;t++)if(D=_.O(this.data.pageVisualEffects[t],_.tx))return t=void 0,(t=D.config)==null?void 0:t.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.learningJourneyEngagementPanels)==null?void 0:D.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var D,t=(D=this.learningJourneyEngagementPanels)==null?void 0:D.find(function(T){var c;return(T==null?void 0:(c=T.engagementPanelSectionListRenderer)==null?void 0:c.panelIdentifier)==="learning-journey-engagement-panel"});
if(t){var H,e,V,b,a,w,h,K,N;if(D=(K=((h=(a=((b=t==null?void 0:(H=t.engagementPanelSectionListRenderer)==null?void 0:(e=H.content)==null?void 0:(V=e.sectionListRenderer)==null?void 0:V.contents)!=null?b:[])[0])==null?void 0:(w=a.itemSectionRenderer)==null?void 0:w.contents)!=null?h:[])[0])==null?void 0:(N=K.accordionViewModel)==null?void 0:N.onTitleTap){var k=_.xP(D);if(k)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.$P.instance.resolveCommand(k)}}}}}}});
_.ql.Object.defineProperties(zl,{template:{configurable:!0,enumerable:!0,get:function(){if(WEN===void 0){var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);WEN=D}D=WEN;return D}}});
zl.prototype.updateMiniplayerIsActiveValue=zl.prototype.updateMiniplayerIsActiveValue;zl.prototype.updateScrollTopValue=zl.prototype.updateScrollTopValue;zl.prototype.updateFullscreenValue=zl.prototype.updateFullscreenValue;zl.prototype.updateTheaterValue=zl.prototype.updateTheaterValue;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],zl.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],zl.prototype,"ytComponentBehavior",void 0);
_.d([_.C(RHA.YtdLearningJourneyWatchBehavior),_.x("design:type",Object)],zl.prototype,"ytdWatchBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],zl.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],zl.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],zl.prototype,"playerData",void 0);_.d([_.M(),_.x("design:type",Object)],zl.prototype,"browseData",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zl.prototype,"flexy",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zl.prototype,"learningJourney",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zl.prototype,"viewTransitionEnabled",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zl.prototype,"smallerChatMinHeight",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zl.prototype,"cinematicTheaterMode",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zl.prototype,"transparentTheaterMode",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zl.prototype,"cinematicFullscreen",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zl.prototype,"cinematicFullscreenV2",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zl.prototype,"isDarkTheme",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],zl.prototype,"theaterLargerPlayer",void 0);_.d([_.M(),_.x("design:type",Object)],zl.prototype,"defaultCollapsePlaylist",void 0);_.d([_.M(),_.x("design:type",Object)],zl.prototype,"enableCanvasLayout",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("playerData","browseData","enableCanvasLayout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zl.prototype,"showBrowseResponse",null);
_.d([_.M({reflectToAttribute:!0}),_.m("playerData","enableCanvasLayout"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zl.prototype,"showWatchResponse",null);_.d([_.M({selector:_.li}),_.x("design:type",Object)],zl.prototype,"theaterValue",void 0);_.d([_.M({selector:_.vZ}),_.x("design:type",Object)],zl.prototype,"fullscreenValue",void 0);_.d([_.M({selector:_.Yt}),_.x("design:type",Object)],zl.prototype,"scrollTopValue",void 0);
_.d([_.M({selector:_.vH}),_.x("design:type",Object)],zl.prototype,"miniplayerIsActiveValue",void 0);_.d([_.o5("#ytd-plj-player"),_.x("design:type",HTMLElement)],zl.prototype,"ytdPlayer",void 0);_.d([_.o5("#playlist"),_.x("design:type",HTMLElement)],zl.prototype,"JSC$23161_ytdPlaylistPanelRenderer",void 0);_.d([_.pV("ytd-comments"),_.x("design:type",HTMLElement)],zl.prototype,"ytdComments",void 0);_.d([_.o5("#primary"),_.x("design:type",HTMLElement)],zl.prototype,"primary",void 0);
_.d([_.o5("#secondary"),_.x("design:type",HTMLElement)],zl.prototype,"secondary",void 0);_.d([_.o5("#player-container"),_.x("design:type",HTMLElement)],zl.prototype,"playerContainer",void 0);_.d([_.o5("#cinematics"),_.x("design:type",HTMLElement)],zl.prototype,"JSC$23161_cinematics",void 0);_.d([_.Os("theaterValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zl.prototype,"updateTheaterValue",null);
_.d([_.Os("fullscreenValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zl.prototype,"updateFullscreenValue",null);_.d([_.Os("scrollTopValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zl.prototype,"updateScrollTopValue",null);_.d([_.Os("miniplayerIsActiveValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zl.prototype,"updateMiniplayerIsActiveValue",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],zl.prototype,"cinematicLightTheme",null);_.d([_.M({reflectToAttribute:!0}),_.m("learningJourneyEngagementPanels"),_.x("design:type",Object),_.x("design:paramtypes",[])],zl.prototype,"hasLearningJourneyPanels",null);_.d([_.m("learningJourneyEngagementPanels"),_.x("design:type",Object),_.x("design:paramtypes",[])],zl.prototype,"backButtonData",null);_.d([_.Y({is:"ytd-watch-learning-journey"})],zl);_.gf.registerService(_.nJT,zl);
_.Je();
}catch(e){_._DumpException(e)}
try{
_.gV("Tm0L3c");
var fx7;var LEw;var Apl=function(){return _.X.apply(this,arguments)||this};
_.P(Apl,_.X);_.d([_.Y({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],Apl);
_.p(Apl,"ytd-ghost-comments-renderer",function(){if(LEw===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);LEw=D}D=LEw;return D},{mode:1});var gwM;var JpM=function(){return _.X.apply(this,arguments)||this};
_.P(JpM,_.X);_.d([_.Y({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],JpM);
_.p(JpM,"ytd-ghost-watch-metadata-renderer",function(){if(gwM===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);gwM=D}D=gwM;return D},{mode:1});var Bd=function(){var D=_.X.apply(this,arguments)||this;D.ghostGridRenderer={rows:6};D.smallerChatMinHeight=_.r("live_chat_smaller_min_height");D.cinematicTheaterMode=_.r("web_cinematic_theater_mode");D.transparentTheaterMode=_.r("web_transparent_theater_mode");D.darkerPanels=_.r("web_watch_darker_panels");D.cinematicFullscreen=_.r("web_cinematic_fullscreen");D.cinematicFullscreenV2=_.r("web_cinematic_fullscreen_v2");D.isDarkTheme=document.documentElement.hasAttribute("dark");return D};
_.P(Bd,_.X);_.q=Bd.prototype;_.q.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.q.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.q.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.q.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.q.ready=function(){var D=this,t=function(){D.onColumnScroll()};
this.primary.addEventListener("scroll",t);this.secondary.addEventListener("scroll",t)};
_.q.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.q.updateIsTwoColumnsFromBinding=function(D){this.ytdWatchBehavior.isTwoColumns_=D.detail.value};
_.q.updateFlexySmallWindowFromBinding=function(D){this.ytdWatchBehavior.flexySmallWindow_=D.detail.value};
_.q.updateFlexyLargeWindowFromBinding=function(D){this.ytdWatchBehavior.flexyLargeWindow_=D.detail.value};
_.q.updateWatchWhileWindowSizeSufficientFromBinding=function(D){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=D.detail.value};
_.q.updateWatchNextCanShowMoreFromBinding=function(D){this.ytdWatchBehavior.watchNextCanShowMore=D.detail.value};
_.q.updateShownItemsFromBinding=function(D){_.r("swatcheroo_direct_use_rich_grid")||(D.detail.path?this.set(D.detail.path,D.detail.value):this.ytdWatchBehavior.watchNextShownItems=D.detail.value)};
_.q.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23149_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23149_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.ql.Object.defineProperties(Bd.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.pageVisualEffects)return!1;for(var t=0;t<this.data.pageVisualEffects.length;t++)if(D=_.O(this.data.pageVisualEffects[t],_.tx))return t=void 0,(t=D.config)==null?void 0:t.enableInLightTheme;return!1}}});
Bd.prototype.updateMiniplayerIsActiveValue=Bd.prototype.updateMiniplayerIsActiveValue;Bd.prototype.updateScrollTopValue=Bd.prototype.updateScrollTopValue;Bd.prototype.updateFullscreenValue=Bd.prototype.updateFullscreenValue;Bd.prototype.updateTheaterValue=Bd.prototype.updateTheaterValue;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Bd.prototype,"ytComponentBehavior",void 0);
_.d([_.C(_.Spl.YtdWatchBehavior),_.x("design:type",Object)],Bd.prototype,"ytdWatchBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Bd.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Bd.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Bd.prototype,"ghostGridRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],Bd.prototype,"playerData",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Bd.prototype,"smallerChatMinHeight",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Bd.prototype,"cinematicTheaterMode",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Bd.prototype,"transparentTheaterMode",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Bd.prototype,"darkerPanels",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Bd.prototype,"cinematicFullscreen",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Bd.prototype,"cinematicFullscreenV2",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Bd.prototype,"isDarkTheme",void 0);_.d([_.M({selector:_.li}),_.x("design:type",Object)],Bd.prototype,"theaterValue",void 0);_.d([_.M({selector:_.vZ}),_.x("design:type",Object)],Bd.prototype,"fullscreenValue",void 0);_.d([_.M({selector:_.Yt}),_.x("design:type",Object)],Bd.prototype,"scrollTopValue",void 0);
_.d([_.M({selector:_.vH}),_.x("design:type",Object)],Bd.prototype,"miniplayerIsActiveValue",void 0);_.d([_.o5("#ytd-player"),_.x("design:type",HTMLElement)],Bd.prototype,"ytdPlayer",void 0);_.d([_.o5("#playlist"),_.x("design:type",HTMLElement)],Bd.prototype,"JSC$23149_ytdPlaylistPanelRenderer",void 0);_.d([_.o5("#ytd-comments"),_.x("design:type",HTMLElement)],Bd.prototype,"ytdComments",void 0);_.d([_.o5("#primary"),_.x("design:type",HTMLElement)],Bd.prototype,"primary",void 0);
_.d([_.o5("#secondary"),_.x("design:type",HTMLElement)],Bd.prototype,"secondary",void 0);_.d([_.o5("#player-container"),_.x("design:type",HTMLElement)],Bd.prototype,"playerContainer",void 0);_.d([_.o5("#cinematics"),_.x("design:type",HTMLElement)],Bd.prototype,"JSC$23149_cinematics",void 0);_.d([_.Os("theaterValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bd.prototype,"updateTheaterValue",null);
_.d([_.Os("fullscreenValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bd.prototype,"updateFullscreenValue",null);_.d([_.Os("scrollTopValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bd.prototype,"updateScrollTopValue",null);_.d([_.Os("miniplayerIsActiveValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bd.prototype,"updateMiniplayerIsActiveValue",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Bd.prototype,"cinematicLightTheme",null);
_.p(Bd,"ytd-watch-grid",function(){if(fx7===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);fx7=D}D=fx7;return D},{mode:2});_.gf.registerService(_.PnV,Bd);
_.Je();
}catch(e){_._DumpException(e)}
try{
_.gV("CF909");
var X$h;var yE=function(){var D=_.X.apply(this,arguments)||this;D.viewTransitionEnabled=_.r("enable_player_resize_transition");D.smallerChatMinHeight=_.r("live_chat_smaller_min_height");D.cinematicTheaterMode=_.r("web_cinematic_theater_mode");D.transparentTheaterMode=_.r("web_transparent_theater_mode");D.cinematicFullscreen=_.r("web_cinematic_fullscreen");D.isDarkTheme=document.documentElement.hasAttribute("dark");D.defaultCollapsePlaylist=_.r("web_watch_default_collapse_playlist");D.retroModeReduxValue=
!1;D.persistentPanelVisibleValue=!1;return D};
_.P(yE,_.X);_.q=yE.prototype;_.q.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.q.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.q.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.q.updateRetroModeReduxValue=function(){_.r("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.q.updatePersistentPanelVisibleValue=function(){_.r("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.q.ready=function(){var D=this,t=function(){D.onColumnScroll()};
this.primary.addEventListener("scroll",t);this.secondary.addEventListener("scroll",t)};
_.q.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.q.updateIsTwoColumnsFromBinding=function(D){_.r("web_watch_update_narrow_width_killswitch")||_.b_().dispatch(_.SYY(!D.detail.value));this.ytdWatchBehavior.isTwoColumns_=D.detail.value};
_.q.updateFlexySmallWindowFromBinding=function(D){this.ytdWatchBehavior.flexySmallWindow_=D.detail.value};
_.q.updateFlexyLargeWindowFromBinding=function(D){this.ytdWatchBehavior.flexyLargeWindow_=D.detail.value};
_.q.updateWatchWhileWindowSizeSufficientFromBinding=function(D){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=D.detail.value};
_.q.updateWatchNextCanShowMoreFromBinding=function(D){this.ytdWatchBehavior.watchNextCanShowMore=D.detail.value};
_.q.updateShownItemsFromBinding=function(D){D.detail.path?this.set(D.detail.path,D.detail.value):this.ytdWatchBehavior.watchNextShownItems=D.detail.value};
_.q.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23144_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23144_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary;case "PERSISTENT_PANEL_CONTAINER":return this.persistentPanelContainer}};
_.ql.Object.defineProperties(yE.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.pageVisualEffects)return!1;for(var t=0;t<this.data.pageVisualEffects.length;t++)if(D=_.O(this.data.pageVisualEffects[t],_.tx))return t=void 0,(t=D.config)==null?void 0:t.enableInLightTheme;return!1}}});
_.ql.Object.defineProperties(yE,{template:{configurable:!0,enumerable:!0,get:function(){if(X$h===void 0){var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\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 id="persistent-panel-container" class="style-scope ytd-watch-flexy"></div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);X$h=D}D=X$h;return D}}});
yE.prototype.updatePersistentPanelVisibleValue=yE.prototype.updatePersistentPanelVisibleValue;yE.prototype.updateRetroModeReduxValue=yE.prototype.updateRetroModeReduxValue;yE.prototype.updateScrollTopValue=yE.prototype.updateScrollTopValue;yE.prototype.updateFullscreenValue=yE.prototype.updateFullscreenValue;yE.prototype.updateTheaterValue=yE.prototype.updateTheaterValue;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],yE.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.Spl.YtdWatchBehavior),_.x("design:type",Object)],yE.prototype,"ytdWatchBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],yE.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],yE.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],yE.prototype,"playerData",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yE.prototype,"viewTransitionEnabled",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yE.prototype,"smallerChatMinHeight",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yE.prototype,"cinematicTheaterMode",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yE.prototype,"transparentTheaterMode",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yE.prototype,"cinematicFullscreen",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yE.prototype,"isDarkTheme",void 0);_.d([_.M(),_.x("design:type",Object)],yE.prototype,"defaultCollapsePlaylist",void 0);_.d([_.M({selector:_.li}),_.x("design:type",Object)],yE.prototype,"theaterValue",void 0);_.d([_.M({selector:_.vZ}),_.x("design:type",Object)],yE.prototype,"fullscreenValue",void 0);
_.d([_.M({selector:_.Yt}),_.x("design:type",Object)],yE.prototype,"scrollTopValue",void 0);_.d([_.M({selector:_.vH}),_.x("design:type",Object)],yE.prototype,"miniplayerIsActive",void 0);_.d([_.M({selector:function(D){return D.watch.isWatchRetroMode}}),
_.x("design:type",Object)],yE.prototype,"retroModeReduxValue",void 0);_.d([_.M({selector:_.uO.persistentPanelVisibleSelector}),_.x("design:type",Object)],yE.prototype,"persistentPanelVisibleValue",void 0);_.d([_.pV("ytd-player"),_.x("design:type",HTMLElement)],yE.prototype,"ytdPlayer",void 0);_.d([_.o5("#playlist"),_.x("design:type",HTMLElement)],yE.prototype,"JSC$23144_ytdPlaylistPanelRenderer",void 0);_.d([_.pV("ytd-comments"),_.x("design:type",HTMLElement)],yE.prototype,"ytdComments",void 0);
_.d([_.o5("#primary"),_.x("design:type",HTMLElement)],yE.prototype,"primary",void 0);_.d([_.o5("#secondary"),_.x("design:type",HTMLElement)],yE.prototype,"secondary",void 0);_.d([_.o5("#player-container"),_.x("design:type",HTMLElement)],yE.prototype,"playerContainer",void 0);_.d([_.o5("#below"),_.x("design:type",HTMLElement)],yE.prototype,"below",void 0);_.d([_.o5("#cinematics"),_.x("design:type",HTMLElement)],yE.prototype,"JSC$23144_cinematics",void 0);
_.d([_.o5("#persistent-panel-container"),_.x("design:type",HTMLElement)],yE.prototype,"persistentPanelContainer",void 0);_.d([_.Os("theaterValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yE.prototype,"updateTheaterValue",null);_.d([_.Os("fullscreenValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yE.prototype,"updateFullscreenValue",null);
_.d([_.Os("scrollTopValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yE.prototype,"updateScrollTopValue",null);_.d([_.Os("retroModeReduxValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yE.prototype,"updateRetroModeReduxValue",null);_.d([_.Os("persistentPanelVisibleValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yE.prototype,"updatePersistentPanelVisibleValue",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],yE.prototype,"cinematicLightTheme",null);_.d([_.Y({is:"ytd-watch-flexy"})],yE);_.gf.registerService(_.oJV,yE);
_.Je();
}catch(e){_._DumpException(e)}
try{
_.gV("nmfa2d");
var RXw;var vd=function(){var D=_.X.apply(this,arguments)||this;D.hidden=!1;D.errorScreen=null;D.playlistData={};return D};
_.P(vd,_.X);_.q=vd.prototype;_.q.getPlayer=function(){return this.ytdPlayer};
_.q.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:_.jl(["aa","eocs"])}}};
_.q.onActiveChanged=function(){_.b_().dispatch(_.UOA(this.ytPageBehavior.active))};
_.q.playerDataChanged=function(){var D;(D=this.watchController)==null||D.setPlayerResponse(this.playerData)};
_.q.dataChanged=function(){var D;(D=this.watchController)==null||D.setWatchNextResponse(this.data)};
_.q.sizeChanged=function(){var D,t;(t=(D=this.metadata).resize)==null||t.call(D)};
_.q.attached=function(){this.watchController=new _.YF(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.q.detached=function(){_.qc(this.watchController);this.watchController=void 0};
_.q.getPlayerContainer=function(){return this.playerContainer};
_.q.getElement=function(D){switch(D){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.q.provideRenderingData=function(D,t){switch(D){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=t;break;case "ERROR_SCREEN":this.errorScreen=t!=null?t:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=t;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=t;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=t;break;case "RICH_METADATA":this.richMetadataRowContainer=t;break;case "CLARIFICATION":this.clarificationData=t;break;case "PLAYLIST":this.playlistData=
t!=null?t:{};break;case "MERCH_SHELF":this.merchShelf=t;break;case "TICKET_SHELF":this.ticketShelf=t;break;case "LIMITED_STATE":this.limitedState=t;break;case "DONATION_SHELF":this.donationShelf=t;break;case "ALERTS":this.alerts=t}};
_.ql.Object.defineProperties(vd.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return!this.hidden&&!!((D=this.data)==null?0:(t=D.contents)==null?0:(H=t.twoColumnWatchNextResults)==null?0:H.conversationBar)}}});
vd.prototype.sizeChanged=vd.prototype.sizeChanged;vd.prototype.dataChanged=vd.prototype.dataChanged;vd.prototype.playerDataChanged=vd.prototype.playerDataChanged;vd.prototype.onActiveChanged=vd.prototype.onActiveChanged;_.d([_.C(_.bn.YtPageBehavior),_.x("design:type",Object)],vd.prototype,"ytPageBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],vd.prototype,"ytComponentBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],vd.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],vd.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],vd.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],vd.prototype,"playerData",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],vd.prototype,"hidden",void 0);_.d([_.o5("#ytd-player"),_.x("design:type",HTMLElement)],vd.prototype,"ytdPlayer",void 0);_.d([_.o5("#player-container"),_.x("design:type",HTMLElement)],vd.prototype,"playerContainer",void 0);_.d([_.o5("#metadata"),_.x("design:type",Object)],vd.prototype,"metadata",void 0);_.d([_.o5("#playlist"),_.x("design:type",HTMLElement)],vd.prototype,"playlistPanel",void 0);
_.d([_.M({selector:_.XtM,reflectToAttribute:!0}),_.x("design:type",Object)],vd.prototype,"fixie",void 0);_.d([_.M({selector:_.SF1,reflectToAttribute:!0}),_.x("design:type",Object)],vd.prototype,"singleColumn",void 0);_.d([_.M({selector:function(D){return _.li(D)&&!_.vZ(D)},
reflectToAttribute:!0}),_.x("design:type",Object)],vd.prototype,"theater",void 0);_.d([_.M({selector:_.vZ,reflectToAttribute:!0}),_.x("design:type",Object)],vd.prototype,"fullscreen",void 0);_.d([_.M({selector:_.iXd}),_.x("design:type",Object)],vd.prototype,"windowSize",void 0);_.d([_.M(),_.x("design:type",Object)],vd.prototype,"singleColumnContents",void 0);_.d([_.M(),_.x("design:type",Object)],vd.prototype,"errorScreen",void 0);_.d([_.M(),_.x("design:type",Object)],vd.prototype,"playlistData",void 0);
_.d([_.M(),_.x("design:type",Object)],vd.prototype,"videoPrimaryInfoRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],vd.prototype,"videoSecondaryInfoRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],vd.prototype,"richMetadataRowContainer",void 0);_.d([_.M(),_.x("design:type",Object)],vd.prototype,"clarificationData",void 0);_.d([_.M(),_.x("design:type",Object)],vd.prototype,"commentsEntryPointHeaderRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],vd.prototype,"ticketShelf",void 0);
_.d([_.M(),_.x("design:type",Object)],vd.prototype,"merchShelf",void 0);_.d([_.M(),_.x("design:type",Object)],vd.prototype,"donationShelf",void 0);_.d([_.M(),_.x("design:type",Object)],vd.prototype,"limitedState",void 0);_.d([_.M(),_.x("design:type",Object)],vd.prototype,"alerts",void 0);_.d([_.m("playlistData"),_.x("design:type",Object),_.x("design:paramtypes",[])],vd.prototype,"hasPlaylistData",null);
_.d([_.m("data","hidden"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],vd.prototype,"hasChat",null);_.d([_.Os("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vd.prototype,"onActiveChanged",null);_.d([_.Os("playerData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vd.prototype,"playerDataChanged",null);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vd.prototype,"dataChanged",null);_.d([_.Os("windowSize","singleColumn"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vd.prototype,"sizeChanged",null);
_.p(vd,"ytd-watch-fixie",function(){if(RXw===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);RXw=D}D=RXw;return D},{mode:1});_.gf.registerService(_.URk,vd);
_.Je();
}catch(e){_._DumpException(e)}
try{
_.gV("xwEKAe");
var jBA=function(D){return _.H$(D)?D.getAttribute("jsname")==="coFSxe":!1},$wl=function(D,t){t.id||(t.id="ow"+_.I$(t));
D.setAttribute("jsowner",t.id);D.__owner=t;var H=_.xz(t,jBA);H&&(_.WEw.has(H)||_.WEw.set(H,[]),_.WEw.get(H).push(D));(H=_.u0Q.get(t))||_.u0Q.set(t,H=[]);H.includes(D)||H.push(D);t.setAttribute("__IS_OWNER",!0)},iQh=function(){var D=_.f43(1);
D=_.Vt(D,_.l4A);if(!(_.XeA(D)||D[_.K$A]&&!D.__hasBeenSet))return D.value},r3U=function(D){var t=_.Ph();
if(t.getFlag(202))t=t.getFlag(201);else{var H;t=(D==null?void 0:(H=D.config)==null?void 0:H.settingOnByDefault)!==void 0?D.config.settingOnByDefault:!_.r("web_shorts_cinematics_disabled_by_default")}return t},OQE=function(D){var t=_.Ph();
_.nl(0,201,D);_.nl(0,202,!0);t.save()},UwF=function(D){return(D=_.IbK(D))?_.yaA(D):0},ovM=function(D){return D.shorts.isSmallScreenSqueezeback},PaM=function(D){return D.shorts.isPlaybackStarted},mww=function(D){var t=_.f43(2),H=new Set;
_.Sj(function(){return void H.forEach(function(e){return void e()})});
return function(e){var V=_.ej(t);try{var b=nvh(CaM(D),e);H.add(b);return function(){b();H.delete(b)}}finally{_.ej(V)}}},MfN=function(D){var t=D.children;
var H=D.root;_.SG(function(){var e=mww(H)(t);_.Sj(e)});
return document.createTextNode("")},nvh=function(D,t){var H=SmU(D);
(D=iQh())&&$wl(H,D);_.E4.setUp();t=_.F(_.Jl$(t,!0));D=t.next().value;var e=t.next().value;t=_.F(D);for(D=t.next();!D.done;D=t.next())H.appendChild(D.value);_.E4.log(H);_.E4.tearDown();return function(){e();H.remove()}},CaM=function(D){if(typeof D==="string")return D=document.querySelector(D),_.s4e(D),D;
if(_.w1(D)&&D.nodeType===Node.ELEMENT_NODE)return D;if(!D.__value&&!D.__optional){var t=_.kfD.USE_ELEMENT_NOT_ASSIGNED(D.__expectedTagName);D.__hasErrored=!0;throw t;}return D.value},SmU=function(D){var t=document.createElementNS(D.namespaceURI,D.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return D.appendChild(t)},X9M=function(D,t,H,e){D=t-D;
H=e-H;return Math.sqrt(D*D+H*H)},ffM=function(D,t){D&&_.qS().resolve(_.aA).resolveCommand(D,{forceClickLogging:!0,
form:{element:t}})},LnN=function(D,t,H,e){D=t-D;
H=e-H;return Math.sqrt(D*D+H*H)},A3l=function(D,t){D&&_.qS().resolve(_.aA).resolveCommand(D,{forceClickLogging:!0,
form:{element:t}})},gvY=function(){return _.qS().resolve(_.uS).dismissedIndices},J3A=function(D,t){var H,e,V,b,a,w,h,K,N;
return _.Z(function(k){if(k.nextAddress==1){H=_.qS().resolve(_.OeH);b=(e=H)==null?void 0:(V=e.reelWatchEndpointMap)==null?void 0:V.reelWatchSequence;w=(a=D.innertubeTransportService)!=null?a:_.qS().resolve(_.xg);if(!b)return k.jumpTo(2);h=b();return(K=h.JSC$13118_getRequest(t,{}))?k.yield(_.sK(w,K.innerTubeRequest,K.input,t.clickTrackingParams,K.config),4):k.jumpTo(2)}return k.nextAddress!=2?(N=k.yieldResult,k.return(N)):k.return(void 0)})},YmE=function(D){return _.hV({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:D}})},lfh=function(D){return _.hV({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:D}})},vvA=function(D){return _.hV({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:D}})};var rD=function(D,t){if(D instanceof rD)this.array_=D.array_;else{var H;if(H=_.d6(D))a:{for(var e=H=0;e<D.length;e++){if(!_.d6(D[e])||H>0&&D[e].length!=H){H=!1;break a}for(var V=0;V<D[e].length;V++)if(typeof D[e][V]!=="number"){H=!1;break a}H==0&&(H=D[e].length)}H=H!=0}if(H)this.array_=_.pK(D);else if(D instanceof _.O5)this.array_=p9M(D.height,D.width);else if(typeof D==="number"&&typeof t==="number"&&D>0&&t>0)this.array_=p9M(D,t);else throw Error("Jo");}this.size_=new _.O5(this.array_[0].length,
this.array_.length)},dwM=function(D,t,H){for(var e=0;e<D.getSize().height;e++)for(var V=0;V<D.getSize().width;V++)t.call(H,D.array_[e][V],e,V,D)},xwh=function(D,t){var H=new rD(D.getSize());
dwM(D,function(e,V,b){H.array_[V][b]=t.call(void 0,e,V,b,D)});
return H},p9M=function(D,t){for(var H=[],e=0;e<D;e++){H[e]=[];
for(var V=0;V<t;V++)H[e][V]=0}return H};
rD.prototype.add=function(D){if(!_.uXF(this.size_,D.getSize()))throw Error("Ko");return xwh(this,function(t,H,e){return t+D.array_[H][e]})};
rD.prototype.equals=function(D,t){if(this.size_.width!=D.size_.width||this.size_.height!=D.size_.height)return!1;t=t||0;for(var H=0;H<this.size_.height;H++)for(var e=0;e<this.size_.width;e++)if(!_.RRw(this.array_[H][e],D.array_[H][e],t))return!1;return!0};
rD.prototype.getSize=function(){return this.size_};
var OZ=function(D,t,H){return t>=0&&t<D.size_.height&&H>=0&&H<D.size_.width?D.array_[t][H]:null};
rD.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var RnA=function(D,t,H,e){if(!(t>=0&&t<D.size_.height&&H>=0&&H<D.size_.width))throw Error("Lo`"+t+"`"+H+"`"+D.size_.height+"`"+D.size_.width);D.array_[t][H]=e};
rD.prototype.multiply=function(D){if(D instanceof rD){if(this.size_.width!=D.getSize().height)throw Error("Mo");return u6d(this,D)}if(typeof D==="number")return WnY(this,D);throw Error("No");};
var u6d=function(D,t){var H=new rD(D.size_.height,t.getSize().width);dwM(H,function(e,V,b){for(var a=e=0;a<this.size_.width;a++)e+=OZ(this,V,a)*OZ(t,a,b);RnA(H,V,b,e)},D);
return H},WnY=function(D,t){return xwh(D,function(H){return H*t})};var IfM=new _.NM("inlineSurveyRenderer");var QBw=new _.NM("interstitialViewModel");var y3w=new _.NM("reelNavigateCommand");var BoM=new _.NM("reelNonVideoContentDismissalCommand");var znM=new _.NM("showReelsCommentsOverlayCommand");var DHM=new _.NM("shortsSuggestedActionViewModel");var tbU=new _.NM("videoInteractionPopUpRenderer");var HeM;var eg1;var Vb7;var UZ=function(){var D=_.X.apply(this,arguments)||this;D.ctaVisualElement=null;D.currentCsn=null;return D};
_.P(UZ,_.X);_.q=UZ.prototype;_.q.onDataChanged=function(){this.maybeLogShows()};
_.q.computeButtonShape=function(){var D=this;if(this.data)return{buttonText:_.eo(this.data.text),state:"active",onTap:function(){D.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.q.maybeCreateCtaVe=function(){var D;if((D=this.data)!=null&&D.badgeInteractionLogging){var t;if(D=(t=this.data.badgeInteractionLogging)==null?void 0:t.trackingParams)this.ctaVisualElement=_.Sa(D)}};
_.q.maybeLogClicks=function(){this.currentCsn=_.v3(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.tV(this.currentCsn,this.ctaVisualElement)};
_.q.maybeLogShows=function(){this.currentCsn=_.v3(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.zf(this.currentCsn,[this.ctaVisualElement])};
_.q.onTap=function(){var D;if((D=this.data)!=null&&D.onClickCommand){var t;this.ytComponentBehavior.resolveCommand((t=this.data)==null?void 0:t.onClickCommand);this.maybeLogClicks()}};
UZ.prototype.onDataChanged=UZ.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],UZ.prototype,"ytComponentBehavior",void 0);_.d([_.M({}),_.x("design:type",Object)],UZ.prototype,"data",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],UZ.prototype,"onDataChanged",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],UZ);
_.p(UZ,"ytd-shopping-overlay-badge-renderer",function(){if(Vb7!==void 0)return Vb7;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Vb7=D},{mode:1});_.hB(_.G7b,"reel-sound-metadata-view-model",{props:{data:_.wm,overlayDensity:_.wm}});_.hB(_.hev,"player-disclosure-view-model",{props:{data:_.ij,extractOverlay:_.ij}});_.hB(_.dUo,"pivot-button-view-model",{props:{data:_.wm,className:_.wm}});_.hB(_.xUV,"reel-action-bar-view-model",{props:{data:_.ij,buttonShapeOverrideables:_.ij}});_.hB(_.l(function(D){function t(){var ZV,ED,o$,jV,i8=(ED=_.O((ZV=Q())==null?void 0:ZV.command,_.lq))==null?void 0:(o$=ED.item)==null?void 0:(jV=o$.notificationTextRenderer)==null?void 0:jV.successResponseText;if(i8)_.ET(e.value,"yt-open-popup-action",[_.FO(i8),e.value]);else if(u())ffM(u(),U.value);else{var g6;ffM((g6=Q())==null?void 0:g6.command,U.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var H=D.data;var e=_.DY("yt-player-overlay-video-interactions");D=_.F(_.KR("0px",void 0,"O3ow6c"));var V=D.next().value,b=D.next().value;D=_.F(_.KR("0px",void 0,"V0TSYd"));var a=D.next().value,w=D.next().value;D=_.F(_.KR(0,void 0,"ipRdDf"));var h=D.next().value,K=D.next().value;D=_.F(_.KR(0,void 0,"ztYEKb"));var N=D.next().value,k=D.next().value,T=function(){var ZV;if(((ZV=_.Tm())==null?void 0:ZV.getPlayerState())!==-1){e.value.style.display="inherit";var ED;(ED=_.Tm())==null||ED.removeEventListener("onStateChange",
T)}c()},c=function(){var ZV=document.querySelector("video");
if(ZV){K(ZV.getBoundingClientRect().width);k(ZV.getBoundingClientRect().height);var ED;b((ZV==null?void 0:(ED=ZV.style)==null?void 0:ED.left)||"0px");var o$;w((ZV==null?void 0:(o$=ZV.style)==null?void 0:o$.top)||"0px")}};
_.Mp(function(){var ZV,ED,o$;if(((ZV=_.Tm())==null?void 0:ZV.getPlayerState())===-1&&Math.round(((o$=(ED=_.Tm())==null?void 0:ED.getVideoAspectRatio())!=null?o$:0)*100)!==Math.round(h()/N()*100)){e.value.style.display="none";var jV,i8;k(h()/((i8=(jV=_.Tm())==null?void 0:jV.getVideoAspectRatio())!=null?i8:1))}},"ikzYW");
_.SG(function(){var ZV;(ZV=_.Tm())==null||ZV.addEventListener("onStateChange",T);window.addEventListener("resize",c);c();var ED,o$,jV;if((jV=(ED=H())==null?void 0:(o$=ED.regions)==null?void 0:o$[0])==null||!jV.transformationMatrix)throw Error("Ro");var i8;if((i8=H())==null?0:i8.trackingParams){var g6;_.Pc().graftServerVe((g6=H().trackingParams)!=null?g6:"")}_.Sj(function(){var Mu;(Mu=_.Tm())==null||Mu.removeEventListener("onStateChange",T);window.removeEventListener("resize",c)})});
var U=_.DY("svg"),S=_.F(_.KR(!1,void 0,"Thzfnf"));D=S.next().value;var L=S.next().value,J=_.F(_.KR(!1,void 0,"nsniPd"));S=J.next().value;var g=J.next().value,Q=function(){var ZV;return _.O((ZV=H())==null?void 0:ZV.popUp,tbU)},u=function(){var ZV;
return(ZV=H())==null?void 0:ZV.command},R=function(){return _.O(u(),_.Cf)!==void 0};
J=_.$X(function(){t();return!1});
var I={},tT={};return _.G("yt-player-overlay-video-interactions",{el:e},_.G("svg",{"on:mouseover":_.$X(function(){R()&&L(!0);g(!0);return!1}),
"on:mouseout":_.$X(function(){L(!1);g(!1);return!1}),
"on:keydown":_.$X(function(ZV){ZV.key==="Enter"&&t();return!1}),
"on:focus":_.$X(function(){R()&&L(!0);return!1}),
"on:blur":_.$X(function(){R()&&L(!1);return!1}),
el:U,tabindex:0,"aria-label":function(){var ZV;return(ZV=H())==null?void 0:ZV.a11yString},
id:"player-overlay-video-interaction-svg",class:_.jQ("ytPlayerOverlayVideoInteractionsInteractionsSvg",(I.ytPlayerOverlayVideoInteractionsInteractionsSvgHover=D,I),(tT.ytPlayerOverlayVideoInteractionsInteractionsSvgHideOutline=S,tT)),role:"button",style:function(){var ZV,ED,o$,jV=(o$=(ZV=H())==null?void 0:(ED=ZV.regions)==null?void 0:ED[0].transformationMatrix)!=null?o$:[];ZV=h();ED=N();o$=[];for(var i8=0,g6=-1;i8<jV.length;i8++)i8%3===0&&(g6++,o$[g6]=[]),o$[g6].push(jV[i8]);jV=new rD(o$);o$=new rD([[0,
1,1,0],[0,0,1,1],[1,1,1,1]]);o$=jV.multiply(o$);jV=new rD([[0,0],[0,0],[0,0],[0,0]]);for(i8=0;i8<o$.getSize().width;i8++){g6=OZ(o$,0,i8);var Mu=OZ(o$,1,i8);if(g6===null||Mu===null)throw Error("Qo`"+(i8+1).toString());RnA(jV,i8,0,g6*ZV);RnA(jV,i8,1,Mu*ED)}ZV=OZ(jV,0,0);i8=OZ(jV,1,0);ED=OZ(jV,0,1);g6=OZ(jV,1,1);if(ZV===null||i8===null||ED===null||g6===null)throw Error("Oo");o$=X9M(ZV,i8,ED,g6);Mu=OZ(jV,3,0);jV=OZ(jV,3,1);if(Mu===null||jV===null)throw Error("Po");jV=X9M(ZV,Mu,ED,jV);g6=(Number((g6*-1).toFixed(2))-
Number((ED*-1).toFixed(2)))/(Number(i8.toFixed(2))-Number(ZV.toFixed(2)));Mu=Math.atan(g6)*180/Math.PI;i8=g6===Number.POSITIVE_INFINITY?-90:g6===Number.NEGATIVE_INFINITY?90:Object.is(g6,-0)?180:g6===0?0:g6>0?Mu*-1:ZV<i8?Mu*-1:Math.abs(Mu)+180;return"left:calc("+ZV+"px + "+V()+"); top:calc("+(ED+"px + "+a()+"); width:")+(o$+"px; height:")+(jV+"px; transform:rotate(")+(i8+"deg);")},
"on:click":J}))},"Yl"),"yt-player-overlay-video-interactions",{props:{data:_.ij}});_.hB(_.kpH,"yt-reel-metapanel-view-model",{props:{data:_.ij,overlayDensity:_.ij,extractOverlay:_.ij}});var bew=_.l(function(D){var t=D.children;var H=D.region;D=_.F(_.KR(void 0,void 0,"MsSyte"));var e=D.next().value,V=D.next().value;D=_.F(_.KR("0px",void 0,"U9Yihd"));var b=D.next().value,a=D.next().value;D=_.F(_.KR("0px",void 0,"UO1H6d"));var w=D.next().value,h=D.next().value;D=_.F(_.KR(0,void 0,"sMVTKb"));var K=D.next().value,N=D.next().value;D=_.F(_.KR(0,void 0,"kZZV8b"));var k=D.next().value,T=D.next().value,c=function(){var Q=e();if(Q){var u;if(((u=_.Tm())==null?void 0:u.getPlayerState())!==-1){Q.style.display=
"inherit";var R;(R=_.Tm())==null||R.removeEventListener("onStateChange",c)}S()}},U=function(){var Q=document.querySelectorAll("video");
return Array.from(Q).find(function(u){var R;return u==null?void 0:(R=u.style)==null?void 0:R.width})},S=function(){var Q=U();
if(Q){N(Q.getBoundingClientRect().width);T(Q.getBoundingClientRect().height);var u;a((Q==null?void 0:(u=Q.style)==null?void 0:u.left)||"0px");var R;h((Q==null?void 0:(R=Q.style)==null?void 0:R.top)||"0px")}};
_.Mp(function(){var Q=e();if(Q){var u,R,I;if(((u=_.Tm())==null?void 0:u.getPlayerState())===-1&&Math.round(((I=(R=_.Tm())==null?void 0:R.getVideoAspectRatio())!=null?I:0)*100)!==Math.round(K()/k()*100)){Q.style.display="none";var tT,ZV;T(K()/((ZV=(tT=_.Tm())==null?void 0:tT.getVideoAspectRatio())!=null?ZV:1))}}},"jJLfwe");
var L=function(){S()},J;
_.SG(function(){S();var Q;if(!(H==null?0:(Q=H())==null?0:Q.transformationMatrix))throw Error("Ro");var u;(u=_.Tm())==null||u.addEventListener("onStateChange",c);if(window.ResizeObserver){if(Q=U())J=new ResizeObserver(L),J.observe(Q)}else window.addEventListener("resize",S);_.Sj(function(){var R;(R=_.Tm())==null||R.removeEventListener("onStateChange",c);J?J.disconnect():window.removeEventListener("resize",S)})});
var g=function(){var Q,u,R=(u=H==null?void 0:(Q=H())==null?void 0:Q.transformationMatrix)!=null?u:[];Q=K();u=k();for(var I=[],tT=0,ZV=-1;tT<R.length;tT++)tT%3===0&&(ZV++,I[ZV]=[]),I[ZV].push(R[tT]);R=new rD(I);I=new rD([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);I=R.multiply(I);R=new rD([[0,0],[0,0],[0,0],[0,0]]);for(tT=0;tT<I.getSize().width;tT++){ZV=OZ(I,0,tT);var ED=OZ(I,1,tT);if(ZV===null||ED===null)throw Error("Qo`"+(tT+1).toString());RnA(R,tT,0,ZV*Q);RnA(R,tT,1,ED*u)}Q=OZ(R,0,0);tT=OZ(R,1,0);u=OZ(R,0,
1);ZV=OZ(R,1,1);if(Q===null||tT===null||u===null||ZV===null)throw Error("Oo");I=LnN(Q,tT,u,ZV);ED=OZ(R,3,0);R=OZ(R,3,1);if(ED===null||R===null)throw Error("Po");R=LnN(Q,ED,u,R);ZV=(Number((ZV*-1).toFixed(2))-Number((u*-1).toFixed(2)))/(Number(tT.toFixed(2))-Number(Q.toFixed(2)));ED=Math.atan(ZV)*180/Math.PI;tT=ZV===Number.POSITIVE_INFINITY?-90:ZV===Number.NEGATIVE_INFINITY?90:Object.is(ZV,-0)?180:ZV===0?0:ZV>0?ED*-1:Q<tT?ED*-1:Math.abs(ED)+180;return"left:calc("+Q+"px + "+b()+"); top:calc("+(u+"px + "+
w()+"); width:")+(I+"px; height:")+(R+"px; transform:rotate(")+(tT+"deg);")};
return _.G(MfN,{root:"#sticker-layer"},function(){return _.G("yt-overlay-sticker",{el:_.FI(V),style:g,class:"ytOverlayStickerHost"},t)})},"$l");var qFN=_.l(function(D){function t(){var c,U,S,L,J=(U=_.O((c=h())==null?void 0:c.command,_.lq))==null?void 0:(S=U.item)==null?void 0:(L=S.notificationTextRenderer)==null?void 0:L.successResponseText;if(J)_.ET(e.value,"yt-open-popup-action",[_.FO(J),e.value]);else if(K())A3l(K(),e.value);else{var g;A3l((g=h())==null?void 0:g.command,e.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var H=D.data;var e=_.DY("svg"),V=_.F(_.KR(!1,void 0,"i4BL1"));D=V.next().value;var b=V.next().value,a=_.F(_.KR(!1,void 0,"FzRJKd"));V=a.next().value;var w=a.next().value,h=function(){var c;return _.O((c=H())==null?void 0:c.popUp,tbU)},K=function(){var c;
return(c=H())==null?void 0:c.command},N=function(){return _.O(K(),_.Cf)!==void 0};
a=_.$X(function(){t();return!1});
var k={},T={};return _.G("svg",{"on:mouseover":_.$X(function(){N()&&b(!0);w(!0);return!1}),
"on:mouseout":_.$X(function(){b(!1);w(!1);return!1}),
"on:keydown":_.$X(function(c){c.key==="Enter"&&t();return!1}),
"on:focus":_.$X(function(){N()&&b(!0);return!1}),
"on:blur":_.$X(function(){N()&&b(!1);return!1}),
el:e,tabindex:0,"aria-label":function(){var c;return(c=H())==null?void 0:c.a11yString},
id:"player-overlay-video-interaction-svg",class:_.jQ("ytPlayerOverlayInteractionInteractionsSvg",(k.ytPlayerOverlayInteractionInteractionsSvgHover=D,k),(T.ytPlayerOverlayInteractionInteractionsSvgHideOutline=V,T)),role:"button","on:click":a})},"bm");_.hB(_.l(function(D){var t=D.data;_.SG(function(){var H;if((H=t())==null?0:H.trackingParams){var e;_.Pc().graftServerVe((e=t().trackingParams)!=null?e:"")}});
return _.G("yt-player-overlay-interaction",null,_.G(bew,{region:function(){var H,e;return(H=t())==null?void 0:(e=H.regions)==null?void 0:e[0]}},_.G(qFN,Object.assign({},D))))},"am"),"yt-player-overlay-interaction",{props:{data:_.ij}});var oU=function(){var D=_.X.apply(this,arguments)||this;D.showScrubber=!1;D.isWatchWhileMode=!1;D.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");D.enableNewStickers=_.r("use_shorts_sticker_overlay_web");D.anchoredPanelActive=!1;D.enableLivingroomLayout=_.r("reels_enable_livingroom_layout");D.enablePlayerMetadataContainer=_.r("reels_web_enable_metadata_container");D.enableSqueezebackPanels=_.r("web_shorts_enable_squeezeback_panels");D.useAspectRatio=_.r("web_use_aspect_ratio");D.isSqueezebackActive=
!1;D.smallScreenSqueezeback=!1;D.isPlayerStarted=!1;D.overlayDensity=0;D.extractOverlay=!1;D.extractActionBar=!1;D.isOverlay=!1;D.isImmersive=!1;D.isImmersiveHorizontal=!1;D.isFullscreen=!1;D.onWindowResized=function(){var t;D.set("isImmersive",((t=window.getComputedStyle(D.hostElement))==null?void 0:t.getPropertyValue("--immersive-mode-on"))==="1");D.set("isImmersiveHorizontal",D.isImmersive&&D.enableLivingroomLayout&&!D.isWatchWhileMode)};
return D};
_.P(oU,_.X);_.q=oU.prototype;_.q.updateIsOverlay=function(D){this.isOverlay=D.detail.value};
_.q.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.q.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.q.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.q.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.q.onOverlayDensityChange=function(){var D=_.Kg(this.hostElement).querySelector("ytd-info-panel-container-renderer");D&&(D.set("extractOverlay",this.extractOverlay),D.set("roundedContainer",this.extractOverlay))};
_.q.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.q.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.q.ready=function(){(_.r("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.r("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.sa("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.sa("reels_action_justified_content")||"flex-start")};
_.q.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",properties:{roundedContainer:"[[extractOverlay]]",extractOverlay:"[[extractOverlay]]"}}},renderPriority:0}}};
_.q.setFakeLoadingButtons=function(){_.r("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.OT("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.OT("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.OT("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.OT("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.OT("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()};
_.q.setEmptyOverlayMetadata=function(){_.r("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}))};
_.ql.Object.defineProperties(oU.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.infoPanel)}}});
oU.prototype.onOverlayDensityChange=oU.prototype.onOverlayDensityChange;oU.prototype.onIsActiveChanged=oU.prototype.onIsActiveChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],oU.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],oU.prototype,"ytdReduxBehavior",void 0);
_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],oU.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],oU.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],oU.prototype,"isActive",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],oU.prototype,"hidden",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],oU.prototype,"useShortsIcon",void 0);
_.d([_.M({value:"left"}),_.x("design:type",String)],oU.prototype,"buttonTooltipPosition",void 0);_.d([_.M({value:_.r("reels_enable_livingroom_layout")?"top":"left"}),_.x("design:type",String)],oU.prototype,"likeButtonTooltipPosition",void 0);_.d([_.M({value:"none"}),_.x("design:type",String)],oU.prototype,"textTransform",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"showScrubber",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"isWatchWhileMode",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data.infoPanel"),_.x("design:type",Object),_.x("design:paramtypes",[])],oU.prototype,"hasInfoPanel",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"enableAnchoredPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"enableNewStickers",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"anchoredPanelActive",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"enableLivingroomLayout",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],oU.prototype,"enablePlayerMetadataContainer",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"enableSqueezebackPanels",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"useAspectRatio",void 0);_.d([_.M({selector:_.m_T,reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"isSqueezebackActive",void 0);_.d([_.M({selector:ovM,reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"smallScreenSqueezeback",void 0);_.d([_.M({selector:PaM}),_.x("design:type",Object)],oU.prototype,"isPlayerStarted",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"overlayDensity",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"extractOverlay",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"extractActionBar",void 0);_.d([_.M(),_.x("design:type",Object)],oU.prototype,"isOverlay",void 0);_.d([_.M(),_.x("design:type",Object)],oU.prototype,"isImmersive",void 0);
_.d([_.M(),_.x("design:type",Object)],oU.prototype,"isImmersiveHorizontal",void 0);_.d([_.M({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.x("design:type",Boolean)],oU.prototype,"isShortsImmersive",void 0);_.d([_.M({computed:"computeButtonOverride(extractActionBar)"}),_.x("design:type",Object)],oU.prototype,"buttonOverride",void 0);
_.d([_.M({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.x("design:type",Object)],oU.prototype,"actionBarButtonOverride",void 0);_.d([_.M({selector:_.wg,reflectToAttribute:!0}),_.x("design:type",Object)],oU.prototype,"isFullscreen",void 0);_.d([_.Os("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oU.prototype,"onIsActiveChanged",null);
_.d([_.Os("extractOverlay"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],oU.prototype,"onOverlayDensityChange",null);_.d([_.Y({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],oU);
_.p(oU,"ytd-reel-player-overlay-renderer",function(){if(eg1!==void 0)return eg1;var D=document.createElement("template");_.n(D,'\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]]" extract-overlay="[[extractOverlay]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return eg1=D},{mode:1});var Fil;var PG=function(){var D=_.X.apply(this,arguments)||this;D.videoDuration=0;D.playedTime=0;D.isActive=!1;D.JSC$22338_playerEvents=new Map;return D};
_.P(PG,_.X);_.q=PG.prototype;_.q.created=function(){this.JSC$22338_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22338_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.q.attached=function(){this.getPlayerAndInitializeListeners()};
_.q.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22338_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.iK(this,this.onPageChanged))};
_.q.getPlayerAndInitializeListeners=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return t=_.FA(),t?H.yield(t.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.iK(D,D.onPageChanged)),H.jumpTo(0));D.player=H.yieldResult;D.initializePlayerListeners();_.n2(H)})};
_.q.onPageChanged=function(D){var t=this;return _.Z(function(H){if(H.nextAddress==1)return D.detail.newPageType!=="ytd-shorts"?H.return():H.yield(_.an().getPlayerPromise(),2);t.player=H.yieldResult;t.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.iK(t,t.onPageChanged));_.n2(H)})};
_.q.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22338_playerEvents)};
_.q.onVideoDataChange=function(D){var t=this;return _.Z(function(H){if(!t.player||D.type!=="newdata")return H.return();t.videoDuration=_.r("web_shorts_use_progress_state_for_gapless")?t.player.getProgressState(D.playertype).seekableEnd:t.player.getDuration(D.playertype);t.playedTime=0;_.n2(H)})};
_.q.onVideoProgress=function(D){var t=this,H,e;return _.Z(function(V){if(!t.player)return V.return();H=t.player.getPresentingPlayerType();e=t.player.getPlayerState();t.videoDuration=_.r("web_shorts_use_progress_state_for_gapless")?t.player.getProgressState(H).seekableEnd:t.player.getDuration(H);t.playedTime=e===0?t.videoDuration:D;_.n2(V)})};
_.q.getPercentPlayed=function(D,t){return D?_.A8(t/D,0,1):0};
_.ql.Object.defineProperties(PG.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 D="";return D=this.videoDuration&&this.playedTime?D+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):D+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],PG.prototype,"componentBehavior",void 0);_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",_.rt)],PG.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],PG.prototype,"player",void 0);_.d([_.M(),_.x("design:type",Object)],PG.prototype,"videoDuration",void 0);_.d([_.M(),_.x("design:type",Object)],PG.prototype,"playedTime",void 0);_.d([_.M(),_.x("design:type",Object)],PG.prototype,"isActive",void 0);
_.d([_.m("videoDuration","playedTime"),_.x("design:type",Number),_.x("design:paramtypes",[])],PG.prototype,"percentPlayed",null);_.d([_.m("videoDuration","playedTime"),_.x("design:type",Object),_.x("design:paramtypes",[])],PG.prototype,"percentPlayedStyle",null);_.d([_.m("videoDuration","isActive"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],PG.prototype,"hideProgressBar",null);
_.p(PG,"ytd-progress-bar-line",function(){if(Fil===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);Fil=D}D=Fil;return D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var aO1;_.hB(_.lvF,"ytm-closed-captioning-button",{props:{captionIconType:_.ij,onClick:_.wm,ariaLabel:_.ij,ariaPressed:_.ij,isOverlay:_.wm,isModern:_.wm}});_.hB(_.sZY,"desktop-shorts-volume-controls",{props:{orientation:_.ij}});var nd=function(){var D=_.X.apply(this,arguments)||this;D.playerState=null;D.isMuted=!1;D.shortsModernControlsEnabled=_.r("web_shorts_modern_controls");D.volumeControlsOrientationState=_.r("web_shorts_modern_controls")?"vertical_down":"horizontal_right";D.isOverlay=!0;D.captionIconType=-1;D.ariaLabel="";D.overlayDensity=0;D.extractActionBar=!0;D.JSC$22341_playerEvents=new Map;D.onClosedCaptionsButtonClick=function(){D.player&&_.ra(D.player)&&(D.player.toggleSubtitles(),D.updateCaptionIconType())};
return D};
_.P(nd,_.X);_.q=nd.prototype;_.q.created=function(){this.JSC$22341_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22341_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22341_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.q.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Nx(28662);this.playPauseButtonClientVE=_.Nx(36842);this.fullscreenButtonToggleOffClientVE=_.Nx(222256);this.fullscreenButtonToggleOnClientVE=_.Nx(222257);var D=_.v3(),t=_.lo();D&&t&&(_.r("combine_ve_grafts")?(_.A1(_.Pc(),this.muteButtonClientVE,t),_.A1(_.Pc(),this.playPauseButtonClientVE,t)):_.y$(D,t,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.q.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22341_playerEvents),this.player=null)};
_.q.updateCaptionIconType=function(){var D=-1,t=void 0,H=_.OT("CLOSED_CAPTIONS_DISABLED");this.player&&_.ra(this.player)&&(_.nCF(this.player)?(t=!0,H=_.OT("CLOSED_CAPTIONS_ON"),D=1):(t=!1,H=_.OT("CLOSED_CAPTIONS_OFF"),D=0));this.captionIconType=D;this.ariaPressedState=t;this.ariaLabel=H};
_.q.getPlayerAndInitializeListeners=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return t=_.FA(),t?H.yield(t.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.iK(D,D.onPageChanged)),H.jumpTo(0));D.player=H.yieldResult;D.initializePlayerListeners();_.n2(H)})};
_.q.onPageChanged=function(D){var t=this;return _.Z(function(H){if(H.nextAddress==1)return D.detail.newPageType!=="ytd-shorts"?H.return():H.yield(_.an().getPlayerPromise(),2);t.player=H.yieldResult;t.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.iK(t,t.onPageChanged));_.n2(H)})};
_.q.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22341_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.q.onPlayerStateChange=function(D){this.playerState=D};
_.q.onPlayerVolumeChange=function(D){this.isMuted=D.muted};
_.q.onPlayPauseButtonClick=function(){var D=this,t,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(_.an().getPlayerPromise(),2);t=e.yieldResult;(H=_.v3())&&D.playPauseButtonClientVE&&_.tV(H,D.playPauseButtonClientVE);t.getPlayerState()!==1?t.playVideo():t.pauseVideo();_.n2(e)})};
_.q.computePlayPauseIcon=function(D){return D===2||D===-1||D===5?_.r("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.r("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.r("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.q.computeFullscreenLabel=function(D){return D?_.OT("FULLSCREEN_EXIT_LABEL"):_.OT("FULLSCREEN_ENTER_LABEL")};
_.q.computePlayPauseLabel=function(D){return D===1||D===3?_.OT("PLAYER_LABEL_PAUSE"):_.OT("PLAYER_LABEL_PLAY")};
_.q.onMuteButtonClick=function(){var D=this,t,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(_.an().getPlayerPromise(),2);t=e.yieldResult;(H=_.v3())&&D.muteButtonClientVE&&_.tV(H,D.muteButtonClientVE);t.isMuted()?t.unMute(!0):t.mute(!0);_.n2(e)})};
_.q.computeMuteIcon=function(D){return D?"miniplayer:volume-off":"miniplayer:volume-up"};
_.q.computeMuteLabel=function(D){return D?_.OT("PLAYER_LABEL_UNMUTE"):_.OT("PLAYER_LABEL_MUTE")};
_.q.onFullscreenButtonClick=function(){var D=_.v3();D&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.tV(D,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.tV(D,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.E0F()};
_.ql.Object.defineProperties(nd.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var D=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(){D.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?_.r("web_shorts_modern_controls")?"player_full_exit_alt":_.r("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.r("web_shorts_modern_controls")?"player_full_enter_alt":_.r("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],nd.prototype,"componentBehavior",void 0);_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",_.rt)],nd.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],nd.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],nd.prototype,"player",void 0);_.d([_.M(),_.x("design:type",Object)],nd.prototype,"playerState",void 0);_.d([_.M(),_.x("design:type",Object)],nd.prototype,"isMuted",void 0);
_.d([_.M({computed:"computePlayPauseIcon(playerState)"}),_.x("design:type",String)],nd.prototype,"playPauseIcon",void 0);_.d([_.M({computed:"computeMuteIcon(isMuted)"}),_.x("design:type",String)],nd.prototype,"muteIcon",void 0);_.d([_.M({selector:_.wg}),_.x("design:type",Boolean)],nd.prototype,"isFullscreen",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nd.prototype,"shortsModernControlsEnabled",void 0);
_.d([_.M(),_.x("design:type",Object)],nd.prototype,"volumeControlsOrientationState",void 0);_.d([_.M(),_.x("design:type",Object)],nd.prototype,"isOverlay",void 0);_.d([_.M(),_.x("design:type",Object)],nd.prototype,"captionIconType",void 0);_.d([_.M(),_.x("design:type",Object)],nd.prototype,"ariaLabel",void 0);_.d([_.M(),_.x("design:type",Object)],nd.prototype,"ariaPressedState",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nd.prototype,"overlayDensity",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nd.prototype,"extractActionBar",void 0);_.d([_.m("playerState"),_.x("design:type",Object),_.x("design:paramtypes",[])],nd.prototype,"playPauseButtonData",null);_.d([_.m("isFullscreen"),_.x("design:type",Object),_.x("design:paramtypes",[])],nd.prototype,"fullscreenButtonData",null);_.d([_.M(),_.x("design:type",Object)],nd.prototype,"onClosedCaptionsButtonClick",void 0);
_.d([_.m("isFullscreen"),_.x("design:type",String),_.x("design:paramtypes",[])],nd.prototype,"fullscreenIcon",null);
_.p(nd,"ytd-shorts-player-controls",function(){if(aO1===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);aO1=D}D=aO1;return D},{mode:1});var wtF;_.hB(_.ATt,"yt-interstitial-view-model",{props:{data:_.ij}});var ZeY=_.l(function(D){var t=D.data;return _.G("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.G("h1",{class:"reelWatchBreakViewModelHostTitle"},_.G(_.$7,{text:function(){return t().title}})),_.G("h2",{class:"reelWatchBreakViewModelHostBody"},_.G(_.$7,{text:function(){return t().body},
isOverlay:!0})),_.G(_.P5,{data:function(){return t().buttons}},{buttonViewModel:function(H,e){return _.G("div",{class:function(){return e()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.G(_.JX,{data:H.data}))}}))},"cm");
ZeY.idomCompat=!0;_.hB(ZeY,"reel-watch-break-view-model",{props:{data:_.ij}});var Cd=function(){return _.X.apply(this,arguments)||this};
_.P(Cd,_.X);Cd.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}}};
_.ql.Object.defineProperties(Cd.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.O((D=this.data)==null?void 0:D.renderer,IfM)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var D;return!!_.O((D=this.data)==null?void 0:D.renderer,QBw)}}});
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Cd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Cd.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Cd.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Cd.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("data.renderer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Cd.prototype,"isSurvey",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.renderer"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Cd.prototype,"isInterstitialViewModel",null);_.d([_.Y({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],Cd);
_.p(Cd,"ytd-reel-non-video-content-renderer",function(){if(wtF!==void 0)return wtF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
return wtF=D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var svh;_.hB(_.ZRY,"desktop-shorts-player-controls",{});var ms=function(){var D=_.X.apply(this,arguments)||this;D.isPlayerPaused=!1;D.isPlayerStarted=!1;D.showPlayerControls=!1;D.showScrubber=!1;D.autoHideJobId=0;D.modern=_.r("web_button_rework");D.overlayType=_.sa("web_shorts_expanded_overlay_type");D.panelData=void 0;D.isWatchWhileMode=!1;D.hasError=!1;D.panelShowDelayMs=1;D.scrubberComponent={};D.isFullscreen=!1;D.shouldHideOverlay=!1;D.enableAnchoredPanel=_.r("desktop_shorts_v2_anchored_panel");D.enablePersistentAnchoredPanel=_.r("desktop_shorts_v2_persistent_anchored_panel");
D.hideWatchWhilePanel=_.r("web_shorts_hide_watch_while_panel");D.useAspectRatio=_.r("web_use_aspect_ratio");D.isPersistentPanelActive=!1;D.anchoredPanelActive=!1;D.isShortsPipActive=!1;D.smallScreenSqueezeback=!1;D.enableFlexibleOverlay=_.r("web_enable_flexible_overlay");D.overlayDensity=0;D.extractOverlay=!1;D.extractActionBar=!1;D.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
D.onWindowResized=function(){_.z1(D,"calculateOverlayDensity",function(){D.calculateOverlayDensity()},100)};
return D};
_.P(ms,_.X);_.q=ms.prototype;_.q.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.q.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.q.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var D=_.qS().resolve(_.tr);this.isWatchWhileMode&&_.Jy.addJob(function(){D.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0)}}else this.panelData=void 0};
_.q.handleShowReelsCommentsOverlayCommand=function(D){D=_.O(D,znM);this.isActive&&(D==null?0:D.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))};
_.q.updateEngagementPanelVisibility=function(D,t){D&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:t?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:D}})};
_.q.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.q.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.qS().resolve(_.uS).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.q.handleWatchWhilePanelScrimClick=function(){var D=_.qS().resolve(_.tr);this.activeWatchWhilePanel&&(D.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.q.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.q.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.q.handlePlayerClick=function(D){var t=this,H,e;if((e=(H=window).matchMedia)!=null&&e.call(H,"(any-pointer: coarse)").matches||!D)this.showPlayerControls=!0,_.Jy.cancelJob(this.autoHideJobId),this.autoHideJobId=_.C7(_.Jy,function(){t.showPlayerControls=!1},4E3)};
_.q.isFirstReel=function(){return this.index===0};
_.q.handleMouseenter=function(){_.Jy.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.q.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.q.handleScrubberEnter=function(){this.showScrubber=!0};
_.q.handleScrubberLeave=function(){this.showScrubber=!1};
_.q.maybeLogNonDefaultAspectRatio=function(){var D;(D=this.data)!=null&&D.thumbnail&&this.isActive&&.5625!==UwF(this.data.thumbnail)&&_.sGT("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.q.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var D=document.querySelector("#shorts-container");if(D){var t=!1,H,e=this.playerContainer.offsetWidth;D=D.offsetWidth/2-e/2;D>=368?(D=1,t=H=!0):D>=72?(D=0,H=!0):(D=2,H=!1);e>=600?D=1:window.innerWidth<=599&&(D=2,H=t=!1);this.isPersistentPanelActive&&(D=0,t=!1);this.extractActionBar=H;_.r("web_enable_flexible_overlay")&&(this.overlayDensity=D,this.extractOverlay=t);var V;(V=this.onOverlayDensityChanged)==
null||V.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.q.onOverlayDensityChange=function(){var D;(D=this.onOverlayDensityChanged)==null||D.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(D=_.Kg(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))D.set("overlayDensity",this.overlayDensity),D.set("extractOverlay",this.extractOverlay),D.set("extractActionBar",this.extractActionBar);if(D=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))D.overlayDensity=this.overlayDensity,D.extractOverlay=
this.extractOverlay,D.extractActionBar=this.extractActionBar};
_.q.isVideoContent=function(D){_.qS().resolve(_.uS);return!!_.O(D,_.C_)};
_.q.isNonVideoContent=function(D){_.qS().resolve(_.uS);return!!_.O(D,_.qB)};
_.q.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.ql.Object.defineProperties(ms.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var D,t;return _.r("web_enable_format_first")||((D=this.data)==null?void 0:D.adsOverlay)&&_.r("web_enable_format_first_ads_only")||((t=this.data)==null?void 0:t.reelPlayerOverlayRenderer)&&_.r("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.r("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var D;return!this.isActive||!this.isPlayerStarted||(D=this.data)!=null&&D.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.data)==null?0:D.command)&&this.isVideoContent(this.data.command)){var t,H;if(((t=this.data)==null?0:t.adsOverlay)&&Object.keys((H=this.data)==null?void 0:H.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var e,V;if(((e=this.data)==null?0:e.reelPlayerOverlayRenderer)&&Object.keys((V=this.data)==null?void 0:V.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
ms.prototype.onOverlayDensityChange=ms.prototype.onOverlayDensityChange;ms.prototype.calculateOverlayDensity=ms.prototype.calculateOverlayDensity;ms.prototype.maybeLogNonDefaultAspectRatio=ms.prototype.maybeLogNonDefaultAspectRatio;ms.prototype.onEngagementPanelsChanged=ms.prototype.onEngagementPanelsChanged;ms.prototype.onScrubberDataChange=ms.prototype.onScrubberDataChange;ms.prototype.updateShouldHideOverlay=ms.prototype.updateShouldHideOverlay;
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],ms.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],ms.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ms.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Number)],ms.prototype,"index",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],ms.prototype,"isActive",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],ms.prototype,"isHiddenInDom",void 0);_.d([_.M(),_.x("design:type",Object)],ms.prototype,"isPlayerPaused",void 0);_.d([_.M({selector:PaM}),_.x("design:type",Object)],ms.prototype,"isPlayerStarted",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"showPlayerControls",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"showScrubber",void 0);_.d([_.M(),_.x("design:type",Object)],ms.prototype,"autoHideJobId",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"modern",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"overlayType",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],ms.prototype,"ytdReduxBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],ms.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ms.prototype,"watchWhileEngagementPanels",void 0);_.d([_.M(),_.x("design:type",Object)],ms.prototype,"panelData",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"isWatchWhileMode",void 0);_.d([_.M(),_.x("design:type",String)],ms.prototype,"activeWatchWhilePanel",void 0);
_.d([_.M(),_.x("design:type",Object)],ms.prototype,"hasError",void 0);_.d([_.M(),_.x("design:type",Object)],ms.prototype,"panelShowDelayMs",void 0);_.d([_.M(),_.x("design:type",Object)],ms.prototype,"scrubberComponent",void 0);_.d([_.M({selector:_.wg,reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"isFullscreen",void 0);_.d([_.M(),_.x("design:type",Object)],ms.prototype,"shouldHideOverlay",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"enableAnchoredPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"enablePersistentAnchoredPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"hideWatchWhilePanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"useAspectRatio",void 0);
_.d([_.M({selector:_.m_T,reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"isPersistentPanelActive",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"anchoredPanelActive",void 0);_.d([_.M({selector:_.ZT,reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"isShortsPipActive",void 0);_.d([_.M({selector:ovM,reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"smallScreenSqueezeback",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],ms.prototype,"enableFormatFirst",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"enableFlexibleOverlay",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"overlayDensity",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"extractOverlay",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ms.prototype,"extractActionBar",void 0);_.d([_.M(),_.x("design:type",Function)],ms.prototype,"onOverlayDensityChanged",void 0);_.d([_.M(),_.m("isActive","hasError","isPlayerStarted"),_.x("design:type",Object),_.x("design:paramtypes",[])],ms.prototype,"shouldRenderPlayerElements",null);_.d([_.M(),_.m("isActive","isWatchWhileMode"),_.x("design:type",Object),_.x("design:paramtypes",[])],ms.prototype,"watchWhileOrPersistentActive",null);
_.d([_.Os("isActive","hasError","showingExpandedOverlay"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ms.prototype,"updateShouldHideOverlay",null);_.d([_.M({reflectToAttribute:!0}),_.m("isActive","isPlayerStarted","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ms.prototype,"shouldRenderScrubber",null);
_.d([_.Os("shouldRenderScrubber"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ms.prototype,"onScrubberDataChange",null);_.d([_.m("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.x("design:type",Object),_.x("design:paramtypes",[])],ms.prototype,"overlayComponent",null);_.d([_.Os("watchWhileEngagementPanels"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ms.prototype,"onEngagementPanelsChanged",null);
_.d([_.o5("#player-container"),_.x("design:type",HTMLElement)],ms.prototype,"playerContainer",void 0);_.d([_.o5("#cinematic-container"),_.x("design:type",HTMLElement)],ms.prototype,"cinematicContainer",void 0);_.d([_.Os("isPersistentPanelActive","data.thumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ms.prototype,"maybeLogNonDefaultAspectRatio",null);
_.d([_.Os("isPersistentPanelActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ms.prototype,"calculateOverlayDensity",null);_.d([_.Os("overlayDensity","extractOverlay","extractActionBar"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ms.prototype,"onOverlayDensityChange",null);_.d([_.Y({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],ms);
_.p(ms,"ytd-reel-video-renderer",function(){if(svh!==void 0)return svh;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" extract-action-bar="[[extractActionBar]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return svh=D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var Me=function(){var D=_.X.apply(this,arguments)||this;D.isPreviousPageShorts=!1;D.index=0;D.delayedActiveIndex=0;D.playablePreviousIndex=null;D.isPlayerPaused=!1;D.isPlayerStarted=!1;D.intersectionObserverThreshold=.6;D.fitToVisibleBounds=!1;D.pageSubtype="shorts";D.enablePreviousContinuation=_.r("shorts_in_playlists_web");D.shortsPipEnabled=_.r("web_shorts_pip");D.isDark=document.documentElement.hasAttribute("dark");D.shortsViewTransitions=_.r("web_shorts_view_transitions");D.isFullscreen=!1;D.isShortsPipActive=
!1;D.buttonOverride={iconPosition:"icon-only",size:"XL"};D.anchoredPanelActive=!1;D.isActive=!1;D.smallScreenPersistentPanel=!1;D.isPersistentPanelActive=!1;D.smallScreenSqueezeBack=!1;D.enableScrollIntoViewCenter=_.r("web_scroll_into_view_center");D.formatFirst=_.r("web_enable_format_first")||_.r("web_enable_format_first_ads_only")||_.r("web_enable_format_first_organic_only");D.enableFlexibleOverlay=_.r("web_enable_flexible_overlay");D.extractOverlay=!1;D.useAspectRatio=_.r("web_use_aspect_ratio");
D.isShortsInitialized=!1;D.hidePreviousButtonImmediately=!1;D.showPreviousButtonImmediately=!1;D.endOfNextContinuation=!1;D.currentPlayerIndex=0;D.nextReelVe=_.Nx(56921);D.prevReelVe=_.Nx(56922);D.loopToggleOffVe=_.Nx(198013);D.loopToggleOnVe=_.Nx(198014);D.ambientModeToggleVe=_.Nx(227860);D.reelPlayerPausedStateRendererVe=_.Nx(141313);D.storedPlaybackSpeed=null;D.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"};D.onOverlayDensityChanged=function(t,H,e,V){t=D.getActiveReelVideo(t);D.extractOverlay=!!e;t==null||t.setAttribute("overlay-density",String(H));e===void 0||t!=null&&t.toggleAttribute("extract-overlay",e);V===void 0||t!=null&&t.toggleAttribute("extract-action-bar",V)};
return D};
_.P(Me,_.X);_.q=Me.prototype;_.q.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.q.deflateInactivePreviousSlides=function(){var D=_.ZU("web_shorts_deflate_inactive_slides_aggressive_distance");if(D>0&&this.shortsProcessedSequence&&this.activeIndex){D=this.activeIndex-D;for(var t=0;t<=D;t++){var H=void 0;((H=this.shortsProcessedSequence[t].reelPlayerOverlayRenderer)==null?0:H.metapanel)&&this.set("shortsProcessedSequence."+t+".reelPlayerOverlayRenderer",{});H=void 0;((H=this.shortsProcessedSequence[t].adsOverlay)==null?0:H.adSlotMetadata)&&this.set("shortsProcessedSequence."+
t+".adsOverlay",{})}}};
_.q.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.q.onResize=function(){var D=_.b_(),t=D.dispatch,H=this.calculateIsSmallWidth();t.call(D,_.hV({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:H}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.q.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatchWhilePanel:!0,shortsPanel:!0}}},
renderPriority:0}}};
_.q.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var D=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,t=D,H=0;D<250&&(t=D+this.shortsInnerContainer.clientWidth,H=24);_.jZ(this.hostElement,{"--ytd-shorts-header-width":t+"px","--ytd-shorts-top-spacing":H+"px"})}};
_.q.isFirstShorts=function(D){return D?this.index===-D.length:this.index===0};
_.q.isActiveReel=function(D,t,H){H&&(t=this.calculatePrevIndex(t,H));return D===t};
_.q.onFullscreenChange=function(){if(_.r("web_fullscreen_shorts")){var D;(D=this.getActiveReelVideo(this.activeIndex))==null||D.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.qS().resolve(_.dL).close(!0)}};
_.q.engagementPanelsChanged=function(){var D;this.watchWhileEngagementPanels=(D=this.data)==null?void 0:D.engagementPanels};
_.q.unregisterPanels=function(){var D=_.qS().resolve(_.tr);if(this.watchWhileEngagementPanels)for(var t=_.F(this.watchWhileEngagementPanels),H=t.next();!H.done;H=t.next()){var e=H.value,V=void 0,b=void 0;H=(V=e.engagementPanelSectionListRenderer)==null?void 0:(b=V.identifier)==null?void 0:b.tag;e=this.getPanelContentIdentifier(e.engagementPanelSectionListRenderer);D&&(H&&D.panelMap.delete(H),e&&_.r("web_shorts_panel_caching_bugfix")&&(V=H=void 0,(V=(H=D).unregisterPanelContent)==null||V.call(H,e)))}};
_.q.isVideoContent=function(D){return this.isVideoContentCommand(D==null?void 0:D.command)};
_.q.getActiveReelVideo=function(D){return _.Kg(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+D+'"]')};
_.q.calculatePrevIndex=function(D,t){return t?D-((t==null?void 0:t.length)||0):-1};
_.q.onKeydown=function(D){var t=_.bK(D)||[];if(!_.Gfb(t))if(D.code==="ArrowUp")D.preventDefault(),this.handlePrevButtonClick();else if(D.code==="ArrowDown")D.preventDefault(),this.handleNextButtonClick();else if(D.code==="KeyM")this.toggleMuteUnmuteVideo();else if(D.code==="KeyK"||D.code==="Space")this.togglePlayPauseVideo();else if((D.code==="KeyA"||D.code==="ArrowLeft")&&_.r("web_shorts_keyboard_enable_seek_shortcuts")){var H;(H=this.player)==null||H.seekBy(-5)}else if((D.code==="KeyD"||D.code===
"ArrowRight")&&_.r("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var e;(e=this.player)==null||e.seekBy(5)}};
_.q.onServiceRequestCompleted=function(D,t){D=t.data;D.continuationEndpoint&&D.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:D.entries,continuationEndpoint:D.continuationEndpoint}}),_.r("web_enable_shorts_sequence_cache_fix")&&(this.cachedReelWatchSequenceResponse=D)):D.prevContinuationEndpoint&&D.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:D.prevEntries,
prevContinuationEndpoint:D.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.q.handleEngagementPanelVisibilityChanged=function(D,t){var H=_.qS().resolve(_.tr);if(D&&H){var e=this.getPanelIdentifier(D);if(t==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==e){H.hidePanel(this.activePanel);var V;this.activePanel=((V=D.identifier)==null?void 0:V.tag)||D.panelIdentifier}else this.isPersistentPanelActive=!0,_.b_().dispatch(YmE(!0)),this.anchoredPanelActive=!0,this.activePanel=e;else t==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
e&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.b_().dispatch(YmE(!1)))}};
_.q.handlePanelScrimClick=function(){var D=_.qS().resolve(_.tr);this.activePanel&&(D.hidePanel(this.activePanel),_.b_().dispatch(YmE(!1)))};
_.q.getShortsLoopSetting=function(){var D,t,H,e,V;return _.Z(function(b){switch(b.nextAddress){case 1:return _.r("kevlar_shorts_auto_advance")?b.yield(_.z6.getInstance(),2):b.return(!0);case 2:return(D=b.yieldResult)?b.yield(D.get("sfvles"),3):b.return(!0);case 3:return H=(t=b.yieldResult)!=null?t:!1,b.yield(D.get("sfvle"),4);case 4:return V=(e=b.yieldResult)!=null?e:!0,H?b.return(V):b.return(!0)}})};
_.q.handleSignalActionToggleLoopShortsOff=function(){var D=this,t,H,e;return _.Z(function(V){switch(V.nextAddress){case 1:if(!D.player)return V.return();D.player.setLoopVideo(!1);t=_.Pc();_.J1(t,D.loopToggleOffVe);return V.yield(_.z6.getInstance(),2);case 2:return(H=V.yieldResult)?V.yield(H.set("sfvle",!1),3):V.return();case 3:return V.yield(H.set("sfvles",!0),4);case 4:e=_.Ph(),_.nl(0,203,!1),_.nl(0,204,!0),e.save(),_.n2(V)}})};
_.q.handleSignalActionToggleLoopShortsOn=function(){var D=this,t,H,e;return _.Z(function(V){switch(V.nextAddress){case 1:if(!D.player)return V.return();D.player.setLoopVideo(!0);t=_.Pc();_.J1(t,D.loopToggleOnVe);return V.yield(_.z6.getInstance(),2);case 2:return(H=V.yieldResult)?V.yield(H.set("sfvle",!0),3):V.return();case 3:return V.yield(H.set("sfvles",!0),4);case 4:e=_.Ph(),_.nl(0,203,!0),_.nl(0,204,!0),e.save(),_.n2(V)}})};
_.q.handleSignalActionToggleCinematicShortsOn=function(){OQE(!0);var D;(D=this.JSC$22365_cinematicController)==null||_.k4h(D,!0);_.J1(_.Pc(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.q.handleSignalActionToggleCinematicShortsOff=function(){OQE(!1);var D;(D=this.JSC$22365_cinematicController)==null||_.k4h(D,!1);_.J1(_.Pc(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.q.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.q.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.q.unhideCurrentOverlay=function(){if(this.overlayContainer){var D=this.overlayContainer.querySelector("#experiment-overlay");D&&_.Jy.addLowPriorityJob(function(){D.style.display="unset"},100)}};
_.q.getCurrentShort=function(){if(this.currentEndpoint){var D=this.currentEndpoint;if(this.isNonVideoContentCommand(D)){var t=_.O(D,_.qB);return{reelNonVideoContentRenderer:_.O(t==null?void 0:t.renderer,_.Mtf),command:D}}if(this.data){var H;t=(H=_.O(this.currentEndpoint,_.C_))==null?void 0:H.thumbnail;var e;H=(e=this.data.overlay)==null?void 0:e.reelPlayerOverlayRenderer;_.qS().resolve(_.uS);D=this.data;var V,b;e=(V=D.overlay)==null?void 0:(b=V.shortsAdsRenderer)==null?void 0:b.adSlots;if(e!==void 0)e.length===
0?(_.Q2("Shorts ads returned no ad slots."),D=void 0):(e.length>1&&_.Q2("Shorts ads has more than one ad slots."),D=_.O(e[0],_.irf));else{var a,w;D=_.O((a=D.overlay)==null?void 0:(w=a.shortsAdsRenderer)==null?void 0:w.overlay,_.irf)}a=D;D=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.O(this.currentEndpoint,_.C_),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:H,thumbnail:t,command:D,adsOverlay:a}}}};
_.q.created=function(){var D=this;this.scrollToVideoThrottle=new _.W5(function(t){var H;(H=D.getActiveReelVideo(t))==null||H.scrollIntoView({behavior:"smooth",block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.W5(function(t){var H;(H=D.getActiveReelVideo(t))==null||H.scrollIntoView({behavior:"auto",block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.q.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.q.attached=function(){var D=this;_.qS().resolve(_.uS).registerRootElement(this);this.pageScrollElement=_.Kg(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.iK(this,this.processResetAction));_.r("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var t=D.getActiveReelVideo(D.activeIndex);D.maybeCreateIntersectionObserver();t==null||t.scrollIntoView({behavior:"instant",
block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"});D.shortsContainer.style.overflowY="scroll"}))};
_.q.updateReelWatchSequenceResponse=function(){var D=this,t;_.r("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((t=_.O(this.currentEndpoint,_.C_))==null?0:t.sequenceParams)&&!this.reelWatchSequenceResponse&&(t=_.qS().resolve(_.uS))&&J3A(t,this.currentEndpoint).then(function(H){H&&(D.reelWatchSequenceResponse=H,_.Jy.addLowPriorityJob(function(){D.observeShorts()}))})};
_.q.calculateSqueezebackPanelSize=function(){var D=this,t=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Jy.addLowPriorityJob(function(){t<360?_.b_().dispatch(lfh(!0)):(D.hostElement.style.setProperty("--anchored-panel-width",Math.min(t,480)+"px"),_.b_().dispatch(lfh(!1)))})};
_.q.detached=function(){var D=_.qS().resolve(_.uS);D.rootElement=void 0;var t;(t=D.unsubscribeFromStore)==null||t.call(D);D.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.iK(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.q.onResizeFinished=function(D,t){var H=this,e=new ResizeObserver(function(){H.shortsContainer.style.overflowY="hidden";_.Jy.addLowPriorityJob(function(){t()},100)});
e.observe(D);return e};
_.q.resetDocumentScrollTop=function(){var D,t;if((D=document)==null?0:(t=D.scrollingElement)==null?0:t.scrollTop)document.scrollingElement.scrollTop=0};
_.q.loadPage_=function(D){var t=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),D){var H;!_.r("web_enable_delay_shorts_sequence_call")&&((H=_.O(this.currentEndpoint,_.C_))==null?0:H.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=D;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){t.isPlayerStarted&&(t.handleOnPlaybackCommand(),t.afterPlayerStarted=function(){})};
this.registerPanel(D)}};
_.q.afterPlayerStarted=function(){};
_.q.handleOnPlaybackCommand=function(){if(_.r("web_shorts_comment_stickers")&&this.isPlayerStarted){var D,t=(D=_.O(this.currentEndpoint,_.C_))==null?void 0:D.onPlaybackCommand;t&&this.ytComponentBehavior.resolveCommand(t)}};
_.q.maybeCreateIntersectionObserver=function(){var D=this,t=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==t){this.intersectionObserverThreshold=t;var H={rootMargin:"0px",threshold:t},e;(e=this.intersectionObserver)==null||e.disconnect();this.intersectionObserver=new IntersectionObserver(function(V){V=_.F(V);for(var b=V.next();!b.done;b=V.next())if(b=b.value,b.intersectionRatio>t){b=Number(b.target.id);if(isNaN(b))break;if(b===D.index)break;
_.LjV();D.loadVideo(b);_.dE("r_vtc")}},H);
this.observeShorts()}};
_.q.observeShorts=function(){var D=[].concat(_.A6(_.Kg(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));D=_.F(D);for(var t=D.next();!t.done;t=D.next()){t=t.value;var H=void 0;(H=this.intersectionObserver)==null||H.observe(t)}};
_.q.initCsi=function(){_.V7("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var D={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},t,H;if((t=this.playerData)==null?0:(H=t.cacheMetadata)==null?0:H.isCacheHit)D.isCacheHit=!0;var e;if(t=(e=_.O(this.currentEndpoint,_.C_))==null?void 0:
e.prefetchTaskId)D.prefetchInfo={taskId:t};_.JE(D)};
_.q.isAd=function(){var D,t;return!!((D=_.O(this.currentEndpoint,_.C_))==null?0:(t=D.adClientParams)==null?0:t.isAd)};
_.q.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.q.getPlayerContainer=function(){var D;return(D=_.Kg(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:D.playerContainer};
_.q.onPlayerStateChange=function(D){var t=this;this.isPlayerPaused=D===2;D!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?D===1&&this.index===0&&(this.isPlayerStarted||_.b_().dispatch(vvA(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.b_().dispatch(vvA(!0)));this.player&&!this.player.getLoopVideo()&&_.Jy.addLowPriorityJob(function(){t.getShortsLoopSetting().then(function(H){var e;(e=t.player)==null||e.setLoopVideo(H)})});
this.isPlayerPaused&&_.r("web_shorts_paused_state_logging")&&_.zf(_.v3(),[this.reelPlayerPausedStateRendererVe])};
_.q.isInBackground=function(){var D=window.document.visibilityState;return!(!D||D==="visible")};
_.q.isShortPlayable=function(){if(_.r("kevlar_playable_short_killswitch"))return!0;var D;return(D=this.playerData)!=null&&D.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.q.setNormalPlaybackSpeed=function(){var D=this,t,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(D.getPlayer().getPlayerPromise(),2);t=e.yieldResult;H=t.getPlaybackRate();H!==1&&(D.storedPlaybackSpeed=H,t.setPlaybackRate(1));_.n2(e)})};
_.q.restorePlaybackSpeed=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1)return D.storedPlaybackSpeed===null?H.jumpTo(0):H.yield(D.getPlayer().getPlayerPromise(),3);t=H.yieldResult;t.setPlaybackRate(D.storedPlaybackSpeed);D.storedPlaybackSpeed=null;_.n2(H)})};
_.q.playerDataChanged=function(){var D=this,t,H,e,V,b,a,w,h,K;return _.Z(function(N){if(N.nextAddress==1){t=D.getPlayer();(H=D.intersectionObserver)==null||H.disconnect();if(D.playerData){if(((e=D.playerData.videoDetails)==null?void 0:e.videoId)!==((V=t.getPlayer())==null?void 0:V.getVideoData().video_id)){b={};if(a=_.O(D.currentEndpoint,_.C_))b.watch_endpoint=a,a.endTimeSeconds&&(b.end=a.endTimeSeconds);t.loadVideoWithPlayerResponse(D.playerData,b)}}else return N.return();return D.player?N.jumpTo(2):
N.yield(t.getPlayerPromise(),3)}N.nextAddress!=2&&(D.player=N.yieldResult,D.JSC$22365_playerStateChangeListener=D.onPlayerStateChange.bind(D),D.player.addEventListener("onStateChange",D.JSC$22365_playerStateChangeListener),_.r("kevlar_client_enable_shorts_player_bootstrap")&&_.ue(),D.scrollToVideoThrottle.fire(D.index),D.movePlayerToVideo(D.index),_.Jy.addLowPriorityJob(function(){D.getShortsLoopSetting().then(function(k){var T;(T=D.player)==null||T.setLoopVideo(k)})}),_.rD9.resolve(D.player),D.player.syncVolume(),
D.getPlayer().focusOnPlayer());
_.Jy.addLowPriorityJob(function(){D.observeShorts()},100);
w=D.player.getPlayerState(D.player.getPresentingPlayerType());w!==1||D.isPlayerStarted||_.b_().dispatch(vvA(!0));D.updateBackNavContainerWidth();h=_.O(D.currentEndpoint,_.C_);((K=h)==null?0:K.startTimeSeconds)&&D.player.seekTo(h.startTimeSeconds);if(D.JSC$22365_cinematicController||D.cinematicsInitializeJobId)return N.return();D.cinematicsInitializeJobId=_.Jy.addLowPriorityJob(function(){D.initCinematicController();D.cinematicsInitializeJobId=void 0});
_.n2(N)})};
_.q.onShortUndoDismiss=function(){var D=this,t=gvY().pop();t!==void 0&&(_.Vi(this,function(){D.showCardWithIndex(t)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.q.onShortsDismiss=function(D){if(D=D.detail.reelDismissalActionRenderer)(D=_.O(D.onDismissalCompletionRenderer,_.WDE))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:D}}}),this.scrollAndDismissCard()};
_.q.processReelNonVideoContentDismissalCommand=function(D){var t=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);D=_.O(D,BoM);this.activeDimissalTimeout=setTimeout(function(){t.scrollAndDismissCard()},Number(D==null?void 0:D.delayMs))};
_.q.scrollAndDismissCard=function(){var D=this,t=this.index;gvY().push(t);_.Vi(this,function(){var H=D.getPlayableNextIndex();H!==null&&(H=D.getActiveReelVideo(H),D.hideCardWithIndex(t),H==null||H.scrollIntoView({behavior:"smooth",block:"nearest",inline:D.enableScrollIntoViewCenter?"center":"start"}))})};
_.q.hideCardWithIndex=function(D){if(D=this.getActiveReelVideo(D))D.hidden=!0};
_.q.showCardWithIndex=function(D){if(D=this.getActiveReelVideo(D))D.hidden=!1};
_.q.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.q.activeChanged=function(D){_.b_().dispatch(_.hV({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:D}}));if(D)document.addEventListener("keydown",_.iK(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var t;(t=this.player)==null||t.sendAbandonmentPing()}var H;(H=this.player)==null||H.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.iK(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.q.graftClientVisualElements=function(){if(this.data){var D=_.Pc();_.jg6(D,_.Tf({response:this.reelWatchSequenceResponse}));_.A1(D,this.nextReelVe);_.A1(D,this.prevReelVe);_.r("kevlar_shorts_auto_advance")&&(_.A1(D,this.loopToggleOffVe),_.A1(D,this.loopToggleOnVe));_.A1(D,this.ambientModeToggleVe);_.zf(_.v3(),[this.nextReelVe,this.prevReelVe]);_.r("web_shorts_paused_state_logging")&&_.A1(D,this.reelPlayerPausedStateRendererVe)}};
_.q.graftNvcRenderer=function(){var D,t,H,e,V=this.index<0?(D=this.shortsProcessedPrevSequence)==null?void 0:(t=D[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:t.command:(H=this.shortsProcessedSequence)==null?void 0:(e=H[this.index])==null?void 0:e.command;if(V&&this.isNonVideoContentCommand(V)){D=_.O(V,_.qB);var b,a;(D=(b=_.O(D==null?void 0:D.renderer,_.Mtf))==null?void 0:(a=b.loggingDirectives)==null?void 0:a.trackingParams)&&_.Pc().graftServerVe(D)}};
_.q.setActiveIndex=function(){_.qS().resolve(_.uS).setActiveIndex(this.index)};
_.q.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.q.lazyUpdateMiniplayerData=function(){var D=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Jy.addLowPriorityJob(function(){D.updateMiniplayerData();D.updateMiniplayerDataJobId=void 0}))};
_.q.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Jy.cancelJob(this.updateMiniplayerDataJobId)};
_.q.updateMiniplayerData=function(){var D,t,H,e=_.qS().resolve(_.dL),V={shortsData:this.getCurrentShort(),previousButtonDisabled:!((D=this.prevButtonData)==null||!D.isDisabled),nextButtonDisabled:!((t=this.nextButtonData)==null||!t.isDisabled),playabilityStatus:(H=this.playerData)==null?void 0:H.playabilityStatus};_.K5(e,V)};
_.q.resetPlayerLocation=function(){var D=this.getPlayer();this.initialPlayerContainer&&D.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.q.movePlayerToVideo=function(D,t){var H=this;t=t===void 0?!0:t;var e=this.getActiveReelVideo(D),V=this.getPlayer();if(e){this.overlayContainer?e.appendChild(this.overlayContainer):(this.overlayContainer=_.Kg(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,e.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||V.appendTo(this.overlayContainer.playerContainer,void 0,!0));var b;(b=this.player)==null||b.setSize(NaN,NaN);this.isActive||_.C7(_.Jy,function(){H.isActive=
!0});
V.style.visibility="visible";_.r("reels_web_disable_rtr_tick")||_.r("reels_web_use_pbs_first_shorts")&&D===0||_.vh("r_tr");this.currentPlayerIndex=D;e.appendChild(this.errorScreenContainer);var a;(a=this.JSC$22365_cinematicController)==null||_.c37(a)}else t?_.Jy.addLowPriorityJob(function(){H.movePlayerToVideo(H.index,!1)}):Math.random()<=_.ZU("web_shorts_error_logging_threshold")&&_.Jp(new _.nZ("Trying to movePlayerToVideo with undefined container.",{firstAttempt:t,
index:D}))};
_.q.enableFormatFirst=function(D){return _.r("web_enable_format_first")||D.adsOverlay&&_.r("web_enable_format_first_ads_only")||D.reelPlayerOverlayRenderer&&_.r("web_enable_format_first_organic_only")};
_.q.getAspectRatio=function(D){if(this.enableFormatFirst(D))return(D==null?0:D.thumbnail)&&UwF(D.thumbnail)?"--ytd-shorts-player-ratio: "+UwF(D.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.q.getBackgroundImage=function(D){if(D!=null&&D.thumbnail)return(D=_.E7(D.thumbnail.thumbnails))?'background-image:url("'+D+'");':"background-color:black;"};
_.q.onPersistentPanelActiveChanged=function(){var D=this.getCurrentShort();if(D&&this.enableFormatFirst(D)&&(D==null?0:D.thumbnail)&&UwF(D.thumbnail)!==.5625){var t;(t=this.player)==null||t.setSize(NaN,NaN)}};
_.q.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.q.moveCinematicsToVideo=function(){var D=_.Kg(this.hostElement).querySelector("ytd-reel-video-renderer");(D==null?0:D.cinematicContainer)&&D.cinematicContainer!==this.shortsCinematicContainer.parentElement&&D.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.q.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.q.updatePrevButtonData=function(){var D=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(D){var t;this.prevButtonData=D=Object.assign({},D,{accessibility:{label:_.OT("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:D.isDisabled||this.index===-(((t=this.shortsProcessedPrevSequence)==null?void 0:t.length)||0),tooltip:this.isUpArrowHidden?"":_.OT("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=D=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.q.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.q.updateNextButtonData=function(){var D=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(D){var t;this.nextButtonData=D=Object.assign({},D,{accessibility:{label:_.OT("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:D.isDisabled||this.index===((t=this.shortsProcessedSequence)==null?void 0:t.length),tooltip:_.OT("NEXT_VIDEO_LABEL")||""})}};
_.q.getPlayablePreviousIndex=function(){for(var D,t=this.index-1;t>=-(((D=this.prevShortsSequence)==null?void 0:D.length)||0);t--)if(!gvY().includes(t))return t;return null};
_.q.getIndexInSequence=function(D,t){return D.findIndex(function(H){var e;return((e=_.O(H.command,_.C_))==null?void 0:e.videoId)===t})};
_.q.handlePrevButtonClick=function(D){var t=this,H,e;return _.Z(function(V){H=t.getPlayablePreviousIndex();if(H===null)return V.return();t.gestureType=((e=D)==null?void 0:e.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";H===0&&(t.hidePreviousButtonImmediately=!0);if(t.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){t.transitionToVideoThrottle.fire(H)}),V.return();
t.scrollToVideoThrottle.fire(H);_.n2(V)})};
_.q.getPlayableNextIndex=function(){for(var D,t=this.index+1;t<(((D=this.shortsProcessedSequence)==null?void 0:D.length)||0);t++)if(!gvY().includes(t))return t;return null};
_.q.handleNextButtonClick=function(D,t){var H=this,e,V;return _.Z(function(b){e=H.getPlayableNextIndex();if(e===null)return b.return();e===1&&(H.showPreviousButtonImmediately=!0);H.gestureType=((V=D)==null?void 0:V.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";t&&(H.gestureType=t);if(H.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){H.transitionToVideoThrottle.fire(e)}),b.return();
H.scrollToVideoThrottle.fire(e);_.n2(b)})};
_.q.handleReelNavigateCommand=function(D,t,H){(D=_.O(D,y3w))&&t&&D.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(H)};
_.q.loadVideo=function(D,t){t=t===void 0?!1:t;if(D!==this.currentPlayerIndex){_.b_().dispatch(vvA(!1));if(this.isAd()&&!t){var H;(H=this.player)==null||H.notifyShortsAdSwipeEvent()}if((t=this.JSC$22365_cinematicController)!=null){var e;(e=t.currentCinematicEffect)==null||e.pause()}if((e=this.JSC$22365_cinematicController)!=null){var V;(V=e.currentCinematicEffect)==null||V.clear()}e=D>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(e));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var b,a,w,h;V=D<0?(b=this.shortsProcessedPrevSequence)==null?void 0:(a=b[this.shortsProcessedPrevSequence.length+D])==null?void 0:a.command:(w=this.shortsProcessedSequence)==null?void 0:(h=w[D])==null?void 0:h.command;this.index=D;this.gestureType||(this.gestureType=e?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
V&&this.isVideoContentCommand(V)&&(this.ytComponentBehavior.resolveCommand(V,{form:{createScreenConfig:{clickedVisualElement:e?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(V&&this.isNonVideoContentCommand(V)){this.currentEndpoint=V;this.data=void 0;b=_.Pc();a=_.O(V,_.qB);var K,N;(a=(K=_.O(a==null?void 0:a.renderer,_.Mtf))==null?void 0:(N=K.screenLoggingData)==null?void 0:N.screenVeType)&&_.Li(b,a);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(K=this.getActiveReelVideo(D))&&K.appendChild(this.overlayContainer)}var k,T;if(((k=this.reelWatchSequenceResponse)==null?0:k.continuationEndpoint)&&((T=this.reelWatchSequenceResponse)==null?0:T.entries)&&D===this.reelWatchSequenceResponse.entries.length-1){var c,U;k={contentPlaybackContext:_.So({},(U=_.O((c=this.currentEndpoint)==null?void 0:c.commandMetadata,_.i1))==null?void 0:U.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:k})}var S,L,J;((S=this.reelWatchSequenceResponse)==null?0:S.prevContinuationEndpoint)&&D===-(((L=this.reelWatchSequenceResponse)==null?void 0:(J=L.prevEntries)==null?void 0:J.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.q.setMiniplayerPreview=function(D){D=(D===void 0?0:D)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var t,H,e=_.qS().resolve(_.dL),V={shortsData:void 0,shortsPreviewThumbnail:D?(t=this.shortsProcessedSequence)==null?void 0:(H=t[D])==null?void 0:H.thumbnail:void 0};_.K5(e,V)};
_.q.updateTitle=function(D){var t,H;D=(D==null?0:D.adSlots)?"":(H=D==null?void 0:(t=D.videoDetails)==null?void 0:t.title)!=null?H:"";_.Gf(this.hostElement,"yt-update-title",D)};
_.q.registerPanel=function(D){var t=_.qS().resolve(_.tr);if(t){D=_.F(D.engagementPanels||[]);for(var H=D.next();!H.done;H=D.next()){H=H.value;var e=this.getPanelContentIdentifier(H.engagementPanelSectionListRenderer),V=void 0,b=void 0;(b=(V=t).registerPanelContent)==null||b.call(V,e,H)}}};
_.q.getPanelIdentifier=function(D){var t;return(D==null?void 0:(t=D.identifier)==null?void 0:t.tag)||(D==null?void 0:D.panelIdentifier)||(D==null?void 0:D.targetId)};
_.q.getPanelContentIdentifier=function(D){var t;return(D==null?void 0:D.targetId)||(D==null?void 0:D.panelIdentifier)||(D==null?void 0:(t=D.identifier)==null?void 0:t.tag)};
_.q.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;_.b_().dispatch(vvA(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.b_().dispatch(YmE(!1));var D=_.qS().resolve(_.uS);D.dismissedIndices=[];D.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.qS().resolve(_.dL).close(!0)};
_.q.processAppendReelWatchSequenceContinuationEntriesAction=function(D){var t=this,H;(H=this.intersectionObserver)==null||H.disconnect();D=D.appendReelWatchSequenceContinuationEntriesAction;if(D==null?0:D.entries){var e;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.A6(((e=this.reelWatchSequenceResponse)==null?void 0:e.entries)||[]),_.A6(D.entries)),continuationEndpoint:D.continuationEndpoint})}else if(D==null?0:D.prevEntries){var V;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.A6(((V=this.reelWatchSequenceResponse)==null?void 0:V.prevEntries)||[]),_.A6(D.prevEntries)),prevContinuationEndpoint:D.prevContinuationEndpoint});_.Jy.addLowPriorityJob(function(){t.movePlayerToVideo(t.index);var b;(b=t.getActiveReelVideo(t.index))==null||b.scrollIntoView({block:"nearest",inline:t.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.Jy.addLowPriorityJob(function(){t.observeShorts()},100)};
_.q.processWatchSequence=function(D){var t=this;return D.map(function(H){H=H.command;if(t.isVideoContentCommand(H)){var e=_.O(H,_.C_);return{reelPlayerOverlayRenderer:_.O(e==null?void 0:e.overlay,_.Szn),thumbnail:e.thumbnail,command:H}}return t.isNonVideoContentCommand(H)?(e=_.O(H,_.qB),{reelNonVideoContentRenderer:_.O(e==null?void 0:e.renderer,_.Mtf),command:H}):{command:H}})};
_.q.calculateIntersectionObserverThreshold=function(){var D=_.Kg(this.hostElement).querySelector("ytd-reel-video-renderer"),t=1;(D==null?0:D.offsetHeight)&&(D==null?0:D.offsetWidth)&&(t=Math.min(D.offsetHeight,this.shortsContainer.offsetHeight)/D.offsetHeight*(Math.min(D.offsetWidth,this.shortsContainer.offsetWidth)/D.offsetWidth));return Math.round(t*.6*10)/10};
_.q.isVideoContentCommand=function(D){_.qS().resolve(_.uS);return!!_.O(D,_.C_)};
_.q.isNonVideoContentCommand=function(D){_.qS().resolve(_.uS);return!!_.O(D,_.qB)};
_.q.initCinematicController=function(){var D=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22365_cinematicController=new _.iB(this.shortsCinematicContainer,this.player);var t,H=_.O((t=this.data)==null?void 0:t.background,_.tx);_.ToA(this.JSC$22365_cinematicController,H);_.k4h(this.JSC$22365_cinematicController,r3U(H));_.NoE(this.JSC$22365_cinematicController);_.Jy.addLowPriorityJob(function(){D.moveCinematicsToVideo()})}};
_.q.handleMiniplayerNavigateShorts=function(D){D==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():D==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.q.handleSignalActionToggleShortsPictureInPicture=function(){if(_.qS().resolve(_.dL).pictureInPictureSupported()){var D=_.qS().resolve(_.uS);if(_.r("web_shorts_pip")){var t=_.qS().resolve(_.dL);D.isShortsPipActive()?t.deactivate():t.isMiniplayerActive()||(_.d3().shortsPipActivation=!0,_.$pY(t))}}else(D=this.player)==null||D.togglePictureInPicture()};
_.ql.Object.defineProperties(Me.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.reelWatchSequenceResponse)!=null&&D.prevEntries)return this.processWatchSequence([].concat(_.A6(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.r("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.A6(this.prevShortsSequence));var D=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!D)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var t=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.A6(this.prevShortsSequence.slice(0,t)),[D],_.A6(this.prevShortsSequence.slice(t+1)))}t=this.index+this.shortsProcessedPrevSequence.length;D.thumbnail=this.shortsProcessedPrevSequence[t].thumbnail;return[].concat(_.A6(this.shortsProcessedPrevSequence.slice(0,t)),[D],_.A6(this.shortsProcessedPrevSequence.slice(t+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.reelWatchSequenceResponse)!=null&&D.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var D=this;if(_.r("web_enable_shorts_sequence_refactor")){if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var t;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((t=this.shortsProcessedSequence)==null?void 0:t.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var H,e=_.O((H=this.firstShortsData)==null?void 0:H.command,_.C_);if(e==null||!e.videoId)return this.shortsProcessedSequence;
e=this.getIndexInSequence(this.shortsSequence,e.videoId);if(e!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=e,_.Jy.addLowPriorityJob(function(){D.transitionToVideoThrottle.fire(D.index);D.movePlayerToVideo(D.index)}));
return[].concat(_.A6(this.shortsSequence))}return[this.firstShortsData].concat(_.A6(this.shortsSequence))}}else if(this.data||this.shortsSequence){H=this.getCurrentShort();if(!H||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[H];if(H==null||!H.reelNonVideoContentRenderer)if(t=this.getIndexInSequence(this.shortsSequence,_.O(this.currentEndpoint,_.C_).videoId),this.index===0&&t!==-1)return this.currentPlayerIndex=this.index=t,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.A6(this.shortsSequence.slice(0,this.index)),[H],_.A6(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){H.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var V,b,a;t=((V=_.O((e=this.shortsProcessedSequence[0])==null?void 0:e.command,_.C_))==null?void 0:V.videoId)===((a=_.O((b=this.shortsSequence[0])==null?void 0:b.command,_.C_))==null?void 0:a.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.A6(this.shortsProcessedSequence.slice(0,
this.index)),[H],_.A6(this.shortsSequence.slice(t)))}return[H].concat(_.A6(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var D=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;D&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(D)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 D,t;return this.index===((D=this.reelWatchSequenceResponse)==null?void 0:(t=D.entries)==null?void 0:t.length)}var H;return!((H=this.reelWatchSequenceResponse)==null?0:H.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var D;(D=this.delayedActiveIndexUpdateDebouncer)==null||D.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return this.isShortPlayable()||((t=_.O((D=this.data)==null?void 0:D.watchStatus,_.vSQ))==null?void 0:(H=t.style)==null?void 0:H.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var D=this,t=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),H;if((this.data||t)&&(((H=this.data)==null?0:H.engagementPanels)||this.isAd()||t)){t=!1;this.activePanel="shorts-comments-panel";var e;H=_.F(((e=this.data)==null?void 0:e.engagementPanels)||[]);for(e=H.next();!e.done;e=H.next())if(this.getPanelIdentifier(e.value.engagementPanelSectionListRenderer)===this.activePanel){t=!0;break}if(this.isPersistentPanelActive){var V=
_.qS().resolve(_.tr);_.C7(_.Jy,function(){V.showPanel(D.activePanel,void 0,void 0,void 0,null)},100)}var b;
e=[].concat(_.A6(Object.values(((b=this.data)==null?void 0:b.engagementPanels)||{})));if(_.r("enable_preview_panel_for_shorts_search_suggested_action")){var a,w,h,K,N;((K=_.O((a=this.data)==null?void 0:(w=a.overlay)==null?void 0:(h=w.reelPlayerOverlayRenderer)==null?void 0:h.metapanel,_.mB4))==null?void 0:(N=K.metadataItems)==null?void 0:N.find(function(k){var T,c;return((T=_.O(k,DHM))==null?void 0:(c=T.icon)==null?void 0:c.iconType)==="SEARCH"}))!==void 0&&e.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}b=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);a=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return b===void 0&&a===void 0||(b==null?0:b.isDisabled)||(a==null?void 0:a.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!t?(t=e==null?void 0:e.findIndex(function(k){var T,
c;return((T=k.engagementPanelSectionListRenderer)==null?void 0:(c=T.identifier)==null?void 0:c.tag)==="shorts-comments-panel"}),t===-1||t===void 0||e!=null&&e.splice(t,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.OT("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.OT("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:_.OT("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.OT("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(_.A6(Object.values(e||
{})))):e}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.shortsProcessedSequence)==null?void 0:D[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var D=this,t,H,e;if((t=this.playerData)==null?0:(H=t.playabilityStatus)==null?0:(e=H.errorScreen)==null?0:e.playerInterstitialRenderer)return _.Jy.addLowPriorityJob(function(){D.movePlayerToVideo(D.index)}),this.playerData.playabilityStatus.errorScreen;
var V,b;return((V=this.data)==null?void 0:V.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((b=this.data)==null?0:b.watchStatus)&&_.O(this.data.watchStatus,_.scV)?(_.Jy.addLowPriorityJob(function(){D.movePlayerToVideo(D.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.ql.Object.defineProperties(Me,{template:{configurable:!0,enumerable:!0,get:function(){if(HeM===void 0){var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[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    <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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);HeM=D}D=HeM;return D}}});
Me.prototype.onNextButtonDataChange=Me.prototype.onNextButtonDataChange;Me.prototype.onPrevButtonDataChange=Me.prototype.onPrevButtonDataChange;Me.prototype.onPersistentPanelActiveChanged=Me.prototype.onPersistentPanelActiveChanged;Me.prototype.lazyUpdateMiniplayerData=Me.prototype.lazyUpdateMiniplayerData;Me.prototype.onShortsPipActiveChanged=Me.prototype.onShortsPipActiveChanged;Me.prototype.setActiveIndex=Me.prototype.setActiveIndex;Me.prototype.graftNvcRenderer=Me.prototype.graftNvcRenderer;
Me.prototype.graftClientVisualElements=Me.prototype.graftClientVisualElements;Me.prototype.onActiveChanged=Me.prototype.onActiveChanged;Me.prototype.onShortsDismiss=Me.prototype.onShortsDismiss;Me.prototype.onShortUndoDismiss=Me.prototype.onShortUndoDismiss;Me.prototype.playerDataChanged=Me.prototype.playerDataChanged;Me.prototype.afterPlayerStarted=Me.prototype.afterPlayerStarted;Me.prototype.updateReelWatchSequenceResponse=Me.prototype.updateReelWatchSequenceResponse;
Me.prototype.unhideCurrentOverlay=Me.prototype.unhideCurrentOverlay;Me.prototype.onServiceRequestCompleted=Me.prototype.onServiceRequestCompleted;Me.prototype.engagementPanelsChanged=Me.prototype.engagementPanelsChanged;Me.prototype.onFullscreenChange=Me.prototype.onFullscreenChange;Me.prototype.onResize=Me.prototype.onResize;Me.prototype.setFirstShortsData=Me.prototype.setFirstShortsData;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Me.prototype,"ytComponentBehavior",void 0);
_.d([_.C(_.bn.YtPageBehavior),_.x("design:type",Object)],Me.prototype,"ytPageBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Me.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.QI),_.x("design:type",Object)],Me.prototype,"ironResizableBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Me.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],Me.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Me.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Me.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"playerData",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"reelWatchSequenceResponse",void 0);
_.d([_.M(),_.x("design:type",Object)],Me.prototype,"cachedReelWatchSequenceResponse",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"cachedSequenceParams",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"cachedSequenceProvider",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"currentEndpoint",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"nextButtonData",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"prevButtonData",void 0);
_.d([_.M(),_.x("design:type",Object)],Me.prototype,"isPreviousPageShorts",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"index",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"delayedActiveIndex",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"playablePreviousIndex",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"player",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"isPlayerPaused",void 0);
_.d([_.M({selector:PaM}),_.x("design:type",Object)],Me.prototype,"isPlayerStarted",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"intersectionObserver",void 0);_.d([_.M(),_.x("design:type",Number)],Me.prototype,"cinematicsInitializeJobId",void 0);_.d([_.M(),_.x("design:type",Number)],Me.prototype,"updateMiniplayerDataJobId",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"fitToVisibleBounds",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"pageSubtype",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Me.prototype,"enablePreviousContinuation",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"shortsPipEnabled",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"isDark",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"shortsViewTransitions",void 0);
_.d([_.M({selector:_.wg,reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"isFullscreen",void 0);_.d([_.M({selector:_.ZT,reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"isShortsPipActive",void 0);_.d([_.o5("#shorts-inner-container"),_.x("design:type",HTMLElement)],Me.prototype,"shortsInnerContainer",void 0);_.d([_.o5("#back-nav-button ytd-button-renderer"),_.x("design:type",_.nc)],Me.prototype,"backNavButton",void 0);
_.d([_.o5("#shorts-container"),_.x("design:type",HTMLElement)],Me.prototype,"shortsContainer",void 0);_.d([_.pV("error-screen"),_.x("design:type",HTMLElement)],Me.prototype,"errorScreenContainer",void 0);_.d([_.pV("player"),_.x("design:type",Object)],Me.prototype,"playerElement",void 0);_.d([_.pV("shorts-cinematic-container"),_.x("design:type",HTMLElement)],Me.prototype,"shortsCinematicContainer",void 0);
_.d([_.pV("initial-player-container"),_.x("design:type",HTMLElement)],Me.prototype,"initialPlayerContainer",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"buttonOverride",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"anchoredPanelActive",void 0);_.d([_.M(),_.x("design:type",String)],Me.prototype,"activePanel",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"isActive",void 0);
_.d([_.M({selector:ovM,reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"smallScreenPersistentPanel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"isPersistentPanelActive",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"smallScreenSqueezeBack",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"enableScrollIntoViewCenter",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"formatFirst",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"enableFlexibleOverlay",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"extractOverlay",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Me.prototype,"useAspectRatio",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"panelContainer",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"overlayContainer",void 0);
_.d([_.M(),_.x("design:type",Object)],Me.prototype,"isShortsInitialized",void 0);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"firstShortsData",void 0);_.d([_.m("reelWatchSequenceResponse"),_.x("design:type",Object),_.x("design:paramtypes",[])],Me.prototype,"prevShortsSequence",null);_.d([_.m("data","prevShortsSequence"),_.x("design:type",Object),_.x("design:paramtypes",[])],Me.prototype,"shortsProcessedPrevSequence",null);
_.d([_.m("reelWatchSequenceResponse"),_.x("design:type",Object),_.x("design:paramtypes",[])],Me.prototype,"shortsSequence",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"setFirstShortsData",null);_.d([_.m("data","shortsSequence","firstShortsData"),_.x("design:type",Object),_.x("design:paramtypes",[])],Me.prototype,"shortsProcessedSequence",null);
_.d([_.M({reflectToAttribute:!0}),_.m("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Me.prototype,"isUpArrowHidden",null);_.d([_.M({reflectToAttribute:!0}),_.m("reelWatchSequenceResponse","index","endOfNextContinuation"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Me.prototype,"isDownArrowHidden",null);
_.d([_.M(),_.m("index"),_.x("design:type",Number),_.x("design:paramtypes",[])],Me.prototype,"activeIndex",null);_.d([_.m("isShortPlayable","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Me.prototype,"shouldRenderOfflineContent",null);_.d([_.rx("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"onResize",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Me.prototype,"anchoredEngagementPanels",null);
_.d([_.M(),_.x("design:type",Object)],Me.prototype,"watchWhileEngagementPanels",void 0);_.d([_.Os("isFullscreen"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"onFullscreenChange",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"engagementPanelsChanged",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],Me.prototype,"onServiceRequestCompleted",null);_.d([_.m("data","shortsSequence","index"),_.x("design:type",Object),_.x("design:paramtypes",[])],Me.prototype,"activeReel",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"unhideCurrentOverlay",null);
_.d([_.Os("currentEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"updateReelWatchSequenceResponse",null);_.d([_.Os("isPlayerStarted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"afterPlayerStarted",null);_.d([_.m("playerData","reelWatchSequenceResponse","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Me.prototype,"errorScreen",null);
_.d([_.m("errorScreen"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Me.prototype,"hasError",null);_.d([_.Os("playerData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],Me.prototype,"playerDataChanged",null);_.d([_.rx("yt-dismissible-item-undo-feedback"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"onShortUndoDismiss",null);
_.d([_.rx("yt-disable-lockup-interaction"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],Me.prototype,"onShortsDismiss",null);_.d([_.mx("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"onActiveChanged",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"graftClientVisualElements",null);
_.d([_.Os("currentPlayerIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"graftNvcRenderer",null);_.d([_.Os("index"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"setActiveIndex",null);_.d([_.Os("isShortsPipActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"onShortsPipActiveChanged",null);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"lazyUpdateMiniplayerData",null);_.d([_.M(),_.x("design:type",Object)],Me.prototype,"onOverlayDensityChanged",void 0);_.d([_.Os("isPersistentPanelActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"onPersistentPanelActiveChanged",null);
_.d([_.Os("index","data","isUpArrowHidden"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"onPrevButtonDataChange",null);_.d([_.Os("index","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Me.prototype,"onNextButtonDataChange",null);_.d([_.Y({is:"ytd-shorts"})],Me);_.gf.registerService(_.OHD,Me);
_.Je();
}catch(e){_._DumpException(e)}
try{
_.gV("JzFVk");
var kV7;var T61;var HG=function(){return _.X.apply(this,arguments)||this};
_.P(HG,_.X);HG.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
HG.prototype.computeBlueBottomLink=function(D){return D};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],HG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],HG.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],HG.prototype,"data",void 0);_.d([_.M({computed:"computeIcon_(data.bottomIcon)"}),_.x("design:type",String)],HG.prototype,"bottomIcon",void 0);
_.d([_.M({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.x("design:type",Boolean)],HG.prototype,"enableBlueBottomLink",void 0);_.d([_.Y({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],HG);
_.p(HG,"ytd-web-answer-renderer",function(){if(T61!==void 0)return T61;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return T61=D},{mode:_.Kz("kevlar_poly_si_batch_j035")?1:2});var cTh;var eO=function(){var D=_.X.apply(this,arguments)||this;D.hasChipBar=!1;return D};
_.P(eO,_.X);eO.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}}};
eO.prototype.computeHasChipBar=function(D){return!(D==null||!D.chipBar)};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],eO.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],eO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],eO.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.x("design:type",Object)],eO.prototype,"hasChipBar",void 0);_.d([_.Y({is:"ytd-search-header-renderer",disableElementRegistration:!0})],eO);
_.p(eO,"ytd-search-header-renderer",function(){if(cTh!==void 0)return cTh;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return cTh=D},{mode:1});var j$M;var Vn=function(){return _.X.apply(this,arguments)||this};
_.P(Vn,_.X);Vn.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Vn.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Vn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Vn.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-page-continuation"})],Vn);
_.p(Vn,"ytd-page-continuation",function(){if(j$M!==void 0)return j$M;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return j$M=D},{mode:1});var $u7;var iKM;var rTl;var OKM=function(){return _.X.apply(this,arguments)||this};
_.P(OKM,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],OKM.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],OKM.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],OKM);
_.p(OKM,"ytd-watch-card-one-vs-one-event",function(){if(rTl!==void 0)return rTl;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return rTl=D},{mode:1});var Uu7=function(){return _.X.apply(this,arguments)||this};
_.P(Uu7,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Uu7.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Uu7.prototype,"data",void 0);_.d([_.Y({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Uu7);
_.p(Uu7,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(iKM!==void 0)return iKM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return iKM=D},{mode:1});var o3F;var P8Y=function(){return _.X.apply(this,arguments)||this};
_.P(P8Y,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],P8Y.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],P8Y.prototype,"data",void 0);_.d([_.Y({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],P8Y);
_.p(P8Y,"ytd-banner-and-box-hero-image-renderer",function(){if(o3F!==void 0)return o3F;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return o3F=D},{mode:1});var n3h;var bB=function(){var D=_.X.apply(this,arguments)||this;D.modern=_.r("web_modern_buttons");return D};
_.P(bB,_.X);bB.prototype.computeIcon=function(){var D,t,H=(D=this.data)==null?void 0:(t=D.icon)==null?void 0:t.iconType;if(H)return _.cc(H)};
bB.prototype.computeButtonShape=function(){var D;return{buttonText:_.eo((D=this.data)==null?void 0:D.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.ql.Object.defineProperties(bB.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"}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],bB.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],bB.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],bB.prototype,"modern",void 0);_.d([_.M({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.m("data.style"),_.x("design:type",Object),_.x("design:paramtypes",[])],bB.prototype,"buttonColor",null);
_.d([_.Y({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],bB);
_.p(bB,"ytd-call-to-action-button-renderer",function(){if(n3h!==void 0)return n3h;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return n3h=D},{mode:1});var C8F;var qe=function(){return _.X.apply(this,arguments)||this};
_.P(qe,_.X);qe.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Kg(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.G3(this.data.leftThumbnail.thumbnails,216)+")")};
qe.prototype.onLeftThumbnailChanged=qe.prototype.onLeftThumbnailChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],qe.prototype,"data",void 0);_.d([_.Os("data.leftThumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qe.prototype,"onLeftThumbnailChanged",null);_.d([_.Y({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],qe);
_.p(qe,"ytd-collage-hero-image-renderer",function(){if(C8F!==void 0)return C8F;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return C8F=D},{mode:1});var muE;var FY=function(){return _.X.apply(this,arguments)||this};
_.P(FY,_.X);FY.prototype.computeStyle=function(D){return D};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],FY.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],FY.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.x("design:type",String)],FY.prototype,"componentStyle",void 0);_.d([_.Y({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],FY);
_.p(FY,"ytd-single-hero-image-renderer",function(){if(muE!==void 0)return muE;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return muE=D},{mode:1});var MV7;var aU=function(){return _.X.apply(this,arguments)||this};
_.P(aU,_.X);_.q=aU.prototype;
_.q.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:_.r("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.q.computeSubtitle=function(D){if(this.data){var t;if(this.data.upcomingEventData){D=_.eo(D.subtitle);var H=Number(this.data.upcomingEventData.startTime);isNaN(H)||(t=_.H7(_.Sd(D,H)))}else t=D.subtitle;return t}};
_.q.onHeroTap=function(D){D.preventDefault();var t=this.data&&this.data.navigationEndpoint;!t||!_.ed(_.bK(D),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.ed(_.bK(D),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.r("kevlar_watchcard_hero_video_renderer_killswitch")?_.Gf(this.hostElement,"yt-navigate",{navigationEndpoint:t}):this.ytComponentBehavior.resolveCommand(t))};
_.q.computeHeroTabIndex=function(D){return D&&D.simpleText?-1:0};
_.q.computeHeroRole=function(D){return D&&D.simpleText?"":"link"};
_.q.computeIsReminderButtonPresent=function(D){return!(!D||!D.reminderButton)};
_.q.computeHideBottomItems=function(D){return!(this.computeIsReminderButtonPresent(D)||D.subtitle)};
_.q.dataChanged=function(){var D=this.get("data.buttons.buttonRenderer.serviceEndpoint"),t;((t=_.O(D==null?void 0:D.commandMetadata,_.uq))==null?0:t.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(D)};
aU.prototype.dataChanged=aU.prototype.dataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],aU.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],aU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],aU.prototype,"data",void 0);
_.d([_.M({computed:"computeSubtitle(data)"}),_.x("design:type",String)],aU.prototype,"subtitle",void 0);_.d([_.M({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],aU.prototype,"isReminderButtonPresent",void 0);_.d([_.M({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],aU.prototype,"hideBottomItems",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aU.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],aU);
_.p(aU,"ytd-watch-card-hero-video-renderer",function(){if(MV7!==void 0)return MV7;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return MV7=D},{mode:1});var SDd;var wD=function(){return _.X.apply(this,arguments)||this};
_.P(wD,_.X);_.q=wD.prototype;_.q.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"}}}};
_.q.computeTitleBadges=function(D){return D?[D]:[]};
_.q.computeHeaderStyle=function(D){return D?D.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.q.computeAvatarAriaLabel=function(D){if(D){var t,H,e,V;return(V=(t=D.avatar)==null?void 0:(H=t.accessibility)==null?void 0:(e=H.accessibilityData)==null?void 0:e.label)!=null?V:_.eo(D==null?void 0:D.title)}};
_.q.computeAvatarHeight=function(D){return D==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.q.computeBadgeRowClass=function(D){return(D==null?0:D[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],wD.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],wD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],wD.prototype,"data",void 0);_.d([_.M({computed:"computeTitleBadges(data.titleBadge)"}),_.x("design:type",Array)],wD.prototype,"titleBadges",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.x("design:type",String)],wD.prototype,"headerStyle",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.x("design:type",String)],wD.prototype,"badgeRowClass",void 0);_.d([_.Y({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],wD);
_.p(wD,"ytd-watch-card-rich-header-renderer",function(){if(SDd!==void 0)return SDd;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return SDd=D},{mode:1});var XkF;var fVU;var Zz=function(){return _.X.apply(this,arguments)||this};
_.P(Zz,_.X);Zz.prototype.onMetadataTap=function(D){var t=this.data&&this.data.navigationEndpoint;t&&!_.ed(_.bK(D),this.hostElement,["A".toString()])&&_.Gf(this.hostElement,"yt-navigate",{endpoint:t})};
_.ql.Object.defineProperties(Zz.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 D;if(this.data.upcomingEventData){var t=_.eo(this.data.subtitle),H=Number(this.data.upcomingEventData.startTime);isNaN(H)||(D=_.H7(_.Sd(t,H)))}else D=this.data.subtitle;return D}}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Zz.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data.style"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Zz.prototype,"isCondensed",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Zz.prototype,"subtitle",null);
_.d([_.Y({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],Zz);
_.p(Zz,"ytd-watch-card-compact-video-renderer",function(){if(fVU!==void 0)return fVU;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return fVU=D},{mode:1});var LDU;var ATU=function(){return _.X.apply(this,arguments)||this};
_.P(ATU,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ATU.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ATU.prototype,"data",void 0);_.d([_.Y({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],ATU);
_.p(ATU,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(LDU!==void 0)return LDU;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return LDU=D},{mode:1});var sZ=function(){return _.X.apply(this,arguments)||this};
_.P(sZ,_.X);sZ.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}}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],sZ.prototype,"ytRendererStamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],sZ.prototype,"data",void 0);_.d([_.Y({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],sZ);
_.p(sZ,"ytd-vertical-watch-card-list-renderer",function(){if(XkF!==void 0)return XkF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return XkF=D},{mode:1});var g3M;var hw=function(){var D=_.X.apply(this,arguments)||this;D.ariaExpanded="false";return D};
_.P(hw,_.X);_.q=hw.prototype;_.q.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.q.dataChanged=function(){var D;this.currentSeasonIndex=((D=this.data)==null?void 0:D.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.q.computeEpisodesInfo=function(D,t,H){if(D!==void 0&&t.length===D.length)return D[H]};
_.q.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.q.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.q.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.q.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.q.getUppercaseSimpleString=function(D){return this.ytRendererBehavior.getSimpleString(D).toUpperCase()};
_.q.updateCurrentSeasonIndexFromBinding=function(D){this.currentSeasonIndex=D.detail.value};
hw.prototype.onIronOverlayClosed=hw.prototype.onIronOverlayClosed;hw.prototype.currentSeasonIndexChanged=hw.prototype.currentSeasonIndexChanged;hw.prototype.dataChanged=hw.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],hw.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],hw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],hw.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",String)],hw.prototype,"label",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],hw.prototype,"currentSeasonIndex",void 0);_.d([_.M({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.x("design:type",Object)],hw.prototype,"episodesInfo",void 0);_.d([_.M({value:"false"}),_.x("design:type",Object)],hw.prototype,"ariaExpanded",void 0);_.d([_.o5("#lists"),_.x("design:type",Object)],hw.prototype,"lists",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hw.prototype,"dataChanged",null);_.d([_.mx("currentSeasonIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hw.prototype,"currentSeasonIndexChanged",null);_.d([_.rx("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],hw.prototype,"onIronOverlayClosed",null);
_.d([_.Y({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],hw);
_.p(hw,"ytd-watch-card-section-dropdown-renderer",function(){if(g3M!==void 0)return g3M;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return g3M=D},{mode:1});var JTM;var Gv=function(){var D=_.X.apply(this,arguments)||this;D.isSearch=!1;return D};
_.P(Gv,_.X);Gv.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}}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Gv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Gv.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Gv.prototype,"isSearch",void 0);_.d([_.Y({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Gv);
_.p(Gv,"ytd-watch-card-section-sequence-renderer",function(){if(JTM!==void 0)return JTM;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
return JTM=D},{mode:1});var YDU=_.l(function(D){return _.G("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.G(_.P5,{data:function(){return D.data().ctaButton}},{buttonViewModel:_.JX}),_.G(_.$7,{text:function(){return D.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Vl");
YDU.idomCompat=!0;_.hB(YDU,"ytd-button-banner-view-model",{props:{data:_.ij}});var EZ=function(){var D=_.X.apply(this,arguments)||this;D.isSearch=!1;return D};
_.P(EZ,_.X);
EZ.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"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],EZ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],EZ.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],EZ.prototype,"rounded",void 0);_.d([_.M(),_.x("design:type",Object)],EZ.prototype,"isSearch",void 0);
_.d([_.Y({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],EZ);
_.p(EZ,"ytd-universal-watch-card-renderer",function(){if($u7!==void 0)return $u7;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return $u7=D},{mode:1});var lVY;_.hB(_.l(function(D){var t=D.data;var H;D=!((H=_.qS().resolve(_.by(_.tB)))==null||!H());H={};return _.G("overview-message-view-model",{class:_.jQ("ytwOverviewMessageViewModelHost",(H.ytwOverviewMessageViewModelDarkBackground=D,H.ytwOverviewMessageViewModelLightBackground=!D,H))},_.G(_.E,{cond:function(){return t().primaryImage},
then:function(e){return _.G(_.bi,{data:e,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.G(_.E,{cond:function(){return t().primaryText},
then:function(){return _.G("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.G(_.$7,{text:function(){return t().primaryText}}))}}),_.G(_.E,{cond:function(){return t().secondaryText},
then:function(){return _.G("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.G(_.$7,{text:function(){return t().secondaryText}}))}}))},"Wl"),"overview-message-view-model",{props:{data:_.ij}});_.hB(_.VOo,"ytd-overview-answer-view-model",{props:{data:_.ij}});var Kd=function(){return _.X.apply(this,arguments)||this};
_.P(Kd,_.X);Kd.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"}}}};
Kd.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Kd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Kd.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.T_),_.x("design:type",Object)],Kd.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Kd.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Kd.prototype,"isSearch",void 0);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],Kd);
_.p(Kd,"ytd-secondary-search-container-renderer",function(){if(lVY!==void 0)return lVY;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
return lVY=D},{mode:1});var v3A;var Ne=function(){var D=_.X.apply(this,arguments)||this;D.renderSecondarySearchContainer=!1;D.isSearch=!1;return D};
_.P(Ne,_.X);_.q=Ne.prototype;_.q.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.q.created=function(){var D=this;this.boundStampSecondarySearchContainerIfFits=function(){D.stampSecondarySearchContainerIfFits()};
_.JZ("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.q.computeIsSearchFrictionPage=function(D){var t,H,e,V,b;D=D==null?void 0:(t=D.primaryContents)==null?void 0:(H=t.sectionListRenderer)==null?void 0:(e=H.contents)==null?void 0:(V=e[0])==null?void 0:(b=V.itemSectionRenderer)==null?void 0:b.contents;if(!D)return!1;t=_.F(D);for(H=t.next();!H.done;H=t.next())if(e=void 0,(e=H.value)==null?0:e.searchFrictionViewModel)return!0;return!1};
_.q.computeShowSecondaryColumn=function(D,t){return!!(t&&t.secondaryContents&&D)};
_.q.activeChanged=function(){var D=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.iK(this,this.debounceStampSecondarySearchContainerIfFits)),_.BT(function(){D.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.iK(this,this.debounceStampSecondarySearchContainerIfFits))};
_.q.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.q.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.q.debounceStampSecondarySearchContainerIfFits=function(){_.z1(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.q.onRetrieveLocation=function(D,t){t.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);D.stopPropagation()};
_.q.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
Ne.prototype.dataChanged=Ne.prototype.dataChanged;Ne.prototype.onRetrieveLocation=Ne.prototype.onRetrieveLocation;Ne.prototype.persistentGuideChanged=Ne.prototype.persistentGuideChanged;Ne.prototype.activeChanged=Ne.prototype.activeChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Ne.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.C(_.QI),_.x("design:type",Object)],Ne.prototype,"ironResizableBehavior",void 0);_.d([_.M(),_.x("design:type",Boolean)],Ne.prototype,"active",void 0);_.d([_.M(),_.x("design:type",Object)],Ne.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.r("enable_desktop_search_bigger_thumbs")}}),
_.x("design:type",Boolean)],Ne.prototype,"useBiggerThumbs",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.sa("desktop_search_bigger_thumbs_style")}}),
_.x("design:type",String)],Ne.prototype,"biggerThumbsStyle",void 0);_.d([_.M(),_.x("design:type",Object)],Ne.prototype,"renderSecondarySearchContainer",void 0);_.d([_.M({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.x("design:type",Boolean)],Ne.prototype,"showSecondaryColumn",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.x("design:type",Boolean)],Ne.prototype,"isSearchFrictionPage",void 0);
_.d([_.M(),_.x("design:type",Object)],Ne.prototype,"isSearch",void 0);_.d([_.Os("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ne.prototype,"activeChanged",null);_.d([_.Os("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ne.prototype,"persistentGuideChanged",null);
_.d([_.rx("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Ne.prototype,"onRetrieveLocation",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ne.prototype,"dataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],Ne);
_.p(Ne,"ytd-two-column-search-results-renderer",function(){if(v3A!==void 0)return v3A;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return v3A=D},{mode:1});var kt=function(){var D=_.X.apply(this,arguments)||this;D.hasSearchHeader=!1;D.hasSecondaryContent=!1;D.hasBiggerThumbs=_.r("enable_desktop_search_bigger_thumbs");D.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return D};
_.P(kt,_.X);_.q=kt.prototype;_.q.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:_.jl(["aa","eocs"])}}};
_.q.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.q.loadPage_=function(D){this.initCsi();D&&(this.data=D,_.JZ("REFINEMENTS_TUPLE",["FromSearchResponse",D.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.tp(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.q.initCsi=function(){_.V7("results",["ol","cpt"])};
_.q.updateTitle=function(){var D=_.uz(window.location.href,"q");D||(D=_.uz(window.location.href,"search_query"));_.Gf(this.hostElement,"yt-update-title",D||"")};
_.q.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.q.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.r("web_srp_data_changed_terminate_imp_killswitch")||_.ET(this.hostElement,"yt-terminate-video-preview-action")};
_.q.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.q.computeHasSearchHeader=function(D){var t;D=D==null?void 0:(t=D.header)==null?void 0:t.searchHeaderRenderer;return!!D&&(!!D.searchFilterButton||!!D.chipBar)};
_.q.computeHasSecondaryContent=function(D){var t,H;return!!(D==null?0:(t=D.contents)==null?0:(H=t.twoColumnSearchResultsRenderer)==null?0:H.secondaryContents)};
_.ql.Object.defineProperties(kt,{template:{configurable:!0,enumerable:!0,get:function(){if(kV7===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);kV7=D}D=kV7;return D}}});
kt.prototype.onReloadContinuationFinish=kt.prototype.onReloadContinuationFinish;kt.prototype.dataChanged=kt.prototype.dataChanged;_.d([_.C(_.bn.YtPageBehavior),_.x("design:type",Object)],kt.prototype,"ytPageBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],kt.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],kt.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],kt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.T_),_.x("design:type",Object)],kt.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],kt.prototype,"data",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],kt.prototype,"monitorScroll",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kt.prototype,"hasSearchHeader",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kt.prototype,"hasSecondaryContent",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kt.prototype,"hasBiggerThumbs",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kt.prototype,"dataChanged",null);
_.d([_.rx("yt-reload-continuation-finish"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kt.prototype,"onReloadContinuationFinish",null);_.d([_.Y({is:"ytd-search"})],kt);_.gf.registerService(_.rx3,kt);
_.Je();
}catch(e){_._DumpException(e)}
try{
_.gV("h8y2qb");
var o2Z=function(D){if(D=_.IbK(D)){var t;(t=D.sources)!=null&&t[0]?(t=_.yaA(D),t=t<1?"VERTICAL":t>1?"HORIZONTAL":"SQUARE"):t=void 0;return t}},qR=function(D){_.YY.call(this,"upload");
this.opts.query=D},n2F=function(D,t){return _.G(PCQ,{data:D,
onYtNavigate:t})},CCg=function(D,t){return _.jR(D.entities,"pageHeaderEntity",t)},MyY=function(D,t){return D.map(function(H){if(H.tabRenderer)return mZH(H.tabRenderer);
if(H.expandableTabRenderer&&t){var e=H.expandableTabRenderer;return{customTabRenderable:function(){return t(e)}}}return{}})},mZH=function(D){return{identifier:D.tabIdentifier,
aTagConfig:_.uf({innertubeCommand:D.endpoint,forceNewState:!0}),title:D.title,selected:D.selected,disabled:D.unselectable,icon:D.icon}},Slg=function(D){return _.hV({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:D})},X0e=function(D){if(!_.wF(document,"gtm-noscript")){var t=document.createElement("noscript");
t.id="gtm-noscript";t.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+D+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(t)}};_.Zj(qR,_.YY);qR.prototype.JSC$10078_setLabel=function(D){qR.superClass_.JSC$10078_setLabel.call(this,D);return this};
qR.prototype.addUploadMetadata=function(D,t){qR.superClass_.addUploadMetadata.call(this,D,t);return this};var f$4=function(D){if(D!=="youtubebanner"&&D!=="youtube-channel-banner")throw Error("Fo");qR.call(this,D)};
_.P(f$4,qR);f$4.prototype.JSC$10078_setLabel=function(D){qR.prototype.JSC$10078_setLabel.call(this,D);return this};
f$4.prototype.addUploadMetadata=function(D,t){qR.prototype.addUploadMetadata.call(this,D,t);return this};var LBb=[_.QI,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(D){_.Xu(D).path[0]!==this&&(this.resetLayout(),D.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var D=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.oc(this._layoutDebouncer,_.Lz,D);_.Pb(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var D=this;requestAnimationFrame(function(){D.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(D){this.resizerShouldNotify(D)&&this._notifyDescendant(D)},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 AOg=[_.Fc4,{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(D,t){var H=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[D];if(!H)throw new ReferenceError(this._getUndefinedMsg(D));D=this._boundEffect(H,t||{});D.setUp();return D},
_effectsChanged:function(D,t,H){this._tearDownEffects();D&&H&&(D.split(" ").forEach(function(e){var V;e!==""&&((V=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[e])?this._effects.push(this._boundEffect(V,t[e])):console.warn(this._getUndefinedMsg(e)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(D,t){t=t||{};var H=parseFloat(t.startsAt||0),e=parseFloat(t.endsAt||1),V=e-H,b=function(){};
e=H===0&&e===1?D.run:function(a,w){D.run.call(this,Math.max(0,(a-H)/V),w)};
return{setUp:D.setUp?D.setUp.bind(this,t):b,run:D.run?e.bind(this):b,tearDown:D.tearDown?D.tearDown.bind(this):b}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(D){D.setUp()!==!1&&this._effectsRunFn.push(D.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(D){D.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(D,t){this._effectsRunFn&&this._effectsRunFn.forEach(function(H){H(D,t)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var D=this._clampedScrollTop;this._updateScrollState(D);this.threshold>0&&this._setThresholdTriggered(D>=this.threshold)}},
_getDOMRef:function(D){console.warn("_getDOMRef","`"+D+"` is undefined")},
_getUndefinedMsg:function(D){return"Scroll effect `"+D+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+D+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Go`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(D){var t={};D=parseFloat(D.scalar);t.background=this._getDOMRef("background");t.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");t.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");t.deltaBg=t.backgroundFrontLayer.offsetHeight-t.background.offsetHeight;t.deltaBg===0?(isNaN(D)&&(D=.8),t.deltaBg=(this._dHeight||0)*D):(isNaN(D)&&(D=
1),t.deltaBg*=D);this._fxParallaxBackground=t},
run:function(D){var t=this._fxParallaxBackground;this.transform("translate3d(0px, "+t.deltaBg*Math.min(1,D)+"px, 0px)",t.backgroundFrontLayer);t.backgroundRearLayer&&this.transform("translate3d(0px, "+t.deltaBg*Math.min(1,D)+"px, 0px)",t.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var g2Z;var JOF;var YlF=function(){};
_.q=YlF.prototype;_.q._scrollTargetChanged=function(){};
_.q.scroll=function(){};
_.q._isValidScrollTarget=function(){};
_.q._toggleScrollListener=function(){};
_.q.toggleScrollListener=function(){};
_.q.createEffect=function(){};
_.q._effectsChanged=function(){};
_.q._layoutIfDirty=function(){};
_.q._boundEffect=function(){};
_.q._setUpEffect=function(){};
_.q._tearDownEffects=function(){};
_.q._runEffects=function(){};
_.q._scrollHandler=function(){};
_.q._scrollStateChanged=function(){};
_.q._getUndefinedMsg=function(){};
_.q.notifyResize=function(){};
_.q.assignParentResizable=function(){};
_.q.stopResizeNotificationsFor=function(){};
_.q._subscribeIronResize=function(){};
_.q._unsubscribeIronResize=function(){};
_.q.resizerShouldNotify=function(){};
_.q._onDescendantIronResize=function(){};
_.q._fireResize=function(){};
_.q._onIronRequestResizeNotifications=function(){};
_.q._parentResizableChanged=function(){};
_.q._notifyDescendant=function(){};
_.q._requestResizeNotifications=function(){};
_.q._findParent=function(){};
_.q._appResetLayoutHandler=function(){};
_.q.resetLayout=function(){};
_.q._notifyLayoutChanged=function(){};
_.q._notifyDescendantResize=function(){};
_.q._setThresholdTriggered=function(){};
YlF=_.gx({_template:function(){if(JOF!==void 0)return JOF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;g2Z===void 0&&(g2Z=document.createElement("template"));var e=g2Z;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return JOF=D},
is:"tp-yt-app-header",behaviors:[AOg,LBb],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 D=_.Xu(this.$.slot).getDistributedNodes(),t=0,H;H=D[t];t++)if(H.nodeType===Node.ELEMENT_NODE)if(H.hasAttribute("sticky")){this._stickyElRef=H;break}else this._stickyElRef||(this._stickyElRef=H);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var D=this._clampedScrollTop,t=this._height===0||D===0,H=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;t||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();t?this._updateScrollState(D,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=H}},
_updateScrollState:function(D,t){if(this._height!==0){var H=0,e=this._top;var V=this._maxHeaderTop;var b=D-this._lastScrollTop,a=Math.abs(b),w=D>this._lastScrollTop,h=performance.now();this._mayMove()&&(H=this._clamp(this.reveals?e+b:D,0,V));D>=this._dHeight&&(H=this.condenses&&!this.fixed?Math.max(this._dHeight,H):H,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&a<100){if(h-this._initTimestamp>300||this._wasScrollingDown!==w)this._initScrollTop=D,this._initTimestamp=h;D>=V&&
(Math.abs(this._initScrollTop-D)>30||a>10?(w&&D>=V?H=V:!w&&D>=this._dHeight&&(H=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((H-e)/(b/(h-this._lastTimestamp)),0,300)+"ms"):H=this._top)}V=this._dHeight===0?D>0?1:0:H/this._dHeight;t||(this._lastScrollTop=D,this._top=H,this._wasScrollingDown=w,this._lastTimestamp=h);if(t||V!==this._progress||e!==H||D===0)this._progress=V,this._runEffects(V,H),this._transformHeader(H)}},
_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(D){this.translate3d(0,-D+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&D>=this._stickyElTop?Math.min(D,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(D,t,H){return Math.min(H,Math.max(t,D))},
_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),_.Xu(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(D){switch(D){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.Xu(this).querySelector("[main-title]");case "condensedTitle":return _.Xu(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var l$b;var v2v;_.gx({_template:function(){if(v2v!==void 0)return v2v;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;l$b===void 0&&(l$b=document.createElement("template"));var e=l$b;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return v2v=D},
is:"tp-yt-app-header-layout",behaviors:[LBb],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.Xu(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var D=this.header;if(this.isAttached&&D){this.$.wrapper.classList.remove("initializing");D.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)D.style.left=
"",D.style.right="";else{var t=this.getBoundingClientRect(),H=document.documentElement.clientWidth-t.right;D.style.left=t.left+"px";D.style.right=H+"px"}t=this.$.contentContainer.style;H=D.offsetHeight;D.fixed&&!D.condenses&&this.hasScrollingRegion?(t.marginTop=H+"px",t.paddingTop=""):(t.paddingTop=H+"px",t.marginTop="")}}});var p0H=new _.NM("alertCommand");var dZO=new _.NM("manageLabsStateCommand");var xZZ=new _.NM("inlineFormRenderer");var RbY=new _.NM("playlistSidebarPrimaryInfoRenderer");var uP4=new _.NM("productDetailsThumbnailRenderer"),WBZ=new _.NM("productDetailsVariantRenderer"),I$F=new _.NM("productDetailsVariantOptionRenderer"),QLF=new _.NM("productDetailsOffersContainerRenderer"),yOt=new _.NM("productDetailsOfferRenderer");var BzF=new _.NM("shoppingFlaggingRenderer");var zb4=new _.NM("playlistBylineRenderer");var DvF=new _.NM("insertChannelTabCommand");var FE=function(){return _.ng.apply(this,arguments)||this};
_.P(FE,_.ng);_.q=FE.prototype;_.q.activeChanged=function(){if(this.active){var D=_.Kg(this.hostElement).querySelector("#header");D&&_.Gf(D,"iron-resize");window.addEventListener("scroll",_.iK(this,this.onScroll))}else window.removeEventListener("scroll",_.iK(this,this.onScroll)),_.Gf(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.q.guideVisibleChanged=function(){var D=_.Kg(this.hostElement).querySelector("#header");D&&_.Gf(D,"iron-resize")};
_.q.onScroll=function(){var D=this;_.z1(this,"onScroll",function(){var t=_.Kg(D.hostElement).querySelector("#header");t&&t.polymerController&&(t=t.polymerController.getScrollState().progress===1?"standard":"seamed",_.Gf(D.hostElement,"yt-request-panel-mode-change",{mode:t}))},10)};
_.q.tabsChanged=function(){if(this.tabs){for(var D=null,t=0,H=this.tabs.length;t<H;++t){var e=this.tabs[t].tabRenderer;if(e&&e.selected){D=t;break}}this.selected=D}};
_.q.onTabsActivate=function(D){_.Gf(this.hostElement,"yt-navigate",{endpoint:this.tabs[D.detail.selected].tabRenderer.endpoint})};
FE.prototype.tabsChanged=FE.prototype.tabsChanged;FE.prototype.guideVisibleChanged=FE.prototype.guideVisibleChanged;FE.prototype.activeChanged=FE.prototype.activeChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],FE.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],FE.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.M(),_.x("design:type",Array)],FE.prototype,"tabs",void 0);
_.d([_.M(),_.x("design:type",Object)],FE.prototype,"selected",void 0);_.d([_.M(),_.x("design:type",Boolean)],FE.prototype,"active",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],FE.prototype,"disableHeaderFluidWidth",void 0);_.d([_.Os("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FE.prototype,"activeChanged",null);
_.d([_.Os("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FE.prototype,"guideVisibleChanged",null);_.d([_.Os("tabs"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],FE.prototype,"tabsChanged",null);_.d([_.Cg()],FE);var tSQ=[_.y.YtRendererBehavior,_.kn.YtdGuideStateAwareBehavior,FE.prototype];var Htb=2/3,eCb=_.Nx(130749),VSF=function(D,t){var H=this;this.element=D;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){H.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:Htb,moveAction:function(e){H.moveAction(e)},
triggerAction:function(){H.element.isReloading=!0;_.IH(_.Pc(),{visualElement:eCb});_.$P.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:H.element}})}}}};
_.g3(_.Pc(),eCb,this.layer);this.gesture=new _.AY(D,t,this.refreshConfig,"pan-down");this.attach()};
_.q=VSF.prototype;_.q.attach=function(){this.gesture.attach()};
_.q.detach=function(){this.gesture.detach()};
_.q.reset=function(){this.element.close()};
_.q.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.q.moveAction=function(D){this.element.rotation=D*360};var bti=_.Nx(130750),FkZ=function(D,t,H,e,V){var b=this;this.element=D;this.parent=H;this.channelHeader=e;this.ytdReduxDispatch=V;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){b.tabsStartAtInPx=b.channelHeader.clientHeight-48;var a;(a=b.selectedTab)!=null&&a.title&&(a=_.qS().resolve(_.by(_.bO)))&&(a=a.getCurrentPage(),b.lastVisitedTabScrollPosition=a.getScrollTop(),b.previousTab&&
((b.lastVisitedTabScrollPosition===void 0?0:b.lastVisitedTabScrollPosition<b.channelHeader.clientHeight-48)?b.scrollPositionForTabs.has(b.selectedTab.title)&&b.scrollPositionForTabs.delete(b.selectedTab.title):b.scrollPositionForTabs.set(b.selectedTab.title,a.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:q1b(),triggerAction:function(){b.navigate(b.previousTab)},
moveAction:function(a,w){b.moveAction(a,w)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-q1b(),triggerAction:function(){b.navigate(b.nextTab)},
moveAction:function(a,w){b.moveAction(a,w)}}}};
_.g3(_.Pc(),bti,this.layer);this.gesture=new _.AY(D,t,this.tabConfig);this.attach()};
_.q=FkZ.prototype;_.q.attach=function(){this.gesture.attach()};
_.q.detach=function(){this.gesture.detach()};
_.q.tabsChanged=function(D){if(D){var t=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;D=_.F(D);for(var H=D.next();!H.done;H=D.next()){H=H.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=H);var e=void 0;if((e=H)==null?0:e.selected)this.previousTab=t,this.selectedTab=H;t=H}t=this.gesture;D=this.getConfig();t.config=D;this.scrollPositionNeedsUpdate=!0}};
_.q.getConfig=function(){return this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}})};
_.q.moveAction=function(D,t){if(!this.tabsElement){var H;this.tabsElement=(H=this.parent.header)==null?void 0:H.tabsElement;t==="right"&&this.previousTab?_.K5f(_.Im.instance,this.previousTab.endpoint,{},""):t==="left"&&this.nextTab&&_.K5f(_.Im.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}H=this.tabsElement._pos;t==="right"&&(D*=-1);this.tabsElement._positionBar(H.width,H.left*1+H.width*D)};
var q1b=function(){var D,t;return(t=(D=_.qS().resolve(_.bO).getCurrentPage())==null?void 0:D.clientWidth)!=null?t:0};
FkZ.prototype.navigate=function(D){this.element.data=void 0;if(D=D==null?void 0:D.endpoint)this.ytdReduxDispatch(Slg(!0)),_.IH(_.Pc(),{visualElement:bti}),_.$P.instance.resolveCommand({navigateAction:{endpoint:D}},{form:{element:this.element}})};var aFH;var wdO;var ae=function(){return _.X.apply(this,arguments)||this};
_.P(ae,_.X);ae.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ae.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ae.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ae.prototype,"data",void 0);_.d([_.Y({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],ae);
_.p(ae,"ytd-labs-edit-renderer",function(){if(wdO!==void 0)return wdO;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return wdO=D},{mode:1});var Ztt;var wX=function(){var D=_.X.apply(this,arguments)||this;D.dark=!1;D.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";D.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.P(wX,_.X);wX.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
wX.prototype.ready=function(){var D=document.documentElement.hasAttribute("dark");this.setBackgroundImage(D);this.dark=D};
wX.prototype.onDarkModeToggledAction=function(D){this.setBackgroundImage(D);this.dark=D};
wX.prototype.setBackgroundImage=function(D){_.jZ(this.hostElement,{"--yt-labs-header-background":"url("+(D?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],wX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],wX.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],wX.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],wX.prototype,"dark",void 0);
_.d([_.Y({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],wX);
_.p(wX,"ytd-labs-header-renderer",function(){if(Ztt!==void 0)return Ztt;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Ztt=D},{mode:1});var s74;var Za=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return D};
_.P(Za,_.X);Za.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"}}}}}};
Za.prototype.onYtToggleButton=function(D){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",D.detail.toggled)};
Za.prototype.onManageLabsState=function(D){if(D=_.O(D,dZO))D.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?D.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&D.labsItemId===this.data.labsItemId&&(D.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.ET(this.hostElement,"yt-check-labs-opted-in-state").some(function(t){return t})&&this.data.confirmationDialogCommand?_.k0(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.qS().resolve(_.aA).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&D.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.qS().resolve(_.aA).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
Za.prototype.onCheckLabsOptedInState=function(){var D=this.get("data.primaryButton.toggleButtonRenderer");return D?D.isToggled:!1};
_.ql.Object.defineProperties(Za.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
Za.prototype.onYtToggleButton=Za.prototype.onYtToggleButton;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Za.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Za.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Za.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Za.prototype,"itemStyle",null);_.d([_.rx("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Za.prototype,"onYtToggleButton",null);_.d([_.Y({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],Za);
_.p(Za,"ytd-labs-item-renderer",function(){if(s74!==void 0)return s74;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return s74=D},{mode:1});var hCY;var Gle;var EFH=function(){return _.X.apply(this,arguments)||this};
_.P(EFH,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],EFH.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],EFH.prototype,"data",void 0);_.d([_.Y({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],EFH);
_.p(EFH,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(Gle!==void 0)return Gle;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Gle=D},{mode:1});var KkF;var s9=function(){return _.X.apply(this,arguments)||this};
_.P(s9,_.X);s9.prototype.observeSuperchatChip=function(){if(this.data){var D={"--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)};_.jZ(this.hostElement,D)}};
s9.prototype.colorFromDecimal=function(D){return _.Qk(Number(D||0))};
s9.prototype.observeSuperchatChip=s9.prototype.observeSuperchatChip;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],s9.prototype,"data",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],s9.prototype,"observeSuperchatChip",null);_.d([_.Y({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],s9);
_.p(s9,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(KkF!==void 0)return KkF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return KkF=D},{mode:1});var hx=function(){return _.X.apply(this,arguments)||this};
_.P(hx,_.X);hx.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"}}}};
_.ql.Object.defineProperties(hx.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.GI),_.x("design:type",Object)],hx.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],hx.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],hx.prototype,"hideMessageBlock",null);
_.d([_.Y({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],hx);
_.p(hx,"ytd-live-chat-history-entry-renderer",function(){if(hCY!==void 0)return hCY;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return hCY=D},{mode:1});var NCe;var klH=function(){return _.X.apply(this,arguments)||this};
_.P(klH,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],klH.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],klH.prototype,"data",void 0);_.d([_.Y({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],klH);
_.p(klH,"ytd-channel-options-renderer",function(){if(NCe!==void 0)return NCe;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return NCe=D},{mode:1});var TC4;var Gy=function(){return _.X.apply(this,arguments)||this};
_.P(Gy,_.X);Gy.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Gy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Gy.prototype,"data",void 0);_.d([_.Y({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],Gy);
_.p(Gy,"ytd-settings-email-item-renderer",function(){if(TC4!==void 0)return TC4;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return TC4=D},{mode:1});var cIZ;var E9=function(){return _.X.apply(this,arguments)||this};
_.P(E9,_.X);E9.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"}}}};
E9.prototype.getExpansionIcon=function(D){return D?"COLLAPSE":"EXPAND"};
E9.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.ql.Object.defineProperties(E9.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],E9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],E9.prototype,"data",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],E9.prototype,"expanded",void 0);_.d([_.m("expanded"),_.x("design:type",String),_.x("design:paramtypes",[])],E9.prototype,"emailListExpanded",null);
_.d([_.o5("#options"),_.x("design:type",Object)],E9.prototype,"options",void 0);_.d([_.Y({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],E9);
_.p(E9,"ytd-settings-email-list-renderer",function(){if(cIZ!==void 0)return cIZ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return cIZ=D},{mode:1});var j7Z;var KH=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return D};
_.P(KH,_.X);KH.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"}}}};
KH.prototype.handleSignalActionSubmitForm=function(){var D,t=(D=this.formRenderer)==null?void 0:D.getForm();t&&this.data.serviceEndpoint&&_.qS().resolve(_.aA).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},t,{element:this.hostElement})})};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],KH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],KH.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],KH.prototype,"data",void 0);_.d([_.o5("yt-form-renderer"),_.x("design:type",Object)],KH.prototype,"formRenderer",void 0);
_.d([_.Y({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],KH);
_.p(KH,"ytd-settings-gaia-link-renderer",function(){if(j7Z!==void 0)return j7Z;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return j7Z=D},{mode:1});var $vO;var NR=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return D};
_.P(NR,_.X);NR.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.WIg()&&this.set("data.hidden",!1)};
NR.prototype.onSwitchReady=function(){var D=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.r("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.uHg().then(function(t){t&&(Notification.permission==="default"?D.set("data.hidden",!1):Notification.permission==="granted"&&_.p5("NotificationsDisabled").then(function(H){H||_.ET(D.hostElement,"yt-toggle-settings-switch",[D.data.id,!H]);D.set("data.hidden",!1)}).catch(function(){}))})})};
NR.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}}}}};
NR.prototype.handleUpdateOptionsCommand=function(D){(D=_.O(D,_.Bh6))&&this.data&&this.data.id===D.id&&(this.set("data.hidden",D.hidden),D.text!==void 0&&this.set("data.text",D.text),D.clearOptions&&this.set("data.options",[]))};
NR.prototype.onSwitchReady=NR.prototype.onSwitchReady;NR.prototype.dataChanged=NR.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],NR.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],NR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],NR.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],NR.prototype,"data",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NR.prototype,"dataChanged",null);_.d([_.rx("yt-settings-switch-ready"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NR.prototype,"onSwitchReady",null);_.d([_.Y({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],NR);
_.p(NR,"ytd-settings-options-renderer",function(){if($vO!==void 0)return $vO;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return $vO=D},{mode:1});var itY;var kJ=function(){return _.X.apply(this,arguments)||this};
_.P(kJ,_.X);kJ.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
kJ.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
kJ.prototype.onYtExpanderMoreTapped=kJ.prototype.onYtExpanderMoreTapped;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],kJ.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],kJ.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],kJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],kJ.prototype,"data",void 0);
_.d([_.rx("yt-expander-more-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],kJ.prototype,"onYtExpanderMoreTapped",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],kJ);
_.p(kJ,"ytd-product-details-description-renderer",function(){if(itY!==void 0)return itY;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return itY=D},{mode:1});var rIO;var Ty=function(){var D=_.X.apply(this,arguments)||this;D.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";D.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";D.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";D.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return D};
_.P(Ty,_.X);Ty.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ql.Object.defineProperties(Ty.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?void 0:(t=D.offerData)==null?void 0:t.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?void 0:D.purchaseButtonRenderers)!==void 0&&((t=this.data)==null?void 0:t.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var D,t;return!((D=this.data)==null||!D.formattedFromMerchantText)&&(!((t=this.data)==null||!t.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ty.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Ty.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ty.prototype,"data",void 0);
_.d([_.M({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],Ty.prototype,"shippingIcon",void 0);_.d([_.M({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],Ty.prototype,"shippingAddressIcon",void 0);_.d([_.M({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],Ty.prototype,"googleGuaranteeIcon",void 0);
_.d([_.M({type:_.r("kevlar_property_type_migration_killswitch")?String:void 0}),_.x("design:type",Object)],Ty.prototype,"returnPolicyIcon",void 0);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ty.prototype,"showAdditionalFees",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ty.prototype,"showMultiPurchaseButtons",null);
_.d([_.m("data","showMultiPurchaseButtons"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ty.prototype,"showPurchaseData",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Ty);
_.p(Ty,"ytd-product-details-hero-offer-renderer",function(){if(rIO!==void 0)return rIO;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return rIO=D},{mode:1});var OtH;var UvQ;var cQ=function(){return _.X.apply(this,arguments)||this};
_.P(cQ,_.X);_.q=cQ.prototype;_.q.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.q.onKeyDown=function(D){D=D.keyCode;D!==13&&D!==32||this.handleSelection()};
_.q.onMouseEnterImage=function(){var D;((D=this.data)==null?void 0:D.thumbnailDetails)!==void 0&&_.Kl(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.q.onMouseLeaveImage=function(){_.Kl(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.q.handleSelection=function(){this.data&&_.Gf(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.ql.Object.defineProperties(cQ.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.isSelected)}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],cQ.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],cQ.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],cQ.prototype,"isSelected",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],cQ);
_.p(cQ,"ytd-product-details-thumbnail-renderer",function(){if(UvQ!==void 0)return UvQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return UvQ=D},{mode:1});var jv=function(){var D=_.X.apply(this,arguments)||this;var t={};D.actionMap=(t["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",t["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",t);D.selectedThumbnailIndex=0;D.selectItem=function(H){H.target.onKeyDown(H)};
return D};
_.P(jv,_.X);_.q=jv.prototype;_.q.handlePreviewImageSelect=function(D){this.hoverThumbnail=D};
_.q.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.q.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.q.onThumbnailSelected=function(D,t){this.selectedThumbnailIndex=t};
_.q.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.q.updateOffset=function(){var D=_.Kg(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-D));this.ytdHorizontalListBehavior.reposition_()};
_.ql.Object.defineProperties(jv.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.imageRenderer){var t,H;return((t=this.data)==null?void 0:(H=t.imageRenderer)==null?void 0:H.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var D;if((D=this.data)==null?0:D.imageRenderer){var t;return(t=_.O(this.data.imageRenderer[this.selectedThumbnailIndex],uP4))==null?void 0:t.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var D=this,t,H,e,V=(e=(t=this.data)==null?void 0:(H=t.imageRenderer)==null?void 0:H.map(function(b,a){return{productDetailsThumbnailRenderer:Object.assign({},_.O(b,uP4),{index:a,isSelected:a===D.selectedThumbnailIndex})}}))!=null?e:[];
return Object.assign({},this.data,{imageRenderer:V})}}});
jv.prototype.updateOffset=jv.prototype.updateOffset;jv.prototype.dataChanged=jv.prototype.dataChanged;jv.prototype.onThumbnailSelected=jv.prototype.onThumbnailSelected;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],jv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Xn.YtdHorizontalListBehavior),_.x("design:type",Object)],jv.prototype,"ytdHorizontalListBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],jv.prototype,"componentBehavior",void 0);_.d([_.C([_.dW.YtActionHandlerBehavior]),_.x("design:type",Object)],jv.prototype,"actionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],jv.prototype,"data",void 0);_.d([_.M({value:"$.items.children"}),_.x("design:type",String)],jv.prototype,"itemsPath",void 0);_.d([_.M({value:3}),_.x("design:type",Number)],jv.prototype,"initialCount",void 0);
_.d([_.o5("#items"),_.x("design:type",Object)],jv.prototype,"items",void 0);_.d([_.M(),_.x("design:type",Object)],jv.prototype,"selectedThumbnailIndex",void 0);_.d([_.M(),_.x("design:type",Object)],jv.prototype,"hoverThumbnail",void 0);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],jv.prototype,"showThumbnails",null);
_.d([_.rx("ytd-product-details-thumbnail-renderer-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Number]),_.x("design:returntype")],jv.prototype,"onThumbnailSelected",null);_.d([_.m("data","selectedThumbnailIndex","hoverThumbnail"),_.x("design:type",Object),_.x("design:paramtypes",[])],jv.prototype,"thumbnailDetails",null);_.d([_.m("data","selectedThumbnailIndex"),_.x("design:type",Object),_.x("design:paramtypes",[])],jv.prototype,"populatedData",null);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jv.prototype,"dataChanged",null);_.d([_.rx("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jv.prototype,"updateOffset",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],jv);
_.p(jv,"ytd-product-details-image-carousel-renderer",function(){if(OtH!==void 0)return OtH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return OtH=D},{mode:_.Kz("kevlar_poly_si_batch_j079")?1:2});var oFt;var $J=function(){return _.X.apply(this,arguments)||this};
_.P($J,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],$J.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],$J.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$J.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],$J);
_.p($J,"ytd-product-details-offer-renderer",function(){if(oFt!==void 0)return oFt;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return oFt=D},{mode:1});var PEe;var rX=function(){var D=_.X.apply(this,arguments)||this;D.isOffersHidden=!0;return D};
_.P(rX,_.X);rX.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var D,t=_.O((D=this.data)==null?void 0:D.viewOffersButton,_.aj);t&&this.ytRendererBehavior.logExplicitClick(t)};
rX.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.ql.Object.defineProperties(rX.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e;return(H=_.O((D=this.data)==null?void 0:(t=D.offers)==null?void 0:t[0],yOt))==null?void 0:(e=H.offerData)==null?void 0:e.vendorLogoUrl}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],rX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],rX.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],rX.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],rX.prototype,"isOffersHidden",void 0);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],rX.prototype,"firstOfferVendorLogoUrl",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],rX);
_.p(rX,"ytd-product-details-offers-container-renderer",function(){if(PEe!==void 0)return PEe;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return PEe=D},{mode:1});var nFi;var CEg;var O9=function(){return _.X.apply(this,arguments)||this};
_.P(O9,_.X);O9.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
O9.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Kl(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
O9.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Kl(this,"ytd-product-details-variant-image-unselect")};
_.ql.Object.defineProperties(O9.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 D;return((D=this.data)==null?void 0:D.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return((D=this.data)==null?void 0:D.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((t=this.data)==null?void 0:t.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((H=this.data)==null?void 0:H.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var D;if(((D=this.data)==null?void 0:D.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var D,t;return this.isUnavailable?(D=this.data)==null?void 0:D.variantOptionUnavailableAccessibilityLabel:(t=this.data)==null?void 0:t.variantOptionAccessibilityLabel}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],O9.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],O9.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],O9.prototype,"displayType",void 0);
_.d([_.m("displayType","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],O9.prototype,"isImageButton",null);_.d([_.m("displayType","data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],O9.prototype,"isPillButton",null);_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],O9.prototype,"isActive",null);
_.d([_.m("data"),_.M({reflectToAttribute:!0}),_.x("design:type",Boolean),_.x("design:paramtypes",[])],O9.prototype,"isUnavailable",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],O9.prototype,"thumbnailDetails",null);_.d([_.m("isUnavailable","data"),_.x("design:type",Object),_.x("design:paramtypes",[])],O9.prototype,"accessibilityLabel",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],O9);
_.p(O9,"ytd-product-details-variant-option-renderer",function(){if(CEg!==void 0)return CEg;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return CEg=D},{mode:1});var mvZ;var U9=function(){var D=_.X.apply(this,arguments)||this;D.variantsExpanded=!1;D.hideShowMoreLessVariantButton=!0;D.initialized=!1;D.computeVariantsDebouncer=null;D.computeVariants=function(t){t=t===void 0?!1:t;D.variantsExpanded||D.showOptions()||!t||(D.variantsExpanded=!0);if(D.variantsExpanded){t=_.F(D.items.children);for(var H=t.next();!H.done;H=t.next())H.value.hidden=!1}D.initialized=!0};
return D};
_.P(U9,_.X);_.q=U9.prototype;_.q.ready=function(){var D=this;setTimeout(function(){D.computeVariants(!0)})};
_.q.showOptions=function(){for(var D=_.F(this.items.children),t=D.next();!t.done;t=D.next())t.value.hidden=!0;var H=this.container.getBoundingClientRect().width,e=0,V=D=0;t=!1;for(var b=_.F(this.items.children),a=b.next();!a.done;a=b.next()){a=a.value;a.hidden=!1;var w=a.getBoundingClientRect().width;if(e+w<H)e+=w;else if(++V<2)e=w;else break;D+=1;a.hasAttribute("is-active")&&(t=!0)}for(H=D;H<this.items.children.length;H++)this.items.children[H].hidden=!0;this.hideShowMoreLessVariantButton=D===this.items.children.length;
return t};
_.q.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.oc(this.computeVariantsDebouncer,_.Ei.after(100),this.computeVariants)};
_.q.onShowMoreLessVariantsButtonClick=function(){var D;(D=this.data)!=null&&D.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.q.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.ql.Object.defineProperties(U9.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var D,t,H=(D=this.data)==null?void 0:(t=D.variantOptionRenderers)==null?void 0:t.find(function(b){return _.O(b,I$F).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),e,V;
return(V=(e=_.O(H,I$F))==null?void 0:e.name)!=null?V:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.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"}}}});
U9.prototype.debouncedComputeVariants=U9.prototype.debouncedComputeVariants;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],U9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],U9.prototype,"componentBehavior",void 0);_.d([_.C(_.QI),_.x("design:type",Object)],U9.prototype,"ironResizableBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],U9.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],U9.prototype,"variantsExpanded",void 0);_.d([_.M(),_.x("design:type",Object)],U9.prototype,"hideShowMoreLessVariantButton",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],U9.prototype,"initialized",void 0);_.d([_.o5("#items"),_.x("design:type",HTMLDivElement)],U9.prototype,"items",void 0);_.d([_.o5("#container"),_.x("design:type",HTMLDivElement)],U9.prototype,"container",void 0);
_.d([_.o5("#more-variants-button"),_.x("design:type",HTMLElement)],U9.prototype,"moreVariantsButton",void 0);_.d([_.m("data"),_.x("design:type",String),_.x("design:paramtypes",[])],U9.prototype,"selectedOptionName",null);_.d([_.Os("data","variantsExpanded"),_.rx("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],U9.prototype,"debouncedComputeVariants",null);
_.d([_.m("data"),_.x("design:type",String),_.x("design:paramtypes",[])],U9.prototype,"displayType",null);_.d([_.m("displayType"),_.x("design:type",Object),_.x("design:paramtypes",[])],U9.prototype,"variantItemsClassname",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],U9);
_.p(U9,"ytd-product-details-variant-renderer",function(){if(mvZ!==void 0)return mvZ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return mvZ=D},{mode:1});var oe=function(){return _.X.apply(this,arguments)||this};
_.P(oe,_.X);
oe.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"}}}};
_.ql.Object.defineProperties(oe.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var D,t,H=(t=_.O((D=this.data)==null?void 0:D.offersContainerRenderer,QLF))==null?void 0:t.offers;return H!==void 0&&(H==null?void 0:H.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 D,t,H;return((H=(D=this.data)==null?void 0:(t=D.variants)==null?void 0:t.map(function(e){var V,b;e=(b=(V=_.O(e,WBZ))==null?void 0:V.variantOptionRenderers)==null?void 0:b.find(function(w){var h;return((h=_.O(w,I$F))==null?void 0:h.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var a;return(a=_.O(e,I$F))==null?void 0:a.name}).filter(function(e){return typeof e==="string"}))!=null?H:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var D,t,H,e=(t=_.O((D=this.data)==null?void 0:D.shoppingFlaggingRenderer,BzF))==null?void 0:(H=t.reportButton)==null?void 0:H.buttonRenderer;if(e)return{text:e.text,command:e.command,icon:{iconType:"FLAG"},accessibilityData:e.accessibilityData,trackingParams:e.trackingParams,loggingDirectives:e.loggingDirectives}}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],oe.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],oe.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],oe.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],oe.prototype,"data",void 0);_.d([_.o5("#image-carousel-renderer"),_.x("design:type",Object)],oe.prototype,"imageCarouselRenderer",void 0);
_.d([_.o5("#hero-offer-renderer"),_.x("design:type",Object)],oe.prototype,"productDetailsHeroOfferRenderer",void 0);_.d([_.o5("#variants"),_.x("design:type",Object)],oe.prototype,"productDetailsVariantRenderer",void 0);_.d([_.o5("#offers"),_.x("design:type",Object)],oe.prototype,"productDetailsOffersContainerRenderer",void 0);_.d([_.o5("#description-renderer"),_.x("design:type",Object)],oe.prototype,"productDetailsDescriptionRenderer",void 0);
_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],oe.prototype,"showPurchaseData",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],oe.prototype,"showHeroOfferRenderer",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],oe.prototype,"showBrandText",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],oe.prototype,"showOffers",null);
_.d([_.m("showOffers","showPurchaseData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],oe.prototype,"showBuySeparator",null);_.d([_.m("showOffers","showPurchaseData"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],oe.prototype,"showBuyCard",null);_.d([_.m("data"),_.x("design:type",String),_.x("design:paramtypes",[])],oe.prototype,"selectedVariantsText",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],oe.prototype,"shoppingReportingButtonData",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],oe);
_.p(oe,"ytd-product-details-renderer",function(){if(nFi!==void 0)return nFi;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return nFi=D},{mode:1});var MSg;var S1g;var XdQ;var PQ=function(){return _.X.apply(this,arguments)||this};
_.P(PQ,_.X);PQ.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.ql.Object.defineProperties(PQ.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],PQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],PQ.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],PQ.prototype,"formattedAmount",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],PQ.prototype,"ariaLabel",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("data.style"),_.x("design:type",String),_.x("design:paramtypes",[])],PQ.prototype,"vcBalanceWidgetStyle",null);_.d([_.xL({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],PQ);
_.p(PQ,"yt-vc-balance-renderer",function(){if(XdQ===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;S1g===void 0&&(S1g=document.createElement("template"));var e=S1g;H.call(t,e.content.cloneNode(!0),D.content.firstChild);XdQ=D}D=XdQ;return D},{mode:2});_.AB("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var nH=function(){return _.X.apply(this,arguments)||this};
_.P(nH,_.X);_.ql.Object.defineProperties(nH.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:""}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],nH.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],nH.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],nH.prototype,"data",void 0);_.d([_.M({selectorArgs:["data.vcBalanceEntityKey"],selector:function(D,t){return _.jR(D.entities,"vcBalanceEntity",t)}}),
_.x("design:type",Object)],nH.prototype,"vcBalanceEntity",void 0);_.d([_.m("vcBalanceEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],nH.prototype,"formattedAmount",null);_.d([_.m("vcBalanceEntity"),_.x("design:type",String),_.x("design:paramtypes",[])],nH.prototype,"vcBalanceAriaLabel",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],nH);
_.p(nH,"ytd-vc-balance-renderer",function(){if(MSg!==void 0)return MSg;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return MSg=D},{mode:1});var fFH;var CH=function(){var D=_.X.apply(this,arguments)||this;D.rotation=0;D.isReloading=!1;return D};
_.P(CH,_.X);CH.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
CH.prototype.reset=function(){this.hostElement.style.opacity=""};
CH.prototype.close=function(){var D=this;return _.Z(function(t){if(t.nextAddress==1)return t.yield(D.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);D.hostElement.style.opacity="0";_.n2(t)})};
CH.prototype.rotationChanged=CH.prototype.rotationChanged;_.d([_.M(),_.x("design:type",Object)],CH.prototype,"rotation",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],CH.prototype,"isReloading",void 0);_.d([_.o5("#icon"),_.x("design:type",HTMLElement)],CH.prototype,"icon",void 0);_.d([_.Os("rotation"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CH.prototype,"rotationChanged",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-refresh"})],CH);
_.p(CH,"ytd-refresh",function(){if(fFH!==void 0)return fFH;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return fFH=D},{mode:1});var Lkv;var m0=function(){return _.X.apply(this,arguments)||this};
_.P(m0,_.X);m0.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"}}}};
m0.prototype.dataChanged=function(){if(this.data){var D=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var t=_.G3(this.data.banner.thumbnails,this.hostElement.clientWidth);t&&(t.indexOf("//")===0&&(t="https:"+t),this.hasBannerArt=!0,_.jZ(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+t+")"}))}this.hasBannerArt!==D&&_.Kg(this.hostElement).querySelector("#header").fire("iron-resize")}};
m0.prototype.updateSelectedFromBinding=function(D){this.selected=D.detail.value};
m0.prototype.dataChanged=m0.prototype.dataChanged;_.d([_.C(tSQ),_.x("design:type",Object)],m0.prototype,"ytdTabbedHeaderBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],m0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Ko),_.x("design:type",Object)],m0.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],m0.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],m0.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],m0.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Number)],m0.prototype,"selected",void 0);_.d([_.M(),_.x("design:type",Boolean)],m0.prototype,"active",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],m0.prototype,"hasBannerArt",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],m0.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],m0);
_.p(m0,"ytd-interactive-tabbed-header-renderer",function(){if(Lkv!==void 0)return Lkv;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Lkv=D},{mode:1});var AIg;var MR=function(){return _.X.apply(this,arguments)||this};
_.P(MR,_.X);MR.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
MR.prototype.computeActionsAlignment=function(D){return(D==null?void 0:D.actionsAlignment)||""};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],MR.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],MR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],MR.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.x("design:type",String)],MR.prototype,"actionsAlignment",void 0);_.d([_.Y({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],MR);
_.p(MR,"ytd-page-footer-renderer",function(){if(AIg!==void 0)return AIg;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return AIg=D},{mode:1});var gFO;var JIH;var Sv=function(){var D=_.X.apply(this,arguments)||this;D.isEditing=!1;D.useSlot=!1;D.isMultiline=!1;return D};
_.P(Sv,_.X);_.q=Sv.prototype;_.q.onKeydown=function(D){if(D.keyCode===13&&!this.isMultiline)this.onSave();else if(D.keyCode===27)this.onCancel()};
_.q.computeComponentStyle=function(D){return(D==null?0:D.style)?D.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.q.computeisMultiline=function(D){if(this.multilineOverride!==void 0)return this.multilineOverride;var t,H;return!!(D==null?0:(t=D.formField)==null?0:(H=t.textInputFormFieldRenderer)==null?0:H.isMultiline)};
_.q.computeTextDisplayed=function(D,t){if(D)return D;if(t)return t};
_.q.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.q.onSave=function(){if(this.textForm.validate()){this.textForm.save();var D=this.textForm.value;if(D)this.set("data.textDisplayed",_.H7(D));else{var t;((t=this.data)==null?0:t.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.jX("inline-form-changed",this.data));this.isEditing=!1}};
_.q.onCancel=function(){var D=_.eo(this.data.textDisplayed);D===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(D);this.isEditing=!1};
Sv.prototype.onKeydown=Sv.prototype.onKeydown;_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],Sv.prototype,"ytEventForwardingBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Sv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Sv.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Sv.prototype,"isEditing",void 0);_.d([_.M(),_.x("design:type",Object)],Sv.prototype,"useSlot",void 0);_.d([_.M(),_.x("design:type",Boolean)],Sv.prototype,"multilineOverride",void 0);_.d([_.M(),_.x("design:type",Boolean)],Sv.prototype,"enableOverlayTheme",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.x("design:type",String)],Sv.prototype,"componentStyle",void 0);
_.d([_.M({computed:"computeisMultiline(data)"}),_.x("design:type",Object)],Sv.prototype,"isMultiline",void 0);_.d([_.o5("#text-form"),_.x("design:type",Object)],Sv.prototype,"textForm",void 0);_.d([_.rx("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],Sv.prototype,"onKeydown",null);_.d([_.Y({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],Sv);
_.p(Sv,"ytd-inline-form-renderer",function(){if(JIH!==void 0)return JIH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return JIH=D},{mode:1});var Y1b;var XE=function(){var D=_.X.apply(this,arguments)||this;D.previousSelectValue=void 0;D.selectedItemMessage=void 0;return D};
_.P(XE,_.X);XE.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
XE.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var D,t,H,e,V=(D=this.data)==null?void 0:(t=D.dropdown)==null?void 0:(H=t.dropdownRenderer)==null?void 0:(e=H.entries)==null?void 0:e.map(function(w){return w.privacyDropdownItemRenderer});
D=_.F(V!=null?V:[]);for(t=D.next();!t.done;t=D.next())if((t=t.value)&&t.int32Value===this.selectedValue){this.selectedItemMessage=t.itemMessage;break}}else this.selectedItemMessage=void 0;var b;(b=this.onValueChanged)==null||b.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var a;(a=this.data)!=null&&a.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
XE.prototype.onValueChangedForSelectedValue=function(D){this.selectedValue=D.detail.value};
XE.prototype.selectedValueChanged=XE.prototype.selectedValueChanged;_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],XE.prototype,"ytEventForwardingBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],XE.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],XE.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],XE.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],XE.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],XE.prototype,"theme",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Number)],XE.prototype,"selectedValue",void 0);_.d([_.M(),_.x("design:type",Function)],XE.prototype,"onValueChanged",void 0);
_.d([_.mx("selectedValue"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XE.prototype,"selectedValueChanged",null);_.d([_.Y({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],XE);
_.p(XE,"ytd-dropdown-form-field-renderer",function(){if(Y1b!==void 0)return Y1b;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Y1b=D},{mode:_.Kz("kevlar_poly_si_batch_j025")?1:2});var lFZ;var fH=function(){return _.X.apply(this,arguments)||this};
_.P(fH,_.X);_.ql.Object.defineProperties(fH.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var D=[],t=_.F(this.data||[]),H=t.next();!H.done;H=t.next())(H=_.O(H.value,zb4))&&D.push(H);return D}}});
_.d([_.M(),_.x("design:type",Array)],fH.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],fH.prototype,"byline",null);_.d([_.Y({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],fH);
_.p(fH,"ytd-playlist-byline-renderer",function(){if(lFZ!==void 0)return lFZ;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return lFZ=D},{mode:1});var vFg;var LH=function(){var D=_.X.apply(this,arguments)||this;D.rtlBullet=_.r("web_playlist_stats_rtl_bullet_icon_killswitch");D.modern=_.r("web_modern_buttons");D.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return D};
_.P(LH,_.X);_.q=LH.prototype;_.q.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"}}}}};
_.q.attached=function(){};
_.q.computeIsCustomThumbnail=function(D){return D?!!D.playlistCustomThumbnailRenderer:!1};
_.q.onYtNavigate=function(D,t){if(t&&t.actions&&t.actions.indexOf("shuffle")>-1){D=_.qS().resolve(_.hU);var H=t.tempData||{};H.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);t.tempData=H;D.isShuffleNextPlaylist=!0}};
_.q.onUpdatePlaylistAction=function(D){var t;D=(t=_.O(D,_.PuB))==null?void 0:t.updatedRenderer;if(t=_.O(D,RbY))this.data=t};
_.q.computeStyleType=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.q.computeThumbnailWidth=function(D){return D==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.q.computeHideThumbnailAria=function(D){if(D==null?0:D.thumbnailOverlays)for(var t=0;t<D.thumbnailOverlays.length;t++){var H=void 0;if((H=D.thumbnailOverlays[t])==null?0:H.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
LH.prototype.onYtNavigate=LH.prototype.onYtNavigate;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],LH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],LH.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],LH.prototype,"ytComponentBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],LH.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],LH.prototype,"rtlBullet",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.x("design:type",String)],LH.prototype,"styleType",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.x("design:type",Number)],LH.prototype,"thumbnailWidth",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],LH.prototype,"modern",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.x("design:type",Boolean)],LH.prototype,"isCustomThumbnail",void 0);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Object]),_.x("design:returntype")],LH.prototype,"onYtNavigate",null);_.d([_.Y({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],LH);
_.p(LH,"ytd-playlist-sidebar-primary-info-renderer",function(){if(vFg!==void 0)return vFg;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return vFg=D},{mode:1});var pdF;var Ax=function(){return _.X.apply(this,arguments)||this};
_.P(Ax,_.X);Ax.prototype.computeOwnerVisibility=function(D){return!(!D.videoOwner&&!D.button)};
Ax.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"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ax.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ax.prototype,"data",void 0);_.d([_.Y({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],Ax);
_.p(Ax,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(pdF!==void 0)return pdF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return pdF=D},{mode:1});var dvH;var gX=function(){var D=_.X.apply(this,arguments)||this;D.expanded=!1;D.isCompact=!1;return D};
_.P(gX,_.X);_.q=gX.prototype;_.q.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.q.dataChanged=function(){this.data&&_.Fq(_.Kg(this.text),_.qFw(_.wt4,_.eo(this.data.text||null)))};
_.q.computeAutoScrollEnabled=function(D,t){return D&&!t};
_.q.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.q.toggleOnTap=function(){this.expanded=!this.expanded};
gX.prototype.expandedChanged=gX.prototype.expandedChanged;gX.prototype.dataChanged=gX.prototype.dataChanged;_.d([_.C(_.SZF),_.x("design:type",Object)],gX.prototype,"ytdAutoScrollBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],gX.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],gX.prototype,"expanded",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],gX.prototype,"isCompact",void 0);_.d([_.M({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.x("design:type",Boolean)],gX.prototype,"autoScrollEnabled",void 0);_.d([_.o5("#text"),_.x("design:type",Object)],gX.prototype,"text",void 0);_.d([_.o5("#expander-icon"),_.x("design:type",Object)],gX.prototype,"expanderIcon",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gX.prototype,"dataChanged",null);_.d([_.Os("expanded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gX.prototype,"expandedChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],gX);
_.p(gX,"ytd-channel-legal-info-renderer",function(){if(dvH!==void 0)return dvH;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return dvH=D},{mode:1});var xvb;var RCb=_.OT("DOWNLOAD",{},"Download"),uBF=_.OT("DOWNLOADING",{},"Downloading"),Wke=_.OT("DOWNLOADED",{},"Downloaded"),Jx=function(){var D=_.X.apply(this,arguments)||this;D.downloadProgress=0;D.isDownloadComplete=!1;D.transferState="TRANSFER_STATE_UNKNOWN";return D};
_.P(Jx,_.X);_.q=Jx.prototype;_.q.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.q.dataChanged=function(){var D;(D=this.data)!=null&&D.tooltip||(D=_.Rf(_.b_().getState(),this.playlistId),this.updateButtonState(D))};
_.q.computePlaylistId=function(D){return D};
_.q.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.q.updateButtonState=function(D){if(this.data&&(this.data.tooltip!==uBF||!_.CC(D))){this.isDownloadComplete=!1;switch(D){case "TRANSFER_STATE_UNKNOWN":D=RCb;var t="OFFLINE_DOWNLOAD";var H="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":D=Wke;t="OFFLINE_PIN";H="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":D=uBF;t="OFFLINE_DOWNLOADING_ZERO";H="ACTION_REMOVE_WITH_PROMPT";
break;default:D=RCb,t="OFFLINE_DOWNLOAD",H="ACTION_ADD"}var e=Object.assign({},this.data);e.tooltip=D;e.accessibilityData={accessibilityData:{label:D}};e.icon={iconType:t};e.size="SIZE_DEFAULT";_.O(e.command,_.iO)&&(_.O(e.command,_.iO).action=H);this.set("data",e)}};
_.q.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var D="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?D="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?D="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?D="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?D="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?D="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(D="OFFLINE_PIN",this.isDownloadComplete=!0);var t;D!==((t=this.data.icon)==null?void 0:t.iconType)&&(t=Object.assign({},this.data),t.tooltip=uBF,t.accessibilityData={accessibilityData:{label:uBF}},t.icon={iconType:D},_.O(t.command,_.iO)&&(_.O(t.command,_.iO).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",t))}};
Jx.prototype.updateProgress=Jx.prototype.updateProgress;Jx.prototype.onTransferStateChanged=Jx.prototype.onTransferStateChanged;Jx.prototype.dataChanged=Jx.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Jx.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Jx.prototype,"ytdReduxBehavior",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Jx.prototype,"forceIconButton",void 0);
_.d([_.M({value:!0}),_.x("design:type",Boolean)],Jx.prototype,"forceIconOnly",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Jx.prototype,"overrides",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Jx.prototype,"buttonTooltipPosition",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Jx.prototype,"styleActionButton",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Jx.prototype,"disableTextTransform",void 0);
_.d([_.M({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.x("design:type",String)],Jx.prototype,"playlistId",void 0);_.d([_.M(),_.x("design:type",Object)],Jx.prototype,"data",void 0);_.d([_.M({selector:_.n$R,selectorArgs:["playlistId"]}),_.x("design:type",Object)],Jx.prototype,"downloadProgress",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Jx.prototype,"isDownloadComplete",void 0);
_.d([_.M({selector:_.Rf,selectorArgs:["playlistId"]}),_.x("design:type",String)],Jx.prototype,"transferState",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],Jx.prototype,"showTooltips",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],Jx.prototype,"sendCommandWhenDisabled",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Jx.prototype,"disabled",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jx.prototype,"dataChanged",null);_.d([_.mx("transferState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jx.prototype,"onTransferStateChanged",null);_.d([_.mx("downloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jx.prototype,"updateProgress",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Jx);
_.p(Jx,"ytd-download-playlist-button-renderer",function(){if(xvb!==void 0)return xvb;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return xvb=D},{mode:1});var IFF;_.hB(_.GZa,"thumbnail-overlay-button-view-model",{props:{data:_.ij,lockupExperiments:_.ij}});var YJ=function(){var D=_.X.apply(this,arguments)||this;D.isSquare=!1;D.isVertical=!1;return D};
_.P(YJ,_.X);YJ.prototype.computeIsSquare=function(D){return D!=null&&D.thumbnail?o2Z(D.thumbnail)==="SQUARE":!1};
YJ.prototype.computeIsVertical=function(D){return D!=null&&D.thumbnail?o2Z(D.thumbnail)==="VERTICAL":!1};
YJ.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],YJ.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],YJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.x("design:type",Object)],YJ.prototype,"isSquare",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.x("design:type",Object)],YJ.prototype,"isVertical",void 0);
_.d([_.M(),_.x("design:type",Object)],YJ.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],YJ);
_.p(YJ,"ytd-hero-playlist-thumbnail-renderer",function(){if(IFF!==void 0)return IFF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return IFF=D},{mode:1});var ln=function(){var D=_.X.apply(this,arguments)||this;D.isDarkTheme=!1;D.isUltraWide=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return D};
_.P(ln,_.X);_.q=ln.prototype;_.q.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.qS();var D;(D=_.qS().resolve(_.by(_.Ag)))!=null&&(D.headerElement=this.hostElement)};
_.q.detached=function(){var D;(D=_.qS().resolve(_.by(_.Ag)))!=null&&(D.headerElement=void 0)};
_.q.onUpdateHeader=function(D){(D=D.detail)&&this.set("data",D)};
_.q.computeTextDisplayed=function(D){if(D)return D.textDisplayed?D.textDisplayed:D.placeholder};
_.q.gradientColorToLinearGradientStop=function(D){var t=this.isDarkTheme?D.darkThemeColor:D.lightThemeColor;return t?_.Qk(t)+" "+((D==null?void 0:D.startLocation)||0)*100+"%":"transparent"};
_.q.onWindowResize=function(){var D;((D=this.data)==null?0:D.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.q.onIronResize=function(D){this.isUltraWide=!D.detail.value};
_.q.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.q.onUpdatePlaylistName=function(D){var t=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},D.detail.value));_.Vi(this,function(){var H;(H=t.editableTitle)==null||H.resize()})};
_.q.onUpdatePlaylistDescription=function(D){var t=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},D.detail.value));_.Vi(this,function(){var H;(H=t.editableDescriptionInlineExpander)==null||H.resize()})};
_.q.getCinematicData=function(D){return _.O(D==null?void 0:D.cinematicContainer,_.tx)};
_.ql.Object.defineProperties(ln.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 D,t=(D=this.getCinematicData(this.data))==null?void 0:D.config;return(D=this.isDarkTheme?t==null?void 0:t.darkThemeBackgroundColor:t==null?void 0:t.lightThemeBackgroundColor)?"background-color:"+_.Ih(D)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var D;return _.O((D=this.data)==null?void 0:D.descriptionForm,xZZ)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var D=this,t,H,e;return"background:linear-gradient(to bottom, "+(((e=(t=this.getCinematicData(this.data))==null?void 0:(H=t.gradientColorConfig)==null?void 0:H.map(function(V){return D.gradientColorToLinearGradientStop(V)}))==null?void 0:e.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var D;return _.eo((D=this.data)==null?void 0:D.descriptionTapText)}}});
ln.prototype.onUpdateHeader=ln.prototype.onUpdateHeader;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],ln.prototype,"actionHandlerBehavior",void 0);_.d([_.o5("#description-inline-expander"),_.x("design:type",Object)],ln.prototype,"descriptionInlineExpander",void 0);
_.d([_.o5("#editable-description-inline-expander"),_.x("design:type",Object)],ln.prototype,"editableDescriptionInlineExpander",void 0);_.d([_.M(),_.x("design:type",Object)],ln.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],ln.prototype,"isUltraWide",void 0);_.d([_.o5("#editable-title-display"),_.x("design:type",Object)],ln.prototype,"editableTitle",void 0);_.d([_.m("isUltraWide"),_.x("design:type",Object),_.x("design:paramtypes",[])],ln.prototype,"maxDescriptionLines",null);
_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ln.prototype,"noCinematicData",null);_.d([_.rx("yt-new-playlist-header"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ln.prototype,"onUpdateHeader",null);_.d([_.m("data","isDarkTheme"),_.x("design:type",Object),_.x("design:paramtypes",[])],ln.prototype,"backgroundStyle",null);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ln.prototype,"descriptionFormData",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ln.prototype,"getDropdownTheme",null);_.d([_.m("data","isDarkTheme"),_.x("design:type",String),_.x("design:paramtypes",[])],ln.prototype,"gradientStyle",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ln.prototype,"descriptionTapText",null);
_.d([_.Y({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],ln);
_.p(ln,"ytd-playlist-header-renderer",function(){if(gFO!==void 0)return gFO;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return gFO=D},{mode:_.Kz("kevlar_poly_si_batch_j078")?1:2});var Q7Q;var yI4;var vQ=function(){return _.X.apply(this,arguments)||this};
_.P(vQ,_.X);vQ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],vQ.prototype,"data",void 0);_.d([_.Y({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],vQ);
_.p(vQ,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(yI4!==void 0)return yI4;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return yI4=D},{mode:1});var pH=function(){return _.X.apply(this,arguments)||this};
_.P(pH,_.X);
pH.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}}}}};
pH.prototype.computeUsePremiumShowStyle=function(D){if(!D||!D.items)return!1;for(var t=0;t<D.items.length;t++)if(_.O(D.items[t],RbY)){var H=void 0;return((H=_.O(D.items[t],RbY))==null?void 0:H.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],pH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],pH.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.x("design:type",Boolean)],pH.prototype,"usePremiumShowStyle",void 0);
_.d([_.Y({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],pH);
_.p(pH,"ytd-playlist-sidebar-renderer",function(){if(Q7Q!==void 0)return Q7Q;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Q7Q=D},{mode:1});var BCO;var zCF;var Du7=function(D,t,H,e,V,b,a,w){this.minWidth=D;this.minHeight=t;this.recommendedWidth=H;this.recommendedHeight=e;this.JSC$22147_maxFileSize=V;this.title=b;this.bannerGalleryTitle=a;this.channelId=w;this.picker_=null;D=_.swu("yt-banner");t=D.addView;H=(new f$4("youtubebanner")).addUploadMetadata("silo_id","19");H.opts.ytMaxFileSize=this.JSC$22147_maxFileSize;e=this.recommendedHeight;H.opts.ytRecWidth=this.recommendedWidth;H.opts.ytRecHeight=e;t.call(D,H);D.addView(new _.px);t=D.addView;H=new _.px;
H.opts.type="ytbanner";t.call(D,H.JSC$10078_setLabel(this.bannerGalleryTitle));t=D.setTitle(this.title).setSize(1E3);t.urlParamMap_.set("thumbs","orig");H=this.minWidth;e=this.minHeight;if(isNaN(H)||isNaN(e))throw Error("gb`"+H+"`"+e);t.urlParamMap_.set("minSize",H+"x"+e);t.urlParamMap_.set("cropMode","ytcb");this.builder_=D};
Du7.prototype.open=function(){var D=this;return new _.c$(function(t,H){_.RE3(D.builder_,function(e){e.action=="picked"?t(e):e.action=="cancel"&&H(Error("Ho"))});
D.picker_&&D.picker_.dispose();D.picker_=D.builder_.build();D.picker_.setVisible(!0)})};
Du7.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var tVU=function(D){this.channelId=D};
tVU.prototype.upload=function(D){var t="";D.viewToken&&(t=D.viewToken[2].type);var H=D.docs[0];D=H.crop;t={channel_id:this.channelId,fife_url:H.thumbnails[0].url,photo_id:H.id,is_gallery_image:t=="ytbanner"};D&&(t.crop_top=D.top,t.crop_right=D.right,t.crop_bottom=D.bottom,t.crop_left=D.left);return _.dmX("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:t})};var dX=function(){var D=_.X.apply(this,arguments)||this;D.ariaLabel=null;return D};
_.P(dX,_.X);_.q=dX.prototype;_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.q.detached=function(){this.picker&&this.picker.dispose()};
_.q.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.q.computeAriaLabel=function(D){return D};
_.q.onTap=function(){var D=this,t;if((t=this.data)==null||!t.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new Du7(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 H;(H=this.picker)==null||H.open().then(function(e){D.handleBannerPicked(e)},function(){})}};
_.q.handleBannerPicked=function(D){var t=this;this.uploader||(this.uploader=new tVU(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(D).then(function(H){t.handleBannerUploadSucceeded(H)},function(H){t.handleBannerUploadFailed(H)})};
_.q.handleBannerUploadSucceeded=function(D){D&&D.errors?this.handleBannerUploadFailed(D):(_.Gf(this.hostElement,"yt-banner-updated",D),this.message=null)};
_.q.handleBannerUploadFailed=function(D){this.message=D&&D.errors&&D.errors.length?D.errors[0]:null};
dX.prototype.dataChanged=dX.prototype.dataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],dX.prototype,"componentBehavior",void 0);_.d([_.C(_.BO),_.x("design:type",Object)],dX.prototype,"ironButtonState",void 0);_.d([_.M(),_.x("design:type",Object)],dX.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.x("design:type",Object)],dX.prototype,"ariaLabel",void 0);
_.d([_.M(),_.x("design:type",Object)],dX.prototype,"message",void 0);_.d([_.M(),_.x("design:type",Object)],dX.prototype,"picker",void 0);_.d([_.M(),_.x("design:type",Object)],dX.prototype,"uploader",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dX.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],dX);
_.p(dX,"ytd-channel-banner-editor-renderer",function(){if(zCF!==void 0)return zCF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return zCF=D},{mode:1});var HKA;var eRU=_.zk(["#"]),xJ=function(){return _.X.apply(this,arguments)||this};
_.P(xJ,_.X);xJ.prototype.computeHrefWithDefault=function(D){return this.ytComponentBehavior.computeHref_(D,!0)||_.qk6(eRU)};
xJ.prototype.dataChanged=function(){var D=this.data;D&&D.targetId&&_.MuB(_.BM(),D.targetId,this.moreIcon)};
xJ.prototype.dataChanged=xJ.prototype.dataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],xJ.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],xJ.prototype,"data",void 0);_.d([_.o5("#more-icon"),_.x("design:type",Object)],xJ.prototype,"moreIcon",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xJ.prototype,"dataChanged",null);
_.d([_.Y({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],xJ);
_.p(xJ,"ytd-channel-tagline-renderer",function(){if(HKA!==void 0)return HKA;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return HKA=D},{mode:1});var VV7;var Re=function(){return _.X.apply(this,arguments)||this};
_.P(Re,_.X);_.q=Re.prototype;_.q.ready=function(){var D=this;_.Kg(this.hostElement).querySelector("#form").addEventListener("submit",function(t){D.onSubmit(t)})};
_.q.onDataChanged=function(){var D;((D=this.data)==null?0:D.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.q.onIconButtonKeydown=function(D){D.keyCode===13&&this.iconButton.click()};
_.q.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.q.openOnClickHandler=function(){this.input.focus()};
_.q.onSubmit=function(D){D.preventDefault();return!1};
_.q.submitOnEnterKeyUp=function(D){var t;if(D.keyCode===13&&((t=this.data)==null?0:t.expandedText)){D=this.data.endpoint;t=_.J$.unsafeClone(D);var H;((H=_.O(t==null?void 0:t.commandMetadata,_.i1))==null?0:H.url)?(_.O(t.commandMetadata,_.i1).url=_.p7(_.O(t.commandMetadata,_.i1).url,"query",this.data.expandedText),_.O(t,_.UL)&&(_.O(t,_.UL).query=this.data.expandedText),_.Gf(this.hostElement,"yt-navigate",{endpoint:t,tempData:{disableCache:!0}})):(H=new _.nZ("Error: Trying to navigate to an endpoint without url",
D),_.gT(H))}};
_.q.updateDataExpandedTextFromBinding=function(D){this.set("data.expandedText",D.detail.value)};
_.ql.Object.defineProperties(Re.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
Re.prototype.onDataChanged=Re.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Re.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.HZF),_.x("design:type",Object)],Re.prototype,"ytdExpandableInputBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Re.prototype,"data",void 0);_.d([_.o5("#input"),_.x("design:type",Object)],Re.prototype,"input",void 0);_.d([_.o5("#icon-button"),_.x("design:type",HTMLElement)],Re.prototype,"iconButton",void 0);
_.d([_.M(),_.x("design:type",String),_.x("design:paramtypes",[])],Re.prototype,"searchIcon",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Re.prototype,"onDataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],Re);
var PCQ=_.E_()(Re,"ytd-expandable-tab-renderer",function(){if(VV7===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);VV7=D}D=VV7;return D},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var bKU;var un=function(){var D=_.X.apply(this,arguments)||this;D.avatarSize=80;D.ariaLabel=_.OT("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return D};
_.P(un,_.X);un.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
un.prototype.computeHref=function(D){var t;return((t=_.O(D,_.um))==null?0:t.url)?this.componentBehavior.computeHref_(D):null};
un.prototype.onTap=function(){var D,t;(D=this.data)==null||!D.editAvatarServiceEndpoint||((t=_.O(this.data.editAvatarServiceEndpoint,_.um))==null?0:t.url)||_.qS().resolve(_.aA).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.d([_.C(_.BO),_.x("design:type",Object)],un.prototype,"ironButtonState",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],un.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],un.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],un.prototype,"avatarSize",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],un.prototype,"ariaLabel",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],un);
_.p(un,"ytd-channel-avatar-editor",function(){if(bKU!==void 0)return bKU;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return bKU=D},{mode:1});var qDd=_.l(function(D){var t=D.data;var H=D.noPadding;var e=D.enableBanner;var V=D.cinematicContainerTopbarOffset;var b=D.allowCinematicContainerOverflow;var a=D.displayAsSidebar;D=D.className;_.Mp(function(){t().tagManagerId&&(_.HP(t().tagManagerId,_.YC("GL")),X0e(t().tagManagerId))},"vUc8md");
var w=_.rF(CCg,function(){return t().pageHeaderEntityKey});
return _.G("yt-page-header-renderer",{class:_.jQ("pageHeaderRendererHost",D)},_.G(_.P5,{data:function(){var h;return((h=w())==null?0:h.header)?w().header:(a==null?0:a())&&t().sidebarContent?t().sidebarContent:t().content}},{pageHeaderViewModel:function(h){return _.G(_.BXQ,{data:h.data,
noPadding:H,enableBanner:e,cinematicContainerTopbarOffset:V,allowCinematicContainerOverflow:b,displayAsSidebar:function(){return(a==null?void 0:a())&&t().enableSidebarView}})}}))},"Tl");
qDd.idomCompat=!0;_.hB(qDd,"yt-page-header-renderer",{props:{data:_.ij,noPadding:_.ij,enableBanner:_.ij,cinematicContainerTopbarOffset:_.ij,allowCinematicContainerOverflow:_.ij,displayAsSidebar:_.ij,className:_.ij}});_.hB(_.G$,"yt-image-banner-view-model",{props:{data:_.ij,isPositionRelative:_.ij}});_.hB(_.kvn,"yt-tab-group-shape",{props:{shape:_.ij}});var WQ=function(){var D=_.X.apply(this,arguments)||this;D.expandableCustomTabRenderable=function(t){return n2F(t,function(){return void D.onSearchNavigate()})};
D.isRichGrid=!1;D.isConstrainedList=!1;D.richGridMiniMode=!1;D.richGridStyle="RICH_GRID_STYLE_UNKNOWN";D.isRichGridShorts=!1;D.responsiveSizing="COMPACT";D.disableGridStateAware=!1;D.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return D};
_.P(WQ,_.X);_.q=WQ.prototype;_.q.computeHeaderDisabled=function(D,t){return t||!D||this.tabsHidden};
_.q.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.q.computeIsRichGridShorts=function(D){return D==="RICH_GRID_STYLE_SHORTS_GRID"||D==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.q.computeImageBannerViewModel=function(){var D,t;return _.O((t=_.O((D=this.data)==null?void 0:D.content,_.tXf))==null?void 0:t.banner,_.WX6)};
_.q.computeHasCinematicContainer=function(){var D,t;return!((t=_.O((D=this.data)==null?void 0:D.content,_.tXf))==null||!t.background)};
_.q.handleHeaderResize=function(){var D=_.Kg(this.hostElement).querySelector("#header");D&&_.Gf(D,"iron-resize")};
_.q.handleInsertTabCommand=function(D){var t=_.O(D,DvF);t&&(t.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(H){return H.tabRenderer&&H.tabRenderer.tabIdentifier===t.tabIdentifier})||this.splice("tabs",t.tabIndex||-1,0,t.tab))};
_.q.handleRefreshChannelTabAction=function(D){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===D&&_.Gf(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.q.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.jZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.q.observerRichGridSlimItemsPerRow=function(){_.jZ(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.q.updateCssVars=function(){this.richGridItemsPerRow&&_.jZ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.ZU("rich_grid_max_item_width",500))+16)-16+"px"})};
_.q.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.jZ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.q.onDataChanged=function(){this.handleHeaderResize()};
_.q.onWindowResize=function(){this.handleHeaderResize()};
_.q.onFocusedChanged=function(D){(D=_.qy(D))&&D.is==="tp-yt-paper-tab"&&D.hasRipple()&&(D.getRipple().holdDown=!D.pointerDown&&D.focused)};
_.q.updateSelectedFromBinding=function(D){this.ytdTabbedHeaderBehavior.selected=D.detail.value};
_.q.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.ql.Object.defineProperties(WQ.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:MyY(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.imageBannerViewModel)==null?void 0:D.style)==="IMAGE_BANNER_STYLE_INSET"}}});
WQ.prototype.onDataChanged=WQ.prototype.onDataChanged;WQ.prototype.updateCssVarsForResponsiveGrid=WQ.prototype.updateCssVarsForResponsiveGrid;WQ.prototype.updateCssVars=WQ.prototype.updateCssVars;WQ.prototype.observerRichGridSlimItemsPerRow=WQ.prototype.observerRichGridSlimItemsPerRow;WQ.prototype.observerRichGridItemsPerRow=WQ.prototype.observerRichGridItemsPerRow;_.d([_.C(_.Ko),_.x("design:type",Object)],WQ.prototype,"ytdGridStateAwareBehavior",void 0);
_.d([_.C(tSQ),_.x("design:type",Object)],WQ.prototype,"ytdTabbedHeaderBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],WQ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],WQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],WQ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.C(_.sx),_.x("design:type",Object)],WQ.prototype,"ytdReduxBehavior",void 0);_.d([_.o5("#tabs"),_.x("design:type",Object)],WQ.prototype,"tabsElement",void 0);_.d([_.M(),_.x("design:type",Array)],WQ.prototype,"tabs",void 0);_.d([_.M(),_.x("design:type",Object)],WQ.prototype,"expandableCustomTabRenderable",void 0);_.d([_.m("tabs.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],WQ.prototype,"tabGroupShape",null);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],WQ.prototype,"isRichGrid",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],WQ.prototype,"isConstrainedList",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.Ye}),_.x("design:type",Object)],WQ.prototype,"richGridMiniMode",void 0);_.d([_.M({selector:function(D){return D.ui.richGridStyle}}),
_.x("design:type",Object)],WQ.prototype,"richGridStyle",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.x("design:type",Object)],WQ.prototype,"isRichGridShorts",void 0);_.d([_.M({selector:_.lG}),_.x("design:type",Number)],WQ.prototype,"richGridItemsPerRow",void 0);_.d([_.M({selector:function(D){return D.ui.richGridContainerWidth}}),
_.x("design:type",Number)],WQ.prototype,"richGridContainerWidth",void 0);_.d([_.M({selector:_.E$R}),_.x("design:type",Number)],WQ.prototype,"richGridSlimItemsPerRow",void 0);_.d([_.M(),_.x("design:type",Object)],WQ.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],WQ.prototype,"responsiveSizing",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],WQ.prototype,"disableGridStateAware",void 0);
_.d([_.M({computed:"computeImageBannerViewModel(data)"}),_.x("design:type",Object)],WQ.prototype,"imageBannerViewModel",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.x("design:type",Boolean)],WQ.prototype,"hasCinematicContainer",void 0);_.d([_.M({selector:_.vCi,reflectToAttribute:!0}),_.x("design:type",Boolean)],WQ.prototype,"guideIsVisibleButNotPersistent",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("imageBannerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],WQ.prototype,"hasBanner",null);_.d([_.M({reflectToAttribute:!0}),_.m("imageBannerViewModel"),_.x("design:type",Object),_.x("design:paramtypes",[])],WQ.prototype,"hasInsetBanner",null);_.d([_.M({computed:"computeTabsHidden(tabs)",value:!0}),_.x("design:type",Boolean)],WQ.prototype,"tabsHidden",void 0);
_.d([_.Os("richGridItemsPerRow","isRichGrid"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WQ.prototype,"observerRichGridItemsPerRow",null);_.d([_.Os("richGridSlimItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WQ.prototype,"observerRichGridSlimItemsPerRow",null);
_.d([_.Os("richGridItemsPerRow","richGridMiniMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WQ.prototype,"updateCssVars",null);_.d([_.Os("richGridContainerWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WQ.prototype,"updateCssVarsForResponsiveGrid",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],WQ.prototype,"onDataChanged",null);
_.d([_.Y({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],WQ);
_.p(WQ,"ytd-tabbed-page-header",function(){if(BCO!==void 0)return BCO;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return BCO=D},{mode:1});var FDF;var Ie=function(){return _.X.apply(this,arguments)||this};
_.P(Ie,_.X);Ie.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.jZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.ql.Object.defineProperties(Ie.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var D,t;return this.componentBehavior.computeIcon_(((t=_.O((D=this.data)==null?void 0:D.badge,_.Zv6))==null?void 0:t.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var D,t;return(t=_.O((D=this.data)==null?void 0:D.badge,_.Zv6))==null?void 0:t.label}}});
Ie.prototype.observerRichGridItemsPerRow=Ie.prototype.observerRichGridItemsPerRow;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ie.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Ie.prototype,"componentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Ie.prototype,"ytdReduxBehavior",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.Ye}),_.x("design:type",Boolean)],Ie.prototype,"richGridMiniMode",void 0);
_.d([_.M({selector:_.lG}),_.x("design:type",Number)],Ie.prototype,"richGridItemsPerRow",void 0);_.d([_.M(),_.x("design:type",Object)],Ie.prototype,"data",void 0);_.d([_.Os("richGridItemsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ie.prototype,"observerRichGridItemsPerRow",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ie.prototype,"badgeIconName",null);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ie.prototype,"badgeLabel",null);_.d([_.Y({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Ie);
_.p(Ie,"ytd-member-hub-profile-renderer",function(){if(FDF!==void 0)return FDF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return FDF=D},{mode:1});var aVU;var Q7=function(){return _.X.apply(this,arguments)||this};
_.P(Q7,_.X);Q7.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Q7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Q7.prototype,"data",void 0);_.d([_.Y({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],Q7);
_.p(Q7,"ytd-settings-sidebar-renderer",function(){if(aVU!==void 0)return aVU;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return aVU=D},{mode:1});var wkM;var y7=function(){var D=_.X.apply(this,arguments)||this;D.expandableCustomTabRenderable=function(t){return n2F(t,function(){return void D.onSearchNavigate()})};
return D};
_.P(y7,_.X);y7.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
y7.prototype.onSearchNavigate=function(){this.selected=void 0};
y7.prototype.onTabsChange=function(){var D,t=(D=this.tabs)==null?void 0:D.findIndex(function(H){var e;return H==null?void 0:(e=H.tabRenderer)==null?void 0:e.selected});
t!==void 0&&(this.selected=t)};
y7.prototype.onTabsActive=function(D){if(this.tabs!==void 0){var t,H;(D=(t=this.tabs[D.detail.selected])==null?void 0:(H=t.tabRenderer)==null?void 0:H.endpoint)&&_.Gf(this.hostElement,"yt-navigate",{endpoint:D})}};
_.ql.Object.defineProperties(y7.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:MyY(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
y7.prototype.onTabsChange=y7.prototype.onTabsChange;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],y7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Ko),_.x("design:type",Object)],y7.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],y7.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],y7.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],y7.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Array)],y7.prototype,"tabs",void 0);_.d([_.M(),_.x("design:type",Number)],y7.prototype,"selected",void 0);_.d([_.m("tabs.*"),_.x("design:type",Object),_.x("design:paramtypes",[])],y7.prototype,"tabGroupShape",null);_.d([_.M(),_.x("design:type",Object)],y7.prototype,"expandableCustomTabRenderable",void 0);
_.d([_.m("tabs"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],y7.prototype,"tabsEnabled",null);_.d([_.mx("tabs"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],y7.prototype,"onTabsChange",null);_.d([_.Y({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],y7);
_.p(y7,"ytd-topic-channel-details-renderer",function(){if(wkM!==void 0)return wkM;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return wkM=D},{mode:1});var ZKU;var BQ=function(){var D=_.X.apply(this,arguments)||this;D.disableGridStateAware=!1;return D};
_.P(BQ,_.X);BQ.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]]"}}}}}};
BQ.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
BQ.prototype.updateCssVars=function(){_.jZ(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.ZU("rich_grid_max_item_width",500))+16)-16+"px"})};
BQ.prototype.updateCssVars=BQ.prototype.updateCssVars;BQ.prototype.activeChanged=BQ.prototype.activeChanged;_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],BQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],BQ.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],BQ.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Array)],BQ.prototype,"tabs",void 0);_.d([_.M(),_.x("design:type",Boolean)],BQ.prototype,"active",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],BQ.prototype,"disableGridStateAware",void 0);
_.d([_.M({selector:_.lG}),_.x("design:type",Number)],BQ.prototype,"richGridItemsPerRow",void 0);_.d([_.M({selector:_.Ye}),_.x("design:type",Boolean)],BQ.prototype,"richGridMiniMode",void 0);_.d([_.o5("ytd-carousel-item-renderer"),_.x("design:type",Object)],BQ.prototype,"carousel",void 0);_.d([_.Os("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BQ.prototype,"activeChanged",null);
_.d([_.Os("richGridItemsPerRow","richGridMiniMode"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BQ.prototype,"updateCssVars",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],BQ);
_.p(BQ,"ytd-carousel-header-renderer",function(){if(ZKU!==void 0)return ZKU;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return ZKU=D},{mode:1});var s$h;var hRl=_.zk(["https://www.google-analytics.com/analytics.js"]),zy=function(){var D=_.X.apply(this,arguments)||this;D.scriptAnalyticsAdded=!1;return D};
_.P(zy,_.X);zy.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var D,t=(D=this.data)==null?void 0:D.tagManagerId;t&&(_.HP(t,_.YC("GL")),X0e(t))};
zy.prototype.sendGoogleAnalyticsPageview=function(D){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var H=_.RE.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(H)};
var t=window.ga;t("set","page",window.location.pathname);t.l=+new Date;t("set","forceSSL",!0);t("create",D,"'auto'");t("send","pageview")};
zy.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var D=_.OH("SCRIPT");D.name="ga-analytics";var t=_.E5(hRl);_.qd(D,t);D.async=!0;_.Kg(this.hostElement).appendChild(D)};
zy.prototype.dataChanged=zy.prototype.dataChanged;_.d([_.M(),_.x("design:type",Object)],zy.prototype,"data",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zy.prototype,"dataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],zy);
_.p(zy,"ytd-channel-metadata-renderer",function(){if(s$h!==void 0)return s$h;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return s$h=D},{mode:1});var GVN;var E3M;var Dz=function(){var D=_.X.apply(this,arguments)||this;D.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"]);D.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"]);D.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return D};
_.P(Dz,_.X);_.q=Dz.prototype;_.q.attached=function(){this.requestElementsPerRow()};
_.q.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_]]"}}}}}};
_.q.onUpdateElementsPerRowAction=function(D){D&&this.elementsPerRow!==D&&(this.elementsPerRow=D)};
_.q.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.q.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.q.computeAlertStyle_=function(D){return D};
_.q.observerElementsPerRow=function(){this.elementsPerRow&&_.jZ(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.q.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.q.requestElementsPerRow=function(){_.Gf(this.hostElement,"yt-request-elements-per-row")};
Dz.prototype.onIsVisibleChanged_=Dz.prototype.onIsVisibleChanged_;Dz.prototype.observerElementsPerRow=Dz.prototype.observerElementsPerRow;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Dz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Dz.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Dz.prototype,"actionHandlerBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Dz.prototype,"data",void 0);_.d([_.M({value:6,reflectToAttribute:!0}),_.x("design:type",Number)],Dz.prototype,"elementsPerRow",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Dz.prototype,"wrapButtons",void 0);_.d([_.M({value:_.YC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.x("design:type",Boolean)],Dz.prototype,"isMusic",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.x("design:type",String)],Dz.prototype,"alertStyle",void 0);_.d([_.M({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.x("design:type",Function)],Dz.prototype,"dismissBoundButtonTap_",void 0);_.d([_.M({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.x("design:type",Function)],Dz.prototype,"acceptBoundButtonTap_",void 0);_.d([_.Os("elementsPerRow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dz.prototype,"observerElementsPerRow",null);_.d([_.Os("data.isVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dz.prototype,"onIsVisibleChanged_",null);_.d([_.xL({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Dz);
_.p(Dz,"yt-alert-with-actions-renderer",function(){if(E3M===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;GVN===void 0&&(GVN=document.createElement("template"));var e=GVN;H.call(t,e.content.cloneNode(!0),D.content.firstChild);E3M=D}D=E3M;return D},{mode:2});_.hB(_.l(function(D){function t(T){var c={};return _.G(_.$7,{text:T,className:_.jQ("ytPersonalGreetingViewModelHeadline",(c.ytPersonalGreetingViewModelHeadlineSmall=function(){return w()===48},c))})}
function H(T,c){return _.G("span",{el:T,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},t(c))}
var e=_.FI(_.Yi(function(){var T;return(T=D.data())==null?void 0:T.rendererContext},void 0,void 0,void 0,!0)),V=_.DY("span"),b=_.DY("span"),a=function(){return D.data().canvasPromoData},w=function(){var T;
return(T=D.data().bannerHeight)!=null?T:56},h=_.THV(e,{throttleMs:100}),K=_.THV(V,{throttleMs:100}),N=_.THV(b,{throttleMs:100}),k=function(){return K.width()-h.width()>1};
return _.G("yt-personal-greeting-view-model",{el:e,"aria-hidden":k,class:_.jQ(D.className,"ytPersonalGreetingViewModelHost"),style:_.O7({height:(0,_.FN)(function(){return k()?0:w()})})},_.G(_.E,{cond:function(){return D.data().avatar&&!(N.width()+(D.data().avatar?48:0)-h.width()>1)},
then:function(){return _.G(_.P5,{data:function(){return D.data().avatar}},{decoratedAvatarViewModel:function(T){return _.G(_.Fo,{data:T.data,
className:_.jQ("ytPersonalGreetingViewModelAvatar")})}})}}),_.G("h1",null,t(function(){var T;
return(a==null?void 0:(T=a())==null?void 0:T.headline)||(N.width()+(D.data().avatar?48:0)-h.width()>1?D.data().shorterGreeting:D.data().greeting)})),H(b,function(){return D.data().greeting}),H(V,function(){return D.data().shorterGreeting}))},"Ul"),"yt-personal-greeting-view-model",{props:{data:_.ij,
className:_.ij}});var tw=function(){var D=_.X.apply(this,arguments)||this;D.hidden=!1;D.isConstrainedList=!1;D.darkerDarkTheme=_.r("web_darker_dark_theme");D.responsiveSizing="COMPACT";D.attachedPlayers=_.r("kevlar_channel_trailer_multi_attach")?[]:void 0;D.player=null;D.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return D};
_.P(tw,_.X);_.q=tw.prototype;
_.q.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}}}}};
_.q.created=function(){var D=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){D.disposeMastheadAd()}]};
_.q.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new VSF(this.refresh,this.contents))};
_.q.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.q.activeChanged=function(){var D=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=D)};
_.q.tabsChanged=function(){var D=this,t,H;if(this.pageSubtype==="channels"||_.r("kevlar_tab_gestures_for_tabbed_header_data")&&((t=this.data)==null?0:(H=t.header)==null?0:H.carouselHeaderRenderer))this.tabGestures=new FkZ(this.contents,this.contents,this.hostElement,this.header,function(a){D.ytdReduxBehavior.dispatch(a)});
var e,V,b;t=(e=this.data)==null?void 0:(V=e.contents)==null?void 0:(b=V.twoColumnBrowseResultsRenderer)==null?void 0:b.tabs;this.tabGestures&&this.tabGestures.tabsChanged(t)};
_.q.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.q.engagementPanelsChanged=function(){var D=_.qS().resolve(_.tr);if(D){if(this.engagementPanels)for(var t=_.F(this.engagementPanels),H=t.next();!H.done;H=t.next()){var e=void 0;(H=(e=H.value.identifier)==null?void 0:e.tag)&&D.panelMap.delete(H)}this.engagementPanels=[];var V;t=_.F(((V=this.data)==null?void 0:V.panels)||[]);for(V=t.next();!V.done;V=t.next()){V=_.O(V.value,_.UeZ);var b=H=void 0,a=void 0,w=void 0;if(e=((H=V)==null?void 0:H.targetId)||((b=V)==null?void 0:b.panelIdentifier)||((a=V)==
null?void 0:(w=a.identifier)==null?void 0:w.tag))b=H=void 0,(b=(H=D).registerPanelContent)==null||b.call(H,e,{engagementPanelSectionListRenderer:V}),this.engagementPanels.push(V)}}};
_.q.onStampFinished=function(){var D=this;_.Vi(this,function(){if(D.tabGestures){var t=D.tabGestures;if(t.scrollPositionNeedsUpdate){var H=_.qS().resolve(_.by(_.bO)),e;if((e=t.selectedTab)!=null&&e.title&&H&&(e=H.getCurrentPage())){if(t.scrollPositionForTabs.has(t.selectedTab.title)){var V,b;H=(b=(V=H.getCurrentPage())==null?void 0:V.clientHeight)!=null?b:0;V=t.scrollPositionForTabs.get(t.selectedTab.title);e.setScrollTop(V);H>V+100&&(t.scrollPositionNeedsUpdate=!1)}else e.setScrollTop(Math.min(t.lastVisitedTabScrollPosition!==
void 0?t.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,t.tabsStartAtInPx)),t.scrollPositionNeedsUpdate=!1;t.ytdReduxDispatch(Slg(!1))}}}})};
_.q.loadPage_=function(D){this.initCsi();D&&(this.data=D);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.q.getTitle=function(D){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",D))return this.get("microformat.microformatDataRenderer.title",D);if(this.get("header.feedTabbedHeaderRenderer.title",D))return _.eo(this.get("header.feedTabbedHeaderRenderer.title",D));if(this.get("header.interactiveTabbedHeaderRenderer.title",D))return this.get("header.interactiveTabbedHeaderRenderer.title",D);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
D))return _.eo(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",D));var t,H;return(D==null?0:(t=D.header)==null?0:(H=t.pageHeaderRenderer)==null?0:H.pageTitle)?D.header.pageHeaderRenderer.pageTitle:""};
_.q.updateTitle=function(D){_.Gf(this.hostElement,"yt-update-title",this.getTitle(D))};
_.q.initCsi=function(){_.V7(this.pageSubtype||"browse",["ol","cpt"])};
_.q.getPlayer=function(){if(_.r("kevlar_channel_trailer_multi_attach")){for(var D=_.F(this.attachedPlayers),t=D.next();!t.done;t=D.next())if(t=t.value,t.isConnected||_.RK(this.hostElement,t))return t;return null}return this.player};
_.q.getPlayerContainer=function(){return null};
_.q.onPlayerAttached=function(D,t){_.r("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(t):this.player=t};
_.q.onPlayerDetached=function(D,t){_.r("kevlar_channel_trailer_multi_attach")?(D=this.attachedPlayers.indexOf(t),D<0||this.attachedPlayers.splice(D,1)):this.player=null};
_.q.getServiceTrackingParams=function(){var D,t;return((D=this.data)==null?void 0:(t=D.responseContext)==null?void 0:t.serviceTrackingParams)||[]};
_.q.setMastheadAd=function(D){D&&D.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=D&&D.mastheadAd};
_.q.dataChanged=function(){var D=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.Nz4();_.Vi(this,function(){_.Kl(D.hostElement,"ytd-update-grid-state-action")})};
_.q.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.q.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var D=this.data.alerts;return D&&D.find(function(t){return!!t.alertWithActionsRenderer})}};
_.q.computeGreetingData=function(){if(this.data&&this.data.alerts){var D=this.data.alerts;return D&&D.find(function(t){return!!t.personalGreetingViewModel})}};
_.q.computeHasMemberHubProfileRenderer=function(D){var t;return!!(D==null?0:(t=D.header)==null?0:t.memberHubProfileRenderer)};
_.q.handleAlertCommand=function(D){this.get("alertCommand.alert.alertWithActionsRenderer",D)&&(D=_.O(D,p0H),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",D.alert))};
_.q.handleYtPlaylistDeletionRedirect=function(D){D=this.get("playlistDeletionRedirectCommand.redirectEndpoint",D);_.Gf(this.hostElement,"yt-navigate",{endpoint:D})};
_.q.computeFluidWidth=function(D,t,H){if(t==="mini_app"||H)return!0;var e,V,b;D=D==null?void 0:(e=D.contents)==null?void 0:(V=e.twoColumnBrowseResultsRenderer)==null?void 0:(b=V.tabs)==null?void 0:b.find(function(h){var K;return h==null?void 0:(K=h.tabRenderer)==null?void 0:K.selected});
if(!D)return!1;var a,w;return!!((a=D.tabRenderer)==null?0:(w=a.content)==null?0:w.richGridRenderer)&&!["channel","channels","playables"].includes(t)};
_.q.computeHeaderFluidWidth=function(D){return D==="hashtag-landing-page"};
_.q.computeHasSidebar=function(D){var t;return!!(D.sidebar||((t=D.header)==null?0:t.playlistHeaderRenderer))};
_.q.computeHasPageHeaderSidebar=function(D){var t,H;return!!((t=D.header)==null?0:(H=t.pageHeaderRenderer)==null?0:H.enableSidebarView)};
_.q.computeUseUnifiedShowPageLayout=function(D){if(!D||this.pageSubtype!=="show"||!D.sidebar||!D.sidebar.playlistSidebarRenderer)return!1;D=D.sidebar.playlistSidebarRenderer;if(!D.items)return!1;for(var t=0;t<D.items.length;t++)if(_.O(D.items[t],RbY)){var H=void 0;return((H=_.O(D.items[t],RbY))==null?void 0:H.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.q.computeIsConstrainedList=function(D){return _.r("web_enable_constrained_list_subscriptions_channels")&&D==="subscriptions-channels"};
_.q.computeResponsiveSizing=function(D){return D==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.ql.Object.defineProperties(tw.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var D,t;return((D=this.data)==null?0:(t=D.header)==null?0:t.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var D,t;if(!((D=this.data)==null?0:(t=D.sidebar)==null?0:t.playlistSidebarRenderer))return!1;var H;return(H=this.data)!=null&&H.header?!1:!0}}});
_.ql.Object.defineProperties(tw,{template:{configurable:!0,enumerable:!0,get:function(){if(aFH===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);aFH=D}D=aFH;return D}}});
tw.prototype.dataChanged=tw.prototype.dataChanged;tw.prototype.onPlayerDetached=tw.prototype.onPlayerDetached;tw.prototype.onPlayerAttached=tw.prototype.onPlayerAttached;tw.prototype.onStampFinished=tw.prototype.onStampFinished;tw.prototype.engagementPanelsChanged=tw.prototype.engagementPanelsChanged;tw.prototype.scrollAtTopChanged=tw.prototype.scrollAtTopChanged;tw.prototype.tabsChanged=tw.prototype.tabsChanged;tw.prototype.activeChanged=tw.prototype.activeChanged;
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],tw.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],tw.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],tw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],tw.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.bn.YtPageBehavior),_.x("design:type",Object)],tw.prototype,"ytPageBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],tw.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],tw.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],tw.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],tw.prototype,"hidden",void 0);
_.d([_.M(),_.x("design:type",Object)],tw.prototype,"mastheadAdData",void 0);_.d([_.M({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.x("design:type",Object)],tw.prototype,"alertBannerData",void 0);_.d([_.M({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.x("design:type",Object)],tw.prototype,"greetingData",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],tw.prototype,"pageSubtype",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.x("design:type",Boolean)],tw.prototype,"hasMemberHubProfileRenderer",void 0);_.d([_.M({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],tw.prototype,"hasSidebar",void 0);_.d([_.M({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],tw.prototype,"hasPageHeaderSidebar",void 0);
_.d([_.M({reflectToAttribute:!0,value:!0}),_.x("design:type",Boolean)],tw.prototype,"roundedContainer",void 0);_.d([_.M({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],tw.prototype,"useUnifiedShowPageLayout",void 0);_.d([_.M({computed:"computeIsConstrainedList(pageSubtype)"}),_.x("design:type",Object)],tw.prototype,"isConstrainedList",void 0);
_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],tw.prototype,"usePlaylistHeaderRenderer",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],tw.prototype,"useOldPlaylistSidebarRenderer",null);_.d([_.M({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.x("design:type",Boolean)],tw.prototype,"fluidWidth",void 0);_.d([_.M({selector:function(D){return D.ui.scrollAtTop}}),
_.x("design:type",Boolean)],tw.prototype,"scrollAtTop",void 0);_.d([_.M({selector:_.pnY}),_.x("design:type",Boolean)],tw.prototype,"tabGesturesIsActive",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],tw.prototype,"darkerDarkTheme",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.x("design:type",Boolean)],tw.prototype,"disableHeaderFluidWidth",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.x("design:type",String)],tw.prototype,"responsiveSizing",void 0);_.d([_.o5("ytd-two-column-browse-results-renderer"),_.x("design:type",HTMLElement)],tw.prototype,"contents",void 0);_.d([_.o5("#header"),_.x("design:type",HTMLElement)],tw.prototype,"header",void 0);_.d([_.o5("ytd-refresh"),_.x("design:type",Object)],tw.prototype,"refresh",void 0);
_.d([_.Os("active"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tw.prototype,"activeChanged",null);_.d([_.Os("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tw.prototype,"tabsChanged",null);_.d([_.Os("scrollAtTop"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tw.prototype,"scrollAtTopChanged",null);
_.d([_.M(),_.x("design:type",Object)],tw.prototype,"engagementPanels",void 0);_.d([_.Os("data.panels"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tw.prototype,"engagementPanelsChanged",null);_.d([_.rx("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tw.prototype,"onStampFinished",null);
_.d([_.rx("yt-player-attached"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Element]),_.x("design:returntype")],tw.prototype,"onPlayerAttached",null);_.d([_.rx("yt-player-detached"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Element]),_.x("design:returntype")],tw.prototype,"onPlayerDetached",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tw.prototype,"dataChanged",null);
_.d([_.Y({is:"ytd-browse"})],tw);_.gf.registerService(_.iHT,tw);
_.Je();
}catch(e){_._DumpException(e)}
try{
_.gV("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 tu,C1t,mJH,MPF,ST4,Xhi,fkF,L$Q,AEH,g0F,JEH,YTb,lkQ,phe,dJb,RLe,uyH,W$Z,Q44,yEQ,BEH,zLt,HL,tRH,eI,HCQ,eGY,VRZ,bCH,qOH,a8Q,ZCF,F1F,v0O,sfQ,hGF,Gut,EeF,K1b,NOQ,kuY,TOF,cV4,$QY,iC4,OCg,oee,nei,CGH,mQi,SOQ,f8v,L1H,AVH,geF,JVF,YOY,l8e,veH,pH4,dQt,xQF,RGb,uKF,W1F,I8Z,QfO,yVe,BO4,zGt,tot,H_b,edi,Voi,b_v,qLF,FPt,a2Q,w74,Z_v,sht,hdO,GKe,EgH,KPF,NnF,kKY,TnH,cGg,jhg,$FQ,i_H,rGQ,O_4,hu,UFF,ogQ,C_O,JGY,p7Q,dFZ,I2t,QhF,WPv,RdH,DyF,elZ,wTY,xFY,bgH,tZg,TD,s5b,ELF,k1F,Kxb,NxY,Txe,ige,j5H,rhg,OgQ,$yi,chF,UyH,ic,
ru,MZO,Sst,OS,XTQ,f9F,LxH,vLi,pTF,US,oG,xyv,dyH,RlF,udt,WxF,I9Q,PL,n4,C4,eNe,VaY,bze,M9,ZzH,q_Q,wcv,sQg,FVb,GLe,ate,Nje,EPv,KVZ,SI,Tjv,kLv,izi,oPZ,Au,gu,OzF,nPb,UTF,PfQ,Y_,vL,p4,du,QQF,Y_4,zNH,DXQ,tQF,Hbi,VQt,ftt,LVF,uc,gPY,x_,RG,JjQ,eM4,yjZ,Ajg,IG,hMH,EXF,KMF,G3v,aPF,k34,jHF,De,BL,zD,rB4,FMF,Hx,cBH,wZv,Tm4,sHF,q7H,ZbF,UXt,oXF,PiO,CiH,MQF,S7Z,XZY,fPg,ABH,LMF,JBe,Y7H,vXZ,pZF,xXv,RMH,uIF,WMt,IPQ,QHF,yBZ,zMQ,BmZ,Dxi,tdZ,b0,HfY,eoO,q6,Vde,bfY,qIF,FtF,agQ,w5i,ZfF,snv,GmZ,Ff,Eit,KtY,TF4,jn4,$xF,r5Y,ifv,
Ofe,UxZ,oiY,nie,COZ,mxZ,MdZ,SIt,X5F,fgt,LtF,A5Y,gie,J5H,YIO,dxH,xxZ,vi4,p5F,lgH,Roi,IgO,uAe,Wt4,BFe,QnF,y5e,zob,DIO,tNZ,HPH,VNt,bPi,qEY,aTQ,wm4,ssv,GXb,KcF,kXt,clZ,$Ig,rlQ,UIt,nGi,Ceb,mIH,SEF,MNH,fTe,Lce,Alt,gG4,wR,Jlv,YEZ,lTZ,ylF,z7b,DPO,Vwg,bse,qGb,FTe,wXg,am4,Zs4,s6Q,h8g,GkH,EKv,GD,KTH,Ee,NgF,NLe,kkF,PGY,TLF,c8i,j6Y,$P4,ist,r8e;
tu=function(D){if(!D)return"browse";var t=D.page,H=D.url,e,V,b,a=(e=D.response)==null?void 0:(V=e.responseContext)==null?void 0:(b=V.webResponseContextExtensionData)==null?void 0:b.pageTheme;if(a)t=a.toLowerCase().replace(/_/g,"-");else if(t!=="watch"&&t!=="learning_journey_watch"){var w,h;if((t==="browse"||t==="settings")&&((w=D.response)==null?0:(h=w.sidebar)==null?0:h.settingsSidebarRenderer))t="WEB_PAGE_TYPE_SETTINGS";else{var K,N;t==="browse"&&((K=D.response)==null?0:(N=K.metadata)==null?0:N.channelMetadataRenderer)?
t="channel":H&&(t=_.RAD(H)||t)}}return t};
C1t=function(){var D=_.RD("yt.aba.att");return D?D:_.Aa.instance!==void 0?_.Aa.instance.qWt.bind(_.Aa.instance):null};
mJH=function(D,t){var H;return _.Z(function(e){return(H=C1t())?e.return(H(D,t,6E4)):e.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
MPF=function(D,t,H,e,V){t=t===void 0?[]:t;V=V?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:V}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.wO(D),dialogMessages:t.map(function(b){return _.wO(b)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.wO(H),serviceEndpoint:V}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.wO(e)}}}}}};
ST4=function(D){var t=!!_.k$().queueProxy;var H,e,V;D=D==null?void 0:(H=D.response)==null?void 0:(e=H.currentVideoEndpoint)==null?void 0:(V=e.watchEndpoint)==null?void 0:V.playlistId;return!(!t&&!D)};
Xhi=function(D,t){var H=_.d3();if(ST4(D)&&!_.r("web_watch_disable_playlist_auto_miniplayer"))return H.playlistWatchPageActivation=!0;switch(tu(t)){case "yts-products":return H.productDetailsPageActivation=!0;case "mini_app":return H.miniAppPageActivation=!0;case "playables":return H.playablesDestPageActivation=!0;default:return!1}};
fkF=function(D){D=_.FDV(D);D.length>0&&D[0].focus()};
L$Q=function(D,t,H){for(var e=typeof D==="string"?D.split(""):D,V=D.length-1;V>=0;--V)V in e&&t.call(H,e[V],V,D)};
AEH=function(D,t){t=_.n33(D,t);t>=0&&_.MVX(D,t)};
g0F=function(D){return Array.prototype.concat.apply([],arguments)};
JEH=function(D){var t=0;t=t===void 0?0:t;if(!_.z4(D))throw _.Df("uint64");var H=typeof D;switch(t){case 512:switch(H){case "string":return _.SmR(D);case "bigint":return String((0,_.Ke)(64,D));default:return _.mw6(D)}case 1024:switch(H){case "string":return _.X9V(D);case "bigint":return _.mn((0,_.Ke)(64,D));default:return _.Mfu(D)}case 0:switch(H){case "string":return _.SmR(D);case "bigint":return _.mn((0,_.Ke)(64,D));default:return _.CaV(D)}default:return _.xv(t,"Unknown format requested type for int64")}};
YTb=function(D){D!=null&&(D=D.JSC$8825_value_||"",D=typeof D==="string"?D:new Uint8Array(D));return D};
lkQ=function(D,t){if(/-[a-z]/.test(t))return null;if(_.iMa&&D.dataset){if(_.cT3()&&!(t in D.dataset))return null;D=D.dataset[t];return D===void 0?null:D}return D.getAttribute("data-"+_.UW(t))};
phe=function(){var D=v0O;_.RD("yt.ads.biscotti.getId_")||_.bg("yt.ads.biscotti.getId_",D)};
dJb=function(D){_.bg("yt.ads.biscotti.lastId_",D)};
RLe=function(){var D={};for(_.Xc=new xJH(D.handleError===void 0?_.Jp:D.handleError,D.logEvent===void 0?_.L7:D.logEvent);_.fZ.length>0;)switch(D=_.fZ.shift(),D.type){case "ERROR":_.Xc.logError(D.payload);break;case "EVENT":_.Xc.logEvent(D.eventType,D.payload)}};
uyH=function(D,t,H){return _.b_$(function(e){return H?e.userIdentifier!==void 0&&!D.includes(e.userIdentifier)&&H.includes(e.publicName):e.userIdentifier!==void 0&&!D.includes(e.userIdentifier)},t)};
W$Z=function(D){var t,H;return _.Z(function(e){if(e.nextAddress==1)return t=_.oA("YtIdbMeta hasAnyMeta other"),e.yield(_.b_$(function(V){return V.userIdentifier!==void 0&&V.userIdentifier!==t},D),2);
H=e.yieldResult;return e.return(H.length>0)})};
Q44=function(D,t){IkQ||(IkQ=_.Jy.addLowPriorityJob(function(){var H,e,V,b,a;return _.Z(function(w){switch(w.nextAddress){case 1:return w.yield(_.qO(),2);case 2:H=w.yieldResult;if(!H)return w.return();e=!0;_.$p(w,3);return w.yield(uyH(D,H,t),5);case 5:V=w.yieldResult;if(!V.length){e=!1;w.jumpTo(6);break}b=V[0];return w.yield(_.BY(b.actualName),7);case 7:return w.yield(_.ty(b.actualName,H),6);case 6:_.yM(w,4);break;case 3:a=_.Pv(w),_.LZ(a),e=!1;case 4:_.Jy.cancelJob(IkQ),IkQ=0,e&&Q44(D,t),_.n2(w)}})}))};
yEQ=function(){var D;return _.Z(function(t){return t.nextAddress==1?t.yield(_.qO(),2):(D=t.yieldResult)?t.return(W$Z(D)):t.return(!1)})};
BEH=function(D){var t=100;t=t===void 0?500:t;var H,e,V,b,a,w;return _.Z(function(h){return h.nextAddress==1?(H=_.YC("INNERTUBE_CONTEXT_CLIENT_NAME",0),e=[H,(0,_.aP)()-2592E6],V=[H,(0,_.aP)()],b=IDBKeyRange.bound(e,V),h.yield(_.MaD(D),2)):h.nextAddress!=3?(a=h.yieldResult,w=[],h.yield(_.D4(a,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(K){w.length=0;return _.wk(K.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:b,direction:"prev"},function(N){if(N.getValue()&&w.length<
t)return w.push(N.getValue()),N.delete().then(function(){return N.continue()})})}),3)):h.return(w)})};
zLt=function(){var D;return _.Z(function(t){if(t.nextAddress==1)return t.yield(_.qO(),2);D=t.yieldResult;if(!D||!_.PY()&&!_.r("nwl_init_require_datasync_id_killswitch")||!_.yjA())return t.jumpTo(0);_.zNV=!0;_.BjV.isNwlInitialized=_.zNV;return t.yield(_.JKV().awaitInitialization(),0)})};
HL=function(D,t){_.NmK[D]=!0;var H=_.wT();H&&H.publish.apply(H,arguments);_.NmK[D]=!1};
tRH=function(){if(_.udk()&&!DQg){var D=function(H){H=H.data;if(H.op==="serializedGelBatch"){var e=_.kmA.get(H.key);e&&(_.c5k(H.serializedBatch,e.client,e.resolve,e.networklessOptions,e.isIsolated,e.useVSSEndpoint,e.dangerousLogToVisitorSession,e.requestsOutstanding),_.kmA.delete(H.key))}},t=_.RlT();
t&&(t.addEventListener("message",D),t.onerror=function(){_.kmA.clear()});
DQg=!0}};
eI=function(){this.relativeTimeStart_=_.wU()};
HCQ=function(D,t){D!=null&&this.append.apply(this,arguments)};
eGY=function(){return _.uo("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
VRZ=function(D,t,H){H=H===void 0?!1:H;var e,V,b,a,w;return _.Z(function(h){switch(h.nextAddress){case 1:_.Oa("SOCS",D,34128E3,"youtube.com",!0);if(_.TE)return V=fetch(t,{method:"POST",mode:_.zA(t),credentials:_.B3(t),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),b=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.zA("/upgrade_visitor_cookie?eom=1"),credentials:_.B3("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),h.yield(Promise.all([V,b]).then(function(K){return K[1]}),5);
fetch(t,{method:"POST",mode:_.zA(t),credentials:_.B3(t),cache:"no-store",headers:{"Content-Type":"text/plain"}});return h.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.zA("/upgrade_visitor_cookie?eom=1"),credentials:_.B3("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:e=h.yieldResult;h.jumpTo(3);break;case 5:e=a=h.yieldResult;case 3:if(!e.ok)throw Error("sf");return h.yield(e.text(),7);case 7:w=h.yieldResult,
!w.includes('"state_switch":true')&&!H||w.includes("skip_reload_for_test")||window.location.reload(),_.n2(h)}})};
bCH=function(D){return _.Z(function(t){return t.nextAddress==1?t.yield(VRZ(D.socsCookie,D.savePreferenceUrl,!0),2):t.return()})};
qOH=function(D){return _.Z(function(t){return t.nextAddress==1?t.yield(VRZ(D.socsCookie,D.savePreferenceUrl),2):t.return()})};
a8Q=function(D){D=D.xhr.responseText;if(!_.qu(D,")]}'"))throw new V3;D=JSON.parse(D.substr(4));if((D.type||1)>1)throw new V3;D=D.id;dJb(D);bc=_.cK(D);F1F(18E5,2);return D};
ZCF=function(D,t){t=new wHv(t);dJb("");bc=_.hAw(t);D>0&&F1F(12E4,D-1);throw t;};
F1F=function(D,t){_.KZ(function(){_.eLF().then(a8Q,function(H){return ZCF(t,H)}).thenCatch(_.fJ)},D)};
v0O=function(){var D=_.qTi();if(D!==void 0)return _.Aj(D);bc||(bc=_.eLF().then(a8Q).thenCatch(function(t){return ZCF(2,t)}));
return bc};
sfQ=function(){var D=document;return _.LK(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(t){return"on"+t.toLowerCase()in D})};
hGF=function(D){D.addEventListener("click",function(t){var H=t.target;H&&H.getAttribute("href")&&(H=H.getAttribute("href"),_.D7(window,H,"_blank"),t.preventDefault(),t.stopImmediatePropagation())})};
Gut=function(D){var t,H,e,V=(e=(H=((t=D.mainDownloadsListEntity)!=null?t:{})[_.qKD])==null?void 0:H.refresh)!=null?e:"",b;D=(b=D.refresh)==null?void 0:b[V];V=D!=null?D:{};return(V==null?0:V.refreshTime)?Number(V==null?void 0:V.refreshTime):0};
EeF=function(D,t){var H=_.fC(D);return t.every(function(e){var V;e=e==null?void 0:(V=e.playbackDataEntity)==null?void 0:V.key;if(!e)return!1;V=_.cH(_.NQ(e).entityId,"mainVideoEntity");return!!H[V]})};
K1b=function(D){D=_.MQ(D.entities);return _.jj8(D).length};
NOQ=function(D,t){if(t){var H;D=(H=_.jR(D.entities,"downloadQualityPickerEntity",t))!=null?H:void 0}else D=void 0;return D};
kuY=function(D){var t=document.getElementsByTagName("ytd-enforcement-message-view-model");t.length===0||getComputedStyle(t[0]).display==="none"?D(0,"p.h_"):D(1,"p.h_")};
TOF=function(){q9=0;var D=[_.n_(!0)];FV&&_.Kl(FV,"yt-window-resized",D)};
cV4=function(){q9||(q9=_.Jy.addLowPriorityJob(TOF,200))};
$QY=function(){aG=0;jfF=_.rFQ(document);var D=[jfF];FV&&_.Kl(FV,"yt-window-scrolled",D)};
iC4=function(){aG||(aG=_.Jy.addLowPriorityJob($QY,200))};
OCg=function(D){D=D===void 0?null:D;rVF.push(_.bm(window,"resize",cV4));rVF.push(_.bm(window,"scroll",iC4));D&&(FV=D)};
oee=function(){var D={isWide:_.ri.get("wide","0")==="1"},t=_.Ph();if(t=t.getFlag(165)||t.getFlag(174))D.theme=_.f_(!0);if(_.b8V()){var H=_.XO()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";D.systemTheme=H}!t&&_.r("parent_tools_enable_app_settings")&&_.yc(window.location.href).theme!==void 0&&(D.theme=_.f_());if((t=wu)?!_.J$.equals(t,D):D)t={currentValue:D},UQH&&(t.timeSinceLastSnapshotSecs=Math.round(((0,_.aP)()-UQH)/1E3)),wu&&(t.previousValue=wu),_.L7("appSettingsCaptured",t),wu=D,UQH=
(0,_.aP)()};
nei=function(){var D=_.JG.getLocalStorage();D&&PGY(D,D.mechanism.__iterator__(!0))};
CGH=function(D){_.Z(function(t){if(t.nextAddress==1)return t.yield(D.delete("yt-appshell-assets"),2);_.n2(t)})};
mQi=function(D){return _.zW((0,_.lco)(),D)};
SOQ=function(){var D;_.Z(function(t){return t.nextAddress==1?t.yield(ZR.getInstance(),2):(D=t.yieldResult)?t.yield(MRe(D),0):t.jumpTo(0)})};
f8v=function(){var D;_.Z(function(t){return t.nextAddress==1?t.yield(sS.getInstance(),2):(D=t.yieldResult)?t.yield(XHF(D),0):t.jumpTo(0)})};
L1H=function(D){CGH(D);SOQ();f8v()};
AVH=function(D){var t,H;return _.Z(function(e){if(e.nextAddress==1)return e.yield(_.PUT(D),2);if(t=e.yieldResult){var V;a:{if(t.headers&&(V=t.headers.get("date"))&&(V=Date.parse(V),!isNaN(V))){V=Math.round((0,_.aP)()-V);break a}V=-1}H=V;if(H>-1)return e.return(H)}return e.return(-1)})};
geF=function(){var D=_.VA.caches,t=_.lh("IS_SHELL_LOAD"),H,e;_.Z(function(V){if(V.nextAddress==1)return H=-1,t?V.yield(AVH(D),3):(e=_.Xy(),H=Math.round((0,_.aP)()-e),V.jumpTo(2));V.nextAddress!=2&&(H=V.yieldResult);H>=0&&H<2147483648&&_.JE({appInstallDataAgeMs:H});_.n2(V)})};
JVF=function(D){var t=_.IK(_.VA.location.href),H={};"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(e){var V=t.JSC$10036_queryData_.getValues(e);if(V==null?0:V.length)H[e]=V});
return _.N3(D,new Map(Object.entries(H)))};
YOY=function(D){D=D.match(/(.*)::.*::.*/);if(D!==null)return D[1]};
l8e=function(D){if(_.RzD()){var t=Object.keys(window.localStorage);t=_.F(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;var e=YOY(H);e===void 0||D.includes(e)||self.localStorage.removeItem(H)}}};
veH=function(){if(!_.RzD())return!1;var D=_.oA(),t=Object.keys(window.localStorage);t=_.F(t);for(var H=t.next();!H.done;H=t.next())if(H=YOY(H.value),H!==void 0&&H!==D)return!0;return!1};
pH4=function(D){return _.lJ("NotificationsDisabled",D)};
dQt=function(){return Notification.permission!="granted"?Promise.resolve():_.d2F().then(function(D){return D?D.pushManager.getSubscription().then(function(t){if(t)return Promise.resolve();t={userVisibleOnly:!0,applicationServerKey:_.zV("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return D.pushManager.subscribe(t).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
xQF=function(D){return _.d2F().then(function(t){if(!t||!t.active)return Promise.reject(new _.nZ("serviceworker.postMessage",D,t));try{return t.active.postMessage(D),Promise.resolve()}catch(H){return Promise.reject(H)}})};
RGb=function(){xQF({type:"notifications_register",data:_.YC("ID_TOKEN")})};
uKF=function(){if(!_.lh("LOGGED_IN"))return Promise.resolve(!1);var D=_.sa("service_worker_push_force_notification_prompt_tag");return D?_.p5("PromptTags").then(function(t){if(!t)return!0;var H=[];try{H=JSON.parse(t)}catch(e){return!1}return H&&H.indexOf(D)==-1}):Promise.resolve(!1)};
W1F=function(){var D=_.ZU("service_worker_push_prompt_delay_microseconds");return D?_.p5("PromptTime").then(function(t){return Promise.resolve(Date.now()-D>(t||0))}):Promise.resolve(!0)};
I8Z=function(){var D=_.ZU("service_worker_push_logged_out_prompt_watches");return D==-1?Promise.resolve(!1):_.p5("WatchCount").then(function(t){return t>=D})};
QfO=function(){var D=_.wF(document,"yt-push-prompt-modal-bg");D&&_.UH(D)};
yVe=function(){return _.ZU("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.p5("PromptCount").then(function(D){D||(D=0);return Promise.resolve(D<_.ZU("service_worker_push_prompt_cap"))})};
BO4=function(D){return _.lh("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.lh("LOGGED_IN")&&(D===void 0?0:D)?uKF().then(function(t){if(t)return!0;t=[yVe(),W1F()];_.lh("LOGGED_IN")||t.push(I8Z());return Promise.all(t).then(function(H){return H.every(function(e){return e})})}):Promise.resolve(!1)};
zGt=function(){_.p5("PromptCount").then(function(D){return _.lJ("PromptCount",D+1)}).then(function(){return _.lJ("PromptTime",Date.now())}).then(function(){var D=_.sa("service_worker_push_force_notification_prompt_tag");
if(D)return _.p5("PromptTags").then(function(t){var H=[];if(t)try{H=JSON.parse(t)}catch(e){return!1}H||(H=[]);H.push(D);return _.lJ("PromptTags",JSON.stringify(H))})})};
tot=function(){DFY||QfO()};
H_b=function(D){D.style.zIndex=2147483648;D.style.pointerEvents="auto";D.style.backgroundColor="rgba(0, 0, 0, 0.6)";D.style.width="100%";D.style.height="100vh";D.style.position="absolute";D.style.top="0";D.style.left="0";D.style.border="none"};
edi=function(){var D=_.wF(document,"yt-push-prompt-modal-bg");DFY=_.r("service_worker_push_prompt_modal_ignore_click");D?H_b(D):(D=_.pJ("div",{id:"yt-push-prompt-modal-bg"}),H_b(D),document.body.appendChild(D),_.sHX(document,"click",tot))};
Voi=function(){var D=arguments;_.r("service_worker_push_prompt_modal_enable")&&edi();return Notification.requestPermission().then(function(t){QfO();var H=document.getElementById("ticker");H&&(H.className=H.classList.remove("show"));if(t=="granted")return dQt().then(function(){pH4(!1);RGb();return Promise.resolve(!0)});
t=="denied"&&RGb();return Promise.resolve(!1)}).catch(function(){QfO();
return Promise.reject.apply(Promise,_.A6(D))})};
b_v=function(D){D=D===void 0?!1:D;var t=_.Z8V().client;if(t&&t.browserVersion){var H=t.browserVersion,e=t.browserName=="CHROME"&&_.Nu(H,"50.0.0")<0;t=t.browserName=="OPERA"&&_.Nu(H,"42.0.0")<0;if(e||t)return Promise.resolve()}return _.uHg().then(function(V){if(!V)return Promise.resolve();V=dQt().then(function(){return xQF({type:"notifications_check_registration",data:_.YC("ID_TOKEN")})});
return Notification.permission!="default"?V.catch(function(){}):V.then(function(){return BO4(D)}).then(function(b){if(b)return zGt(),Voi().then(function(){})}).catch(function(){})})};
qLF=function(D){return _.x2F(D)?b_v():Promise.resolve()};
FPt=function(D){var t=D.installing||D.waiting;return D.active||!t?Promise.resolve(D):new Promise(function(H){var e=function(V){V=V.target;if(V.state==="activated"||V.state==="redundant")t.removeEventListener("statechange",e),H(D)};
t.addEventListener("statechange",e)})};
a2Q=function(){var D=new _.Gdk("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.Gk(D,{mainAppWeb:_.th()});var t=_.VUn;_.r("service_worker_forward_exp_params")&&(t=JVF(t));try{var H=_.sgD(t).catch(function(){_.EG(D,"FAILURE");return new Promise(function(){})});
_.r("service_worker_push_enabled")&&H.then(function(e){_.EG(D,"SUCCESS");return e}).then(FPt).then(qLF)}catch(e){if(_.EG(D,"FAILURE"),e.name!=="SecurityError")throw e;
}};
w74=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&a2Q()};
Z_v=function(D,t){var H={};t&&(H.serializedYpcFamilyCreateLoggingParams=t);_.L7(D,H);_.Ap()};
sht=function(D,t){var H={};H.serializedYpcRefundFlowLoggingParams=t;D&&(H.eventType=D);_.L7("ypcRefundFlowEvent",H);_.Ap()};
hdO=function(D){D&&_.GgR("transactionFlowSucceeded",D)};
GKe=function(D){D&&_.c2("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",D,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
EgH=function(D){var t,H,e,V,b,a,w;_.Z(function(h){if(h.nextAddress==1)return h.yield(_.WoX(),2);if(h.nextAddress!=3){if(!h.yieldResult)return h.return(!1);t=[];return h.yield(_.T3.keys(),3)}H=h.yieldResult;e=_.F(H);for(V=e.next();!V.done;V=e.next())b=V.value,a=_.Rkk(b),w=a.datasyncId,!w||D.includes(w)||t.push(_.T3.delete(b));return h.return(Promise.all(t).then(function(K){return K.some(function(N){return N})}))})};
KPF=function(){var D,t,H,e,V,b,a;return _.Z(function(w){if(w.nextAddress==1)return w.yield(_.WoX(),2);if(w.nextAddress!=3){if(!w.yieldResult)return w.return(!1);D=_.oA("cache contains other");return w.yield(_.T3.keys(),3)}t=w.yieldResult;H=_.F(t);for(e=H.next();!e.done;e=H.next())if(V=e.value,b=_.Rkk(V),(a=b.datasyncId)&&a!==D)return w.return(!0);return w.return(!1)})};
NnF=function(){var D=_.qS().resolve(_.by(_.D8v));return D?D.getCurrentTime():0};
kKY=function(){var D,t,H,e,V,b,a,w,h,K,N,k,T,c;return _.Z(function(U){switch(U.nextAddress){case 1:D={},t=_.IS3(),H=_.F(Object.entries(t)),e=H.next();case 4:if(e.done){U.jumpTo(3);break}V=e.value;b=_.F(V);a=b.next().value;w=b.next().value;h=a;K=w;if(!K){U.jumpTo(5);break}return U.yield(K(),8);case 8:D[h]=U.yieldResult;case 5:e=H.next();U.jumpTo(4);break;case 2:N=_.F(),k=N.next();case 9:if(k.done){U.jumpTo(3);break}T=k.value;c=t[T];if(!c){U.jumpTo(10);break}return U.yield(c(),13);case 13:D[T]=U.yieldResult;
case 10:k=N.next();U.jumpTo(9);break;case 3:return U.return(D)}})};
TnH=function(){var D;_.Z(function(t){if(t.nextAddress==1)return t.yield(kKY(),2);D=t.yieldResult;return t.yield(navigator.clipboard.writeText(JSON.stringify(D,null,2)),0)})};
cGg=function(D,t){return _.jR(D.entities,"superThanksSelectedTierEntity",t)};
jhg=function(D,t){return{popup:{searchSuggestionReportDialog:{searchQuery:D,title:_.OT("SBOX_INAPPROPRIATE_TITLE"),suggestions:t,categoryLabel:_.OT("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.OT("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.OT("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.OT("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.OT("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.OT("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.OT("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.OT("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.OT("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.OT("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
$FQ=function(D){var t,H,e,V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q;return _.Z(function(u){switch(u.nextAddress){case 1:return u.yield(_.rO(),2);case 2:return(t=u.yieldResult)?u.yield(_.AS8(t),3):u.return();case 3:H=u.yieldResult;if(!H)return u.return();V=((e=H.offlineVideos)==null?void 0:e.length)||0;a=((b=H.offlinePlaylists)==null?void 0:b.length)||0;if(V===0&&a===0)return u.return();w=0;if(H.offlineVideos)for(h=_.F(H.offlineVideos),K=h.next();!K.done;K=h.next())N=K.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
N.videoState&&(w+=1);D.offline_videos_count=V.toString();_.r("kevlar_log_offline_current_network_type_ks")||(D.offline_current_network_type=(k=_.XHD())!=null?k:"CONN_INVALID");_.r("kevlar_log_updated_time_for_smart_downloads")&&(T=_.b_().getState().entities,c=_.JV(T),U=Gut(T),D.offline_smart_downloads_last_sync_time_ms=c.toString(),D.offline_smart_downloads_next_sync_time_ms=U.toString());D.offline_videos_playable=w.toString();D.offline_playlists_count=a.toString();H.offlineVideos&&(S=H.offlineVideos.reduce(function(R,
I){I.downloadedBytes&&(R+=Number(I.downloadedBytes));return R},0).toString())&&(D.offline_used_disk_space_bytes=S);
if(!((L=navigator)==null?0:(J=L.storage)==null?0:J.estimate)){u.jumpTo(4);break}return u.yield(navigator.storage.estimate(),5);case 5:g=u.yieldResult,D.offline_free_disk_space_bytes=(((Q=g)==null?void 0:Q.quota)||0).toString();case 4:D.offline_client_state=JSON.stringify(H),_.n2(u)}})};
i_H=function(D){D=D.match(/(.*)::.*::.*/);if(D!==null)return D[1]};
rGQ=function(D){if(_.ICX()){var t=Object.keys(window.sessionStorage);t=_.F(t);for(var H=t.next();!H.done;H=t.next()){H=H.value;var e=i_H(H);e===void 0||D.includes(e)||self.sessionStorage.removeItem(H)}}};
O_4=function(){if(!_.ICX())return!1;var D=_.oA(),t=Object.keys(window.sessionStorage);t=_.F(t);for(var H=t.next();!H.done;H=t.next())if(H=i_H(H.value),H!==void 0&&H!==D)return!0;return!1};
hu=function(D,t,H){(_.r("desktop_keyboard_shortcut_usage_log")||H&&_.r("web_shorts_keyboard_shortcut_usage_log"))&&(t?_.RV.get(D):_.x8.get(D))&&(D=t?_.WA.get(D):_.uJ.get(D))&&_.tV(_.v3(),D)};
UFF=function(D,t){return D.findIndex(function(H){return H.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(t.keyCode):!1};
ogQ=function(D,t){t.stack&&(D.stack+="\n"+t.stack);return D};
C_O=function(D){var t=GD(D,"Content-Type");if(!t)return null;t=t.toLowerCase();if(t.startsWith("application/json"))return t.startsWith("application/json+protobuf")?new P_F:new _.UA;if(t.startsWith("application/x-protobuf")){D=GD(D,"Content-Transfer-Encoding");if(!D)return new ES;if(D.toLowerCase()=="base64")return new ngF}return null};
JGY=function(D,t,H,e){var V=new mF4(function(w,h){return Mog.has(h)?w.sentinel==="gal"&&w.event!==void 0:!1},function(w){w.event?(w=SLZ(w.event),w=!w||X7i(e,w)?!0:_.Ut(D.lastEvent,K4,2,N9)?!_.Ut(w,k_,1,N9)&&!_.Ut(w,K4,2,N9):!_.Ut(w,k_,1,N9)&&!_.Ut(w,K4,3,N9)):w=!0;
return w});
H=_.N3(D.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",f2Z(H)]]));if(D.nestedOrigins!==void 0)for(var b=_.F(D.nestedOrigins),a=b.next();!a.done;a=b.next())H=_.N3(H,new Map([["origin",a.value]]));return LPt(V,H,t).then(function(w){w=AGF(w.event);if(_.Ut(w,k_,1,N9)){var h,K=(h=_.Yf(w,k_,1,N9))==null?void 0:_.AM(h,2);K&&e.JSC$19415_logErrorEvent(ggO(K));h=_.Yf(w,k_,1,N9);_.AM(h,2)===4?(w=_.Yf(w,k_,1,N9),w={statusCode:11,statusMessage:_.La(w,
3)}):(w=_.Yf(w,k_,1,N9),w={statusCode:12,statusMessage:_.La(w,3)});return w}_.Ut(w,K4,3,N9)?(w=_.Yf(w,K4,3,N9),w={statusCode:1,consentLanguageKeys:_.La(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"}})};
p7Q=function(D){var t={};if(D===void 0||D===null)return t;D.getToken()!==void 0&&YLZ(D.getToken())&&YLZ(D.getToken()).length>0&&(t.scopes=new Set(YLZ(D.getToken())));D.getToken()!==void 0&&l2Z(D.getToken())&&l2Z(D.getToken()).length>0&&(t.capabilities=new Set(l2Z(D.getToken())));_.La(D,3)!==void 0&&(t.consistencyKey=_.La(D,3));D.getName()!==void 0&&D.getName()!==""&&(t.linkName=D.getName());_.Ot(D,vgF,4)&&(D=_.sq(D,vgF,4),D=Object.assign({},_.La(D,1)&&{userId:_.La(D,1)},_.La(D,2)&&{displayName:_.La(D,
2)},_.La(D,3)&&{email:_.La(D,3)},_.La(D,5)&&{username:_.La(D,5)},_.La(D,4)&&{profilePicture:_.La(D,4)}),t.profile=D);return t};
dFZ=function(D,t){var H=D.flowParams,e;return{serviceId:H.serviceId,sessionId:H.sessionId,currentFlow:D.currentFlow,googleScopesString:t,linkingSessionSerialized:D.session.serialize(),consentLanguageKeys:H.consentLanguageKeys,callerState:D.callerState,dynamicUrlParameters:H.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(e=H.partnerConfigMinReadTimestamp)==null?void 0:e.serialize()}};
I2t=function(D){var t=D.googleScopes!==void 0?Array.from(D.googleScopes).join(","):"";xFY(dFZ(D,t));t=RdH(D);return t===null?Promise.resolve(uOQ):t.start().then(function(H){var e,V=(e=H.link)==null?void 0:e.consistencyKey;return H.statusCode===1&&D.googleScopes!==void 0&&D.googleScopes.size>0&&V!==void 0?(e=D.flowParams,WPv(e.serviceId,e.sessionId,D.googleScopes,V,e.galService,D.config,H)):H})};
QhF=function(D){var t=RdH(D);return t===null?Promise.resolve(TD({statusCode:7,statusMessage:"Failed to create flow object"},D.callerState)):t.complete().then(function(H){var e,V=(e=H.link)==null?void 0:e.consistencyKey;return H.statusCode===1&&D.googleScopes!==void 0&&D.googleScopes.size>0&&V!==void 0?(e=D.flowParams,WPv(e.serviceId,e.sessionId,D.googleScopes,V,e.galService,D.config,H)):TD(H,D.callerState)},function(H){return TD({statusCode:12,
statusMessage:"Failed to complete the flow: "+H.message},D.callerState)})};
WPv=function(D,t,H,e,V,b,a){return yGv(V,{serviceId:D,sessionId:t,googleScopes:H,consistencyKey:e}).then(function(){return a},function(w){return V.deleteLink({serviceId:D,
sessionId:t,accountLinkingEntryPoint:b.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+w.message}},function(h){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+h.message}})})};
RdH=function(D){switch(D.currentFlow){case 1:var t=D.flowParams;D=_.sq(D.session,BnQ,1);return cL.createOAuthFlow(t,D);case 2:case 3:return t=D.flowParams,D=_.sq(D.session,zdb,6),jI.createStreamlinedFlow(t,D);default:return null}};
DyF=function(D,t){D===2&&(D=3);var H=0;$_.indexOf(D)!==-1&&(H=$_.indexOf(D)+1);for(D=H;D<$_.length;D++)if(t.has($_[D]))return $_[D]};
elZ=function(D){var t=D.serviceId;var H=D.sessionId;var e=D.config;var V=D.galService;var b=D.capabilities;var a=D.scopes;var w=D.loginHint;var h=D.callerState;var K=D.consentLanguageKeys;var N=D.linkName;var k=D.dynamicUrlParameters;var T=D.partnerConfigMinReadTimestamp;D=e.dataUsageNoticeConfig?e.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return V.startLinkingSession({serviceId:t,sessionId:H,capabilities:b,scopes:a,loginHint:w,callerState:h,supportedFlows:tZg(e.supportedFlows),completionUrl:e.completionUrl,
accountLinkingEntryPoint:e.accountLinkingEntryPoint,consentLanguageKeys:K,dataUsageNoticeConfig:D,linkName:N,dynamicUrlParameters:k,partnerConfigMinReadTimestamp:T}).then(function(c){return new Hgt(t,H,e,V,c,void 0,h,K,k,T)})};
wTY=function(D,t,H){var e=(new VZF).getSession(D);if(e===null)return Promise.resolve({statusCode:2});bgH(D);var V=qsb(e.linkingSessionSerialized),b=e.googleScopesString!==""&&e.googleScopesString!==void 0?new Set(e.googleScopesString.split(",")):void 0,a=e.partnerConfigMinReadTimestampSerialized?FxO(e.partnerConfigMinReadTimestampSerialized):void 0;return a94(new Hgt(D,e.sessionId,t,H,V,b,e.callerState,e.consentLanguageKeys,e.dynamicUrlParameters,a),e.currentFlow,e.consentLanguageKeys)};
xFY=function(D){var t=new VZF;t.storage!==null&&t.storage.set("SAVED_SESSION",D)};
bgH=function(D){var t=new VZF;if(t.storage!==null){var H=t.storage.get("SAVED_SESSION");H!==void 0&&H.serviceId===D&&t.storage.remove("SAVED_SESSION")}};
tZg=function(D){var t=new Set;D=_.F(D);for(var H=D.next();!H.done;H=D.next())H=H.value,H!==1&&Zgg.has(H)&&t.add(Zgg.get(H));return t};
TD=function(D,t){t!==void 0&&(D.callerState=t);return D};
s5b=function(D){switch(D){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
ELF=function(D){return new hlF(D,new G1i(D))};
k1F=function(D,t){t=t===void 0?!1:t;var H=document.createElement("div");D&&(H.style.transform="scaleX(-1)");H.style.backgroundColor=t?"rgba(138,180,248,.24)":"#e8f0fe";H.style.height="4px";H.style.overflow="hidden";H.style.position="absolute";H.style.top="0";H.style.width="100%";H.style.zIndex="1500";H.setAttribute("aria-label","Loading");H.setAttribute("aria-live","polite");D=document.createElement("style");D.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  }";
H.appendChild(D);D=Kxb();D.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";D.style.left="-145.166611%";var e=NxY(t);e.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";D.appendChild(e);H.appendChild(D);D=Kxb();D.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";D.style.left="-54.888891%";t=NxY(t);t.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
D.appendChild(t);H.appendChild(D);return H};
Kxb=function(){var D=document.createElement("div");D.style.height="100%";D.style.position="absolute";D.style.transformOrigin="top left";D.style.width="100%";return D};
NxY=function(D){var t=document.createElement("span");t.style.borderTop=D?"4px solid #669df6":"4px solid #4285f4";t.style.display="inline-block";t.style.position="absolute";t.style.width="100%";return t};
Txe=function(D){return D==null?void 0:_.mNo(D).valueOf()};
ige=function(D){var t=document.body,H=!1,e=function(){H||(H=!0,chF(V,b),setTimeout(function(){t.removeChild(b);t.removeChild(V)},150))},V=j5H(D,getComputedStyle(t).direction==="rtl",e),b=$yi(e);
chF(V,b);t.appendChild(b);t.appendChild(V);window.requestAnimationFrame(function(){b.style.opacity="1";V.style.opacity="1";V.style.transform="translate(-50%, -50%) scale(1)";V.children[0].focus()})};
j5H=function(D,t,H){var e=document.createElement("div");e.style.position="fixed";e.style.alignItems="center";e.style.backgroundColor=D?"rgb(32, 33, 36)":"white";e.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";e.style.display="flex";e.style.flexDirection="column";e.style.justifyContent="center";e.style.left="50%";e.style.top="50%";e.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";e.style.zIndex="2002";document.body.clientWidth>=
660?(e.style.borderRadius="8px",e.style.minHeight="220px",e.style.maxHeight="90%",e.style.maxWidth="90%",e.style.minWidth="540px"):(e.style.height="100%",e.style.width="100%");e.setAttribute("aria-label","Error");e.setAttribute("aria-modal","true");e.setAttribute("role","alertdialog");e.addEventListener("keydown",function(b){b.key==="Escape"&&H()});
t=rhg(D,t,H);e.appendChild(OgQ(t));e.appendChild(t);var V=document.createElement("img");V.src=D?"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";V.style.height="72px";V.style.width="72px";V.style.color="#9aa0a6";V.setAttribute("alt","");e.appendChild(V);V=document.createElement("h1");V.textContent="Something went wrong.  Try again.";
V.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";V.style.lineHeight="24px";V.style.fontSize="16px";V.style.textAlign="center";V.style.letterSpacing="0.1px";V.style.color=D?"rgb(232,234,237)":"#3c4043";e.appendChild(V);e.appendChild(OgQ(t));return e};
rhg=function(D,t,H){var e=document.createElement("button");e.style.backgroundColor="transparent";e.style.border="none";e.style.borderRadius="50%";e.style.cursor="pointer";e.style.outline="none";e.style.padding="12px";e.setAttribute("aria-label","Close dialog");e.style.position="absolute";e.style.top="0";t?e.style.right="0":e.style.left="0";e.addEventListener("focus",function(){e.style.backgroundColor=D?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
e.addEventListener("blur",function(){e.style.backgroundColor="transparent"});
e.addEventListener("mouseenter",function(){e.style.backgroundColor=D?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
e.addEventListener("mouseleave",function(){e.style.backgroundColor="transparent"});
e.addEventListener("click",H);e.addEventListener("keydown",function(V){V.key!=="Enter"&&V.key!=="Space"||H()});
t=document.createElement("img");t.src=D?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";t.style.display="block";t.style.height="24px";t.style.width="24px";t.setAttribute("alt","");e.appendChild(t);return e};
OgQ=function(D){var t=document.createElement("div");t.setAttribute("tabindex","0");t.setAttribute("aria-hidden","true");t.addEventListener("focus",function(){return void D.focus()});
return t};
$yi=function(D){var t=document.createElement("div");t.style.backgroundColor="rgba(32,33,36,0.6)";t.style.bottom="0";t.style.left="0";t.style.position="fixed";t.style.right="0";t.style.top="0";t.style.transition=" opacity 150 ms linear";t.style.zIndex="2001";t.addEventListener("click",D);return t};
chF=function(D,t){t.style.opacity="0";D.style.opacity="0";D.style.transform="translate(-50%, -50%) scale(0.8)"};
UyH=function(D,t){D.sandbox&&D.sandbox.add&&(D.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),D.sandbox.add("allow-downloads"));D.src=t};
ic=function(D){oLv.call(this,D)};
ru=function(D,t){t=t===void 0?!1:t;this.parsedImageUrl_=null;D instanceof PKQ||(nLF==void 0&&(nLF=new CKb),D=nLF.parse(D.toString(),t));D=this.parsedImageUrl_=D;D.JSC$19627_parsedOptions_==void 0&&((t=D.getOptions())||(t=""),D.JSC$19627_parsedOptions_=(new myg).parse(t));oLv.call(this,D.JSC$19627_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;D=this.parsedImageUrl_;t=D.uri_.JSC$10036_port_;this.JSC$19629_domain_=D.uri_.JSC$10036_domain_+(t?":"+t:"");this.JSC$19629_query_=
this.parsedImageUrl_.uri_.JSC$10036_queryData_.toString()};
MZO=function(D){this.mode=4;this.data=D;this.parsedData=[];D=0;for(var t=this.data.length;D<t;D++){var H=[],e=this.data.charCodeAt(D);e>65536?(H[0]=240|(e&1835008)>>>18,H[1]=128|(e&258048)>>>12,H[2]=128|(e&4032)>>>6,H[3]=128|e&63):e>2048?(H[0]=224|(e&61440)>>>12,H[1]=128|(e&4032)>>>6,H[2]=128|e&63):e>128?(H[0]=192|(e&1984)>>>6,H[1]=128|e&63):H[0]=e;this.parsedData.push(H)}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))};
Sst=function(D){this.typeNumber=0;this.errorCorrectLevel=D===void 0?2:D;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
OS=function(D,t){if(D.length==void 0)throw Error("Jk`"+D.length+"`"+t);for(var H=0;H<D.length&&D[H]==0;)H++;this.num=Array(D.length-H+t);for(t=0;t<D.length-H;t++)this.num[t]=D[t+H]};
XTQ=function(D,t){this.totalCount=D;this.dataCount=t};
f9F=function(){this.buffer=[];this.length=0};
LxH=function(){var D=!1;if(_.rTA()){D=_.TV();var t="";_.o3V()?(t=/Windows (?:NT|Phone) ([0-9.]+)/,t=(D=t.exec(D))?D[1]:"0.0"):_.SV()?(t=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,t=(D=t.exec(D))&&D[1].replace(/_/g,".")):_.UuX()?(t=/Mac OS X ([0-9_.]+)/,t=(D=t.exec(D))?D[1].replace(/_/g,"."):"10"):_.GV(_.TV(),"KaiOS")?(t=/(?:KaiOS)\/(\S+)/i,t=(D=t.exec(D))&&D[1]):_.rTA()?(t=/Android\s+([^\);]+)(\)|;)/,t=(D=t.exec(D))&&D[1]):_.P8D()&&(t=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,t=(D=t.exec(D))&&D[1]);D=
t||""}return D};
vLi=function(D,t){this.JSC$19652__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(t)for(var H in t)this.JSC$19652__htOption[H]=t[H];this.JSC$19652__htOption.useSVG&&(AhZ=gLt);this.JSC$19652__android=LxH();this.JSC$19652__el=D;this._oQRCode=null;this._oDrawing=new AhZ(this.JSC$19652__el,this.JSC$19652__htOption);this.JSC$19652__htOption.text&&(D=this.JSC$19652__htOption.text,this._oQRCode=new Sst(this.JSC$19652__htOption.correctLevel),Jh4(this._oQRCode,
D),t=this._oQRCode,Ysg(t,!1,l9H(t)),this.JSC$19652__el.title=D,this._oDrawing.draw(this._oQRCode),this.makeImage())};
pTF=function(D,t,H,e,V){D.save();var b=new Path2D;b.roundRect(t,H,e*7,e*7,e*2);b.roundRect(t+e,H+e,e*5,e*5,e*1.3);b.roundRect(t+2*e,H+2*e,e*3,e*3,e);D.clip(b,"evenodd");D.fillStyle=V;D.fillRect(0,0,D.canvas.width,D.canvas.height);D.restore()};
US=function(D,t){if(typeof D!=="function")throw Error("Mk");return _.VA.setTimeout(function(){D()},t)};
oG=function(){};
xyv=function(D,t,H,e,V){(new oG).debug("TestLoadImageWithRetries: "+V);if(e==0)H(!1);else{var b=V||0;e--;dyH(D,t,function(a){a?H(!0):_.VA.setTimeout(function(){xyv(D,t,H,e,b)},b)})}};
dyH=function(D,t,H){var e=new oG;e.debug("TestLoadImage: loading "+D);var V=new Image;V.onload=function(){try{e.debug("TestLoadImage: loaded"),RlF(V),H(!0)}catch(b){}};
V.onerror=function(){try{e.debug("TestLoadImage: error"),RlF(V),H(!1)}catch(b){}};
V.onabort=function(){try{e.debug("TestLoadImage: abort"),RlF(V),H(!1)}catch(b){}};
V.ontimeout=function(){try{e.debug("TestLoadImage: timeout"),RlF(V),H(!1)}catch(b){}};
_.VA.setTimeout(function(){if(V.ontimeout)V.ontimeout()},t);
V.src=D};
RlF=function(D){D.onload=null;D.onerror=null;D.onabort=null;D.ontimeout=null};
udt=function(){this.front_=[];this.back_=[]};
WxF=function(D,t){this.action=D;this.params=t||{}};
I9Q=function(D,t){_.mg.call(this);this.delay_=new _.ST(this.JSC$19778_onTick_,0,this);_.c1(this,this.delay_);this.JSC$19776_interval_=5E3;this.nextTickTime_=0;if(typeof D==="function")t&&(D=(0,_.Mc)(D,t));else if(D&&typeof D.handleEvent==="function")D=(0,_.Mc)(D.handleEvent,D);else throw Error("ya");this.JSC$19778_listener_=D};
PL=function(D,t,H,e,V,b,a,w,h,K,N,k,T,c){H=H===void 0?!1:H;e=e===void 0?function(){return""}:e;
V=V===void 0?!1:V;b=b===void 0?!1:b;a=a===void 0?!1:a;w=w===void 0?function(){return _.Tf({})}:w;
h=h===void 0?!1:h;N=N===void 0?!1:N;k=k===void 0?!1:k;T=T===void 0?!1:T;c=c===void 0?!1:c;this.JSC$19779_pathPrefix_=D;this.defaultQueryParams_=t;this.pubsub_=new _.$x;this.reconnectTimer_=new I9Q(this.safeReconnect_,this);this.JSC$19779_channel_=null;this.JSC$19779_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19779_pendingMessages_=[];this.enableAsyncTest_=H;this.JSC$19779_getXsrfToken_=e;this.useAsyncBrowserChannelHandler_=b;this.getAuthorizationHeader_=
w;this.getAuthorizationHeaderSync_=K;this.enableCachedUpdateAuthorizationHeader_=a;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Tf();this.enableLoungeTokenRefresh_=V;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=h;this.disableMdxAuthForNonPlaybackMessages_=N;this.disableMdxAuthForAdMessages_=k;this.enableMdxAuthForConnectionOnly_=T;this.disableMdxAuthForShortsMessages_=c;this.JSC$19779_channelOpenedCounter=new Q54;this.JSC$19779_channelClosedCounter=new yhF;this.channelMessageSentCounter=
new Bxb;this.JSC$19779_channelMessageReceivedCounter=new zl4;this.JSC$19779_channelErrorCounter=new DTQ;this.pendingMapsOnClosedCounter=new tav;this.undeliveredMapsOnClosedCounter=new HzF};
n4=function(D){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;D=D||document.location.href;var t=Number(_.DU(D)[4]||null)||"";t&&(this.port=":"+t);this.domain=_.tW(D)||"";D=_.TV();D.search("MSIE")>=0&&_.Nu(D.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
C4=function(D){D=D||{};this.name=D.name||"";this.id=D.id||D.screenId||"";this.token=D.token||D.loungeToken||"";this.uuid=D.uuid||D.dialId||"";this.idType=D.screenIdType||"normal"};
eNe=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(D){var t=Math.random()*16|0;return(D=="x"?t:t&3|8).toString(16)})};
VaY=function(D){return _.Yz(D,function(t){return{key:t.id,name:t.name}})};
bze=function(D,t){return _.LK(D,function(H){return H||t?!H!=!t?!1:H.id==t.id:!0})};
M9=function(D,t){return _.LK(D,function(H){return m_(H,t)})};
ZzH=function(){var D=q_Q(),t=FVb();if(ate()){var H=D,e=_.ATk(H,t);e<0&&_.XkV(H,-(e+1),0,t)}D=wcv(D);if(D.length==0)try{_.CGV("remote_sid")}catch(V){}else try{_.Oa("remote_sid",D.join(","),-1)}catch(V){}};
q_Q=function(){var D=_.l_("yt-remote-connected-devices")||[];D.sort(_.LDk);return D};
wcv=function(D){if(D.length==0)return[];var t=D[0].indexOf("#"),H=t==-1?D[0]:D[0].substring(0,t);return _.Yz(D,function(e,V){return V==0?e:e.substring(H.length)})};
sQg=function(D){_.Yg("yt-remote-connected-devices",D,86400)};
FVb=function(){if(hNe)return hNe;var D=_.l_("yt-remote-device-id");D||(D=eNe(),_.Yg("yt-remote-device-id",D,31536E3));for(var t=q_Q(),H=1,e=D;_.l8(t,e);)H++,e=D+"#"+H;return hNe=e};
GLe=function(){return _.l_("yt-remote-session-browser-channel")};
ate=function(){return _.l_("yt-remote-session-screen-id")};
Nje=function(D){D.length>5&&(D=D.slice(D.length-5));var t=_.Yz(EPv(),function(e){return e.loungeToken}),H=_.Yz(D,function(e){return e.loungeToken});
_.ppD(H,function(e){return!_.l8(t,e)})&&KVZ();
_.Yg("yt-remote-local-screens",D,31536E3)};
EPv=function(){return _.l_("yt-remote-local-screens")||[]};
KVZ=function(){_.Yg("yt-remote-lounge-token-expiration",!0,86400)};
SI=function(D){D||(_.v7("yt-remote-session-screen-id"),_.v7("yt-remote-session-video-id"));ZzH();D=q_Q();_.vk(D,FVb());sQg(D)};
Tjv=function(){kLv();return XV?!!XV.get("yt-remote-use-staging-server"):!1};
kLv=function(){if(!XV){var D=_.JVD();D&&(XV=new _.CZ(D))}};
izi=function(D,t,H,e,V){H=H===void 0?function(){return""}:H;
var b=function(){return new PL(f4(D,"/bc"),t,!1,H,e)};
return _.r("enable_mdx_web_channel_desktop")?new cjY(function(){return new jQH(f4(D,"/wc"),t,H)}):new $TH(b,V)};
oPZ=function(){var D=rjZ;OzF();L4.push(D);UTF()};
Au=function(D,t){OzF();var H=PfQ(D,String(t));L4.length==0?nPb(H):(UTF(),_.ID(L4,function(e){e(H)}))};
gu=function(D){Au("CP",D)};
OzF=function(){L4||(L4=_.RD("yt.mdx.remote.debug.handlers_")||[],_.bg("yt.mdx.remote.debug.handlers_",L4))};
nPb=function(D){var t=(Ju+1)%50;Ju=t;CfO[t]=D;mTv||(mTv=t==49)};
UTF=function(){var D=L4;if(CfO[0]){var t=mTv?Ju:-1,H={};do H={record$jscomp$15:void 0},t=(t+1)%50,H.record$jscomp$15=CfO[t],_.ID(D,function(e){return function(V){V(e.record$jscomp$15)}}(H));
while(t!=Ju);CfO=Array(50);Ju=-1;mTv=!1}};
PfQ=function(D,t){var H=(Date.now()-MaF)/1E3;H.toFixed&&(H=H.toFixed(3));var e=[];e.push("[",H+"s","] ");e.push("[","yt.mdx.remote","] ");e.push(D+": "+t,"\n");return e.join("")};
Y_=function(D){_.d5.call(this);this.JSC$19803_logName_=D;this.screens=[]};
vL=function(D){Y_.call(this,"LocalScreenService");this.JSC$19810_http_=D;this.loungeTokenRefreshTimer_=NaN;lc(this);this.info("Initializing with "+S_t(this.screens))};
p4=function(D,t){t=t===void 0?!1:t;Y_.call(this,"ScreenService");this.JSC$19816_http_=D;this.disableAutomaticScreenCache_=t;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};Xcg(this)};
du=function(D,t,H){_.d5.call(this);this.JSC$19820_logName_=H;this.JSC$19820_screenService_=D;this.receiver_=t;this.screen_=null};
QQF=function(D,t,H){H.disableCastApi?x_("Cannot initialize because disabled by Mdx config."):ftt()?LVF(D,H)&&(Ajg(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?gPY(t):(window.__onGCastApiAvailable=function(e,V){e?gPY(t):(RG("Failed to load cast API: "+V),JjQ(!1),Ajg(!1),_.v7("yt-remote-cast-available"),_.v7("yt-remote-cast-receiver"),Y_4(),t(!1))},H.loadCastApiSetupScript?_.Iz(ltH):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
vPZ()>=60&&pc4():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?dTY():vPZ()>=89?xT4():(RNH(),uQF(WV4.map(ItH))))):x_("Cannot initialize because not running Chrome")};
Y_4=function(){x_("dispose");var D=uc();D&&D.dispose();_.bg("yt.mdx.remote.cloudview.instance_",null);yjZ(!1);_.k36(Bjb);Bjb.length=0};
zNH=function(){return!!_.l_("yt-remote-cast-installed")};
DXQ=function(){var D=_.l_("yt-remote-cast-receiver");return D?D.friendlyName:null};
tQF=function(){x_("clearCurrentReceiver");_.v7("yt-remote-cast-receiver")};
Hbi=function(){return zNH()?uc()?uc().getCastSession():(RG("getCastSelector: Cast is not initialized."),null):(RG("getCastSelector: Cast API is not installed!"),null)};
VQt=function(D,t){eM4()?uc().setConnectedScreenStatus(D,t):RG("setConnectedScreenStatus called before ready.")};
ftt=function(){var D=_.TV().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.cg||D};
LVF=function(D,t){var H=!1;uc()||(D=new WL(D,t),D.subscribe("yt-remote-cast2-availability-change",function(e){_.Yg("yt-remote-cast-available",e);HL("yt-remote-cast2-availability-change",e)}),D.subscribe("yt-remote-cast2-receiver-selected",function(e){x_("onReceiverSelected: "+e.friendlyName);
_.Yg("yt-remote-cast-receiver",e);HL("yt-remote-cast2-receiver-selected",e)}),D.subscribe("yt-remote-cast2-receiver-resumed",function(e){x_("onReceiverResumed: "+e.friendlyName);
_.Yg("yt-remote-cast-receiver",e);HL("yt-remote-cast2-receiver-resumed",e)}),D.subscribe("yt-remote-cast2-session-change",function(e){x_("onSessionChange: "+bbt(e));
e||_.v7("yt-remote-cast-receiver");HL("yt-remote-cast2-session-change",e)}),_.bg("yt.mdx.remote.cloudview.instance_",D),H=!0);
x_("cloudview.createSingleton_: "+H);return H};
uc=function(){return _.RD("yt.mdx.remote.cloudview.instance_")};
gPY=function(D){JjQ(!0);Ajg(!1);uc().init(!1,function(t){t?(yjZ(!0),_.Tm6("yt-remote-cast2-api-ready")):(RG("Failed to initialize cast API."),JjQ(!1),_.v7("yt-remote-cast-available"),_.v7("yt-remote-cast-receiver"),Y_4());D(t)})};
x_=function(D){Au("cloudview",D)};
RG=function(D){Au("cloudview",D)};
JjQ=function(D){x_("setCastInstalled_ "+D);_.Yg("yt-remote-cast-installed",D)};
eM4=function(){return!!_.RD("yt.mdx.remote.cloudview.apiReady_")};
yjZ=function(D){x_("setApiReady_ "+D);_.bg("yt.mdx.remote.cloudview.apiReady_",D)};
Ajg=function(D){_.bg("yt.mdx.remote.cloudview.initializing_",D)};
IG=function(D){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(D)};
hMH=function(D){kLv();if(!XV||!XV.get("yt-remote-disable-remote-module-for-dev")){D=_.YC("MDX_CONFIG")||D;nei();ZzH();Q3||(Q3=new n4(D?D.loungeApiHost:void 0),Tjv()&&(Q3.basePath="/api/loungedev"));y3||(y3=_.RD("yt.mdx.remote.deferredProxies_")||[],_.bg("yt.mdx.remote.deferredProxies_",y3));q7H();var t=BL();if(!t){var H=new p4(Q3,D?D.disableAutomaticScreenCache||!1:!1);_.bg("yt.mdx.remote.screenService_",H);t=BL();var e={};D&&(e={appId:D.appId,disableDial:D.disableDial,theme:D.theme,loadCastApiSetupScript:D.loadCastApiSetupScript,
disableCastApi:D.disableCastApi,enableDialLoungeToken:D.enableDialLoungeToken,enableCastLoungeToken:D.enableCastLoungeToken,forceMirroring:D.forceMirroring});_.bg("yt.mdx.remote.enableConnectWithInitialState_",D?D.enableConnectWithInitialState||!1:!1);QQF(H,function(b){b?zD()&&VQt(zD(),"YouTube TV"):H.subscribe("onlineScreenChange",function(){HL("yt-remote-receiver-availability-change")})},e)}if(D&&!_.RD("yt.mdx.remote.initialized_")){_.bg("yt.mdx.remote.initialized_",!0);
De("Initializing: "+(0,_.Ru)(D));tQ.push(_.G0("yt-remote-cast2-api-ready",function(){HL("yt-remote-api-ready")}));
tQ.push(_.G0("yt-remote-cast2-availability-change",function(){HL("yt-remote-receiver-availability-change")}));
tQ.push(_.G0("yt-remote-cast2-receiver-selected",function(){FMF();HL("yt-remote-auto-connect","cast-selector-receiver")}));
tQ.push(_.G0("yt-remote-cast2-receiver-resumed",function(){HL("yt-remote-receiver-resumed","cast-selector-receiver")}));
tQ.push(_.G0("yt-remote-cast2-session-change",aPF));tQ.push(_.G0("yt-remote-connection-change",function(b){b?VQt(zD(),"YouTube TV"):wZv()||(VQt(null,null),tQF())}));
tQ.push(_.G0("yt-remote-cast2-session-failed",function(){HL("yt-remote-connection-failed")}));
e=ZbF();D.isAuto&&(e.id+="#dial");var V=D.capabilities||[];V.length>0&&(e.capabilities=V);e.name=D.device;e.app=D.app;(D=D.theme)&&(e.theme=D);De(" -- with channel params: "+(0,_.Ru)(e));e?(_.Yg("yt-remote-session-app",e.app),_.Yg("yt-remote-session-name",e.name)):(_.v7("yt-remote-session-app"),_.v7("yt-remote-session-name"));_.bg("yt.mdx.remote.channelParams_",e);t.start();zD()||sHF()}}};
EXF=function(){var D=BL().instance_.$_gos();var t=G3v();t&&Hx()&&(bze(D,t)||D.push(t));return VaY(D)};
KMF=function(){var D=EXF(),t=G3v();t||(t=wZv());return _.LK(D,function(H){return t&&m_(t,H.key)?!0:!1})};
G3v=function(){var D=zD();if(!D)return null;var t=BL().getScreens();return M9(t,D)};
aPF=function(D){De("remote.onCastSessionChange_: "+bbt(D));if(D){var t=G3v();if(t&&t.id==D.id){if(VQt(t.id,"YouTube TV"),D.idType=="shortLived"&&(D=D.token))Nme&&(Nme.token=D),(t=Hx())&&t.setLoungeToken(D)}else t&&k34(),Tm4(D,1)}else Hx()&&k34()};
k34=function(){eM4()?uc().stopSession():RG("stopSession called before API ready.");var D=Hx();D&&(D.disconnect(1),cBH(null))};
jHF=function(){var D=Hx();return D&&D.getProxyState()!=3?new em(Hx(),void 0):null};
De=function(D){Au("remote",D)};
BL=function(){if(!$XO){var D=_.RD("yt.mdx.remote.screenService_");$XO=D?new ibb(D):null}return $XO};
zD=function(){return _.RD("yt.mdx.remote.currentScreenId_")};
rB4=function(D){_.bg("yt.mdx.remote.currentScreenId_",D)};
FMF=function(){_.bg("yt.mdx.remote.connectData_",null)};
Hx=function(){return _.RD("yt.mdx.remote.connection_")};
cBH=function(D){var t=Hx();FMF();D||rB4("");_.bg("yt.mdx.remote.connection_",D);y3&&(_.ID(y3,function(H){H(D)}),y3.length=0);
t&&!D?HL("yt-remote-connection-change",!1):!t&&D&&HL("yt-remote-connection-change",!0)};
wZv=function(){var D=ate();if(!D)return null;var t=BL();if(!t)return null;t=t.getScreens();return M9(t,D)};
Tm4=function(D,t){ObO?Nme=D:(rB4(D.id),D=new VU(Q3,D,ZbF(),_.RD("yt.mdx.remote.enableConnectWithInitialState_")||!1),D.connect(t,_.RD("yt.mdx.remote.connectData_")),D.subscribe("beforeDisconnect",function(H){HL("yt-remote-before-disconnect",H)}),D.subscribe("beforeDispose",function(){Hx()&&cBH(null)}),D.subscribe("browserChannelAuthError",function(){var H=G3v();
H&&H.idType=="shortLived"&&(eM4()?uc().handleBrowserChannelAuthError():RG("refreshLoungeToken called before API ready."))}),cBH(D))};
sHF=function(){var D=wZv();D?(De("Resume connection to: "+bbt(D)),Tm4(D,0)):(SI(),tQF(),De("Skipping connecting because no session screen found."))};
q7H=function(){var D=ZbF();if(_.J$.isEmpty(D)){D=FVb();var t=_.l_("yt-remote-session-name")||"",H=_.l_("yt-remote-session-app")||"";D={device:"REMOTE_CONTROL",id:D,name:t,app:H,mdxVersion:3};D.authuser=String(_.YC("SESSION_INDEX","0"));(t=_.YC("DELEGATED_SESSION_ID"))&&(D.pageId=String(t));_.bg("yt.mdx.remote.channelParams_",D)}};
ZbF=function(){return _.RD("yt.mdx.remote.channelParams_")||{}};
UXt=function(){var D,t;return _.Z(function(H){if(H.nextAddress==1)return(_.DX3()||_.r("use_new_nwl"))&&_.QQT().isNetworkAvailable()?H.yield(_.qO(),2):H.return();if(H.nextAddress!=3)return(D=H.yieldResult)?H.yield(BEH(D),3):H.return();t=H.yieldResult;if(!t.length)return H.return();t.forEach(function(e){var V={timestamp:e.timestamp};e=e.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:e.appShellAssetLoadReport,options:V}:e.clientError?{payloadName:"clientError",payload:e.clientError,
options:V}:void 0;e&&_.L7(e.payloadName,e.payload,e.options)});
t.length===100&&_.Jy.addLowPriorityJob(UXt);_.n2(H)})};
oXF=function(D){if(D.playerResponse){if(D=D.playerResponse,D.messages&&D.messages.length>0&&(D=D.messages.find(function(t){return!(!t||!t.mealbarPromoRenderer)}))&&D.mealbarPromoRenderer)return D.mealbarPromoRenderer}else if(D.response&&(D=D.response)&&D.overlay&&D.overlay.mealbarPromoRenderer)return D.overlay.mealbarPromoRenderer};
PiO=function(D){if(D.response){var t=D.response;if(t&&t.overlay&&t.overlay.tooltipRenderer)return t.overlay.tooltipRenderer}if(D.playerResponse&&(D=D.playerResponse,D.messages&&D.messages.length>0&&(D=D.messages.find(function(H){return!(!H||!H.tooltipRenderer)}))&&D.tooltipRenderer))return D.tooltipRenderer};
CiH=function(D){if(!nXv&&(D=D||_.YC("ZWIEBACK_PING_URLS"))&&D.length){nXv=!0;for(var t=0;t<D.length;t++)_.IP(D[t])}};
MQF=function(D){if(_.J$.get(_.YC("PLAYER_VARS",{}),"privembed",!1)!="1"){D&&phe();try{mXH().then(function(){},function(){}),_.KZ(MQF,18E5)}catch(t){_.vn(t)}}};
S7Z=function(){var D=_.Ph(),t=D.getFlag(119),H=window.devicePixelRatio>1;document.body&&_.bu(document.body,"exp-invert-logo")&&(H&&!_.bu(document.body,"inverted-hdpi")?_.qX(document.body,"inverted-hdpi"):!H&&_.bu(document.body,"inverted-hdpi")&&_.VL(document.body,"inverted-hdpi"));t!=H&&(_.nl(0,119,H),D.save())};
XZY=function(D){return D.filter(function(t){return"ypcGetCartEndpoint"in t||"ypcFixInstrumentEndpoint"in t})};
fPg=function(D){return D.filter(function(t){return!_.O(t,_.yfQ)})};
ABH=function(D,t){var H,e,V,b,a,w,h;_.Z(function(K){switch(K.nextAddress){case 1:H=_.gn.getInstance();e=_.$P.instance;V=_.QL.instance;if(!V)return LMF(D,e,t),K.return();_.$p(K,2);D.onLoadingCommand&&e.resolveCommand(D.onLoadingCommand);return K.yield(H.getCurrentPositionFromGeolocation(),4);case 4:b=K.yieldResult;if(!D.resolveLocationCommand){K.jumpTo(5);break}a=H.createLocationInfo(b);return K.yield(_.BZ(V,D.resolveLocationCommand,{locationInfo:a}),6);case 6:w=K.yieldResult;if(!w||"error"in w&&w.error||
w.errorMetadata)return LMF(D,e,t),K.return();var N;if(w==null?0:(N=w.onResponseReceivedActions)==null?0:N.length){N=_.F(w.onResponseReceivedActions);for(var k=N.next();!k.done;k=N.next())e.resolveCommand(k.value)}(_.O(D.onSuccessCommand,_.Hh)||_.O(D.onSuccessCommand,_.UL))&&_.Gf(t.hostElement,"yt-navigate",{endpoint:D.onSuccessCommand,reload:!0});case 5:_.yM(K,0);break;case 2:h=_.Pv(K);if(h instanceof GeolocationPositionError&&h.code===GeolocationPositionError.PERMISSION_DENIED)return D.onDeniedCommand&&
e.resolveCommand(D.onDeniedCommand),K.return();LMF(D,e,t);_.n2(K)}})};
LMF=function(D,t,H){D.onFailureCommand&&(t.resolveCommand(D.onFailureCommand),_.ET(H.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
JBe=function(D,t){var H=_.O(D,_.nYB);if(H&&t){D=H.videoIds||[H.videoId];var e;t=(e=_.Gf(t,"yt-lockup-requested",{videoIds:D}).detail)==null?void 0:e.returnValue;var V;H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?V=t?t:D.map(function(b){return{videoId:b,navigationEndpoint:H.videoCommand}}):t&&(V=t);
V&&(e=V.map(function(b){var a=Object,w=a.assign;var h=b.navigationEndpoint;if(!_.O(h,_.C_)){var K=_.O(h,_.Hh);if(K){if(delete K.index,delete K.playlistId,K=_.O(h==null?void 0:h.commandMetadata,_.i1),K==null?0:K.url){var N=K.url;N=_.Fy(N,"list");N=_.Fy(N,"index");K.url=N}}else h=void 0}return w.call(a,{},b,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:h})}),gXb(e,H))}};
Y7H=function(D){var t=_.k$();if(D=_.O(D,_.Cum))D.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&t.clearQueue(),D.closeMiniplayer&&_.qS().resolve(_.dL).close(!0)};
vXZ=function(D){lPv(_.k$(),D)};
pZF=function(D){var t;(D=(t=_.O(D,_.oYn))==null?void 0:t.setVideoIds)&&D.forEach(function(H){_.ZFQ(_.k$(),H)})};
xXv=function(D){dXg(_.k$(),D)};
RMH=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(D){return!1}};
uIF=function(D){var t=["h","m","s"],H=_.pK(t);H.reverse();var e={};D=(D.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(a){var w=(a.match(/[hms]/)||[""])[0];return w?(e[w]=parseInt(a.match(/\d+/)[0],10),!1):!0});
for(D.reverse();D.length&&H.length;){var V=H.shift();V in e||(e[V]=parseInt(D.shift(),10))}if(D.length||e.s>59||e.m>59||e.h>9)return null;var b="";t.forEach(function(a){e[a]&&(b+=""+e[a]+a)});
return b||null};
WMt=function(D,t){var H=_.Bqo(t,{},D,!0);return new Promise(function(e,V){H.listenOnce("n",function(){V(Error("xl`"+H.JSC$29465_getErrorDescription()))});
H.listenOnce("l",function(){var b=H.getResponseCode();if(b!==200)V(Error("yl`"+t+"`"+D.type+"`"+D.size+"`"+b));else try{e(JSON.parse(H.getResponseText()).encryptedBlobId)}catch(a){V(a)}});
H.run()})};
IPQ=function(D){return D.substring(D.indexOf(":")+1,D.indexOf(";"))};
QHF=function(D){return new Promise(function(t,H){var e=new FileReader;e.onloadend=function(){try{var V=new Uint8Array(e.result);V.length<8&&H(void 0);var b=V.subarray(0,8);V="";for(var a=0;a<b.length;a++)V+=("0"+b[a].toString(16)).substr(-2);V.startsWith("ffd8ff")?t("image/jpeg"):V.startsWith("47494638")?t("image/gif"):V.startsWith("89504e470d0a1a0a")?t("image/png"):V.startsWith("424d")?t("image/bmp"):t(void 0)}catch(w){H(w)}};
e.onerror=H;e.readAsArrayBuffer(D)})};
yBZ=function(D){return new Promise(function(t,H){var e=new Image;e.crossOrigin="anonymous";e.onload=function(){var V=document.createElement("canvas");V.width=e.naturalWidth;V.height=e.naturalHeight;var b=V.getContext("2d");if(!b)throw Error("zl");b.drawImage(e,0,0);b=IPQ(D);V.toBlob(function(a){a?t(a):H()},b)};
e.src=D})};
zMQ=function(D,t){var H;if(((H=_.O(D,_.C_))==null?void 0:H.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var e;_.Gf((e=t.hostElement)!=null?e:t,"yt-shorts-reset");_.s_v(_.qS().resolve(_.uS),D).then(function(b){BmZ(b,t,D)})}else{var V;
_.NJ((V=t.hostElement)!=null?V:t,[D]).then(function(b){b&&BmZ(b.data,t,D)})}};
BmZ=function(D,t,H){if(D){var e=_.O(D.replacementEndpoint,_.C_);if(e){D.sequenceContinuation&&(e.sequenceParams=D.sequenceContinuation);var V;_.Gf((V=t.hostElement)!=null?V:t,"yt-navigate",{endpoint:D.replacementEndpoint})}else if((D==null?void 0:D.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(D==null?0:D.watchStatus)&&_.O(D.watchStatus,_.scV)){var b;_.Gf((b=t.hostElement)!=null?b:t,"yt-navigate",{endpoint:H})}}};
Dxi=function(D){var t=_.qS().resolve(_.sg),H=_.uO.currentPageTypeSelector(t.getState())||"";t=_.uO.currentPageSubTypeSelector(t.getState())||"";H=H==="ytd-browse"&&t==="home";return _.r("web_guide_entry_enable_cache_for_non_home_pages")?(D=(D==null?void 0:D.navigationEndpoint)&&_.OL(D.navigationEndpoint)==="home",{disableCache:H&&D}):{disableCache:H}};
tdZ=function(D){if(!D)return!1;try{if(D.host&&D.host.tagName==="YT-FORMATTED-STRING"&&D.host.id==="contenteditable-textarea"||D.nodeType===Node.ELEMENT_NODE&&D.tagName==="YTD-COMMENT-INPUT")return!0}catch(t){return!1}return tdZ(D.parentNode)};
b0=function(D){return D?D.tagName==="A"&&D.href&&D.classList.contains("yt-simple-endpoint"):!1};
HfY=function(D){return D?D.tagName==="IMG"&&D.classList.contains("emoji"):!1};
eoO=function(D,t,H){if(!D)return null;var e=b0(D);if(e&&H)return t=D.pathname.substring(D.pathname.indexOf("/channel/")+9),document.createTextNode("@"+t);if(e&&!H)return document.createTextNode("");if(HfY(D))return H=D.alt,D=D.dataset.emojiId,!D&&t&&(t=_.hl(t,H))&&t.isCustomEmoji&&(D=t.emojiId),D?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+D+">"):document.createTextNode(H);e=D.cloneNode(!1);for(var V=0;V<D.childNodes.length;++V){var b=eoO(D.childNodes[V],t,H);b&&e.appendChild(b)}return e};
q6=function(D){return D?b0(D)?D:q6(D.lastChild):null};
Vde=function(D){return D?b0(D)?D:Vde(D.firstChild):null};
bfY=function(D){if(!D)return null;for(var t=D.previousSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.previousSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.previousSibling;else break;(t=q6(t))?D=t:D=(D=D.parentNode)?q6(D.previousElementSibling):null;return D};
qIF=function(D){if(!D)return null;for(var t=D.nextSibling;t;)if(t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="BR")t=t.nextSibling;else if(t.nodeType===Node.TEXT_NODE&&/\s+/.test(t.textContent))t=t.nextSibling;else break;return(t=Vde(t))?t:qIF(D.parentNode)};
FtF=function(D){var t=_.EE(),H=t.JSC$11351_getStartNode();if(!tdZ(H.parentNode))return null;t=t.JSC$11351_getStartOffset();if(H.nodeType===Node.TEXT_NODE){var e=_.xz(H,b0);if(e){if(D&&t===0||!D&&t===H.length)return e}else{if(D&&t===H.length)return!H||H.nodeName==="BR"||H.nextElementSibling&&_.KP(H.nextElementSibling,"display")==="block"?null:Vde(H.nextElementSibling);if(!D&&t===0)return H?q6(H.previousElementSibling):null}}if(H.nodeType===Node.ELEMENT_NODE)if(D){if(0<=t&&t<H.childNodes.length)return Vde(H.childNodes[t])}else if(0<
t&&t<=H.childNodes.length)return q6(H.childNodes[t-1]);return null};
agQ=function(D,t,H){if(!D)return null;if(D.nodeType===Node.TEXT_NODE)if(H){var e=bfY(D);if(e&&!/^\s+\S/.test(D.wholeText.substr(0,t)))return e}else if((e=qIF(D))&&!/\S\s+/.test(D.wholeText.substr(t,D.wholeText.length)))return e;return D.nodeType===Node.ELEMENT_NODE?H?bfY(D.childNodes[t]):qIF(D.childNodes[t]):agQ(D.parentNode,t,H)};
w5i=function(D){if(D.hasChildNodes())switch(D.tagName){case "DIV":case "A":case "SPAN":var t="";for(D=D.firstChild;D;D=D.nextSibling)t+=w5i(D);return t;default:return""}else switch(D.nodeType){case 3:return D.textContent;default:return""}};
ZfF=function(D){switch(D){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"}};
snv=function(D){return D.map(function(t){return{settingsRadioOptionRenderer:{title:_.sO(t.name),asideText:_.sO(t.approximateSize),id:ZfF(t.format)}}})};
GmZ=function(D){if(D&&D.length!==0)return D.filter(hoH()).map(function(t){return{settingsRadioOptionRenderer:{title:t.name,asideText:t.approximateSize,id:ZfF(t.formatType)}}})};
Ff=function(D){if(D)return D.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
Eit=function(D,t){D=new Set(D!=null?D:[]);if(D.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(D.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(D.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(D.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(D.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(t)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
KtY=function(D){var t=D.indexOf("(");return t!==-1?D.substring(t+1,D.length-1):D};
_.kmZ=function(D,t,H,e,V){H||(H=NFb);var b;(b=_.O(H.commandMetadata,_.i1))!=null&&b.url||(H=Error("El`"+JSON.stringify(H)),_.gT(H),H=NFb);H=_.J$.unsafeClone(H);b=_.p7(_.O(H.commandMetadata,_.i1).url,"search_query",D);_.uz(location.href,"sv")==="1"&&(_.O(H,_.oh).params="EgOAAgE%3D",b=_.p7(b,"sv","1"));_.O(H,_.oh)&&(_.O(H,_.oh).query=D);b=b.replace(/%20/g,"+");_.O(H.commandMetadata,_.i1).url=b;V=_.r("desktop_enable_entity_suggest")?{entityMid:V}:{};_.qS().resolve(_.aA).resolveCommand(H,{form:{tempData:Object.assign({},
{gs_l:t,oq:e!=null?e:D},V)}})};
TF4=function(D){switch(D){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
jn4=function(D,t,H,e,V,b){var a=_.J$.clone(c5t);a.locale=_.YC("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;a.report={description:V||"<empty>"};V=_.YC("SBOX_SETTINGS",{});t=t.join(",");var w=Date.now();D={choice_cc:e,choice_id_cc:H,choices_sc:t,gl:V.REQUEST_DOMAIN,hl:V.REQUEST_LANGUAGE,query:D,time:w};b&&(D.choice_additional_comment_cc=b);_.Vx4(a,D)};
$xF=function(D){var t=new Map;t.set("authuser",_.YC("SESSION_INDEX","0"));return _.N3(D,t)};
r5Y=function(D){var t;return _.Z(function(H){switch(H.nextAddress){case 1:if(!D||!ifv(D))return H.return(null);t=null;switch(_.YC("INNERTUBE_CLIENT_NAME")){case "WEB":return H.jumpTo(2);case "WEB_REMIX":t=D.getPlayer()}H.jumpTo(3);break;case 2:return H.yield(D.getPlayerPromise(),4);case 4:t=H.yieldResult;H.jumpTo(3);break;case 3:return H.return(t)}})};
ifv=function(D){return["ytd-player","ytmusic-player"].includes(String(D.tagName||"").toLowerCase())};
Ofe=function(D){D=Math.round(D);return D%2?D-1:D};
UxZ=function(D){D=Math.round(D);return D%2===0?D-1:D};
oiY=function(D){var t,H,e;if(D=(t=D.createPlaylistDialogFormSchema)==null?void 0:(H=t.fieldSchemas)==null?void 0:(e=H.title)==null?void 0:e.validationSchema)for(t=[D.syncStep,D.asyncStep].filter(function(V){return V!==void 0}),t=_.F(t),H=t.next();!H.done;H=t.next()){H=H.value.rules;
if(!H)break;H=_.F(H);for(H=H.next();!H.done;H=H.next())return _.O(H.value,_.ZXF)}};
nie=function(D){var t,H,e;if(D=(t=D.createPlaylistDialogFormSchema)==null?void 0:(H=t.fieldSchemas)==null?void 0:(e=H.visibility)==null?void 0:e.validationSchema)for(t=[D.syncStep,D.asyncStep].filter(function(V){return V!==void 0}),t=_.F(t),H=t.next();!H.done;H=t.next()){H=H.value.rules;
if(!H)break;H=_.F(H);for(e=H.next();!e.done;e=H.next())if(e=_.O(e.value,POe))return t=void 0,(t=e.translations)==null?void 0:t.visibilityNotValidErrorMessage}};
COZ=function(){var D,t;return(t=(D=_.qS().resolve(_.by(_.tB)))==null?void 0:D())!=null?t:!1};
mxZ=function(D){var t=21;if(!D)return t;t+=D.headerTitle?27:0;t+=D.headerTitle&&D.hasHeaderActionHeader?4:0;return t+=D.headerTitle&&D.headerSubtitle?16:0};
MdZ=function(D){var t=0;if(!D)return t;t+=D.hasFooterPrimaryButton||D.hasFooterSecondaryButton?48:0;t+=D.footerTrailingLabel||D.footerLeadingLabel?30:0;return t+=D.hasFooterPrimaryButton||D.hasFooterSecondaryButton||!D.footerTrailingLabel&&!D.footerLeadingLabel?0:12};
SIt=function(D){var t=new _.$x,H=D;return{subscribe:function(e){t.subscribe("changed",e)},
dispatch:function(e,V){var b=H;e==="Touch Start"?H=Object.assign({},b,{isAnimating:!1,initialY:V.event.touches[0].clientY}):e==="Touch Move"?(e=Math.min(V.fullContentWrapperHeight,V.contentHeightMap[V.contentWrapperId]+mxZ(V.header)-MdZ(V.footer)),H=Object.assign({},b,{currentY:Math.max(V.contentScrollable?-1*(b.initialY-24):0,V.event.touches[0].clientY-b.initialY),maxHeightForContentWrapper:Math.min(e,Math.max(0,(b.isFullScreen?e:V.contentWrapperHeight)-b.currentY))})):H=e==="Snap To Full Screen"?
Object.assign({},b,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:V.maxHeight}):e==="Snap To Neutral Position"?Object.assign({},b,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:V.maxHeight}):e==="Close Sheet"?Object.assign({},b,{isAnimating:!0,currentY:V.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:V.maxHeight}):b;t.publish("changed",H)}}};
X5F=function(D){return _.$X(function(t){D(t);return!1})};
fgt=function(){_.qS().resolve(_.Hp).closeSheet()};
LtF=function(D){var t,H,e,V,b,a,w,h,K,N,k;return{headerTitle:(t=D.headerTitle)==null?void 0:t.call(D),headerSubtitle:(H=D.headerSubtitle)==null?void 0:H.call(D),headerActionHeader:D.headerActionHeader,footerPrimaryButton:D.footerPrimaryButton,footerSecondaryButton:D.footerSecondaryButton,footerButtonType:(e=D.footerButtonType)==null?void 0:e.call(D),footerLeadingLabel:(V=D.footerLeadingLabel)==null?void 0:V.call(D),footerTrailingLabel:(b=D.footerTrailingLabel)==null?void 0:b.call(D),shouldShowIcons:(a=
D.shouldShowIcons)==null?void 0:a.call(D),skipContentClick:(w=D.skipContentClick)==null?void 0:w.call(D),additionalClassName:(h=D.additionalClassName)==null?void 0:h.call(D),onClosedCallback:D.onClosedCallback,focusOnClose:(K=D.focusOnClose)==null?void 0:K.call(D),isDisabled:(N=D.isDisabled)==null?void 0:N.call(D),disabledCommand:(k=D.disabledCommand)==null?void 0:k.call(D),headerFn:D.headerFn,contentFn:D.contentFn,footerFn:D.footerFn,hasHeaderFn:D.hasHeaderFn(),hasContentFn:D.hasContentFn(),hasFooterFn:D.hasFooterFn(),
hasFooterPrimaryButton:D.hasFooterPrimaryButton(),hasFooterSecondaryButton:D.hasFooterSecondaryButton(),hasHeaderActionHeader:D.hasHeaderActionHeader()}};
A5Y=function(D){switch(D){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""}};
gie=function(D){switch(D){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""}};
J5H=function(D){switch(D){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""}};
YIO=function(D,t,H){t.forEach(function(e){_.YS(_.qS().resolve(_.eX),e)});
_.ET(D,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",H])};
dxH=function(D,t,H,e){var V=_.O(H,_.Ki).commandLifeCycleConfig;V&&V.onStartCommand&&_.k0(D,[V.onStartCommand],t);_.xG(t);var b=_.QL.instance;b&&_.yL(b,H)?_.BZ(b,H,e).then(function(a){if(!a||(a==null?0:a.error))return a=_.O(H,_.Ki).serializedTransactionFlowLoggingParams,_.Rs(t),_.Aj(new aN("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",a));_.Rs(t);return{data:a}}).then(function(a){_.Rs(t);
lgH(a.data);var w=a.data.command;w&&_.k0(D,[w],t);w=vi4(H,a.data);if(!w){var h=a.data;a=!1;if(h&&h.command&&_.O(h.command,_.ch)){var K;h=((K=_.O(h.command,_.ch))==null?void 0:K.commands)||[];for(K=0;K<h.length;K++)if(_.O(h[K],_.Xwf)){a=!0;break}}a||_.e8('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!w&&V&&V.onSuccessCommand?_.k0(D,[V.onSuccessCommand],t):w&&V&&V.onFailureCommand&&_.k0(D,[V.onFailureCommand],t)},function(){_.Rs(t);
V&&V.onFailureCommand&&_.k0(D,[V.onFailureCommand],t);p5F(H)}):_.gT(Error("Ql"),"ERROR")};
xxZ=function(D,t,H){var e=[t];H&&e.push(H);return _.NJ(D,e).then(function(V){var b=_.O(t,_.Ki).serializedTransactionFlowLoggingParams,a=V.data,w=vi4(t,a);w?V=_.Aj(new aN(w,b)):lgH(a);return V},function(){var V=_.O(t,_.Ki).serializedTransactionFlowLoggingParams;
p5F(t);return _.Aj(new aN("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",V))})};
vi4=function(D,t){D=_.O(D,_.Ki).serializedTransactionFlowLoggingParams;var H=null;switch(t.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":H="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":H="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":H="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}H?_.eZ(H,D):hdO(D);return H};
p5F=function(D){_.eZ("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.O(D,_.Ki).serializedTransactionFlowLoggingParams)};
lgH=function(D){if(D.trackingParams){var t=_.v3(),H=_.lo();t&&H&&_.Q$(t,H,_.Sa(D.trackingParams))}};
Roi=function(D,t,H){var e=_.QL.instance,V=_.s86(_.YC("YPC_MB_URL")),b=(new _.wCT).init(),a=_.Z1A(),w=_.O(H,_.CPm).languageCode;w===void 0?_.gT(Error("Ni"),"ERROR"):_.vl([b,V]).then(function(){var h={ctk:_.ew.payments.business.integration.ClientTokenFactory.createClientToken(w,a)};e&&_.yL(e,H)?_.BZ(e,H,h).then(function(K){return{data:K}}).then(function(K){_.Gf(t,"yt-service-request-completed",K);
K.code!=="ERROR"&&(K=K.data.command)&&_.k0(D,[K],t)}):_.gT(Error("Ql"),"ERROR")})};
IgO=function(D,t,H,e){var V=_.QL.instance;V&&_.yL(V,H)?_.BZ(V,H,e).then(function(b){return{data:b}}).then(function(b){uAe(D,t,H,b)},function(){Wt4(H)}):(V=_.qS().resolve(_.by(_.dn)))&&V.requestDataForServiceEndpoint(H,e).then(function(b){uAe(D,t,H,b)},function(){Wt4(H)})};
uAe=function(D,t,H,e){_.Gf(t,"yt-service-request-completed",e);if(e.code&&e.code=="ERROR")Wt4(H);else{(e=e.data.commands)&&_.k0(D,e,t);var V;(D=(V=_.O(H,_.L2n))==null?void 0:V.serializedYpcPauseFlowLoggingParams)&&D&&_.c2("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",D)}};
Wt4=function(D){var t;(D=(t=_.O(D,_.L2n))==null?void 0:t.serializedYpcPauseFlowLoggingParams)&&D&&_.c2("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",D,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
BFe=function(D,t,H){var e=_.QL.instance;e&&_.yL(e,H)?_.BZ(e,H).then(function(V){return{data:V}}).then(function(V){QnF(D,t,H,V)},function(){y5e(H)}):(e=_.qS().resolve(_.by(_.dn)))&&e.requestDataForServiceEndpoint(H).then(function(V){QnF(D,t,H,V)},function(){y5e(H)})};
QnF=function(D,t,H,e){_.Gf(t,"yt-service-request-completed",e);e.code&&e.code=="ERROR"?y5e(H):((e=e.data.commands)&&_.k0(D,e,t),(D=_.O(H,_.Afn).serializedYpcResumeFlowLoggingParams)&&D&&_.c2("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",D))};
y5e=function(D){(D=_.O(D,_.Afn).serializedYpcResumeFlowLoggingParams)&&D&&_.c2("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",D,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
zob=function(D){D=D===void 0?{}:D;_.qS().resolve(_.C8H).showFeedbackDialog(D.customProductData,D.feedbackContent,D.onFeedbackSubmitted,D.bucket)};
DIO=function(D){D=D===void 0?{}:D;_.qS().resolve(_.C8H).showHelpDialog(D.helpContext,D.articleId,D.productData)};
tNZ=function(){DIO()};
HPH=function(){zob()};
VNt=function(D,t,H){var e,V,b,a,w,h,K;return _.Z(function(N){switch(N.nextAddress){case 1:e=_.O(D,e7H);if((V=e)==null?0:V.productId){h={productId:e.productId,bucket:e.bucket,enableAnonymousFeedback:(w=e.enableAnonymousFeedback)!=null?w:!0,allowNonLoggedInFeedback:!0};K={feedbackChoice:H.feedbackChoice};if(!_.r("web_collect_offline_state")){N.jumpTo(8);break}_.$p(N,9);return N.yield($FQ(K),11)}a={bucket:(b=e)==null?void 0:b.bucket};if(!_.r("web_collect_offline_state")){N.jumpTo(4);break}a.customProductData=
{};_.$p(N,5);return N.yield($FQ(a.customProductData),7);case 7:_.yM(N,4);break;case 5:_.Pv(N);case 4:zob(a);N.jumpTo(0);break;case 11:_.yM(N,8);break;case 9:_.Pv(N);case 8:_.ydV(K),_.Q1D("GFEEDBACK",K),e.productId==="5295751"&&(K.client_attestation=Number(_.YC("CATSTAT",0))),e.productId==="5295751"&&(K.client_time=Date.now()/1E3/3600),e.productId==="5295751"&&(K.original_playback_id=_.$n4||""),_.Vx4(h,K),_.n2(N)}})};
bPi=function(D){if(D=_.O(D,_.w46)){var t={bucket:D.bucketIdentifier};D.additionalDatas&&(t.customProductData={},D.additionalDatas.forEach(function(H){if(H=H.userFeedbackEndpointProductSpecificValueData)t.customProductData[H.key]=H.value}));
zob(t)}};
qEY=function(D){var t=_.Qa.getInstance();var H=_.OT("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var e=_.OT("DELETE",void 0,"Delete"),V=_.OT("CANCEL",void 0,"Cancel");H=MPF(H,void 0,e,V,{signal:"DELETE_ALL_DOWNLOADS"});_.zB(t,[{openPopupAction:H}],D)};
aTQ=function(){return _.Z(function(D){return D.nextAddress==1?D.yield(_.qS().resolve(_.py),2):D.yield(FcH(),0)})};
wm4=function(D){var t,H;return _.Z(function(e){return e.nextAddress==1?(H=(t=_.O(D,_.xw))==null?void 0:t.targetId)?e.yield(_.qS().resolve(_.py),3):e.jumpTo(0):e.yield(_.qS().resolve(_.vq).deleteVideo(H),0)})};
ssv=function(D){var t,H;return _.Z(function(e){return e.nextAddress==1?(H=(t=_.O(D,_.xw))==null?void 0:t.targetId)?e.yield(_.qS().resolve(_.py),3):e.jumpTo(0):e.yield(ZPZ(_.qS().resolve(_.vq),H),0)})};
GXb=function(D){var t,H;return _.Z(function(e){return(H=(t=_.O(D,_.xw))==null?void 0:t.targetId)?e.yield(h7Q(H),0):e.jumpTo(0)})};
KcF=function(){_.r("kevlar_woffle_refresh_dl_load_killswitch")||EGv()};
kXt=function(){_.r("kevlar_woffle")&&_.AG.instance&&NgF()};
clZ=function(D){var t;if((t=_.O(D,_.$i))==null||!t.videoId)return!1;TgF(_.qS().resolve(_.vq),_.O(D,_.$i),D.clickTrackingParams);return!0};
$Ig=function(D){var t;if((t=_.O(D,_.iO))==null||!t.playlistId)return!1;jst(_.qS().resolve(_.vq),_.O(D,_.iO),D.clickTrackingParams);return!0};
rlQ=function(D){var t=_.O(D,_.cU4);(t==null?void 0:t.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(t==null?void 0:t.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||iPi(_.qS().resolve(_.vq),_.O(D,_.cU4))};
UIt=function(D){D=_.O(D,_.QWn);var t;(D==null?0:(t=D.actions)==null?0:t.length)&&OPQ(D)};
nGi=function(D){var t,H;return _.Z(function(e){t=_.O(D,oGF);return(H=t)!=null&&H.localWatchHistoryCommandType?e.yield(Peg(t),0):e.return()})};
Ceb=function(D){setTimeout(function(){requestAnimationFrame(D)},80)};
mIH=function(D){return Object.entries(D).map(function(t){return t.join(":")}).join(";")};
SEF=function(D){var t,H,e;_.Z(function(V){if(V.nextAddress==1)return V.yield(MNH(),2);t=V.yieldResult;H=_.$P.instance;switch(t){case "granted":e=D.getLocationCommand;break;case "denied":e=D.openDeniedDialogAction;break;case "prompt":e=D.openCollectionDialogAction;break;default:e=D.openCollectionDialogAction}e&&H.resolveCommand(e);_.n2(V)})};
MNH=function(){var D,t;return _.Z(function(H){if(H.nextAddress==1)return D="prompt",navigator.permissions?H.yield(navigator.permissions.query({name:"geolocation"}),3):H.jumpTo(2);H.nextAddress!=2&&(t=H.yieldResult,D=t.state);return H.return(D)})};
fTe=function(){_.Z(function(D){return D.yield(_.Xme(),0)})};
Lce=function(){var D,t,H;return _.Z(function(e){if(e.nextAddress==1)return D=_.qS().resolve(_.xg),D?e.yield(_.BZ(D,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.Yw(Error("Tl")),e.return(void 0));if(t=e.yieldResult){if(t.errorMetadata)return _.Yw(Error("Ul`"+t.errorMetadata.status+"`"+t.error)),e.return(void 0);H=t.datasyncIds;_.X9b=H.length;return e.return(H)}_.Yw(Error("Vl"));return e.return(void 0)})};
Alt=function(){Lce().then(function(D){D&&(Q44(D),EgH(D),l8e(D),rGQ(D))})};
gG4=function(D){_.Jy.addLowPriorityJob(function(){var t,H,e,V,b;return _.Z(function(a){switch(a.nextAddress){case 1:if(_.r("ytidb_clear_optimizations_killswitch")){a.jumpTo(2);break}t=_.oA("clear");if(t.startsWith("V")&&t.endsWith("||")){var w=[t];Q44(w);EgH(w);l8e(w);rGQ(w);return a.return()}H=veH();e=O_4();return a.yield(KPF(),3);case 3:return V=a.yieldResult,a.yield(yEQ(),4);case 4:if(b=a.yieldResult,!(H||e||V||b))return a.return();case 2:D.isNetworkAvailable()?Alt():D.listenOnce("publicytnetworkstatus-online",
Alt),_.n2(a)}})})};
wR=function(D){D={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.H7(D)}}}};_.$P.instance&&_.$P.instance.resolveCommand(D)};
Jlv=function(D){if(D){var t=_.Pc();_.Li(t,3854,void 0,{layer:0,parentLayer:4});switch(D){case 1:var H=238708;break;case 2:H=238715;break;case 3:H=238710;break;case 6:H=238709}H&&(D=_.oQ(t,{veType:H}))&&_.J1(t,D)}};
YEZ=function(D){if(D){var t=_.Pc();_.Li(t,3854,void 0,{layer:0,parentLayer:4});switch(D){case 1:var H=238714;break;case 2:H=238711;break;case 8:H=238709;break;case 7:H=238713;break;case 3:case 4:case 5:H=238712}H&&(D=_.oQ(t,{veType:H}))&&_.J1(t,D)}};
lTZ=function(D){switch(D.latencyType){case 0:_.l1("consent_primitive_flow");_.vh("cpit",D.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.vh("cpist",D.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.vh("cprtif",D.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.vh("cprtli",D.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.vh("cprt",D.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.vh("cpdt",D.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.vh("cpjct",D.timestampEpochMillis,"consent_primitive_flow")}};
ylF=function(D,t){var H,e,V,b,a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u,R;return _.Z(function(I){switch(I.nextAddress){case 1:_.$p(I,2);(e=(H=_.O(D,vGb))==null?void 0:H.serializedConsentRequest)||(e=(V=_.O(D,pmF))==null?void 0:V.serializedConsentRequest);e&&(b=dIY(_.zV(e)));if(b===void 0)return I.return();a=xIt(b);a.latencyCallback=lTZ;t&&R7b(a,function(){t.then(function(tT){tT.pauseVideo();(new uJ4).increment()})});
return((w=_.O(D,vGb))==null?void 0:w.consentAction)==="CONSENT_ACTION_PREWARM"||((h=_.O(D,pmF))==null?void 0:h.consentAction)==="CONSENT_ACTION_PREWARM"?I.yield(Wc4(a),5):I.yield(ITe(a),6);case 6:K=I.yieldResult;N=_.na(K,Ze);if(N===1){if(((k=_.Yf(K,se,1,Ze))==null?void 0:_.AM(k,1))===1||((T=_.Yf(K,se,1,Ze))==null?void 0:_.AM(T,1))===2||((c=_.Yf(K,se,1,Ze))==null?void 0:_.AM(c,1))===3)_.O(D,pmF)?wR(_.OT("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
wR(_.OT("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));Jlv((U=_.Yf(K,se,1,Ze))==null?void 0:_.AM(U,1),_.wV(K,Qsi,3,_.Zl()))}else N===2?(((S=hQ(K))==null?void 0:_.AM(S,1))===5?_.O(D,pmF)?wR(_.OT("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):wR(_.OT("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((L=hQ(K))==null?void 0:_.AM(L,1))===1||((J=hQ(K))==null?void 0:_.AM(J,1))===4?wR(_.OT("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((g=hQ(K))==null?void 0:_.AM(g,1))===7&&((Q=b)==null?void 0:(u=_.sq(Q,Go,4))==null?void 0:_.AM(u,4))!==1&&wR(_.OT("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),YEZ((R=hQ(K))==null?void 0:_.AM(R,1))):wR(_.OT("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));I.jumpTo(5);break;case 5:_.yM(I,0);break;case 2:_.Pv(I),wR(_.OT("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.n2(I)}})};
z7b=function(){if(!Bg4.has("Worker")){Bg4.set("Worker",!0);var D={api:"BROWSER_API_WEB_WORKER"};D.available="Worker"in window?!0:!1;_.L7("apiTest",D)}};
DPO=function(D){return typeof D==="undefined"?"-1":String(Math.ceil(D/1048576))};
Vwg=function(D,t){twg(new HsF(_.O(t,e8F).addToken,_.O(t,e8F).commonToken)).then(function(){_.Gf(D,"yt-invoke-instrument-manager-action-completed")},function(H){_.Gf(D,"yt-invoke-instrument-manager-action-error",H)})};
bse=function(){var D,t;return(t=(D=window).matchMedia)==null?void 0:t.call(D,"(prefers-reduced-motion: reduce)").matches};
qGb=function(D){var t=_.qS().resolve(_.by(_.R_));if(t&&t.isAnyTransitionEnabled){var H={};t.viewTransitionCoordinator.registerElement(D,(H.slide="miniplayer-page-transition",H["lockup-to-watch"]="miniplayer-page-transition",H["learning-journey"]="miniplayer-page-transition",H))}};
FTe=function(D,t,H){return{horizontalAlignment:D.x+H.width/2<t.width/2?"west":"east",verticalAlignment:D.y+H.height/2<t.height/2?"north":"south"}};
wXg=function(D,t,H,e,V){V=V===void 0?new _.lR(0,0):V;D=am4(D,t,H,e);return new _.lR(D.x+V.x,D.y+V.y)};
am4=function(D,t,H,e){return new _.lR(D==="west"?16:H.width-e.width-16,t==="north"?16:H.height-e.height-16)};
Zs4=function(D,t){var H=0;D&&(H+=76);t&&(H+=285);return H};
s6Q=function(D){return _.xf(D)};
h8g=function(D){var t=1;D=D.split(":");for(var H=[];t>0&&D.length;)H.push(D.shift()),t--;D.length&&H.push(D.join(":"));return H};
GkH=function(D){var t=new _.ou;return _.lZ(t,11,D)};
EKv=function(D){var t={};D=D.getAllResponseHeaders().split("\r\n");for(var H=0;H<D.length;H++)if(!_.sD(D[H])){var e=h8g(D[H]),V=e[0];e=e[1];if(typeof e==="string"){e=e.trim();var b=t[V]||[];t[V]=b;b.push(e)}}return _.J$.map(t,function(a){return a.join(", ")})};
GD=function(D,t){return D.JSC$9800_xhr_?D.JSC$9800_xhr_.getResponseHeader(t):null};
KTH=function(D,t){if(D.isDisposed())throw Error("Ea");D.ka.ds("n");var H=_.QK(D.ka,function(){return D.kNA([t.hU,t.hxv,t.o2c,t.zT5])},"n");
D.ka.qNW(H.length);D.ka.vF();return H};
Ee=function(D,t,H){Array.isArray(H)||(H=[String(H)]);_.nCm(D.JSC$10036_queryData_,t,H);return D};
NgF=function(){var D=_.AG.instance;_.Z(function(t){return D.deferredInstallPrompt?t.yield(D.deferredInstallPrompt.prompt(),0):t.jumpTo(0)})};
NLe=function(D,t,H){if(_.d6(D))_.ID(D,t,H);else for(D=_.go6(D);;){var e=D.next();if(e.done)break;t.call(H,e.value,void 0,D)}};
kkF=function(D,t){var H=[];NLe(t,function(e){try{var V=_.KG.prototype.getWrapper.call(this,e,!0)}catch(b){if(b=="Storage: Invalid value was encountered")return;throw b;}V===void 0?H.push(e):_.AnV(V)&&H.push(e)},D);
return H};
PGY=function(D,t){kkF(D,t).forEach(function(H){_.KG.prototype.remove.call(this,H)},D)};
TLF=function(D){var t=_.wr;t._minimumZ=Math.max(t._minimumZ,D)};
c8i=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];j6Y=function(D,t){_.qc(D.vm);D.vm=t};
$P4=function(D,t,H,e){D.setState(5);var V=!!D.nH5&&c8i.includes(_.tW(D.nH5)||"");try{var b=new _.yK({program:t,globalName:H,z22:{disable:!_.r("att_web_record_metrics")||!_.r("att_skip_metrics_for_cookieless_domains_ks")&&V,rH:"aGIf"}});b.jk6.then(function(){D.setState(6);e&&e(t)});
j6Y(D,b)}catch(a){D.setState(7),a instanceof Error&&_.Yw(a)}};
ist=function(D,t,H,e,V,b){var a=a===void 0?"trayride":a;H?(D.setState(2),_.Iz(_.Xs(H),function(){if(window[a])$P4(D,e,a,V);else{D.setState(3);var w=_.PAR(H),h=document.getElementById(w);h&&(_.jHT(w),h.parentNode.removeChild(h));_.Yw(new _.nZ("BL:ULB",H))}},b)):t?(b=_.OH("SCRIPT"),t instanceof _.e2?_.bF(b,t):b.textContent=t,b.nonce=_.t6(document),document.head.appendChild(b),document.head.removeChild(b),window[a]?$P4(D,e,a,V):(D.setState(4),_.Yw(new _.nZ("BL:ULBJ")))):_.Yw(new _.nZ("BL:ULV"))};
r8e=function(){this.state=1;this.vm=null;this.nH5=void 0};
_.q=r8e.prototype;_.q.initialize=function(D,t,H,e){this.nH5=e;if(D.program){var V;e=(V=D.interpreterUrl)!=null?V:null;if(D.interpreterSafeScript)V=_.vLD(D.interpreterSafeScript);else{var b;V=(b=D.interpreterScript)!=null?b:null}D.interpreterSafeUrl&&(e=_.YV(D.interpreterSafeUrl).toString());ist(this,V,e,D.program,t,H)}else _.Yw(Error("qf"))};
_.q.isInitialized=function(){return!!this.vm};
_.q.getState=function(){return this.state};
_.q.isLoading=function(){return this.state===2};
_.q.invoke=function(D){D=D===void 0?{}:D;var t;this.vm?t=KTH(this.vm,{hU:D}):t=null;return t};
_.q.dispose=function(){j6Y(this,null);this.setState(8)};
_.q.setState=function(D){this.state=D};
var OsF=function(D,t){return D.vm.snapshot(t)},UPt=function(D,t){var H=_.ZU("botguard_async_snapshot_timeout_ms",3E3);
t=t===void 0?{}:t;H=H===void 0?3E3:H;return D.vm?new Promise(function(e,V){var b=!1,a=_.Jy.addJob(function(){b=!0;V(Error("rf"))},1,H);
D.vm?OsF(D,{hU:t}).then(function(w){_.Jy.cancelJob(a);b||e(w)}).catch(function(w){_.Jy.cancelJob(a);
b||V(w)}):(_.Jy.cancelJob(a),e(null))}):Promise.resolve(null)},oKH=["att/log"],NFb;
NFb={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var PIv={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},nKH=function(D,t){return _.of(D,{mode:"readwrite",enableRetries:!0},function(H){return _.biV(H,t,"settingEntity")})},CIt=function(D,t,H){return _.of(D,{mode:"readonly",
enableRetries:!0},function(e){return _.b3n(e,t,H)})},mPQ=function(D){if(!D.storage)return!1;
a:{if(D.storage){try{var t=D.storage.get("TLPQtimestamp")}catch(H){}D=Number(t);if(!isNaN(D))break a}D=void 0}return D?Date.now()-D<864E5:!1},MwF=function(D){if(D.storage){try{var t=D.storage.get("TLPQindex")}catch(H){}D=Number(t);
if(!isNaN(D))return D}},SGO=function(D,t){D.queueProxy&&t.forEach(function(H){if(H.videoId&&H.trackingParams&&D.queueProxy instanceof _.wf){var e=_.v3();
D.queueProxy.attributionData.set(H.videoId,{enqueueingVe:_.Sa(H.trackingParams).getAsJson(),enqueueingCsn:e?e:void 0,clientEnqueueingTimeMs:Math.floor((0,_.aP)()).toString()})}})},XXF=function(D){var t=_.YoB(D);
t!=D.currentSnapState_&&(D.currentSnapState_=t,D.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Kj=function(D){this.JSC$13171_networkManager_=D;
this.partCallbacks_=[]};
Kj.prototype.getCacheKeyForEndpoint=function(D){return _.yk6(D,!1)};
Kj.prototype.onPartsCallback_=function(D){this.partCallbacks_.forEach(function(t){D&&t(D)})};
var N6=function(D,t,H){Kj.call(this,D);this.player_=t;this.autoplayData_=H};
_.P(N6,Kj);N6.prototype.getCacheKeyForEndpoint=function(D){return _.yk6(D,!!this.autoplayData_)};
N6.prototype.getTempData=function(D,t){t=t.timeBeforeNextVideo;D={itct:D.clickTrackingParams,lact:_.aR(),pbis:t,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(D.autonav=1);return D};
N6.prototype.getXhrParams=function(D){return Object.assign({pbj:"prefetch"},D)};
N6.prototype.getParams=function(D){D={frags:D.fragmentsRequested.join(",")};_.r("kevlar_droppable_prefetchable_requests")&&(D.prefetch=1);return D};
var fmY=function(D){D.playerEvents_.forEach(function(t){D.player.removeEventListener(t.eventName,t.callback)});
D.playerEvents_.length=0},kH=function(D,t,H){this.player=D;
this.JSC$13181_taskManager=t;this.prefetchDelay=H;this.completionResolver_=null;this.playerEvents_=[]};
kH.prototype.start=function(){var D=this;this.completionResolver_=_.z3();_.pr(this.completionResolver_.promise,function(){fmY(D);D.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var LTH=function(D,t,H){D.player.addEventListener(t,H);D.playerEvents_.push({eventName:t,callback:H})},A8b={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},gKe={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},J8Z=function(D,t,H){kH.call(this,D,t,H);this.cueId_="playbackTrigger-"+Math.random()};
_.P(J8Z,kH);
J8Z.prototype.prepareTrigger=function(D){var t=this,H=this.player.getDuration(),e=this.player.getVideoData(),V=e.isLive&&e.hasProgressBarBoundaries;if(V&&e.progressBarEndPositionUtcTimeMillis){var b=e.progressBarEndPositionUtcTimeMillis/1E3;isNaN(b)||(H=b)}var a=0;this.prefetchDelay>=0?V?e.progressBarStartPositionUtcTimeMillis&&(e=e.progressBarStartPositionUtcTimeMillis/1E3,isNaN(e)||(a=e+this.prefetchDelay)):a=this.prefetchDelay:a=H+this.prefetchDelay;V?this.player.addUtcCueRange(this.cueId_,a,H):
this.player.addCueRange(this.cueId_,a,H);_.pr(D.promise,function(){t.player.removeCueRange(t.cueId_)});
LTH(this,"onCueRangeEnter",function(w){w==t.cueId_&&D.resolve(H-a)})};
var YGQ=function(D,t){D.fragmentConfiguration_[t].requiredKeys.every(function(H){return!!D.prefetchedData_[H]})&&(D.validatedFragments_.push(t),t=D.missingFragments_.indexOf(t),t!==-1&&D.missingFragments_.splice(t,1))},lmb=function(D){D.prefetchedFragments_.forEach(function(t){YGQ(D,t)})},vKH=function(D,t,H){this.pageFragments_=D;
this.prefetchedFragments_=t;this.fragmentConfiguration_=gKe;this.prefetchedData_=H;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;lmb(this)},pX4=function(){},dPY=function(D){this.JSC$13195_playlistManager_=D};
_.P(dPY,pX4);dPY.prototype.getPrefetchEndpoint=function(){return this.JSC$13195_playlistManager_.getAutoplayEndpoint()};
var xPQ=function(D){this.autonavEndpoints_=D};
_.P(xPQ,pX4);xPQ.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var R8v=function(D,t,H,e,V){this.autonavEndpoints=D;this.foregroundTrigger=t;this.backgroundTrigger=H;this.pageType=e;this.isInPlaylist=V},uCi=function(D,t){if(D.webPrefetchData&&D.webPrefetchData.navigationEndpoints&&D.webPrefetchData.navigationEndpoints.length){D=D.webPrefetchData.navigationEndpoints;
var H=_.O(D[0],_.Hh);if(H.watchEndpointSupportedPrefetchConfig&&H.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var e=H.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;H=e.playbackRelativeSecondsPrefetchCondition;H=typeof H==="number"&&Math.abs(H)<t.videoDuration?H:void 0;e=e.countdownUiRelativeSecondsPrefetchCondition;e=typeof e!=="number"||_.r("prefetch_job_config_cleanup_ks")&&t.inPlaylist?void 0:e;if(typeof e==="number")return new R8v(D,t.makeUpNextTrigger(e),t.makePlaybackTrigger(e),
"watch",t.inPlaylist);if(typeof H==="number")return new R8v(D,t.makePlaybackTrigger(H),null,"watch",t.inPlaylist)}}},WTF=function(D){return D.prefetchJobConfig_.backgroundTrigger?_.pY(_.OLK)()==0?D.prefetchJobConfig_.backgroundTrigger:D.prefetchJobConfig_.foregroundTrigger:D.prefetchJobConfig_.foregroundTrigger},ImH=function(D){_.g8(document,"visibilitychange",D.onVisibilityChange_,!1,D)},To=function(D){Kj.call(this,D)};
_.P(To,Kj);To.prototype.getCacheKeyForEndpoint=function(D){return Kj.prototype.getCacheKeyForEndpoint.call(this,D)};
To.prototype.getTempData=function(){return{}};
To.prototype.getXhrParams=function(D){return D};
To.prototype.getParams=function(){return{}};
var Q6i=function(D,t,H){var e=D.prefetchDelay*1E3;if(Math.abs(e)>t)H.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var V=e,b=t-e;e<0&&(V=t+e,b=Math.abs(e));var a=D.JSC$13181_taskManager.addJob(function(){H.resolve(b/1E3)},10,V);
H.promise.thenCatch(function(){D.JSC$13181_taskManager.cancelJob(a)})}},y8F=function(D,t,H){kH.call(this,D,t,H)};
_.P(y8F,kH);y8F.prototype.prepareTrigger=function(D){var t=this;LTH(this,"onAutonavCoundownStarted",function(H){Q6i(t,H,D)})};
var BLt=function(D){D.pendingPrefetchJob_&&(D.pendingPrefetchJob_.cancel(),D.pendingPrefetchJob_=null)},z8Q=function(D,t,H){if(!D.triggeredTargets.has(t)){var e=_.m$n(D,t);
e.action=H;_.nWv(D,t,e)}},DGi=function(D){_.Nyf();
_.gkR("cpt")&&_.Yw(Error("qh"));_.VA.requestAnimationFrame(function(){_.VA.setTimeout(function(){_.vh("cpt");var t=_.x0("vpl"),H=_.x0("cpt");t&&H&&_.vh("ol",Math.max(t,H))})});
try{_.vh("fr_s"),D()}catch(t){_.gT(t)}_.VA.requestAnimationFrame(function(){_.vh("bcp")})},tkO=function(D,t){D.serviceEndpointHandlers.push(t)},HaY=function(D,t){t=D.pendingPages_.indexOf(t);
t>-1&&D.pendingPages_.splice(t,1)},emi=function(D,t){var H=_.YUV.indexOf(t);
H>-1&&_.YUV.splice(H,1);D.targetPage_==t?(D.abort(),_.vm3(D)):HaY(D,t)},VkF=function(D,t,H,e){t={challenge:t};
H&&(t.webResponse=H);return _.sK(D.innertubeTransportService,t,_.qF(oKH),e)},bai=function(D,t,H){if(!t.challenge)throw Error("vi");
if(t.botguardData&&t.botguardData.program){var e=new r8e;e.initialize(t.botguardData,function(){UPt(e,{atr_challenge:t.challenge}).then(function(V){if(!V)throw Error("wi");return VkF(D,t.challenge,V,H)}).catch(function(V){_.Yw(V);
return VkF(D,t.challenge,void 0,H)})},void 0)}else VkF(D,t.challenge,void 0,H)},qtH=function(D,t,H){var e={};
t.ids&&(e.ids=[].concat(_.A6(t.ids)));t.engagementType&&(e.engagementType=t.engagementType);return _.sK(D.innertubeTransportService,e,_.qF(_.$gB),H).then(function(V){if(!V)throw new _.nZ("GetAttestationChallenge returned falsy");bai(D,V,H)}).thenCatch(function(V){_.gT(V)})},FNY=function(D,t,H){return new _.c$(function(e,V){var b;
return _.Z(function(a){if(a.nextAddress==1){var w=a.yield,h=t.engagementType,K=t.ids,N={};K=_.F(K!=null?K:[]);for(var k=K.next();!k.done;k=K.next())k=k.value,k.encryptedVideoId?N.encryptedVideoId=k.encryptedVideoId:k.externalChannelId?N.externalChannelId=k.externalChannelId:k.commentId?N.commentId=k.commentId:k.externalOwnerId?N.externalOwnerId=k.externalOwnerId:k.artistId?N.artistId=k.artistId:k.playlistId?N.playlistId=k.playlistId:k.externalPostId?N.externalPostId=k.externalPostId:k.shareId&&(N.shareId=
k.shareId);return w.call(a,mJH(h,N),2)}b=a.yieldResult;if(!b.challenge)return _.Yw(Error("xi")),qtH(D,t,H).then(e,V),a.return();w=b;h={challenge:w.challenge};h.webResponse=w.webResponse;h.engagementType=t.engagementType;h.ids=t.ids;_.sK(D.innertubeTransportService,h,_.qF(oKH),H).then(e,V);_.n2(a)})})},dXg=function(D,t){var H,e,V,b;
_.Z(function(a){if(a.nextAddress==1){H=_.O(t,_.Mef);if(!(H&&H.listId&&D.response&&D.response.playingVideoId)||D.listId!==H.listId)return a.return();D.index===void 0&&(D.index=0);return a.yield(_.vrn(D.JSC$12928_playlistNetworkManager,H.listId,D.index,D.response.playingVideoId),2)}e=a.yieldResult;if(!e)return a.return();V=e.playlistId;b=e.playlistPanelRenderer;D.setPlaylistData(V,b,e.autoplayRenderer);_.n2(a)})},ajg=function(D,t,H){var e=D.getParams(H),V=_.BFK(t,e),b=D.getTempData(t,H);
b.endpoint=JSON.stringify(t);_.r("enable_unknown_lact_fix_on_html5")&&(_.qS().resolve(_.mM),b.lact=_.aR());var a={headers:{"X-YouTube-STS":_.YC("STS"),"x-youtube-csoc":1}};_.qJ(V,b);return new _.c$(function(w,h){var K=D.getXhrParams(e),N;_.r("kevlar_cache_on_ttl_player")&&(N=_.Im.instance);N&&_.F53(N,t)?_.K5f(N,t,b,window.location.href).then(function(k){k?w(k):h()},h):_.L73(D.JSC$13171_networkManager_,t,K,D.onPartsCallback_.bind(D),a).then(function(k){k?w(k):h()},h)})},wgg=function(D,t){D.triggerPromise_=
t.start();
D.triggerPromise_.then(function(H){var e=D.prefetchEndpointProvider_.getPrefetchEndpoint();if(e){var V=A8b[D.prefetchJobConfig_.pageType].prefetchedFragments;D.prefetchRequestPromise_=ajg(D.JSC$13207_networkPrefetchRequest_,e,{fragmentsRequested:V,timeBeforeNextVideo:H});D.prefetchResponseCacheKey_=D.JSC$13207_networkPrefetchRequest_.getCacheKeyForEndpoint(e);ImH(D);D.prefetchRequestPromise_.then(function(b){D.storePrefetchedDataCallback_(D.prefetchResponseCacheKey_,b);if(_.r("web_prefetch_preload_video")&&
V.length===1&&V[0]==="pl"&&b&&!b.playerAds&&!b.adPlacements){var a=_.O(e,_.C_),w=a!=null,h={raw_player_response:b,watch_endpoint:a};(b=_.qS().resolve(w?_.O3n:_.h5))&&e&&b.then(function(K){w&&_.r("web_queue_preload_video")?(h.prefer_gapless=!0,K.queueNextVideo(h)):K.preloadVideoByPlayerVars(h)})}})}})},cx=function(D,t,H,e){this.prefetchEndpointProvider_=D;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=t;this.prefetchJobConfig_=H;this.JSC$13207_networkPrefetchRequest_=e;this.prefetchResponseCacheKey_=null};
cx.prototype.enqueue=function(){this.triggerPromise_||(wgg(this,WTF(this)),_.fz(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
cx.prototype.resolve=function(){this.cancel()};
cx.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.");ImH(this)};
cx.prototype.onVisibilityChange_=function(){var D=this;_.pY(_.OLK)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){D.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||wgg(this,WTF(this))};
var Za4=function(D,t,H,e,V){t&&(t==null?0:t.videoId)&&H&&H.entries&&_.r("kevlar_enable_shorts_prefetch_in_sequence")&&(BLt(D),t=H.entries.map(function(b){var a;return(a=_.O(b.command,_.C_))==null?void 0:a.videoId}).indexOf(t.videoId),H=H.entries[t+1],H!=null&&H.command&&!_.O(H==null?void 0:H.command,_.qB)&&(e=new R8v([H.command],new J8Z(e,_.Jy,1),null,"shorts",!1),D.pendingPrefetchJob_=new cx(new xPQ(e.autonavEndpoints),function(){return!1},e,new To(V)),D.pendingPrefetchJob_.enqueue()))},skF=function(D,
t,H,e,V,b){var a=_.Uz.getInstance();
if(!_.r("block_all_player_prefetch_requests")){BLt(D);var w=!!H.getPlaylistId(),h=H.getVideoData().isLive&&H.getVideoData().hasProgressBarBoundaries;if((a.getState()==2||w||h)&&(!H.getVideoData().isLive||h)){a={inPlaylist:w,videoDuration:H.getDuration(),makeUpNextTrigger:function(N){return new y8F(H,_.Jy,N)},
makePlaybackTrigger:function(N){return new J8Z(H,_.Jy,N)}};
var K=uCi(t,a);K&&(D.pendingPrefetchJob_=new cx(K.isInPlaylist?new dPY(V):new xPQ(K.autonavEndpoints),function(N,k){k=new vKH(A8b[K.pageType].pageFragments,A8b[K.pageType].prefetchedFragments,k);return _.ct9(k)?(D.prefetchCache_.set(N,k),!0):!1},K,new N6(e,H,b,V)),D.pendingPrefetchJob_.enqueue())}}},hmi=function(){var D=_.k$();
D.signals.parkOrScheduleJob(function(){var t=D.storage;if(t.storage)if(mPQ(t)){var H=t.getPlaylistId();t=MwF(t);H=!!H&&t!==void 0}else t.clear(),H=!1;else H=!1;if(H){H=D.pageManager.isOnWatch();a:{var e=D.storage;if(e.storage&&mPQ(e)&&(t=e.getPlaylistId(),e=MwF(e),t&&e!==void 0)){H={recoverPlaylistCommand:{listId:t,index:e,openMiniplayer:!H,openListPanel:H,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}H=void 0}H&&_.zB(D.JSC$12928_actionRouter,[H],null)}},0,"ma")},GEQ=function(D,t,H,e,V,b){var a=
_.Nx(7111);
_.A1(D.JSC$18338_screenManager,a,b?_.Sa(b):void 0);_.J1(D.JSC$18338_screenManager,a,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:e,offlineId:t,offlineabilityFormatType:H,isDefaultFormatType:V==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:V}})},EfF=function(D,t,H,e,V){var b,a,w,h,K;
return _.Z(function(N){if(N.nextAddress==1)return N.yield(D.JSC$18338_playerApiPromise,2);b=N.yieldResult;GEQ(D,t,H,"OFFLINE_OBJECT_TYPE_PLAYLIST",e,V);if(w=_.h9v[D.entityTypeMap.listEntityType])K={},a=(K[w]={maximumDownloadQuality:(h=H)!=null?h:void 0},K);return N.yield(b.queueOfflineAction(t,D.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",a),0)})},KNe=function(D,t){var H,e,V,b;
return _.Z(function(a){if(a.nextAddress==1)return a.yield(D.JSC$18338_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3){H=a.yieldResult;if(!H)return _.Yw(new _.nZ("PES is undefined")),a.return();e=_.cH(t,"downloadStatusEntity");return a.yield(CIt(H,e,"downloadStatusEntity"),3)}V=a.yieldResult;return a.return((b=V)==null?void 0:b.downloadState)})},NUb=function(D,t,H,e,V){var b,a,w,h,K,N;
return _.Z(function(k){switch(k.nextAddress){case 1:return k.yield(D.JSC$18338_playerApiPromise,2);case 2:b=k.yieldResult;GEQ(D,t,H,"OFFLINE_OBJECT_TYPE_VIDEO",e,V);if(w=_.h9v[D.entityTypeMap.singleEntityType])K={},a=(K[w]={maximumDownloadQuality:(h=H)!=null?h:void 0},K);return k.yield(KNe(D,t),3);case 3:N=k.yieldResult;if(N!=="DOWNLOAD_STATE_USER_DELETED"){k.jumpTo(4);break}return k.yield(D.deleteVideo(t),4);case 4:return k.yield(b.queueOfflineAction(t,D.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
a),0)}})},kEF=function(D,t,H,e,V){return _.Z(function(b){return b.nextAddress==1?b.yield(D.deleteVideo(t,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):b.yield(NUb(D,t,H,e,V),0)})},TUb=function(D,t,H){var e,V;
return _.Z(function(b){if(b.nextAddress==1)return b.yield(D.JSC$18338_playerApiPromise,2);e=b.yieldResult;V=_.cH(t,"mainVideoDownloadStateEntity");return b.yield(e.updateDownloadState(V,H),0)})},h7Q=function(D){var t=_.qS().resolve(_.vq);
return _.Z(function(H){if(H.nextAddress==1)return t.previousDownloadStateForVideo[D]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&t.previousDownloadStateForVideo[D]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?H.jumpTo(2):H.yield(t.resumeVideoDownload(D),2);if(H.nextAddress!=4)return H.yield(TUb(t,D,t.previousDownloadStateForVideo[D]),4);delete t.previousDownloadStateForVideo[D];_.n2(H)})},ZPZ=function(D,t){var H;
return _.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$18338_playerApiPromise,2);H=e.yieldResult;return e.yield(H.queueOfflineAction(t,D.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},FcH=function(){var D=_.qS().resolve(_.vq),t,H;
return _.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$18338_playerApiPromise,2);if(e.nextAddress!=3)return t=e.yieldResult,H={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},e.yield(t.queueOfflineAction("!*$_ALL_ENTITIES_!*$",D.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",H),3);var V=D.JSC$18338_commandHandler,b=V.resolveCommand,a=_.OT("DELETING_ALL",void 0,"Downloads are being deleted");b.call(V,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.wO(a)}},
popupType:"TOAST"}});_.n2(e)})},cMO=function(D,t){var H,e,V,b,a,w;
return _.Z(function(h){if(h.nextAddress==1)return h.yield(D.JSC$18338_persistentStorePromiseAccessor(),2);if(h.nextAddress!=3)return H=h.yieldResult,H?h.yield(CIt(H,_.LC,"downloadsPageViewConfigurationEntity"),3):(_.Yw(new _.nZ("PES is undefined")),h.return());V=(e=h.yieldResult)!=null?e:{};w=(a=(b=V)==null?void 0:b.downloadsUpsellBannerVisibility)!=null?a:{};return w.visibleWithConnection?h.yield(t.refreshAllStaleEntities(0),0):h.jumpTo(0)})},jkF=function(D){var t,H;
return _.Z(function(e){if(e.nextAddress==1)return e.yield(D.JSC$18338_prefStorage,2);t=e.yieldResult;return e.return((H=t)==null?void 0:H.get("sdois"))})},$GO=function(D){var t,H,e,V,b,a;
return _.Z(function(w){if(w.nextAddress==1)return w.yield(D.JSC$18338_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3){t=w.yieldResult;if(!t)return _.Yw(new _.nZ("PES is undefined")),w.return();H=_.cH("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return w.yield(CIt(t,H,"settingEntity"),3)}e=w.yieldResult;return w.return((a=(V=e)==null?void 0:(b=V.settingOptionValue)==null?void 0:b.boolValue)!=null?a:!1)})},ia4=function(D,t){var H,e,V,b;
return _.Z(function(a){switch(a.nextAddress){case 1:return((H=t)==null?void 0:H.formatType)===void 0?a.return():a.yield(D.JSC$18338_prefStorage,2);case 2:e=a.yieldResult;if(e===void 0)return a.return();if(((V=t)==null?void 0:V.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return a.yield(e.set("lmqf",t.formatType),8);if(((b=t)==null?void 0:b.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){a.jumpTo(0);break}return a.yield(e.set("lmqf",t.formatType),6);case 6:return a.yield(e.set("lmqflst",
Math.floor((0,_.aP)())),0);case 8:return a.yield(e.remove("lmqflst"),0)}})},rMO=function(D){var t,H;
return _.Z(function(e){switch(e.nextAddress){case 1:return e.yield(D.JSC$18338_prefStorage,2);case 2:t=e.yieldResult;if(!t){e.jumpTo(3);break}return e.yield(t.get("lmqflst"),4);case 4:if(H=e.yieldResult,H!==void 0)return e.return(H);case 3:return e.return(0)}})},Oae=function(D){var t,H;
return _.Z(function(e){switch(e.nextAddress){case 1:return e.yield(D.JSC$18338_prefStorage,2);case 2:t=e.yieldResult;if(t===void 0){e.jumpTo(3);break}return e.yield(t.get("lmqf"),4);case 4:if(H=e.yieldResult,H!==void 0)return e.return(H);case 3:return e.return("SD")}})},jst=function(D,t,H){var e,V,b,a,w,h,K,N;
_.Z(function(k){switch(k.nextAddress){case 1:return k.yield(ia4(D,(e=t)==null?void 0:e.actionParams),2);case 2:V=t.playlistId;if(!V)return k.return();if(t.action==="ACTION_ADD")return((a=t.actionParams)==null?0:a.formatType)?k.yield(EfF(D,V,t.actionParams.formatType,(N=t.actionParams)==null?void 0:N.settingsAction,H),0):k.yield(D.offlineWebClientEligibility,14);if(t.action==="ACTION_REMOVE_WITH_PROMPT"){var T=D.JSC$18338_commandHandler,c=T.resolveCommand,U=_.YC("INNERTUBE_CLIENT_NAME");var S=U===
"WEB_REMIX"?_.OT("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.OT("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var L=U==="WEB_REMIX"?[_.OT("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];U=U==="WEB_REMIX"?_.OT("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.OT("DELETE",void 0,"Delete");var J=_.OT("CANCEL",void 0,"Cancel");S=MPF(S,L,U,J,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:V});c.call(T,{openPopupAction:S});return k.return()}if(t.action===
"ACTION_REMOVE")return k.yield(ZPZ(D,V),0);if(t.action!=="ACTION_SYNC"){k.jumpTo(0);break}return k.yield(D.JSC$18338_playerApiPromise,9);case 9:return b=k.yieldResult,k.yield(b.queueOfflineAction(V,D.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return w=k.yieldResult,k.yield(Oae(D),15);case 15:return h=k.yieldResult,k.yield(rMO(D),16);case 16:K=k.yieldResult,t.onAddCommand&&D.JSC$18338_commandHandler.resolveCommand(t.onAddCommand,{form:{preferredFormatType:h,
offlineWebClientEligibility:w,lastOfflineQualitySettingsSavedMs:K.toString()}}),k.jumpTo(0)}})},TgF=function(D,t,H){var e,V,b,a,w,h,K,N,k,T,c,U,S,L;
_.Z(function(J){switch(J.nextAddress){case 1:return J.yield(ia4(D,(e=t)==null?void 0:e.actionParams),2);case 2:V=t.videoId;if(!V)return J.return();if(t.action==="ACTION_REMOVE_WITH_PROMPT"){var g=D.JSC$18338_commandHandler,Q=g.resolveCommand,u=_.YC("INNERTUBE_CLIENT_NAME");var R=u==="WEB_REMIX"?_.OT("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.OT("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var I=u==="WEB_REMIX"?[_.OT("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];u=u==="WEB_REMIX"?_.OT("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.OT("DELETE",void 0,"Delete");var tT=_.OT("CANCEL",void 0,"Cancel");R=MPF(R,I,u,tT,{signal:"DELETE_DOWNLOAD",targetId:V});Q.call(g,{openPopupAction:R});return J.return()}if(t.action==="ACTION_ADD")return((T=t.actionParams)==null?0:T.formatType)?J.yield(NUb(D,V,t.actionParams.formatType,(L=t.actionParams)==null?void 0:L.settingsAction,H),0):J.yield(D.offlineWebClientEligibility,23);if(t.action==="ACTION_RETRY")return J.yield(Oae(D),
19);if(t.action==="ACTION_PAUSE")return J.yield(D.pauseVideoDownload(V),0);if(t.action==="ACTION_RESUME")return J.yield(D.resumeVideoDownload(V),0);if(t.action!=="ACTION_REMOVE"){J.jumpTo(0);break}return J.yield(KNe(D,V),13);case 13:return b=J.yieldResult,D.previousDownloadStateForVideo[V]=(a=b)!=null?a:"DOWNLOAD_STATE_UNKNOWN",J.yield(TUb(D,V,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(D.previousDownloadStateForVideo[V]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&D.previousDownloadStateForVideo[V]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){J.jumpTo(15);break}return J.yield(D.pauseVideoDownload(V),15);case 15:g=_.OT("DELETED_VIDEO",void 0,"Video deleted from downloads.");Q=_.OT("UNDO_ACTION",void 0,"Undo");R=_.OT("CLOSE",void 0,"Close");w={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.wO(g),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.wO(Q),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:V}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:g+" "+Q}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:V}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:R}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};D.JSC$18338_commandHandler.resolveCommand(w);
J.jumpTo(0);break;case 19:h=J.yieldResult;h==="UNKNOWN_FORMAT_TYPE"&&(h="SD");K="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((N=t.actionParams)==null?0:N.formatType)h=t.actionParams.formatType,K=(k=t.actionParams)==null?void 0:k.settingsAction;return J.yield(kEF(D,V,h,K,H),20);case 20:return J.return();case 23:return c=J.yieldResult,J.yield(Oae(D),24);case 24:return U=J.yieldResult,J.yield(rMO(D),25);case 25:S=J.yieldResult,t.onAddCommand&&D.JSC$18338_commandHandler.resolveCommand(t.onAddCommand,
{form:{preferredFormatType:U,offlineWebClientEligibility:c,lastOfflineQualitySettingsSavedMs:S.toString()}}),J.jumpTo(0)}})},UGv=function(D,t){var H,e,V,b,a,w,h;
return _.Z(function(K){if(K.nextAddress==1)return K.yield(D.JSC$18338_persistentStorePromiseAccessor(),2);H=K.yieldResult;if(!H)return _.Yw(new _.nZ("PES is undefined")),K.return();if((e=t)==null||!e.settingItemId)return K.return();V=t;b=V.settingItemId;a=V.boolValue;w=_.cH(b,"settingEntity");h={key:w,settingOptionValue:{boolValue:a}};return K.yield(nKH(H,h),0)})},ofi=function(D,t){var H,e,V,b,a,w,h;
return _.Z(function(K){switch(K.nextAddress){case 1:return K.yield(D.JSC$18338_prefStorage,2);case 2:return H=K.yieldResult,e=_.Ph(),K.yield(D.JSC$18338_persistentStorePromiseAccessor(),3);case 3:return V=K.yieldResult,H?V?K.yield(H.get("sdois"),4):(_.Yw(new _.nZ("PES is undefined")),K.return()):(_.Yw(new _.nZ("prefStorage is undefined")),K.return());case 4:b=K.yieldResult;w=(a=t)==null?void 0:a.boolValue;w===void 0||_.r("kevlar_set_sd_enabled_flag_killswitch")||_.nl(0,197,!0);b===void 0&&w===void 0&&
(w=!1);if(w===void 0){K.jumpTo(0);break}return K.yield(H.set("sdois",w),6);case 6:return _.r("kevlar_set_sd_enabled_flag_killswitch")||(_.nl(0,196,w),e.save()),h={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:w},K.yield(UGv(D,h),0)}})},PZF=function(D,t,H){var e,V,b,a,w;
return _.Z(function(h){switch(h.nextAddress){case 1:return h.yield(jkF(D),2);case 2:return e=h.yieldResult,h.yield(ofi(D,H),3);case 3:return h.yield(jkF(D),4);case 4:return V=h.yieldResult,b=V!==e,h.yield($GO(D),5);case 5:a=h.yieldResult&&!_.r("kevlar_modern_downloads_page");if((w=!V&&!a)||b)return h.yield(t.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);h.jumpTo(0)}})},EGv=function(){var D=_.qS().resolve(_.vq),
t;
_.Z(function(H){switch(H.nextAddress){case 1:return H.yield(D.JSC$18338_playerApiPromise,2);case 2:t=H.yieldResult;if(!_.r("kevlar_force_refresh_smart_downloads")){H.jumpTo(3);break}return H.yield(t.refreshAllStaleEntities(0),4);case 4:return H.return();case 3:return H.yield(t.refreshAllStaleEntities(),5);case 5:return H.yield(PZF(D,t),6);case 6:if(_.r("enable_download_pep_for_premium_countries_web"))return H.yield(cMO(D,t),0);H.jumpTo(0)}})},iPi=function(D,t){var H,e;
_.Z(function(V){switch(V.nextAddress){case 1:return V.yield(D.JSC$18338_playerApiPromise,2);case 2:H=V.yieldResult;switch((e=t)==null?void 0:e.settingItemId){case "SMART_DOWNLOADS_ENABLED":return V.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return V.jumpTo(4)}V.jumpTo(0);break;case 3:return V.yield(PZF(D,H,t),6);case 6:V.jumpTo(0);break;case 4:return V.yield(UGv(D,t),7);case 7:V.jumpTo(0)}})},nfY=function(D,t){var H,e,V;
return _.Z(function(b){if(b.nextAddress==1)return b.yield(D.JSC$18338_persistentStorePromiseAccessor(),2);if(b.nextAddress!=3){H=b.yieldResult;if(!H)return _.Yw(new _.nZ("PES is undefined")),b.return(!1);if(!t)return b.return(!1);e=_.cH(t,"mainVideoEntity");return b.yield(CIt(H,e,"mainVideoEntity"),3)}V=b.yieldResult;return b.return(V!==void 0)})},OPQ=function(D){var t=_.qS().resolve(_.vq),H,e,V,b,a,w,h,K,N,k,T;
_.Z(function(c){switch(c.nextAddress){case 1:return c.yield(t.JSC$18338_playerApiPromise,2);case 2:H=c.yieldResult;V=(e=D)==null?void 0:e.actions;if(!V)return c.return();b=_.F(V);a=b.next();case 3:if(a.done){c.jumpTo(0);break}w=a.value;K=h=void 0;if(!(((h=w)==null?0:h.entityKey)&&((K=w)==null?0:K.actionType))){c.jumpTo(4);break}N=_.NQ(w.entityKey);k=N.entityId;T=N.entityType;return c.yield(H.queueOfflineAction(k,T,w.actionType),4);case 4:a=b.next(),c.jumpTo(3)}})},CZF=function(D,t){var H,e,V,b,a;
return _.Z(function(w){if(w.nextAddress==1)return w.yield(D.JSC$18338_prefStorage,2);if(w.nextAddress!=3)return(H=w.yieldResult)?w.yield(H.get("psi"),3):w.return();e=w.yieldResult;a={isPaused:t,lastSyncTimestamp:(b=(V=e)==null?void 0:V.lastSyncTimestamp)!=null?b:"0"};return w.yield(H.set("psi",a),0)})},Peg=function(D){var t=_.qS().resolve(_.vq),H,e,V,b,a,w,h,K;
return _.Z(function(N){switch(N.nextAddress){case 1:return N.yield(t.JSC$18338_playerApiPromise,2);case 2:H=N.yieldResult;V=((e=D)==null?void 0:e.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((w=D)==null?void 0:w.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":b="!*$_ALL_ENTITIES_!*$";a="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return N.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return N.jumpTo(4)}N.jumpTo(5);break;case 3:return N.yield(CZF(t,V),6);case 6:N.jumpTo(5);break;case 4:return N.yield(nfY(t,(h=D)==null?void 0:h.videoId),7);case 7:N.yieldResult&&(b=(K=D)==null?void 0:K.videoId,a="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");N.jumpTo(5);break;case 5:if(b&&a)return N.yield(H.queueOfflineAction(b,"videoPlaybackPositionEntity",a),0);N.jumpTo(0)}})},mGt=function(D,t){var H;
t!==1||((H=D.currentPersistentToast)==null?0:H.isOpened())?D.openToast():D.currentPersistentToast=void 0},Mkg=function(D,t){var H;
return(H=D.transitionTasksMap.get(t))!=null?H:[]},Stg=function(D,t){var H=[];
D.elementTasksMap.forEach(function(e){(e=e.get(t))&&H.push(e)});
return H},XgF=function(D,t,H,e,V){V=V===void 0?{}:V;
var b=t.defaultViewTransitionOptions;return Object.assign({},b,V,{beforeTransition:function(){e.forEach(function(K){K.beforeTransition()});
var a;(a=b.beforeTransition)==null||a.call(b);var w,h;(h=(w=V).beforeTransition)==null||h.call(w);H.forEach(function(K){K.beforeTransition()})},
afterTransition:function(){e.forEach(function(K){K.afterTransition()});
var a;(a=b.afterTransition)==null||a.call(b);var w,h;(h=(w=V).afterTransition)==null||h.call(w);H.forEach(function(K){K.afterTransition()})},
ignoredErrors:D.config.ignoredErrors})},fjF=function(D,t,H){D.transitionTasksMap.has(t)?D.transitionTasksMap.get(t).push(H):(D=new _.nZ("Transition task registered for unknown transition type",t),_.gT(D))},LNv=function(D,t,H){if(D.transitionTasksMap.has(t)){var e=D.transitionTasksMap.get(t).filter(function(V){return V!==H});
D.transitionTasksMap.set(t,e)}},AMY=function(D,t){var H=Mkg(D,t);
H=_.F(H);for(var e=H.next();!e.done;e=H.next())e=e.value,e.runOnce&&LNv(D,t,e);D.elementTasksMap.forEach(function(V,b){V.forEach(function(a,w){a.runOnce&&t===w&&(V.delete(w),V.size===0&&D.elementTasksMap.delete(b))})})},gft=function(D,t,H){var e,V,b,a,w,h,K,N,k;
_.Z(function(T){if(T.nextAddress==1){if(D.config.disableAllTransitions)return T.return(t());if((e=H)==null||!e.transitionType)return T.return(_.KIO(t,Object.assign({},(V=H)==null?void 0:V.viewTransitionOptions,{ignoredErrors:D.config.ignoredErrors})));b=H;a=b.transitionType;w=b.viewTransitionOptions;h=D.config.transitionConfigs.get(a);if(!h)return T.return(t());K=Mkg(D,a);N=Stg(D,a);k=_.KIO(t,XgF(D,h,K,N,w));return T.yield(k,2)}AMY(D,a);_.n2(T)})},JMQ=function(){var D,t,H,e;
return _.Z(function(V){if(V.nextAddress==1)return D=navigator,(t=D.storage)!=null&&t.persisted?V.yield((H=D.storage)==null?void 0:H.persisted(),2):V.return("PERSISTED_STATE_NOT_SUPPORTED");e=V.yieldResult;return V.return(e?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Yt4=function(){var D,t,H,e;
return _.Z(function(V){if(V.nextAddress==1)return D=navigator,(t=D.storage)!=null&&t.persist?V.yield((H=D.storage)==null?void 0:H.persist(),2):V.return("PERSISTED_STATE_NOT_SUPPORTED");e=V.yieldResult;return V.return(e?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},ljF=function(){var D,t;
return _.Z(function(H){switch(H.nextAddress){case 1:return D="PERSISTED_STATE_NOT_SUPPORTED",_.$p(H,2),H.yield(JMQ(),4);case 4:D=H.yieldResult;if(D!=="PERSISTED_STATE_NOT_GRANTED"){H.jumpTo(5);break}return H.yield(Yt4(),6);case 6:D=H.yieldResult;case 5:_.yM(H,3);break;case 2:t=_.Pv(H),t instanceof Error&&_.gT(t);case 3:return _.L7("persistentStorageStateChecked",{persistedState:D}),H.return(D)}})},vfe=function(D,t){var H=[],e=!1;
t=_.F(t);for(var V=t.next();!V.done;V=t.next()){V=D.moduleRegistry[V.value];var b=void 0,a=void 0;((b=V)==null?0:b.isFetching)&&((a=V)==null?0:a.resolver)?(H.push(V.resolver.promise),e=!0):(V=new _.TK,V.resolve(void 0),H.push(V.promise))}return e?Promise.all(H):void 0},pgv=function(D,t,H){if(D.isAnyTransitionEnabled){var e={beforeTransition:function(){H(!0);
t.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){t.style.viewTransitionName&&(t.style.viewTransitionName="",H(!1))}};
fjF(D.viewTransitionCoordinator,"slide",e);fjF(D.viewTransitionCoordinator,"lockup-to-watch",e);fjF(D.viewTransitionCoordinator,"watch-next-appears",e);fjF(D.viewTransitionCoordinator,"learning-journey",e)}},dGe=function(D,t){D.isBrowseTransitionEnabled?gft(D.viewTransitionCoordinator,t,{transitionType:"slide"}):(t(),Promise.resolve())},xGZ=function(D,t){D.isLockupToWatchTransitionEnabled?gft(D.viewTransitionCoordinator,t,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){D.registeredLockupThumbnail=void 0;D.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(t(),Promise.resolve())},RmZ=function(D,t){D.isLockupToWatchTransitionEnabled?gft(D.viewTransitionCoordinator,t,{transitionType:"watch-next-appears"}):(t(),Promise.resolve())},uzY=function(D,t){D.isLearningJourneyTransitionEnabled?gft(D.viewTransitionCoordinator,t,{transitionType:"learning-journey"}):(t(),Promise.resolve())},WNb=function(D,t,H){if(D.isInitialized()){var e=
tu(H),V=e==="watch";
e=e==="shorts";var b=tu(t)==="watch";if(V)b||(D.backgroundPageData=t),D.watchPipMode&&b||D.deactivate(H.endpoint);else if(e){if(tu(t)!=="shorts"){var a;(a=D.getPlayerElement())==null||a.pause()}}else b&&!D.watchPipMode&&(Xhi(t,H)?(D.watchWhileMode&&_.oMF(D,!1),_.jZZ(D,t)):D.isMiniplayerActive()&&D.watchWhileMode&&D.deactivate());b&&_.nMF(D);D.shortsPipMode&&!e&&(window.focus(),D.deactivate());if(D.pictureInPictureEnabled())if(e&&D.shortsPipEnabled||V&&D.watchPipEnabled)_.x0$(D.handleMediaSessionPipActivation);
else if(!D.isMiniplayerActive()&&(D.shortsPipEnabled||D.watchPipEnabled)&&window.documentPictureInPicture&&_.CK()&&_.iKV("Chromium")>=120){D=_.d0V().mediaSession;try{D.setActionHandler("enterpictureinpicture",null)}catch(w){}}}},IjF=function(D,t){var H,e;
_.Z(function(V){if(V.nextAddress==1){if(!D||!D.navigationEndpoint)return V.return();_.d3().lockupActivation=!0;var b;t?b=_.H7(_.OT("QUEUE",void 0,"Queue")):b=D.longBylineText;e=(H=b)&&D.title?{miniplayerTitle:D.title,miniplayerSubtitle:H,playlistData:null}:void 0;return V.yield(_.fCm(_.qS().resolve(_.dL),D.navigationEndpoint,!0,e),2)}_.d3().userActivation=!0;_.n2(V)})},lPv=function(D,t){var H,e,V,b,a,w;
_.Z(function(h){if(h.nextAddress==1){H=_.O(t,_.moB);if(!H||!H.listId)return h.return();D.index=H.index||D.index||0;e=D.response&&D.response.playingVideoId||void 0;return h.yield(_.vrn(D.JSC$12928_playlistNetworkManager,H.listId,D.index,e),2)}V=h.yieldResult;if(!V)return h.return();b=V.playlistId;a=V.playlistPanelRenderer;!D.queueProxy&&b&&a&&b.startsWith("TLPQ")&&(D.queueProxy=new _.wf(D.JSC$12928_playlistNetworkManager,b,D.setPlaylistData.bind(D),D.clearQueue.bind(D),_.lMV(a),D.storage));if(H.openMiniplayer&&
(w=_.vTk(a))&&!D.pageManager.isOnWatch()){var K=w,N=H.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";D.isMiniplayerActive()?D.openToast(K):IjF(K,N)}D.setPlaylistData(b,a,V.autoplayRenderer);_.n2(h)})},gXb=function(D,t){var H=_.k$();
H.index===void 0&&(H.index=0);H.temporaryItems.push.apply(H.temporaryItems,_.A6(D));if((t.videoId||t.videoIds)&&H.index!==void 0&&t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!H.queueProxy){var e=[];if(H.response){var V=_.qS().resolve(_.dL).isMiniplayerActive();if(H.response.playlistPanelRenderer&&H.response.playlistId&&!H.response.playlistId.startsWith("TLPQ")){if(H.pageManager.isOnWatch()||V)e=_.lMV(H.response.playlistPanelRenderer)}else H.response.playingVideoId&&!t.openMiniplayer?e.push(H.response.playingVideoId):
V&&H.response.playingVideoId&&t.openMiniplayer&&e.push(H.response.playingVideoId)}H.queueProxy=new _.wf(H.JSC$12928_playlistNetworkManager,"",H.setPlaylistData.bind(H),H.clearQueue.bind(H),e,H.storage);H.queueProxy.JSC$12874_setCurrentIndex(H.index)}H.queueProxy.addVideos(t.videoIds||[t.videoId],t)}SGO(H,D);H.response&&_.Ti(H,_.cM(H,H.response.autoplayRenderer));H.pageManager.isOnWatch()?H.isMiniplayerActive()&&H.openToast(D[0]):(D=D[0],t=t.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",H.isMiniplayerActive()?
H.openToast(D):IjF(D,t))},QkH=function(D){var t=_.yV(D);
if(t=="object"||t=="array"){if(typeof D.clone==="function")return D.clone();if(typeof Map!=="undefined"&&D instanceof Map)return new Map(D);if(typeof Set!=="undefined"&&D instanceof Set)return new Set(D);t=t=="array"?[]:{};for(var H in D)t[H]=QkH(D[H]);return t}return D},jm=function(D,t){return _.c3X(_.rU(D,t,void 0,_.iZ))},$H=function(D,t){return _.VZ(_.rU(D,t,void 0,_.iZ))},i0=function(D,t){return _.gvD(_.rU(D,t,void 0,_.iZ))},rR=function(D,t){return _.rU(D,t,void 0,_.iZ,_.W9)},yMi=_.hA(function(D,
t,H){if(D.nextWireType_!==0)return!1;
_.GF(t,H,_.dU(D.decoder_,_.k43));return!0},_.kh,_.Ik),BU4=_.hA(function(D,t,H,e){if(D.nextWireType_!==0)return!1;
_.Pg(t,H,e,_.dU(D.decoder_,_.k43));return!0},_.kh,_.Ik),zm4=_.hA(function(D,t,H){if(D.nextWireType_!==1)return!1;
var e=D.decoder_;D=_.Rk(e);e=_.Rk(e);D=_.J3(D,e);_.GF(t,H,D);return!0},_.Ld8,_.KkT),DAO=_.hA(function(D,t,H){if(D.nextWireType_!==5)return!1;
_.GF(t,H,_.Rk(D.decoder_));return!0},function(D,t,H){t=_.iQ3(t);
t!=null&&(_.EY(D,H,5),_.KM(D.encoder_,t))},_.hC8),tB4=_.hA(function(D,t,H){if(D.nextWireType_!==2)return!1;
D=_.BzT(D);_.GF(t,H,D===_.Om()?void 0:D);return!0},_.l13,_.TC6),HJt=_.nhV(function(D,t,H){if(D.nextWireType_!==0&&D.nextWireType_!==2)return!1;
t=_.HU(t,t[_.ba]|0,H);D.nextWireType_==2?_.zb6(D,s6Q,t):t.push(_.xf(D.decoder_));return!0},function(D,t,H){t=_.PMA(_.VZ,t,!0);
if(t!=null&&t.length){H=_.q1V(D,H);for(var e=0;e<t.length;e++)_.SYD(D.encoder_,t[e]);_.FkA(D,H)}},_.cIA),eFb=_.hA(function(D,t,H,e){if(D.nextWireType_!==0)return!1;
_.Pg(t,H,e,_.xf(D.decoder_));return!0},_.pUA,_.cIA),VBZ=function(D){return D.previousElementSibling!==void 0?D.previousElementSibling:_.mHf(D.previousSibling,!1)},bJZ=function(D,t){var H=[];
for(t=t||0;t<D.length;t+=2)_.cAf(D[t],D[t+1],H);return H.join("&")},qBF=function(D,t){var H=arguments.length==2?bJZ(arguments[1],0):bJZ(arguments,1);
return _.Tww(D,H)},FxO=_.iM(_.Al),FbH=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(FbH,_.ww);FbH.prototype.getTypeName=function(){return _.La(this,1).split("/").pop()};
FbH.prototype.getValue=function(){var D=_.rU(this,2);if(Array.isArray(D)||D instanceof _.ww)throw Error("W");return _.ok(this,2)};
var Q54=function(){var D=_.EL();this.JSC$9921_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.EH("channel_type"))};
Q54.prototype.increment=function(D){this.JSC$9921_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",D)};
var yhF=function(){var D=_.EL();this.JSC$9924_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.EH("channel_type"))};
yhF.prototype.increment=function(D){this.JSC$9924_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",D)};
var zl4=function(){var D=_.EL();this.JSC$9927_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.EH("channel_type"))};
zl4.prototype.increment=function(D){this.JSC$9927_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",D)};
var Bxb=function(){var D=_.EL();this.JSC$9930_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Bxb.prototype.increment=function(){this.JSC$9930_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var DTQ=function(){var D=_.EL();this.JSC$9933_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.EH("channel_type"),_.EH("error_type"))};
DTQ.prototype.increment=function(D,t){this.JSC$9933_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",D,t)};
var tav=function(){var D=_.EL();this.JSC$9936_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
tav.prototype.increment=function(){this.JSC$9936_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var HzF=function(){var D=_.EL();this.JSC$9939_streamzService=D;D.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
HzF.prototype.increment=function(){this.JSC$9939_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var uJ4=function(){var D=_.EL();this.JSC$9945_streamzService=D;D.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
uJ4.prototype.increment=function(){this.JSC$9945_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var ayt=function(D){return D.getCount&&typeof D.getCount=="function"?D.getCount():_.d6(D)||typeof D==="string"?D.length:_.J$.getCount(D)},wri=function(D,t){if(typeof D.every=="function")return D.every(t,void 0);
if(_.d6(D)||typeof D==="string")return Array.prototype.every.call(D,t,void 0);for(var H=_.cZn(D),e=_.Er(D),V=e.length,b=0;b<V;b++)if(!t.call(void 0,e[b],H&&H[b],D))return!1;return!0},ZJH=function(D,t,H,e){var V=new _.eP(null);
D&&_.Kx(V,D);t&&_.No(V,t);H&&_.kY(V,H);e&&_.Ta(V,e);return V},sSF=function(){var D=_.di&&_.Nu(_.XeV,10)>=0,t;
if(t=_.bhV)t=_.Nu(_.Sqn,10)>=0;var H=_.cg&&_.Nu(_.XeV,85)>=0;return _.Ka||D||t||H},hFZ=function(D){var t=_.zgv(D);
return t&&sSF()?-D.scrollLeft:t&&_.xO(D,"overflowX")!="visible"?D.scrollWidth-D.clientWidth-D.scrollLeft:D.scrollLeft},GNF=function(D,t){t=Math.max(t,0);
_.zgv(D)?sSF()?D.scrollLeft=-t:D.scrollLeft=D.scrollWidth-t-D.clientWidth:D.scrollLeft=t},IkQ=0,DQg=!1;
eI.prototype.set=function(D){this.relativeTimeStart_=D};
eI.prototype.reset=function(){this.set(_.wU())};
eI.prototype.get=function(){return this.relativeTimeStart_};
var EBv=null,KbF=function(){EBv||(EBv=new eI)},Nqv=function(){EBv||(EBv=new eI)};
_.Zj(Nqv,KbF);_.q=HCQ.prototype;_.q.JSC$11360_buffer_="";_.q.set=function(D){this.JSC$11360_buffer_=""+D};
_.q.append=function(D,t,H){this.JSC$11360_buffer_+=String(D);if(t!=null)for(var e=1;e<arguments.length;e++)this.JSC$11360_buffer_+=arguments[e];return this};
_.q.clear=function(){this.JSC$11360_buffer_=""};
_.q.getLength=function(){return this.JSC$11360_buffer_.length};
_.q.toString=function(){return this.JSC$11360_buffer_};
var kNZ=!1,wHv=function(D){_.Hk.call(this,D.message||D.description||D.name);this.isMissing=D instanceof V3;this.isTimeout=D instanceof _.Y8&&D.errorCode=="net.timeout";this.isCanceled=D instanceof _.dg};
_.P(wHv,_.Hk);wHv.prototype.name="BiscottiError";var V3=function(){_.Hk.call(this,"Biscotti ID is missing from server")};
_.P(V3,_.Hk);V3.prototype.name="BiscottiMissingError";var bc=null,mXH=function(){try{var D=_.RD("yt.ads.biscotti.getId_");return D?D():v0O()}catch(t){return _.Aj(t)}},Tqt=function(D,t){return _.hV({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:D,command:t}})},c_t=function(D){return _.hV({type:"SET_GUIDE_IS_EXPANDED",
payload:D})},jSt=function(D){return _.hV({type:"SET_ONLINE_STATUS",
payload:D})},$Ae=function(D,t){return _.hV({type:"SET_TRANSCRIPTION_STATE",
payload:{high:D,low:t}})},iJv=function(D){return _.hV({type:"SET_OVERLAY_STATE",
payload:D})},r_Z=0,OJQ=function(D,t,H){var e=this;
this.priority=t;this.delay=H;this.jobId=0;this.completionCallback=_.fJ;this.wrappedJob=function(){D();e.completionCallback()};
this.id=++r_Z};
OJQ.prototype.enqueue=function(D){this.completionCallback=D;this.jobId=_.Jy.addJob(this.wrappedJob,this.priority,this.delay)};
var Oe=function(){_.jg.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.P(Oe,_.jg);Oe.prototype.addJob=function(D,t,H){D=new OJQ(D,t,H);this.taskIdToTask.set(D.id,D);this.isActive?UAF(this,D):this.suspendedTasks.add(D);return D.id};
var UAF=function(D,t){D.scheduledTasks.add(t);t.enqueue(function(){D.scheduledTasks.delete(t)})};
Oe.prototype.cancelJob=function(D){(D=this.taskIdToTask.get(D))&&(this.scheduledTasks.delete(D)?_.Jy.cancelJob(D.jobId):this.suspendedTasks.delete(D))};
Oe.prototype.pause=function(){var D=this;this.isActive=!1;this.scheduledTasks.forEach(function(t){_.Jy.cancelJob(t.jobId);D.suspendedTasks.add(t)});
this.scheduledTasks.clear()};
Oe.prototype.start=function(){var D=this;this.isActive=!0;this.suspendedTasks.forEach(function(t){UAF(D,t)});
this.suspendedTasks.clear()};
Oe.prototype.reset=function(){this.scheduledTasks.forEach(function(D){_.Jy.cancelJob(D.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Ue=function(D,t){this.JSC$13054_networkService_=D;this.pageRequestPromise=t};
Ue.prototype.fetchData=function(D){oB4(this,this.JSC$13054_networkService_.fetchData(D))};
Ue.prototype.postData=function(D,t){oB4(this,this.JSC$13054_networkService_.postData(D,t))};
Ue.prototype.requestDataForServiceEndpoint=function(D,t){oB4(this,this.JSC$13054_networkService_.requestDataForServiceEndpoint(D,t))};
var oB4=function(D,t){t.then(D.pageRequestPromise.onSuccess,D.pageRequestPromise.onFailure,D.pageRequestPromise)};
Ue.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var oN=function(D){this.buildNetworkRequest_=D;this.pendingRequests_=new Set};
oN.prototype.reset=function(){this.pendingRequests_.forEach(function(D){D.cancel()});
this.pendingRequests_.clear()};
oN.prototype.fetchData=function(D){var t=Pti(this);t.fetchData(D);return t.pageRequestPromise};
oN.prototype.postData=function(D,t){var H=Pti(this);H.postData(D,t);return H.pageRequestPromise};
oN.prototype.requestDataForServiceEndpoint=function(D,t){var H=Pti(this);H.requestDataForServiceEndpoint(D,t);return H.pageRequestPromise};
var Pti=function(D){var t=D.buildNetworkRequest_();D.pendingRequests_.add(t);var H=function(){D.pendingRequests_.delete(t)};
t.pageRequestPromise.then(H,H);return t},nBv=function(D){var t=new Oe;
this.JSC$13061_networkService_=D;this.JSC$13061_taskManager_=t;this.JSC$13061_networkManager_=new oN(this.networkRequestFactory_.bind(this))};
_.q=nBv.prototype;_.q.networkRequestFactory_=function(){return new Ue(this.JSC$13061_networkService_,new _.fp(this.JSC$13061_taskManager_))};
_.q.reset=function(){this.JSC$13061_taskManager_.reset();this.JSC$13061_networkManager_.reset()};
_.q.start=function(){this.JSC$13061_taskManager_.start()};
_.q.pause=function(){this.JSC$13061_taskManager_.pause()};
_.q.getTaskManager=function(){return this.JSC$13061_taskManager_};
_.q.getNetworkManager=function(){return this.JSC$13061_networkManager_};
var jfF=null,rVF=[],q9=0,aG=0,FV=null,CtZ=!1,wu=null,UQH=void 0,sS=function(D){this.token=D};
sS.getInstance=function(){var D;return _.Z(function(t){if(t.nextAddress==1)return t.yield(_.qO(),2);D=t.yieldResult;if(!D)return t.return();sS.instance||(sS.instance=new sS(D));return t.return(sS.instance)})};
var XHF=function(D){var t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(mQi(D.token),2);t=H.yieldResult;return H.return(t.clear("resource-manifest-assets"))})},ZR=function(D){this.token=D};
ZR.getInstance=function(){var D;return _.Z(function(t){if(t.nextAddress==1)return t.yield(_.qO(),2);D=t.yieldResult;if(!D)return t.return();ZR.instance||(ZR.instance=new ZR(D));return t.return(ZR.instance)})};
var MRe=function(D){var t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(mQi(D.token),2);t=H.yieldResult;return H.yield(t.clear("auth"),0)})},DFY=!1,mAi=function(D){_.Hk.call(this,D)};
_.P(mAi,_.XS6);var vPZ=function(){var D=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return D?parseInt(D[1],10):0},MBF=function(D){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+D)!=-1||document.currentScript.src.indexOf("&"+D)!=-1)},SBQ=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},uQF=function(D){D.length?Xrv(D.shift(),function(){uQF(D)}):dTY()},ItH=function(D){return"chrome-extension://"+D+"/cast_sender.js"},Xrv=function(D,
t,H){var e=document.createElement("script");
e.onerror=t;H&&(e.onload=H);_.qd(e,_.Xs(D));(document.head||document.documentElement).appendChild(e)},fyb=function(){var D=vPZ(),t=[];
if(D>1){var H=D-1;t.push("//www.gstatic.com/eureka/clank/"+D+"/cast_sender.js");t.push("//www.gstatic.com/eureka/clank/"+H+"/cast_sender.js")}return t},dTY=function(){var D=SBQ();
D&&D(!1,"No cast extension found")},RNH=function(){if(LbF){var D=2,t=SBQ(),H=function(){D--;
D==0&&t&&t(!0)};
window.__onGCastApiAvailable=H;Xrv("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",dTY,H)}},pc4=function(){RNH();
var D=fyb();D.push("//www.gstatic.com/eureka/clank/cast_sender.js");uQF(D)},xT4=function(){RNH();
var D=fyb();D.push.apply(D,_.A6(WV4.map(ItH)));D.push("//www.gstatic.com/eureka/clank/cast_sender.js");uQF(D)},LbF=MBF("loadCastFramework")||MBF("loadCastApplicationFramework"),WV4=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var A_4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(A_4,_.ww);var gB4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(gB4,_.ww);var J_Q=function(){var D=new gB4;return _.vg(D,1,3)};var Px=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Px,_.ww);var vgF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(vgF,_.ww);var YBH=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(YBH,_.ww);YBH.prototype.getToken=function(){return _.La(this,1)};
YBH.prototype.setToken=function(D){return _.Is(this,1,D)};
var YLZ=function(D){return _.QZ(D,3,_.OF,_.Zl())},l2Z=function(D){return _.QZ(D,6,_.OF,_.Zl())};var nj=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(nj,_.ww);nj.prototype.getToken=function(){return _.sq(this,YBH,2)};
nj.prototype.setToken=function(D){return _.oE(this,2,D)};
nj.prototype.getName=function(){return _.La(this,6)};
var lyQ=_.iM(nj);var vBQ=function(D,t,H){this.requestMessage=D;this.methodDescriptor=t;this.metadata=H};
vBQ.prototype.getMetadata=function(){return this.metadata};var prb=function(D,t){t=t===void 0?{}:t;this.responseMessage=D;this.metadata=t;this.status=null};
prb.prototype.getMetadata=function(){return this.metadata};
prb.prototype.getStatus=function(){return this.status};var Cj=function(D,t,H,e,V){this.name=D;this.methodType="unary";this.requestType=t;this.responseType=H;this.requestSerializeFn=e;this.responseDeserializeFn=V},dAF=function(D,t,H){H=H===void 0?{}:H;
return new vBQ(t,D,H)};
Cj.prototype.getName=function(){return this.name};var m3=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(m3,_.ww);m3.prototype.getHeader=function(){return _.sq(this,Px,1)};
m3.prototype.setHeader=function(D){return _.oE(this,1,D)};
m3.prototype.hasHeader=function(){return _.Ot(this,Px,1)};var xAF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(xAF,_.ww);var RFg=new Cj("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",m3,xAF,function(D){return D.serialize()},_.iM(xAF));var M6=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(M6,_.ww);M6.prototype.getHeader=function(){return _.sq(this,Px,1)};
M6.prototype.setHeader=function(D){return _.oE(this,1,D)};
M6.prototype.hasHeader=function(){return _.Ot(this,Px,1)};var uxv=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(uxv,_.ww);var Wbg=new Cj("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",M6,uxv,function(D){return D.serialize()},_.iM(uxv));var Sm=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Sm,_.ww);Sm.prototype.getHeader=function(){return _.sq(this,Px,1)};
Sm.prototype.setHeader=function(D){return _.oE(this,1,D)};
Sm.prototype.hasHeader=function(){return _.Ot(this,Px,1)};var IyF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(IyF,_.ww);IyF.prototype.getLink=function(){return _.sq(this,nj,1)};var QSY=new Cj("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Sm,IyF,function(D){return D.serialize()},_.iM(IyF));var Xf=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Xf,_.ww);Xf.prototype.getHeader=function(){return _.sq(this,Px,1)};
Xf.prototype.setHeader=function(D){return _.oE(this,1,D)};
Xf.prototype.hasHeader=function(){return _.Ot(this,Px,1)};var y_4=new Cj("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Xf,nj,function(D){return D.serialize()},lyQ);var Bq4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Bq4,_.ww);var zFF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(zFF,_.ww);zFF.prototype.getUrl=function(){return _.La(this,2)};
zFF.prototype.setUrl=function(D){return _.Is(this,2,D)};var Dkt=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Dkt,_.ww);var txZ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(txZ,_.ww);var HrZ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(HrZ,_.ww);var zdb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(zdb,_.ww);var BnQ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(BnQ,_.ww);var e0v=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(e0v,_.ww);var qsb=_.iM(e0v);var VxH=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(VxH,_.ww);var brg=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(brg,_.ww);_.q=brg.prototype;_.q.getHeader=function(){return _.sq(this,Px,1)};
_.q.setHeader=function(D){return _.oE(this,1,D)};
_.q.hasHeader=function(){return _.Ot(this,Px,1)};
_.q.getCompletionUrl=function(){return _.La(this,6)};
_.q.getDeviceId=function(){return _.La(this,11)};var q2v=new Cj("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",brg,e0v,function(D){return D.serialize()},qsb);var Ffv=new Set(["SAPISIDHASH","APISIDHASH"]);var aEF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(aEF,_.ww);aEF.prototype.getMessage=function(){return _.La(this,2)};
var wlg=_.iM(aEF);var fj=function(D,t){this.xhrNodeReadableStream_=D.nodeReadableStream;this.grpcResponseDeserializeFn_=t;this.JSC$19341_xhr_=D.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19341_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&Zri(this)},N8t=function(D,t){var H=new suv;
_.fz(D.JSC$19341_xhr_,"complete",function(){if(D.JSC$19341_xhr_.isSuccess()){var e=D.JSC$19341_xhr_.getResponseText();var V;if(V=t)V=D.JSC$19341_xhr_,V.JSC$9800_xhr_&&V.isComplete()?(V=V.JSC$9800_xhr_.getResponseHeader("Content-Type"),V=V===null?void 0:V):V=void 0,V=V==="text/plain";if(V){if(!atob)throw Error("ck");e=atob(e)}try{var b=D.grpcResponseDeserializeFn_(e)}catch(w){Lj(D,ogQ(new _.x1(13,"Error when deserializing response data; error: "+w+(", response: "+e)),H));return}e=_.Fhu(D.JSC$19341_xhr_.getStatus());
h0t(D,GTi(D));e==0?E1Z(D,b):Lj(D,ogQ(new _.x1(e,"Xhr succeeded but the status code is not 200"),H))}else{e=D.JSC$19341_xhr_.getResponseText();b=GTi(D);if(e){var a=Kfg(D,e);e=a.code;V=a.details;a=a.metadata}else e=2,V="Rpc failed due to xhr error. uri: "+String(D.JSC$19341_xhr_.JSC$9800_lastUri_)+", error code: "+D.JSC$19341_xhr_.JSC$9800_lastErrorCode_+", error: "+D.JSC$19341_xhr_.getLastError(),a=b;h0t(D,b);Lj(D,ogQ(new _.x1(e,V,a),H))}})},Zri=function(D){D.xhrNodeReadableStream_.on("data",function(t){if("1"in
t){var H=t["1"];
try{var e=D.grpcResponseDeserializeFn_(H)}catch(V){Lj(D,new _.x1(13,"Error when deserializing response data; error: "+V+(", response: "+H)))}e&&E1Z(D,e)}if("2"in t)for(t=Kfg(D,t["2"]),H=0;H<D.onStatusCallbacks_.length;H++)D.onStatusCallbacks_[H](t)});
D.xhrNodeReadableStream_.on("end",function(){h0t(D,GTi(D));for(var t=0;t<D.onEndCallbacks_.length;t++)D.onEndCallbacks_[t]()});
D.xhrNodeReadableStream_.on("error",function(){if(D.JSC$19341_onErrorCallbacks_.length!=0){var t=D.JSC$19341_xhr_.JSC$9800_lastErrorCode_;t!==0||D.JSC$19341_xhr_.isSuccess()||(t=6);var H=-1;switch(t){case 0:var e=2;break;case 7:e=10;break;case 8:e=4;break;case 6:H=D.JSC$19341_xhr_.getStatus();e=_.Fhu(H);break;default:e=14}h0t(D,GTi(D));t=_.y$V(t)+", error: "+D.JSC$19341_xhr_.getLastError();H!=-1&&(t+=", http status code: "+H);Lj(D,new _.x1(e,t))}})},GTi=function(D){var t={},H=EKv(D.JSC$19341_xhr_);
Object.keys(H).forEach(function(e){t[e]=H[e]});
return t},Kfg=function(D,t){var H=2,e={};
try{var V=wlg(t);H=_.sH(V,1);var b=V.getMessage();_.wV(V,FbH,3,_.Zl()).length&&(e["grpc-web-status-details-bin"]=t)}catch(a){D.JSC$19341_xhr_&&D.JSC$19341_xhr_.getStatus()===404?(H=5,b="Not Found: "+String(D.JSC$19341_xhr_.JSC$9800_lastUri_)):(H=14,b="Unable to parse RpcStatus: "+a)}return{code:H,details:b,metadata:e}};
fj.prototype.on=function(D,t){D=="data"?this.onDataCallbacks_.push(t):D=="metadata"?this.onMetadataCallbacks_.push(t):D=="status"?this.onStatusCallbacks_.push(t):D=="end"?this.onEndCallbacks_.push(t):D=="error"&&this.JSC$19341_onErrorCallbacks_.push(t);return this};
var AQ=function(D,t){t=D.indexOf(t);t>-1&&D.splice(t,1)};
fj.prototype.removeListener=function(D,t){D=="data"?AQ(this.onDataCallbacks_,t):D=="metadata"?AQ(this.onMetadataCallbacks_,t):D=="status"?AQ(this.onStatusCallbacks_,t):D=="end"?AQ(this.onEndCallbacks_,t):D=="error"&&AQ(this.JSC$19341_onErrorCallbacks_,t);return this};
fj.prototype.cancel=function(){this.JSC$19341_xhr_.abort()};
var E1Z=function(D,t){for(var H=0;H<D.onDataCallbacks_.length;H++)D.onDataCallbacks_[H](t)},h0t=function(D,t){for(var H=0;H<D.onMetadataCallbacks_.length;H++)D.onMetadataCallbacks_[H](t)},Lj=function(D,t){for(var H=0;H<D.JSC$19341_onErrorCallbacks_.length;H++)D.JSC$19341_onErrorCallbacks_[H](t)};
fj.prototype.cancel=fj.prototype.cancel;fj.prototype.removeListener=fj.prototype.removeListener;fj.prototype.on=fj.prototype.on;var suv=function(){var D=Error.call(this);this.message=D.message;"stack"in D&&(this.stack=D.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.P(suv,Error);var gR=function(D){this.JSC$19350_worker_=D.worker||null;this.JSC$19350_streamBinaryChunks_=D.streamBinaryChunks||!1;this.JSC$19350_credentialsMode_=void 0};
_.Zj(gR,_.wYk);gR.prototype.createInstance=function(){var D=new JQ(this.JSC$19350_worker_,this.JSC$19350_streamBinaryChunks_);this.JSC$19350_credentialsMode_&&D.setCredentialsMode(this.JSC$19350_credentialsMode_);return D};
gR.prototype.setCredentialsMode=function(D){this.JSC$19350_credentialsMode_=D};
var JQ=function(D,t){_.J2.call(this);this.JSC$19354_worker_=D;this.JSC$19354_streamBinaryChunks_=t;this.JSC$19354_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$19354_responseHeaders_=null;this.JSC$19354_method_="GET";this.JSC$19354_url_="";this.inProgress_=!1;this.JSC$19354_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Zj(JQ,_.J2);JQ.prototype.open=function(D,t){if(this.readyState!=0)throw this.abort(),Error("dk");this.JSC$19354_method_=D;this.JSC$19354_url_=t;this.readyState=1;YH(this)};
JQ.prototype.send=function(D){if(this.readyState!=1)throw this.abort(),Error("ek");if(this.abortController_.signal.aborted)throw this.abort(),Error("fk");this.inProgress_=!0;var t={headers:this.requestHeaders_,method:this.JSC$19354_method_,credentials:this.JSC$19354_credentialsMode_,cache:void 0,signal:this.abortController_.signal};D&&(t.body=D);(this.JSC$19354_worker_||_.VA).fetch(new Request(this.JSC$19354_url_,t)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
JQ.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,l0(this));this.readyState=0};
JQ.prototype.handleResponse_=function(D){if(this.inProgress_&&(this.fetchResponse_=D,this.JSC$19354_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19354_responseHeaders_=D.headers,this.readyState=2,YH(this)),this.inProgress_&&(this.readyState=3,YH(this),this.inProgress_)))if(this.responseType==="arraybuffer")D.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.VA.ReadableStream!==
"undefined"&&"body"in D){this.currentReader_=D.body.getReader();if(this.JSC$19354_streamBinaryChunks_){if(this.responseType)throw Error("gk");this.response=[]}else this.response=this.responseText="",this.JSC$19354_textDecoder_=new TextDecoder;kTH(this)}else D.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var kTH=function(D){D.currentReader_.read().then(D.handleDataFromStream_.bind(D)).catch(D.handleSendFailure_.bind(D))};
JQ.prototype.handleDataFromStream_=function(D){if(this.inProgress_){if(this.JSC$19354_streamBinaryChunks_&&D.value)this.response.push(D.value);else if(!this.JSC$19354_streamBinaryChunks_){var t=D.value?D.value:new Uint8Array(0);if(t=this.JSC$19354_textDecoder_.decode(t,{stream:!D.done}))this.response=this.responseText+=t}D.done?l0(this):YH(this);this.readyState==3&&kTH(this)}};
JQ.prototype.handleResponseText_=function(D){this.inProgress_&&(this.response=this.responseText=D,l0(this))};
JQ.prototype.handleResponseArrayBuffer_=function(D){this.inProgress_&&(this.response=D,l0(this))};
JQ.prototype.handleSendFailure_=function(){this.inProgress_&&l0(this)};
var l0=function(D){D.readyState=4;D.fetchResponse_=null;D.currentReader_=null;D.JSC$19354_textDecoder_=null;YH(D)};
JQ.prototype.setRequestHeader=function(D,t){this.requestHeaders_.append(D,t)};
JQ.prototype.getResponseHeader=function(D){return this.JSC$19354_responseHeaders_?this.JSC$19354_responseHeaders_.get(D.toLowerCase())||"":""};
JQ.prototype.getAllResponseHeaders=function(){if(!this.JSC$19354_responseHeaders_)return"";for(var D=[],t=this.JSC$19354_responseHeaders_.entries(),H=t.next();!H.done;)H=H.value,D.push(H[0]+": "+H[1]),H=t.next();return D.join("\r\n")};
JQ.prototype.setCredentialsMode=function(D){this.JSC$19354_credentialsMode_=D};
var YH=function(D){D.onreadystatechange&&D.onreadystatechange.call(D)};
Object.defineProperty(JQ.prototype,"withCredentials",{get:function(){return this.JSC$19354_credentialsMode_==="include"},
set:function(D){this.setCredentialsMode(D?"include":"same-origin")}});var T8F=function(D){var t="";_.J$.forEach(D,function(H,e){t+=e;t+=":";t+=H;t+="\r\n"});
return t},c2b=function(D,t,H){if(_.J$.isEmpty(H))return D;
H=T8F(H);if(typeof D==="string")return _.VK(D,_.Wn(t),H);_.yh(D,t,H);return D};var jui=function(){this.isInputValid_=!0;this.JSC$19360_streamPos_=0;this.leftoverInput_=""};
jui.prototype.isInputValid=function(){return this.isInputValid_};
jui.prototype.decode=function(D){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("hk`"+this.JSC$19360_streamPos_+"`stream already broken`"+D);this.leftoverInput_+=D;D=Math.floor(this.leftoverInput_.length/4);if(D==0)return null;try{var t=_.h3A(this.leftoverInput_.slice(0,D*4))}catch(H){throw t=this.leftoverInput_,D=H.message,this.isInputValid_=!1,Error("hk`"+this.JSC$19360_streamPos_+"`"+D+"`"+t);}this.JSC$19360_streamPos_+=D*4;this.leftoverInput_=this.leftoverInput_.slice(D*4);return t};var ES=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19363_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
ES.prototype.isInputValid=function(){return this.state_!=3};
var vx=function(D,t,H,e){D.state_=3;D.errorMessage_="The stream is broken @"+D.JSC$19363_streamPos_+"/"+H+". Error: "+e+". With input:\n"+t;throw Error(D.errorMessage_);};
ES.prototype.acceptsBinaryInput=function(){return!0};
ES.prototype.parse=function(D){function t(h){h&128&&vx(b,a,w,"invalid tag");(h&7)!=2&&vx(b,a,w,"invalid wire type");b.tag_=h>>>3;b.tag_!=1&&b.tag_!=2&&b.tag_!=15&&vx(b,a,w,"unexpected tag");b.state_=1;b.length_=0;b.countLengthBytes_=0}
function H(h){b.countLengthBytes_++;b.countLengthBytes_==5&&h&240&&vx(b,a,w,"message length too long");b.length_|=(h&127)<<(b.countLengthBytes_-1)*7;h&128||(b.state_=2,b.countMessageBytes_=0,typeof Uint8Array!=="undefined"?b.messageBuffer_=new Uint8Array(b.length_):b.messageBuffer_=Array(b.length_),b.length_==0&&V())}
function e(h){b.messageBuffer_[b.countMessageBytes_++]=h;b.countMessageBytes_==b.length_&&V()}
function V(){if(b.tag_<15){var h={};h[b.tag_]=b.messageBuffer_;b.result_.push(h)}b.state_=0}
for(var b=this,a=D instanceof Array?D:new Uint8Array(D),w=0;w<a.length;){switch(b.state_){case 3:vx(b,a,w,"stream already broken");break;case 0:t(a[w]);break;case 1:H(a[w]);break;case 2:e(a[w]);break;default:throw Error("ik`"+b.state_);}b.JSC$19363_streamPos_++;w++}D=b.result_;b.result_=[];return D.length>0?D:null};var ngF=function(){this.errorMessage_=null;this.JSC$19366_streamPos_=0;this.base64Decoder_=new jui;this.pbParser_=new ES};
ngF.prototype.isInputValid=function(){return this.errorMessage_===null};
var $kH=function(D,t,H){D.errorMessage_="The stream is broken @"+D.JSC$19366_streamPos_+". Error: "+H+". With input:\n"+t;throw Error(D.errorMessage_);};
ngF.prototype.acceptsBinaryInput=function(){return!1};
ngF.prototype.parse=function(D){this.errorMessage_!==null&&$kH(this,D,"stream already broken");var t=null;try{var H=this.base64Decoder_.decode(D);t=H===null?null:this.pbParser_.parse(H)}catch(e){$kH(this,D,e.message)}this.JSC$19366_streamPos_+=D.length;return t};var P_F=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19369_streamPos_=0;this.result_=[];this.statusParsed_=!1};
P_F.prototype.isInputValid=function(){return this.errorMessage_===null};
P_F.prototype.acceptsBinaryInput=function(){return!1};
P_F.prototype.parse=function(D){function t(h){b.state_=6;b.errorMessage_="The stream is broken @"+b.JSC$19369_streamPos_+"/"+a+". Error: "+h+". With input:\n";throw Error(b.errorMessage_);}
function H(){b.jsonStreamParser_=new _.UA({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function e(h){if(h)for(var K=0;K<h.length;K++){var N={};N[1]=h[K];b.result_.push(N)}}
function V(h){if(h){(b.statusParsed_||h.length>1)&&t("extra status: "+h);b.statusParsed_=!0;var K={};K[2]=h[0];b.result_.push(K)}}
for(var b=this,a=0;a<D.length;){var w;if(w=b.state_!==2){a:{for(;a<D.length;){if(!_.OA(D[a])){w=!0;break a}a++;b.JSC$19369_streamPos_++}w=!1}w=!w}if(w)return null;switch(b.state_){case 6:t("stream already broken");break;case 0:D[a]==="["?(b.state_=1,a++,b.JSC$19369_streamPos_++):t("unexpected input token");break;case 1:D[a]==="["?(b.state_=2,H()):D[a]===","||D.slice(a,a+5)=="null,"?b.state_=3:D[a]==="]"?(b.state_=5,a++,b.JSC$19369_streamPos_++):t("unexpected input token");break;case 2:w=b.jsonStreamParser_.parse(D.substring(a));
e(w);b.jsonStreamParser_.done()?(b.state_=3,w=b.jsonStreamParser_.JSC$11487_buffer_,b.JSC$19369_streamPos_+=D.length-a-w.length,D=w,a=0):(b.JSC$19369_streamPos_+=D.length-a,a=D.length);break;case 3:D[a]===","||D.slice(a,a+5)=="null,"?(b.state_=4,H(),b.jsonStreamParser_.parse("["),a+=D[a]===","?1:5,b.JSC$19369_streamPos_++):D[a]==="]"&&(b.state_=5,a++,b.JSC$19369_streamPos_++);break;case 4:w=b.jsonStreamParser_.parse(D.substring(a));V(w);b.jsonStreamParser_.done()?(b.state_=5,w=b.jsonStreamParser_.JSC$11487_buffer_,
b.JSC$19369_streamPos_+=D.length-a-w.length,D=w,a=0):(b.JSC$19369_streamPos_+=D.length-a,a=D.length);break;case 5:t("extra input after stream end")}}return b.result_.length>0?(D=b.result_,b.result_=[],D):null};var irb=function(D){this.JSC$19372_xhr_=D;this.JSC$19372_parser_=null;this.status_=this.JSC$19372_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19372_textDecoder_=null;this.JSC$19372_eventHandler_=new _.GA(this);this.JSC$19372_eventHandler_.listen(this.JSC$19372_xhr_,"readystatechange",this.JSC$19374_readyStateChangeHandler_)},pj=function(D,t){D.status_!=t&&(D.status_=t,D.statusHandler_&&D.statusHandler_())},dR=function(D){D.JSC$19372_eventHandler_.removeAll();
if(D.JSC$19372_xhr_){var t=D.JSC$19372_xhr_;D.JSC$19372_xhr_=null;t.abort();t.dispose()}};
irb.prototype.getStatus=function(){return this.status_};
irb.prototype.JSC$19374_readyStateChangeHandler_=function(D){D=D.target;try{if(D==this.JSC$19372_xhr_)a:{var t=_.Wl(this.JSC$19372_xhr_),H=this.JSC$19372_xhr_.JSC$9800_lastErrorCode_,e=this.JSC$19372_xhr_.getStatus(),V=this.JSC$19372_xhr_.getResponseText();D=[];if(this.JSC$19372_xhr_.getResponse()instanceof Array){var b=this.JSC$19372_xhr_.getResponse();b.length>0&&b[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,D=b)}if(!(t<3||t==3&&!V&&D.length==0))if(e=e==200||e==206,t==4&&(H==8?pj(this,
7):H==7?pj(this,8):e||pj(this,3)),this.JSC$19372_parser_||(this.JSC$19372_parser_=C_O(this.JSC$19372_xhr_),this.JSC$19372_parser_==null&&pj(this,5)),this.status_>2)dR(this);else{if(D.length>this.JSC$19372_pos_){var a=D.length;H=[];try{if(this.JSC$19372_parser_.acceptsBinaryInput())for(var w=0;w<a;w++){var h=this.JSC$19372_parser_.parse(Array.from(D[w]));h&&(H=H.concat(h))}else{h="";if(!this.JSC$19372_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("jk");this.JSC$19372_textDecoder_=new TextDecoder}for(w=
0;w<a;w++)h+=this.JSC$19372_textDecoder_.decode(D[w],{stream:t==4&&w==a-1});H=this.JSC$19372_parser_.parse(h)}D.splice(0,a);H&&this.dataHandler_(H)}catch(N){pj(this,5);dR(this);break a}}else if(V.length>this.JSC$19372_pos_){w=V.slice(this.JSC$19372_pos_);this.JSC$19372_pos_=V.length;try{var K=this.JSC$19372_parser_.parse(w);K!=null&&this.dataHandler_&&this.dataHandler_(K)}catch(N){pj(this,5);dR(this);break a}}t==4?(V.length!=0||this.hasStreamingResponseData_?pj(this,2):pj(this,4),dR(this)):pj(this,
1)}}}catch(N){pj(this,6),dR(this)}};var r2Y=function(D){D=this.xhrReader_=D;var t=(0,_.Mc)(this.onData_,this);D.dataHandler_=t;D=this.xhrReader_;t=(0,_.Mc)(this.onStatusChange_,this);D.statusHandler_=t;this.JSC$19376_callbackMap_={};this.callbackOnceMap_={}};
_.q=r2Y.prototype;_.q.on=function(D,t){var H=this.JSC$19376_callbackMap_[D];H||(H=[],this.JSC$19376_callbackMap_[D]=H);H.push(t);return this};
_.q.addListener=function(D,t){this.on(D,t);return this};
_.q.removeListener=function(D,t){var H=this.JSC$19376_callbackMap_[D];H&&_.vk(H,t);(D=this.callbackOnceMap_[D])&&_.vk(D,t);return this};
_.q.once=function(D,t){var H=this.callbackOnceMap_[D];H||(H=[],this.callbackOnceMap_[D]=H);H.push(t);return this};
_.q.onData_=function(D){var t=this.JSC$19376_callbackMap_.data;t&&OrY(D,t);(t=this.callbackOnceMap_.data)&&OrY(D,t);this.callbackOnceMap_.data=[]};
var OrY=function(D,t){for(var H={},e=0;e<D.length;H={message$jscomp$1005:void 0},e++)H.message$jscomp$1005=D[e],t.forEach(function(V){return function(b){try{b(V.message$jscomp$1005)}catch(a){}}}(H))};
r2Y.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:Uk4(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Uk4(this,"error");break;case 8:Uk4(this,"close");break;case 2:Uk4(this,"end")}};
var Uk4=function(D,t){var H=D.JSC$19376_callbackMap_[t];H&&H.forEach(function(e){try{e()}catch(V){}});
(H=D.callbackOnceMap_[t])&&H.forEach(function(e){e()});
D.callbackOnceMap_[t]=[]};var o1Z=function(){var D={format:"jspb"};D=D===void 0?{}:D;this.suppressCorsPreflight=D.suppressCorsPreflight||_.RD("suppressCorsPreflight",D)||!1;this.withCredentials=D.withCredentials||_.RD("withCredentials",D)||!1;this.streamInterceptors=D.streamInterceptors||[];this.unaryInterceptors=D.unaryInterceptors||[];this.workerScope=D.workerScope;this.chunkedServerStreaming=D.useFetchDownloadStreams||!1},CVt=function(D,t,H,e,V,b){b=b===void 0?{}:b;
var a=t.substring(0,t.length-V.name.length),w,h=(w=b)==null?void 0:w.signal;return PVF(function(K){return new Promise(function(N,k){if(h==null?0:h.aborted){var T=new _.x1(1,"Aborted");T.cause=h.reason;k(T)}else{var c={},U=n1t(D,K,a);U.on("error",function(S){return void k(S)});
U.on("metadata",function(S){c=S});
U.on("data",function(S){var L=c;L=L===void 0?{}:L;N(new prb(S,L))});
h&&h.addEventListener("abort",function(){U.cancel();var S=new _.x1(1,"Aborted");S.cause=h.reason;k(S)})}})},D.unaryInterceptors).call(D,dAF(V,H,e)).then(function(K){return K.responseMessage})},xH=function(D,t,H,e,V,b){b=b===void 0?{}:b;
return CVt(D,t,H,e,V,b)};
o1Z.prototype.serverStreaming=function(D,t,H,e){var V=this,b=D.substring(0,D.length-e.name.length);return mkF(function(a){var w=a.methodDescriptor,h=a.getMetadata(),K=Mxi(V,!1);h=S2H(V,h,K,b+w.getName());var N=XlF(K,w.responseDeserializeFn,!0);a=w.requestSerializeFn(a.requestMessage);K.send(h,"POST",a);return N},this.streamInterceptors).call(this,dAF(e,t,H))};
var n1t=function(D,t,H){var e=t.methodDescriptor,V=t.getMetadata(),b=Mxi(D,!0);D=S2H(D,V,b,H+e.getName());H=XlF(b,e.responseDeserializeFn,!1);N8t(H,V["X-Goog-Encode-Response-If-Executable"]==="base64");t=e.requestSerializeFn(t.requestMessage);b.send(D,"POST",t);return H},Mxi=function(D,t){t=D.chunkedServerStreaming&&!t;
return D.workerScope||t?new _.uV(new gR({worker:D.workerScope,streamBinaryChunks:t})):new _.uV},S2H=function(D,t,H,e){t["Content-Type"]="application/json+protobuf";
t["X-User-Agent"]="grpc-web-javascript/0.1";var V=t.Authorization;if(V&&Ffv.has(V.split(" ")[0])||D.withCredentials)H.JSC$9800_withCredentials_=!0;if(D.suppressCorsPreflight)e=c2b(e,"$httpHeaders",t);else for(D=_.F(Object.keys(t)),V=D.next();!V.done;V=D.next())V=V.value,H.headers.set(V,t[V]);return e},XlF=function(D,t,H){if(H){H=new irb(D);
var e=new r2Y(H)}return new fj({xhr:D,nodeReadableStream:e},t)},mkF=function(D,t){return t.reduce(function(H,e){return function(V){return e.intercept(V,H)}},D)},PVF=function(D,t){return t.reduce(function(H,e){return function(V){return e.intercept(V,H)}},D)};var fEi=function(D){this.client_=new o1Z;this.hostname_=D==void 0?D:D.replace(/\/+$/,"")};
_.q=fEi.prototype;_.q.JSC$19394_depositGoogleCredential=function(D,t,H){return xH(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",D,t||{},Wbg,H)};
_.q.deleteLink=function(D,t,H){return xH(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",D,t||{},RFg,H)};
_.q.JSC$19394_finishOAuth=function(D,t,H){return xH(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",D,t||{},QSY,H)};
_.q.getLink=function(D,t,H){return xH(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",D,t||{},y_4,H)};
_.q.startLinkingSession=function(D,t,H){return xH(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",D,t||{},q2v,H)};var LfY=[0,_.Hr,1,HJt,[0,_.qA,[0,_.Vs,-1]],[0,tB4],[0,_.sB,-1]];var A24=function(){this.storage=new Map},J2F=function(D,t,H,e,V){if(!D.storage.has(t))return null;
D=_.F(D.storage.get(t));for(t=D.next();!t.done;t=D.next())if(t=t.value,!V||t.linkName===V)if(H&&t.scopes&&g1O(t.scopes,H)||e&&t.capabilities&&g1O(t.capabilities,e))return t;return null},Y2i=function(D,t,H){if(!H)D.storage.delete(t);
else if(D.storage.has(t)){var e=D.storage.get(t).filter(function(V){return V.linkName!==H});
e.length>0?D.storage.set(t,e):D.storage.delete(t)}},g1O=function(D,t){t=_.F(t);
for(var H=t.next();!H.done;H=t.next())if(!D.has(H.value))return!1;return!0};var lEH=function(){var D=_.YC("LINK_GAL_DOMAIN");this.alsDomain1p=_.YC("LINK_GAL_DOMAIN");this.alsDomain3p=D;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},v1i=function(D,t){D.apiKey=t;
return D};
lEH.prototype.build=function(){var D={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("kk");D.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("lk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("mk");D.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(D.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)D.apiKey=
this.apiKey,D.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("nk");D.oauthToken=this.oauthToken;D.alsDomain=this.alsDomain3p}D.clientXd3=this.clientXd3;D.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(D.authUser=this.authUser);this.bucket!==void 0&&(D.bucket=this.bucket);this.completionUrl!==void 0&&(D.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(D.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(D.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(D.locale=this.locale);D.loggerType=this.loggerType;D.clientEnvironment=this.clientEnvironment;D.colorScheme=this.colorScheme;D.showCloseOption=this.showCloseOption;return D};var K4=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(K4,_.ww);var plH=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(plH,_.ww);var dke=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(dke,_.ww);var k_=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(k_,_.ww);var xke=function(D){return _.AM(D,1)};var R0H=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(R0H,_.ww);var AGF=_.iM(R0H),N9=[1,2,3,4,5];var SLZ=function(D){try{return AGF(D)}catch(t){return null}},uvg=function(){},X7i=function(D,t){switch(_.na(t,N9)){case 4:return(t=_.Yf(t,dke,4,N9))&&D.logStateTransition(_.AM(t,1)),!0;
case 5:return(t=_.Yf(t,plH,5,N9))&&D.logInternalEvent(_.AM(t,1)),!0}return!1},ggO=function(D){switch(D){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.xv(D)}};var mF4=function(D,t){var H=this;this.validator=D;this.messageListener=t;this.dismissCallback=function(){Wfi(H,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19423_receiveMessage=function(e){e.type==="message"&&(e=e.event_,e!==null&&(new URL(H.iframe.src)).origin===e.origin&&H.validator(e.data,e.origin)&&!H.messageListener(e.data)&&(H.JSC$19423_resolveCb!==void 0&&H.JSC$19423_resolveCb(e.data),IEg(H)))}},LPt=function(D,t,H){D.uiHandler!==void 0&&Wfi(D,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(e,V){D.JSC$19423_resolveCb=e;D.JSC$19423_rejectCb=V;D.iframe=document.createElement("iframe");_.zF(D.iframe,t);D.uiHandler=H.displayContent(D.iframe,D.dismissCallback);_.fz(window,"message",D.JSC$19423_receiveMessage,!1,D)})},Wfi=function(D,t){D.JSC$19423_rejectCb!==void 0&&D.JSC$19423_rejectCb(t);
IEg(D)},IEg=function(D){D.uiHandler!==void 0&&D.uiHandler.hideContent();
_.g8(window,"message",D.JSC$19423_receiveMessage,!1,D);D.JSC$19423_resolveCb=void 0;D.JSC$19423_rejectCb=void 0;D.uiHandler=void 0;D.iframe=void 0};var QuZ=function(D){if(D===2){var t;D=((t=window)==null?0:t.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return D},f2Z=function(D){D=QuZ(D);
switch(D){case 0:return"light";case 1:return"dark";default:_.xv(D)}};var Mog=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),y2H=function(D,t){this.JSC$19435_linkingSession=D;this.noticeConfig=t;this.displayInfoMap=new Map;var H=new Map;if(_.Ot(this.JSC$19435_linkingSession,Dkt,7))for(D=_.sq(this.JSC$19435_linkingSession,Dkt,7),D=_.wV(D,zFF,1,_.Zl()),D=_.F(D),t=D.next();!t.done;t=D.next())t=t.value,H.set(_.AM(t,1),_.rWD(_.sq(t,_.k2D,3)));if(H.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){t=this.noticeConfig.enabledDataUsageNoticeUis;D=t.has(0)?H.get(1):void 0;t=t.has(1)?H.get(2):void 0;H=D!==void 0&&t!==void 0?H.get(3):void 0;var e=this.noticeConfig.nestedOrigins;var V=new R0H;var b=new K4;V=_.PU(V,2,N9,b);b=new R0H;var a=new K4;b=_.PU(b,3,N9,a);a=[];D!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:D,lastEvent:V,nestedOrigins:e}]),a.push({trustedUrl:D,lastEvent:V,nestedOrigins:e}));t!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:t,lastEvent:b,nestedOrigins:e}]),a.push({trustedUrl:t,lastEvent:b,nestedOrigins:e}));H!==void 0?this.displayInfoMap.set(3,[{trustedUrl:H,lastEvent:b,nestedOrigins:e}]):this.displayInfoMap.set(3,a)}};var B8H=function(D){var t=new A24;this.galService=D;this.galCache=t};
B8H.prototype.getLink=function(D){var t=D.serviceId;var H=D.scopes;var e=D.capabilities;var V=D.linkName;var b=this,a;return _.Z(function(w){if(e!==void 0&&H!==void 0)throw Error("ok");a=J2F(b.galCache,t,H,e,V);return a!==null?w.return(a):w.return(b.galService.getLink({serviceId:t,sessionId:Math.floor(Math.random()*2147483648),scopes:H,capabilities:e,linkName:V}).then(function(h){h=p7Q(h);var K=b.galCache;K.storage.has(t)?K.storage.get(t).push(h):K.storage.set(t,[h]);return h}))})};
B8H.prototype.deleteLink=function(D,t,H){var e=this;return _.Z(function(V){Y2i(e.galCache,D,H);return V.return(e.galService.deleteLink({serviceId:D,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:t,linkName:H}).then(function(){return!0}))})};var DoQ=function(D,t){var H=this;this.validator=D;this.msgHandler=t;this.closedPopupTimeout=this.JSC$19457_rejectCb=this.JSC$19457_resolveCb=this.popup=null;this.JSC$19457_receiveMessage=function(e){if(e!==null&&(e=e.event_,e.source===H.popup)){var V=e.data;if(H.validator(V,e.origin)){var b;(b=H.msgHandler)!=null&&b.call(H,V)||(H.JSC$19457_resolveCb!==null&&H.JSC$19457_resolveCb(V),z0H(H))}}}};
DoQ.prototype.open=function(D,t){var H=this;this.popup!==null&&tet(this);return new Promise(function(e,V){H.JSC$19457_resolveCb=e;H.JSC$19457_rejectCb=V;H.popup=_.D7(window,D,"",t);_.fz(window,"message",H.JSC$19457_receiveMessage,!1,H);Hx4(H)})};
var tet=function(D,t){D.JSC$19457_rejectCb!==null&&D.JSC$19457_rejectCb(t);z0H(D)},z0H=function(D){D.closedPopupTimeout&&(D.closedPopupTimeout.cancel(),D.closedPopupTimeout=null);
D.popup&&D.popup.close();_.g8(window,"message",D.JSC$19457_receiveMessage,!1,D);D.popup=null;D.JSC$19457_resolveCb=null;D.JSC$19457_rejectCb=null},Hx4=function(D){D.closedPopupTimeout=_.R5V(100).then(function(){D.popup?D.popup.closed?efF(D):Hx4(D):tet(D,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},efF=function(D){D.closedPopupTimeout=_.R5V(100).then(function(){tet(D,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var VeF=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),bxi=function(D,t,H,e,V,b,a,w,h,K){var N=this;this.serviceId=D;this.sessionId=t;this.galService=H;this.oauthDetails=e;this.galLogger=V;this.interactionMode=b;this.redirectServiceUrl=a;this.consentLanguageKeys=w;this.dynamicUrlParameters=h;this.partnerConfigMinReadTimestamp=K;this.started=!1;this.JSC$19463_dataValidator=function(k,
T){var c=VeF.has(T);c||N.redirectServiceUrl===void 0||(c=N.redirectServiceUrl===T);return c?k.sentinel==="gdi":!1}};
bxi.prototype.complete=function(){var D=this,t;return _.Z(function(H){if(D.interactionMode!==1)return H.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));t=cL.getRedirectStateFromUri();return t===null?H.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):H.return(qrF(D,t))})};
bxi.prototype.start=function(){var D=this,t;return _.Z(function(H){if(D.started)return H.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.La(D.oauthDetails,1))return H.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(D.interactionMode===1)return cL.setLocation(_.La(D.oauthDetails,1)),H.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));D.started=!0;D.galLogger.logStateTransition(5);
t=cL.getPostMessagePopup(D.JSC$19463_dataValidator);return H.return(t.open(_.La(D.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(e){D.started=!1;var V=D.galLogger;if((e==null?void 0:e.error)!==void 0)throw V.logInternalEvent(59),Error("pk");if((e==null?void 0:e.redirect_state)===void 0)throw V.logInternalEvent(131),Error("qk");return qrF(D,e.redirect_state)}).catch(function(e){D.started=
!1;
return e.errorCode!==void 0?{statusCode:e.errorCode,statusMessage:e.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var qrF=function(D,t){return _.Z(function(H){return H.return(FWt(D.galService,{serviceId:D.serviceId,sessionId:D.sessionId,dynamicUrlParameters:D.dynamicUrlParameters,redirectState:t,consentLanguageKeys:D.consentLanguageKeys,partnerConfigMinReadTimestamp:D.partnerConfigMinReadTimestamp}).then(function(e){var V={statusCode:1,link:p7Q(e.getLink())};YTb(_.ok(e,3))!==void 0&&(V.callerState=YTb(_.ok(e,3)));D.galLogger.logInternalEvent(134);return V}))})},cL={getPostMessagePopup:function(D){return new DoQ(D)},
getRedirectStateFromUri:function(){var D=_.IK(cL.getLocation()).fragment_;return(new _.iu(D)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(D){_.TN$(window.location,_.dw(D))},
createOAuthFlow:function(D,t){return new bxi(D.serviceId,D.sessionId,D.galService,t,D.galLogger,D.interactionMode,D.redirectServiceUrl,D.consentLanguageKeys,D.dynamicUrlParameters,D.partnerConfigMinReadTimestamp)}};var aDb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(aDb,_.ww);var wyF=_.iM(aDb);var ZxZ=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),sIg=function(D,t,H,e,V,b,a,w,h){var K=this;this.serviceId=D;this.sessionId=t;this.galService=H;this.gsiWebFlowDetails=e;this.colorScheme=V;this.showCloseOption=b;this.galLogger=a;this.interactionMode=w;this.redirectServiceUrl=h;this.started=!1;this.JSC$19475_dataValidator=function(N,k){var T=ZxZ.has(k);T||K.redirectServiceUrl===
void 0||(T=K.redirectServiceUrl===k);return T?N.sentinel==="gal":!1};
this.logEventProcessor=function(N){return N.result?(N=SLZ(N.result))?X7i(K.galLogger,N):!1:!1}};
sIg.prototype.complete=function(){var D=this,t,H;return _.Z(function(e){if(D.interactionMode!==1)return e.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));t=jI.getRedirectStateFromUri();if(t===void 0)return D.galLogger.JSC$19415_logErrorEvent(131),e.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return H=hfv(D,t),e.return(Gab(D,H))}catch(V){return e.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
sIg.prototype.start=function(){var D=this,t;return _.Z(function(H){if(D.started)return H.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.La(D.gsiWebFlowDetails,1))return H.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(D.interactionMode===1)return jI.setLocation(EYO(D,_.La(D.gsiWebFlowDetails,1))),H.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
D.started=!0;t=jI.getPostMessagePopup(D.JSC$19475_dataValidator,D.logEventProcessor);return H.return(t.open(EYO(D,_.La(D.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(e){D.started=!1;if((e==null?void 0:e.result)===void 0)throw D.galLogger.JSC$19415_logErrorEvent(131),Error("qk");e=hfv(D,e.result);return Gab(D,e)}).catch(function(e){D.started=!1;
return e.errorCode!==void 0?{statusCode:e.errorCode,statusMessage:e.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var EYO=function(D,t){D=["result_channel",D.interactionMode===1?"2":"1","color_scheme",f2Z(D.colorScheme),"show_close_option",D.showCloseOption];return qBF(t,D)},Gab=function(D,t){if(t!==null&&_.Ot(t,k_,2)){var H,e=t==null?void 0:(H=_.sq(t,k_,2))==null?void 0:_.AM(H,2);
e&&D.galLogger.JSC$19415_logErrorEvent(ggO(e));return xke(_.sq(t,k_,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 D.galService.getLink({serviceId:D.serviceId,sessionId:D.sessionId,consistencyKey:_.La(t,1)}).then(function(V){V=p7Q(V);D.galLogger.logInternalEvent(134);return{statusCode:1,link:V}})},hfv=function(D,t){t=wyF(t);
if(!_.Ot(t,k_,2)&&_.La(t,1)==="")throw D.galLogger.JSC$19415_logErrorEvent(5),Error("rk");return t},jI={getPostMessagePopup:function(D,t){return new DoQ(D,t)},
getRedirectStateFromUri:function(){return _.Qh(_.IK(jI.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(D){_.TN$(window.location,_.dw(D))},
createStreamlinedFlow:function(D,t){return new sIg(D.serviceId,D.sessionId,D.galService,t,D.colorScheme,D.showCloseOption,D.galLogger,D.interactionMode,D.redirectServiceUrl)}};var VZF=function(){var D=_.YO8("GAL");this.storage=D?new _.CZ(D):null};
VZF.prototype.getSession=function(D){if(this.storage!==null)try{var t=this.storage.get("SAVED_SESSION");if(t===void 0)return null;if(t.serviceId===D)return t}catch(H){}return null};var RN=function(){};
_.P(RN,uvg);RN.prototype.logStateTransition=function(){};
RN.prototype.logInternalEvent=function(){};
RN.prototype.JSC$19415_logErrorEvent=function(){};var KWb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(KWb,_.ww);KWb.prototype.getCompletionUrl=function(){return _.La(this,15)};var u0=function(D,t,H,e,V,b){this.serviceId=D;this.environment=t;this.sessionId=H;this.colorSchemeSelected=e;this.colorThemeDisplayed=V;this.JSC$19488_transport=b;this.currentState=1};
_.P(u0,uvg);u0.prototype.logStateTransition=function(D){var t=NhO(this);t=_.Gr(t,3,this.currentState);t=_.Gr(t,1,D);this.currentState=D;D=GkH(1);this.dispatch(t,D)};
u0.prototype.logInternalEvent=function(D){D=GkH(D);this.dispatch(NhO(this),D)};
u0.prototype.JSC$19415_logErrorEvent=function(D){var t=NhO(this);t=_.Gr(t,1,10);D=GkH(D);this.dispatch(t,D)};
var NhO=function(D){var t=new KWb;t=_.Gr(t,1,D.currentState);t=_.M3(t,7,D.serviceId);var H,e;var V=((H=window)==null?0:(e=H.location)==null?0:e.href)?_.IK(window.location.href).JSC$10036_domain_:"NO_PACKAGE_NAME";H=_.M3(t,8,V);H=_.Gr(H,6,D.environment);H=_.M3(H,5,"100");H=_.Gr(H,11,D.colorSchemeSelected);return _.Gr(H,12,D.colorThemeDisplayed)};
u0.prototype.dispatch=function(D,t){t===void 0&&(t=new _.ou);var H=t;D=D.serialize();H=_.M3(H,8,D);_.P$(H,12,this.sessionId);this.JSC$19488_transport.dispatch(t)};var kaF=function(D,t){this.loggerType=D;this.sessionIndex=t!=null?t:0},ThF;
kaF.prototype.create=function(D,t,H,e,V){switch(this.loggerType){case 0:return new RN;case 1:return ThF||(ThF=(new _.Tx(555,this.sessionIndex.toString())).build()),new u0(D,t,H,e,V,ThF);default:_.xv(this.loggerType,"unknown logger type")}};var $_=[6,2,3,1],Zgg=new Map([[4,1],[1,6],[2,2],[3,3]]),uOQ={statusCode:7,statusMessage:"Failed to create flow object"},Hgt=function(D,t,H,e,V,b,a,w,h,K){this.serviceId=D;this.sessionId=t;this.config=H;this.galService=e;this.JSC$19495_linkingSession=V;this.googleScopes=b;this.callerState=a;this.consentLanguageKeys=w;this.dynamicUrlParameters=h;this.partnerConfigMinReadTimestamp=K;this.currentFlow=0;e=this.JSC$19495_linkingSession;V=new Set;_.Ot(e,BnQ,1)&&V.add(1);_.Ot(e,HrZ,2)&&_.Ot(e,zdb,6)&&V.add(2);
_.Ot(e,txZ,3)&&_.Ot(e,zdb,6)&&V.add(3);_.Ot(e,Bq4,4)&&V.add(6);this.supportedFlows=V;e=H.loggerType;V=H.clientEnvironment;a:{b=H.colorScheme;switch(b){case 0:b=1;break a;case 1:b=2;break a;case 2:b=3;break a;default:_.xv(b)}b=void 0}a:{a=H.colorScheme;a=QuZ(a);switch(a){case 0:a=1;break a;case 1:a=2;break a;default:_.xv(a)}a=void 0}this.galLogger=(new kaF(e,H.authUser)).create(D,V,t,b,a)},jIZ=function(D){return new Promise(function(t){var H,e,V,b,a,w,h,K,N,k;
return _.Z(function(T){switch(T.nextAddress){case 1:H=DyF(D.currentFlow,D.supportedFlows),e=!1,V=new y2H(D.JSC$19495_linkingSession,D.config.dataUsageNoticeConfig);case 2:if(H===void 0){T.jumpTo(4);break}_.$p(T,5);var c=V,U=H,S=void 0;e?U===1&&(S=c.displayInfoMap.get(2)):U===2||U===3?S=c.displayInfoMap.get(1):U===1&&(S=c.displayInfoMap.get(3));b=S?S:[];a=D.consentLanguageKeys;w=_.F(b);h=w.next();case 7:if(h.done)return D.currentFlow=H,T.yield(I2t(cRH(D,a)),11);K=h.value;return T.yield(JGY(K,D.config.dataUsageNoticeConfig.uiAdapter,
D.config.colorScheme,D.galLogger),10);case 10:N=T.yieldResult;if(N.statusCode!==1)return bgH(D.serviceId),D.currentFlow=0,t(TD({statusCode:N.statusCode,statusMessage:N.statusMessage},D.callerState)),T.return();N.consentLanguageKeys!==void 0&&(a=N.consentLanguageKeys);h=w.next();T.jumpTo(7);break;case 11:k=T.yieldResult;if(k.statusCode!==10)return k.statusCode!==6&&(bgH(D.serviceId),D.currentFlow=0),k.statusCode!==1&&D.callerState!==void 0&&(k.callerState=D.callerState),t(k),T.return();_.yM(T,6);break;
case 5:_.Pv(T);case 6:H=DyF(D.currentFlow,D.supportedFlows);e=!0;T.jumpTo(2);break;case 4:bgH(D.serviceId),D.currentFlow=0,t(TD({statusCode:12,statusMessage:"Linking failed"},D.callerState)),_.n2(T)}})})},a94=function(D,t,H){D.currentFlow=t;
return QhF(cRH(D,H)).then(function(e){return e.statusCode===10&&D.config.interactionMode===1&&DyF(D.currentFlow,D.supportedFlows)!==void 0?jIZ(D):e})},cRH=function(D,t){return{flowParams:{serviceId:D.serviceId,
sessionId:D.sessionId,galService:D.galService,galLogger:D.galLogger,interactionMode:D.config.interactionMode,redirectServiceUrl:D.config.redirectServiceUrl,colorScheme:D.config.colorScheme,consentLanguageKeys:t,dynamicUrlParameters:D.dynamicUrlParameters,showCloseOption:D.config.showCloseOption,partnerConfigMinReadTimestamp:D.partnerConfigMinReadTimestamp},currentFlow:D.currentFlow,config:D.config,session:D.JSC$19495_linkingSession,googleScopes:D.googleScopes,callerState:D.callerState}};var hlF=function(D,t){this.config=D;this.galService=t.getService();this.JSC$19508_galRepository=t.JSC$19526_galRepository};
hlF.prototype.getLink=function(D,t){return $oe(this,D,t)};
var $oe=function(D,t,H){return D.JSC$19508_galRepository.getLink({serviceId:t,scopes:void 0,capabilities:void 0,linkName:H}).then(function(e){return{statusCode:1,link:e}}).catch(function(e){return{statusCode:s5b(e.code),
statusMessage:e.message}})};
hlF.prototype.deleteLink=function(D,t){return this.JSC$19508_galRepository.deleteLink(D,this.config.accountLinkingEntryPoint,t).then(function(){return{statusCode:1}}).catch(function(H){return{statusCode:s5b(H.code),
statusMessage:H.message}})};
hlF.prototype.startLinkingSession=function(D){var t=D.serviceId;var H=D.sessionId;return elZ({serviceId:t,sessionId:H!==void 0?H:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:D.loginHint,callerState:D.callerState,consentLanguageKeys:D.consentLanguageKeys,linkName:D.linkName,dynamicUrlParameters:D.dynamicUrlParameters,partnerConfigMinReadTimestamp:D.partnerConfigMinReadTimestamp})};var Wx=function(D,t,H,e,V,b,a){this.apiKey=t;this.authUser=H;this.oauthToken=e;this.bucket=V;this.locale=b;this.galSdkEventHandler=a;if(e===void 0){if(t===void 0)throw Error("sk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new fEi(D)};
Wx.prototype.deleteLink=function(D){var t=D.serviceId;var H=D.sessionId;var e=D.accountLinkingEntryPoint;var V=D.linkName;var b=this,a;return _.Z(function(w){var h=(new m3).setHeader(b.getHeader(H));var K=ix4({serviceId:t,linkName:V});h=_.oE(h,2,K);a=_.vg(h,3,e);return w.return(b.makeRequest(b.galServiceClient.deleteLink,a,[1,3],[2,4]))})};
var FWt=function(D,t){var H=t.serviceId;var e=t.sessionId;var V=t.dynamicUrlParameters;var b=t.redirectState;var a=t.consentLanguageKeys;var w=t.partnerConfigMinReadTimestamp;var h;return _.Z(function(K){var N=(new Sm).setHeader(D.getHeader(e,V));N=_.Is(N,2,H);h=_.Is(N,4,b);a!==void 0&&_.Is(h,5,a);w!==void 0&&_.oE(h,6,w);return K.return(D.makeRequest(D.galServiceClient.JSC$19394_finishOAuth,h,[1,3],[2,4]))})};
Wx.prototype.getLink=function(D){var t=D.serviceId;var H=D.sessionId;var e=D.scopes;var V=D.capabilities;var b=D.consistencyKey;var a=D.linkName;var w=this,h;return _.Z(function(K){var N=(new Xf).setHeader(w.getHeader(H)),k=ix4({serviceId:t,scopes:e,capabilities:V,linkName:a});h=_.oE(N,2,k);b!==void 0&&(N=J_Q(),N=_.Is(N,2,b),_.oE(h,3,N));return K.return(w.makeRequest(w.galServiceClient.getLink,h,[1,3],[2,4]))})};
var yGv=function(D,t){var H=t.serviceId;var e=t.sessionId;var V=t.googleScopes;var b=t.consistencyKey;var a;return _.Z(function(w){var h=(new M6).setHeader(D.getHeader(e));h=_.Is(h,2,H);var K=Array.from(V.values());h=_.D1(h,3,K,_.jb);K=J_Q();K=_.Is(K,2,b);a=_.oE(h,4,K);return w.return(D.makeRequest(D.galServiceClient.JSC$19394_depositGoogleCredential,a,[1,3],[2,4]))})};
Wx.prototype.startLinkingSession=function(D){var t=D.serviceId;var H=D.sessionId;var e=D.scopes;var V=D.capabilities;var b=D.loginHint;var a=D.supportedFlows;var w=D.completionUrl;var h=D.usePingPong;var K=D.twoWayLinking;var N=D.accountLinkingEntryPoint;var k=D.callerState;var T=D.consentLanguageKeys;var c=D.googleScopes;var U=D.dataUsageNoticeConfig;var S=D.linkName;var L=D.dynamicUrlParameters;var J=D.partnerConfigMinReadTimestamp;var g=this,Q,u;return _.Z(function(R){if(V!==void 0&&e!==void 0)throw Error("ok");
var I=(new brg).setHeader(g.getHeader(H,L));Q=_.Is(I,2,t);S!==void 0&&_.Is(Q,14,S);if(V!==void 0){I=Q;var tT=Array.from(V.values());_.D1(I,5,tT,_.jb)}else e!==void 0&&(I=Q,tT=Array.from(e.values()),_.D1(I,3,tT,_.jb));w!==void 0&&_.Is(Q,6,w);h!==void 0&&_.gZ(Q,15,h);a!==void 0&&(I=Q,tT=Array.from(a.values()),_.D1(I,4,tT,_.tF));if(K!==void 0){if(K&&(!c||c.size===0))throw Error("tk");_.gZ(Q,8,K)}N!==void 0&&_.vg(Q,9,N);b!==void 0&&_.Is(Q,13,b);k!==void 0&&(I=Q,tT=(new TextEncoder).encode(k),_.tA(I,12,
_.Um(tT,!1),_.Om()));T!==void 0&&_.Is(Q,16,T);J!==void 0&&_.oE(Q,18,J);if(U!==void 0&&U.size>0||c!==void 0&&c.size>0)u=new VxH,c!==void 0&&c.size>0&&(I=u,tT=Array.from(c.values()),_.D1(I,1,tT,_.jb)),U!==void 0&&(U.has(0)&&_.vQ$(u,2,_.tF,1,_.Ht),U.has(1)&&_.vQ$(u,2,_.tF,2,_.Ht)),_.oE(Q,17,u);return R.return(g.makeRequest(g.galServiceClient.startLinkingSession,Q,[1],[2]))})};
Wx.prototype.getMetadata=function(){var D=this,t,H;return _.Z(function(e){t={};D.useFpa?(t["X-Goog-Api-Key"]=D.apiKey,t["X-Goog-AuthUser"]=D.authUser!==void 0?D.authUser.toString():"0",(H=_.sQR([]))&&(t.Authorization=H)):t.Authorization="Bearer "+D.oauthToken;D.locale&&(t["accept-language"]=D.locale);return e.return(t)})};
Wx.prototype.makeRequest=function(D,t,H,e){var V=this,b;return _.Z(function(a){if(a.nextAddress==1)return a.yield(V.getMetadata(),2);b=a.yieldResult;rRF(V,H);return a.return(D.bind(V.galServiceClient)(t,b).finally(function(){rRF(V,e)}))})};
var rRF=function(D,t){D.galSdkEventHandler!==void 0&&t.forEach(function(H){D.galSdkEventHandler.onEvent(H)})};
Wx.prototype.getHeader=function(D,t){var H=new Px;D=_.tA(H,2,_.eb(D),0);D=_.vg(D,5,3);t=_.D1(D,8,t,_.jb);this.bucket!==void 0&&_.Is(t,1,this.bucket);return t};
var ix4=function(D){var t=D.serviceId;var H=D.scopes;var e=D.capabilities;D=D.linkName;if(e!==void 0&&H!==void 0)throw Error("ok");var V=new A_4;t=_.Is(V,1,t);e!==void 0?(H=Array.from(e.values()),_.D1(t,5,H,_.jb)):H!==void 0&&(H=Array.from(H.values()),_.D1(t,3,H,_.jb));D!==void 0&&_.Is(t,6,D);return t};var G1i=function(D){this.galService=new Wx(D.alsDomain,D.apiKey,D.authUser,D.oauthToken,D.bucket,D.locale,D.galSdkEventHandler);this.JSC$19526_galRepository=new B8H(this.galService)};
G1i.prototype.getService=function(){return this.galService};var OxH=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(OxH,_.ww);var UoH=function(D){var t=new OxH;return _.Gr(t,1,D)};
OxH.prototype.setErrorMessage=function(D){return _.M3(this,2,D)};var oYg=[0,_.aS,_.eB,_.aS];var IN=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(IN,_.ww);var Puv=[0,[1,2,3],_.Fx,[0,yMi,DAO,-1],_.Fx,[0,zm4,-1],_.bt];var nYv=[0,_.Dy,1,_.aS,_.eB,-1,1,_.Xd3,_.yP,_.aS,-1,Puv];var CuF=[0,_.aS,[0,_.Xd3,_.yP,[0,_.eB]],_.t_,[0,_.aS,-1]];var Go=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Go,_.ww);var mov=[0,_.eB,_.aS,-2,_.Dy,_.aS,_.Dy,_.aS,-2,1,_.t_];var Meb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Meb,_.ww);var Sri=[0,_.Dy];var Xyb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Xyb,_.ww);var fDF=[0,_.aS,CuF,Sri,mov,nYv];var dIY=_.cU(Xyb,fDF);var LWQ=[0,LfY];var Qsi=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(Qsi,_.ww);var ARg=[0,[1,3],eFb,_.aS,eFb];var se=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(se,_.ww);var gYt=[0,_.aS];var JRO=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(JRO,_.ww);var hQ=function(D){return _.Yf(D,OxH,2,Ze)},Yr4=function(D){var t=new JRO;
return _.PU(t,2,Ze,D)},Ze=[1,
2];var lDY=[0,Ze,_.Fx,gYt,_.Fx,oYg,_.qA,ARg,1,_.aS,LWQ];var vYZ=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(vYZ,_.ww);var doH=function(D){var t=new vYZ;return _.PU(t,3,pye,D)},pye=[2,
3];var QU=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(QU,_.ww);var xoi=function(D,t){return _.oE(D,2,t)},Rfv=function(D,t){return _.oE(D,8,t)},uLQ=function(D,t){return _.oE(D,3,t)};var WW4=[0,_.aS,lDY,fDF,_.Nk,[0,[5,6,7],[0,_.aS,-2],[0,_.Dy,_.aS,_.eB],[0,Puv],[0,_.eB,_.aS,-1,_.Kr,_.aS],_.Fx,[0,[0,_.Dy],_.aS,-1],_.Fx,[0,[3,4],_.aS,-1,_.Fx,[0,[0,_.aS,_.t_]],_.Fx,[0,[0,[0,[1,2],_.Fx,[0],_.Fx,[0]]]]],_.Fx,[0,_.aS]],_.Nk,-1,[0,pye,_.aS,_.Fx,gYt,_.Fx,oYg,_.qA,ARg,[0,LfY]]];var IDF=_.cU(QU,WW4),QIi=_.jM(WW4);var yRO=function(){_.mg.call(this)};
_.P(yRO,_.mg);yRO.prototype.init=function(){};
new yRO;var BhF=_.zk(["data-"]),zfF=_.zk(["aria-"]),DM4=_.zk(["aria-"]),yU=function(D,t){this.isLatencyMeasurementExperiment=D===void 0?!1:D;this.enableDialogA11yFix=t===void 0?!1:t;this.JSC$19555_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.Ehn(_.VA.location.href)},R7b=function(D,t){D.onConsentPrimitiveShownCallback=t},tgF=function(D,t){return D.overriddenIframeLoadTimeout?D.overriddenIframeLoadTimeout:t!==void 0?t:5E3},Wc4=function(D){if(D.prewarmPromise!==void 0)return D.prewarmPromise;
D.prewarmPromise=new Promise(function(t,H){Bx(D,1);HvO(D,ewe(D,!0),VgH(D));D.iframe?D.prewarmChannel||bvZ(D,D.iframe,t):H(Error("uk"))});
D.prewarmPromise.finally(function(){D.prewarmPromise=void 0});
return D.prewarmPromise};
yU.prototype.showPrimitive=function(){var D=this;if(this.consentPromise!==void 0)return this.consentPromise;var t=Date.now();qyZ(this,t);this.consentPromise=new Promise(function(H,e){Bx(D,0,t);var V=D.isDarkTheme();D.isLatencyMeasurementExperiment||D.initialLoadingStrategy===1||D.initialLoadingStrategy===2||(D.loadingBar||(D.loadingBar=k1F(getComputedStyle(document.body).direction==="rtl",V),D.loadingBar.style.position="fixed",D.loadingBar.style.zIndex="15000"),document.body.appendChild(D.loadingBar));
HvO(D,ewe(D),VgH(D));D.iframe?D.channel||FLb(D,D.iframe,H,e):(ahQ(D),e(Error("uk")))});
this.consentPromise.finally(function(){D.consentPromise=void 0});
return this.consentPromise};
var FLb=function(D,t,H,e){var V,b;_.Z(function(a){switch(a.nextAddress){case 1:Bx(D,3);V=!1;setTimeout(function(){if(!V){ahQ(D);wNQ(D);ZvF(D);var w=UoH(7).setErrorMessage("Timeout connecting to iframe");H(Rfv(xoi(new QU,Yr4(w)),doH(w)))}},tgF(D,sJF(D)));
if(!D.prewarmPromise){a.jumpTo(2);break}_.$p(a,3);return a.yield(D.prewarmPromise,5);case 5:_.yM(a,2);break;case 3:_.Pv(a),b=UoH(4).setErrorMessage("Error while prewarming."),H(Rfv(xoi(new QU,Yr4(b)),doH(b)));case 2:D.prewarmChannel&&D.prewarmChannel.send(QIi(uLQ(new QU,D.consentPrimitiveRequest))),D.channel=_.EB({destination:D.JSC$19555_win,iframe:t,origin:hwF(D),channelName:"cpw",onEstablished:function(){V=!0;ahQ(D);D.isLatencyMeasurementExperiment||(D.JSC$19555_previousBodyOverflow=document.body.style.overflow,
D.JSC$19555_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,D.JSC$19555_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",D.enableDialogA11yFix&&window.addEventListener("blur",D.focusChangeListener));var w=D.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="";D.initialLoadingStrategy===2||D.initialLoadingStrategy===3?Bx(D,4):Bx(D,6);var h;(h=D.onConsentPrimitiveShownCallback)==null||h.call(D)},
onMessage:function(w){w=IDF(w.data);switch(_.AM(w,1)){case 1:wNQ(D);var h=Txe(_.sq(w,_.Al,7));h&&(D.initialLoadingStrategy!==2&&D.initialLoadingStrategy!==3||Bx(D,6,h),Bx(D,5,h));if(h=Txe(_.sq(w,_.Al,6)))Bx(D,7,h),Bx(D,8);var K,N;((K=_.sq(w,JRO,2))==null?void 0:_.na(K,Ze))!==0&&((N=_.sq(w,vYZ,8))==null?void 0:_.na(N,pye))!==0||e(Error("vk"));H(w);break;case 2:ZvF(D)}}}),_.n2(a)}})},bvZ=function(D,t,H){D.prewarmChannel=_.EB({destination:D.JSC$19555_win,
iframe:t,origin:hwF(D),channelName:"pwcp",onEstablished:function(){Bx(D,2);H()}})},hwF=function(D){var t=_.X7(D.src).toString();
return t&&t.indexOf("://")<0&&t.indexOf("//")!==0?D.origin:_.Ehn(t)},ewe=function(D,t){t=t===void 0?!1:t;
var H,e=new Map([["origin",D.origin],["hl",(H=GBH(D))!=null?H:null]]);t&&e.set("pw","1");t=_.F([["cpr",D.consentPrimitiveRequest.serialize()]]);for(H=t.next();!H.done;H=t.next()){var V=_.F(H.value);H=V.next().value;V=V.next().value;e.set(H,V)}D.isDarkTheme()&&e.set("color_scheme","dark");return _.N3(D.src,e)},ahQ=function(D){D.isLatencyMeasurementExperiment||D.loadingBar&&document.body.removeChild(D.loadingBar)};
yU.prototype.getSrc=function(){var D=_.tW(this.origin),t;var H=(t=_.sq(this.consentPrimitiveRequest,Meb,3))==null?void 0:_.sH(t,1);t="consent.google.com";H=H?"/u/"+encodeURIComponent(H.toString()):"";(D==null?0:D.endsWith("youtube.com"))?t="consent.youtube.com":(D=D==null?void 0:D.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(t="consent.google."+((D[1]?"co.":"")+encodeURIComponent(D[2])));return _.MN("https://"+t+"/signedin"+H+"/landing")};
var HvO=function(D,t,H){D.iframe||(D.iframe=document.createElement("iframe"),D.iframe.style.width="100%",D.iframe.style.height="100%",H!==112496729&&(D.iframe.style.colorScheme="auto"),D.isLatencyMeasurementExperiment&&(D.iframe.style.display="none"),_.zF(D.iframe,t),D.iframe.setAttribute("jsname","C5o1O"),EIF(D.iframe),document.body.appendChild(D.iframe))},EIF=function(D){D.style.bottom="-200vh";
D.style.position="fixed";D.style.right="-200vw";D.style.border="";D.style.left="";D.style.top="";D.style.zIndex="";D.style.pointerEvents="none";D.style.visibility="hidden"},wNQ=function(D){D.iframe&&(D.isLatencyMeasurementExperiment||(D.JSC$19555_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=D.JSC$19555_previousHtmlOverscroll),D.JSC$19555_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=D.JSC$19555_previousBodyOverscroll),D.JSC$19555_previousBodyOverflow!==
void 0&&(document.body.style.overflow=D.JSC$19555_previousBodyOverflow),D.enableDialogA11yFix&&KLt(D,!1)),EIF(D.iframe))};
yU.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(KLt(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var KLt=function(D,t){var H,e,V=(H=D.iframe)==null?void 0:(e=H.parentElement)==null?void 0:e.children;if(V)for(H=0;H<V.length;H++)e=V[H],e!==D.iframe&&(t?(e.hasAttribute("aria-hidden")&&_.ax([_.Zi(BhF)],e,"data-old-aria-hidden",e.getAttribute("aria-hidden")),_.ax([_.Zi(zfF)],e,"aria-hidden","true")):(e.removeAttribute("aria-hidden"),e.hasAttribute("data-old-aria-hidden")&&(_.ax([_.Zi(DM4)],e,"aria-hidden",e.getAttribute("data-old-aria-hidden")),e.removeAttribute("data-old-aria-hidden"))))},Bx=function(D,
t,H){var e;
(e=D.latencyCallback)==null||e.call(D,{latencyType:t,timestampEpochMillis:H!=null?H:Date.now()})};var NKY=function(D,t,H){yU.call(this,t,H===void 0?!1:H);this.consentPrimitiveRequest=D;D=GBH(this);_.s4e(D);this.src=this.getSrc();var e;this.initialLoadingStrategy=(e=_.sq(this.consentPrimitiveRequest,Go,4))==null?void 0:_.AM(e,4)},kBF;
_.P(NKY,yU);var xIt=function(D){var t=_.r("enable_primitive_dialog_aria_hide_siblings");D={request:D,enableDialogA11yFix:t===void 0?!1:t};kBF||(kBF=new NKY(D.request,D.isLatencyMeasurementExperiment||_.AM(D.request,1)===2,D.enableDialogA11yFix));return kBF},GBH=function(D){var t;
return(t=_.sq(D.consentPrimitiveRequest,Go,4))==null?void 0:_.La(t,1)},qyZ=function(D,t){if(!_.Ot(D.consentPrimitiveRequest,IN,5)){var H=D.consentPrimitiveRequest,e=new IN;
_.oE(H,5,e)}var V;if((V=_.sq(D.consentPrimitiveRequest,IN,5))==null||_.Lnu(_.rU(V,8))==null){var b;(b=_.sq(D.consentPrimitiveRequest,IN,5))!=null&&_.P$(b,8,t)}},VgH=function(D){var t;
return(t=_.sq(D.consentPrimitiveRequest,IN,5))==null?void 0:_.sH(t,1)};
NKY.prototype.isDarkTheme=function(){var D;return((D=_.sq(this.consentPrimitiveRequest,Go,4))==null?void 0:_.AM(D,2))===2};
var sJF=function(D){var t;return((t=_.sq(D.consentPrimitiveRequest,Go,4))==null?void 0:_.sH(t,5))||void 0},ZvF=function(D){D.channel=void 0;
D.prewarmChannel=void 0;D.iframe&&(document.body.contains(D.iframe)&&document.body.removeChild(D.iframe),D.iframe=void 0);kBF=void 0},ITe=function(D){return yU.prototype.showPrimitive.call(D).then(function(t){return _.sq(t,JRO,2)})};for(var zo={},TKF=(zo[64]="ma",zo[73]="ogb",zo[89]="cr",zo[21]="test",zo[0]="unkn",zo[137]="con",zo[155]="hl",zo[78]="yt",zo[171]="lp",zo[172]="ap",zo[177]="amo",zo[178]="pqe",zo[74]="gg",zo[1]="gm",zo[140]="am",zo[193]="sc",zo),cCi=_.F(Object.keys(TKF)),jJt=cCi.next();!jJt.done;jJt=cCi.next());var $MH=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P($MH,_.ww);var ivO=[0,[2,3,4],_.aS,BU4,eFb,_.bt];var rCi=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(rCi,_.ww);var OvZ=_.cU(rCi,[0,_.sB,_.eB,_.aS,_.eB,_.aS,ivO]);var UMF=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(UMF,_.ww);UMF.prototype.getCommand=function(){return _.AM(this,1)};
var oIY=function(){var D=new UMF;return _.vg(D,1,0)};var P5Y=_.jM([0,_.sB,_.eB,[0,_.aS,_.eB,-1]]);var nIb=new _.Sx("s"),C54=new _.Sx("t"),mMF=new _.Sx("u"),Mgg=new _.Sx("v"),Sy4=function(D,t,H){_.Xv.call(this,nIb);this.mediaKey=D;this.photoUrl=t;this.photoSource=H};
_.P(Sy4,_.Xv);var XNF=function(){_.Xv.call(this,C54)};
_.P(XNF,_.Xv);var fht=function(D){D=D===void 0?!1:D;_.Xv.call(this,mMF);this.isError=D};
_.P(fht,_.Xv);var LLQ=function(){_.Xv.call(this,Mgg)};
_.P(LLQ,_.Xv);var ACb=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,lh4=function(D){if(typeof D=="string"){if(D.charAt(0)==".")return gIQ(D.substr(1));if(D.charAt(0)=="["){var t=ACb.exec(D);D=D.indexOf("=")==-1?void 0:t[3];return JCF(t[1],D)}return YyH(D)}return D},gIQ=function(D){return function(t){return t.getAttribute&&_.bu(t,D)}},JCF=function(D,t){return function(H){return t!==void 0?H.getAttribute&&H.getAttribute(D)==t:H.hasAttribute&&H.hasAttribute(D)}},YyH=function(D){D=D.toUpperCase();
return function(t){return(t=t.tagName)&&t.toUpperCase()==D}},vIH=function(){return!0};var D0=function(D,t){this.JSC$19583_key_=D;this.JSC$19583_value_=t},tv=function(D){throw Error("wk`"+D.JSC$19583_key_);
},pNe=function(D,t){return new TypeError("xk`"+t+"`"+D.JSC$19583_key_+"`"+D.JSC$19583_value_+"`"+typeof D.JSC$19583_value_)};
D0.prototype.string=function(D){return arguments.length==0?dMe(this):xMb(this,D)};
var xMb=function(D,t){var H;return(H=RwH(D))!=null?H:t},dMe=function(D){var t=RwH(D);
t===null&&tv(D);return t},RwH=function(D){var t=D.JSC$19583_value_;
if(t==null)return null;if(typeof t==="string")return t;throw pNe(D,"string");};
D0.prototype.bool=function(D){if(arguments.length==0){var t=this.optionalBool();t===null&&tv(this)}else{var H;t=(H=this.optionalBool())!=null?H:D}return t};
D0.prototype.optionalBool=function(){var D=this.JSC$19583_value_;if(D==null)return null;if(typeof D==="boolean")return D;if(typeof D==="string"){D=D.toLowerCase();if(D==="true"||D==="1")return!0;if(D==="false"||D==="0")return!1}throw pNe(this,"boolean");};
D0.prototype.number=function(D){if(arguments.length==0){var t=ubF(this);t===null&&tv(this)}else t=WL4(this,D);return t};
var WL4=function(D,t){var H;return(H=ubF(D))!=null?H:t},ubF=function(D){var t=D.JSC$19583_value_;
if(t==null)return null;if(typeof t==="number")return t;if(typeof t==="string"){var H=Number(t);if(!isNaN(H)&&(H!==0||t.trim().length!==0))return H}throw pNe(D,"number");};
D0.prototype.toString=function(){return dMe(this)};
D0.prototype.enum=function(D,t){var H=!0,e=void 0,V;for(V in D){var b=D[V];H&&(H=!1,e=typeof b==="number"?WL4(this,t):xMb(this,t));if(b==e)return e}JSON.stringify(D);return e};
D0.prototype.array=function(D){if(arguments.length==0){var t=Ihi(this);t===null&&tv(this);return t}t=Ihi(this);return t==null?D:t};
var Ihi=function(D){var t=D.JSC$19583_value_;if(t==null)return null;Array.isArray(t)||(typeof t!=="string"?t=[t]:(t=t.trim(),t=t==""?[]:t.split(",").map(function(H){return H.trim()})));
return QJF(D,t)},QJF=function(D,t){var H=D.JSC$19583_key_+"[";
return Array.from(t,function(e,V){return new D0(H+V+"]",e)})};
D0.prototype.object=function(D){var t=this.JSC$19583_value_;if(t==null)return D===void 0&&tv(this),D;if(typeof t==="object"&&t.constructor===Object){D={};var H=this.JSC$19583_key_+".",e;for(e in t)D[e]=new D0(H+e,t[e]);return D}throw pNe(this,"object");};var Hj=function(D){this.list_=yCF(D)},yCF=function(D){if(D instanceof Hj)D=D.list_;
else if(D[0]instanceof Hj){for(var t=new Set,H=0;H<D.length;H++)for(var e=_.F(D[H].list_),V=e.next();!V.done;V=e.next())t.add(V.value);D=t}return[].concat(_.A6(D))};
_.q=Hj.prototype;_.q.each=function(D,t,H){((H===void 0?0:H)?L$Q:_.ID)(this.list_,D,t);return this};
_.q.size=function(){return this.list_.length};
_.q.isEmpty=function(){return this.list_.length===0};
_.q.get=function(D){return this.list_[D]||null};
_.q.el=function(){return this.list_[0]||null};
_.q.map=function(D,t){return _.Yz(this.list_,D,t)};
_.q.equals=function(D){return this===D||_.QA(this.list_,D.list_)};
_.q.first=function(){return this.list_.length==0?null:new eJ(this.list_[0])};
_.q.last=function(){return this.list_.length==0?null:new eJ(this.list_[this.list_.length-1])};
_.q.find=function(D){var t=[];this.each(function(H){H=H.querySelectorAll(String(D));for(var e=0;e<H.length;e++)t.push(H[e])});
return new Hj(t)};
_.q.parent=function(){var D=[];this.each(function(t){(t=t.parentElement||null)&&!_.l8(D,t)&&D.push(t)});
return new Hj(D)};
_.q.children=function(){var D=[];this.each(function(t){t=_.IS(t);for(var H=0;H<t.length;H++)D.push(t[H])});
return new Hj(D)};
_.q.filter=function(D){D=_.hM(this.list_,lh4(D));return new Hj(D)};
_.q.closest=function(D){var t=[],H=lh4(D),e=function(V){return _.H$(V)&&H(V)};
this.each(function(V){(V=_.xz(V,e,!0))&&!_.l8(t,V)&&t.push(V)});
return new Hj(t)};
_.q.next=function(D){return BKv(this,_.Mbf,D)};
_.q.prev=function(D){return BKv(this,VBZ,D)};
var BKv=function(D,t,H){var e=[];var V=H?lh4(H):vIH;D.each(function(b){(b=t(b))&&V(b)&&e.push(b)});
return new Hj(e)};
Hj.prototype.setClass=function(D){return this.each(function(t){_.Vr(t,D)})};
var zwg=function(D,t){return D.each(function(H){_.qX(H,t)})},DLH=function(D,t){return D.each(function(H){_.VL(H,t)})};
Hj.prototype.toggleClass=function(D,t){return t===!0?zwg(this,D):t===!1?DLH(this,D):this.each(function(H){_.bu(H,D)?_.VL(H,D):_.qX(H,D)})};
Hj.prototype.setText=function(D){return this.each(function(t){_.Qs(t,D)})};
var tYF=function(D){D.each(function(t){t.removeAttribute("aria-hidden")})};
Hj.prototype.getStyle=function(D){if(this.list_.length>0){var t=this.list_[0],H=t.style[_.oz(D)];return typeof H!=="undefined"?H:t.style[_.xHn(t,D)]||""}};
Hj.prototype.getData=function(D){if(this.list_.length===0)return new D0(D,null);var t=lkQ(this.list_[0],D);return new D0(D,t)};
Hj.prototype.focus=function(D){try{D?this.el().focus(D):this.el().focus()}catch(t){}return this};
Hj.prototype.click=function(){var D=_.pW(this.el());if(D.createEvent){var t=D.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,D.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(t)}else D=D.createEventObject(),D.clientX=0,D.clientY=0,D.screenX=0,D.screenY=0,D.altKey=!1,D.ctrlKey=!1,D.shiftKey=!1,D.button=0,this.el().fireEvent("onclick",D)};
var V8=function(D,t,H,e){function V(w,h,K){var N=h;h&&h.parentNode&&(N=h.cloneNode(!0));w(N,K)}
e=e===void 0?!1:e;if(D.list_.length==1){var b=D.list_[0],a=function(w){return t(w,b)};
H instanceof Hj?H.each(a,void 0,e):Array.isArray(H)?(e?L$Q:_.ID)(H,a):a(H);return D}return D.each(function(w){H instanceof Hj?H.each(function(h){V(t,h,w)}):Array.isArray(H)?_.ID(H,function(h){V(t,h,w)}):V(t,H,w)})};
_.q=Hj.prototype;_.q.append=function(D){return V8(this,function(t,H){t&&H.appendChild(t)},D)};
_.q.appendTo=function(D){(new Hj([D])).append(this);return this};
_.q.remove=function(){return V8(this,function(D,t){_.UH(t)},null)};
_.q.empty=function(){return V8(this,function(D,t){_.RS(t)},null)};
_.q.after=function(D,t){return V8(this,function(H,e){H&&_.Wr(H,e)},D,!(t===void 0||t))};
_.q.before=function(D){return V8(this,function(t,H){t&&_.ut(t,H)},D)};
_.q.replaceWith=function(D){return V8(this,function(t,H){t&&_.nQm(t,H)},D)};
_.q.toggle=function(D){return this.each(function(t){_.B1(t,D)})};
_.q.show=function(){return this.toggle(!0)};
_.q.hide=function(){return this.toggle(!1)};
_.q.trigger=function(D,t,H,e){return HUF(this,D,t,H,e)};
var HUF=function(D,t,H,e,V){return D.each(function(b){_.MED(_.pW(b)).triggerWizEventInternal(b,t,H,e,V)})},eJ=function(D,t){D instanceof Hj&&(t=D.list_,D=null);
this.list_=yCF(D!=null?[D]:t)};
_.Zj(eJ,Hj);_.q=eJ.prototype;_.q.children=function(){return new Hj(Array.prototype.slice.call(_.IS(this.list_[0])))};
_.q.each=function(D,t){D.call(t,this.list_[0],0);return this};
_.q.size=function(){return 1};
_.q.el=function(){return this.list_[0]};
_.q.first=function(){return this};var bL=function(D,t){t=t===void 0?window:t;this.hostId=D;this.JSC$19594_win=t;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$19594_previousHtmlOverscroll=this.JSC$19594_previousBodyOverscroll=this.JSC$19594_previousBodyOverflow="";this.eventTarget=new _.J2;this.JSC$19594_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
bUb=function(D){var t=ejF(ejF(ejF(new VYY(78),"po"),"hppp"),"hhc");
t.authUser=Number(_.YC("SESSION_INDEX","0"));t.colorScheme=D;return t};
bL.prototype.getOrigin=function(){return this.origin?this.origin:_.kY(_.No(_.Kx(new _.eP,this.JSC$19594_win.location.protocol),this.JSC$19594_win.location.hostname),this.JSC$19594_win.location.port).toString()};
bL.prototype.getTargetOrigin=function(){return _.kY(_.No(_.Kx(new _.eP,this.scheme),this.domain),this.port)};
bL.prototype.preloadIframe=function(D){var t=this;if(this.iframeLoadPromise===void 0){var H=document.createElement("iframe");this.iframe=H;UyH(H,D);this.iframeLoadPromise=new Promise(function(e,V){var b=!1,a=function(w){w.stopPropagation();H.removeEventListener("error",a);H.removeEventListener("securitypolicyviolation",a);V(Error("yk",{cause:w}))};
H.addEventListener("error",a);H.addEventListener("securitypolicyviolation",a);setTimeout(function(){b||V(Error("zk"))},3E4);
qiY(t,H,function(){b=!0;H.removeEventListener("error",a);H.removeEventListener("securitypolicyviolation",a);e()})});
FKv(this);D=this.getTargetOrigin().toString();H.setAttribute("allow","camera "+D+"; display-capture "+D);this.parentElement.appendChild(H)}return this.iframeLoadPromise};
var ZU4=function(D,t){var H,e;return _.Z(function(V){if(V.nextAddress==1)return H=k1F(getComputedStyle(D.parentElement).direction==="rtl"),D.parentElement.appendChild(H),document.activeElement instanceof HTMLElement&&(D.elementToFocusAfterClose=document.activeElement),_.$p(V,2),V.yield(D.preloadIframe(t),4);if(V.nextAddress!=2){D.parentElement.removeChild(H);D.JSC$19594_previousBodyOverflow=D.parentElement.style.overflow;D.JSC$19594_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
D.JSC$19594_previousBodyOverscroll=D.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";D.parentElement.style.overscrollBehavior="contain";D.parentElement.style.overflow="hidden";var b=D.iframe;b.style.bottom="0";b.style.border="none";b.style.height="100%";b.style.left="0";b.style.position=D.iframePosition;b.style.right="0";b.style.top="0";b.style.width="100%";b.style.zIndex="2202";b.setAttribute("aria-hidden","false");b.setAttribute("aria-modal","true");
D.opened=!0;aXv(D);return _.yM(V,0)}e=_.Pv(V);D.parentElement.removeChild(H);ige(D.isDarkTheme());wbi(D,!1);throw Error("Ak",{cause:e});})},wbi=function(D,t){t=t===void 0?!0:t;
D.iframe!==void 0&&(scZ(D),document.documentElement.style.overscrollBehavior=D.JSC$19594_previousHtmlOverscroll,D.parentElement.style.overscrollBehavior=D.JSC$19594_previousBodyOverscroll,D.parentElement.style.overflow=D.JSC$19594_previousBodyOverflow,D.elementToFocusAfterClose!==void 0&&(D.elementToFocusAfterClose.focus(),D.elementToFocusAfterClose=void 0),t?FKv(D):(D.parentElement.removeChild(D.iframe),D.iframe=void 0,D.iframeLoadPromise=void 0,D.mainChannel=void 0),D.opened=!1)},scZ=function(D){D.backgroundElementsAriaHiddenIsNull&&
(tYF(D.backgroundElementsAriaHiddenIsNull),D.backgroundElementsAriaHiddenIsNull=void 0);
D.backgroundElementsAriaHiddenIsFalse&&(D.backgroundElementsAriaHiddenIsFalse.each(function(t){t.setAttribute("aria-hidden","false")}),D.backgroundElementsAriaHiddenIsFalse=void 0);
D.backgroundElementsWithoutInert&&(D.backgroundElementsWithoutInert.each(function(t){t.removeAttribute("inert")}),D.backgroundElementsWithoutInert=void 0)},aXv=function(D){D.backgroundElementsAriaHiddenIsNull=(new eJ(D.iframe.parentElement)).children().filter(function(t){return t.getAttribute("aria-hidden")===null&&t!==D.iframe});
D.backgroundElementsAriaHiddenIsNull.each(function(t){t.setAttribute("aria-hidden","true")});
D.backgroundElementsAriaHiddenIsFalse=(new eJ(D.iframe.parentElement)).children().filter(function(t){return t.getAttribute("aria-hidden")==="false"&&t!==D.iframe});
D.backgroundElementsAriaHiddenIsFalse.each(function(t){t.setAttribute("aria-hidden","true")});
D.backgroundElementsWithoutInert=(new eJ(D.iframe.parentElement)).children().filter(function(t){return!t.hasAttribute("inert")&&t!==D.iframe});
D.backgroundElementsWithoutInert.each(function(t){t.setAttribute("inert","true")})},FKv=function(D){D=D.iframe;
D.style.bottom="-1000px";D.style.position="fixed";D.style.right="-1000px";D.style.border="";D.style.height="";D.style.left="";D.style.top="";D.style.width="";D.style.zIndex="";D.setAttribute("aria-hidden","true");D.setAttribute("aria-modal","false")};
bL.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var VYY=function(D,t){bL.call(this,TKF[D],t);this.options=[];this.style=""};
_.P(VYY,bL);var hje=function(D){D.style="youtube";return D},Gdt=function(D,t){D.eventTarget.listen(mMF,t);
return D},EZZ=function(D,t){D.eventTarget.listen(nIb,t);
return D},ejF=function(D,t){D.options.push(t);
return D},KKe=function(D){var t=[D.getOrigin()];
D.ancestorOrigins&&t.push.apply(t,_.A6(D.ancestorOrigins));var H=new _.eP(D.JSC$19594_win.location.href),e=D.startUrl?D.startUrl:D.options.includes("po")?"profile-picture/art":"profile-picture";t=Ee(_.Ta(D.getTargetOrigin(),e),"origin",t);D.startUrl&&_.yh(t,"startPath",D.startUrl);D.authUser>0&&_.yh(t,"authuser",D.authUser);D.pageId!==void 0&&_.yh(t,"pageId",D.pageId);_.yh(t,"hostId",D.hostId);D.jsMode!==void 0&&_.yh(t,"jsmode",D.jsMode);D.rectangleRatio!==void 0&&_.yh(t,"rectangleRatio",D.rectangleRatio);
D.options.length>0&&_.yh(t,"opts",D.options.join(","));try{for(var V=_.F(["utm_source","utm_medium","utm_campaign","utm_content"]),b=V.next();!b.done;b=V.next()){var a=b.value;_.Qh(H,a)&&_.yh(t,a,_.Qh(H,a))}var w,h=(w=D.hl)!=null?w:_.Qh(H,"hl");h!==void 0&&_.yh(t,"hl",h)}catch(K){if(!(K instanceof URIError))throw K;}D.colorScheme&&_.yh(t,"theme",D.colorScheme);D.style&&_.yh(t,"style",D.style);return t},NIZ=function(D,t){D.mainChannel=_.EB({destination:D.JSC$19594_win,
iframe:t,origin:D.getTargetOrigin().toString(),channelName:"ow",onMessage:function(H){H=OvZ(H.data);if(t===D.iframe)switch(_.AM(H,1)){case 1:D.eventTarget.dispatchEvent(new fht);wbi(D);break;case 2:D.eventTarget.dispatchEvent(new Sy4(_.La(H,4),_.La(H,2),_.AM(H,5),_.sq(H,$MH,6)));break;case 0:var e;D.eventTarget.dispatchEvent(new XNF(_.La(H,2),(e=_.AM(H,3))!=null?e:0));break;case 3:D.eventTarget.dispatchEvent(new fht(!0));wbi(D,!1);break;case 4:D.eventTarget.dispatchEvent(new LLQ)}}})},qiY=function(D,
t,H){_.EB({destination:D.JSC$19594_win,
iframe:t,origin:_.kY(_.No(_.Kx(new _.eP,D.scheme),D.domain),D.port).toString(),channelName:"owi",onMessage:function(e){t===D.iframe&&(H!==void 0&&H(),NIZ(D,t),D.opened&&D.mainChannel.send(P5Y(oIY())),e.reply(),qiY(D,t))}})};
VYY.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?bL.prototype.preloadIframe.call(this,KKe(this).toString()):this.iframeLoadPromise};
VYY.prototype.openPicker=function(D){var t=this;return _.Z(function(H){if(H.nextAddress==1)return t.startUrl=D?D:t.options.includes("po")?"profile-picture/art":"profile-picture",H.yield(ZU4(t,KKe(t).toString()),2);if(t.mainChannel){var e=t.mainChannel,V=e.send;var b=oIY();b=_.M3(b,2,t.startUrl);V.call(e,P5Y(b))}_.n2(H)})};var kdb=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(kdb,_.ww);_.q=kdb.prototype;_.q.getSize=function(){return $H(this,1)};
_.q.setSize=function(D){return _.lZ(this,1,D)};
_.q.getWidth=function(){return $H(this,12)};
_.q.getHeight=function(){return $H(this,13)};
_.q.setCenterCrop=function(D){return _.KN(this,20,D)};
_.q.getHtml=function(){return _.Sk(this,4)};
_.q.getToken=function(){return _.rV(this,24)};
_.q.setToken=function(D){return _.M3(this,24,D)};
_.q.getBackgroundColor=function(){return $H(this,87)};
_.q.hasBackgroundColor=function(){return _.VZ(_.rU(this,87))!=null};
_.q.getStoryboardLevel=function(){return $H(this,109)};var q_=function(D){this.JSC$19602_value_=void 0;this.childNodes_={};if(D){var t=_.cZn(D);D=_.Er(D);for(var H=0;H<t.length;H++)this.set(t[H],D[H])}};
q_.prototype.set=function(D,t){TIF(this,D,t,!1)};
q_.prototype.add=function(D,t){TIF(this,D,t,!0)};
var TIF=function(D,t,H,e){for(var V=0;V<t.length;V++){var b=t.charAt(V);D.childNodes_[b]||(D.childNodes_[b]=new q_);D=D.childNodes_[b]}if(e&&D.JSC$19602_value_!==void 0)throw Error("Bk`"+t);D.JSC$19602_value_=H},cqY=function(D,t){for(var H=0;H<t.length;H++)if(D=D.childNodes_[t.charAt(H)],!D)return;
return D};
q_.prototype.get=function(D){return(D=cqY(this,D))?D.JSC$19602_value_:void 0};
q_.prototype.getValues=function(){var D=[];jcF(this,D);return D};
var jcF=function(D,t){D.JSC$19602_value_!==void 0&&t.push(D.JSC$19602_value_);for(var H in D.childNodes_)jcF(D.childNodes_[H],t)};
q_.prototype.getKeys=function(D){var t=[];if(D){for(var H=this,e=0;e<D.length;e++){var V=D.charAt(e);if(!H.childNodes_[V])return[];H=H.childNodes_[V]}$Lv(H,D,t)}else $Lv(this,"",t);return t};
var $Lv=function(D,t,H){D.JSC$19602_value_!==void 0&&H.push(t);for(var e in D.childNodes_)$Lv(D.childNodes_[e],t+e,H)};
_.q=q_.prototype;_.q.containsKey=function(D){return this.get(D)!==void 0};
_.q.containsValue=function(D){if(this.JSC$19602_value_===D)return!0;for(var t in this.childNodes_)if(this.childNodes_[t].containsValue(D))return!0;return!1};
_.q.clear=function(){this.childNodes_={};this.JSC$19602_value_=void 0};
_.q.remove=function(D){for(var t=this,H=[],e=0;e<D.length;e++){var V=D.charAt(e);if(!t.childNodes_[V])throw Error("Ck`"+D);H.push([t,V]);t=t.childNodes_[V]}D=t.JSC$19602_value_;for(delete t.JSC$19602_value_;H.length>0;)if(e=H.pop(),t=e[0],e=e[1],t.childNodes_[e].isEmpty())delete t.childNodes_[e];else break;return D};
_.q.clone=function(){return new q_(this)};
_.q.getCount=function(){return ayt(this.getValues())};
_.q.isEmpty=function(){return this.JSC$19602_value_===void 0&&_.J$.isEmpty(this.childNodes_)};var myg=function(){if(!iUe){var D=iUe=new q_,t;for(t in rqt)D.add(t,rqt[t])}},iUe,Fk=function(D,t){this.types=D;
this.setters=t},rqt={a:new Fk([3,
0],[function(D,t){_.KN(D,21,t)},
function(D,t){_.lZ(D,56,t)}]),
al:new Fk([3],[function(D,t){_.KN(D,74,t)}]),
b:new Fk([3,0],[function(D,t){_.KN(D,23,t)},
function(D,t){_.lZ(D,38,t)}]),
ba:new Fk([0],[function(D,t){_.lZ(D,85,t)}]),
bc:new Fk([0],[function(D,t){_.lZ(D,87,t)}]),
br:new Fk([0],[function(D,t){_.lZ(D,86,t)}]),
c:new Fk([3,0],[function(D,t){_.KN(D,2,t)},
function(D,t){_.lZ(D,39,t)}]),
cc:new Fk([3],[function(D,t){_.KN(D,51,t)}]),
ci:new Fk([3],[function(D,t){_.KN(D,32,t)}]),
ckm:new Fk([3],[function(D,t){_.KN(D,104,t)}]),
cp:new Fk([0],[function(D,t){_.lZ(D,92,t)}]),
cr:new Fk([3],[function(D,t){_.KN(D,108,t)}]),
cv:new Fk([0],[function(D,t){_.lZ(D,94,t)}]),
d:new Fk([3],[function(D,t){_.KN(D,3,t)}]),
dc:new Fk([5],[function(D,t){_.M3(D,99,t)}]),
df:new Fk([3],[function(D,t){_.KN(D,80,t)}]),
dv:new Fk([3],[function(D,t){_.KN(D,90,t)}]),
e:new Fk([0],[function(D,t){_.lZ(D,15,t)}]),
em:new Fk([0],[function(D,t){_.lZ(D,107,t)}]),
f:new Fk([4],[function(D,t){_.M3(D,16,t)}]),
fg:new Fk([3],[function(D,t){_.KN(D,34,t)}]),
fh:new Fk([3],[function(D,t){_.KN(D,30,t)}]),
fm:new Fk([3],[function(D,t){_.KN(D,84,t)}]),
fo:new Fk([2],[function(D,t){_.Eq(D,79,_.RB(t))}]),
ft:new Fk([3],[function(D,t){_.KN(D,50,t)}]),
fv:new Fk([3],[function(D,t){_.KN(D,31,t)}]),
g:new Fk([3],[function(D,t){_.KN(D,14,t)}]),
gce:new Fk([4],[function(D,t){_.M3(D,112,t)}]),
gd:new Fk([3],[function(D,t){_.KN(D,83,t)}]),
gm:new Fk([3],[function(D,t){_.KN(D,105,t)}]),
h:new Fk([3,0],[function(D,t){_.KN(D,4,t)},
function(D,t){_.lZ(D,13,t)}]),
i:new Fk([3],[function(D,t){_.KN(D,22,t)}]),
ic:new Fk([0],[function(D,t){_.lZ(D,71,t)}]),
id:new Fk([3],[function(D,t){_.KN(D,70,t)}]),
il:new Fk([3],[function(D,t){_.KN(D,96,t)}]),
ip:new Fk([3],[function(D,t){_.KN(D,54,t)}]),
iv:new Fk([0],[function(D,t){_.P$(D,75,t)}]),
j:new Fk([1],[function(D,t){t=t==null?t:JEH(t);_.Eq(D,29,t)}]),
k:new Fk([3,0],[function(D,t){_.KN(D,17,t)},
function(D,t){_.lZ(D,42,t)}]),
l:new Fk([0],[function(D,t){_.lZ(D,44,t)}]),
lf:new Fk([3],[function(D,t){_.KN(D,65,t)}]),
lo:new Fk([3],[function(D,t){_.KN(D,97,t)}]),
m:new Fk([0],[function(D,t){_.lZ(D,63,t)}]),
md:new Fk([3],[function(D,t){_.KN(D,91,t)}]),
mm:new Fk([4],[function(D,t){_.M3(D,81,t)}]),
mo:new Fk([3],[function(D,t){_.KN(D,73,t)}]),
mp:new Fk([0],[function(D,t){_.lZ(D,115,t)}]),
mv:new Fk([3],[function(D,t){_.KN(D,66,t)}]),
n:new Fk([3],[function(D,t){D.setCenterCrop(t)}]),
nc:new Fk([3],[function(D,t){_.KN(D,55,t)}]),
nd:new Fk([3],[function(D,t){_.KN(D,53,t)}]),
ng:new Fk([3],[function(D,t){_.KN(D,95,t)}]),
ngm:new Fk([3],[function(D,t){_.KN(D,106,t)}]),
no:new Fk([3],[function(D,t){_.KN(D,37,t)}]),
ns:new Fk([3],[function(D,t){_.KN(D,40,t)}]),
nt0:new Fk([4],[function(D,t){_.M3(D,36,t)}]),
ntm:new Fk([3],[function(D,t){_.KN(D,114,t)}]),
nu:new Fk([3],[function(D,t){_.KN(D,46,t)}]),
nw:new Fk([3],[function(D,t){_.KN(D,48,t)}]),
o:new Fk([1,3],[function(D,t){t=t==null?t:JEH(t);_.Eq(D,7,t)},
function(D,t){_.KN(D,27,t)}]),
p:new Fk([3,0],[function(D,t){_.KN(D,19,t)},
function(D,t){_.lZ(D,43,t)}]),
pa:new Fk([3],[function(D,t){_.KN(D,61,t)}]),
pc:new Fk([0],[function(D,t){_.lZ(D,88,t)}]),
pd:new Fk([3],[function(D,t){_.KN(D,60,t)}]),
pf:new Fk([3],[function(D,t){_.KN(D,67,t)}]),
pg:new Fk([3],[function(D,t){_.KN(D,72,t)}]),
pi:new Fk([2],[function(D,t){_.Eq(D,76,_.RB(t))}]),
pp:new Fk([3],[function(D,t){_.KN(D,52,t)}]),
pt:new Fk([4],[function(D,t){_.M3(D,111,t)}]),
q:new Fk([4],[function(D,t){_.M3(D,28,t)}]),
r:new Fk([3,0],[function(D,t){_.KN(D,6,t)},
function(D,t){_.lZ(D,26,t)}]),
ra:new Fk([3],[function(D,t){_.KN(D,103,t)}]),
rf:new Fk([3],[function(D,t){_.KN(D,100,t)}]),
rg:new Fk([3],[function(D,t){_.KN(D,59,t)}]),
rh:new Fk([3],[function(D,t){_.KN(D,49,t)}]),
rj:new Fk([3],[function(D,t){_.KN(D,57,t)}]),
ro:new Fk([2],[function(D,t){_.Eq(D,78,_.RB(t))}]),
rp:new Fk([3],[function(D,t){_.KN(D,58,t)}]),
rw:new Fk([3],[function(D,t){_.KN(D,35,t)}]),
rwa:new Fk([3],[function(D,t){_.KN(D,64,t)}]),
rwu:new Fk([3],[function(D,t){_.KN(D,41,t)}]),
s:new Fk([3,0],[function(D,t){_.KN(D,33,t)},
function(D,t){D.setSize(t)}]),
sb:new Fk([0],[function(D,t){_.lZ(D,110,t)}]),
sc:new Fk([0],[function(D,t){_.lZ(D,89,t)}]),
sg:new Fk([3],[function(D,t){_.KN(D,82,t)}]),
sl:new Fk([0],[function(D,t){_.lZ(D,109,t)}]),
sm:new Fk([3],[function(D,t){_.KN(D,93,t)}]),
t:new Fk([4],[function(D,t){D.setToken(t)}]),
tm:new Fk([3],[function(D,t){_.KN(D,113,t)}]),
u:new Fk([3],[function(D,t){_.KN(D,18,t)}]),
ut:new Fk([3],[function(D,t){_.KN(D,45,t)}]),
v:new Fk([0],[function(D,t){_.lZ(D,62,t)}]),
vb:new Fk([0],[function(D,t){_.P$(D,68,t)}]),
vf:new Fk([4],[function(D,t){_.M3(D,102,t)}]),
vl:new Fk([0],[function(D,t){_.P$(D,69,t)}]),
vm:new Fk([3],[function(D,t){_.KN(D,98,t)}]),
w:new Fk([0],[function(D,t){_.lZ(D,12,t)}]),
x:new Fk([0],[function(D,t){_.lZ(D,9,t)}]),
y:new Fk([0],[function(D,t){_.lZ(D,10,t)}]),
ya:new Fk([2],[function(D,t){_.Eq(D,77,_.RB(t))}]),
z:new Fk([0],[function(D,t){_.lZ(D,11,t)}])};
myg.prototype.parse=function(D){var t=new kdb,H=new kdb;if(D=="")D=!0;else{D=D.split("-");for(var e=!0,V=0;V<D.length;V++){var b=D[V];if(b.length==0)e=!1;else{var a=b,w=!1;var h=a;var K=a.charAt(0);K!=K.toLowerCase()&&(w=!0,h=a.charAt(0).toLowerCase()+a.substring(1));var N=iUe;for(K=1;K<=h.length;++K){var k=N,T=h.substring(0,K);if(T.length==0?k.isEmpty():!cqY(k,T))break}h=K==1?null:(h=N.get(h.substring(0,K-1)))?{option:a.substring(0,K-1),value:a.substring(K-1),signed:w,attributes:h}:null;if(h){a=
[];w=[];K=!1;for(N=0;N<h.attributes.types.length;N++){k=h.attributes.types[N];var c=h.value;T=V;if(h.signed&&k==1)for(var U=c.length;U<12&&T<D.length-1;)c+="-"+D[T+1],U=c.length,++T;else if(k==2)for(;T<D.length-1&&D[T+1].match(/^[\d\.]/);)c+="-"+D[T+1],++T;U=h.attributes.setters[N];c=OUF(this,k)(h.option,c,t,H,U);if(c===null){K=!0;V=T;break}else a.push(k),w.push(c)}if(!K)for(h=0;h<w.length;h++)N=a[h],c=w[h],ULQ(this,N)(b,c);e=e&&K}else e=!1}}D=e}return new oZF(t,H,D)};
var aX=function(D,t,H,e,V,b){V(H,t);D=D.charAt(0);b=b(D==D.toUpperCase());V(e,b)};
_.q=myg.prototype;_.q.parseAndSetIntOption_=function(D,t,H,e,V){if(t=="")return 0;isFinite(t)&&(t=String(t));t=typeof t==="string"?/^\s*-?0x/i.test(t)?parseInt(t,16):parseInt(t,10):NaN;if(isNaN(t))return 1;aX(D,t,H,e,V,Number);return null};
_.q.logIntParseError_=function(){};
_.q.parseAndSetFloatOption_=function(D,t,H,e,V){if(t=="")return 0;var b=Number(t);t=b==0&&_.sD(t)?NaN:b;if(isNaN(t))return 1;aX(D,t,H,e,V,Number);return null};
_.q.logFloatParseError_=function(){};
_.q.parseAndSetBoolOption_=function(D,t,H,e,V){if(t!="")return 2;aX(D,!0,H,e,V,Boolean);return null};
_.q.logBoolParseError_=function(){};
_.q.parseAndSetStringOption_=function(D,t,H,e,V){if(t=="")return 0;aX(D,t,H,e,V,function(b){return b?"1":""});
return null};
_.q.logStringParseError_=function(){};
_.q.parseAndSetUint64Base64Option_=function(D,t,H,e,V){if(t=="")return 0;aX(D,t,H,e,V,function(b){return b?1:0});
return null};
var OUF=function(D,t){switch(t){case 0:return(0,_.Mc)(D.parseAndSetIntOption_,D);case 2:return(0,_.Mc)(D.parseAndSetFloatOption_,D);case 3:return(0,_.Mc)(D.parseAndSetBoolOption_,D);case 4:return(0,_.Mc)(D.parseAndSetStringOption_,D);case 1:return(0,_.Mc)(D.parseAndSetUint64Base64Option_,D);default:return function(){}}},ULQ=function(D,t){switch(t){case 0:return(0,_.Mc)(D.logIntParseError_,D);
case 2:return(0,_.Mc)(D.logFloatParseError_,D);case 3:return(0,_.Mc)(D.logBoolParseError_,D);case 4:case 1:return(0,_.Mc)(D.logStringParseError_,D);default:return function(){}}},oZF=function(D,t,H){this.valueProto_=D;
this.signatureFlagProto_=t;this.JSC$19614_valid_=H};
oZF.prototype.isValid=function(){return this.JSC$19614_valid_};var oLv=function(D){this.JSC$19615_parser_=null;this.JSC$19615_components_=[];this.JSC$19615_parsedOptions_=null;PAg(this,D)},nZF=function(D){D.JSC$19615_parser_==null&&(D.JSC$19615_parser_=new myg);
return D.JSC$19615_parser_},PAg=function(D,t){D.JSC$19615_parsedOptions_=t?typeof t==="string"?nZF(D).parse(t):t:nZF(D).parse("")},wp=function(D,t){return D==t?!1:!0};
_.q=oLv.prototype;_.q.JSC$19617_setCrop=function(D){D=D||void 0;var t=this.JSC$19615_parsedOptions_,H=t.valueProto_;wp(D,_.Sk(H,2),_.Sk(t.signatureFlagProto_,2))&&_.KN(H,2,D);return this};
_.q.JSC$19617_setCircleCrop=function(D){D=D||void 0;var t=this.JSC$19615_parsedOptions_,H=t.valueProto_;wp(D,jm(H,51),jm(t.signatureFlagProto_,51))&&_.KN(H,51,D);return this};
_.q.JSC$19617_setImageCrop=function(D){D=D||void 0;var t=this.JSC$19615_parsedOptions_,H=t.valueProto_;wp(D,jm(H,32),jm(t.signatureFlagProto_,32))&&_.KN(H,32,D);return this};
_.q.JSC$19617_setHeight=function(D){var t=this.JSC$19615_parsedOptions_,H=t.valueProto_;wp(D,H.getHeight(),t.signatureFlagProto_.getHeight())&&_.lZ(H,13,D);return this};
_.q.setCenterCrop=function(D){D=D||void 0;var t=this.JSC$19615_parsedOptions_,H=t.valueProto_;wp(D,_.Sk(H,20),_.Sk(t.signatureFlagProto_,20))&&H.setCenterCrop(D);return this};
_.q.JSC$19617_setSmartCrop=function(D){D=D||void 0;var t=this.JSC$19615_parsedOptions_,H=t.valueProto_;wp(D,_.Sk(H,19),_.Sk(t.signatureFlagProto_,19))&&_.KN(H,19,D);return this};
_.q.JSC$19617_setPad=function(D){D=D||void 0;var t=this.JSC$19615_parsedOptions_,H=t.valueProto_;wp(D,jm(H,60),jm(t.signatureFlagProto_,60))&&_.KN(H,60,D);return this};
_.q.JSC$19617_setSmartCropUseFace=function(D){D=D||void 0;var t=this.JSC$19615_parsedOptions_,H=t.valueProto_;wp(D,_.Sk(H,67),_.Sk(t.signatureFlagProto_,67))&&_.KN(H,67,D);return this};
_.q.JSC$19617_setSmartCropNoClip=function(D){D=D||void 0;var t=this.JSC$19615_parsedOptions_,H=t.valueProto_;wp(D,_.Sk(H,52),_.Sk(t.signatureFlagProto_,52))&&_.KN(H,52,D);return this};
_.q.setSize=function(D){var t=this.JSC$19615_parsedOptions_,H=t.valueProto_;wp(D,H.getSize(),t.signatureFlagProto_.getSize())&&H.setSize(D);return this};
_.q.setToken=function(D){D=D||void 0;var t=this.JSC$19615_parsedOptions_,H=t.valueProto_;wp(D,H.getToken(),t.signatureFlagProto_.getToken())&&H.setToken(D);return this};
_.q.JSC$19617_setWidth=function(D){var t=this.JSC$19615_parsedOptions_,H=t.valueProto_;wp(D,H.getWidth(),t.signatureFlagProto_.getWidth())&&_.lZ(H,12,D);return this};
_.q.clearOptions=function(){PAg(this,"");return this};
_.q.build=function(){this.JSC$19615_components_.length=0;var D=this.JSC$19615_parsedOptions_,t=D.valueProto_;D=D.signatureFlagProto_;Z0(this,"s",t.getSize(),D.getSize());Z0(this,"w",t.getWidth(),D.getWidth());sM(this,"c",_.Sk(t,2),_.Sk(D,2));sM(this,"d",_.Sk(t,3),_.Sk(D,3));Z0(this,"h",t.getHeight(),D.getHeight());sM(this,"s",jm(t,33),jm(D,33));sM(this,"h",t.getHtml(),D.getHtml());sM(this,"p",_.Sk(t,19),_.Sk(D,19));sM(this,"pp",_.Sk(t,52),_.Sk(D,52));sM(this,"pf",_.Sk(t,67),_.Sk(D,67));sM(this,"n",
_.Sk(t,20),_.Sk(D,20));Z0(this,"r",$H(t,26),$H(D,26));sM(this,"r",_.Sk(t,6),_.Sk(D,6));sM(this,"o",jm(t,27),jm(D,27));var H=_.MG(t,7,_.iZ);hv(this,"o",H,_.MG(D,7,_.iZ));H=_.MG(t,29,_.iZ);hv(this,"j",H,_.MG(D,29,_.iZ));Z0(this,"x",$H(t,9),$H(D,9));Z0(this,"y",$H(t,10),$H(D,10));Z0(this,"z",$H(t,11),$H(D,11));sM(this,"g",_.Sk(t,14),_.Sk(D,14));Z0(this,"e",$H(t,15),$H(D,15));hv(this,"f",_.rV(t,16),_.rV(D,16));sM(this,"k",jm(t,17),jm(D,17));sM(this,"u",jm(t,18),!0);sM(this,"ut",jm(t,45),!0);sM(this,"i",
jm(t,22),!0);sM(this,"a",jm(t,21),jm(D,21));sM(this,"b",_.Sk(t,23),_.Sk(D,23));Z0(this,"b",$H(t,38),$H(D,38));Z0(this,"c",$H(t,39),$H(D,39),16,8);hv(this,"q",_.rV(t,28),_.rV(D,28));sM(this,"fh",jm(t,30),jm(D,30));sM(this,"fv",jm(t,31),jm(D,31));sM(this,"fg",_.Sk(t,34),_.Sk(D,34));sM(this,"ci",jm(t,32),jm(D,32));hv(this,"t",t.getToken(),D.getToken());hv(this,"nt0",_.rV(t,36),_.rV(D,36));sM(this,"rw",_.Sk(t,35),_.Sk(D,35));sM(this,"rwu",_.Sk(t,41),_.Sk(D,41));sM(this,"rwa",_.Sk(t,64),_.Sk(D,64));sM(this,
"nw",_.Sk(t,48),_.Sk(D,48));sM(this,"rh",_.Sk(t,49),_.Sk(D,49));sM(this,"no",_.Sk(t,37),_.Sk(D,37));sM(this,"ns",jm(t,40),jm(D,40));Z0(this,"k",$H(t,42),$H(D,42));Z0(this,"p",$H(t,43),$H(D,43));Z0(this,"l",$H(t,44),$H(D,44));Z0(this,"v",$H(t,62),$H(D,62));sM(this,"nu",jm(t,46),jm(D,46));sM(this,"ft",jm(t,50),jm(D,50));sM(this,"cc",jm(t,51),jm(D,51));sM(this,"nd",jm(t,53),jm(D,53));sM(this,"ip",jm(t,54),jm(D,54));sM(this,"nc",jm(t,55),jm(D,55));Z0(this,"a",$H(t,56),$H(D,56));sM(this,"rj",jm(t,57),
jm(D,57));sM(this,"rp",jm(t,58),jm(D,58));sM(this,"rg",jm(t,59),jm(D,59));sM(this,"pd",jm(t,60),jm(D,60));sM(this,"pa",jm(t,61),jm(D,61));Z0(this,"m",$H(t,63),$H(D,63));Z0(this,"vb",i0(t,68),i0(D,68));Z0(this,"vl",i0(t,69),i0(D,69));sM(this,"lf",jm(t,65),jm(D,65));sM(this,"mv",jm(t,66),jm(D,66));sM(this,"id",jm(t,70),jm(D,70));Z0(this,"ic",$H(t,71),!0);sM(this,"pg",_.Sk(t,72),_.Sk(D,72));sM(this,"mo",jm(t,73),jm(D,73));sM(this,"al",jm(t,74),jm(D,74));Z0(this,"iv",i0(t,75),i0(D,75));Z0(this,"pi",rR(t,
76),rR(D,76));Z0(this,"ya",rR(t,77),rR(D,77));Z0(this,"ro",rR(t,78),rR(D,78));Z0(this,"fo",rR(t,79),rR(D,79));sM(this,"df",jm(t,80),jm(D,80));hv(this,"mm",_.rV(t,81),_.rV(D,81));sM(this,"sg",jm(t,82),jm(D,82));sM(this,"gd",jm(t,83),jm(D,83));sM(this,"fm",jm(t,84),jm(D,84));Z0(this,"ba",$H(t,85),$H(D,85));Z0(this,"br",$H(t,86),$H(D,86));Z0(this,"bc",t.getBackgroundColor(),D.getBackgroundColor(),16,8);Z0(this,"pc",$H(t,88),$H(D,88),16,8);Z0(this,"sc",$H(t,89),$H(D,89),16,8);sM(this,"dv",jm(t,90),jm(D,
90));sM(this,"md",jm(t,91),jm(D,91));Z0(this,"cp",$H(t,92),$H(D,92));sM(this,"sm",jm(t,93),jm(D,93));Z0(this,"cv",$H(t,94),$H(D,94));sM(this,"ng",jm(t,95),jm(D,95));sM(this,"il",jm(t,96),jm(D,96));sM(this,"lo",jm(t,97),jm(D,97));sM(this,"vm",jm(t,98),jm(D,98));hv(this,"dc",_.rV(t,99),_.rV(D,99));sM(this,"rf",jm(t,100),jm(D,100));hv(this,"vf",_.rV(t,102),_.rV(D,102));sM(this,"ra",_.Sk(t,103),_.Sk(D,103));sM(this,"ckm",jm(t,104),jm(D,104));sM(this,"gm",jm(t,105),jm(D,105));sM(this,"ngm",jm(t,106),jm(D,
106));Z0(this,"em",$H(t,107),$H(D,107));sM(this,"cr",jm(t,108),jm(D,108));Z0(this,"sl",t.getStoryboardLevel(),D.getStoryboardLevel());Z0(this,"sb",$H(t,110),$H(D,110));hv(this,"pt",_.rV(t,111),_.rV(D,111));hv(this,"gce",_.rV(t,112),_.rV(D,112));sM(this,"tm",jm(t,113),jm(D,113));sM(this,"ntm",jm(t,114),jm(D,114));Z0(this,"mp",$H(t,115),$H(D,115));return this.JSC$19615_components_.join("-")};
var Z0=function(D,t,H,e,V,b){if(H!=null){var a=V==void 0||V!=10&&V!=16?10:V;H=Number(H).toString(a);V=new HCQ;V.append(a==16?"0x":"");a=V.append;b==void 0?b="":(b-=H.length,b=b<=0?"":(0,_.NoB)("0",b));a.call(V,b);V.append(H);CAH(D,t,V.toString(),!!Number(e))}},sM=function(D,t,H,e){H&&CAH(D,t,"",!!e)},hv=function(D,t,H,e){H&&CAH(D,t,String(H),!!Number(e))},CAH=function(D,t,H,e){e&&(t=t.charAt(0).toUpperCase()+t.substring(1));
D.JSC$19615_components_.push(t+H)};_.Zj(ic,oLv);_.q=ic.prototype;_.q.JSC$19617_setCrop=function(D){D&&GZ(this);return ic.superClass_.JSC$19617_setCrop.call(this,D)};
_.q.JSC$19617_setHeight=function(D){D=D==null||D<0?void 0:D;D!=null&&this.setSize();return ic.superClass_.JSC$19617_setHeight.call(this,D)};
_.q.JSC$19617_setImageCrop=function(D){D&&GZ(this);return ic.superClass_.JSC$19617_setImageCrop.call(this,D)};
_.q.JSC$19617_setCircleCrop=function(D){D&&GZ(this);return ic.superClass_.JSC$19617_setCircleCrop.call(this,D)};
_.q.setSize=function(D){_.Wk(D)&&(D=Math.max(D.width,D.height));D=D==null||D<0?void 0:D;D!=null&&(this.JSC$19617_setWidth(),this.JSC$19617_setHeight());return ic.superClass_.setSize.call(this,D)};
_.q.JSC$19617_setSmartCrop=function(D){D&&GZ(this);return ic.superClass_.JSC$19617_setSmartCrop.call(this,D)};
_.q.JSC$19617_setSmartCropNoClip=function(D){D&&GZ(this);return ic.superClass_.JSC$19617_setSmartCropNoClip.call(this,D)};
_.q.JSC$19617_setSmartCropUseFace=function(D){D&&GZ(this);return ic.superClass_.JSC$19617_setSmartCropUseFace.call(this,D)};
_.q.setCenterCrop=function(D){D&&GZ(this);return ic.superClass_.setCenterCrop.call(this,D)};
_.q.JSC$19617_setPad=function(D){D&&GZ(this);return ic.superClass_.JSC$19617_setPad.call(this,D)};
_.q.JSC$19617_setWidth=function(D){D=D==null||D<0?void 0:D;D!=null&&this.setSize();return ic.superClass_.JSC$19617_setWidth.call(this,D)};
var mLQ=function(D){D.clearOptions();var t=D.JSC$19615_parsedOptions_,H=t.valueProto_;wp(!0,_.Sk(H,3),_.Sk(t.signatureFlagProto_,3))&&_.KN(H,3,!0);return D},GZ=function(D){D.setCenterCrop();
D.JSC$19617_setCircleCrop();D.JSC$19617_setCrop();D.JSC$19617_setImageCrop();D.JSC$19617_setPad();D.JSC$19617_setSmartCrop();D.JSC$19617_setSmartCropNoClip();D.JSC$19617_setSmartCropUseFace()};
ic.prototype.build=function(){var D=this.JSC$19615_parsedOptions_.valueProto_;jm(D,18)||jm(D,45)?D.getSize()||this.setSize(0):(D=this.JSC$19615_parsedOptions_.valueProto_,D.getSize()||D.getWidth()||D.getHeight()||(this.setSize(),this.JSC$19617_setHeight(),this.JSC$19617_setWidth(),GZ(this)));return ic.superClass_.build.call(this)};var MYg=/^[^\/]*\/\//,EM=function(D,t){t=t===void 0?!1:t;this.original_=D;this.originalPrefix_="";(D=this.original_.match(MYg))&&D[0]?(this.originalPrefix_=D[0],D=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):D="http://"+this.original_;this.uri_=_.IK(D,!0);this.isFreeformUrl_=t;this.JSC$19621_valid_=!0;this.obfuscated_=!1},SiF=function(D,t){D.JSC$19623_pathPrefix_=D.JSC$19623_pathPrefix_?D.JSC$19623_pathPrefix_+("/"+t):t},K$=function(D){if(D.JSC$19623_components_==
void 0){var t=D.uri_.getPath().substring(1);
D.JSC$19623_pathPrefix_=null;if(D.isFreeformUrl_){D.JSC$19623_components_=[];if((t.match(/=/g)||[]).length>1)return D.JSC$19621_valid_=!1,D.JSC$19623_components_;var H=t.indexOf("=");H!=-1?(D.JSC$19623_components_.push(t.substr(0,H)),D.JSC$19623_components_.push(t.substr(H+1))):D.JSC$19623_components_.push(t);return D.JSC$19623_components_}D.JSC$19623_components_=t.split("/");t=D.JSC$19623_components_.length;t>2&&D.JSC$19623_components_[0]=="u"&&(SiF(D,D.JSC$19623_components_[0]+"/"+D.JSC$19623_components_[1]),
D.JSC$19623_components_.shift(),D.JSC$19623_components_.shift(),t-=2);if(t==0||t==4||t>7)return D.JSC$19621_valid_=!1,D.JSC$19623_components_;if(t==2)SiF(D,D.JSC$19623_components_[0]);else if(D.JSC$19623_components_[0]=="image")SiF(D,D.JSC$19623_components_[0]);else if(t==7||t==3)return D.JSC$19621_valid_=!1,D.JSC$19623_components_;if(t<=3){D.obfuscated_=!0;t==3&&(SiF(D,D.JSC$19623_components_[1]),D.JSC$19623_components_.shift(),--t);--t;H=D.JSC$19623_components_[t];var e=H.indexOf("=");e!=-1&&(D.JSC$19623_components_[t]=
H.substr(0,e),D.JSC$19623_components_.push(H.substr(e+1)))}}return D.JSC$19623_components_};
EM.prototype.isValid=function(){K$(this);return this.JSC$19621_valid_};
EM.prototype.isObfuscated=function(){K$(this);return this.obfuscated_};
var XbF=function(D){K$(D);return D.isFreeformUrl_},N_=function(D){K$(D);
D.JSC$19623_pathPrefix_==void 0&&(D.JSC$19623_pathPrefix_=null);return D.JSC$19623_pathPrefix_},fXQ=function(D){switch(K$(D).length){case 7:return!0;
case 6:return N_(D)==null;case 5:return!1;case 3:return!0;case 2:return N_(D)==null;case 1:return!1;default:return!1}},kN=function(D,t){if(XbF(D))a:{switch(t){case 7:t=0;
break;case 4:if(!fXQ(D)){D=null;break a}t=1;break;default:D=null;break a}D=K$(D)[t]}else if(D.isObfuscated())a:{var H=N_(D)!=null?1:0;switch(t){case 6:t=H;break;case 4:if(!fXQ(D)){D=null;break a}t=1+H;break;default:D=null;break a}D=K$(D)[t]}else a:{H=N_(D)!=null?1:0;switch(t){case 0:t=H;break;case 1:t=1+H;break;case 2:t=2+H;break;case 3:t=3+H;break;case 4:if(!fXQ(D)){D=null;break a}t=4+H;break;case 5:t=fXQ(D)?1:0;t=4+H+t;break;default:D=null;break a}D=K$(D)[t]}return D};
EM.prototype.getOptions=function(){this.options_==void 0&&(this.options_=kN(this,4));return this.options_};var CKb=function(){};
CKb.prototype.parse=function(D,t){return new PKQ(D,t===void 0?!1:t)};
var PKQ=function(D,t){EM.call(this,D,t===void 0?!1:t)};
_.P(PKQ,EM);_.Zj(ru,ic);var nLF;ru.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
ru.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var D=ru.superClass_.build.call(this),t=[];N_(this.parsedImageUrl_)!=null&&t.push(N_(this.parsedImageUrl_));var H=XbF(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var e=this.parsedImageUrl_;e.obfuscatedData_==void 0&&(e.obfuscatedData_=kN(e,6));t.push(e.obfuscatedData_+(D?"="+D:""))}else if(H){e=t.push;var V=this.parsedImageUrl_;V.freeformUrlPath_===void 0&&(V.freeformUrlPath_=kN(V,
7));e.call(t,V.freeformUrlPath_);D&&t.push(D)}else e=t.push,V=this.parsedImageUrl_,V.obfuscatedGaiaId_==void 0&&(V.obfuscatedGaiaId_=kN(V,0)),e.call(t,V.obfuscatedGaiaId_),e=t.push,V=this.parsedImageUrl_,V.photoId_==void 0&&(V.photoId_=kN(V,1)),e.call(t,V.photoId_),e=t.push,V=this.parsedImageUrl_,V.imageVersion_==void 0&&(V.imageVersion_=kN(V,2)),e.call(t,V.imageVersion_),e=t.push,V=this.parsedImageUrl_,V.signature_==void 0&&(V.signature_=kN(V,3)),e.call(t,V.signature_),D&&t.push(D),D=t.push,e=this.parsedImageUrl_,
e.filename_==void 0&&(e.filename_=kN(e,5)),D.call(t,e.filename_);t=H?t.join("="):t.join("/");t=_.IK(this.protocolPrefix_+this.JSC$19629_domain_+"/"+t+(this.JSC$19629_query_?"?"+this.JSC$19629_query_:"")).toString();t.startsWith("%3a//")&&(t=t.replace("%3a//","://"));return t};var LKb=_.zk(["viewBox"]),AqO=_.zk(["width"]),gZ4=_.zk(["height"]),Jqt=_.zk(["fill"]),YiZ=_.zk(["id"]),lX4=_.zk(["x"]),vZg=_.zk(["y"]);MZO.prototype.getLength=function(){return this.parsedData.length};
MZO.prototype.write=function(D){for(var t=0,H=this.parsedData.length;t<H;t++)D.put(this.parsedData[t],8)};
var Jh4=function(D,t){var H=new MZO(t);D.dataList.push(H);H=D.errorCorrectLevel;var e=1,V=encodeURI(t).toString().replace(/%[0-9a-fA-F]{2}/g,"a");t=V.length+(V.length!=t?3:0);V=0;for(var b=TZ.length;V<=b;V++){var a=0;switch(H){case 1:a=TZ[V][0];break;case 0:a=TZ[V][1];break;case 3:a=TZ[V][2];break;case 2:a=TZ[V][3]}if(t<=a)break;else e++}if(e>TZ.length)throw Error("Lk");D.typeNumber=e;D.dataCache=null};
Sst.prototype.isDark=function(D,t){if(D<0||this.moduleCount<=D||t<0||this.moduleCount<=t)throw Error("Dk`"+D+"`"+t);return this.modules[D][t]};
for(var Ysg=function(D,t,H){D.moduleCount=D.typeNumber*4+17;D.modules=Array(D.moduleCount);for(var e=0;e<D.moduleCount;e++){D.modules[e]=Array(D.moduleCount);for(var V=0;V<D.moduleCount;V++)D.modules[e][V]=null}pbg(D,0,0);pbg(D,D.moduleCount-7,0);pbg(D,0,D.moduleCount-7);e=dLF[D.typeNumber-1];for(V=0;V<e.length;V++)for(var b=0;b<e.length;b++){var a=e[V],w=e[b];if(D.modules[a][w]==null)for(var h=-2;h<=2;h++)for(var K=-2;K<=2;K++)D.modules[a+h][w+K]=h==-2||h==2||K==-2||K==2||h==0&&K==0?!0:!1}for(e=
8;e<D.moduleCount-8;e++)D.modules[e][6]==null&&(D.modules[e][6]=e%2==0);for(e=8;e<D.moduleCount-8;e++)D.modules[6][e]==null&&(D.modules[6][e]=e%2==0);e=D.errorCorrectLevel<<3|H;for(V=e<<10;cj(V)-cj(1335)>=0;)V^=1335<<cj(V)-cj(1335);e=(e<<10|V)^21522;for(V=0;V<15;V++)b=!t&&(e>>V&1)==1,V<6?D.modules[V][8]=b:V<8?D.modules[V+1][8]=b:D.modules[D.moduleCount-15+V][8]=b;for(V=0;V<15;V++)b=!t&&(e>>V&1)==1,V<8?D.modules[8][D.moduleCount-V-1]=b:V<9?D.modules[8][15-V-1+1]=b:D.modules[8][15-V-1]=b;D.modules[D.moduleCount-
8][8]=!t;if(D.typeNumber>=7){e=D.typeNumber;for(V=e<<12;cj(V)-cj(7973)>=0;)V^=7973<<cj(V)-cj(7973);e=e<<12|V;for(V=0;V<18;V++)b=!t&&(e>>V&1)==1,D.modules[Math.floor(V/3)][V%3+D.moduleCount-8-3]=b;for(V=0;V<18;V++)b=!t&&(e>>V&1)==1,D.modules[V%3+D.moduleCount-8-3][Math.floor(V/3)]=b}if(D.dataCache==null){V=D.typeNumber;b=D.dataList;t=D.errorCorrectLevel;e=xLe(V,t);if(e==void 0)throw Error("Kk`"+V+"`"+t);a=e.length/3;t=[];for(w=0;w<a;w++){h=e[w*3];K=e[w*3+1];for(var N=e[w*3+2],k=0;k<h;k++)t.push(new XTQ(K,
N))}e=new f9F;for(a=0;a<b.length;a++)w=b[a],e.put(w.mode,4),e.put(w.getLength(),Rjb(w.mode,V)),w.write(e);for(a=V=0;a<t.length;a++)V+=t[a].dataCount;if(e.length>V*8)throw Error("Ek`"+e.length+"`"+V*8);for(e.length+4<=V*8&&e.put(0,4);e.length%8!=0;)ulv(e,!1);for(;!(e.length>=V*8);){e.put(236,8);if(e.length>=V*8)break;e.put(17,8)}b=V=K=0;a=Array(t.length);w=Array(t.length);for(h=0;h<t.length;h++){k=t[h].dataCount;var T=t[h].totalCount-k;V=Math.max(V,k);b=Math.max(b,T);a[h]=Array(k);for(N=0;N<a[h].length;N++)a[h][N]=
255&e.buffer[N+K];K+=k;N=T;k=new OS([1],0);for(T=0;T<N;T++)k=k.multiply(new OS([1,WKF(T)],0));N=k;k=(new OS(a[h],N.getLength()-1)).mod(N);w[h]=Array(N.getLength()-1);for(N=0;N<w[h].length;N++)T=N+k.getLength()-w[h].length,w[h][N]=T>=0?k.get(T):0}for(N=e=0;N<t.length;N++)e+=t[N].totalCount;e=Array(e);for(N=K=0;N<V;N++)for(h=0;h<t.length;h++)N<a[h].length&&(e[K++]=a[h][N]);for(N=0;N<b;N++)for(h=0;h<t.length;h++)N<w[h].length&&(e[K++]=w[h][N]);D.dataCache=e}t=D.dataCache;e=-1;V=D.moduleCount-1;b=7;a=
0;for(w=D.moduleCount-1;w>0;w-=2)for(w==6&&w--;;){for(h=0;h<2;h++)D.modules[V][w-h]==null&&(K=!1,a<t.length&&(K=(t[a]>>>b&1)==1),IXO(H,V,w-h)&&(K=!K),D.modules[V][w-h]=K,b--,b==-1&&(a++,b=7));V+=e;if(V<0||D.moduleCount<=V){V-=e;e=-e;break}}},pbg=function(D,t,H){for(var e=-1;e<=7;e++)if(!(t+e<=-1||D.moduleCount<=t+e))for(var V=-1;V<=7;V++)H+V<=-1||D.moduleCount<=H+V||(D.modules[t+e][H+V]=0<=e&&e<=6&&(V==0||V==6)||0<=V&&V<=6&&(e==0||e==6)||2<=e&&e<=4&&2<=V&&V<=4?!0:!1)},l9H=function(D){for(var t=0,
H=0,e=0;e<8;e++){Ysg(D,!0,e);
var V=D;for(var b=V.moduleCount,a=0,w=0;w<b;w++)for(var h=0;h<b;h++){for(var K=0,N=V.isDark(w,h),k=-1;k<=1;k++)if(!(w+k<0||b<=w+k))for(var T=-1;T<=1;T++)h+T<0||b<=h+T||(k!=0||T!=0)&&N==V.isDark(w+k,h+T)&&K++;K>5&&(a+=3+K-5)}for(w=0;w<b-1;w++)for(h=0;h<b-1;h++)if(K=0,V.isDark(w,h)&&K++,V.isDark(w+1,h)&&K++,V.isDark(w,h+1)&&K++,V.isDark(w+1,h+1)&&K++,K==0||K==4)a+=3;for(w=0;w<b;w++)for(h=0;h<b-6;h++)V.isDark(w,h)&&!V.isDark(w,h+1)&&V.isDark(w,h+2)&&V.isDark(w,h+3)&&V.isDark(w,h+4)&&!V.isDark(w,h+5)&&
V.isDark(w,h+6)&&(a+=40);for(h=0;h<b;h++)for(w=0;w<b-6;w++)V.isDark(w,h)&&!V.isDark(w+1,h)&&V.isDark(w+2,h)&&V.isDark(w+3,h)&&V.isDark(w+4,h)&&!V.isDark(w+5,h)&&V.isDark(w+6,h)&&(a+=40);for(h=K=0;h<b;h++)for(w=0;w<b;w++)V.isDark(w,h)&&K++;V=a+=Math.abs(100*K/b/b-50)/5*10;if(e==0||t>V)t=V,H=e}return H},dLF=[[],
[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]],cj=function(D){for(var t=0;D!=0;)t++,D>>>=1;return t},IXO=function(D,t,H){switch(D){case 0:return(t+H)%2==0;
case 1:return t%2==0;case 2:return H%3==0;case 3:return(t+H)%3==0;case 4:return(Math.floor(t/2)+Math.floor(H/3))%2==0;case 5:return t*H%2+t*H%3==0;case 6:return(t*H%2+t*H%3)%2==0;case 7:return(t*H%3+(t+H)%2)%2==0;default:throw Error("Fk`"+D);}},Rjb=function(D,t){if(1<=t&&t<10)switch(D){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Gk`"+D);}else if(t<27)switch(D){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Gk`"+D);}else if(t<41)switch(D){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Gk`"+D);}else throw Error("Hk`"+t);},jJ=function(D){if(D<1)throw Error("Ik`"+D);
return QcH[D]},WKF=function(D){for(;D<0;)D+=255;
for(;D>=256;)D-=255;return $N[D]},$N=Array(256),QcH=Array(256),yqO=0;yqO<8;yqO++)$N[yqO]=1<<yqO;
for(var iL=8;iL<256;iL++)$N[iL]=$N[iL-4]^$N[iL-5]^$N[iL-6]^$N[iL-8];for(var BIZ=0;BIZ<255;BIZ++)QcH[$N[BIZ]]=BIZ;OS.prototype.get=function(D){return this.num[D]};
OS.prototype.getLength=function(){return this.num.length};
OS.prototype.multiply=function(D){for(var t=Array(this.getLength()+D.getLength()-1),H=0;H<this.getLength();H++)for(var e=0;e<D.getLength();e++)t[H+e]^=WKF(jJ(this.get(H))+jJ(D.get(e)));return new OS(t,0)};
OS.prototype.mod=function(D){if(this.getLength()-D.getLength()<0)return this;for(var t=jJ(this.get(0))-jJ(D.get(0)),H=Array(this.getLength()),e=0;e<this.getLength();e++)H[e]=this.get(e);for(e=0;e<D.getLength();e++)H[e]^=WKF(jJ(D.get(e))+t);return(new OS(H,0)).mod(D)};
var zjO=[[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]],xLe=function(D,t){switch(t){case 1:return zjO[(D-1)*4];case 0:return zjO[(D-1)*4+1];case 3:return zjO[(D-1)*4+2];case 2:return zjO[(D-1)*4+3]}};
f9F.prototype.get=function(D){return(this.buffer[Math.floor(D/8)]>>>7-D%8&1)==1};
f9F.prototype.put=function(D,t){for(var H=0;H<t;H++)ulv(this,(D>>>t-H-1&1)==1)};
var ulv=function(D,t){var H=Math.floor(D.length/8);D.buffer.length<=H&&D.buffer.push(0);t&&(D.buffer[H]|=128>>>D.length%8);D.length++},TZ=[[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]],gLt=function(){var D=function(t,H){this.JSC$19649__el=t;this.JSC$19649__htOption=H};
D.prototype.draw=function(t){function H(N,k){N=document.createElementNS("http://www.w3.org/2000/svg",N);for(var T in k)k.hasOwnProperty(T)&&(T==="href"?_.Nii(N,k[T]):_.ax([_.Zi(LKb),_.Zi(AqO),_.Zi(gZ4),_.Zi(Jqt),_.Zi(YiZ),_.Zi(lX4),_.Zi(vZg)],N,T,k[T]));return N}
var e=this.JSC$19649__htOption,V=this.JSC$19649__el,b=t.moduleCount;this.clear();var a=H("svg",{viewBox:"0 0 "+String(b)+" "+String(b),width:"100%",height:"100%",fill:e.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});V.appendChild(a);a.appendChild(H("rect",{fill:e.colorLight,width:"100%",height:"100%"}));a.appendChild(H("rect",{fill:e.colorDark,width:"1",height:"1",id:"template"}));for(var w=0;w<b;w++)for(var h=0;h<b;h++)if(t.isDark(w,h)){var K=H("use",{x:String(w),y:String(h),href:"#template"});
a.appendChild(K)}};
D.prototype.clear=function(){for(;this.JSC$19649__el.hasChildNodes();)this.JSC$19649__el.removeChild(this.JSC$19649__el.lastChild)};
return D}(),AhZ=document.documentElement.tagName.toLowerCase()==="svg"?gLt:typeof CanvasRenderingContext2D!="undefined"?function(){var D=function(t,H){this._bIsPainted=!1;
LxH();this.JSC$19649__htOption=H;this._elCanvas=document.createElement("canvas");this._elCanvas.width=H.width;this._elCanvas.height=H.height;t.appendChild(this._elCanvas);this.JSC$19649__el=t;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$19649__el.appendChild(this._elImage);this._bSupportDataURI=null};
D.prototype._onMakeImage=function(){var t=this._elCanvas.toDataURL("image/png");this._elImage.src=t;this._elImage.style.display="block";this._elCanvas.style.display="none"};
D.prototype._safeSetDataURI=function(t,H){var e=this;e._fFail=H;e._fSuccess=t;e._bSupportDataURI===null?(t=_.OH("IMG"),H=function(){e._bSupportDataURI=!1;e._fFail&&e._fFail.call(e)},t.onabort=H,t.onerror=H,t.onload=function(){e._bSupportDataURI=!0;
e._fSuccess&&e._fSuccess.call(e)},t.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):e._bSupportDataURI===!0&&e._fSuccess?e._fSuccess.call(e):e._bSupportDataURI===!1&&e._fFail&&e._fFail.call(e)};
D.prototype.draw=function(t){var H=this._oContext,e=this.JSC$19649__htOption,V=t.moduleCount,b=e.width/V,a=e.height/V,w=Math.round(b),h=Math.round(a);this._elImage.style.display="none";this.clear();for(var K=0;K<V;K++)for(var N=0;N<V;N++){var k=t.isDark(K,N),T=N*b,c=K*a;H.strokeStyle=k?e.colorDark:e.colorLight;H.lineWidth=1;H.fillStyle=k?e.colorDark:e.colorLight;H.fillRect(T,c,b,a);H.strokeRect(Math.floor(T)+.5,Math.floor(c)+.5,w,h);H.strokeRect(Math.ceil(T)-.5,Math.ceil(c)-.5,w,h)}this._bIsPainted=
!0};
D.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
D.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
D.prototype.round=function(t){return t?Math.floor(t*1E3)/1E3:t};
return D}():function(){var D=function(t,H){this.JSC$19649__el=t;
this.JSC$19649__htOption=H};
D.prototype.draw=function(t){for(var H=this.JSC$19649__htOption,e=this.JSC$19649__el,V=t.moduleCount,b=Math.floor(H.width/V),a=Math.floor(H.height/V),w=['<table style="border:0;border-collapse:collapse;">'],h=0;h<V;h++){w.push("<tr>");for(var K=0;K<V;K++)w.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+b+"px;height:"+a+"px;background-color:"+(t.isDark(h,K)?H.colorDark:H.colorLight)+';"></td>');w.push("</tr>")}w.push("</table>");t=w.join("");t=_.qFw(_.aOf,t);_.Fq(e,t);
t=e.childNodes[0];V=(H.width-t.offsetWidth)/2;b=(H.height-t.offsetHeight)/2;V>0&&b>0&&(t.style.margin=b+"px "+V+"px")};
D.prototype.clear=function(){this.JSC$19649__el.textContent=""};
return D}();
vLi.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19652__android||this.JSC$19652__android>=3)&&this._oDrawing.makeImage()};
vLi.prototype.clear=function(){this._oDrawing.clear()};
_.VA.QRCode=vLi;var D4F={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var rp=function(){};
rp.prototype.stringify=function(D){return _.VA.JSON.stringify(D,void 0)};
rp.prototype.parse=function(D){return _.VA.JSON.parse(D,void 0)};var tn4=function(){_.Xv.call(this,"z")};
_.Zj(tn4,_.Xv);var HLF=function(){_.Xv.call(this,"y")};
_.Zj(HLF,_.Xv);var eTF=null,VnH=function(){return eTF=eTF||new _.J2},bLi=function(D){_.Xv.call(this,"serverreachability",D)};
_.Zj(bLi,_.Xv);var OM=function(D){var t=VnH();t.dispatchEvent(new bLi(t,D))},qAe=function(D,t){_.Xv.call(this,"statevent",D);
this.stat=t};
_.Zj(qAe,_.Xv);var UM=function(D){var t=VnH();t.dispatchEvent(new qAe(t,D))},FjZ=function(D,t,H,e){_.Xv.call(this,"timingevent",D);
this.size=t;this.rtt=H;this.retries=e};
_.Zj(FjZ,_.Xv);var aub=function(D,t,H){var e=VnH();e.dispatchEvent(new FjZ(e,D,t,H))},oX=function(D,t){if(typeof D!=="function")throw Error("Mk");
return _.VA.setTimeout(function(){D()},t)};var Pj=function(){this.redactEnabled_=!0};
Pj.prototype.disableRedact=function(){this.redactEnabled_=!1};
var wOt=function(D,t,H,e,V,b){D.info(function(){if(D.redactEnabled_)if(b){var a="";for(var w=b.split("&"),h=0;h<w.length;h++){var K=w[h].split("=");if(K.length>1){var N=K[0];K=K[1];var k=N.split("_");a=k.length>=2&&k[1]=="type"?a+(N+"="+K+"&"):a+(N+"=redacted&")}}}else a=null;else a=b;return"XMLHTTP REQ ("+e+") [attempt "+V+"]: "+t+"\n"+H+"\n"+a})},ZL4=function(D,t,H,e,V,b,a){D.info(function(){return"XMLHTTP RESP ("+e+") [ attempt "+V+"]: "+t+"\n"+H+"\n"+b+" "+a})},n$=function(D,t,H,e){D.info(function(){return"XMLHTTP TEXT ("+
t+"): "+s04(D,H)+(e?" "+e:"")})},hTi=function(D,t){D.info(function(){return"TIMEOUT: "+t})};
Pj.prototype.debug=function(){};
Pj.prototype.info=function(){};
Pj.prototype.warning=function(){};
var s04=function(D,t){if(!D.redactEnabled_)return t;if(!t)return null;try{var H=JSON.parse(t);if(H)for(var e=0;e<H.length;e++)if(Array.isArray(H[e])){var V=H[e];if(!(V.length<2)){var b=V[1];if(Array.isArray(b)&&!(b.length<1)){var a=b[0];if(a!="noop"&&a!="stop"&&a!="close")for(var w=1;w<b.length;w++)b[w]=""}}}return(0,_.Ru)(H)}catch(h){return D.debug("Exception parsing expected JS array - probably was not JS"),t}};var C$=function(D,t,H,e,V){this.JSC$19674_channel_=D;this.JSC$19674_channelDebug_=t;this.sid_=H;this.JSC$19674_rid_=e;this.JSC$19674_retryId_=V||1;this.JSC$19674_eventHandler_=new _.GA(this);this.timeout_=45E3;this.JSC$19674_extraHeaders_=null;this.JSC$19674_successful_=!1;this.JSC$19674_postData_=this.JSC$19674_requestUri_=this.JSC$19674_baseUri_=this.JSC$19674_type_=this.JSC$19674_requestStartTime_=this.JSC$19674_watchDogTimeoutTime_=this.JSC$19674_watchDogTimerId_=null;this.JSC$19674_pendingMessages_=
[];this.JSC$19674_xmlHttp_=null;this.JSC$19674_xmlHttpChunkStart_=0;this.JSC$19674_lastError_=this.JSC$19674_verb_=null;this.JSC$19674_lastStatusCode_=-1;this.JSC$19674_cancelled_=!1;this.JSC$19674_readyStateChangeThrottleMs_=0;this.JSC$19674_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new GOH},GOH=function(){this.JSC$19676_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},Eke=function(D,t){switch(D){case 0:return"Non-200 return code ("+t+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},KjH={},NJF={};
C$.prototype.setTimeout=function(D){this.timeout_=D};
var TJH=function(D,t,H){D.JSC$19674_type_=1;D.JSC$19674_baseUri_=_.Or(t.clone());D.JSC$19674_postData_=H;D.decodeChunks_=!0;kOH(D,null)},kOH=function(D,t){D.JSC$19674_requestStartTime_=Date.now();
c74(D);D.JSC$19674_requestUri_=D.JSC$19674_baseUri_.clone();Ee(D.JSC$19674_requestUri_,"t",D.JSC$19674_retryId_);D.JSC$19674_xmlHttpChunkStart_=0;var H=D.JSC$19674_channel_.JSC$19693_supportsCrossDomainXhrs_;D.fetchResponseState_=new GOH;D.JSC$19674_xmlHttp_=j0Y(D.JSC$19674_channel_,H?t:null,!D.JSC$19674_postData_);D.JSC$19674_readyStateChangeThrottleMs_>0&&(D.JSC$19674_readyStateChangeThrottle_=new _.W5((0,_.Mc)(D.JSC$19678_xmlHttpHandler_,D,D.JSC$19674_xmlHttp_),D.JSC$19674_readyStateChangeThrottleMs_));
D.JSC$19674_eventHandler_.listen(D.JSC$19674_xmlHttp_,"readystatechange",D.JSC$19678_readyStateChangeHandler_);t=D.JSC$19674_extraHeaders_?_.J$.clone(D.JSC$19674_extraHeaders_):{};D.JSC$19674_postData_?(D.JSC$19674_verb_||(D.JSC$19674_verb_="POST"),t["Content-Type"]="application/x-www-form-urlencoded",D.JSC$19674_xmlHttp_.send(D.JSC$19674_requestUri_,D.JSC$19674_verb_,D.JSC$19674_postData_,t)):(D.JSC$19674_verb_="GET",D.JSC$19674_xmlHttp_.send(D.JSC$19674_requestUri_,D.JSC$19674_verb_,null,t));OM(1);
wOt(D.JSC$19674_channelDebug_,D.JSC$19674_verb_,D.JSC$19674_requestUri_,D.JSC$19674_rid_,D.JSC$19674_retryId_,D.JSC$19674_postData_)};
C$.prototype.JSC$19678_readyStateChangeHandler_=function(D){D=D.target;var t=this.JSC$19674_readyStateChangeThrottle_;t&&_.Wl(D)==3?(this.JSC$19674_channelDebug_.debug("Throttling readystatechange."),t.fire()):this.JSC$19678_xmlHttpHandler_(D)};
C$.prototype.JSC$19678_xmlHttpHandler_=function(D){try{D==this.JSC$19674_xmlHttp_?$4H(this):this.JSC$19674_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(t){this.JSC$19674_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),iLY(this)}finally{}};
var $4H=function(D){var t=_.Wl(D.JSC$19674_xmlHttp_),H=D.JSC$19674_xmlHttp_.JSC$9800_lastErrorCode_,e=D.JSC$19674_xmlHttp_.getStatus();if(!(t<3||t==3&&!iLY(D))){D.JSC$19674_cancelled_||t!=4||H==7||(H==8||e<=0?OM(3):OM(2));r7F(D);var V=D.JSC$19674_xmlHttp_.getStatus();D.JSC$19674_lastStatusCode_=V;H=OLe(D);iLY(D)||D.JSC$19674_channelDebug_.debug(function(){return"No response text for uri "+D.JSC$19674_requestUri_+" status "+V});
D.JSC$19674_successful_=V==200;ZL4(D.JSC$19674_channelDebug_,D.JSC$19674_verb_,D.JSC$19674_requestUri_,D.JSC$19674_rid_,D.JSC$19674_retryId_,t,V);if(D.JSC$19674_successful_){if(D.decodeInitialResponse_&&!D.initialResponseDecoded_)if(e=U4Y(D))n$(D.JSC$19674_channelDebug_,D.JSC$19674_rid_,e,"Initial handshake response via X-HTTP-Initial-Response"),D.initialResponseDecoded_=!0,okQ(D,e);else{D.JSC$19674_successful_=!1;D.JSC$19674_lastError_=3;UM(12);D.JSC$19674_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
D.JSC$19674_rid_+")");ml(D);M_(D);return}D.decodeChunks_?P9b(D,t,H):(n$(D.JSC$19674_channelDebug_,D.JSC$19674_rid_,H,null),okQ(D,H));t==4&&ml(D);D.JSC$19674_successful_&&!D.JSC$19674_cancelled_&&(t==4?nk4(D.JSC$19674_channel_,D):(D.JSC$19674_successful_=!1,c74(D)))}else EKv(D.JSC$19674_xmlHttp_),V==400&&H.indexOf("Unknown SID")>0?(D.JSC$19674_lastError_=3,UM(12),D.JSC$19674_channelDebug_.warning("XMLHTTP Unknown SID ("+D.JSC$19674_rid_+")")):(D.JSC$19674_lastError_=0,UM(13),D.JSC$19674_channelDebug_.warning("XMLHTTP Bad status "+
V+" ("+D.JSC$19674_rid_+")")),ml(D),M_(D)}},U4Y=function(D){return D.JSC$19674_xmlHttp_&&(D=GD(D.JSC$19674_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.sD(D)?D:null},OLe=function(D){if(!C9Y(D))return D.JSC$19674_xmlHttp_.getResponseText();
var t=D.JSC$19674_xmlHttp_.getResponse();if(t==="")return"";var H="",e=t.length,V=_.Wl(D.JSC$19674_xmlHttp_)==4;if(!D.fetchResponseState_.JSC$19676_textDecoder){if(typeof TextDecoder==="undefined")return ml(D),M_(D),"";D.fetchResponseState_.JSC$19676_textDecoder=new _.VA.TextDecoder}for(var b=0;b<e;b++)D.fetchResponseState_.responseArrivedForFetch=!0,H+=D.fetchResponseState_.JSC$19676_textDecoder.decode(t[b],{stream:!(V&&b==e-1)});t.length=0;D.fetchResponseState_.responseBuffer+=H;D.JSC$19674_xmlHttpChunkStart_=
0;return D.fetchResponseState_.responseBuffer},iLY=function(D){return D.JSC$19674_xmlHttp_?D.fetchResponseState_.responseArrivedForFetch?!0:!(!D.JSC$19674_xmlHttp_.getResponseText()&&!D.JSC$19674_xmlHttp_.getResponse()):!1},C9Y=function(D){return D.JSC$19674_xmlHttp_?D.JSC$19674_verb_=="GET"&&D.JSC$19674_type_!=2&&D.JSC$19674_channel_.usesFetchStreams_:!1},P9b=function(D,t,H){for(var e=!0,V;!D.JSC$19674_cancelled_&&D.JSC$19674_xmlHttpChunkStart_<H.length;)if(V=m4t(D,H),V==NJF){t==4&&(D.JSC$19674_lastError_=
4,UM(14),e=!1);
n$(D.JSC$19674_channelDebug_,D.JSC$19674_rid_,null,"[Incomplete Response]");break}else if(V==KjH){D.JSC$19674_lastError_=4;UM(15);n$(D.JSC$19674_channelDebug_,D.JSC$19674_rid_,H,"[Invalid Chunk]");e=!1;break}else n$(D.JSC$19674_channelDebug_,D.JSC$19674_rid_,V,null),okQ(D,V);C9Y(D)&&D.JSC$19674_xmlHttpChunkStart_!=0&&(D.fetchResponseState_.responseBuffer=D.fetchResponseState_.responseBuffer.slice(D.JSC$19674_xmlHttpChunkStart_),D.JSC$19674_xmlHttpChunkStart_=0);t!=4||H.length!=0||D.fetchResponseState_.responseArrivedForFetch||
(D.JSC$19674_lastError_=1,UM(16),e=!1);D.JSC$19674_successful_=D.JSC$19674_successful_&&e;e?H.length>0&&!D.firstByteReceived_&&(D.firstByteReceived_=!0,t=D.JSC$19674_channel_,t.JSC$19693_backChannelRequest_==D&&t.detectBufferingProxy_&&!t.bpDetectionDone_&&(t.JSC$19693_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+H.length),MnF(t),t.bpDetectionDone_=!0,UM(11))):(n$(D.JSC$19674_channelDebug_,D.JSC$19674_rid_,H,"[Invalid Chunked Response]"),ml(D),M_(D))},m4t=function(D,t){var H=
D.JSC$19674_xmlHttpChunkStart_,e=t.indexOf("\n",H);
if(e==-1)return NJF;H=Number(t.substring(H,e));if(isNaN(H))return KjH;e+=1;if(e+H>t.length)return NJF;t=t.slice(e,e+H);D.JSC$19674_xmlHttpChunkStart_=e+H;return t};
C$.prototype.cancel=function(){this.JSC$19674_cancelled_=!0;ml(this)};
var c74=function(D){D.JSC$19674_watchDogTimeoutTime_=Date.now()+D.timeout_;SAO(D,D.timeout_)},SAO=function(D,t){if(D.JSC$19674_watchDogTimerId_!=null)throw Error("Nk");
D.JSC$19674_watchDogTimerId_=oX((0,_.Mc)(D.JSC$19678_onWatchDogTimeout_,D),t)},r7F=function(D){D.JSC$19674_watchDogTimerId_&&(_.VA.clearTimeout(D.JSC$19674_watchDogTimerId_),D.JSC$19674_watchDogTimerId_=null)};
C$.prototype.JSC$19678_onWatchDogTimeout_=function(){this.JSC$19674_watchDogTimerId_=null;var D=Date.now();D-this.JSC$19674_watchDogTimeoutTime_>=0?(hTi(this.JSC$19674_channelDebug_,this.JSC$19674_requestUri_),this.JSC$19674_type_!=2&&(OM(3),UM(17)),ml(this),this.JSC$19674_lastError_=2,M_(this)):(this.JSC$19674_channelDebug_.warning("WatchDog timer called too early"),SAO(this,this.JSC$19674_watchDogTimeoutTime_-D))};
var M_=function(D){D.JSC$19674_channel_.state_==0||D.JSC$19674_cancelled_||nk4(D.JSC$19674_channel_,D)},ml=function(D){r7F(D);
_.qc(D.JSC$19674_readyStateChangeThrottle_);D.JSC$19674_readyStateChangeThrottle_=null;D.JSC$19674_eventHandler_.removeAll();if(D.JSC$19674_xmlHttp_){var t=D.JSC$19674_xmlHttp_;D.JSC$19674_xmlHttp_=null;t.abort();t.dispose()}};
C$.prototype.getLastError=function(){return this.JSC$19674_lastError_};
var okQ=function(D,t){try{var H=D.JSC$19674_channel_;if(H.state_!=0&&(H.JSC$19693_backChannelRequest_==D||XOH(H.forwardChannelRequestPool_,D)))if(!D.initialResponseDecoded_&&XOH(H.forwardChannelRequestPool_,D)&&H.state_==3){try{var e=H.wireCodec_.JSC$19688_parser_.parse(t)}catch(w){e=null}if(Array.isArray(e)&&e.length==3){t=e;if(t[0]==0)a:if(H.JSC$19693_channelDebug_.debug("Server claims our backchannel is missing."),H.JSC$19693_backChannelTimerId_)H.JSC$19693_channelDebug_.debug("But we are currently starting the request.");
else{if(H.JSC$19693_backChannelRequest_)if(H.JSC$19693_backChannelRequest_.JSC$19674_requestStartTime_+3E3<D.JSC$19674_requestStartTime_)fuQ(H),Ljb(H);else break a;else H.JSC$19693_channelDebug_.warning("We do not have a BackChannel established");A7Y(H);UM(18)}else{H.JSC$19693_lastPostResponseArrayId_=t[1];var V=H.JSC$19693_lastPostResponseArrayId_-H.JSC$19693_lastArrayId_;if(0<V){var b=t[2];H.JSC$19693_channelDebug_.debug(b+" bytes (in "+V+" arrays) are outstanding on the BackChannel");b<37500&&
H.enableStreaming_&&H.JSC$19693_backChannelRetryCount_==0&&!H.JSC$19693_deadBackChannelTimerId_&&(H.JSC$19693_deadBackChannelTimerId_=oX((0,_.Mc)(H.JSC$19695_onBackChannelDead_,H),6E3))}}if(gkg(H.forwardChannelRequestPool_)<=1&&H.forwardChannelFlushedCallback_){try{H.forwardChannelFlushedCallback_()}catch(w){}H.forwardChannelFlushedCallback_=void 0}}else H.JSC$19693_channelDebug_.debug("Bad POST response data returned"),SJ(H,11)}else if((D.initialResponseDecoded_||H.JSC$19693_backChannelRequest_==
D)&&fuQ(H),!_.sD(t)){var a=H.wireCodec_.JSC$19688_parser_.parse(t);H.onInput_(a,D)}OM(4)}catch(w){}};var J7H=function(D,t){this.JSC$19681_mapId=D;this.map=t;this.context=null};var YAO=function(D){this.maxPoolSizeConfigured_=D||10;_.VA.PerformanceNavigationTiming?(D=_.VA.performance.getEntriesByType("navigation"),D=D.length>0&&(D[0].nextHopProtocol=="hq"||D[0].nextHopProtocol=="h2")):D=!!(_.VA.chrome&&_.VA.chrome.loadTimes&&_.VA.chrome.loadTimes()&&_.VA.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19684_maxSize_=D?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19684_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19684_request_=null;this.JSC$19684_pendingMessages_=
[]},luO=function(D){return D.JSC$19684_request_?!0:D.requestPool_?D.requestPool_.size>=D.JSC$19684_maxSize_:!1},gkg=function(D){return D.JSC$19684_request_?1:D.requestPool_?D.requestPool_.size:0},XOH=function(D,t){return D.JSC$19684_request_?D.JSC$19684_request_==t:D.requestPool_?D.requestPool_.has(t):!1},vkF=function(D,t){D.requestPool_?D.requestPool_.add(t):D.JSC$19684_request_=t},pOH=function(D,t){D.JSC$19684_request_&&D.JSC$19684_request_==t?D.JSC$19684_request_=null:D.requestPool_&&D.requestPool_.has(t)&&
D.requestPool_.delete(t)};
YAO.prototype.cancel=function(){this.JSC$19684_pendingMessages_=d4F(this);if(this.JSC$19684_request_)this.JSC$19684_request_.cancel(),this.JSC$19684_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var D=_.F(this.requestPool_.values()),t=D.next();!t.done;t=D.next())t.value.cancel();this.requestPool_.clear()}};
var d4F=function(D){if(D.JSC$19684_request_!=null)return D.JSC$19684_pendingMessages_.concat(D.JSC$19684_request_.JSC$19674_pendingMessages_);if(D.requestPool_!=null&&D.requestPool_.size!==0){var t=D.JSC$19684_pendingMessages_;D=_.F(D.requestPool_.values());for(var H=D.next();!H.done;H=D.next())t=t.concat(H.value.JSC$19674_pendingMessages_);return t}return _.pK(D.JSC$19684_pendingMessages_)},x4Z=function(D,t){D.JSC$19684_pendingMessages_=D.JSC$19684_pendingMessages_.concat(t)};var RTF=function(D,t){var H=new Pj;H.debug("TestLoadImage: loading "+D);if(_.VA.Image){var e=new Image;e.onload=_.o4(Xk,H,"TestLoadImage: loaded",!0,t,e);e.onerror=_.o4(Xk,H,"TestLoadImage: error",!1,t,e);e.onabort=_.o4(Xk,H,"TestLoadImage: abort",!1,t,e);e.ontimeout=_.o4(Xk,H,"TestLoadImage: timeout",!1,t,e);_.VA.setTimeout(function(){if(e.ontimeout)e.ontimeout()},1E4);
e.src=D}else t(!1)},ugg=function(D,t){var H=new Pj,e=new AbortController,V=setTimeout(function(){e.abort();
Xk(H,"TestPingServer: timeout",!1,t)},1E4);
fetch(D,{signal:e.signal}).then(function(b){clearTimeout(V);b.ok?Xk(H,"TestPingServer: ok",!0,t):Xk(H,"TestPingServer: server error",!1,t)}).catch(function(){clearTimeout(V);
Xk(H,"TestPingServer: error",!1,t)})},Xk=function(D,t,H,e,V){try{D.debug(t),V&&(V.onload=null,V.onerror=null,V.onabort=null,V.ontimeout=null),e(H)}catch(b){}};var Wjt=function(){this.JSC$19688_parser_=new rp};var f$=function(D,t,H){return H&&H.internalChannelParams?H.internalChannelParams[D]||t:t},L$=function(D){this.serverVersion_=0;
this.JSC$19693_outgoingMaps_=[];this.JSC$19693_channelDebug_=new Pj;this.JSC$19693_hostPrefix_=this.JSC$19693_backChannelUri_=this.JSC$19693_forwardChannelUri_=this.JSC$19693_path_=this.JSC$19693_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19693_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19693_extraHeaders_=null;this.JSC$19693_nextMapId_=this.JSC$19693_nextRid_=0;this.JSC$19693_failFast_=f$("failFast",!1,D);this.enableStreaming_=this.JSC$19693_deadBackChannelTimerId_=
this.JSC$19693_backChannelTimerId_=this.JSC$19693_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19693_lastPostResponseArrayId_=this.JSC$19693_lastArrayId_=-1;this.JSC$19693_backChannelAttemptId_=this.JSC$19693_backChannelRetryCount_=this.JSC$19693_forwardChannelRetryCount_=0;this.JSC$19693_baseRetryDelayMs_=f$("baseRetryDelayMs",5E3,D);this.JSC$19693_retryDelaySeedMs_=f$("retryDelaySeedMs",1E4,D);this.JSC$19693_forwardChannelMaxRetries_=
f$("forwardChannelMaxRetries",2,D);this.JSC$19693_forwardChannelRequestTimeoutMs_=f$("forwardChannelRequestTimeoutMs",2E4,D);this.JSC$19693_xmlHttpFactory_=D&&D.xmlHttpFactory||void 0;this.networkTestUrl_=D&&D.networkTestUrl||void 0;this.usesFetchStreams_=D&&D.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19693_supportsCrossDomainXhrs_=D&&D.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new YAO(D&&D.concurrentRequestLimit);this.wireCodec_=new Wjt;this.fastHandshake_=
D&&D.fastHandshake||!1;this.encodeInitMessageHeaders_=D&&D.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19693_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=D&&D.blockingHandshake||!1;D&&D.disableRedact&&this.JSC$19693_channelDebug_.disableRedact();D&&D.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
D&&D.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;D&&D.longPollingTimeout&&D.longPollingTimeout>0&&(this.longPollingTimeout_=D.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
L$.prototype.JSC$19695_channelVersion_=8;L$.prototype.state_=1;
L$.prototype.connect=function(D,t,H,e){this.JSC$19693_channelDebug_.debug("connect()");UM(0);this.JSC$19693_path_=D;this.JSC$19693_extraParams_=t||{};H&&e!==void 0&&(this.JSC$19693_extraParams_.OSID=H,this.JSC$19693_extraParams_.OAID=e);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19693_channelDebug_.debug("connectChannel_()");D=Iuv(this,null,this.JSC$19693_path_);this.JSC$19693_channelDebug_.debug("GetForwardChannelUri: "+D);this.JSC$19693_forwardChannelUri_=D;Q0i(this)};
L$.prototype.disconnect=function(){this.JSC$19693_channelDebug_.debug("disconnect()");y7F(this);if(this.state_==3){var D=this.JSC$19693_nextRid_++,t=this.JSC$19693_forwardChannelUri_.clone();_.yh(t,"SID",this.sid_);_.yh(t,"RID",D);_.yh(t,"TYPE","terminate");Av(this,t);D=new C$(this,this.JSC$19693_channelDebug_,this.sid_,D);D.JSC$19674_type_=2;D.JSC$19674_baseUri_=_.Or(t.clone());t=!1;if(_.VA.navigator&&_.VA.navigator.sendBeacon)try{t=_.VA.navigator.sendBeacon(D.JSC$19674_baseUri_.toString(),"")}catch(H){}!t&&
_.VA.Image&&((new Image).src=D.JSC$19674_baseUri_,t=!0);t||(D.JSC$19674_xmlHttp_=j0Y(D.JSC$19674_channel_,null),D.JSC$19674_xmlHttp_.send(D.JSC$19674_baseUri_));D.JSC$19674_requestStartTime_=Date.now();c74(D)}BJe(this)};
var Ljb=function(D){D.JSC$19693_backChannelRequest_&&(MnF(D),D.JSC$19693_backChannelRequest_.cancel(),D.JSC$19693_backChannelRequest_=null)},y7F=function(D){Ljb(D);
D.JSC$19693_backChannelTimerId_&&(_.VA.clearTimeout(D.JSC$19693_backChannelTimerId_),D.JSC$19693_backChannelTimerId_=null);fuQ(D);D.forwardChannelRequestPool_.cancel();D.JSC$19693_forwardChannelTimerId_&&(typeof D.JSC$19693_forwardChannelTimerId_==="number"&&_.VA.clearTimeout(D.JSC$19693_forwardChannelTimerId_),D.JSC$19693_forwardChannelTimerId_=null)};
L$.prototype.getState=function(){return this.state_};
var Q0i=function(D){luO(D.forwardChannelRequestPool_)||D.JSC$19693_forwardChannelTimerId_||(D.JSC$19693_forwardChannelTimerId_=!0,_.lV(D.JSC$19695_onStartForwardChannelTimer_,D),D.JSC$19693_forwardChannelRetryCount_=0)},Da4=function(D,t){if(gkg(D.forwardChannelRequestPool_)>=D.forwardChannelRequestPool_.JSC$19684_maxSize_-(D.JSC$19693_forwardChannelTimerId_?1:0))return!1;
if(D.JSC$19693_forwardChannelTimerId_)return D.JSC$19693_channelDebug_.debug("Use the retry request that is already scheduled."),D.JSC$19693_outgoingMaps_=t.JSC$19674_pendingMessages_.concat(D.JSC$19693_outgoingMaps_),!0;if(D.state_==1||D.state_==2||D.JSC$19693_forwardChannelRetryCount_>=(D.JSC$19693_failFast_?0:D.JSC$19693_forwardChannelMaxRetries_))return!1;D.JSC$19693_channelDebug_.debug("Going to retry POST");D.JSC$19693_forwardChannelTimerId_=oX((0,_.Mc)(D.JSC$19695_onStartForwardChannelTimer_,
D,t),zTZ(D,D.JSC$19693_forwardChannelRetryCount_));D.JSC$19693_forwardChannelRetryCount_++;return!0};
L$.prototype.JSC$19695_onStartForwardChannelTimer_=function(D){if(this.JSC$19693_forwardChannelTimerId_)if(this.JSC$19693_forwardChannelTimerId_=null,this.JSC$19693_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!D){this.JSC$19693_channelDebug_.debug("open_()");this.JSC$19693_nextRid_=Math.floor(Math.random()*1E5);D=this.JSC$19693_nextRid_++;var t=new C$(this,this.JSC$19693_channelDebug_,"",D),H=this.JSC$19693_extraHeaders_;this.initHeaders_&&(H?(H=_.J$.clone(H),_.J$.extend(H,this.initHeaders_)):
H=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(t.JSC$19674_extraHeaders_=H,H=null);var e;if(this.fastHandshake_)a:{for(var V=e=0;V<this.JSC$19693_outgoingMaps_.length;V++){b:{var b=this.JSC$19693_outgoingMaps_[V];if("__data__"in b.map&&(b=b.map.__data__,typeof b==="string")){b=b.length;break b}b=void 0}if(b===void 0)break;e+=b;if(e>4096){e=V;break a}if(e===4096||V===this.JSC$19693_outgoingMaps_.length-1){e=V+1;break a}}e=1E3}else e=1E3;e=tze(this,t,e);
V=this.JSC$19693_forwardChannelUri_.clone();_.yh(V,"RID",D);_.yh(V,"CVER",22);this.httpSessionIdParam_&&_.yh(V,"X-HTTP-Session-Id",this.httpSessionIdParam_);Av(this,V);H&&(this.encodeInitMessageHeaders_?e="headers="+_.Wn(T8F(H))+"&"+e:this.httpHeadersOverwriteParam_&&c2b(V,this.httpHeadersOverwriteParam_,H));vkF(this.forwardChannelRequestPool_,t);this.blockingHandshake_&&_.yh(V,"TYPE","init");this.fastHandshake_?(_.yh(V,"$req",e),_.yh(V,"SID","null"),t.decodeInitialResponse_=!0,TJH(t,V,null)):TJH(t,
V,e);this.state_=2}}else this.state_==3&&(D?HSv(this,D):this.JSC$19693_outgoingMaps_.length==0?this.JSC$19693_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):luO(this.forwardChannelRequestPool_)||(HSv(this),this.JSC$19693_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var HSv=function(D,t){var H;t?H=t.JSC$19674_rid_:H=D.JSC$19693_nextRid_++;var e=D.JSC$19693_forwardChannelUri_.clone();_.yh(e,"SID",D.sid_);_.yh(e,"RID",H);_.yh(e,"AID",D.JSC$19693_lastArrayId_);Av(D,e);D.httpHeadersOverwriteParam_&&D.JSC$19693_extraHeaders_&&c2b(e,D.httpHeadersOverwriteParam_,D.JSC$19693_extraHeaders_);H=new C$(D,D.JSC$19693_channelDebug_,D.sid_,H,D.JSC$19693_forwardChannelRetryCount_+1);D.httpHeadersOverwriteParam_===null&&(H.JSC$19674_extraHeaders_=D.JSC$19693_extraHeaders_);t&&
(D.JSC$19693_outgoingMaps_=t.JSC$19674_pendingMessages_.concat(D.JSC$19693_outgoingMaps_));t=tze(D,H,1E3);H.setTimeout(Math.round(D.JSC$19693_forwardChannelRequestTimeoutMs_*.5)+Math.round(D.JSC$19693_forwardChannelRequestTimeoutMs_*.5*Math.random()));vkF(D.forwardChannelRequestPool_,H);TJH(H,e,t)},Av=function(D,t){D.JSC$19693_extraParams_&&_.J$.forEach(D.JSC$19693_extraParams_,function(H,e){_.yh(t,e,H)});
D.handler_&&_.J$.forEach({},function(H,e){_.yh(t,e,H)})},tze=function(D,t,H){H=Math.min(D.JSC$19693_outgoingMaps_.length,H);
var e=D.handler_?(0,_.Mc)(D.handler_.JSC$19699_badMapError,D.handler_,D):null;a:{for(var V=D.JSC$19693_outgoingMaps_,b=-1;;){var a=["count="+H];b==-1?H>0?(b=V[0].JSC$19681_mapId,a.push("ofs="+b)):b=0:a.push("ofs="+b);for(var w=!0,h=0;h<H;h++){var K=V[h].JSC$19681_mapId,N=V[h].map;K-=b;if(K<0)b=Math.max(0,V[h].JSC$19681_mapId-100),w=!1;else try{K="req"+K+"_"||"";try{var k=N instanceof Map?N:Object.entries(N);for(var T=_.F(k),c=T.next();!c.done;c=T.next()){var U=_.F(c.value),S=U.next().value,L=U.next().value,
J=L;_.Wk(L)&&(J=(0,_.Ru)(L));a.push(K+S+"="+encodeURIComponent(J))}}catch(g){throw a.push(K+"type="+encodeURIComponent("_badmap")),g;}}catch(g){e&&e(N)}}if(w){k=a.join("&");break a}}k=void 0}D=D.JSC$19693_outgoingMaps_.splice(0,H);t.JSC$19674_pendingMessages_=D;return k},e_F=function(D){D.JSC$19693_backChannelRequest_||D.JSC$19693_backChannelTimerId_||(D.JSC$19693_backChannelAttemptId_=1,_.lV(D.JSC$19695_onStartBackChannelTimer_,D),D.JSC$19693_backChannelRetryCount_=0)},A7Y=function(D){if(D.JSC$19693_backChannelRequest_||
D.JSC$19693_backChannelTimerId_||D.JSC$19693_backChannelRetryCount_>=3)return!1;
D.JSC$19693_channelDebug_.debug("Going to retry GET");D.JSC$19693_backChannelAttemptId_++;D.JSC$19693_backChannelTimerId_=oX((0,_.Mc)(D.JSC$19695_onStartBackChannelTimer_,D),zTZ(D,D.JSC$19693_backChannelRetryCount_));D.JSC$19693_backChannelRetryCount_++;return!0};
L$.prototype.JSC$19695_onStartBackChannelTimer_=function(){this.JSC$19693_backChannelTimerId_=null;Vzi(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19693_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19693_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19693_backChannelRequest_+" "+this.handshakeRttMs_);else{var D=4*this.handshakeRttMs_;this.JSC$19693_channelDebug_.info("BP detection timer enabled: "+D);this.bpDetectionTimerId_=oX((0,_.Mc)(this.onBpDetectionTimer_,
this),D)}};
L$.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19693_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19693_backChannelRequest_.JSC$19674_xmlHttp_!=null){var D=this.JSC$19693_backChannelRequest_.JSC$19674_xmlHttp_.getResponseText();D&&this.JSC$19693_channelDebug_.warning("Timer should have been cancelled : "+D)}this.JSC$19693_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;UM(10);Ljb(this);Vzi(this)}else this.JSC$19693_channelDebug_.warning("Invalid operation.")};
var MnF=function(D){D.bpDetectionTimerId_!=null&&(D.JSC$19693_channelDebug_.debug("Cancel the BP detection timer."),_.VA.clearTimeout(D.bpDetectionTimerId_),D.bpDetectionTimerId_=null)},Vzi=function(D){D.JSC$19693_channelDebug_.debug("Creating new HttpRequest");
D.JSC$19693_backChannelRequest_=new C$(D,D.JSC$19693_channelDebug_,D.sid_,"rpc",D.JSC$19693_backChannelAttemptId_);D.httpHeadersOverwriteParam_===null&&(D.JSC$19693_backChannelRequest_.JSC$19674_extraHeaders_=D.JSC$19693_extraHeaders_);D.JSC$19693_backChannelRequest_.JSC$19674_readyStateChangeThrottleMs_=0;var t=D.JSC$19693_backChannelUri_.clone();_.yh(t,"RID","rpc");_.yh(t,"SID",D.sid_);_.yh(t,"AID",D.JSC$19693_lastArrayId_);_.yh(t,"CI",D.enableStreaming_?"0":"1");!D.enableStreaming_&&D.longPollingTimeout_&&
_.yh(t,"TO",D.longPollingTimeout_);_.yh(t,"TYPE","xmlhttp");Av(D,t);D.httpHeadersOverwriteParam_&&D.JSC$19693_extraHeaders_&&c2b(t,D.httpHeadersOverwriteParam_,D.JSC$19693_extraHeaders_);D.backChannelRequestTimeoutMs_&&D.JSC$19693_backChannelRequest_.setTimeout(D.backChannelRequestTimeoutMs_);var H=D.JSC$19693_backChannelRequest_,e=D.JSC$19693_hostPrefix_;H.JSC$19674_type_=1;H.JSC$19674_baseUri_=_.Or(t.clone());H.JSC$19674_postData_=null;H.decodeChunks_=!0;kOH(H,e);D.JSC$19693_channelDebug_.debug("New Request created")};
L$.prototype.JSC$19695_onBackChannelDead_=function(){this.JSC$19693_deadBackChannelTimerId_!=null&&(this.JSC$19693_deadBackChannelTimerId_=null,Ljb(this),A7Y(this),UM(19))};
var fuQ=function(D){D.JSC$19693_deadBackChannelTimerId_!=null&&(_.VA.clearTimeout(D.JSC$19693_deadBackChannelTimerId_),D.JSC$19693_deadBackChannelTimerId_=null)},nk4=function(D,t){D.JSC$19693_channelDebug_.debug("Request complete");
var H=null;if(D.JSC$19693_backChannelRequest_==t){fuQ(D);MnF(D);D.JSC$19693_backChannelRequest_=null;var e=2}else if(XOH(D.forwardChannelRequestPool_,t))H=t.JSC$19674_pendingMessages_,pOH(D.forwardChannelRequestPool_,t),e=1;else return;if(D.state_!=0)if(t.JSC$19674_successful_)e==1?(aub(t.JSC$19674_postData_?t.JSC$19674_postData_.length:0,Date.now()-t.JSC$19674_requestStartTime_,D.JSC$19693_forwardChannelRetryCount_),Q0i(D)):e_F(D);else{var V=t.JSC$19674_lastStatusCode_,b=t.getLastError();if(b==3||
b==0&&V>0)D.JSC$19693_channelDebug_.debug("Not retrying due to error type"),V>200&&(D.errorResponseStatusCode_=t.JSC$19674_lastStatusCode_);else{D.JSC$19693_channelDebug_.debug(function(){return"Maybe retrying, last error: "+Eke(b,D.errorResponseStatusCode_)});
if(e==1&&Da4(D,t)||e==2&&A7Y(D))return;D.JSC$19693_channelDebug_.debug("Exceeded max number of retries")}H&&H.length>0&&x4Z(D.forwardChannelRequestPool_,H);D.JSC$19693_channelDebug_.debug("Error: HTTP request failed");switch(b){case 1:SJ(D,5);break;case 4:SJ(D,10);break;case 3:SJ(D,6);break;default:SJ(D,2)}}},zTZ=function(D,t){var H=D.JSC$19693_baseRetryDelayMs_+Math.floor(Math.random()*D.JSC$19693_retryDelaySeedMs_);
D.isActive()||(D.JSC$19693_channelDebug_.debug("Inactive channel"),H*=2);return H*t};
L$.prototype.onInput_=function(D,t){for(var H=0;H<D.length;H++){var e=D[H],V=e[0];if(V<=this.JSC$19693_lastArrayId_)this.JSC$19693_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+V+", lastArrayId: "+this.JSC$19693_lastArrayId_);else if(V>this.JSC$19693_lastArrayId_+1&&this.JSC$19693_lastArrayId_>-1&&this.JSC$19693_channelDebug_.warning("Received non-consecutive message with arrayId: "+V+", lastArrayId: "+this.JSC$19693_lastArrayId_),this.JSC$19693_lastArrayId_=V,
e=e[1],this.state_==2)if(e[0]=="c"){this.sid_=e[1];this.JSC$19693_hostPrefix_=e[2];V=e[3];V!=null&&(this.JSC$19695_channelVersion_=V,this.JSC$19693_channelDebug_.info("VER="+this.JSC$19695_channelVersion_));V=e[4];V!=null&&(this.serverVersion_=V,this.JSC$19693_channelDebug_.info("SVER="+this.serverVersion_));e=e[5];e!=null&&typeof e==="number"&&e>0&&(this.backChannelRequestTimeoutMs_=e*=1.5,this.JSC$19693_channelDebug_.info("backChannelRequestTimeoutMs_="+e));if(e=t.JSC$19674_xmlHttp_){var b=GD(e,
"X-Client-Wire-Protocol");b&&(V=this.forwardChannelRequestPool_,!V.requestPool_&&(_.hT(b,"spdy")||_.hT(b,"quic")||_.hT(b,"h2"))&&(V.JSC$19684_maxSize_=V.maxPoolSizeConfigured_,V.requestPool_=new Set,V.JSC$19684_request_&&(vkF(V,V.JSC$19684_request_),V.JSC$19684_request_=null)));this.httpSessionIdParam_&&((e=GD(e,"X-HTTP-Session-Id"))?(this.httpSessionId_=e,_.yh(this.JSC$19693_forwardChannelUri_,this.httpSessionIdParam_,e)):this.JSC$19693_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19699_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-t.JSC$19674_requestStartTime_,this.JSC$19693_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));e=t;V=Iuv(this,this.JSC$19693_supportsCrossDomainXhrs_?this.JSC$19693_hostPrefix_:null,this.JSC$19693_path_);this.JSC$19693_channelDebug_.debug("GetBackChannelUri: "+V);this.JSC$19693_backChannelUri_=V;e.initialResponseDecoded_?(this.JSC$19693_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
pOH(this.forwardChannelRequestPool_,e),V=e,(b=this.backChannelRequestTimeoutMs_)&&V.setTimeout(b),V.JSC$19674_watchDogTimerId_&&(r7F(V),c74(V)),this.JSC$19693_backChannelRequest_=e):e_F(this);this.JSC$19693_outgoingMaps_.length>0&&Q0i(this)}else e[0]!="stop"&&e[0]!="close"||SJ(this,7);else this.state_==3&&(e[0]=="stop"||e[0]=="close"?e[0]=="stop"?SJ(this,7):this.disconnect():e[0]!="noop"&&this.handler_&&this.handler_.JSC$19699_channelHandleArray(e),this.JSC$19693_backChannelRetryCount_=0)}};
var SJ=function(D,t){D.JSC$19693_channelDebug_.info("Error code "+t);if(t==2){var H=(0,_.Mc)(D.testNetworkCallback_,D),e=D.networkTestUrl_,V=!e;e=new _.eP(e||"//www.google.com/images/cleardot.gif");_.VA.location&&_.VA.location.protocol=="http"||_.Kx(e,"https");_.Or(e);V?RTF(e.toString(),H):ugg(e.toString(),H)}else UM(2);D.onError_(t)};
L$.prototype.testNetworkCallback_=function(D){D?(this.JSC$19693_channelDebug_.info("Successfully pinged google.com"),UM(2)):(this.JSC$19693_channelDebug_.info("Failed to ping google.com"),UM(1))};
L$.prototype.onError_=function(D){this.JSC$19693_channelDebug_.debug("HttpChannel: error - "+D);this.state_=0;this.handler_&&this.handler_.JSC$19699_channelError(D);BJe(this);y7F(this)};
var BJe=function(D){D.state_=0;D.nonAckedMapsAtChannelClose_=[];if(D.handler_){var t=d4F(D.forwardChannelRequestPool_);if(t.length!=0||D.JSC$19693_outgoingMaps_.length!=0)D.JSC$19693_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+t.length+", outgoing: "+D.JSC$19693_outgoingMaps_.length}),_.x3(D.nonAckedMapsAtChannelClose_,t),_.x3(D.nonAckedMapsAtChannelClose_,D.JSC$19693_outgoingMaps_),D.forwardChannelRequestPool_.JSC$19684_pendingMessages_.length=0,_.pK(D.JSC$19693_outgoingMaps_),
D.JSC$19693_outgoingMaps_.length=0;
D.handler_.JSC$19699_channelClosed()}},bSi=function(D){if(D.state_==0)return D.nonAckedMapsAtChannelClose_;
var t=[];_.x3(t,d4F(D.forwardChannelRequestPool_));_.x3(t,D.JSC$19693_outgoingMaps_);return t},Iuv=function(D,t,H){var e=_.IK(H);
e.JSC$10036_domain_!=""?(t&&_.No(e,t+"."+e.JSC$10036_domain_),_.kY(e,e.JSC$10036_port_)):(e=_.VA.location,e=ZJH(e.protocol,t?t+"."+e.hostname:e.hostname,+e.port,H));t=D.httpSessionIdParam_;H=D.httpSessionId_;t&&H&&_.yh(e,t,H);_.yh(e,"VER",D.JSC$19695_channelVersion_);Av(D,e);return e},j0Y=function(D,t,H){if(t&&!D.JSC$19693_supportsCrossDomainXhrs_)throw Error("Ok");
t=D.usesFetchStreams_&&!D.JSC$19693_xmlHttpFactory_?new _.uV(new gR({streamBinaryChunks:H})):new _.uV(D.JSC$19693_xmlHttpFactory_);t.JSC$9800_withCredentials_=D.JSC$19693_supportsCrossDomainXhrs_;return t};
L$.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var qnF=function(){};
_.q=qnF.prototype;_.q.JSC$19699_channelOpened=function(){};
_.q.JSC$19699_channelHandleArray=function(){};
_.q.JSC$19699_channelError=function(){};
_.q.JSC$19699_channelClosed=function(){};
_.q.isActive=function(){return!0};
_.q.JSC$19699_badMapError=function(){};var FvY=function(){},Jv=function(D,t){_.J2.call(this);
this.JSC$19702_channel_=new L$(t);this.JSC$19702_url_=D;this.messageUrlParams_=t&&t.messageUrlParams||null;D=t&&t.messageHeaders||null;t&&t.clientProtocolHeaderRequired&&(D?_.J$.set(D,"X-Client-Protocol","webchannel"):D=_.J$.create("X-Client-Protocol","webchannel"));this.JSC$19702_channel_.JSC$19693_extraHeaders_=D;D=t&&t.initMessageHeaders||null;t&&t.messageContentType&&(D?_.J$.set(D,"X-WebChannel-Content-Type",t.messageContentType):D=_.J$.create("X-WebChannel-Content-Type",t.messageContentType));
t&&t.clientProfile&&(D?_.J$.set(D,"X-WebChannel-Client-Profile",t.clientProfile):D=_.J$.create("X-WebChannel-Client-Profile",t.clientProfile));this.JSC$19702_channel_.initHeaders_=D;(D=t&&t.httpHeadersOverwriteParam)&&!_.sD(D)&&(this.JSC$19702_channel_.httpHeadersOverwriteParam_=D);this.supportsCrossDomainXhr_=t&&t.supportsCrossDomainXhr||!1;this.sendRawJson_=t&&t.sendRawJson||!1;(t=t&&t.httpSessionIdParam)&&!_.sD(t)&&(this.JSC$19702_channel_.httpSessionIdParam_=t,_.J$.containsKey(this.messageUrlParams_,
t)&&_.J$.remove(this.messageUrlParams_,t));this.channelHandler_=new gp(this)};
_.Zj(Jv,_.J2);Jv.prototype.open=function(){this.JSC$19702_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19702_channel_.JSC$19693_supportsCrossDomainXhrs_=!0);this.JSC$19702_channel_.connect(this.JSC$19702_url_,this.messageUrlParams_||void 0)};
Jv.prototype.close=function(){this.JSC$19702_channel_.disconnect()};
Jv.prototype.send=function(D){var t=this.JSC$19702_channel_;if(typeof D==="string"){var H={};H.__data__=D;D=H}else this.sendRawJson_&&(H={},H.__data__=(0,_.Ru)(D),D=H);t.JSC$19693_outgoingMaps_.push(new J7H(t.JSC$19693_nextMapId_++,D));t.state_==3&&Q0i(t)};
Jv.prototype.disposeInternal=function(){this.JSC$19702_channel_.handler_=null;delete this.channelHandler_;this.JSC$19702_channel_.disconnect();delete this.JSC$19702_channel_;Jv.superClass_.disposeInternal.call(this)};
var aLi=function(D){tn4.call(this);D.__headers__&&(this.headers=D.__headers__,this.statusCode=D.__status__,delete D.__headers__,delete D.__status__);var t=D.__sm__;t?this.data=(this.metadataKey=_.J$.getAnyKey(t))?_.J$.get(t,this.metadataKey):t:this.data=D};
_.Zj(aLi,tn4);var wuY=function(D){HLF.call(this);this.status=1;this.errorCode=D};
_.Zj(wuY,HLF);var gp=function(D){this.JSC$19709_channel_=D};
_.Zj(gp,qnF);gp.prototype.JSC$19699_channelOpened=function(){this.JSC$19709_channel_.dispatchEvent("w")};
gp.prototype.JSC$19699_channelHandleArray=function(D){this.JSC$19709_channel_.dispatchEvent(new aLi(D))};
gp.prototype.JSC$19699_channelError=function(D){this.JSC$19709_channel_.dispatchEvent(new wuY(D))};
gp.prototype.JSC$19699_channelClosed=function(){this.JSC$19709_channel_.dispatchEvent("x")};
var ZSH=function(D,t){this.transportChannel_=D;this.JSC$19712_channel_=t},sWH=function(D){return bSi(D.JSC$19712_channel_).map(function(t){var H=D.transportChannel_;
t=t.map;"__data__"in t?(t=t.__data__,H=H.sendRawJson_?(0,_.Qt4)(t):t):H=t;return H})};
ZSH.prototype.commit=function(D){this.JSC$19712_channel_.forwardChannelFlushedCallback_=D};var YN=function(D){h_Y.dispatchEvent(new GzF(h_Y,D))},h_Y=new _.J2,GzF=function(D,t){_.Xv.call(this,"statevent",D);
this.stat=t};
_.P(GzF,_.Xv);var lL=function(D,t,H,e,V){this.JSC$19717_channel_=D;this.JSC$19717_channelDebug_=t;this.sid_=H;this.JSC$19717_rid_=e;this.JSC$19717_retryId_=V||1;this.timeout_=45E3;this.JSC$19717_eventHandler_=new _.GA(this);this.pollingTimer_=new _.hK;this.pollingTimer_.setInterval(250)};
_.q=lL.prototype;_.q.JSC$19719_extraHeaders_=null;_.q.JSC$19719_successful_=!1;_.q.JSC$19719_watchDogTimerId_=null;_.q.JSC$19719_watchDogTimeoutTime_=null;_.q.JSC$19719_requestStartTime_=null;_.q.JSC$19719_type_=null;_.q.JSC$19719_baseUri_=null;_.q.JSC$19719_requestUri_=null;_.q.JSC$19719_postData_=null;_.q.JSC$19719_xmlHttp_=null;_.q.JSC$19719_xmlHttpChunkStart_=0;_.q.trident_=null;_.q.JSC$19719_verb_=null;_.q.JSC$19719_lastError_=null;_.q.JSC$19719_lastStatusCode_=-1;_.q.sendClose_=!0;
_.q.JSC$19719_cancelled_=!1;_.q.JSC$19719_readyStateChangeThrottleMs_=0;_.q.JSC$19719_readyStateChangeThrottle_=null;var EqF=function(D,t){switch(D){case 0:return"Non-200 return code ("+t+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},KvY={},NrF={};
lL.prototype.setTimeout=function(D){this.timeout_=D};
var TrF=function(D,t,H){D.JSC$19719_type_=1;D.JSC$19719_baseUri_=_.Or(t.clone());D.JSC$19719_postData_=H;D.decodeChunks_=!0;kzF(D,null)},czY=function(D,t,H,e,V){D.JSC$19719_type_=1;
D.JSC$19719_baseUri_=_.Or(t.clone());D.JSC$19719_postData_=null;D.decodeChunks_=H;V&&(D.sendClose_=!1);kzF(D,e)},kzF=function(D,t){D.JSC$19719_requestStartTime_=Date.now();
jWi(D);D.JSC$19719_requestUri_=D.JSC$19719_baseUri_.clone();Ee(D.JSC$19719_requestUri_,"t",D.JSC$19717_retryId_);D.JSC$19719_xmlHttpChunkStart_=0;D.JSC$19719_xmlHttp_=D.JSC$19717_channel_.JSC$19726_createXhrIo(D.JSC$19717_channel_.JSC$19726_shouldUseSecondaryDomains()?t:null);D.JSC$19719_readyStateChangeThrottleMs_>0&&(D.JSC$19719_readyStateChangeThrottle_=new _.W5((0,_.Mc)(D.JSC$19719_xmlHttpHandler_,D,D.JSC$19719_xmlHttp_),D.JSC$19719_readyStateChangeThrottleMs_));D.JSC$19717_eventHandler_.listen(D.JSC$19719_xmlHttp_,
"readystatechange",D.JSC$19719_readyStateChangeHandler_);t=D.JSC$19719_extraHeaders_?_.J$.clone(D.JSC$19719_extraHeaders_):{};D.JSC$19719_postData_?(D.JSC$19719_verb_="POST",t["Content-Type"]="application/x-www-form-urlencoded",D.JSC$19719_xmlHttp_.send(D.JSC$19719_requestUri_,D.JSC$19719_verb_,D.JSC$19719_postData_,t)):(D.JSC$19719_verb_="GET",D.sendClose_&&!_.NG&&(t.Connection="close"),D.JSC$19719_xmlHttp_.send(D.JSC$19719_requestUri_,D.JSC$19719_verb_,null,t));D.JSC$19717_channel_.notifyServerReachabilityEvent(1);
t=D.JSC$19717_channelDebug_;var H=D.JSC$19719_postData_;if(H){var e="";H=H.split("&");for(var V=0;V<H.length;V++){var b=H[V].split("=");if(b.length>1){var a=b[0];b=b[1];var w=a.split("_");e=w.length>=2&&w[1]=="type"?e+(a+"="+b+"&"):e+(a+"=redacted&")}}}else e=null;t.info("XMLHTTP REQ ("+D.JSC$19717_rid_+") [attempt "+D.JSC$19717_retryId_+"]: "+D.JSC$19719_verb_+"\n"+D.JSC$19719_requestUri_+"\n"+e)};
lL.prototype.JSC$19719_readyStateChangeHandler_=function(D){D=D.target;var t=this.JSC$19719_readyStateChangeThrottle_;t&&_.Wl(D)==3?(this.JSC$19717_channelDebug_.debug("Throttling readystatechange."),t.fire()):this.JSC$19719_xmlHttpHandler_(D)};
lL.prototype.JSC$19719_xmlHttpHandler_=function(D){try{if(D==this.JSC$19719_xmlHttp_)a:{var t=_.Wl(this.JSC$19719_xmlHttp_),H=this.JSC$19719_xmlHttp_.JSC$9800_lastErrorCode_,e=this.JSC$19719_xmlHttp_.getStatus();if(_.NG&&!_.kf("420+")){if(t<4)break a}else if(t<3||t==3&&!this.JSC$19719_xmlHttp_.getResponseText())break a;this.JSC$19719_cancelled_||t!=4||H==7||(H==8||e<=0?this.JSC$19717_channel_.notifyServerReachabilityEvent(3):this.JSC$19717_channel_.notifyServerReachabilityEvent(2));$a4(this);var V=
this.JSC$19719_xmlHttp_.getStatus();this.JSC$19719_lastStatusCode_=V;var b=this.JSC$19719_xmlHttp_.getResponseText();b||this.JSC$19717_channelDebug_.debug("No response text for uri "+this.JSC$19719_requestUri_+" status "+V);this.JSC$19719_successful_=V==200;this.JSC$19717_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19717_rid_+") [ attempt "+this.JSC$19717_retryId_+"]: "+this.JSC$19719_verb_+"\n"+this.JSC$19719_requestUri_+"\n"+t+" "+V);if(this.JSC$19719_successful_){t==4&&vj(this);if(this.decodeChunks_){for(D=
!0;!this.JSC$19719_cancelled_&&this.JSC$19719_xmlHttpChunkStart_<b.length;){var a=iSF(this,b);if(a==NrF){t==4&&(this.JSC$19719_lastError_=4,YN(15),D=!1);p$(this.JSC$19717_channelDebug_,this.JSC$19717_rid_,null,"[Incomplete Response]");break}else if(a==KvY){this.JSC$19719_lastError_=4;YN(16);p$(this.JSC$19717_channelDebug_,this.JSC$19717_rid_,b,"[Invalid Chunk]");D=!1;break}else p$(this.JSC$19717_channelDebug_,this.JSC$19717_rid_,a,null),rzF(this,a)}t==4&&b.length==0&&(this.JSC$19719_lastError_=1,
YN(17),D=!1);this.JSC$19719_successful_=this.JSC$19719_successful_&&D;D||(p$(this.JSC$19717_channelDebug_,this.JSC$19717_rid_,b,"[Invalid Chunked Response]"),vj(this),OSF(this))}else p$(this.JSC$19717_channelDebug_,this.JSC$19717_rid_,b,null),rzF(this,b);this.JSC$19719_successful_&&!this.JSC$19719_cancelled_&&(t==4?this.JSC$19717_channel_.JSC$19726_onRequestComplete(this):(this.JSC$19719_successful_=!1,jWi(this)))}else V==400&&b.indexOf("Unknown SID")>0?(this.JSC$19719_lastError_=3,YN(13),this.JSC$19717_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19717_rid_+")")):(this.JSC$19719_lastError_=0,YN(14),this.JSC$19717_channelDebug_.warning("XMLHTTP Bad status "+V+" ("+this.JSC$19717_rid_+")")),vj(this),OSF(this)}else this.JSC$19717_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(w){this.JSC$19717_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var iSF=function(D,t){var H=D.JSC$19719_xmlHttpChunkStart_,e=t.indexOf("\n",H);if(e==-1)return NrF;H=Number(t.substring(H,e));if(isNaN(H))return KvY;e+=1;if(e+H>t.length)return NrF;t=t.slice(e,e+H);D.JSC$19719_xmlHttpChunkStart_=e+H;return t};
lL.prototype.cancel=function(){this.JSC$19719_cancelled_=!0;vj(this)};
var jWi=function(D){D.JSC$19719_watchDogTimeoutTime_=Date.now()+D.timeout_;UaF(D,D.timeout_)},UaF=function(D,t){if(D.JSC$19719_watchDogTimerId_!=null)throw Error("Nk");
D.JSC$19719_watchDogTimerId_=US((0,_.Mc)(D.JSC$19719_onWatchDogTimeout_,D),t)},$a4=function(D){D.JSC$19719_watchDogTimerId_&&(_.VA.clearTimeout(D.JSC$19719_watchDogTimerId_),D.JSC$19719_watchDogTimerId_=null)};
lL.prototype.JSC$19719_onWatchDogTimeout_=function(){this.JSC$19719_watchDogTimerId_=null;var D=Date.now();D-this.JSC$19719_watchDogTimeoutTime_>=0?(this.JSC$19717_channelDebug_.info("TIMEOUT: "+this.JSC$19719_requestUri_),this.JSC$19719_type_!=2&&this.JSC$19717_channel_.notifyServerReachabilityEvent(3),vj(this),this.JSC$19719_lastError_=2,YN(18),OSF(this)):(this.JSC$19717_channelDebug_.warning("WatchDog timer called too early"),UaF(this,this.JSC$19719_watchDogTimeoutTime_-D))};
var OSF=function(D){D.JSC$19717_channel_.JSC$19726_isClosed()||D.JSC$19719_cancelled_||D.JSC$19717_channel_.JSC$19726_onRequestComplete(D)},vj=function(D){$a4(D);
_.qc(D.JSC$19719_readyStateChangeThrottle_);D.JSC$19719_readyStateChangeThrottle_=null;D.pollingTimer_.stop();D.JSC$19717_eventHandler_.removeAll();if(D.JSC$19719_xmlHttp_){var t=D.JSC$19719_xmlHttp_;D.JSC$19719_xmlHttp_=null;t.abort();t.dispose()}D.trident_&&(D.trident_=null)};
lL.prototype.getLastError=function(){return this.JSC$19719_lastError_};
var rzF=function(D,t){try{D.JSC$19717_channel_.JSC$19726_onRequestData(D,t),D.JSC$19717_channel_.notifyServerReachabilityEvent(4)}catch(H){}};var p$=function(D,t,H,e){var V=D.info;a:if(H&&H!="y2f%"){try{var b=JSON.parse(H);if(b)for(var a=0;a<b.length;a++)if(Array.isArray(b[a])){var w=b[a];if(!(w.length<2)){var h=w[1];if(Array.isArray(h)&&!(h.length<1)){var K=h[0];if(K!="noop"&&K!="stop")for(var N=1;N<h.length;N++)h[N]=""}}}var k=(0,_.Ru)(b);break a}catch(T){D.debug("Exception parsing expected JS array - probably was not JS");k=H;break a}k=void 0}else k=H;V.call(D,"XMLHTTP TEXT ("+t+"): "+k+(e?" "+e:""))};
oG.prototype.debug=function(D){this.info(D)};
oG.prototype.info=function(){};
oG.prototype.warning=function(){};var oqO=function(D,t){this.JSC$19724_channel_=D;this.JSC$19724_channelDebug_=t;this.JSC$19724_parser_=new rp};
_.q=oqO.prototype;_.q.JSC$19726_extraHeaders_=null;_.q.JSC$19726_request_=null;_.q.receivedIntermediateResult_=!1;_.q.JSC$19726_path_=null;_.q.state_=null;_.q.JSC$19726_lastStatusCode_=-1;_.q.JSC$19726_hostPrefix_=null;_.q.blockedPrefix_=null;
_.q.connect=function(D){this.JSC$19726_path_=D;D=PqF(this.JSC$19724_channel_,this.JSC$19726_path_);YN(3);Date.now();var t=this.JSC$19724_channel_.firstTestResults_;t!=null?(this.JSC$19726_hostPrefix_=t[0],(this.blockedPrefix_=t[1])?(this.state_=1,nqg(this)):(this.state_=2,CqF(this))):(Ee(D,"MODE","init"),this.JSC$19726_request_=new lL(this,this.JSC$19724_channelDebug_),this.JSC$19726_request_.JSC$19719_extraHeaders_=this.JSC$19726_extraHeaders_,czY(this.JSC$19726_request_,D,!1,null,!0),this.state_=
0)};
var nqg=function(D){var t=mab(D.JSC$19724_channel_,D.blockedPrefix_,"/mail/images/cleardot.gif");_.Or(t);xyv(t.toString(),5E3,(0,_.Mc)(D.checkBlockedCallback_,D),3,2E3);D.notifyServerReachabilityEvent(1)};
oqO.prototype.checkBlockedCallback_=function(D){if(D)this.state_=2,CqF(this);else{YN(4);var t=this.JSC$19724_channel_;t.JSC$19727_channelDebug_.debug("Test Connection Blocked");t.JSC$19731_lastStatusCode_=t.connectionTest_.JSC$19726_lastStatusCode_;dp(t,9)}D&&this.notifyServerReachabilityEvent(2)};
var CqF=function(D){D.JSC$19724_channelDebug_.debug("TestConnection: starting stage 2");var t=D.JSC$19724_channel_.secondTestResults_;t!=null?(D.JSC$19724_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+t?"Buffered":"Unbuffered"),YN(5),t?(YN(11),xN(D.JSC$19724_channel_,D,!1)):(YN(12),xN(D.JSC$19724_channel_,D,!0))):(D.JSC$19726_request_=new lL(D,D.JSC$19724_channelDebug_),D.JSC$19726_request_.JSC$19719_extraHeaders_=D.JSC$19726_extraHeaders_,t=MzF(D.JSC$19724_channel_,
D.JSC$19726_hostPrefix_,D.JSC$19726_path_),YN(5),Ee(t,"TYPE","xmlhttp"),czY(D.JSC$19726_request_,t,!1,D.JSC$19726_hostPrefix_,!1))};
_.q=oqO.prototype;_.q.JSC$19726_createXhrIo=function(D){return this.JSC$19724_channel_.JSC$19726_createXhrIo(D)};
_.q.abort=function(){this.JSC$19726_request_&&(this.JSC$19726_request_.cancel(),this.JSC$19726_request_=null);this.JSC$19726_lastStatusCode_=-1};
_.q.JSC$19726_isClosed=function(){return!1};
_.q.JSC$19726_onRequestData=function(D,t){this.JSC$19726_lastStatusCode_=D.JSC$19719_lastStatusCode_;if(this.state_==0)if(this.JSC$19724_channelDebug_.debug("TestConnection: Got data for stage 1"),t){try{var H=this.JSC$19724_parser_.parse(t)}catch(e){SnZ(this.JSC$19724_channel_,this);return}this.JSC$19726_hostPrefix_=H[0];this.blockedPrefix_=H[1]}else this.JSC$19724_channelDebug_.debug("TestConnection: Null responseText"),SnZ(this.JSC$19724_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(YN(7),Date.now()):t=="11111"?(YN(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19726_lastStatusCode_=200,this.JSC$19726_request_.cancel(),this.JSC$19724_channelDebug_.debug("Test connection succeeded; using streaming connection"),YN(12),xN(this.JSC$19724_channel_,this,!0)):(YN(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.q.JSC$19726_onRequestComplete=function(){this.JSC$19726_lastStatusCode_=this.JSC$19726_request_.JSC$19719_lastStatusCode_;this.JSC$19726_request_.JSC$19719_successful_?this.state_==0?(this.JSC$19724_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,nqg(this)):(this.state_=2,CqF(this))):this.state_==2&&(this.JSC$19724_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19724_channelDebug_.debug("Test connection succeeded; using streaming connection"),
YN(12),xN(this.JSC$19724_channel_,this,!0)):(this.JSC$19724_channelDebug_.debug("Test connection failed; not using streaming"),YN(11),xN(this.JSC$19724_channel_,this,!1))):(this.JSC$19724_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?YN(9):this.state_==2&&YN(10),SnZ(this.JSC$19724_channel_,this,this.JSC$19726_request_.getLastError()))};
_.q.JSC$19726_shouldUseSecondaryDomains=function(){return this.JSC$19724_channel_.JSC$19726_shouldUseSecondaryDomains()};
_.q.isActive=function(){return this.JSC$19724_channel_.isActive()};
_.q.notifyServerReachabilityEvent=function(D){this.JSC$19724_channel_.notifyServerReachabilityEvent(D)};var RX=function(D,t,H){this.state_=1;this.JSC$19727_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19727_channelDebug_=new oG;this.JSC$19727_parser_=new rp;this.firstTestResults_=D||null;this.secondTestResults_=t!=null?t:null;this.asyncTest_=H||!1},XuZ=function(D,t){this.JSC$19729_mapId=D;
this.map=t;this.context=null};
_.q=RX.prototype;_.q.JSC$19731_extraHeaders_=null;_.q.JSC$19731_extraParams_=null;_.q.forwardChannelRequest_=null;_.q.JSC$19731_backChannelRequest_=null;_.q.JSC$19731_path_=null;_.q.JSC$19731_forwardChannelUri_=null;_.q.JSC$19731_backChannelUri_=null;_.q.JSC$19731_hostPrefix_=null;_.q.JSC$19731_nextRid_=0;_.q.JSC$19731_nextMapId_=0;_.q.handler_=null;_.q.JSC$19731_forwardChannelTimerId_=null;_.q.JSC$19731_backChannelTimerId_=null;_.q.JSC$19731_deadBackChannelTimerId_=null;_.q.connectionTest_=null;
_.q.useChunked_=null;_.q.JSC$19731_lastArrayId_=-1;_.q.JSC$19731_lastPostResponseArrayId_=-1;_.q.JSC$19731_lastStatusCode_=-1;_.q.JSC$19731_forwardChannelRetryCount_=0;_.q.JSC$19731_backChannelRetryCount_=0;_.q.JSC$19731_channelVersion_=8;var fLg={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},Lvg=function(D,t,H,e){_.Xv.call(this,"timingevent",D);this.size=t;this.rtt=H;this.retries=e};
_.Zj(Lvg,_.Xv);var Azi=function(D){_.Xv.call(this,"serverreachability",D)};
_.Zj(Azi,_.Xv);RX.prototype.connect=function(D,t,H,e,V){this.JSC$19727_channelDebug_.debug("connect()");YN(0);this.JSC$19731_path_=t;this.JSC$19731_extraParams_=H||{};e&&V!==void 0&&(this.JSC$19731_extraParams_.OSID=e,this.JSC$19731_extraParams_.OAID=V);this.asyncTest_?(US((0,_.Mc)(this.connectTest_,this,D),100),gqt(this)):this.connectTest_(D)};
RX.prototype.disconnect=function(){this.JSC$19727_channelDebug_.debug("disconnect()");Jzv(this);if(this.state_==3){var D=this.JSC$19731_nextRid_++,t=this.JSC$19731_forwardChannelUri_.clone();_.yh(t,"SID",this.sid_);_.yh(t,"RID",D);_.yh(t,"TYPE","terminate");uL(this,t);D=new lL(this,this.JSC$19727_channelDebug_,this.sid_,D);D.JSC$19719_type_=2;D.JSC$19719_baseUri_=_.Or(t.clone());(new Image).src=D.JSC$19719_baseUri_.toString();D.JSC$19719_requestStartTime_=Date.now();jWi(D)}Yng(this)};
RX.prototype.connectTest_=function(D){this.JSC$19727_channelDebug_.debug("connectTest_()");this.connectionTest_=new oqO(this,this.JSC$19727_channelDebug_);this.connectionTest_.JSC$19726_extraHeaders_=this.JSC$19731_extraHeaders_;this.connectionTest_.JSC$19724_parser_=this.JSC$19727_parser_;this.connectionTest_.connect(D)};
var gqt=function(D){D.JSC$19727_channelDebug_.debug("connectChannel_()");D.JSC$19731_ensureInState_(1,0);D.JSC$19731_forwardChannelUri_=PqF(D,D.JSC$19731_path_);lLF(D)},Jzv=function(D){D.connectionTest_&&(D.connectionTest_.abort(),D.connectionTest_=null);
D.JSC$19731_backChannelRequest_&&(D.JSC$19731_backChannelRequest_.cancel(),D.JSC$19731_backChannelRequest_=null);D.JSC$19731_backChannelTimerId_&&(_.VA.clearTimeout(D.JSC$19731_backChannelTimerId_),D.JSC$19731_backChannelTimerId_=null);vqe(D);D.forwardChannelRequest_&&(D.forwardChannelRequest_.cancel(),D.forwardChannelRequest_=null);D.JSC$19731_forwardChannelTimerId_&&(_.VA.clearTimeout(D.JSC$19731_forwardChannelTimerId_),D.JSC$19731_forwardChannelTimerId_=null)},puZ=function(D,t){if(D.state_==0)throw Error("Qk");
D.JSC$19727_outgoingMaps_.length==1E3&&D.JSC$19727_parser_.stringify(t);D.JSC$19727_outgoingMaps_.push(new XuZ(D.JSC$19731_nextMapId_++,t));D.state_!=2&&D.state_!=3||lLF(D)};
RX.prototype.JSC$19726_isClosed=function(){return this.state_==0};
RX.prototype.getState=function(){return this.state_};
var lLF=function(D){D.forwardChannelRequest_||D.JSC$19731_forwardChannelTimerId_||(D.JSC$19731_forwardChannelTimerId_=US((0,_.Mc)(D.JSC$19731_onStartForwardChannelTimer_,D),0),D.JSC$19731_forwardChannelRetryCount_=0)};
RX.prototype.JSC$19731_onStartForwardChannelTimer_=function(D){this.JSC$19731_forwardChannelTimerId_=null;dae(this,D)};
var dae=function(D,t){D.JSC$19727_channelDebug_.debug("startForwardChannel_");if(D.state_==1){if(!t){D.JSC$19727_channelDebug_.debug("open_()");D.JSC$19731_nextRid_=Math.floor(Math.random()*1E5);t=D.JSC$19731_nextRid_++;var H=new lL(D,D.JSC$19727_channelDebug_,"",t);H.JSC$19719_extraHeaders_=D.JSC$19731_extraHeaders_;var e=xaF(D),V=D.JSC$19731_forwardChannelUri_.clone();_.yh(V,"RID",t);_.yh(V,"CVER","1");uL(D,V);TrF(H,V,e);D.forwardChannelRequest_=H;D.state_=2}}else D.state_==3&&(t?LX4(D,t):D.JSC$19727_outgoingMaps_.length==
0?D.JSC$19727_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):D.forwardChannelRequest_||(LX4(D),D.JSC$19727_channelDebug_.debug("startForwardChannel_ finished, sent request")))},LX4=function(D,t){if(t)if(D.JSC$19731_channelVersion_>6){D.JSC$19727_outgoingMaps_=D.pendingMaps_.concat(D.JSC$19727_outgoingMaps_);
D.pendingMaps_.length=0;var H=D.JSC$19731_nextRid_-1;t=xaF(D)}else H=t.JSC$19717_rid_,t=t.JSC$19719_postData_;else H=D.JSC$19731_nextRid_++,t=xaF(D);var e=D.JSC$19731_forwardChannelUri_.clone();_.yh(e,"SID",D.sid_);_.yh(e,"RID",H);_.yh(e,"AID",D.JSC$19731_lastArrayId_);uL(D,e);H=new lL(D,D.JSC$19727_channelDebug_,D.sid_,H,D.JSC$19731_forwardChannelRetryCount_+1);H.JSC$19719_extraHeaders_=D.JSC$19731_extraHeaders_;H.setTimeout(1E4+Math.round(1E4*Math.random()));D.forwardChannelRequest_=H;TrF(H,e,t)},
uL=function(D,t){D.handler_&&(D=D.handler_.JSC$19738_getAdditionalParams())&&_.J$.forEach(D,function(H,e){_.yh(t,e,H)})},xaF=function(D){var t=Math.min(D.JSC$19727_outgoingMaps_.length,1E3),H=["count="+t];
if(D.JSC$19731_channelVersion_>6&&t>0){var e=D.JSC$19727_outgoingMaps_[0].JSC$19729_mapId;H.push("ofs="+e)}else e=0;for(var V={},b=0;b<t;V={mapId$jscomp$3:void 0},b++){V.mapId$jscomp$3=D.JSC$19727_outgoingMaps_[b].JSC$19729_mapId;var a=D.JSC$19727_outgoingMaps_[b].map;V.mapId$jscomp$3=D.JSC$19731_channelVersion_<=6?b:V.mapId$jscomp$3-e;try{_.J$.forEach(a,function(w){return function(h,K){H.push("req"+w.mapId$jscomp$3+"_"+K+"="+encodeURIComponent(h))}}(V))}catch(w){H.push("req"+V.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}D.pendingMaps_=D.pendingMaps_.concat(D.JSC$19727_outgoingMaps_.splice(0,t));
return H.join("&")},AXY=function(D){D.JSC$19731_backChannelRequest_||D.JSC$19731_backChannelTimerId_||(D.JSC$19731_backChannelAttemptId_=1,D.JSC$19731_backChannelTimerId_=US((0,_.Mc)(D.JSC$19731_onStartBackChannelTimer_,D),0),D.JSC$19731_backChannelRetryCount_=0)},JXi=function(D){if(D.JSC$19731_backChannelRequest_||D.JSC$19731_backChannelTimerId_||D.JSC$19731_backChannelRetryCount_>=3)return!1;
D.JSC$19727_channelDebug_.debug("Going to retry GET");D.JSC$19731_backChannelAttemptId_++;D.JSC$19731_backChannelTimerId_=US((0,_.Mc)(D.JSC$19731_onStartBackChannelTimer_,D),g7Y(D,D.JSC$19731_backChannelRetryCount_));D.JSC$19731_backChannelRetryCount_++;return!0};
RX.prototype.JSC$19731_onStartBackChannelTimer_=function(){this.JSC$19731_backChannelTimerId_=null;this.JSC$19727_channelDebug_.debug("Creating new HttpRequest");this.JSC$19731_backChannelRequest_=new lL(this,this.JSC$19727_channelDebug_,this.sid_,"rpc",this.JSC$19731_backChannelAttemptId_);this.JSC$19731_backChannelRequest_.JSC$19719_extraHeaders_=this.JSC$19731_extraHeaders_;this.JSC$19731_backChannelRequest_.JSC$19719_readyStateChangeThrottleMs_=0;var D=this.JSC$19731_backChannelUri_.clone();_.yh(D,
"RID","rpc");_.yh(D,"SID",this.sid_);_.yh(D,"CI",this.useChunked_?"0":"1");_.yh(D,"AID",this.JSC$19731_lastArrayId_);uL(this,D);_.yh(D,"TYPE","xmlhttp");czY(this.JSC$19731_backChannelRequest_,D,!0,this.JSC$19731_hostPrefix_,!1);this.JSC$19727_channelDebug_.debug("New Request created")};
var xN=function(D,t,H){D.JSC$19727_channelDebug_.debug("Test Connection Finished");D.useChunked_=D.secondTestResults_==null?H:!D.secondTestResults_;D.JSC$19731_lastStatusCode_=t.JSC$19726_lastStatusCode_;D.asyncTest_||gqt(D)},SnZ=function(D,t){D.JSC$19727_channelDebug_.debug("Test Connection Failed");
D.JSC$19731_lastStatusCode_=t.JSC$19726_lastStatusCode_;dp(D,2)};
RX.prototype.JSC$19726_onRequestData=function(D,t){if(this.state_!=0&&(this.JSC$19731_backChannelRequest_==D||this.forwardChannelRequest_==D))if(this.JSC$19731_lastStatusCode_=D.JSC$19719_lastStatusCode_,this.forwardChannelRequest_==D&&this.state_==3)if(this.JSC$19731_channelVersion_>7){try{var H=this.JSC$19727_parser_.parse(t)}catch(e){H=null}if(Array.isArray(H)&&H.length==3)if(t=H,t[0]==0)a:if(this.JSC$19727_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19731_backChannelTimerId_)this.JSC$19727_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19731_backChannelRequest_)if(this.JSC$19731_backChannelRequest_.JSC$19719_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19719_requestStartTime_)vqe(this),this.JSC$19731_backChannelRequest_.cancel(),this.JSC$19731_backChannelRequest_=null;else break a;else this.JSC$19727_channelDebug_.warning("We do not have a BackChannel established");JXi(this);YN(19)}else this.JSC$19731_lastPostResponseArrayId_=t[1],D=this.JSC$19731_lastPostResponseArrayId_-this.JSC$19731_lastArrayId_,0<
D&&(t=t[2],this.JSC$19727_channelDebug_.debug(t+" bytes (in "+D+" arrays) are outstanding on the BackChannel"),t<37500&&this.useChunked_&&this.JSC$19731_backChannelRetryCount_==0&&!this.JSC$19731_deadBackChannelTimerId_&&(this.JSC$19731_deadBackChannelTimerId_=US((0,_.Mc)(this.JSC$19731_onBackChannelDead_,this),6E3)));else this.JSC$19727_channelDebug_.debug("Bad POST response data returned"),dp(this,11)}else t!="y2f%"&&(this.JSC$19727_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
dp(this,11));else this.JSC$19731_backChannelRequest_==D&&vqe(this),_.sD(t)||(D=this.JSC$19727_parser_.parse(t),this.onInput_(D))};
RX.prototype.JSC$19731_onBackChannelDead_=function(){this.JSC$19731_deadBackChannelTimerId_!=null&&(this.JSC$19731_deadBackChannelTimerId_=null,this.JSC$19731_backChannelRequest_.cancel(),this.JSC$19731_backChannelRequest_=null,JXi(this),YN(20))};
var vqe=function(D){D.JSC$19731_deadBackChannelTimerId_!=null&&(_.VA.clearTimeout(D.JSC$19731_deadBackChannelTimerId_),D.JSC$19731_deadBackChannelTimerId_=null)};
RX.prototype.JSC$19726_onRequestComplete=function(D){this.JSC$19727_channelDebug_.debug("Request complete");if(this.JSC$19731_backChannelRequest_==D){vqe(this);this.JSC$19731_backChannelRequest_=null;var t=2}else if(this.forwardChannelRequest_==D)this.forwardChannelRequest_=null,t=1;else return;this.JSC$19731_lastStatusCode_=D.JSC$19719_lastStatusCode_;if(this.state_!=0)if(D.JSC$19719_successful_)if(t==1){t=D.JSC$19719_postData_?D.JSC$19719_postData_.length:0;D=Date.now()-D.JSC$19719_requestStartTime_;
var H=h_Y;H.dispatchEvent(new Lvg(H,t,D,this.JSC$19731_forwardChannelRetryCount_));lLF(this);this.handler_&&this.handler_.JSC$19738_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else AXY(this);else{H=D.getLastError();if(H==3||H==7||H==0&&this.JSC$19731_lastStatusCode_>0)this.JSC$19727_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19727_channelDebug_.debug("Maybe retrying, last error: "+EqF(H,this.JSC$19731_lastStatusCode_));var e;if(e=t==1)this.forwardChannelRequest_||
this.JSC$19731_forwardChannelTimerId_||this.state_==1||this.JSC$19731_forwardChannelRetryCount_>=2?e=!1:(this.JSC$19727_channelDebug_.debug("Going to retry POST"),this.JSC$19731_forwardChannelTimerId_=US((0,_.Mc)(this.JSC$19731_onStartForwardChannelTimer_,this,D),g7Y(this,this.JSC$19731_forwardChannelRetryCount_)),this.JSC$19731_forwardChannelRetryCount_++,e=!0);if(e||t==2&&JXi(this))return;this.JSC$19727_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19727_channelDebug_.debug("Error: HTTP request failed");
switch(H){case 1:dp(this,5);break;case 4:dp(this,10);break;case 3:dp(this,6);break;case 7:dp(this,12);break;default:dp(this,2)}}};
var g7Y=function(D,t){var H=5E3+Math.floor(Math.random()*1E4);D.isActive()||(D.JSC$19727_channelDebug_.debug("Inactive channel"),H*=2);return H*t};
RX.prototype.onInput_=function(D){for(var t=0;t<D.length;t++){var H=D[t];this.JSC$19731_lastArrayId_=H[0];H=H[1];this.state_==2?H[0]=="c"?(this.sid_=H[1],this.JSC$19731_hostPrefix_=H[2],H=H[3],H!=null?this.JSC$19731_channelVersion_=H:this.JSC$19731_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19738_channelOpened(),this.JSC$19731_backChannelUri_=MzF(this,this.JSC$19731_hostPrefix_,this.JSC$19731_path_),AXY(this)):H[0]=="stop"&&dp(this,7):this.state_==3&&(H[0]=="stop"?dp(this,7):
H[0]!="noop"&&this.handler_&&this.handler_.JSC$19738_channelHandleArray(H),this.JSC$19731_backChannelRetryCount_=0)}};
RX.prototype.JSC$19731_ensureInState_=function(D){if(!_.l8(arguments,this.state_))throw Error("Rk`"+this.state_);};
var dp=function(D,t){D.JSC$19727_channelDebug_.info("Error code "+t);if(t==2||t==9){var H=null;D.handler_&&(H=null);var e=(0,_.Mc)(D.testGoogleComCallback_,D);H||(H=new _.eP("//www.google.com/images/cleardot.gif"),_.Or(H));dyH(H.toString(),1E4,e)}else YN(2);D.onError_(t)};
RX.prototype.testGoogleComCallback_=function(D){D?(this.JSC$19727_channelDebug_.info("Successfully pinged google.com"),YN(2)):(this.JSC$19727_channelDebug_.info("Failed to ping google.com"),YN(1),this.onError_(8))};
RX.prototype.onError_=function(D){this.JSC$19727_channelDebug_.debug("HttpChannel: error - "+D);this.state_=0;this.handler_&&this.handler_.JSC$19738_channelError(D);Yng(this);Jzv(this)};
var Yng=function(D){D.state_=0;D.JSC$19731_lastStatusCode_=-1;if(D.handler_)if(D.pendingMaps_.length==0&&D.JSC$19727_outgoingMaps_.length==0)D.handler_.JSC$19738_channelClosed();else{D.JSC$19727_channelDebug_.debug("Number of undelivered maps, pending: "+D.pendingMaps_.length+", outgoing: "+D.JSC$19727_outgoingMaps_.length);var t=_.pK(D.pendingMaps_),H=_.pK(D.JSC$19727_outgoingMaps_);D.pendingMaps_.length=0;D.JSC$19727_outgoingMaps_.length=0;D.handler_.JSC$19738_channelClosed(t,H)}},PqF=function(D,
t){t=mab(D,null,t);
D.JSC$19727_channelDebug_.debug("GetForwardChannelUri: "+t);return t},MzF=function(D,t,H){t=mab(D,D.JSC$19726_shouldUseSecondaryDomains()?t:null,H);
D.JSC$19727_channelDebug_.debug("GetBackChannelUri: "+t);return t},mab=function(D,t,H){var e=_.IK(H);
if(e.JSC$10036_domain_!="")t&&_.No(e,t+"."+e.JSC$10036_domain_),_.kY(e,e.JSC$10036_port_);else{var V=window.location;e=ZJH(V.protocol,t?t+"."+V.hostname:V.hostname,+V.port,H)}D.JSC$19731_extraParams_&&_.J$.forEach(D.JSC$19731_extraParams_,function(b,a){_.yh(e,a,b)});
_.yh(e,"VER",D.JSC$19731_channelVersion_);uL(D,e);return e};
RX.prototype.JSC$19726_createXhrIo=function(D){if(D)throw Error("Ok");D=new _.uV;D.JSC$9800_withCredentials_=!1;return D};
RX.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
RX.prototype.notifyServerReachabilityEvent=function(D){var t=h_Y;t.dispatchEvent(new Azi(t,D))};
RX.prototype.JSC$19726_shouldUseSecondaryDomains=function(){return!1};
new Nqv;var YgZ=function(){};
_.q=YgZ.prototype;_.q.JSC$19738_channelOpened=function(){};
_.q.JSC$19738_channelHandleArray=function(){};
_.q.JSC$19738_channelSuccess=function(){};
_.q.JSC$19738_channelError=function(){};
_.q.JSC$19738_channelClosed=function(){};
_.q.JSC$19738_getAdditionalParams=function(){return{}};
_.q.isActive=function(){return!0};var lQF=function(D){D.front_.length===0&&(D.front_=D.back_,D.front_.reverse(),D.back_=[])};
_.q=udt.prototype;_.q.enqueue=function(D){this.back_.push(D)};
_.q.peek=function(){lQF(this);return _.fK(this.front_)};
_.q.getCount=function(){return this.front_.length+this.back_.length};
_.q.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.q.clear=function(){this.front_=[];this.back_=[]};
_.q.contains=function(D){return _.l8(this.front_,D)||_.l8(this.back_,D)};
_.q.remove=function(D){var t=this.front_;var H=Array.prototype.lastIndexOf.call(t,D,t.length-1);H>=0?(_.MVX(t,H),t=!0):t=!1;return t||_.vk(this.back_,D)};
_.q.getValues=function(){for(var D=[],t=this.front_.length-1;t>=0;--t)D.push(this.front_[t]);t=this.back_.length;for(var H=0;H<t;++H)D.push(this.back_[H]);return D};var Wj=function(D){this.JSC$19742_map_=new _.nL;this.size=0;D&&this.addAll(D)},v7b=function(D){var t=typeof D;
return t=="object"&&D||t=="function"?"o"+_.I$(D):t.charAt(0)+D};
_.q=Wj.prototype;_.q.getCount=function(){return this.JSC$19742_map_.size};
_.q.add=function(D){this.JSC$19742_map_.set(v7b(D),D);this.size=this.JSC$19742_map_.size};
_.q.addAll=function(D){D=_.Er(D);for(var t=D.length,H=0;H<t;H++)this.add(D[H]);this.size=this.JSC$19742_map_.size};
_.q.removeAll=function(D){D=_.Er(D);for(var t=D.length,H=0;H<t;H++)this.remove(D[H]);this.size=this.JSC$19742_map_.size};
_.q.delete=function(D){D=this.JSC$19742_map_.remove(v7b(D));this.size=this.JSC$19742_map_.size;return D};
_.q.remove=function(D){return this.delete(D)};
_.q.clear=function(){this.JSC$19742_map_.clear();this.size=0};
_.q.isEmpty=function(){return this.JSC$19742_map_.size===0};
_.q.has=function(D){return this.JSC$19742_map_.containsKey(v7b(D))};
_.q.contains=function(D){return this.JSC$19742_map_.containsKey(v7b(D))};
_.q.getValues=function(){return this.JSC$19742_map_.getValues()};
_.q.values=function(){return this.JSC$19742_map_.values()};
_.q.clone=function(){return new Wj(this)};
_.q.equals=function(D){return this.getCount()==ayt(D)&&pPZ(this,D)};
var pPZ=function(D,t){var H=ayt(t);if(D.getCount()>H)return!1;!(t instanceof Wj)&&H>5&&(t=new Wj(t));return wri(D,function(e){var V=t;return V.contains&&typeof V.contains=="function"?V.contains(e):V.containsValue&&typeof V.containsValue=="function"?V.containsValue(e):_.d6(V)||typeof V==="string"?_.l8(V,e):_.J$.containsValue(V,e)})};
Wj.prototype.__iterator__=function(){return this.JSC$19742_map_.__iterator__(!1)};
Wj.prototype[Symbol.iterator]=function(){return this.values()};var dKH={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(D){return(this._clampValue(D)-this.min)/(this.max-this.min)},
_clampValue:function(D){return Math.min(this.max,Math.max(this.min,this._calcStep(D)))},
_calcStep:function(D){D=parseFloat(D);if(!this.step)return D;D=Math.round((D-this.min)/this.step);return this.step<1?D/(1/this.step)+this.min:D*this.step+this.min},
_validateValue:function(){var D=this._clampValue(this.value);this.value=this.oldValue=isNaN(D)?this.oldValue:D;return this.value!==D},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var xKO;var RIg;_.gx({_template:function(){if(RIg!==void 0)return RIg;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;xKO===void 0&&(xKO=document.createElement("template"));var e=xKO;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return RIg=D},
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(){_.Vi(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(D){D.keyCode===27&&(D.preventDefault(),this.close())},
_track:function(D){if(!this.persistent&&!this.disableSwipe)switch(D.preventDefault(),D.detail.state){case "start":this._trackStart(D);break;case "track":this._trackMove(D);break;case "end":this._trackEnd(D)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var D=this.$.contentContainer.getBoundingClientRect();this._savedWidth=D.width;this._translateOffset=this.position==="left"?D.left:D.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(D){this._trackDetails&&(this._translateDrawer(D.detail.dx+this._translateOffset),this._trackDetails.push({dx:D.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(D){if(this._trackDetails){var t=D.detail.dx+this._translateOffset,H=this.getWidth();t=this.position==="left"?t>=0||t<=-H:t<=0||t>=H;if(!t){var e=this._trackDetails;this._trackDetails=null;this._flingDrawer(D,e);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}H/=2;D.detail.dx<-H?this.opened=this.position==="right":D.detail.dx>H&&(this.opened=this.position==="left");t?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(D,t){for(var H=Date.now(),e=H-100,V,b=0,a=t.length-1;b<=a;){var w=b+a>>1,h=t[w];h.timeStamp>=e?(V=h,a=w-1):b=w+1}return V?(D.detail.dx-V.dx)/(H-V.timeStamp||1):0},
_flingDrawer:function(D,t){t=this._calculateVelocity(D,t);if(!(Math.abs(t)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;D=D.detail.dx+this._translateOffset;var H=this.getWidth(),e=this.position==="left",V=t>0;V?(t=Math.max(t,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(t=Math.min(t,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");t=this._FLING_INITIAL_SLOPE*(!V&&e?-(D+H):V&&!e?H-D:-D)/t;this._styleTransitionDuration(t);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,t)}},
_styleTransitionDuration:function(D){this.style.transitionDuration=D+"ms";this.$.contentContainer.style.transitionDuration=D+"ms";this.$.scrim.style.transitionDuration=D+"ms"},
_styleTransitionTimingFunction:function(D){this.$.contentContainer.style.transitionTimingFunction=D;this.$.scrim.style.transitionTimingFunction=D},
_translateDrawer:function(D){var t=this.getWidth();this.position==="left"?(D=Math.max(-t,Math.min(D,0)),this.$.scrim.style.opacity=1+D/t):(D=Math.max(0,Math.min(D,t)),this.$.scrim.style.opacity=1-D/t);this.translate3d(D+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var D=this._drawerState;D===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;D!==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=""),D!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var D=_.Xu(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"])');D.length>0?(this._firstTabStop=D[0],this._lastTabStop=D[D.length-1]):
this._lastTabStop=this._firstTabStop=null;(D=this.getAttribute("tabindex"))&&parseInt(D,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(D){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||D.keyCode!==9||(D.shiftKey?this._firstTabStop&&_.Xu(D).localTarget===this._firstTabStop&&(D.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.Xu(D).localTarget===this._lastTabStop&&(D.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(D,t){this.toggleClass("visible",D&&!t,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var uW4;var WXF;_.gx({_template:function(){if(WXF!==void 0)return WXF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;uW4===void 0&&(uW4=document.createElement("template"));var e=uW4;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return WXF=D},
is:"tp-yt-paper-progress",behaviors:[dKH],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(D){this.toggleClass("indeterminate",D,this.$.primaryProgress)},
_transformProgress:function(D,t){D.style.transform=D.style.webkitTransform="scaleX("+t/100+")"},
_mainRatioChanged:function(D){this._transformProgress(this.$.primaryProgress,D)},
_progressChanged:function(D,t,H,e,V){D=this._clampValue(D);t=this._clampValue(t);var b=this._calcRatio(D)*100,a=this._calcRatio(t)*100;this._setSecondaryRatio(b);this._transformProgress(this.$.secondaryProgress,b);this._transformProgress(this.$.primaryProgress,a);this.secondaryProgress=D;V?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",t);this.setAttribute("aria-valuemin",H);this.setAttribute("aria-valuemax",e)},
_disabledChanged:function(D){this.setAttribute("aria-disabled",D?"true":"false")},
_hideSecondaryProgress:function(D){return D===0}});var IQO;var QTF;var yXg=function(){};
_.q=yXg.prototype;_.q.registered=function(){};
_.q.addOwnKeyBinding=function(){};
_.q.removeOwnKeyBindings=function(){};
_.q.keyboardEventMatchesKeys=function(){};
_.q._collectKeyBindings=function(){};
_.q._prepKeyBindings=function(){};
_.q._addKeyBinding=function(){};
_.q._resetKeyEventListeners=function(){};
_.q._listenKeyEventListeners=function(){};
_.q._unlistenKeyEventListeners=function(){};
_.q._onKeyBindingEvent=function(){};
_.q._triggerKeyHandler=function(){};
_.q._tapHandler=function(){};
_.q._focusChanged=function(){};
_.q._detectKeyboardFocus=function(){};
_.q._userActivate=function(){};
_.q._upHandler=function(){};
_.q._spaceKeyDownHandler=function(){};
_.q._spaceKeyUpHandler=function(){};
_.q._asyncClick=function(){};
_.q._pressedChanged=function(){};
_.q._ariaActiveAttributeChanged=function(){};
_.q._activeChanged=function(){};
_.q._controlStateChanged=function(){};
_.q._changedButtonState=function(){};
_.q._focusBlurHandler=function(){};
_.q._disabledChanged=function(){};
_.q._changedControlState=function(){};
_.q._buttonStateChanged=function(){};
_.q._downHandler=function(){};
_.q.ensureRipple=function(){};
_.q.getRipple=function(){};
_.q.hasRipple=function(){};
_.q._noinkChanged=function(){};
_.q._calcRatio=function(){};
_.q._clampValue=function(){};
_.q._calcStep=function(){};
_.q._validateValue=function(){};
_.q._update=function(){};
_.q._setImmediateValue=function(){};
_.q._setExpand=function(){};
_.q._setDragging=function(){};
_.q._setTransiting=function(){};
_.q._setMarkers=function(){};
_.q._setPressed=function(){};
_.q._setPointerDown=function(){};
_.q._setReceivedFocusFromKeyboard=function(){};
_.q._setFocused=function(){};
_.q._setRatio=function(){};
yXg=_.gx({_template:function(){if(QTF!==void 0)return QTF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;IQO===void 0&&(IQO=document.createElement("template"));var e=IQO;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return QTF=D},
is:"tp-yt-paper-slider",behaviors:[_.l9,_.xk,_.xPv,dKH],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&&_.pn(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(D,t,H){this.setAttribute("aria-valuemin",t);this.setAttribute("aria-valuemax",H);this.setAttribute("aria-valuenow",D);this._positionKnob(this._calcRatio(D)*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(D){this._setImmediateValue(this._calcStep(this._calcKnobPosition(D)));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(D){return(this.max-this.min)*D/100+this.min},
_onTrack:function(D){D.stopPropagation();switch(D.detail.state){case "start":this._trackStart(D);break;case "track":this._trackX(D);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(D){this.dragging||this._trackStart(D);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,D.detail.dx*(this._isRTL?-1:1)));D=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(D);D=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(D+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var D=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;D.transform=D.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(D){this._expandKnob();D.preventDefault();this.focus()},
_bartrack:function(D){this._allowBarEvent(D)&&this._onTrack(D)},
_barclick:function(D){this._w=this.$.sliderBar.offsetWidth;var t=this.$.sliderBar.getBoundingClientRect();t=(D.detail.x-t.left)/this._w*100;this._isRTL&&(t=100-t);var H=this.ratio;this._setTransiting(!0);this._positionKnob(t);H===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
D.preventDefault();this.focus()},
_bardown:function(D){this._allowBarEvent(D)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(D))},
_knobTransitionEnd:function(D){D.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(D,t,H,e){e||this._setMarkers([]);t=Math.round((H-t)/this.step);t>D&&(t=D);if(t<0||!isFinite(t))t=0;this._setMarkers(Array(t))},
_mergeClasses:function(D){return Object.keys(D).filter(function(t){return D[t]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(D){return!this.ignoreBarTouch||D.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(D){this._isRTL?this._incrementKey(D):this._decrementKey(D)},
_rightKey:function(D){this._isRTL?this._decrementKey(D):this._incrementKey(D)},
_incrementKey:function(D){this.disabled||(D.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),D.preventDefault())},
_decrementKey:function(D){this.disabled||(D.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),D.preventDefault())},
_changeValue:function(D){this.value=D.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(D){D.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.dPa._createRipple.call(this)},
_focusedChanged:function(D){D&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=D?"":"none",this._ripple.holdDown=D)}});var BWZ;var zIH;var IX=null,DDt=function(){};
_.q=DDt.prototype;_.q.fit=function(){};
_.q._discoverInfo=function(){};
_.q.resetFit=function(){};
_.q.refit=function(){};
_.q.position=function(){};
_.q.constrain=function(){};
_.q._sizeDimension=function(){};
_.q.__sizeDimension=function(){};
_.q.center=function(){};
_.q.__getNormalizedRect=function(){};
_.q.__getOffscreenArea=function(){};
_.q.__getPosition=function(){};
_.q.notifyResize=function(){};
_.q.assignParentResizable=function(){};
_.q.stopResizeNotificationsFor=function(){};
_.q._subscribeIronResize=function(){};
_.q._unsubscribeIronResize=function(){};
_.q.resizerShouldNotify=function(){};
_.q._onDescendantIronResize=function(){};
_.q._fireResize=function(){};
_.q._onIronRequestResizeNotifications=function(){};
_.q._parentResizableChanged=function(){};
_.q._notifyDescendant=function(){};
_.q._requestResizeNotifications=function(){};
_.q._findParent=function(){};
_.q.toggle=function(){};
_.q.open=function(){};
_.q.close=function(){};
_.q.cancel=function(){};
_.q.invalidateTabbables=function(){};
_.q._ensureSetup=function(){};
_.q._canceledChanged=function(){};
_.q._withBackdropChanged=function(){};
_.q._prepareRenderOpened=function(){};
_.q._finishRenderOpened=function(){};
_.q._finishRenderClosed=function(){};
_.q._preparePositioning=function(){};
_.q._finishPositioning=function(){};
_.q._applyFocus=function(){};
_.q._onCaptureClick=function(){};
_.q._onCaptureFocus=function(){};
_.q._onCaptureEsc=function(){};
_.q._onCaptureTab=function(){};
_.q._onIronResize=function(){};
_.q._onNodesChange=function(){};
_.q.__ensureFirstLastFocusables=function(){};
_.q.__openedChanged=function(){};
_.q.__deraf=function(){};
_.q.__updateScrollObservers=function(){};
_.q.__addScrollListeners=function(){};
_.q.__removeScrollListeners=function(){};
_.q.__isValidScrollAction=function(){};
_.q.__onCaptureScroll=function(){};
_.q.__saveScrollPosition=function(){};
_.q.__restoreScrollPosition=function(){};
_.q._setCanceled=function(){};
DDt=_.gx({_template:function(){if(zIH!==void 0)return zIH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;BWZ===void 0&&(BWZ=document.createElement("template"));var e=BWZ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);return zIH=D},
is:"tp-yt-paper-toast",behaviors:[_.sn],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(){_.vb._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.bq.requestAvailability()},
show:function(D){typeof D=="string"&&(D={text:D});for(var t in D)t.indexOf("_")===0?_.vb._warn('The property "'+t+'" is private and was not set.'):t in this?this[t]=D[t]:_.vb._warn('The property "'+t+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(D){D&&D.target===this&&D.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(IX&&IX!==this&&IX.close(),IX=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):IX===this&&(IX=null);_.ZL._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(D){this.positionTarget=D},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var tXb=new _.NM("disablePersonalizationAction");var vGb=new _.NM("showDmaConsentFlowCommand");var pmF=new _.NM("showMmgNoticeCommand");var Hce=new _.NM("saveConsentAction");var eve=function(D){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.g4(D)};
_.P(eve,_.ww);var VXQ=_.RUT(eve);var bci=new _.NM("updateTopbarAvatarAction");var qdv=new _.NM("channelHandleValidationResultRenderer");var F2t=new _.NM("generateHandleFromNameResultRenderer");var aMb=new _.NM("channelHandleInputRenderer");var wwi=new _.NM("copyLinkRenderer");var Zc4=new _.NM("timedCommand");var sy4=new _.NM("clearCookieAction");var hv4=new _.NM("getMultiPageMenuAction");var GGY=new _.NM("addToGuideSectionAction"),ETZ=new _.NM("removeFromGuideSectionAction");var K2b=new _.NM("updateNotificationsUnseenCountAction");var NBF=new _.NM("resetChannelUnreadCountCommand");var kGF=new _.NM("resetSubscriptionsUnreadDotCommand");var TBY=new _.NM("selectLanguageCommand");var e7H=new _.NM("sendFeedbackAction");var cfv=new _.NM("uploadImageToScottyCommand");var jyH=new _.NM("registerPromoCommand");var $DO=new _.NM("setPushNotificationsEnabledCommand");var ic4=new _.NM("desktopTopbarRenderer");var rfY=new _.NM("surveyFollowUpRenderer");var OcH=new _.NM("handlesClaimingRadioOptionRenderer");var UDQ=new _.NM("hotkeyDialogRenderer");var oTZ=new _.NM("modifyReportFormCommand");var PPO=new _.NM("accountLinkCommand");var nTF=new _.NM("accountUnlinkCommand");var CPF=new _.NM("logAccountLinkingEventCommand");var mDF=new _.NM("guideCollapsibleEntryRenderer");var MXi=new _.NM("guideDownloadsEntryRenderer");var Sd4=new _.NM("guideEntryRenderer");var Xwb=new _.NM("getLocationCommand");var fMO=new _.NM("locationCollectionCommand");var L2g=new _.NM("storiesItemViewModel");var Afi=new _.NM("addToRemoteQueueAction");var gTv=new _.NM("insertInRemoteQueueAction");var JfH=new _.NM("removeFromRemoteQueueAction");var YdF=new _.NM("notificationRenderer");var oGF=new _.NM("localWatchHistoryCommand");var lMb=new _.NM("pdgBuyFlowHeaderRenderer");var vTt=new _.NM("pdgColorSliderRenderer");var pwv=new _.NM("pdgCommentOptionRenderer");var dDH=new _.NM("pdgCommentPreviewRenderer");var xDt=new _.NM("superVodSelectableItemButtonRenderer");var Rvt=new _.NM("switchButtonRenderer");var uhF=new _.NM("upsellDialogRenderer");var W2F=new _.NM("feedbackQuestionRenderer"),IMQ=new _.NM("feedbackOptionRenderer");var Qyb=new _.NM("sponsorshipsTierRenderer"),yfe=new _.NM("sponsorshipsPromotionChannelRenderer");var BBe=new _.NM("simpleSurveyMessageRenderer");var e8F=new _.NM("invokeInstrumentManagerAction");var zvQ=new _.NM("logYpcFlowDismissCommand");var Dgv=new _.NM("logYpcFlowStartCommand");var tLY=new _.NM("unlimitedCreateFamilyEndpoint");var Hoi=new _.NM("iconBadgeRenderer");var POe=new _.NM("collaborativePlaylistVisibilityValidationRule");var eAt=function(D){_.Xv.call(this,"channelMessage");this.message=D};
_.P(eAt,_.Xv);var VLg=function(D){_.Xv.call(this,"channelError");this.error=D};
_.P(VLg,_.Xv);var boF={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",ACTIVE_STREAM_WRITES_FOR_REMOTE_CONNECTION_AND_DISCONNECTION:"wrc",PUNCTUAL_WATCH:"pcw",
IP_VALIDATION:"ipv"},qxF={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},FyF={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},aGO={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},wJY={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Q8=function(D){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 _.nL;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;D&&(this.id=D.id||D.name,this.name=D.name,this.clientName=D.clientName?D.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=D.app,this.type=D.type||"REMOTE_CONTROL",this.username=D.user||"",this.avatar=D.userAvatarUri||"",this.obfuscatedGaiaId=D.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=D.ownerObfuscatedGaiaId||"",this.castUserId=D.castUserId||"",this.theme=D.theme||"u",ZoF(this,D.capabilities||""),sMQ(this,
D.compatibleSenderThemes||""),hAH(this,D.experiments||""),this.remoteControllerUrl=D.remoteControllerUrl||"",this.localChannelEncryptionKey=D.localChannelEncryptionKey||"",this.deviceContext=D.deviceContext,this.brand=D.brand||"",this.model=D.model||"",this.year=D.year||0,this.os=D.os||"",this.osVersion=D.osVersion||"",this.chipset=D.chipset||"",this.mdxDialServerType=D.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=D.pairingType||"unknown",D=D.deviceInfo)&&(D=JSON.parse(D),this.brand=
D.brand||"",this.model=D.model||"",this.year=D.year||0,this.os=D.os||"",this.osVersion=D.osVersion||"",this.chipset=D.chipset||"",this.clientName=D.clientName?D.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=D.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Q8.prototype.copy=function(){var D={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&&(D.brand=this.brand);
this.model&&(D.model=this.model);this.year&&(D.year=this.year);this.os&&(D.os=this.os);this.osVersion&&(D.osVersion=this.osVersion);this.chipset&&(D.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(D.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(D.mdxDialServerType=this.mdxDialServerType);D=new Q8(D);D.connected=this.connected;D.remoteControllerUrl=this.remoteControllerUrl;D.localChannelEncryptionKey=this.localChannelEncryptionKey;D.deviceContext=
this.deviceContext;D.castUserId=this.castUserId;return D};
Q8.prototype.equals=function(D){return D?this.id==D.id:!1};
var ZoF=function(D,t){D.capabilities.clear();_.hM(t.split(","),_.o4(_.J$.contains,boF)).forEach(function(H){D.capabilities.add(H)})},sMQ=function(D,t){D.compatibleSenderThemes.clear();
_.hM(t.split(","),_.o4(_.J$.contains,qxF)).forEach(function(H){D.compatibleSenderThemes.add(H)})},hAH=function(D,t){D.experiments.clear();
t.split(",").forEach(function(H){D.experiments.add(H)})};_.Zj(I9Q,_.mg);_.q=I9Q.prototype;_.q.JSC$19778_onTick_=function(){this.JSC$19776_interval_=Math.min(3E5,this.JSC$19776_interval_*2);this.JSC$19778_listener_();this.nextTickTime_&&this.start()};
_.q.start=function(){var D=this.JSC$19776_interval_+15E3*Math.random(),t=this.delay_;t.isActive()||t.start(D);this.nextTickTime_=Date.now()+D};
_.q.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.q.isActive=function(){return this.delay_.isActive()};
_.q.reset=function(){this.delay_.stop();this.JSC$19776_interval_=5E3};_.Zj(PL,YgZ);_.q=PL.prototype;_.q.subscribe=function(D,t,H){return this.pubsub_.subscribe(D,t,H)};
_.q.unsubscribe=function(D,t,H){return this.pubsub_.unsubscribe(D,t,H)};
_.q.unsubscribeByKey=function(D){return this.pubsub_.unsubscribeByKey(D)};
_.q.publish=function(D,t){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.q.dispose=function(){this.JSC$19779_disposed_||(this.JSC$19779_disposed_=!0,_.qc(this.pubsub_),this.disconnect(),_.qc(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19779_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Tf({})})};
_.q.isDisposed=function(){return this.JSC$19779_disposed_};
_.q.connect=function(D,t,H){var e=this,V,b,a,w;return _.Z(function(h){if(h.nextAddress==1)return _.Ok(h,2),e.useAsyncBrowserChannelHandler_?h.yield(e.connectPromise_,2):h.jumpTo(2);_.rN(h);if(e.JSC$19779_disposed_||e.JSC$19779_channel_&&e.JSC$19779_channel_.getState()==2)return h.return();e.sCookie_="";e.reconnectTimer_.stop();e.connectionParams_=D||null;e.connectUi_=t||0;V=e.JSC$19779_pathPrefix_+"/test";b=e.JSC$19779_pathPrefix_+"/bind";a=new RX(H?H.firstTestResults:null,H?H.secondTestResults:null,
e.enableAsyncTest_);if(w=e.JSC$19779_channel_)w.handler_=null;a.handler_=e;e.JSC$19779_channel_=a;if(e.useAsyncBrowserChannelHandler_)return e.connectPromise_=GIv(e).then(function(){return EnQ(e,V,b,w,H)}),h.return(e.connectPromise_.then(function(){e.connectPromise_=_.Tf()}));
EnQ(e,V,b,w,H);return _.ox(h,0)})};
var EnQ=function(D,t,H,e,V){Ky4(D);if(D.JSC$19779_channel_){var b=_.YC("ID_TOKEN"),a=D.JSC$19779_channel_.JSC$19731_extraHeaders_||{};b?a["x-youtube-identity-token"]=b:delete a["x-youtube-identity-token"];D.JSC$19779_channel_.JSC$19731_extraHeaders_=a}Ntg(D);e?(e.getState(),D.JSC$19779_channel_.connect(t,H,D.defaultQueryParams_,e.sid_,e.JSC$19731_lastArrayId_)):V?D.JSC$19779_channel_.connect(t,H,D.defaultQueryParams_,V.sessionId,V.arrayId):D.JSC$19779_channel_.connect(t,H,D.defaultQueryParams_)};
PL.prototype.disconnect=function(D){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Tf())}finally{this.disconnectUi_=D||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),Ky4(this),this.JSC$19779_channel_&&(this.JSC$19779_channel_.getState()==3&&dae(this.JSC$19779_channel_),this.JSC$19779_channel_.disconnect()),this.disconnectUi_=0}};
PL.prototype.sendMessage=function(D,t){var H=this,e;return _.Z(function(V){switch(V.nextAddress){case 1:_.Ok(V,2);if(!H.useAsyncBrowserChannelHandler_){V.jumpTo(2);break}return V.yield(H.connectPromise_,2);case 2:_.rN(V);if(H.JSC$19779_disposed_)return V.return();e={_sc:D};t&&_.J$.extend(e,t);if(H.reconnectTimer_.isActive()||(H.JSC$19779_channel_?H.JSC$19779_channel_.getState():0)==2){H.JSC$19779_pendingMessages_.push(e);V.jumpTo(6);break}if(!H.isChannelOpened()){V.jumpTo(6);break}_.Ok(V,8);if(!H.useAsyncBrowserChannelHandler_||
kIe(H,D)){V.jumpTo(8);break}return V.yield(GIv(H),8);case 8:_.rN(V,0,0,1);H.isChannelOpened()&&(kIe(H,D)||Ntg(H),Ky4(H),puZ(H.JSC$19779_channel_,e));_.ox(V,6,1);break;case 6:_.ox(V,0)}})};
var kIe=function(D,t){return D.enableMdxAuthForConnectionOnly_?!0:D.disableMdxAuthForAdMessages_?Object.values(FyF).includes(t):D.disableMdxAuthForNonPlaybackMessages_?!Object.values(aGO).includes(t):D.disableMdxAuthForShortsMessages_?Object.values(wJY).includes(t):!1};
PL.prototype.JSC$19738_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19779_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)TtF(this);else{var D=this.JSC$19779_pendingMessages_;this.JSC$19779_pendingMessages_=[];var t=D.length;Ntg(this);ckZ(this,D,t);jMF(this)}else jMF(this)};
var TtF=function(D){var t,H;_.Z(function(e){if(e.nextAddress==1)return _.Ok(e,2),e.yield(GIv(D),2);_.rN(e);t=D.JSC$19779_pendingMessages_;D.JSC$19779_pendingMessages_=[];H=t.length;ckZ(D,t,H);jMF(D);return _.ox(e,0)})},ckZ=function(D,t,H){for(var e=0;e<H;++e)puZ(D.JSC$19779_channel_,t[e]);
jMF(D)},jMF=function(D){D.publish("handlerOpened");
D.JSC$19779_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.q=PL.prototype;_.q.JSC$19738_channelError=function(D){var t=D==2&&this.JSC$19779_channel_.JSC$19731_lastStatusCode_==401;D==4||t||this.reconnectTimer_.start();this.publish("handlerError",D,t);t=Object.keys(fLg).find(function(H){return fLg[H]===D});
this.JSC$19779_channelErrorCounter.increment("BROWSER_CHANNEL",t!=null?t:"UNKNOWN")};
_.q.JSC$19738_channelClosed=function(D,t){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(t)for(var H=t.length,e=0;e<H;++e){var V=t[e].map;V&&this.JSC$19779_pendingMessages_.push(V)}this.JSC$19779_channelClosedCounter.increment("BROWSER_CHANNEL");D&&this.pendingMapsOnClosedCounter.JSC$9936_streamzService.JSC$9791_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",D.length);t&&this.undeliveredMapsOnClosedCounter.JSC$9939_streamzService.JSC$9791_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
t.length)};
_.q.JSC$19738_channelSuccess=function(D,t){t!=null&&D!=null&&this.channelMessageSentCounter.increment()};
_.q.JSC$19738_getAdditionalParams=function(){var D={v:2};this.sCookie_&&(D.gsessionid=this.sCookie_);this.connectUi_!=0&&(D.ui=""+this.connectUi_);this.disconnectUi_!=0&&(D.ui=""+this.disconnectUi_);this.connectionParams_&&_.J$.extend(D,this.connectionParams_);return D};
_.q.JSC$19738_channelHandleArray=function(D){D[0]=="S"?this.sCookie_=D[1]:D[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19779_channel_.disconnect()):this.publish("handlerMessage",new WxF(D[0],D[1]));this.JSC$19779_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.q.isChannelOpened=function(){return!!this.JSC$19779_channel_&&this.JSC$19779_channel_.getState()==3};
var Ky4=function(D){if(D.JSC$19779_channel_){var t=D.JSC$19779_getXsrfToken_(),H=D.JSC$19779_channel_.JSC$19731_extraHeaders_||{};t?H["x-youtube-lounge-xsrf-token"]=t:delete H["x-youtube-lounge-xsrf-token"];D.JSC$19779_channel_.JSC$19731_extraHeaders_=H}},GIv=function(D){if(D.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Tf();
if(!D.enableCachedUpdateAuthorizationHeader_)return $gv(D);D.updateAuthorizationHeaderPromise_===null&&(D.updateAuthorizationHeaderPromise_=$gv(D));return D.updateAuthorizationHeaderPromise_},$gv=function(D){return _.pr(D.getAuthorizationHeader_().then(function(t){iog(D,t)}).thenCatch(function(){}),function(){D.updateAuthorizationHeaderPromise_=null})},iog=function(D,t){if(D.JSC$19779_channel_){var H=D.JSC$19779_channel_.JSC$19731_extraHeaders_||{};
t&&Object.keys(t).length>0?H=Object.assign({},H,t):delete H.Authorization;D.JSC$19779_channel_.JSC$19731_extraHeaders_=H}},Ntg=function(D){D.getAuthorizationHeaderSync_&&!D.useAsyncBrowserChannelHandler_&&iog(D,D.getAuthorizationHeaderSync_())};
_.q=PL.prototype;_.q.setLoungeToken=function(D){(this.defaultQueryParams_.loungeIdToken=D)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19779_channel_){var t=this.JSC$19779_channel_.JSC$19731_extraHeaders_||{};D?t["X-YouTube-LoungeId-Token"]=D:delete t["X-YouTube-LoungeId-Token"];this.JSC$19779_channel_.JSC$19731_extraHeaders_=t}};
_.q.getDeviceId=function(){return this.defaultQueryParams_.id};
_.q.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.q.reconnect=function(){var D=this.reconnectTimer_;D.delay_.fire();D.start()};
_.q.safeReconnect_=function(){var D=this.JSC$19779_channel_,t=0;D.JSC$19731_backChannelRequest_&&t++;D.forwardChannelRequest_&&t++;t==0&&this.connect(this.connectionParams_,this.connectUi_)};var f4=function(D,t){var H=D.basePath;D.supportCors&&(H=D.scheme+"://"+D.domain+D.port+D.basePath);return _.z5(H+t,{})};
n4.prototype.sendRequest=function(D,t,H,e,V,b,a){D={format:b?"RAW":"JSON",method:D,context:this,timeout:5E3,withCredentials:!!a,onSuccess:_.o4(this.JSC$19784_onSuccess_,e,!b),onError:_.o4(this.onError_,V),onTimeout:_.o4(this.JSC$19784_onTimeout_,V)};H&&(D.postParams=H,D.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.cY(t,D)};
n4.prototype.JSC$19784_onSuccess_=function(D,t,H,e){t?D(e):D({text:H.responseText})};
n4.prototype.onError_=function(D,t){D(Error("Sk`"+t.status))};
n4.prototype.JSC$19784_onTimeout_=function(D){D(Error("Tk"))};var m_=function(D,t){return!!t&&(D.id==t||D.uuid==t)},rkZ=function(D){return{name:D.name,
screenId:D.id,loungeToken:D.token,dialId:D.uuid,screenIdType:D.idType}},Oov=function(D){return new C4(D)},UgQ=function(D){return Array.isArray(D)?_.Yz(D,Oov):[]},bbt=function(D){if(!D)return"null";
var t=D.token?".."+D.token.slice(-6):"-",H=D.uuid?".."+D.uuid.slice(-6):"-";return'{name:"'+D.name+'",id:'+D.id.substr(0,6)+"..,token:"+(t+",uuid:"+H+",idType:"+D.idType+"}")},S_t=function(D){return Array.isArray(D)?"["+_.Yz(D,bbt).join(",")+"]":"null"};var hNe="",XV=null;var $TH=function(D,t){_.J2.call(this);var H=this;this.handler=D();this.handler.subscribe("handlerOpened",this.JSC$19791_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(e,V){H.onError(V)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=t};
_.P($TH,_.J2);_.q=$TH.prototype;_.q.connect=function(D,t,H){this.handler.connect(D,t,H)};
_.q.disconnect=function(D){this.handler.disconnect(D)};
_.q.reconnect=function(){this.handler.reconnect()};
_.q.getDeviceId=function(){return this.handler.getDeviceId()};
_.q.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.q.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.q.JSC$19791_onOpened=function(){this.dispatchEvent("channelOpened");var D=this.handler,t=this.currentScreenId;_.Yg("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!D.JSC$19779_channel_.useChunked_,sessionId:D.JSC$19779_channel_.sid_,arrayId:D.JSC$19779_channel_.JSC$19731_lastArrayId_});_.Yg("yt-remote-session-screen-id",t);D=q_Q();t=FVb();_.l8(D,t)||D.push(t);sQg(D);ZzH()};
_.q.onClosed=function(){this.dispatchEvent("channelClosed")};
_.q.onMessage=function(D){this.dispatchEvent(new eAt(D))};
_.q.onError=function(D){this.dispatchEvent(new VLg(D?1:0))};
_.q.sendMessage=function(D,t){this.handler.sendMessage(D,t)};
_.q.setLoungeToken=function(D){this.handler.setLoungeToken(D)};
_.q.dispose=function(){this.handler.dispose()};var jQH=function(D,t,H){var e=this;H=H===void 0?function(){return""}:H;
var V=V===void 0?new FvY:V;var b=b===void 0?new _.$x:b;this.pathPrefix=D;this.defaultQueryParams=t;this.getXsrfToken=H;this.JSC$19794_pubsub=b;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new I9Q(function(){var a;((a=e.channel)==null?void 0:gkg((new ZSH(a,a.JSC$19702_channel_)).JSC$19712_channel_.forwardChannelRequestPool_))===0&&e.connect(e.connectionParams,e.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19794_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19794_channelOpenedCounter=new Q54;this.JSC$19794_channelClosedCounter=new yhF;this.JSC$19794_channelMessageReceivedCounter=new zl4;this.JSC$19794_channelErrorCounter=new DTQ};
jQH.prototype.connect=function(D,t){D=D===void 0?{}:D;t=t===void 0?0:t;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=D,this.connectUi=t,on4(this),(D=_.YC("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=D: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 Jv(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,Pkv(this))};
var Pkv=function(D){_.fz(D.channel,"w",function(){D.channelState=3;D.reconnectTimer.reset();D.connectionParams=null;D.connectUi=0;for(var t=_.F(D.nonAckedMessagesOnChannelClosed),H=t.next();!H.done;H=t.next())H=H.value,D.channel&&D.channel.send(H);D.nonAckedMessagesOnChannelClosed=[];D.publish("webChannelOpened");D.JSC$19794_channelOpenedCounter.increment("WEB_CHANNEL")});
_.fz(D.channel,"x",function(){D.channelState=0;D.reconnectTimer.isActive()||D.publish("webChannelClosed");var t,H=(t=D.channel)==null?void 0:sWH(new ZSH(t,t.JSC$19702_channel_));H&&(D.nonAckedMessagesOnChannelClosed=[].concat(_.A6(H)));D.JSC$19794_channelClosedCounter.increment("WEB_CHANNEL")});
_.fz(D.channel,"z",function(t){var H=t.data;H[0]==="gracefulReconnect"?(D.reconnectTimer.start(),D.channel&&D.channel.close()):D.publish("webChannelMessage",new WxF(H[0],H[1]));D.lastStatusCode=t.statusCode;D.JSC$19794_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.fz(D.channel,"y",function(){D.lastStatusCode===401||D.reconnectTimer.start();D.publish("webChannelError");D.JSC$19794_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.q=jQH.prototype;_.q.disconnect=function(D){this.disconnectUi=D===void 0?0:D;this.reconnectTimer.stop();on4(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.q.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.q.reconnect=function(){var D=this.reconnectTimer;D.delay_.fire();D.start()};
_.q.sendMessage=function(D,t){this.channel&&(on4(this),D=Object.assign({},{_sc:D},t),this.channel.send(D))};
_.q.setLoungeToken=function(D){D||this.reconnectTimer.stop();D?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=D:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var on4=function(D){var t=D.getXsrfToken();t?D.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=t:delete D.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.q=jQH.prototype;_.q.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.q.publish=function(D){return this.JSC$19794_pubsub.publish.apply(this.JSC$19794_pubsub,[D].concat(_.A6(_.RE.apply(1,arguments))))};
_.q.subscribe=function(D,t,H){return this.JSC$19794_pubsub.subscribe(D,t,H)};
_.q.unsubscribe=function(D,t,H){return this.JSC$19794_pubsub.unsubscribe(D,t,H)};
_.q.unsubscribeByKey=function(D){return this.JSC$19794_pubsub.unsubscribeByKey(D)};
_.q.dispose=function(){this.JSC$19794_disposed||(this.JSC$19794_disposed=!0,_.qc(this.JSC$19794_pubsub),this.disconnect(),_.qc(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.q.isDisposed=function(){return this.JSC$19794_disposed};var cjY=function(D){_.J2.call(this);this.webChannelService=D();this.webChannelService.subscribe("webChannelOpened",this.JSC$19802_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.P(cjY,_.J2);_.q=cjY.prototype;_.q.connect=function(D,t){this.webChannelService.connect(D,t)};
_.q.disconnect=function(D){this.webChannelService.disconnect(D)};
_.q.reconnect=function(){this.webChannelService.reconnect()};
_.q.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.q.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.q.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.q.JSC$19802_onOpened=function(){this.dispatchEvent("channelOpened")};
_.q.onClosed=function(){this.dispatchEvent("channelClosed")};
_.q.onMessage=function(D){this.dispatchEvent(new eAt(D))};
_.q.onError=function(){this.dispatchEvent(new VLg(this.webChannelService.lastStatusCode===401?1:0))};
_.q.sendMessage=function(D,t){this.webChannelService.sendMessage(D,t)};
_.q.setLoungeToken=function(D){this.webChannelService.setLoungeToken(D)};
_.q.dispose=function(){this.webChannelService.dispose()};var MaF=Date.now(),L4=null,CfO=Array(50),Ju=-1,mTv=!1;_.Zj(Y_,_.d5);Y_.prototype.getScreens=function(){return this.screens};
Y_.prototype.contains=function(D){return!!bze(this.screens,D)};
Y_.prototype.get=function(D){return D?M9(this.screens,D):null};
var nnO=function(D,t){var H=D.get(t.uuid)||D.get(t.id);if(H)return D=H.name,H.id=t.id||H.id,H.name=t.name,H.token=t.token,H.uuid=t.uuid||H.uuid,H.name!=D;D.screens.push(t);return!0},CkY=function(D,t){var H=D.screens.length!=t.length;
D.screens=_.hM(D.screens,function(b){return!!bze(t,b)});
for(var e=t.length,V=0;V<e;V++)H=nnO(D,t[V])||H;return H},mgF=function(D,t){var H=D.screens.length;
D.screens=_.hM(D.screens,function(e){return!(e||t?!e!=!t?0:e.id==t.id:1)});
return D.screens.length<H};
Y_.prototype.info=function(D){Au(this.JSC$19803_logName_,D)};var MLH=function(D,t,H,e,V){_.d5.call(this);this.JSC$19806_http_=D;this.pairingCode_=t;this.deviceId_=H;this.friendlyName_=e;this.enableShortLivedLoungeToken_=V;this.pollIndex_=0;this.JSC$19806_xhr_=null;this.JSC$19806_timer_=NaN};
_.P(MLH,_.d5);_.q=MLH.prototype;_.q.start=function(){!this.JSC$19806_xhr_&&isNaN(this.JSC$19806_timer_)&&this.poll_()};
_.q.stop=function(){this.JSC$19806_xhr_&&(this.JSC$19806_xhr_.abort(),this.JSC$19806_xhr_=null);isNaN(this.JSC$19806_timer_)||(_.kx(this.JSC$19806_timer_),this.JSC$19806_timer_=NaN)};
_.q.disposeInternal=function(){this.stop();_.d5.prototype.disposeInternal.call(this)};
_.q.poll_=function(){this.JSC$19806_timer_=NaN;this.JSC$19806_xhr_=_.cY(f4(this.JSC$19806_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Mc)(this.JSC$19808_onSuccess_,this),onError:(0,_.Mc)(this.onError_,this),onTimeout:(0,_.Mc)(this.JSC$19808_onTimeout_,this)})};
_.q.JSC$19808_onSuccess_=function(D,t){this.JSC$19806_xhr_=null;D=t.screen||{};D.dialId=this.deviceId_;D.name=this.friendlyName_;t=-1;this.enableShortLivedLoungeToken_&&D.shortLivedLoungeToken&&D.shortLivedLoungeToken.value&&D.shortLivedLoungeToken.refreshIntervalMs&&(D.screenIdType="shortLived",D.loungeToken=D.shortLivedLoungeToken.value,t=D.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new C4(D),t)};
_.q.onError_=function(D){this.JSC$19806_xhr_=null;D.status&&D.status==404?this.pollIndex_>=SxH.length?this.publish("pairingFailed",Error("Uk")):(D=SxH[this.pollIndex_],this.JSC$19806_timer_=_.KZ((0,_.Mc)(this.poll_,this),D),this.pollIndex_++):this.publish("pairingFailed",Error("Vk`"+D.status))};
_.q.JSC$19808_onTimeout_=function(){this.JSC$19806_xhr_=null;this.publish("pairingFailed",Error("Wk"))};
var SxH=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Zj(vL,Y_);_.q=vL.prototype;_.q.start=function(){lc(this)&&this.publish("screenChange");!_.l_("yt-remote-lounge-token-expiration")&&XJF(this);_.kx(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.KZ((0,_.Mc)(this.start,this),1E4)};
_.q.add=function(D,t){lc(this);nnO(this,D);fGi(this,!1);this.publish("screenChange");t(D);D.token||XJF(this)};
_.q.remove=function(D,t){var H=lc(this);mgF(this,D)&&(fGi(this,!1),H=!0);t(D);H&&this.publish("screenChange")};
_.q.updateName=function(D,t,H,e){var V=lc(this),b=this.get(D.id);b?(b.name!=t&&(b.name=t,fGi(this,!1),V=!0),H(D)):e(Error("Xk"));V&&this.publish("screenChange")};
_.q.disposeInternal=function(){_.kx(this.loungeTokenRefreshTimer_);vL.superClass_.disposeInternal.call(this)};
var XJF=function(D){if(D.screens.length){var t=_.Yz(D.screens,function(e){return e.id}),H=f4(D.JSC$19810_http_,"/pairing/get_lounge_token_batch");
D.JSC$19810_http_.sendRequest("POST",H,{screen_ids:t.join(",")},(0,_.Mc)(D.handleLoungeTokens_,D),(0,_.Mc)(D.handleLoungeTokenError_,D))}};
vL.prototype.handleLoungeTokens_=function(D){lc(this);var t=this.screens.length;D=D&&D.screens||[];for(var H=D.length,e=0;e<H;++e){var V=D[e],b=this.get(V.screenId);b&&(b.token=V.loungeToken,--t)}fGi(this,!t);t&&Au(this.JSC$19803_logName_,"Missed "+t+" lounge tokens.")};
vL.prototype.handleLoungeTokenError_=function(D){Au(this.JSC$19803_logName_,"Requesting lounge tokens failed: "+D)};
var lc=function(D){if(_.r("deprecate_pair_servlet_enabled"))return CkY(D,[]);var t=UgQ(EPv());t=_.hM(t,function(H){return!H.uuid});
return CkY(D,t)},fGi=function(D,t){Nje(_.Yz(D.screens,rkZ));
t&&KVZ()};var y8=function(D,t){_.d5.call(this);this.getScreensToCheck_=t;t=(t=_.l_("yt-remote-online-screen-ids")||"")?t.split(","):[];for(var H={},e=this.getScreensToCheck_(),V=e.length,b=0;b<V;++b){var a=e[b].id;H[a]=_.l8(t,a)}this.screenIdSet_=H;this.JSC$19813_http_=D;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;LyF("Initialized with "+(0,_.Ru)(this.screenIdSet_))};
_.P(y8,_.d5);y8.prototype.isOnline=function(D){return!!this.screenIdSet_[D]};
y8.prototype.start=function(){var D=parseInt(_.l_("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.wU()-144E5<D?0:D)?Akg(this):(this.fastCheckEndTime_=_.wU()+3E5,_.Yg("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
y8.prototype.isEmpty=function(){return _.J$.isEmpty(this.screenIdSet_)};
y8.prototype.update=function(){LyF("Updating availability on schedule.");var D=this.getScreensToCheck_(),t=_.J$.filter(this.screenIdSet_,function(H,e){return H&&!!M9(D,e)},this);
gnt(this,t)};
var Jkv=function(D,t,H){var e=f4(D.JSC$19813_http_,"/pairing/get_screen_availability");D.JSC$19813_http_.sendRequest("POST",e,{lounge_token:t.token},(0,_.Mc)(function(V){V=V.screens||[];for(var b=V.length,a=0;a<b;++a)if(V[a].loungeToken==t.token){H(V[a].status=="online");return}H(!1)},D),(0,_.Mc)(function(){H(!1)},D))};
y8.prototype.disposeInternal=function(){_.kx(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.d5.prototype.disposeInternal.call(this)};
var gnt=function(D,t){a:if(_.J$.getCount(t)!=_.J$.getCount(D.screenIdSet_))var H=!1;else{H=_.J$.getKeys(t);for(var e=H.length,V=0;V<e;++V)if(!D.screenIdSet_[H[V]]){H=!1;break a}H=!0}H||(LyF("Updated online screens: "+(0,_.Ru)(D.screenIdSet_)),D.screenIdSet_=t,D.publish("screenChange"));Yx4(D)},Akg=function(D){isNaN(D.refreshTimer_)||_.kx(D.refreshTimer_);
D.refreshTimer_=_.KZ((0,_.Mc)(D.requestScreenAvailability_,D),D.fastCheckEndTime_>0&&D.fastCheckEndTime_<_.wU()?2E4:1E4)};
y8.prototype.requestScreenAvailability_=function(){_.kx(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var D=lGF(this);if(_.J$.getCount(D)){var t=f4(this.JSC$19813_http_,"/pairing/get_screen_availability"),H={lounge_token:_.J$.getKeys(D).join(",")};this.currentRequest_=this.JSC$19813_http_.sendRequest("POST",t,H,(0,_.Mc)(this.onScreenAvailability_,this,D),(0,_.Mc)(this.onScreenAvailabilityError_,this))}else gnt(this,{}),Akg(this)};
y8.prototype.onScreenAvailability_=function(D,t){this.currentRequest_=null;var H=_.J$.getKeys(lGF(this));if(_.QA(H,_.J$.getKeys(D))){t=t.screens||[];H={};for(var e=t.length,V=0;V<e;++V)H[D[t[V].loungeToken]]=t[V].status=="online";gnt(this,H);Akg(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
y8.prototype.onScreenAvailabilityError_=function(D){this.warn_("Screen availability failed: "+D);this.currentRequest_=null;Akg(this)};
var LyF=function(D){Au("OnlineScreenService",D)};
y8.prototype.warn_=function(D){Au("OnlineScreenService",D)};
var lGF=function(D){var t={};_.ID(D.getScreensToCheck_(),function(H){H.token?t[H.token]=H.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return t},Yx4=function(D){D=_.J$.getKeys(_.J$.filter(D.screenIdSet_,function(t){return t}));
D.sort(_.LDk);D.length?_.Yg("yt-remote-online-screen-ids",D.join(","),60):_.v7("yt-remote-online-screen-ids")};_.Zj(p4,Y_);_.q=p4.prototype;_.q.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.q.add=function(D,t,H){this.localScreenService_.add(D,t,H)};
_.q.remove=function(D,t,H){this.localScreenService_.remove(D,t,H);this.onlineScreenService_.update()};
_.q.updateName=function(D,t,H,e){this.localScreenService_.contains(D)?this.localScreenService_.updateName(D,t,H,e):(D="Updating name of unknown screen: "+D.name,Au(this.JSC$19803_logName_,D),e(Error(D)))};
_.q.getScreens=function(D){return D?this.screens:g0F(this.screens,_.hM(this.automaticScreens_,function(t){return!this.contains(t)},this))};
_.q.JSC$19818_getOnlineScreens=function(){return _.hM(this.getScreens(!0),function(D){return this.onlineScreenService_.isOnline(D.id)},this)};
var pJH=function(D,t,H,e,V,b){D.info("getAutomaticScreenByIds "+H+" / "+t);H||(H=D.deviceToScreenId_[t]);var a=D.getScreens(),w=H?M9(a,H):null;H&&(D.disableAutomaticScreenCache_||w)||(w=M9(a,t));if(w){w.uuid=t;var h=Bj(D,w);Jkv(D.onlineScreenService_,h,function(K){V(K?h:null)})}else H?vng(D,H,(0,_.Mc)(function(K){var N=Bj(this,new C4({name:e,
screenId:H,loungeToken:K,dialId:t||""}));Jkv(this.onlineScreenService_,N,function(k){V(k?N:null)})},D),b):V(null)};
p4.prototype.JSC$19818_getScreenByPollingPairingCode=function(D,t,H,e,V,b){var a=this;this.info("getDialScreenByPairingCode "+D+" / "+t);var w=new MLH(this.JSC$19816_http_,D,t,H,e);w.subscribe("pairingComplete",function(h,K){_.qc(w);V(Bj(a,h),K)});
w.subscribe("pairingFailed",function(h){_.qc(w);b(h)});
w.start();return(0,_.Mc)(w.stop,w)};
var dgF=function(D,t){for(var H=D.screens.length,e=0;e<H;++e)if(D.screens[e].name==t)return D.screens[e];return null};
p4.prototype.JSC$19818_getScreenByPairingCode=function(D,t,H,e){_.cY(f4(this.JSC$19816_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:D},timeout:5E3,onSuccess:(0,_.Mc)(function(V,b){V=new C4(b.screen||{});if(!V.name||dgF(this,V.name)){a:{b=V.name;for(var a=2,w=t(b,a);dgF(this,w);){a++;if(a>20)break a;w=t(b,a)}b=w}V.name=b}H(Bj(this,V))},this),
onError:(0,_.Mc)(function(V){e(Error("Yk`"+V.status))},this),
onTimeout:(0,_.Mc)(function(){e(Error("Zk"))},this)})};
var xgt=function(D,t,H){Jkv(D.onlineScreenService_,t,H)};
p4.prototype.disposeInternal=function(){_.qc(this.localScreenService_);_.qc(this.onlineScreenService_);p4.superClass_.disposeInternal.call(this)};
var vng=function(D,t,H,e){D.info("requestLoungeToken_ for "+t);var V={postParams:{screen_ids:t},method:"POST",context:D,onSuccess:function(b,a){b=a&&a.screens||[];b[0]&&b[0].screenId==t?H(b[0].loungeToken):e(Error("$k"))},
onError:function(){e(Error("al"))}};
_.cY(f4(D.JSC$19816_http_,"/pairing/get_lounge_token_batch"),V)},RAi=function(D){D.screens=D.localScreenService_.getScreens();
for(var t=_.J$.transpose(D.deviceToScreenId_),H=D.screens.length,e=0;e<H;++e){var V=D.screens[e];V.uuid=t[V.id]||""}D.info("Updated manual screens: "+S_t(D.screens))};
p4.prototype.handleScreenChange_=function(){RAi(this);this.publish("screenChange");this.onlineScreenService_.update()};
var Xcg=function(D){unb(D);D.localScreenService_=new vL(D.JSC$19816_http_);D.localScreenService_.subscribe("screenChange",(0,_.Mc)(D.handleScreenChange_,D));RAi(D);D.disableAutomaticScreenCache_||(D.automaticScreens_=UgQ(_.l_("yt-remote-automatic-screen-cache")||[]));unb(D);D.info("Initializing automatic screens: "+S_t(D.automaticScreens_));D.onlineScreenService_=new y8(D.JSC$19816_http_,(0,_.Mc)(D.getScreens,D,!0));D.onlineScreenService_.subscribe("screenChange",(0,_.Mc)(function(){this.publish("onlineScreenChange")},
D))},Bj=function(D,t){var H=D.get(t.id);
H?(H.uuid=t.uuid,t=H):((H=M9(D.automaticScreens_,t.uuid))?(H.id=t.id,H.token=t.token,t=H):D.automaticScreens_.push(t),D.disableAutomaticScreenCache_||WyZ(D));unb(D);D.deviceToScreenId_[t.uuid]=t.id;_.Yg("yt-remote-device-id-map",D.deviceToScreenId_,31536E3);return t},WyZ=function(D){D=_.hM(D.automaticScreens_,function(t){return t.idType!="shortLived"});
_.Yg("yt-remote-automatic-screen-cache",_.Yz(D,rkZ))},unb=function(D){D.deviceToScreenId_=_.l_("yt-remote-device-id-map")||{}};
p4.prototype.dispose=p4.prototype.dispose;_.Zj(du,_.d5);var zZ=function(D,t){D.screen_=t;D.publish("sessionScreen",D.screen_)},IGF=function(D,t){D.screen_&&(D.screen_.token=t,Bj(D.JSC$19820_screenService_,D.screen_));
D.publish("sessionScreen",D.screen_)};
du.prototype.onSessionStopped=function(D){this.isDisposed()||(D&&(Do(this,""+D),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
du.prototype.info=function(D){Au(this.JSC$19820_logName_,D)};
var Do=function(D,t){Au(D.JSC$19820_logName_,t)};
du.prototype.JSC$19822_getCastSession=function(){return null};
du.prototype.setDisplayStatus=function(D){var t=this.receiver_;D?(t.displayStatus=new chrome.cast.ReceiverDisplayStatus(D,[]),t.displayStatus.showStop=!0):t.displayStatus=null;chrome.cast.setReceiverDisplayStatus(t,(0,_.Mc)(function(){this.info("Updated receiver status for "+t.friendlyName+": "+D)},this),(0,_.Mc)(function(){Do(this,"Failed to update receiver status for: "+t.friendlyName)},this))};
du.prototype.disposeInternal=function(){this.setDisplayStatus("");du.superClass_.disposeInternal.call(this)};var tH=function(D,t,H){du.call(this,D,t,"CastSession");var e=this;this.config_=H;this.JSC$19825_session_=null;this.JSC$19825_boundSessionUpdate_=(0,_.Mc)(this.JSC$19827_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Mc)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.KZ(function(){QMb(e,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19825_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19825_isInitLoungeToken_=!1;this.JSC$19825_lastLoungeTokenRefreshError_="unknown"};
_.P(tH,du);_.q=tH.prototype;
_.q.setCastSession=function(D){if(this.JSC$19825_session_){if(this.JSC$19825_session_==D)return;Do(this,"Overriding cast session with new session object");yk4(this);this.JSC$19825_isInitLoungeToken_=!1;this.JSC$19825_lastLoungeTokenRefreshError_="unknown";this.JSC$19825_session_.removeUpdateListener(this.JSC$19825_boundSessionUpdate_);this.JSC$19825_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19825_session_=D;this.JSC$19825_session_.addUpdateListener(this.JSC$19825_boundSessionUpdate_);this.JSC$19825_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);BtH(this,"getMdxSessionStatus")};
_.q.launchWithParams=function(D){this.info("launchWithParams no-op for Cast: "+(0,_.Ru)(D))};
_.q.stop=function(){if(this.JSC$19825_session_)this.JSC$19825_session_.stop((0,_.Mc)(function(){this.onSessionStopped()},this),(0,_.Mc)(function(){this.onSessionStopped(Error("bl"))},this));
else this.onSessionStopped(Error("cl"))};
_.q.setDisplayStatus=function(){};
_.q.disposeInternal=function(){this.info("disposeInternal");yk4(this);this.JSC$19825_session_&&(this.JSC$19825_session_.removeUpdateListener(this.JSC$19825_boundSessionUpdate_),this.JSC$19825_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19825_session_=null;du.prototype.disposeInternal.call(this)};
var DY4=function(D,t){_.kx(D.getLoungeTokenTimeoutKey_);D.getLoungeTokenTimeoutKey_=0;t==0?zAQ(D):D.getLoungeTokenTimeoutKey_=_.KZ(function(){zAQ(D)},t)},zAQ=function(D){BtH(D,"getLoungeToken");
_.kx(D.onLoungeTokenTimeoutKey_);D.onLoungeTokenTimeoutKey_=_.KZ(function(){tCF(D,null)},3E4)},BtH=function(D,t){D.info("sendYoutubeMessage_: "+t+" "+(0,_.Ru)(void 0));
var H={};H.type=t;D.JSC$19825_session_?D.JSC$19825_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",H,function(){},(0,_.Mc)(function(){Do(this,"Failed to send message: "+t+".")},D)):Do(D,"Sending yt message without session: "+(0,_.Ru)(H))};
tH.prototype.onYoutubeMessage_=function(D,t){if(!this.isDisposed())if(t)if(t=(0,_.AK)(t),_.Wk(t))switch(D=""+t.type,t=t.data||{},this.info("onYoutubeMessage_: "+D+" "+(0,_.Ru)(t)),D){case "mdxSessionStatus":QMb(this,t);break;case "loungeToken":tCF(this,t);break;default:Do(this,"Unknown youtube message: "+D)}else Do(this,"Unable to parse message.");else Do(this,"No data in message.")};
var H84=function(D,t){if(t)D.info("onConnectedScreenId_: Received screenId: "+t),D.screen_&&D.screen_.id==t||D.getScreen_(t,function(H){zZ(D,H)},function(){return D.onSessionStopped()},5);
else D.onSessionStopped(Error("dl"))},VCQ=function(D,t,H){D.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(t));
var e=new C4(t);ezF(D,e,function(V){V?(D.JSC$19825_isInitLoungeToken_=!0,Bj(D.JSC$19820_screenService_,e),zZ(D,e),D.JSC$19825_lastLoungeTokenRefreshError_="unknown",DY4(D,H)):(_.vn(Error("el`"+JSON.stringify(t))),D.onSessionStopped())},5)},QMb=function(D,t){_.kx(D.sessionStatusTimeoutKey_);
D.sessionStatusTimeoutKey_=0;if(t)D.config_.enableCastLoungeToken&&t.loungeToken?t.deviceId?D.screen_&&D.screen_.uuid==t.deviceId||(t.loungeTokenRefreshIntervalMs?VCQ(D,{name:D.receiver_.friendlyName,screenId:t.screenId,loungeToken:t.loungeToken,dialId:t.deviceId,screenIdType:"shortLived"},t.loungeTokenRefreshIntervalMs):(_.vn(Error("gl`"+JSON.stringify(t))),H84(D,t.screenId))):(_.vn(Error("fl`"+JSON.stringify(t))),H84(D,t.screenId)):H84(D,t.screenId);else D.onSessionStopped(Error("dl"))},tCF=function(D,
t){_.kx(D.onLoungeTokenTimeoutKey_);
D.onLoungeTokenTimeoutKey_=0;var H=null;if(t)if(t.loungeToken){var e;((e=D.screen_)==null?void 0:e.token)==t.loungeToken&&(H="staleLoungeToken")}else H="missingLoungeToken";else H="noLoungeTokenResponse";H?(D.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(t)+", error: "+H)),D.JSC$19825_lastLoungeTokenRefreshError_=H,DY4(D,3E4)):(IGF(D,t.loungeToken),D.JSC$19825_isInitLoungeToken_=!1,D.JSC$19825_lastLoungeTokenRefreshError_="unknown",DY4(D,t.loungeTokenRefreshIntervalMs))};
tH.prototype.getScreen_=function(D,t,H,e){_.kx(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;pJH(this.JSC$19820_screenService_,this.receiver_.label,D,this.receiver_.friendlyName,(0,_.Mc)(function(V){V?t(V):e>=0?(Do(this,"Screen "+D+" appears to be offline. "+e+" retries left."),this.getScreenTimeoutKey_=_.KZ((0,_.Mc)(this.getScreen_,this,D,t,H,e-1),300)):H(Error("hl"))},this),H)};
var ezF=function(D,t,H,e){_.kx(D.JSC$19825_checkScreenAvailabilityTimeoutKey_);D.JSC$19825_checkScreenAvailabilityTimeoutKey_=0;xgt(D.JSC$19820_screenService_,t,function(V){V||e<0?H(V):D.JSC$19825_checkScreenAvailabilityTimeoutKey_=_.KZ(function(){ezF(D,t,H,e-1)},300)})};
tH.prototype.JSC$19822_getCastSession=function(){return this.JSC$19825_session_};
tH.prototype.JSC$19827_onSessionUpdate_=function(D){this.isDisposed()||D||(Do(this,"Cast session died."),this.onSessionStopped())};
var yk4=function(D){_.kx(D.getScreenTimeoutKey_);D.getScreenTimeoutKey_=0;_.kx(D.JSC$19825_checkScreenAvailabilityTimeoutKey_);D.JSC$19825_checkScreenAvailabilityTimeoutKey_=0;_.kx(D.sessionStatusTimeoutKey_);D.sessionStatusTimeoutKey_=0;_.kx(D.onLoungeTokenTimeoutKey_);D.onLoungeTokenTimeoutKey_=0;_.kx(D.getLoungeTokenTimeoutKey_);D.getLoungeTokenTimeoutKey_=0};var HS=function(D,t,H,e){du.call(this,D,t,"DialSession");this.config_=e;this.JSC$19829_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19829_theme_=H;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19829_deferredLaunchDeadlineTimer_=NaN;this.JSC$19829_boundSessionUpdate_=(0,_.Mc)(this.JSC$19831_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19829_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19829_isInitLoungeToken_=!1;this.JSC$19829_lastLoungeTokenRefreshError_="unknown"};
_.P(HS,du);HS.prototype.setCastSession=function(D){this.JSC$19829_session_=D;this.JSC$19829_session_.addUpdateListener(this.JSC$19829_boundSessionUpdate_)};
HS.prototype.launchWithParams=function(D){this.connectData_=D;this.deferredLaunch_()};
HS.prototype.stop=function(){b8H(this);if(this.JSC$19829_session_)this.JSC$19829_session_.stop((0,_.Mc)(this.onSessionStopped,this,null),(0,_.Mc)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
HS.prototype.disposeInternal=function(){b8H(this);this.JSC$19829_session_&&this.JSC$19829_session_.removeUpdateListener(this.JSC$19829_boundSessionUpdate_);this.JSC$19829_session_=null;du.prototype.disposeInternal.call(this)};
var qbv=function(D){var t;return!!(D.config_.enableDialLoungeToken&&((t=D.JSC$19829_session_)==null?0:t.getDialAppInfo))},FZO=function(D){D.cancelPolling_=D.JSC$19820_screenService_.JSC$19818_getScreenByPollingPairingCode(D.reversePairingCode_,D.receiver_.label,D.receiver_.friendlyName,qbv(D),function(t,H){D.cancelPolling_=function(){};
D.JSC$19829_isInitLoungeToken_=!0;zZ(D,t);t.idType=="shortLived"&&H>0&&eA(D,H)},function(t){D.cancelPolling_=function(){};
D.onSessionStopped(t)})};
HS.prototype.JSC$19831_onSessionUpdate_=function(D){this.isDisposed()||D||(Do(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var aZY=function(D){var t={};t.pairingCode=D.reversePairingCode_;t.theme=D.JSC$19829_theme_;Tjv()&&(t.env_useStageMdx=1);return _.jc(t)},wpO=function(D){return new Promise(function(t){D.reversePairingCode_=eNe();
if(D.connectData_){var H=new chrome.cast.DialLaunchResponse(!0,aZY(D));t(H);FZO(D)}else D.deferredLaunch_=function(){_.kx(D.JSC$19829_deferredLaunchDeadlineTimer_);D.deferredLaunch_=function(){};
D.JSC$19829_deferredLaunchDeadlineTimer_=NaN;var e=new chrome.cast.DialLaunchResponse(!0,aZY(D));t(e);FZO(D)},D.JSC$19829_deferredLaunchDeadlineTimer_=_.KZ(function(){D.deferredLaunch_()},100)})},swH=function(D,t,H){D.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(t));
var e=new C4(t);return(new Promise(function(V){Z8O(D,e,function(b){b?(D.JSC$19829_isInitLoungeToken_=!0,Bj(D.JSC$19820_screenService_,e),zZ(D,e),eA(D,H)):_.vn(Error("jl`"+JSON.stringify(t)));V(b)},5)})).then(function(V){return V?new chrome.cast.DialLaunchResponse(!1):wpO(D)})},hzZ=function(D,t){var H=D.launchData_.receiver.label,e=D.receiver_.friendlyName;
return(new Promise(function(V){pJH(D.JSC$19820_screenService_,H,t,e,function(b){b&&b.token&&zZ(D,b);V(b)},function(b){Do(D,"Failed to get DIAL screen: "+b);
V(null)})})).then(function(V){return V&&V.token?new chrome.cast.DialLaunchResponse(!1):wpO(D)})},Z8O=function(D,t,H,e){_.kx(D.JSC$19829_checkScreenAvailabilityTimeoutKey_);
D.JSC$19829_checkScreenAvailabilityTimeoutKey_=0;xgt(D.JSC$19820_screenService_,t,function(V){V||e<0?H(V):D.JSC$19829_checkScreenAvailabilityTimeoutKey_=_.KZ(function(){Z8O(D,t,H,e-1)},300)})},eA=function(D,t){D.info("getDialAppInfoWithTimeout_ "+t);
qbv(D)&&(_.kx(D.getDialAppInfoTimeoutKey_),D.getDialAppInfoTimeoutKey_=0,t==0?Gsb(D):D.getDialAppInfoTimeoutKey_=_.KZ(function(){Gsb(D)},t))},Gsb=function(D){qbv(D)&&D.JSC$19829_session_.getDialAppInfo(function(t){D.info("getDialAppInfo dialLaunchData: "+JSON.stringify(t));
t=t.extraData||{};var H=null;if(t.loungeToken){var e;((e=D.screen_)==null?void 0:e.token)==t.loungeToken&&(H="staleLoungeToken")}else H="missingLoungeToken";H?(D.JSC$19829_lastLoungeTokenRefreshError_=H,eA(D,3E4)):(D.JSC$19829_isInitLoungeToken_=!1,D.JSC$19829_lastLoungeTokenRefreshError_="unknown",IGF(D,t.loungeToken),eA(D,t.loungeTokenRefreshIntervalMs))},function(t){D.info("getDialAppInfo error: "+t);
D.JSC$19829_lastLoungeTokenRefreshError_="noLoungeTokenResponse";eA(D,3E4)})},b8H=function(D){_.kx(D.JSC$19829_checkScreenAvailabilityTimeoutKey_);
D.JSC$19829_checkScreenAvailabilityTimeoutKey_=0;_.kx(D.getDialAppInfoTimeoutKey_);D.getDialAppInfoTimeoutKey_=0;D.cancelPolling_();D.cancelPolling_=function(){};
_.kx(D.JSC$19829_deferredLaunchDeadlineTimer_)};var VT=function(D,t){du.call(this,D,t,"ManualSession");this.JSC$19833_deferredLaunchDeadlineTimer_=_.KZ((0,_.Mc)(this.launchWithParams,this,null),150)};
_.P(VT,du);VT.prototype.stop=function(){this.onSessionStopped()};
VT.prototype.setCastSession=function(){};
VT.prototype.launchWithParams=function(){_.kx(this.JSC$19833_deferredLaunchDeadlineTimer_);this.JSC$19833_deferredLaunchDeadlineTimer_=NaN;var D=M9(this.JSC$19820_screenService_.getScreens(),this.receiver_.label);if(D)zZ(this,D);else this.onSessionStopped(Error("kl"))};
VT.prototype.disposeInternal=function(){_.kx(this.JSC$19833_deferredLaunchDeadlineTimer_);this.JSC$19833_deferredLaunchDeadlineTimer_=NaN;du.prototype.disposeInternal.call(this)};var WL=function(D,t){_.d5.call(this);this.config_=t;this.JSC$19836_screenService_=D;this.JSC$19836_appId_=t.appId||"233637DE";this.JSC$19836_theme_=t.theme||"cl";this.disableDial_=t.disableCastApi||!1;this.forceMirroring_=t.forceMirroring||!1;this.JSC$19836_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Mc)(this.onReceiverAction_,this)};
_.P(WL,_.d5);
WL.prototype.init=function(D,t){chrome.cast.timeout.requestSession=3E4;var H=new chrome.cast.SessionRequest(this.JSC$19836_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.r("desktop_enable_cast_connect")&&(H.androidReceiverCompatible=!0);this.disableDial_||(H.dialRequest=new chrome.cast.DialRequest("YouTube"));var e=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;D=D||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var V=(0,_.Mc)(this.onReceiverUpdated_,
this);H=new chrome.cast.ApiConfig(H,(0,_.Mc)(this.onSessionEstablished_,this),V,e,D);H.customDialLaunchCallback=(0,_.Mc)(this.onDialLaunchRequested_,this);chrome.cast.initialize(H,(0,_.Mc)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),oPZ(),this.JSC$19836_screenService_.subscribe("onlineScreenChange",(0,_.Mc)(this.JSC$19838_onScreenChange_,this)),this.customReceivers_=EDZ(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.Mc)(function(b){this.warn_("Failed to set initial custom receivers: "+(0,_.Ru)(b))},this)),this.publish("yt-remote-cast2-availability-change",b3(this)),t(!0))},this),(0,_.Mc)(function(b){this.warn_("Failed to initialize API: "+(0,_.Ru)(b));
t(!1)},this))};
WL.prototype.setConnectedScreenStatus=function(D,t){qE("Setting connected screen ID: "+D+" -> "+t);if(this.JSC$19836_session_){var H=this.JSC$19836_session_.screen_;if(!D||H&&H.id!=D)qE("Unsetting old screen status: "+this.JSC$19836_session_.receiver_.friendlyName),FM(this,null)}if(D&&t){if(!this.JSC$19836_session_){D=M9(this.JSC$19836_screenService_.getScreens(),D);if(!D){qE("setConnectedScreenStatus: Unknown screen.");return}if(D.idType=="shortLived"){qE("setConnectedScreenStatus: Screen with id type to be short lived.");
return}H=KZF(this,D);H||(qE("setConnectedScreenStatus: Connected receiver not custom..."),H=new chrome.cast.Receiver(D.uuid?D.uuid:D.id,D.name),H.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(H),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Mc)(function(e){this.warn_("Failed to set initial custom receivers: "+(0,_.Ru)(e))},this)));
qE("setConnectedScreenStatus: new active receiver: "+H.friendlyName);FM(this,new VT(this.JSC$19836_screenService_,H),!0)}this.JSC$19836_session_.setDisplayStatus(t)}else qE("setConnectedScreenStatus: no screen.")};
var KZF=function(D,t){return t?_.LK(D.customReceivers_,function(H){return m_(t,H.label)},D):null};
WL.prototype.setLaunchParams=function(D){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19836_session_?this.JSC$19836_session_.launchWithParams(D):this.warn_("Setting connection data without a session")};
WL.prototype.JSC$19838_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19836_session_?(this.JSC$19836_session_.stop(),FM(this,null)):qE("Stopping non-existing session")};
WL.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Mc)(this.onSessionEstablished_,this),(0,_.Mc)(this.onSessionRequestFailed_,this))};
WL.prototype.disposeInternal=function(){this.JSC$19836_screenService_.unsubscribe("onlineScreenChange",(0,_.Mc)(this.JSC$19838_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.vk(_.RD("yt.mdx.remote.debug.handlers_")||[],rjZ);_.qc(this.JSC$19836_session_);_.d5.prototype.disposeInternal.call(this)};
var qE=function(D){Au("Controller",D)};
WL.prototype.warn_=function(D){Au("Controller",D)};
var rjZ=function(D){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(D)},b3=function(D){return D.hasCastReceiver_||!!D.customReceivers_.length||!!D.JSC$19836_session_},FM=function(D,t,H){t!=D.JSC$19836_session_&&(_.qc(D.JSC$19836_session_),(D.JSC$19836_session_=t)?(H?D.publish("yt-remote-cast2-receiver-resumed",t.receiver_):D.publish("yt-remote-cast2-receiver-selected",t.receiver_),t.subscribe("sessionScreen",(0,_.Mc)(D.onSessionScreen_,D,t)),t.subscribe("sessionFailed",
function(){return N7i(D,t)}),t.screen_?D.publish("yt-remote-cast2-session-change",t.screen_):H&&D.JSC$19836_session_.launchWithParams(null)):D.publish("yt-remote-cast2-session-change",null))},N7i=function(D,t){D.JSC$19836_session_==t&&D.publish("yt-remote-cast2-session-failed")};
_.q=WL.prototype;_.q.onSessionScreen_=function(D,t){this.JSC$19836_session_==D&&(t||FM(this,null),this.publish("yt-remote-cast2-session-change",t))};
_.q.onReceiverAction_=function(D,t){if(!this.isDisposed())if(D)switch(D.friendlyName=chrome.cast.unescape(D.friendlyName),qE("onReceiverAction_ "+D.label+" / "+D.friendlyName+"-- "+t),t){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19836_session_)if(this.JSC$19836_session_.receiver_.label!=D.label)qE("onReceiverAction_: Stopping active receiver: "+this.JSC$19836_session_.receiver_.friendlyName),this.JSC$19836_session_.stop();else{qE("onReceiverAction_: Casting to active receiver.");this.JSC$19836_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19836_session_.screen_);break}switch(D.receiverType){case chrome.cast.ReceiverType.CUSTOM:FM(this,new VT(this.JSC$19836_screenService_,D));break;case chrome.cast.ReceiverType.DIAL:FM(this,new HS(this.JSC$19836_screenService_,D,this.JSC$19836_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:FM(this,new tH(this.JSC$19836_screenService_,D,this.config_));break;default:this.warn_("Unknown receiver type: "+D.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19836_session_&&
this.JSC$19836_session_.receiver_.label==D.label?this.JSC$19836_session_.stop():this.warn_("Stopping receiver w/o session: "+D.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.q.onDialLaunchRequested_=function(D){if(this.isDisposed())return Promise.reject(Error("ll"));var t=D.receiver;t.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+t.friendlyName),t.receiverType=chrome.cast.ReceiverType.DIAL);var H=this.JSC$19836_session_?this.JSC$19836_session_.receiver_:null;if(!H||H.label!=t.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+t.friendlyName),Promise.reject(Error("ml"));if(H&&H.label==t.label&&H.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19836_session_.screen_)return qE("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19836_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+H.receiverType+'" to "dial" for '+t.friendlyName);FM(this,new HS(this.JSC$19836_screenService_,t,this.JSC$19836_theme_,this.config_))}t=this.JSC$19836_session_;t.launchData_=D;t.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(D=t.launchData_.extraData||{},H=D.screenId||null,qbv(t)&&D.loungeToken?D.loungeTokenRefreshIntervalMs?D=swH(t,{name:t.receiver_.friendlyName,screenId:D.screenId,loungeToken:D.loungeToken,dialId:t.launchData_.receiver.label,screenIdType:"shortLived"},D.loungeTokenRefreshIntervalMs):(_.vn(Error("il`"+JSON.stringify(D))),D=hzZ(t,H)):D=hzZ(t,H)):D=wpO(t);return D};
_.q.onSessionEstablished_=function(D){var t=this;if(!this.isDisposed()&&!this.forceMirroring_){qE("New cast session ID: "+D.sessionId);var H=D.receiver;if(H.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19836_session_)if(H.receiverType==chrome.cast.ReceiverType.CAST)qE("Got resumed cast session before resumed mdx connection."),H.friendlyName=chrome.cast.unescape(H.friendlyName),FM(this,new tH(this.JSC$19836_screenService_,H,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var e=this.JSC$19836_session_.receiver_,V=M9(this.JSC$19836_screenService_.getScreens(),e.label);V&&m_(V,H.label)&&e.receiverType!=chrome.cast.ReceiverType.CAST&&H.receiverType==chrome.cast.ReceiverType.CAST&&(qE("onSessionEstablished_: manual to cast session change "+H.friendlyName),_.qc(this.JSC$19836_session_),this.JSC$19836_session_=new tH(this.JSC$19836_screenService_,H,this.config_),this.JSC$19836_session_.subscribe("sessionScreen",(0,_.Mc)(this.onSessionScreen_,this,this.JSC$19836_session_)),
this.JSC$19836_session_.subscribe("sessionFailed",function(){return N7i(t,t.JSC$19836_session_)}),this.JSC$19836_session_.launchWithParams(null));
this.JSC$19836_session_.setCastSession(D)}}};
_.q.JSC$19838_getCastSession=function(){return this.JSC$19836_session_?this.JSC$19836_session_.JSC$19822_getCastSession():null};
_.q.onSessionRequestFailed_=function(D){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.Ru)(D)),D.code!=chrome.cast.ErrorCode.CANCEL&&FM(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.q.onReceiverUpdated_=function(D){qE("Receiver availability updated: "+D);if(!this.isDisposed()){var t=b3(this);this.hasCastReceiver_=D==chrome.cast.ReceiverAvailability.AVAILABLE;b3(this)!=t&&this.publish("yt-remote-cast2-availability-change",b3(this))}};
var EDZ=function(D){var t=D.JSC$19836_screenService_.JSC$19818_getOnlineScreens(),H=D.JSC$19836_session_&&D.JSC$19836_session_.receiver_;D=_.Yz(t,function(e){H&&m_(e,H.label)&&(H=null);var V=e.uuid?e.uuid:e.id,b=KZF(this,e);b?(b.label=V,b.friendlyName=e.name):(b=new chrome.cast.Receiver(V,e.name),b.receiverType=chrome.cast.ReceiverType.CUSTOM);return b},D);
H&&(H.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(H=new chrome.cast.Receiver(H.label,H.friendlyName),H.receiverType=chrome.cast.ReceiverType.CUSTOM),D.push(H));return D};
WL.prototype.JSC$19838_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=EDZ(this),qE("Updating custom receivers: "+(0,_.Ru)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Mc)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",b3(this)))};
WL.prototype.setLaunchParams=WL.prototype.setLaunchParams;WL.prototype.setConnectedScreenStatus=WL.prototype.setConnectedScreenStatus;WL.prototype.stopSession=WL.prototype.JSC$19838_stopSession;WL.prototype.getCastSession=WL.prototype.JSC$19838_getCastSession;WL.prototype.requestSession=WL.prototype.requestSession;WL.prototype.init=WL.prototype.init;WL.prototype.dispose=WL.prototype.dispose;var ksH=_.zk(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),Bjb=[],ltH=_.E5(ksH);var T7H=function(D){D.audioTrackId=null;D.trackData=null;D.playerState=-1;D.hasPrevious=!1;D.hasNext=!1;D.playerTime_=0;D.playerTimeAt_=_.wU();D.seekableStart_=0;D.seekableEnd_=0;D.duration_=0;D.loadedTime=0;D.liveIngestionTime_=NaN;D.isLive_=!1};
_.q=IG.prototype;
_.q.reset=function(D){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;D&&(this.index=D.index,this.listId=D.listId,this.videoId=D.videoId,this.playerState=D.playerState,this.volume=D.volume,this.muted=D.muted,this.audioTrackId=D.audioTrackId,this.trackData=D.trackData,this.hasPrevious=D.hasPrevious,this.hasNext=D.hasNext,this.playerTime_=D.playerTime,this.playerTimeAt_=D.playerTimeAt,this.seekableStart_=D.seekableStart,this.seekableEnd_=D.seekableEnd,this.duration_=D.duration,this.loadedTime=
D.loadedTime,this.liveIngestionTime_=D.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.q.stopPlayer=function(){this.index=-1;this.videoId="";T7H(this)};
_.q.isPlaying=function(){return this.playerState==1};
_.q.isBuffering=function(){return this.playerState==3};
_.q.isAdPlaying=function(){return this.playerState==1081};
var ap=function(D,t){D.playerTime_=t;D.playerTimeAt_=_.wU()},crF=function(D){switch(D.playerState){case 1:case 1081:return(_.wU()-D.playerTimeAt_)/1E3+D.playerTime_;
case -1E3:return 0}return D.playerTime_};
IG.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.wU()-this.playerTimeAt_)/1E3:0):this.duration_};
var jwZ=function(D,t,H){var e=D.videoId;D.videoId=t;D.index=H;t!=e&&T7H(D)},$YZ=function(D){var t={};
t.index=D.index;t.listId=D.listId;t.videoId=D.videoId;t.playerState=D.playerState;t.volume=D.volume;t.muted=D.muted;t.audioTrackId=D.audioTrackId;t.trackData=_.J$.unsafeClone(D.trackData);t.hasPrevious=D.hasPrevious;t.hasNext=D.hasNext;t.playerTime=D.playerTime_;t.playerTimeAt=D.playerTimeAt_;t.seekableStart=D.seekableStart_;t.seekableEnd=D.seekableEnd_;t.duration=D.duration_;t.loadedTime=D.loadedTime;t.liveIngestionTime=D.liveIngestionTime_;return t};
IG.prototype.clone=function(){return new IG($YZ(this))};var em=function(D,t){_.d5.call(this);var H=this;this.state_=0;this.connection_=D;this.contextSubscriptions_=[];this.actionQueue_=new udt;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Mc)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Mc)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Mc)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Mc)(this.onCloudviewAvailabilityChange_,this);var e=0;D?(e=D.getProxyState(),
e!=3&&(D.subscribe("proxyStateChange",this.setState_,this),i8b(this))):e=3;e!=0&&(t?this.setState_(e):_.KZ(function(){H.setState_(e)},0));
(D=Hbi())&&rrt(this,D);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.P(em,_.d5);em.prototype.getState=function(){return this.state_};
em.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
em.prototype.reconnect=function(){this.connection_.reconnect()};
var wQ=function(D){return new IG(D.connection_.getPlayerContextData())};
_.q=em.prototype;_.q.play=function(){Zo(this)?(this.castMedia_?this.castMedia_.play(null,_.fJ,O8g(this,"play")):s8(this,"play"),UYF(this,1,crF(wQ(this))),this.publish("remotePlayerChange")):hH(this,this.play)};
_.q.pause=function(){Zo(this)?(this.castMedia_?this.castMedia_.pause(null,_.fJ,O8g(this,"pause")):s8(this,"pause"),UYF(this,2,crF(wQ(this))),this.publish("remotePlayerChange")):hH(this,this.pause)};
_.q.seekTo=function(D){if(Zo(this)){if(this.castMedia_){var t=wQ(this),H=new chrome.cast.media.SeekRequest;H.currentTime=D;t.isPlaying()||t.isBuffering()?H.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:H.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(H,_.fJ,O8g(this,"seekTo",{newTime:D}))}else s8(this,"seekTo",{newTime:D});UYF(this,3,D);this.publish("remotePlayerChange")}else hH(this,_.o4(this.seekTo,D))};
_.q.stop=function(){if(Zo(this)){this.castMedia_?this.castMedia_.stop(null,_.fJ,O8g(this,"stopVideo")):s8(this,"stopVideo");var D=wQ(this);D.stopPlayer();Ge(this,D);this.publish("remotePlayerChange")}else hH(this,this.stop)};
_.q.setVolume=function(D,t){if(Zo(this)){var H=wQ(this);if(this.castSession_){if(H.volume!=D){var e=Math.round(D)/100;this.castSession_.setReceiverVolumeLevel(e,(0,_.Mc)(function(){gu("set receiver volume: "+e)},this),(0,_.Mc)(function(){this.warn_("failed to set receiver volume.")},this))}H.muted!=t&&this.castSession_.setReceiverMuted(t,(0,_.Mc)(function(){gu("set receiver muted: "+t)},this),(0,_.Mc)(function(){this.warn_("failed to set receiver muted.")},this))}else{var V={volume:D,
muted:t};H.volume!=-1&&(V.delta=D-H.volume);s8(this,"setVolume",V)}H.muted=t;H.volume=D;Ge(this,H)}else hH(this,_.o4(this.setVolume,D,t))};
_.q.setAudioTrack=function(D,t){Zo(this)?(t=t.getLanguageInfo().getId(),s8(this,"setAudioTrack",{videoId:D,audioTrackId:t}),D=wQ(this),D.audioTrackId=t,Ge(this,D)):hH(this,_.o4(this.setAudioTrack,D,t))};
_.q.addVideo=function(D){Zo(this)?s8(this,"addVideo",{videoId:D}):hH(this,_.o4(this.addVideo,D))};
_.q.addPlaylist=function(D){Zo(this)?s8(this,"addVideos",{listId:D}):hH(this,_.o4(this.addPlaylist,D))};
_.q.addVideos=function(D){D.length==0?this.warn_("Ignore add videos request due to empty list"):Zo(this)?s8(this,"addVideos",{videoIds:D.join(",")}):hH(this,_.o4(this.addVideos,D))};
_.q.JSC$19848_removeVideo=function(D){Zo(this)?s8(this,"removeVideo",{videoId:D}):hH(this,_.o4(this.JSC$19848_removeVideo,D))};
_.q.JSC$19848_insertVideo=function(D){Zo(this)?s8(this,"insertVideo",{videoId:D}):hH(this,_.o4(this.JSC$19848_insertVideo,D))};
_.q.playVideo=function(D,t,H,e,V,b,a){e=e===void 0?null:e;V=V===void 0?null:V;b=b===void 0?null:b;a=a===void 0?null:a;var w=wQ(this),h={videoId:D};H!==void 0&&(h.currentIndex=H);jwZ(w,D,H||0);t!==void 0&&(ap(w,t),h.currentTime=t);e&&(h.listId=e);V&&(h.playerParams=V);b&&(h.clickTrackingParams=b);a&&(h.locationInfo=(0,_.Ru)(a));s8(this,"setPlaylist",h);e||Ge(this,w)};
_.q.nextVideo=function(D,t){if(Zo(this)){if(D&&t){var H=wQ(this);jwZ(H,D,t);Ge(this,H)}s8(this,"next")}else hH(this,_.o4(this.nextVideo,D,t))};
_.q.clearPlaylist=function(){if(Zo(this)){s8(this,"clearPlaylist");var D=wQ(this);D.reset();Ge(this,D);this.publish("remotePlayerChange")}else hH(this,this.clearPlaylist)};
_.q.dispose=function(){if(this.state_!=3){var D=this.state_;this.state_=3;this.publish("proxyStateChange",D,this.state_)}_.d5.prototype.dispose.call(this)};
_.q.disposeInternal=function(){oDH(this);this.connection_=null;this.actionQueue_.clear();rrt(this,null);_.d5.prototype.disposeInternal.call(this)};
var i8b=function(D){_.ID("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(t){this.contextSubscriptions_.push(this.connection_.subscribe(t,_.o4(this.onProxyEvent_,t),this))},D)},oDH=function(D){_.ID(D.contextSubscriptions_,function(t){this.connection_.unsubscribeByKey(t)},D);
D.contextSubscriptions_.length=0},Zo=function(D){return D.getState()==1},hH=function(D,t){D.actionQueue_.getCount()<50&&D.actionQueue_.enqueue(t)},UYF=function(D,t,H){var e=wQ(D);
ap(e,H);e.playerState!=-1E3&&(e.playerState=t);Ge(D,e)},s8=function(D,t,H){D.connection_.sendMessage(t,H)},Ge=function(D,t){oDH(D);
D.connection_.setPlayerContextData($YZ(t));i8b(D)};
em.prototype.setState_=function(D){if((D!=this.state_||D==2)&&this.state_!=3&&D!=0){var t=this.state_;this.state_=D;this.publish("proxyStateChange",t,D);if(D==1)for(;!this.actionQueue_.isEmpty();)D=this.actionQueue_,lQF(D),D.front_.pop().apply(this);else D==3&&this.dispose()}};
em.prototype.onProxyEvent_=function(D,t){this.publish(D,t)};
var rrt=function(D,t){D.castSession_&&(D.castSession_.removeUpdateListener(D.boundCastStatusListener_),D.castSession_.removeMediaListener(D.boundCastMediaListener_),D.onCastMediaChange_(null));D.castSession_=t;if(D.castSession_&&(gu("Setting cast session: "+D.castSession_.sessionId),D.castSession_.addUpdateListener(D.boundCastStatusListener_),D.castSession_.addMediaListener(D.boundCastMediaListener_),D.castSession_.media.length))D.onCastMediaChange_(D.castSession_.media[0])};
em.prototype.onCastStatusUpdate_=function(D){if(!D)this.onCastMediaChange_(null),rrt(this,null);else if(this.castSession_.receiver.volume){D=this.castSession_.receiver.volume;var t=wQ(this),H=Math.round(100*D.level||0);if(t.volume!=H||t.muted!=D.muted)gu("Cast volume update: "+D.level+(D.muted?" muted":"")),t.volume=H,t.muted=!!D.muted,Ge(this,t)}};
em.prototype.onCastMediaChange_=function(D){gu("Cast media: "+!!D);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=D)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),PUF(this),this.publish("remotePlayerChange")};
var PUF=function(D){var t=D.castMedia_.media,H=D.castMedia_.customData;if(t&&H){var e=wQ(D);t.contentId!=e.videoId&&gu("Cast changing video to: "+t.contentId);e.videoId=t.contentId;e.playerState=H.playerState;ap(e,D.castMedia_.getEstimatedTime());Ge(D,e)}else gu("No cast media video. Ignoring state update.")};
em.prototype.onCastMediaUpdate_=function(D){if(D)PUF(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
em.prototype.onCloudviewAvailabilityChange_=function(){var D=Hbi();D&&rrt(this,D)};
em.prototype.warn_=function(D){Au("CP",D)};
var O8g=function(D,t,H){return(0,_.Mc)(function(e){this.warn_("Failed to "+t+" with cast v2 channel. Error code: "+e.code);e.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+t+" using MDx browser channel."),s8(this,t,H))},D)};var VU=function(D,t,H,e){e=e===void 0?!1:e;_.d5.call(this);var V=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$19853_http_=D;this.enableConnectWithInitialState_=e;this.listeners_.push(_.bm(window,"beforeunload",function(){V.JSC$19856_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new IG;this.currentScreenId_=t.id;this.currentScreenIdType_=t.idType;this.channelService=izi(this.JSC$19853_http_,H,this.JSC$19856_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){nDZ(V)});
this.channelService.listen("channelClosed",function(){E8("Channel closed");isNaN(V.connectTimerId_)?SI(!0):SI();V.dispose()});
this.channelService.listen("channelError",function(b){SI();isNaN(V.getReconnectTimeout_())?(b==1&&V.currentScreenIdType_=="shortLived"&&V.publish("browserChannelAuthError",b),E8("Channel error: "+b+" without reconnection"),V.dispose()):(V.reconnecting_=!0,E8("Channel error: "+b+" with reconnection in "+V.getReconnectTimeout_()+" ms"),CUQ(V,2))});
this.channelService.listen("channelMessage",function(b){mYF(V,b)});
this.channelService.setLoungeToken(t.token);this.subscribe("remoteQueueChange",function(){var b=V.playerContext_.videoId;ate()&&_.Yg("yt-remote-session-video-id",b)})};
_.P(VU,_.d5);
VU.prototype.connect=function(D,t){if(t){var H=t.listId,e=t.videoId,V=t.videoIds,b=t.playerParams,a=t.clickTrackingParams,w=t.index,h={videoId:e},K=t.currentTime,N=t.locationInfo;t=t.loopMode;K!==void 0&&(h.currentTime=K<=5?0:K);b&&(h.playerParams=b);N&&(h.locationInfo=N);a&&(h.clickTrackingParams=a);H&&(h.listId=H);V&&V.length>0&&(h.videoIds=V.join(","));w!==void 0&&(h.currentIndex=w);this.enableConnectWithInitialState_&&(h.loopMode=t||"LOOP_MODE_OFF");H&&(this.playerContext_.listId=H);this.playerContext_.videoId=
e;this.playerContext_.index=w||0;this.playerContext_.state=3;ap(this.playerContext_,K);this.autoplayMode_="UNSUPPORTED";H=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";E8("Connecting with "+H+" and params: "+(0,_.Ru)(h));this.channelService.connect({method:H,params:(0,_.Ru)(h)},D,GLe())}else E8("Connecting without params"),this.channelService.connect({},D,GLe());MCH(this)};
VU.prototype.setLoungeToken=function(D){this.channelService.setLoungeToken(D)};
VU.prototype.dispose=function(){this.isDisposed()||(_.bg("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),CUQ(this,3));_.d5.prototype.dispose.call(this)};
VU.prototype.disposeInternal=function(){SbO(this);XpF(this);fZH(this);_.kx(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.kx(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.ZbX(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.d5.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var LZH=function(D){return _.LK(D.connectedDevices_,function(t){return t.type=="LOUNGE_SCREEN"})},E8=function(D){Au("conn",D)},CUQ=function(D,t){D.publish("proxyStateChange",t)},MCH=function(D){D.connectTimerId_=_.KZ(function(){E8("Connecting timeout");
D.JSC$19856_disconnect_(1)},2E4)},SbO=function(D){_.kx(D.connectTimerId_);
D.connectTimerId_=NaN},fZH=function(D){_.kx(D.reconnectedCheckScreenTimeout_);
D.reconnectedCheckScreenTimeout_=NaN},ArH=function(D){XpF(D);
D.playingSyncTimerId_=_.KZ(function(){Ku(D,"getNowPlaying")},2E4)},XpF=function(D){_.kx(D.playingSyncTimerId_);
D.playingSyncTimerId_=NaN},nDZ=function(D){E8("Channel opened");
D.reconnecting_&&(D.reconnecting_=!1,fZH(D),D.reconnectedCheckScreenTimeout_=_.KZ(function(){E8("Timing out waiting for a screen.");D.JSC$19856_disconnect_(1)},15E3))},JrF=function(D,t){var H=null;
if(t){var e=LZH(D);e&&(H={clientName:e.clientName,deviceMake:e.brand,deviceModel:e.model,osVersion:e.osVersion})}_.bg("yt.mdx.remote.remoteClient_",H);t&&(SbO(D),fZH(D));H=D.channelService.isChannelOpened()&&isNaN(D.connectTimerId_);t==H?t&&(CUQ(D,1),Ku(D,"getSubtitlesTrack")):t?(D.getOtherConnectedRemoteId_()&&D.playerContext_.reset(),CUQ(D,1),Ku(D,"getNowPlaying"),gDY(D)):D.JSC$19856_disconnect_(1)},YbQ=function(D,t){var H=t.params.videoId;
delete t.params.videoId;H==D.playerContext_.videoId&&(_.J$.isEmpty(t.params)?D.playerContext_.trackData=null:D.playerContext_.trackData=t.params,D.publish("remotePlayerChange"))},lZF=function(D,t,H){var e=t.params.videoId||t.params.video_id,V=parseInt(t.params.currentIndex,10);
D.playerContext_.listId=t.params.listId||D.playerContext_.listId;jwZ(D.playerContext_,e,V);D.publish("remoteQueueChange",H)},vDO=function(D,t){t.params=t.params||{};
lZF(D,t,"NOW_PLAYING_MAY_CHANGE");D.onStateChange_(t);D.publish("autoplayDismissed")};
VU.prototype.onStateChange_=function(D){var t=parseInt(D.params.currentTime||D.params.current_time,10);ap(this.playerContext_,isNaN(t)?0:t);t=parseInt(D.params.state,10);t=isNaN(t)?-1:t;t==-1&&this.playerContext_.playerState==-1E3&&(t=-1E3);this.playerContext_.playerState=t;t=Number(D.params.loadedTime);this.playerContext_.loadedTime=isNaN(t)?0:t;t=Number(D.params.duration);this.playerContext_.duration_=isNaN(t)?0:t;t=this.playerContext_;var H=Number(D.params.liveIngestionTime);t.liveIngestionTime_=
H;t.isLive_=isNaN(H)?!1:!0;t=this.playerContext_;H=Number(D.params.seekableStartTime);D=Number(D.params.seekableEndTime);t.seekableStart_=isNaN(H)?0:H;t.seekableEnd_=isNaN(D)?0:D;this.playerContext_.playerState==1?ArH(this):XpF(this);this.publish("remotePlayerChange")};
VU.prototype.onAdStateChange_=function(D){if(this.playerContext_.playerState!=-1E3){var t=1085;switch(parseInt(D.params.adState,10)){case 1:t=1081;break;case 2:t=1084;break;case 0:t=1083}this.playerContext_.playerState=t;D=parseInt(D.params.currentTime,10);ap(this.playerContext_,isNaN(D)?0:D);this.publish("remotePlayerChange")}};
var ppi=function(D,t){var H=t.params.muted=="true";D.playerContext_.volume=parseInt(t.params.volume,10);D.playerContext_.muted=H;D.publish("remotePlayerChange")},dYg=function(D,t){D.autoplayVideoId_=t.params.videoId;
D.publish("nowAutoplaying",parseInt(t.params.timeout,10))},xYH=function(D,t){D.autoplayVideoId_=t.params.videoId||null;
D.publish("autoplayUpNext",D.autoplayVideoId_)},RzF=function(D,t){D.autoplayMode_=t.params.autoplayMode;
D.publish("autoplayModeChange",D.autoplayMode_);D.autoplayMode_=="DISABLED"&&D.publish("autoplayDismissed")},uDY=function(D,t){var H=t.params.hasNext=="true";
D.playerContext_.hasPrevious=t.params.hasPrevious=="true";D.playerContext_.hasNext=H;D.publish("previousNextChange")};
VU.prototype.isCapabilitySupportedOnConnectedDevices_=function(D){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var t=_.F(this.connectedDevices_),H=t.next();!H.done;H=t.next())if(!H.value.capabilities.has(D))return!1;return!0};
var mYF=function(D,t){t=t.message;t.params?E8("Received: action="+t.action+", params="+(0,_.Ru)(t.params)):E8("Received: action="+t.action+" {}");switch(t.action){case "loungeStatus":t=(0,_.AK)(t.params.devices);D.connectedDevices_=_.Yz(t,function(e){return new Q8(e)});
t=!!_.LK(D.connectedDevices_,function(e){return e.type=="LOUNGE_SCREEN"});
JrF(D,t);t=D.isCapabilitySupportedOnConnectedDevices_("mlm");D.publish("multiStateLoopEnabled",t);break;case "loungeScreenDisconnected":AEH(D.connectedDevices_,function(e){return e.type=="LOUNGE_SCREEN"});
JrF(D,!1);break;case "remoteConnected":var H=new Q8((0,_.AK)(t.params.device));_.LK(D.connectedDevices_,function(e){return e.equals(H)})||_.mu$(D.connectedDevices_,H);
break;case "remoteDisconnected":H=new Q8((0,_.AK)(t.params.device));AEH(D.connectedDevices_,function(e){return e.equals(H)});
break;case "gracefulDisconnect":break;case "playlistModified":lZF(D,t,"QUEUE_MODIFIED");break;case "nowPlaying":vDO(D,t);break;case "onStateChange":D.onStateChange_(t);break;case "onAdStateChange":D.onAdStateChange_(t);break;case "onVolumeChanged":ppi(D,t);break;case "onSubtitlesTrackChanged":YbQ(D,t);break;case "nowAutoplaying":dYg(D,t);break;case "autoplayDismissed":D.publish("autoplayDismissed");break;case "autoplayUpNext":xYH(D,t);break;case "onAutoplayModeChanged":RzF(D,t);break;case "onHasPreviousNextChanged":uDY(D,
t);break;case "requestAssistedSignIn":D.publish("assistedSignInRequested",t.params.authCode);break;case "onLoopModeChanged":D.publish("loopModeChange",t.params.loopMode);break;default:E8("Unrecognized action: "+t.action)}};
_.q=VU.prototype;_.q.getProxyState_=function(){var D=3;this.isDisposed()||(D=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(D=1):D=2);return D};
_.q.JSC$19856_disconnect_=function(D){E8("Disconnecting with "+D);_.bg("yt.mdx.remote.remoteClient_",null);SbO(this);this.publish("beforeDisconnect",D);D==1&&SI();this.channelService.disconnect(D);this.dispose()};
_.q.getPlayerContextData_=function(){var D=this.playerContext_;this.clientVideoId_&&(D=this.playerContext_.clone(),jwZ(D,this.clientVideoId_,D.index));return $YZ(D)};
_.q.setPlayerContextData_=function(D){var t=this,H=new IG(D);H.videoId&&H.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=H.videoId,_.kx(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.KZ(function(){if(t.clientVideoId_){var V=t.clientVideoId_;t.clientVideoId_=null;t.playerContext_.videoId!=V&&Ku(t,"getNowPlaying")}},5E3));
var e=[];this.playerContext_.listId==H.listId&&this.playerContext_.videoId==H.videoId&&this.playerContext_.index==H.index||e.push("remoteQueueChange");this.playerContext_.playerState==H.playerState&&this.playerContext_.volume==H.volume&&this.playerContext_.muted==H.muted&&crF(this.playerContext_)==crF(H)&&(0,_.Ru)(this.playerContext_.trackData)==(0,_.Ru)(H.trackData)||e.push("remotePlayerChange");this.playerContext_.reset(D);_.ID(e,function(V){this.publish(V)},this)};
_.q.getOtherConnectedRemoteId_=function(){var D=this.channelService.getDeviceId(),t=_.LK(this.connectedDevices_,function(H){return H.type=="REMOTE_CONTROL"&&H.id!=D});
return t?t.id:""};
_.q.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.q.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.q.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.q.JSC$19856_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var gDY=function(D){_.kx(D.idleDisconnectTimerId_);D.idleDisconnectTimerId_=_.KZ(function(){D.JSC$19856_disconnect_(1)},864E5)},Ku=function(D,t,H){H?E8("Sending: action="+t+", params="+(0,_.Ru)(H)):E8("Sending: action="+t);
D.channelService.sendMessage(t,H)};
VU.prototype.sendMessageWithUserAction_=function(D,t){Ku(this,D,t);gDY(this)};
VU.prototype.JSC$19856_getXsrfToken_=function(){var D=_.ri.get("SAPISID","")||_.ri.get("__Secure-1PAPISID",void 0)||"",t=_.ri.get("__Secure-3PAPISID","")||"";if(!D&&!t)return"";D=_.XF(_.CN(D),2);t=_.XF(_.CN(t),2);return _.XF(_.CN(","+D+","+t),2)};
VU.prototype.subscribe=VU.prototype.subscribe;VU.prototype.unsubscribeByKey=VU.prototype.unsubscribeByKey;VU.prototype.getProxyState=VU.prototype.getProxyState_;VU.prototype.disconnect=VU.prototype.JSC$19856_disconnect_;VU.prototype.getPlayerContextData=VU.prototype.getPlayerContextData_;VU.prototype.setPlayerContextData=VU.prototype.setPlayerContextData_;VU.prototype.getOtherConnectedRemoteId=VU.prototype.getOtherConnectedRemoteId_;VU.prototype.getReconnectTimeout=VU.prototype.getReconnectTimeout_;
VU.prototype.getAutoplayMode=VU.prototype.getAutoplayMode_;VU.prototype.getAutoplayVideoId=VU.prototype.getAutoplayVideoId_;VU.prototype.reconnect=VU.prototype.JSC$19856_reconnect_;VU.prototype.sendMessage=VU.prototype.sendMessageWithUserAction_;VU.prototype.getXsrfToken=VU.prototype.JSC$19856_getXsrfToken_;VU.prototype.isCapabilitySupportedOnConnectedDevices=VU.prototype.isCapabilitySupportedOnConnectedDevices_;var ibb=function(D){Y_.call(this,"ScreenServiceProxy");this.instance_=D;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Mc)(this.JSC$19859_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Mc)(this.onOnlineScreenChange_,this)))};
_.P(ibb,Y_);_.q=ibb.prototype;_.q.getScreens=function(D){return this.instance_.$_gs(D)};
_.q.contains=function(D){return!!this.instance_.$_c(D)};
_.q.get=function(D){return this.instance_.$_g(D)};
_.q.start=function(){this.instance_.$_st()};
_.q.add=function(D,t,H){this.instance_.$_a(D,t,H)};
_.q.remove=function(D,t,H){this.instance_.$_r(D,t,H)};
_.q.updateName=function(D,t,H,e){this.instance_.$_un(D,t,H,e)};
_.q.disposeInternal=function(){for(var D=this.subscriptionKeys_.length,t=0;t<D;++t)this.instance_.$_ubk(this.subscriptionKeys_[t]);this.subscriptionKeys_.length=0;this.instance_=null;Y_.prototype.disposeInternal.call(this)};
_.q.JSC$19859_onScreenChange_=function(){this.publish("screenChange")};
_.q.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
p4.prototype.$_st=p4.prototype.start;p4.prototype.$_gspc=p4.prototype.JSC$19818_getScreenByPairingCode;p4.prototype.$_gsppc=p4.prototype.JSC$19818_getScreenByPollingPairingCode;p4.prototype.$_c=p4.prototype.contains;p4.prototype.$_g=p4.prototype.get;p4.prototype.$_a=p4.prototype.add;p4.prototype.$_un=p4.prototype.updateName;p4.prototype.$_r=p4.prototype.remove;p4.prototype.$_gs=p4.prototype.getScreens;p4.prototype.$_gos=p4.prototype.JSC$19818_getOnlineScreens;p4.prototype.$_s=p4.prototype.subscribe;
p4.prototype.$_ubk=p4.prototype.unsubscribeByKey;var Nme=null,ObO=!1,Q3=null,y3=null,$XO=null,tQ=[];var WZg=new _.dk("yt-menu"),IZH=function(){},yrF=function(D,t,H){D=t=="right-click"?H.rightClickMenuPopupHint:H.menuPopupHint;
if(!(QwH(t)>10))return t=t||"default",WZg.set(t+"-impression",QwH(t)+1),D},QwH=function(D){return parseInt(WZg.get((D||"default")+"-impression")||0,10)};
_.ak(IZH);var B7H=function(){this.contexts_=new WeakMap;this.JSC$19865_networkService_=this.activeContext_=null},zzF=function(D,t,H){var e=D.contexts_.get(t);
e||(e=new nBv(D.JSC$19865_networkService_),D.contexts_.set(t,e));D.activeContext_=e;H&&D.activeContext_.reset();D.activeContext_.start();return D.activeContext_};var NE=function(){};
NE.prototype.enqueue=function(){var D=this,t;return _.Z(function(H){if(D.isCounterfactual())return(t=D.getCounterfactualData())&&D.shouldLogCounterfactualImpression()&&D.sendImpressionEndpoints(t),H.return();D.doEnqueue();_.n2(H)})};
NE.prototype.sendImpressionEndpoints=function(D){_.Qa.getInstance().triggerOptionalAction("yt-service-request",{},D[0])};var ky=function(D,t){this.renderer=D;this.page=t};
_.P(ky,NE);ky.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
ky.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
ky.prototype.shouldLogCounterfactualImpression=function(){return!0};
ky.prototype.doEnqueue=function(){var D=_.qx(this.page);D&&D.pause();this.renderer.impressionCommand&&_.Qa.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.zB(_.Qa.getInstance(),[this.renderer.promoCommand],this.page)};var DiY=function(D,t){this.renderer=D;this.resolver=_.z3();this.JSC$19877_enforcementCounter=new _.kpw;t?this.JSC$19877_playerManager=_.qx(t):this.JSC$19877_playerManager=null;_.rn(1,!0)};
_.P(DiY,NE);_.q=DiY.prototype;_.q.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var D=[];this.renderer.impressionEndpoints.forEach(function(t){(t=_.xP(t))&&D.push(t)});
return D}};
_.q.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.q.shouldLogCounterfactualImpression=function(){var D=_.qNk();D?(this.JSC$19877_enforcementCounter.increment("POPUP"),_.rn(3)):_.rn(2);return D};
_.q.cancel=function(){this.resolver.promise.cancel()};
_.q.doEnqueue=function(){var D=this;_.qNk()?(this.JSC$19877_enforcementCounter.increment("POPUP"),_.rn(3),t_F(this)):this.JSC$19877_playerManager?(this.resolver.promise.then(function(){t_F(D)}),H0F(this.resolver,this.JSC$19877_playerManager)):_.rn(2)};
var H0F=function(D,t){var H=_.z3();t.getPlayerPromise().then(function(e){H.resolve(e)});
H.promise.then(function(e){e.addEventListener("onAbnormalityDetected",D.resolve);_.pr(D.promise,function(){e.removeEventListener("onAbnormalityDetected",D.resolve)})});
D.promise.thenCatch(function(){H.promise.cancel()})},t_F=function(D){_.rn(3);
var t={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:D.renderer}};t=_.Qa.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:t},{});Promise.all(t).then(function(){eie();D.JSC$19877_playerManager&&D.JSC$19877_playerManager.pause()})},eie=function(){kuY(function(D,t){_.ak4(D,t);
D===0?_.rn(7):_.rn(4)})};var V_Q=function(D,t){this.renderer=D;this.page=t;this.resolver=_.z3()};
_.P(V_Q,NE);_.q=V_Q.prototype;_.q.cancel=function(){this.resolver.promise.cancel()};
_.q.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.q.isCounterfactual=function(){return!this.renderer.isVisible};
_.q.shouldLogCounterfactualImpression=function(){return!0};
_.q.doEnqueue=function(){var D=this;this.resolver.promise.then(function(){var H={popup:{mealbarPromoRenderer:D.renderer},popupType:"MEALBAR"};_.Qa.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:H},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var t=_.qx(this.page);t&&b0Y(this.resolver,t)}break;default:this.resolver.resolve()}};
var b0Y=function(D,t){var H=_.z3();t.getPlayerPromise().then(function(e){H.resolve(e)});
H.promise.then(function(e){e.addEventListener("onAdEnd",D.resolve);_.pr(D.promise,function(){e.removeEventListener("onAdEnd",D.resolve)})});
D.promise.thenCatch(function(){H.promise.cancel()})};var qvv=function(D,t){this.renderer=D;this.page=t};
_.P(qvv,NE);_.q=qvv.prototype;_.q.cancel=function(){this.JSC$19885_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19885_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19885_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.q.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.q.isCounterfactual=function(){return!this.renderer.isVisible};
_.q.shouldLogCounterfactualImpression=function(){return!0};
_.q.doEnqueue=function(){var D=this,t,H;((t=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(H=t.playbackUpsellDialogTriggerConditionData)==null?void 0:H.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19885_downloadedVideosCountSelectorUnsubscriber=_.Rj(_.b_(),K1b,function(e,V){e>V&&(F8b(D),D.cancel())}):F8b(this)};
var F8b=function(D){var t={popup:{upsellDialogRenderer:D.renderer},popupType:"MODAL"};_.Qa.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:t},{});(D=_.qx(D.page))&&D.pause()};var Te={},a6F=(Te.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Te.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Te.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Te.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Te.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Te.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Te.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Te),wVt=function(D,t){this.renderer=D;this.targetManager=
t};
_.P(wVt,NE);_.q=wVt.prototype;_.q.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19892_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19892_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19892_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.q.getCounterfactualData=function(){if(this.isCounterfactual()){var D;return(D=this.renderer.promoConfig)==null?void 0:D.impressionEndpoints}};
_.q.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.q.shouldLogCounterfactualImpression=function(){return!0};
_.q.doEnqueue=function(){var D=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19892_downloadedVideosCountSelectorUnsubscriber=_.Rj(_.b_(),K1b,function(t,H){D.renderer.targetId&&t>H&&(z8Q(D.targetManager,D.renderer.targetId,Z0F(D)),D.cancel())});
break;default:z8Q(this.targetManager,this.renderer.targetId,Z0F(this))}};
var Z0F=function(D){var t;if((t=D.renderer.suggestedPosition)==null?0:t.type)var H=a6F[D.renderer.suggestedPosition.type];H||(H="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:D.renderer},popupType:"HINT",position:H}}};var sgF=function(){this.previousPage=null},hi4;
sgF.prototype.registerPromoCommand=function(D,t){Ggg(this,void 0,void 0,_.O(D.roadblock,uhF),void 0,void 0,t)};
var Ggg=function(D,t,H,e,V,b,a){D.previousPage!==a&&D.pendingTooltipPromo&&D.pendingTooltipPromo.cancel();D.previousPage=a;V?(D.pendingEnforcementPromo&&D.pendingEnforcementPromo.cancel(),D.pendingEnforcementPromo=new DiY(V,a),D.pendingEnforcementPromo.enqueue()):b?(D.pendingCommandWrapperPromo=new ky(b,a),D.pendingCommandWrapperPromo.enqueue()):e?(D.pendingRoadblockPromo&&D.pendingRoadblockPromo.cancel(),D.pendingRoadblockPromo=new qvv(e,a),D.pendingRoadblockPromo.enqueue()):t?(D.pendingMealbarPromo&&
D.pendingMealbarPromo.cancel(),D.pendingMealbarPromo=new V_Q(t,a),D.pendingMealbarPromo.enqueue()):H&&(D.pendingTooltipPromo&&D.pendingTooltipPromo.cancel(),D.pendingTooltipPromo=new wVt(H,_.BM()),D.pendingTooltipPromo.enqueue())},Est=function(){hi4||(hi4=new sgF);
return hi4};var nXv=!1;var HsF=function(D,t){var H=_.YC("SESSION_INDEX");this.actionToken_=D;this.commonToken_=t;this.sessionIndex_=H},twg=function(D){var t=_.z3(),H=_.RD("payments.business.integration.bootstrap"),e=_.RD("payments.business.integration"),V=e.Style.create().withMaterialDesignStyle(),b=e.mashupMode.popup("instrument-manager");
H.asMashupMode(b).usingUserIndex(D.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(V).inStandaloneContext(e.standaloneContextAuthId.forUserId()).instrumentManager(D.actionToken_,D.commonToken_.length>0?D.commonToken_:void 0,function(a){var w=a.instrumentId;w?t.resolve(w):(w=_.RD("payments.business.integration.scenario.InstrumentManager"),t.reject(a.errorCode&&a.errorCode===w.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(a){_.vn(a);
t.reject("instrumentManagerLoadError")});
return t.promise};var aN=function(D,t,H){this.payloadName="transactionFlowFailed";this.payload={errorType:D,serializedTransactionFlowLoggingParams:t,isUserDismiss:H===void 0?!1:H}};
_.bg("yt.ypc.shared.YpcTransactionFlowError",aN);var cS=function(){return _.ng.apply(this,arguments)||this};
_.P(cS,_.ng);cS.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
cS.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
cS.prototype.onErrorMessageDismiss=cS.prototype.onErrorMessageDismiss;_.d([_.M({readOnly:!0,observer:"errorRendererChanged"}),_.x("design:type",Object)],cS.prototype,"errorRenderer",void 0);_.d([_.rx("yt-live-chat-error-message-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cS.prototype,"onErrorMessageDismiss",null);_.d([_.Cg()],cS);var K8F=[cS.prototype];var Ndi;var kgH;var TdZ=new _.dk("yt-live-chat"),c9g=new Map;c9g.set("timestamp_toggle","show-timestamps");c9g.set("reactions_toggle","allow-reactions");var jA=function(){return _.X.apply(this,arguments)||this};
_.P(jA,_.X);_.q=jA.prototype;_.q.menuItemIdentifierChanged=function(){var D;(D=this.data)!=null&&D.menuItemIdentifier&&(D=c9g.get(this.data.menuItemIdentifier))&&(_.r("enable_lwe_web_mute")?(D=TdZ.get(D),this.isToggled=!(D===void 0?!this.data.isToggled:!D)):this.isToggled=TdZ.get(D))};
_.q.onFocus=function(){this.toggleButton.focus()};
_.q.onTap=function(){var D=this.data.command;D&&this.componentBehavior.resolveCommand(D)};
_.q.computeText=function(D,t,H){return this.componentBehavior.getSimpleString(D?H:t)};
_.q.computeIcon=function(D,t,H){return(D=D?H:t)&&D.iconType?_.cc(D.iconType):""};
jA.prototype.onTap=jA.prototype.onTap;jA.prototype.onFocus=jA.prototype.onFocus;jA.prototype.menuItemIdentifierChanged=jA.prototype.menuItemIdentifierChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],jA.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],jA.prototype,"componentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],jA.prototype,"data",void 0);
_.d([_.M({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.x("design:type",String)],jA.prototype,"icon",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],jA.prototype,"isToggled",void 0);_.d([_.o5("tp-yt-paper-toggle-button"),_.x("design:type",Object)],jA.prototype,"toggleButton",void 0);_.d([_.Os("data.menuItemIdentifier"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jA.prototype,"menuItemIdentifierChanged",null);
_.d([_.rx("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jA.prototype,"onFocus",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jA.prototype,"onTap",null);_.d([_.xL({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],jA);
_.p(jA,"yt-live-chat-toggle-renderer",function(){if(kgH===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Ndi===void 0&&(Ndi=document.createElement("template"));var e=Ndi;H.call(t,e.content.cloneNode(!0),D.content.firstChild);kgH=D}D=kgH;return D},{mode:_.r("live_chat_enable_sink_wrapper")?2:0});var jgF=new _.kI("NAVIGATION_PROGRESS_TOKEN");var $iY={},i0H={},r9i=(i0H[fMO.name]=!0,i0H),$y=function(){var D=_.ng.apply(this,arguments)||this;D._noAccessors=!0;D.tabGesturesIsActive=!1;D.actionRouterIsRoot=!0;D.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"};D.pageTitle="";D.titleSuffix="YouTube";D.unseenNotificationCount=
0;D.hasNavigated=!1;D.hasSetScrollTopForNavigation=!1;D.pagePreparer=null;D.zwiebackInitJobId=0;D.dataUpdatePromise=null;D.loadDepsPromise=_.Tf();D.hasPendingNavigation=!1;D.pendingPlayerOnResponseReceivedActions=[];return D};
_.P($y,_.ng);$y.prototype.attached=function(){O0F(this);document.addEventListener("yt-navigate-cache",_.iK(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var D=i3();D.init();D.dispatchElement=this.hostElement};
var O0F=function(D,t){t=t===void 0?0:t;var H=_.qS().resolve(_.by(_.yN));if(H)UiF(D,H);else{if(t>=5)throw Error("nl");setTimeout(function(){O0F(D,t+1)},0)}},UiF=function(D,t){t.addEventListener("yt-navigate-start",_.iK(D,D.onYtNavigateStart));
t.addEventListener("yt-navigate-finish",_.iK(D,D.onYtNavigateFinish));t.addEventListener("yt-navigate-error",_.iK(D,D.onYtNavigateError));t.addEventListener("yt-page-data-fetched",_.iK(D,D.onYtPageDataFetched))};
_.q=$y.prototype;_.q.detached=function(){var D=_.qS().resolve(_.yN);D.removeEventListener("yt-navigate-start",_.iK(this,this.onYtNavigateStart));D.removeEventListener("yt-navigate-finish",_.iK(this,this.onYtNavigateFinish));D.removeEventListener("yt-navigate-error",_.iK(this,this.onYtNavigateError));D.removeEventListener("yt-page-data-fetched",_.iK(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.iK(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.q.setPageOffset=function(D,t){D?_.ET(this.hostElement,"yt-set-page-offset",[D,t]):_.gT(Error("ol"))};
_.q.setPageOffsetForNavigation=function(D,t){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(D,t))};
_.q.onYtNavigateSetPageOffset=function(D,t){this.setPageOffsetForNavigation(t.page,t.offset)};
_.q.getPageOffset=function(){var D=_.Kg(this.hostElement).querySelector("#page-manager").getCurrentPage(),t=0;D&&(t=_.ET(this.hostElement,"yt-get-page-offset",[D])[0]);return t};
_.q.onYtHistoryPop=function(D,t){if(_.lh("DISABLE_WARM_LOADS"))D.preventDefault(),window.location.reload();else{var H=_.qS().resolve(_.yN);H.hasPendingNavigation()&&D.preventDefault();H.cancelPendingNavigation();_.Kl(this.hostElement,"yt-pending-navigation-cancelled");t.errorMsg&&(D=t.errorMsg.split(" - "),t=Error(D[0]),D.length==2&&D[1]&&(_.lm(t,D[1]),_.Yw(t)),window.location.reload())}};
_.q.onYtHistoryLoad=function(D,t){var H=this;if(_.lh("DISABLE_WARM_LOADS"))window.location.reload();else{(D=t.endpoint)&&Object.keys(D).length||(D=null);var e=t.historyEntry,V=_.qS().resolve(_.yN),b=_.qS().resolve(_.bO),a=null;e&&e.rootData&&(a=e.rootData);var w=a&&osF(a);!a||w||a.filler?D?(V.navigate(D,!0),P4g(this,D)):(t.legacyBorder||w||(t.JSC$30172_savedComponentState==null&&a==null?_.Yw(new _.nZ("Incomplete history entry",t.forward)):_.Jp(new _.nZ("Malformed history entry",t.JSC$30172_savedComponentState,
t.forward,a))),window.location.reload()):(_.LjV({isHot:!0}),_.JE({webInfo:{navigationReason:"h"}}),_.FAD(),_.vh("srt"),_.vh("pdc"),this.cancelPendingTasks(),nsH(this,t.forward,a),a.player&&(a.player.loaded=!1),P4g(this,D),_.Utn(V,D||{},a,2,{},!1,t).then(function(){H.setPageOffset(b.getCurrentPage(),e.scrollTop||0)}))}};
_.q.initHistoryManager=function(D){if(!this.hasNavigated){this.hasNavigated=!0;var t=_.Kg(this.hostElement).querySelector("#page-manager").getCurrentData();D=isNaN(D)?this.getPageOffset():D;var H=_.qS().resolve(_.yN).currentEndpoint;this.replaceState(H,t,D)}};
_.q.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.q.onYtNavigateStart=function(D,t){this.cancelPendingTasks();t.noProgressBar||(D=_.qS().resolve(_.by(jgF)))&&D.start();D=this.hasPendingNavigation?null:this.data;var H=_.qS().resolve(_.bO),e,V,b;_.r("kevlar_use_vimio_behavior")&&!((e=t.endpoint)==null?0:(V=e.commandMetadata)==null?0:(b=V.webCommandMetadata)==null?0:b.ignoreNavigation)&&(e=H.getCurrentPage())&&e.disconnectVisibilityRoot();H.prepareForNavigation(t.pageType,t.endpoint);_.r("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.CE(1,
"pcl"),_.mX(this.pagePreparer,H.preparePage.bind(H,t.pageType,t.endpoint)));e=this.getPageOffset();this.initHistoryManager(e);t.reload||this.hasPendingNavigation?((_.r("web_enable_delay_shorts_sequence_call")||_.r("web_enable_shorts_sequence_cache_fix"))&&t.pageType==="shorts"&&t.reload&&_.Gf(this.hostElement,"yt-shorts-reset"),this.replaceState(t.endpoint,D,e)):(D==null?void 0:D.page)==="watch"&&t.pageType==="watch"&&_.r("kevlar_replace_watch_to_watch_history_state")?this.replaceState(t.endpoint,
D,e):(D==null?void 0:D.page)!=="shorts"||t.pageType!=="shorts"||t.endpoint.reelWatchEndpoint.sequenceParams||_.r("short_to_short_back_nav_killswitch")?t.type!="navigate-back"&&t.type!="navigate-forward"&&(t.pageType==="shorts"&&_.Gf(this.hostElement,"yt-shorts-reset"),this.saveAndPush(t.url,t.endpoint,D,e)):(_.r("web_enable_delay_shorts_sequence_call")&&(t.endpoint.reelWatchEndpoint.sequenceParams=D==null?void 0:D.cachedSequenceParams,t.endpoint.reelWatchEndpoint.sequenceProvider=D==null?void 0:D.cachedSequenceProvider),
this.replaceState(t.endpoint,D,0));this.hasPendingNavigation=!0};
var C4F=function(D){D.hasPendingNavigation=!1;(D=_.qS().resolve(_.by(jgF)))&&D.finish()};
$y.prototype.onYtNavigateError=function(D,t){C4F(this);D=this.get("endpoint.commandMetadata.webCommandMetadata.url",t);var H=_.yc(window.location.href);D&&!H.pbjreload&&(t=t.navigationErrorReason||"10",_.r("kevlar_parent_on_pbjreload")&&(H={csn:_.v3()},this.get("data.endpoint.clickTrackingParams")&&(H.itct=this.data.endpoint.clickTrackingParams),_.qJ(D,H)),_.D9(_.Bn(D,{pbjreload:t})))};
$y.prototype.onYtNavigateCache=function(D,t){var H=this,e=t.url,V=t.endpoint,b=t.data;D=!!t.miniplayer;t=!!t.skipHistory;if(e&&V&&b){var a=this.getPageOffset(),w=this.data||null;t||this.saveAndPush(e,V,w,a);e=_.Utn(_.qS().resolve(_.yN),V,b,D?4:3,{},D);D&&e.then(function(){H.dataUpdatePromise&&H.dataUpdatePromise.then(function(){var h=_.qS().resolve(_.bO);H.setPageOffset(h.getCurrentPage(),0)})})}};
$y.prototype.onYtNavigateFinish=function(D,t){var H=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){miO(H,t.fromHistory)})};
var miO=function(D,t){C4F(D);if(D.pendingPlayerOnResponseReceivedActions){for(var H=_.F(D.pendingPlayerOnResponseReceivedActions),e=H.next();!e.done;e=H.next())_.rj(e.value,D.hostElement);D.pendingPlayerOnResponseReceivedActions=[]}H=_.qS().resolve(_.bO);t||!D.hasNavigated||_.r("web_disable_scroll_on_navigate_finish")||((t=H.getCurrentPage())?t.is==="ytd-shorts"||D.tabGesturesIsActive||D.setPageOffsetForNavigation(t,0):_.Yw(Error("pl")));_.BT(function(){_.BT(function(){_.vh("pda")})})};
$y.prototype.onYtNavigate=function(D){if(!D.detail.endpoint){var t=new _.nZ("Error: Missing yt-navigate endpoint from target:",D.target,D.target.nodeName);_.gT(t)}if(t=_.r("cold_missing_history"))t=i3(),t.init(!1),t=!(t.browserHistory.boundHistoryReplaceState&&t.browserHistory.boundHistoryPushState);if(t){_.JZ("DISABLE_WARM_LOADS",!0);t=new _.nZ("Failed to initialize history manager",this.getDebugString());var H=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
H?_.Yw(t):_.gT(t)}t=D.detail.endpoint;var e,V;_.r("debug_forward_web_query_parameters")&&((e=t.commandMetadata)==null?0:(V=e.webCommandMetadata)==null?0:V.url)&&(t=JSON.parse(JSON.stringify(t)),t.commandMetadata.webCommandMetadata.url=_.ZCD(t.commandMetadata.webCommandMetadata.url,window.location.search));D={type:0,command:t,form:{params:D.detail.params,tempData:D.detail.tempData||{},requestType:D.detail.type,createScreenConfig:D.detail.createScreenConfig,reload:D.detail.reload?D.detail.reload:!1,
requestForm:D.detail}};_.r("kevlar_yt_navigate_command_handler")?(e=_.qS().resolve(_.aA),D.form.skipDefaultElement=!0,e.resolveCommand(t,{form:D.form})):this.handleNavigate(D)};
$y.prototype.handleNavigate=function(D){this.hasSetScrollTopForNavigation=!1;var t=_.qS().resolve(_.yN),H=D.form||{};t.navigate(D.command,H.reload,H.params,H.tempData,H.requestType,H.createScreenConfig,H.ignoreConfirmation,H.requestForm)&&P4g(this,D.command,H.tempData)};
$y.prototype.onYtPageDataFetched=function(D,t){try{_.Nyf().reset();this.data=t.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.qS().resolve(_.bO).updatePageData(this.data);var H=this.get("playerResponse.onResponseReceivedActions",this.data);H&&(H=M_F(this,H));H&&_.k0(this.hostElement,H,this.hostElement);var e=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),V=this.get("response.responseContext.consistencyTokenJar",this.data);if(e||V){var b=_.wpV(),a=(0,_.J$.getValues)(b.tokenJars);e&&b.replace(a,e);V&&b.replace(a,V)}}catch(w){_.gT(w)}};
var P4g=function(D,t,H){try{D.onYtEndpointChangeHandler(t,H)}catch(e){_.gT(e)}};
_.q=$y.prototype;_.q.onYtEndpointChangeHandler=function(){};
_.q.setPageTitle=function(D){D=(this.pageTitle=D)?D+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+D};
_.q.onYtUpdateTitle=function(D,t){this.setPageTitle(t)};
_.q.setUnseenNotificationCount=function(D){this.unseenNotificationCount=D;this.setPageTitle(this.pageTitle)};
_.q.handleUpdateNotificationsUnseenCountAction=function(D){_.O(D,K2b)&&((D=_.O(D,K2b).unseenCount)?this.setUnseenNotificationCount(D):this.setUnseenNotificationCount(0))};
_.q.handleClearCookieAction=function(D){var t;(D=(t=_.O(D,sy4))==null?void 0:t.cookieName)&&_.CGV(D)};
_.q.onYtUpdateUnseenNotificationCount=function(D,t){this.setUnseenNotificationCount(t)};
_.q.loadData=function(D){var t=this;this.loadDepsPromise.then(function(){var H=_.qS().resolve(_.by(_.yN));H||_.gT(Error("ql"));if(D&&D.response){if(!D.endpoint){var e=_.yi(window.document.location.href)||"/",V="";if(e==="/"||e.startsWith("/?"))V="WEB_PAGE_TYPE_BROWSE";D.endpoint={commandMetadata:{webCommandMetadata:{url:e,webPageType:V,rootVe:3854}}}}_.Utn(H,D.endpoint,D,5,{})}else D.endpoint?H.navigate(D.endpoint):H.navigate(_.xS);_.Jy.cancelJob(t.zwiebackInitJobId);t.zwiebackInitJobId=_.Jy.addLowPriorityJob(CiH)})};
var i3=function(){return _.qS().resolve(_.dt)};
$y.prototype.getDebugString=function(){return i3().getDebugString()};
$y.prototype.getThirdPartyManipulationSuspected=function(){return i3().getThirdPartyManipulationSuspected()};
$y.prototype.replaceState=function(D,t,H){i3().saveAndReplace(D,t,H)};
$y.prototype.saveAndPush=function(D,t,H,e){i3().saveAndPush(D,t,H,e)};
var osF=function(D){return _.O(D.endpoint,_.Hh)||_.O(D.endpoint,_.C_)?!0:!D||isNaN(D.expirationTime)?!1:(0,_.aP)()>D.expirationTime},nsH=function(D,t,H){var e=D.get("response.trackingParams",H),V=_.lo(),b=_.v3();
if(e&&V&&b&&(e=D.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",H),!e&&H.rootVe&&(e=H.rootVe),V=t?"forwardButton":"backButton",t=D.get("playerResponse.topbar.desktopTopbarRenderer."+V+".buttonRenderer.command.clickTrackingParams",D.data),D=D.get("response.topbar.desktopTopbarRenderer."+V+".buttonRenderer.command.clickTrackingParams",D.data),t=(D=t||D)?_.Sa(D):void 0,D=_.Pc(),V=[_.Tf(H)],_.Li(D,e,t,{dataPromises:V,csnToClone:H.csn}),H.graftedVes))for(H=
_.F(H.graftedVes),e=H.next();!e.done;e=H.next())_.A1(D,e.value)};
$y.prototype.onStoreGraftedVeAction=function(D){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(D)):_.Yw(Error("rl"))};
var M_F=function(D,t){return t.filter(function(H){for(var e in H)if(r9i[e])return D.pendingPlayerOnResponseReceivedActions.push(H),!0;return!1})};
_.ql.Object.defineProperties($y.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
$y.prototype.onStoreGraftedVeAction=$y.prototype.onStoreGraftedVeAction;$y.prototype.loadData=$y.prototype.loadData;$y.prototype.onYtUpdateUnseenNotificationCount=$y.prototype.onYtUpdateUnseenNotificationCount;$y.prototype.handleClearCookieAction=$y.prototype.handleClearCookieAction;$y.prototype.handleUpdateNotificationsUnseenCountAction=$y.prototype.handleUpdateNotificationsUnseenCountAction;$y.prototype.setUnseenNotificationCount=$y.prototype.setUnseenNotificationCount;
$y.prototype.onYtUpdateTitle=$y.prototype.onYtUpdateTitle;$y.prototype.setPageTitle=$y.prototype.setPageTitle;$y.prototype.onYtEndpointChangeHandler=$y.prototype.onYtEndpointChangeHandler;$y.prototype.onYtPageDataFetched=$y.prototype.onYtPageDataFetched;$y.prototype.handleNavigate=$y.prototype.handleNavigate;$y.prototype.onYtNavigate=$y.prototype.onYtNavigate;$y.prototype.onYtNavigateFinish=$y.prototype.onYtNavigateFinish;$y.prototype.onYtNavigateCache=$y.prototype.onYtNavigateCache;
$y.prototype.onYtNavigateError=$y.prototype.onYtNavigateError;$y.prototype.onYtNavigateStart=$y.prototype.onYtNavigateStart;$y.prototype.cancelPendingTasks=$y.prototype.cancelPendingTasks;$y.prototype.initHistoryManager=$y.prototype.initHistoryManager;$y.prototype.onYtHistoryLoad=$y.prototype.onYtHistoryLoad;$y.prototype.onYtHistoryPop=$y.prototype.onYtHistoryPop;$y.prototype.onYtNavigateSetPageOffset=$y.prototype.onYtNavigateSetPageOffset;$y.prototype.setPageOffset=$y.prototype.setPageOffset;
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],$y.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$y.prototype,"data",void 0);_.d([_.rx("yt-navigate-set-page-offset"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],$y.prototype,"onYtNavigateSetPageOffset",null);
_.d([_.rx("yt-history-pop"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],$y.prototype,"onYtHistoryPop",null);_.d([_.rx("yt-history-load"),_.x("design:type",Function),_.x("design:paramtypes",[Event,_.x8V]),_.x("design:returntype")],$y.prototype,"onYtHistoryLoad",null);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],$y.prototype,"onYtNavigate",null);
_.d([_.rx("yt-update-title"),_.x("design:type",Function),_.x("design:paramtypes",[Event,String]),_.x("design:returntype")],$y.prototype,"onYtUpdateTitle",null);_.d([_.rx("yt-update-unseen-notification-count"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Number]),_.x("design:returntype")],$y.prototype,"onYtUpdateUnseenNotificationCount",null);_.d([_.Cg()],$y);$iY.YtdAppBehavior=[_.dW.YtActionHandlerBehavior,$y.prototype];var rQ=function(){var D=_.ng.apply(this,arguments)||this;D._noAccessors=!0;return D};
_.P(rQ,_.ng);rQ.prototype.ready=function(){var D=this;_.Kg(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){D.onChange_()})};
rQ.prototype.dataChanged_=function(){_.Kg(this.hostElement).querySelector("#checkbox").checked=!1};
rQ.prototype.onChange_=function(){var D=_.Kg(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Gf(this.hostElement,"yt-dismissal-reason-"+D,this.data.feedbackToken)};
rQ.prototype.dataChanged_=rQ.prototype.dataChanged_;_.d([_.M(),_.x("design:type",Object)],rQ.prototype,"data",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rQ.prototype,"dataChanged_",null);_.d([_.Cg()],rQ);var Svt=[rQ.prototype];var O8=function(){var D=_.ng.apply(this,arguments)||this;D.timeoutJobId=0;D.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return D};
_.P(O8,_.ng);O8.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
O8.prototype.startTimeout=function(){var D=this,t=this.data&&this.data.displayDurationSeconds;t&&!this.timeoutJobId&&(this.timeoutJobId=_.C7(_.Jy,function(){_.ET(D.hostElement,"yt-close-popup-action",[D.is]);D.timeoutJobId=0},t*1E3))};
O8.prototype.cancelTimeout=function(){_.Jy.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
O8.prototype.ytdHatsSurveyBehaviorDataChanged=O8.prototype.ytdHatsSurveyBehaviorDataChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],O8.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],O8.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.d([_.Cg()],O8);var XVO=[_.dW.YtActionHandlerBehavior,O8.prototype];var f6F=function(D,t){var H;return((H=D.prefixMapping)==null?0:H[t])?D.prefixMapping[t]:D.SHARED_RENDERERS_.hasOwnProperty(t)?"yt":D.prefix},U8={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}};U8.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.r("kevlar_mealbar_above_player"),modern:_.r("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"}};
U8.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};U8.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};U8.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
U8.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)"}};
U8.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};
U8.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};
U8.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};
U8.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};U8.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"}};
U8.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};U8.TOAST={component:null,properties:{}};var L8Q=new function(D,t,H){this.supportedPopups=D;this.navigationEndpointPopupMap=t;this.popupTypeMap=H;this.supportedPopups=D;this.navigationEndpointPopupMap=t;this.popupTypeMap=H}({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:_.r("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"}),A9i=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$19943_popupConfig=U8;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 gsi=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.aM.getInstance()},op=function(D,t){var H=D.pageNameToElement.get(t);
if(!H){switch(t){case "watch":var e=_.r("web_watch_force_learning_journey_for_testing")?_.nE("ytd-watch-learning-journey"):_.r("kevlar_watch_fixie")?_.nE("ytd-watch-fixie"):_.r("kevlar_watch_grid")?_.nE("ytd-watch-grid"):_.nE("ytd-watch-flexy");break;case "learning_journey_watch":e=_.nE("ytd-watch-learning-journey");break;case "shorts":e=_.nE("ytd-shorts");break;case "search":e=_.nE("ytd-search");break;case "channel":e=_.nE("ytd-browse");e.pageSubtype="channels";break;case "trending":e=_.nE("ytd-browse");
e.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "companion-canvas":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":e=
_.nE("ytd-browse");e.pageSubtype=t;break;case "browse":e=_.nE("ytd-browse");break;default:_.Yw(new _.nZ("Error getting page element for type",t))}H=e;D.pageNameToElement.set(t,H)}return H};
gsi.prototype.preparePage=function(D,t,H){H&&(D=_.OL(H)||D);if(D!=="watch"&&D!=="learning_journey_watch"){var e=this.elementPoolPopulator,V=D;V!=e.targetPage_&&e.pendingPages_.indexOf(V)>-1&&(e.targetPage_&&(e.pendingPages_.unshift(e.targetPage_),e.abort()),HaY(e,V),_.lS3(e,V))}if((e=op(this,D))||!_.O(H,_.um)){e.isAttached||e===t||(e.hidden=!0);if(!e.data&&(D!=="watch"&&D!=="learning_journey_watch"||!_.r("swatcheroo_page_pool_dont_provide_filler_data"))){var b;if(D=(b=_.YC("FILLER_DATA",{})[D])==
null?void 0:b.response)e.data=D}return e}};var J9H=function(D){this.JSC$32085_clientRoot=D;this.playlistHandlerActionMap={"yt-add-to-playlist-command":JBe,"yt-end-playlist-command":Y7H,"yt-recover-playlist-command":vXZ,"yt-refresh-playlist-command":xXv,"yt-playlist-remove-videos-action":pZF};_.ya(_.Qa.getInstance(),this.playlistHandlerActionMap,this.JSC$32085_clientRoot);hmi()},Yve;var PS=function(D,t,H){this.apiKey=D;this.endpoint=t;this.confidenceThreshold=H===void 0?.5:H;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=t==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||t==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
t==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||t==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new FvY};
_.q=PS.prototype;
_.q.start=function(D){if(this.state===0)if(this.isOnline()){D.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=D.supportsHttpHeadersOverwriteParam);D.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=D.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.l1("voice_assistant");_.pl("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=D.languageCode||"en-US";this.supportsCrossDomainXhr=D.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=D.youtubeAssistantRequest||null;this.listeningHandler=D.listeningHandler||this.listeningHandler;this.audioDetectedHandler=D.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=D.stopHandler||this.stopHandler;this.completeHandler=D.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=D.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=D.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
D.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=D.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=D.accessToken;this.additionalHeaders=D.additionalHeaders||{};var t;this.prefetchResponseTimeoutMs=(t=D.prefetchResponseTimeoutMs)!=null?t:this.prefetchResponseTimeoutMs;l6v(this);this.startAudio();vsZ(this)}else this.errorHandler("OFFLINE")};
_.q.stop=function(D){var t=D===void 0?{}:D;D=t.logCancel===void 0?!0:t.logCancel;var H=t.logMicClosed===void 0?!0:t.logMicClosed;var e=t.handleError===void 0?!0:t.handleError;t=t.handleStop===void 0?!0:t.handleStop;this.state!==0&&(D&&nu("voz_cx"),Cu(this,{logMicClosed:H,handleStop:t}),e&&this.errorHandler("ABORTED"))};
_.q.getState=function(){return this.state};
_.q.isSupported=function(){return!0};
_.q.stopAudio=function(D){(D===void 0||D)&&nu("voz_mf")};
_.q.startAudio=function(){nu("voz_vp");return _.Tf(null)};
var pVg=function(D,t){D.channelOpen&&(D.state!==2&&(D.state=2,nu("voz_ss"),D.listeningHandler()),t=new Uint8Array(t),t='{ "audioIn": "'+_.XF(t)+'" }',D.channel.send(t))},Cu=function(D,t){var H=t===void 0?{}:t;
t=H.logMicClosed===void 0?!0:H.logMicClosed;H=H.handleStop===void 0?!0:H.handleStop;D.vozEndOfDataTimeout>-1&&(clearTimeout(D.vozEndOfDataTimeout),D.vozEndOfDataTimeout=-1);dib(D);D.stopAudio(t);D.channel&&(D.channelOpen=!1,D.manuallyClosedChannel=!0,D.channel.close(),D.channel=void 0);D.transcribedSpeechResults=[];D.state=0;H&&D.stopHandler()},l6v=function(D){var t={httpHeadersOverwriteParam:D.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},D.additionalHeaders,D.accessToken&&D.isUsingVoz?{Authorization:"Bearer "+D.accessToken}:{"x-goog-api-key":D.apiKey}),supportsCrossDomainXhr:D.supportsCrossDomainXhr};D.channel=new Jv(D.endpoint,t);D.channel.open();_.fz(D.channel,"w",function(){var H=D.channel,e=H.send,V=D.isUsingVoz?"PLACEHOLDER":"example";V={config:{dialogStateIn:{languageCode:D.languageCode},deviceConfig:{deviceId:V,deviceModelId:V},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!D.isUsingVoz)V.config.requestType=4;else if(D.isUsingVoz&&D.youtubeAssistantRequest){var b=JSON.stringify(D.youtubeAssistantRequest);V.config.internalIn={youtubeAssistantS3InputJson:b}}e.call(H,V);D.channelOpen=!0;D.manuallyClosedChannel=!1});
_.fz(D.channel,"x",function(){D.manuallyClosedChannel||(D.channelOpen=!1,D.channel=void 0,Cu(D))});
_.fz(D.channel,"z",function(H){if(H.data){dib(D);for(var e=0;e<H.data.length;e++){var V=D,b=H.data[e],a=b.speechResults;if(a)a:{var w=[];b=[];var h=!1;a=_.F(a);for(var K=a.next();!K.done;K=a.next()){K=K.value;if(K.noSpeech){Cu(V);V.errorHandler("NO_SPEECH");break a}K.transcript!==void 0&&K.stability!==void 0&&(K.stability<V.confidenceThreshold&&(h=!0),h?b.push(K.transcript):w.push(K.transcript))}if(w.length!==0||b.length!==0)w=w.join(" "),b=b.join(" "),V.receivedEndOfUtterance&&!V.isUsingVoz?V.isUsingVoz||
V.completeHandler([w,b]):(h=V,a=w,K=b,nu("voz_sf"),h.transcriptionUpdateHandler(a,K),h.transcribedSpeechResults=[a,K]),V.receivedEndOfUtterance&&(nu("voz_eou"),V.transcriptionCompleteHandler([w,b]),V.isUsingVoz&&(V.prefetchResponseTimeoutMs===0?Cu(V,{logMicClosed:!1,handleStop:!0}):V.prefetchResponseTimeoutMs>0&&xig(V)))}else V.isUsingVoz&&(b==null?0:b.internalOut)?(b=JSON.parse(b.internalOut.youtubeAssistantS3OutputJson),b.userHasOptedInToVaa||b.vaaConsent?V.vaaConsentUpdateHandler(!!b.userHasOptedInToVaa,
!!b.vaaConsent):(Rib(V),b&&(w=V.transcribedSpeechResults,nu("voz_rqf"),V.completeHandler(w,b)))):b.eventType==="END_OF_UTTERANCE"?V.receivedEndOfUtterance=!0:(nu("voz_err"),V.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.Yw(Error("sl")))}}});
_.fz(D.channel,"y",function(H){Cu(D);switch(H.status){case 1:H="WEBCHANNEL_NETWORK_ERROR";break;case 2:H="WEBCHANNEL_SERVER_ERROR";break;default:H="WEBCHANNEL_UNKNOWN_ERROR"}D.errorHandler(H);D.logError(Error(H))})};
PS.prototype.logError=function(D){_.gT(D)};
PS.prototype.isOnline=function(){return!0};
var xig=function(D){Rib(D);D.prefetchResponseSetTimeoutId=setTimeout(function(){Cu(D,{logMicClosed:!1,handleStop:!0})},D.prefetchResponseTimeoutMs)},Rib=function(D){D.prefetchResponseSetTimeoutId>-1&&(clearTimeout(D.prefetchResponseSetTimeoutId),D.prefetchResponseSetTimeoutId=-1)},vsZ=function(D){dib(D);
D.noResponseReceivedTimeout=window.setTimeout(function(){Cu(D);D.errorHandler("NO_SPEECH")},11E3)},dib=function(D){D.noResponseReceivedTimeout>-1&&(window.clearTimeout(D.noResponseReceivedTimeout),D.noResponseReceivedTimeout=-1)},nu=function(D){_.vh(D,void 0,"voice_assistant")};var mr=function(){PS.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.P(mr,PS);mr.prototype.isSupported=function(){return RMH()};
mr.prototype.startAudio=function(){var D=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Aj(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(e){uot(D,e)};
this.processor.connect(this.audioContext.destination);var t=function(e){D.stream=e;if(!D.audioContext)return _.Tf(null);e=D.audioContext.createMediaStreamSource(e);D.processor&&e.connect(D.processor);return _.Tf(null)},H={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?t(this.stream):(H=navigator.mediaDevices.getUserMedia(H))?H.then(t).catch(function(e){Cu(D);e.name&&e.name==="NotAllowedError"?D.errorHandler("NO_MICROPHONE_PERMISSION"):(D.errorHandler("AUDIO_ERROR"),D.logError(e));return _.Aj(null)}):(Cu(this),this.errorHandler("AUDIO_ERROR"),_.Yw(Error("tl")));
return PS.prototype.startAudio.call(this)};
mr.prototype.stopAudio=function(D){D=D===void 0?!0:D;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(t){t.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;PS.prototype.stopAudio.call(this,D)};
mr.prototype.isOnline=function(){return navigator.onLine};
var uot=function(D,t){if(D.audioContext)if(window.OfflineAudioContext){var H=D.audioContext.sampleRate,e=t.inputBuffer.getChannelData(0);t=new window.OfflineAudioContext(1,e.length,16E3);for(var V=t.createBuffer(1,e.length,H),b=V.getChannelData(0),a=0,w=0;w<e.length;w++)b[w]=e[w],a+=b[w]*b[w];!D.audioDetected&&Math.sqrt(a/e.length)>.01&&(D.audioDetected=!0,D.audioDetectedHandler());e=t.createBufferSource();e.buffer=V;e.connect(t.destination);e.start(0);t.oncomplete=function(h){h=h.renderedBuffer.getChannelData(0);
for(var K=Math.floor(16384E3/H),N=new Int16Array(K),k=0;k<K;++k)N[k]=Math.max(-1,Math.min(1,h[k]))*32767;pVg(D,N.buffer)};
t.startRendering()}else W84(D,t)},W84=function(D,t){var H=D.audioContext.sampleRate,e=t.inputBuffer.getChannelData(0),V=Math.floor((H+8E3)/16E3);
H=e.length/V;t=new Float32Array(H);for(var b=0;b<H;++b)t[b]=e[b*V];e=new Int16Array(H);for(V=0;V<H;++V)e[V]=Math.max(-1,Math.min(1,t[V]))*32767;pVg(D,e.buffer)};var I6t={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var QgH=function(){this.JSC$20008_audioEnabled=!0;this.audioFeedbackHolder={}};
QgH.prototype.isPlaying=function(D){return D.currentTime>0&&!D.paused&&!D.ended&&D.readyState>2};
var y9e=function(D){for(var t=_.F(Object.values(I6t)),H=t.next();!H.done;H=t.next())H=H.value,D.audioFeedbackHolder[H]=new Audio,D.audioFeedbackHolder[H].src="/s/search/audio/"+H+".mp3",D.audioFeedbackHolder[H].load()},ME=function(D,t){if(D.JSC$20008_audioEnabled!==!1&&t in D.audioFeedbackHolder){for(var H=_.F(Object.values(D.audioFeedbackHolder)),e=H.next();!e.done;e=H.next())e=e.value,D.isPlaying(e)&&e.pause();
D.audioFeedbackHolder[t].currentTime=0;D.audioFeedbackHolder[t].play().catch(function(){})}};var Bde=function(D,t){var H=this;this.store=D;this.service=t;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){H.setState("offline");H.stop()};
this.audioPlayer=new QgH;var e;(e=this.audioPlayer)==null||y9e(e)};
_.q=Bde.prototype;_.q.getService=function(){return this.service};
_.q.isEnabled=function(){return!!this.service};
_.q.isSupported=function(){var D;return(D=this.service)==null?void 0:D.isSupported()};
_.q.start=function(){var D=this,t,H,e,V,b,a,w,h,K,N,k,T,c;return _.Z(function(U){switch(U.nextAddress){case 1:D.store.dispatch($Ae("",""));if(!navigator.onLine)return D.setState("offline"),U.return();window.addEventListener("offline",D.handleOfflineEvent);D.stream=null;if(!D.permissionsSupported){U.jumpTo(2);break}_.$p(U,3);return U.yield(ziv(D),5);case 5:t=U.yieldResult;if(!t)return(H=D.audioPlayer)==null||ME(H,"failure"),U.return();D.service.stream=D.stream;D.setState("listening");_.yM(U,2);break;
case 3:_.Pv(U),D.permissionsSupported=!1;case 2:e={context:_.LPk(_.Z4())},e.youtubeAssistantParams={searchParams:{inlineSearchResponse:D.enableInlineSearchResponse}},V=function(S,L){D.store.dispatch(iJv("transcribing"));D.store.dispatch($Ae(S,L))},b=function(){var S;
(S=D.audioPlayer)==null||ME(S,"open");D.setState("listening")},a=function(){D.setState("transcribing")},w=function(S){D.setErrorState(S)},h=function(S,L){var J;
(J=D.audioPlayer)==null||ME(J,"success");L&&(_.r("kevlar_voice_search_inline_search")&&(D.responseProcessor=_.qS().resolve(_.AxV),D.responseProcessor&&(J=L.navigationAction,S=L.prefetchedSearchResponse,J&&S&&(J=(new _.fOQ).JSC$13125_getStoreKey(J),_.WX(D.responseProcessor,S,J)))),D.JSC$20026_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",L))},K=function(){window.removeEventListener("offline",D.handleOfflineEvent)},N=_.xF8(!1),k=N.Authorization!=null,T=D.enableFirstPartyAuth||
D.enableFPAForSignedInUsers&&k?N:{"X-Goog-Visitor-Id":N["X-Goog-Visitor-Id"]},c={completeHandler:h,
errorHandler:w,listeningHandler:b,audioDetectedHandler:a,stopHandler:K,transcriptionUpdateHandler:V,youtubeAssistantRequest:e,languageCode:D5b(),additionalHeaders:T,supportsCrossDomainXhr:D.enableFirstPartyAuth||D.enableFPAForSignedInUsers&&k,supportsHttpHeadersOverwriteParam:!D.disableHttpHeadersOverwrite},D.service.start(c),_.n2(U)}})};
_.q.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.q.reset=function(){this.store.dispatch(_.hV({type:"RESET_VOICE_SEARCH_STATE"}))};
_.q.setState=function(D){this.store.dispatch(iJv(D))};
_.q.setErrorState=function(D){switch(D){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var t;(t=this.audioPlayer)==null||ME(t,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)ziv(this);else{var H;(H=this.audioPlayer)==null||ME(H,"failure");this.setState("permission-denied")}break;case "ABORTED":var e;(e=this.audioPlayer)==null||ME(e,"no_input");break;default:var V;(V=this.audioPlayer)==
null||ME(V,"no_input");this.setState("timeout")}};
var ziv=function(D){var t,H;return _.Z(function(e){switch(e.nextAddress){case 1:return e.yield(navigator.permissions.query({name:"microphone"}),2);case 2:t=e.yieldResult;if(t.state==="granted")return e.return(!0);if(t.state==="denied")return D.setState("permission-denied"),e.return(!1);D.setState("permission");H={audio:{sampleSize:16,channelCount:1},video:!1};_.$p(e,3);return e.yield(navigator.mediaDevices.getUserMedia(H),5);case 5:return D.stream=e.yieldResult,e.return(!0);case 3:return _.Pv(e),
D.setState("permission-denied"),e.return(!1)}})},D5b=function(){var D=_.YC("INNERTUBE_CONTEXT_HL"),t=_.YC("INNERTUBE_CONTEXT_GL");
return D.indexOf("-")>-1?D:D+"-"+t};var t3v=function(D,t,H){Bde.call(this,t,H);this.JSC$20026_actionRouter=D;this.enableInlineSearchResponse=_.r("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.r("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.r("kevlar_voice_search_enable_fpa_signedin_users")},H3v;
_.P(t3v,Bde);
var e9e=function(){if(!H3v){var D="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.r("kevlar_voice_search_auth_enabled")||_.r("kevlar_voice_search_use_yt_endpoint")?D="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.r("kevlar_voice_search_use_fp_endpoint")&&(D="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");H3v=
new t3v(_.Qa.getInstance(),_.b_(),new mr(_.YC("VOZ_API_KEY"),D,.5))}return H3v};var V3Z=function(D){this.JSC$20030_clientRoot=D;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$20030_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)]]));D=_.F(this.eventListeners);for(var t=D.next();!t.done;t=D.next()){var H=_.F(t.value);t=H.next().value;H=H.next().value;H=_.F(H);for(var e=H.next();!e.done;e=H.next()){var V=
_.F(e.value);e=V.next().value;V=V.next().value;t.addEventListener(e,V)}}_.ya(_.Qa.getInstance(),this.autonavPauseActionMap,this.JSC$20030_clientRoot)},b3g,qR4=function(D){return _.r("kevlar_autonav_popup_filtering")?(D=_.qy(D))?D.hasAttribute("prevent-autonav"):!0:!0};
_.q=V3Z.prototype;_.q.onIronOverlayOpened=function(D){qR4(D)&&(this.autonavPauseReasons.overlayOpen=!0,SA(this))};
_.q.onIronOverlayClosed=function(D){qR4(D)&&(this.autonavPauseReasons.overlayOpen=!1,SA(this))};
_.q.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;SA(this)};
_.q.onYtAutonavPauseBlur=function(){var D=this;_.Jy.addJob(function(){D.isInBackground()||(D.autonavPauseReasons.inputBoxFocus=!1,SA(D))},8,0)};
_.q.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;SA(this)};
_.q.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;SA(this)};
_.q.onYtAutonavPauseScroll=function(){var D=_.qS().resolve(_.bO);D.isOnWatch()&&(D=D.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=D.getBoundingClientRect().top<-200,SA(this))};
_.q.onYtAutonavPauseUserEngagement=function(D){var t=this;if(_.r("user_engagement_enable_autoplay_pause_feature")){var H=Number(D.lowEngagementThresholdMs);isNaN(H)||H<=0||D.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.vA("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.qS().resolve(_.mM),_.aR()<H?_.C7(_.Jy,function(){_.vA("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.ZlF()?(this.userEngagementCsn=_.v3(),_.C7(_.Jy,function(){_.vA("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
t.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,SA(this)):_.vA("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.IgV(Error("ul`"+JSON.stringify(D)))};
_.q.onYtAutonavPausePlayer=function(D){this.autonavPauseReasons.requestedByPlayer=!!D.detail;SA(this)};
_.q.onYtAutonavVisibilityChanged=function(){var D=this,t,H,e;return _.Z(function(V){if(V.nextAddress==1)return(t=_.FA())?V.yield(t.getPlayerPromise(),2):V.return();H=V.yieldResult;e=H.isMuted()||H.getVolume()===0;D.autonavPauseReasons.backgroundAndMute=D.isInBackground()&&e;SA(D);_.n2(V)})};
_.q.onYtAutonavPausePlayerEnded=function(){_.qS().resolve(_.mM);var D=144E5;_.r("user_engagement_enable_autoplay_pause_feature")||_.r("is_part_of_any_user_engagement_experiment")||(D=45E5);this.autonavPauseReasons.longIdle=_.aR()>D;FRH(this);SA(this)};
_.q.onYtUserActivity=function(){var D=this;this.autonavPauseReasons.userEngagement&&(_.C7(_.Jy,function(){_.vA("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",D.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,SA(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.C7(_.Jy,function(){_.vA("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",D.userEngagementCsn);_.Ap()}),this.autonavPauseReasons.youthereLactExperiment=!1,SA(this));
this.autonavPauseReasons.longIdle&&!_.r("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,SA(this))};
_.q.isInBackground=function(){var D=window.document.visibilityState;return!(!D||D==="visible")};
var SA=function(D){for(var t=!1,H=_.F(Object.values(D.autonavPauseReasons)),e=H.next();!e.done;e=H.next())e=e.value,t=t||e;t?_.Uz.getInstance().pause(D.autonavPauseReasons):(D=_.Uz.getInstance(),D.autonavState_==3?(D.setState(2,!1,!1),D.autonavPauseReason_=void 0):D.autonavState_==1&&(D.disabledAutonavPauseReason_=void 0))},FRH=function(D){var t=!1;
if(_.r("enable_autoplay_pause_by_lact")){_.qS().resolve(_.mM);t=_.ZU("autoplay_pause_by_lact_sec")*1E3;var H=_.ZU("autoplay_pause_by_lact_sampling_fraction");(t=_.aR()>=t&&Math.random()<H)&&!_.ZlF()&&(_.C7(_.Jy,function(){_.vA("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),t=!1)}t!==D.autonavPauseReasons.youthereLactExperiment&&(D.autonavPauseReasons.youthereLactExperiment=t)&&(D.userEngagementCsn=_.v3(),_.C7(_.Jy,function(){_.vA("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",D.userEngagementCsn)}));
D.autonavPauseReasons.userEngagement&&_.C7(_.Jy,function(){_.vA("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",D.userEngagementCsn)})};
V3Z.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.vA("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Ap(),this.autonavPauseReasons.youthereLactExperiment=!1,SA(this));this.autonavPauseReasons.userEngagement&&(_.vA("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,SA(this))};
V3Z.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var arY=_.uO.persistentPanelVisibleSelector,XM=function(){var D=_.X.apply(this,arguments)||this;D.miniGuideVisible=!1;D.guideOpened=_.r("disable_initial_guide_state_fix")?!1:D.canFitPersistentGuide(D.initialBodyClientWidth);D.guideUserStateOpened=D.getInitialGuideUserStateOpened();D.isFullscreenShorts=!1;D.miniGuideWidthThreshold=_.ZU("kevlar_mini_guide_width_threshold",791);D.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
D.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");D.persistentGuideBlockedPagePathRegex=new RegExp(D.persistentGuideBlockedPagesPatterns.join("|"));D.animationTransitionDuration=0;D.lateDataResolver=_.z3();D.initialGuideDataFetchFailed=!1;D.initialLoad=!0;D.guideRenderers=new Set;D.isMouseOverGuide=!1;D.sessionUserManuallyExpandedGuideState=
!1;D.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return D};
_.P(XM,_.X);_.q=XM.prototype;_.q.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.q.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.q.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.q.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.q.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.q.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.q.ready=function(){_.qS().addProvider({provide:_.Ng,useValue:this.hostElement})};
_.q.attached=function(){var D=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.iK(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.iK(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.iK(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.iK(this,this.onYtGuideShow));_.Vi(this,function(){D.animationTransitionDuration=200})};
_.q.detached=function(){document.removeEventListener("yt-navigate-finish",_.iK(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.iK(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.iK(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.iK(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.iK(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.iK(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.iK(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.q.getData=function(){return this.data};
_.q.load=function(){var D=this,t,H,e,V;return _.Z(function(b){switch(b.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=D.lateDataResolver.resolve.bind(D),b.return(D.lateDataResolver.promise);if(window.ytInitialGuideData)return t=_.z3(),t.resolve(window.ytInitialGuideData),b.return(t.promise);e=!1;_.$p(b,2);return b.yield(D.fetchGuideData(),4);case 4:H=b.yieldResult;_.yM(b,3);break;case 2:V=_.Pv(b),V.message==="Returned error"&&(e=
!0);case 3:if(H)return b.return(H);D.onYtGuideClose();e||(D.initialGuideDataFetchFailed=!0);return b.return(D.lateDataResolver.promise)}})};
_.q.fetchGuideData=function(){var D=this,t,H,e,V,b,a,w;return _.Z(function(h){if(h.nextAddress==1)return t=_.qS(),D.guidePromise||(H=t.resolve(_.xg),D.guidePromise=_.BZ(H,PIv)),h.yield(D.guidePromise,2);if(h.nextAddress!=3)return e=h.yieldResult,V=t.resolve(_.XT),h.yield(V(),3);(b=h.yieldResult)&&((a=e)==null?void 0:(w=a.responseContext)==null?void 0:w.maxAgeSeconds)!==0&&b.put("service:guide:fallback",new _.Yn({innertubeResponse:e}));return h.return(e)})};
_.q.initializeGuideDataIfEmpty=function(){var D=this,t,H;return _.Z(function(e){if(e.nextAddress==1){if(!D.initialGuideDataFetchFailed||D.data)return e.return();_.$p(e,2);return e.yield(D.fetchGuideData(),4)}if(e.nextAddress!=2)return(t=e.yieldResult)&&D.lateDataResolver.resolve(t),_.yM(e,0);H=_.Pv(e);_.Yw(H);_.n2(e)})};
_.q.initializeGuideData=function(){var D=this,t;return _.Z(function(H){switch(H.nextAddress){case 1:return _.Gk(eGY(),{mainAppWeb:_.th()}),_.$p(H,2),H.yield(D.load(),4);case 4:D.data=H.yieldResult;_.yM(H,3);break;case 2:_.Pv(H),_.EG(eGY(),"FAILURE");case 3:t=D.data&&D.data.items&&D.data.items.length>0?"SUCCESS":"FAILURE",_.EG(eGY(),t),_.n2(H)}})};
_.q.setGuideData=function(D){var t=this,H,e;return _.Z(function(V){if(V.nextAddress==1)return t.disabled?V.return():t.data?(D.data=t.data,t.guideRenderers.add(D),V.return()):V.yield(t.initializeGuideData(),2);t.graftGuideToPage();H=_.lh("IS_HOMEPAGE_COLD")?"eop":void 0;_.r("disable_element_pool_populator")?t.setGuideDataAfterInit(D):(e=new _.CE(1,H),_.mX(e,t.setGuideDataAfterInit.bind(t,D)));_.n2(V)})};
_.q.setGuideDataAfterInit=function(D){D.data=this.data;D.markDirty();this.guideRenderers.add(D);_.BT(function(){_.vh("gle")});
_.Vi(this,function(){_.vh("gpe")})};
_.q.graftGuideToPage=function(){if(this.data){var D=this.data&&this.data.trackingParams;D&&(D=_.Sa(D),_.g3(_.Pc(),D))}};
_.q.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.iK(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.q.onDrawerOpenedChanged=function(D,t){!t.value&&this.guideOpened&&(this.guideOpened=!1)};
_.q.onYtGuideToggle=function(D){var t=this.guideOpened;this.guideOpened=!t;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var H=_.Ph();_.nl(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;H.save()}this.updateGuideDrawerElementState();if(this.guideElement){var e;this.guideOpened&&((e=D.detail)==null?0:e.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.iK(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.iK(this,this.onAppDrawerTransitioned))}t||this.initializeGuideDataIfEmpty()};
_.q.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.iK(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.tp(this.guideElement)};
_.q.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.iK(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(c_t(this.guideOpened))};
_.q.guidePersistentAndVisibleChanged=function(){_.Kl(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.q.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.hV({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.q.miniGuideVisibleChanged=function(){_.Kl(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.q.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(c_t(this.guideOpened)),this.initialLoad=!1);_.Kl(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.q.activeEndpointChanged=function(){_.Kl(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.q.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.q.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()};
_.q.cachedClientWidthChanged=function(){this.updateGuideState()};
_.q.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.q.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var D=this.canFitPersistentGuide(this.cachedClientWidth);D?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=D}this.updateGuideDrawerElementState()};
_.q.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.q.getGuideOpened=function(){return this.guideOpened};
_.q.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.q.getActiveEndpoint=function(){return this.activeEndpoint};
_.q.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.q.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&&_.Gf(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.q.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.r("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.q.handleGuideMouseLeave=function(){var D=this;!this.sessionUserManuallyExpandedGuideState&&_.r("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.z1(this,"handleGuideMouseLeave",function(){D.isMouseOverGuide||!D.guideOpened||D.miniGuideVisible||(D.guideOpened=!1,D.updateGuideDrawerElementState())},100))};
_.q.computeGuidePersistentAndVisible=function(){var D=this;_.z1(this,"computeGuidePersistentAndVisible",function(){D.guidePersistentAndVisible=D.guideOpened&&D.guidePersistent;D.guideIsVisibleButNotPersistent=!(!D.guideOpened||D.guidePersistent)})};
_.q.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.q.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.q.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.q.startLoadingWatch=function(){this.closeGuide()};
_.q.startLoadingShorts=function(){_.r("web_hide_guide_on_shorts")&&this.closeGuide()};
_.q.onYtNavigateFinish=function(D,t){if(!_.Et||t){this.activeEndpoint=t.endpoint;this.pageType=t.pageType;this.pageUrl=t.response.url;var H,e;D=(e=_.O((H=t.endpoint)==null?void 0:H.commandMetadata,_.i1))==null?void 0:e.url;!this.pageUrl&&D&&(this.pageUrl=D);_.r("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.q.getVisibleGuideRenderer=function(){for(var D=_.F(this.guideRenderers),t=D.next();!t.done;t=D.next())if(t=t.value,this.miniGuideVisible&&t.is==="ytd-mini-guide-renderer"||this.guideOpened&&t.is==="ytd-guide-renderer")return t;return null};
_.q.markGuideRendererDirty=function(D){if(D){typeof D.markDirty==="function"&&D.markDirty();D=_.F([].concat(_.A6(_.Kg(D).children)));for(var t=D.next();!t.done;t=D.next())this.markGuideRendererDirty(t.value)}};
_.q.persistentGuideEnabled=function(D,t){if(!t||D==="watch"||D==="settings"||D==="shorts"&&this.isFullscreenShorts||_.r("reels_web_disable_persistent_guide_shorts")&&D==="shorts")return!1;var H=_.TW(t)||"";return _.r("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(e){return H===e}):!this.persistentGuideBlockedPagePathRegex.test(H)};
_.q.canFitPersistentGuide=function(D){var t=_.ZU("kevlar_persistent_guide_width_threshold",1312);return t===-1||_.r("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:D>this.calculateGuideThreshold(t)};
_.q.calculateGuideThreshold=function(D){return _.r("enable_ai_companion")?D+(this.persistentPanelVisible?400:0):D};
_.q.canFitMiniGuide=function(D){return this.miniGuideWidthThreshold===-1?!1:D>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.q.onResize=function(){var D=this;_.z1(this,"calculateGuideState",function(){D.onResizeDebounced()})};
_.q.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.q.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.q.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.q.getInitialGuideUserStateOpened=function(){return _.r("web_force_mini_guide_default")?!1:!_.Ph().getFlag(109)};
_.ql.Object.defineProperties(XM.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.YC("initialBodyClientWidth")||window.innerWidth}}});
XM.prototype.onResize=XM.prototype.onResize;XM.prototype.observeForMiniGuideVisible=XM.prototype.observeForMiniGuideVisible;XM.prototype.computeGuidePersistentAndVisible=XM.prototype.computeGuidePersistentAndVisible;XM.prototype.persistentPanelVisibleChanged=XM.prototype.persistentPanelVisibleChanged;XM.prototype.cachedClientWidthChanged=XM.prototype.cachedClientWidthChanged;XM.prototype.resetGuide=XM.prototype.resetGuide;XM.prototype.activeEndpointChanged=XM.prototype.activeEndpointChanged;
XM.prototype.guideOpenedChanged=XM.prototype.guideOpenedChanged;XM.prototype.miniGuideVisibleChanged=XM.prototype.miniGuideVisibleChanged;XM.prototype.guideIsVisibleButNotPersistentChanged=XM.prototype.guideIsVisibleButNotPersistentChanged;XM.prototype.guidePersistentAndVisibleChanged=XM.prototype.guidePersistentAndVisibleChanged;XM.prototype.onGuideElementChanged=XM.prototype.onGuideElementChanged;XM.prototype.onGuidePersistentChanged=XM.prototype.onGuidePersistentChanged;
XM.prototype.onRenderGuideChanged=XM.prototype.onRenderGuideChanged;XM.prototype.onActiveEndpointChanged=XM.prototype.onActiveEndpointChanged;XM.prototype.onMiniGuideVisibleChanged=XM.prototype.onMiniGuideVisibleChanged;XM.prototype.onGuideIsVisibleButNotPersistentChanged=XM.prototype.onGuideIsVisibleButNotPersistentChanged;XM.prototype.onGuidePersistendAndVisibleChanged=XM.prototype.onGuidePersistendAndVisibleChanged;
_.d([_.C(_.QI),_.x("design:type",Object)],XM.prototype,"ironResizableBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],XM.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],XM.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],XM.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],XM.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Boolean)],XM.prototype,"disabled",void 0);_.d([_.M(),_.x("design:type",Boolean)],XM.prototype,"guidePersistentAndVisible",void 0);_.d([_.Os("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"onGuidePersistendAndVisibleChanged",null);_.d([_.M(),_.x("design:type",Boolean)],XM.prototype,"guideIsVisibleButNotPersistent",void 0);
_.d([_.Os("guideIsVisibleButNotPersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.d([_.M(),_.x("design:type",Object)],XM.prototype,"miniGuideVisible",void 0);_.d([_.Os("miniGuideVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"onMiniGuideVisibleChanged",null);_.d([_.M(),_.x("design:type",Boolean)],XM.prototype,"forceMiniGuideClose",void 0);
_.d([_.M(),_.x("design:type",Object)],XM.prototype,"activeEndpoint",void 0);_.d([_.Os("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"onActiveEndpointChanged",null);_.d([_.M(),_.x("design:type",Boolean)],XM.prototype,"renderGuide",void 0);_.d([_.Os("renderGuide"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"onRenderGuideChanged",null);
_.d([_.M({selector:arY}),_.x("design:type",Boolean)],XM.prototype,"persistentPanelVisible",void 0);_.d([_.M(),_.x("design:type",Object)],XM.prototype,"guideOpened",void 0);_.d([_.M(),_.x("design:type",Boolean)],XM.prototype,"guidePersistent",void 0);_.d([_.Os("guidePersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"onGuidePersistentChanged",null);_.d([_.M(),_.x("design:type",Object)],XM.prototype,"guideUserStateOpened",void 0);
_.d([_.M(),_.x("design:type",String)],XM.prototype,"pageUrl",void 0);_.d([_.M(),_.x("design:type",String)],XM.prototype,"pageType",void 0);_.d([_.M(),_.x("design:type",Number)],XM.prototype,"cachedClientWidth",void 0);_.d([_.M(),_.x("design:type",Object)],XM.prototype,"guideElement",void 0);_.d([_.M({selector:_.wg}),_.x("design:type",Object)],XM.prototype,"isFullscreenShorts",void 0);
_.d([_.Os("guideElement"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"onGuideElementChanged",null);_.d([_.Os("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"guidePersistentAndVisibleChanged",null);
_.d([_.mx("guideIsVisibleButNotPersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"guideIsVisibleButNotPersistentChanged",null);_.d([_.Os("miniGuideVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"miniGuideVisibleChanged",null);_.d([_.mx("guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"guideOpenedChanged",null);
_.d([_.Os("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"activeEndpointChanged",null);_.d([_.mx("pageUrl"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"resetGuide",null);_.d([_.mx("cachedClientWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"cachedClientWidthChanged",null);
_.d([_.mx("persistentPanelVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"persistentPanelVisibleChanged",null);_.d([_.Os("guideOpened","guidePersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"computeGuidePersistentAndVisible",null);
_.d([_.mx("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"observeForMiniGuideVisible",null);_.d([_.rx("iron-resize"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],XM.prototype,"onResize",null);_.d([_.Y({disableElementRegistration:!0,is:"yt-guide-manager"})],XM);
var wz4=_.p(XM,"yt-guide-manager",void 0,{mode:_.Kz("kevlar_poly_si_batch_j081")?1:2});var fu=function(){var D=_.X.apply(this,arguments)||this;D.JSC$20040_keyboardInUse=!1;D.boundHandleCapturedKeydownEvent=function(t){D.handleCapturedKeydownEvent(t)};
return D};
_.P(fu,_.X);_.q=fu.prototype;_.q.attached=function(){this.listenToDocument(document)};
_.q.listenToDocument=function(D){D.addEventListener("keydown",_.iK(this,this.onKeyDownEvent));D.addEventListener("keyup",_.iK(this,this.onKeyUpEvent));D.addEventListener("mousedown",_.iK(this,this.onMouseDownEvent));_.r("desktop_keyboard_capture_keydown_killswitch")||D.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);D.addEventListener("yt-page-data-updated",_.iK(this,this.onPageUpdate))};
_.q.detached=function(){this.unlistenFromDocument(document)};
_.q.unlistenFromDocument=function(D){D.removeEventListener("keydown",_.iK(this,this.onKeyDownEvent));D.removeEventListener("keyup",_.iK(this,this.onKeyUpEvent));D.removeEventListener("mousedown",_.iK(this,this.onMouseDownEvent));_.r("desktop_keyboard_capture_keydown_killswitch")||D.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);D.removeEventListener("yt-page-data-updated",_.iK(this,this.onPageUpdate))};
_.q.ready=function(){_.qS().addProvider({provide:_.S8,useValue:this})};
_.q.isKeyBoardInUse=function(){return this.JSC$20040_keyboardInUse};
_.q.handleCapturedKeydownEvent=function(D){if(D.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(D)};
_.q.onMouseDownEvent=function(){this.JSC$20040_keyboardInUse=!1};
_.q.onPageUpdate=function(){if(_.r("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.r("web_shorts_keyboard_shortcut_usage_log")){_.uJ.clear();for(var D=_.F(_.x8),t=D.next();!t.done;t=D.next()){var H=_.F(t.value);t=H.next().value;H=H.next().value;H=_.Nx(H);_.uJ.set(t,H);_.Q$(_.v3(),_.lo(),H)}_.WA.clear();D=_.F(_.RV);for(t=D.next();!t.done;t=D.next())H=_.F(t.value),t=H.next().value,H=H.next().value,H=_.Nx(H),_.WA.set(t,H),_.Q$(_.v3(),_.lo(),H);_.y$(_.v3(),_.lo(),[].concat(_.A6(_.WA.values()),
_.A6(_.uJ.values())));_.zf(_.v3(),[].concat(_.A6(_.WA.values()),_.A6(_.uJ.values())))}};
_.q.onMiniplayerActiveChange=function(){var D;(D=_.qS().resolve(_.dL).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(D.document):this.unlistenFromDocument(D.document))};
_.q.ignoreKeyEvent=function(D){if(D.ctrlKey||D.altKey)if(_.r("kevlar_macro_markers_keyboard_shortcut")){if(D.keyCode!==37&&D.keyCode!==39)return!0}else return!0;var t=_.bK(D)||[];return _.Gfb(t)?(_.r("web_button_or_anchor_list_item")&&UFF(t,D)&&(this.JSC$20040_keyboardInUse=!0),!0):D.defaultPrevented?(hu(D.keyCode,D.shiftKey,this.isShortsPage),!0):D.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(D):!1};
_.q.isSpacebarClick=function(D){var t=D||window.event;var H;t.composedPath&&typeof t.composedPath==="function"?H=t.composedPath():H=t.path;H&&H.length?t=H[0]:(t=t||window.event,t=t.target||t.srcElement,t.nodeType==3&&(t=t.parentNode));return t&&D.keyCode===32&&(D=t.tagName==="BUTTON"||t.tagName==="A"||t.tagName==="INPUT",t=(t=t.getAttribute("role"))&&(t==="option"||t==="button"||t.indexOf("menuitem")===0),D||t)?!0:!1};
_.q.onKeyDownEvent=function(D){if(!this.ignoreKeyEvent(D)&&(D.keyCode===191&&(D.shiftKey||D.metaKey?D.repeat!=null&&D.repeat||(this.openHotkeyDialog(),hu(D.keyCode,D.shiftKey,this.isShortsPage)):(this.focusSearchBox(),D.preventDefault())),!D.metaKey)){var t=_.qS().resolve(_.dL);switch(D.keyCode){case 9:this.JSC$20040_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(D);break;case 84:t.pipController.getWindow()&&window.focus();this.toggleTheaterMode(D.keyCode,D.shiftKey);break;case 73:t.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(D.keyCode,D.shiftKey);break;case 70:if(this.isShortsPage&&_.r("web_fullscreen_shorts")){_.E0F();break}this.isMiniplayerActive()?t.pipController.getWindow()&&(t.close(!0),window.focus()):this.passEventToPlayer(D);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(D.keyCode,D.shiftKey):this.closeMiniplayer(D.keyCode,D.shiftKey)||this.passEventToPlayer(D);break;case 13:D.shiftKey&&_.qS().resolve(_.H2).activate(D);break;default:this.passEventToPlayer(D)}}};
_.q.onKeyUpEvent=function(D){if(!this.ignoreKeyEvent(D))if(_.r("web_speedmaster_spacebar_control")&&D.keyCode===32)this.handlePlayerSpaceKey(D,!0);else{var t=this.getPlayerManager();t&&(t=t.getPlayer())&&t.handleGlobalKeyUp(D.keyCode,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code)}};
_.q.getPlayerManager=function(){var D=_.FA(),t=_.qS().resolve(_.by(_.bO));return D&&t&&t.isOnWatch()?D:null};
_.q.passEventToPlayer=function(D,t){var H=this,e,V,b,a;return _.Z(function(w){if(w.nextAddress==1){if(!_.r("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&H.isMiniplayerActive())e=_.qS().resolve(_.dL).getPlayerElement();else if(H.inlinePreviewIsActive){if(V=_.Kl(H.hostElement,"yt-get-inline-preview-player-action"),(b=V)==null?0:b[0])e=V[0]}else e=_.FA();return e?w.yield(e.getPlayerPromise(),3):w.jumpTo(0)}a=w.yieldResult;t?a.handleGlobalKeyUp(D.keyCode,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,
D.key,D.code):a.handleGlobalKeyDown(D.keyCode,D.shiftKey,D.ctrlKey,D.altKey,D.metaKey,D.key,D.code,D.repeat);D.keyCode!==38&&D.keyCode!==40&&hu(D.keyCode,D.shiftKey,H.isShortsPage);_.n2(w)})};
_.q.focusSearchBox=function(){_.Gf(this.hostElement,"yt-focus-searchbox")};
_.q.openHotkeyDialog=function(){_.Gf(this.hostElement,"yt-open-hotkey-dialog")};
_.q.isMiniplayerActive=function(){return _.qS().resolve(_.dL).isMiniplayerActive()};
_.q.closeMiniplayer=function(D,t){return this.isMiniplayerActive()?(_.qS().resolve(_.dL).close(),hu(D,t,this.isShortsPage),!0):!1};
_.q.toggleTheaterMode=function(D,t){var H=_.li(_.b_().getState()),e=this.getPlayerManager(),V=_.r("disable_theater_mode_keyboard")||_.lh("START_IN_FULL_WINDOW_MODE");e&&!V&&(H=!H,_.a4()&&_.r("external_fullscreen")&&(H=!0),_.ET(this.hostElement,"yt-toggle-theater-mode",[H]),hu(D,t,this.isShortsPage))};
_.q.toggleMiniplayer=function(D,t){var H=this.getPlayerManager();if(this.isMiniplayerActive()){var e;((e=_.qS().resolve(_.by(_.bO)))==null?0:e.isOnWatch())?_.qS().resolve(_.dL).close(!0):_.s6(_.qS().resolve(_.dL));hu(D,t,this.isShortsPage)}else H&&(_.ET(this.hostElement,"yt-activate-miniplayer-from-watch-action"),hu(D,t,this.isShortsPage))};
_.q.handlePlayerSpaceKey=function(D,t){var H=!!_.FA()||this.isMiniplayerActive();H=_.r("disable_space_scroll_fix")||H;_.r("global_spacebar_pause")&&!this.isKeyBoardInUse()&&H&&(D.preventDefault(),this.passEventToPlayer(D,t))};
_.q.isPresentingTheaterMode=function(){return _.r("web_watch_enable_tm_esc_key")?_.li(_.b_().getState())&&!_.a4():!1};
fu.prototype.onMiniplayerActiveChange=fu.prototype.onMiniplayerActiveChange;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],fu.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],fu.prototype,"ytdReduxBehavior",void 0);_.d([_.M({selector:_.cUV}),_.x("design:type",Boolean)],fu.prototype,"inlinePreviewIsActive",void 0);_.d([_.M({selector:_.CLu}),_.x("design:type",Boolean)],fu.prototype,"isShortsPage",void 0);
_.d([_.M({selector:_.vH}),_.x("design:type",Boolean)],fu.prototype,"miniplayerIsActive",void 0);_.d([_.Os("miniplayerIsActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fu.prototype,"onMiniplayerActiveChange",null);_.d([_.Y({disableElementRegistration:!0,is:"yt-hotkey-manager"})],fu);_.p(fu,"yt-hotkey-manager",void 0,{mode:_.Kz("kevlar_poly_si_batch_j081")?1:2});var Lu=function(){var D=_.X.apply(this,arguments)||this;D.loopStateEntityKey_=null;D.playlistLoopStateEntity_=null;D.isShuffleNextPlaylist=!1;D.PLAYER_EVENTS_=new Map;D.playerListenersSetup_=!1;D.videoSkipJob_=0;D.canAutoAdvance_=!1;D.playerManager_=null;D.TEST_ONLY={};return D};
_.P(Lu,_.X);_.q=Lu.prototype;_.q.ready=function(){_.qS().addProvider({provide:_.hU,useValue:this.hostElement})};
_.q.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_)};
_.q.attached=function(){document.addEventListener("yt-navigate-start",_.iK(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.iK(this,this.onYtNavigateFinish_))};
_.q.detached=function(){document.removeEventListener("yt-navigate-start",_.iK(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.iK(this,this.onYtNavigateFinish_))};
_.q.updatePlaylistEventListeners=function(D,t){t&&!this.playerListenersSetup_?(this.playerManager_=D,this.registerPlaylistEventListeners_(D)):!t&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(D))};
_.q.setPlayer=function(D){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=D};
_.q.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.q.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.q.registerPlaylistEventListeners_=function(D){var t=this;D.getPlayerPromise().then(function(H){t.playerListenersSetup_||(t.ytPlayerListenerBehavior.listenToPlayerEvents(H,t.PLAYER_EVENTS_),t.playerListenersSetup_=!0)})};
_.q.removePlaylistEventListeners_=function(D){var t=this;D.getPlayerPromise().then(function(H){t.playerListenersSetup_&&(t.ytPlayerListenerBehavior.unlistenFromPlayerEvents(H,t.PLAYER_EVENTS_),t.playerListenersSetup_=!1)})};
_.q.setPlaylistComponent=function(D){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.iK(this,this.onPlaylistYtNavigate_)),D&&(D.data&&this.playlistComponent.data&&D.data.playlistId==this.playlistComponent.data.playlistId?(D.loopOn=this.playlistComponent.loopOn,D.shuffleOn=this.playlistComponent.shuffleOn):(D.loopOn=!1,D.shuffleOn=!1),this.isShuffleNextPlaylist&&(D.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=D;this.playlistComponent.addEventListener("yt-navigate",
_.iK(this,this.onPlaylistYtNavigate_))};
_.q.setAutoplayRenderer=function(D){this.autoplayData=D};
_.q.setPlaylistData=function(D){this.currentPlaylistData_=D;_.Gf(this.hostElement,"yt-playlist-data-updated");_.J$.isEmpty(D)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(D)};
_.q.setPlayerPlaybackControlData=function(D){this.playerManager_&&this.playerManager_.updatePlayerComponents(D.playlistPanelRenderer)};
_.q.getPlaylistData=function(){return this.currentPlaylistData_};
_.q.getTempData_=function(D,t){if(this.playlistComponent==null)return null;D={};this.playlistComponent.shuffleOn&&(D.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(D.loop_on=this.playlistComponent.loopOn);t&&(D.autonav="1",_.qS().resolve(_.mM),t=_.aR(),t>0&&(D.lact=t),this.playerManager_&&(t=this.playerManager_.getPlayer())&&t.shouldSendVisibilityState()&&(t=t.getVisibilityState(),t!=0&&(D.vis=t)));_.r("enable_unknown_lact_fix_on_html5")&&(_.qS().resolve(_.mM),D.lact=
_.aR());return D};
_.q.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.q.setLoopStateEntityKey_=function(D){var t;this.loopStateEntityKey_=((t=this.getPlaylistLoopData_(D))==null?void 0:t.playlistLoopStateEntityKey)||null};
_.q.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.q.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.q.skipVideo=function(){var D=this,t=_.r("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||t)t=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.Mx(_.Jy,function(){D.onPlaylistNext();D.videoSkipJob_=0},t)};
_.q.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Jy.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.q.isInBackground_=function(){var D=window.document.visibilityState;return!(!D||D=="visible")};
_.q.onPlaylistIndex_=function(D){this.playlistComponent&&(D=this.playlistComponent.data.contents[D].playlistPanelVideoRenderer.navigationEndpoint,_.Gf(this.hostElement,"yt-navigate",{endpoint:D,tempData:this.getTempData_(D)}))};
_.q.onPlayerStateChange_=function(D){if(D=D==0&&this.playlistComponent&&this.canAutoAdvance_)D=_.Uz.getInstance(),D=!(D.autonavState_===3?D.autonavPauseReason_&&D.autonavPauseReason_.inputBoxFocus===!0:D.autonavState_===1&&D.disabledAutonavPauseReason_&&D.disabledAutonavPauseReason_.inputBoxFocus===!0);D&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.q.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.q.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.q.navigateToAutoplayWatchEndpoint_=function(D,t,H){var e=this.playlistComponent.data.currentIndex,V=this.getNumPlayableVideos_();D=="NORMAL"&&t=="autoplayVideo"&&e+1>=V&&H||!(D=this.getVideoEndpoint_(D,t))||(H=this.getTempData_(D,H),_.Gf(this.hostElement,"yt-navigate",{endpoint:D,tempData:H}))};
_.q.getNumPlayableVideos_=function(){for(var D=0,t=_.F(this.playlistComponent.data.contents||[]),H=t.next();!H.done;H=t.next())H.value.playlistPanelVideoRenderer&&(D+=1);return D};
_.q.getVideoEndpoint_=function(D,t){if(this.autoplayData&&this.autoplayData.sets)for(var H=0,e=this.autoplayData.sets.length;H<e;H++){var V=this.autoplayData.sets[H];if(V.mode==D){if(V[t])return V[t];break}}else D=new _.nZ("AutoplayData is undefined in playlist manager","Mode: "+D+" endpoint: "+t),_.Yw(D)};
_.q.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.q.onPlaylistYtNavigate_=function(D){if(D.detail.endpoint){D.stopPropagation();var t=D.detail;t.tempData=this.getTempData_(D.detail.endpoint);_.Gf(this.hostElement,"yt-navigate",t)}};
_.q.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.q.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.q.playlistLoopStateEntityChanged_=function(D){var t=this,H,e,V;return _.Z(function(b){if(b.nextAddress==1){if(!D)return b.return();H=D.state==="PLAYLIST_LOOP_STATE_ONE";return t.playerManager_?b.yield(t.playerManager_.getPlayerPromise(),3):b.jumpTo(2)}b.nextAddress!=2&&(e=b.yieldResult,e.setLoopVideo(H));V=D.state==="PLAYLIST_LOOP_STATE_ALL";t.playlistComponent&&(t.playlistComponent.loopOn=V);_.n2(b)})};
_.q.getPlaylistLoopData_=function(D){var t,H;if(D=D==null?void 0:(t=D.playlistButtons)==null?void 0:(H=t.menuRenderer)==null?void 0:H.topLevelButtons)for(t=_.F(D),H=t.next();!H.done;H=t.next())if(H=H.value,H.playlistLoopButtonRenderer)return H.playlistLoopButtonRenderer};
_.q.getLoopStateCommand_=function(D){var t=this.getPlaylistData(),H;t=((H=this.getPlaylistLoopData_(t))==null?void 0:H.states)||[];var e;D=(e=_.O(t[D?1:2],_.hwm))==null?void 0:e.button;var V;return(V=_.O(D,_.aj))==null?void 0:V.command};
_.q.onPlayerLoopChange_=function(D){this.playlistLoopStateEntity_&&(D?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(D=this.getLoopStateCommand_(D))&&this.ytComponentBehavior.resolveCommand(D)};
_.q.onSleepTimerSettingsChanged_=function(D){this.canAutoAdvance_=D!=="End of video"};
Lu.prototype.onPlaylistLoopStateEntityChanged=Lu.prototype.onPlaylistLoopStateEntityChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Lu.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.ik.YtPlayerListenerBehavior),_.x("design:type",_.rt)],Lu.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Lu.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Lu.prototype,"loopStateEntityKey_",void 0);
_.d([_.M({selectorArgs:["loopStateEntityKey_"],selector:_.U8k}),_.x("design:type",Object)],Lu.prototype,"playlistLoopStateEntity_",void 0);_.d([_.Os("playlistLoopStateEntity_"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lu.prototype,"onPlaylistLoopStateEntityChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"yt-playlist-manager"})],Lu);_.p(Lu,"yt-playlist-manager",void 0,{mode:_.Kz("kevlar_poly_si_batch_j081")?1:2});var Z3F,si4=function(){if(Z3F!==void 0)return Z3F;var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Z3F=D};var AH=function(){var D=_.X.apply(this,arguments)||this;D.lastCallback=null;D.getAccountLinkPromises={};D.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);D.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return D};
_.P(AH,_.X);_.q=AH.prototype;_.q.getLocation=function(){return window.location.href};
_.q.getCompletionUrl=function(){return _.b1(this.getLocation())};
_.q.containsRedirectState=function(D){return(D=_.ns(_.tlV(D)))?(new URLSearchParams(D)).get("redirect_state")!==null:!1};
_.q.createGalConfig=function(D,t){var H=new lEH;D=H=t?this.getPopupOrRedirectSetting(H,_.YC("LINK_API_KEY"),_.YC("LINK_API_KEY_REDIRECT"),D):v1i(H,_.YC("LINK_API_KEY"));D.authUser=_.YC("SESSION_INDEX")||0;D.supportedFlows=new Set([4]);return D.build()};
_.q.getPopupOrRedirectSetting=function(D,t,H,e){this.isGalInteractionPopupMode(e)?(D.interactionMode=0,D=v1i(D,t)):(D.interactionMode=1,t=this.getCompletionUrl(),D.completionUrl=t,D=v1i(D,H));return D};
_.q.isGalInteractionPopupMode=function(D){if(this.redirectModeProviderAllowlist.has(D))switch(D){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.q.getStatusEntityKeyForProviderId=function(D){return _.cH(D+":all","accountLinkStatusEntity")};
_.q.findNestedPropValue=function(D,t){var H=!1,e=null;JSON.stringify(D,function(V,b){H||V!==t||(H=!0,e=b);return H?null:b});
return e};
_.q.findAccountLinkButtonViewModel=function(D,t){var H=null,e=!1;JSON.stringify(D,function(V,b){e||b.accountLinkStatusEntityKey!==t||b.accountLinkStatusSecondaryEntityKey||(e=!0,H=b);return e?null:b});
return H};
_.q.executeLinkingSuccessOrFailureCommands=function(D,t,H){var e=null,V;(t==null?0:(V=t.url)==null?0:V.includes("account_sharing"))?e=t==null?void 0:t.response:e=t==null?void 0:t.response;(t=this.findAccountLinkButtonViewModel(e,D))?(D=H?this.findNestedPropValue(t,"onSuccessCommand"):this.findNestedPropValue(t,"onFailureCommand"))?_.jP([D],this.hostElement):_.uh(Error("vl")):_.uh(Error("wl`"+D))};
_.q.handleInitializeRequest=function(D,t){var H=this,e=ELF(this.createGalConfig(D,!0));this.containsRedirectState(this.getLocation())?wTY(D,e.config,e.galService).then(function(V){var b=H.getStatusEntityKeyForProviderId(D);if(V.statusCode===1)t&&H.executeLinkingSuccessOrFailureCommands(b,t,!0),V=H.getLocation().indexOf("#"),V!==-1&&window.history.pushState(null,"",H.getLocation().substring(0,V));else return t&&H.executeLinkingSuccessOrFailureCommands(b,t,!1),Promise.reject(Error(V.statusMessage))}).catch(function(V){_.Yw(V);
_.L7("gamingAccountLinkStatusChanged",{serviceId:D,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(V)}):this.getAccountLinkPromises[D]=e.startLinkingSession({serviceId:D})};
_.q.handleAccountLinkCommand=function(D){_.O(D,PPO)&&this.handleLinkRequest(_.O(D,PPO))};
_.q.handleLinkRequest=function(D){var t=this,H=D.thirdPartyId;if(H)if(this.isGalInteractionPopupMode(H)){var e=function(){t.closeAndFire("ytd-gaming-account-link-setting-renderer",D.onFailureCommand)},V=function(){t.closeAndFire("ytd-gaming-account-link-setting-renderer",D.onSuccessCommand)};
this.lastCallback=V;this.getAccountLinkPromises[H].then(function(b){jIZ(b).then(function(a){a.statusCode===1?V():e()})}).catch(function(){e()})}else this.getAccountLinkPromises[H].then(function(b){jIZ(b).then(function(a){if(a.statusCode!==1)return Promise.reject(Error(a.statusMessage))})}).catch(function(b){_.Yw(b);
_.L7("gamingAccountLinkStatusChanged",{serviceId:H,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(b)})};
_.q.closeAndFire=function(D,t){_.ET(this.hostElement,"yt-close-popup-action",[D]);t&&_.jP([t],this.hostElement)};
_.q.handleAccountUnlinkCommand=function(D){_.O(D,nTF)&&this.handleUnlinkRequest(_.O(D,nTF))};
_.q.handleUnlinkRequest=function(D){var t=this,H=D.thirdPartyId;if(H){var e=function(){t.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",D.onFailureCommand)},V=function(){t.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",D.onSuccessCommand)};
this.lastCallback=V;var b=ELF(this.createGalConfig(H,!1));this.unlinkUserGal(b,H).then(function(a){a.statusCode===1?V():e()}).catch(function(){e()})}};
_.q.unlinkUserGal=function(D,t){return D.deleteLink(t)};
_.q.handleLogAccountLinkingEventCommand=function(D){_.r("enable_gel_log_commands")&&_.O(D,CPF)&&(D=_.O(D,CPF).event)&&_.L7("gamingAccountLinkStatusChanged",D)};
_.ql.Object.defineProperties(AH,{template:{configurable:!0,enumerable:!0,get:function(){return si4()}}});
_.d([_.C(_.vP.YtOpenPopupBehavior),_.x("design:type",Object)],AH.prototype,"ytOpenPopupBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],AH.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-third-party-manager"})],AH);_.p(AH,"ytd-third-party-manager",function(){return si4()},{mode:_.Kz("kevlar_poly_si_batch_j081")?1:2});var h9Q,G_4=function(){if(h9Q!==void 0)return h9Q;var D=document.createElement("template");_.n(D,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return h9Q=D};var gQ=function(){var D=_.X.apply(this,arguments)||this;D.currentPage=void 0;D.renderLoadingStateJobId=0;D.updatePageDataJobId=0;D.pageDisposeJobsets=new WeakMap;D.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"};D.shouldApplyLockupToWatchTransition=_.r("web_thumbnail_to_watch_transition");D.shouldApplySlideTransition=_.sa("web_page_transition_type")==="slide"||_.r("enable_plj_landing_page");D.shouldApplyLearningJourneyTransition=_.r("enable_plj_landing_page");D.TEST_ONLY=void 0;return D};
_.P(gQ,_.X);_.q=gQ.prototype;_.q.ready=function(){var D=_.qS();D.addProvider({provide:_.bO,useValue:this});D.addProvider({provide:_.xvf,useValue:this})};
_.q.created=function(){this.pagePool=new gsi;this.contextSwitcher=new B7H};
_.q.attached=function(){_.Gf(this.hostElement,"attached");var D=_.qS().resolve(_.by(_.dn));D&&(this.contextSwitcher.JSC$19865_networkService_=D);this.viewTransitionManager=_.qS().resolve(_.R_)};
_.q.getPageOffset=function(D){return D.getScrollTop()};
_.q.setPageOffset=function(D,t){try{D.setScrollTop(t)}catch(H){}};
_.q.setPageOffsetForNavigation=function(D,t){_.Gf(this.hostElement,"yt-navigate-set-page-offset",{page:D,offset:t===void 0?0:t})};
_.q.pauseActiveContext=function(){var D=this.contextSwitcher;D.activeContext_&&D.activeContext_.pause()};
_.q.getModuleNameForType=function(D){return D==="watch"?_.r("kevlar_watch_fixie")?"watchFixie":_.r("kevlar_watch_grid")?"watchGrid":"watchFlexy":D==="shorts"||D==="search"?D:"browse"};
_.q.attachPage=function(D){var t,H=!_.r("pc_is_attached_ks")&&(D==null?void 0:(t=D.polymerController)==null?void 0:t.isAttached);if(!D.isAttached&&!H)try{_.Kg(this.hostElement).appendChild(D)}catch(V){var e;_.Yw(new _.nZ("Error attaching page element for component",{origin:(e=this.currentPage)==null?void 0:e.is,component:D.is}))}};
_.q.setActivePage=function(D,t){var H=this,e=!1,V=function(){var b=H.isOnWatch(),a=H.currentPage;if(D)if(D!==H.currentPage){a&&(a.hidden=!0,a.active=!1,a.removeAttribute("role"));H.currentPage=D;var w,h=t!=null?t:_.OL((w=H.data)==null?void 0:w.endpoint);a&&_.Gf(H.hostElement,"yt-page-type-changed",{oldPageType:a.is,newPageType:D.is,newPageSubtype:h});_.V_().dispatch(_.hV({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:D.is}));_.V_().dispatch(_.hV({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:h||""}));
D.hidden=!1;H.attachPage(D);D.active=!0;D.setAttribute("role","main");a&&H.setPageOffsetForNavigation(D,0);_.r("kevlar_remove_page_dom_on_switch")&&!b&&a&&_.Kg(H.hostElement).removeChild(a)}else e=!0;else H.handleMissingDestinationPage(a)};
this.shouldRunBrowseTransition(this.currentPage,D)?dGe(this.viewTransitionManager,V):this.shouldRunLearningJourneyTransition(this.currentPage,D)?uzY(this.viewTransitionManager,V):V();return e};
_.q.handleMissingDestinationPage=function(D){if(this.isColdLoadForUnknownPage(D))_.Yw(new _.nZ("Cold load for unknown page"));else{var t;D=new _.nZ("Unable to set active page",D?D.is:"unknown origin",(t=this.data)==null?void 0:t.endpoint);_.gT(D)}};
_.q.isColdLoadForUnknownPage=function(D){return!D&&tu(this.data)==="unknown"};
_.q.shouldRunBrowseTransition=function(D,t){return this.shouldApplySlideTransition&&(D==null?void 0:D.is)==="ytd-browse"&&(t==null?void 0:t.is)==="ytd-browse"&&D!==t};
_.q.shouldRunLearningJourneyTransition=function(D,t){return this.shouldApplyLearningJourneyTransition&&(D==null?void 0:D.is)==="ytd-browse"&&((t==null?void 0:t.is)==="ytd-watch-learning-journey"||(t==null?void 0:t.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.q.shouldRunWatchNextLoadedTransition=function(D,t){return this.viewTransitionManager&&D.is==="ytd-watch-flexy"&&t};
_.q.updatePageData=function(D){var t=this,H=this.data;this.updatePageDataJobId&&_.Jy.cancelJob(this.updatePageDataJobId);this.data=D;return new _.c$(function(e){var V=function(){D.filler?t.performDataUpdate(D,H):DGi(function(){t.performDataUpdate(D,H)});
var h=_.EK();_.Kp(h,"cr")||h.processSignal("cr");e()},b=function(){D&&D.page==="watch"?t.updatePageDataJobId=_.Mx(_.Jy,V):V()};
if(_.r("kevlar_enable_mss_page_modules_client")&&D){var a=_.qS().resolve(_.R6),w=t.getModuleNameForType(D.page);(a=vfe(a,[w]))?a.then(b):b()}else b()})};
_.q.isDownloadsPage=function(D){var t,H;return(D==null?void 0:(t=D.endpoint)==null?void 0:(H=t.browseEndpoint)==null?void 0:H.browseId)==="FEdownloads"};
_.q.setPlayerSyncInterval=function(D){var t;return _.Z(function(H){if(H.nextAddress==1)return H.yield(_.qS().resolve(_.h5),2);t=H.yieldResult;t.setUpPositionSyncInterval(D);_.n2(H)})};
_.q.performDataUpdate=function(D,t){_.r("kevlar_early_popup_close")||_.ET(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var H=!D.filler;H&&(_.vh("lps"),_.r("config_age_report_killswitch")||geF());var e=tu(D),V,b=!1;if(_.r("kevlar_remove_page_dom_on_switch")){var a=t&&tu(t);e===a&&(V=this.getCurrentPage())}V||(V=op(this.pagePool,e));H&&emi(this.pagePool.elementPoolPopulator,e);H&&!this.renderLoadingStateJobId&&(b=this.setActivePage(V));if(V){a=e==="watch";var w=
e==="shorts",h=e==="learning_journey_watch";_.r("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(V);if(a||w||h)V.playerData=D.playerResponse;if(w)if(_.r("web_enable_delay_shorts_sequence_call")){D.reelWatchSequenceResponse&&(D.reelWatchSequenceResponse.entries||D.reelWatchSequenceResponse.prevEntries)&&(V.reelWatchSequenceResponse=D.reelWatchSequenceResponse);V.currentEndpoint=D.endpoint;var K;V.isPreviousPageShorts=!!(t==null?0:(K=t.endpoint)==null?0:K.reelWatchEndpoint);
var N,k;D.cachedSequenceParams=((N=D.endpoint)==null?void 0:(k=N.reelWatchEndpoint)==null?void 0:k.sequenceParams)||D.cachedSequenceParams||(t==null?void 0:t.cachedSequenceParams);var T,c;D.cachedSequenceProvider=((T=D.endpoint)==null?void 0:(c=T.reelWatchEndpoint)==null?void 0:c.sequenceProvider)||D.cachedSequenceProvider||(t==null?void 0:t.cachedSequenceProvider);V.cachedSequenceParams=D.cachedSequenceParams;V.cachedSequenceProvider=D.cachedSequenceProvider}else if(_.r("web_enable_shorts_sequence_cache_fix")){D.reelWatchSequenceResponse&&
(D.reelWatchSequenceResponse.entries||D.reelWatchSequenceResponse.prevEntries)?V.reelWatchSequenceResponse=D.reelWatchSequenceResponse:V.cachedReelWatchSequenceResponse&&!V.reelWatchSequenceResponse&&(V.reelWatchSequenceResponse=V.cachedReelWatchSequenceResponse);D.reelWatchSequenceResponse&&(t==null?void 0:t.page)!=="shorts"&&(V.cachedReelWatchSequenceResponse=D.reelWatchSequenceResponse);V.currentEndpoint=D.endpoint;var U;V.isPreviousPageShorts=!!(t==null?0:(U=t.endpoint)==null?0:U.reelWatchEndpoint)}else{D.reelWatchSequenceResponse&&
(D.reelWatchSequenceResponse.entries||D.reelWatchSequenceResponse.prevEntries)?V.reelWatchSequenceResponse=D.reelWatchSequenceResponse:D.cachedReelWatchSequenceResponse?V.reelWatchSequenceResponse=D.cachedReelWatchSequenceResponse:_.r("web_enable_cached_reel_sequence_fix")&&V.cachedReelWatchSequenceResponse&&!V.reelWatchSequenceResponse&&(V.reelWatchSequenceResponse=V.cachedReelWatchSequenceResponse);V.currentEndpoint=D.endpoint;var S;V.isPreviousPageShorts=!!(t==null?0:(S=t.endpoint)==null?0:S.reelWatchEndpoint);
D.cachedReelWatchSequenceResponse=D.reelWatchSequenceResponse||D.cachedReelWatchSequenceResponse||(t==null?void 0:t.cachedReelWatchSequenceResponse);V.cachedReelWatchSequenceResponse=D.cachedReelWatchSequenceResponse}K=this.isDownloadsPage(D);N=this.isDownloadsPage(t);K&&!N?this.setPlayerSyncInterval(6E5):!K&&N&&this.setPlayerSyncInterval();_.r("block_all_player_prefetch_requests")||this.preparePrefetchRequest(D,V,H,a,w,h);WNb(_.qS().resolve(_.dL),t,D);var L;(L=_.qS().resolve(_.by(_.VD)))==null||
_.vhH(L,this.getPersistentPanelSurface(e));_.Co(_.qS().resolve(_.mM));_.r("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(V);H?(H=typeof V.loadPage,H==="function"?(V.pageContext=zzF(this.contextSwitcher,V,V.data!==D.response),H=function(){V.loadPage(D.response)},this.shouldApplySlideTransition&&V.is==="ytd-browse"&&b&&(e==="learning"||this.isDifferentBrowseId(D==null?void 0:D.endpoint,t==null?void 0:t.endpoint))?dGe(this.viewTransitionManager,H):this.shouldRunWatchNextLoadedTransition(V,
b)?RmZ(this.viewTransitionManager,H):H()):_.Jp(new _.nZ("b/38014653 ",[e,
V.is,V.nodeName,H,V.isAttached,t&&tu(t),this.hostElement.children.length])),_.vh("pdl")):(V.hidden=!0,D.response.filler=!0,V.data=D.response,this.attachPage(V));_.Gf(this.hostElement,"yt-page-data-updated",{pageType:e})}_.C7(_.Jy,function(){_.r("logging_avoid_blocking_during_navigation")&&_.$xX().transition("none");var J=Est(),g=V;if(D){var Q=oXF(D),u=PiO(D),R;a:{if(D.playerResponse){var I=D.playerResponse,tT;if((R=I.auxiliaryUi)==null?0:(tT=R.messageRenderers)==null?0:tT.upsellDialogRenderer){R=
I.auxiliaryUi.messageRenderers.upsellDialogRenderer;break a}}else if(D.response&&(R=D.response,(I=R.overlay)==null?0:I.upsellDialogRenderer)){R=R.overlay.upsellDialogRenderer;break a}R=void 0}var ZV;var ED;tT=(ZV=D.playerResponse)==null?void 0:(ED=ZV.auxiliaryUi)==null?void 0:ED.messageRenderers;ZV=(tT==null?void 0:tT.enforcementMessageViewModel)||(tT==null?void 0:tT.bkaEnforcementMessageViewModel);ZV=(ZV==null?void 0:ZV.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?ZV:void 0;
var o$;a:{if(D.response&&(ED=D.response,(o$=ED.overlay)==null?0:o$.commandWrapperPromoRenderer)){o$=ED.overlay.commandWrapperPromoRenderer;break a}o$=void 0}Ggg(J,Q,u,R,ZV,o$,g)}})};
_.q.preparePrefetchRequest=function(D,t,H,e,V,b){var a,w,h,K,N,k,T,c,U,S,L,J,g,Q,u;return _.Z(function(R){if(R.nextAddress==1)return!H||!(e||V||b)||_.r("kevlar_disable_background_prefetch")&&_.pY(_.OLK)()===0?R.return():(a=_.qx(t))?R.yield(a.getPlayerPromise(),2):R.return();w=R.yieldResult;h=_.qS().resolve(_.by(_.dn));if(!h)return R.return();if(V)return K=_.Vd(_.QN),Za4(K,(N=D.endpoint)==null?void 0:N.reelWatchEndpoint,t.reelWatchSequenceResponse,w,h),R.return();c=(k=D.response)==null?void 0:(T=k.responseContext)==
null?void 0:T.webResponseContextExtensionData;if(!c)return R.return();g=(U=D.response)==null?void 0:(S=U.contents)==null?void 0:(L=S.twoColumnWatchNextResults)==null?void 0:(J=L.autoplay)==null?void 0:J.autoplay;Q=_.qS().resolve(_.hU);u=_.Vd(_.QN);skF(u,c,w,h,Q,g);_.n2(R)})};
_.q.movePlayerToWatch=function(D){var t=this,H,e;return _.Z(function(V){H=op(t.pagePool,"watch");e=H.getPlayerContainer();D.appendTo(e);_.n2(V)})};
_.q.movePlayerToShorts=function(D){var t=this,H,e,V;return _.Z(function(b){H=op(t.pagePool,"shorts");e=H.getPlayerContainer();(V=D)==null||V.appendTo(e,void 0,!0);_.n2(b)})};
_.q.getPlayerFromWatch=function(){var D=op(this.pagePool,"watch");return _.qx(D)};
_.q.getPlayerFromShorts=function(){var D=op(this.pagePool,"shorts");return _.qx(D)};
_.q.startLoadingWatch=function(){var D=this,t=op(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Jy.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.r("web_watch_transition_enable_start_loading_watch_callsite")?xGZ(this.viewTransitionManager,function(){D.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(t,"watch")};
_.q.startLoadingShorts=function(){var D=op(this.pagePool,"shorts");this.setActivePage(D,"shorts")};
_.q.startLoadingLearningJourney=function(){var D=op(this.pagePool,"learning_journey_watch");this.setActivePage(D,"learning_journey_watch")};
_.q.getCurrentPage=function(){return this.currentPage};
_.q.getDestinationPageType=function(){return this.destinationPageType};
_.q.getCurrentData=function(){return this.data};
_.q.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.q.isOnShorts=function(){var D;return((D=this.currentPage)==null?void 0:D.is)==="ytd-shorts"};
_.q.isWatchPage=function(D){return!!D&&(D.is==="ytd-watch-flexy"||D.is==="ytd-watch-fixie"||D.is==="ytd-watch-grid")};
_.q.preparePage=function(D,t){var H=this,e=function(){var a=H.pagePool.preparePage(D,H.currentPage,t);a&&H.attachPage(a)},V=function(a){_.lm(a,t);
_.Yw(a)};
if(_.r("kevlar_enable_mss_page_modules_client")){var b=this.getModuleNameForType(D);if(b=vfe(_.qS().resolve(_.R6),[b])){b.then(e.bind(this)).catch(V.bind(this));return}}try{e()}catch(a){V(a)}};
_.q.lazyPrepareCriticalPages=function(D,t){D=_.OL(t)||D;_.r("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(D).then(this.maybePrepareWatchPage.bind(this,D)):this.maybePrepareWatchPage(D)};
_.q.maybePrepareWatchPage=function(D){D==="watch"||D==="learning_journey_watch"&&_.r("web_watch_learning_journey_disable_lazy_pages")||_.C7(_.Jy,this.preparePage.bind(this,"watch"))};
_.q.downloadPageModules=function(D){D=this.getModuleNameForType(D);var t=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);t.delete(D);var H=_.qS().resolve(_.R6);H.JSC$18583_loadModules(D);return H.JSC$18583_loadModules.apply(H,_.A6(t))};
_.q.renderPageLoadingState=function(D,t){this.preparePage(D,t);var H=op(this.pagePool,D);H.loadingData&&(H.loadingData.endpoint=t);H.loading=!0;this.setActivePage(H,D);D!=="watch"&&D!=="learning_journey_watch"||_.Gf(this.hostElement,"yt-guide-close")};
_.q.prepareForNavigation=function(D,t){var H=this;if(this.currentPage&&this.data){var e=_.OL(t)||D;this.destinationPageType=e;tu(this.data)==e&&_.Gf(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((D==="watch"||D==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.Jy.cancelJob(this.renderLoadingStateJobId);_.qS().resolve(_.dL).deactivate(t);_.NP(_.Jy,function(){var b=H.viewTransitionManager,a=H.currentPage;
if(b.isLockupToWatchTransitionEnabled&&b.isLockupThumbnailRegistrationEnabled&&a)if(b.registeredLockupThumbnail)b.lockupThumbnailRegisteredFromWatchEndpoint&&_.Yw(new _.nZ("Lockup thumbnail already registered from watch endpoint."));else{a:{var w=_.O(t,_.Hh);if(w==null?0:w.videoId){var h="yt-lockup-view-model ."+_.feV(w.videoId)+" yt-thumbnail-view-model";a=a.querySelectorAll(h);if(a.length===1){w=a[0];break a}a.length>1?_.Yw(new _.nZ("Multiple LockupViewModel thumbnails found for videoId: "+w.videoId+
". Selector: "+h)):_.r("web_thumbnail_to_watch_transition_debug")&&_.Yw(new _.nZ("No LockupViewModel thumbnail found for videoId: "+w.videoId+". Selector: "+h))}w=void 0}w&&(b.registeredLockupThumbnail=w,b.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.$cY(b,w))}});
var V=this.data;this.renderLoadingStateJobId=_.NP(_.Jy,function(){xGZ(H.viewTransitionManager,function(){if(H.data!=V){var b=op(H.pagePool,D);H.setActivePage(b)}else H.renderPageLoadingState(D,t);H.renderLoadingStateJobId=0})},150)}};
_.q.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var D=new _.CE(1);this.currentPage.pageDisposeJobs.forEach(function(t){_.mX(D,t)});
this.pageDisposeJobsets.set(this.currentPage,D)}};
_.q.flushPageDisposeJobset=function(D){var t=this.pageDisposeJobsets.get(D);t&&(t.flushJobs(),this.pageDisposeJobsets.delete(D))};
_.q.onYtStopOldPlayer=function(D,t){t=t===void 0?!1:t;var H,e=_.hW("kevlar_new_stop_old_player_logic_pages");if(_.r("kevlar_check_current_page_on_stop_old_player")&&(e.length===0||this.currentPage&&e.includes(this.currentPage.is)))if(this.data&&(H=tu(this.data)),tu(D)===H&&this.currentPage&&tu(this.currentPage.data)!==H)var V=_.qx(this.currentPage);else H=tu(this.data),V=op(this.pagePool,H),V=_.qx(V);else this.data&&(H=tu(this.data),V=op(this.pagePool,H),V=_.qx(V));if(V)if(D=tu(D),e=op(this.pagePool,
D),e=_.qx(e),V==e)t&&!_.r("kevlar_disable_preemptive_player_reset")&&V.resetForNewPlayback();else if(t=H==="watch"&&D!=="watch",!t||D==="shorts"||_.L8v()&&!ST4(this.data)&&D!=="yts-products"&&D!="mini_app"&&D!="playables")H=_.qS().resolve(_.dL),t&&H.isMiniplayerActive()&&H.pipController.getWindow()||V.stop()};
_.q.isDifferentBrowseId=function(D,t){D=_.O(D,_.UL);t=_.O(t,_.UL);return(D==null?void 0:D.browseId)!==(t==null?void 0:t.browseId)};
_.q.getPersistentPanelSurface=function(D){switch(D){case "watch":return"WATCH";default:return"APP"}};
_.ql.Object.defineProperties(gQ,{template:{configurable:!0,enumerable:!0,get:function(){return G_4()}}});
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],gQ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-page-manager"})],gQ);_.p(gQ,"ytd-page-manager",function(){return G_4()},{mode:_.Kz("kevlar_poly_si_batch_j081")?1:2});var ErF;var JH=function(){var D=_.X.apply(this,arguments)||this;D.useListItemStyles=_.r("web_list_item_style_for_menu_items");D.systemIcons=_.r("kevlar_system_icons");return D};
_.P(JH,_.X);_.q=JH.prototype;_.q.ready=function(){this.hostElement.addEventListener("tap",_.iK(this,this.onEndpointTapExtra))};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.q.onFocus=function(){var D;(D=_.Kg(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.q.onEndpointTapExtra=function(D){_.Gf(this.hostElement,"iron-activate");var t=this.data.navigationEndpoint;t&&_.O(t,_.w46)&&(D.stopPropagation(),_.k0(this.hostElement,[t],this.hostElement))};
_.q.computeIcon=function(D){return D&&D.iconType?_.cc(D.iconType):""};
_.q.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.q.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.q.forceUpdateStylesOnLegacyBrowsers=function(){_.r("kevlar_legacy_browsers")&&_.jZ(this.hostElement)};
JH.prototype.forceUpdateStylesOnLegacyBrowsers=JH.prototype.forceUpdateStylesOnLegacyBrowsers;JH.prototype.onFocus=JH.prototype.onFocus;_.d([_.C(_.oy),_.x("design:type",Object)],JH.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(_.T6O.YtConditionalRendererBehavior),_.x("design:type",Object)],JH.prototype,"ytConditionalRendererBehavior",void 0);_.d([_.C(_.pE.YtEndpointBehavior),_.x("design:type",Object)],JH.prototype,"ytEndpointBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],JH.prototype,"data",void 0);_.d([_.M({computed:"computeIcon(data.icon)",value:""}),_.x("design:type",String)],JH.prototype,"icon",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],JH.prototype,"useIcons",void 0);_.d([_.M({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.x("design:type",Boolean)],JH.prototype,"hasSeparator",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],JH.prototype,"useListItemStyles",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],JH.prototype,"systemIcons",void 0);_.d([_.rx("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JH.prototype,"onFocus",null);_.d([_.Os("useIcons","hasSeparator"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],JH.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.p(JH,"ytd-menu-navigation-item-renderer",function(){if(ErF===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);ErF=D}D=ErF;return D},{mode:1});var KRv;var NAQ=_.H7(_.OT("DOWNLOAD",{},"Download")),k_F=_.H7(_.OT("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),TAO=_.H7(_.OT("RETRY",{},"Retry")),cDF=_.H7(_.OT("PAUSE_DOWNLOADING",{},"Pause downloading")),jib=_.H7(_.OT("RESUME_DOWNLOAD",{},"Resume download")),Yy=function(){var D=_.X.apply(this,arguments)||this;D.primaryText=NAQ;D.primaryIconType="OFFLINE_DOWNLOAD";D.hasSecondaryContent=!1;D.hasSeparator=!1;D.transferState="TRANSFER_STATE_UNKNOWN";D.isVideoDeletedByUser=!1;D.isHidden=!1;D.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return D};
_.P(Yy,_.X);_.q=Yy.prototype;_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.q.onFocus=function(){this.primaryEntry.focus()};
_.q.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.q.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.q.getRemoveAction=function(){return"ACTION_REMOVE"};
_.q.sendOfflineAction=function(D){var t=this.data.serviceEndpoint;if(t){var H=_.O(t,_.$i);H&&D&&(H.action=D);this.ytComponentBehavior.resolveCommand(t)}};
_.q.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=NAQ,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=NAQ;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=TAO;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=k_F;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=jib;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=k_F;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
cDF;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=k_F;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=k_F;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=NAQ,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.q.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.q.isSecondaryEntryHidden=function(D,t){return D?!0:!t};
_.q.computeHasSeparator=function(){var D;return!((D=this.data)==null||!D.hasSeparator)};
Yy.prototype.showHideButton=Yy.prototype.showHideButton;Yy.prototype.onTransferStateChange=Yy.prototype.onTransferStateChange;Yy.prototype.onFocus=Yy.prototype.onFocus;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Yy.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Yy.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Yy.prototype,"ytComponentBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Yy.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Yy.prototype,"primaryText",void 0);_.d([_.M(),_.x("design:type",String)],Yy.prototype,"primaryIconType",void 0);_.d([_.M(),_.x("design:type",String)],Yy.prototype,"primaryAction",void 0);_.d([_.M(),_.x("design:type",Object)],Yy.prototype,"secondaryText",void 0);_.d([_.M(),_.x("design:type",String)],Yy.prototype,"secondaryIconType",void 0);
_.d([_.M(),_.x("design:type",String)],Yy.prototype,"secondaryAction",void 0);_.d([_.M(),_.x("design:type",Object)],Yy.prototype,"hasSecondaryContent",void 0);_.d([_.M({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.x("design:type",Object)],Yy.prototype,"hasSeparator",void 0);_.d([_.M({selector:_.xe,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.x("design:type",String)],Yy.prototype,"transferState",void 0);
_.d([_.M({selector:_.g$D,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.x("design:type",Object)],Yy.prototype,"isVideoDeletedByUser",void 0);_.d([_.M(),_.x("design:type",Object)],Yy.prototype,"isHidden",void 0);_.d([_.M({selector:_.mCu,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.x("design:type",Object)],Yy.prototype,"offlineabilityState",void 0);_.d([_.o5("#primary-entry"),_.x("design:type",Object)],Yy.prototype,"primaryEntry",void 0);
_.d([_.rx("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yy.prototype,"onFocus",null);_.d([_.mx("transferState","isVideoDeletedByUser"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yy.prototype,"onTransferStateChange",null);_.d([_.mx("offlineabilityState"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yy.prototype,"showHideButton",null);
_.p(Yy,"ytd-menu-service-item-download-renderer",function(){if(KRv===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);KRv=D}D=KRv;return D},{mode:1});var $54;var l3=function(){var D=_.X.apply(this,arguments)||this;D.useIcons=!1;D.systemIcons=_.r("kevlar_system_icons");D.useListItemStyles=_.r("web_list_item_style_for_menu_items");return D};
_.P(l3,_.X);_.q=l3.prototype;_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.q.onFocus=function(){var D;(D=_.Kg(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.q.onTap=function(){_.Kl(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var D=this.data.serviceEndpoint,t=this.data.command;if(D){var H,e=(H=this.data)==null?void 0:H.trackingParams;H=!!_.O(D,_.xa3);e&&H&&_.b_().dispatch(_.hV({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:e}}));this.ytComponentBehavior.resolveCommand(D)||_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}})}t&&(this.ytComponentBehavior.resolveCommand(t)||_.k0(this.hostElement,
[t],this.hostElement))};
_.q.computeIcon=function(D){return D&&D.iconType?_.cc(D.iconType):""};
_.q.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.q.computeHasSeparator=function(){var D;return!((D=this.data)==null||!D.hasSeparator)};
_.q.forceUpdateStylesOnLegacyBrowsers=function(){_.r("kevlar_legacy_browsers")&&_.jZ(this.hostElement)};
_.q.computeIsSelected=function(){var D;return!((D=this.data)==null||!D.isSelected)};
l3.prototype.forceUpdateStylesOnLegacyBrowsers=l3.prototype.forceUpdateStylesOnLegacyBrowsers;l3.prototype.onTap=l3.prototype.onTap;l3.prototype.onFocus=l3.prototype.onFocus;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],l3.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],l3.prototype,"ytComponentBehavior",void 0);
_.d([_.C(_.T6O.YtConditionalRendererBehavior),_.x("design:type",Object)],l3.prototype,"ytConditionalRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],l3.prototype,"data",void 0);_.d([_.M({computed:"computeIcon(data.icon)",value:""}),_.x("design:type",String)],l3.prototype,"icon",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],l3.prototype,"useIcons",void 0);
_.d([_.M({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.x("design:type",Boolean)],l3.prototype,"hasSeparator",void 0);_.d([_.M({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.x("design:type",Boolean)],l3.prototype,"isSelected",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],l3.prototype,"systemIcons",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],l3.prototype,"useListItemStyles",void 0);
_.d([_.rx("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],l3.prototype,"onFocus",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],l3.prototype,"onTap",null);_.d([_.Os("useIcons","hasSeparator"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],l3.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.p(l3,"ytd-menu-service-item-renderer",function(){if($54===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);$54=D}D=$54;return D},{mode:2});var i3t;var vS=function(){return _.X.apply(this,arguments)||this};
_.P(vS,_.X);_.q=vS.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.onDataChanged=function(){var D=this;_.Vi(this,function(){D.postbox.openDialog();D.focus();_.Gf(D.hostElement,"yt-refit")})};
_.q.focus=function(){this.postbox.focus()};
_.q.closePopup=function(){_.ET(this.hostElement,"yt-close-popup-action")};
_.q.onYtCommentboxDismiss=function(){this.closePopup()};
vS.prototype.onYtCommentboxDismiss=vS.prototype.onYtCommentboxDismiss;vS.prototype.onDataChanged=vS.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],vS.prototype,"data",void 0);_.d([_.M({value:function(){return _.OT("SBOX_INAPPROPRIATE_CANCEL")}}),
_.x("design:type",String)],vS.prototype,"closeButtonAriaLabel",void 0);_.d([_.o5("#postbox"),_.x("design:type",Object)],vS.prototype,"postbox",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vS.prototype,"onDataChanged",null);_.d([_.rx("yt-commentbox-dismiss"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vS.prototype,"onYtCommentboxDismiss",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],vS);
_.p(vS,"ytd-backstage-post-dialog-popup-renderer",function(){if(i3t!==void 0)return i3t;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return i3t=D},{mode:1});var rDt;var pu=function(){return _.X.apply(this,arguments)||this};
_.P(pu,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],pu.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],pu);
_.p(pu,"ytd-sender-id-section-renderer",function(){if(rDt!==void 0)return rDt;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
return rDt=D},{mode:1});var O3g;var U5t;var or4;var dQ=function(){return _.X.apply(this,arguments)||this};
_.P(dQ,_.X);dQ.prototype.closePopup=function(){_.ET(this.hostElement,"yt-close-popup-action")};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],dQ.prototype,"data",void 0);_.d([_.xL({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],dQ);
_.p(dQ,"yt-community-post-section-renderer",function(){if(or4===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;U5t===void 0&&(U5t=document.createElement("template"));var e=U5t;H.call(t,e.content.cloneNode(!0),D.content.firstChild);or4=D}D=or4;return D},{mode:2});var PHZ;var nrv;var CHF;var m5Z;var M3Y;var SRe;var xy=function(){return _.X.apply(this,arguments)||this};
_.P(xy,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],xy.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],xy.prototype,"data",void 0);_.d([_.xL({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],xy);
_.p(xy,"yt-share-start-time-with-context-renderer",function(){if(SRe===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;M3Y===void 0&&(M3Y=document.createElement("template"));var e=M3Y;H.call(t,e.content.cloneNode(!0),D.content.firstChild);SRe=D}D=SRe;return D},{mode:2});var Rp=function(){return _.X.apply(this,arguments)||this};
_.P(Rp,_.X);Rp.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Rp.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Rp.prototype,"data",void 0);_.d([_.xL({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],Rp);
_.p(Rp,"yt-share-panel-title-v15-renderer",function(){if(m5Z===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;CHF===void 0&&(CHF=document.createElement("template"));var e=CHF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);m5Z=D}D=m5Z;return D},{mode:2});var u3=function(){return _.X.apply(this,arguments)||this};
_.P(u3,_.X);u3.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"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],u3.prototype,"data",void 0);_.d([_.xL({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],u3);
_.p(u3,"yt-share-panel-header-renderer",function(){if(nrv===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;PHZ===void 0&&(PHZ=document.createElement("template"));var e=PHZ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);nrv=D}D=nrv;return D},{mode:2});var XzF;var frv;var WS=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-open-popup-action":"onOpen"};return D};
_.P(WS,_.X);_.q=WS.prototype;_.q.attached=function(){this.onOpen()};
_.q.updateTimeSecs=function(D){this.currentTimeSecs=D};
_.q.computeTimeString=function(D){D=D.toString();var t=Math.floor(Number(D)/3600),H=Math.floor(Number(D)%3600%60);return(t>0?t+":":"")+_.kB(Math.floor(Number(D)%3600/60),t>0?2:1)+":"+_.kB(H,2)};
_.q.computeTimeStringA11y=function(D){return _.xC8({seconds:D})};
_.q.getTimeParam=function(){return uIF(this.timeString)};
_.q.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var D={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},t;_.YS(_.Pc(),(t=this.data)==null?void 0:t.trackingParams,D,7)};
_.q.onChangeStartAtTimestamp=function(){for(var D=this.startAtTimestamp.value.split(":"),t=0,H=1,e=D.length-1;e>=0;e--)t+=Number(D[e])*H,H*=60;this.updateTimeSecs(t);this.setTimestamp()};
_.q.onOpen=function(){var D=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var t=_.FA();t?t.getPlayerPromise().then(function(H){H=H.getCurrentTime();D.updateTimeSecs(H)}):NnF()&&this.updateTimeSecs(NnF())};
_.q.setTimestamp=function(){var D=Math.floor(this.currentTimeSecs);_.ET(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!D,timestamp:D||""}])};
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],WS.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],WS.prototype,"data",void 0);_.d([_.M({value:!1,notify:!0}),_.x("design:type",Boolean)],WS.prototype,"isStartAtChecked",void 0);_.d([_.M(),_.x("design:type",Number)],WS.prototype,"currentTimeSecs",void 0);
_.d([_.M({computed:"computeTimeString(currentTimeSecs)"}),_.x("design:type",String)],WS.prototype,"timeString",void 0);_.d([_.M({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.x("design:type",String)],WS.prototype,"timeStringA11y",void 0);_.d([_.o5("#start-at-timestamp"),_.x("design:type",Object)],WS.prototype,"startAtTimestamp",void 0);_.d([_.xL({is:"yt-start-at-renderer",disableElementRegistration:!0})],WS);
_.p(WS,"yt-start-at-renderer",function(){if(frv===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;XzF===void 0&&(XzF=document.createElement("template"));var e=XzF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);frv=D}D=frv;return D},{mode:2});var LRQ;var ADv;var grv=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"]]),JDb=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"]]),YRF=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var lrQ={};lrQ.YtBindingExpressionsBehavior={identity:_.AT,msg:function(D,t){t=t===void 0?{}:t;return _.OT(D,t,D)},
msgPlural:function(D,t){return _.UT(D,t)},
getMusicIconFromType:function(D){if(_.r("music_web_enable_icon_wil"))D=_.cc(D);else if(JDb.has(D))D="yt-sys-icons:"+JDb.get(D);else{var t=grv.get(D)||_.cc(D).split(":")[1];t=_.cPV(t);var H;D=((H=YRF.get(D))!=null?H:"yt-sys-icons:")+t}return D}};var vri;var pzF;var d5F;var x54=document.head,R9e=x54.appendChild,uiZ;if(d5F===void 0){var WRY=document.createElement("template");_.n(WRY,'\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>');d5F=WRY}uiZ=d5F;R9e.call(x54,uiZ.content);var Ip=function(){var D=_.X.apply(this,arguments)||this;D.screenLayer=7;return D};
_.P(Ip,_.X);Ip.prototype.getScreenLayer=function(){return this.screenLayer};
Ip.prototype.onTap=function(D){D&&D.detail&&(D.detail.x||D.detail.y)&&_.Kg(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.NJ(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(D=this.getScreenLayer(),_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:D}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.ql.Object.defineProperties(Ip.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()}}});
Ip.prototype.onTap=Ip.prototype.onTap;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Ip.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ip.prototype,"data",void 0);_.d([_.m("data.title"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ip.prototype,"title",null);
_.d([_.m("data.serviceName"),_.x("design:type",String),_.x("design:paramtypes",[])],Ip.prototype,"icon",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Ip.prototype,"onTap",null);_.d([_.xL({is:"yt-share-target-renderer",disableElementRegistration:!0})],Ip);
_.p(Ip,"yt-share-target-renderer",function(){if(pzF===void 0){var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;vri===void 0&&(vri=document.createElement("template"));var e=vri;H.call(t,e.content.cloneNode(!0),D.content.firstChild);pzF=D}D=pzF;return D},{mode:2});var IrH;var QiQ;var QT=function(){var D=_.X.apply(this,arguments)||this;D.SHARE_TARGET_WIDTH=70;D.SHARE_TARGET_MARGIN_RIGHT=8;D.PAGE_SCROLL_SPEED=9;D.actionMap={"yt-share-panel-reset-action":"onReset_"};return D};
_.P(QT,_.X);_.q=QT.prototype;_.q.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.q.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Kg(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Kg(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.q.onReset_=function(){if(_.Kg(this.hostElement).querySelector("#list")){var D=_.Kg(this.hostElement).querySelector("#list");var t=_.Kg(this.hostElement).querySelector("#list");var H=t.offsetLeft,e=t.offsetParent;e||_.uFv(t)!="fixed"||(e=_.pW(t).documentElement);if(e){if(_.Ka&&!_.kf(58)){var V=_.tM6(e);H+=V.left}else Number(_.KBR)>=8&&!(Number(_.KBR)>=9)&&(V=_.tM6(e),H-=V.left);t=_.zgv(e)?e.clientWidth-(H+t.offsetWidth):H}else t=H;GNF(D,t);this.updateScrollButtons_()}};
_.q.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.q.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.q.onScrollWheel_=function(D){D.stopPropagation();D.preventDefault();var t=hFZ(_.Kg(this.hostElement).querySelector("#list"));D=Math.abs(D.deltaX)>Math.abs(D.deltaY)?D.deltaX:D.deltaY;GNF(_.Kg(this.hostElement).querySelector("#list"),t+D);this.updateScrollButtons_()};
_.q.smoothScrollByOnePage_=function(D){var t=_.Kg(this.hostElement).querySelector("#list"),H=(Math.floor(t.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,e=hFZ(t),V=H*(D?1:-1),b=this.PAGE_SCROLL_SPEED,a=this.updateScrollButtons_.bind(this),w=0,h;(function N(){w+=b;h=w/H*2;GNF(t,e+V*(h<1?h*h:-h*h+4*h-2));w<H?window.requestAnimationFrame(N):a()})()};
_.q.updateScrollButtons_=function(){var D=hFZ(_.Kg(this.hostElement).querySelector("#list")),t=_.Kg(this.hostElement).querySelector("#list").scrollWidth-_.Kg(this.hostElement).querySelector("#list").clientWidth;_.Kg(this.hostElement).querySelector("#scroll-button-back").hidden=D<=0;_.Kg(this.hostElement).querySelector("#scroll-button-forward").hidden=D>=t};
QT.prototype.onScrollWheel_=QT.prototype.onScrollWheel_;QT.prototype.onDataChanged_=QT.prototype.onDataChanged_;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],QT.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],QT.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(lrQ.YtBindingExpressionsBehavior),_.x("design:type",Object)],QT.prototype,"ytBindingExpressionsBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],QT.prototype,"data",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QT.prototype,"onDataChanged_",null);_.d([_.rx("wheel"),_.x("design:type",Function),_.x("design:paramtypes",[WheelEvent]),_.x("design:returntype")],QT.prototype,"onScrollWheel_",null);
_.d([_.xL({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],QT);
_.p(QT,"yt-third-party-share-target-section-renderer",function(){if(QiQ===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;IrH===void 0&&(IrH=document.createElement("template"));var e=IrH;H.call(t,e.content.cloneNode(!0),D.content.firstChild);QiQ=D}D=QiQ;return D},{mode:2});var yT=function(){return _.X.apply(this,arguments)||this};
_.P(yT,_.X);yT.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"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],yT.prototype,"data",void 0);_.d([_.xL({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],yT);
_.p(yT,"yt-third-party-network-section-renderer",function(){if(ADv===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;LRQ===void 0&&(LRQ=document.createElement("template"));var e=LRQ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);ADv=D}D=ADv;return D},{mode:2});_.hB(_.l(function(D){return _.G("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.G("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.G(_.P5,{data:function(){return D.data().firstPartyItems}},{listItemViewModel:_.Zq})))},"ti"),"first-party-network-section-view-model",{props:{data:_.ij}});var yDe=(0,_.fxF)(_.e1.share,{parentClickTrackingParamsSelector:function(D){return D.parentClickTrackingParams}});var BAb=_.zk(["data:image/svg+xml;charset=UTF-8;base64,",""]),BS=function(){var D=_.X.apply(this,arguments)||this;D.screenLayer=7;D.qrCodeEnabled=_.r("web_enable_sharing_qr_code");D.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return D};
_.P(BS,_.X);_.q=BS.prototype;_.q.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"}}}};
_.q.attached=function(){this.JSC$20106_scroller&&(this.JSC$20106_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20106_scroller.attached&&typeof this.JSC$20106_scroller.attached==="function"&&this.JSC$20106_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.q.onDataChanged=function(){var D=this,t;(t=this.data)!=null&&t.contents&&(this.hostElement.setAttribute("links-only","true"),_.T1(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.Vi(this,function(){_.Gf(D.hostElement,"yt-refit");D.focusSharePanelHeader()}))};
_.q.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.q.handleSetTimestamp=function(D){var t=this.shortUrl();D.isSet&&(t=_.VK(t,"t",D.timestamp));this.maybeRenderQrCode(t)};
_.q.shortUrl=function(){var D,t=(D=this.data)==null?void 0:D.contents;if(t)for(D=0;D<t.length;D++){var H=void 0,e=void 0;if((H=t[D])==null?0:(e=H.thirdPartyNetworkSection)==null?0:e.copyLinkContainer){var V=e=H=void 0;return(V=_.O((H=t[D])==null?void 0:(e=H.thirdPartyNetworkSection)==null?void 0:e.copyLinkContainer,wwi))==null?void 0:V.shortUrl}}};
_.q.maybeRenderQrCode=function(D){var t=this,H,e,V,b,a,w,h,K,N;return _.Z(function(k){if(k.nextAddress==1){H=_.Kg(t.hostElement).querySelector("#qr-code");if(!t.qrCodeEnabled||!D)return H&&(H.style.display="none"),k.return();e=_.Ms$(_.qS().resolve(_.ja),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});V=document.createElement("div");return typeof e==="function"?(e(V),k.jumpTo(2)):k.yield(e,3)}k.nextAddress!=2&&(b=k.yieldResult,b(V));h=(a=V)==null?void 0:(w=a.firstChild)==null?void 0:w.firstChild;
K=document.createElement("img");N=_.qk6(BAb,btoa(h.outerHTML));K.onload=function(){var T={canvas:H,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:K},c=new Sst;Jh4(c,D);Ysg(c,!1,l9H(c));var U=c.modules,S=Object.assign({},D4F,T);U=structuredClone(U);T=U.length;var L,J=(L=S.canvas)!=null?L:document.createElement("canvas");L=S.cellSize;c=S.logo;var g,Q=(g=S.logoSize)!=null?g:Math.floor(T/4);T%2!==Q%2&&Q++;var u=S.logoPadding,R=S.backgroundColor;g=T*L;var I=
S.width,tT=0;I&&(tT=S.padding,tT=Math.ceil(tT*g/(I-tT*2)),J.style.width=I+"px",J.style.height=I+"px");J.width!==g+tT*2&&(J.width=g+tT*2);J.height!==g+tT*2&&(J.height=g+tT*2);g=J.getContext("2d");S.autoClear&&g.clearRect(0,0,J.width,J.height);g.fillStyle=R;g.beginPath();g.roundRect(0,0,J.width,J.height,S.borderRadius);g.fill();g.save();g.translate(tT,tT);if(c)for(J=Math.floor(T-Q)/2-u,u=Math.floor(T+Q)/2+u,R=J;R<u;R++)for(I=J;I<u;I++)U[R][I]=!1;for(J=0;J<T;J++)for(u=0;u<T;u++)(J<7&&u<7||J<7&&u>=T-
7||J>=T-7&&u<7)&&(U[J][u]=!1);var ZV;J=(ZV=S.markerColor)!=null?ZV:S.color;pTF(g,0,0,L,J);pTF(g,L*(T-7),0,L,J);pTF(g,0,L*(T-7),L,J);switch(S.cellStyle){case 0:ZV=U;U=ZV.length;J=S.cellSize;g.beginPath();for(u=0;u<U;u++)for(R=0;R<U;R++)ZV[u][R]&&g.rect(u*J,R*J,J,J);g.fillStyle=S.color;g.fill();break;case 1:ZV=U;U=ZV.length;J=S.cellSize;u=J*S.relativeCircleSize;g.fillStyle=S.color;g.beginPath();for(S=0;S<U;S++)for(R=0;R<U;R++)ZV[S][R]&&(g.beginPath(),g.ellipse((S+.5)*J,(R+.5)*J,u/2,u/2,0,0,2*Math.PI),
g.fill());g.fill();break;case 2:ZV=U;U=ZV.length;J=S.cellSize;g.fillStyle=S.color;S=[[1,1],[-1,1],[-1,-1],[1,-1]];g.beginPath();for(u=0;u<U;u++)for(R=0;R<U;R++)if(ZV[u][R])g.roundRect(u*J,R*J,J,J,J/2),u+1<U&&ZV[u+1][R]&&g.rect(u*J+J/2,R*J,J,J),R+1<U&&ZV[u][R+1]&&g.rect(u*J,R*J+J/2,J,J);else{I=u*J+J/2;tT=R*J+J/2;for(var ED=0;ED<4;ED++){var o$=_.F(S[ED]),jV=o$.next().value;o$=o$.next().value;u+jV>=0&&u+jV<U&&R+o$>=0&&R+o$<U&&ZV[u+jV][R]&&ZV[u][R+o$]&&ZV[u+jV][R+o$]&&(jV=ED*Math.PI/2,o$=J/2,g.moveTo(I+
o$*Math.cos(jV),tT+o$*Math.sin(jV)),g.arc(I,tT,J/2,jV,jV+Math.PI/2,!1),g.lineTo(I+o$*(Math.cos(jV)-Math.sin(jV)),tT+o$*(Math.cos(jV)+Math.sin(jV))),g.lineTo(I+o$*Math.cos(jV),tT+o$*Math.sin(jV)))}}g.fill()}c&&g.drawImage(c,(T-Q)*L/2,(T-Q)*L/2,Q*L,Q*L);g.restore();H.style.removeProperty("display")};
K.src=_.JA(N);_.n2(k)})};
_.q.hasCommunityPostRenderer=function(){var D,t,H,e;return!!((D=this.data)==null?0:(t=D.header)==null?0:(H=t.sharePanelHeaderRenderer)==null?0:(e=H.communityPost)==null?0:e.communityPostSectionRenderer)};
_.q.onTapClose=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.q.getScreenLayer=function(){return this.screenLayer};
_.q.logSharePanelPage=function(){if(!_.r("enable_share_panel_navigation_logging_fix_on_web")){var D;if((D=this.data)!=null&&D.trackingParams){D=this.data.trackingParams;var t=this.parentClickTrackingParams;t=t?_.Sa(t):void 0;var H=_.Pc();_.Li(H,21760,t,{layer:7,parentLayer:0});H.graftServerVe(D,void 0,7);_.b_().dispatch(_.hV({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
BS.prototype.onDataChanged=BS.prototype.onDataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],BS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],BS.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],BS.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],BS.prototype,"data",void 0);_.d([_.M({value:_.OT("SBOX_INAPPROPRIATE_CANCEL")}),_.x("design:type",String)],BS.prototype,"closeButtonAriaLabel",void 0);_.d([_.o5("yt-share-panel-header-renderer"),_.x("design:type",HTMLElement)],BS.prototype,"header",void 0);_.d([_.M({selector:yDe.parentClickTrackingParamsSelector}),_.x("design:type",String)],BS.prototype,"parentClickTrackingParams",void 0);_.d([_.M(),_.x("design:type",Object)],BS.prototype,"qrCodeEnabled",void 0);
_.d([_.o5("#scroller"),_.x("design:type",Object)],BS.prototype,"JSC$20106_scroller",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BS.prototype,"onDataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],BS);
_.p(BS,"ytd-unified-share-panel-renderer",function(){if(O3g!==void 0)return O3g;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return O3g=D},{mode:1});var z9F;var ze=function(){var D=_.X.apply(this,arguments)||this;D.modernModal=!0;return D};
_.P(ze,_.X);ze.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
ze.prototype.computeShouldHideOldButtons=function(){var D;return!((D=this.data)==null?0:D.button)};
_.ql.Object.defineProperties(ze.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var D,t;return(D=this.data)==null?void 0:(t=D.button)==null?void 0:t.buttonRenderer}}});
_.d([_.M(),_.x("design:type",Object)],ze.prototype,"data",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ze.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],ze.prototype,"ytEventForwardingBehavior",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ze.prototype,"modernModal",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],ze.prototype,"buttonRendererData",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],ze);
_.p(ze,"ytd-modal-with-title-and-button-renderer",function(){if(z9F!==void 0)return z9F;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return z9F=D},{mode:1});var Dng;var D3=function(){return _.X.apply(this,arguments)||this};
_.P(D3,_.X);D3.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("page-changed",this.page))};
D3.prototype.pageChangedForBinding=D3.prototype.pageChangedForBinding;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],D3.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],D3.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],D3.prototype,"page",void 0);_.d([_.Os("page"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],D3.prototype,"pageChangedForBinding",null);
_.d([_.Y({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],D3);
_.p(D3,"ytd-account-item-section-header-renderer",function(){if(Dng!==void 0)return Dng;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Dng=D},{mode:1});var t9F;var t0=function(){return _.X.apply(this,arguments)||this};
_.P(t0,_.X);t0.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"}}}};
t0.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],t0.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],t0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.T_),_.x("design:type",Object)],t0.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],t0.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!1}),_.x("design:type",Function)],t0.prototype,"onAccountItemTap",void 0);
_.d([_.Y({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],t0);
_.p(t0,"ytd-account-item-section-renderer",function(){if(t9F!==void 0)return t9F;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return t9F=D},{mode:1});var HFt;var e1v;var Hf=function(){return _.X.apply(this,arguments)||this};
_.P(Hf,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Hf.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Hf.prototype,"data",void 0);_.d([_.Y({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Hf);
_.p(Hf,"ytd-accounts-dialog-header-renderer",function(){if(e1v!==void 0)return e1v;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return e1v=D},{mode:1});var V9F;var eW=function(){return _.X.apply(this,arguments)||this};
_.P(eW,_.X);eW.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],eW.prototype,"data",void 0);_.d([_.Y({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],eW);
_.p(eW,"ytd-google-account-header-renderer",function(){if(V9F!==void 0)return V9F;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return V9F=D},{mode:1});var VX=function(){return _.X.apply(this,arguments)||this};
_.P(VX,_.X);VX.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"}}}};
VX.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("page-changed",this.page))};
VX.prototype.pageChangedForBinding=VX.prototype.pageChangedForBinding;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],VX.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],VX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],VX.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],VX.prototype,"page",void 0);
_.d([_.Os("page"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],VX.prototype,"pageChangedForBinding",null);_.d([_.Y({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],VX);
_.E_()(VX,"ytd-account-section-list-renderer",function(){if(HFt===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);HFt=D}D=HFt;return D},{allowedProps:["data"],
mode:1});var bFZ;var bl=function(){var D=_.X.apply(this,arguments)||this;D.enableHandlesAccountMenuSwitcher=_.r("enable_handles_account_menu_switcher");return D};
_.P(bl,_.X);bl.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
bl.prototype.dataChanged=bl.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],bl.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],bl.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.d([_.o5("#avatar"),_.x("design:type",Object)],bl.prototype,"avatar",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bl.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],bl);
_.E_()(bl,"ytd-active-account-header-renderer",function(){if(bFZ===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);bFZ=D}D=bFZ;return D},{allowedProps:["data"],
mode:1});var qoQ;var Fag;var qU=function(){return _.X.apply(this,arguments)||this};
_.P(qU,_.X);qU.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
qU.prototype.onBackTap=function(){_.Gf(this.hostElement,"yt-menu-back-tapped")};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],qU.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],qU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],qU.prototype,"data",void 0);_.d([_.Y({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],qU);
_.E_()(qU,"ytd-simple-menu-header-renderer",function(){if(Fag===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);Fag=D}D=Fag;return D},{allowedProps:["data"],
mode:2});var aJF;var Fm=function(){return _.X.apply(this,arguments)||this};
_.P(Fm,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Fm.prototype,"data",void 0);_.d([_.Y({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Fm);
_.p(Fm,"ytd-comment-video-thumbnail-header-renderer",function(){if(aJF!==void 0)return aJF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return aJF=D},{mode:1});var wWZ;var ao=function(){return _.X.apply(this,arguments)||this};
_.P(ao,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ao.prototype,"data",void 0);_.d([_.Y({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],ao);
_.p(ao,"ytd-abuse-type-selector-renderer",function(){if(wWZ!==void 0)return wWZ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return wWZ=D},{mode:1});var ZFe;var s9v=(0,_.fxF)(_.e1.reportChannelAbuse,{isVideoIdSelectedSelector:function(D,t){return t in D.selectedVideoIds},
additionalContextSelector:function(D){return D.additionalContext},
impersonatedChannelUrlSelector:function(D){return D.impersonatedChannelUrl},
reportChannelAbuseSelector:function(D){return D}});var wH=function(){return _.X.apply(this,arguments)||this};
_.P(wH,_.X);wH.prototype.attached=function(){var D=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){D.additionalContextInput.focusTextInput()})};
wH.prototype.handleAdditionalContextChanged=function(){var D=this;_.z1(this,"ytd-report-channel-additional-context-update",function(){D.ytdReduxBehavior.dispatch(_.hV({type:"ADDITIONAL_CONTEXT_UPDATED",payload:D.additionalContext}))},300)};
wH.prototype.updateAdditionalContextFromBinding=function(D){this.additionalContext=D.detail.value};
wH.prototype.handleAdditionalContextChanged=wH.prototype.handleAdditionalContextChanged;_.d([_.C(_.sx),_.x("design:type",Object)],wH.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",String)],wH.prototype,"additionalContext",void 0);_.d([_.M({selector:s9v.additionalContextSelector}),_.x("design:type",String)],wH.prototype,"additionalContextRedux",void 0);_.d([_.M(),_.x("design:type",Object)],wH.prototype,"data",void 0);
_.d([_.o5("yt-text-input-form-field-renderer"),_.x("design:type",Object)],wH.prototype,"additionalContextInput",void 0);_.d([_.Os("additionalContext"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wH.prototype,"handleAdditionalContextChanged",null);_.d([_.Y({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],wH);
_.p(wH,"ytd-report-channel-modal-additional-context-renderer",function(){if(ZFe!==void 0)return ZFe;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return ZFe=D},{mode:1});var h1Y;var Z3=function(){var D=_.X.apply(this,arguments)||this;D.nextButtonDisabled=null;D.submitEndpoint=null;D.navigationEndpoint=null;D.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return D};
_.P(Z3,_.X);_.q=Z3.prototype;_.q.computeNextButtonData=function(D,t,H){var e={};t&&(e.navigationEndpoint=t);H&&(e.serviceEndpoint=H);D&&D.buttonRenderer&&_.J$.extend(e,D.buttonRenderer);return e};
_.q.handleReportChannelModalDisableNextButtonAction=function(D){this.setNextButtonIsDisabled(D)};
_.q.handleReportFormEndpointUpdateAction=function(D){this.setNextButtonIsDisabled(!!D.disableSubmitButton);this.resetEndpointData();D.submitEndpoint?this.submitEndpoint=D.submitEndpoint:D.submitNavigationEndpoint&&(this.navigationEndpoint=D.submitNavigationEndpoint)};
_.q.handleSignalActionSubmitForm=function(){var D,t=Object.keys(((D=this.reportChannelAbuseForm)==null?void 0:D.selectedVideoIds)||{}),H;D=((H=this.reportChannelAbuseForm)==null?void 0:H.additionalContext)||"";var e;H=((e=this.reportChannelAbuseForm)==null?void 0:e.impersonatedChannelUrl)||"";var V;if((V=this.data)==null?0:V.submitEndpoint){t={impersonated_channel_url:H,text:D,video_ids:t};var b;_.qS().resolve(_.aA).resolveCommand((b=this.data)==null?void 0:b.submitEndpoint,{form:Object.assign({},
t,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.q.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.q.onYtServiceRequestError=function(D){this.setNextButtonIsDisabled(!1);_.y2(this.hostElement,D.detail.error.message)};
_.q.setNextButtonIsDisabled=function(D){this.set("data.nextButton.buttonRenderer.isDisabled",D)};
_.q.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
Z3.prototype.onYtServiceRequestError=Z3.prototype.onYtServiceRequestError;Z3.prototype.onYtServiceRequestCompleted=Z3.prototype.onYtServiceRequestCompleted;_.d([_.M(),_.x("design:type",Object)],Z3.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Z3.prototype,"nextButtonDisabled",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Z3.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Z3.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Z3.prototype,"submitEndpoint",void 0);_.d([_.M(),_.x("design:type",Object)],Z3.prototype,"navigationEndpoint",void 0);_.d([_.M({selector:s9v.reportChannelAbuseSelector}),_.x("design:type",Object)],Z3.prototype,"reportChannelAbuseForm",void 0);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Z3.prototype,"onYtServiceRequestCompleted",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Z3.prototype,"onYtServiceRequestError",null);_.d([_.Y({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],Z3);
_.p(Z3,"ytd-report-channel-modal-footer-renderer",function(){if(h1Y!==void 0)return h1Y;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return h1Y=D},{mode:1});var GSF;var su=function(){var D=_.X.apply(this,arguments)||this;D.boundOnTapDismissButton=function(){D.closePopup()};
return D};
_.P(su,_.X);su.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
su.prototype.handleDataChanged=function(){_.Dx(this.hostElement)};
su.prototype.closePopup=function(){_.ET(this.hostElement,"yt-close-popup-action")};
su.prototype.handleDataChanged=su.prototype.handleDataChanged;_.d([_.M(),_.x("design:type",Object)],su.prototype,"boundOnTapDismissButton",void 0);_.d([_.M(),_.x("design:type",Object)],su.prototype,"data",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],su.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],su.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],su.prototype,"handleDataChanged",null);_.d([_.Y({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],su);
_.p(su,"ytd-report-channel-modal-header-renderer",function(){if(GSF!==void 0)return GSF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return GSF=D},{mode:1});var EEt;var h0=function(){var D=_.X.apply(this,arguments)||this;D.autoValidate=!1;D.invalid=!1;D.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return D};
_.P(h0,_.X);_.q=h0.prototype;_.q.attached=function(){var D=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){D.channelUrlInput.focusTextInput()})};
_.q.disableNextButton=function(D){_.ET(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[D])};
_.q.handleImpersonatedChannelUrlChanged=function(){var D=this;this.disableNextButton(!0);this.invalid=!1;_.z1(this,"ytd-report-channel-impersonated-channel-update",function(){var t=D.impersonatedChannelUrl.trim();D.ytdReduxBehavior.dispatch(_.hV({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:t}));var H;((H=D.data)==null?0:H.submitEndpoint)&&t&&_.qS().resolve(_.aA).resolveCommand(D.data.submitEndpoint,{form:{impersonated_channel_url:t,element:D.hostElement}})},500)};
_.q.handleModifyReportFormCommand=function(D){this.invalid=this.get("modifyReportFormCommand.action",D)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.q.updateInvalidFromBinding=function(D){this.invalid=D.detail.value};
_.q.updateImpersonatedChannelUrlFromBinding=function(D){this.impersonatedChannelUrl=D.detail.value};
h0.prototype.handleImpersonatedChannelUrlChanged=h0.prototype.handleImpersonatedChannelUrlChanged;_.d([_.C(_.sx),_.x("design:type",Object)],h0.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],h0.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],h0.prototype,"autoValidate",void 0);_.d([_.M(),_.x("design:type",Object)],h0.prototype,"invalid",void 0);
_.d([_.M(),_.x("design:type",String)],h0.prototype,"impersonatedChannelUrl",void 0);_.d([_.M({selector:s9v.impersonatedChannelUrlSelector}),_.x("design:type",String)],h0.prototype,"impersonatedChannelUrlRedux",void 0);_.d([_.M(),_.x("design:type",Object)],h0.prototype,"data",void 0);_.d([_.o5("#text-input"),_.x("design:type",Object)],h0.prototype,"channelUrlInput",void 0);
_.d([_.Os("impersonatedChannelUrl"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],h0.prototype,"handleImpersonatedChannelUrlChanged",null);_.d([_.Y({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],h0);
_.p(h0,"ytd-report-channel-modal-impersonation-renderer",function(){if(EEt!==void 0)return EEt;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return EEt=D},{mode:1});var KaQ;var N9v;var GU=function(){return _.X.apply(this,arguments)||this};
_.P(GU,_.X);GU.prototype.onCheckboxToggled=function(D){var t,H,e=(H=_.O((t=this.data)==null?void 0:t.video,_.ZB))==null?void 0:H.videoId;e&&this.ytdReduxBehavior.dispatch(D.target.checked?_.hV({type:"VIDEO_SELECTED",payload:e}):_.hV({type:"VIDEO_UNSELECTED",payload:e}))};
GU.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.ql.Object.defineProperties(GU.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var D,t=(D=this.data)==null?void 0:D.video;if(!t)return{};var H;D=(H=_.O(t,_.ZB))==null?void 0:H.navigationEndpoint;if(!D)return t;_.O(D==null?void 0:D.commandMetadata,_.i1)&&(_.O(D.commandMetadata,_.i1).ignoreNavigation=!0);return t}}});
_.d([_.M({reflectToAttribute:!0,selector:s9v.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.x("design:type",Boolean)],GU.prototype,"checked",void 0);_.d([_.M(),_.x("design:type",Object)],GU.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],GU.prototype,"video",null);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],GU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],GU.prototype,"ytdReduxBehavior",void 0);_.d([_.Y({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],GU);
_.p(GU,"ytd-selectable-video-renderer",function(){if(N9v!==void 0)return N9v;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return N9v=D},{mode:1});var Eu=function(){var D=_.X.apply(this,arguments)||this;D.monitorScroll=!0;return D};
_.P(Eu,_.X);Eu.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Eu.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Eu.prototype,"data",void 0);_.d([_.Y({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Eu);
_.p(Eu,"ytd-selectable-video-list-renderer",function(){if(KaQ!==void 0)return KaQ;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return KaQ=D},{mode:1});var kSZ;_.AB("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var K6=function(){return _.X.apply(this,arguments)||this};
_.P(K6,_.X);K6.prototype.onChange=function(D){if(D=_.qy(D).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.r("kevlar_command_handler_migration_killswitch"))_.k0(this.hostElement,D,this.hostElement);else{D=_.F(D);for(var t=D.next();!t.done;t=D.next())this.ytComponentBehavior.resolveCommand(t.value)}};
K6.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
K6.prototype.updateDataToggledFromBinding=function(D){this.set("data.toggled",D.detail.value)};
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],K6.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],K6.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],K6.prototype,"data",void 0);_.d([_.M({computed:"isEnabled(data)"}),_.x("design:type",Boolean)],K6.prototype,"enabled",void 0);_.d([_.Y({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],K6);
_.p(K6,"ytd-toggle-item-renderer",function(){if(kSZ!==void 0)return kSZ;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return kSZ=D},{mode:1});var T9F;var cib;var j9v;var NU=function(){var D=_.X.apply(this,arguments)||this;D.setVisible=!1;D.boundOnSubmitButtonClick=function(){D.onSubmitButtonClick()};
D.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return D};
_.P(NU,_.X);NU.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}}}}}};
NU.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
NU.prototype.onSubmitButtonClick=function(){var D;((D=this.data)==null?0:D.submitEndpoint)&&!_.r("enable_ytc_refunds_submit_form_signal_action")&&_.NJ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
NU.prototype.handleSignalActionSubmitForm=function(){var D;((D=this.data)==null?0:D.submitEndpoint)&&_.NJ(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.ql.Object.defineProperties(NU.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.hiddenByDefault)&&!this.setVisible}}});
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],NU.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],NU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],NU.prototype,"setVisible",void 0);_.d([_.M(),_.x("design:type",Object)],NU.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],NU.prototype,"surveyFeedbackData",void 0);_.d([_.M(),_.x("design:type",Object)],NU.prototype,"boundOnSubmitButtonClick",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data","setVisible"),_.x("design:type",Object),_.x("design:paramtypes",[])],NU.prototype,"visibilityHidden",null);_.d([_.xL({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],NU);
_.p(NU,"yt-flow-footer-renderer",function(){if(j9v===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;cib===void 0&&(cib=document.createElement("template"));var e=cib;H.call(t,e.content.cloneNode(!0),D.content.firstChild);j9v=D}D=j9v;return D},{mode:2});var $nH=(0,_.fxF)(_.e1.ypc,{surveyFeedbackDataSelector:function(D){return D.surveyFeedbackData}});var k6=function(){return _.X.apply(this,arguments)||this};
_.P(k6,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],k6.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],k6.prototype,"data",void 0);_.d([_.M({selector:$nH.surveyFeedbackDataSelector}),_.x("design:type",Object)],k6.prototype,"surveyFeedbackData",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],k6);
_.p(k6,"ytd-flow-footer-renderer",function(){if(T9F!==void 0)return T9F;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return T9F=D},{mode:_.Kz("kevlar_poly_si_batch_j025")?1:2});var iFb;var riH;var TU=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return D};
_.P(TU,_.X);_.q=TU.prototype;_.q.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.gm("multiPageMenuSectionItems")}}};
_.q.handleHideEnclosingAction_=function(D){if(this.data&&this.data.items)for(var t=0;t<this.data.items.length;t++){var H=this.data.items[t].notificationRenderer;if(H&&H.notificationId==D.hideEnclosingAction.notificationId){this.splice("data.items",t,1);_.ET(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.q.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.T1(this.hostElement,"hidden",!0)};
_.q.updateMenu_=function(D){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&D&&!D.doNotRefreshInbox){D=this.data.continuations;for(var t=0;t<D.length;t++)if(D[t].invalidationContinuationData){var H=void 0;var e=(H=D[t].invalidationContinuationData)==null?void 0:H.continuation;break}D=_.J$.clone(this.data.continuationUpdateEndpoint||null);D.continuation=e;D.click_tracking_params=this.data.trackingParams;_.NJ(this.hostElement,[D])}};
_.q.onServiceRequestCompleted_=function(D,t){if(this.data&&(D=t.actions)){t=0;for(var H=D.length;t<H;t++){var e=_.O(D[t],_.$oQ);if(!e)break;if((e.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||e.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&e.continuationItems&&this.data.items){var V=this.data.items.length-1;this.data.items[V].continuationItemRenderer&&(e=["data.items",V,1].concat(e.continuationItems),this.splice.apply(this,e))}}}};
TU.prototype.onServiceRequestCompleted_=TU.prototype.onServiceRequestCompleted_;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],TU.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],TU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],TU.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],TU.prototype,"data",void 0);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],TU.prototype,"onServiceRequestCompleted_",null);_.d([_.xL({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],TU);
_.E_()(TU,"yt-multi-page-menu-section-renderer",function(){if(riH===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;iFb===void 0&&(iFb=document.createElement("template"));var e=iFb;H.call(t,e.content.cloneNode(!0),D.content.firstChild);riH=D}D=riH;return D},{allowedProps:["data"],
mode:2});var OFv;var UnF;var cf=function(){return _.X.apply(this,arguments)||this};
_.P(cf,_.X);cf.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.ql.Object.defineProperties(cf.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.progress)==null?0:this.data.progress*100}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],cf.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],cf.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],cf.prototype,"data",void 0);_.d([_.m("data.progress"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],cf.prototype,"showProgressBar",null);
_.d([_.m("data.progress"),_.x("design:type",Number),_.x("design:paramtypes",[])],cf.prototype,"progress",null);_.d([_.xL({is:"yt-flow-header-renderer",disableElementRegistration:!0})],cf);
_.p(cf,"yt-flow-header-renderer",function(){if(UnF===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;OFv===void 0&&(OFv=document.createElement("template"));var e=OFv;H.call(t,e.content.cloneNode(!0),D.content.firstChild);UnF=D}D=UnF;return D},{mode:2});var oEF;var PrF;var jW=function(){return _.X.apply(this,arguments)||this};
_.P(jW,_.X);jW.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],jW.prototype,"data",void 0);_.d([_.xL({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],jW);
_.p(jW,"yt-post-confirmation-flow-step-renderer",function(){if(PrF===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;oEF===void 0&&(oEF=document.createElement("template"));var e=oEF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);PrF=D}D=PrF;return D},{mode:2});var nEF;var CrH;var $6=function(){return _.X.apply(this,arguments)||this};
_.P($6,_.X);
$6.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"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$6.prototype,"data",void 0);_.d([_.xL({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],$6);
_.p($6,"yt-refund-confirmation-flow-step-renderer",function(){if(CrH===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;nEF===void 0&&(nEF=document.createElement("template"));var e=nEF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);CrH=D}D=CrH;return D},{mode:2});var mnF=_.l(function(D){var t=D.data;return _.G("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.G("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.G(_.bi,{data:function(){return{thumbnails:[{url:t().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.G("div",{class:"profileBadgeViewModelContent"},_.G("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return t().badgeDesc}),_.G(_.E,{cond:function(){return t().badgeSubtitle},
then:function(){return _.G("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return t().badgeSubtitle})}})))},"ui");
mnF.idomCompat=!0;var M9H=_.l(function(D){var t=D.data;return _.G("yt-comment-interaction-view-model",{el:_.FI(_.Yi(function(){return t().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.G("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return t().onTapA11yLabel},
"on:keydown":_.ruu(),tabindex:0},_.G("div",{class:"ytCommentInteractionViewModelHeader"},_.G("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return t().headerPrefix},' "',function(){return t().videoTitle}),_.G("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.G("div",{class:"ytCommentInteractionViewModelContent"},_.G("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return t().commentContent}),_.G("div",{class:"ytCommentInteractionViewModelChevron"},
_.G(_.bi,{data:function(){return{thumbnails:[{url:t().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"vi");
M9H.idomCompat=!0;var Soi=_.l(function(D){var t=D.data;return _.G("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.G(_.P5,{data:function(){return t().avatar}},{avatarViewModel:_.qi}),_.G("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return t().channelName}))},"wi");
Soi.idomCompat=!0;var gEF=_.l(function(D){var t=D.data;D={};return _.G("yt-profile-info-view-model",{class:_.jQ("ytProfileInfoViewModelHost",(D.ytProfileInfoViewModelWithVideoShelf=function(){return t().videosHorizontalShelf},D))},_.G(XWZ,{profileInfo:t}),_.G(_.P5,{data:function(){return t().videosHorizontalShelf}},{horizontalShelfViewModel:function(H){return _.G("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.G(_.hP,{data:H.data}))}}),_.G(_.E,{cond:function(){return t().comments},
then:function(){return _.G(fJb,{profileInfo:t})}}),_.G(_.E,{cond:function(){return t().sharedSubscriptionsTitle},
then:function(){return _.G(_.E,{cond:function(){return t().subscriptionsAccessButtonCommand},
then:function(){return _.G(LaY,{profileInfo:t})},
else:function(){return _.G(Ai4,{profileInfo:t})}})}}))},"xi");
gEF.idomCompat=!0;var fJb=_.l(function(D){var t=D.profileInfo;return _.G("div",{class:"ytProfileInfoViewModelActivity"},_.G("div",{class:"ytProfileInfoViewModelHeader"},_.G("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return t().commentsInteractionTitle})),_.G(_.P5,{data:function(){return t().comments}},{commentInteractionViewModel:function(H){return _.G("div",{class:"ytProfileInfoViewModelActivity"},_.G(M9H,{data:H.data}))}}))},"yi"),LaY=_.l(function(D){var t=D.profileInfo;
return _.G("div",{class:"ytProfileInfoViewModelSubSection"},_.G("div",{class:"ytProfileInfoViewModelSubHeader"},_.G(_.XW,{command:function(){return t().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.G("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return t().sharedSubscriptionsTitle}),_.G("div",null,_.G(_.P5,{data:function(){return t().subscriptionsAccessButton}},{buttonViewModel:_.JX})))),_.G(Jit,{sharedSubscriptions:function(){var H;
return((H=t().sharedSubscriptions)==null?void 0:H.slice(0,5))||[]}}))},"zi"),Ai4=_.l(function(D){var t=D.profileInfo;
return _.G("div",{class:"ytProfileInfoViewModelSubSection"},_.G("div",{class:"ytProfileInfoViewModelSubHeader"},_.G("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return t().sharedSubscriptionsTitle})),_.G(Jit,{sharedSubscriptions:function(){var H;
return((H=t().sharedSubscriptions)==null?void 0:H.slice(0,5))||[]}}))},"Ai"),Jit=_.l(function(D){return _.G("div",{class:"ytProfileInfoViewModelSubs"},_.G(_.P5,{data:D.sharedSubscriptions},{sharedSubscriptionViewModel:function(t){return _.G("div",{class:"ytProfileInfoViewModelSub"},_.G(Soi,{data:t.data}))}}))},"Bi"),XWZ=_.l(function(D){var t=D.profileInfo;
return _.G("div",{class:"ytProfileInfoViewModelActivity"},_.G(_.nY,{each:function(){return[t().profileBadgeInfoYtWide,t().profileBadgeInfoChannelWide].filter(function(H){return!!H})},
keyBy:"INDEX"},function(H){return _.G(_.FH,null,_.G("div",{class:"ytProfileInfoViewModelHeader"},_.G("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return H().profileSectionTitle}),_.G("div",{class:"ytProfileInfoViewModelSectionDesc"},_.G("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var e;
return(e=H().commentBadge)==null?void 0:e.commentDesc}),_.G(_.E,{cond:function(){var e;
return(e=H().commentBadge)==null?void 0:e.blackHeartDesc},
then:function(){return _.G("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.G("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.G(_.bi,{data:function(){var e;
return{thumbnails:[{url:(e=H().commentBadge)==null?void 0:e.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.G("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var e;return(e=H().commentBadge)==null?void 0:e.blackHeartDesc}))),_.G("div",{class:"ytProfileInfoViewModelBadge"},_.G(_.nY,{each:function(){return H().badges||[]}},function(e){return _.G(mnF,{data:e})})))}))},"Ci");var Yov=_.l(function(D){var t=D.data;var H=function(){return t().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.G("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.G(_.P5,{data:function(){return t().profileIdentityInfo}},{profileIdentityInfoViewModel:function(e){return _.G(_.xz4,{data:e.data,
hideDivider:H,isChannelInfoCard:H})},
profileInfoViewModel:gEF}),_.G(_.P5,{data:function(){return t().profileInfo}},{profileIdentityInfoViewModel:_.xz4,
profileInfoViewModel:gEF}))},"Di");
Yov.idomCompat=!0;_.hB(Yov,"yt-profile-card-view-model",{props:{data:_.ij}});var il=function(){var D=_.X.apply(this,arguments)||this;D.enableFocusFix=_.r("music_web_enable_focus_on_setting_menu_fix")&&_.lh("IS_MOBILE_WEB",!1);D.covered=!1;D.hideMenu=!1;D.isCommentNotificationOnProfileCard=!1;D.scrolledByTouch=!1;D.disableBackdropFilter=_.r("web_disable_backdrop_filter");D.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return D};
_.P(il,_.X);_.q=il.prototype;
_.q.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"}}}};
_.q.ready=function(){var D=this;this.JSC$20207_containerElement.addEventListener("scroll",function(){D.ytRendererBehavior.markDirty()})};
_.q.attributeChanged=function(D,t){D==="menu-style"&&_.ET(this.hostElement,"yt-multi-page-menu-closed-action",[t])};
_.q.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.iK(this,this.focusOnStampFinished))};
_.q.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.iK(this,this.focusOnStampFinished))};
_.q.reset=function(){this.closeJobId&&(_.Jy.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.q.focusOnStampFinished=function(D){D.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.iK(this,this.focusOnStampFinished)),this.doFocus())};
_.q.doFocus=function(){var D=_.Os3(this.sectionsElement);D.length&&D[0].focus()};
_.q.computeMenuStyle=function(D){return D?D.toLowerCase().replace(/_/g,"-"):""};
_.q.computeIsCommentNotificationOnProfileCard=function(D){return _.r("enable_profile_cards_on_comments")&&D.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.q.computeHideMenu=function(D,t){return D||!(!t||!t.showLoadingSpinner)};
_.q.onPopupClosed=function(){this.isPopUpOpen=!1;_.ET(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.q.onPopupOpened=function(D,t){this.isPopUpOpen=!0;t.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Gf(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.hV({type:"CHANNEL_REPORT_RESET"})))};
_.q.onYtNavigate=function(D,t){this.shouldCloseOnNavigateEvent(t.endpoint)&&_.ET(this.hostElement,"yt-close-all-popups-action")};
_.q.handleEndpoint=function(D){D=_.O(D,_.VQ);!this.isCommentNotificationOnProfileCard&&D&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20207_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.q.handleActions=function(D){for(var t=0,H=D.length;t<H;t++){var e=_.O(D[t],hv4);e&&this.handleGetMultiPageMenuAction(e);(e=_.O(D[t],_.$oQ))&&this.handleAppendContinuationItemsAction(e)}};
_.q.onServiceRequestSentOrCompleted=function(D,t){D.detail&&D.detail.endpoint&&this.handleEndpoint(D.detail.endpoint);t.actions&&this.handleActions(t.actions)};
_.q.handleGetMultiPageMenuAction=function(D){var t=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Kg(this.submenuElement).appendChild(t);(D=D.menu.multiPageMenuRenderer)&&this.logSubmenu(D);t.data=D;t.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.q.handleAppendContinuationItemsAction=function(D){if(this.data&&D.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&D.continuationItems&&this.data.sections){var t=this.data.sections.length-1;this.data.sections[t].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),t--);if(this.data.sections[t].multiPageMenuNotificationSectionRenderer&&D.continuationItems){D=_.F(D==null?void 0:D.continuationItems);for(var H=D.next();!H.done;H=D.next())if(H=H.value,_.O(H,YdF)){var e=
void 0,V=void 0,b=void 0,a=void 0,w=void 0;((e=this)==null?0:(V=e.data)==null?0:(b=V.sections)==null?0:(a=b[t])==null?0:(w=a.multiPageMenuNotificationSectionRenderer)==null?0:w.items)&&this.push("data.sections."+t+".multiPageMenuNotificationSectionRenderer.items",H)}else if(_.O(H,_.sJ6)||_.O(H,_.HX))this.push("data.sections",H),t++}}};
_.q.logSubmenu=function(D){if(!_.r("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var t=this.ytRendererBehavior.getScreenLayer(),H=_.v3(t),e=_.lo(t);if((D=D.trackingParams)&&H&&e){var V=_.Sa(D);_.r("combine_ve_grafts")?_.Pc().graftServerVe(D,e,t):_.Q$(H,e,V)}}};
_.q.emptySubmenuContainer=function(){for(var D=_.Kg(this.submenuElement);D.firstChild;)D.removeChild(D.firstChild)};
_.q.onMenuBackTap=function(D){_.Gf(this.hostElement,"yt-submenu-closed");D.stopPropagation()};
_.q.onSubmenuClosed=function(D){_.qy(D)!==this.hostElement&&(this.covered=!1,_.Gf(this.hostElement,"yt-refit"),D.stopPropagation())};
_.q.onRetrieveLocation=function(D,t){t.hasComments&&(t.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),D.stopPropagation())};
_.q.shouldCloseOnNavigateEvent=function(D){if(!D)return!0;if(_.O(D,_.gq9)||_.O(D,_.JzB)||_.O(D,_.Azn)||_.O(D,_.um))return!1;var t;return((t=_.O(D==null?void 0:D.commandMetadata,_.i1))==null?0:t.ignoreNavigation)?!1:!0};
_.q.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.q.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.q.refitAfterRender=function(){var D=this;_.Vi(this,function(){_.Gf(D.hostElement,"yt-refit")})};
il.prototype.refitAfterRender=il.prototype.refitAfterRender;il.prototype.onRetrieveLocation=il.prototype.onRetrieveLocation;il.prototype.onSubmenuClosed=il.prototype.onSubmenuClosed;il.prototype.onMenuBackTap=il.prototype.onMenuBackTap;il.prototype.onServiceRequestSentOrCompleted=il.prototype.onServiceRequestSentOrCompleted;il.prototype.onYtNavigate=il.prototype.onYtNavigate;il.prototype.onPopupOpened=il.prototype.onPopupOpened;il.prototype.onPopupClosed=il.prototype.onPopupClosed;
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],il.prototype,"ytEventForwardingBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],il.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],il.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],il.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],il.prototype,"enableFocusFix",void 0);_.d([_.M(),_.x("design:type",Object)],il.prototype,"covered",void 0);_.d([_.M({computed:"computeHideMenu(covered, data)"}),_.x("design:type",Object)],il.prototype,"hideMenu",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.x("design:type",String)],il.prototype,"menuStyle",void 0);
_.d([_.M({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.x("design:type",Object)],il.prototype,"isCommentNotificationOnProfileCard",void 0);_.d([_.M(),_.x("design:type",Boolean)],il.prototype,"isPopUpOpen",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],il.prototype,"scrolledByTouch",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],il.prototype,"disableBackdropFilter",void 0);
_.d([_.o5("#sections"),_.x("design:type",HTMLElement)],il.prototype,"sectionsElement",void 0);_.d([_.o5("#spinner"),_.x("design:type",HTMLElement)],il.prototype,"spinnerElement",void 0);_.d([_.o5("#header"),_.x("design:type",HTMLElement)],il.prototype,"headerElement",void 0);_.d([_.o5("#container"),_.x("design:type",HTMLElement)],il.prototype,"JSC$20207_containerElement",void 0);_.d([_.o5("#submenu"),_.x("design:type",HTMLElement)],il.prototype,"submenuElement",void 0);
_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],il.prototype,"onPopupClosed",null);_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],il.prototype,"onPopupOpened",null);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],il.prototype,"onYtNavigate",null);
_.d([_.rx("yt-service-request-completed"),_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],il.prototype,"onServiceRequestSentOrCompleted",null);_.d([_.rx("yt-menu-back-tapped"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],il.prototype,"onMenuBackTap",null);
_.d([_.rx("yt-submenu-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],il.prototype,"onSubmenuClosed",null);_.d([_.rx("yt-retrieve-location"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],il.prototype,"onRetrieveLocation",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],il.prototype,"refitAfterRender",null);
_.d([_.Y({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],il);
_.p(il,"ytd-multi-page-menu-renderer",function(){if(qoQ!==void 0)return qoQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return qoQ=D},{mode:1});var lJQ;var rH=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return D};
_.P(rH,_.X);_.q=rH.prototype;_.q.created=function(){this.showTooltips=!0};
_.q.computeAccessibility_=function(D){return this.get("accessibility.accessibilityData",D)||null};
_.q.onTap=function(){var D=_.Kl(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(D&&D.length===1&&D[0])_.ET(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var t;if((t=this.data)==null?0:t.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var H;((H=this.data)==null?0:H.menuRequest)&&_.NJ(this.hostElement,[this.data.menuRequest])}}};
_.q.handleTopbarMenuClosedAction=function(D){var t,H;(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(D)===((t=this.data)==null?void 0:(H=t.icon)==null?void 0:H.iconType)&&this.toggleIconState(!1)};
_.q.toggleIconState=function(D){_.r("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=D)};
_.q.handleUpdateTopbarAvatarAction=function(D){var t;D=(t=_.O(D,bci))==null?void 0:t.avatarUrl;var H,e;t=(H=this.data)==null?void 0:(e=H.avatar)==null?void 0:e.thumbnails;D&&t&&(H={thumbnails:[Object.assign({},t[0],{url:D})]},this.set("data.avatar",H))};
_.ql.Object.defineProperties(rH.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Kg(this.hostElement).querySelector("#button")}}});
rH.prototype.onTap=rH.prototype.onTap;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],rH.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],rH.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],rH.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(_.cg6.YtButtonBehavior),_.x("design:type",Object)],rH.prototype,"ytButtonBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],rH.prototype,"data",void 0);
_.d([_.o5("yt-icon-button#button"),_.x("design:type",Object)],rH.prototype,"iconButton",void 0);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rH.prototype,"onTap",null);_.d([_.Y({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],rH);
_.E_()(rH,"ytd-topbar-menu-button-renderer",function(){if(lJQ===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);lJQ=D}D=lJQ;return D},{allowedProps:["data"],
mode:1});var vEF;var Ou=function(){return _.X.apply(this,arguments)||this};
_.P(Ou,_.X);Ou.prototype.getSelected=function(){return this.reasons.selected};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ou.prototype,"data",void 0);_.d([_.o5("#reasons"),_.x("design:type",Object)],Ou.prototype,"reasons",void 0);_.d([_.Y({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],Ou);
_.p(Ou,"ytd-ad-feedback-content",function(){if(vEF!==void 0)return vEF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return vEF=D},{mode:1});var pWg;var Uu=function(){return _.X.apply(this,arguments)||this};
_.P(Uu,_.X);_.q=Uu.prototype;_.q.onPopupOpened=function(){_.ET(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.q.computeConfirmButton=function(D){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:D.confirmLabel}};
_.q.computeCancelButton=function(D){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:D.cancelLabel}};
_.q.onConfirmTap=function(){var D=this.content.getSelected();D!==void 0&&(D=this.data.reasons[D].endpoint)&&(_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}}),_.ET(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.q.sendFeedbackSubmitToastAction=function(){var D;(D=this.data)!=null&&D.completionMessage&&_.ET(this.hostElement,"yt-open-popup-action",[_.FO(this.data.completionMessage),this])};
_.q.onCancelTap=function(){_.ET(this.hostElement,"yt-close-popup-action")};
Uu.prototype.onPopupOpened=Uu.prototype.onPopupOpened;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Uu.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Uu.prototype,"data",void 0);_.d([_.o5("#content"),_.x("design:type",Object)],Uu.prototype,"content",void 0);_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Uu.prototype,"onPopupOpened",null);
_.d([_.Y({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Uu);
_.p(Uu,"ytd-ad-feedback-renderer",function(){if(pWg!==void 0)return pWg;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return pWg=D},{mode:1});var dni;var oo=function(){return _.X.apply(this,arguments)||this};
_.P(oo,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],oo.prototype,"data",void 0);_.d([_.Y({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],oo);
_.p(oo,"ytd-ad-info-dialog-content",function(){if(dni!==void 0)return dni;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return dni=D},{mode:1});var xnZ;var Pf=function(){return _.X.apply(this,arguments)||this};
_.P(Pf,_.X);Pf.prototype.computeConfirmButton=function(D){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:D.confirmLabel}};
Pf.prototype.onConfirmTap=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
Pf.prototype.computeShouldShowTitle=function(){var D;return!((D=this.data)==null||!D.title)};
Pf.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.qS().resolve(_.aA).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
Pf.prototype.onPopupClosed=Pf.prototype.onPopupClosed;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Pf.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Pf.prototype,"data",void 0);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Pf.prototype,"onPopupClosed",null);_.d([_.Y({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],Pf);
_.p(Pf,"ytd-ad-info-dialog-renderer",function(){if(xnZ!==void 0)return xnZ;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return xnZ=D},{mode:1});var R1t;var n6=function(){var D=_.X.apply(this,arguments)||this;D.actionButtonClass="action-button";D.dismissButtonId="dismiss-button";D.dialogDismiss=!0;return D};
_.P(n6,_.X);_.q=n6.prototype;_.q.computeInPlayer=function(D){return(D==null?void 0:D.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.q.computedLogo=function(){var D,t;return this.isDarkTheme()?(D=this.data)==null?void 0:D.logoDark:(t=this.data)==null?void 0:t.logo};
_.q.computedHeaderImage=function(){var D,t;return this.isDarkTheme()?(D=this.data)==null?void 0:D.headerImageDark:(t=this.data)==null?void 0:t.headerImage};
_.q.computeLogoIconId=function(){var D,t,H,e=(D=this.computedLogo())==null?void 0:(t=D.sources)==null?void 0:(H=t[0])==null?void 0:H.height;return e&&e%31===0?"logo-icon-with-padding":"logo-icon"};
_.q.computeLogoIconHeight=function(){var D,t,H,e=(D=this.computedLogo())==null?void 0:(t=D.sources)==null?void 0:(H=t[0])==null?void 0:H.height;return e&&e%31===0?"31":"24"};
_.q.onPopupClosed=function(){_.qS().resolve(_.dy).dispose()};
_.q.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.q.onShow=function(){this.inPlayer&&_.rn(6);this.titleElement.focus()};
_.q.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var D=0;D<this.data.impressionEndpoints.length;D++){var t=_.O(this.data.impressionEndpoints[D],_.dj);t&&this.ytComponentBehavior.resolveCommand(t)}};
_.q.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.ET(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.ql.Object.defineProperties(n6.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var D,t;return!((D=this.data)==null||!D.headerImageDark)&&!((t=this.data)==null||!t.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.secondaryButton)}}});
n6.prototype.onPopupClosed=n6.prototype.onPopupClosed;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],n6.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.k7.YtVisibilityBehavior),_.x("design:type",Object)],n6.prototype,"ytVisibilityBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],n6.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],n6.prototype,"actionButtonClass",void 0);_.d([_.M(),_.x("design:type",Object)],n6.prototype,"dismissButtonId",void 0);_.d([_.M(),_.x("design:type",Object)],n6.prototype,"dialogDismiss",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],n6.prototype,"hasHeaderImage",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],n6.prototype,"hasPremiumButton",null);
_.d([_.M({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.x("design:type",Boolean)],n6.prototype,"inPlayer",void 0);_.d([_.o5("#dismiss-button"),_.x("design:type",HTMLElement)],n6.prototype,"dismissButton",void 0);_.d([_.o5("#title"),_.x("design:type",HTMLElement)],n6.prototype,"titleElement",void 0);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],n6.prototype,"onPopupClosed",null);
_.d([_.Y({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],n6);
_.p(n6,"ytd-enforcement-message-view-model",function(){if(R1t!==void 0)return R1t;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="fc-dialog-container style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" tabindex="0" role="heading" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return R1t=D},{mode:1});var u$4;var WaF;var C6=function(){var D=_.X.apply(this,arguments)||this;D.TEST_ONLY={immediateValidation:function(){D.immediateValidation()},
onValidationResponse:function(t){D.onValidationResponse(t)},
onGenerateHandleFromNameResponse:function(t){D.onGenerateHandleFromNameResponse(t)}};
return D};
_.P(C6,_.X);_.q=C6.prototype;_.q.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.q.validate=function(){this.immediateValidation()};
_.q.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.q.setHandleInputValue=function(D){this.handleDir=this.getHandleDir(D);this.handleInput.value=D;this.validationState={status:"PENDING"};this.immediateValidation()};
_.q.getHandleDir=function(D){var t=D===""&&!1;return(t=_.wF9.test.call(_.wF9,D))?"rtl":"ltr"};
_.q.onDataChanged=function(){var D,t;this.handleDir=this.getHandleDir((t=(D=this.data)==null?void 0:D.handle)!=null?t:"");var H;this.validationState=((H=this.data)==null?0:H.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var e;((e=this.data)==null?0:e.validateOnInit)&&this.immediateValidation()};
_.q.stopPropagation=function(D){D.stopPropagation()};
_.q.onInput=function(){var D;this.handleDir=this.getHandleDir((D=this.handleInput.value)!=null?D:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.q.onFocusout=function(D){this.handleInput.contains(D.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.q.delayedValidation=function(){var D,t;this.debouncedValidation((t=(D=this.data)==null?void 0:D.validationDelayMs)!=null?t:1E3)};
_.q.immediateValidation=function(){this.debouncedValidation(0)};
_.q.debouncedValidation=function(D){var t=this;_.z1(this,"debouncedValidation",function(){var H,e=t.staticValidation((H=t.handleInput.value)!=null?H:"");if(e!==void 0)t.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:e};else{var V;if((V=t.data)!=null&&V.validateChannelHandleCommand){t.validationState={status:"LOADING"};var b;t.ytComponentBehavior.resolveCommand(t.data.validateChannelHandleCommand,{form:{handle:(b=t.handleInput.value)!=null?b:""},commandController:{onSuccess:function(a,
w){t.onValidationResponse(w)},
onServerError:function(a,w){t.onValidationServerError(w)}}})}else t.handleUnexpectedValidationError(new _.nZ("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",t.data))}},D)};
_.q.staticValidation=function(D){var t;if(((t=this.data)==null?void 0:t.channelHandleStaticValidationParams)!==void 0){t=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(D)&&t.validValueRegexpErrorMessage!==void 0)return t.validValueRegexpErrorMessage;if(t.minLength!==void 0&&D.length<t.minLength&&t.minLengthErrorMessage!==void 0)return t.minLengthErrorMessage;if(t.maxLength!==void 0&&D.length>t.maxLength&&t.maxLengthErrorMessage!==void 0)return t.maxLengthErrorMessage}};
_.q.onValidationResponse=function(D){var t=_.O(D.result,qdv);t===void 0?this.handleUnexpectedValidationError(new _.nZ("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",D)):this.handleValidationResultRenderer(t)};
_.q.onValidationServerError=function(D){this.handleUnexpectedValidationError(new _.nZ("ValidateChannelHandle request failed.",D))};
_.q.handleValidationResultRenderer=function(D){if(D.handle===void 0)this.handleUnexpectedValidationError(new _.nZ("ChannelHandleValidationResultRenderer does not contain handle.",D));else if(D.handle===this.handleInput.value)switch(D.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:D.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:D.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.nZ("Unrecognized ChannelHandleValidationResult",D));break;default:_.xv(D.result)}};
_.q.handleUnexpectedValidationError=function(D){var t;this.validationState={status:"UNKNOWN",handle:(t=this.handleInput.value)!=null?t:""};_.Yw(D)};
_.q.stopEventPropagation=function(D){D.stopPropagation()};
_.q.updateHandleOnChannelNameInputChange=function(D){if(!this.wasEdited){var t,H;this.debouncedGenerateHandleFromName(D,(H=(t=this.data)==null?void 0:t.validationDelayMs)!=null?H:1E3)}};
_.q.debouncedGenerateHandleFromName=function(D,t){var H=this;_.z1(this,"debouncedGenerateHandleFromName",function(){var e;(e=H.data)!=null&&e.validateChannelHandleCommand?H.ytComponentBehavior.resolveCommand(H.data.validateChannelHandleCommand,{form:{name:D},commandController:{onSuccess:function(V,b){H.onGenerateHandleFromNameResponse(b)},
onServerError:function(V,b){_.Yw(new _.nZ("Error calling GenerateHandleFromName",b))}}}):_.Yw(new _.nZ("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",H.data))},t)};
_.q.onGenerateHandleFromNameResponse=function(D){this.wasEdited||((D=_.O(D.result,F2t))?this.setHandleInputValue(D.handle):_.Yw(new _.nZ("Invalid results when generate handle from name")))};
_.ql.Object.defineProperties(C6.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var D;if(D=this.validationState)D=this.validationState,D=D.status==="OK"||D.status==="UNKNOWN";if(D)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var D;if(((D=this.validationState)==null?void 0:D.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 D,t=(D=this.channelHandleEntity)==null?void 0:D.handleEdit;this.handleDir=this.getHandleDir(t!=null?t:"");return t}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var D,t;if(((D=this.data)==null?void 0:(t=D.channelHandleStaticValidationParams)==null?void 0:t.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
C6.prototype.stopEventPropagation=C6.prototype.stopEventPropagation;C6.prototype.onDataChanged=C6.prototype.onDataChanged;C6.prototype.applyHandleEdit=C6.prototype.applyHandleEdit;C6.prototype.onValueChanged=C6.prototype.onValueChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],C6.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],C6.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],C6.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Boolean)],C6.prototype,"wasEdited",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],C6.prototype,"handleDir",void 0);_.d([_.o5("#handle-input"),_.x("design:type",Object)],C6.prototype,"handleInput",void 0);_.d([_.M(),_.m("validationState"),_.x("design:type",Object),_.x("design:paramtypes",[])],C6.prototype,"value",null);
_.d([_.Os("value"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C6.prototype,"onValueChanged",null);_.d([_.m("validationState"),_.x("design:type",Object),_.x("design:paramtypes",[])],C6.prototype,"errorIndicator",null);_.d([_.M({reflectToAttribute:!0}),_.m("errorIndicator"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],C6.prototype,"borderErrorIndicator",null);
_.d([_.M({selectorArgs:["data.channelHandleEntityKey"],selector:function(D,t){return _.jR(D.entities,"channelHandle",t)}}),
_.x("design:type",Object)],C6.prototype,"channelHandleEntity",void 0);_.d([_.m("channelHandleEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],C6.prototype,"handleEdit",null);_.d([_.Os("handleEdit"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C6.prototype,"applyHandleEdit",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],C6.prototype,"onDataChanged",null);
_.d([_.m("data.channelHandleStaticValidationParams.validValueRegexp"),_.x("design:type",Object),_.x("design:paramtypes",[])],C6.prototype,"validValueRegexp",null);_.d([_.rx("yt-service-request-sent"),_.rx("yt-service-request-completed"),_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],C6.prototype,"stopEventPropagation",null);_.d([_.Y({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],C6);
_.p(C6,"ytd-channel-handle-input-renderer",function(){if(WaF!==void 0)return WaF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return WaF=D},{mode:_.Kz("kevlar_poly_si_batch_j025")?1:2});var Xm=function(){var D=_.X.apply(this,arguments)||this;D.data=null;D.errorMessage=null;D.isLoading=!0;D.hideContainer=!1;D.enableNewChannelCreationOnIdForAll=_.r("enable_new_channel_creation_for_id4all");D.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"};D.testOnly={setErrorMessage:function(t){D.resetErrorState();
D.setErrorState(t)}};
return D};
_.P(Xm,_.X);_.q=Xm.prototype;_.q.created=function(){this.logScreenVe()};
_.q.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")};
_.q.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var D;((D=this.zeroStepErrorMessageEntity)==null?0:D.value)&&this.set("errorMessage",_.H7(this.zeroStepErrorMessageEntity.value))};
_.q.onCreateTap=function(){var D=this;if(this.data&&this.data.channelCreationEndpoint){var t,H;if(!((t=this.data.createChannelButton)==null?0:(H=t.buttonRenderer)==null?0:H.isDisabled)){var e;if((e=this.nameInput)!=null&&e.value){this.setLoadingState();var V,b;t=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(V=this.handleInput)==null?void 0:V.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((b=this.handleInput)==null?void 0:b.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:t,commandController:{onSuccess:function(a,w){D.onChannelCreationEndpointSuccess(w);D.obakeImageSource&&_.L7("channelCreatedWithObakeImage",{imageSourceType:D.obakeImageSource})},
onServerError:function(){D.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.q.endpointRequiresServiceRequestAction=function(D){return!!_.O(D,_.Sw)||!!_.O(D,bci)};
_.q.isNavigateAction=function(D){var t;return!!_.O(D,_.mA)||!!_.O((t=_.O(D,Zc4))==null?void 0:t.command,_.mA)};
_.q.isPlaylistAction=function(D){return!!_.O(D,_.b2)||!!_.O(D,_.sz)};
_.q.onChannelCreationEndpointSuccess=function(D){if(D.createChannelError){var t;this.setErrorState((t=D.createChannelError)==null?void 0:t.errorMessage);this.handleInput&&this.handleInput.validate()}else{D.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(D.navigationEndpoint);if(D.actions){t=_.F(D.actions);for(var H=t.next();!H.done;H=t.next())if(H=H.value,this.endpointRequiresServiceRequestAction(H)&&this.ytComponentBehavior.resolveCommand(H),this.isNavigateAction(H)){var e=void 0;H=_.O((e=
_.O(H,Zc4))==null?void 0:e.command,_.mA);e=void 0;this.isPlaylistAction((e=H)==null?void 0:e.endpoint)&&(_.ET(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),e=void 0,this.ytComponentBehavior.resolveCommand((e=H)==null?void 0:e.endpoint))}}D.actions&&D.actions.some(function(V){var b;return _.O(V,_.mA)||_.O((b=_.O(V,Zc4))==null?void 0:b.command,_.mA)})||_.ET(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.q.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.q.onCancelTap=function(){var D,t,H;if(!((D=this.data)==null?0:(t=D.cancelButton)==null?0:(H=t.buttonRenderer)==null?0:H.isDisabled)){var e,V,b;D=(e=this.data)==null?void 0:(V=e.cancelButton)==null?void 0:(b=V.buttonRenderer)==null?void 0:b.command;if(!D||!_.O(D,_.G8X)){var a;this.nameInput&&((a=this.data)==null?0:a.name)&&(this.nameInput.value=this.data.name);var w;this.handleInput&&((w=this.data)==null?0:w.channelHandleInput)&&(this.handleInput.data=_.O(this.data.channelHandleInput,aMb));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.q.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.q.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.q.onClearProfilePhotoTap=function(){var D,t,H;((D=this.data)==null?0:(t=D.clearProfilePhotoButton)==null?0:(H=t.buttonRenderer)==null?0:H.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.q.onEditAvatarTap=function(){var D,t,H;((D=this.data)==null?0:(t=D.editAvatarButton)==null?0:(H=t.buttonRenderer)==null?0:H.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.q.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)};
_.q.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var D;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((D=this.data)==null?0:D.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.q.setErrorState=function(D){this.resetErrorState();if(D)this.set("errorMessage",D);else{var t;if((t=this.zeroStepErrorMessageEntity)==null?0:t.value)this.set("errorMessage",_.H7(this.zeroStepErrorMessageEntity.value));else{var H;((H=this.data)==null?0:H.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.q.fetchImageBlobWithAlr=function(D,t){t=t===void 0?5:t;var H=this,e,V,b,a,w;return _.Z(function(h){switch(h.nextAddress){case 1:return h.yield(fetch(D,{method:"GET",mode:"cors"}),2);case 2:e=h.yieldResult;if(e.ok){h.jumpTo(3);break}if(t===0)throw Error();V=H.addJitter(Math.pow(2,5-t));return h.yield(new Promise(function(K){setTimeout(K,V*1E3)}),4);
case 4:return h.return(H.fetchImageBlobWithAlr(D,t-1));case 3:if(!e.headers.get("content-type").split(";").some(function(K){return K.trim()==="text/plain"})){h.jumpTo(5);
break}b=H;a=b.fetchImageBlobWithAlr;return h.yield(e.text(),6);case 6:return h.return(a.call(b,h.yieldResult,t-1));case 5:return h.yield(e.blob(),7);case 7:return w=h.yieldResult,h.return(w)}})};
_.q.addJitter=function(D){var t=D*.3*Math.random();Math.random()>.5&&(t*=-1);return D+t};
_.q.openProfilePicturePicker=function(){var D=this,t,H,e,V,b,a;return _.Z(function(w){if(w.nextAddress==1){t=D.data.scottyUploadUrl;if(!t)return w.return();H=document.documentElement.hasAttribute("dark");e=document.body.style.colorScheme;H&&(document.body.style.colorScheme="dark");V=Gdt(EZZ(hje(bUb(H?"dark":"light")),function(h){var K,N,k,T,c;return _.Z(function(U){if(U.nextAddress==1)return K=_.VK(mLQ(new ru(h.photoUrl,!1)).build(),"alr","yes"),D.obakeImageSource=D.pictureChangeSourceToObakeImageSourceType(h.photoSource),
_.$p(U,2),D.setLoadingState(),U.yield(D.fetchImageBlobWithAlr(K),4);if(U.nextAddress!=2)return N=U.yieldResult,k=new FileReader,k.addEventListener("load",function(){var S,L,J,g,Q,u;return _.Z(function(R){if(R.nextAddress==1){if(N.size>15728640)return D.setErrorState((S=D.data)==null?void 0:S.imageSizeErrorMessage),_.Yw(Error("Al")),R.return();if(!k.result)return D.setErrorState((L=D.data)==null?void 0:L.genericImageLoadErrorMessage),_.Yw(Error("Bl")),R.return();J=k.result;_.$p(R,2);return R.yield(WMt(N,
t),4)}if(R.nextAddress!=2)return g=R.yieldResult,D.handleImageUpdatedAction(J,g),D.resetErrorState(),_.yM(R,0);Q=_.Pv(R);D.setErrorState((u=D.data)==null?void 0:u.uploadErrorMessage);if(Q instanceof Error)_.gT(Q);else{var I=new _.nZ(JSON.stringify(Q));_.gT(I)}_.n2(R)})}),k.readAsDataURL(N),_.yM(U,0);
T=_.Pv(U);D.setErrorState((c=D.data)==null?void 0:c.genericImageLoadErrorMessage);T instanceof Error?_.gT(T):_.Jp(new _.nZ(JSON.stringify(T)));_.n2(U)})}),function(){D.hideContainer=!1;
document.body.style.colorScheme=e});
_.$p(w,2);return((b=D.data)==null?0:b.shouldViewChannelCreationFormForSupex)?w.yield(V.openPicker("profile-picture/art-selection"),5):w.yield(V.openPicker(),5)}if(w.nextAddress!=2)return _.yM(w,0);_.Pv(w);D.setErrorState((a=D.data)==null?void 0:a.selectImageErrorMessage);_.n2(w)})};
_.q.pictureChangeSourceToObakeImageSourceType=function(D){switch(D){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.q.logScreenVe=function(){_.Li(_.Pc(),124448)};
_.q.graftServerVe=function(){var D=_.lo(),t,H,e=(t=this.data)==null?void 0:(H=t.loggingDirectives)==null?void 0:H.trackingParams;e&&D&&(this.channelCreationFormVe=_.Pc().graftServerVe(e,D),D={visualElement:this.channelCreationFormVe},_.U_().reportShown(D))};
_.q.isNameChanged=function(D){var t;return((t=this.data)==null?void 0:t.name)!==D};
_.q.isHandleChanged=function(D){var t,H=_.O((t=this.data)==null?void 0:t.channelHandleInput,aMb);return H&&D?H.handle!==D:!1};
_.q.handleImageUpdatedAction=function(D,t){this.hideContainer=!1;this.previewDataUrl=D;this.encryptedBlobId=t};
_.q.handleImageSelectionErrorAction=function(D){this.hideContainer=!1;this.setErrorState(D)};
_.q.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.q.showContainer=function(){this.hideContainer=!1};
_.q.maybeWipeZeroStepErrorMessage=function(){var D,t=(D=this.data)==null?void 0:D.zeroStepErrorMessageEntityKey,H;t&&((H=this.zeroStepErrorMessageEntity)==null?0:H.value)&&this.ytdReduxBehavior.dispatch(_.nf("stringEntity",t,{key:t,value:""}))};
_.ql.Object.defineProperties(Xm.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 D;return((D=this.photoThumbnail)==null?0:D.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 D;return!((D=this.data)==null||!D.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.descriptionInfo}}});
Xm.prototype.dataChanged=Xm.prototype.dataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Xm.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Xm.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Xm.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Xm.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Xm.prototype,"errorMessage",void 0);
_.d([_.M(),_.x("design:type",Object)],Xm.prototype,"isLoading",void 0);_.d([_.M(),_.x("design:type",String)],Xm.prototype,"previewDataUrl",void 0);_.d([_.M(),_.x("design:type",Number)],Xm.prototype,"obakeImageSource",void 0);_.d([_.M(),_.x("design:type",Object)],Xm.prototype,"hideContainer",void 0);_.d([_.o5("#title-input"),_.x("design:type",Object)],Xm.prototype,"nameInput",void 0);_.d([_.o5("#handle-input"),_.x("design:type",Object)],Xm.prototype,"handleInput",void 0);
_.d([_.M(),_.x("design:type",Boolean)],Xm.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.d([_.M({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.QqR}),_.x("design:type",Object)],Xm.prototype,"zeroStepErrorMessageEntity",void 0);_.d([_.m("data","data.isDefaultProfilePhoto","previewDataUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],Xm.prototype,"photoThumbnail",null);
_.d([_.m("data","data.isDefaultProfilePhoto","photoThumbnail"),_.x("design:type",Object),_.x("design:paramtypes",[])],Xm.prototype,"userSetPhotoThumbnailUrl",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Xm.prototype,"hideProfilePhotoButtonLayer",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Xm.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.d([_.mx("data","zeroStepErrorMessageEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Xm.prototype,"dataChanged",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.descriptionInfo","zeroStepErrorMessageEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],Xm.prototype,"description",null);_.d([_.Y({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Xm);
_.p(Xm,"ytd-channel-creation-dialog-renderer",function(){if(u$4!==void 0)return u$4;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return u$4=D},{mode:1});var IJb;var f6=function(){var D=_.X.apply(this,arguments)||this;D.isLoading=!1;D.isDisabled=!1;return D};
_.P(f6,_.X);f6.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
f6.prototype.updateDisabled=function(){var D;this.isDisabled=this.isLoading||((D=this.handleInput)==null?void 0:D.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
f6.prototype.onSaveClick=function(){var D=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var t;((t=this.data)==null?void 0:t.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var H;if((H=D.data)==null?0:H.nextEndpoint){var e;D.ytComponentBehavior.resolveCommand((e=D.data)==null?void 0:e.nextEndpoint)}else D.isLoading=
!1,D.closeDialog()},
onServerError:function(){D.isLoading=!1;D.handleInput.validate();var H;D.errorMessage=(H=D.data)==null?void 0:H.errorMessage}}}))}};
f6.prototype.closeDialog=function(){_.ET(this.hostElement,"yt-close-popup-action",[this.is])};
f6.prototype.updateDisabled=f6.prototype.updateDisabled;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],f6.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],f6.prototype,"data",void 0);_.d([_.o5("#handle-input"),_.x("design:type",Object)],f6.prototype,"handleInput",void 0);_.d([_.Os("isLoading"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],f6.prototype,"updateDisabled",null);
_.d([_.Y({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],f6);
_.p(f6,"ytd-channel-handle-edit-dialog-renderer",function(){if(IJb!==void 0)return IJb;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return IJb=D},{mode:1});var Q9H;var L6=function(){return _.X.apply(this,arguments)||this};
_.P(L6,_.X);L6.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],L6.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],L6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],L6.prototype,"data",void 0);_.d([_.Y({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],L6);
_.p(L6,"ytd-channel-switcher-footer-renderer",function(){if(Q9H!==void 0)return Q9H;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Q9H=D},{mode:1});var yie;var B9H;var A0=function(){return _.X.apply(this,arguments)||this};
_.P(A0,_.X);A0.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
A0.prototype.onIronChange=A0.prototype.onIronChange;_.d([_.M(),_.x("design:type",Object)],A0.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!1}),_.x("design:type",Function)],A0.prototype,"onDontAskAgainChanged",void 0);_.d([_.o5("#checkbox"),_.x("design:type",Object)],A0.prototype,"checkbox",void 0);_.d([_.rx("iron-change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],A0.prototype,"onIronChange",null);
_.d([_.Y({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],A0);
_.p(A0,"ytd-identity-prompt-footer-renderer",function(){if(B9H!==void 0)return B9H;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return B9H=D},{mode:1});var gH=function(){var D=_.X.apply(this,arguments)||this;D.dontAskAgain=!1;D.showPopup=!1;D.boundDontAskAgainChanged=function(t){D.dontAskAgainChanged(t)};
D.boundOnAccountItemTap=function(t){D.onAccountItemTap(t)};
return D};
_.P(gH,_.X);_.q=gH.prototype;
_.q.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]]"}}}}}};
_.q.ready=function(){var D=this;_.Kg(this.hostElement).querySelector("#container").addEventListener("scroll",function(){D.ytRendererBehavior.markDirty()})};
_.q.dontAskAgainChanged=function(D){this.dontAskAgain=D};
_.q.onAccountItemTap=function(D){if(D){var t={};this.dontAskAgain&&(t={dont_ask_again:this.dontAskAgain});_.D9(D,t)}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.q.redirectOnlyAccount=function(D){D.sections&&D.sections.length>0&&(D=_.O(D.sections[0],_.wln),(D==null?0:D.contents)&&(D==null?void 0:D.contents.length)<=1?(D=_.yc(window.location.href),(D==null?0:D.next)&&_.v0V(D.next)?_.D9(D.next):_.D9("/")):this.showPopup=!0)};
gH.prototype.dataChanged=gH.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],gH.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],gH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],gH.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!1}),_.x("design:type",Object)],gH.prototype,"dontAskAgain",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],gH.prototype,"showPopup",void 0);_.d([_.M({reflectToAttribute:!1}),_.x("design:type",Object)],gH.prototype,"boundDontAskAgainChanged",void 0);_.d([_.M({reflectToAttribute:!1}),_.x("design:type",Object)],gH.prototype,"boundOnAccountItemTap",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],gH.prototype,"dataChanged",null);
_.d([_.Y({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],gH);
_.p(gH,"ytd-channel-switcher-renderer",function(){if(yie!==void 0)return yie;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return yie=D},{mode:1});var z1e;var J0=function(){return _.X.apply(this,arguments)||this};
_.P(J0,_.X);_.ql.Object.defineProperties(J0.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.d([_.M(),_.x("design:type",Object)],J0.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],J0.prototype,"steps",null);_.d([_.Y({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],J0);
_.p(J0,"ytd-channel-transfer-stepper-renderer",function(){if(z1e!==void 0)return z1e;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return z1e=D},{mode:1});var D$4;var Y6=function(){var D=_.X.apply(this,arguments)||this;D.data=null;D.isError=!1;D.isLoading=!1;return D};
_.P(Y6,_.X);_.q=Y6.prototype;_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.q.computeProfileName=function(D){return D?D.givenNameValue+" "+D.familyNameValue:""};
_.q.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)};
_.q.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)};
Y6.prototype.onYtServiceRequestError=Y6.prototype.onYtServiceRequestError;Y6.prototype.onYtServiceRequestSent=Y6.prototype.onYtServiceRequestSent;Y6.prototype.dataChanged=Y6.prototype.dataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Y6.prototype,"data",void 0);
_.d([_.M({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.x("design:type",String)],Y6.prototype,"profileName",void 0);_.d([_.M(),_.x("design:type",Object)],Y6.prototype,"isError",void 0);_.d([_.M(),_.x("design:type",Object)],Y6.prototype,"isLoading",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Y6.prototype,"dataChanged",null);
_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],Y6.prototype,"onYtServiceRequestSent",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],Y6.prototype,"onYtServiceRequestError",null);_.d([_.Y({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Y6);
_.p(Y6,"ytd-channel-warm-welcome-cont-renderer",function(){if(D$4!==void 0)return D$4;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return D$4=D},{mode:1});var tuO;var ll=function(){var D=_.X.apply(this,arguments)||this;D.data=null;return D};
_.P(ll,_.X);ll.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ll.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ll.prototype,"data",void 0);_.d([_.Y({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],ll);
_.p(ll,"ytd-channel-warm-welcome-renderer",function(){if(tuO!==void 0)return tuO;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return tuO=D},{mode:1});var HBF;var vf=function(){return _.X.apply(this,arguments)||this};
_.P(vf,_.X);_.ql.Object.defineProperties(vf.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.authorThumbnail)||{}}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],vf.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],vf.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],vf.prototype,"thumbnailDetails",null);_.d([_.Y({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],vf);
_.p(vf,"ytd-comment-preview-renderer",function(){if(HBF!==void 0)return HBF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return HBF=D},{mode:1});var eYH;var p6=function(){return _.X.apply(this,arguments)||this};
_.P(p6,_.X);p6.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.ql.Object.defineProperties(p6.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.submitButton}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],p6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],p6.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],p6.prototype,"submitButton",null);_.d([_.Y({is:"ytd-notice-renderer",disableElementRegistration:!0})],p6);
_.p(p6,"ytd-notice-renderer",function(){if(eYH!==void 0)return eYH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return eYH=D},{mode:1});var VuH;var dH=function(){return _.X.apply(this,arguments)||this};
_.P(dH,_.X);dH.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],dH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],dH.prototype,"data",void 0);_.d([_.Y({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],dH);
_.p(dH,"ytd-preview-comment-dialog-content",function(){if(VuH!==void 0)return VuH;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return VuH=D},{mode:1});var bBY;var x6=function(){return _.X.apply(this,arguments)||this};
_.P(x6,_.X);x6.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
x6.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],x6.prototype,"data",void 0);_.d([_.Y({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],x6);
_.p(x6,"ytd-preview-comment-dialog-renderer",function(){if(bBY!==void 0)return bBY;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return bBY=D},{mode:1});var qjF;var F5F=_.r("web_button_rework")&&_.lh("BUTTON_REWORK")||_.r("web_button_rework_with_live"),Ro=function(){var D=_.X.apply(this,arguments)||this;D.closeLabel=_.OT("CLOSE");D.selectedAmountIndex=1;D.privacyCheckboxValue=!1;D.useAmsterdamStyle=F5F;D.amountPlaceholderIndex=-1;return D};
_.P(Ro,_.X);_.q=Ro.prototype;_.q.onAmountClick=function(D){this.selectedAmountIndex=_.Kg(this.hostElement).querySelector("#amounts").indexForElement(D.currentTarget)};
_.q.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.ET(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.q.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.ET(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.ET(this.hostElement,"yt-close-popup-action",[this.is]);var D;(D=_.FA())==null||D.getPlayerPromise().then(function(t){t.pauseVideo()})}};
_.q.donationCallback=function(D){D.success?(this.hostElement.hasAttribute("live-chat")&&D.response&&D.response.data&&D.response.data.actions&&_.ET(this.hostElement,"yt-live-chat-open-popup",[D.response.data.actions[0]]),_.ET(this.hostElement,"yt-close-popup-action",[this.is]),_.ET(this.hostElement,"yt-live-chat-close-buy-flow")):D.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(D.errorMessageRenderer)};
_.q.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Kg(this.hostElement).querySelector("#custom-amount-input").focus()};
_.q.updateConfirmationDialogTextWithAmount=function(D){var t=this.getConfirmDialogRuns();t&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(t),"text"],this.getFormattedAmount(D))};
_.q.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.q.getAmountPlaceholderIndex=function(D){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=D.findIndex(function(t){return t.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.q.getFormattedAmount=function(D){var t;return(new _.y6(4,((t=this.data)==null?void 0:t.currencyCode)||"")).format(D)};
_.q.isAmountValid=function(D){if(D==="")return!1;D=Number(D)*1E6;var t=this.get("minAmountMicros",this.data),H=this.get("maxAmountMicros",this.data);return t&&D<t||H&&D>H?!1:!0};
_.q.setInputError=function(){this.shouldShowValidationError?_.Kg(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Kg(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.q.setInitialCheckboxValue=function(){var D;this.privacyCheckboxValue=!((D=this.data)==null||!D.privacyCheckboxInitialState)};
_.q.updateCustomAmountInputFromBinding=function(D){this.customAmountInput=D.detail.value};
_.q.updatePrivacyCheckboxValueFromBinding=function(D){this.privacyCheckboxValue=D.detail.value};
_.ql.Object.defineProperties(Ro.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var D=this,t,H;return((t=this.data)==null?void 0:(H=t.suggestedAmounts)==null?void 0:H.map(function(e,V){return{buttonRenderer:{style:D.selectedAmountIndex===V?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:e.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 D;return!((D=this.data)==null||!D.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 D=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(D&&this.amountMicros!==null)return Object.assign({},D,{ypcGetCartEndpoint:Object.assign({},D.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 D=this.get("confirmLargeAmount",this.data);if(D&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),D}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var D=this.get("donateButton.buttonRenderer",this.data);if(D)return Object.assign({},D,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
Ro.prototype.setInitialCheckboxValue=Ro.prototype.setInitialCheckboxValue;Ro.prototype.setInputError=Ro.prototype.setInputError;Ro.prototype.setFocusOnCustomAmountInput=Ro.prototype.setFocusOnCustomAmountInput;_.d([_.C(K8F),_.x("design:type",Object)],Ro.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ro.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Ro.prototype,"closeLabel",void 0);_.d([_.M(),_.x("design:type",Object)],Ro.prototype,"selectedAmountIndex",void 0);_.d([_.M(),_.x("design:type",String)],Ro.prototype,"customAmountInput",void 0);_.d([_.M(),_.x("design:type",Object)],Ro.prototype,"privacyCheckboxValue",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Ro.prototype,"useAmsterdamStyle",void 0);_.d([_.Os("customAmount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ro.prototype,"setFocusOnCustomAmountInput",null);_.d([_.m("data","selectedAmountIndex"),_.x("design:type",Array),_.x("design:paramtypes",[])],Ro.prototype,"suggestedAmountButtons",null);
_.d([_.m("data","selectedAmountIndex"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ro.prototype,"isCustomAmountSelected",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ro.prototype,"showPrivacyCheckbox",null);_.d([_.m("data","selectedAmountIndex","customAmount"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ro.prototype,"amountMicros",null);
_.d([_.m("isCustomAmountSelected","customAmountInput"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ro.prototype,"customAmount",null);_.d([_.m("customAmount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ro.prototype,"shouldShowValidationError",null);_.d([_.m("customAmount"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Ro.prototype,"isDonateButtonEnabled",null);
_.d([_.m("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ro.prototype,"donateCommand",null);_.d([_.m("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ro.prototype,"donateCommandWithConfirmation",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ro.prototype,"largeDonationThreshold",null);
_.d([_.m("customAmount","donateCommand","amountMicros"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ro.prototype,"confirmLargeAmountCommand",null);_.d([_.m("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.x("design:type",Object),_.x("design:paramtypes",[])],Ro.prototype,"donateButtonRenderer",null);_.d([_.Os("shouldShowValidationError"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ro.prototype,"setInputError",null);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ro.prototype,"setInitialCheckboxValue",null);_.d([_.Y({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],Ro);
_.p(Ro,"ytd-donation-amount-picker-renderer",function(){if(qjF!==void 0)return qjF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return qjF=D},{mode:1});var acv;var ul=function(){return _.X.apply(this,arguments)||this};
_.P(ul,_.X);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],ul.prototype,"ytComponentBehavior",void 0);_.d([_.M({}),_.x("design:type",Object)],ul.prototype,"data",void 0);_.d([_.Y({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],ul);
_.p(ul,"ytd-donation-post-transaction-content",function(){if(acv!==void 0)return acv;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return acv=D},{mode:1});var wsF;var Wf=function(){return _.X.apply(this,arguments)||this};
_.P(Wf,_.X);Wf.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Wf.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Wf.prototype,"ytRendererBehavior",void 0);_.d([_.M({}),_.x("design:type",Object)],Wf.prototype,"data",void 0);_.d([_.Y({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Wf);
_.p(Wf,"ytd-donation-post-transaction-renderer",function(){if(wsF!==void 0)return wsF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return wsF=D},{mode:1});var ZBZ;var s_Q;var Io=function(){return _.X.apply(this,arguments)||this};
_.P(Io,_.X);Io.prototype.computeIsStreamingProvider=function(D){return!!D.isStreamingShelf};
Io.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Io.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Io.prototype,"data",void 0);_.d([_.M({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Io.prototype,"isStreamingProvider",void 0);
_.d([_.Y({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],Io);
_.p(Io,"ytd-media-provider-renderer",function(){if(s_Q!==void 0)return s_Q;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return s_Q=D},{mode:1});var hYt;var QX=function(){return _.X.apply(this,arguments)||this};
_.P(QX,_.X);QX.prototype.observeLightsourcePalette=function(){var D,t=(D=this.data)==null?void 0:D.vibrantsourceColorPaletteData;t&&_.fb(this.hostElement,t)};
QX.prototype.observeLightsourcePalette=QX.prototype.observeLightsourcePalette;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],QX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],QX.prototype,"data",void 0);
_.d([_.Os("data.vibrantsourceColorPaletteData"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],QX.prototype,"observeLightsourcePalette",null);_.d([_.Y({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],QX);
_.p(QX,"ytd-streaming-pop-up-dialog",function(){if(hYt!==void 0)return hYt;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return hYt=D},{mode:1});var yX=function(){return _.X.apply(this,arguments)||this};
_.P(yX,_.X);yX.prototype.onPopupOpened_=function(){var D;((D=this.data)==null?0:D.serviceEndpoint)&&_.qS().resolve(_.aA).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
yX.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
yX.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"}}}}};
yX.prototype.onPopupOpened_=yX.prototype.onPopupOpened_;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yX.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],yX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.T_),_.x("design:type",Object)],yX.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],yX.prototype,"data",void 0);
_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yX.prototype,"onPopupOpened_",null);_.d([_.Y({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],yX);
_.p(yX,"ytd-brandconnect-popup-renderer",function(){if(ZBZ!==void 0)return ZBZ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ZBZ=D},{mode:1});var Gwb;var Bf=function(){return _.X.apply(this,arguments)||this};
_.P(Bf,_.X);_.q=Bf.prototype;_.q.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){for(var D=0;D<this.getOptionRenderers().length;D++)this.notifyPath("data.options."+D+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+D+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.q.updateSubmitButton=function(D){this.set("data.submitButton.buttonRenderer.isDisabled",!D)};
_.q.computeAlt=function(D){return _.eo(D)};
_.q.onDismissTap=function(){_.ET(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.qS().resolve(_.aA).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.q.getOptionRenderers=function(D){return(D=D||this.data)&&D.options?D.options.reduce(function(t,H){H.checkboxSurveyOptionRenderer&&t.push(H.checkboxSurveyOptionRenderer);return t},[]):[]};
_.q.onOptionChange=function(D){var t=this,H=!1;if(D.detail.checked)for(var e=this.getOptionRenderers().find(function(w){return w.value===D.detail.value}),V=this.getOptionRenderers(),b=0;b<V.length;b++){var a=V[b];
this.notifyPath("data.options."+b+".checkboxSurveyOptionRenderer.checked");a.checked&&((e==null?0:e.isExclusiveOption)?!a.isExclusiveOption:a.isExclusiveOption)?this.set("data.options."+b+".checkboxSurveyOptionRenderer.checked",!1):a.checked&&(H=!0)}else H=this.getOptionRenderers().some(function(w,h){t.notifyPath("data.options."+h+".checkboxSurveyOptionRenderer.checked");return w.checked});
this.updateSubmitButton(H)};
_.q.onSubmitTap=function(){var D=this.getOptionRenderers().filter(function(b){return b.checked});
if(D.length!==0){var t=D.map(function(b){return b.responseEndpoint});
D=[];for(var H=1;H<t.length;H++){var e=void 0,V=(e=_.O(t[H],_.XC))==null?void 0:e.feedbackToken;V&&D.push(V)}t=[t[0]];D.length&&t.push({extra_feedback_tokens:D});_.NJ(this.hostElement,t);_.ET(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);D=this.data&&this.data.submitActions||[];if(_.r("kevlar_command_handler_migration_killswitch"))_.k0(this.hostElement,D,this.hostElement);else for(D=_.F(D),t=D.next();!t.done;t=D.next())this.ytComponentBehavior.resolveCommand(t.value)}};
Bf.prototype.onOptionChange=Bf.prototype.onOptionChange;Bf.prototype.dataChanged=Bf.prototype.dataChanged;_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],Bf.prototype,"ytEventForwardingBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Bf.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Bf.prototype,"ytComponentBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.d([_.C(XVO),_.x("design:type",Object)],Bf.prototype,"ytdHatsSurveyBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Bf.prototype,"data",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Bf.prototype,"dataChanged",null);
_.d([_.rx("ytd-checkbox-survey-option-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Bf.prototype,"onOptionChange",null);_.d([_.Y({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Bf);
_.p(Bf,"ytd-checkbox-survey-renderer",function(){if(Gwb!==void 0)return Gwb;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Gwb=D},{mode:1});var EWt;var K5b;var zU=function(){return _.X.apply(this,arguments)||this};
_.P(zU,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);_.d([_.C(Svt),_.x("design:type",Object)],zU.prototype,"ytdDismissalReasonBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],zU.prototype,"data",void 0);_.d([_.Y({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],zU);
_.p(zU,"ytd-dismissal-reason-text-renderer",function(){if(K5b!==void 0)return K5b;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return K5b=D},{mode:1});var NGF;var DN=function(){return _.X.apply(this,arguments)||this};
_.P(DN,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],DN.prototype,"ytRendererBehavior",void 0);_.d([_.C(Svt),_.x("design:type",Object)],DN.prototype,"ytdDismissalReasonBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],DN.prototype,"data",void 0);_.d([_.Y({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],DN);
_.p(DN,"ytd-dismissal-reason-video-renderer",function(){if(NGF!==void 0)return NGF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return NGF=D},{mode:1});var td=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(td,_.X);_.q=td.prototype;_.q.created=function(){this.selectedFeedbackTokens=new Wj};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.q.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.q.onDismissalReasonSelected=function(D,t){_.Gf(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(t);this.hasReasonsSelected=!0};
_.q.onDismissalReasonDeselected=function(D,t){_.Gf(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(t);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.q.onCancelTap=function(){_.ET(this.hostElement,"yt-close-popup-action")};
_.q.onSubmitTap=function(){var D=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(D={feedback_tokens:D},_.qS().resolve(_.aA).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},D,{element:this.hostElement})}));_.ET(this.hostElement,"yt-close-popup-action")};
td.prototype.onDismissalReasonDeselected=td.prototype.onDismissalReasonDeselected;td.prototype.onDismissalReasonSelected=td.prototype.onDismissalReasonSelected;td.prototype.dataChanged=td.prototype.dataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],td.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],td.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Boolean)],td.prototype,"hasReasonsSelected",void 0);_.d([_.M(),_.x("design:type",Wj)],td.prototype,"selectedFeedbackTokens",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],td.prototype,"darkerDarkTheme",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],td.prototype,"dataChanged",null);
_.d([_.rx("yt-dismissal-reason-selected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,String]),_.x("design:returntype")],td.prototype,"onDismissalReasonSelected",null);_.d([_.rx("yt-dismissal-reason-deselected"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,String]),_.x("design:returntype")],td.prototype,"onDismissalReasonDeselected",null);_.d([_.Y({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],td);
_.p(td,"ytd-dismissal-follow-up-renderer",function(){if(EWt!==void 0)return EWt;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return EWt=D},{mode:1});var kwF;var HB=function(){return _.X.apply(this,arguments)||this};
_.P(HB,_.X);_.q=HB.prototype;_.q.onCheckedChange=function(){this.multiselect||_.Gf(this.hostElement,"yt-feedback-single-select-changed");_.Kg(this.hostElement).querySelector("#freeform").focus();_.Gf(this.hostElement,"yt-refit")};
_.q.showTextBox=function(D,t){return D&&t};
_.q.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))};
_.q.updateDataCheckedFromBinding=function(D){this.set("data.checked",D.detail.value)};
_.q.updateDataResultTextFromBinding=function(D){this.set("data.resultText",D.detail.value)};
HB.prototype.dataChanged=HB.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],HB.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],HB.prototype,"multiselect",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HB.prototype,"dataChanged",null);
_.d([_.Y({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],HB);
_.p(HB,"ytd-feedback-option-renderer",function(){if(kwF!==void 0)return kwF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return kwF=D},{mode:1});var TGF;var eq=function(){return _.X.apply(this,arguments)||this};
_.P(eq,_.X);eq.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
eq.prototype.onSingleSelectCheckedChanged=function(D){D=_.qy(D);for(var t=0;t<this.data.options.length;t++)if(D.data!==_.O(this.data.options[t],IMQ)){var H="data.options."+t+".feedbackOptionRenderer.checked";this.notifyPath(H);this.set(H,!1)}};
eq.prototype.onSingleSelectCheckedChanged=eq.prototype.onSingleSelectCheckedChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],eq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],eq.prototype,"data",void 0);
_.d([_.rx("yt-feedback-single-select-changed"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],eq.prototype,"onSingleSelectCheckedChanged",null);_.d([_.Y({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],eq);
_.p(eq,"ytd-feedback-question-renderer",function(){if(TGF!==void 0)return TGF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return TGF=D},{mode:1});var ctt;var VH=function(){return _.X.apply(this,arguments)||this};
_.P(VH,_.X);VH.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
VH.prototype.getSelectedFeedbackResults=function(){for(var D={},t=0;t<this.data.questions.length;t++)for(var H=_.O(this.data.questions[t],W2F),e=0;e<H.options.length;e++){var V=_.O(H.options[e],IMQ);V&&V.checked&&(D[V.optionKey]=V.resultText)}return D};
VH.prototype.onKeyUp=function(){var D=this;_.kX(_.Jy,function(){_.Gf(D.hostElement,"yt-refit")});
_.Jy.start()};
VH.prototype.submitSurvey=function(){var D=this.getSelectedFeedbackResults();Object.keys(D).length>0&&this.data.submitFeedbackEndpoint&&(D={survey_results:D,is_feedback_token_unencrypted:!0},_.qS().resolve(_.aA).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},D,{element:this.hostElement})}))};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],VH.prototype,"data",void 0);_.d([_.Y({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],VH);
_.p(VH,"ytd-feedback-survey-renderer",function(){if(ctt!==void 0)return ctt;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ctt=D},{mode:1});var j_b;var $$Q;var b$=function(){return _.X.apply(this,arguments)||this};
_.P(b$,_.X);b$.prototype.computeAlt=function(D){return _.eo(D)};
b$.prototype.submitResponse=function(){var D,t;(D=this.data)!=null&&D.feedbackToken&&((t=this.data)==null?void 0:t.nextStageIndex)!==void 0&&(_.Kl(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Kl(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
b$.prototype.onClick=function(){this.submitResponse()};
b$.prototype.onClick=b$.prototype.onClick;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],b$.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],b$.prototype,"vertical",void 0);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],b$.prototype,"onClick",null);
_.d([_.Y({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],b$);
_.p(b$,"ytd-single-select-answer-option-renderer",function(){if($$Q!==void 0)return $$Q;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return $$Q=D},{mode:1});var iBi;var qm=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");D.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return D};
_.P(qm,_.X);qm.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
qm.prototype.dataChanged=function(){var D,t;this.vertical=((t=(D=this.data)==null?void 0:D.answerOrientation)!=null?t:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
qm.prototype.submitFeedback=function(D){var t;((t=this.data)==null?0:t.responseEndpoint)&&D&&_.NJ(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[D]}])};
qm.prototype.dataChanged=qm.prototype.dataChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],qm.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],qm.prototype,"eventForwardingBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],qm.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],qm.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],qm.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],qm.prototype,"vertical",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],qm.prototype,"darkerDarkTheme",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qm.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],qm);
_.p(qm,"ytd-single-select-question-renderer",function(){if(iBi!==void 0)return iBi;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return iBi=D},{mode:1});var F1=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return D};
_.P(F1,_.X);_.q=F1.prototype;_.q.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"}}}};
_.q.dataChanged=function(){this.jumpToStage(0)};
_.q.jumpToStage=function(D){var t,H;if((t=this.data)==null?0:(H=t.stages)==null?0:H[D])this.currentStage=this.data.stages[D],this.refitAfterRender()};
_.q.computeAlt=function(D){return _.eo(D)};
_.q.computeSimpleMessage=function(D){var t;return(t=_.O(D,BBe))==null?void 0:t.messageText};
_.q.computeHideDismiss=function(D){var t;return(t=_.O(D,rfY))==null?void 0:t.hideParentDismissButton};
_.q.onDismissTap=function(){_.ET(this.hostElement,"yt-close-popup-action");_.O(this.currentStage,BBe)||this.data.dismissalEndpoint&&_.qS().resolve(_.aA).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.q.refitAfterRender=function(){var D=this;_.Vi(this,function(){_.Gf(D.hostElement,"yt-refit")})};
F1.prototype.dataChanged=F1.prototype.dataChanged;_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],F1.prototype,"eventForwardingBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],F1.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],F1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],F1.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C(XVO),_.x("design:type",Object)],F1.prototype,"ytdHatsSurveyBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],F1.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],F1.prototype,"currentStage",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],F1.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],F1);
_.p(F1,"ytd-multi-stage-survey-renderer",function(){if(j_b!==void 0)return j_b;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return j_b=D},{mode:1});var rtb;var a1=function(){return _.X.apply(this,arguments)||this};
_.P(a1,_.X);a1.prototype.computeAlt=function(D){return _.eo(D)};
a1.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.qS().resolve(_.aA).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.ET(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.DJF(!1)))};
a1.prototype.onTap=function(){this.vertical&&this.submitResponse()};
a1.prototype.onTap=a1.prototype.onTap;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],a1.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],a1.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],a1.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],a1.prototype,"vertical",void 0);
_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],a1.prototype,"onTap",null);_.d([_.Y({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],a1);
_.p(a1,"ytd-single-option-survey-option-renderer",function(){if(rtb!==void 0)return rtb;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return rtb=D},{mode:1});var OBg;var wc=function(){return _.X.apply(this,arguments)||this};
_.P(wc,_.X);_.q=wc.prototype;_.q.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){var D,t;this.vertical=(((D=this.data)==null?void 0:(t=D.surveyOrientation)==null?void 0:t.type)||"HORIZONTAL")==="VERTICAL"};
_.q.computeAlt=function(D){return _.eo(D)};
_.q.onDismissTap=function(){_.ET(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.qS().resolve(_.aA).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.DJF(!1))};
wc.prototype.dataChanged=wc.prototype.dataChanged;_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],wc.prototype,"eventForwardingBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],wc.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],wc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(XVO),_.x("design:type",Object)],wc.prototype,"ytdHatsSurveyBehavior",void 0);
_.d([_.C(_.sx),_.x("design:type",Object)],wc.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],wc.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],wc.prototype,"vertical",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],wc.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],wc);
_.p(wc,"ytd-single-option-survey-renderer",function(){if(OBg!==void 0)return OBg;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return OBg=D},{mode:1});var U$b;var ZN=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(ZN,_.X);ZN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ZN.prototype.onDismissTap=function(){_.ET(this.hostElement,"yt-close-popup-action")};
ZN.prototype.onNavigate=function(){_.ET(this.hostElement,"yt-close-popup-action")};
ZN.prototype.onNavigate=ZN.prototype.onNavigate;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],ZN.prototype,"ytEventForwardingBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ZN.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ZN.prototype,"darkerDarkTheme",void 0);
_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ZN.prototype,"onNavigate",null);_.d([_.Y({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],ZN);
_.p(ZN,"ytd-survey-follow-up-renderer",function(){if(U$b!==void 0)return U$b;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return U$b=D},{mode:1});var oWQ;var PwY;var nWQ;var sc=function(){var D=_.X.apply(this,arguments)||this;D.polymer2="Element"in Polymer;return D};
_.P(sc,_.X);_.q=sc.prototype;_.q.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.q.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.q.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.q.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("minutes-changed",this.minutes))};
_.q.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("seconds-changed",this.seconds))};
_.q.updateMinutesFromBinding=function(D){this.minutes=D.detail.value};
_.q.updateSecondsFromBinding=function(D){this.seconds=D.detail.value};
sc.prototype.secondsChangedForBinding=sc.prototype.secondsChangedForBinding;sc.prototype.minutesChangedForBinding=sc.prototype.minutesChangedForBinding;sc.prototype.secondsChanged=sc.prototype.secondsChanged;_.d([_.M(),_.x("design:type",String)],sc.prototype,"minutes",void 0);_.d([_.M(),_.x("design:type",String)],sc.prototype,"seconds",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],sc.prototype,"polymer2",void 0);
_.d([_.o5("#seconds"),_.x("design:type",Object)],sc.prototype,"secondsEl",void 0);_.d([_.Os("seconds"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sc.prototype,"secondsChanged",null);_.d([_.Os("minutes"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sc.prototype,"minutesChangedForBinding",null);
_.d([_.Os("seconds"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],sc.prototype,"secondsChangedForBinding",null);_.d([_.xL({is:"yt-timestamp-input",disableElementRegistration:!0})],sc);
_.p(sc,"yt-timestamp-input",function(){if(nWQ===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;PwY===void 0&&(PwY=document.createElement("template"));var e=PwY;H.call(t,e.content.cloneNode(!0),D.content.firstChild);nWQ=D}D=nWQ;return D},{mode:2});var hd=function(){return _.X.apply(this,arguments)||this};
_.P(hd,_.X);_.q=hd.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20379_scroller.dialogElement=this.hostElement.parentNode};
_.q.dataChanged=function(){var D=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.an().getPlayerPromise().then(function(t){t=t.getCurrentTime();D.minutes=Math.floor(t/60).toString();D.seconds=(Math.floor(t)%60).toString()})};
_.q.onTapSubmit=function(D){D.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(D={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(D.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(D.minutes=this.minutes,D.seconds=this.seconds),_.qS().resolve(_.aA).resolveCommand(this.serviceEndpoint,{form:Object.assign({},D,{element:this.hostElement})}))};
_.q.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.q.onYtServiceRequestCompleted=function(D,t){t=t.actions;if(Array.isArray(t))for(var H=0,e=t.length;H<e;H++)_.O(t[H],_.RW)&&(D.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(t[H]))};
_.q.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.q.toggleSubmitButton=function(D){this.set("submitButton.isDisabled",!D)};
_.q.handleInput=function(){var D=this.issueType,t=this.affiliation,H=this.minutes,e=this.seconds;H=!this.showTimestamp||!!H&&!!e;this.toggleSubmitButton(!!this.descriptionText&&!!D&&!!t&&H)};
_.q.computeServiceEndpoint=function(D){return this.get("submitButton.buttonRenderer.serviceEndpoint",D)};
_.q.computeSubmitButton=function(D){(D=this.get("submitButton.buttonRenderer",D))&&(D=Object.assign({},D,{serviceEndpoint:void 0}));return D};
_.q.computeShowTimestamp=function(D){return!!D};
_.q.onValueChangedForIssueType=function(D){this.issueType=D.detail.value};
_.q.onValueChangedForAffiliation=function(D){this.affiliation=D.detail.value};
_.q.updateDescriptionTextFromBinding=function(D){this.descriptionText=D.detail.value};
_.q.updateFullNameTextFromBinding=function(D){this.fullNameText=D.detail.value};
_.q.updateMinutesFromBinding=function(D){this.minutes=D.detail.value};
_.q.updateSecondsFromBinding=function(D){this.seconds=D.detail.value};
hd.prototype.handleInput=hd.prototype.handleInput;hd.prototype.onYtServiceRequestError=hd.prototype.onYtServiceRequestError;hd.prototype.onYtServiceRequestCompleted=hd.prototype.onYtServiceRequestCompleted;hd.prototype.onYtServiceRequestSent=hd.prototype.onYtServiceRequestSent;hd.prototype.dataChanged=hd.prototype.dataChanged;_.d([_.C(_.vP.YtOpenPopupBehavior),_.x("design:type",Object)],hd.prototype,"ytOpenPopupBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],hd.prototype,"ytRendererBehavior",void 0);_.d([_.o5("#scroller"),_.x("design:type",Object)],hd.prototype,"JSC$20379_scroller",void 0);_.d([_.o5("#description"),_.x("design:type",HTMLInputElement)],hd.prototype,"description",void 0);_.d([_.o5("#full-name"),_.x("design:type",Object)],hd.prototype,"fullName",void 0);_.d([_.M(),_.x("design:type",Object)],hd.prototype,"data",void 0);
_.d([_.M({computed:"computeShowTimestamp(data.timestampLabel)"}),_.x("design:type",Boolean)],hd.prototype,"showTimestamp",void 0);_.d([_.M({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.x("design:type",Object)],hd.prototype,"serviceEndpoint",void 0);_.d([_.M({computed:"computeSubmitButton(data)"}),_.x("design:type",Object)],hd.prototype,"submitButton",void 0);_.d([_.M(),_.x("design:type",String)],hd.prototype,"descriptionText",void 0);
_.d([_.M(),_.x("design:type",Number)],hd.prototype,"issueType",void 0);_.d([_.M(),_.x("design:type",Number)],hd.prototype,"affiliation",void 0);_.d([_.M(),_.x("design:type",String)],hd.prototype,"fullNameText",void 0);_.d([_.M(),_.x("design:type",String)],hd.prototype,"minutes",void 0);_.d([_.M(),_.x("design:type",String)],hd.prototype,"seconds",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hd.prototype,"dataChanged",null);
_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],hd.prototype,"onYtServiceRequestSent",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],hd.prototype,"onYtServiceRequestCompleted",null);
_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],hd.prototype,"onYtServiceRequestError",null);_.d([_.Os("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],hd.prototype,"handleInput",null);_.d([_.Y({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],hd);
_.p(hd,"ytd-legal-report-details-form-renderer",function(){if(oWQ!==void 0)return oWQ;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return oWQ=D},{mode:1});var Cwb;var GY=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return D};
_.P(GY,_.X);GY.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
GY.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var D=this.formRenderer.getForm();D&&this.data.submitEndpoint&&(_.qS().resolve(_.aA).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},D,{element:this.hostElement})}),_.ET(this.hostElement,"yt-close-popup-action"))}};
GY.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.ET(this.hostElement,"yt-close-popup-action"))};
GY.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
GY.prototype.onPopupClosed=GY.prototype.onPopupClosed;_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],GY.prototype,"ytEventForwardingBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],GY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],GY.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);
_.d([_.o5("yt-form-renderer"),_.x("design:type",Object)],GY.prototype,"formRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],GY.prototype,"data",void 0);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],GY.prototype,"onPopupClosed",null);_.d([_.Y({is:"ytd-form-popup-content",disableElementRegistration:!0})],GY);
_.p(GY,"ytd-form-popup-content",function(){if(Cwb!==void 0)return Cwb;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Cwb=D},{mode:1});var m$i;var Ec=function(){return _.X.apply(this,arguments)||this};
_.P(Ec,_.X);Ec.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ec.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ec.prototype.onPopupOpened=function(){_.Gf(this.hostElement,"yt-invalidate-popup-tabbables")};
Ec.prototype.onYtServiceRequestCompleted=function(D,t){t.data&&t.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Gf(this.hostElement,"yt-invalidate-popup-tabbables"))};
Ec.prototype.onYtServiceRequestCompleted=Ec.prototype.onYtServiceRequestCompleted;Ec.prototype.onPopupOpened=Ec.prototype.onPopupOpened;_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],Ec.prototype,"ytEventForwardingBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Ec.prototype,"data",void 0);_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Ec.prototype,"onPopupOpened",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],Ec.prototype,"onYtServiceRequestCompleted",null);_.d([_.Y({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Ec);
_.p(Ec,"ytd-form-popup-renderer",function(){if(m$i!==void 0)return m$i;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return m$i=D},{mode:1});var Muv;var KA=function(){var D=_.X.apply(this,arguments)||this;D.isLoading=!1;return D};
_.P(KA,_.X);_.q=KA.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");hGF(this.hostElement)};
_.q.onYtServiceRequestSent=function(){this.isLoading=!0};
_.q.onYtServiceRequestCompleted=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.q.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.k0(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.q.closePopupHandler=function(){this.fireOnCloseActions()};
_.q.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var D=this.get("data.headerImage.thumbnails");D&&(D=_.G3(D,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+D+")")}};
_.q.onYtNavigate=function(D){(D=_.qy(D))&&D.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
KA.prototype.onYtNavigate=KA.prototype.onYtNavigate;KA.prototype.onHeaderImageChanged=KA.prototype.onHeaderImageChanged;KA.prototype.closePopupHandler=KA.prototype.closePopupHandler;KA.prototype.onYtServiceRequestCompleted=KA.prototype.onYtServiceRequestCompleted;KA.prototype.onYtServiceRequestSent=KA.prototype.onYtServiceRequestSent;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],KA.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],KA.prototype,"ytEventForwardingBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],KA.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],KA.prototype,"isLoading",void 0);_.d([_.o5("#header"),_.x("design:type",HTMLDivElement)],KA.prototype,"header",void 0);_.d([_.o5("#confirm-button"),_.x("design:type",_.DM)],KA.prototype,"confirmButton",void 0);
_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],KA.prototype,"onYtServiceRequestSent",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],KA.prototype,"onYtServiceRequestCompleted",null);
_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],KA.prototype,"closePopupHandler",null);_.d([_.Os("data.headerImage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],KA.prototype,"onHeaderImageChanged",null);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],KA.prototype,"onYtNavigate",null);
_.d([_.Y({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],KA);
_.p(KA,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(Muv!==void 0)return Muv;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Muv=D},{mode:1});var Sjb;var Nm=function(){var D=_.X.apply(this,arguments)||this;D.isLoading=!1;return D};
_.P(Nm,_.X);_.q=Nm.prototype;_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);hGF(this.hostElement)};
_.q.onYtServiceRequestCompleted=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.q.onYtServiceRequestError=function(D){_.y2(this.hostElement,D.detail.error.message)};
_.q.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.q.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.ET(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.q.onDataChanged=function(){this.isLoading=!1;var D=this.get("data.headerImage.thumbnails");D&&(D=_.G3(D,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+D+")");D=_.v3();var t=_.lo(),H=this.get("data.trackingParams");H&&t&&D&&_.Q$(D,t,_.Sa(H))};
_.ql.Object.defineProperties(Nm.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
Nm.prototype.onDataChanged=Nm.prototype.onDataChanged;Nm.prototype.onDomChange=Nm.prototype.onDomChange;Nm.prototype.onYtServiceRequestError=Nm.prototype.onYtServiceRequestError;Nm.prototype.onYtServiceRequestCompleted=Nm.prototype.onYtServiceRequestCompleted;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Nm.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Nm.prototype,"ytRendererBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Nm.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Nm.prototype,"isLoading",void 0);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Nm.prototype,"hasDescription",null);_.d([_.o5("tp-yt-paper-dialog-scrollable"),_.x("design:type",Object)],Nm.prototype,"scrollable",void 0);_.d([_.o5("#header"),_.x("design:type",HTMLElement)],Nm.prototype,"header",void 0);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Nm.prototype,"onYtServiceRequestCompleted",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Nm.prototype,"onYtServiceRequestError",null);
_.d([_.rx("dom-change"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Nm.prototype,"onDomChange",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Nm.prototype,"onDataChanged",null);_.d([_.Y({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],Nm);
_.p(Nm,"ytd-gaming-account-link-setting-renderer",function(){if(Sjb!==void 0)return Sjb;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Sjb=D},{mode:1});var XsH;var fce;var k4=function(){var D=_.X.apply(this,arguments)||this;D.isHeader=!1;D.getEndpointForm=function(){return Dxi(D.data)};
return D};
_.P(k4,_.X);_.q=k4.prototype;_.q.triggerHintActions=function(){var D=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var t=_.Kl(D.hostElement,"yt-get-opened-popups-action");!(t&&t.length===1?t[0]:[]).some(function(H){H=H.openPopupAction.popupType;return H==="SURVEY"||H==="MEALBAR"||H==="HINT"})&&D.data.hintActions&&D.guideOpened&&(_.k0(D.hostElement,D.data.hintActions,D.hostElement),D.data.hintActions=void 0)})};
_.q.getBadgeIconType=function(D){return D&&D.liveBroadcasting?"live":null};
_.q.onDown=function(){this.interaction.triggerDown()};
_.q.onUp=function(){this.interaction.triggerUp()};
_.q.onTap=function(D){if(this.data.serviceEndpoint){var t;_.r("shorts_controller_retrieve_seedless_sequence_v2")&&((t=_.O(this.data.serviceEndpoint,_.C_))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):zMQ(this.data.serviceEndpoint,this);D.preventDefault()}else this.data.navigationEndpoint&&!_.ed(_.bK(D),this.hostElement,["A".toString()])&&_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.q.computeActive=function(D,t){if(!D)return!1;var H=D.navigationEndpoint;D=D.serviceEndpoint;if(!H&&!D||!t)return!1;if(H){D=(D=_.OL(t))&&["subscriptions","filteredsubscriptions"].includes(D);if(_.O(H,_.UL)&&_.O(t,_.UL)&&!D){var e=_.O(H,_.UL).browseId;t=_.O(t,_.UL).browseId;return e!==void 0&&t!==void 0&&(e===t||e==="VLWL"&&t==="FEwatch_later"||e==="FEwatch_later"&&t==="VLWL")}var V;H=(V=_.O(H.commandMetadata,_.i1))==null?void 0:V.url;t=(e=_.O(t.commandMetadata,_.i1))==null?void 0:e.url;return!(!H||
!t||H!==t&&H!==_.TW(t))}return this.isActiveShortsTab(D,t)};
_.q.isActiveShortsTab=function(D,t){t=!!_.O(t,_.C_)||!!_.O(t,_.qB);return(!!_.O(D,_.C_)||!!_.O(D,_.qB))&&t};
_.q.computeIsPrimary=function(D){return!!D};
_.ql.Object.defineProperties(k4.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 D=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&D)return D}}});
k4.prototype.onTap=k4.prototype.onTap;k4.prototype.onUp=k4.prototype.onUp;k4.prototype.onDown=k4.prototype.onDown;k4.prototype.triggerHintActions=k4.prototype.triggerHintActions;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],k4.prototype,"componentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],k4.prototype,"rendererBehavior",void 0);_.d([_.C(_.PP.YtTaskEmitterBehavior),_.x("design:type",Object)],k4.prototype,"taskEmitterBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],k4.prototype,"activeEndpoint",void 0);_.d([_.M(),_.x("design:type",Object)],k4.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],k4.prototype,"guideOpened",void 0);_.d([_.M(),_.x("design:type",String)],k4.prototype,"type",void 0);_.d([_.o5("yt-interaction"),_.x("design:type",Object)],k4.prototype,"interaction",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],k4.prototype,"isHeader",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("data","activeEndpoint"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],k4.prototype,"active",null);_.d([_.M({reflectToAttribute:!0}),_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],k4.prototype,"isPrimary",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.count","data.presentationStyle","data.badges.*"),_.x("design:type",String),_.x("design:paramtypes",[])],k4.prototype,"lineEndStyle",null);
_.d([_.m("lineEndStyle"),_.x("design:type",Object),_.x("design:paramtypes",[])],k4.prototype,"ariaLabel",null);_.d([_.Os("data.hintActions","guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k4.prototype,"triggerHintActions",null);_.d([_.rx("down"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k4.prototype,"onDown",null);
_.d([_.rx("up"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],k4.prototype,"onUp",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],k4.prototype,"onTap",null);_.d([_.Y({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],k4);
_.p(k4,"ytd-guide-entry-renderer",function(){if(fce!==void 0)return fce;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return fce=D},{mode:1});var TY=function(){var D=_.X.apply(this,arguments)||this;D.userToggled=!1;return D};
_.P(TY,_.X);_.q=TY.prototype;_.q.getItemsPath=function(){return"data.expandableItems"};
_.q.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.q.onExpanderItemTapped=function(D){var t=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.r("kevlar_guide_expandable_items_killswitch")&&_.Vi(this,function(){_.tp(t.expandableItems)});
D.preventDefault()};
_.q.onCollapserItemTapped=function(D){var t=this;this._setExpanded(!1);this.userToggled=!0;D.preventDefault();this.expandableItems&&!_.r("kevlar_guide_collapsible_items_killswitch")&&_.Vi(this,function(){_.Dx(t.hostElement)})};
_.q.observeActiveEndpoint=function(){for(var D=this.activeEndpoint,t=this.data,H=this.expandableItems.children,e=0,V=H.length;e<V;e++)H[e].activeEndpoint=D;t&&t.autoExpandCommand&&D&&!this.userToggled&&(H=this.data.autoExpandCommand,t=!(!_.O(H,_.UL)||!_.O(D,_.UL)||_.O(H,_.UL).browseId!==_.O(D,_.UL).browseId),D=this.get("commandMetadata.webCommandMetadata.url",D),H=this.get("commandMetadata.webCommandMetadata.url",H),t=t||!!(D&&H&&D.includes(H)),this._setExpanded(t),t&&this.ytLazyListBehavior.fillRemainingListItems())};
TY.prototype.observeActiveEndpoint=TY.prototype.observeActiveEndpoint;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],TY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.SL.YtLazyListBehavior),_.x("design:type",Object)],TY.prototype,"ytLazyListBehavior",void 0);_.d([_.o5("#expandable-items"),_.x("design:type",HTMLElement)],TY.prototype,"expandableItems",void 0);
_.d([_.M(),_.x("design:type",Object)],TY.prototype,"data",void 0);_.d([_.M({readOnly:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],TY.prototype,"expanded",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],TY.prototype,"initialCount",void 0);_.d([_.M(),_.x("design:type",Object)],TY.prototype,"activeEndpoint",void 0);_.d([_.Os("data","activeEndpoint","canShowMore"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],TY.prototype,"observeActiveEndpoint",null);
_.d([_.Y({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],TY);
_.p(TY,"ytd-guide-collapsible-entry-renderer",function(){if(XsH!==void 0)return XsH;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return XsH=D},{mode:_.Kz("kevlar_poly_si_batch_j079")?1:2});var L5i;var Atg;var cB=function(){var D=_.X.apply(this,arguments)||this;D.allVideosCount=0;D.renderGuideEntry=!1;return D};
_.P(cB,_.X);cB.prototype.observeRenderEntry=function(){var D;this.renderGuideEntry=!((D=this.data)==null||!D.alwaysShow)||!!this.allVideosCount};
cB.prototype.observeRenderEntry=cB.prototype.observeRenderEntry;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],cB.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],cB.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],cB.prototype,"activeEndpoint",void 0);_.d([_.M({selector:_.UCK}),_.x("design:type",Object)],cB.prototype,"allVideosCount",void 0);
_.d([_.M(),_.x("design:type",Object)],cB.prototype,"renderGuideEntry",void 0);_.d([_.mx("allVideosCount","data.alwaysShow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],cB.prototype,"observeRenderEntry",null);_.d([_.Y({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],cB);
_.p(cB,"ytd-guide-downloads-entry-renderer",function(){if(Atg===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);Atg=D}D=Atg;return D},{mode:1});var jq=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return D};
_.P(jq,_.X);_.q=jq.prototype;_.q.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]]"}}}}}};
_.q.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var D=this.sectionItems.children,t=0,H=D.length;t<H;t++)D[t].activeEndpoint=this.activeEndpoint}};
_.q.handleAddToGuideSectionAction=function(D){var t=_.O(D,GGY);if(t&&this.data&&(D=t.items,t=t.handlerData,D&&t&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(t)>-1)){t=0;for(var H=D.length;t<H;t++)D[t].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,D[t])}};
_.q.handleRemoveFromGuideSectionAction=function(D){var t=_.O(D,ETZ);t&&this.data&&(D=t.guideEntryId,t=t.handlerData,D&&t&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(t)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(D,this.data.sectionItems),this.removeFromCollapsedSection(D,this.data.sectionItems)))};
_.q.removeFromExpandedSection=function(D,t){D=this.getEntryIndexMatchingId(D,t);D!==-1&&this.splice("data.sectionItems",D,1)};
_.q.removeFromCollapsedSection=function(D,t){var H=t.findIndex(function(e){return!!_.O(e,mDF)});
H&&H!==-1&&t[H]&&_.O(t[H],mDF)&&(t=_.O(t[H],mDF).expandableItems)&&(D=this.getEntryIndexMatchingId(D,t),D!==-1&&this.splice("data.sectionItems."+H+".guideCollapsibleEntryRenderer.expandableItems",D,1))};
_.q.getEntryIndexMatchingId=function(D,t){var H=this;return t.findIndex(function(e){return H.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",e)===D})};
jq.prototype.activeEndpointChanged=jq.prototype.activeEndpointChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],jq.prototype,"actionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],jq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.o5("#section-items"),_.x("design:type",HTMLDivElement)],jq.prototype,"sectionItems",void 0);
_.d([_.o5("#header-entry"),_.x("design:type",Object)],jq.prototype,"headerEntry",void 0);_.d([_.M(),_.x("design:type",Object)],jq.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],jq.prototype,"activeEndpoint",void 0);_.d([_.Os("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],jq.prototype,"activeEndpointChanged",null);_.d([_.Y({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],jq);
_.p(jq,"ytd-guide-collapsible-section-entry-renderer",function(){if(L5i===void 0){var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="true" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);L5i=D}D=L5i;return D},{mode:1});var gWe;var JtZ;var $4=function(){var D=_.X.apply(this,arguments)||this;D.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 D};
_.P($4,_.X);_.q=$4.prototype;
_.q.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}}}}};
_.q.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var D=_.Kl(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);D&&D.length===1&&D[0]&&_.Kl(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.q.handleResetChannelUnreadCountCommand=function(D){var t;(D=(t=_.O(D,NBF))==null?void 0:t.channelId)&&this.data&&this.data.items&&(t=this.getPathToEntryMatchingId(D))&&(this.set(t+".guideEntryRenderer.count",0),this.set(t+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.q.handleResetSubscriptionsUnreadDotCommand=function(D){var t,H=(t=_.O(D,kGF))==null?void 0:t.targetId,e;H&&(e=this.data)!=null&&e.items&&(D=this.data.items.findIndex(function(V){var b;return((b=V.guideEntryRenderer)==null?void 0:b.targetId)===H}),D<0||this.set("data.items."+D+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.q.getPathToEntryMatchingId=function(D){if(this.data&&this.data.items){var t=this.getEntryIndexMatchingId(D,this.data.items);if(t>-1)return"data.items."+t;for(var H=0;H<this.data.items.length;H++)if(t=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[H]))if(t=this.getEntryIndexMatchingId(D,t),t>-1)return"data.items."+H+".guideCollapsibleEntryRenderer.expandableItems."+t}};
_.q.handleAddToGuideSectionAction=function(D){var t=this;if(_.O(D,GGY)){var H=_.O(D,GGY).items;D=_.O(D,GGY).handlerData;var e,V;if(H&&D&&((e=this.data)==null?void 0:(V=e.handlerDatas)==null?void 0:V.indexOf(D))>-1){H=H.filter(function(a){return(a=t.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",a))&&!t.isGuideItemPresent(a)});
var b;if(D==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((b=this.data)==null?0:b.items)&&(e=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),e>-1)){this.splice.apply(this,["data.items",e+1,0].concat(_.A6(H)));return}this.unshift.apply(this,["data.items"].concat(_.A6(H)))}}};
_.q.isGuideItemPresent=function(D){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(D,this.data.items)!==-1)return!0;var t=this.data.items.find(function(H){return!!H.guideCollapsibleEntryRenderer});
if((t==null?0:t.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(D,t.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.q.getEntryIndexMatchingId=function(D,t){var H=this;return t.findIndex(function(e){return H.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",e)===D})};
_.q.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(D,t){var H=this;return t.findIndex(function(e){return H.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",e)===D})};
_.q.handleRemoveFromGuideSectionAction=function(D){if(_.O(D,ETZ)){var t=_.O(D,ETZ).guideEntryId;D=_.O(D,ETZ).handlerData;var H,e;t&&D&&((H=this.data)==null?void 0:(e=H.handlerDatas)==null?void 0:e.indexOf(D))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(t,this.data.items),this.removeFromCollapsedSection(t,this.data.items))}};
_.q.removeFromExpandedSection=function(D,t){D=this.getEntryIndexMatchingId(D,t);D!==-1&&this.splice("data.items",D,1)};
_.q.removeFromCollapsedSection=function(D,t){var H=t.findIndex(function(e){return!!e.guideCollapsibleEntryRenderer});
H!==-1&&(t=t[H].guideCollapsibleEntryRenderer.expandableItems)&&(D=this.getEntryIndexMatchingId(D,t),D!==-1&&this.splice("data.items."+H+".guideCollapsibleEntryRenderer.expandableItems",D,1))};
_.q.activeEndpointChanged=function(){for(var D=_.Kg(this.hostElement).querySelector("#items").children,t=0,H=D.length;t<H;t++)D[t].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.q.guideOpenedChanged=function(){for(var D=_.Kg(this.hostElement).querySelector("#items").children,t=0,H=D.length;t<H;t++)D[t].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
$4.prototype.guideOpenedChanged=$4.prototype.guideOpenedChanged;$4.prototype.activeEndpointChanged=$4.prototype.activeEndpointChanged;$4.prototype.persistentGuideChanged=$4.prototype.persistentGuideChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],$4.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],$4.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.SL.YtLazyListBehavior),_.x("design:type",Object)],$4.prototype,"ytLazyListBehavior",void 0);_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],$4.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],$4.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$4.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",String)],$4.prototype,"type",void 0);_.d([_.M({value:20}),_.x("design:type",Number)],$4.prototype,"initialCount",void 0);_.d([_.M({value:10}),_.x("design:type",Number)],$4.prototype,"targetFramerate",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],$4.prototype,"autoFill",void 0);_.d([_.M({value:50}),_.x("design:type",Number)],$4.prototype,"renderDelay",void 0);
_.d([_.Os("guidePersistentAndVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$4.prototype,"persistentGuideChanged",null);_.d([_.mx("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$4.prototype,"activeEndpointChanged",null);_.d([_.mx("guideOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$4.prototype,"guideOpenedChanged",null);
_.d([_.Y({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],$4);
_.p($4,"ytd-guide-section-renderer",function(){if(JtZ!==void 0)return JtZ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return JtZ=D},{mode:_.Kz("kevlar_poly_si_batch_j073")?1:2});var Yjt;var i$=function(){return _.X.apply(this,arguments)||this};
_.P(i$,_.X);_.ql.Object.defineProperties(i$.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],i$.prototype,"rendererBehaviors",void 0);_.d([_.M(),_.x("design:type",Object)],i$.prototype,"data",void 0);_.d([_.M(),_.m("data.signInButton.buttonRenderer.style"),_.x("design:type",Object),_.x("design:paramtypes",[])],i$.prototype,"alignByText",null);_.d([_.Y({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],i$);
_.p(i$,"ytd-guide-signin-promo-renderer",function(){if(Yjt===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);Yjt=D}D=Yjt;return D},{mode:1});var rc=function(){var D=_.X.apply(this,arguments)||this;D.showFooter=!1;return D};
_.P(rc,_.X);rc.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}}}}};
rc.prototype.attached=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1){t=_.qS().resolve(_.by(_.Ng));if(!t)return H.jumpTo(0);t.setGuideData(D.hostElement);return H.yield(0,3)}D.ytLazyListBehavior.initialCount=2;return H.return()})};
rc.prototype.onMouseExit=function(){_.r("web_guide_hover_expansion")&&_.Kl(this.hostElement,"yt-guide-mouseleaved",[])};
rc.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
rc.prototype.dataChanged=rc.prototype.dataChanged;rc.prototype.onMouseExit=rc.prototype.onMouseExit;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],rc.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],rc.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.SL.YtLazyListBehavior),_.x("design:type",Object)],rc.prototype,"ytLazyListBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],rc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],rc.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],rc.prototype,"showFooter",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],rc.prototype,"autoFill",void 0);_.d([_.rx("mouseleave"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rc.prototype,"onMouseExit",null);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],rc.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-guide-renderer",disableElementRegistration:!0})],rc);
_.p(rc,"ytd-guide-renderer",function(){if(gWe!==void 0)return gWe;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return gWe=D},{mode:_.Kz("kevlar_poly_si_batch_j073")?1:2});var lc4;var Oc=function(){var D=_.X.apply(this,arguments)||this;D.systemIcons=_.r("kevlar_system_icons");D.frostedGlass=_.r("web_frosted_glass");D.getEndpointForm=function(){return Dxi(D.data)};
return D};
_.P(Oc,_.X);_.q=Oc.prototype;_.q.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.q.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.eo(this.data.formattedTitle))};
_.q.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.q.onDown=function(){this.interaction.triggerDown()};
_.q.onUp=function(){this.interaction.triggerUp()};
_.q.onTap=function(D){if(this.data.serviceEndpoint){var t;_.r("shorts_controller_retrieve_seedless_sequence_v2")&&((t=_.O(this.data.serviceEndpoint,_.C_))==null?void 0:t.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):zMQ(this.data.serviceEndpoint,this);D.preventDefault()}else{var H;((H=this.data)==null?0:H.navigationEndpoint)&&!_.ed(_.bK(D),this.hostElement,["A".toString()])&&_.Gf(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.q.computeActive=function(D,t){if(!D)return!1;var H=D.navigationEndpoint;D=D.serviceEndpoint;if(!H&&!D||!t)return!1;if(H){D=_.O(H,_.UL);var e=_.O(t,_.UL);if(D&&e)return D.browseId===e.browseId&&D.params===e.params;var V;H=(V=_.O(H.commandMetadata,_.i1))==null?void 0:V.url;var b;t=(b=_.O(t.commandMetadata,_.i1))==null?void 0:b.url;return!(!H||!t||H!==t&&H!==_.TW(t))}return this.isActiveShortsTab(D,t)};
_.q.isActiveShortsTab=function(D,t){t=!!_.O(t,_.C_)||!!_.O(t,_.qB);return(!!_.O(D,_.C_)||!!_.O(D,_.qB))&&t};
_.q.computeTitle=function(D,t){return t?"":_.eo(D)};
_.ql.Object.defineProperties(Oc.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Oc.prototype.onTap=Oc.prototype.onTap;Oc.prototype.onUp=Oc.prototype.onUp;Oc.prototype.onDown=Oc.prototype.onDown;Oc.prototype.onActiveStateChange=Oc.prototype.onActiveStateChange;Oc.prototype.dataChanged=Oc.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Oc.prototype,"ytComponentBehavior",void 0);
_.d([_.C(_.BO),_.x("design:type",Object)],Oc.prototype,"ironButtonState",void 0);_.d([_.M(),_.x("design:type",Object)],Oc.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Oc.prototype,"activeEndpoint",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Oc.prototype,"noLabels",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.x("design:type",Boolean)],Oc.prototype,"isActive",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Oc.prototype,"systemIcons",void 0);_.d([_.o5("yt-interaction"),_.x("design:type",Object)],Oc.prototype,"interaction",void 0);_.d([_.m("isActive"),_.x("design:type",Object),_.x("design:paramtypes",[])],Oc.prototype,"ariaSelected",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Oc.prototype,"frostedGlass",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oc.prototype,"dataChanged",null);_.d([_.Os("isActive"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oc.prototype,"onActiveStateChange",null);_.d([_.rx("down"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oc.prototype,"onDown",null);
_.d([_.rx("up"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Oc.prototype,"onUp",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Oc.prototype,"onTap",null);_.d([_.Y({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Oc);
_.p(Oc,"ytd-mini-guide-entry-renderer",function(){if(lc4!==void 0)return lc4;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return lc4=D},{mode:_.Kz("kevlar_poly_si_batch_j063")?1:2});var vWO;var Uc=function(){var D=_.X.apply(this,arguments)||this;D.allVideosCount=0;D.noLabels=_.r("kevlar_mini_guide_no_labels")||_.r("kevlar_modern_mini_guide");D.frostedGlass=_.r("web_frosted_glass");return D};
_.P(Uc,_.X);_.q=Uc.prototype;_.q.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.q.onMouseEnter=function(){_.r("web_guide_hover_expansion")&&_.Kl(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.q.visibleChanged=function(){if(this.visible&&!this.data){var D=_.qS().resolve(_.by(_.Ng));D&&D.setGuideData(this.hostElement)}};
_.q.dataChanged=function(){var D=_.r("kevlar_modern_mini_guide"),t;var H=(t=this.data)==null?void 0:t.items;t=this.allVideosCount;var e=[];if(H){H=_.F(H);for(var V=H.next();!V.done;V=H.next()){V=V.value;var b=void 0;if((b=V.guideSectionRenderer)==null?0:b.items)for(b=void 0,V=_.F((b=V.guideSectionRenderer)==null?void 0:b.items),b=V.next();!b.done;b=V.next()){var a=b.value;if(a.guideEntryRenderer)b=a.guideEntryRenderer,b.isPrimary&&e.push({guideEntryRenderer:b});else if(a.guideCollapsibleSectionEntryRenderer){b=
_.O(a.guideCollapsibleSectionEntryRenderer.headerEntry,Sd4);a=a.guideCollapsibleSectionEntryRenderer.sectionItems;var w=void 0;if((w=b)==null?0:w.isPrimary){b:{if(a&&a.length){var h=a,K=b.formattedTitle;w={};K&&(w.header={panelHeaderViewModel:{title:_.lf(K)}});K=[];h=_.F(h);for(var N=h.next();!N.done;N=h.next()){N=_.O(N.value,Sd4);var k=void 0,T=void 0,c=((k=N)==null?0:k.formattedTitle)?_.lf((T=N)==null?void 0:T.formattedTitle):void 0;k=void 0;T=(k=N)==null?void 0:k.isPrimary;if(N&&c&&!T){c={title:c};
N.navigationEndpoint&&(c.rendererContext={commandContext:{onTap:{innertubeCommand:N.navigationEndpoint}}});k=void 0;if((k=N.icon)==null?0:k.iconType)c.leadingImage={sources:[{clientResource:{imageName:N.icon.iconType||""}}]};K.push({listItemViewModel:c})}}K.length!==0?w.content={listViewModel:{listItems:K}}:w=void 0;if(w){w={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:w}}}};break b}}w=void 0}D&&w&&(b.mouseEnterEndpoint=w,b.mouseLeaveEndpoint={hideSheetCommand:{}});e.push({guideEntryRenderer:b})}if(a)for(b=
_.F(a),a=b.next();!a.done;a=b.next())a=a.value,K=_.O(a,MXi),w=void 0,K=K&&(K.alwaysShow||t)?_.O((w=K)==null?void 0:w.entryRenderer,Sd4):_.O(a,Sd4),a=void 0,((a=K)==null?0:a.isPrimary)&&e.push({guideEntryRenderer:K})}}}}this.miniGuideItems=e};
_.q.activeEndpointChanged=function(){for(var D=this.items.children,t=0;t<D.length;t++)D[t].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.q.registerWithViewTransitionManager=function(){var D=this;_.C7(_.Jy,function(){var t=_.qS().resolve(_.by(_.R_));if(t&&t.isAnyTransitionEnabled){var H={};t.viewTransitionCoordinator.registerElement(D.hostElement,(H.slide="mini-guide-page-transition",H))}})};
Uc.prototype.activeEndpointChanged=Uc.prototype.activeEndpointChanged;Uc.prototype.dataChanged=Uc.prototype.dataChanged;Uc.prototype.visibleChanged=Uc.prototype.visibleChanged;Uc.prototype.onMouseEnter=Uc.prototype.onMouseEnter;_.d([_.C(_.sx),_.x("design:type",Object)],Uc.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Uc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Uc.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Uc.prototype,"ytComponentBehavior",void 0);_.d([_.o5("#items"),_.x("design:type",Object)],Uc.prototype,"items",void 0);_.d([_.M(),_.x("design:type",Object)],Uc.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Boolean)],Uc.prototype,"visible",void 0);_.d([_.M(),_.x("design:type",Object)],Uc.prototype,"miniGuideItems",void 0);_.d([_.M({selector:_.UCK}),_.x("design:type",Object)],Uc.prototype,"allVideosCount",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Uc.prototype,"noLabels",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Uc.prototype,"frostedGlass",void 0);
_.d([_.rx("mouseenter"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uc.prototype,"onMouseEnter",null);_.d([_.mx("visible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uc.prototype,"visibleChanged",null);_.d([_.mx("data","allVideosCount"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uc.prototype,"dataChanged",null);
_.d([_.mx("activeEndpoint"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Uc.prototype,"activeEndpointChanged",null);_.d([_.Y({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Uc);
_.p(Uc,"ytd-mini-guide-renderer",function(){if(vWO===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);vWO=D}D=vWO;return D},{mode:1});var ps4;var d$i=/^[\x00-\x7F]+$/,o1=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(o1,_.X);_.ql.Object.defineProperties(o1.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var D,t=_.eo((D=this.data)==null?void 0:D.handle);if(t)return _.H7("@"+t)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var D=_.eo(this.displayHandle),t,H=_.eo((t=this.data)==null?void 0:t.handleUrl);if(D&&H)return _.H7(H+D)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var D=_.eo(this.displayHandle);if(D&&!d$i.test(D)){var t;return(t=this.data)==null?void 0:t.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var D=_.eo(this.displayHandleUrl),t,H=_.eo((t=this.data)==null?void 0:t.urlInfoText);if(D&&H)return _.H7(H+" "+D)}}});
_.d([_.M(),_.x("design:type",Object)],o1.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],o1.prototype,"displayHandle",null);_.d([_.m("displayHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],o1.prototype,"displayHandleUrl",null);_.d([_.m("displayHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],o1.prototype,"warningText",null);
_.d([_.m("displayHandleUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],o1.prototype,"urlInfoTextWithUrl",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],o1.prototype,"darkerDarkTheme",void 0);_.d([_.Y({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],o1);
_.p(o1,"ytd-handles-claiming-confirm-dialog-content",function(){if(ps4!==void 0)return ps4;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ps4=D},{mode:1});var x$t;var PB=function(){var D=_.X.apply(this,arguments)||this;D.okButtonOverride={style:"mono",type:"outline",size:"M"};return D};
_.P(PB,_.X);PB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
PB.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],PB.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],PB.prototype,"okButtonOverride",void 0);_.d([_.M(),_.x("design:type",Object)],PB.prototype,"data",void 0);_.d([_.Y({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],PB);
_.p(PB,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(x$t!==void 0)return x$t;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return x$t=D},{mode:1});var RYF;var uGH=/^[\x00-\x7F]+$/,nA=function(){var D=_.X.apply(this,arguments)||this;D.isLoading=!1;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(nA,_.X);nA.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var D;this.selectedHandle=(D=this.handleInput)==null?void 0:D.value;this.onSelectedHandleChanged(this.selectedHandle);_.Kl(this.hostElement,"yt-refit-popups-action")}};
_.ql.Object.defineProperties(nA.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var D;return(D=this.data)==null?void 0:D.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.H7("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.H7(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!uGH.test(this.selectedHandle)){var D;return(D=this.data)==null?void 0:D.warningText}}}});
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],nA.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],nA.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],nA.prototype,"selectedHandle",void 0);_.d([_.M(),_.x("design:type",Object)],nA.prototype,"isLoading",void 0);_.d([_.M(),_.x("design:type",Function)],nA.prototype,"onSelectedHandleChanged",void 0);_.d([_.o5("#channel-handle-input"),_.x("design:type",Object)],nA.prototype,"handleInput",void 0);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],nA.prototype,"handleUrlPrefix",null);_.d([_.m("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],nA.prototype,"displayHandle",null);_.d([_.m("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],nA.prototype,"displayHandleUrl",null);_.d([_.m("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],nA.prototype,"warningText",null);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],nA.prototype,"darkerDarkTheme",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.d([_.Y({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],nA);
_.p(nA,"ytd-handles-claiming-edit-dialog-content",function(){if(RYF!==void 0)return RYF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return RYF=D},{mode:1});var W5O;var CA=function(){var D=_.X.apply(this,arguments)||this;D.actionButtonOverride={style:"mono",type:"filled",size:"M"};D.cancelButtonOverride={style:"mono",type:"text",size:"M"};D.selectButtonDisabled=!1;D.isLoading=!1;D.hasSelectedHandleEventListener=!1;D.selectedHandleChanged=function(t){D.selectedHandle=t};
return D};
_.P(CA,_.X);_.q=CA.prototype;_.q.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.q.onDataChanged=function(){var D,t;this.selectedHandle=(t=_.O((D=this.data)==null?void 0:D.inputField,aMb))==null?void 0:t.handle};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.onCancel=function(){this.selectedHandle="";_.ET(this.hostElement,"yt-close-popup-action",[this.is])};
_.q.onSelectHandle=function(){var D=this;if(this.selectedHandle!==void 0){var t;((t=this.data)==null?void 0:t.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(H,e){if(e.newHandleUpdateStatus!==void 0&&e.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&e.newHandleUpdateStatus.errorMessage)_.y2(D.hostElement,_.eo(e.newHandleUpdateStatus.errorMessage)),
D.isLoading=!1;else{var V;if((V=D.data)==null?0:V.onChannelUpdateSuccess){H=D.data.onChannelUpdateSuccess;var b,a;if(e=(b=_.O(H,_.RW))==null?void 0:(a=b.popup)==null?void 0:a.handlesClaimingConfirmDialogRenderer)e.handle=_.H7(D.selectedHandle);D.ytComponentBehavior.resolveCommand(H);_.ET(D.hostElement,"yt-close-popup-action",[D.is])}else D.isLoading=!1}},
onServerError:function(){var H;D.content&&((H=D.content)==null?0:H.handleInput)&&D.content.handleInput.validate();D.isLoading=!1;_.y2(D.hostElement,_.OT("TRY_AGAIN_LATER"))}}}))}};
_.q.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
CA.prototype.onDataChanged=CA.prototype.onDataChanged;CA.prototype.onSelectedHandleChanged=CA.prototype.onSelectedHandleChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],CA.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],CA.prototype,"actionButtonOverride",void 0);_.d([_.M(),_.x("design:type",Object)],CA.prototype,"cancelButtonOverride",void 0);_.d([_.M(),_.x("design:type",Object)],CA.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",String)],CA.prototype,"selectedHandle",void 0);_.d([_.M(),_.x("design:type",Object)],CA.prototype,"selectButtonDisabled",void 0);_.d([_.M(),_.x("design:type",Object)],CA.prototype,"isLoading",void 0);_.d([_.M(),_.x("design:type",Object)],CA.prototype,"hasSelectedHandleEventListener",void 0);_.d([_.M(),_.x("design:type",Object)],CA.prototype,"handleInput",void 0);
_.d([_.Os("selectedHandle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CA.prototype,"onSelectedHandleChanged",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],CA.prototype,"onDataChanged",null);_.d([_.o5("ytd-handles-claiming-edit-dialog-content"),_.x("design:type",Object)],CA.prototype,"content",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],CA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Y({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],CA);
_.p(CA,"ytd-handles-claiming-edit-dialog-renderer",function(){if(W5O!==void 0)return W5O;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return W5O=D},{mode:1});var IcF;var mq=function(){return _.X.apply(this,arguments)||this};
_.P(mq,_.X);_.ql.Object.defineProperties(mq.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null?0:D.handle){var t;return _.H7("@"+_.eo((t=this.data)==null?void 0:t.handle))}}}});
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],mq.prototype,"formattedHandle",null);_.d([_.M(),_.x("design:type",Object)],mq.prototype,"data",void 0);_.d([_.Y({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],mq);
_.p(mq,"ytd-handles-claiming-radio-option-renderer",function(){if(IcF!==void 0)return IcF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return IcF=D},{mode:1});var Q_O;var ytF=/^[\x00-\x7F]+$/,Mm=function(){var D=_.X.apply(this,arguments)||this;D.initialRadioIndex="-1";D.isLoading=!1;D.darkerDarkTheme=_.r("web_darker_dark_theme");D.maybeSubmitFeedback=function(){D.feedbackSurveyRenderer.submitSurvey()};
return D};
_.P(Mm,_.X);Mm.prototype.updateSelectedHandleIndexFromBinding=function(D){this.selectedRadioIndex=+D.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(D)};
Mm.prototype.selectedHandleChanged=function(D){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var t;this.selectedHandle=(t=this.handleInput)==null?void 0:t.value;this.onSelectedHandleChanged(D)}};
_.ql.Object.defineProperties(Mm.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var D;return this.ytRendererBehavior.getSimpleString((D=this.data)==null?void 0:D.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.H7("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.H7(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!ytF.test(this.selectedHandle)){var D;return(D=this.data)==null?void 0:D.warningText}}}});
_.d([_.M(),_.x("design:type",Object)],Mm.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Mm.prototype,"initialRadioIndex",void 0);_.d([_.M(),_.x("design:type",Number)],Mm.prototype,"selectedRadioIndex",void 0);_.d([_.M(),_.x("design:type",String)],Mm.prototype,"selectedHandle",void 0);_.d([_.M(),_.x("design:type",Object)],Mm.prototype,"isLoading",void 0);_.d([_.M(),_.x("design:type",Function)],Mm.prototype,"onSelectedHandleChanged",void 0);
_.d([_.M(),_.x("design:type",Function)],Mm.prototype,"onSelectedRadioIndexChanged",void 0);_.d([_.o5("#channel-handle-input"),_.x("design:type",Object)],Mm.prototype,"handleInput",void 0);_.d([_.o5("ytd-feedback-survey-renderer"),_.x("design:type",Object)],Mm.prototype,"feedbackSurveyRenderer",void 0);_.d([_.m("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Mm.prototype,"radioButtonLength",null);
_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mm.prototype,"handleUrlPrefix",null);_.d([_.m("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mm.prototype,"displayHandle",null);_.d([_.m("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mm.prototype,"displayHandleUrl",null);_.d([_.m("selectedHandle"),_.x("design:type",Object),_.x("design:paramtypes",[])],Mm.prototype,"warningText",null);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Mm.prototype,"darkerDarkTheme",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Mm.prototype,"ytRendererBehavior",void 0);_.d([_.Y({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Mm);
_.p(Mm,"ytd-handles-claiming-select-dialog-content",function(){if(Q_O!==void 0)return Q_O;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Q_O=D},{mode:1});var BGg;var Sq=function(){var D=_.X.apply(this,arguments)||this;D.actionButtonOverride={style:"mono",type:"filled",size:"M"};D.cancelButtonOverride={style:"mono",type:"text",size:"M"};D.initialRadioIndex="-1";D.selectButtonDisabled=!1;D.isLoading=!1;D.selectedRadioIndexChanged=function(t){D.selectedRadioIndex=Number(t.detail.value)};
D.selectedHandleChanged=function(t){D.selectedHandle=t.detail.value};
D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(Sq,_.X);_.q=Sq.prototype;_.q.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.q.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.q.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Kl(this.hostElement,"yt-refit-popups-action")};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.ET(this.hostElement,"yt-close-popup-action",[this.is])};
_.q.onSelectHandle=function(){var D=this;if(this.selectedHandle!==void 0){var t;((t=this.data)==null?void 0:t.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(H,e){if(e.newHandleUpdateStatus!==void 0&&e.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&e.newHandleUpdateStatus.errorMessage)_.y2(D.hostElement,_.eo(e.newHandleUpdateStatus.errorMessage)),
D.isLoading=!1;else{var V;if((V=D.data)==null?0:V.onChannelUpdateSuccess){H=D.data.onChannelUpdateSuccess;e=_.O(H,_.RW);var b;if(e==null?0:(b=e.popup)==null?0:b.handlesClaimingConfirmDialogRenderer)e.popup.handlesClaimingConfirmDialogRenderer.handle=_.H7(D.selectedHandle);D.ytComponentBehavior.resolveCommand(H);_.ET(D.hostElement,"yt-close-popup-action",[D.is])}else D.isLoading=!1}},
onServerError:function(){if(D.selectedRadioIndex===D.radioButtonLength){var H;D.content&&((H=D.content)==null?0:H.handleInput)&&D.content.handleInput.validate()}D.isLoading=!1;_.y2(D.hostElement,_.OT("TRY_AGAIN_LATER"))}}}))}};
_.q.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var D,t;this.selectedHandle=(D=this.content)==null?void 0:(t=D.handleInput)==null?void 0:t.value}else this.selectedRadioIndex>=0&&((D=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(D==null?void 0:D.handle):this.selectedHandle=void 0)};
_.q.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.q.getRadioItem=function(D){if(this.radioButtonLength>D&&D>=0)return _.O(this.data.radioButton[D],OcH)};
_.ql.Object.defineProperties(Sq.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var D;return(((D=this.data)==null?void 0:D.radioButton)||[]).length}}});
Sq.prototype.onSelectedHandleChanged=Sq.prototype.onSelectedHandleChanged;Sq.prototype.onSelectedHandleIndexChanged=Sq.prototype.onSelectedHandleIndexChanged;Sq.prototype.onDataChanged=Sq.prototype.onDataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Sq.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Sq.prototype,"actionButtonOverride",void 0);_.d([_.M(),_.x("design:type",Object)],Sq.prototype,"cancelButtonOverride",void 0);
_.d([_.M(),_.x("design:type",Object)],Sq.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Sq.prototype,"initialRadioIndex",void 0);_.d([_.M(),_.x("design:type",Number)],Sq.prototype,"selectedRadioIndex",void 0);_.d([_.M(),_.x("design:type",String)],Sq.prototype,"selectedHandle",void 0);_.d([_.M(),_.x("design:type",Object)],Sq.prototype,"selectButtonDisabled",void 0);_.d([_.M(),_.x("design:type",Object)],Sq.prototype,"isLoading",void 0);
_.d([_.m("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Sq.prototype,"radioButtonLength",null);_.d([_.o5("ytd-handles-claiming-select-dialog-content"),_.x("design:type",Object)],Sq.prototype,"content",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sq.prototype,"onDataChanged",null);
_.d([_.Os("selectedRadioIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sq.prototype,"onSelectedHandleIndexChanged",null);_.d([_.Os("selectedHandle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Sq.prototype,"onSelectedHandleChanged",null);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Sq.prototype,"darkerDarkTheme",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Sq.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Sq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Y({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Sq);
_.p(Sq,"ytd-handles-claiming-select-dialog-renderer",function(){if(BGg!==void 0)return BGg;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return BGg=D},{mode:1});var zYF;var DWH;var X1=function(){return _.X.apply(this,arguments)||this};
_.P(X1,_.X);X1.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],X1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],X1.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],X1.prototype,"data",void 0);_.d([_.Y({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],X1);
_.p(X1,"ytd-hotkey-dialog-section-option-renderer",function(){if(DWH!==void 0)return DWH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return DWH=D},{mode:1});var tUF;var fA=function(){return _.X.apply(this,arguments)||this};
_.P(fA,_.X);fA.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],fA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],fA.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],fA.prototype,"data",void 0);_.d([_.Y({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],fA);
_.p(fA,"ytd-hotkey-dialog-section-renderer",function(){if(tUF!==void 0)return tUF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return tUF=D},{mode:1});var LA=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(LA,_.X);LA.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],LA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],LA.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],LA.prototype,"darkerDarkTheme",void 0);_.d([_.Y({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],LA);
_.p(LA,"ytd-hotkey-dialog-content",function(){if(zYF!==void 0)return zYF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return zYF=D},{mode:1});var Hmi;var Ad=function(){return _.X.apply(this,arguments)||this};
_.P(Ad,_.X);Ad.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var D=document.querySelector("ytd-hotkey-dialog-content #scrollable");D&&(D.dialogElement=this.hostElement.parentElement)};
Ad.prototype.onCloseTap=function(){_.ET(this.hostElement,"yt-close-popup-action")};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ad.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ad.prototype,"data",void 0);_.d([_.Y({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Ad);
_.p(Ad,"ytd-hotkey-dialog-renderer",function(){if(Hmi!==void 0)return Hmi;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Hmi=D},{mode:1});var eab;var Jd=function(){return _.X.apply(this,arguments)||this};
_.P(Jd,_.X);Jd.prototype.onYtServiceRequestError=function(){if(this.blocked){var D;var t=(D=this.data)==null?void 0:D.defaultServiceEndpoint}else{var H;t=(H=this.data)==null?void 0:H.toggledServiceEndpoint}var e;(t=(e=_.O(t,_.Gd9))==null?void 0:e.onFailureAction)&&this.ytComponentBehavior.resolveCommand(t);this.updateBlockState(!this.blocked)};
Jd.prototype.onYtToggleButton=function(D){this.updateBlockState(D.detail.toggled)};
Jd.prototype.updateBlockState=function(D){if(D!==this.blocked){var t=this.blockedEntityKey;t&&this.ytdReduxBehavior.dispatch(_.nf("blockStateEntity",t,{key:t,blocked:D}));this.set("data.isToggled",D)}};
_.ql.Object.defineProperties(Jd.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)}}});
Jd.prototype.onYtToggleButton=Jd.prototype.onYtToggleButton;Jd.prototype.onYtServiceRequestError=Jd.prototype.onYtServiceRequestError;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Jd.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Jd.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Jd.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Jd.prototype,"blockedEntityKey",void 0);
_.d([_.M({selectorArgs:["blockedEntityKey"],selector:function(D,t){return _.jR(D.entities,"blockStateEntity",t)}}),
_.x("design:type",Object)],Jd.prototype,"blockStateEntity",void 0);_.d([_.m("data","blockStateEntity"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Jd.prototype,"blocked",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Jd.prototype,"onYtServiceRequestError",null);
_.d([_.rx("yt-toggle-button"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Jd.prototype,"onYtToggleButton",null);_.d([_.Y({is:"ytd-block-button",disableElementRegistration:!0})],Jd);
_.p(Jd,"ytd-block-button",function(){if(eab!==void 0)return eab;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return eab=D},
{mode:1});var VUi;var bmF;var Y4=function(){return _.X.apply(this,arguments)||this};
_.P(Y4,_.X);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Y4.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Y4.prototype,"data",void 0);_.d([_.Y({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],Y4);
_.p(Y4,"ytd-kids-blocklist-picker-item-renderer",function(){if(bmF!==void 0)return bmF;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return bmF=D},{mode:1});var l$=function(){return _.X.apply(this,arguments)||this};
_.P(l$,_.X);l$.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],l$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],l$.prototype,"data",void 0);_.d([_.Y({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],l$);
_.p(l$,"ytd-kids-blocklist-picker-content",function(){if(VUi!==void 0)return VUi;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return VUi=
D},{mode:_.Kz("kevlar_poly_si_batch_j025")?1:2});var q3t;var vB=function(){var D=_.X.apply(this,arguments)||this;D.hasAnyRequestSucceeded=!1;D.hasAnyRequestFailed=!1;D.numPendingRequests=0;return D};
_.P(vB,_.X);_.q=vB.prototype;_.q.attached=function(){this.hostElement.setAttribute("dialog","")};
_.q.onDoneButtonTap=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.q.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.q.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.q.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.q.onPopupClosed=function(D){var t,H;if(((t=D.detail)==null?void 0:(H=t.popup)==null?void 0:H.is)==="tp-yt-paper-dialog"){var e;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((e=this.data)==null?0:e.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.FO(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
vB.prototype.onPopupClosed=vB.prototype.onPopupClosed;vB.prototype.onYtServiceRequestError=vB.prototype.onYtServiceRequestError;vB.prototype.onYtServiceRequestCompleted=vB.prototype.onYtServiceRequestCompleted;vB.prototype.onYtServiceRequestSent=vB.prototype.onYtServiceRequestSent;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],vB.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],vB.prototype,"data",void 0);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vB.prototype,"onYtServiceRequestSent",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vB.prototype,"onYtServiceRequestCompleted",null);
_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],vB.prototype,"onYtServiceRequestError",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],vB.prototype,"onPopupClosed",null);_.d([_.Y({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],vB);
_.p(vB,"ytd-kids-blocklist-picker-renderer",function(){if(q3t!==void 0)return q3t;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return q3t=D},{mode:1});var FUZ;var anH;var pA=function(){return _.X.apply(this,arguments)||this};
_.P(pA,_.X);pA.prototype.setTip=function(D){var t=this;this.data&&(this.tip=yrF(IZH.getInstance(),D,this.data),_.Vi(this,function(){_.Gf(t.hostElement,"yt-refit")}))};
pA.prototype.clearTip=function(){this.tip=void 0};
pA.prototype.computeHidden=function(D){return!D};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],pA.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.x("design:type",Boolean)],pA.prototype,"hidden",void 0);_.d([_.M(),_.x("design:type",Object)],pA.prototype,"tip",void 0);_.d([_.Y({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],pA);
_.p(pA,"ytd-menu-popup-tip-renderer",function(){if(anH!==void 0)return anH;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);
return anH=D},{mode:1});var wRg;var dc=function(){var D=_.X.apply(this,arguments)||this;D.useIcons=!1;D.systemIcons=_.r("kevlar_system_icons");D.useListItemStyles=_.r("web_list_item_style_for_menu_items");return D};
_.P(dc,_.X);_.q=dc.prototype;_.q.onFocus=function(){var D;(D=_.Kg(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.q.onTap=function(){var D=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(D&&_.O(D,_.ch))this.componentBehavior.resolveCommand(D),this.updateToggledStateInEntity();else if(D){this.componentBehavior.resolveCommand(D)||_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}});var t;((t=_.O(D,_.$0))==null?void 0:t.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.q.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.q.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.q.updateToggledStateInEntity=function(){var D=this.data.toggleMenuServiceItemEntityKey,t=!this.data.isToggled;D&&this.ytdReduxBehavior.dispatch(_.nf("toggleMenuServiceItemEntity",D,{key:D,isToggled:t}))};
_.q.computeIcon=function(D,t,H){return(D=D?H:t)&&D.iconType?_.cc(D.iconType):""};
_.q.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.q.isIconActive=function(D){return!_.r("toggle_menu_active_icon_killswitch")&&D};
_.ql.Object.defineProperties(dc.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return((D=this.data)==null?0:D.isToggled)?(t=this.data)==null?void 0:t.toggledText:(H=this.data)==null?void 0:H.defaultText}}});
dc.prototype.toggledStateEntityChanged=dc.prototype.toggledStateEntityChanged;dc.prototype.onYtServiceRequestCompleted=dc.prototype.onYtServiceRequestCompleted;dc.prototype.onTap=dc.prototype.onTap;dc.prototype.onFocus=dc.prototype.onFocus;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],dc.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],dc.prototype,"componentBehavior",void 0);
_.d([_.C(_.sx),_.x("design:type",Object)],dc.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],dc.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],dc.prototype,"useIcons",void 0);_.d([_.M({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.x("design:type",String)],dc.prototype,"icon",void 0);
_.d([_.M({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(D,t){return _.jR(D.entities,"toggleMenuServiceItemEntity",t)}}),
_.x("design:type",Object)],dc.prototype,"toggleMenuServiceItemEntity",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],dc.prototype,"systemIcons",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],dc.prototype,"useListItemStyles",void 0);_.d([_.rx("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dc.prototype,"onFocus",null);
_.d([_.m("data.isToggled"),_.x("design:type",Object),_.x("design:paramtypes",[])],dc.prototype,"toggleButtonText",null);_.d([_.rx("tap"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dc.prototype,"onTap",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dc.prototype,"onYtServiceRequestCompleted",null);
_.d([_.Os("toggleMenuServiceItemEntity.isToggled","data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],dc.prototype,"toggledStateEntityChanged",null);_.d([_.Y({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],dc);
_.p(dc,"ytd-toggle-menu-service-item-renderer",function(){if(wRg!==void 0)return wRg;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return wRg=D},{mode:1});var ZmF;var x4=function(){return _.X.apply(this,arguments)||this};
_.P(x4,_.X);x4.prototype.onFocus=function(){var D;(D=_.Kg(this.hostElement).querySelector("tp-yt-paper-item"))==null||D.focus()};
_.ql.Object.defineProperties(x4.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.dw(this.data.iconUrl)}}});
x4.prototype.onFocus=x4.prototype.onFocus;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],x4.prototype,"rendererBehavior",void 0);_.d([_.C(_.pE.YtEndpointBehavior),_.x("design:type",Object)],x4.prototype,"ytEndpointBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],x4.prototype,"data",void 0);_.d([_.rx("focus"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],x4.prototype,"onFocus",null);
_.d([_.m("data.iconUrl"),_.x("design:type",Object),_.x("design:paramtypes",[])],x4.prototype,"imageSource",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],x4);
_.p(x4,"ytd-menu-custom-icon-item-renderer",function(){if(ZmF!==void 0)return ZmF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ZmF=D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});_.hB(_.Zq,"yt-list-item-view-model",{props:{data:_.ij,isMenuItem:_.ij,isCompact:_.ij,onTap:_.wm,trailingAccessory:_.wm,hideSelectionTextChevron:_.ij,disabled:_.ij,inPopup:_.ij,disableHorizontalPadding:_.ij,isOverlay:_.ij,isToggled:_.ij,ariaLabel:_.ij,ariaPressed:_.ij}});var R1=function(){var D=_.X.apply(this,arguments)||this;D.disableBackdropFilter=_.r("web_disable_backdrop_filter");return D};
_.P(R1,_.X);_.q=R1.prototype;
_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.q.computeAriaLabel=function(D){return D};
_.q.onPopupOpened=function(){this.items.selected=0;for(var D=_.F(_.Kg(this.items).children),t=D.next();!t.done;t=D.next())t.value.popupPositionTarget=this.positionTarget;if(D=this.popupTip||void 0)D.setTip(this.source||""),this.source=void 0;this.veData&&(D=_.v3())&&_.zf(D,[this.veData])};
_.q.onPopupClosed=function(){var D=this.popupTip||void 0;D&&D.clearTip()};
_.q.onIronActivate=function(D){this.shouldPersist(D)||_.ET(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(D=_.v3())&&_.tV(D,this.veData)};
_.q.shouldPersist=function(D){var t,H;if(((t=D.detail)==null?void 0:t.selected)===void 0||(H=this.data)==null||!H.items)return!1;var e,V;return!((V=(e=this.data.items[D.detail.selected])==null?void 0:e.toggleMenuServiceItemRenderer)==null||!V.persistentOnMenuPopup)};
_.q.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(D){return D.menuNavigationItemRenderer?!!D.menuNavigationItemRenderer.icon:D.menuServiceItemRenderer?!!D.menuServiceItemRenderer.icon:D.menuConditionalServiceItemRenderer?!!D.menuConditionalServiceItemRenderer.icon:D.menuConditionalNavigationItemRenderer?!!D.menuConditionalNavigationItemRenderer.icon:D.toggleMenuServiceItemRenderer?!!D.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
R1.prototype.onPopupClosed=R1.prototype.onPopupClosed;R1.prototype.onPopupOpened=R1.prototype.onPopupOpened;_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],R1.prototype,"ytEventForwardingBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],R1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],R1.prototype,"ytRendererBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],R1.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],R1.prototype,"veData",void 0);_.d([_.M({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.x("design:type",String)],R1.prototype,"ariaLabel",void 0);_.d([_.M({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],R1.prototype,"useIcons",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],R1.prototype,"disableBackdropFilter",void 0);_.d([_.o5("#items"),_.x("design:type",Object)],R1.prototype,"items",void 0);_.d([_.o5("ytd-menu-popup-tip-renderer"),_.x("design:type",Object)],R1.prototype,"popupTip",void 0);_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R1.prototype,"onPopupOpened",null);
_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],R1.prototype,"onPopupClosed",null);_.d([_.Y({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],R1);
_.p(R1,"ytd-menu-popup-renderer",function(){if(FUZ!==void 0)return FUZ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return FUZ=D},{mode:1});var sdF;var haF=_.l(function(D){D=_.FQ(D,{icon:void 0});var t=D.data;D=D.icon;var H=function(){return t().iconBadgeText},e={},V=_.jQ("yt-spec-icon-badge-shape",function(){a:switch(t().iconBadgeType){case "notification":var b="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":b="yt-spec-icon-badge-shape--type-cart";break a;default:b=""}return b},function(){a:switch(t().iconBadgeStyle){case "overlay":var b="yt-spec-icon-badge-shape--style-overlay";
break a;default:b=""}return b},(e["yt-spec-icon-badge-shape--text-size-small"]=function(){var b=H();
return!!((b==null?0:b.length)&&b.length>2)},e));
return _.G("yt-icon-badge-shape",null,_.G(_.E,{cond:D,then:function(b){return _.G("div",{class:V},_.G("div",{class:"yt-spec-icon-badge-shape__icon"},_.G(_.U7,{icon:b})),_.G(_.E,{cond:H,then:function(a){return _.G("div",{class:"yt-spec-icon-badge-shape__badge"},a)}}))}}))},"Ei");
haF.idomCompat=!0;_.hB(haF,"yt-icon-badge-shape",{props:{data:_.ij,icon:_.ij}});var u$=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};D.unseenCount=0;D.isOverlay=!1;return D};
_.P(u$,_.X);_.q=u$.prototype;_.q.attached=function(){var D=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(t){D.onServiceWorkerMessage(t)})};
_.q.onDataChanged=function(){this.isAttached&&!this.JSC$20512_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20512_lastData=this.data};
_.q.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.q.computeIcon=function(){var D,t;return(D=this.data)==null?void 0:(t=D.icon)==null?void 0:t.iconType};
_.q.onServiceWorkerMessage=function(D){D.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.q.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.O(this.data.updateUnseenCountEndpoint,_.$0)&&_.O(this.data.updateUnseenCountEndpoint,_.$0).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.q.handleUpdateNotificationsUnseenCountAction=function(D){var t=this;D=_.O(D,K2b);D!=null&&D.unseenCount&&D.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(D.unseenCount),_.Jy.addLowPriorityJob(function(){t.data.updateUnseenCountEndpoint&&t.ytComponentBehavior.resolveCommand(t.data.updateUnseenCountEndpoint)},D.timeoutMs))};
_.q.onClick=function(){_.Gf(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var D=_.Kl(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),t=this.data.menuRequest;D&&D.length===1&&D[0]?_.ET(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):t&&this.ytComponentBehavior.resolveCommand(t)};
_.q.handleTopbarMenuClosedAction=function(D){D==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.q.toggleIconState=function(D){this.iconButton&&(this.iconButton.pressed=D)};
_.q.sendUnseenCountRequest=function(D){var t=this;_.C7(_.Jy,function(){t.ytComponentBehavior.resolveCommand(D)})};
_.q.updateCountUI=function(D){this.set("unseenCount",D<9?D:"9+")};
_.ql.Object.defineProperties(u$.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
u$.prototype.handleUpdateNotificationsUnseenCountAction=u$.prototype.handleUpdateNotificationsUnseenCountAction;u$.prototype.onDataChanged=u$.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],u$.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.oy),_.x("design:type",Object)],u$.prototype,"ytdOpenPopupBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],u$.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],u$.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],u$.prototype,"unseenCount",void 0);_.d([_.M(),_.x("design:type",Object)],u$.prototype,"isOverlay",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],u$.prototype,"showTooltips",void 0);_.d([_.o5("yt-icon-button"),_.x("design:type",Object)],u$.prototype,"iconButton",void 0);
_.d([_.m("unseenCount"),_.x("design:type",Object),_.x("design:paramtypes",[])],u$.prototype,"showNotificationCount",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],u$.prototype,"onDataChanged",null);_.d([_.rx("yt-update-notifications-unseen-count-action"),_.x("design:type",Function),_.x("design:paramtypes",[Object]),_.x("design:returntype")],u$.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.d([_.Y({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],u$);
_.p(u$,"ytd-notification-topbar-button-renderer",function(){if(sdF!==void 0)return sdF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return sdF=D},{mode:_.Kz("kevlar_poly_si_batch_j025")?1:2});var GjO;var WB=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return D};
_.P(WB,_.X);WB.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}}}}}};
WB.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
WB.prototype.onDarkModeToggled=function(D){this.dark=D};
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],WB.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],WB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],WB.prototype,"data",void 0);_.d([_.M({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],WB.prototype,"dark",void 0);
_.d([_.Y({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],WB);
_.p(WB,"yt-pdg-buy-flow-header-renderer",function(){if(GjO!==void 0)return GjO;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return GjO=D},{mode:1});var Ejt;var KUv;var I1=function(){var D=_.X.apply(this,arguments)||this;D.immediateValue=0;D.isDarkTheme=!1;D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.P(I1,_.X);_.q=I1.prototype;_.q.created=function(){_.bq.requestAvailability()};
_.q.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.q.dataChanged=function(){var D=_.Kg(this.hostElement).querySelector("#color-slider");D.immediateValue&&this.updateSliderKnobAndGradientStyles(D.immediateValue);this.data.notches[0].knobColorArgb&&_.jZ(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Qk(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.YC("HTML_DIR")==="rtl"&&_.Kg(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.q.onSliderImmediateChange=function(){var D=_.Kg(this.hostElement).querySelector("#color-slider");D.dragging&&(D.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(D.immediateValue),this.updateSliderKnobAndGradientStyles(D.immediateValue)),this.updateSliderAria())};
_.q.onSliderChange=function(){var D=_.Kg(this.hostElement).querySelector("#color-slider");D.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(D.immediateValue),this.updateSliderKnobAndGradientStyles(D.immediateValue));this.updateSliderAria()};
_.q.updateSliderAria=function(){var D=_.Kg(this.hostElement).querySelector("#color-slider"),t=_.Kg(this.hostElement).querySelector("#color-slider");t=_.eo(this.data.notches[t.immediateValue].tierValue);_.T6V()&&_.Gf(this.hostElement,"iron-announce",{text:t});D.setAttribute("aria-valuetext",t)};
_.q.updateSuperThanksSelectedTierEntity=function(D){if(D!==this.immediateValue){var t,H,e=this==null?void 0:(t=this.data)==null?void 0:(H=t.superThanksSelectedTierEntity)==null?void 0:H.key;e&&e.length>0&&this.ytdReduxBehavior.dispatch(_.nf("superThanksSelectedTierEntity",e,{key:e,index:D}))}};
_.q.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.q.updateSliderKnobAndGradientStyles=function(D){this.immediateValue=D;D=this.data.notches[D];if(D==null?0:D.knobColorArgb)var t={"--ytd-pdg-color-slider-knob-color":_.Qk(D.knobColorArgb)};(D==null?0:D.linearGradientCssStyle)&&t!==null&&(t=Object.assign({},t,{"--ytd-pdg-color-slider-active-color":D==null?void 0:D.linearGradientCssStyle}));t!==null&&_.jZ(this.hostElement,t)};
I1.prototype.onSliderChange=I1.prototype.onSliderChange;I1.prototype.onSliderImmediateChange=I1.prototype.onSliderImmediateChange;I1.prototype.dataChanged=I1.prototype.dataChanged;_.d([_.M(),_.x("design:type",Object)],I1.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],I1.prototype,"immediateValue",void 0);_.d([_.M(),_.x("design:type",Number)],I1.prototype,"maxMarkers",void 0);
_.d([_.M({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:cGg}),_.x("design:type",Object)],I1.prototype,"superThanksSelectedTierEntity",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],I1.prototype,"isDarkTheme",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],I1.prototype,"ytdReduxBehavior",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],I1.prototype,"dataChanged",null);
_.d([_.rx("immediate-value-change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],I1.prototype,"onSliderImmediateChange",null);_.d([_.rx("change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],I1.prototype,"onSliderChange",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],I1);
_.p(I1,"ytd-pdg-color-slider-renderer",function(){if(KUv!==void 0)return KUv;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return KUv=D},{mode:1});var NsH;var kjg;var QH=null;
_.gx({is:"ytd-comment-input",_template:function(){if(kjg!==void 0)return kjg;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return kjg=D},
behaviors:[_.R9K.YtHostElementBehavior,_.l9,_.Eg.YtComponentBehavior,_.MK.YtRendererstamperBehavior,_.Bb6.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 _.ND}},
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",_.iK(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;_.ML();this.focus()},
detached:function(){document.removeEventListener("tap",_.iK(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(D){D=D.detail;D=D.isCustomEmoji?D.shortcuts[0]:D.emojiId;var t=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(t,D);this.maybeUpdateTextDirection_();_.Gf(this.hostElement,"input")},
getInputRange_:function(){var D=_.EE();if(D){D=D.getBrowserRangeObject();for(var t=D.commonAncestorContainer;t;){if(t===this.getEditableTextArea_())return D;t=t.parentNode}}D=this.getEditableTextArea_();D=_.t7(D,D.childNodes.length);D.select();return D.getBrowserRangeObject()},
insertTextWithEmojis_:function(D,t,H){(t=this.emojiManager.createDocumentFragment(t,!0,!1,H===void 0?!0:H))&&t.childNodes.length!==0&&(D.collapsed||D.deleteContents(),H=t.lastChild,D.insertNode(t),_.j5w(H).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var D=_.EE();if(D){var t=D.JSC$11351_getStartNode(),H=D.JSC$11351_getEndNode();if(tdZ(t)&&tdZ(H)){var e=D.JSC$11351_getStartOffset(),V;if(_.TE&&t.nodeType===Node.ELEMENT_NODE&&(V=_.jvn(t)))_.t7(V,0).select();else{V=b0(t)?t:_.xz(t,b0);var b=b0(H)?H:_.xz(H,b0);if(V||b)if(D.isCollapsed()){if(t.nodeType===Node.TEXT_NODE){D=!0;e===t.length&&(D=!1);if(QH==="end"||QH==="right")D=!1;t=t.parentNode;D=[].concat(_.A6(t.parentNode.childNodes)).indexOf(t)+(D?0:1);_.t7(t.parentNode,
D).select()}}else V?V.previousSibling&&V.previousSibling.length>0?_.HO(H,D.JSC$11351_getEndOffset(),V.previousSibling,V.previousSibling.length-1).select():(t=document.createTextNode("\u200b"),V.parentNode.insertBefore(t,V),_.HO(H,D.JSC$11351_getEndOffset(),t,0).select()):b&&(b.nextSibling&&b.nextSibling.length>0?_.HO(t,D.JSC$11351_getStartOffset(),b.nextSibling,1).select():(H=document.createTextNode("\u200b"),b.parentNode.insertBefore(H,b.nextSibling),_.HO(t,D.JSC$11351_getStartOffset(),H,H.length).select()));
QH=null}}else QH=null}else QH=null},
leftKeyPressed_:function(){QH="left"},
rightKeyPressed_:function(){QH="right"},
endKeyPressed_:function(){QH="end"},
maybeDeleteChip_:function(){var D=FtF(!0);if(D){var t=_.EE(),H=t.JSC$11351_getStartNode();t=t.JSC$11351_getStartOffset();_.QO(H,t,D,D.childNodes.length).select()}},
maybeBackspaceChip_:function(){var D=FtF(!1);if(D){var t=_.EE(),H=t.JSC$11351_getStartNode();t=t.JSC$11351_getStartOffset();_.QO(H,t,D,0).select()}},
maybeBackspaceChipWordMode_:function(D){var t=_.EE();if(t.isCollapsed()){var H=t.JSC$11351_getStartNode();t=t.JSC$11351_getStartOffset();var e=agQ(H,t,!0);e&&(_.QO(H,t,e,0).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(D){var t=_.EE();if(t.isCollapsed()){var H=t.JSC$11351_getStartNode();t=t.JSC$11351_getStartOffset();var e=agQ(H,t,!1);e&&(_.QO(H,t,e,e.childNodes.length).select(),document.execCommand("delete"),D.preventDefault(),D.stopImmediatePropagation())}},
onContentClick:function(D){D.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(D){D.defaultPrevented||D.currentTarget.tagName==="YTD-COMMENT-INPUT"&&b0(D.target)&&D.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Kg(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Kg(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(D,t){D=eoO(D,this.emojiManager,t).cloneNode(!0);for(t=D.firstChild;t;)if(t.nodeType!==1)t=t.nextSibling;else switch(t.tagName){case "BR":var H=_.dq();_.nQm(H,t);t=H.nextSibling;break;case "DIV":(H=t.lastChild)&&t.nextSibling&&_.Wr(_.dq(),H);t.previousSibling&&(t.previousSibling.nodeType===1||t.previousSibling.nodeType===3&&!t.previousSibling.textContent.endsWith("\n"))&&_.ut(_.dq(),t);H&&H.nodeName==="BR"&&_.UH(H);H=t;t.hasChildNodes()?(t=t.firstChild,
_.CY3(H)):(t=t.nextSibling,_.UH(H));break;default:t=t.nextSibling}return w5i(D)},
setTextAreaValue:function(D){D||(D="");var t=this.getEditableFormattedString_();t.text="";this.getEditableTextArea_().innerText="";typeof D==="string"&&(D={runs:[{text:D}]});t.text=D},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();QH=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var D=this.getEditableTextArea_();D&&(_.t7(D,D.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.YC("HTML_DIR")==="rtl"){var D=this.getEditableTextArea_(),t=this.getTextAreaValue()!==""?"auto":"rtl";D.setAttribute("dir",t)}},
handleInputEvent_:function(){var D=null;if(this.isEmojiButtonDisplayed){var t=this.getInputRange_();t&&(D=this.emojiInput.retrieveTextBeforeRange(t))}this.insertText_(D,!0);this.updateCharCount_();D=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=D.scrollHeight>D.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var D=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:D})},
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(D){this.isEmojiButtonDisplayed&&(D.preventDefault(),D.stopImmediatePropagation(),D=D.clipboardData.getData("text/plain"),this.insertText_(D,!1,!1),_.Gf(this.hostElement,"input"))},
insertText_:function(D,t,H){t=t===void 0?!1:t;H=H===void 0?!0:H;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&D){var e=this.getInputRange_().cloneRange();this.emojiManager&&e&&(t&&this.emojiInput.offsetStartOfRangeBy(e,D.length),this.insertTextWithEmojis_(e,D,H),HfY(this.getEditableTextArea_().lastChild)||(e=this.getInputRange_().cloneRange()),e&&(this.emojiInput.updateSuggestions(e,D),this.updateSuggestionOffset_(e)))}},
getSimpleString:_.eo,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(D){return D?"focused":"not-focused"},
computePlaceholderText_:function(D){return this.getSimpleString(D)},
computeEditableText_:function(D){return this.getSimpleString(D)},
onPrefilledContentDismissed_:function(D){D.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(D,t){D?this.fire("yt-autonav-pause-focus"):t!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(D){var t=this.getEditableTextArea_();[].concat(_.A6(D.dataTransfer.items)).forEach(function(H){H.kind==="string"&&H.type.match("^text/plain")&&H.getAsString(function(e){t.appendChild(document.createTextNode(e))})});
D.preventDefault()},
preventDefault_:function(D){D.preventDefault()},
onSuggestionInsert_:function(D){this.insertTextWithEmojis_(D.detail.range,D.detail.text)},
onEmojiSuggestionClick_:function(D){this.emojiInput.insertSuggestion(D.detail)},
updateSuggestionOffset_:function(D){if(this.emojiInput&&_.Kg(this.emojiInput).querySelector("#dropdown")){var t=this.getEditableTextArea_().getBoundingClientRect().bottom,H=D.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(t-H)+5;t=this.getEditableTextArea_().getBoundingClientRect().left;D=D.getBoundingClientRect().left-t;_.Kg(this.emojiInput).querySelector("#dropdown").style.marginLeft=D+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.dk("yt-post"));return this.localStorage}});var yH=function(){var D=_.X.apply(this,arguments)||this;D.currentCommentOptionIndex=0;D.isEmojiPickerDisplayed=!1;D.emojiManager=_.ND;D.isUgcEmpty=!1;D.userGeneratedCommentChangedHandler=function(){_.Gf(D.hostElement,"ytd-pdg-user-generated-comment-changed");D.isEmojiYtdCommentInputEnabled&&(D.isUgcEmpty=!D.ytdCommentInputEl.getTextAreaValue())};
D.pasteHandler=function(t){t.preventDefault();t.stopImmediatePropagation();var H;if(t=(H=t.clipboardData)==null?void 0:H.getData("text/plain"))H=document.getSelection().getRangeAt(0),H.collapsed||H.deleteContents(),t=document.createTextNode(t),H.insertNode(t),H.selectNodeContents(t),H.collapse(!1),t=window.getSelection(),t.removeAllRanges(),t.addRange(H)};
D.onDocumentClick=function(t){if(D.isEmojiPickerDisplayed){var H,e,V;!(t.target instanceof Node)||(H=t.composedPath())!=null&&H.includes(D.editableTextEl)||(e=t.composedPath())!=null&&e.includes(D.emojiButtonEl)||(V=t.composedPath())!=null&&V.includes(D.emojiPickerEl)||(D.isEmojiPickerDisplayed=!1)}};
return D};
_.P(yH,_.X);_.q=yH.prototype;_.q.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.q.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.q.detached=function(){var D;(D=this.contentEl)==null||D.removeEventListener("input",this.userGeneratedCommentChangedHandler);var t;(t=this.contentEl)==null||t.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.q.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.q.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var D;this.contentEl.textContent=this.rendererBehavior.getSimpleString((D=this.data)==null?void 0:D.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.q.reloadEmojis=function(){this.emojiPickerEl&&_.O(this.emojiPicker,_.ulB)&&this.emojiPickerEl.updateEmojiCategories()};
_.q.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.jZ(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.q.handleBackgroundColorStyling=function(){var D;if((D=this.currentCommentOption)==null?0:D.commentBackgroundColorArgb){var t;_.jZ(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Qk((t=this.currentCommentOption)==null?void 0:t.commentBackgroundColorArgb)})}else _.jZ(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.q.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var D;(D=this.contentEl)==null||D.focus()}};
_.q.onEditButtonClick=function(D){var t=document.getSelection();t&&this.contentEl&&(D.stopPropagation(),D.preventDefault(),t.selectAllChildren(this.contentEl),t.collapseToEnd())};
_.q.onContentDrop=function(D){var t=this;if(D.dataTransfer){D=_.F(D.dataTransfer.items);for(var H=D.next();!H.done;H=D.next())H=H.value,H.kind==="string"&&H.type.match("^text/plain")&&H.getAsString(function(e){var V;(V=t.contentEl)==null||V.appendChild(document.createTextNode(e))})}};
_.q.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.q.getUserGeneratedCommentText=function(){var D,t=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(D=this.contentEl)==null?void 0:D.textContent;return t?t.trim():""};
_.q.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.q.onEmojiSelect=function(D){this.ytdCommentInputEl.onEmojiSelect(D)};
_.ql.Object.defineProperties(yH.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.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 D;return!((D=this.currentCommentOption)==null||!D.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var D;if(_.O((D=this.currentCommentOption)==null?void 0:D.chipRenderer,_.G6v)){var t;return _.O((t=this.currentCommentOption)==null?void 0:t.chipRenderer,_.G6v)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var D,t;return((D=this.data)==null?0:D.commentOptionRenderers)?_.O((t=this.data)==null?void 0:t.commentOptionRenderers[this.superThanksSelectedTierEntity.index],pwv):void 0}var H,e;return((H=this.data)==null?0:H.commentOptionRenderers)?_.O((e=this.data)==null?void 0:e.commentOptionRenderers[this.currentCommentOptionIndex],pwv):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var D;return this.rendererBehavior.getSimpleString((D=this.data)==null?void 0:D.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var D;return this.rendererBehavior.getSimpleString((D=this.data)==null?void 0:D.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var D,t;return(t=_.O((D=this.data)==null?void 0:D.commentDialog,_.EYf))==null?void 0:t.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var D,t;return(t=_.O((D=this.data)==null?void 0:D.commentDialog,_.EYf))==null?void 0:t.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var D,t;return(t=_.O((D=this.data)==null?void 0:D.commentDialog,_.EYf))==null?void 0:t.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var D,t,H=(t=_.O((D=this.data)==null?void 0:D.commentDialog,_.EYf))==null?void 0:t.emojiPicker;if(!_.O(H,_.ulB)||!_.O(H,_.ulB).categories)return!1;D=function(b){return b.emojiPickerCategoryRenderer?b.emojiPickerCategoryRenderer.emojiIds&&b.emojiPickerCategoryRenderer.emojiIds.length>0:b.emojiPickerUpsellCategoryRenderer?b.emojiPickerUpsellCategoryRenderer.emojis&&b.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var e,V;return((e=_.O(H,_.ulB))==null?0:(V=e.categories)==null?0:V.find(D))?!0:!1}}});
yH.prototype.onEmojiSelect=yH.prototype.onEmojiSelect;yH.prototype.dataChanged=yH.prototype.dataChanged;yH.prototype.currentCommentOptionChanged=yH.prototype.currentCommentOptionChanged;_.d([_.C(_.sx),_.x("design:type",Object)],yH.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],yH.prototype,"rendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.o5("#content-dom-if"),_.x("design:type",_.vT)],yH.prototype,"contentDomIfEl",void 0);_.d([_.o5("#content-no-emojis"),_.x("design:type",HTMLElement)],yH.prototype,"contentEl",void 0);_.d([_.o5("#container"),_.x("design:type",HTMLElement)],yH.prototype,"containerEl",void 0);_.d([_.o5("#comment-chip-container"),_.x("design:type",HTMLElement)],yH.prototype,"paidCommentChipContainerEl",void 0);_.d([_.o5("#text-input"),_.x("design:type",HTMLElement)],yH.prototype,"editableTextEl",void 0);
_.d([_.o5("#emoji-button"),_.x("design:type",HTMLElement)],yH.prototype,"emojiButtonEl",void 0);_.d([_.o5("#emoji-picker > yt-emoji-picker-renderer"),_.x("design:type",Object)],yH.prototype,"emojiPickerEl",void 0);_.d([_.o5("#text-input > ytd-comment-input"),_.x("design:type",Object)],yH.prototype,"ytdCommentInputEl",void 0);_.d([_.M(),_.x("design:type",Object)],yH.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],yH.prototype,"currentCommentOptionIndex",void 0);
_.d([_.M({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:cGg}),_.x("design:type",Object)],yH.prototype,"superThanksSelectedTierEntity",void 0);_.d([_.M(),_.x("design:type",Object)],yH.prototype,"isEmojiPickerDisplayed",void 0);_.d([_.M(),_.x("design:type",Object)],yH.prototype,"emojiManager",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],yH.prototype,"isUgcEmpty",void 0);
_.d([_.Os("currentCommentOption"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yH.prototype,"currentCommentOptionChanged",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],yH.prototype,"dataChanged",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yH.prototype,"isEmojiYtdCommentInputEnabled",null);
_.d([_.m("data.title"),_.x("design:type",Object),_.x("design:paramtypes",[])],yH.prototype,"title",null);_.d([_.m("data.authorText"),_.x("design:type",Object),_.x("design:paramtypes",[])],yH.prototype,"channelName",null);_.d([_.m("data.commentOptionRenderers","currentCommentOption"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yH.prototype,"shouldShowPaidCommentChipRenderer",null);
_.d([_.m("data.commentOptionRenderers","currentCommentOption"),_.x("design:type",Object),_.x("design:paramtypes",[])],yH.prototype,"paidCommentChipRenderer",null);_.d([_.m("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yH.prototype,"currentCommentOption",null);
_.d([_.m("data.defaultCommentText","superThanksSelectedTierEntity"),_.x("design:type",Object),_.x("design:paramtypes",[])],yH.prototype,"commentText",null);_.d([_.m("data.placeholderText"),_.x("design:type",Object),_.x("design:paramtypes",[])],yH.prototype,"placeholderText",null);_.d([_.m("data.commentDialog.commentDialogRenderer.editableText"),_.x("design:type",Object),_.x("design:paramtypes",[])],yH.prototype,"editableText",null);
_.d([_.m("data.commentDialog.commentDialogRenderer.emojiButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],yH.prototype,"emojiButton",null);_.d([_.m("data.commentDialog.commentDialogRenderer.emojiPicker"),_.x("design:type",Object),_.x("design:paramtypes",[])],yH.prototype,"emojiPicker",null);
_.d([_.m("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],yH.prototype,"isEmojiButtonDisplayed",null);_.d([_.rx("yt-emoji-select"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],yH.prototype,"onEmojiSelect",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],yH);
_.p(yH,"ytd-pdg-comment-preview-renderer",function(){if(NsH!==void 0)return NsH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return NsH=D},{mode:2});var Tse;var BB=function(){var D=_.X.apply(this,arguments)||this;D.selected=!1;return D};
_.P(BB,_.X);_.q=BB.prototype;_.q.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.q.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.q.dataChanged=function(){this.data&&(_.Ny(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.jZ(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Qk(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Qk(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.q.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.q.onClick=function(){this.logClick()};
_.q.onKeyboardSelect=function(){_.Gf(this.hostElement,"tap");this.onClick()};
_.q.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
BB.prototype.onClick=BB.prototype.onClick;BB.prototype.selectedChanged=BB.prototype.selectedChanged;BB.prototype.dataChanged=BB.prototype.dataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],BB.prototype,"componentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.l9),_.x("design:type",Object)],BB.prototype,"ironA11yKeysBehavior",void 0);
_.d([_.C(_.tj),_.x("design:type",Object)],BB.prototype,"ironSelectableBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],BB.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],BB.prototype,"shownThumbnail",void 0);_.d([_.M(),_.x("design:type",Object)],BB.prototype,"basePriceText",void 0);_.d([_.M(),_.x("design:type",Object)],BB.prototype,"purchaseCommand",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],BB.prototype,"selected",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BB.prototype,"dataChanged",null);_.d([_.Os("selected"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BB.prototype,"selectedChanged",null);_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],BB.prototype,"onClick",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],BB);
_.p(BB,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(Tse!==void 0)return Tse;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Tse=D},{mode:1});var zY=function(){var D=_.X.apply(this,arguments)||this;D.selectedItemIndex=0;D.buyButtonDisabled=!1;return D};
_.P(zY,_.X);_.q=zY.prototype;
_.q.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]]"}}}}}};
_.q.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var D;var t=(D=_.O(this.data.colorSlider,vTt))==null?void 0:D.notches[this.selectedItemIndex].purchaseCommand}else{var H;t=(H=_.O(this.data.selectableItemButtons[this.selectedItemIndex],xDt))==null?void 0:H.purchaseCommand}if(t){D=_.O(t,_.yfQ);D.productData||(D.productData={});var e;D.productData={pdgData:{commentMessageText:(e=this.commentPreviewRenderer)==null?void 0:e.getUserGeneratedCommentText()}};
_.Gf(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(t)}}};
_.q.dataChanged=function(){if(this.data){_.ND.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.PWf(_.ND,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.ND.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var D;this.buyButtonDisabled=!((D=_.O(this.data.commentPreview,dDH))==null||!D.placeholderText);this.updatePriceSelectorStatus();var t;if((t=this.data)==null?0:t.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;D=[];this.data.preloadImages&&(D=this.data.preloadImages);
D=D.map(function(H){return _.G3(H.thumbnails,1920)});
D=_.F(D);for(t=D.next();!t.done;t=D.next())(t=t.value)&&_.Oyk(t).thenCatch(function(){_.Yw(Error("Cl"))})}};
_.q.superThanksSelectedTierEntityChanged=function(){var D;(this==null?void 0:(D=this.superThanksSelectedTierEntity)==null?void 0:D.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.q.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.q.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Kg(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Kg(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Kg(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Kg(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.q.closeBuyFlow=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.q.onUserGeneratedContentChanged=function(){var D;this.buyButtonDisabled=!((D=this.commentPreviewRenderer)==null?0:D.getUserGeneratedCommentText())};
_.q.updateSelectedItemIndexFromBinding=function(D){this.selectedItemIndex=D.detail.value};
_.ql.Object.defineProperties(zY.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var D;return!((D=this.data)==null||!D.disclaimerText)}}});
zY.prototype.onUserGeneratedContentChanged=zY.prototype.onUserGeneratedContentChanged;zY.prototype.closeBuyFlow=zY.prototype.closeBuyFlow;zY.prototype.selectedItemIndexChanged=zY.prototype.selectedItemIndexChanged;zY.prototype.superThanksSelectedTierEntityChanged=zY.prototype.superThanksSelectedTierEntityChanged;zY.prototype.dataChanged=zY.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],zY.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],zY.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],zY.prototype,"selectedItemIndex",void 0);_.d([_.M(),_.x("design:type",Boolean)],zY.prototype,"isColorSlider",void 0);
_.d([_.M(),_.x("design:type",Object)],zY.prototype,"buyButtonDisabled",void 0);_.d([_.M({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:cGg}),_.x("design:type",Object)],zY.prototype,"superThanksSelectedTierEntity",void 0);_.d([_.o5("ytd-pdg-comment-preview-renderer"),_.x("design:type",Object)],zY.prototype,"commentPreviewRenderer",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],zY.prototype,"ytdReduxBehavior",void 0);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zY.prototype,"dataChanged",null);_.d([_.Os("superThanksSelectedTierEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zY.prototype,"superThanksSelectedTierEntityChanged",null);_.d([_.Os("selectedItemIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zY.prototype,"selectedItemIndexChanged",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zY.prototype,"closeBuyFlow",null);_.d([_.rx("ytd-pdg-user-generated-comment-changed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],zY.prototype,"onUserGeneratedContentChanged",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],zY.prototype,"isDisclaimerTextShown",null);
_.d([_.Y({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],zY);
_.p(zY,"yt-super-vod-buy-flow-content-renderer",function(){if(Ejt!==void 0)return Ejt;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Ejt=D},{mode:1});var cct;var Dd=function(){var D=_.X.apply(this,arguments)||this;D.lottieAnimationRef={};return D};
_.P(Dd,_.X);_.q=Dd.prototype;_.q.created=function(){_.bq.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.iK(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.q.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Gf(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.q.detached=function(){this.autoCloseJobId&&_.Jy.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.iK(this,this.onPopupIronOverlayOpened))};
_.q.dataChanged=function(){var D=this;this.data&&this.data.autoCloseDelay&&(_.ET(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.kX(_.Jy,function(){D.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.jZ(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.q.onDOMLoadedLottie=function(){var D=this,t,H,e=Number((t=this.data)==null?void 0:(H=t.autoCloseDelay)==null?void 0:H.seconds)||0;this.fadeOutJobId=_.kX(_.Jy,function(){D.lottiePlayerEl.classList.add("fadeout")},(e-.25)*1E3);
this.autoCloseJobId=_.kX(_.Jy,function(){D.closePopup()},e*1E3)};
_.q.openPopup=function(){this.ironOverlayBehavior.open()};
_.q.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.ET(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.k0(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.qS().resolve(_.aA).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Jy.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Jy.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.q.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var D,t;(D=this.lottieAnimationRef)==null||(t=D.lottieEl)==null||t.destroy();D=this.data.lottie;var H,e;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:D.url+"_"+Math.random(),path:D.url,autoplay:!0,loop:(e=(H=D.settings)==null?void 0:H.loop)!=null?e:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.ql.Object.defineProperties(Dd.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var D,t;return!!((D=this.data)==null?0:(t=D.lottie)==null?0:t.url)}}});
Dd.prototype.maybeInitializeLottie=Dd.prototype.maybeInitializeLottie;Dd.prototype.dataChanged=Dd.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Dd.prototype,"rendererBehavior",void 0);_.d([_.C(_.sn),_.x("design:type",Object)],Dd.prototype,"ironOverlayBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Dd.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Dd.prototype,"lottiePlayerProps",void 0);
_.d([_.M(),_.x("design:type",Object)],Dd.prototype,"lottieAnimationRef",void 0);_.d([_.o5("ytd-lottie-player"),_.x("design:type",HTMLElement)],Dd.prototype,"lottiePlayerEl",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dd.prototype,"dataChanged",null);_.d([_.m("data"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Dd.prototype,"hasLottieAnimation",null);
_.d([_.Os("data.lottie.url"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Dd.prototype,"maybeInitializeLottie",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Dd);
_.p(Dd,"ytd-desktop-image-overlay-renderer",function(){if(cct!==void 0)return cct;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return cct=D},{mode:1});var jdY;var tb=function(){return _.X.apply(this,arguments)||this};
_.P(tb,_.X);_.q=tb.prototype;_.q.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"}}}}};
_.q.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",_.iK(this,this.closePopup))};
_.q.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.iK(this,this.closePopup))};
_.q.dataChanged=function(){_.Kl(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.O(this.data.header,lMb)&&(this.hasBackgroundBanner=!!_.O(this.data.header,lMb).backgroundBanner)};
_.q.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.iK(this,this.closePopup))};
_.q.closePopup=function(){this.data&&this.data.onCloseCommand&&_.NJ(this.hostElement,[this.data.onCloseCommand])};
tb.prototype.handleBuyflowSelectionSubmitted=tb.prototype.handleBuyflowSelectionSubmitted;tb.prototype.dataChanged=tb.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],tb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],tb.prototype,"data",void 0);
_.d([_.M({value:!0,reflectToAttribute:!0}),_.x("design:type",Boolean)],tb.prototype,"hasBackgroundBanner",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tb.prototype,"dataChanged",null);_.d([_.rx("yt-pdg-buy-flow-selection-submitted"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tb.prototype,"handleBuyflowSelectionSubmitted",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],tb);
_.p(tb,"ytd-pdg-buy-flow-renderer",function(){if(jdY!==void 0)return jdY;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return jdY=D},{mode:1});var $WO;var Hi=function(){var D=_.X.apply(this,arguments)||this;D.isOpen=!1;D.isPlaylistCreated=!1;return D};
_.P(Hi,_.X);_.q=Hi.prototype;_.q.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.q.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Gf(this.hostElement,"yt-refit")};
_.q.onCreateTap=function(){var D=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.NJ(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(t,H){if(!_.r("killswitch_ep_in_create_playlist_response")&&(H==null?0:H.actions))for(t=_.F(H.actions),H=t.next();!H.done;H=t.next())H=H.value,_.O(H,_.Sw)&&D.ytComponentBehavior.resolveCommand(H)}}]),this.isPlaylistCreated=!0)};
_.q.onKeydown=function(D){if(D.keyCode===13)this.onCreateTap()};
_.q.onServiceRequestCompleted=function(D){D.stopPropagation();_.ET(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.q.computePrivacyBadge=function(D){return D?[{metadataBadgeRenderer:D}]:[]};
Hi.prototype.onServiceRequestCompleted=Hi.prototype.onServiceRequestCompleted;Hi.prototype.onKeydown=Hi.prototype.onKeydown;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Hi.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Hi.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Hi.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Hi.prototype,"isOpen",void 0);
_.d([_.M(),_.x("design:type",Object)],Hi.prototype,"isPlaylistCreated",void 0);_.d([_.M({value:{REQUIRED_LABEL:_.OT("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.OT("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.x("design:type",Object)],Hi.prototype,"addToStrings",void 0);_.d([_.M({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.x("design:type",Array)],Hi.prototype,"privacyBadge",void 0);
_.d([_.o5("#privacy-input"),_.x("design:type",Object)],Hi.prototype,"privacyInput",void 0);_.d([_.o5("#name-input"),_.x("design:type",Object)],Hi.prototype,"nameInput",void 0);_.d([_.rx("keydown"),_.x("design:type",Function),_.x("design:paramtypes",[KeyboardEvent]),_.x("design:returntype")],Hi.prototype,"onKeydown",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Hi.prototype,"onServiceRequestCompleted",null);
_.d([_.Y({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Hi);
_.p(Hi,"ytd-add-to-playlist-create-renderer",function(){if($WO!==void 0)return $WO;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return $WO=D},{mode:1});var im4;var rcQ;var e5=function(){var D=_.X.apply(this,arguments)||this;D.transferState="TRANSFER_STATE_UNKNOWN";return D};
_.P(e5,_.X);e5.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
e5.prototype.onCheckboxChange=function(D){var t=this;this.data&&_.z1(this,"yt-playlist-checkbox-changed",function(){var H=_.qy(D).checked?t.data.addToPlaylistServiceEndpoint:t.data.removeFromPlaylistServiceEndpoint;H&&_.qS().resolve(_.aA).resolveCommand(H,{form:{element:t.hostElement}});_.r("dl_playlist_killswitch")||t.transferState!=="TRANSFER_STATE_UNKNOWN"&&t.transferState!=="TRANSFER_STATE_FAILED"&&t.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:t.data.playlistId,action:"ACTION_SYNC"}})},
100)};
e5.prototype.computeIconType=function(D){return D?"yt-icons:"+D.toLowerCase():null};
e5.prototype.dataChanged=e5.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],e5.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],e5.prototype,"data",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],e5.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],e5.prototype,"ytComponentBehavior",void 0);_.d([_.o5("#checkbox"),_.x("design:type",HTMLInputElement)],e5.prototype,"checkbox",void 0);
_.d([_.M({selector:_.Rf,selectorArgs:["data.playlistId"]}),_.x("design:type",String)],e5.prototype,"transferState",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],e5.prototype,"dataChanged",null);_.d([_.Y({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],e5);
_.p(e5,"ytd-playlist-add-to-option-renderer",function(){if(rcQ!==void 0)return rcQ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return rcQ=D},{mode:1});var OmQ=_.l(function(D){var t=D.data;return _.G("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.G("div",null,_.G(_.$7,{text:function(){return t().title}})),_.G(_.E,{cond:function(){return t().subtitle},
then:function(H){return _.G("div",{class:"ytdMenuTitleRendererSubtitle"},_.G(_.$7,{text:H}))}}))},"Fi");
OmQ.idomCompat=!0;_.hB(OmQ,"ytd-menu-title-renderer",{props:{data:_.ij}});var V5=function(){var D=_.X.apply(this,arguments)||this;D.addToStrings={ADD_TO_DROPDOWN_LABEL:_.OT("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};D.closeButtonAriaLabel=_.OT("SBOX_INAPPROPRIATE_CANCEL");D.dialog=_.r("desktop_add_to_playlist_renderer_dialog_popup");return D};
_.P(V5,_.X);_.q=V5.prototype;_.q.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"}}}};
_.q.onPopupOpened=function(){_.kL(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.q.onPopupClosed=function(){_.kL(this.playlists,"scrollable",!1)};
_.q.computeAriaLabel=function(){var D;if(this==null?0:(D=this.data)==null?0:D.actions){D=_.F(this.data.actions);for(var t=D.next();!t.done;t=D.next())if(t=t.value,t.menuTitleRenderer)return _.eo(t.menuTitleRenderer.title)}};
_.q.onTapClose=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.ql.Object.defineProperties(V5.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var D;if(this==null?0:(D=this.data)==null?0:D.actions){D=_.F(this.data.actions);for(var t=D.next();!t.done;t=D.next())if(t=t.value,t.menuTitleRenderer)return t.menuTitleRenderer}return!1}}});
V5.prototype.onPopupClosed=V5.prototype.onPopupClosed;V5.prototype.onPopupOpened=V5.prototype.onPopupOpened;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],V5.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],V5.prototype,"ytEventForwardingBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],V5.prototype,"ytRendererStamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],V5.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],V5.prototype,"addToStrings",void 0);_.d([_.M({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.x("design:type",String)],V5.prototype,"ariaLabel",void 0);_.d([_.M(),_.x("design:type",String)],V5.prototype,"closeButtonAriaLabel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],V5.prototype,"dialog",void 0);
_.d([_.o5("#playlists"),_.x("design:type",HTMLElement)],V5.prototype,"playlists",void 0);_.d([_.o5("ytd-add-to-playlist-create-renderer"),_.x("design:type",Object)],V5.prototype,"createRenderer",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],V5.prototype,"menuTitleRenderer",null);_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],V5.prototype,"onPopupOpened",null);
_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],V5.prototype,"onPopupClosed",null);_.d([_.Y({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],V5);
_.p(V5,"ytd-add-to-playlist-renderer",function(){if(im4!==void 0)return im4;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return im4=D},{mode:1});var UWF;var bb=function(){var D=_.X.apply(this,arguments)||this;D.isPlaylistEditComplete=!1;D.isCollabEngagementDisabled=!1;D.closeButtonAriaLabel=_.OT("SBOX_INAPPROPRIATE_CANCEL");D.saveButton={title:_.OT("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"};D.onValueChanged=function(){D.updateSaveButtonState();D.computeCollabEngagementDisabled()};
return D};
_.P(bb,_.X);_.q=bb.prototype;_.q.attached=function(){this.JSC$20566_scroller&&(this.JSC$20566_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20566_scroller.attached&&typeof this.JSC$20566_scroller.attached==="function"&&this.JSC$20566_scroller.attached())};
_.q.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.q.onPopupClosed=function(){this.reset()};
_.q.close=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.q.onClickSave=function(){var D=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var t=[];this.nameInput.value!==null&&t.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&t.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var H=Number(this.privacyInput.value);isNaN(H)||t.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:H})}this.votingInput.value!==null&&(H=this.votingInput.value)&&t.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:H});if(t.length>0){var e;_.O((e=this.data)==null?void 0:e.updateSettingsEndpoint,_.b2).actions=t;var V;if((V=this.data)==null?0:V.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){D.close()}}}),this.isPlaylistEditComplete=!0}}};
_.q.computePrivacyBadge=function(D){return D?[{metadataBadgeRenderer:D}]:[]};
_.q.computeEditorData=function(D){var t,H;return D==null?void 0:(t=D.sections)==null?void 0:(H=t[0])==null?void 0:H.playlistSettingsEditorCasualSectionRenderer};
_.q.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.q.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}}}}}};
_.q.computeAriaLabel=function(){var D,t,H,e=(D=this.data)==null?void 0:(t=D.sections)==null?void 0:(H=t[0])==null?void 0:H.playlistSettingsEditorCasualSectionRenderer;return _.eo(e==null?void 0:e.title)};
_.q.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"}))};
_.q.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.q.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.q.isNameChanged=function(){var D,t,H;return(((D=this.editorData)==null?void 0:(t=D.name)==null?void 0:(H=t.textInputFormFieldRenderer)==null?void 0:H.value)||"")!==(this.nameInput.value||"")};
_.q.isDescriptionChanged=function(){var D,t,H;return(((D=this.editorData)==null?void 0:(t=D.description)==null?void 0:(H=t.textInputFormFieldRenderer)==null?void 0:H.value)||"")!==(this.descriptionInput.value||"")};
_.q.isPrivacyChanged=function(){var D,t,H,e,V,b,a,w;return((a=(D=this.editorData)==null?void 0:(t=D.privacy)==null?void 0:(H=t.dropdownFormFieldRenderer)==null?void 0:(e=H.dropdown)==null?void 0:(V=e.dropdownRenderer)==null?void 0:(b=V.entries)==null?void 0:b.find(function(h){var K;return h==null?void 0:(K=h.privacyDropdownItemRenderer)==null?void 0:K.isSelected}))==null?void 0:(w=a.privacyDropdownItemRenderer)==null?void 0:w.int32Value)!==this.privacyInput.value};
_.q.isVotingChanged=function(){var D,t,H,e,V,b,a,w;return((a=(D=this.editorData)==null?void 0:(t=D.voting)==null?void 0:(H=t.dropdownFormFieldRenderer)==null?void 0:(e=H.dropdown)==null?void 0:(V=e.dropdownRenderer)==null?void 0:(b=V.entries)==null?void 0:b.find(function(h){var K;return h==null?void 0:(K=h.privacyDropdownItemRenderer)==null?void 0:K.isSelected}))==null?void 0:(w=a.privacyDropdownItemRenderer)==null?void 0:w.int32Value)!==this.votingInput.value};
bb.prototype.onPopupClosed=bb.prototype.onPopupClosed;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],bb.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],bb.prototype,"ytEventForwardingBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],bb.prototype,"ytRendererStamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],bb.prototype,"data",void 0);_.d([_.M({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.x("design:type",Array)],bb.prototype,"privacyBadge",void 0);_.d([_.M({computed:"computeEditorData(data)"}),_.x("design:type",Object)],bb.prototype,"editorData",void 0);_.d([_.M(),_.x("design:type",Object)],bb.prototype,"isPlaylistEditComplete",void 0);_.d([_.M(),_.x("design:type",Object)],bb.prototype,"isCollabEngagementDisabled",void 0);
_.d([_.M({value:{REQUIRED_LABEL:_.OT("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.OT("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.x("design:type",Object)],bb.prototype,"addToStrings",void 0);_.d([_.M({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.x("design:type",String)],bb.prototype,"ariaLabel",void 0);_.d([_.M(),_.x("design:type",String)],bb.prototype,"closeButtonAriaLabel",void 0);
_.d([_.M(),_.x("design:type",Object)],bb.prototype,"saveButton",void 0);_.d([_.o5("#name-input"),_.x("design:type",Object)],bb.prototype,"nameInput",void 0);_.d([_.o5("#description-input"),_.x("design:type",Object)],bb.prototype,"descriptionInput",void 0);_.d([_.o5("#privacy-input"),_.x("design:type",Object)],bb.prototype,"privacyInput",void 0);_.d([_.o5("#voting-input"),_.x("design:type",Object)],bb.prototype,"votingInput",void 0);
_.d([_.o5("#scroller"),_.x("design:type",Object)],bb.prototype,"JSC$20566_scroller",void 0);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bb.prototype,"onPopupClosed",null);_.d([_.M(),_.x("design:type",Object)],bb.prototype,"onValueChanged",void 0);_.d([_.Y({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],bb);
_.p(bb,"ytd-playlist-settings-editor-renderer",function(){if(UWF===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);UWF=D}D=UWF;return D},{mode:1});var ojF;_.AB("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var qV=function(){return _.X.apply(this,arguments)||this};
_.P(qV,_.X);_.q=qV.prototype;_.q.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}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.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 D=this.get("data.nextButton.buttonRenderer.navigationEndpoint");D&&(this.nextNavigationEndpoint=D,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.q.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 D={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",D)}}};
_.q.onPopupOpened=function(D){D.detail!==this&&D.detail!==this.hostElement||!_.r("enable_premium_voluntary_pause")||_.ET(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.q.onNextButtonTap=function(){var D=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);D&&this.ytdOpenPopupBehavior.openPopup(D)};
_.q.updateSelectedResponseIndexFromBinding=function(D){this.selectedResponseIndex=D.detail.value};
qV.prototype.onPopupOpened=qV.prototype.onPopupOpened;qV.prototype.onSelectedResponseIndexChange=qV.prototype.onSelectedResponseIndexChange;qV.prototype.dataChanged=qV.prototype.dataChanged;_.d([_.C(_.oy),_.x("design:type",Object)],qV.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],qV.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],qV.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Number)],qV.prototype,"selectedResponseIndex",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qV.prototype,"dataChanged",null);_.d([_.Os("selectedResponseIndex"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],qV.prototype,"onSelectedResponseIndexChange",null);
_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],qV.prototype,"onPopupOpened",null);_.d([_.Y({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],qV);
_.p(qV,"ytd-red-cancel-survey-renderer",function(){if(ojF!==void 0)return ojF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ojF=D},{mode:1});var P6i;var F3=function(){var D=_.X.apply(this,arguments)||this;D.closeButtonAriaLabel=_.OT("SBOX_INAPPROPRIATE_CANCEL");return D};
_.P(F3,_.X);F3.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
F3.prototype.onClickClose=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],F3.prototype,"rendererStamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],F3.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],F3.prototype,"closeButtonAriaLabel",void 0);_.d([_.Y({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],F3);
_.p(F3,"ytd-search-filter-options-dialog-renderer",function(){if(P6i!==void 0)return P6i;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return P6i=D},{mode:1});var njO;var hoH=function(){return function(D){D=D.availabilityType;return D===void 0||D==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||D==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var aO=function(){var D=_.X.apply(this,arguments)||this;D.qualityOptions=[];D.upsellOptions=[];D.showUpsellSection=!1;D.darkerDarkTheme=_.r("web_darker_dark_theme");D.rememberSettingsChecked=!1;return D};
_.P(aO,_.X);_.q=aO.prototype;_.q.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}}}}};
_.q.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.q.updateQualityOptions=function(){if(this.formats===void 0)_.ET(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var D=[],t=[];this.showUpsellSection=!1;for(var H=_.F(this.formats),e=H.next();!e.done;e=H.next())(e=e.value)&&(e.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?t.push(e):D.push(e));D.length&&(this.qualityOptions=snv(D));t.length&&(this.showUpsellSection=!0,this.upsellOptions=snv(t))}};
_.q.updateRememberString=function(){if(this.downloadQualityPickerEntity)var D=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var t;D=(t=this.data)==null?void 0:t.premiumRememberSettingString}else{var H;D=(H=this.data)==null?void 0:H.rememberSettingString}D=D===void 0?_.OT("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):D;this.rememberSettingsCheckboxRenderer={title:_.wO(D),disabled:!1}};
_.q.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.ql.Object.defineProperties(aO.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var D;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(D=this.data)==null?void 0:D.qualityFormats}}});
aO.prototype.updateRememberString=aO.prototype.updateRememberString;aO.prototype.updateQualityOptions=aO.prototype.updateQualityOptions;aO.prototype.dataChanged=aO.prototype.dataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],aO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],aO.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],aO.prototype,"data",void 0);
_.d([_.C(_.sx),_.x("design:type",Object)],aO.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Boolean)],aO.prototype,"selectedUpsellQuality",void 0);_.d([_.M({computed:"computeIcon_(data.premiumIcon)",value:""}),_.x("design:type",String)],aO.prototype,"premiumIcon",void 0);_.d([_.M({selector:NOQ,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.x("design:type",Object)],aO.prototype,"downloadQualityPickerEntity",void 0);
_.d([_.M(),_.x("design:type",Array)],aO.prototype,"qualityOptions",void 0);_.d([_.M(),_.x("design:type",Array)],aO.prototype,"upsellOptions",void 0);_.d([_.M(),_.x("design:type",Object)],aO.prototype,"showUpsellSection",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],aO.prototype,"darkerDarkTheme",void 0);_.d([_.M(),_.x("design:type",Object)],aO.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.d([_.o5("#remember-settings"),_.x("design:type",HTMLInputElement)],aO.prototype,"rememberSettingsCheckbox",void 0);_.d([_.M(),_.x("design:type",Object)],aO.prototype,"rememberSettingsChecked",void 0);_.d([_.M(),_.x("design:type",Function)],aO.prototype,"onRememberSettingsCheckedChanged",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aO.prototype,"dataChanged",null);
_.d([_.Os("downloadQualityPickerEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aO.prototype,"updateQualityOptions",null);_.d([_.Os("selectedUpsellQuality"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],aO.prototype,"updateRememberString",null);_.d([_.Y({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],aO);
_.p(aO,"ytd-download-quality-selector-content",function(){if(njO!==void 0)return njO;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return njO=D},{mode:1});var C6b;var w0=function(){var D=_.X.apply(this,arguments)||this;D.selectedUpsellQuality=!1;D.qualityOptions=[];D.darkerDarkTheme=_.r("web_darker_dark_theme");D.useUpsellDismissAlternate=_.r("use_not_now_dl_upsell_dismiss_cta");D.shouldShowAlternateUpsellDimiss=!1;D.rememberSettings=!1;D.rememberSettingsChecked=!1;D.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};D.rememberSettingsCheckedChanged=function(t){D.rememberSettingsChecked=t};
return D};
_.P(w0,_.X);_.q=w0.prototype;
_.q.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.wO(_.OT("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.wO(_.OT("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.wO(_.OT("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.wO(_.OT("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.q.updateQualityOptions=function(){this.formats===void 0?_.ET(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=snv(this.formats)};
_.q.onQualityOptionsSelect=function(D){if(this.qualityOptions&&D){D!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var t=_.F(this.qualityOptions.entries()),H=t.next();!H.done;H=
t.next()){H=_.F(H.value);var e=H.next().value;H=H.next().value;var V=void 0,b=void 0;if(((V=H)==null?void 0:(b=V.settingsRadioOptionRenderer)==null?void 0:b.id)===D){this.selectedQualityIndex=e;D=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((D=this.formats[e])==null?void 0:D.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.q.onClickSubmit=function(){var D;if((D=this.downloadButtonRenderer)==null||!D.isDisabled){var t,H;D=(H=(t=this.data)==null?void 0:t.onSubmitEndpoint)!=null?H:{};var e,V;if(this.formats&&(((e=_.O(D,_.$i))==null?0:e.videoId)||((V=_.O(D,_.iO))==null?0:V.playlistId))){var b,a,w,h,K,N;t={formatType:(h=(b=this.formats)==null?void 0:(a=b[(w=this.selectedQualityIndex)!=null?w:0])==null?void 0:a.format)!=null?h:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(K=this.getOfflineEndpoint(D))==null?void 0:(N=K.actionParams)==null?void 0:N.settingsAction)};this.getOfflineEndpoint(D).actionParams=t;this.ytComponentBehavior.resolveCommand(D)}_.ET(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.q.onClickUpsell=function(){var D;if((D=this.upsellButtonRenderer)==null||!D.isDisabled){var t,H;D=(H=(t=this.data)==null?void 0:t.upsellEndpoint)!=null?H:{};this.ytComponentBehavior.resolveCommand(D);_.ET(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);t="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var e,V,b,a;t=(a=(e=this.formats)==null?void 0:(V=e[(b=this.selectedQualityIndex)!=null?b:0])==null?void 0:V.format)!=null?a:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:t}})}};
_.q.onClickClose=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.q.getOfflineSettingsAction=function(D,t){return D?t===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":t:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.q.getOfflineEndpoint=function(D){return _.O(D,_.$i)?_.O(D,_.$i):_.O(D,_.iO)};
_.ql.Object.defineProperties(w0.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.wO(_.OT("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var D;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(D=this.data)==null?void 0:D.qualityFormats}}});
w0.prototype.updateQualityOptions=w0.prototype.updateQualityOptions;w0.prototype.dataChanged=w0.prototype.dataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],w0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],w0.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],w0.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],w0.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],w0.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Number)],w0.prototype,"selectedQualityIndex",void 0);_.d([_.M(),_.x("design:type",Object)],w0.prototype,"selectedUpsellQuality",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],w0.prototype,"ytdReduxBehavior",void 0);
_.d([_.M({selector:NOQ,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.x("design:type",Object)],w0.prototype,"downloadQualityPickerEntity",void 0);_.d([_.M(),_.x("design:type",Array)],w0.prototype,"qualityOptions",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],w0.prototype,"darkerDarkTheme",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],w0.prototype,"useUpsellDismissAlternate",void 0);
_.d([_.M(),_.x("design:type",Object)],w0.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.d([_.M(),_.x("design:type",Object)],w0.prototype,"downloadButtonRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],w0.prototype,"upsellButtonRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],w0.prototype,"cancelButtonRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],w0.prototype,"upsellCancelButtonRenderer",void 0);_.d([_.M(),_.x("design:type",Object)],w0.prototype,"rememberSettings",void 0);
_.d([_.M(),_.x("design:type",Object)],w0.prototype,"rememberSettingsChecked",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w0.prototype,"dataChanged",null);_.d([_.Os("downloadQualityPickerEntity"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],w0.prototype,"updateQualityOptions",null);_.d([_.Y({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],w0);
_.p(w0,"ytd-download-quality-selector-renderer",function(){if(C6b!==void 0)return C6b;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return C6b=D},{mode:1});var mWZ;var Zd=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(Zd,_.X);Zd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Zd.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"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Zd.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Zd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Zd.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Zd.prototype,"darkerDarkTheme",void 0);_.d([_.M({computed:"computeIcon_(data.infoIcon)"}),_.x("design:type",Object)],Zd.prototype,"infoIcon",void 0);
_.d([_.M({computed:"computeIcon_(data.warningIcon)"}),_.x("design:type",Object)],Zd.prototype,"warningIcon",void 0);_.d([_.Y({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],Zd);
_.p(Zd,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(mWZ!==void 0)return mWZ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return mWZ=D},{mode:1});var MUH;var sN=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(sN,_.X);sN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
sN.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"}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],sN.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],sN.prototype,"darkerDarkTheme",void 0);_.d([_.Y({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],sN);
_.p(sN,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(MUH!==void 0)return MUH;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return MUH=D},{mode:1});var S3O;var hb=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(hb,_.X);hb.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
hb.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"}}}}};
hb.prototype.onServiceRequestSentOrCompleted=function(D,t){t&&t.actions&&t.actions.length>0&&_.ET(this.hostElement,"yt-close-popup-action",[this.is])};
hb.prototype.onServiceRequestSentOrCompleted=hb.prototype.onServiceRequestSentOrCompleted;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],hb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],hb.prototype,"darkerDarkTheme",void 0);_.d([_.M(),_.x("design:type",Object)],hb.prototype,"data",void 0);
_.d([_.rx("yt-service-request-completed"),_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],hb.prototype,"onServiceRequestSentOrCompleted",null);_.d([_.Y({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],hb);
_.p(hb,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(S3O!==void 0)return S3O;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return S3O=D},{mode:1});var XRi;var G2=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");D.submitButtonDisabled=!0;return D};
_.P(G2,_.X);_.q=G2.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.q.onDataChanged=function(){var D,t,H;if(((D=this.data)==null?void 0:(t=D.confirmButton)==null?void 0:(H=t.buttonRenderer)==null?void 0:H.isDisabled)!==void 0){var e,V,b;this.submitButtonDisabled=(e=this.data)==null?void 0:(V=e.confirmButton)==null?void 0:(b=V.buttonRenderer)==null?void 0:b.isDisabled}};
_.q.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.q.updateSubmitButtonDisabledFromBinding=function(D){this.submitButtonDisabled=D.detail.value};
_.q.updateSubmitButtonDisabledFromConfirmCheckbox=function(D){this.submitButtonDisabled=!D.detail.value};
G2.prototype.onDataChanged=G2.prototype.onDataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],G2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],G2.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],G2.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],G2.prototype,"darkerDarkTheme",void 0);
_.d([_.M(),_.x("design:type",Object)],G2.prototype,"submitButtonDisabled",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],G2.prototype,"onDataChanged",null);_.d([_.Y({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],G2);
_.p(G2,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(XRi!==void 0)return XRi;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return XRi=D},{mode:1});var fnZ;var EN=function(){return _.X.apply(this,arguments)||this};
_.P(EN,_.X);_.ql.Object.defineProperties(EN.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var D,t,H;return((D=this.data)==null?void 0:D.title)+" "+((t=this.data)==null?void 0:t.metadataPrimary)+" "+((H=this.data)==null?void 0:H.metadataSecondary)}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],EN.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],EN.prototype,"data",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],EN.prototype,"ariaLabel",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],EN);
_.p(EN,"ytd-compact-product-list-item-renderer",function(){if(fnZ!==void 0)return fnZ;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return fnZ=D},{mode:1});var LU4;var Kw=function(){return _.X.apply(this,arguments)||this};
_.P(Kw,_.X);Kw.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]]"}}}}}};
_.ql.Object.defineProperties(Kw.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Kw.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Kw.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Kw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Kw.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],Kw);
_.p(Kw,"ytd-compact-product-list-renderer",function(){if(LU4!==void 0)return LU4;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return LU4=D},{mode:1});var Act;var NV=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(NV,_.X);_.q=NV.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.q.getBackgroundUrl=function(){var D=this.get("data.headerImage.thumbnails");return D?"url("+_.G3(D,this.hostElement.clientWidth)+")":""};
_.q.onDataChanged=function(){var D=this.getBackgroundUrl();D&&(this.header.style.backgroundImage=D);D=_.v3();var t=_.lo(),H=this.get("data.trackingParams");H&&t&&D&&_.Q$(D,t,_.Sa(H));D=_.F(this.hostElement.querySelectorAll("yt-img-shadow"));for(t=D.next();!t.done;t=D.next())t.value.onShow()};
_.q.onPopupClosed=function(D){_.qy(D).localName==="ytd-membership-post-cancel-renderer"&&_.ET(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
NV.prototype.onPopupClosed=NV.prototype.onPopupClosed;NV.prototype.onDataChanged=NV.prototype.onDataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],NV.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],NV.prototype,"darkerDarkTheme",void 0);
_.d([_.o5("#header"),_.x("design:type",HTMLDivElement)],NV.prototype,"header",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],NV.prototype,"onDataChanged",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],NV.prototype,"onPopupClosed",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],NV);
_.p(NV,"ytd-membership-post-cancel-renderer",function(){if(Act!==void 0)return Act;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Act=D},{mode:1});var gjO;var kb=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(kb,_.X);kb.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
kb.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],kb.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],kb.prototype,"darkerDarkTheme",void 0);_.d([_.o5("ytd-feedback-survey-renderer"),_.x("design:type",Object)],kb.prototype,"feedbackSurveyRenderer",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],kb);
_.p(kb,"ytd-sponsorship-confirm-cancel-content",function(){if(gjO!==void 0)return gjO;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return gjO=D},{mode:1});var JcH;var T2=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");D.maybeSubmitFeedback=function(){D.content&&D.content.maybeSubmitFeedback()};
return D};
_.P(T2,_.X);_.q=T2.prototype;_.q.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.q.onYtPopupOpened=function(D,t){t===this&&this.data&&this.data.onOpenCommands&&_.k0(this.hostElement,this.data.onOpenCommands,this.hostElement);_.ET(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.q.onYtPopupClosed=function(D,t){(t&&t.canceled===!0||t&&t.canceled===!1&&t.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.k0(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.q.onYtServiceRequestCompleted=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.q.onYtServiceRequestError=function(D){_.y2(this.hostElement,D.detail.error.message)};
_.q.onDataChanged=function(){if(this.isAttached){var D=this.backgroundUrl;D&&(_.Kg(this.hostElement).querySelector("#header").style.backgroundImage=D)}};
_.ql.Object.defineProperties(T2.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return D?"url("+_.G3(D,this.hostElement.clientWidth)+")":""}}});
T2.prototype.onDataChanged=T2.prototype.onDataChanged;T2.prototype.onYtServiceRequestError=T2.prototype.onYtServiceRequestError;T2.prototype.onYtServiceRequestCompleted=T2.prototype.onYtServiceRequestCompleted;T2.prototype.onYtPopupClosed=T2.prototype.onYtPopupClosed;T2.prototype.onYtPopupOpened=T2.prototype.onYtPopupOpened;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],T2.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],T2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],T2.prototype,"data",void 0);_.d([_.M({value:function(){return _.OT("SBOX_INAPPROPRIATE_CANCEL")}}),
_.x("design:type",String)],T2.prototype,"closeButtonAriaLabel",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],T2.prototype,"darkerDarkTheme",void 0);_.d([_.o5("#scrollable"),_.x("design:type",Object)],T2.prototype,"scrollable",void 0);_.d([_.o5("ytd-sponsorship-confirm-cancel-content"),_.x("design:type",Object)],T2.prototype,"content",void 0);
_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],T2.prototype,"onYtPopupOpened",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],T2.prototype,"onYtPopupClosed",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],T2.prototype,"onYtServiceRequestCompleted",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],T2.prototype,"onYtServiceRequestError",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],T2.prototype,"onDataChanged",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],T2);
_.p(T2,"ytd-sponsorship-confirm-cancel-renderer",function(){if(JcH!==void 0)return JcH;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return JcH=D},{mode:_.Kz("kevlar_poly_si_batch_j081")?1:2});var Y3v;var ci=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(ci,_.X);ci.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ci.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ci.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],ci.prototype,"darkerDarkTheme",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],ci);
_.p(ci,"ytd-sponsorships-celebration-content",function(){if(Y3v!==void 0)return Y3v;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Y3v=
D},{mode:1});var lne;var vjF=_.zk(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),j5=function(){var D=_.X.apply(this,arguments)||this;D.scriptsAppended=!1;D.useFullWidthPrimaryButton=!1;D.buttonOverrides={type:"tonal",style:"overlay-dark"};return D};
_.P(j5,_.X);_.q=j5.prototype;_.q.dataChanged=function(){var D;this.useFullWidthPrimaryButton=!((D=this.data)==null||!D.useFullWidthPrimaryButton)};
_.q.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:_.r("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.onDataChanged=function(){var D;(D=this.header)==null||D.style.setProperty("background-color",this.backgroundColor);if(D=this.headerImageUrl){var t;(t=this.header)==null||t.style.setProperty("background-image",D)}t=_.v3(4);D=_.lo(4);var H=this.get("data.trackingParams");if(H&&D&&t){var e=_.Sa(H);_.Q$(t,D,e);_.r("combine_ve_grafts")?_.Pc().graftServerVe(H,D,4):_.Q$(t,D,e)}t=_.F(this.hostElement.querySelectorAll("yt-img-shadow"));for(D=t.next();!D.done;D=t.next())D.value.onShow();if(t=this.get("data.gtmId"))_.HP(t,
_.YC("GL","")),this.setupConversionTracking()};
_.q.setupConversionTracking=function(){if(!this.scriptsAppended){var D=document.createElement("script");var t=_.Vf(vjF.join(""));_.bF(D,t);document.head.appendChild(D);D=document.createElement("noscript");D.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(D);this.scriptsAppended=!0}};
_.q.onPopupClosed=function(D){if(_.qy(D).localName==="ytd-sponsorships-celebration-renderer"){_.ET(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var t;this.data&&((t=this.data)==null?0:t.dismissCommand)&&_.$P.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.ql.Object.defineProperties(j5.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Qk(D)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return D?"url("+_.G3(D,this.hostElement.getBoundingClientRect().width)+")":""}}});
j5.prototype.onPopupClosed=j5.prototype.onPopupClosed;j5.prototype.onDataChanged=j5.prototype.onDataChanged;j5.prototype.dataChanged=j5.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],j5.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],j5.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],j5.prototype,"data",void 0);
_.d([_.o5("#header"),_.x("design:type",HTMLElement)],j5.prototype,"header",void 0);_.d([_.M(),_.x("design:type",Object)],j5.prototype,"scriptsAppended",void 0);_.d([_.M({type:Boolean,reflectToAttribute:!0}),_.x("design:type",Object)],j5.prototype,"useFullWidthPrimaryButton",void 0);_.d([_.M(),_.x("design:type",Object)],j5.prototype,"buttonOverrides",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j5.prototype,"dataChanged",null);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],j5.prototype,"onDataChanged",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],j5.prototype,"onPopupClosed",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],j5);
_.p(j5,"ytd-sponsorships-celebration-renderer",function(){if(lne!==void 0)return lne;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return lne=D},{mode:1});var pRe;var $b=function(){var D=_.X.apply(this,arguments)||this;D.isToggleChecked=!1;return D};
_.P($b,_.X);$b.prototype.onDataChanged=function(){var D;this.isToggleChecked=((D=this.data)==null?void 0:D.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
$b.prototype.close=function(){var D;((D=this.data)==null?0:D.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
$b.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var D,t=_.O((D=this.data)==null?void 0:D.switchButton,Rvt);t&&(this.isToggleChecked&&t.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(t.switchOnInnertubeCommand),!this.isToggleChecked&&t.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(t.switchOffInnertubeCommand))};
$b.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$b.prototype.onDataChanged=$b.prototype.onDataChanged;_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],$b.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],$b.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],$b.prototype,"isToggleChecked",void 0);_.d([_.M({value:_.OT("CLOSE")}),_.x("design:type",String)],$b.prototype,"closeButtonAriaLabel",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$b.prototype,"onDataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],$b);
_.p($b,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(pRe!==void 0)return pRe;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return pRe=D},{mode:1});var dWg;var ib=function(){return _.X.apply(this,arguments)||this};
_.P(ib,_.X);_.q=ib.prototype;_.q.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"}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.detached=function(){this.playerElement.stop()};
_.q.onYtServiceRequestCompleted=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.q.onYtServiceRequestError=function(D){_.y2(this.hostElement,D.detail.error.message)};
_.q.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.q.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.q.getTier=function(D,t){return!D||!D.tiers||t<0?null:_.O(D.tiers[t],Qyb)};
_.q.moreThanOne=function(D){return!!(D&&D.length>1)};
_.q.tierOverviewTap=function(D){var t=this;this.selectedTier=D.model.index;_.Vi(this,function(){_.Gf(t.hostElement,"yt-refit")})};
_.q.computeSelectedClass=function(D,t){return this.isSelected(D,t)?"selected":""};
_.q.computeButtonAriaPressed=function(D,t){return this.isSelected(D,t)?"true":"false"};
_.q.isSelected=function(D,t){return D===t};
_.q.onDataChanged=function(){_.Kg(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Kg(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 D=_.F(this.hostElement.querySelectorAll("yt-img-shadow")),
t=D.next();!t.done;t=D.next())t.value.onShow();var H;this.set("selectedTier",(H=this.get("data.targetTierIndex"))!=null?H:0);var e;(D=(e=this.data)==null?void 0:e.onVisible)&&this.ytComponentBehavior.resolveCommand(D)};
_.q.initializeVe=function(D){var t=_.v3(),H=_.lo(),e=this.get("data.trackingParams");H&&t&&(this.screenLayer=4,t=_.pY(_.Wjk)(void 0,69877,{clientScreenNonce:t,visualElement:H},void 0,void 0,void 0),_.dZ(t,69877,4),H=_.lo(4),e&&H&&(e=_.Sa(e),_.Q$(t,H,e),D&&(this.offerVideoVe=_.Nx(74659),_.Q$(t,e,this.offerVideoVe))))};
_.q.setHeaderBackground=function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Kg(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Qk(D);if(D=this.getHeaderImage())D=_.G3(D,screen.width),_.Kg(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+D+")"};
_.q.getHeaderImage=function(){var D=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&D?D:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.q.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.q.setupVideoPlayer=function(D){var t=this,H,e,V,b;return _.Z(function(a){if(a.nextAddress==1)return H=t.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),e=t.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.r("kevlar_player_update_killswitch")?t.playerElement.update({args:{autoplay:H,video_id:D,player_params:e}}):t.playerElement.loadVideoWithPlayerVars({autoplay:H,video_id:D,player_params:e}),
a.yield(t.playerElement.getPlayerPromise(),2);V=a.yieldResult;V.addEventListener("onStateChange",function(w){t.onPlayerStateChange(w)});
V.setScreenLayer(t.screenLayer);(b=_.v3(4))&&t.offerVideoVe&&_.Bh(b,t.offerVideoVe);H&&(t.pauseOtherPlayers(),t.playerElement.focusOnPlayer(),t.playerElement.getPlayer().hideControls(),_.C7(_.Jy,function(){t.fadeOutHeaderOverlay()},4E3));
_.n2(a)})};
_.q.onPlayerStateChange=function(D){D===1?this.backgroundPlayerElement&&(D=this.backgroundPlayerElement.player_.getPlayerState(),D!==1&&D!==3||this.backgroundPlayerElement.pause()):D===0&&(_.Kg(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Kg(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.q.fadeOutHeaderOverlay=function(){_.Kg(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.q.onHeaderTap=function(){if(this.offerVideo){_.Kg(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var D;((D=this.playerElement.player_)==null?void 0:D.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(D=_.v3(4))&&this.offerVideoVe&&_.tV(D,this.offerVideoVe)}};
_.q.getBackgroundImageLayerClass=function(D){return D?"background-image-layer-with-video":""};
_.q.getHeaderClass=function(D){return D?"header-with-video":""};
_.q.getHeaderOverlayClass=function(D){return D?"header-overlay-with-video":""};
_.q.getTitleContainerClass=function(D,t){return D?"title-container-with-video":t?"title-container-without-video-flexible":"title-container-without-video"};
_.q.tierTitleDisplayStatus=function(D){return this.moreThanOne(D)?"hide":"show"};
_.q.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.qS().resolve(_.dL).getPlayerElement():this.backgroundPlayerElement=_.FA();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var D=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=D===1||D===3;this.backgroundPlayerElement.pause()}};
_.q.isMiniplayerActive=function(){return _.qS().resolve(_.dL).isMiniplayerActive()};
_.q.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("selected-tier-changed",this.selectedTier))};
ib.prototype.selectedTierChangedForBinding=ib.prototype.selectedTierChangedForBinding;ib.prototype.onDataChanged=ib.prototype.onDataChanged;ib.prototype.onYtPopupClosed=ib.prototype.onYtPopupClosed;ib.prototype.onYtPopupOpened=ib.prototype.onYtPopupOpened;ib.prototype.onYtServiceRequestError=ib.prototype.onYtServiceRequestError;ib.prototype.onYtServiceRequestCompleted=ib.prototype.onYtServiceRequestCompleted;
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],ib.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ib.prototype,"data",void 0);_.d([_.M({value:0}),_.x("design:type",Number)],ib.prototype,"selectedTier",void 0);
_.d([_.M({value:""}),_.x("design:type",String)],ib.prototype,"offerVideo",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],ib.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.d([_.M({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.I$(this)}}),
_.x("design:type",String)],ib.prototype,"playerId",void 0);_.d([_.o5("tp-yt-paper-dialog-scrollable"),_.x("design:type",Object)],ib.prototype,"scrollable",void 0);_.d([_.o5("ytd-sponsorships-tier-renderer"),_.x("design:type",Object)],ib.prototype,"tierRenderer",void 0);_.d([_.o5("#player"),_.x("design:type",Object)],ib.prototype,"playerElement",void 0);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ib.prototype,"onYtServiceRequestCompleted",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],ib.prototype,"onYtServiceRequestError",null);
_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ib.prototype,"onYtPopupOpened",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ib.prototype,"onYtPopupClosed",null);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ib.prototype,"onDataChanged",null);
_.d([_.Os("selectedTier"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],ib.prototype,"selectedTierChangedForBinding",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],ib);
_.p(ib,"ytd-sponsorships-offer-renderer",function(){if(dWg!==void 0)return dWg;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return dWg=D},{mode:_.Kz("kevlar_poly_si_batch_j077")?1:2});var xWH;var r0=function(){var D=_.X.apply(this,arguments)||this;D.buttonOverrides={type:"filled",style:"mono"};return D};
_.P(r0,_.X);r0.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}}}}}};
r0.prototype.backgroundColorChanged=function(){var D,t,H,e=(t=_.O((D=this.data)==null?void 0:D.content,yfe))==null?void 0:(H=t.backgroundColor)==null?void 0:H.backgroundColor;e&&(D=_.Ih(e),_.Kg(this.hostElement).querySelector("#banner").style.backgroundColor=D,_.Kg(this.hostElement).querySelector("#abstract-art").style.backgroundColor=D)};
r0.prototype.attached=function(){this.JSC$20652_scroller&&(this.JSC$20652_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20652_scroller.attached&&typeof this.JSC$20652_scroller.attached==="function"&&this.JSC$20652_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
r0.prototype.backgroundColorChanged=r0.prototype.backgroundColorChanged;_.d([_.M(),_.x("design:type",Object)],r0.prototype,"data",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],r0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.o5("#scroller"),_.x("design:type",Object)],r0.prototype,"JSC$20652_scroller",void 0);_.d([_.M(),_.x("design:type",Object)],r0.prototype,"buttonOverrides",void 0);
_.d([_.Os("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],r0.prototype,"backgroundColorChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],r0);
_.p(r0,"ytd-sponsorships-promotion-celebration-renderer",function(){if(xWH!==void 0)return xWH;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return xWH=D},{mode:_.Kz("kevlar_poly_si_batch_j077")?1:2});var Rai;var uSe;var ON=function(){return _.X.apply(this,arguments)||this};
_.P(ON,_.X);ON.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
ON.prototype.computeIsInitiallyChecked=function(D){return D===1};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],ON.prototype,"data",void 0);_.d([_.o5("#checkbox"),_.x("design:type",Object)],ON.prototype,"checkbox",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],ON);
_.p(ON,"ytd-subscription-toggle-option-renderer",function(){if(uSe!==void 0)return uSe;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return uSe=D},{mode:1});var UN=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");D.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return D};
_.P(UN,_.X);UN.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"}}}};
UN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
UN.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var D=_.Kg(this.hostElement).querySelector("#options").selected;D=this.data.options[D].subscriptionRadioOptionRenderer.serviceEndpoint;var t=_.Kg(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");t&&D&&D.modifyChannelNotificationPreferenceEndpoint&&(t=t.getValue())&&(D.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[t]);_.qS().resolve(_.aA).resolveCommand(D,{form:{element:this.hostElement}});
_.ET(this.hostElement,"yt-close-popup-action")};
_.ql.Object.defineProperties(UN.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var D=this.data.options,t=0;t<D.length;t++){var H=D[t].subscriptionRadioOptionRenderer;if(H&&H.selected)return t}return null}}});
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],UN.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],UN.prototype,"eventForwardingBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],UN.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],UN.prototype,"darkerDarkTheme",void 0);_.d([_.m("data.options"),_.x("design:type",Object),_.x("design:paramtypes",[])],UN.prototype,"initialIndex",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],UN);
_.p(UN,"ytd-subscription-notification-options-renderer",function(){if(Rai!==void 0)return Rai;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Rai=D},{mode:1});var WUt;var oO=function(){return _.X.apply(this,arguments)||this};
_.P(oO,_.X);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],oO.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],oO.prototype,"data",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],oO);
_.p(oO,"ytd-tvfilm-offer-groups-renderer",function(){if(WUt!==void 0)return WUt;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return WUt=D},{mode:1});var Inv;var Pi=function(){var D=_.X.apply(this,arguments)||this;D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(Pi,_.X);_.q=Pi.prototype;_.q.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"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.q.computeThumbnailClass=function(D){return D.thumbnailOverlays?D.isShow?"thumbnail-show":"thumbnail-movie":D.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.q.computeCommerceSectionClass=function(D){return D.offers&&D.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.q.computeTitleClass=function(D){return D.offers&&D.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.q.onDataChanged=function(){[].concat(_.A6(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(D){D.onShow()})};
Pi.prototype.onDataChanged=Pi.prototype.onDataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Pi.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Pi.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Pi.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Pi.prototype,"darkerDarkTheme",void 0);
_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Pi.prototype,"onDataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],Pi);
_.p(Pi,"ytd-ypc-offers-overlay-renderer",function(){if(Inv!==void 0)return Inv;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Inv=D},{mode:_.Kz("kevlar_poly_si_batch_j028")?1:2});var Qdi;var ycQ=function(){this.usedMethods=new Set};
ycQ.prototype.add=function(D){this.usedMethods.add(D)};
ycQ.prototype.reset=function(){this.usedMethods.clear()};var DjQ=function(D,t){this.query=D;this.previousSearchQuery=t;this.id=Bse++;if(!zaF){t=_.YC("SBOX_SETTINGS");D="https://"+((t==null?void 0:t.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var H=t==null?void 0:t.REQUEST_LANGUAGE;H&&(D+="&hl="+H);(H=t==null?void 0:t.REQUEST_DOMAIN)&&(D+="&gl="+H);D+="&client=youtube&gs_ri=youtube";(H=t==null?void 0:t.SUGG_EXP_ID)&&(D+="&sugexp="+encodeURIComponent(H));(H=t==null?void 0:t.PSUGGEST_TOKEN)&&(D+="&tok="+H);(t=
t==null?void 0:t.SESSION_INDEX)&&(D+="&authuser="+t);_.r("desktop_enable_visual_suggest")&&(D+="&h=180&w=320&ytvs=1");zaF=D}},tFY=function(D){var t="q="+encodeURIComponent(D.query);
D.previousSearchQuery&&(t+="&pq="+encodeURIComponent(D.previousSearchQuery));return t},Hkv=function(){var D=_.YC("SBOX_SETTINGS"),t={};
if(D==null?0:D.SEND_VISITOR_DATA)t["X-Goog-Visitor-Id"]=D==null?void 0:D.VISITOR_DATA;return t},ecZ=function(D){var t=zaF;
t+="&gs_id="+D.id.toString(36);t+="&q="+encodeURIComponent(D.query);t+="&cp="+D.query.length;D.previousSearchQuery&&(t+="&pq="+encodeURIComponent(D.previousSearchQuery));(D=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(t+="&video_id="+D);return t},Bse=0,zaF="";var VFi=_.g5.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,bkF=_.g5.SEARCH_ENTITY_SUGGESTION_MOVIE,qJQ=_.g5.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,F4H=_.g5.SEARCH_ENTITY_SUGGESTION_TV_SHOW,aqQ=function(D,t){this.text=D;this.bold=t},wDH=function(D,t,H){this.input=t;
this.index=H;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=D[0];this.type=D[1];this.subtypes=D[2];var e;this.displayText=Ff((e=D[3])==null?void 0:e.b);var V;this.ignoredPrefix=Ff((V=D[3])==null?void 0:V.a);var b,a;this.hasNewVideo=((b=D[3])==null?void 0:(a=b.zam)==null?void 0:a.toString())==="true"?!0:!1;var w;this.visualSuggestUrl=(w=D[3])==null?void 0:w.zai;var h;this.entityType=Ff((h=D[3])==null?void 0:h.zap);var K;this.entityName=Ff((K=D[3])==null?void 0:K.zao);var N;t=Ff((N=
D[3])==null?void 0:N.zaf);var k;this.entityMid=(k=D[3])==null?void 0:k.zae;N=Eit(this.subtypes,this.entityMid);if(t&&N){if(t){k="";switch(N){case "YOUTUBE_ENTITY_TYPE_SONG":k=qJQ;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":k=VFi;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":k=F4H;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":k=bkF}N=N==="YOUTUBE_ENTITY_TYPE_SONG"||N==="YOUTUBE_ENTITY_TYPE_ALBUM"?k+" \u2022  \u2022 "+t:t}else N="";this.entitySubtitle=N}var T;this.externalChannelId=(T=D[3])==null?void 0:T.zav;var c;
this.entityThumbnailAttributionUrl=(c=D[3])==null?void 0:c.zaq},s2F=function(D,t){var H=[],e,V=(e=D.displayText)!=null?e:D.text;
(t==null?0:t.useEntityName)&&ZkH(D)&&D.entityName&&(V=D.entityName);if(D.type===33)return H.push(new aqQ(V,!1)),H;if(V.length>=D.input.length&&V.substring(0,D.input.length)===D.input)H.push(new aqQ(D.input,!1)),H.push(new aqQ(V.substring(D.input.length),!0));else{var b=new Set(D.input.split(/\s/)),a=V.split(/\s/);H=a.map(function(w,h){return new aqQ(w.trim()+(h===a.length-1?"":" "),!b.has(w))})}return H},ZkH=function(D){var t=!!Eit(D.subtypes);
D=!!D.entityMid;return t||D};var hcH=function(D){this.rawResponse=["",[],{}];this.suggestions=[];try{var t=JSON.parse(KtY(D));if(typeof t==="object"&&t!==null)this.rawResponse=t;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(e){console.log("Suggest: Failed to parse SuggestResponse!");return}var H=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(e,V){return new wDH(e,H,V)})};var G$Z=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new ycQ;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20689_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},ElF,K4F=function(){ElF||(ElF=new G$Z);
return ElF};
G$Z.prototype.updateSuggestions=function(D){var t=this;this.availableSuggestions.forEach(function(H){t.previousSuggestions[H]=!0});
this.availableSuggestions=D.map(function(H){var e=H.type.toString();H.subtypes.length>0&&(e+="i"+H.subtypes.join("i"),e+="k"+H.suggestionSources.COMPLETE_SERVER.toString());return e})};
var N2i=function(D,t){var H=Date.now();D.firstEditTime<0&&(D.firstEditTime=H);t&&(D.lastQueryBuildTime=H);D.lastEditTime=H};
G$Z.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20689_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var k$H=function(D){var t="";D.availableSuggestions.forEach(function(V){delete D.previousSuggestions[V]});
for(var H=_.F(Object.keys(D.previousSuggestions)),e=H.next();!e.done;e=H.next())e=e.value,D.previousSuggestions[e]&&(t+=(t?"j":"")+e);return t},T24=function(D,t){var H=[];
t&&(H[1]=t.toString());H[0]="youtube";H[7]=Date.now()-D.startTime;H[6]=D.sessionNumber;D.zeroPrefixSuggestionCount>=0&&(H[33]=D.zeroPrefixSuggestionCount);H[13]=D.outOfSyncResponseCount;if(D.availableSuggestions.length>0){for(var e=t="",V=0,b=_.F(D.availableSuggestions),a=b.next();!a.done;a=b.next())a=a.value,a!==e&&(V>1&&(t+="l"+V),t+=(e?"j":"")+a,V=0,e=a),V+=1;V>1&&(t+="l"+V);H[3]=t}H[35]=k$H(D);D.selectedSuggestionIndex>=0&&(H[2]=D.selectedSuggestionIndex);var w;if(t=(w=_.YC("SBOX_SETTINGS"))==
null?void 0:w.SUGG_EXP_ID)H[19]=D.normalize(t),w=0,D.experimentTriggeredBeforeFinal&&(w|=1),D.experimentTriggeredFinal&&(w|=2),H[20]=w;H[26]=Array.from(D.inputMethodsTracker.usedMethods).join("j");if(D.JSC$20689_totalRoundTripTime>0){H[15]=D.JSC$20689_totalRoundTripTime;H[14]=D.maxRoundTripTime;w=[];for(V=t=0;V<10;V++)e=D.roundTripTimeHistogram[V],e===0?t++:(t>1?w.push(V+"-"+e):t===1?w.push("0j"+e):w.push(e.toString()),t=0);w=w.join("j");H[16]=w}D.zeroPrefixRoundTripTime>0&&(H[36]=D.zeroPrefixRoundTripTime);
D.lastQueryBuildTime>0&&(H[18]=D.lastQueryBuildTime-D.startTime);D.firstEditTime>0&&(H[4]=D.firstEditTime-D.startTime);D.lastEditTime>0&&(H[5]=D.lastEditTime-D.startTime);return H.join(".")};
G$Z.prototype.normalize=function(D){return D.replaceAll(".","-")};
var cPH=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var nw=function(){var D=_.X.apply(this,arguments)||this;D.microphoneSpinnerActive=!1;D.noAnimations=!1;D.boundExitClick=function(){D.onExitButtonClick()};
D.speechOverlayClassName="";D.isLevelAnimating=!1;D.playCloseDialogAudioFeedback=!0;D.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return D};
_.P(nw,_.X);_.q=nw.prototype;_.q.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.q.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=e9e()};
_.q.dataChanged=function(){this.logDialog()};
_.q.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var D;(D=this.manager.audioPlayer)!=null&&(D.JSC$20008_audioEnabled=!1)}this.manager.stop();(D=this.manager.audioPlayer)!=null&&(D.JSC$20008_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.q.handleSpeechQueryCompleteAction=function(D){var t=D.navigationAction;t&&(D.trackingParams&&_.Pc().graftServerVe(D.trackingParams,this.dialogVe,5),_.Gf(this.hostElement,"yt-navigate",{endpoint:t,tempData:this.getNavigationParams(t),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.q.onExitButtonClick=function(){this.closeDialog()};
_.q.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var D;if((D=this.manager)!=null){var t;(t=D.audioPlayer)==null||ME(t,"failure");D.setState("microphone-off");D.stop()}}else(D=this.manager)==null||D.start()};
_.q.transcriptionChanged=function(){var D,t;(((D=this.transcription)==null?0:D.low)||((t=this.transcription)==null?0:t.high))&&this.setState("transcribing",this.transcription)};
_.q.stateChanged=function(){this.setState(this.state,this.transcription)};
_.q.logDialog=function(){var D;(D=this.data)!=null&&D.trackingParams&&(D=_.Pc(),_.Li(D,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=D.graftServerVe(this.data.trackingParams,void 0,5))};
_.q.getNavigationParams=function(D){var t={};if(_.r("web_yt_searchbox")){var H=K4F();H.inputMethodsTracker.add(6);H=T24(H,15);t.gs_l=H;var e;t.oq=((e=_.O(D,_.oh))==null?void 0:e.query)||""}else if(D=window.ytvoicesearchloggingparams){if(D=D())t.oq=D.oq,t.gs_l=D.gs_l}else _.uh(Error("Dl"));return t};
_.q.closeDialog=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.q.setState=function(D,t){if(this.data){var H=this.data,e={};switch(D){case "listening":e={headerText:H.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:H.microphoneButtonAriaLabel};break;case "timeout":e={headerText:H.promptHeader,microphoneState:"try-again",microphoneLabel:H.promptMicrophoneLabel,microphoneAriaLabel:H.promptMicrophoneLabel};break;case "microphone-off":e={headerText:H.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:H.promptMicrophoneLabel,
microphoneAriaLabel:H.promptMicrophoneLabel};break;case "transcribing":(t==null?0:t.low)||(t==null?0:t.high)?e={transcriptionLow:t==null?void 0:t.low,transcriptionHigh:t==null?void 0:t.high,microphoneState:"speaking",microphoneAriaLabel:H.microphoneButtonAriaLabel}:e={headerText:H.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:H.microphoneButtonAriaLabel};break;case "processing":e={headerText:H.loadingHeader,microphoneState:"processing",microphoneAriaLabel:H.microphoneButtonAriaLabel};
break;case "offline":e={headerText:H.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:H.connectionErrorMicrophoneLabel,microphoneAriaLabel:H.connectionErrorMicrophoneLabel};break;case "permission":e={headerText:H.permissionsHeader,bodyLine1:H.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:H.permissionsSubtext};break;case "permission-denied":e={headerText:H.disabledHeader,bodyLine1:H.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:H.disabledSubtext}}e.className=
D;this.speechOverlayState=e;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.q.setMicrophoneState=function(D){var t=this.isLevelAnimating;this.isLevelAnimating=D==="speaking";!t&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=D==="processing"&&!this.noAnimations};
_.q.setClass=function(D){this.speechOverlayClassName&&_.kL(this.hostElement,this.speechOverlayClassName,!1);D&&(this.speechOverlayClassName=D,_.kL(this.hostElement,D,!0))};
_.q.runLevelAnimation=function(){var D=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var t=1+Math.random()*.75,H=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+H/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+t+")");_.Jy.addJob(function(){D.runLevelAnimation()},3,H)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
nw.prototype.stateChanged=nw.prototype.stateChanged;nw.prototype.transcriptionChanged=nw.prototype.transcriptionChanged;nw.prototype.onPopupClosed=nw.prototype.onPopupClosed;nw.prototype.dataChanged=nw.prototype.dataChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],nw.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],nw.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],nw.prototype,"rendererStamperBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],nw.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],nw.prototype,"eventForwardingBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],nw.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],nw.prototype,"speechOverlayState",void 0);
_.d([_.M(),_.x("design:type",Object)],nw.prototype,"microphoneSpinnerActive",void 0);_.d([_.M({type:_.r("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.x("design:type",Object)],nw.prototype,"noAnimations",void 0);_.d([_.M({selector:function(D){var t;return(t=D.voiceSearch)==null?void 0:t.transcription}}),
_.x("design:type",Object)],nw.prototype,"transcription",void 0);_.d([_.M({selector:function(D){var t;return(t=D.voiceSearch)==null?void 0:t.overlay}}),
_.x("design:type",String)],nw.prototype,"state",void 0);_.d([_.M(),_.x("design:type",Object)],nw.prototype,"boundExitClick",void 0);_.d([_.o5("#microphone-levels"),_.x("design:type",HTMLElement)],nw.prototype,"level",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nw.prototype,"dataChanged",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nw.prototype,"onPopupClosed",null);
_.d([_.mx("transcription"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nw.prototype,"transcriptionChanged",null);_.d([_.mx("state"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],nw.prototype,"stateChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],nw);
_.p(nw,"ytd-voice-search-dialog-renderer",function(){if(Qdi!==void 0)return Qdi;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Qdi=D},{mode:1});var j2t;var Cw=function(){var D=_.X.apply(this,arguments)||this;D.isOverlay=!1;D.hidden=!1;return D};
_.P(Cw,_.X);_.q=Cw.prototype;_.q.onPopupClosed=function(){this.toggleIconState(!1)};
_.q.computeIcon=function(){var D,t,H;return(t=_.O((D=this.data)==null?void 0:D.icon,Hoi))==null?void 0:(H=t.icon)==null?void 0:H.iconType};
_.q.computeIconBadgeShape=function(){var D;return{iconBadgeType:"cart",iconBadgeText:(D=this.iconBadgeEntity)==null?void 0:D.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.q.onClick=function(){var D;(D=this.data)!=null&&D.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.q.computeHidden=function(D){return!D};
_.q.toggleIconState=function(D){this.iconButton&&(this.iconButton.pressed=D)};
Cw.prototype.onPopupClosed=Cw.prototype.onPopupClosed;_.d([_.C(_.sx),_.x("design:type",Object)],Cw.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Cw.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Cw.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Cw.prototype,"isOverlay",void 0);
_.d([_.M({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.x("design:type",Object)],Cw.prototype,"hidden",void 0);_.d([_.M({selectorArgs:["data.iconBadgeEntityKey"],selector:function(D,t){return _.jR(D.entities,"iconBadgeEntity",t)}}),
_.x("design:type",Object)],Cw.prototype,"iconBadgeEntity",void 0);_.d([_.o5("yt-icon-button"),_.x("design:type",HTMLButtonElement)],Cw.prototype,"iconButton",void 0);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Cw.prototype,"onPopupClosed",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],Cw);
_.p(Cw,"ytd-icon-badge-topbar-button-renderer",function(){if(j2t!==void 0)return j2t;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return j2t=D},{mode:1});var $jt;var mS=function(){var D=_.X.apply(this,arguments)||this;D.premiumOptions=[];D.darkerDarkTheme=_.r("web_darker_dark_theme");return D};
_.P(mS,_.X);mS.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.ql.Object.defineProperties(mS.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],mS.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Array)],mS.prototype,"premiumOptions",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],mS.prototype,"darkerDarkTheme",void 0);_.d([_.m("premiumOptions"),_.x("design:type",Object),_.x("design:paramtypes",[])],mS.prototype,"hasPremiumOptions",null);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],mS);
_.p(mS,"ytd-offline-promo-content",function(){if($jt!==void 0)return $jt;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return $jt=D},{mode:1});var ikt;var MV=function(){var D=_.X.apply(this,arguments)||this;D.premiumOptions=[];return D};
_.P(MV,_.X);MV.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var D;this.premiumOptions=GmZ((D=this.data)==null?void 0:D.formats)};
MV.prototype.onClickSubmit=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var D;(D=_.FA())==null||D.pause()};
MV.prototype.attached=function(){this.JSC$20709_scroller&&(this.JSC$20709_scroller.dialogElement=this.hostElement.parentNode)};
_.ql.Object.defineProperties(MV.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
MV.prototype.dataChanged=MV.prototype.dataChanged;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],MV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],MV.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],MV.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],MV.prototype,"data",void 0);
_.d([_.M({computed:"computeIcon_(data.headersIcon)",value:""}),_.x("design:type",String)],MV.prototype,"headersIcon",void 0);_.d([_.M(),_.x("design:type",Array)],MV.prototype,"premiumOptions",void 0);_.d([_.o5("#scroller"),_.x("design:type",Object)],MV.prototype,"JSC$20709_scroller",void 0);_.d([_.m("headersIcon"),_.x("design:type",Object),_.x("design:paramtypes",[])],MV.prototype,"showIcon",null);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],MV.prototype,"dataChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],MV);
_.p(MV,"ytd-offline-promo-renderer",function(){if(ikt!==void 0)return ikt;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return ikt=D},{mode:1});var rPF;var S5=function(){var D=_.X.apply(this,arguments)||this;D.playbackPauseInterval=NaN;D.isLoading=!1;D.hasError=!1;D.dialogClass="";D.youtubeLabel=_.OT("LOGO_ALT_LABEL",{},"YouTube Home");D.logoName="yt-logos-ext:yt-logo-updated";D.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return D};
_.P(S5,_.X);_.q=S5.prototype;_.q.onDataChange=function(){var D;if(this.showEOMV1Text=!((D=this.data)==null||!D.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.q.attached=function(){this.pausePlayer()};
_.q.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.q.handleLangSelect=function(D){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[D.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.q.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.q.handleSaveConsent=function(D){var t=this;this.showLoadingSpinner();this.showLoadingSpinner();bCH(_.O(D,Hce)).catch(function(H){_.Yw(new _.nZ("Something went wrong when save consent "+(H.message?H.message:H)+"."));t.hideLoadingSpinner();t.showErrorMessage()})};
_.q.handleDisablePersonalization=function(D){var t=this;this.showLoadingSpinner();qOH(_.O(D,tXb)).then(function(){t.dialog.close();t.resumePlayer()}).catch(function(H){_.Yw(new _.nZ("Something went wrong when disable personalization "+(H.message?H.message:H)+"."));
t.hideLoadingSpinner();t.showErrorMessage()})};
_.q.showLoadingSpinner=function(){var D=this;this.showSpinnerJobId=_.Jy.addLowPriorityJob(function(){D.isLoading=!0},500)};
_.q.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Jy.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.q.showErrorMessage=function(){var D=this;this.hasError=!0;_.Jy.addLowPriorityJob(function(){D.hasError=!1},2E3)};
_.q.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.NS(function(){try{var D=_.FA();D&&D.pause()}catch(t){}},100))};
_.q.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var D=_.FA();D&&D.play()}catch(t){}};
_.ql.Object.defineProperties(S5.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.eomV1Text)return[];D=[];for(var t=["SHIELD","WARNING","BAR_CHART"],H=this.data.eomV1Text.essentialCookieMsg.items,e=0;e<t.length&&e<H.length;e++)D.push({icon:t[e],text:H[e]});return D}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var D;if((D=this.data)==null||!D.eomV1Text)return[];D=[];for(var t=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],H=this.data.eomV1Text.nonEssentialCookieMsg.items,e=0;e<t.length&&e<H.length;e++)D.push({icon:t[e],text:H[e]});return D}}});
S5.prototype.onDataChange=S5.prototype.onDataChange;_.d([_.M(),_.x("design:type",Object)],S5.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],S5.prototype,"showEOMV1Text",void 0);_.d([_.M(),_.x("design:type",Object)],S5.prototype,"isLoading",void 0);_.d([_.M(),_.x("design:type",Object)],S5.prototype,"hasError",void 0);_.d([_.M(),_.x("design:type",Number)],S5.prototype,"showSpinnerJobId",void 0);_.d([_.M(),_.x("design:type",Object)],S5.prototype,"dialogClass",void 0);
_.d([_.o5("#dialog"),_.x("design:type",Object)],S5.prototype,"dialog",void 0);_.d([_.o5("#cb-header"),_.x("design:type",HTMLElement)],S5.prototype,"header",void 0);_.d([_.o5("#lang-select"),_.x("design:type",HTMLElement)],S5.prototype,"langSelect",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],S5.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],S5.prototype,"ytComponentBehavior",void 0);
_.d([_.M(),_.x("design:type",String)],S5.prototype,"youtubeLabel",void 0);_.d([_.M(),_.x("design:type",Object)],S5.prototype,"logoName",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],S5.prototype,"onDataChange",null);_.d([_.m("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],S5.prototype,"eomEssentialCookieMsgItems",null);
_.d([_.m("data"),_.x("design:type",Array),_.x("design:paramtypes",[])],S5.prototype,"eomNonEssentialCookieMsgItems",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],S5);
_.p(S5,"ytd-consent-bump-v2-lightbox",function(){if(rPF!==void 0)return rPF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return rPF=D},{mode:1});var Okb;var X3=function(){return _.X.apply(this,arguments)||this};
_.P(X3,_.X);X3.prototype.ready=function(){if(!_.Ua()||kNZ)var D=!0;else kNZ=!0,D=!1;D||(D=document.querySelector("ytd-app"),D||(D=document.body),this.internalLightBox=_.Kg(D).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.d([_.M(),_.x("design:type",Object)],X3.prototype,"data",void 0);_.d([_.o5("#lightbox"),_.x("design:type",Object)],X3.prototype,"lightBox",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],X3);
_.p(X3,"ytd-consent-bump-v2-renderer",function(){if(Okb!==void 0)return Okb;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return Okb=D},{mode:1});var UjF;var olF;var PpO;var fw=function(){return _.X.apply(this,arguments)||this};
_.P(fw,_.X);_.q=fw.prototype;_.q.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&mGt(this.toastManager,this.toastType)};
_.q.open=function(D){this.toast&&(this.ephemeralAction&&_.qS().resolve(_.H2).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=D!=null?D:0,this.toastManager.enqueue(this.toast,D)):this.toast.open())};
_.q.close=function(D){var t;(t=this.toast)==null||t.close();this.toastManager&&D===1&&mGt(this.toastManager,D)};
_.q.refit=function(){var D;(D=this.toast)==null||D.refit()};
_.q.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var D;(D=this.toast)==null||D.close()}};
_.q.setVerticalOffset=function(D){this.toast&&(this.toast.verticalOffset=D,this.toast.fit())};
_.q.computeButtonClass_=function(D){return D?"toast-button":""};
_.q.computeText_=function(D){return _.eo(D)};
_.q.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.jX("toast-opened-changed",this.toastOpened))};
_.q.updateToastOpenedFromBinding=function(D){this.toastOpened=D.detail.value};
_.ql.Object.defineProperties(fw.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var D,t,H=(D=this.data)==null?void 0:(t=D.actionButton)==null?void 0:t.buttonRenderer;return(H==null?void 0:H.command)||(H==null?void 0:H.serviceEndpoint)||(H==null?void 0:H.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var D=[],t;((t=this.data)==null?0:t.responseText)&&D.push(_.eo(this.data.responseText));var H;((H=this.data)==null?0:H.subText)&&D.push(_.eo(this.data.subText));var e,V;if((e=this.data)==null?0:(V=e.actionButton)==null?0:V.buttonRenderer){var b,a;D.push(((b=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(a=b.accessibilityData)==null?void 0:a.label)||_.eo(this.data.actionButton.buttonRenderer.text))}return D.filter(function(w){return w}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var D,t;return(t=(D=this.toast)==null?void 0:D.opened)!=null?t:!1}}});
fw.prototype.toastOpenedChangedForBinding=fw.prototype.toastOpenedChangedForBinding;fw.prototype.toastOpenedChanged=fw.prototype.toastOpenedChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],fw.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],fw.prototype,"ytEventForwardingBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],fw.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],fw.prototype,"duration",void 0);
_.d([_.M(),_.x("design:type",Number)],fw.prototype,"toastType",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],fw.prototype,"useCloseButton",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],fw.prototype,"closeToastOnActionButtonClick",void 0);_.d([_.M({value:function(){return _.OT("SBOX_INAPPROPRIATE_CANCEL")}}),
_.x("design:type",String)],fw.prototype,"closeButtonAriaLabel",void 0);_.d([_.M(),_.x("design:type",Boolean)],fw.prototype,"toastOpened",void 0);_.d([_.M(),_.x("design:type",Boolean)],fw.prototype,"hasOpened",void 0);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],fw.prototype,"command",null);_.d([_.m("labelText","command","duration"),_.x("design:type",Object),_.x("design:paramtypes",[])],fw.prototype,"ephemeralAction",null);
_.d([_.m("ephemeralAction"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],fw.prototype,"hasEphemeralAction",null);_.d([_.o5("#toast"),_.x("design:type",Object)],fw.prototype,"toast",void 0);_.d([_.M({value:function(){return{style:"call-to-action-inverse"}}}),
_.x("design:type",Object)],fw.prototype,"buttonOverrides",void 0);_.d([_.M({value:{style:"mono-inverse"}}),_.x("design:type",Object)],fw.prototype,"closeButtonOverrides",void 0);_.d([_.M({value:function(){return _.qS().resolve(_.by(_.yY))}}),
_.x("design:type",Object)],fw.prototype,"toastManager",void 0);_.d([_.m("data.responseText","data.subText","data.actionButton"),_.x("design:type",Object),_.x("design:paramtypes",[])],fw.prototype,"labelText",null);_.d([_.Os("toastOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fw.prototype,"toastOpenedChanged",null);
_.d([_.Os("toastOpened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],fw.prototype,"toastOpenedChangedForBinding",null);_.d([_.xL({is:"yt-notification-action-renderer",disableElementRegistration:!0})],fw);
_.p(fw,"yt-notification-action-renderer",function(){if(PpO===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;olF===void 0&&(olF=document.createElement("template"));var e=olF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);PpO=D}D=PpO;return D},{mode:2});var Lw=function(){var D=_.X.apply(this,arguments)||this;D.duration=4E3;D.downloadingCount=0;D.downloadedCount=0;D.downloadingOnlySmartDownloads=!1;D.sessionTotalDownloads=0;D.sessionDownloaded=0;D.previousSessionsDownloaded=0;D.totalDownloadPercentage=0;D.currentDownloadProgress=0;D.currentDownloadPercentage=0;D.isLeaderTab=!0;D.isFullScreen=!1;D.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};D.boundBeforeUnload=function(t){D.isLeaderTab&&D.downloadingCount>0&&(t.preventDefault(),
t.returnValue=!0)};
return D};
_.P(Lw,_.X);_.q=Lw.prototype;
_.q.open=function(){this.updateDownloadState();if(this.data){var D=this.sessionDownloaded+1,t=this.sessionTotalDownloads>1?_.OT("VIDEOS_DOWNLOADING_RATIO",{downloaded:D.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+D+"/"+this.sessionTotalDownloads):_.OT("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(t=this.sessionTotalDownloads>1?_.OT("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:D.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
D+"/"+this.sessionTotalDownloads):_.OT("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));D=this.isLeaderTab?_.OT("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.eo(this.data.responseText)!==t||_.eo(this.data.subText)!==D)this.set("data.responseText",_.H7(t)),this.set("data.subText",_.H7(D)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.q.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.q.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.q.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.q.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var D=this.downloadedCount-this.previousSessionsDownloaded;D<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-D);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.q.handleFullscreenChange=function(D){(this.isFullScreen=D)||this.updatePopup()};
Lw.prototype.updateCurrentDownloadProgress=Lw.prototype.updateCurrentDownloadProgress;Lw.prototype.updatePopup=Lw.prototype.updatePopup;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Lw.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],Lw.prototype,"ytEventForwardingBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Lw.prototype,"actionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Lw.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Lw.prototype,"duration",void 0);_.d([_.M({selector:function(D){return _.Oi8(D.entities).length}}),
_.x("design:type",Object)],Lw.prototype,"downloadingCount",void 0);_.d([_.M({selector:K1b}),_.x("design:type",Object)],Lw.prototype,"downloadedCount",void 0);_.d([_.M({selector:function(D){var t=_.Oi8(D.entities);return EeF(D.entities,t)}}),
_.x("design:type",Object)],Lw.prototype,"downloadingOnlySmartDownloads",void 0);_.d([_.M(),_.x("design:type",Object)],Lw.prototype,"sessionTotalDownloads",void 0);_.d([_.M(),_.x("design:type",Object)],Lw.prototype,"sessionDownloaded",void 0);_.d([_.M(),_.x("design:type",Object)],Lw.prototype,"previousSessionsDownloaded",void 0);_.d([_.M(),_.x("design:type",Object)],Lw.prototype,"totalDownloadPercentage",void 0);
_.d([_.M({selector:function(D){var t;D=(t=_.Oi8(D.entities))!=null?t:[];return D.length>0?_.G63(D.slice(-1)):0}}),
_.x("design:type",Object)],Lw.prototype,"currentDownloadProgress",void 0);_.d([_.M(),_.x("design:type",Object)],Lw.prototype,"currentDownloadPercentage",void 0);_.d([_.M({selector:_.CSA}),_.x("design:type",Object)],Lw.prototype,"isLeaderTab",void 0);_.d([_.o5("yt-notification-action-renderer"),_.x("design:type",Object)],Lw.prototype,"notificationActionRenderer",void 0);
_.d([_.mx("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lw.prototype,"updatePopup",null);_.d([_.mx("currentDownloadProgress"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Lw.prototype,"updateCurrentDownloadProgress",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Lw);
_.p(Lw,"ytd-video-download-toast-renderer",function(){if(UjF!==void 0)return UjF;var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return UjF=D},{mode:1});var nlO;var Cpg;var Ab=function(){return _.X.apply(this,arguments)||this};
_.P(Ab,_.X);Ab.prototype.computeIsRedLogo=function(D,t){!D&&t&&(D=t);return D==="YOUTUBE_RED_LOGO"||D==="YOUTUBE_PREMIUM_LOGO"};
Ab.prototype.computeLogoName=function(D){D=this.componentBehavior.computeIcon_(D);return D===""?"yt-logos-ext:yt-logo-updated":D};
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Ab.prototype,"componentBehavior",void 0);_.d([_.M({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.x("design:type",Boolean)],Ab.prototype,"isRedLogo",void 0);_.d([_.M({computed:"computeLogoName(data)"}),_.x("design:type",String)],Ab.prototype,"logoName",void 0);_.d([_.M({value:{}}),_.x("design:type",Object)],Ab.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],Ab.prototype,"logoType",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-logo"})],Ab);
_.p(Ab,"ytd-logo",function(){if(Cpg!==void 0)return Cpg;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return Cpg=D},{mode:_.Kz("kevlar_poly_si_batch_j074")?1:2});var g0=function(){var D=_.X.apply(this,arguments)||this;D.animationRef={};return D};
_.P(g0,_.X);_.q=g0.prototype;_.q.attached=function(){document.addEventListener("yt-navigate-finish",_.iK(this,this.logYoodle))};
_.q.detached=function(){document.removeEventListener("yt-navigate-finish",_.iK(this,this.logYoodle))};
_.q.logYoodle=function(){var D,t;if((D=this.data)==null?0:(t=D.loggingDirectives)==null?0:t.trackingParams)this.ytRendererBehavior.markDirty(),_.Pc().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.q.computeHideImg=function(D,t){return!!D||!!t};
_.q.computeHideYtdLogo=function(D,t){return!D||!!t};
_.q.computeHideLottie=function(D){return!D};
_.q.computeIsRedLogo=function(D){return D==="YOUTUBE_RED_LOGO"||D==="YOUTUBE_PREMIUM_LOGO"};
_.q.renderLogoEntity=function(){var D=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),t=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),H=this.getLogoTitleText(this.data),e=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==D&&(this.url=D);this.animatedUrl!==t&&(this.animatedUrl=t);this.logoTitleText!==H&&(this.logoTitleText=H);this.lottieUrl!==e&&(this.lottieUrl=e,this.lottiePlayerProps=this.computeLottiePlayerProps(e))};
_.q.getSanitizedThumbnail=function(D){return D&&D.thumbnails?_.Ag$(D.thumbnails,122)||"":""};
_.q.getThumbnailUrl=function(D,t){if(!t)return"";var H,e;D=D?(H=t.darkThemeLogo)==null?void 0:H.thumbnail:(e=t.lightThemeLogo)==null?void 0:e.thumbnail;return this.getSanitizedThumbnail(D)};
_.q.getAnimatedThumbnailUrl=function(D,t){return t?this.getSanitizedThumbnail(D?t.darkThemeAnimatedLogo:t.lightThemeAnimatedLogo):""};
_.q.getLogoTitleText=function(D){if(D)return _.eo(D.tooltipText)};
_.q.computeLogoIcon=function(D,t){if(t){var H,e;return D?(H=t.darkThemeLogo)==null?void 0:H.icon:(e=t.lightThemeLogo)==null?void 0:e.icon}};
_.q.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.q.getLottieUrl=function(D,t){var H,e,V,b;return D?t==null?void 0:(H=t.darkThemeLogo)==null?void 0:(e=H.lottieAnimation)==null?void 0:e.url:t==null?void 0:(V=t.lightThemeLogo)==null?void 0:(b=V.lottieAnimation)==null?void 0:b.url};
_.q.computeLottiePlayerProps=function(D){if(D){var t;if((t=this.animationRef)==null?0:t.lottieEl){var H;(H=this.animationRef)==null||H.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:D,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.q.onLottieError=function(){this.data&&this.lottieUrl&&_.Gf(this.hostElement,"yoodle-error")};
_.q.onImgError=function(){this.data&&!this.lottieUrl&&_.Gf(this.hostElement,"yoodle-error")};
g0.prototype.playAnimation=g0.prototype.playAnimation;g0.prototype.renderLogoEntity=g0.prototype.renderLogoEntity;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],g0.prototype,"data",void 0);_.d([_.M({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.x("design:type",Boolean)],g0.prototype,"hideImg",void 0);
_.d([_.M({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.x("design:type",Boolean)],g0.prototype,"hideYtdLogo",void 0);_.d([_.M({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.x("design:type",Boolean)],g0.prototype,"hideLottie",void 0);_.d([_.M({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.x("design:type",Boolean)],g0.prototype,"isRedLogo",void 0);
_.d([_.M(),_.x("design:type",Boolean)],g0.prototype,"useDarkThemeYoodle",void 0);_.d([_.M(),_.x("design:type",String)],g0.prototype,"url",void 0);_.d([_.M(),_.x("design:type",String)],g0.prototype,"animatedUrl",void 0);_.d([_.M(),_.x("design:type",String)],g0.prototype,"logoTitleText",void 0);_.d([_.M({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.x("design:type",Object)],g0.prototype,"logoIcon",void 0);_.d([_.M(),_.x("design:type",Object)],g0.prototype,"logoType",void 0);
_.d([_.M(),_.x("design:type",String)],g0.prototype,"lottieUrl",void 0);_.d([_.M(),_.x("design:type",Object)],g0.prototype,"lottiePlayerProps",void 0);_.d([_.M(),_.x("design:type",Object)],g0.prototype,"animationRef",void 0);_.d([_.Os("data"),_.Os("useDarkThemeYoodle"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],g0.prototype,"renderLogoEntity",null);
_.d([_.rx("click"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],g0.prototype,"playAnimation",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],g0);
_.p(g0,"ytd-yoodle-renderer",function(){if(nlO!==void 0)return nlO;var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return nlO=D},{mode:_.Kz("kevlar_poly_si_batch_j074")?1:2});var mje;var MFY;var SJt=_.uO.currentPageTypeSelector,XDH=_.uO.currentPageSubTypeSelector,Jb=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return D};
_.P(Jb,_.X);_.q=Jb.prototype;_.q.onYoodleError=function(){_.r("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.q.computeLogoName=function(D){D=this.componentBehavior.computeIcon_(D);return D===""?"yt-logos-ext:yt-logo-updated":D};
_.q.computeTitle=function(D,t,H){return H&&(t==null?0:t.tooltipText)?_.eo(t.tooltipText):_.eo(D)};
_.q.computeAriaLabel=function(D,t,H){return H&&(t==null?0:t.tooltipText)?_.eo(D):""};
_.q.computeShowYoodle=function(D,t,H){return!D||!t&&!!H&&!_.J$.isEmpty(H)};
_.q.onNavigateHomeAction=function(){if(_.r("kevlar_miniplayer_navigate_home_from_app_killswitch")){var D;(D=_.Kg(this.hostElement).querySelector(".yt-simple-endpoint"))==null||D.click()}};
_.q.computeLogoHref=function(D,t,H){var e;(H==null?0:H.onTapCommand)?e=this.componentBehavior.computeHref_(H.onTapCommand):D&&(e=this.componentBehavior.computeHref_(D));return e?e:t};
_.q.computeCommand=function(D,t){return(t==null?void 0:t.onTapCommand)||D};
_.q.getEndpointForm=function(){if(_.r("kevlar_topbar_disable_cache_only_home")){var D=_.qS().resolve(_.sg),t=SJt(D.getState())||"";D=XDH(D.getState())||"";return{disableCache:t==="ytd-browse"&&D==="home"}}return{disableCache:!0}};
Jb.prototype.onYoodleError=Jb.prototype.onYoodleError;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Jb.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Jb.prototype,"componentBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Jb.prototype,"ytdReduxBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],Jb.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],Jb.prototype,"countryCode",void 0);_.d([_.M({selectorArgs:["data.overrideEntityKey"],selector:function(D,t){return _.jR(D.entities,"logoEntity",t)}}),
_.x("design:type",Object)],Jb.prototype,"logoEntity",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.x("design:type",Boolean)],Jb.prototype,"showYoodle",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Jb.prototype,"yoodleError",void 0);_.d([_.M({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.x("design:type",String)],Jb.prototype,"titleText",void 0);
_.d([_.M({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.x("design:type",String)],Jb.prototype,"ariaLabelText",void 0);_.d([_.M({value:"/"}),_.x("design:type",String)],Jb.prototype,"defaultEndpointUrl",void 0);_.d([_.M({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.x("design:type",String)],Jb.prototype,"endpointUrl",void 0);
_.d([_.M({computed:"computeCommand(data.endpoint, logoEntity)"}),_.x("design:type",String)],Jb.prototype,"command",void 0);_.d([_.M(),_.x("design:type",Object)],Jb.prototype,"logoType",void 0);_.d([_.M({}),_.x("design:type",Boolean)],Jb.prototype,"useDarkThemeYoodle",void 0);_.d([_.rx("yoodle-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Jb.prototype,"onYoodleError",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Jb);
_.p(Jb,"ytd-topbar-logo-renderer",function(){if(MFY!==void 0)return MFY;var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return MFY=D},{mode:_.Kz("kevlar_poly_si_batch_j027")?1:2});var fqF=0;var L4t=_.g5.SEARCH_APPEND_LABEL,APQ=_.g5.SUGGESTION_NEW_VIDEOS_TEXT,glF=_.g5.SUGGESTION_THUMBNAIL_LABEL,JPg=_.g5.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,YJH=_.l(function(D){function t(jf){var TH,Hv;return _.Z(function(EF){if(EF.nextAddress==1)return TH=new Request(jf),_.$p(EF,2),EF.yield(fetch(TH,{credentials:"include"}),4);if(EF.nextAddress!=2)return yZ(!0),_.yM(EF,0);Hv=_.Pv(EF);_.Yw(Hv);_.n2(EF)})}
var H=D.isHighlighted;var e=D.suggestion;var V=D.onClickCallback;var b=D.onHoverUpdateCallback;var a=D.labels;var w=D.queryBuilderFunction;var h=D.onRemoveCallback;var K=D.suggestionIndex;var N=D.generateUniqueId;var k=D.highlightedId;var T=D.useScrollMargin;var c=D.isKeyboardMode;var U=null,S=null,L=_.DY("div"),J=_.DY("span");D=_.F(_.KR(!1,void 0,"mxSc0e"));var g=D.next().value,Q=D.next().value,u=_.ep("a",function(jf){jf&&_.CP(237477,jf,S,function(TH){S=TH})}),R=_.ep("button",function(jf){jf&&_.CP(237477,
jf,S,function(TH){S=TH})}),I=_.$X(function(jf){if((jf==null?void 0:jf.button)===2)return jf.preventDefault(),!1;
var TH=_.v3();TH&&U&&_.HH(TH,U,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var Hv;V(jf,e().text,e().index,e().entityMid,jf==null?void 0:(Hv=jf.detail)==null?void 0:Hv.wasSelectedByKeyboard);return!1}),tT=function(){return e().type===35},ZV=function(){return _.r("desktop_enable_single_suggestion_highlight")},ED=function(){return _.ZU("desktop_suggestions_panel_row_height")||0},o$=function(){var jf;
return _.r("desktop_enable_new_video_metadata")&&((jf=e())==null?void 0:jf.hasNewVideo)===!0},jV=function(){return _.r("desktop_enable_visual_suggest")},i8=function(){return _.r("desktop_enable_entity_suggest")&&ZkH(e())},g6=function(){return e().entitySubtitle},Mu=function(){return ZV()?(H==null?void 0:H())||qw()&&!(c==null?0:c()):(H==null?void 0:H())||qw()},LQ=function(){var jf=_.YC("SBOX_SETTINGS");
return tT()&&!(jf==null?0:jf.HIDE_REMOVE_LINK)},DO=function(){return s2F(e(),{useEntityName:i8()})},fQ,yA=!((fQ=_.qS().resolve(_.by(_.tB)))==null||!fQ()),T4=function(){return tT()?_.r("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Mw=function(){return a==null?void 0:a().SUGGESTION_DISMISS_LABEL},X6=function(){return a==null?void 0:a().SUGGESTION_DISMISSED_LABEL};
D=_.F(_.KR(!1,void 0,"WMms1e"));fQ=D.next().value;var yZ=D.next().value;D=_.F(_.KR(!1,void 0,"PyL0t"));var kQ=D.next().value,FX=D.next().value,qw=kQ,oB=_.$X(function(){w(J.value.innerText);return!1}),ZO=_.$X(function(jf){jf.preventDefault();
return!1}),Nw=_.$X(function(jf){var TH=e().text,Hv=_.YC("SBOX_SETTINGS"),EF="https://"+(Hv.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
EF+="&delq="+encodeURIComponent(TH);(TH=Hv==null?void 0:Hv.PSUGGEST_TOKEN)&&(EF+="&tok="+TH);(Hv=Hv==null?void 0:Hv.SESSION_INDEX)&&(EF+="&authuser="+Hv);t(EF);jf.preventDefault();(jf=_.v3())&&S&&_.HH(jf,S,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");h(K==null?void 0:K());return!1}),bY=_.$X(function(){if(ZV()&&(c==null?0:c()))return!1;
FX(!0);b(!0);return!1}),P_=_.$X(function(){FX(!1);
b(!1);return!1}),QV=_.$X(function(){Q(!0);
return!1}),Zf=_.$X(function(){Q(!1);
return!1}),ua=_.$X(function(jf){jf.preventDefault();
if(e().entityThumbnailAttributionUrl){jf=e().entityThumbnailAttributionUrl;var TH=e().entityName,Hv={urlEndpoint:{url:jf},commandMetadata:{webCommandMetadata:{url:jf}}};jf={buttonViewModel:{title:_.OT("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:{dismissDialogEndpoint:{}}}}};Hv={buttonViewModel:{title:_.OT("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:Hv}}};
TH={dialogHeaderViewModel:{headline:{content:TH!=null?TH:_.OT("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var EF={basicContentViewModel:{paragraphs:[{text:{content:_.OT("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};jf={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:TH,footer:{panelFooterViewModel:{primaryButton:Hv,secondaryButton:jf,shouldHideDivider:!0}},content:EF}}}}};_.qS().resolve(_.aA).resolveCommand(jf)}return!1});
D=_.F(_.KR("",void 0,"yG5Sx"));var $Q=D.next().value,ia=D.next().value;_.SG(function(){LQ()&&ia(N==null?void 0:N(K==null?void 0:K()));L.value&&_.CP(12453,L.value,U,function(jf){U=jf})});
return _.G(_.E,{cond:fQ,then:function(){var jf={};return _.G("div",{class:_.jQ("ytSuggestionComponentRemovedText",(jf.ytSuggestionComponentLargerRemovedText=function(){return jV()},jf)),
style:function(){return ED()>0?"height: "+ED()+"px;":""},
role:"button"},X6)},
else:function(){var jf={},TH={};return _.G("div",{class:_.jQ("ytSuggestionComponentSuggestion",(jf.ytSuggestionComponentSuggestionHover=function(){return!ZV()},jf.ytSuggestionComponentHighlighted=Mu,jf.ytSuggestionComponentPersonalizedSuggestion=tT,jf.ytSuggestionComponentMweb=!1,jf.ytSuggestionComponentLargerSuggestion=function(){return o$()||jV()},jf.ytSuggestionComponentThumbnailSuggestion=function(){return jV()},jf.ytSuggestionComponentRoundedSuggestion=function(){return _.r("desktop_enable_scrollable_suggestions_panel")&&
_.r("desktop_enable_suggestions_panel_padding")},jf.ytSuggestionComponentThumbnailPadding=function(){return jV()&&!tT()},jf)),
style:function(){return ED()>0?"height: "+ED()+"px;":""},
role:"presentation","on:mousedown":I,"on:mouseover":bY,"on:mouseout":P_,el:L},_.G("div",{class:_.jQ("ytSuggestionComponentText",(TH.ytSuggestionComponentScrollMargin=T,TH)),"aria-label":function(){return o$()?e().text+" "+APQ:e().text},
id:function(){return N==null?void 0:N(K==null?void 0:K())},
"on:mousedown":I,role:"option"},_.G(_.E,{cond:function(){return e().type!==33},
then:function(){return _.G(_.U7,{icon:T4,className:"ytSuggestionComponentIcon"})}}),_.G("div",{class:"ytSuggestionComponentLeftContainer"},_.G("span",{el:J,
role:"button",tabindex:0},_.G(_.nY,{each:DO},function(Hv){return Hv.bold?_.G("span",{class:"ytSuggestionComponentBold"},Hv.text):_.G("span",null,Hv.text)})),_.G(_.E,{cond:function(){return i8()&&!!e().entitySubtitle||o$()},
then:function(){return _.G("div",{class:"ytSuggestionComponentMetadataContainer"},_.G(_.E,{cond:function(){return i8()&&!!e().entitySubtitle},
then:function(){return _.G("div",{class:"ytSuggestionComponentEntitySubtitle"},g6)}}),_.G(_.E,{cond:function(){return o$()},
then:function(){return _.G("div",{class:"ytSuggestionComponentNewVideoContainer"},_.G("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.G("div",{class:"ytSuggestionComponentNewVideoText"},APQ))}}))}}))),_.G("div",{class:"ytSuggestionComponentRightContainer"},_.G(_.E,{cond:function(){return jV()&&e().visualSuggestUrl!==void 0},
then:function(){var Hv={};return _.G("div",{class:"ytSuggestionComponentThumbnailContainer"},_.G("img",{"aria-label":glF,class:_.jQ("ytSuggestionComponentVisualSuggestThumbnail",(Hv.ytSuggestionComponentCircularFrame=function(){return i8()&&e().subtypes.includes(790)},Hv.ytSuggestionComponentEntitySuggestThumbnail=function(){return i8()},Hv)),
src:function(){return e().visualSuggestUrl}}),_.G(_.E,{cond:function(){return i8()&&!!e().entityThumbnailAttributionUrl},
then:function(){var EF={};return _.G("span",{title:JPg,role:"tooltip"},_.G("div",{"on:mouseover":QV,"on:mouseout":Zf,"on:mousedown":ua,class:_.jQ("ytSuggestionComponentThumbnailOverlay",(EF.ytSuggestionComponentThumbnailOverlayHidden=function(){return!g()},EF))},_.G(_.U7,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.G(_.CY,null,_.G(_.oD,{when:function(){return jV()&&LQ()}},function(){var Hv={};
return _.G("button",{class:_.jQ("ytSuggestionComponentRemoveLinkClearButton",(Hv.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return $Q()&&$Q()===(k==null?void 0:k())},Hv.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!Mu()},Hv)),
el:R,"on:mousedown":Nw,"aria-label":Mw,id:function(){return $Q()}},_.G(_.U7,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.G(_.oD,{when:function(){return!(jV()&&e().visualSuggestUrl!==void 0)&&LQ()}},function(){var Hv={};
return _.G("a",{class:_.jQ("ytSuggestionComponentRemoveLink",(Hv.ytSuggestionComponentRemoveLinkDark=yA,Hv.ytSuggestionComponentRemoveLinkSelected=function(){return $Q()&&$Q()===(k==null?void 0:k())},Hv)),
el:u,"on:mousedown":Nw,"aria-label":Mw,tabindex:0,role:"button",id:function(){return $Q()}},Mw)}),_.G(_.oD,{when:function(){return!1}},function(){return _.G("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":oB,"on:mousedown":ZO,role:"button","aria-label":L4t},_.G(_.U7,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"Gi");var lqe=_.zk(["//www.google.com/textinputassistant/","/","_tia.js"]),vl4=_.l(function(){return _.G("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.G("button",{class:"ytdTextInputAssistantButton","on:click":_.$X(function(){K4F().inputMethodsTracker.add(3);var D,t=(D=_.YC("SBOX_SETTINGS"))==null?void 0:D.REQUEST_LANGUAGE;if(t)return _.Iz(_.E5(lqe,14,t)),!1})},_.G("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"Hi");var pDZ=function(){this.cache=new Map},dj4=function(D){for(var t=_.F(D.cache.entries()),H=t.next();!H.done;H=t.next()){var e=_.F(H.value);
H=e.next().value;e=e.next().value;e.suggestions.some(function(V){return V.type===35})&&D.cache.delete(H)}};var xjZ=_.g5.SEARCH,RcF=_.g5.SEARCH_CLEAR_LABEL,uNH=new _.kI("FAKE_SUGGEST_RESPONSE");_.hB(_.l(function(D){function t(){QV||(QV=setTimeout(function(){ua()},1E3))}
function H(c9,kv,fe){if(c9.trim()){P_=c9;_.JZ("REFINEMENTS_TUPLE",void 0);Nw=!0;var $h;kv=T24(kQ,kv);var G4=($h=D.searchEndpoint)==null?void 0:$h.call(D);_.kmZ(c9,kv,G4,T4.value.value,fe);ua();T4.value.value=c9;T4.value.blur();kQ.reset()}}
function e(c9){return _.Z(function(kv){return kv.return(new Promise(function(fe){var $h=new XMLHttpRequest;$h.open("GET",ecZ(c9),!0);$h.withCredentials=!0;var G4=_.YC("SBOX_SETTINGS");(G4==null?0:G4.SEND_VISITOR_DATA)&&$h.setRequestHeader("X-Goog-Visitor-Id",G4==null?void 0:G4.VISITOR_DATA);$h.onload=function(){fe($h.responseText)};
$h.onerror=function(){_.Yw(Error("Fl"));fe(null)};
setTimeout(function(){$h.abort()},1E4);
$h.send(null)}))})}
function V(c9){var kv,fe,$h,G4;return _.Z(function(nW){switch(nW.nextAddress){case 1:return kv={credentials:"include",headers:Hkv()},window.AbortController&&(fe=new AbortController,setTimeout(function(){fe.abort("ytsbox-suggest-timeout")},1E4),kv.signal=fe.signal),_.$p(nW,2),nW.yield(fetch(ecZ(c9),kv),4);
case 4:$h=nW.yieldResult.text();_.yM(nW,3);break;case 2:return G4=_.Pv(nW),G4!=="ytsbox-abort-last"&&G4!=="ytsbox-suggest-timeout"&&_.Yw(G4),nW.return(null);case 3:return nW.return($h)}})}
function b(c9){var kv,fe,$h;return _.Z(function(G4){switch(G4.nextAddress){case 1:if(kv=_.qS().resolve(_.by(uNH)))return G4.return(kv);fe=Date.now();t();return _.r("yt_searchbox_xhr")?G4.yield(e(c9),5):G4.yield(V(c9),4);case 4:$h=G4.yieldResult;G4.jumpTo(3);break;case 5:$h=G4.yieldResult;case 3:if($h){QV&&(clearTimeout(QV),QV=null);var nW=kQ,gi=fe,vU=c9.query.length===0;gi=Date.now()-gi;vU?nW.zeroPrefixRoundTripTime=gi:(nW.JSC$20689_totalRoundTripTime+=gi,nW.maxRoundTripTime=Math.max(nW.maxRoundTripTime,
gi),vU=Math.floor(gi/100),vU>=cPH.length?++nW.roundTripTimeHistogram[9]:++nW.roundTripTimeHistogram[cPH[vU]])}return G4.return($h)}})}
function a(c9){var kv,fe,$h;return _.Z(function(G4){if(G4.nextAddress==1)return(kv=yZ.cache.get(tFY(c9)))?G4.return(kv):G4.yield(b(c9),2);fe=G4.yieldResult;if(fe===null)return G4.return(null);$h=new hcH(fe);c9.query.length===0&&$h.suggestions.length===0||yZ.cache.set(tFY(c9),$h);return G4.return($h)})}
function w(c9){var kv,fe;return _.Z(function($h){if($h.nextAddress==1){bY=!1;var G4=P_;G4=_.b$$()==="search"?(_.uz(location.href,"search_query")||_.uz(location.href,"q"))===G4:!1;kv=new DjQ(c9,G4?P_:null);return $h.yield(a(kv),2)}fe=$h.yieldResult;if(fe===null)return $h.return();kv.query.length===0&&(kQ.zeroPrefixSuggestionCount=fe.suggestions.length);if(kv.id<=Zf)return kQ.outOfSyncResponseCount++,$h.return();if(document.activeElement!==T4.value)return $h.return();Zf=kv.id;var nW=kQ,gi=fe.rawResponse[2]||
{};nW.experimentTriggeredBeforeFinal||(nW.experimentTriggeredBeforeFinal=nW.experimentTriggeredFinal);nW.experimentTriggeredFinal=!!gi.e;kQ.updateSuggestions(fe.suggestions);L(-1);LQ([]);fe.suggestions!==c()&&hy(fe.suggestions.length);U(fe.suggestions);ZV(fe.suggestions.length>0&&fe.suggestions[0].type===33);X6&&(X6.hidden=fe.suggestions.length===0,tT()?(X6.style.minWidth="",nW=X6.style,gi=(G4=c()[0])==null?void 0:G4.ignoredPrefix,nW.marginLeft=(gi?Math.min(gi.length*6,Mw.value.offsetWidth):0).toString()+
"px"):(X6.style.minWidth=Mw.value.offsetWidth+"px",X6.style.marginLeft="0"),s5());_.n2($h)})}
function h(){if(!Nw)return!1;var c9=_.YC("REFINEMENTS_TUPLE");return c9?(c9=c9[1].map(function(kv,fe){return new wDH([kv,0,[71]],T4.value.value,fe)}),c()!==c9&&hy(c9.length),LQ([]),U(c9),kQ.updateSuggestions(c9),Nw=!1,X6.hidden=c9.length===0,bY=c9.length>0,!0):!1}
function K(){var c9=T4.value.value;(typeof c9==="string"||c9 instanceof String)&&c9!==""?u(!0):u(!1)}
function N(){if(_.b$$()==="search"){var c9=window.location.href;try{var kv=_.uz(c9,"search_query")||_.uz(c9,"q")||""}catch(fe){kv=""}kv&&(T4.value.value=kv,u(!0))}}
var k=_.F(_.KR([],void 0,"OC8EPc")),T=k.next().value;k=k.next().value;var c=T,U=k;T=_.F(_.KR(-1,void 0,"t2tVQb"));var S=T.next().value,L=T.next().value;T=_.F(_.KR(-1,void 0,"v0RZCe"));var J=T.next().value,g=T.next().value;T=_.F(_.KR(!1,void 0,"rjAnI"));var Q=T.next().value,u=T.next().value;T=_.F(_.KR(!1,void 0,"SyGLvb"));var R=T.next().value,I=T.next().value;k=_.F(_.KR(!1,void 0,"tL09Cb"));T=k.next().value;k=k.next().value;var tT=T,ZV=k;k=_.F(_.KR(!1,void 0,"FlH7mc"));T=k.next().value;var ED=k.next().value;
k=_.F(_.KR(!1,void 0,"ea3fwe"));var o$=k.next().value,jV=k.next().value;k=_.F(_.KR(1,void 0,"vSK1xe"));var i8=k.next().value,g6=k.next().value;k=_.F(_.KR([],void 0,"ijlw4b"));var Mu=k.next().value,LQ=k.next().value;k=_.F(_.KR(!1,void 0,"HcRey"));var DO=k.next().value,fQ=k.next().value;k=_.r("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var yA=_.DY("yt-searchbox"),T4=_.DY("input"),Mw=_.DY("div"),X6,yZ=
new pDZ,kQ=K4F(),FX=_.qS().resolve(_.by(_.tB)),qw=function(){var c9;return((c9=D.forceDarkMode)==null?void 0:c9.call(D))||!(FX==null||!FX())},oB=function(){return _.r("desktop_enable_scrollable_suggestions_panel")},ZO="i"+fqF++,Nw=!1,bY=!1,P_="",QV=null,Zf=-1,ua=function(){LQ([]);
U([]);ZV(!1);X6&&(X6.hidden=!0);QV&&(clearTimeout(QV),QV=null);L(-1)},$Q=function(c9,kv){c9.preventDefault();
fQ(!0);X6&&(X6.hidden=!1);var fe=S();c9=c();var $h=Mu();kv=TF4(kv);fe+=kv;for(fe>=c9.length?fe=-1:fe<-1&&(fe=c9.length-1);fe!==-1&&($h.includes(fe)||fe>=c9.length||fe<0);)fe+=kv,fe>=c9.length&&(fe=-1);L(fe);S()>=0&&(T4.value.value=c()[S()].text,g(0),K(),c9=S(),$h=J(),($h=document.getElementById(z7[c9][$h]))&&oB()&&(c9===c().length-1?X6.scrollTop=X6.scrollHeight:$h.scrollIntoView({block:"nearest",inline:"start"})))},ia=_.$X(function(c9){if(!(c9.relatedTarget instanceof Element&&c9.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){I(!0);
var kv;(kv=D.focusCallback)==null||kv.call(D,!0);h()||(bY?X6.hidden=!1:(_.Gf(yA.value,"yt-autonav-pause-focus",{}),w(c9.target.value)))}}),jf=_.$X(function(c9){if(!(c9.relatedTarget instanceof Element&&c9.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){I(!1);
var kv;(kv=D.focusCallback)==null||kv.call(D,!1);X6.scrollTop=0;X6.hidden=!0;_.Gf(yA.value,"yt-autonav-pause-blur",{})}}),TH=function(c9){c9=TF4(c9);
var kv;((kv=z7[S()])==null?0:kv[J()+c9])&&g(J()+c9)},Hv=_.$X(function(c9){var kv=c9.target;
switch(c9.keyCode){case 13:c9.preventDefault();var fe;if((fe=z7[S()])==null?0:fe[J()]){var $h;($h=document.getElementById(z7[S()][J()]))==null||$h.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}c9=c9.shiftKey?4:3;fe=kQ;$h=S();fe.selectedSuggestionIndex=$h;H(kv.value,c9);break;case 27:X6&&(X6.hidden=!0);break;case 40:$Q(c9,40);break;case 38:$Q(c9,38);break;case 39:TH(39);break;case 37:TH(37);break;case 229:kQ.inputMethodsTracker.add(4);break;default:kQ.inputMethodsTracker.add(1),
N2i(kQ)}return!1}),EF=_.$X(function(c9){w(c9.target.value);
K();oB()&&X6&&(X6.scrollTop=0);return!1}),Sr=_.$X(function(){kQ.inputMethodsTracker.add(2);
N2i(kQ);return!1});
_.SG(function(){if(X6){kQ.reset();if(window.ResizeObserver){var c9=new ResizeObserver(function(){tT()||(X6.style.minWidth=Mw.value.offsetWidth+"px")});
c9.observe(Mw.value);(new ResizeObserver(function(){s5()})).observe(X6);
_.Sj(function(){c9.disconnect()})}N();
window.addEventListener("yt-navigate-finish",N);window.addEventListener("yt-focus-searchbox",function(){T4.value.focus()});
var kv;ED((kv=_.YC("SBOX_SETTINGS"))==null?void 0:kv.HAS_ON_SCREEN_KEYBOARD)}else _.gT(new _.nZ("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var X9=_.$X(function(c9){c9.preventDefault();H(T4.value.value,12);return!1}),Yv=_.$X(function(c9){c9.preventDefault();
var kv,fe;(kv=T4)==null||(fe=kv.value)==null||fe.focus();var $h,G4;(($h=T4)==null?void 0:(G4=$h.value)==null?void 0:G4.value)!==""&&(T4.value.value="",T4.value.dispatchEvent(new Event("input")));return!1}),d4=_.$X(function(){var c9=jhg(T4.value.value,c().filter(function(kv){return kv.type!==35}).map(function(kv){return{label:kv.text}}));
_.ET(yA.value,"yt-open-popup-action",[{openPopupAction:c9},document.body]);return!1}),Wt=_.$X(function(){T4.value.focus();
return!1}),bM=function(c9,kv,fe,$h,G4){kQ.selectedSuggestionIndex=fe;
H(kv,G4?3:1,$h)},AZ=function(c9){T4.value.value=c9;
T4.value.dispatchEvent(new Event("input"));kQ.inputMethodsTracker.add(5);N2i(kQ,!0)},z7=[[]],AW=function(c9){var kv="searchbox-suggestion"+_.Qr(_.qj);
z7[c9].push(kv);return kv},hy=function(c9){if(c()){z7=[[]];
for(var kv=0;kv<c9;kv++)z7.push([])}},s5=function(){if(oB()){var c9=X6,kv=c9.scrollTop;
c9=c9.scrollHeight-c9.clientHeight;jV(kv>=c9);kv=Math.abs(c9-kv);kv<=40?g6(1-(40-kv)/40):g6(1)}},W$=function(){return"opacity: "+i8()*100+"%"},nK=_.$X(function(){s5();
return!1}),Y3=_.$X(function(){fQ(!1);
return!1}),R$,KQ={},NH={},SM={},ov={};
return _.G("yt-searchbox",{class:_.jQ("ytSearchboxComponentHost",(KQ.ytSearchboxComponentMweb=!1,KQ.ytSearchboxComponentDesktop=!0,KQ["yt-searchbox-filled-query"]=function(){return Q()},KQ["ytd-masthead"]=function(){return!R()},KQ.ytSearchboxComponentHostDark=qw,KQ)),
role:"search",el:yA,"client-ve-type":10349},_.G("div",{el:Mw,"on:click":Wt,class:_.jQ("ytSearchboxComponentInputBox",(NH.ytSearchboxComponentInputBoxDark=qw,NH.ytSearchboxComponentInputBoxHasFocus=R,NH))},_.G("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":X9},_.G(_.E,{cond:R,then:function(){return _.G("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.G(_.U7,{icon:"SEARCH"}))}}),_.G("input",{el:T4,
class:_.jQ("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":ZO,"aria-expanded":!((R$=X6)==null?0:R$.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":jf,"on:focus":ia,"on:input":EF,"on:keydown":Hv,"on:paste":Sr,placeholder:D.placeholderText,"aria-activedescendant":function(){var c9;return(c9=z7[S()])==null?void 0:c9[J()]},
"aria-autocomplete":"list",role:"combobox"})),_.G(_.E,{cond:T,then:function(){return _.G("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.G(vl4,null))}}),_.G(_.E,{cond:Q,
then:function(){return _.G("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.G("button",{class:"ytSearchboxComponentClearButton","on:click":Yv,"aria-label":D.clearButtonAriaLabel||RcF},_.G(_.U7,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.G(_.fE,{model:{}})))}})),_.G("button",{class:_.jQ("ytSearchboxComponentSearchButton",(SM.ytSearchboxComponentSearchButtonDark=qw,SM)),
"on:click":X9,"aria-label":xjZ,title:D.placeholderText},_.G(_.U7,{icon:"SEARCH"})),_.G(_.E,{cond:function(){if(RMH()&&_.r("mweb_voice_search")&&D.voiceSearchButton)return D.voiceSearchButton()},
then:function(c9){var kv={};return _.G("div",{class:_.jQ("ytSearchboxComponentVoiceSearchWrapper",(kv.ytSearchboxComponentHideVoiceSearchButton=function(){return Q()},kv))},_.G(_.P5,{data:c9},{buttonRenderer:function(fe){return _.G(_.i4,{data:fe.data,
onButtonClickCallback:function(){}})}}))}}),_.G("div",{el:_.FI(function(c9){return void(X6=c9)}),
id:ZO,class:_.jQ("ytSearchboxComponentSuggestionsContainer",(ov.ytSearchboxComponentSuggestionsContainerDark=qw,ov["yt-searchbox-suggestions-container"]=!1,ov.ytSearchboxComponentSuggestionsContainerScrollable=oB(),ov.ytSearchboxComponentSuggestionsContainerAnimated=k,ov)),"on:scroll":nK,"on:mousemove":Y3,role:"listbox",hidden:!0},_.G(_.nY,{each:c},function(c9,kv){return _.G(YJH,{suggestion:c9,isHighlighted:function(){return kv()===S()},
onClickCallback:bM,onHoverUpdateCallback:function(fe){if(_.r("desktop_enable_single_suggestion_highlight")){var $h=kv();fe&&(g(0),L($h))}},
onRemoveCallback:function(fe){dj4(yZ);fe===void 0||fe<0||Mu().includes(fe)||LQ([].concat(_.A6(Mu()),[fe]))},
labels:D.labels,queryBuilderFunction:AZ,suggestionIndex:kv,generateUniqueId:AW,highlightedId:function(){var fe;return(fe=z7[S()])==null?void 0:fe[J()]},
useScrollMargin:oB(),isKeyboardMode:DO})}),_.G(_.E,{cond:function(){return!tT()&&c().find(function(c9){return c9.type!==35})&&_.r("searchbox_reporting")},
then:function(){return _.G("button",{class:"ytSearchboxComponentReportButton","on:mousedown":d4},_.OT("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.G(_.E,{cond:function(){return!o$()&&oB()},
then:function(){return _.G("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.G("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:W$}))}})))},"Ii"),"yt-searchbox",{props:{searchEndpoint:_.ij,
placeholderText:_.ij,labels:_.ij,voiceSearchButton:_.ij,focusCallback:_.wm,clearButtonAriaLabel:_.ij,forceDarkMode:_.ij}});var Yb=function(){var D=_.X.apply(this,arguments)||this;D.menuButtonTargetId="topbar-guide-menu";D.narrow=!1;D.menuStrings={BACK_ALT_LABEL:_.OT("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.OT("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.OT("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.OT("SBOX_PLACEHOLDER",void 0,"Search")};D.pageDarkTheme=document.documentElement.hasAttribute("dark");D.watchPageScrollTop=0;D.theater=!1;D.fullscreen=!1;D.disableFrostedGlassDuringViewTransition=
!1;D.desktopUnifiedSearchPanelMode=_.r("desktop_enable_unified_search_panel");D.cinematicTheaterMode=_.r("web_cinematic_theater_mode");D.aiCompanionEnabled=_.r("enable_ai_companion");D.ytSearchboxFocused=!1;D.searchboxLabels=_.YC("SBOX_LABELS");D.topbarIsAboveChipbar=!1;D.isDarkThemeForced=!1;D.areGhostCardsHidden=!1;D.guideKeyboardToggle=!1;D.voiceSearchManager=e9e();D.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};D.setYtSearchboxFocused=
function(t){D.ytSearchboxFocused=t};
D.toggleFrostedGlassDuringViewTransition=function(t){D.disableFrostedGlassDuringViewTransition=t};
return D};
_.P(Yb,_.X);_.q=Yb.prototype;_.q.computeSimpleText=function(D){return _.eo(D)};
_.q.onDarkChanged=function(){for(var D=_.F(this.buttons||[]),t=D.next();!t.done;t=D.next())t.value.isOverlay=!!this.dark;D=_.F(this.buttonRenderers||[]);for(t=D.next();!t.done;t=D.next())t.value.overrides=this.computeButtonOverride()};
_.q.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.q.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.aiCompanionButton":{id:"ai-companion-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}},
"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},
initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var D=_.Kp(_.EK(),"aa");_.kL(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||D||(this.isDarkThemeForced=this.dark=!0);this.logoType?(D=this.hostElement.querySelector("#masthead-logo"))&&(_.r("polymer_on_demand_shady_dom")?D.setAttribute("slot","masthead-logo-old"):_.UH(D)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.iK(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.iK(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.q.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.iK(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.iK(this,this.onSetTheaterModeEnabled))};
_.q.dataChanged=function(){var D=this.data;D&&(this.voiceEnabled=D.voiceSearchButton?e9e().isSupported():!1,_.MuB(_.BM(),this.menuButtonTargetId,this.guideButton),D.onReceivedActions&&D.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.k0(this.hostElement,D.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&D&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.kL(this.hostElement,"dark",!1),_.kL(this.hostElement,"theater",!1),
(D=this.hostElement.querySelector("#masthead-logo"))&&(_.r("polymer_on_demand_shady_dom")?D.setAttribute("slot","masthead-logo-old"):_.UH(D))))};
_.q.computeCenterHidden=function(){var D;return this.data&&!((D=this.data.searchbox)==null?0:D.fusionSearchboxRenderer)};
_.q.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.kL(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.q.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.q.onWatchScroll=function(D){this.watchPageScrollTop=D.detail||0;this.updateMastheadBackgroundOpacity()};
_.q.onFullscreenChangeAction=function(D){D||(this.watchPageScrollTop=0);this.fullscreen=D;this.updateMastheadBackgroundOpacity()};
_.q.onSetTheaterModeEnabled=function(D){this.theater=D.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.q.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.q.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.q.setBackgroundOpacity=function(D){D=this.calculateBackgroundOpacity(D);this.background.style.opacity=""+D};
_.q.calculateBackgroundOpacity=function(D){var t=this.theater&&this.cinematicTheaterMode?.6:0,H=this.hostElement.clientHeight/2;return Math.min(Math.max(D,0),H)/H*(1-t)+t};
_.q.shouldShowCinematicMastHead=function(){var D=_.r("kevlar_watch_grid")&&!_.r("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(D||this.pageDarkTheme)};
_.q.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.q.focusGuide=function(){this.guideButton.focus()};
_.q.onGuideToggleTap=function(){_.Gf(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.q.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.q.onGuideToggleHover=function(){_.Gf(this.hostElement,"yt-guide-hover")};
_.q.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.q.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.q.closeOnOutsideClickCondition=function(D){for(D=_.bK(D);D[0];){var t=D.shift();if(t instanceof Element&&t.id==="kbd")return!1}return!0};
_.q.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.q.pausePlayer=function(){var D;(D=_.FA())==null||D.pause();this.pauseMiniplayer()};
_.q.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var D;(D=_.qS().resolve(_.dL).getPlayerElement())==null||D.pause()}};
_.q.isMiniplayerActive=function(){return _.qS().resolve(_.dL).isMiniplayerActive()};
_.q.updateNarrowFromBinding=function(D){this.narrow=D.detail.value};
_.q.onYtSendFeedbackAction=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.q.registerWithViewTransitionManager=function(){pgv(_.qS().resolve(_.R_),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.ql.Object.defineProperties(Yb.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.r("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
shouldShowAiCompanionButton:{configurable:!0,enumerable:!0,get:function(){var D;return!!(this.aiCompanionEnabled&&((D=this.data)==null?0:D.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var D;return(D=this.data)==null?void 0:D.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
Yb.prototype.narrowChanged=Yb.prototype.narrowChanged;Yb.prototype.onWatchPageChange=Yb.prototype.onWatchPageChange;Yb.prototype.onRendererStamperFinished=Yb.prototype.onRendererStamperFinished;Yb.prototype.dataChanged=Yb.prototype.dataChanged;Yb.prototype.onDarkChanged=Yb.prototype.onDarkChanged;_.d([_.C(_.QI),_.x("design:type",Object)],Yb.prototype,"ironResizableBehavior",void 0);_.d([_.C(_.HZF),_.x("design:type",Object)],Yb.prototype,"ytdExpandableInputBehavior",void 0);
_.d([_.C(_.kn.YtdGuideStateAwareBehavior),_.x("design:type",Object)],Yb.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Yb.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Yb.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.sx),_.x("design:type",Object)],Yb.prototype,"ytdReduxBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Yb.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Yb.prototype,"narrow",void 0);_.d([_.M(),_.x("design:type",Object)],Yb.prototype,"logoType",void 0);_.d([_.M(),_.x("design:type",Boolean)],Yb.prototype,"voiceEnabled",void 0);
_.d([_.M(),_.x("design:type",Object)],Yb.prototype,"menuStrings",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],Yb.prototype,"dark",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Yb.prototype,"pageDarkTheme",void 0);_.d([_.M(),_.x("design:type",Object)],Yb.prototype,"watchPageScrollTop",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.kiD}),_.x("design:type",Boolean)],Yb.prototype,"isWatchPage",void 0);
_.d([_.M({reflectToAttribute:!0,selector:_.Tf$}),_.x("design:type",Boolean)],Yb.prototype,"isShortsPage",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Yb.prototype,"theater",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Yb.prototype,"fullscreen",void 0);_.d([_.M({reflectToAttribute:!0,selector:_.ip6}),_.x("design:type",String)],Yb.prototype,"frostedGlassMode",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Yb.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],Yb.prototype,"aiCompanionEnabled",void 0);_.d([_.M(),_.x("design:type",Object)],Yb.prototype,"ytSearchboxFocused",void 0);_.d([_.PT("#buttons > *"),_.x("design:type",Array)],Yb.prototype,"buttons",void 0);_.d([_.PT("ytd-button-renderer"),_.x("design:type",Array)],Yb.prototype,"buttonRenderers",void 0);
_.d([_.o5("#background"),_.x("design:type",HTMLDivElement)],Yb.prototype,"background",void 0);_.d([_.o5("#guide-button"),_.x("design:type",Object)],Yb.prototype,"guideButton",void 0);_.d([_.o5("#logo"),_.x("design:type",Object)],Yb.prototype,"logo",void 0);_.d([_.M({computed:"computeButtonOverride(dark)"}),_.x("design:type",Object)],Yb.prototype,"buttonOverrides",void 0);
_.d([_.mx("dark"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yb.prototype,"onDarkChanged",null);_.d([_.M({value:function(){return this.onVoiceTap.bind(this)}}),
_.x("design:type",Function)],Yb.prototype,"boundOnTapVoiceButton",void 0);_.d([_.M(),_.x("design:type",Object)],Yb.prototype,"topbarIsAboveChipbar",void 0);_.d([_.M(),_.x("design:type",String),_.x("design:paramtypes",[])],Yb.prototype,"guideIcon",null);_.d([_.m("voiceEnabled"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Yb.prototype,"shouldShowVoiceSearchButton",null);
_.d([_.m("data.aiCompanionButton","aiCompanionEnabled"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Yb.prototype,"shouldShowAiCompanionButton",null);_.d([_.m("data"),_.x("design:type",Object),_.x("design:paramtypes",[])],Yb.prototype,"voiceSearchButton",null);_.d([_.m("aiCompanionEnabled"),_.x("design:type",String),_.x("design:paramtypes",[])],Yb.prototype,"narrowQuery",null);
_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yb.prototype,"dataChanged",null);_.d([_.rx("yt-rendererstamper-finished"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yb.prototype,"onRendererStamperFinished",null);_.d([_.mx("isWatchPage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yb.prototype,"onWatchPageChange",null);
_.d([_.mx("narrow"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Yb.prototype,"narrowChanged",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-masthead"})],Yb);
_.p(Yb,"ytd-masthead",function(){if(mje!==void 0)return mje;var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="[[narrowQuery]]" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n    <div id="ai-companion-button" hidden="[[!shouldShowAiCompanionButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return mje=D},{mode:_.Kz("kevlar_poly_si_batch_j036")?1:2});var W4b;var IqZ={},Q2F={},yPZ={},B2Z={},zcg=(B2Z.OFFLINE=(IqZ["publicytnetworkstatus-online"]="BACK_ONLINE",IqZ),B2Z.ONLINE=(Q2F["publicytnetworkstatus-offline"]="OFFLINE",Q2F),B2Z.BACK_ONLINE=(yPZ["publicytnetworkstatus-offline"]="OFFLINE",yPZ.TIMER_TRIGGER="ONLINE",yPZ),B2Z),lb=function(){var D=_.X.apply(this,arguments)||this;D.currentState="ONLINE";D.scheduledJobId=0;D.bannerString="";D.bannerVe=null;D.networkStatusManagerInstance=new _.yp;return D};
_.P(lb,_.X);_.q=lb.prototype;_.q.attached=function(){var D=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){D.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){D.stateChangeHandler("publicytnetworkstatus-offline")})};
_.q.detached=function(){var D=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){D.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){D.stateChangeHandler("publicytnetworkstatus-offline")})};
_.q.enterState=function(D){var t=this;this.scheduledJobId&&_.Jy.cancelJob(this.scheduledJobId);D==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):D==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.OT("NO_INTERNET_CONNECTION",void 0,"No internet connection")):D==="BACK_ONLINE"&&(this.bannerString=_.OT("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.C7(_.Jy,function(){t.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=D};
_.q.stateChangeHandler=function(D){(D=zcg[this.currentState][D])&&this.enterState(D)};
_.q.logVisibility=function(D){var t=_.v3();this.createBannerVe(D);t&&this.bannerVe&&(D?_.zf(t,[this.bannerVe]):_.D8(t,[this.bannerVe]))};
_.q.createBannerVe=function(D){!this.bannerVe&&D&&(this.bannerVe=_.Nx(37929),_.g3(_.Pc(),this.bannerVe))};
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",String)],lb.prototype,"currentState",void 0);_.d([_.M(),_.x("design:type",Object)],lb.prototype,"scheduledJobId",void 0);_.d([_.M(),_.x("design:type",Object)],lb.prototype,"bannerString",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-network-status-banner"})],lb);
_.p(lb,"ytd-network-status-banner",function(){if(W4b!==void 0)return W4b;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return W4b=
D},{mode:1});var DsZ;var vi=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};D.hidden=!0;D.frostedGlass=_.r("web_frosted_glass");return D};
_.P(vi,_.X);vi.prototype.computeHidden=function(D){return D&&D.status?!1:!0};
vi.prototype.handleUpdatePermissionRoleCommand=function(D){if(D=_.O(D,_.KeB))if(D=_.O(D.renderer,_.ESV))this.data=D};
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],vi.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],vi.prototype,"componentBehavior",void 0);_.d([_.M({value:!0,computed:"computeHidden(data)"}),_.x("design:type",Object)],vi.prototype,"hidden",void 0);_.d([_.M(),_.x("design:type",Object)],vi.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],vi.prototype,"frostedGlass",void 0);
_.d([_.Y({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],vi);
_.p(vi,"ytd-permission-role-bottom-bar-renderer",function(){if(DsZ!==void 0)return DsZ;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return DsZ=D},{mode:1});var t0i;var HqF;var c5t={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var pw=function(){return _.X.apply(this,arguments)||this};
_.P(pw,_.X);_.q=pw.prototype;_.q.attached=function(){this.JSC$20805_scroller&&(this.JSC$20805_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20805_scroller.attached&&typeof this.JSC$20805_scroller.attached==="function"&&this.JSC$20805_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(H){H.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var D=_.Kg(this.hostElement);D.querySelector("tp-yt-paper-radio-group").selected="";var t=D.querySelector("#reason-text");t&&(t.value="");D.querySelector("#description-text").value=""}};
_.q.canSubmit=function(D,t){_.Gf(this.hostElement,"yt-invalidate-popup-tabbables");return!(D&&t)};
_.q.onCancel=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.q.onSubmit=function(){var D=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(b){return b.active}).map(function(b){return b.innerText.trim()}),t=this.hostElement.querySelector("tp-yt-paper-radio-group"),H=t.selectedItem,e=H.name;
H=H.innerText.trim();var V=t.querySelector("#reason-text");t=void 0;V&&(t=V.value);(V=this.descriptionText.value)&&(V=V.trim());jn4(this.data.searchQuery,D,e,H,V,t);_.ET(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.q.sendFormSubmitToast=function(){var D=_.ah(_.OT("SBOX_INAPPROPRIATE_TOAST"));_.ET(this.hostElement,"yt-open-popup-action",[D,this])};
_.q.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(D){return D.active})};
_.q.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
pw.prototype.onIronSelect=pw.prototype.onIronSelect;pw.prototype.onIronChange=pw.prototype.onIronChange;pw.prototype.dataChanged=pw.prototype.dataChanged;_.d([_.M(),_.x("design:type",Object)],pw.prototype,"data",void 0);_.d([_.M({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.x("design:type",Boolean)],pw.prototype,"submitDisabled",void 0);_.d([_.M(),_.x("design:type",Boolean)],pw.prototype,"suggestionSelected",void 0);
_.d([_.M(),_.x("design:type",Boolean)],pw.prototype,"catagorySelected",void 0);_.d([_.o5("#scroller"),_.x("design:type",Object)],pw.prototype,"JSC$20805_scroller",void 0);_.d([_.o5("#description-text"),_.x("design:type",Object)],pw.prototype,"descriptionText",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pw.prototype,"dataChanged",null);
_.d([_.rx("iron-change"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pw.prototype,"onIronChange",null);_.d([_.rx("iron-select"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],pw.prototype,"onIronSelect",null);_.d([_.Y({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],pw);
_.p(pw,"ytd-search-suggestion-report-dialog",function(){if(HqF!==void 0)return HqF;var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);return HqF=D},{mode:1});var d0=function(D){var t=D.openPopupAction;var H=D.target;var e=D.container;var V=D.popupContainerConfig;var b=D.getElement;D=D.removeWhenClosed===void 0?!1:D.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=t;this.target=H;this.container=e;this.popupContainerConfig=V;this.getElement=b;this.JSC$20811_popupConfig=this.popupContainerConfig.JSC$19943_popupConfig[this.openPopupAction.popupType];this.rendererName=(t=this.getName())?_.tNA(t,f6F(this.popupContainerConfig,
t)):"";_.r("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=D);this.createPopup()};
d0.prototype.updatePopup=function(D){this.openPopupAction=D;this.JSC$20811_popupConfig=this.popupContainerConfig.JSC$19943_popupConfig[this.openPopupAction.popupType];eSZ(this);_.r("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
d0.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var qVt=function(D,t,H){(t=t&&D.JSC$20811_popupConfig.narrowProperties?D.JSC$20811_popupConfig.narrowProperties:D.JSC$20811_popupConfig.properties)&&H!==void 0&&(t.isAriaModal=H);V0b(D,t);D.isRtl()&&V0b(D,D.JSC$20811_popupConfig.rtlProperties);bqb(D)};
d0.prototype.createPopup=function(){var D=this.JSC$20811_popupConfig.component;if(this.popupContent=Fz4(this,this.rendererName)){if(D){this.popup=Fz4(this,D);var t=this.popupContent;_.r("web_enable_wrapper_for_cow_component_in_popup")&&(t=document.createElement("div"),t.appendChild(this.popupContent));_.r("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20811_popupConfig.slotName&&t.setAttribute("slot",this.JSC$20811_popupConfig.slotName);D=this.popup;var H=this.container.tagName.toLowerCase(),
e=_.Fd(t);_.W86(_.wx(D),_.hh(t,H,e));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.r("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Kg(this.container).appendChild(this.popup)}};
var eSZ=function(D){var t,H,e=(t=D.openPopupAction.accessibilityData)==null?void 0:(H=t.accessibilityData)==null?void 0:H.label;e&&(D.popup.ariaLabel=e);var V;((V=D.popupContent.polymerController)!=null?V:D.popupContent).data=(0,_.J$.unsafeClone)(D.openPopupAction.popup[D.getName()]);D.popupContent.duration=abi(D);D.popupContent.positionType=D.openPopupAction.position;var b=D.openPopupAction.properties;b&&Object.keys(b).forEach(function(a){D.popupContent[a]=b[a]})},V0b=function(D,t){if(t)for(var H=
_.F(Object.keys(t)),e=H.next();!e.done;e=H.next())e=e.value,D.popup[e]=t[e]},bqb=function(D){if(D.openPopupAction.position){var t=D.JSC$20811_popupConfig.positionalProperties&&D.JSC$20811_popupConfig.positionalProperties[D.openPopupAction.position],H=D.JSC$20811_popupConfig.rtlPositionalProperties&&D.JSC$20811_popupConfig.rtlPositionalProperties[D.openPopupAction.position];
t=D.isRtl()&&H?H:t;t.shiftedHorizontalOffset&&(H=D.popup.style.display,D.popup.style.display="block",D.popupContent&&D.popup.positionTarget&&D.popupContent.clientWidth>D.popup.positionTarget.clientWidth&&(t.horizontalOffset=D.popup.positionTarget.clientWidth/2-t.shiftedHorizontalOffset),D.popup.style.display=H);V0b(D,t)}},w8v=function(D,t){if(t)for(var H=_.F(Object.keys(t)),e=H.next();!e.done;e=H.next())e=e.value,D.popup.style[e]=t[e]};
d0.prototype.getName=function(){return _.LY(this.openPopupAction.popup,"renderer")||_.LY(this.openPopupAction.popup,"dialog")||_.LY(this.openPopupAction.popup,"model")||void 0};
var abi=function(D){D=D.openPopupAction.durationHintMs;return D===0?D:Math.max(4E3,D||4E3)};
d0.prototype.isRtl=function(){return _.YC("HTML_DIR")==="rtl"};
var Fz4=function(D,t){D=D.getElement(t,D.target);D==null&&_.Yw(new _.nZ("popup getElement returned null",t));return D};var Zqi={};
Zqi.YtPopupContainerBehavior=[_.Eg.YtComponentBehavior,_.dW.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Zk(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.sT(this.hostElement)},
closePopup:function(D){var t=this.createCacheKey(void 0,D);this.popups_[t]&&this.handleClosePopupAction_(void 0,D)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Jy.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Jy.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(D){D.opened&&D.keepBelowPlayer&&this.ensurePopupBelowPlayer(D)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var D in this.popups_){var t=this.popups_[D];if(t.popup.scrollAction==="refit"){var H=t.popup.positionTarget.getBoundingClientRect(),e=t.popup;H=H.top;var V=t;if(!V.naturalHeight){V.popup.hidden=!1;V.popup.style.position="fixed";V.popup.style.top="0px";V.popup.style.left="0px";var b=V.popup.getBoundingClientRect();V.naturalHeight=b.bottom-b.top;V.popup.refit()}e.hidden=!(H>=V.naturalHeight+60);t.popupContent.clientHeight===0&&t.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(D){this.popupContainerConfig=D},
handleOpenPopupAction:function(D,t){var H=D.openPopupAction,e=_.qS().resolve(_.by(_.yY))&&H.popupType==="TOAST";e&&!H.uniqueId&&(H.uniqueId=_.N8());if(!_.r("popup_container_parent_target_killswitch")){var V;t=(V=this.getParentTarget(t))!=null?V:t}var b=this.ensurePopup_(H,t);return new _.c$(function(a){b.then(function(w){if(!w)return a();this.maybeCreateNarrowMediaQuery_();var h=this.createCacheKey(w.rendererName,w.openPopupAction.uniqueId);if(H.showOncePerUniqueId){if(this.shownPopupKeys_.has(h))return a();
this.shownPopupKeys_.add(h)}h=this.popups_[h];var K=!(!h||!h.openPopupAction.beReused);K=!!H.reusePopup||K;if(w.popup.opened&&!K){e&&!w.openPopupAction.replacePopup||this.handleClosePopupAction_(w.rendererName,w.openPopupAction.uniqueId);K=H.popupType==="DIALOG"&&!_.r("popup_container_dialog_reopen_killswitch");if(!e&&!K&&h&&h.target==t&&!w.openPopupAction.replacePopup)return a();_.Vi(w.popup,function(){this.completeOpenPopupAction_(H,t,w);a()}.bind(this))}else w.popup.opened?w.updatePopup(H):this.completeOpenPopupAction_(H,
t,w),a()}.bind(this))}.bind(this))},
getParentTarget:function(D){if(D&&D instanceof HTMLElement)for(var t=_.F(Object.entries(this.popups_)),H=t.next();!H.done;H=t.next())if(H=_.F(H.value),H.next(),H=H.next().value,this.popupClosesOnClick(H)&&H.popup.contains(D))return H.target},
popupClosesOnClick:function(D){return D.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(D.rendererName.toUpperCase())},
completeOpenPopupAction_:function(D,t,H){H.updatePopup(D);D=this.narrowMediaQuery_.queryMatches;var e=this.isAriaModal;H.target=t;var V;t=((V=H.target.polymerController)!=null?V:H.target).popupPositionTarget||H.target;H.JSC$20811_popupConfig.targetContainer&&(t=H.container);H.popup.positionTarget=t;H.popupContent.positionTarget=t;bqb(H);H.JSC$20811_popupConfig.forceFocus&&(H.popupContent.style.outline="none");H.popupContent.tabIndex=-1;H.JSC$20811_popupConfig.narrowProperties&&(H.popup.style.position=
"static");H.JSC$20811_popupConfig.preventAutonav&&H.popup.setAttribute("prevent-autonav",!0);H.JSC$20811_popupConfig.forceCloseOnOutsideClick&&H.popup.setAttribute("force-close-on-outside-click",!0);qVt(H,D,e);w8v(H,H.JSC$20811_popupConfig.styles);H.isRtl()&&w8v(H,H.JSC$20811_popupConfig.rtlStyles);if(!H.openPopupAction.shouldStopParentSignal){var b;V=(b=H.target.polymerController)!=null?b:H.target;(H.popupContent.startForwardingEvents||H.popupContainerConfig.forwardingEnabledPopups.has(H.rendererName))&&
V.parentComponent!==H.popupContent&&H.popupContent!==H.target&&H.target!==document.body&&(H.popupContent.startForwardingEvents?H.popupContent.startForwardingEvents(H.popupContainerConfig.forwardedEvents,H.target):(H.JSC$20811_eventForwarder||(H.JSC$20811_eventForwarder=new _.Zm(H.popupContent)),H.JSC$20811_eventForwarder.start(H.popupContainerConfig.forwardedEvents,H.target)))}H=H.popup;H.addEventListener("iron-overlay-opened",_.iK(this,this.onPopupIronOverlayOpened_));H.addEventListener("iron-overlay-closed",
_.iK(this,this.onPopupIronOverlayClosed_));H.addEventListener("iron-overlay-canceled",_.iK(this,this.onPopupIronOverlayCanceled_));H.addEventListener("yt-refit",_.iK(this,this.refitPopup_));H.addEventListener("yt-invalidate-popup-tabbables",_.iK(this,this.handleInvalidatePopupTabbables_));H.open()},
getPopupDurationMs_:function(D){return D.durationHintMs===0?D.durationHintMs:Math.max(4E3,D.durationHintMs||4E3)},
handleClosePopupAction_:function(D,t){var H=_.r("web_popup_cache_key_killswitch")||!!t;if(D||H){var e=this.createCacheKey(D,t);D=(D=this.popups_[e])&&D.popup}else D=_.PIB(_.wr);if(D&&D.close){if(t=_.qS().resolve(_.by(_.S8)))D.restoreFocusOnClose=t.isKeyBoardInUse();D.close();this.removePopup_(D,e)}},
handleClosePopupCommand_:function(D){D.closePopupCommand&&D.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,D.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(D){var t={},H;for(H in this.popups_)if(t={key$jscomp$1209:t.key$jscomp$1209},t.key$jscomp$1209=H,!D||!D.some(function(b){return function(a){return a==b.key$jscomp$1209}}(t))){var e=this.popups_[t.key$jscomp$1209],V=e.popup;
_.qS().resolve(_.by(_.yY))&&e.openPopupAction.popupType==="TOAST"||(V&&V.close&&V.close(),this.removePopup_(V,t.key$jscomp$1209))}},
handleClosePopupsAction_:function(D){D.forEach(function(t){var H=this.popups_[t];H&&((H=H.popup)&&H.close&&H.close(),this.removePopup_(H,t))}.bind(this))},
handleGetPopupOpenedAction_:function(D,t){return(t=this.createCacheKey(D,t))&&this.popups_[t]?this.popups_[D].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var D=[],t;for(t in this.popups_){var H=this.popups_[t];H.popup.opened&&D.push(H)}return D},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(D,t){_.r("ytpopup_disable_default_html_caching")&&D&&D.removeWhenClosed&&(_.Kg(this.hostElement).removeChild(D),t&&this.popups_[t]&&delete this.popups_[t])},
shouldReusePopup_:function(D){return!(!D||!D.reusePopup)||!(!D||!D.beReused)},
ensurePopup_:function(D,t){this.maybeCreateNarrowMediaQuery_();var H=_.LY(D.popup,"renderer")||_.LY(D.popup,"dialog")||_.LY(D.popup,"model");if(!H)return _.Tf();H=_.tNA(H,f6F(this.popupContainerConfig,H));return _.Tf(this.getAndMaybeCreatePopup_(D,H,t))},
getAndMaybeCreatePopup_:function(D,t,H){var e=this.createCacheKey(t,D.uniqueId);if(this.popups_[e])return this.popups_[e];D=new d0({openPopupAction:D,target:H,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(t)});return this.popups_[e]=D},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(D){return _.r("ytpopup_disable_default_html_caching")?D&&D.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",_.iK(this,this.openPopupQueryMatchesChanged_)),_.Kg(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(D){D=D.detail.value;for(var t in this.popups_)qVt(this.popups_[t],D)},
onPopupIronOverlayClosed_:function(D){var t=D.currentTarget,H=_.ErT(t);H=H.length>0?H[0]:t;if(H.is!=="ytd-reel-watch-while-dialog-renderer"||D.target.is!=="tp-yt-iron-dropdown"){D.detail.popup=t;D.detail.popupRenderer=H;var e,V={context:{openingElement:((e=this.popups_[(H==null?void 0:H.is)||""])==null?void 0:e.target)||void 0}};Object.assign(V,D.detail);var b;_.Gf((b=H.hostElement)!=null?b:H,"yt-popup-closed",V);t.removeEventListener("yt-refit",_.iK(this,this.refitPopup_));t.removeEventListener("yt-invalidate-popup-tabbables",
_.iK(this,this.handleInvalidatePopupTabbables_));t.removeEventListener("iron-overlay-canceled",_.iK(this,this.onPopupIronOverlayCanceled_));t.removeEventListener("iron-overlay-closed",_.iK(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(t)}},
onPopupIronOverlayCanceled_:function(D,t){var H=D.currentTarget,e=_.ErT(H);e=e.length>0?e[0]:H;if(e.is!=="ytd-reel-watch-while-dialog-renderer"||D.target.is!=="tp-yt-iron-dropdown"){var V;_.Gf((V=e.hostElement)!=null?V:e,"yt-popup-canceled",D.detail);V=t?_.bK(t):null;(!t||["click","tap"].includes(t.type))&&!H.hasAttribute("force-close-on-outside-click")&&H.positionTarget&&V&&V.includes(H.positionTarget)&&D.preventDefault();H.restoreFocusOnClose=_.l9.keyboardEventMatchesKeys(t,"esc")}},
onPopupIronOverlayOpened_:function(D){D=D.currentTarget;var t=_.ErT(D);t=t.length>0?t[0]:D;var H,e;_.Gf((H=t.hostElement)!=null?H:t,"yt-popup-opened",(e=t.hostElement)!=null?e:t);D.keepBelowPlayer&&(this.ensurePopupBelowPlayer(D,!0),this.dynamicallyPositionedElements_.add(D));H=_.qS().resolve(_.by(_.S8));e=!!t.querySelector("#toast");H&&H.isKeyBoardInUse()&&!e&&(typeof t.focusFirstItem==="function"?t.focusFirstItem():(t=_.Os3(D),t.length&&t[0].focus()));D.removeEventListener("iron-overlay-opened",
_.iK(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(D){D=D.currentTarget;D.refit&&D.refit()},
refitPopups_:function(){for(var D in this.popups_)this.popups_[D].refit()},
handleInvalidatePopupTabbables_:function(D){D=D.currentTarget;D.invalidateTabbables&&D.invalidateTabbables()},
createCacheKey:function(D,t){return _.r("web_popup_cache_key_killswitch")?t?D+"#"+t:D:t?"#"+t:D},
openSheet:function(D,t){var H=D==null?void 0:D.openPopupActionCommand;!H&&(D==null?0:D.viewModel)&&(H={openPopupAction:{popup:{sheetViewModel:D.viewModel},popupType:"CONTEXTUAL_SHEET"}});H&&this.handleOpenPopupAction(H,t)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var D=this;return _.Z(function(t){return t.return(D.handleGetOpenedPopupsAction_().filter(function(H){var e;return((e=H.openPopupAction)==null?void 0:e.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(D,t,H){if(_.r("web_dialog_utils_killswitch")){var e=D==null?void 0:D.openPopupActionCommand,V=(H==null?0:H.ariaLabel)?{accessibilityData:{accessibilityData:{label:H.ariaLabel}}}:void 0;!e&&(D==null?0:D.viewModel)&&(e={openPopupAction:Object.assign({},{popup:{dialogViewModel:D.viewModel},popupType:(H==null?0:H.isModal)?"MODAL":"DIALOG"},V&&V)});e&&this.handleOpenPopupAction(e,t)}else{if(V=D==null?void 0:D.viewModel){var b=H=H===void 0?{}:H;H=b.ariaLabel;V={popup:{dialogViewModel:V},
popupType:b.isModal?"MODAL":"DIALOG"};b={accessibilityData:{label:H}};H&&(V.accessibilityData=b);V={openPopupAction:V}}else V=void 0;if(V=(e=V)!=null?e:D==null?void 0:D.openPopupActionCommand)this.isAriaModal=_.r("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(V,t)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var D=this;return _.Z(function(t){return t.return(D.handleGetOpenedPopupsAction_().filter(function(H){var e;return((e=H.openPopupAction)==null?void 0:e.popupType)==="DIALOG"}).length>0)})}}];var srQ;var hSO;var GMe=_.zk(["about:blank"]),xb=function(){var D=_.X.apply(this,arguments)||this;D.isMuted=!1;D.pageLoadTimeoutId=void 0;return D};
_.P(xb,_.X);_.q=xb.prototype;_.q.dataChanged=function(){var D=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var t=this.data.url,H=_.YV(t);_.r("enable_yt_ata_iframe_authuser")?(H=_.YV(t),_.zF(this.iframe,$xF(H))):_.zF(this.iframe,H);this.pageLoadTimeoutId=_.C7(_.Cs(),function(){return void D.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.EB({destination:window,iframe:this.iframe,origin:_.Ehn(H.toString()),channelName:"ataiframe",onMessage:_.$u6(eve,function(e){VXQ(e.data)?(e=_.QZ(e.data,1,_.Ht,_.Zl()),e.length!==1?_.Yw(Error("Gl")):(e=e[0],e===3?(D.isMuted=!0,D.logStateChanged({adMuteRequested:!0})):e===1&&D.close())):_.Yw(Error("Hl"))}),
onEstablished:function(){D.cancelPageLoadTimeout();D.logStateChanged({pageLoadSucceeded:!0})}})}};
_.q.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.Cs().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.q.logStateChanged=function(D){var t;if((t=this.data)==null?0:t.trackingParams)D={adsClientData:{aboutThisAdData:D}},_.Pc().stateChanged(this.data.trackingParams,D)};
_.q.close=function(){_.ET(this.hostElement,"yt-close-popup-action",[this.is])};
_.q.handlesPopupClosed=function(D,t){var H=this,e,V;return _.Z(function(b){if(b.nextAddress==1)return _.YC("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.ET(H.hostElement,"on-about-this-ad-popup-closed",[H.isMuted,t]),b.jumpTo(0)):D&&ifv(D)?b.yield(r5Y(D),4):(H.isMuted&&_.ET(H.hostElement,"yt-mute-ad-action",[H.is,H]),b.jumpTo(0));if(e=b.yieldResult){var a=V=new _.tD(e),w=H.isMuted;a.getOptions().includes("onAboutThisAdPopupClosed")?_.ZuQ(a,"onAboutThisAdPopupClosed",{isMuted:w,layoutId:t}):_.Q2("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.n2(b)})};
_.q.onPopupClosed=function(D){var t=this,H,e;return _.Z(function(V){H=_.E5(GMe);_.zF(t.iframe,H);t.cancelPageLoadTimeout();if(!t.data)return V.jumpTo(0);t.ytRendererBehavior.markDirty();e=D.detail.context.openingElement;return V.yield(t.handlesPopupClosed(e,t.data.layoutId),0)})};
_.q.detached=function(){this.cancelPageLoadTimeout()};
_.q.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
xb.prototype.onPopupClosed=xb.prototype.onPopupClosed;xb.prototype.dataChanged=xb.prototype.dataChanged;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.d([_.o5("#iframe"),_.x("design:type",HTMLIFrameElement)],xb.prototype,"iframe",void 0);_.d([_.M(),_.x("design:type",Object)],xb.prototype,"data",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],xb.prototype,"dataChanged",null);
_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype",Promise)],xb.prototype,"onPopupClosed",null);_.d([_.xL({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],xb);
_.p(xb,"yt-about-this-ad-renderer",function(){if(hSO===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;srQ===void 0&&(srQ=document.createElement("template"));var e=srQ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);hSO=D}D=hSO;return D},{mode:2});var Eae;var Kzv;var RO=function(D){var t=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=t.message;"stack"in t&&(this.stack=t.stack);this.maxFileSizeMB=D;Object.setPrototypeOf(this,RO.prototype)};
_.P(RO,Error);var NyO=function(D,t){var H=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=H.message;"stack"in H&&(this.stack=H.stack);this.minWidth=D;this.minHeight=t;Object.setPrototypeOf(this,NyO.prototype)};
_.P(NyO,Error);var kMg=function(D){this.requirements=D;this.JSC$20838_maxFileSize=D.maxFileSizeMB*1024*1024},TyF=function(D,t){if(t.size>D.JSC$20838_maxFileSize)throw new RO(D.requirements.maxFileSizeMB);
};var cae=function(D,t){this.canvas=D;this.imageEditorBuilder=t};
cae.prototype.addEventListeners=function(D){var t=function(V){jrQ(D,V)};
this.JSC$20844_mouseDownEvent=t;var H=function(V){$sv(D,V)};
this.JSC$20844_mouseMoveEvent=H;var e=function(){iqe(D)};
this.JSC$20844_mouseUpEvent=e;this.canvas.addEventListener("mousedown",t);this.canvas.addEventListener("mousemove",H);document.addEventListener("mouseup",e)};
cae.prototype.removeEventListeners=function(){this.JSC$20844_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20844_mouseDownEvent);this.JSC$20844_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20844_mouseMoveEvent);this.JSC$20844_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20844_mouseUpEvent)};
var rab=function(D,t){D.removeEventListeners();return new Promise(function(H){var e=new Image;e.crossOrigin="anonymous";e.onload=function(){var V=D.imageEditorBuilder(D.canvas,e);D.addEventListeners(V);H(V)};
e.src=t})},ub=function(D,t,H,e,V,b,a,w){this.canvas=D;
this.image=t;this.requiredRatio=H;this.minImageCropDimension=e;this.minOutputImageResolution=V;this.component=b;this.styleFocusedCorner=w===void 0?!0:w;this.action=2;this.focusedCorner=this.resizeCorner=0;D=this.canvas.getContext("2d");if(!D)throw Error("Il");this.ctx=D;this.canvasMargin=a!=null?a:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;a=this.image;D=this.canvasInnerWidth/a.width;a.height*D>912&&(D=a.width/a.height*912/a.width);a=D;this.scaledImageWidth=this.canvas.width%2?
UxZ(this.image.width*a):Ofe(this.image.width*a);this.scaledImageHeight=Math.round(this.image.height*a);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20847_overlayMarginBottom=this.JSC$20847_overlayMarginTop=this.canvasMargin;this.JSC$20847_overlayMarginRight=this.JSC$20847_overlayMarginLeft=this.horizontalMargin;this.JSC$20847_overlayWidth=this.scaledImageWidth;this.JSC$20847_overlayHeight=this.scaledImageHeight;
D=this.image.width/this.image.height;D>this.requiredRatio?(this.JSC$20847_overlayWidth=this.canvas.width%2?UxZ(this.scaledImageHeight*this.requiredRatio):Ofe(this.scaledImageHeight*this.requiredRatio),this.JSC$20847_overlayMarginRight=this.JSC$20847_overlayMarginLeft=(this.canvas.width-this.JSC$20847_overlayWidth)/2):D<this.requiredRatio&&(this.JSC$20847_overlayHeight=this.canvas.height%2?UxZ(this.scaledImageWidth/this.requiredRatio):Ofe(this.scaledImageWidth/this.requiredRatio),this.JSC$20847_overlayMarginBottom=
this.JSC$20847_overlayMarginTop=(this.canvas.height-this.JSC$20847_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*a,this.scaledImageWidth);OqY(this)};
ub.prototype.getContext=function(){return this.ctx};
var jrQ=function(D,t){t={x:Math.round(t.pageX-D.canvas.getBoundingClientRect().left),y:Math.round(t.pageY-D.canvas.getBoundingClientRect().top)};D.dragStart=t;Usi(D,t)!==0?(D.action=1,oae(D,t),D.resizeCorner=Usi(D,t)):t.x>D.JSC$20847_overlayMarginLeft&&t.x<D.JSC$20847_overlayMarginLeft+D.JSC$20847_overlayWidth&&t.y>D.JSC$20847_overlayMarginTop&&t.y<D.JSC$20847_overlayMarginTop+D.JSC$20847_overlayHeight&&(D.action=0)},PXF=function(D,t){switch(t){case 1:return{x:D.JSC$20847_overlayMarginLeft,
y:D.JSC$20847_overlayMarginTop};case 2:return{x:D.JSC$20847_overlayMarginLeft,y:D.JSC$20847_overlayMarginTop+D.JSC$20847_overlayHeight};case 3:return{x:D.JSC$20847_overlayMarginLeft+D.JSC$20847_overlayWidth,y:D.JSC$20847_overlayMarginTop};case 4:return{x:D.JSC$20847_overlayMarginLeft+D.JSC$20847_overlayWidth,y:D.JSC$20847_overlayMarginTop+D.JSC$20847_overlayHeight};default:throw Error("Jl");}},CXF=function(D,t){if(D.focusedCorner!==0){D.dragStart=PXF(D,D.focusedCorner);
D.action=1;D.resizeCorner=D.focusedCorner;var H=D.dragStart.x,e=D.dragStart.y;switch(t){case 0:D.focusedCorner===1||D.focusedCorner===4?(H-=10,e-=10):(H-=10,e+=10);break;case 1:D.focusedCorner===1||D.focusedCorner===4?(H+=10,e+=10):(H+=10,e-=10);break;case 2:H=D.focusedCorner===1||D.focusedCorner===4?H-10:H+10;e-=10;break;case 3:H=D.focusedCorner===1||D.focusedCorner===4?H+10:H-10;e+=10;break;default:throw Error("Kl");}naZ(D,{x:H,y:e});OqY(D);D.action=2;D.dragStart=void 0}},$sv=function(D,t){t={x:Math.round(t.pageX-
D.canvas.getBoundingClientRect().left),
y:Math.round(t.pageY-D.canvas.getBoundingClientRect().top)};oae(D,t);switch(D.action){case 1:naZ(D,t);break;case 0:D.dragStart&&(D.JSC$20847_overlayMarginLeft=Math.max(D.horizontalMargin,Math.min(D.JSC$20847_overlayMarginLeft-(D.dragStart.x-t.x),D.horizontalMargin+D.scaledImageWidth-D.JSC$20847_overlayWidth)),D.JSC$20847_overlayMarginRight=D.canvas.width-D.JSC$20847_overlayMarginLeft-D.JSC$20847_overlayWidth,D.JSC$20847_overlayMarginTop=Math.max(D.canvasMargin,Math.min(D.JSC$20847_overlayMarginTop-
(D.dragStart.y-t.y),D.scaledImageHeight-D.JSC$20847_overlayHeight+D.canvasMargin)),D.JSC$20847_overlayMarginBottom=D.canvas.height-(D.JSC$20847_overlayMarginTop+D.JSC$20847_overlayHeight));break;default:return}OqY(D);D.dragStart=t},iqe=function(D){D.action=2;
D.dragStart=void 0;document.body.style.cursor="auto"},oae=function(D,t){switch(Usi(D,t)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:D.action!==1&&(document.body.style.cursor="auto")}},Usi=function(D,t){var H=D.JSC$20847_overlayMarginLeft-5,e=D.JSC$20847_overlayMarginTop-5,V=D.JSC$20847_overlayMarginLeft+D.JSC$20847_overlayWidth-5;
D=D.JSC$20847_overlayMarginTop+D.JSC$20847_overlayHeight-5;return mst(t,{x:H,y:e})?1:mst(t,{x:V,y:e})?3:mst(t,{x:H,y:D})?2:mst(t,{x:V,y:D})?4:0},mst=function(D,t){return D.x>=t.x&&D.x<=t.x+10&&D.y>=t.y&&D.y<=t.y+10},naZ=function(D,t){if(D.dragStart)switch(D.resizeCorner){case 2:Math.abs((D.JSC$20847_overlayMarginLeft+D.JSC$20847_overlayWidth-t.x)/(t.y-D.JSC$20847_overlayMarginTop))>=D.requiredRatio?M0O(D,t.x):SVO(D,t.y);
break;case 1:Math.abs((D.JSC$20847_overlayMarginLeft+D.JSC$20847_overlayWidth-t.x)/(D.JSC$20847_overlayMarginTop+D.JSC$20847_overlayHeight-t.y))>=D.requiredRatio?X8Q(D,t.x):SVO(D,t.y);break;case 4:Math.abs((t.x-D.JSC$20847_overlayMarginLeft)/(t.y-D.JSC$20847_overlayMarginTop))>=D.requiredRatio?M0O(D,t.x):fbF(D,t.y);break;case 3:Math.abs((t.x-D.JSC$20847_overlayMarginLeft)/(D.JSC$20847_overlayMarginTop+D.JSC$20847_overlayHeight-t.y))>=D.requiredRatio?X8Q(D,t.x):fbF(D,t.y);break;default:throw Error("Ll");
}},M0O=function(D,t){var H=D.JSC$20847_overlayMarginTop;
D.JSC$20847_overlayMarginBottom=LzH(D,t);D.JSC$20847_overlayHeight=D.canvas.height-D.JSC$20847_overlayMarginBottom-H;D.JSC$20847_overlayWidth=Math.round(D.JSC$20847_overlayHeight*D.requiredRatio);AaQ(D)},X8Q=function(D,t){var H=D.JSC$20847_overlayMarginTop+D.JSC$20847_overlayHeight;
D.JSC$20847_overlayMarginTop=LzH(D,t);D.JSC$20847_overlayHeight=H-D.JSC$20847_overlayMarginTop;D.JSC$20847_overlayWidth=Math.round(D.JSC$20847_overlayHeight*D.requiredRatio);AaQ(D)},AaQ=function(D){switch(D.resizeCorner){case 2:case 1:D.JSC$20847_overlayMarginLeft=D.canvas.width-D.JSC$20847_overlayMarginRight-D.JSC$20847_overlayWidth;
break;case 4:case 3:D.JSC$20847_overlayMarginRight=D.canvas.width-D.JSC$20847_overlayMarginLeft-D.JSC$20847_overlayWidth;break;default:throw Error("Ll");}},SVO=function(D,t){var H=D.JSC$20847_overlayMarginLeft+D.JSC$20847_overlayWidth;
D.JSC$20847_overlayMarginLeft=gaQ(D,t);D.JSC$20847_overlayWidth=H-D.JSC$20847_overlayMarginLeft;D.JSC$20847_overlayHeight=Math.round(D.JSC$20847_overlayWidth/D.requiredRatio);JaF(D)},fbF=function(D,t){var H=D.JSC$20847_overlayMarginLeft;
D.JSC$20847_overlayMarginRight=gaQ(D,t);D.JSC$20847_overlayWidth=D.canvas.width-D.JSC$20847_overlayMarginRight-H;D.JSC$20847_overlayHeight=Math.round(D.JSC$20847_overlayWidth/D.requiredRatio);JaF(D)},JaF=function(D){switch(D.resizeCorner){case 2:case 4:D.JSC$20847_overlayMarginBottom=D.canvas.height-D.JSC$20847_overlayMarginTop-D.JSC$20847_overlayHeight;
break;case 1:case 3:D.JSC$20847_overlayMarginTop=D.canvas.height-D.JSC$20847_overlayMarginBottom-D.JSC$20847_overlayHeight;break;default:throw Error("Ll");}},LzH=function(D,t){switch(D.resizeCorner){case 2:t=D.canvas.height-(D.JSC$20847_overlayMarginTop+YVi(D,t));
break;case 4:t=D.canvas.height-(D.JSC$20847_overlayMarginTop+lbi(D,t));break;case 1:t=D.JSC$20847_overlayMarginTop+D.JSC$20847_overlayHeight-YVi(D,t);break;case 3:t=D.JSC$20847_overlayMarginTop+D.JSC$20847_overlayHeight-lbi(D,t);break;default:throw Error("Ll");}return Math.max(t,D.canvasMargin)},YVi=function(D,t){t=D.JSC$20847_overlayMarginLeft+D.JSC$20847_overlayWidth-Math.max(t,D.horizontalMargin);
t=t<0?D.JSC$20847_overlayWidth:Math.max(t,D.minOverlayWidth);return Math.round(t/D.requiredRatio)},lbi=function(D,t){t=D.canvas.width-Math.max(D.canvas.width-t,D.horizontalMargin)-D.JSC$20847_overlayMarginLeft;
t=t<0?D.JSC$20847_overlayWidth:Math.max(t,D.minOverlayWidth);return Math.round(t/D.requiredRatio)},gaQ=function(D,t){switch(D.resizeCorner){case 2:t=D.canvas.width-D.JSC$20847_overlayMarginRight-vaQ(D,t);
break;case 4:t=D.canvas.width-D.JSC$20847_overlayMarginLeft-vaQ(D,t);break;case 1:t=D.canvas.width-D.JSC$20847_overlayMarginRight-p8F(D,t);break;case 3:t=D.canvas.width-D.JSC$20847_overlayMarginLeft-p8F(D,t);break;default:throw Error("Ll");}return Math.max(t,D.horizontalMargin)},vaQ=function(D,t){t=D.canvas.height-Math.max(D.canvas.height-t,D.canvasMargin)-D.JSC$20847_overlayMarginTop;
return t<0?D.JSC$20847_overlayWidth:Math.max(Math.round(t*D.requiredRatio),D.minOverlayWidth)},p8F=function(D,t){t=D.JSC$20847_overlayMarginTop+D.JSC$20847_overlayHeight-Math.max(t,D.canvasMargin);
return t<0?D.JSC$20847_overlayWidth:Math.max(Math.round(t*D.requiredRatio),D.minOverlayWidth)},OqY=function(D){D.ctx.clearRect(0,0,D.canvas.width,D.canvas.height);
D.ctx.drawImage(D.image,0,0,D.image.width,D.image.height,D.horizontalMargin,D.canvasMargin,D.canvas.width-2*D.horizontalMargin,D.scaledImageHeight);D.ctx.fillStyle="rgba(0, 0, 0, 0.7)";D.ctx.fillRect(D.horizontalMargin,D.JSC$20847_overlayMarginTop,D.JSC$20847_overlayMarginLeft-D.horizontalMargin,D.JSC$20847_overlayHeight);D.ctx.fillRect(D.JSC$20847_overlayMarginLeft+D.JSC$20847_overlayWidth,D.JSC$20847_overlayMarginTop,D.JSC$20847_overlayMarginRight-D.horizontalMargin,D.JSC$20847_overlayHeight);D.ctx.fillRect(D.horizontalMargin,
D.canvasMargin,D.scaledImageWidth,D.JSC$20847_overlayMarginTop-D.canvasMargin);D.ctx.fillRect(D.horizontalMargin,D.JSC$20847_overlayMarginTop+D.JSC$20847_overlayHeight,D.scaledImageWidth,D.JSC$20847_overlayMarginBottom-D.canvasMargin);D.drawOverlay();D.component&&_.Gf(D.component,"image-updated")};
ub.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20847_overlayMarginLeft,this.JSC$20847_overlayMarginTop,this.JSC$20847_overlayWidth,this.JSC$20847_overlayHeight);dsZ(this)};
var dsZ=function(D){var t=D.JSC$20847_overlayMarginLeft-5,H=D.JSC$20847_overlayMarginTop-5,e=D.JSC$20847_overlayMarginLeft+D.JSC$20847_overlayWidth-5,V=D.JSC$20847_overlayMarginTop+D.JSC$20847_overlayHeight-5;D.ctx.fillStyle="#FFF";D.ctx.fillRect(t,H,10,10);D.ctx.strokeRect(t,H,10,10);D.ctx.fillRect(e,H,10,10);D.ctx.strokeRect(e,H,10,10);D.ctx.fillRect(t,V,10,10);D.ctx.strokeRect(t,V,10,10);D.ctx.fillRect(e,V,10,10);D.ctx.strokeRect(e,V,10,10);if(D.focusedCorner!==0&&D.styleFocusedCorner){D.ctx.lineWidth=
4;D.ctx.strokeStyle="#3EA6FF";switch(D.focusedCorner){case 1:--t;--H;break;case 2:--t;H=V-1;break;case 3:t=e-1;--H;break;case 4:t=e-1;H=V-1;break;default:return}D.ctx.strokeRect(t,H,12,12)}};
ub.prototype.crop=function(D,t){t=t===void 0?!0:t;var H=this.image.width/this.scaledImageWidth,e=document.createElement("canvas"),V=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],b=this.JSC$20847_overlayWidth*H,a=this.JSC$20847_overlayHeight*H;e.width=Math.max(b,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);e.height=Math.max(a,V);D&&(e.width=Math.min(e.width,e.height),e.height=Math.min(e.width,e.height));
D=e.getContext("2d");if(!D)throw Error("zl");V=(this.JSC$20847_overlayMarginLeft-this.horizontalMargin)*H;H*=this.JSC$20847_overlayMarginTop-this.canvasMargin;t||(D.fillStyle="white",D.fillRect(0,0,e.width,e.height));D.drawImage(this.image,V,H,b,a,0,0,e.width,e.height);return e};var xsF=function(D,t,H,e,V){ub.call(this,D,t,H,e,void 0,V,8,!1)};
_.P(xsF,ub);xsF.prototype.drawOverlay=function(){var D=this.getContext(),t=this.JSC$20847_overlayWidth,H=this.JSC$20847_overlayHeight,e=this.JSC$20847_overlayMarginTop,V=this.JSC$20847_overlayMarginLeft;D.lineWidth=2;D.strokeStyle="#3EA6FF";D.beginPath();D.arc(V+t/2,e+H/2,t/2,0,2*Math.PI);D.stroke();D.strokeRect(V,e,t,H);dsZ(this)};
var RSv={maxFileSizeMB:15,minWidth:98,minHeight:98},utQ=["image/png","image/jpeg","image/gif"],Wi=function(){var D=_.X.apply(this,arguments)||this;D.fileSelectorFocusListener=null;D.errorMessage=null;D.isLoading=!0;D.hideContainer=!0;D.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return D};
_.P(Wi,_.X);_.q=Wi.prototype;_.q.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.q.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.q.computePlaylistThumbnail=function(D){return D==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.q.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.ET(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.q.setErrorState=function(D){this.resetErrorState();D&&(this.errorMessage=D)};
_.q.showPopup=function(){var D=this;this.hideContainer=!1;_.C7(_.Jy,function(){_.Gf(D.hostElement,"yt-refit")});
this.isLoading=!1};
_.q.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.q.closePopup=function(){this.resetFileSelector();_.ET(this.hostElement,"yt-close-popup-action",[this.is])};
_.q.onCancelTap=function(){this.isPlaylistThumbnail||_.ET(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.q.openFileSelector=function(){var D=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.C7(_.Jy,function(){setTimeout(function(){if(!D.fileSelector.files||D.fileSelector.files.length===0)D.onCancelTap();D.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(t){t instanceof Error?_.gT(t):_.Jp(new _.nZ(JSON.stringify(t)))}};
_.q.handleFileSelection=function(){var D=this,t,H,e,V,b,a;return _.Z(function(w){switch(w.nextAddress){case 1:_.$p(w,2);if(!D.fileSelector.files||!D.imageEditorCanvas)return D.onCancelTap(),w.return();t=D.fileSelector.files[0];TyF(D.imageChecker,t);_.$p(w,4);return w.yield(QHF(t),6);case 6:D.mimeType=w.yieldResult;_.yM(w,5,2);break;case 4:_.Pv(w,2),_.ET(D.hostElement,"yt-image-selection-error-action",[(H=D.data)==null?void 0:H.genericImageLoadErrorMessage]),D.onCancelTap();case 5:e=new FileReader;
e.addEventListener("load",function(){var h,K;return _.Z(function(N){if(N.nextAddress==1){if(!e.result)return _.Yw(Error("Bl")),N.return();h=e.result;K=new Image;K.src=h;K.onload=function(){try{var k=D.imageChecker;if(K.width<k.requirements.minWidth||K.height<k.requirements.minHeight)throw new NyO(k.requirements.minWidth,k.requirements.minHeight);}catch(c){if(c instanceof NyO){var T;_.ET(D.hostElement,"yt-image-selection-error-action",[(T=D.data)==null?void 0:T.imageDimensionErrorMessage]);D.logImageDimensionErrorVe()}else c instanceof
Error?_.gT(c):(k=new _.nZ(JSON.stringify(c)),_.gT(k));D.onCancelTap()}D.showPopup()};
K.onerror=function(){var k;_.ET(D.hostElement,"yt-image-selection-error-action",[(k=D.data)==null?void 0:k.genericImageLoadErrorMessage]);D.onCancelTap()};
return N.yield(rab(D.imageEditorCanvas,h),2)}D.imageEditor=N.yieldResult;D.updatePositionOfAllCorners();D.addEventListeners(D.imageEditor);_.n2(N)})},!1);
e.readAsDataURL(t);_.yM(w,0);break;case 2:V=_.Pv(w),V instanceof RO?_.ET(D.hostElement,"yt-image-selection-error-action",[(b=D.data)==null?void 0:b.imageSizeErrorMessage]):(V instanceof Error?_.gT(V):_.Jp(new _.nZ(JSON.stringify(V))),_.ET(D.hostElement,"yt-image-selection-error-action",[(a=D.data)==null?void 0:a.genericImageLoadErrorMessage])),D.onCancelTap(),_.n2(w)}})};
_.q.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var D=_.oQ(_.Pc(),{veType:232707,visualElement:_.Nx(232707)});D&&(D={visualElement:D},_.U_().reportShown(D))}};
_.q.handleImageSelectionErrorAction=function(D){this.isPlaylistThumbnail&&_.BRu(this.hostElement,D)};
_.q.convertToImageFormatBundle=function(D){var t=this,H,e,V;return _.Z(function(b){switch(b.nextAddress){case 1:return H=D.toDataURL(t.outputMimeType,1),b.yield(yBZ(H),2);case 2:e=b.yieldResult;_.$p(b,3);TyF(t.imageChecker,e);_.yM(b,4);break;case 3:V=_.Pv(b);if(!(V instanceof RO))throw V;_.Yw(new _.nZ("Output size is bigger than input size for image",t.mimeType,t.outputMimeType,e.size));H=D.toDataURL("image/jpeg",.95);return b.yield(yBZ(H),6);case 6:e=b.yieldResult;case 4:return b.return({dataUrl:H,
imageFile:e})}})};
_.q.handleUploadImageToScottyCommand=function(D){var t=this,H,e,V,b,a,w,h,K,N,k;return _.Z(function(T){switch(T.nextAddress){case 1:if(!t.imageEditor||!_.O(D,cfv))return T.return();H=_.O(D,cfv).scottyUploadUrl;if(!H){var c=new _.nZ("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.gT(c);return T.return()}_.$p(T,2);t.setLoadingState();e=t.imageEditor.crop(!1,!1);return T.yield(t.convertToImageFormatBundle(e),4);case 4:return V=T.yieldResult,T.yield(WMt(V.imageFile,H),5);
case 5:b=T.yieldResult;((a=t.data)==null?0:a.onUploadEndpoint)?(w=t.buildUploadServiceEndpoint(b),t.ytComponentBehavior.resolveCommand(w),h=_.O(w,_.b2),((K=h)==null?0:K.params)?t.closePopup():t.resetFileSelector()):(_.ET(t.hostElement,"yt-image-updated-action",[V.dataUrl,b]),t.closePopup());_.yM(T,0);break;case 2:N=_.Pv(T),t.setErrorState((k=t.data)==null?void 0:k.uploadErrorMessage),N instanceof Error?_.gT(N):(c=new _.nZ(JSON.stringify(N)),_.gT(c)),_.n2(T)}})};
_.q.buildUploadServiceEndpoint=function(D){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",D),this.data.onUploadEndpoint):null};
_.q.dataChanged=function(){var D=this,t;return _.Z(function(H){if(H.nextAddress==1){if(!D.data||!D.canvasElement)return H.return();D.data.imageRatio&&D.data.minImageCropWidth||_.Jp(new _.nZ("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));t=function(e,V){return D.data.imageType==="IMAGE_TYPE_AVATAR"?new xsF(e,V,D.data.imageRatio,[D.data.minImageCropWidth,D.data.minImageCropWidth/D.data.imageRatio],D.hostElement):new ub(e,V,D.data.imageRatio,[D.data.minImageCropWidth,
D.data.minImageCropWidth/D.data.imageRatio],void 0,D.hostElement,8,!1)};
D.imageEditorCanvas=new cae(D.canvasElement,t);return D.data.url?H.yield(rab(D.imageEditorCanvas,D.data.url),3):(D.hideContainer=!0,D.openFileSelector(),H.jumpTo(0))}D.imageEditor=H.yieldResult;D.showPopup();D.addEventListeners(D.imageEditor);_.n2(H)})};
_.q.addEventListeners=function(D){this.removeEventListeners();var t=function(V){jrQ(D,V)};
this.JSC$20855_mouseDownEvent=t;var H=function(V){$sv(D,V)};
this.JSC$20855_mouseMoveEvent=H;var e=function(){iqe(D)};
this.JSC$20855_mouseUpEvent=e;this.topLeftCorner.addEventListener("mousedown",t);this.topLeftCorner.addEventListener("mousemove",H);this.topLeftCorner.addEventListener("mouseup",e);this.topRightCorner.addEventListener("mousedown",t);this.topRightCorner.addEventListener("mousemove",H);this.topRightCorner.addEventListener("mouseup",e);this.bottomLeftCorner.addEventListener("mousedown",t);this.bottomLeftCorner.addEventListener("mousemove",H);this.bottomLeftCorner.addEventListener("mouseup",e);this.bottomRightCorner.addEventListener("mousedown",
t);this.bottomRightCorner.addEventListener("mousemove",H);this.bottomRightCorner.addEventListener("mouseup",e)};
_.q.removeEventListeners=function(){this.JSC$20855_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20855_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20855_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20855_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20855_mouseDownEvent));this.JSC$20855_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20855_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20855_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20855_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20855_mouseMoveEvent));this.JSC$20855_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20855_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20855_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20855_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20855_mouseUpEvent))};
_.q.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var D=document.activeElement;D&&D.shadowRoot&&D.shadowRoot.activeElement;)D=D.shadowRoot.activeElement;switch(D){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};
_.q.updatePositionOfCorner=function(D,t){var H=D.y-t.offsetHeight/2+4;t.style.left=D.x-t.offsetWidth/2+16+"px";t.style.top=H+"px"};
_.q.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var D=_.F([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),t=D.next();!t.done;t=D.next()){t=t.value;var H=PXF(this.imageEditor,t.corner);this.updatePositionOfCorner(H,t.div)}};
_.q.onLeft=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(CXF(this.imageEditor,0),this.updatePositionOfAllCorners(),D.preventDefault())};
_.q.onRight=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(CXF(this.imageEditor,1),this.updatePositionOfAllCorners(),D.preventDefault())};
_.q.onUp=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(CXF(this.imageEditor,2),this.updatePositionOfAllCorners(),D.preventDefault())};
_.q.onDown=function(D){this.imageEditor&&this.setFocusInImageEditor()&&(CXF(this.imageEditor,3),this.updatePositionOfAllCorners(),D.preventDefault())};
_.q.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.ql.Object.defineProperties(Wi.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&utQ.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var D,t,H;((t=this.data)==null?0:t.imageRatio)&&((H=this.data)==null?0:H.minImageCropWidth)?D={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:D=RSv;return new kMg(D)}}});
Wi.prototype.updatePositionOfAllCorners=Wi.prototype.updatePositionOfAllCorners;Wi.prototype.dataChanged=Wi.prototype.dataChanged;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Wi.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],Wi.prototype,"ytComponentBehavior",void 0);_.d([_.C(_.l9),_.x("design:type",Object)],Wi.prototype,"ironA11yKeysBehavior",void 0);
_.d([_.o5("#canvas"),_.x("design:type",HTMLCanvasElement)],Wi.prototype,"canvasElement",void 0);_.d([_.o5("#file-selector"),_.x("design:type",HTMLInputElement)],Wi.prototype,"fileSelector",void 0);_.d([_.o5("#top-left-corner"),_.x("design:type",HTMLDivElement)],Wi.prototype,"topLeftCorner",void 0);_.d([_.o5("#top-right-corner"),_.x("design:type",HTMLDivElement)],Wi.prototype,"topRightCorner",void 0);
_.d([_.o5("#bottom-left-corner"),_.x("design:type",HTMLDivElement)],Wi.prototype,"bottomLeftCorner",void 0);_.d([_.o5("#bottom-right-corner"),_.x("design:type",HTMLDivElement)],Wi.prototype,"bottomRightCorner",void 0);_.d([_.M(),_.x("design:type",Object)],Wi.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Wi.prototype,"errorMessage",void 0);_.d([_.M(),_.x("design:type",Object)],Wi.prototype,"isLoading",void 0);_.d([_.M(),_.x("design:type",Object)],Wi.prototype,"hideContainer",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.x("design:type",Boolean)],Wi.prototype,"isPlaylistThumbnail",void 0);_.d([_.mx("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],Wi.prototype,"dataChanged",null);_.d([_.rx("image-updated"),_.rx("yt-refit"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Wi.prototype,"updatePositionOfAllCorners",null);
_.d([_.xL({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Wi);
_.p(Wi,"yt-image-editor-renderer",function(){if(Kzv===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Eae===void 0&&(Eae=document.createElement("template"));var e=Eae;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Kzv=D}D=Kzv;return D},{mode:2});var WzH;var Ibe;var IO=function(){return _.X.apply(this,arguments)||this};
_.P(IO,_.X);IO.prototype.updateMinutesFromBinding=function(D){this.handleMinutesChanged&&this.handleMinutesChanged(D)};
IO.prototype.updateSecondsFromBinding=function(D){this.handleSecondsChanged&&this.handleSecondsChanged(D)};
IO.prototype.updateDescriptionFromBinding=function(D){this.handleDescriptionChanged&&this.handleDescriptionChanged(D)};
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],IO.prototype,"ytComponentBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],IO.prototype,"data",void 0);_.d([_.M(),_.x("design:type",String)],IO.prototype,"minutes",void 0);_.d([_.M(),_.x("design:type",String)],IO.prototype,"seconds",void 0);_.d([_.M(),_.x("design:type",String)],IO.prototype,"description",void 0);_.d([_.M(),_.x("design:type",Function)],IO.prototype,"handleMinutesChanged",void 0);
_.d([_.M(),_.x("design:type",Function)],IO.prototype,"handleSecondsChanged",void 0);_.d([_.M(),_.x("design:type",Function)],IO.prototype,"handleDescriptionChanged",void 0);_.d([_.M(),_.x("design:type",Number)],IO.prototype,"characterLimit",void 0);_.d([_.M(),_.x("design:type",Number)],IO.prototype,"textNumRows",void 0);_.d([_.xL({is:"yt-report-details-form-content",disableElementRegistration:!0})],IO);
_.p(IO,"yt-report-details-form-content",function(){if(Ibe===void 0){var D=document.createElement("template");_.n(D,'\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>');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;WzH===void 0&&(WzH=document.createElement("template"));var e=WzH;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Ibe=D}D=Ibe;return D},{mode:2});var QrF;var yaZ;var Q5=function(){var D=_.X.apply(this,arguments)||this;D.updateMinutesFromBinding=function(t){D.minutes=t.detail.value};
D.updateSecondsFromBinding=function(t){D.seconds=t.detail.value};
D.updateDescriptionFromBinding=function(t){D.description=t.detail.value};
return D};
_.P(Q5,_.X);_.q=Q5.prototype;_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.q.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"}}}};
_.q.ready=function(){_.Kg(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.q.onSubmitYtAction=function(D){var t=D.detail;t.actionName==="yt-service-request"&&(t=t.args[1],t.flagEndpoint&&(D.stopPropagation(),this.refireAction(t)))};
_.q.refireAction=function(D){var t={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(t.vss_id=this.vssId);_.NJ(this.hostElement,[D,t]);this.submitDisabled=!0};
_.q.dataChanged=function(){var D=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var t=_.FA();t&&t.getPlayerPromise().then(function(H){var e=H.getOption("cc","track")||H.getOption("captions","track");e&&(D.vssId=e.vss_id);H=H.getCurrentTime();D.minutes=Math.floor(H/60).toString();D.seconds=(Math.floor(H)%60).toString()})};
_.q.updateSubmitButtonState=function(){var D;((D=this.data)==null?0:D.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==="")};
_.q.onYtServiceRequestCompleted=function(){_.ET(this.hostElement,"yt-close-popup-action")};
_.q.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.ql.Object.defineProperties(Q5.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var D;return((D=this.data)==null?void 0:D.textNumRows)||4}}});
Q5.prototype.onYtServiceRequestError=Q5.prototype.onYtServiceRequestError;Q5.prototype.onYtServiceRequestCompleted=Q5.prototype.onYtServiceRequestCompleted;Q5.prototype.updateSubmitButtonState=Q5.prototype.updateSubmitButtonState;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Q5.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Q5.prototype,"ytRendererBehavior",void 0);
_.d([_.M({observer:"dataChanged"}),_.x("design:type",Object)],Q5.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Boolean)],Q5.prototype,"submitDisabled",void 0);_.d([_.M(),_.x("design:type",String)],Q5.prototype,"minutes",void 0);_.d([_.M(),_.x("design:type",String)],Q5.prototype,"seconds",void 0);_.d([_.M(),_.x("design:type",String)],Q5.prototype,"description",void 0);_.d([_.M(),_.x("design:type",String)],Q5.prototype,"vssId",void 0);
_.d([_.M({value:_.YC("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.x("design:type",Boolean)],Q5.prototype,"isMusic",void 0);_.d([_.m("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Q5.prototype,"characterLimit",null);_.d([_.m("data"),_.x("design:type",Number),_.x("design:paramtypes",[])],Q5.prototype,"textNumRows",null);
_.d([_.mx("minutes","seconds","description","submitDisabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Q5.prototype,"updateSubmitButtonState",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Q5.prototype,"onYtServiceRequestCompleted",null);
_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Q5.prototype,"onYtServiceRequestError",null);_.d([_.xL({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Q5);
_.p(Q5,"yt-report-details-form-renderer",function(){if(yaZ===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;QrF===void 0&&(QrF=document.createElement("template"));var e=QrF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);yaZ=D}D=yaZ;return D});var ByF;var zSQ;var D7H;var tKg;var y5=function(){return _.X.apply(this,arguments)||this};
_.P(y5,_.X);
y5.prototype.onCheckedChanged_=function(){if(this.data){var D=_.Kg(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.ET(this.hostElement,"yt-additional-detail-checkbox-update",[D]):this.data.identifier==="yt-hide-user-checkbox"?_.ET(this.hostElement,"yt-hide-user-checkbox-update",[D]):D&&this.data.enableCommand?_.ET(this.hostElement,"yt-modify-report-form-command",[_.O(this.data.enableCommand,oTZ)]):!D&&this.data.disableCommand&&_.ET(this.hostElement,
"yt-modify-report-form-command",[_.O(this.data.enableCommand,oTZ)])}};
y5.prototype.onLabelTap_=function(D){D.target.tagName!="A"&&(_.Kg(this.hostElement).querySelector("#checkbox").checked=!_.Kg(this.hostElement).querySelector("#checkbox").checked)};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],y5.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],y5.prototype,"data",void 0);_.d([_.xL({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],y5);
_.p(y5,"yt-boolean-form-field-v2-renderer",function(){if(tKg===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;D7H===void 0&&(D7H=document.createElement("template"));var e=D7H;H.call(t,e.content.cloneNode(!0),D.content.firstChild);tKg=D}D=tKg;return D});var Bi=function(){var D=_.X.apply(this,arguments)||this;D.canShowAdditionalDetailCheckbox=!1;D.canShowCheckbox=!1;D.keepDropdownFocusedAfterSelection=!0;return D};
_.P(Bi,_.X);Bi.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}}}}};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Bi.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Bi.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],Bi.prototype,"canShowAdditionalDetailCheckbox",void 0);_.d([_.M(),_.x("design:type",Object)],Bi.prototype,"canShowCheckbox",void 0);_.d([_.M(),_.x("design:type",Object)],Bi.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.d([_.xL({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Bi);
_.p(Bi,"yt-report-form-modal-content",function(){if(zSQ===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;ByF===void 0&&(ByF=document.createElement("template"));var e=ByF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);zSQ=D}D=zSQ;return D},{mode:2});var HO4;var eke;var z2=function(){var D=_.X.apply(this,arguments)||this;D.submitting=!1;D.submitButtonDisabled=!0;D.command=null;D.canShowCheckbox=!1;D.canShowAdditionalDetailCheckbox=!1;D.canShowNextButton=!1;D.additionalDetailCheckboxChecked=!1;D.refitJob=0;D.keepDropdownFocusedAfterSelection=!0;D.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 D};
_.P(z2,_.X);_.q=z2.prototype;_.q.created=function(){this.refitJob=0};
_.q.attached=function(){this.JSC$20878_scroller&&(this.JSC$20878_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20878_scroller.attached&&typeof this.JSC$20878_scroller.attached==="function"&&this.JSC$20878_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.dataChanged=function(D){D&&(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,D.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),D.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.q.onYtPopupOpened=function(){var D=_.FA();D&&D.getPlayerPromise().then(function(t){t.pauseVideo()})};
_.q.onYtNavigate=function(D){_.O(D.detail.endpoint,_.plw)&&(D.stopPropagation(),this.hideReportForm=!0)};
_.q.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.q.onYtServiceRequestCompleted=function(D,t){var H=t.actions;if(H){if(H.length===1&&_.O(H[0],_.ch)){var e;H=((e=_.O(H[0],_.ch))==null?void 0:e.commands)||[]}e=0;for(var V=H.length;e<V;e++)_.O(H[e],_.RW)&&(D.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(H[e]))}if(t.data&&(D=this.get("feedbackResponses",t.data)))for(t=0;t<D.length;t++)if(D[t].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.q.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.q._onDescendantIronResize=function(D){D.stopPropagation();return!1};
_.q.handleReportFormEndpointUpdateAction=function(D){if(D.submitEndpoint){var t=this.command=D.submitEndpoint;t=_.O(t,_.lho);if(t==null?0:t.additionalDetailCheckboxChecked)t.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else D.submitNavigationEndpoint?(this.command=D.submitNavigationEndpoint,this.toggleSubmitButton(!1)):D.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:D.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;D.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",D));this.refit()};
_.q.handleConfirmDialogCloseAction=function(D){D.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.q.submitButtonDisabledChanged=function(){var D=this.hostElement.parentElement;D&&D.invalidateTabbables&&D.invalidateTabbables()};
_.q.handleModifyReportFormCommand=function(D){D=this.get("action",D);D==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:D==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:D==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:D==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:D==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:D==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.q.updateDialogStyling=function(){var D,t,H,e,V,b=((V=(D=this.data)==null?void 0:(t=D.optionsSupportedRenderers)==null?void 0:(H=t.optionsRenderer)==null?void 0:(e=H.items)==null?void 0:e.length)!=null?V:0)<=2?0:240;_.jZ(this.hostElement,{"--yt-report-form-modal-renderer-min-width":b+"px"})};
_.q.toggleSubmitButton=function(D){this.submitButtonDisabled=!D;this.submitButtonDisabled=D};
_.q.computeSubmitButtonData=function(D,t){var H={};_.O(t,_.plw)?H.navigationEndpoint=t:H.command=t||void 0;D&&D.buttonRenderer&&_.J$.extend(H,D.buttonRenderer);return H};
_.q.computeNextButtonData=function(D,t){var H={};if(!D||!D.buttonRenderer)return H;_.J$.extend(H,D.buttonRenderer);if(!t)return H;if(_.O(t,_.plw))H.navigationEndpoint=QkH(t);else if(H.command=QkH(t),D=_.O(H.command,_.lho))D.legalCheckboxChecked=!0;return H};
_.q.computeShowNextButton=function(D,t,H){return!!D&&t&&H};
_.q.refit=function(){var D=this;this.refitJob||(this.refitJob=_.Jy.addLowPriorityJob(function(){_.Gf(D.hostElement,"yt-refit");D.refitJob=0}))};
_.q.handleAdditionalDetailCheckboxUpdateAction=function(D){this.additionalDetailCheckboxChecked=D;_.O(this.command,_.lho).additionalDetailCheckboxChecked=D};
_.ql.Object.defineProperties(z2,{template:{configurable:!0,enumerable:!0,get:function(){if(eke===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;HO4===void 0&&(HO4=document.createElement("template"));var e=HO4;H.call(t,e.content.cloneNode(!0),D.content.firstChild);eke=D}D=eke;return D}}});
z2.prototype.onYtServiceRequestError=z2.prototype.onYtServiceRequestError;z2.prototype.onYtServiceRequestCompleted=z2.prototype.onYtServiceRequestCompleted;z2.prototype.onYtServiceRequestSent=z2.prototype.onYtServiceRequestSent;z2.prototype.onYtNavigate=z2.prototype.onYtNavigate;z2.prototype.onYtPopupOpened=z2.prototype.onYtPopupOpened;_.d([_.C(_.vP.YtOpenPopupBehavior),_.x("design:type",Object)],z2.prototype,"openPopupBehavior",void 0);
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],z2.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],z2.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],z2.prototype,"eventForwardingBehavior",void 0);_.d([_.C(_.QI),_.x("design:type",Object)],z2.prototype,"ironResizableBehavior",void 0);_.d([_.M({observer:"dataChanged"}),_.x("design:type",Object)],z2.prototype,"data",void 0);
_.d([_.M(),_.x("design:type",Object)],z2.prototype,"submitting",void 0);_.d([_.M({observer:"submitButtonDisabledChanged"}),_.x("design:type",Object)],z2.prototype,"submitButtonDisabled",void 0);_.d([_.M(),_.x("design:type",Object)],z2.prototype,"command",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],z2.prototype,"hideReportForm",void 0);_.d([_.M(),_.x("design:type",Object)],z2.prototype,"canShowCheckbox",void 0);
_.d([_.M(),_.x("design:type",Object)],z2.prototype,"canShowAdditionalDetailCheckbox",void 0);_.d([_.M(),_.x("design:type",Object)],z2.prototype,"canShowNextButton",void 0);_.d([_.M(),_.x("design:type",Object)],z2.prototype,"additionalDetailCheckboxChecked",void 0);_.d([_.M(),_.x("design:type",Object)],z2.prototype,"refitJob",void 0);_.d([_.M(),_.x("design:type",Object)],z2.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.d([_.o5("#scroller"),_.x("design:type",Object)],z2.prototype,"JSC$20878_scroller",void 0);_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],z2.prototype,"onYtPopupOpened",null);_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],z2.prototype,"onYtNavigate",null);
_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],z2.prototype,"onYtServiceRequestSent",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],z2.prototype,"onYtServiceRequestCompleted",null);
_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],z2.prototype,"onYtServiceRequestError",null);_.d([_.xL({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],z2);var VK4;var bOv;var DA=function(){return _.X.apply(this,arguments)||this};
_.P(DA,_.X);_.q=DA.prototype;_.q.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.q.onVisible=function(){var D,t;(t=_.qS().resolve(_.by(_.H2)))==null||t.enqueue({label:_.eo((D=this.data)==null?void 0:D.messageTitle),elementToFocus:this.hostElement})};
_.q.onThumbnailLoaded=function(){_.Gf(this.hostElement,"yt-refit")};
_.q.onDismissTap=function(){_.ET(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.q.computeAlternateIcon=function(D){return D?D==="BACKSTAGE_ARTWORK"?"backstage:artwork":D:null};
_.q.computeFontFamily=function(D){return D==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.q.computeBackgroundStyle=function(D,t){if(D=this.computeBackgroundImage(D,t))if(D=_.E7(D.thumbnails))return'background-image: url("'+D+'");'};
_.q.computeHasFullHeightImage=function(D){return!(!(D&&D.thumbnails&&D.thumbnails.length>0)||this.modern)};
_.q.isModernStyle=function(D){return D.style==="STYLE_MODERN"};
_.q.computeIcon=function(D,t){if(D&&D.icon)return t?D.iconDark:D.icon};
_.q.computeBackgroundImage=function(D,t){if(D&&D.backgroundImage)return t?D.backgroundImageDark:D.backgroundImage};
_.q.computeLogo=function(D,t){if(D&&D.logo)return t?D.logoDark:D.logo};
_.q.computeShouldShowModernIcon=function(D,t){return D&&!!t};
_.q.getLogoContainerClassName=function(D){return this.logoWithPadding(D)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.q.getLogoImageId=function(D){return this.logoWithPadding(D)?"mealbar-logo-with-padding":"mealbar-logo"};
_.q.logoWithPadding=function(D){var t,H,e;return(D=(t=this.computeLogo(D,this.isDarkTheme))==null?void 0:(H=t.thumbnails)==null?void 0:(e=H[0])==null?void 0:e.height)&&D%31===0?!0:!1};
DA.prototype.onThumbnailLoaded=DA.prototype.onThumbnailLoaded;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],DA.prototype,"ytRendererBehavior",void 0);_.d([_.M({}),_.x("design:type",Object)],DA.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.x("design:type",Boolean)],DA.prototype,"modern",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],DA.prototype,"isDarkTheme",void 0);
_.d([_.M({computed:"computeIcon(data, isDarkTheme)"}),_.x("design:type",Object)],DA.prototype,"icon",void 0);_.d([_.M({computed:"computeLogo(data, isDarkTheme)"}),_.x("design:type",Object)],DA.prototype,"logo",void 0);_.d([_.M({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.x("design:type",Object)],DA.prototype,"backgroundStyle",void 0);_.d([_.M({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.x("design:type",Object)],DA.prototype,"alternateIcon",void 0);
_.d([_.M({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.x("design:type",Boolean)],DA.prototype,"hasFullHeightImage",void 0);_.d([_.M({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.x("design:type",Boolean)],DA.prototype,"useYoutubeSans",void 0);_.d([_.M({computed:"computeShouldShowModernIcon(modern, icon)"}),_.x("design:type",Boolean)],DA.prototype,"shouldShowModernIcon",void 0);
_.d([_.rx("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],DA.prototype,"onThumbnailLoaded",null);_.d([_.xL({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],DA);
_.p(DA,"yt-mealbar-promo-renderer",function(){if(bOv===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;VK4===void 0&&(VK4=document.createElement("template"));var e=VK4;H.call(t,e.content.cloneNode(!0),D.content.firstChild);bOv=D}D=bOv;return D},{mode:2});var qXi;var FoY;var tS=function(){return _.X.apply(this,arguments)||this};
_.P(tS,_.X);_.q=tS.prototype;_.q.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]]"}}}}}};
_.q.computeHasButtons_=function(D){return!(!D.dismissButton&&!D.acceptButton)};
_.q.computeStyle_=function(D){return D||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.q.observeImpressionEndpoints_=function(){var D=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(t){t.clickTrackingParams&&delete t.clickTrackingParams;_.NJ(D.hostElement,[t])})};
_.q.onTap_=function(){_.ET(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
tS.prototype.observeImpressionEndpoints_=tS.prototype.observeImpressionEndpoints_;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],tS.prototype,"ytEventForwardingBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],tS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],tS.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],tS.prototype,"positionType",void 0);_.d([_.M({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.x("design:type",Boolean)],tS.prototype,"hasButtons_",void 0);_.d([_.M({value:function(){return this.onTap_.bind(this)}}),
_.x("design:type",Function)],tS.prototype,"boundOnTap_",void 0);_.d([_.M({value:{style:"mono-inverse"}}),_.x("design:type",Object)],tS.prototype,"buttonOverride",void 0);_.d([_.Os("data.promoConfig.impressionEndpoints"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],tS.prototype,"observeImpressionEndpoints_",null);_.d([_.xL({is:"yt-tooltip-renderer",disableElementRegistration:!0})],tS);
_.p(tS,"yt-tooltip-renderer",function(){if(FoY===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;qXi===void 0&&(qXi=document.createElement("template"));var e=qXi;H.call(t,e.content.cloneNode(!0),D.content.firstChild);FoY=D}D=FoY;return D},{mode:2});var aIt;var w6e;var ZOO={},sYb=(ZOO.WEB_REMIX="music.youtube.com",ZOO),HC=function(){var D=_.X.apply(this,arguments)||this;D.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return D};
_.P(HC,_.X);_.q=HC.prototype;_.q.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.created=function(){this.embedHost_=sYb[_.YC("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.q.ready=function(){_.Kg(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.q.computeEmbedCode_=function(D,t,H,e,V){if(!D)return"";var b=D.videoId,a=D.fullListId,w=[];D.attributionId&&w.push("si="+D.attributionId);e||w.push("controls=0");H&&Number(t)>0&&w.push("start="+t);a&&(b="videoseries",w.push("list="+a));H="https://"+(V?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+b;D.clipId&&(w.push("clip="+D.clipId),w.push("clipt="+D.clipTiming));t=w.length>0?H+"?"+w.join("&amp;"):H;D.encryptedEmbedConfig&&w.push("embed_config="+JSON.stringify({enc:D.encryptedEmbedConfig}));
w=w.length>0?H+"?"+w.join("&amp;"):H;_.r("web_sharing_embed_preview_killswitch")?_.Kg(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(w,D.previewWidth||854,D.previewHeight||480):(_.RS(this.videoPreviewContainer),_.Kg(this.videoPreviewContainer).appendChild(this.buildIframeElement(w)));return this.getEmbedCode_(t,D.width||560,D.height||315)};
_.q.buildIframeElement=function(D){var t=document.createElement("iframe"),H,e;t.width=""+((e=(H=this.data)==null?void 0:H.previewWidth)!=null?e:854);var V,b;t.height=""+((b=(V=this.data)==null?void 0:V.previewHeight)!=null?b:480);_.hDV(t,2,D);t.title="YouTube video player";t.frameBorder="0";t.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";t.referrerPolicy="strict-origin-when-cross-origin";t.allowFullscreen=!0;return t};
_.q.computeIsSquareAspectRatio_=function(D){return D.previewHeight&&D.previewWidth?D.previewHeight==D.previewWidth:!1};
_.q.computeShowEmbedOptions_=function(D){return!!D.enablePrivacyModeOptionLabel||!!D.showPlayerControlsOptionLabel};
_.q.getEmbedCode_=function(D,t,H){return'<iframe width="'+t+'" height="'+H+'" src="'+D+'" 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>'};
_.q.handleSignalActionCopyShareEmbedUrl_=function(){_.Kg(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.q.handleSetTimestamp_=function(D){this.startAtTimeStamp_=(this.startAtChecked_=D.isSet)?D.timestamp:0};
_.q.closePanel_=function(){_.ET(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.q.onEmbedCode_=function(){_.Kg(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.q.onYtPopupClosed_=function(){_.RS(_.Kg(this.hostElement).querySelector("#video-preview"))};
_.q.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.O(this.data.actionButtons[0],_.aj)&&this.ytRendererBehavior.logExplicitClick(_.O(this.data.actionButtons[0],_.aj))};
HC.prototype.onYtPopupClosed_=HC.prototype.onYtPopupClosed_;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],HC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],HC.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],HC.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],HC.prototype,"data",void 0);
_.d([_.M({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.x("design:type",String)],HC.prototype,"embedCode_",void 0);_.d([_.M({value:!0}),_.x("design:type",Boolean)],HC.prototype,"isPlayerControlsOptionChecked_",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],HC.prototype,"isPrivacyModeOptionChecked_",void 0);_.d([_.M({value:!1,notify:!0}),_.x("design:type",Boolean)],HC.prototype,"startAtChecked_",void 0);
_.d([_.M({value:0}),_.x("design:type",Number)],HC.prototype,"startAtTimeStamp_",void 0);_.d([_.M({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],HC.prototype,"isSquareAspectRatio_",void 0);_.d([_.o5("#video-preview"),_.x("design:type",HTMLElement)],HC.prototype,"videoPreviewContainer",void 0);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],HC.prototype,"onYtPopupClosed_",null);
_.d([_.xL({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],HC);
_.p(HC,"yt-sharing-embed-renderer",function(){if(w6e===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;aIt===void 0&&(aIt=document.createElement("template"));var e=aIt;H.call(t,e.content.cloneNode(!0),D.content.firstChild);w6e=D}D=w6e;return D},{mode:2});var hkQ={};
hkQ.YtUnlimitedFamilyInterstitialBehavior=[_.vP.YtOpenPopupBehavior,_.dW.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(D){D=_.dHV(_.qy(D),"yt-button-renderer");return D?D.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(D){this.dialogHistory_.push(D)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var D=this.popFromHistory();if(D){var t={openPopupAction:{popupType:"DIALOG",popup:{}}};t.openPopupAction.popup[D.renderer]=D.data;this.showingPreviousDialog_=!0;this.openPopup(t)}},
handleOpenPopupAction_:function(D){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var t=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(e){return!!D.openPopupAction.popup[e]}),H=this.getElementName_();
t&&this.data&&(this.pushToHistory({renderer:H,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(D){if(D=_.O(D,tLY))this.loading=!0,_.ET(this.hostElement,"yt-open-create-family-dialog",[D,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var D=this.hostElement.nodeName.split("-").slice(1).map(function(t){return""+t[0].toUpperCase()+t.slice(1).toLowerCase()}).join("");
return D[0].toLowerCase()+D.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var GCQ;var E9H;var eD=function(){return _.X.apply(this,arguments)||this};
_.P(eD,_.X);_.q=eD.prototype;_.q.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}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.ET(this.hostElement,"yt-register-create-family-dialog");_.Kg(this.hostElement).querySelector("#thumbnail").onShow()};
_.q.fireOnCloseCommand_=function(){var D;((D=this.data)==null?0:D.onCloseCommand)&&_.k0(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.q.onYtServiceRequestSent_=function(D,t){t&&t.endpoint&&_.O(t.endpoint,_.$0)||(this.loading=!0)};
_.q.onYtServiceRequestCompleted_=function(){var D=this.hostElement.parentElement;D.close&&D.close();this.loading=!1};
_.q.openPopupHandler_=function(D){if(D.detail==this){var t;((t=this.data)==null?0:t.onOpenCommands)&&_.k0(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.q.closePopupHandler_=function(D,t){this.fireOnCloseCommand_();if(t&&t.canceled===!0||t&&t.canceled===!1&&t.confirmed===!1){var H;((H=this.data)==null?0:H.onDismissCommands)&&_.k0(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.q.dataChanged_=function(){this.loading=!1};
eD.prototype.dataChanged_=eD.prototype.dataChanged_;eD.prototype.closePopupHandler_=eD.prototype.closePopupHandler_;eD.prototype.openPopupHandler_=eD.prototype.openPopupHandler_;eD.prototype.onYtServiceRequestCompleted_=eD.prototype.onYtServiceRequestCompleted_;eD.prototype.onYtServiceRequestSent_=eD.prototype.onYtServiceRequestSent_;_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],eD.prototype,"ytEventForwardingBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],eD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(hkQ.YtUnlimitedFamilyInterstitialBehavior),_.x("design:type",Object)],eD.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],eD.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],eD.prototype,"loading",void 0);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],eD.prototype,"onYtServiceRequestSent_",null);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],eD.prototype,"onYtServiceRequestCompleted_",null);
_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],eD.prototype,"openPopupHandler_",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],eD.prototype,"closePopupHandler_",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],eD.prototype,"dataChanged_",null);
_.d([_.xL({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],eD);
_.p(eD,"yt-unlimited-family-message-interstitial-renderer",function(){if(E9H===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;GCQ===void 0&&(GCQ=document.createElement("template"));var e=GCQ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);E9H=D}D=E9H;return D},{mode:2});var Kob;var NYQ;var Vw=function(){return _.X.apply(this,arguments)||this};
_.P(Vw,_.X);Vw.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"}}}};
Vw.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Kg(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(D){D.onShow()});
_.Kg(this.hostElement).querySelector("#main-thumbnail").onShow()};
Vw.prototype.onButtonTap_=function(D){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(D)};
Vw.prototype.computeMainThumbnailWidth_=function(D){return D&&D.length!==0?72:96};
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Vw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.d([_.C(hkQ.YtUnlimitedFamilyInterstitialBehavior),_.x("design:type",Object)],Vw.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Vw.prototype,"data",void 0);
_.d([_.M({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.x("design:type",Number)],Vw.prototype,"mainThumbnailWidth_",void 0);_.d([_.M({value:function(){return this.onButtonTap_.bind(this)}}),
_.x("design:type",Function)],Vw.prototype,"boundButtonTap_",void 0);_.d([_.xL({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Vw);
_.p(Vw,"yt-unlimited-family-profile-interstitial-renderer",function(){if(NYQ===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Kob===void 0&&(Kob=document.createElement("template"));var e=Kob;H.call(t,e.content.cloneNode(!0),D.content.firstChild);NYQ=D}D=NYQ;return D},{mode:2});var kCY;var TYF;var bQ=function(){var D=_.X.apply(this,arguments)||this;D.sliderAriaValueText_=null;D.selectedIndex_=0;D.messages={PAUSE_SLIDER:_.OT("PAUSE_SLIDER",void 0,"Pause Duration")};return D};
_.P(bQ,_.X);_.q=bQ.prototype;_.q.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_]]"}}}}}};
_.q.onPopupOpened_=function(D){D.detail==this&&_.r("enable_premium_voluntary_pause")&&(_.ET(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.q.setDialogData=function(D){this.data=D;this.resetSlider_()};
_.q.dataChanged_=function(){this.data&&this.resetSlider_()};
_.q.onSubmitTap_=function(){if(this.data.confirmCommand){var D=this.data.confirmCommand;_.O(D,_.L2n)&&_.NJ(this.hostElement,[D,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.q.onExitButtonTap_=function(){_.ET(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.q.closePopupHandler_=function(D,t){(t&&t.canceled===!0||t.canceled===!1&&t.confirmed===!1)&&this.handleOnDismissCommands_()};
_.q.onSliderChange_=function(){this.selectedIndex_=_.Kg(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.q.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.q.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.q.resetSlider_=function(){if(this.data){var D=this.data.defaultEndOptionIndex||0,t=_.Kg(this.hostElement).querySelector("#id-pause-slider");if(t.immediateValue<D)for(;t.immediateValue!=D;)t.increment();else if(D<t.immediateValue)for(;t.immediateValue!=D;)t.decrement();this.selectedIndex_=D;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.q.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.k0(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.q.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.k0(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.q.onYtServiceRequestSent=function(){this.loading=!0};
_.q.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
bQ.prototype.onYtServiceRequestCompleted=bQ.prototype.onYtServiceRequestCompleted;bQ.prototype.onYtServiceRequestSent=bQ.prototype.onYtServiceRequestSent;bQ.prototype.closePopupHandler_=bQ.prototype.closePopupHandler_;bQ.prototype.dataChanged_=bQ.prototype.dataChanged_;bQ.prototype.onPopupOpened_=bQ.prototype.onPopupOpened_;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],bQ.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],bQ.prototype,"loading",void 0);_.d([_.M(),_.x("design:type",Number)],bQ.prototype,"selectIndexMax_",void 0);_.d([_.M(),_.x("design:type",Object)],bQ.prototype,"selectedData_",void 0);
_.d([_.M(),_.x("design:type",Object)],bQ.prototype,"sliderAriaValueText_",void 0);_.d([_.M({value:function(){return this.onSubmitTap_.bind(this)}}),
_.x("design:type",Function)],bQ.prototype,"onButtonTap_",void 0);_.d([_.M({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.x("design:type",Function)],bQ.prototype,"onSecondaryTap_",void 0);_.d([_.M(),_.x("design:type",Object)],bQ.prototype,"messages",void 0);_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],bQ.prototype,"onPopupOpened_",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],bQ.prototype,"dataChanged_",null);
_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],bQ.prototype,"closePopupHandler_",null);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],bQ.prototype,"onYtServiceRequestSent",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],bQ.prototype,"onYtServiceRequestCompleted",null);_.d([_.xL({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],bQ);
_.p(bQ,"yt-unplugged-pause-membership-dialog-renderer",function(){if(TYF===void 0){var D=document.createElement("template");_.n(D,'\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>');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;kCY===void 0&&(kCY=document.createElement("template"));var e=kCY;H.call(t,e.content.cloneNode(!0),D.content.firstChild);TYF=D}D=TYF;return D},{mode:2});var cgF;var jYO;var q0=function(){return _.X.apply(this,arguments)||this};
_.P(q0,_.X);q0.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.gm("vcBalanceRenderer")}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],q0.prototype,"data",void 0);_.d([_.xL({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],q0);
_.p(q0,"yt-vc-offer-layout-header-renderer",function(){if(jYO===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;cgF===void 0&&(cgF=document.createElement("template"));var e=cgF;H.call(t,e.content.cloneNode(!0),D.content.firstChild);jYO=D}D=jYO;return D},{mode:2});var $7H;var iOO;var rgb;var OOe;var Fj=function(){return _.X.apply(this,arguments)||this};
_.P(Fj,_.X);Fj.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.ql.Object.defineProperties(Fj.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)}}});
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.kQm.YtTappableItemBehavior),_.x("design:type",Object)],Fj.prototype,"ytTappableItemBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Fj.prototype,"data",void 0);
_.d([_.M({reflectToAttribute:!0}),_.m("data.accessibilityText"),_.x("design:type",String),_.x("design:paramtypes",[])],Fj.prototype,"ariaLabel",null);_.d([_.M({reflectToAttribute:!0}),_.m("data.style"),_.x("design:type",String),_.x("design:paramtypes",[])],Fj.prototype,"vcOfferStyle",null);_.d([_.m("data.style","data.titleText"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],Fj.prototype,"showTitleText",null);_.d([_.xL({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Fj);
_.p(Fj,"yt-vc-offer-renderer",function(){if(OOe===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;rgb===void 0&&(rgb=document.createElement("template"));var e=rgb;H.call(t,e.content.cloneNode(!0),D.content.firstChild);OOe=D}D=OOe;return D},{mode:2});var a8=function(){return _.X.apply(this,arguments)||this};
_.P(a8,_.X);a8.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}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],a8.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],a8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],a8.prototype,"data",void 0);_.d([_.xL({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],a8);
_.p(a8,"yt-vc-offer-layout-renderer",function(){if(iOO===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;$7H===void 0&&($7H=document.createElement("template"));var e=$7H;H.call(t,e.content.cloneNode(!0),D.content.firstChild);iOO=D}D=iOO;return D},{mode:2});var U7i;var o9Z;var Pdt;var n9F;var wP=function(){return _.X.apply(this,arguments)||this};
_.P(wP,_.X);wP.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}}}}}};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],wP.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],wP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],wP.prototype,"data",void 0);_.d([_.xL({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],wP);
_.p(wP,"yt-ypc-offers-modal-top-bar-renderer",function(){if(n9F===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Pdt===void 0&&(Pdt=document.createElement("template"));var e=Pdt;H.call(t,e.content.cloneNode(!0),D.content.firstChild);n9F=D}D=n9F;return D},{mode:2});var ZA=function(){return _.X.apply(this,arguments)||this};
_.P(ZA,_.X);ZA.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"}}}}};
ZA.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
ZA.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var D=this.scrollable;D.attached&&typeof D.attached==="function"&&D.attached()};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],ZA.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],ZA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.o5("#scrollable"),_.x("design:type",Object)],ZA.prototype,"scrollable",void 0);_.d([_.M(),_.x("design:type",Object)],ZA.prototype,"data",void 0);_.d([_.xL({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],ZA);
_.p(ZA,"yt-ypc-offers-modal-renderer",function(){if(o9Z===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;U7i===void 0&&(U7i=document.createElement("template"));var e=U7i;H.call(t,e.content.cloneNode(!0),D.content.firstChild);o9Z=D}D=o9Z;return D},{mode:2});var CdZ;var m7v;var sw=function(){return _.X.apply(this,arguments)||this};
_.P(sw,_.X);_.q=sw.prototype;_.q.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}}}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Kg(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.q.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.ET(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.q.onYtPopupOpened_=function(D,t){(t==null?void 0:t.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.k0(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.q.onYtPopupClosed_=function(D,t){this.continueButtonTapped||t&&(t.canceled===!0||t.canceled===!1&&t.confirmed===!1)&&this.data.onDismissCommands&&_.k0(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.q.onYtServiceRequestError_=function(D){this.set("showSpinner",!1);_.y2(this.hostElement,D.detail.error.message)};
_.q.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.r("enable_ypc_spinners")?_.ET(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
sw.prototype.onYtServiceRequestError_=sw.prototype.onYtServiceRequestError_;sw.prototype.onYtPopupClosed_=sw.prototype.onYtPopupClosed_;sw.prototype.onYtPopupOpened_=sw.prototype.onYtPopupOpened_;sw.prototype.onYtServiceRequestCompleted_=sw.prototype.onYtServiceRequestCompleted_;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],sw.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.M(),_.x("design:type",Object)],sw.prototype,"data",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],sw.prototype,"showSpinner",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],sw.prototype,"continueButtonTapped",void 0);_.d([_.M({value:function(){return this.onContinueTapped_.bind(this)}}),
_.x("design:type",Function)],sw.prototype,"bindOnContinueTapped_",void 0);_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],sw.prototype,"onYtServiceRequestCompleted_",null);_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],sw.prototype,"onYtPopupOpened_",null);
_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],sw.prototype,"onYtPopupClosed_",null);_.d([_.rx("yt-service-request-error"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],sw.prototype,"onYtServiceRequestError_",null);_.d([_.xL({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],sw);
_.p(sw,"yt-ypc-upgrade-dialog-renderer",function(){if(m7v===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;CdZ===void 0&&(CdZ=document.createElement("template"));var e=CdZ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);m7v=D}D=m7v;return D},{mode:2});var MKZ;var SXF;var hS=function(){return _.X.apply(this,arguments)||this};
_.P(hS,_.X);hS.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
hS.prototype.computeHasButtons_=function(D){return!(!D.dismissButton&&!D.confirmButton)};
hS.prototype.computeStyle_=function(D){return D||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],hS.prototype,"ytEventForwardingBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],hS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],hS.prototype,"data",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],hS.prototype,"positionType",void 0);
_.d([_.M({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.x("design:type",Boolean)],hS.prototype,"hasButtons_",void 0);_.d([_.M({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.x("design:type",Boolean)],hS.prototype,"style_",void 0);_.d([_.xL({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],hS);
_.p(hS,"yt-bubble-hint-renderer",function(){if(SXF===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;MKZ===void 0&&(MKZ=document.createElement("template"));var e=MKZ;H.call(t,e.content.cloneNode(!0),D.content.firstChild);SXF=D}D=SXF;return D},{mode:2});var X6g;var fIe;var Gn=function(){var D=_.Fu.apply(this,arguments)||this;D.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return D};
_.P(Gn,_.Fu);_.q=Gn.prototype;_.q.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.q.attached=function(){var D=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){D.$.thumbnail.onShow();D.$["header-image"].onShow()})};
_.q.handleCheckBoxUpdateAction_=function(D){this.canShowCheckboxEnabledConfirmButton=D};
_.q.computeUseOverlayForSpinner_=function(D,t){return!!D&&t};
_.q.computeShowSpinner_=function(D,t){return D||!!t};
_.q.fireOnCloseActions_=function(){var D,t=_.F(((D=this.data)==null?void 0:D.onClosedActions)||[]);for(D=t.next();!D.done;D=t.next())this.ytRendererBehavior.resolveCommand(D.value)};
_.q.fireOnOpenCommands_=function(D){var t,H=(t=this.data)==null?void 0:t.onOpenCommands;if(H)for(D.stopImmediatePropagation(),D=_.F(H),t=D.next();!t.done;t=D.next())this.ytRendererBehavior.resolveCommand(t.value)};
_.q.fireOnDismissCommands_=function(D){var t,H=(t=this.data)==null?void 0:t.onDismissCommands;if(H)for(D.stopImmediatePropagation(),D=_.F(H),t=D.next();!t.done;t=D.next())this.ytRendererBehavior.resolveCommand(t.value)};
_.q.openPopupHandler_=function(D){D.detail==this&&this.fireOnOpenCommands_(D)};
_.q.closePopupHandler_=function(D,t){_.Kl(this,"yt-confirm-dialog-close-action",[t]);this.fireOnCloseActions_();(t&&t.canceled===!0||t&&t.canceled===!1&&t.confirmed===!1)&&this.fireOnDismissCommands_(D)};
_.q.onHeaderImageChanged_=function(){var D;((D=this.data)==null?0:D.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.q.computeHasHeaderImageWidth_=function(D){return D!=void 0};
_.q.computeHasLoadingMessage=function(D){return!!D};
_.q.onHeaderImageWidthChanged_=function(){var D,t=(D=this.data)==null?void 0:D.headerImageWidth;if(t){if(D=1.25*t*2+t,this.$.main.style.width=D+"px",t=this.$.scroller.firstElementChild)t.style.minWidth=D+"px"}else this.$.main.style.width="100%"};
_.q.onThumbnailChanged_=function(){var D;((D=this.data)==null?0:D.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")};
_.q.onYtNavigate_=function(D){D=_.qy(D);D instanceof Node&&_.Ny(this.$["confirm-button"]).contains(D)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.q.computePrimaryIsCancel_=function(D){return D};
_.q.computeIsCancelButtonHidden_=function(D){return D.skipCancelButton||!D.cancelButton};
_.q.computeIsCheckboxHidden_=function(D){return!D.checkbox};
_.q.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.q.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.q.onYtServiceRequestCompleted_=function(){var D;((D=this.data)==null?0:D.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.ql.Object.defineProperties(Gn,{template:{configurable:!0,enumerable:!0,get:function(){if(fIe===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;X6g===void 0&&(X6g=document.createElement("template"));var e=X6g;H.call(t,e.content.cloneNode(!0),D.content.firstChild);fIe=D}D=fIe;return D}}});
Gn.prototype.onYtServiceRequestCompleted_=Gn.prototype.onYtServiceRequestCompleted_;Gn.prototype.onYtServiceRequestSent_=Gn.prototype.onYtServiceRequestSent_;Gn.prototype.onThumbnailLoaded_=Gn.prototype.onThumbnailLoaded_;Gn.prototype.onYtNavigate_=Gn.prototype.onYtNavigate_;Gn.prototype.onThumbnailChanged_=Gn.prototype.onThumbnailChanged_;Gn.prototype.onHeaderImageWidthChanged_=Gn.prototype.onHeaderImageWidthChanged_;Gn.prototype.onHeaderImageChanged_=Gn.prototype.onHeaderImageChanged_;
Gn.prototype.closePopupHandler_=Gn.prototype.closePopupHandler_;Gn.prototype.openPopupHandler_=Gn.prototype.openPopupHandler_;_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Gn.prototype,"ytActionHandlerBehavior",void 0);_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],Gn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);
_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],Gn.prototype,"ytEventForwardingBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Gn.prototype,"data",void 0);_.d([_.M({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.x("design:type",Boolean)],Gn.prototype,"primaryIsCancel",void 0);_.d([_.M({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.x("design:type",Boolean)],Gn.prototype,"isCancelButtonHidden",void 0);
_.d([_.M({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.x("design:type",Boolean)],Gn.prototype,"isCheckboxHidden",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],Gn.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.d([_.M({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.x("design:type",Boolean)],Gn.prototype,"useOverlayForSpinner_",void 0);
_.d([_.M({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.x("design:type",Boolean)],Gn.prototype,"showSpinner_",void 0);_.d([_.M({value:!1}),_.x("design:type",Boolean)],Gn.prototype,"isActionInProgress_",void 0);_.d([_.M({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.x("design:type",Boolean)],Gn.prototype,"hasHeaderImageWidth_",void 0);
_.d([_.M({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.x("design:type",Boolean)],Gn.prototype,"hasLoadingMessage",void 0);_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Gn.prototype,"openPopupHandler_",null);_.d([_.rx("yt-popup-closed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],Gn.prototype,"closePopupHandler_",null);
_.d([_.Os("data.headerImage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gn.prototype,"onHeaderImageChanged_",null);_.d([_.Os("data.headerImageWidth"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gn.prototype,"onHeaderImageWidthChanged_",null);_.d([_.Os("data.thumbnail"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gn.prototype,"onThumbnailChanged_",null);
_.d([_.rx("yt-navigate"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],Gn.prototype,"onYtNavigate_",null);_.d([_.rx("yt-img-shadow-loaded"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],Gn.prototype,"onThumbnailLoaded_",null);_.d([_.rx("yt-service-request-sent"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.WZ]),_.x("design:returntype")],Gn.prototype,"onYtServiceRequestSent_",null);
_.d([_.rx("yt-service-request-completed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,_.H5]),_.x("design:returntype")],Gn.prototype,"onYtServiceRequestCompleted_",null);_.d([_.xL({is:"yt-confirm-dialog-renderer",noInjection:!0})],Gn);var Loi;var Agv;var Ew=function(){return _.X.apply(this,arguments)||this};
_.P(Ew,_.X);Ew.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Kg(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Ew.prototype.computeConfirmButton_=function(D){var t={text:D.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};D.confirmNavigationEndpoint?t.navigationEndpoint=D.confirmNavigationEndpoint:D.confirmServiceEndpoint&&(t.serviceEndpoint=D.confirmServiceEndpoint);return t};
Ew.prototype.computeShowTitle_=function(D){return!(D==null||!D.title)};
_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],Ew.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Ew.prototype,"data",void 0);_.d([_.M({computed:"computeShowTitle_(data)"}),_.x("design:type",Boolean)],Ew.prototype,"showTitle",void 0);_.d([_.xL({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Ew);
_.p(Ew,"yt-fancy-dismissible-dialog-renderer",function(){if(Agv===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;Loi===void 0&&(Loi=document.createElement("template"));var e=Loi;H.call(t,e.content.cloneNode(!0),D.content.firstChild);Agv=D}D=Agv;return D});var g9F;var JgF;var K1=function(){var D=_.X.apply(this,arguments)||this;D.spinnerActive=!1;return D};
_.P(K1,_.X);K1.prototype.created=function(){TLF(2201)};
K1.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
K1.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
K1.prototype.onIronOverlayClosed=K1.prototype.onIronOverlayClosed;K1.prototype.onIronOverlayOpened=K1.prototype.onIronOverlayOpened;_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],K1.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.sn),_.x("design:type",Object)],K1.prototype,"tpYtIronOverlayBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],K1.prototype,"data",void 0);_.d([_.M(),_.x("design:type",Object)],K1.prototype,"spinnerActive",void 0);
_.d([_.rx("iron-overlay-opened"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K1.prototype,"onIronOverlayOpened",null);_.d([_.rx("iron-overlay-closed"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],K1.prototype,"onIronOverlayClosed",null);_.d([_.xL({is:"yt-loading-renderer",disableElementRegistration:!0})],K1);
_.p(K1,"yt-loading-renderer",function(){if(JgF===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;g9F===void 0&&(g9F=document.createElement("template"));var e=g9F;H.call(t,e.content.cloneNode(!0),D.content.firstChild);JgF=D}D=JgF;return D},{mode:2});var YXg;var lIH;var N0=function(){var D=_.X.apply(this,arguments)||this;D.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);D.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);D.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";D.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return D};
_.P(N0,_.X);_.q=N0.prototype;_.q.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.q.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.q.onDarkModeToggledAction=function(D){this.isDarkTheme=D};
_.q.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.q.openPopupHandler_=function(D){D.detail===this.hostElement&&this.hostElement.hidden&&_.ET(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.q.onDismissButtonTap_=function(){var D;this.closeOnDismissButton_.has(((D=this.data)==null?void 0:D.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ET(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.q.onAcceptButtonTap_=function(){var D;this.closeOnAcceptButton_.has(((D=this.data)==null?void 0:D.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.ET(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.q.computeHasHeader_=function(D){return!!D.headerBackgroundImage};
_.q.computeLayoutStyle_=function(D){return D};
_.q.computePopupSize_=function(D){return D};
_.q.computeIconType_=function(D){return D.dialogIcon&&D.dialogIcon.iconType?D.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":D.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":D.dialogIcon.iconType:""};
_.q.computeIsLogo_=function(D){return!!D.dialogIcon&&!!D.dialogIcon.iconType&&(D.dialogIcon.iconType==="YOUTUBE_LOGO"||D.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||D.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.q.computeHasCustomLogo=function(D){return!(D==null||!D.headerForegroundImage)};
_.q.computeCustomLogo=function(D,t){if(D!=null&&D.headerForegroundImage)return D.headerForegroundImageDark?t?D.headerForegroundImageDark:D.headerForegroundImage:D.headerForegroundImage};
_.q.computeHeaderBackgroundImage=function(D,t){if(D!=null&&D.headerBackgroundImage)return t&&(D==null?0:D.headerBackgroundImageDark)?D.headerBackgroundImageDark:D.headerBackgroundImage};
_.q.shouldShowIconContainer=function(D,t){return D&&!t};
_.q.shouldShowNonYouTubeIcon=function(D,t){return!D&&!t};
_.q.getLogoImageId=function(D){var t,H,e;return(D=(t=this.computeCustomLogo(D,this.isDarkTheme))==null?void 0:(H=t.thumbnails)==null?void 0:(e=H[0])==null?void 0:e.height)&&D%31===0?"custom-logo-with-padding":"custom-logo"};
N0.prototype.openPopupHandler_=N0.prototype.openPopupHandler_;N0.prototype.dataChanged_=N0.prototype.dataChanged_;_.d([_.C(_.MK.YtRendererstamperBehavior),_.x("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.d([_.M(),_.x("design:type",Boolean)],N0.prototype,"isDarkTheme",void 0);
_.d([_.M({computed:"computeCustomLogo(data, isDarkTheme)"}),_.x("design:type",Object)],N0.prototype,"customLogo",void 0);_.d([_.M({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.x("design:type",Object)],N0.prototype,"headerBackgroundImage",void 0);_.d([_.M(),_.x("design:type",Object)],N0.prototype,"data",void 0);_.d([_.M({computed:"computeHasHeader_(data)"}),_.x("design:type",Boolean)],N0.prototype,"hasHeader",void 0);
_.d([_.M({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.x("design:type",Object)],N0.prototype,"layoutStyle",void 0);_.d([_.M({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.x("design:type",Object)],N0.prototype,"popupSize",void 0);_.d([_.M({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],N0.prototype,"hasLogo",void 0);
_.d([_.M({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.x("design:type",Boolean)],N0.prototype,"hasCustomLogo",void 0);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],N0.prototype,"dataChanged_",null);_.d([_.rx("yt-popup-opened"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],N0.prototype,"openPopupHandler_",null);
_.d([_.xL({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],N0);
_.p(N0,"yt-upsell-dialog-renderer",function(){if(lIH===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;YXg===void 0&&(YXg=document.createElement("template"));var e=YXg;H.call(t,e.content.cloneNode(!0),D.content.firstChild);lIH=D}D=lIH;return D},{mode:2});var v9Q=_.l(function(D){return _.G("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.G(_.E,{cond:D.title,then:function(t){return _.G("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},t)}}))},"Ji"),p6g=_.l(function(D){return _.G("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.G(_.P5,{data:D.closeButton},{buttonViewModel:function(t){return _.G("div",null,_.G(_.JX,{data:t.data}))}}))},"Ki"),d7Y=_.l(function(D){var t=D.data;
return _.G(_.FH,null,_.G("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.G("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.G(_.E,{cond:function(){return!!t().image&&!!t().title},
then:function(){return _.G(_.bi,{data:function(){return t().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.G("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.G(_.E,{cond:function(){return t().title},
then:function(H){return _.G("h3",{class:"miniAppGameInfoDialogViewModelTitle"},H)}}),_.G(_.E,{cond:function(){return t().primaryGenre},
then:function(H){return _.G("span",{class:"miniAppGameInfoDialogViewModelGenre"},H)}}))),_.G(_.E,{cond:function(){var H=t().description;
return H&&H.length<=150},
then:function(){return _.G("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.G("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return t().description}))}}))},"Li"),x7e=_.l(function(D){D=D.infoRows;
var t=_.qS().resolve(_.TM),H=_.r("enable_displaying_ppn");return _.G("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.G(_.nY,{each:D},function(e){return _.G("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.G(_.E,{cond:function(){return e.label},
then:function(V){return _.G("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},V)}}),_.G(_.E,{cond:function(){return e.attributedLabel},
then:function(V){return _.G("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.G(_.$7,{text:V,noPreWrap:!0}))}}),_.G(_.E,{cond:function(){return e.value},
then:function(V){return _.G("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},V)}}),_.G(_.E,{cond:function(){return e.attributedValue},
then:function(V){return _.G("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.G(_.$7,{text:V,noPreWrap:!0}))}}))}),_.G(_.E,{cond:function(){return H&&t.clientData.has("post_play_nonce")},
then:function(){return _.G("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.G("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.G("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},t.getData("post_play_nonce")))}}))},"Mi"),Rkt=_.l(function(D){var t=D.data;
return _.G("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.G(v9Q,{title:function(){return t().dialogTitle}}),_.G(d7Y,{data:t}),_.G(_.E,{cond:function(){return t().infoRow},
then:function(H){return _.G(x7e,{infoRows:H})}}),_.G(p6g,{closeButton:function(){return t().closeButton}}))},"Ni");
Rkt.idomCompat=!0;_.hB(Rkt,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){var t=D.data;return _.G("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.G(_.bi,{data:function(){return t().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.G("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.G("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.G(_.E,{cond:function(){var H=t().ytLogo;return H?H.iconType:null},
then:function(H){return _.G(_.U7,{icon:H,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.G("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.G("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.G(_.$7,{text:function(){return t().title}})),_.G("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.G(_.$7,{text:function(){return t().body}})),_.G("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.G(_.$7,{text:function(){return t().verifyStateText}}))),
_.G("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.G("div",null,_.G(_.P5,{data:function(){return t().dismissButton}},{buttonViewModel:_.JX})),_.G("div",null,_.G(_.P5,{data:function(){return t().linkParentButton}},{buttonViewModel:_.JX})))))},"Oi"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.ij}});var upQ=_.l(function(D){var t=D.data;D=_.qT(function(){return t().agreements},[]);
return _.G("installment-agreements-view-model",{class:_.jQ("ytInstallmentAgreementsViewModelHost")},_.G(_.nY,{each:D},function(H){return _.G("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.G("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.G(_.$7,{text:H.label})),_.G("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.G(_.P5,{data:function(){return H.openButton}},{buttonViewModel:_.JX})))}))},"Pi");
upQ.idomCompat=!0;var WoF=_.l(function(D){var t=_.F(_.rm(function(){var I,tT;return((I=D.data().createPlaylistDialogFormSchema)==null?0:(tT=I.initialValues)==null?0:tT.title)?D.data().createPlaylistDialogFormSchema.initialValues.title:""})),H=t.next().value,e=t.next().value;
t=_.F(_.rm(function(){D.data();return!1}));
var V=t.next().value,b=t.next().value;t=_.F(_.rm(function(){D.data();return!1}));
var a=t.next().value,w=t.next().value;t=_.F(_.rm(function(){var I,tT;return(I=D.data().createPlaylistDialogFormSchema)==null?void 0:(tT=I.initialValues)==null?void 0:tT.visibility}));
var h=t.next().value,K=t.next().value;t=_.F(_.rm(function(){D.data();return!1}));
var N=t.next().value,k=t.next().value;t=_.F(_.rm(function(){var I,tT;return(I=D.data().createPlaylistDialogFormSchema)==null?void 0:(tT=I.initialValues)==null?void 0:tT.isCollaborative}));
var T=t.next().value,c=t.next().value,U=_.DY("div");_.Mp(function(){var I=U.value.querySelector("textarea");I&&(I.value=H())},"sgS9sc");
_.XH(function(){var I;_.jAi((I=D.data().createPlaylistDialogFormSchema)==null?void 0:I.id,{onSubmit:function(){var tT=H();var ZV=h(),ED=T(),o$=D.data();tT={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:tT,privacyStatus:ZV,videoIds:o$.videoIds,sourcePlaylistId:o$.sourcePlaylistId,params:ED?o$.createPlaylistParamsCollaborationEnabled:o$.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.qS().resolve(_.aA).resolveCommand(tT)},
isValid:function(){return V()&&!a()&&!N()}})});
var S=function(I){if(I!==void 0&&(e(I),!V()&&I.length>0&&b(!0),V())){var tT=oiY(D.data());if(tT){var ZV=tT.minLength;tT=tT.maxLength;ZV&&I.length<ZV?w(!0):tT&&I.length>tT?w(!0):w(!1)}}},L=function(){var I=!(!T()||h()!=="PRIVATE");
k(I)},J=function(I){I!==void 0&&(K(I),L())},g=function(){if(N())return nie(D.data())},Q=function(){c(!T());
L()},u=function(){return{validate:function(I){if(V()){var tT=oiY(D.data());
if(tT){var ZV=tT.minLength;tT=tT.translations;if(ZV&&I.length<ZV)return tT==null?void 0:tT.minLengthErrorMessage}}}}},R=function(){var I=oiY(D.data()),tT=I==null?void 0:I.maxLength,ZV;
I=I==null?void 0:(ZV=I.translations)==null?void 0:ZV.maxLengthErrorMessage;if(tT&&I)return{maxChars:tT,errorMessage:I}};
return _.G("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.G("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:U},_.G(_.P5,{data:function(){return D.data().playlistTitle}},{textFormFieldViewModel:function(I){return _.G(_.szi,{data:I.data,
text:H,onInput:S,validation:u,characterLimit:R})},
textFieldViewModel:function(I){return _.G(_.ZGt,{data:I.data,text:H,onInput:S,validation:u,characterLimit:R})}})),_.G("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.G(_.P5,{data:function(){return D.data().playlistVisibility}},{dropdownViewModel:function(I){return _.G(_.iGZ,{data:I.data,
onSelected:J,error:g})}})),_.G(_.E,{cond:function(){return!!D.data().playlistCollaborate},
then:function(){return _.G("div",null,_.G(_.P5,{data:function(){return D.data().playlistCollaborate}},{switchListItemViewModel:function(I){return _.G(_.hVB,{data:I.data,
onTap:Q})}}))}}))},"Ri");var IIH=_.l(function(D){var t=D.data;return _.G("upsell-offer-table-cell-content-view-model",null,_.G("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.G(_.CY,null,_.G(_.oD,{when:function(){return t().iconType}},function(){return _.G("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.G(_.U7,{icon:function(){return t().iconType.toString()}}))}),_.G(_.oD,{when:function(){return t().title}},function(){return _.G(_.$7,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return t().title}})}),_.G(_.oD,{when:function(){return t().subtitle}},function(){return _.G(_.$7,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return t().subtitle}})}),_.G(_.oD,{when:function(){return t().infoText}},function(){return _.G(_.$7,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return t().infoText}})}),_.G(_.oD,{when:function(){return t().featureDescription}},function(){return _.G(_.$7,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return t().featureDescription}})}),_.G(_.oD,{when:function(){return t().note}},function(){return _.G(_.$7,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return t().note}})}))))},"Si");
IIH.idomCompat=!0;var QYg=_.l(function(D){var t=D.data;return _.G("upsell-offer-table-cell-view-model",null,_.G("div",{class:_.jQ("ytUpsellOfferTableCellViewModelCellWrapper",function(){return t().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.G(_.P5,{data:function(){return t().contents}},{upsellOfferTableCellContentViewModel:IIH})))},"Ti");
QYg.idomCompat=!0;var ygF=_.l(function(D){var t=D.data;var H=D.upsellTableIsFirstRow;var e=function(){return(H==null?0:H())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},V=function(){return(H==null?0:H())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.G("ytm-upsell-offer-table-row-view-model",null,_.G("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.G(_.P5,{data:function(){return t().rowHeaderCell}},{upsellOfferTableCellViewModel:function(b){return _.G("div",{class:e},_.G(QYg,{data:b.data}))}}),_.G(_.P5,{data:function(){return t().contentCells}},{upsellOfferTableCellViewModel:function(b){return _.G("div",{class:V},_.G(QYg,{data:b.data}))}})))},"Ui");
ygF.idomCompat=!0;var BYH=_.l(function(D){var t=D.data;return _.G("ytm-upsell-offer-table-view-model",null,_.G("div",{class:"ytUpsellOfferTableViewModelHost"},_.G("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.G(_.P5,{data:function(){return t().rows}},{upsellOfferTableRowViewModel:function(H,e){return _.G(ygF,{data:H.data,
upsellTableIsFirstRow:function(){return e()===0}})}}))))},"Vi");
BYH.idomCompat=!0;var zkb=_.l(function(D){var t=_.qT(D.noPadding,!1),H=function(){var b,a;return(a=(b=D.data().logo.accessibilityData)==null?void 0:b.label)!=null?a:""},e=function(){return D.data().offerTable},V={};
return _.G("upsell-view-model",{class:_.jQ("ytUpsellViewModelHost",(V.ytUpsellViewModelHostNoPadding=function(){return t()},V.ytUpsellViewModelHostWide=function(){return e()!==void 0},V))},_.G("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.G(_.E,{cond:function(){return _.Rn(D.data().logo)},
then:function(b){return _.G(_.bi,{data:b,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:H})}})),_.G("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.G(_.$7,{text:function(){return D.data().title}})),_.G("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.G(_.nY,{each:function(){var b;
return(b=D.data().subtitles)!=null?b:[]},
keyBy:"INDEX"},function(b){var a={};return _.G("div",{class:_.jQ("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(a.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return e()!==void 0},a))},_.G(_.$7,{text:b}))})),_.G("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.G(_.nY,{each:function(){var b;
return(b=D.data().benefitInfos)!=null?b:[]},
keyBy:"INDEX"},function(b){return _.G(_.E,{cond:function(){return b().info},
then:function(a){return _.G("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.G(_.U7,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.G(_.$7,{text:a}))}})})),_.G(_.E,{cond:function(){return e()!==void 0},
then:function(){return _.G("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.G(BYH,{data:e}))}}),_.G("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.G(_.nY,{each:function(){var b;
return(b=D.data().legalInfos)!=null?b:[]},
keyBy:"INDEX"},function(b){var a={};return _.G("div",{class:_.jQ("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(a.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return e()!==void 0},a))},_.G(_.$7,{text:b}))})))},"Wi");var Dqv=_.l(function(D){var t=D.data;D={};D=(D.ytMiniAppScoreChallengeViewModelScoreRadial=!0,D.ytMiniAppScoreChallengeViewModelDarkScoreRadial=COZ(),D);return _.G("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.G("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return t().title}),_.G("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return t().subtitle}),_.G("div",{class:_.ff(D)},_.G("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return t().score})),_.G("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return t().prompt}))},"Xi");var thg=function(){this.store=_.V_();this.formId=""};
thg.prototype.onInit=function(D){D.formId&&(this.formId=D.formId,this.store.dispatch(_.hV({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var HDF=_.l(function(D){function t(w){if(w&&(w=_.O(w,_.mt)))return Object.assign({},w,{isSelected:b()})}
var H=_.F(_.rm(function(){var w,h;return(h=(w=_.O(D.data().option,_.mt))==null?void 0:w.isSelected)!=null?h:!1})),e=H.next().value,V=H.next().value,b=e;
_.XH(function(){var w;_.jAi((w=D.data().formSchema)==null?void 0:w.id,{onSubmit:function(){var h=_.qS().resolve(_.aA),K=!!D.data().selectedCommand,N=!!D.data().unselectedCommand;if(b()){if(K)var k=D.data().selectedCommand}else N&&(k=D.data().unselectedCommand);k=_.xP(k);t(D.data().option)&&!k?(h="",!K&&N?h="selected ":K&&!N&&(h="unselected "),K=new _.nZ("No "+h+"command found for SelectionListItemFormViewModel"),_.gT(K)):k&&h.resolveCommand(k)},
isValid:function(){return!0}})});
var a=function(){V(!b())};
_.Sj(function(){var w,h,K=(w=D.data())==null?void 0:(h=w.formSchema)==null?void 0:h.id;K&&_.OI()().delete(K)});
return _.G("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.G("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.G(_.$7,{text:function(){return D.data().paragraph}})),_.G(_.E,{cond:function(){return t(D.data().option)},
then:function(w){return _.G(_.Zq,{data:w,isCompact:!0,hideSelectionTextChevron:!0,onTap:a,disableHorizontalPadding:!0})}}))},"Yi");var ept=_.l(function(D){var t=D.data;var H=D.disablePadding;var e=D.className;var V=_.DY("yt-dialog-header-view-model"),b=function(){var w=t().imageBanner;a:switch(t().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var h="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:h="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:w,style:h,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},a=function(){return t().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.XH(function(){var w=function(){_.ET(V.value,"yt-refit-popups-action")},h;
(h=V.value)==null||h.addEventListener("image-loaded",w);_.Sj(function(){var K;(K=V.value)==null||K.removeEventListener("image-loaded",w)})});
D={};return _.G("yt-dialog-header-view-model",{el:V,class:_.jQ(e,(D.ytDialogHeaderViewModelHost=!0,D.ytDialogHeaderViewModelHostDisablePadding=H,D))},_.G(_.E,{cond:function(){return t().imageBanner},
then:function(){var w={};return _.G("div",{class:_.jQ(e,(w.ytDialogHeaderViewModelBanner=!0,w.ytDialogHeaderViewModelBannerFullBleed=a,w)),style:_.O7({"max-height":function(){return t().assetContainerMaxHeight!==void 0?t().assetContainerMaxHeight+"px":void 0}})},_.G(_.S_,{data:b,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.G(_.E,{cond:function(){return t().headerBlock},
then:function(){return _.G("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.G(_.P5,{data:function(){return t().headerBlock}},{contentPreviewImageViewModel:function(w){return _.G(_.S_,{data:w.data,
notifyOnLoaded:!0})}}))}}),_.G(_.E,{cond:function(){return t().customBanner},
then:function(w){return _.G("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.G(_.P5,{data:w},{avatarStackViewModel:_.ag}))}}),_.G(_.E,{cond:function(){return t().headline},
then:function(w){return _.G("h2",null,_.G(_.$7,{text:w,className:"ytDialogHeaderViewModelText"}))}}))},"Zi");
ept.idomCompat=!0;var Vhb=_.l(function(D){var t=_.qC6(function(){return D.data().formId}),H=t.submitForm,e=t.isValid;
return _.G("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.G(_.P5,{data:function(){return D.data().panelFooter}},{panelFooterViewModel:function(V){return _.G(_.Mt,{data:V.data,
disablePadding:!0,disablePrimaryButton:function(){return!e()},
onClickPrimaryButton:function(){H()}})}}))},"$i");var bDv=_.l(function(D){var t=function(){var H,e;return(e=(H=_.O(D.data().rendererContext,_.Pm))==null?void 0:H.label)!=null?e:""};
return _.G("yt-dialog-image-content-view-model",{class:_.jQ("ytDialogImageContentViewModelHost",D.className)},_.G(_.E,{cond:function(){return _.Rn(D.data().image)},
then:function(H){var e={};return _.G("div",{style:_.O7((e.width=(0,_.FN)(function(){var V;return(V=D.data().imageMaxWidth)!=null?V:""}),e)),
class:"ytDialogImageContentViewModelImage"},_.G(_.bi,{data:H,alt:t,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.G(_.$7,{text:function(){return D.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"aj");var aW4=_.l(function(D){var t=_.FQ(D,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),H=t.elRefCallback;D=t.iconWiz;var e=t.assetWiz,V=t.assetType,b=t.titleWiz,a=t.leadingActionHeaderWiz,w=t.trailingActionHeaderWiz,h=t.headerPosition,K=t.contentWiz,N=t.buttonLayout,k=t.buttonStyle,T=t.primaryButtonWiz,c=t.secondaryButtonWiz,U=t.contentAlignment,S=t.isFullscreen,L=t.width,J=t.maxHeight,g=t.isHeaderWizDefined,
Q=t.headerWiz,u=t.isFooterWizDefined,R=t.footerWiz;t=_.DY("dialog-layout",function(Mu){H==null||H(Mu)});
var I=e?function(){return e({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,tT=T?function(){var Mu={};
return T({buttonOverrides:function(){return{style:(k==null?void 0:k())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.jQ((Mu["yt-spec-dialog-layout__dialog-layout-button"]=!0,Mu["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(N==null?void 0:N())===0||(N==null?void 0:N())===2},Mu))})}:void 0,ZV=c?function(){var Mu={};
return c({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.jQ((Mu["yt-spec-dialog-layout__dialog-layout-button"]=!0,Mu["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(N==null?void 0:N())===0||(N==null?void 0:N())===2},Mu))})}:void 0,ED=function(){return(!!b||!!a||!!w)&&h()===0},o$={},jV={},i8={},g6={};
return _.G("dialog-layout",{el:t,class:_.jQ((o$["yt-spec-dialog-layout"]=!0,o$["yt-spec-dialog-layout--dialog-layout-fullscreen"]=S,o$["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!S()},o$["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return J()===1},o$["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(V==null?void 0:V())===1},o$)),
style:function(){return(L==null?void 0:L())!==void 0?"width: "+L+"px;":""}},D?_.G("div",{class:_.jQ((jV["yt-spec-dialog-layout__dialog-layout-icon"]=!0,jV["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!e&&h()===1},jV["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return U()===1},jV))},_.G(D,null)):null,_.G(_.E,{cond:g,
then:function(){return Q?_.G("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.G(Q,null)):null},
else:function(){return _.G(_.FH,null,_.G(_.E,{cond:ED,then:function(){return _.G(q$Q,{contentAlignment:U,LeadingActionHeader:a,TrailingActionHeader:w,Title:b,isAboveAsset:!!I})}}),I?_.G("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.G(I,null)):null)}}),_.G("div",{class:_.jQ((i8["yt-spec-dialog-layout__dialog-layout-container"]=!0,i8["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(U==null?void 0:U())===1},i8["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!b&&!(Q&&g())||!!I&&(h==null?void 0:h())===0},i8))},_.G(_.E,{cond:function(){return b&&!Q&&(h==null?void 0:h())===1},
then:function(){return _.G(q$Q,{contentAlignment:U,LeadingActionHeader:a,TrailingActionHeader:w,Title:b,isAboveAsset:!1})}}),K?_.G("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.G("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.G(K,null))):null,_.G(_.E,{cond:u,
then:function(){return R?_.G("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.G(R,null)):null}}),tT||ZV?_.G(F7H,{footerClasses:_.jQ((g6["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,g6["yt-spec-dialog-layout__dialog-layout-footer"]=!0,g6["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(N==null?void 0:N())===2},g6["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(N==null?void 0:N())===1},g6)),
PrimaryButton:tT,SecondaryButton:ZV}):null))},"bj"),q$Q=_.l(function(D){var t=_.FQ(D,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),H=t.contentAlignment,e=t.LeadingActionHeader;D=t.Title;var V=t.TrailingActionHeader,b=t.isAboveAsset,a=t.enableLeadingActionHeader;t={};return _.G("div",{class:_.jQ((t["yt-spec-dialog-layout__dialog-header-container"]=!0,t["yt-spec-dialog-layout__dialog-header"]=!0,t["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=b,t["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(H==null?void 0:H())===1&&a()},t))},_.G(_.E,{cond:function(){return a()},
then:function(){return e?_.G("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.G(e,null)):null}}),D?_.G("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.G(D,null)):null,V?_.G("div",null,_.G(V,null)):null)},"cj"),F7H=_.l(function(D){var t=D.footerClasses;
var H=D.PrimaryButton;D=D.SecondaryButton;return _.G("div",{class:t},D?_.G(D,null):null,H?_.G(H,null):null)},"dj");var wEg=_.l(function(D){var t=D.data;return _.G("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.G("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.G(_.P5,{data:function(){return t().avatar}},{avatarViewModel:_.qi})),_.G("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.G(_.$7,{text:function(){return t().title}})),_.G(_.$7,{text:function(){return t().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"ej");var ZDg=_.l(function(D){return _.G("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.G("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.G(_.$7,{text:function(){return D.data().inviteMessage}})),_.G("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.G(_.$7,{text:function(){return D.data().attributedAccountSectionHeaderText}})),_.G("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.G(_.P5,{data:function(){return D.data().accountAvatar}},{avatarViewModel:_.qi}),_.G("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.G(_.$7,{text:function(){return D.data().accountName}}),_.G("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.G(_.$7,{text:function(){return D.data().handle}}))),_.G(_.P5,{data:function(){return D.data().trailingButton}},{buttonViewModel:_.JX})),_.G("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.G(_.$7,{text:function(){return D.data().termsOfService}})))},"fj");var saF=_.l(function(D){var t=D.data;return _.G("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.G("div",{class:"ytAccessConfirmationViewModelContent"},_.G(_.P5,{data:function(){var H;return(H=t().avatar)!=null?H:t().dualAvatar}},{dualAvatarViewModel:function(H){return _.G(_.HKF,{data:H.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(H){return _.G(_.Fo,{data:H.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.G("h2",{class:"ytAccessConfirmationViewModelTitle"},_.G(_.$7,{text:function(){return t().title}})),_.G(_.$7,{text:function(){return t().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"gj");var hpi=_.l(function(D){var t=D.data;var H=void 0;D=_.F(_.rm(function(){var K;return((K=_.O(t().content,_.to))==null?void 0:K.defaultSelectedKey)||""}));
var e=D.next().value,V=D.next().value,b,a=function(){V("");var K;(K=H)!=null&&K.store.dispatch(_.hV({type:"RESET_COMMAND_MAP"}))};
_.XH(function(){H=new thg;window.addEventListener("yt-popup-closed",a)});
_.Mp(function(){if(H&&b!==t().formId&&(H.onInit(t()),(b=t().formId)&&e())){var K=H,N={key:e()};N.command&&K.store.dispatch(Tqt(b,N.command))}},"c2n8Gf");
_.Sj(function(){window.removeEventListener("yt-popup-closed",a)});
var w=function(K,N,k){N.key&&k&&N.key!==e()&&(V(N.key),H&&N.command&&H.store.dispatch(Tqt(k,N.command)))},h=function(){if(_.O(t().content,_.to))return!(e==null?0:e())};
return _.G("yt-dialog-view-model",{class:_.jQ("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.G(aW4,{headerWiz:function(){return _.G("span",{skip:!0},_.G(_.P5,{data:function(){return t().header}},{dialogHeaderViewModel:function(K){return _.G(ept,{data:K.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!t().header},
contentWiz:function(){return _.G("span",{skip:!0},_.G(_.P5,{data:function(){return t().customContent?t().customContent:t().content}},{basicContentViewModel:_.tv3,
createPlaylistDialogFormViewModel:WoF,collaborativePlaylistInviteMessageViewModel:ZDg,miniAppScoreChallengeViewModel:Dqv,radioButtonGroupViewModel:function(K){var N=K.data;return _.G(_.qWb,{data:N,selectedKey:e,onSelected:w,groupName:function(){return N().formId}})},
selectionListItemFormViewModel:HDF,upsellViewModel:function(K){return _.G(zkb,{data:K.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:wEg,installmentAgreementsViewModel:upQ,accessConfirmationViewModel:saF,listViewModel:function(K){return _.G(_.jea,{data:K.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:bDv}))},
footerWiz:function(){return _.G("span",{skip:!0},_.G(_.P5,{data:function(){return t().footer}},{panelFooterViewModel:function(K){return _.G(_.Mt,{data:K.data,
disablePadding:!0,disablePrimaryButton:h})},
formPanelFooterViewModel:Vhb,formFooterViewModel:function(K){return _.G(_.t7i,{data:K.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!t().footer}}))},"ij");
hpi.idomCompat=!0;_.hB(hpi,"yt-dialog-view-model",{props:{data:_.ij},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var GRv=_.l(function(D){var t=D.data;var H=_.UUV(function(){return t().rendererContext});
D={};return _.G("yt-panel-header-view-model",{class:_.jQ("ytPanelHeaderViewModelHost",(D.ytPanelHeaderViewModelHostHideDivider=function(){return!!t().shouldHideDivider},D.ytPanelHeaderViewModelHostCompact=function(){return!!t().subtitle},D)),
"aria-label":function(){var e;return(e=H())==null?void 0:e.label}},_.G("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.G(_.E,{cond:function(){return t().title},
then:function(e){return _.G("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.G(_.$7,{text:e,className:"ytPanelHeaderViewModelTitle"}))}}),_.G(_.E,{cond:function(){return t().subtitle},
then:function(e){return _.G(_.$7,{text:e,className:"ytPanelHeaderViewModelSubtitle"})}})),_.G("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.G(_.P5,{data:function(){return t().trailingButtons}},{buttonViewModel:function(e){return _.G(_.JX,{data:e.data,
className:"ytPanelHeaderViewModelButton"})}})))},"jj");
GRv.idomCompat=!0;var EUi=_.l(function(D){var t=_.$X(function(b){var a;if((a=D.skipContentClick)==null?0:a.call(D))return!1;D.onContentWrapperClick(b);return!0}),H,e,V;
return _.G("div",{class:_.jQ("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return D.isAnimating()?"transform: translateY("+D.currentY()+"px);transition: 0.2s":""}},(H=D.header)==null?void 0:H.call(D),_.G("div",{id:D.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.O7({"max-height":(0,_.FN)(D.maxHeightForContentWrapper)}),"on:scroll":X5F(D.onScroll),"on:touchmove":X5F(function(b){return void b.stopPropagation()})},_.G("div",{el:{onRender:D.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":t},(e=D.body)==null?void 0:e.call(D))),(V=D.footer)==null?void 0:V.call(D))},"kj");
EUi.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var K7H=_.l(function(D){var t=_.qT(D.leadingLabel),H=_.qT(D.trailingLabel),e=_.qT(D.footerButtonType),V=function(){return t()||H()||D.hasPrimaryButton()||D.hasSecondaryButton()},b={},a=_.jQ("yt-spec-bottom-sheet-layout__primary-button",(b["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return e()===0&&D.hasPrimaryButton()},b["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return e()===1&&D.hasPrimaryButton()},b["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return e()===2&&D.hasPrimaryButton()},b["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return e()===3&&D.hasPrimaryButton()},b));
b={};var w=_.jQ("yt-spec-bottom-sheet-layout__secondary-button",(b["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return e()===1&&D.hasSecondaryButton()},b["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return e()===2&&D.hasSecondaryButton()},b["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return e()===3&&D.hasPrimaryButton()},b));
return _.G(_.E,{cond:D.hasFooterOverride,then:function(){var h;return _.G(_.FH,null,(h=D.footerOverride)==null?void 0:h.call(D))},
else:function(){return _.G(_.E,{cond:V,then:function(){return _.G("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.G(_.E,{cond:function(){return t()||H()},
then:function(){var h={};return _.G("div",{class:_.jQ("yt-spec-bottom-sheet-layout__footer-label-wrapper",(h["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!D.hasPrimaryButton()},h))},_.G(_.E,{cond:t,
then:function(){return _.G("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},t)}}),_.G(_.E,{cond:H,
then:function(){return _.G("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},H)}}))}}),_.G(_.E,{cond:function(){return D.hasPrimaryButton()||D.hasSecondaryButton()},
then:function(){var h={};return _.G("div",{class:_.jQ("yt-spec-bottom-sheet-layout__footer-button-wrapper",(h["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.eSV,h))},_.G(_.E,{cond:function(){return D.hasSecondaryButton()&&e()!==0},
then:function(){var K;return _.G("div",{class:w},(K=D.secondaryButton)==null?void 0:K.call(D))}}),_.G(_.E,{cond:D.hasPrimaryButton,
then:function(){var K;return _.G("div",{class:a},(K=D.primaryButton)==null?void 0:K.call(D))}}))}}))}})}})},"lj");
K7H.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var N$F=_.l(function(D){var t=_.qT(D.title),H=_.qT(D.subtitle);return _.G("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:D.headerId,"on:touchstart":_.$X(function(e){var V;(V=D.touchstart)==null||V.call(D,e);return!1}),
"on:touchmove":_.$X(function(e){var V;(V=D.touchmove)==null||V.call(D,e);return!1}),
"on:touchend":_.$X(function(e){var V;(V=D.touchend)==null||V.call(D,e);return!1})},_.G("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.G(_.E,{cond:D.hasHeaderOverride,
then:function(){var e;return _.G(_.FH,null,(e=D.headerOverride)==null?void 0:e.call(D))},
else:function(){var e={};return _.G("div",{class:_.jQ((e["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,e["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=t,e))},_.G("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.G(_.E,{cond:t,then:function(){return _.G(_.FH,null,_.G("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},t),_.G(_.E,{cond:H,then:function(){return _.G("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
H)}}))}})),_.G(_.E,{cond:function(){return t()&&D.hasActionHeader()},
then:function(){var V;return _.G("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(V=D.actionHeader)==null?void 0:V.call(D))}}))}}))},"mj");
N$F.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.l(function(D){function t(I){if(!J&&typeof MutationObserver!=="undefined"){var tT={childList:!0};"MutationObserver"in window&&(J=new MutationObserver(H.bind(void 0,I)),J.observe(I,tT))}}
function H(I){typeof J!=="undefined"&&(g["content-wrapper"]===void 0&&(g["content-wrapper"]=I.children[0].clientHeight),c(g["content-wrapper"]),T()>U()||S(T()))}
function e(){k(window.innerHeight);T()>U()||S(T());Q.isFullScreen[0]()&&T()>U()?u().dispatch("Snap To Full Screen",{maxHeight:L()}):u().dispatch("Snap To Neutral Position",{maxHeight:U()})}
function V(I){document.body.style.overscrollBehavior="none";I.preventDefault();u().dispatch("Touch Start",{event:I})}
function b(I){I.preventDefault();u().dispatch("Touch Move",{event:I,contentScrollable:T()>U(),fullContentWrapperHeight:L(),contentWrapperHeight:U(),contentHeightMap:g,contentWrapperId:"content-wrapper",header:LtF(D),footer:LtF(D)})}
function a(){document.body.style.overscrollBehavior="";Q.isFullScreen[0]()?Q.currentY[0]()>=60?u().dispatch("Snap To Neutral Position",{maxHeight:U()}):u().dispatch("Snap To Full Screen",{maxHeight:L()}):Q.currentY[0]()>=60?w():Q.currentY[0]()<=-60&&T()>U()?u().dispatch("Snap To Full Screen",{maxHeight:L()}):u().dispatch("Snap To Neutral Position",{maxHeight:U()})}
function w(){u().dispatch("Close Sheet",{clientHeight:N(),maxHeight:0});setTimeout(function(){fgt()},250)}
var h=_.F(_.KR(window.innerHeight,void 0,"Q6Nekc")),K=h.next().value;h=h.next().value;var N=K,k=h;h=_.F(_.KR(0,void 0,"vjnlmb"));K=h.next().value;h=h.next().value;var T=K,c=h;h=_.F(_.rm(function(){var I=LtF(D);return.6*N()-mxZ(I)-MdZ(I)}));
K=h.next().value;h=h.next().value;var U=K,S=h,L=function(){var I=LtF(D);return N()-mxZ(I)-MdZ(I)-24-24},J=null,g={},Q={initialY:_.KR(0,void 0,"B0aY2c"),
currentY:_.KR(0,void 0,"nLPMcf"),isAnimating:_.KR(!1,void 0,"lXnnZ"),isFullScreen:_.KR(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.rm(U)},u=function(){var I=null;return function(){if(!I){var tT={initialY:Q.initialY[0](),currentY:Q.currentY[0](),isAnimating:Q.isAnimating[0](),isFullScreen:Q.isFullScreen[0](),maxHeightForContentWrapper:Q.maxHeightForContentWrapper[0]()};I=SIt(tT)}return I}}();
_.XH(function(){window.addEventListener("resize",e);u().subscribe(function(I){Q.initialY[1](I.initialY);Q.currentY[1](I.currentY);Q.isAnimating[1](I.isAnimating);Q.isFullScreen[1](I.isFullScreen);Q.maxHeightForContentWrapper[1](I.maxHeightForContentWrapper)})});
_.Sj(function(){window.removeEventListener("resize",e);J&&(J.disconnect(),J=null)});
var R=_.jQ({"bottom-sheet-content-without-icon":function(){var I;return!((I=D.shouldShowIcons)==null?0:I.call(D))}});
return _.G("bottom-sheet-layout",null,_.G(EUi,{contentWrapperId:"content-wrapper",isAnimating:function(){return Q.isAnimating[0]()},
currentY:function(){return Q.currentY[0]()},
maxHeightForContentWrapper:function(){return Q.maxHeightForContentWrapper[0]()},
shouldShowIcons:D.shouldShowIcons,skipContentClick:D.skipContentClick,onScroll:function(){var I=document.getElementById("header-wrapper"),tT=document.getElementById("content-wrapper");if(I&&tT){var ZV={};ZV=(ZV["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,ZV["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,ZV);I.className=tT.scrollTop>1?_.ff(ZV):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:fgt,contentWrapperEl:function(I){t(I);requestAnimationFrame(function(){H(I)})},
header:function(){return _.G(N$F,{touchstart:V,touchmove:b,touchend:a,title:D.headerTitle,subtitle:D.headerSubtitle,headerId:"header-wrapper",headerOverride:D.headerFn,hasHeaderOverride:D.hasHeaderFn,actionHeader:D.headerActionHeader,hasActionHeader:D.hasHeaderActionHeader})},
footer:function(){return _.G(K7H,{footerButtonType:D.footerButtonType,leadingLabel:D.footerLeadingLabel,trailingLabel:D.footerTrailingLabel,primaryButton:D.footerPrimaryButton,hasPrimaryButton:D.hasFooterPrimaryButton,secondaryButton:D.footerSecondaryButton,hasSecondaryButton:D.hasFooterSecondaryButton,footerOverride:D.footerFn,hasFooterOverride:D.hasFooterFn})},
body:function(){return _.G(_.E,{cond:D.hasContentFn,then:function(){var I;return _.G("div",{class:R},(I=D.contentFn)==null?void 0:I.call(D))}})}}))},"nj").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var kRi=_.l(function(D){var t=_.qS().resolve(_.Hp);return _.G("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.$X(function(){return void t.closeSheet()})},_.G(_.E,{cond:function(){return!!D.header},
then:function(){return _.G("div",{class:"ytContextualSheetLayoutHeaderContainer"},D.header())}}),_.G(_.E,{cond:function(){return!!D.content},
then:function(){return _.G("div",{class:"ytContextualSheetLayoutContentContainer"},D.content())}}),_.G(_.E,{cond:function(){return!!D.footer},
then:function(){return _.G("div",{class:"ytContextualSheetLayoutFooterContainer"},D.footer())}}))},"oj");
kRi.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var T$H=_.l(function(D){D=D.data;var t=_.DY("yt-sheet-view-model",function(e){if(_.r("web_focus_first_element_sheet")||!_.r("sheet_focus_first_killswitch"))return e.addEventListener("focus",function(){fkF(e)}),function(){e.removeEventListener("focus",function(){fkF(e)})}}),H={};
return _.G("yt-sheet-view-model",{"on:mousedown":_.$X(function(e){_.r("sheet_focus_first_killswitch")||e.currentTarget!==e.target&&e.preventDefault()}),
"on:focus":_.$X(function(){_.r("sheet_focus_first_killswitch")||fkF(t.value)}),
class:_.jQ("ytSheetViewModelHost",(H.ytSheetViewModelContextual=!0,H.ytSheetViewModelDisableBackdropFilter=_.r("web_disable_backdrop_filter"),H)),el:t,tabindex:-1},_.G(_.E,{cond:D,then:function(e){return _.G(kRi,{header:function(){return _.G(_.P5,{data:function(){return e().header}},{panelHeaderViewModel:GRv})},
content:function(){return _.G(_.P5,{data:function(){return e().content}},{listViewModel:function(V){return _.G(_.jea,{data:V.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:zkb,miniAppScoreChallengeViewModel:Dqv})},
footer:function(){return _.G(_.P5,{data:function(){return e().footer}},{panelFooterViewModel:_.Mt})}})}}))},"pj");
T$H.idomCompat=!0;_.hB(T$H,"yt-sheet-view-model",{props:{data:_.ij}});var jaO=_.l(function(D){var t=function(){var H;return(H=D.data().enableDebuggingFeatures)!=null?H:!1};
return _.G("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.G(_.nY,{each:function(){var H;return(H=D.data().stickers)!=null?H:[]}},function(H){return _.G(cNH,{data:function(){return H},
debugMode:t})}))},"qj"),cNH=_.l(function(D){var t=_.FQ(D,{debugMode:!1}).debugMode,H=_.qT(function(){var h;
return(h=D.data().region)==null?void 0:h.w},0),e=_.qT(function(){var h;
return(h=D.data().region)==null?void 0:h.h},0),V=_.qT(function(){var h;
return(h=D.data().region)==null?void 0:h.x},0),b=_.qT(function(){var h;
return(h=D.data().region)==null?void 0:h.y},0),a=_.$X(function(){var h=D.data().onTap;
h&&_.IQ(h)}),w={};
return _.G("div",{class:_.jQ("ytStoriesStickerLayerViewModelSticker",(w.ytStoriesStickerLayerViewModelDebugMode=t,w)),style:_.O7({width:function(){return 100*H()+"%"},
height:function(){return 100*e()+"%"},
left:function(){return 100*V()+"%"},
top:function(){return 100*b()+"%"},
"flex-direction":function(){return A5Y(D.data().flexDirection)},
"justify-content":function(){return gie(D.data().justifyContent)},
"align-items":function(){return J5H(D.data().alignItems)}}),
"on:click":a},_.G(_.P5,{data:function(){return D.data().button||D.data().toggleButton}},{buttonViewModel:function(h){return _.G(_.JX,{data:h.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(h){return _.G(_.VC,{data:h.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"rj");var iDi=_.l(function(D){var t=function(){return D.data()},H={},e=_.qT(function(){return t().backgroundColor},0),V=_.qT(function(){return t().actionButtons},[]),b=_.qT(function(){return t().stickerLayer},{}),a=function(){var h,K;
return{animationRef:H,animationConfig:{autoplay:!1,loop:!1,path:(K=(h=t().foregroundAnimation)==null?void 0:h.url)!=null?K:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){D.navigateToNextItemOnLottieComplete()}}}},w=function(){var h,K,N,k,T,c,U,S;
return{animationConfig:{autoplay:(c=(h=t().backgroundAnimation)==null?void 0:(K=h.settings)==null?void 0:K.autoplay)!=null?c:!1,loop:(U=(N=t().backgroundAnimation)==null?void 0:(k=N.settings)==null?void 0:k.loop)!=null?U:!1,path:(S=(T=t().backgroundAnimation)==null?void 0:T.url)!=null?S:"",name:"stories_item_background_animation"}}};
_.Mp(function(){if(D.isVisible()){var h;(h=H.lottieEl)==null||h.play();D.animationRef()&&(D.animationRef().lottieEl=H.lottieEl)}else{var K;(K=H.lottieEl)==null||K.stop()}},"AvUgVe");
return _.G("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.O7({"background-color":function(){return _.Qk(e())+";"}})},_.G("div",{class:"ytStoriesItemViewModelAssetContent"},_.G(_.E,{cond:function(){return!!t().backgroundAnimation},
then:function(){return _.G(_.x7,{data:w,animationName:function(){return w().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.G(_.E,{cond:function(){return!!t().backgroundImage},
then:function(){return _.G(_.bi,{data:function(){return t().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.G(_.E,{cond:function(){return!!t().foregroundAnimation},
then:function(){return _.G(_.x7,{data:a,animationName:function(){return a().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.G(_.E,{cond:function(){return!!t().foregroundImage},
then:function(){return _.G(_.bi,{data:function(){return t().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.G("div",{class:"ytStoriesItemViewModelTopShadow"}),_.G(_.P5,{data:function(){return b()}},{storiesStickerLayerViewModel:jaO})),_.G("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.O7({"background-color":function(){return _.Qk(e())}})},_.G("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.G(_.nY,{each:V},function(h){return _.G($qb,{data:function(){return h},
pauseAutoNavigation:D.pauseAutoNavigation})}))))},"tj"),rNY={style:"overlay",
type:"outline"},$qb=_.l(function(D){var t={};return _.G("div",{class:_.jQ("ytStoriesItemViewModelActionButton",(t.ytStoriesItemViewModelStretchedActionButton=function(){return D.data().size==="STORIES_BUTTON_SIZE_STRETCH"},t)),
"on:click":_.$X(D.pauseAutoNavigation)},_.G(_.P5,{data:function(){return D.data().button}},{buttonViewModel:function(H){return _.G(_.JX,{data:H.data,
buttonOverrides:rNY})}}))},"uj");var ODY={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.hB(_.l(function(D){var t=function(){var jV;return(jV=D.data().startIndex)!=null?jV:0},H=_.F(_.rm(t)),e=H.next().value,V=H.next().value;
H=_.F(_.KR(!1,void 0,"hu8VSd"));var b=H.next().value,a=H.next().value,w=function(){var jV;return(jV=D.data().storyItems)!=null?jV:[]},h={},K=_.DY("yt-stories-viewer-view-model"),N=function(){return D.data().dismissButton},k=function(){var jV;
return _.xP((jV=_.O(N(),_.h1))==null?void 0:jV.onTap)},T=_.DY("div"),c,U,S=!1,L=function(){var jV;
(jV=c)==null||jV.cancel();c=J(e()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});c.onfinish=function(){var i8=_.O(w()[e()],L2g),g6,Mu;i8!=null&&i8.foregroundAnimation&&((i8==null?0:(g6=i8.foregroundAnimation)==null?0:g6.url)||(i8==null?0:(Mu=i8.foregroundAnimation)==null?0:Mu.payload))||(e()!==w().length-1?(V(e()+1),L()):k()&&_.RQ(k()))}},J=function(jV){return T.value.children[jV].children[0]},g=function(){for(var jV=0;jV<e();jV++)J(jV).style.transform=
"scaleX(1)"},Q=function(){S||(b()?a(!1):(e()===w().length-1&&k()&&_.RQ(k()),J(e()).style.transform="scaleX(1)",e()!==w().length-1&&(V(e()+1),L())))},u=function(){S||(b()?a(!1):(J(e()).style.transform="scaleX(0)",e()!==0&&V(e()-1),L()))},R=function(){a(!0)},I=function(){J(e()).style.transform="scaleX(1)";
e()!==w().length-1?(V(e()+1),L()):k()&&_.RQ(k())};
H=function(){S=!1;U=setTimeout(function(){a(!0);S=!0},300)};
var tT=function(){clearTimeout(U);S&&b()&&a(!1)};
_.Mp(function(){if(b()){var jV;(jV=c)==null||jV.pause();var i8;(i8=h.lottieEl)==null||i8.pause()}else{var g6;(g6=c)==null||g6.play();var Mu;(Mu=h.lottieEl)==null||Mu.play()}},"iO2i3d");
_.Mp(function(){g();e()===t()&&L()},"lE01H");
var ZV=function(jV){jV.key==="ArrowLeft"?u():jV.key==="ArrowRight"&&Q()},ED=function(jV){if(jV.target===K.value){(jV=k())&&_.RQ(jV);
clearTimeout(U);var i8;(i8=c)==null||i8.cancel();window.removeEventListener("keydown",ZV);window.removeEventListener("yt-popup-closed",ED)}},o$=function(jV){jV.target===K.value&&(window.addEventListener("keydown",ZV),window.addEventListener("yt-popup-closed",ED))};
_.XH(function(){g();L();window.addEventListener("yt-popup-opened",o$)});
return _.G("yt-stories-viewer-view-model",{el:K,class:_.jQ("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.G("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.G("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.$X(u),"on:mousedown":_.$X(H),"on:mouseup":_.$X(tT),"on:mouseleave":_.$X(tT)}),_.G("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.$X(Q),"on:mousedown":_.$X(H),"on:mouseup":_.$X(tT),"on:mouseleave":_.$X(tT)})),
_.G("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.G(_.P5,{data:w},{storiesItemViewModel:function(jV,i8){var g6=jV.data;return _.G(_.E,{cond:function(){return Math.abs(i8()-e())<=1},
then:function(){var Mu={};return _.G("div",{class:_.jQ("ytStoriesViewerViewModelStoryItem",(Mu.ytStoriesViewerViewModelActiveStoryItem=function(){return i8()===e()},Mu))},_.G(iDi,{data:g6,
pauseAutoNavigation:R,navigateToNextItemOnLottieComplete:I,isVisible:function(){return i8()===e()},
animationRef:h}))}})}})),_.G("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:T},_.G(_.nY,{each:w},function(){return _.G("div",{class:"ytStoriesViewerViewModelProgressBar"},_.G("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.G("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.G(_.bi,{data:ODY,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.G("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.G(_.P5,{data:N},{buttonViewModel:_.JX}))))},"xj"),"yt-stories-viewer-view-model",{props:{data:_.ij}});_.hB(_.l(function(D){var t=D.data;var H=_.DY("yt-gen-ai-feedback-form-view-model"),e=[];return _.G("yt-gen-ai-feedback-form-view-model",{el:H,class:"ytGenAiFeedbackFormViewModelHost"},_.G(_.$7,{text:function(){return t().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.G("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.G(_.P5,{data:function(){return t().feedbackChips}},{toggleButtonViewModel:function(V){var b=V.data;
return _.G(_.VC,{data:b,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(a){var w=b();w=_.O(w,_.Ez);w=_.O(w==null?void 0:w.defaultButtonViewModel,_.h1).trackingParams;a?e.push(w):(a=e.indexOf(w),a>-1&&e.splice(a,1))}})}})),_.G(_.$7,{text:function(){return t().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.G("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.G(_.P5,{data:function(){return t().submitButton}},{buttonViewModel:function(V){return _.G(_.JX,{data:V.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){YIO(H.value,e,t().uniqueId)}})}}),_.G(_.P5,{data:function(){return t().moreFeedbackButton}},{buttonViewModel:function(V){return _.G(_.JX,{data:V.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"yj"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.ij},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var ku=function(){return _.X.apply(this,arguments)||this};
_.P(ku,_.X);ku.prototype.created=function(){TLF(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(A9i);var D=_.qS().resolve(_.ght);D&&(D.container=this.ytPopupContainerBehavior);if(D=_.qS().resolve(_.Hp))D.container=this.ytPopupContainerBehavior;if(D=_.qS().resolve(_.eC)){var t=this.ytPopupContainerBehavior;D.containerWasInjected?_.Yw(Error("mj")):D.container=t}};
ku.prototype.ensurePopupBelowPlayer=function(D,t){var H=_.qS().resolve(_.by(_.bO));if(!H||!H.isOnWatch()||!_.FA())return!1;H=H.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.n_().height>H+this.getPopupHeight(D,t)?(D.style.top="auto",D.style.bottom="0px"):(D.style.top=H+"px",D.style.bottom="auto");return!0};
ku.prototype.getPopupHeight=function(D,t){t&&(D.cachedPopupHeight=0);if(!D.cachedPopupHeight){t=0;var H=D.clientHeight,e=window.getComputedStyle(D);t+=parseInt(e.marginTop,10);t+=parseInt(e.marginBottom,10);D.cachedPopupHeight=H+t}return D.cachedPopupHeight};
ku.prototype.getElement=function(D){return document.createElement(D)};
_.d([_.C(Zqi.YtPopupContainerBehavior),_.x("design:type",Object)],ku.prototype,"ytPopupContainerBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],ku.prototype,"ytComponentBehavior",void 0);_.d([_.Y({disableElementRegistration:!0,is:"ytd-popup-container"})],ku);
_.p(ku,"ytd-popup-container",function(){if(t0i!==void 0)return t0i;var D=document.createElement("template");_.n(D,"\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");D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);return t0i=D},{mode:1});var UqF;var oUZ={};oUZ.YtLogYpcFlowCommandsBehavior=[_.dW.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(D){_.O(D,Dgv)&&(D=_.O(D,Dgv))&&(D.serializedTransactionFlowLoggingParams?_.Esk(D.serializedTransactionFlowLoggingParams):D.serializedYpcCancelFlowLoggingParams?(D=D.serializedYpcCancelFlowLoggingParams)&&_.c2("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",D):D.serializedYpcResumeFlowLoggingParams?(D=D.serializedYpcResumeFlowLoggingParams)&&_.c2("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",D):D.serializedYpcPauseFlowLoggingParams?(D=D.serializedYpcPauseFlowLoggingParams)&&
_.c2("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",D):D.serializedYpcRefundFlowLoggingParams?(D=D.serializedYpcRefundFlowLoggingParams)&&sht("YPC_EVENT_TYPE_START",D):D.serializedYpcDeactivateFlowLoggingParams?(D=D.serializedYpcDeactivateFlowLoggingParams)&&_.c2("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",D):D.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(D=D.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.c2("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",D))},
handleLogYpcFlowDismiss_:function(D){_.O(D,zvQ)&&(D=_.O(D,zvQ),D.serializedTransactionFlowLoggingParams?_.K8D(D.serializedTransactionFlowLoggingParams):D.serializedYpcCancelFlowLoggingParams?(D=D.serializedYpcCancelFlowLoggingParams)&&_.c2("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",D):D.serializedYpcResumeFlowLoggingParams?(D=D.serializedYpcResumeFlowLoggingParams)&&_.c2("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",D):D.serializedYpcPauseFlowLoggingParams?(D=
D.serializedYpcPauseFlowLoggingParams)&&_.c2("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",D):D.serializedYpcRefundFlowLoggingParams&&(D=D.serializedYpcRefundFlowLoggingParams)&&sht("YPC_EVENT_TYPE_CANCEL",D))}}];var PWO={};PWO.YtCancelRecurrenceBehavior=[_.Eg.YtComponentBehavior,_.IWf,{attached:function(){var D=this;tkO(this,function(t,H){return D.ypcCancelRecurrenceHandler(t,H)})},
ypcCancelRecurrenceHandler:function(D,t){var H=this;if(!t||!t.ypcCancelRecurrenceEndpoint)return!1;if(!t.ypcCancelRecurrenceEndpoint.params)return _.vn(Error("Ml")),!0;_.xG(this.hostElement);var e=_.QL.instance,V=_.qS().resolve(_.by(_.dn));e&&_.yL(e,t)?_.BZ(e,t).then(function(b){H.ypcCancelRecurrenceSuccess_(D,t,{data:b})},function(b){H.ypcCancelRecurrenceFailure_(D,t,b)}).thenCatch(function(){_.vn(Error("Nl"))}):V?V.requestDataForServiceEndpoint(t).then(function(b){H.ypcCancelRecurrenceSuccess_(D,
t,b)},function(b){H.ypcCancelRecurrenceFailure_(D,t,b)}).thenCatch(function(){_.vn(Error("Nl"))}):_.vn(Error("Ol"));
return!0},
ypcCancelRecurrenceSuccess_:function(D,t,H){_.Rs(this.hostElement);H.data||(H={data:H});H.data&&H.data.actions&&_.k0(this.hostElement,H.data.actions,this.hostElement);H.data.messageRenderer?GKe(t.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(t=t.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.c2("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",t);_.Gf(D,"yt-service-request-completed",H)},
ypcCancelRecurrenceFailure_:function(D,t,H){_.Rs(this.hostElement);GKe(t.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Gf(D,"yt-service-request-error",{error:H,params:[D,t]})}}];var nUF=function(D,t){_.Hk.call(this,t)};
_.P(nUF,mAi);var CWF={};CWF.YtCompleteTransactionBehavior=[_.Eg.YtComponentBehavior,_.IWf,{attached:function(){var D=this;tkO(this,function(t,H){return D.ypcCompleteTransactionHandler(t,H)})},
completeTransaction:function(D,t){var H=this;t={payments_payload:window.btoa(t.integratorData),buybucket_params:D.data.buybucketParams,offer_params:D.data.offerParams};var e=_.qS().resolve(_.dn),V=D.data.completeTransactionEndpoint,b=this.get("ypcCompleteTransactionEndpoint.actions",V);b&&_.k0(this.hostElement,b,this.hostElement);return(b=_.QL.instance)&&_.yL(b,V)?_.BZ(b,V,t).then(function(a){return!a||(a==null?0:a.error)?(a=H.get("data.serializedTransactionFlowLoggingParams",D),_.Aj(new aN("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
a))):{data:a}}).then(function(a){return H.handleCompleteTransactionSuccess_(a,D)},function(){return H.handleCompleteTransactionFailure_(D)}):e.requestDataForServiceEndpoint(V,t).then(function(a){return H.handleCompleteTransactionSuccess_(a,D)},function(){return H.handleCompleteTransactionFailure_(D)})},
handleCompleteTransactionSuccess_:function(D,t){D.data||(D={data:D});if(D.data.messageRenderer)return _.Aj(new nUF(D.data.messageRenderer));if(D.data.trackingParams){var H=_.v3(),e=_.lo();H&&e&&_.Q$(H,e,_.Sa(D.data.trackingParams))}t=this.get("data.serializedTransactionFlowLoggingParams",t);hdO(t);return _.Tf(D)},
handleCompleteTransactionFailure_:function(D){D=this.get("data.serializedTransactionFlowLoggingParams",D);_.eZ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",D);return _.Aj(new aN("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",D))},
ypcCompleteTransactionHandler:function(D,t){var H=this;if(!t.ypcCompleteTransactionEndpoint)return!1;if(!t.ypcCompleteTransactionEndpoint.transactionParams)return _.vn(Error("Pl")),!0;t.ypcCompleteTransactionEndpoint&&t.ypcCompleteTransactionEndpoint.gtmData&&_.e8(t.ypcCompleteTransactionEndpoint.gtmData);var e=_.qS().resolve(_.by(_.dn));if(e){_.xG(this.hostElement);var V=_.QL.instance;V&&_.yL(V,t)?_.BZ(V,t).then(function(b){return!b||(b==null?0:b.error)?(b=H.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
t),_.Aj(new aN("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",b))):{data:b}}).then(function(b){_.Gf(D,"yt-service-request-completed");
H.ypcCompleteTransactionSuccess_(t,b)},function(){return H.ypcCompleteTransactionFailure_(t)}):e.requestDataForServiceEndpoint(t).then(function(b){_.Gf(D,"yt-service-request-completed");
H.ypcCompleteTransactionSuccess_(t,b)},function(){return H.ypcCompleteTransactionFailure_(t)})}return!0},
ypcCompleteTransactionSuccess_:function(D,t){_.Rs(this.hostElement);t.data||(t={data:t});_.ET(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);t.data.messageRenderer||t.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(D):(_.e8('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",D));t.data.actions&&(D=XZY(t.data.actions),t=fPg(t.data.actions),D.length&&_.NJ(this.hostElement,
D),t.length&&_.k0(this.hostElement,t,this.hostElement))},
ypcCompleteTransactionFailure_:function(D){_.Rs(this.hostElement);_.ET(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",D,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(D,t,H){if(t=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",t))t={serializedTransactionFlowLoggingParams:t},H&&(t.errorType=H),_.L7(D,t),_.Ap()}}];var mqQ={};mqQ.YtEndpointHandlerWithYpcBehavior=[_.IWf,_.dW.YtActionHandlerBehavior,[{openWalletDialog:function(D,t,H,e,V,b,a){var w=this,h=_.z3();t=t.replace(/-/g,"+").replace(/_/g,"/");var K=_.Ph().get("hl");_.EuK(_.Vd(_.Vb),t,h.resolve,V,function(N){b&&b();h.reject(N)},K,function(N){return w.onServerBackendAnalyticEvent_(D,H,N)},this.onDialogClose_.bind(this),e,a);
return h.promise},
openFixFlowDialog:function(D,t,H,e){D=D.replace(/-/g,"+").replace(/_/g,"/");_.Vd(_.Vb).openFixFlowDialog(D,t,H,e)},
onDialogClose_:function(){_.ET(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(D,t,H){_.Gf(D,"yt-commerce-action-init-done");t&&_.NJ(this.hostElement,[t,{backend_analytics:H}])}}],
_.vP.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(D,t){D=this.get("data.nativeFlowEndpoint",t);t=this.get("data.fallbackEndpoint",t);D?_.NJ(this.hostElement,[D]):t&&_.Gf(this.hostElement,"yt-navigate",{endpoint:t})}}],
PWO.YtCancelRecurrenceBehavior,CWF.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 D=this;tkO(this,function(t,H,e){return D.handleYPCEndpoint(t,H,e)});
this.ypcRegisterActionMapJobId_=_.C7(_.Jy,function(){D.registerActionMap(D.buyFlowActionMap_)})},
detached:function(){var D=this;_.Jy.cancelJob(this.ypcRegisterActionMapJobId_);_.C7(_.Jy,function(){D.unregisterActionMap(D.buyFlowActionMap_)})},
handleYPCEndpoint:function(D,t,H){var e=t.ypcGetCartEndpoint;if(e){_.l1("commerce_transaction");var V=e.gtmId;V&&_.HP(V);(e=e.gtmData)&&_.e8(e)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",t)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(D,t),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",t)!=null?(this.handleYPCFixInstrumentEndpoint_(D,t),!0):t.ypcPauseSubscriptionCommand?(IgO(this.hostElement,D,t,H),
!0):t.ypcResumeSubscriptionCommand?(BFe(this.hostElement,D,t),!0):t.getPaymentInstrumentsParamsCommand?(Roi(this.hostElement,D,t),!0):t.ypcHandleTransactionEndpoint?(dxH(this.hostElement,D,t,H),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(D,t){var H=this;_.vh("ttcr",void 0,"commerce_transaction");t=t.ypcGetCartEndpoint;var e=t.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,V=e.encryptedPurchaseParams,b=e.serializedTransactionFlowLoggingParams,a=e.serializedPaymentsClientParams,w=this.createGetCartResponseFromParams_(e,t.offerParams,b);this.changeButtonState(D,!0);_.pr(this.openWalletDialog(D,V,e.ypcLogWalletAnalyticDataEndpoint,b,function(){H.changeButtonState(D,!1)},function(){H.changeButtonState(D,
!1)},a).then(function(h){return H.handleBuyFlowCompleteCallback_(D,w,h)},function(){return H.handleOnLoadError(w)}).then(function(h){return void H.handlePostPurchaseSuccess_(D,w,h)},function(h){return void H.handlePostPurchaseError_(h)}),function(){H.changeButtonState(D,!1);
D instanceof Element&&_.Gf(D,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(D,t,H){var e=D.completeTransactionEndpoint,V=D.handleTransactionEndpoint;t={data:{offerParams:window.btoa(t),serializedTransactionFlowLoggingParams:H}};V?t.data.handleTransactionEndpoint=V:t.data.completeTransactionEndpoint=e;D.onCartDismissCommand&&(t.data.onCartDismissCommand=D.onCartDismissCommand);return t},
onGetCartServiceRequestCompleted_:function(D,t){var H=this,e=D.target;if(t&&t.data&&t.data.messageRenderer)_.Rs(this.hostElement),this.handleMessageRenderer_(t.data.messageRenderer),this.changeButtonState(e,!1);else{var V=this.get("data.encryptedPurchaseParams",t),b=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",t),a=this.get("data.ypcLogWalletAnalyticDataEndpoint",t),w=this.get("data.serializedPaymentsClientParams",t),h=this.getLoggingParams_(t);if(h||V||b)D.stopPropagation(),_.vh("ttcr",
void 0,"commerce_transaction"),V||_.Rs(this.hostElement),this.changeButtonState(e,!1),b?_.ET(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.YC("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:b}}},this]):V&&(this.changeButtonState(e,!0),D=null,D=this.openWalletDialog(e,V,a,h,function(){_.Rs(H.hostElement);H.changeButtonState(e,!1)},function(){_.Rs(H.hostElement);
H.changeButtonState(e,!1)},w),_.pr(D.then(function(K){return H.handleBuyFlowCompleteCallback_(e,t,K)},function(){return H.handleOnLoadError(t)}).then(function(K){return H.handlePostPurchaseSuccess_(e,t,K)},function(K){return H.handlePostPurchaseError_(K)}),function(){H.changeButtonState(e,!1);
_.Gf(e,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(D,t){t&&t.endpoint&&t.endpoint.ypcGetCartEndpoint&&!t.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",t.endpoint.ypcGetCartEndpoint)&&_.k0(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",t.endpoint.ypcGetCartEndpoint)],D.target),_.xG(this.hostElement),this.changeButtonState(D.target,!0))},
onServiceRequestError_:function(D,t){if(t&&t.params&&t.params.length){t=_.F(t.params);for(var H=t.next();!H.done;H=t.next())if((H=H.value)&&H.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",H.ypcGetCartEndpoint)&&_.k0(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",H.ypcGetCartEndpoint)],D.target);_.Rs(this.hostElement);this.changeButtonState(D.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(D,t,H){var e=H.integratorData;return e==null||e===""||H.error!=null?(e=this.getLoggingParams_(t),String(H.error)==="-1"?(t.data.onCartDismissCommand&&_.k0(this.hostElement,[t.data.onCartDismissCommand],D),_.Aj(new aN("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",e,!0))):_.Aj(new aN("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",e))):t.data.handleTransactionEndpoint?xxZ(this.hostElement,t.data.handleTransactionEndpoint,{payments_payload:e,funds_guarantee_callback_client_data:H.integratorClientCallbackData}):
this.completeTransaction(t,H)},
handlePostPurchaseSuccess_:function(D,t,H){t=H.data;var e=!1,V,b;if(t&&((V=t.command)==null?0:(b=V.commandExecutorCommand)==null?0:b.commands)){var a,w;V=(a=t.command)==null?void 0:(w=a.commandExecutorCommand)==null?void 0:w.commands;for(a=0;a<V.length;a++)if(_.O(V[a],_.Xwf)){e=!0;break}}e||(t&&t.gtmDatas&&t.gtmDatas.length?_.e8(t.gtmDatas[0]):_.e8('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));H.data&&H.data.actions&&(t=XZY(H.data.actions),H=fPg(H.data.actions),t.length&&
_.NJ(this.hostElement,t),H.length&&_.k0(this.hostElement,H,D))},
handlePostPurchaseError_:function(D){D&&D.payload&&D.payload.isUserDismiss||_.gT(Error("Rl"))},
handleOnLoadError:function(D){D=this.getLoggingParams_(D);return _.Aj(new aN("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",D))},
getLoggingParams_:function(D){return this.get("data.serializedTransactionFlowLoggingParams",D)},
handleMessageRenderer_:function(D){var t=_.LY(D,"renderer"),H=_.YC("openPopupConfig");t==="confirmDialogRenderer"&&H&&_.ET(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:H.popupTypeMap[t],popup:D}},this])},
handleYPCFixInstrumentEndpoint_:function(D,t){var H=this,e=t.ypcFixInstrumentEndpoint;t=e.encryptedFixInstrumentParameters;this.logFixFopEvent_(e,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(D,!0);this.openFixFlowDialog(t,function(V,b){H.onFixFlowCompleteCallback_(e,V,b)},function(){return H.changeButtonState(D,!1)},function(){H.changeButtonState(D,!1);
H.logFixFopEvent_(e,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(D,t,H){var e=_.RD("payments.business.integration.scenario.FixInstrument");if(t==e.IntegratorCallbackType.ON_COMPLETE){t="FIX_FOP_EVENT_TYPE_CANCEL";var V=null;H.error!=null?H.error!=e.OnCompleteCallbackError.USER_CANCELLED&&(_.k0(this.hostElement,[D.errorAction],this.hostElement),t="FIX_FOP_EVENT_TYPE_FAILURE",V="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.k0(this.hostElement,[D.successAction],this.hostElement),t="FIX_FOP_EVENT_TYPE_SUCCESS");_.k0(this.hostElement,[D.onFinishAction],
this.hostElement);this.logFixFopEvent_(D,t,V)}},
logFixFopEvent_:function(D,t,H){(D=D.serializedFixFopLoggingParams)?(t={eventType:t,serializedFixFopLoggingParams:D},H!=null&&(t.errorType=H),_.L7("fixFopFlow",t),_.Ap()):_.gT(Error("Sl"))},
changeButtonState:function(D,t){_.r("enable_ypc_spinners")&&D&&(D.is==="yt-button-renderer"||D.is==="ytd-button-renderer")&&(D.disabled=t)}}];var Mhv=function(D){this.JSC$32370_clientRoot=D;this.feedbackCollectorActionMap={"yt-help-dialog-requested":DIO,"yt-feedback-dialog-requested":zob,"yt-signal-action-help":tNZ,"yt-signal-action-send-feedback":HPH,"yt-send-feedback-action":VNt,"yt-user-feedback-endpoint":bPi};_.ya(_.Qa.getInstance(),this.feedbackCollectorActionMap,this.JSC$32370_clientRoot)},S$F;var XEH=function(D){this.JSC$32375_clientRoot=D;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":qEY.bind(null,this.JSC$32375_clientRoot),"yt-signal-action-delete-all-downloads":aTQ,"yt-signal-action-delete-download":wm4,"yt-signal-action-delete-playlist-download":ssv,"yt-signal-action-install-pwa":kXt,"yt-signal-action-refresh-downloads":KcF,"yt-offline-video-endpoint":clZ,"yt-offline-playlist-endpoint":$Ig,"yt-update-local-app-setting-command":rlQ,"yt-offline-orchestration-action-command":UIt,
"yt-signal-action-undo-delete-download":GXb,"yt-local-watch-history-command":nGi};_.ya(_.Qa.getInstance(),this.downloadManagerActionMap,this.JSC$32375_clientRoot);_.AG.instance=new _.AG},fWg;var Tn=function(){var D=_.X.apply(this,arguments)||this;D.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_"};D.remoteApi_=null;return D};
_.P(Tn,_.X);_.q=Tn.prototype;
_.q.ready=function(){_.r("polymer_enable_mdx")&&(hMH({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.r("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.r("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.r("enable_cast_short_lived_lounge_token")}),_.G0("yt-remote-connection-change",this.handleConnectionChange_,this),_.G0("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=jHF())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.q.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.q.handleConnectionChange_=function(D){(this.mdxConnected=D)?(D=KMF(),!D&&zNH()&&DXQ()&&(D={key:"cast-selector-receiver",name:DXQ()}),D=D.name):D=null;this.receiverName=D;_.qc(this.remoteApi_);(this.remoteApi_=jHF())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.q.handleReceiverAvailabilityChange_=function(){var D=EXF();zNH()&&_.l_("yt-remote-cast-available")&&D.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=D.length>0};
_.q.handleRemoteQueueChange_=function(){var D=this.currentVideoId_,t=this.currentListId_,H=wQ(this.remoteApi_);this.currentVideoId_=H.videoId;this.currentListId_=H.listId;this.currentVideoId_&&_.ET(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.r("polymer_enable_mdx_queue")?this.currentListId_:null,D,t])};
_.q.handleAddToQueueAction_=function(D){D=_.O(D,Afi);this.remoteApi_&&(D.videoId?this.remoteApi_.addVideo(D.videoId):D.playlistId&&this.remoteApi_.addPlaylist(D.playlistId))};
_.q.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.q.handleInsertInQueueAction_=function(D){D=_.O(D,gTv);this.remoteApi_&&D.videoId&&this.remoteApi_.JSC$19848_insertVideo(D.videoId)};
_.q.handleRemoveFromQueueAction_=function(D){D=_.O(D,JfH);this.remoteApi_&&D.videoId&&this.remoteApi_.JSC$19848_removeVideo(D.videoId)};
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],Tn.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M(),_.x("design:type",Object)],Tn.prototype,"appId",void 0);_.d([_.M(),_.x("design:type",Boolean)],Tn.prototype,"mdxConnected",void 0);_.d([_.M(),_.x("design:type",Boolean)],Tn.prototype,"receiverAvailable",void 0);_.d([_.M(),_.x("design:type",Object)],Tn.prototype,"receiverName",void 0);_.d([_.M(),_.x("design:type",Object)],Tn.prototype,"currentVideoId_",void 0);
_.d([_.M(),_.x("design:type",Object)],Tn.prototype,"currentListId_",void 0);_.d([_.xL({is:"yt-mdx-manager",disableElementRegistration:!0})],Tn);_.p(Tn,"yt-mdx-manager",void 0,{mode:2});var L7F;var ANv;var cC=function(){var D=_.X.apply(this,arguments)||this;D.APP_IDS={ytr:3,ytm:5};D.JSC$21069_timeoutId_=0;D.actionMap={"yt-open-create-family-dialog":"open"};return D};
_.P(cC,_.X);_.q=cC.prototype;_.q.created=function(){TLF(2200)};
_.q.detached=function(){this.observer_&&this.observer_.disconnect()};
_.q.open=function(D,t){var H=this,e=D.serializedYpcFamilyCreateLoggingParams;this.JSC$21069_timeoutId_=setTimeout(this.abort_.bind(this,D.postFlowErrorEndpoint,e),3E4);t&&(this.onReadyCallback_=t);var V=_.Kg(this.hostElement).querySelector("#unicorn-iframe");e&&e&&Z_v("ypcFamilyCreateFlowStarted",e);_.WKD("family_creation",function(){var b=_.RD("gapi.family_creation.render");_.RD("gapi.config.update")("iframes/family_creation/url",H.getFamilyCreationUrlWithUnicornParams_());var a=3;D.appId&&D.appId in
H.APP_IDS&&(a=H.APP_IDS[D.appId]);a={authUser:_.YC("SESSION_INDEX")||0,clientId:a,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.YC("HL"),initialflow:[4,5,6,7],m:H.isMobile?1:0,onFlowComplete:H.onUnicornFlowComplete_.bind(H,D.postFlowSuccessEndpoint,e),onError:H.onUnicornFlowError_.bind(H,D.postFlowErrorEndpoint,e),onReady:H.onUnicornFlowReady_.bind(H,D.referencePcidParams)};b(V,a)})};
_.q.close=function(){_.Kg(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.q.onUnicornFlowComplete_=function(D,t){this.close();t&&t&&Z_v("ypcFamilyCreateFlowSucceeded",t);_.Gf(this.hostElement,"yt-navigate",{endpoint:D})};
_.q.onUnicornFlowError_=function(D,t){this.close();t&&Z_v("ypcFamilyCreateFlowCancelled",t);_.Gf(this.hostElement,"yt-navigate",{endpoint:D})};
_.q.onUnicornFlowReady_=function(D){var t=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();D&&_.RD("gapi.family_creation.setConfig")(0,D);this.observer_=new MutationObserver(function(){_.Kg(t.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Kg(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Kg(this.hostElement).querySelector("#dialog").open()};
_.q.getFamilyCreationUrlWithUnicornParams_=function(){return _.YC("YTR_FAMILY_CREATION_URL")};
_.q.getCurrentUrl_=function(){return document.location.href};
_.q.abort_=function(D,t){this.clearTimeout_();this.onUnicornFlowError_(D,t)};
_.q.clearTimeout_=function(){clearTimeout(this.JSC$21069_timeoutId_)};
_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],cC.prototype,"ytActionHandlerBehavior",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],cC.prototype,"isMobile",void 0);_.d([_.M(),_.x("design:type",Object)],cC.prototype,"onReadyCallback_",void 0);_.d([_.M(),_.x("design:type",Object)],cC.prototype,"observer_",void 0);_.d([_.xL({is:"yt-create-family-dialog",disableElementRegistration:!0})],cC);
_.p(cC,"yt-create-family-dialog",function(){if(ANv===void 0){var D=document.createElement("template");_.n(D,'\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');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);var t=D.content,H=t.insertBefore;L7F===void 0&&(L7F=document.createElement("template"));var e=L7F;H.call(t,e.content.cloneNode(!0),D.content.firstChild);ANv=D}D=ANv;return D},{mode:2});var gU4;var JNY;var jD=function(){var D=_.X.apply(this,arguments)||this;D.STEP=1;D.BLOCK_ON=80;D.MIN_PROGESS=0;D.MAX_PROGESS=100;return D};
_.P(jD,_.X);_.q=jD.prototype;_.q.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.q.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));_.qS().addProvider({provide:jgF,useValue:this})};
_.q.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.q.finish=function(){var D=this;this.progress=this.MAX_PROGESS;Ceb(function(){D.progress==D.MAX_PROGESS&&(D.hostElement.hidden=!0)})};
_.q.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.ql.Object.defineProperties(jD.prototype,{progress:{configurable:!0,enumerable:!0,set:function(D){this.progress_=D;var t="scaleX("+D/this.MAX_PROGESS+")",H=_.Kg(this.hostElement).querySelector("#progress").style;H.transform=t;H.webkitTransform=t;this.hostElement.setAttribute("aria-valuenow",String(D))},
get:function(){return this.progress_}}});
_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],jD.prototype,"ytComponentBehavior",void 0);_.d([_.xL({is:"yt-page-navigation-progress",disableElementRegistration:!0})],jD);
_.p(jD,"yt-page-navigation-progress",function(){if(JNY===void 0){var D=document.createElement("template");_.n(D,'\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');D.content.insertBefore(_.W().content.cloneNode(!0),
D.content.firstChild);var t=D.content,H=t.insertBefore;gU4===void 0&&(gU4=document.createElement("template"));var e=gU4;H.call(t,e.content.cloneNode(!0),D.content.firstChild);JNY=D}D=JNY;return D},{mode:2});var Y$v={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"},lWe={"font-size":"12px","font-style":"italic"},vUO={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.Xme=function(){return _.Z(function(D){_.n2(D)})};var pEv=_.l(function(D){var t=function(){return D.data().subtext},H={};
return _.G("snackbar-view-model",{class:_.jQ("snackbarViewModelHost",D.className)},_.G("div",{class:_.jQ("snackbarViewModelEngagementBarWrapper",D.className)},_.G(_.E,{cond:function(){return D.data().image},
then:function(e){return _.G(_.bi,{data:e,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.G(_.E,{cond:function(){return D.data().imageContent},
then:function(){return _.G("div",{class:"snackbarViewModelAvatarContainer"},_.G(_.P5,{data:function(){return D.data().imageContent}},{decoratedAvatarViewModel:_.Fo}))}}),_.G("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.G("div",{class:_.jQ((H.snackbarViewModelTitle=!0,H.snackbarViewModelTitleWithSubtext=t,H))},_.G(_.$7,{text:function(){return D.data().text}})),_.G(_.E,{cond:t,
then:function(){return _.G("div",{class:"snackbarViewModelSubtext"},_.G(_.$7,{text:function(){return t()}}))}})),_.G(_.E,{cond:function(){return D.data().buttons},
then:function(){return _.G("div",{class:"snackbarViewModelButtonClassWrapper"},_.G(_.P5,{data:function(){return D.data().buttons}},{buttonViewModel:function(e){return _.G(_.JX,{data:e.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:D.target})}}))}})))},"zj");_.hB(_.l(function(){function D(g,Q,u){U(g);L(u);T("in");N(!0);t(g,Q);a=setTimeout(function(){H()},Q)}
function t(g,Q){var u,R=(u=g.text)==null?void 0:u.content;g=_.gF(g.rendererContext);R&&(Q={label:R,command:g,durationMs:Q},_.qS().resolve(_.H2).enqueue(Q))}
function H(g){T("out");g&&clearTimeout(a)}
function e(){H(!0)}
function V(g){if(g){var Q=g.snackbarViewModel,u=g.durationMs,R=g.target;u||(u=3E3);Q&&(g=_.qS().resolve(_.by(_.yY)))&&g.enqueue({isOpened:K,open:function(){D(Q,u,R)},
close:H},0)}}
var b=_.ep("snackbar-container"),a=void 0,w=_.F(_.KR(!1,void 0,"mDc5N")),h=w.next().value;w=w.next().value;var K=h,N=w;h=_.F(_.KR("out",void 0,"FpOs5e"));var k=h.next().value,T=h.next().value;h=_.F(_.KR(void 0,void 0,"jIDRob"));var c=h.next().value,U=h.next().value;h=_.F(_.KR(void 0,void 0,"kOA3Mb"));var S=h.next().value,L=h.next().value,J=_.$X(function(){if(k()==="out"){N(!1);U(void 0);L(void 0);var g=_.qS().resolve(_.by(_.yY));g&&mGt(g,0)}});
_.XH(function(){var g=_.qS().resolve(_.by(_.VbF));g&&(g.showSnackbarFn=V,g.closeSnackbarFn=e)});
return _.G("snackbar-container",{class:"ytSnackbarContainerHost",el:b},_.G(_.E,{cond:function(){return K()&&!!c()},
then:function(){var g={};return _.G("div",{class:_.jQ("ytSnackbarContainerSnackbarContainer",(g.ytSnackbarContainerMobile=!1,g.ytSnackbarContainerPivotBar=function(){var Q;return!((Q=_.qS().resolve(_.by(_.be4)))==null||!Q())},g.ytSnackbarContainerOpened=function(){return K()&&k()==="in"},g.ytSnackbarContainerClosed=function(){return K()&&k()==="out"},g)),
"on:animationend":J},_.G(pEv,{data:function(){return c()},
target:function(){return S()}}))}}))},"Aj"),"snackbar-container");_.hB(_.IbQ,"yt-tooltip");var dqe=_.iMY.ephemeralActionSelector;_.hB(_.l(function(){var D=_.dm(dqe);return _.G("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var t;return(t=D())==null?void 0:t.announcement})},"Bj"),"yt-ephemeral-actions");var Bg4=new Map;var xJH=function(D,t){var H=this;this.handleError=D;this.logEventInternal=t;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){H.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
xJH.prototype.logError=function(D){this.handleError(D)};
xJH.prototype.logEvent=function(D,t){switch(D){case "IDB_DATA_CORRUPTED":_.r("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",t);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",t);break;case "IS_SUPPORTED_COMPLETED":_.r("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",t);break;case "QUOTA_EXCEEDED":xqF(this,t);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",t);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":D=Object.assign({},t,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",D)}};
var xqF=function(D,t){_.V0.getInstance().estimate().then(function(H){H=Object.assign({},t,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:DPO(H==null?void 0:H.usage),deviceStorageQuotaMbytes:DPO(H==null?void 0:H.quota)});D.logEventInternal("idbQuotaExceeded",H)})};var Rpb=_.l(function(D){var t=_.DY("yt-draggable"),H=D.onDrag,e=D.onDragStart,V=D.onDragEnd,b=_.FQ(D,{allowClicks:!1,dragThreshold:5}),a=b.dragThreshold,w=b.allowClicks;D=b.children;b=b.className;var h=void 0,K=void 0,N=new _.lR(0,0),k=!1;_.XH(function(){h=new _.Dh(t.value);K=new _.wZ(c);T(h,K);if(w()){_.vVv(h,a());var S;(S=t.value)==null||S.addEventListener("click",U,{capture:!0})}_.Sj(function(){var L;(L=h)==null||L.dispose();if(w()){var J;(J=t.value)==null||J.removeEventListener("click",U,{capture:!0})}})});
var T=function(S,L){_.fz(S,"earlycancel",function(){w()&&(k=!1)});
_.fz(S,"start",function(J){e==null||e(J);J.defaultPrevented||w()&&(k=!0)});
_.fz(S,"beforedrag",function(J){h&&K&&(J.preventDefault(),N=new _.lR(J.clientX-h.startX,J.clientY-h.startY),K.start())});
_.fz(S,"end",function(){L.stop();V==null||V();N=new _.lR(0,0)})},c=function(){N&&H(N)},U=function(S){k&&(k=!1,S.stopPropagation(),S.preventDefault())};
return _.G("yt-draggable",{el:t,class:_.jQ("ytDraggableComponentHost",b)},D)},"Cj");var uev=_.l(function(D){var t=_.F(_.KR(0,void 0,"Qf0tbc")),H=t.next().value,e=t.next().value;t=function(V){var b={},a={};return _.G(Rpb,{className:_.jQ("ytdMiniplayerComponentResizer",(b.ytdMiniplayerComponentResizerDisabled=function(){return V===D.horizontalAlignment()||V===D.verticalAlignment()},b.ytdMiniplayerComponentResizerNorth=V==="north",b.ytdMiniplayerComponentResizerEast=V==="east",b.ytdMiniplayerComponentResizerSouth=V==="south",b.ytdMiniplayerComponentResizerWest=V==="west",b)),
onDragStart:function(){e(D.currentMiniplayerSize());if(D.onResizeStart)D.onResizeStart()},
onDrag:function(w){V!=="north"&&V!=="west"||w.scale(-1);var h;w=(h=V==="north"||V==="south")?w.y:w.x;var K=D.currentAspectRatio();h&&K>=1?w*=K:!h&&K<1&&(w/=K);h=w;D.onResize(H()+h)}},_.G("div",{class:_.jQ("ytdMiniplayerComponentResizerCorner",(a.ytdMiniplayerComponentResizerNorthCorner=V==="north",a.ytdMiniplayerComponentResizerEastCorner=V==="east",a.ytdMiniplayerComponentResizerSouthCorner=V==="south",a.ytdMiniplayerComponentResizerWestCorner=V==="west",a))}))};
return _.G("div",{class:"ytdMiniplayerComponentResizers"},t("north"),t("east"),t("south"),t("west"))},"Dj");var W7b=16/9;_.hB(_.l(function(){var D=_.DY("ytd-miniplayer"),t=_.F(_.KR(new _.O5(NaN,NaN),void 0,"GhwGi")),H=t.next().value,e=t.next().value;t=_.F(_.KR(!1,void 0,"YCGMub"));var V=t.next().value,b=t.next().value;t=_.F(_.KR(!1,void 0,"tMABIb"));var a=t.next().value,w=t.next().value;t=_.F(_.KR(!1,void 0,"XAbRxc"));var h=t.next().value,K=t.next().value;t=_.F(_.KR(!1,void 0,"qcycIb"));var N=t.next().value,k=t.next().value;t=_.F(_.KR(!1,void 0,"HJauAf"));var T=t.next().value,c=t.next().value;t=_.F(_.KR(!1,void 0,"P0Rfsf"));
var U=t.next().value,S=t.next().value;t=_.F(_.KR(W7b,void 0,"mfCCDe"));var L=t.next().value,J=t.next().value,g=_.F(_.KR(!1,void 0,"QfcC7b"));t=g.next().value;var Q=g.next().value;g=_.F(_.KR(!1,void 0,"armgtc"));var u=g.next().value,R=g.next().value;g=_.F(_.KR(void 0,void 0,"yK0pGf"));var I=g.next().value,tT=g.next().value;g=_.F(_.KR(_.YC("HTML_DIR")==="rtl"?"west":"east",void 0,"GHCzub"));var ZV=g.next().value,ED=g.next().value;g=_.F(_.KR("south",void 0,"aWTWh"));var o$=g.next().value,jV=g.next().value;
g=_.F(_.KR(400,void 0,"IY6bpb"));var i8=g.next().value,g6=g.next().value,Mu=_.qS().resolve(_.dL).miniplayerPropSignalMap[0],LQ=Mu.data,DO=Mu.externalPlaylistData;g=Mu.toastData;var fQ=Mu.playabilityStatus,yA=Mu.isReadyToResume,T4=Mu.isDisabled,Mw=Mu.watchWhile,X6=Mu.playerVe,yZ=Mu.expandVe,kQ=Mu.closeVe,FX=Mu.readyToResumeVe,qw=Mu.readyToResumeCloseVe,oB=Mu.repositionVe,ZO=Mu.resizeVe;Mu=_.F(_.rm(yA));var Nw=Mu.next().value,bY=Mu.next().value,P_=!1,QV=!1,Zf;_.XH(function(){e(_.n_());D.value.addEventListener("animationend",
function(Yv){Yv.target===D.value&&(c(!1),S(!1))});
qGb(D.value)});
_.z0("yt-window-resized",function(Yv){Yv&&e(Yv)});
var ua=function(){Zf&&J(Zf.getVideoAspectRatio())},$Q=function(){if(Zf){var Yv=Zf.getPlayerState()===1;
Nw()&&Yv&&bY(!1)}},ia=function(){var Yv=yZ();
if(Yv){var d4=_.v3(3);d4&&_.tV(d4,Yv)}},jf=function(){var Yv=kQ(),d4=qw();
Yv&&_.tV(_.v3(3),Yv);yA()&&d4&&_.tV(_.v3(3),d4)};
_.z0("yt-activate-miniplayer",function(Yv){var d4;return _.Z(function(Wt){if(Wt.nextAddress==1)return V()?Wt.return():Wt.yield((d4=_.qS().resolve(_.dL).getPlayerElement())==null?void 0:d4.getPlayerPromise(),2);Zf=Wt.yieldResult;if(!Zf)return Wt.return();!u()&&_.r("kevlar_watch_while_v2")&&(jV(Yv&&!_.r("kevlar_watch_while_bottom_align")?"north":"south"),ED(_.YC("HTML_DIR")==="rtl"?"west":"east"));var bM=Zf;bM.addEventListener("onVideoDataChange",ua);bM.addEventListener("onStateChange",$Q);bM.addEventListener("onExpandMiniplayer",
ia);bM.addEventListener("onCloseMiniplayer",jf);J(Zf.getVideoAspectRatio());b(!0);bse()||c(!0);_.n2(Wt)})});
_.z0("yt-deactivate-miniplayer",function(Yv){return _.Z(function(d4){if(!V())return d4.return();b(!1);bY(!1);S(Yv);k(!1);w(!1);if(Zf){var Wt=Zf;Wt.removeEventListener("onVideoDataChange",ua);Wt.removeEventListener("onStateChange",$Q);Wt.removeEventListener("onExpandMiniplayer",ia);Wt.removeEventListener("onCloseMiniplayer",jf)}bse()||c(!0);_.n2(d4)})});
var TH=function(){return!(Mw()&&_.r("kevlar_watch_while_modern"))},Hv=function(){var Yv;
return!((Yv=DO())==null||!Yv.contents)},EF=function(){var Yv=i8();
var d4=H();d4=Math.min(Math.min(d4.width,d4.height)-32,720);var Wt=L(),bM=TH(),AZ=Hv()&&a(),z7=Math.min(Yv,d4);Yv=new _.O5(192,bM?116:192);Wt=new _.O5(AZ?W7b:Wt,1);z7=new _.O5(z7,bM?z7-76:z7);z7=Wt.aspectRatio()>z7.aspectRatio()?z7.width/Wt.width:z7.height/Wt.height;Wt=Wt.scale(z7);Yv.width<=Wt.width&&Yv.height<=Wt.height||(Yv=Wt.aspectRatio()<=Yv.aspectRatio()?Yv.width/Wt.width:Yv.height/Wt.height,Wt.scale(Yv),Wt.width=Math.min(Wt.width,d4),Wt.height=Math.min(Wt.height,d4));return new _.O5(Wt.width,
_.A8(192,Wt.height+Zs4(bM,AZ),720))},Sr=function(){var Yv=EF(),d4=TH(),Wt=Hv()&&a();
return new _.O5(Yv.width,Yv.height-Zs4(d4,Wt))},X9=function(){var Yv=function(d4){d4.target===D.value&&N()&&(k(!1),D.value.removeEventListener("transitionend",Yv))};
bse()||(D.value.addEventListener("transitionend",Yv),k(!0));w(!a())};
_.Mp(function(){var Yv=X6(),d4=_.v3(3),Wt=_.lo(3);if(d4&&Wt&&Yv){_.Q$(d4,Wt,Yv);Wt=oB();var bM=ZO(),AZ=yZ(),z7=kQ(),AW=qw();AZ&&z7&&AW&&(_.y$(d4,Yv,[AZ,z7,AW]),_.zf(d4,[AZ,z7]));Wt&&bM&&_.y$(d4,Yv,[Wt,bM])}},"DuFzOc");
_.Mp(function(){var Yv=FX();if(Yv){var d4=_.v3(0),Wt=_.lo(0);d4&&Wt&&(_.Q$(d4,Wt,Yv),_.zf(d4,[Yv]))}},"vwRnmc");
Mu={};return _.G("ytd-miniplayer",{el:D,class:_.jQ("ytdMiniplayerComponentHost",(Mu.ytdMiniplayerComponentVisible=function(){return V()||T()},Mu.ytdMiniplayerComponentAnimatingSnap=h,Mu.ytdMiniplayerComponentAnimatingPlaylistExpand=N,Mu.ytdMiniplayerComponentAnimatingFade=T,Mu),function(){if(T()){var Yv=o$();
var d4=V(),Wt=U();Yv=d4?Yv==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":Wt?Yv==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":Yv==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else Yv="";return Yv}),
style:_.O7({top:function(){return o$()==="north"?"16px":""},
right:function(){return ZV()==="east"?"16px":""},
bottom:function(){return o$()==="south"?"16px":""},
left:function(){return ZV()==="west"?"16px":""},
width:function(){return EF().width+"px"},
height:function(){return EF().height+"px"},
transform:function(){var Yv=I();return Yv?"translate("+Yv.x+"px, "+Yv.y+"px)":""}})},_.G("div",{class:"ytdMiniplayerComponentContent"},_.G(Rpb,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(Yv){var d4=wXg(ZV(),o$(),H(),EF(),I()),Wt=Sr();Math.abs(Yv.clientY-(d4.y+Wt.height))>15?(Q(!0),Yv=_.v3(3),d4=oB(),P_||(P_=!0,Yv&&d4&&_.zf(Yv,[d4])),Yv&&d4&&_.tV(Yv,d4)):Yv.preventDefault()},
onDrag:function(Yv){tT(Yv)},
onDragEnd:function(){var Yv=FTe(wXg(ZV(),o$(),H(),EF(),I()),H(),EF()),d4=am4(ZV(),o$(),H(),EF()),Wt=am4(Yv.horizontalAlignment,Yv.verticalAlignment,H(),EF());Wt=new _.lR(Wt.x-d4.x,Wt.y-d4.y);var bM;d4=d4.y+(((bM=I())==null?void 0:bM.y)||0)+EF().height/2;var AZ=function(){ZV()===Yv.horizontalAlignment&&o$()===Yv.verticalAlignment||R(!0);ED(Yv.horizontalAlignment);jV(Yv.verticalAlignment);tT(void 0)},z7=function(AW){AW.target===D.value&&h()&&(K(!1),AZ(),D.value.removeEventListener("transitionend",z7))};
Q(!1);o$()==="south"&&d4>H().height?(AZ(),_.qS().resolve(_.dL).close()):(D.value.addEventListener("transitionend",z7),K(!0),tT(Wt))}},_.G(_.E,{cond:V,
then:function(){return _.G(_.UcF,{isDisabled:T4,playabilityStatus:fQ,size:Sr})}}),_.G(_.E,{cond:TH,
then:function(){return _.G(_.rei,{isReadyToResume:Nw,data:LQ,expanded:a,onExpandClick:X9,playlistData:DO})}}),_.G(_.E,{cond:t,
then:function(){return _.G("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.G(_.E,{cond:function(){return Hv()&&a()||N()},
then:function(){return _.G(_.KDO,{className:"ytdMiniplayerComponentPlaylistPanel",data:DO,hideHeaderText:!0,withinMiniplayer:!0})}}),_.G("div",{class:"ytdMiniplayerComponentToast"},_.G(_.oOY,{toastData:g}))),_.G(uev,{onResize:function(Yv){g6(_.A8(192,Yv,720))},
onResizeStart:function(){var Yv=_.v3(3),d4=ZO();QV||(QV=!0,Yv&&d4&&_.zf(Yv,[d4]));Yv&&d4&&_.tV(Yv,d4)},
currentAspectRatio:L,currentMiniplayerSize:i8,horizontalAlignment:ZV,verticalAlignment:o$}))},"Gj"),"ytd-miniplayer",{});var IWO=_.uO.persistentPanelVisibleSelector,$u=function(){var D=_.X.apply(this,arguments)||this;D.tabGesturesIsActive=!1;D.persistentPanelEnabled=_.r("enable_ai_companion");D.hasDelegation=!1;D.darkerDarkTheme=_.r("web_darker_dark_theme");D.isFrostedGlassInitialized=!1;D.frostedGlassExp=_.r("web_frosted_glass");D.hasPendingWatchNavigation=!1;D.mastheadHiddenFocusWithinKillswitch=_.r("web_masthead_hidden_focus_within_killswitch");D.clientOnlyWizTooltipsEnabled=_.r("enable_client_only_wiz_tooltips")&&
HTMLElement.prototype.hasOwnProperty("popover");D.scrollAtTop=!0;D.guideScrollTop=0;D.isTheaterModeSession=_.lh("START_IN_THEATER_MODE");D.iMaxTheaterMode=_.r("web_watch_imax_theater_mode");D.isFullWindowSession=_.lh("START_IN_FULL_WINDOW_MODE");D.hasCreateFamilyDialog=!1;D.mastheadHeight=56;D.networkStatusManager=new _.yp;D.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"};D.dynamicActionMap={"yt-run-attestation-command":function(t){var H=
_.HQF.instance,e=_.O(t,_.brn);return e?_.r("use_rta_manager_for_async")&&C1t()?FNY(H,e,t.clickTrackingParams):qtH(H,e,t.clickTrackingParams):_.Aj(Error("ui"))}};
D.isFrostedGlassDisabled=!1;D.isChannelOrPlaylistPage=!1;return D};
_.P($u,_.X);_.q=$u.prototype;_.q.created=function(){var D=_.qS();_.r("kevlar_clear_duplicate_pref_cookie")&&_.C7(_.Jy,function(){var t=_.ri.get("PREF");t&&!/f\d=/.test(t)&&(t=_.sa("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=t?"PREF=null;domain="+t+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.r("gzip_gel_with_worker")&&_.yhT();_.r("jspb_serialize_with_worker")&&tRH();_.r("web_worker_availability_check")&&z7b();_.r("nwl_init_killswitch")||zLt().then(function(){_.Jy.addLowPriorityJob(UXt)});
this.pageManagerAttachedPromise=_.z3();this.ytdAppBehavior.loadDepsPromise=_.vl([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.W5(this.onThrottledScroll,200,this);_.r("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);RLe();CtZ=!!_.RD("ytappsettings.initialized");wu=_.RD("ytappsettings.previousValue");UQH=_.RD("ytappsettings.previousSnapshotTime");CtZ||(CtZ=!0,oee());MQF();S7Z();_.JZ("DEFERRED_DETACH",
_.r("kevlar_tuner_should_defer_detach"));_.JZ("REUSE_COMPONENTS",!0);_.JZ("STAMPER_STABLE_LIST",!0);_.JZ("SCHEDULED_LAZY_LIST",!0);_.JZ("openPopupConfig",L8Q);_.JZ("useClickHandler",!0);_.r("kevlar_shell_cleanup")&&_.Jy.addLowPriorityJob(L1H.bind(this,_.VA.caches));_.lh("IS_SHELL_LOAD")&&_.JE({shellStartupDurationMs:Math.round((0,_.aP)()-_.Xy())});gG4(this.networkStatusManager);_.r("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",mIH(Y$v)),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!",
mIH(lWe)),console.log("%cVisit http://go/join-youtube-web to apply today.",mIH(vUO)));_.Z7b(D.resolve(_.D5),1E3)};
_.q.ready=function(){var D=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var t=sfQ();t&&!_.r("external_fullscreen_killswitch")&&document.addEventListener(t,this.setFullscreen.bind(this));(t=window.matchMedia("(prefers-color-scheme: dark)"))&&t.addEventListener&&t.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(t=_.qS().resolve(_.by(_.ZV3)))t.subscribe("navigation-start",
function(H){H.destinationPageSubtype==="watch"&&(D.hasPendingWatchNavigation=!0)}),t.subscribe("navigation-end",function(H){H.destinationPageSubtype==="watch"&&(D.hasPendingWatchNavigation=!1)})};
_.q.attached=function(){var D=this;_.EK().processSignal("ci");_.r("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.KDf?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.EG(_.EZA(),"SUCCESS");this.updateIconSet();_.Zk(this.guideInnerContent,!1);_.BM().initVisibilityObserver();this.guideService.guideElement=this.guide;var t=document.createElement("ytd-miniplayer"),H=_.Kg(this.hostElement).querySelector("#content");
_.Kg(this.hostElement).insertBefore(t,H);_.EK().processSignal("ma");_.qS().resolve(_.dL).init(t);this.persistentPanelEnabled&&_.N1H(_.qS().resolve(_.VD),this.persistentPanelContainer,"APP");_.lh("IS_SHELL_LOAD")&&(H=document.createElement("ytd-network-status-banner"),_.Kg(this.hostElement).insertBefore(H,t));_.r("kevlar_right_click_on_lockups")&&_.wr._onCaptureClick&&document.addEventListener("contextmenu",_.wr._onCaptureClick.bind(_.wr),!0);var e=function(){var V=_.nE("yt-page-navigation-progress");
_.Kg(D.hostElement).appendChild(V)};
setTimeout(function(){_.EK().parkOrScheduleJob(e,0,"eocs",16)},0);
_.r("service_worker_push_enabled")&&_.C7(_.Jy,w74);_.ya(_.Qa.getInstance(),this.dynamicActionMap,this.hostElement);_.Gf(this.hostElement,"ytd-app-attached");_.EK().processSignal("aa");OCg(this.hostElement);_.bg("gapi.load",_.WKD);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.C7(_.Jy,
function(){var V=document.createElement("ytd-video-preview");_.Kg(_.Kg(D.hostElement).querySelector("#video-preview")).appendChild(V)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.C7(_.Jy,function(){fTe();D.registerWithViewTransitionManager()});
if(_.L_()&&this.isAppDarkTheme()!==_.XO())this.onDarkModeToggledAction();else t=_.f_()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==t&&(_.r("enable_dark_theme_only_on_shorts")?_.D9(_.r("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Bn(window.location.href,{theme:"dark"})):_.Yw(new _.nZ("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(Yve=new J9H(this.hostElement)),fWg=new XEH(this.hostElement),S$F=new Mhv(this.hostElement),b3g=new V3Z(this.hostElement)};
_.q.getThemeSettingsToLog=function(){var D=_.f_()==="USER_INTERFACE_THEME_DARK";D=_.L_()?_.XO()?"os-dark":"os-light":D?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:D,cookiesEnabled:_.Ua()}};
_.q.detached=function(){_.sT(this.guideInnerContent);_.Jy.cancelJob(q9);q9=0;_.Jy.cancelJob(aG);aG=0;_.ZbX(rVF);rVF.length=0;jfF=_.IGD=null;_.BM().dispose();_.r("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.B$(_.Qa.getInstance(),Yve.playlistHandlerActionMap,Yve.JSC$32085_clientRoot);_.B$(_.Qa.getInstance(),fWg.downloadManagerActionMap,fWg.JSC$32375_clientRoot);_.B$(_.Qa.getInstance(),S$F.feedbackCollectorActionMap,S$F.JSC$32370_clientRoot);
for(var D=_.F(b3g.eventListeners),t=D.next();!t.done;t=D.next()){var H=_.F(t.value);t=H.next().value;H=H.next().value;H=_.F(H);for(var e=H.next();!e.done;e=H.next()){var V=_.F(e.value);e=V.next().value;V=V.next().value;t.removeEventListener(e,V)}}_.B$(_.Qa.getInstance(),b3g.autonavPauseActionMap,b3g.JSC$20030_clientRoot)};
_.q.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Ph().getFlag(186)};
_.q.computeIsInlinePreviewEnabled=function(D,t,H){return!H&&_.qpv({miniplayerIsActive:D,miniplayerPlaybackState:t})};
_.q.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.hV({type:"SET_FROSTED_GLASS_MODE",payload:!_.r("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"}))};
_.q.computeIsFrostedGlassDisabled=function(D,t,H,e){return D||t||H||e&&_.r("web_frosted_glass_disable_watch")};
_.q.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.r("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.q.computeIsHomePage=function(D,t){if(!D||t==null||!t.endpoint)return!1;var H;return((H=_.O(t.endpoint,_.UL))==null?void 0:H.browseId)==="FEwhat_to_watch"};
_.q.updateIsChannelOrPlaylistPage=function(){if(_.r("web_frosted_glass")){var D,t,H=(t=(D=_.qS().resolve(_.by(_.bO)))==null?void 0:D.getCurrentPage())==null?void 0:t.pageSubtype;this.isChannelOrPlaylistPage=H?["channel","channels","playlist"].includes(H):!1}};
_.q.scheduleFrostedGlassInitialization=function(){var D=this;_.r("web_frosted_glass")&&_.EK().parkOrScheduleJob(function(){D.isFrostedGlassInitialized=!0},0,_.jl(["eocs",
"cr"]),300)};
_.q.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.M3a(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.hV({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.hV({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.q.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(jSt(!0))};
_.q.onYtSignalActionRequestPersistentStorage=function(){if(!_.r("request_persistent_storage_killswitch")){var D=_.qS().resolve(_.t2F);D.cachedPersistStatePromise||(D.cachedPersistStatePromise=ljF())}};
_.q.handleYtChannelCreationFormEndpoints=function(D){D&&this.ytComponentBehavior.resolveCommand(D)};
_.q.handleShowEngagementPanelEndpoint=function(D){D&&this.ytComponentBehavior.resolveCommand(D)};
_.q.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(jSt(!1))};
_.q.initIconDefs=function(D,t){var H=document.createElement("iron-iconset-svg");H.name=D;D=document.createElementNS("http://www.w3.org/2000/svg","svg");H.appendChild(D);D.appendChild(t);document.body.appendChild(H);return H};
_.q.onWindowResized=function(){_.ET(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var D=_.mO.getInstance();D.documentWidth_=document.body.clientWidth;XXF(D)};
_.q.onWindowScrolled=function(){var D=_.qS().resolve(_.bO).getCurrentPage();if(D!=null&&D.getScrollTop){var t=this.ytdReduxBehavior,H=t.dispatch;D=D.getScrollTop()<=0;H.call(t,_.hV({type:"SET_SCROLL_AT_TOP",payload:D}))}};
_.q.guideIsVisibleButNotPersistentSelectorChanged=function(){var D=_.qS().resolve(_.bO).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=D.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"),
D.setScrollTop(this.guideScrollTop));_.Kl(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.q.getCurrentPageScrollableElementType=function(){var D=_.qS().resolve(_.bO).getCurrentPage();if(D&&D.getPageScrollingElement())return D.getPageScrollingElement().nodeName};
_.q.observeGuideVisibility=function(){var D=_.mO.getInstance(),t=this.miniGuideVisible;D.guidePersistentAndVisible_=this.guidePersistentAndVisible;D.miniGuideVisible_=t;XXF(D)};
_.q.observePersistentPanelVisibility=function(){var D=_.mO.getInstance();D.persistentPanelVisible_=this.persistentPanelVisible;XXF(D)};
_.q.handleEduDismissAction=function(D){D&&D.eduDismissAction&&(_.ET(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.Laa.getInstance(),_.np.set(D.eduDismissAction.key+"-dismissed",!0))};
_.q.handleEduImpressionAction=function(D){if(D&&D.eduImpressionAction){var t=_.Laa.getInstance();D=D.eduImpressionAction.key;t.JSC$13026_eduDisplayedThisLoad_[_.fJf[D].setKey||D]=!0;_.np.set(D+"-impression",parseInt(_.np.get(D+"-impression")||0,10)+1)}};
_.q.onYtSignalActionConfirmMentionsEdu=function(){_.ET(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.Si.getInstance();_.MC.set("edu-dismissed",!0)};
_.q.onYtSignalActionRecordMentionsEduImpression=function(){_.Si.getInstance();var D=_.MC.set,t=parseInt(_.MC.get("edu-impressions"),10);D.call(_.MC,"edu-impressions",(isFinite(t)?t:0)+1)};
_.q.onYtPageManagerAttached=function(D){var t;((t=_.qy(D))==null?void 0:t.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.q.onInvokeInstrumentManagerAction=function(D,t){Vwg(t,D)};
_.q.updateIconSet=function(){var D=this.hostElement.querySelector("#masthead");if(D){var t=_.Ny(D),H=t.querySelector("g#yt-logo-updated");H&&(D=document.createElementNS("http://www.w3.org/2000/svg","defs"),D.appendChild(H.cloneNode(!0)),(t=t.querySelector("g#yt-logo-red-updated"))&&D.appendChild(t.cloneNode(!0)),this.initIconDefs("yt-logos-ext",D))}};
_.q.updateMastheadData=function(){var D=this,t,H,e,V,b;return _.Z(function(a){if(a.nextAddress==1){t=D.data;H=D.hostElement.querySelector("#masthead");if(!H)return a.return();_.Vi(D,function(){H.data=D.topbarData});
if(!D.get("response.topbar",t)||D.get("response.topbar.responseContext.maxAgeSeconds",t)===0)return a.jumpTo(0);if(e=_.qS().resolve(_.XT))return a.yield(e(),6);V=_.qS().resolve(_.Jk);return a.yield(V.put("service:topbar:fallback",new _.Yn({innertubeResponse:D.get("response.topbar",t)})),0)}return(b=a.yieldResult)?a.yield(b.put("service:topbar:fallback",new _.Yn({innertubeResponse:D.get("response.topbar",t)})),0):a.jumpTo(0)})};
_.q.computeTopbarData=function(D){if(!D)return null;var t;return this.isShortsPage&&this.topbarData&&!_.O((t=D.response)==null?void 0:t.topbar,ic4)?this.topbarData:D.response&&"topbar"in D.response?_.O(D.response.topbar,ic4)||null:null};
_.q.onSetTheaterModeEnabled=function(D,t){this.isTheaterModeSession=t.enabled;this.setTheaterModeStyles(t.enabled)};
_.q.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.q.onDarkModeToggledAction=function(){var D=_.TW(window.location.href);if(!_.qb$(D)){(D=!!_.yc(window.location.href).themeRefresh)&&_.Yw(new _.nZ("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!D){oee();D={themeRefresh:1};var t=_.qS().resolve(_.bO);if(t.isOnWatch()){var H,e;t=((H=t.getPlayerFromWatch())==null?void 0:(e=H.getPlayer())==null?void 0:e.getCurrentTime())||0;t>=1&&(D.time_continue=Math.floor(t))}_.Ua()||_.f_()!=="USER_INTERFACE_THEME_DARK"||(D.theme="dark");_.D9(_.Bn(window.location.href,
D))}_.r("web_appshell_refresh_trigger")&&_.VA.caches&&this.refreshAppShellResponse();H=_.yi(window.location.href);_.po(_.qS().resolve(_.dt),_.Fy(H,"theme"))}};
_.q.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.q.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.q.onPlayerFullscreen=function(D){_.a4();this.playerFullscreen=D};
_.q.setRestrictedMode=function(D){var t=_.Ph();_.nl(0,58,D);t.save();_.qS().resolve(_.yN).reload()};
_.q.onPageChanged=function(D){D.detail.newPageType==="ytd-watch-flexy"||D.detail.newPageType==="ytd-watch-fixie"||D.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.mT("WEB_PAGE_TYPE_WATCH")):D.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.mT("WEB_PAGE_TYPE_SHORTS")):D.detail.newPageType==="ytd-browse"&&D.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.mT("WEB_PAGE_TYPE_MINI_APP")):_.r("web_frosted_glass")&&D.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.mT("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.mT("WEB_PAGE_TYPE_UNKNOWN"));D.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.q.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.q.onGuideToggleTap=function(){_.Gf(this.hostElement,"yt-guide-toggle")};
_.q.onGuideToggleHover=function(){_.Gf(this.hostElement,"yt-guide-hover")};
_.q.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.q.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.q.setMastheadTheme=function(){var D=_.Ny(this.hostElement).querySelector("#masthead");D&&(D.dark=D.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),D.isDarkThemeForced=!1)};
_.q.onRequestPanelModeChange=function(D,t){this.hideHeaderShadow=t.mode!=="seamed"};
_.q.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.q.onDrawerIronSelect=function(D){_.qy(D).id==="guide"&&this.processDrawerIronSelect()};
_.q.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var D="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(D="opened"));_.Gf(this.hostElement,"yt-autonav-pause-guide-"+D)};
_.q.onAddElementToApp=function(D){_.Kg(this.hostElement).appendChild(D.detail)};
_.q.onThrottledScroll=function(){var D=_.qS().resolve(_.bO).getCurrentPage();D&&(this.scrollAtTop=D.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.q.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.q.setFullscreen=function(){if(_.r("external_fullscreen")||!this.isWatchPage){var D=_.r("kevlar_fullerscreen_root_only_killswitch")?!!_.a4():!!_.a4()&&_.a4()===document.documentElement;D=(this.isWatchPage||_.r("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(D||this.isFullWindowSession);this.fullscreen!==D&&((this.fullscreen=D)&&_.Kl(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.b_().dispatch(_.jif(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.ET(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.q.setFullscreenLoggingForShorts=function(D){var t,H,e;return _.Z(function(V){if(V.nextAddress==1)return V.yield((t=_.FA())==null?void 0:t.getPlayerPromise(),2);H=V.yieldResult;(e=H)==null||e.setAppFullscreen(D);_.n2(V)})};
_.q.updateMastheadCssHeight=function(){var D=this.mastheadHeight;this.fullscreen&&(D=0);_.jZ(this.hostElement,{"--ytd-masthead-height":D+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.q.updateNetworkStatusBannerDisplayStatus=function(){var D="unset";this.fullscreen&&(D="none");_.jZ(this.hostElement,{"--ytd-network-status-banner-display":D})};
_.q.updateNetworkStatusBannerCssHeight=function(){var D="unset";this.fullscreen&&(D="0px");_.jZ(this.hostElement,{"--ytd-network-status-banner-max-height":D})};
_.q.updateScrollAndMasthead=function(D,t,H,e){this.iMaxTheaterMode||(e=!1);var V=_.qS().resolve(_.bO).getCurrentPage();D||t||e?(document.body.classList.add("no-scroll"),V.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.iK(this,this.onScroll)),V.setScrollTop(0),_.jZ(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.kA()+"px"})):H?_.Gf(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Gf(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
V.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.iK(this,this.onScroll)));this.mastheadHidden=D||t||H;this.updateMastheadCssHeight();_.r("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.q.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.q.onYtNavigateAction=function(D){D=this.get("navigateAction.endpoint",D);_.Gf(this.hostElement,"yt-navigate",{endpoint:D})};
_.q.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var D=document.createElement("yt-create-family-dialog");_.Kg(this.hostElement).appendChild(D);this.hasCreateFamilyDialog=!0}};
_.q.onSetPushNotificationsEnabledCommand=function(D){var t=this,H=_.O(D,$DO);H&&typeof H.enabled==="boolean"&&(Notification.permission!=="granted"?Voi().then(function(){Notification.permission==="granted"?(pH4(!H.enabled).then(RGb),H.successAction&&_.NJ(t.hostElement,[H.successAction])):H.failureAction&&_.NJ(t.hostElement,[H.failureAction])}):(pH4(!H.enabled).then(RGb),H.successAction&&_.NJ(this.hostElement,[H.successAction])))};
_.q.onYtSignalActionEnableChromeNotifications=function(){b_v(!0)};
_.q.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.O(this.topbarData.hotkeyDialog,UDQ)}}})};
_.q.onYtSignalActionShowKeyboardShortcutDialog=function(){_.ET(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.q.onYtEndpointChangeHandler=function(D,t){var H=_.Vd(_.QN);H.pendingPrefetchJob_&&(t=!(!t||t.autonav!="1"),H.pendingPrefetchJob_.resolve(D&&_.QMV(D)?_.yk6(D,t):""),H.pendingPrefetchJob_=null);_.ET(this.hostElement,"yt-pause-active-page-context");_.ET(this.hostElement,"ytd-log-youthere-nav");_.ET(this.hostElement,"yt-prepare-page-dispose")};
_.q.handleCommandWithCommandHandler=function(D,t){_.$P.instance.resolveCommand(D,{form:{element:t}})};
_.q.onYtTimedCommand=function(D){var t=this;D=_.O(D,Zc4);var H=D.command;H&&_.NP(_.Jy,function(){var e=_.O(H,_.B3a);e?(_.$P.instance.resolveCommand(H),t.maybeLogGetAnswerRequestTick(e)):_.k0(t.hostElement,[H],t.hostElement)},D.timeoutMs||0)};
_.q.maybeLogGetAnswerRequestTick=function(D){D&&D.isFirstRequest&&(_.l1("search_overview_answer"),_.vh("so_rq",void 0,"search_overview_answer"))};
_.q.onYtSignalActionSkipNavigation=function(){var D=_.qS().resolve(_.bO).getCurrentPage();_.tp(D)};
_.q.onYtSignalActionCopyDebugData=function(){TnH()};
_.q.handleEntityUpdateCommand=function(D){_.UO(_.O(D,_.oIa).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.q.logFlowLoggingEventCommand=function(D){if(D=_.O(D,_.glX))if(D.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var t=D.flowEventNamespace,H=D.flowEventType,e=D.flowType;e&&t&&H&&_.vnR(_.c7(t,H,D.flowEventMetadata),e)}else{t=_.$g();H=D.flowEventNamespace;e=D.flowEventType;var V=D.flowType;V&&H&&e&&_.jo(t,_.c7(H,e,D.flowEventMetadata),V,D.flowNonce)}};
_.q.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.q.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.q.onTouchStart=function(){var D=_.zi();_.v3()&&_.IH(D.JSC$13254_screenManager,{visualElement:D.ve})};
_.q.handleSelectLanguageCommand=function(D){if(D=_.O(D,TBY).hl){var t=_.Ph();t.set("hl",D);t.save();_.qS().resolve(_.yN).reload()}};
_.q.handleConfirmDialogEndpoint=function(D){(D=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(D))&&this.ytOpenPopupBehavior.openPopup(D)};
_.q.handleOpenPopupNavigationEndpoints=function(D,t){_.r("web_button_rework")&&(D=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(D))&&this.ytOpenPopupBehavior.openPopup(D,t)};
_.q.handleSaveCommandToSessionStorage=function(D){if(D=_.O(D,_.suB)){var t=D.key;t&&D.command&&window.sessionStorage.setItem(t,JSON.stringify(D.command))}};
_.q.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(D){D&&D.active&&D.active.postMessage({type:"refresh_shell"})}).catch(function(D){D.name!=="SecurityError"&&_.gT(D)})};
_.q.onDeviceThemeChanged=function(){var D=_.XO();_.nl(_.Ph(),185,D);_.Ph().save()};
_.q.handleYtRegisterPromoCommand=function(D){if(_.O(D,jyH)){var t=_.qS().resolve(_.bO).getCurrentPage()||this.hostElement;Est().registerPromoCommand(_.O(D,jyH),t)}};
_.q.onYtNavigateHomeAction=function(){if(!_.r("kevlar_miniplayer_navigate_home_from_app_killswitch")){var D,t,H,e,V=(e=(D=this.topbarData)==null?void 0:(t=D.logo)==null?void 0:(H=t.topbarLogoRenderer)==null?void 0:H.endpoint)!=null?e:_.xS;this.ytComponentBehavior.resolveCommand(V)}};
_.q.onYtLocationCollectionCommand=function(D){SEF(_.O(D,fMO))};
_.q.onYtGetLocationCommand=function(D){ABH(_.O(D,Xwb),this)};
_.q.updateRenderGuideFromBinding=function(D){this.renderGuide=D.detail.value};
_.q.updateGuidePersistentAndVisibleFromBinding=function(D){this.guidePersistentAndVisible=D.detail.value};
_.q.updateMiniGuideVisibleFromBinding=function(D){this.miniGuideVisible=D.detail.value};
_.q.onThemeSelected=function(D,t){var H=_.Ph(),e=D||t?D:_.XO(),V=(e&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!e&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.qb$(_.TW(window.location.href));_.nl(0,165,D);_.nl(0,174,t);H.save();V&&_.ET(this.hostElement,"yt-dark-mode-toggled-action",[e]);_.ET(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.q.getCurrentTheme=function(){return _.L_()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.f_()};
_.q.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.q.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.q.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.q.handleShowConsentPrimitive=function(D){var t=this,H,e;return _.Z(function(V){if(V.nextAddress==1){try{H=(e=_.FA())==null?void 0:e.getPlayerPromise()}catch(b){}return V.yield(ylF(D,H),2)}_.ET(t.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.n2(V)})};
_.q.handleSelectActiveIdentityEndpointInternal=function(D){_.B7();D=_.O(D,_.E$n);if(D!=null&&D.supportedTokens){D=_.F(D.supportedTokens);for(var t=D.next();!t.done;t=D.next())t=t.value,t.accountSigninToken&&_.D9(t.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.q.handleUpdatePermissionRoleCommand=function(D){if(D=_.O(D,_.KeB)){var t;this.hasDelegation=!((t=_.O(D.renderer,_.ESV))==null||!t.status)}};
_.q.registerWithViewTransitionManager=function(){var D=_.qS().resolve(_.by(_.R_));if(D){var t,H=(t=this.guide)==null?void 0:t.querySelector("#scrim"),e;t=(e=this.guide)==null?void 0:e.querySelector("#contentContainer");H&&t&&D.isAnyTransitionEnabled&&(e={},D.viewTransitionCoordinator.registerElement(H,(e.slide="app-drawer-scrim-page-transition",e["lockup-to-watch"]="app-drawer-scrim-page-transition",e["learning-journey"]="app-drawer-scrim-page-transition",e)),H={},D.viewTransitionCoordinator.registerElement(t,
(H.slide="app-drawer-container-page-transition",H["lockup-to-watch"]="app-drawer-container-page-transition",H["learning-journey"]="app-drawer-container-page-transition",H)))}};
_.ql.Object.defineProperties($u.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.r("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.ql.Object.defineProperties($u,{template:{configurable:!0,enumerable:!0,get:function(){if(UqF===void 0){var D=document.createElement("template");_.n(D,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n  <div id="persistent-panel-container" hidden="[[!persistentPanelEnabled]]" class="style-scope ytd-app"></div>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
D.content.insertBefore(_.W().content.cloneNode(!0),D.content.firstChild);UqF=D}D=UqF;return D}}});
$u.prototype.onOpenHotkeyDialog=$u.prototype.onOpenHotkeyDialog;$u.prototype.setFullscreen=$u.prototype.setFullscreen;$u.prototype.onAddElementToApp=$u.prototype.onAddElementToApp;$u.prototype.onDrawerIronSelect=$u.prototype.onDrawerIronSelect;$u.prototype.onGuideOpenButtonHover=$u.prototype.onGuideOpenButtonHover;$u.prototype.onRequestPanelModeChange=$u.prototype.onRequestPanelModeChange;$u.prototype.onPageDataUpdated=$u.prototype.onPageDataUpdated;$u.prototype.onPageChanged=$u.prototype.onPageChanged;
$u.prototype.onSetTheaterModeEnabled=$u.prototype.onSetTheaterModeEnabled;$u.prototype.updateMastheadData=$u.prototype.updateMastheadData;$u.prototype.onYtPageManagerAttached=$u.prototype.onYtPageManagerAttached;$u.prototype.observePersistentPanelVisibility=$u.prototype.observePersistentPanelVisibility;$u.prototype.observeGuideVisibility=$u.prototype.observeGuideVisibility;$u.prototype.guideIsVisibleButNotPersistentSelectorChanged=$u.prototype.guideIsVisibleButNotPersistentSelectorChanged;
$u.prototype.isInlinePreviewEnabledChanged=$u.prototype.isInlinePreviewEnabledChanged;$u.prototype.isWatchPageChanged=$u.prototype.isWatchPageChanged;$u.prototype.dispatchFrostedGlassMode=$u.prototype.dispatchFrostedGlassMode;_.d([_.C(_.sx),_.x("design:type",Object)],$u.prototype,"ytdReduxBehavior",void 0);_.d([_.C(_.yD.YtEventForwardingBehavior),_.x("design:type",Object)],$u.prototype,"ytEventForwardingBehavior",void 0);
_.d([_.C(_.vP.YtOpenPopupBehavior),_.x("design:type",Object)],$u.prototype,"ytOpenPopupBehavior",void 0);_.d([_.C(_.dW.YtActionHandlerBehavior),_.x("design:type",Object)],$u.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.C({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.Qa.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.r("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var D;((D=this.actionRouterNode.hostElement)!=null?D:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var D;((D=this.actionRouterNode.hostElement)!=null?D:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(D){this.actionRouter_.handleAction(D.detail)}}),
_.x("design:type",Object)],$u.prototype,"ytActionRouterBehavior",void 0);_.d([_.C($iY.YtdAppBehavior),_.x("design:type",Object)],$u.prototype,"ytdAppBehavior",void 0);_.d([_.C(_.pE.YtEndpointBehavior),_.x("design:type",Object)],$u.prototype,"ytEndpointBehavior",void 0);_.d([_.C(mqQ.YtEndpointHandlerWithYpcBehavior),_.x("design:type",Object)],$u.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.d([_.C(oUZ.YtLogYpcFlowCommandsBehavior),_.x("design:type",Object)],$u.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.d([_.C(_.y.YtRendererBehavior),_.x("design:type",Object)],$u.prototype,"ytRendererBehavior",void 0);_.d([_.C(_.Eg.YtComponentBehavior),_.x("design:type",Object)],$u.prototype,"ytComponentBehavior",void 0);_.d([_.M({selector:_.pnY}),_.x("design:type",Object)],$u.prototype,"tabGesturesIsActive",void 0);_.d([_.M(),_.x("design:type",Boolean)],$u.prototype,"renderGuide",void 0);
_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],$u.prototype,"guidePersistentAndVisible",void 0);_.d([_.M({selector:_.vCi}),_.x("design:type",Boolean)],$u.prototype,"guideIsVisibleButNotPersistent",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],$u.prototype,"standalone",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],$u.prototype,"miniGuideVisible",void 0);
_.d([_.M(),_.x("design:type",Object)],$u.prototype,"persistentPanelEnabled",void 0);_.d([_.M({selector:IWO,reflectToAttribute:!0}),_.x("design:type",Boolean)],$u.prototype,"persistentPanelVisible",void 0);_.d([_.M({selector:_.$CT}),_.x("design:type",Number)],$u.prototype,"miniplayerPlaybackState",void 0);_.d([_.M({selector:_.vH,reflectToAttribute:!0}),_.x("design:type",Boolean)],$u.prototype,"miniplayerIsActive",void 0);
_.d([_.M({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.x("design:type",Boolean)],$u.prototype,"isInlinePreviewEnabled",void 0);_.d([_.M(),_.x("design:type",Boolean)],$u.prototype,"isInlinePreviewDisabled",void 0);_.d([_.M({reflectToAttribute:!0,value:function(){return _.lh("START_IN_FULL_WINDOW_MODE")}}),
_.x("design:type",Boolean)],$u.prototype,"mastheadHidden",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],$u.prototype,"playerFullscreen",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],$u.prototype,"fullscreen",void 0);_.d([_.M({value:!1,reflectToAttribute:!0}),_.x("design:type",Boolean)],$u.prototype,"hideHeaderShadow",void 0);
_.d([_.M({value:{GUIDE_ALT_LABEL:_.OT("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.x("design:type",Object)],$u.prototype,"menuStrings",void 0);_.d([_.M({computed:"computeTopbarData(data)"}),_.x("design:type",Object)],$u.prototype,"topbarData",void 0);_.d([_.M({selector:_.kiD,reflectToAttribute:!0}),_.x("design:type",Boolean)],$u.prototype,"isWatchPage",void 0);_.d([_.M({selector:_.Tf$,reflectToAttribute:!0}),_.x("design:type",Boolean)],$u.prototype,"isShortsPage",void 0);
_.d([_.M({selector:function(D){return _.pC(D)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.x("design:type",Boolean)],$u.prototype,"isMiniAppPage",void 0);_.d([_.M({selector:function(D){return _.pC(D)==="WEB_PAGE_TYPE_BROWSE"}}),
_.x("design:type",Boolean)],$u.prototype,"isBrowsePage",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Boolean)],$u.prototype,"scrolling",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],$u.prototype,"hasDelegation",void 0);_.d([_.M({reflectToAttribute:!0,value:!1}),_.x("design:type",Boolean)],$u.prototype,"guideScrolledByTouch",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],$u.prototype,"darkerDarkTheme",void 0);
_.d([_.M(),_.x("design:type",Object)],$u.prototype,"isFrostedGlassInitialized",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],$u.prototype,"frostedGlassExp",void 0);_.d([_.M({selector:function(D){return D.ui.chipBarIsSticky}}),
_.x("design:type",Boolean)],$u.prototype,"chipBarIsSticky",void 0);_.d([_.M({computed:"computeIsHomePage(isBrowsePage, data)"}),_.x("design:type",Boolean)],$u.prototype,"isHomePage",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],$u.prototype,"hasPendingWatchNavigation",void 0);_.d([_.M({reflectToAttribute:!0}),_.x("design:type",Object)],$u.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.d([_.M(),_.x("design:type",Object)],$u.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.d([_.pV("guide"),_.x("design:type",Object)],$u.prototype,"guide",void 0);_.d([_.pV("guide-service"),_.x("design:type",wz4)],$u.prototype,"guideService",void 0);_.d([_.pV("guide-inner-content"),_.x("design:type",HTMLDivElement)],$u.prototype,"guideInnerContent",void 0);_.d([_.o5("#persistent-panel-container"),_.x("design:type",HTMLElement)],$u.prototype,"persistentPanelContainer",void 0);
_.d([_.M({selector:_.ip6}),_.x("design:type",String)],$u.prototype,"frostedGlassMode",void 0);_.d([_.Os("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$u.prototype,"dispatchFrostedGlassMode",null);_.d([_.M({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.x("design:type",Object)],$u.prototype,"isFrostedGlassDisabled",void 0);
_.d([_.Os("isWatchPage"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$u.prototype,"isWatchPageChanged",null);_.d([_.m("isHomePage","chipBarIsSticky"),_.x("design:type",Boolean),_.x("design:paramtypes",[])],$u.prototype,"applyFrostedGlassToChipBar",null);_.d([_.M(),_.x("design:type",Object)],$u.prototype,"isChannelOrPlaylistPage",void 0);
_.d([_.mx("isInlinePreviewEnabled"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$u.prototype,"isInlinePreviewEnabledChanged",null);_.d([_.Os("guideIsVisibleButNotPersistent"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$u.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.d([_.Os("guidePersistentAndVisible","miniGuideVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$u.prototype,"observeGuideVisibility",null);_.d([_.Os("persistentPanelVisible"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$u.prototype,"observePersistentPanelVisibility",null);
_.d([_.rx("attached"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],$u.prototype,"onYtPageManagerAttached",null);_.d([_.Os("data"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype",Promise)],$u.prototype,"updateMastheadData",null);_.d([_.rx("yt-set-theater-mode-enabled"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent,Object]),_.x("design:returntype")],$u.prototype,"onSetTheaterModeEnabled",null);
_.d([_.rx("yt-page-type-changed"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],$u.prototype,"onPageChanged",null);_.d([_.rx("yt-page-data-updated"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$u.prototype,"onPageDataUpdated",null);_.d([_.rx("yt-request-panel-mode-change"),_.x("design:type",Function),_.x("design:paramtypes",[Event,Object]),_.x("design:returntype")],$u.prototype,"onRequestPanelModeChange",null);
_.d([_.rx("yt-guide-hover"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$u.prototype,"onGuideOpenButtonHover",null);_.d([_.rx("app-drawer-transitioned"),_.x("design:type",Function),_.x("design:paramtypes",[Event]),_.x("design:returntype")],$u.prototype,"onDrawerIronSelect",null);_.d([_.rx("yt-add-element-to-app"),_.x("design:type",Function),_.x("design:paramtypes",[CustomEvent]),_.x("design:returntype")],$u.prototype,"onAddElementToApp",null);
_.d([_.rx("yt-set-fullerscreen-styles"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$u.prototype,"setFullscreen",null);_.d([_.rx("yt-open-hotkey-dialog"),_.x("design:type",Function),_.x("design:paramtypes",[]),_.x("design:returntype")],$u.prototype,"onOpenHotkeyDialog",null);_.d([_.Y({is:"ytd-app"})],$u);_.EK().processSignal("eor");
_.Je();
}catch(e){_._DumpException(e)}
try{
_.gV("NSzT5");
var K$Z;_.IV=function(D){var t=document.createElement("link");_.wN(t,D,"stylesheet");document.head.appendChild(t)};
_.Qj=function(D,t){var H,e;return _.Z(function(V){H=document.createElement("div");H.id=D.id;D.className&&(H.className=D.className);e=D.element;if(!e)throw Error("ak");if(D.location==="prepend")e.prepend(H);else if(D.location==="appendChild")e.appendChild(H);else if(D.location==="after")e.after(H);else throw Error("bk");return V.return(_.M2(H,t,"ni"))})};
_.yj=function(D){var t;return _.Z(function(H){(t=document.getElementById(D))&&t.remove();_.n2(H)})};
_.BA=function(D,t){var H=document.querySelector(D);H?t(H):setTimeout(function(){_.BA(D,t)},1E3)};
_.NE4=function(D,t,H){var e;_.Z(function(V){if(V.nextAddress==1)return(e=document.getElementById(D))?V.jumpTo(2):V.yield(K$Z(D,t,H),2);if(e=document.getElementById(D))e.style.display="block";_.n2(V)})};
K$Z=function(D,t,H){return _.Z(function(e){return e.return(new Promise(function(V){_.BA("div #panels",function(b){_.Qj({element:b,location:"appendChild",id:D,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+H},t);V()})}))})};
_.j4t=function(D){D=D===void 0?"":D;_.yj("creator_chatbots-entry-point");_.yj("creator_chatbots-panel");_.IV(kfF);_.BA("ytd-watch-metadata #top-level-buttons-computed",function(t){document.getElementById("creator_chatbots-entry-point")||(_.Qj({element:t,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.G(TEQ,{creatorChannelId:D})}),_.NE4("creator_chatbots-panel",function(){return _.G(cE4,{usePlayerHeight:!0,
creatorChannelId:D})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.zh=_.l(function(D){var t=D.text;var H=D.onClick;var e=D.color;var V=D.backgroundColor;var b=D.buttonSize;var a=D.disabled;var w=D.iconName;var h=D.iconSize;D=D.className;var K=_.$X(function(k){H(k)}),N={};
return _.G("button",{class:_.jQ("ytpStandardButtonsHost",(N.ytpStandardButtonsLarge=function(){return(b==null?void 0:b())==="large"},N),D),
"on:click":K,style:_.O7({color:e,"background-color":V}),disabled:a}," ",_.G(_.E,{cond:w,then:function(){return _.G(_.U7,{className:"ytpStandardButtonsIconContainer",icon:w,size:h})}}),t)},"mi");_.$JF=_.l(function(D){var t;return _.G("div",{class:_.jQ("ytprototypesEngagementPanelComponentHost",D.className),id:D.id},_.G("div",{class:_.jQ("ytprototypesEngagementPanelComponentEngagementPanelHeader",D.headerClassName)},_.G("div",null,D.header()),_.G("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.G("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(t=D.HeaderButton)==null?void 0:t.call(D)),_.G(_.zh,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var H;(H=D.onHide)==null||H.call(D);H=D.id();if(H=document.getElementById(H))H.style.display="none"}}))),_.G("div",{class:_.jQ("ytprototypesEngagementPanelComponentEngagementPanelContent",D.contentClassName),
style:function(){var H;return"height: "+(((H=D.height)==null?void 0:H.call(D))||"800px")+";"}},D.content()))},"oi");var ilF=_.zk(["https://portraits.google.com"]),rEi=_.zk(["https://labs-characters.teams.x20web.corp.google.com"]),Olg=_.zk(["https://portraits.google.com/gallery?ytChannelId=",""]),UJH=_.E5(ilF),DR=_.E5(rEi),cE4=_.l(function(D){function t(T){var c;if(T=(c=T.detail)==null?void 0:c.endpoint){c=_.O(T,_.UL);var U;c&&((U=c.browseId)==null?0:U.startsWith("UC"))&&c.browseId!==V()&&(_.yj("creator_chatbots-panel-persistent"),N.removeEventListener("yt-navigate-start",t))}}
var H=D.usePlayerHeight;var e=D.isPersistentPanel;var V=D.creatorChannelId;var b=_.r("enable_creator_chatbots_extension_dev_server"),a=document.createElement("iframe"),w=b?DR:UJH;_.SG(function(){var T=V();T=b?DR:_.E5(Olg,T);_.hDV(a,1,T)});
a.className="ytprotoCreatorChatbotsAppLabsIframe";a.allow="microphone; clipboard-read; clipboard-write self "+w;var h=function(){var T;return _.Z(function(c){if(c.nextAddress==1)return c.yield(_.qS().resolve(_.h5),2);(T=c.yieldResult)&&T.pauseVideo();_.n2(c)})},K=function(){var T,c,U;
return _.Z(function(S){return S.nextAddress==1?S.yield(_.qS().resolve(_.h5),2):(T=S.yieldResult)?S.return({video_id:(U=(c=T.getVideoData())==null?void 0:c.video_id)!=null?U:"",timestamp_sec:T.getCurrentTime().toString()}):S.return({})})};
window.addEventListener("message",function(T){var c,U,S,L,J,g;return _.Z(function(Q){if(Q.nextAddress==1){c=b?DR.toString():UJH.toString();if(T.origin!==c)return console.warn("Received message from untrusted origin:",T.origin),Q.return();U=T.data;if(typeof U!=="object"||U===null||!U.action)return Q.return();if(U.action==="pause")return Q.yield(h(),0);if(U.action!=="getYouTubeContext"||!T.source)return Q.jumpTo(0);S=T.source;L=S.postMessage;J=JSON;g=J.stringify;return Q.yield(K(),7)}L.call(S,g.call(J,
{youTubeContext:Q.yieldResult}),{targetOrigin:T.origin});return Q.jumpTo(0)})});
_.F9("yt-page-type-changed",function(){if(e==null?0:e()){var T;((T=_.qS().resolve(_.bO).getCurrentPage())==null?void 0:T.pageSubtype)!=="channels"&&(T=document.getElementById("creator_chatbots-panel-persistent"))&&(T.style.display="none")}});
var N=_.qS().resolve(_.yN),k;(k=N)==null||k.addEventListener("yt-navigate-start",t);_.Sj(function(){var T;(T=N)==null||T.removeEventListener("yt-navigate-start",t)});
return _.G("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(H==null?0:H())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.G(_.$JF,{id:function(){return(e==null?0:e())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var T=b?DR.toString():UJH.toString(),c;(c=a.contentWindow)==null||c.postMessage("ep_closed",T)},
header:function(){return _.G("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.G("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.G(_.hr,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.G(_.zh,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.D7(window,_.lM(b?DR.toString():w.toString()+"/gallery?ytChannelId="+V()),"_blank")}})},
content:function(){return a}}))},"pi");var o0F,kfF,TEQ;o0F=_.zk(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);kfF=_.E5(o0F);TEQ=_.l(function(D){var t=D.creatorChannelId;var H=function(){_.NE4("creator_chatbots-panel",function(){return _.G(cE4,{usePlayerHeight:!0,creatorChannelId:t})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.G("div",{class:"ytd-menu-renderer"},_.G(_.gW,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:H}},
icon:function(){return _.G(_.U7,{icon:"SPARK"})}}))},"qi");
_.IiH=function(D){D=D===void 0?"":D;var t;return _.Z(function(H){return(t=document.getElementById("creator_chatbots-panel-persistent"))?(t.style.display==="none"&&(t.style.display="block"),H.jumpTo(0)):H.yield(new Promise(function(e){_.BA("ytd-app",function(V){_.Qj({element:V,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.G(cE4,{isPersistentPanel:!0,
creatorChannelId:D})});
e()})}),0)})};
_.Je();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
